!<arch>
/               0           0     0     0       36        `
      h_Z19llama_ui_find_assetPKc  ui.cpp.o/       0           0     0     644     8752688   `
ELF          >                    0         @     @   SHHH=        H    tYHH=        H    t=HH=        H    t!HH=            H    HE[bundle.css bundle.js index.html loading.html                                              T}                                                                          "0x277af02f3eaf37d9"            <!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="refresh" content="5">
    </head>
    <body>
        <div id="loading">
            The model is loading. Please wait.<br/>
            The user interface will appear soon.
        </div>
    </body>
</html>
    "0x689a0079299e472b"                            <!--
  This is a static build of the frontend.
  It is automatically generated by the build process.
  Do not edit this file directly.
  To make changes, refer to the "Web UI" section in the README.
-->
<!doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<link rel="icon" href="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjU2IiBpZD0ic2NyZWVuc2hvdC1lZjk0ZmJiMC1kYmFiLTgwZWQtODAwNi04OTQyOTkwMGVkYmYiIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgZmlsbD0ibm9uZSIgdmVyc2lvbj0iMS4xIj48ZyBpZD0ic2hhcGUtZWY5NGZiYjAtZGJhYi04MGVkLTgwMDYtODk0Mjk5MDBlZGJmIiByeD0iMCIgcnk9IjAiPjxnIGlkPSJzaGFwZS1lZjk0ZmJiMC1kYmFiLTgwZWQtODAwNi04OTQyMTU3NTVjM2EiPjxnIGNsYXNzPSJmaWxscyIgaWQ9ImZpbGxzLWVmOTRmYmIwLWRiYWItODBlZC04MDA2LTg5NDIxNTc1NWMzYSI+PHJlY3Qgcng9IjAiIHJ5PSIwIiB4PSIwIiB5PSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxLjAwMDAwMCwgMC4wMDAwMDAsIDAuMDAwMDAwLCAxLjAwMDAwMCwgMC4wMDAwMDAsIDAuMDAwMDAwKSIgd2lkdGg9IjI1NiIgaGVpZ2h0PSIyNTYiIHN0eWxlPSJmaWxsOiByZ2IoMjcsIDMxLCAzMik7IGZpbGwtb3BhY2l0eTogMTsiLz48L2c+PC9nPjxnIGlkPSJzaGFwZS1lZjk0ZmJiMC1kYmFiLTgwZWQtODAwNi04OTQyMjM2M2VmM2YiIHJ4PSIwIiByeT0iMCI+PGcgaWQ9InNoYXBlLWVmOTRmYmIwLWRiYWItODBlZC04MDA2LTg5NDIyMzYzZWY0MCI+PGcgY2xhc3M9ImZpbGxzIiBpZD0iZmlsbHMtZWY5NGZiYjAtZGJhYi04MGVkLTgwMDYtODk0MjIzNjNlZjQwIj48cGF0aCBkPSJNMTcxLjY2NTAwODU0NDkyMTg4LDk5LjUzMDI1MDU0OTMxNjRMMTU5Ljc5OTUzMDAyOTI5Njg4LDEyMC42MjQ2ODcxOTQ4MjQyMkMxNDQuMTU0NTEwNDk4MDQ2ODgsMTA4LjU4MzI5MDEwMDA5NzY2LDEyMC45NTA0MTY1NjQ5NDE0LDEwNi44MjU0MTY1NjQ5NDE0LDEwNS4zMDUzOTcwMzM2OTE0LDExOS43NDU3NTA0MjcyNDYxQzgwLjA3OTgxMTA5NjE5MTQsMTQwLjU3NjUyMjgyNzE0ODQ0LDgxLjgzNzYyMzU5NjE5MTQsMTg4Ljc0MjI2Mzc5Mzk0NTMsMTIxLjEyNjE5NzgxNDk0MTQsMTg5LjAwNTg3NDYzMzc4OTA2QzEzMi4xMTMwMDY1OTE3OTY4OCwxODkuMDA1ODc0NjMzNzg5MDYsMTQxLjQyOTY1Njk4MjQyMTg4LDE4My44MjAxMTQxMzU3NDIyLDE1MS40NDk2NzY1MTM2NzE4OCwxODAuMzkyMzQ5MjQzMTY0MDZMMTU2LjcyMzM1ODE1NDI5Njg4LDIwMS4zOTg4NDk0ODczMDQ3QzE0Ny44NDU5MTY3NDgwNDY4OCwyMDUuNTI5ODkxOTY3NzczNDQsMTM4Ljc5MjkzODIzMjQyMTg4LDIwOS43NDg3MzM1MjA1MDc4LDEyOS4wMzY4MzQ3MTY3OTY4OCwyMTEuMDY3MTIzNDEzMDg1OTRDNDAuMDg4MzUyMjAzMzY5MTQsMjIzLjE5NjQ1NjkwOTE3OTcsNDUuMTg2MDA4NDUzMzY5MTQsOTQuNzg0MDA0MjExNDI1NzgsMTI1LjYwODg2MzgzMDU2NjQsODguMTA0MDcyNTcwODAwNzhDMTQyLjQ4NDM0NDQ4MjQyMTg4LDg2LjY5NzgyMjU3MDgwMDc4LDE1Ny4zMzgzNDgzODg2NzE4OCw5MS4wOTI0NzU4OTExMTMyOCwxNzEuNzUzMTQzMzEwNTQ2ODgsOTkuNTMwMjUwNTQ5MzE2NFoiIGNsYXNzPSJzdDAiIHN0eWxlPSJmaWxsOiByZ2IoMjU1LCAxMzAsIDU0KTsgZmlsbC1vcGFjaXR5OiAxOyIvPjwvZz48L2c+PGcgaWQ9InNoYXBlLWVmOTRmYmIwLWRiYWItODBlZC04MDA2LTg5NDIyMzYzZWY0MSI+PGcgY2xhc3M9ImZpbGxzIiBpZD0iZmlsbHMtZWY5NGZiYjAtZGJhYi04MGVkLTgwMDYtODk0MjIzNjNlZjQxIj48cGF0aCBkPSJNMTEwLjIyNzI3MjAzMzY5MTQsNzkuMzE0NzA0ODk1MDE5NTNDOTYuNjkxODcxNjQzMDY2NCw4My4zNTc4NTY3NTA0ODgyOCw4NC4xMjMyNjgxMjc0NDE0LDkwLjgyODgzNDUzMzY5MTQsNzQuNjMwNTkyMzQ2MTkxNCwxMDEuMjg4MTI0MDg0NDcyNjZDNzIuODcyNzc5ODQ2MTkxNCw4MC4wMTc4Mjk4OTUwMTk1Myw3Ny42MTg4NzM1OTYxOTE0LDM3LjAzNzkzNzE2NDMwNjY0LDEwMS4yNjIxODQxNDMwNjY0LDI4LjYwMDEwMzM3ODI5NTlDMTA0Ljc3ODA1MzI4MzY5MTQsMjcuMzY5NjQ5ODg3MDg0OTYsMTE2LjgxOTU1NzE4OTk0MTQsMjQuMjkzMzcxMjAwNTYxNTIzLDExNi40Njc5OTQ2ODk5NDE0LDMwLjUzMzc4ODY4MTAzMDI3M0MxMTYuMTE2MTg4MDQ5MzE2NCwzNi43NzQyNjUyODkzMDY2NCwxMDcuNzY2MzM0NTMzNjkxNCw0Ny40OTcyMjY3MTUwODc4OSwxMDUuNzQ1MDk0Mjk5MzE2NCw1My4yOTgyMzY4NDY5MjM4M0MxMDIuMjI5MjI1MTU4NjkxNCw2My40OTM4Njk3ODE0OTQxNCwxMDUuNDgxMTc4MjgzNjkxNCw3MC41MjUzNTI0NzgwMjczNCwxMTAuMzE1NDA2Nzk5MzE2NCw3OS40MDI2NTY1NTUxNzU3OFoiIGNsYXNzPSJzdDAiIHN0eWxlPSJmaWxsOiByZ2IoMjU1LCAxMzAsIDU0KTsgZmlsbC1vcGFjaXR5OiAxOyIvPjwvZz48L2c+PGcgaWQ9InNoYXBlLWVmOTRmYmIwLWRiYWItODBlZC04MDA2LTg5NDIyMzYzZWY0MiI+PGcgY2xhc3M9ImZpbGxzIiBpZD0iZmlsbHMtZWY5NGZiYjAtZGJhYi04MGVkLTgwMDYtODk0MjIzNjNlZjQyIj48cGF0aCBkPSJNMTQzLjYyNjkyMjYwNzQyMTg4LDEyNy42NTYyMTE4NTMwMjczNEwxNDMuNjI2OTIyNjA3NDIxODgsMTQzLjQ3NzA2NjA0MDAzOTA2TDE1Ny42ODk5MTA4ODg2NzE4OCwxNDMuNDc3MDY2MDQwMDM5MDZMMTU3LjY4OTkxMDg4ODY3MTg4LDE1NS43ODIxODA3ODYxMzI4TDE0My42MjY5MjI2MDc0MjE4OCwxNTUuNzgyMTgwNzg2MTMyOEwxNDMuNjI2OTIyNjA3NDIxODgsMTcwLjcyNDA3NTMxNzM4MjhMMTMwLjQ0Mjg0MDU3NjE3MTg4LDE3MC43MjQwNzUzMTczODI4TDEzMC40NDI4NDA1NzYxNzE4OCwxNTUuNzgyMTgwNzg2MTMyOEwxMTUuNTAwOTUzNjc0MzE2NCwxNTUuNzgyMTgwNzg2MTMyOEwxMTUuNTAwOTUzNjc0MzE2NCwxNDMuNDc3MDY2MDQwMDM5MDZMMTI5LjEyNDQ4MTIwMTE3MTg4LDE0My40NzcwNjYwNDAwMzkwNkwxMzAuNDQyODQwNTc2MTcxODgsMTQyLjE1ODY3NjE0NzQ2MDk0TDEzMC40NDI4NDA1NzYxNzE4OCwxMjcuNjU2MjExODUzMDI3MzRMMTQzLjYyNjkyMjYwNzQyMTg4LDEyNy42NTYyMTE4NTMwMjczNFoiIGNsYXNzPSJzdDAiIHN0eWxlPSJmaWxsOiByZ2IoMjU1LCAxMzAsIDU0KTsgZmlsbC1vcGFjaXR5OiAxOyIvPjwvZz48L2c+PGcgaWQ9InNoYXBlLWVmOTRmYmIwLWRiYWItODBlZC04MDA2LTg5NDIyMzYzZWY0MyI+PGcgY2xhc3M9ImZpbGxzIiBpZD0iZmlsbHMtZWY5NGZiYjAtZGJhYi04MGVkLTgwMDYtODk0MjIzNjNlZjQzIj48cGF0aCBkPSJNMTkxLjk2ODIzMTIwMTE3MTg4LDEyNy42NTYyMTE4NTMwMjczNEwxOTEuOTY4MjMxMjAxMTcxODgsMTQyLjE1ODY3NjE0NzQ2MDk0TDE5My4yODY4MzQ3MTY3OTY4OCwxNDMuNDc3MDY2MDQwMDM5MDZMMjA2LjkxMDM2OTg3MzA0Njg4LDE0My40NzcwNjYwNDAwMzkwNkwyMDYuOTEwMzY5ODczMDQ2ODgsMTU1Ljc4MjE4MDc4NjEzMjhMMTkxLjk2ODIzMTIwMTE3MTg4LDE1NS43ODIxODA3ODYxMzI4TDE5MS45NjgyMzEyMDExNzE4OCwxNzAuNzI0MDc1MzE3MzgyOEwxNzguNzg0MzkzMzEwNTQ2ODgsMTcwLjcyNDA3NTMxNzM4MjhMMTc4Ljc4NDM5MzMxMDU0Njg4LDE1NS43ODIxODA3ODYxMzI4TDE2NC43MjE0MDUwMjkyOTY4OCwxNTUuNzgyMTgwNzg2MTMyOEwxNjQuNzIxNDA1MDI5Mjk2ODgsMTQzLjQ3NzA2NjA0MDAzOTA2TDE3OC43ODQzOTMzMTA1NDY4OCwxNDMuNDc3MDY2MDQwMDM5MDZMMTc4Ljc4NDM5MzMxMDU0Njg4LDEyNy42NTYyMTE4NTMwMjczNEwxOTEuOTY4MjMxMjAxMTcxODgsMTI3LjY1NjIxMTg1MzAyNzM0WiIgY2xhc3M9InN0MCIgc3R5bGU9ImZpbGw6IHJnYigyNTUsIDEzMCwgNTQpOyBmaWxsLW9wYWNpdHk6IDE7Ii8+PC9nPjwvZz48ZyBpZD0ic2hhcGUtZWY5NGZiYjAtZGJhYi04MGVkLTgwMDYtODk0MjIzNjNlZjQ0Ij48ZyBjbGFzcz0iZmlsbHMiIGlkPSJmaWxscy1lZjk0ZmJiMC1kYmFiLTgwZWQtODAwNi04OTQyMjM2M2VmNDQiPjxwYXRoIGQ9Ik0xNTMuMjA3NDg5MDEzNjcxODgsMzguMDkyNjU1MTgxODg0NzY2QzE1NC45NjU1NDU2NTQyOTY4OCw0MC43Mjk0NjU0ODQ2MTkxNCwxNDUuMDMzNDE2NzQ4MDQ2ODgsNTIuMDY3NzA3MDYxNzY3NTgsMTQzLjQ1MTE0MTM1NzQyMTg4LDU0Ljk2ODE3Mzk4MDcxMjg5QzEzOC44ODA4Mjg4NTc0MjE4OCw2My41ODE3OTA5MjQwNzIyNjYsMTQxLjk1NzAwMDczMjQyMTg4LDY4LjUwMzgyMjMyNjY2MDE2LDE0NS4zODQ3MzUxMDc0MjE4OCw3Ni42Nzc5MjUxMDk4NjMyOEMxMzUuNDUyODUwMzQxNzk2ODgsNzUuMTgzNzIzNDQ5NzA3MDMsMTI2LjIyNDA5ODIwNTU2NjQsNzYuNDE0MjUzMjM0ODYzMjgsMTE2LjM3OTg1OTkyNDMxNjQsNzcuNTU2ODMxMzU5ODYzMjhDMTE4LjU3NzM2OTY4OTk0MTQsNTguNjU5NzMyODE4NjAzNTE2LDEyOS4yMTI2MTU5NjY3OTY4OCwzMS4xNDkwNTM1NzM2MDg0LDE1My4yMDc0ODkwMTM2NzE4OCwzOC4wOTI2NTUxODE4ODQ3NjZaIiBjbGFzcz0ic3QwIiBzdHlsZT0iZmlsbDogcmdiKDI1NSwgMTMwLCA1NCk7IGZpbGwtb3BhY2l0eTogMTsiLz48L2c+PC9nPjwvZz48L2c+PC9zdmc+" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<link href="./bundle.js?xqnQFTBT" rel="modulepreload">
		
		<link href="./bundle.css?Cu1iJ-NX" rel="stylesheet">
	</head>
	<body data-sveltekit-preload-data="hover">
		<div style="display: contents">
			<script>
				{
					__sveltekit__ = {
						base: new URL('.', location).pathname.slice(0, -1)
					};

					const element = document.currentScript.parentElement;

					import("./bundle.js?xqnQFTBT").then((app) => {
						app.start(element)
					});
				}
			</script>
		</div>
	</body>
</html>
"0x38961126719b31fb"            var dge=t=>{throw TypeError(t)};var xz=(t,e,r)=>e.has(t)||dge("Cannot "+r);var Ss=(t,e,r)=>(xz(t,e,"read from private field"),r?r.call(t):e.get(t)),pp=(t,e,r)=>e.has(t)?dge("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Iu=(t,e,r,n)=>(xz(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),gp=(t,e,r)=>(xz(t,e,"access private method"),r);var hge=(t,e,r,n)=>({set _(i){Iu(t,e,i,r)},get _(){return Ss(t,e,n)}});var kF=Array.isArray,hot=Array.prototype.indexOf,Gx=Array.prototype.includes,DF=Array.from,gie=Object.defineProperty,V_=Object.getOwnPropertyDescriptor,rke=Object.getOwnPropertyDescriptors,nke=Object.prototype,fot=Array.prototype,MF=Object.getPrototypeOf,fge=Object.isExtensible;function OS(t){return typeof t=="function"}const Tt=()=>{};function pot(t){return t()}function lQ(t){for(var e=0;e<t.length;e++)t[e]()}function ike(){var t,e,r=new Promise((n,i)=>{t=n,e=i});return{promise:r,resolve:t,reject:e}}function got(t,e,r=!1){return t===void 0?r?e():e:t}function mie(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const r=[];for(const n of t)if(r.push(n),r.length===e)break;return r}const ic=2,pb=4,M3=8,_ie=1<<24,Ah=16,Wf=32,Km=64,cQ=128,Mh=512,ul=1024,Kl=2048,lg=4096,uu=8192,Lh=16384,C0=32768,uQ=1<<25,cg=65536,e9=1<<17,ake=1<<18,Jb=1<<19,ske=1<<20,Hp=1<<25,gb=65536,t9=1<<21,DT=1<<22,H_=1<<23,eg=Symbol("$state"),vie=Symbol("legacy props"),mot=Symbol(""),oke=Symbol("attributes"),dQ=Symbol("class"),hQ=Symbol("style"),fQ=Symbol("text"),JI=Symbol("form reset"),LF=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},L3=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),_ot=1,P3=3,D1=8;function yie(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function vot(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function yot(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function bot(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Eot(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Sot(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Tot(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Cot(){throw new Error("https://svelte.dev/e/hydration_failed")}function wot(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function xot(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Aot(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rot(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Oot(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Iot=1,Not=2,lke=4,kot=8,Dot=16,Mot=1,Lot=2,Pot=4,Fot=8,Bot=16,Uot=1,$ot=2,Got=4,zot=1,qot=2,bie="[",Eie="[!",pge="[?",Sie="]",mb={},il=Symbol(),cke="http://www.w3.org/1999/xhtml",uke="http://www.w3.org/2000/svg",Vot="http://www.w3.org/1998/Math/MathML",dke="@attach";function Hot(){console.warn("https://svelte.dev/e/derived_inert")}function F3(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Yot(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Wot(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Rn=!1;function jl(t){Rn=t}let ui;function Ks(t){if(t===null)throw F3(),mb;return ui=t}function Kf(){return Ks(zd(ui))}function oe(t){if(Rn){if(zd(ui)!==null)throw F3(),mb;ui=t}}function Gt(t=1){if(Rn){for(var e=t,r=ui;e--;)r=zd(r);ui=r}}function HN(t=!0){for(var e=0,r=ui;;){if(r.nodeType===D1){var n=r.data;if(n===Sie){if(e===0)return r;e-=1}else(n===bie||n===Eie||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(e+=1)}var i=zd(r);t&&r.remove(),r=i}}function Tie(t){if(!t||t.nodeType!==D1)throw F3(),mb;return t.data}function hke(t){return t===this.v}function Cie(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function fke(t){return!Cie(t,this.v)}let XA=!1;function Kot(){XA=!0}const jot=[];function Y_(t,e=!1,r=!1){return yP(t,new Map,"",jot,null,r)}function yP(t,e,r,n,i=null,a=!1){if(typeof t=="object"&&t!==null){var s=e.get(t);if(s!==void 0)return s;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(kF(t)){var o=Array(t.length);e.set(t,o),i!==null&&e.set(i,o);for(var l=0;l<t.length;l+=1){var u=t[l];l in t&&(o[l]=yP(u,e,r,n,null,a))}return o}if(MF(t)===nke){o={},e.set(t,o),i!==null&&e.set(i,o);for(var d of Object.keys(t))o[d]=yP(t[d],e,r,n,null,a);return o}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function"&&!a)return yP(t.toJSON(),e,r,n,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}let ls=null;function zx(t){ls=t}function jm(t){return PF().get(t)}function M1(t,e){return PF().set(t,e),e}function wie(t){return PF().has(t)}function pke(){return PF()}function We(t,e=!1,r){ls={p:ls,i:!1,c:null,e:null,s:t,x:null,r:Ei,l:XA&&!e?{s:null,u:null,$:[]}:null}}function Ke(t){var e=ls,r=e.e;if(r!==null){e.e=null;for(var n of r)Lke(n)}return t!==void 0&&(e.x=t),e.i=!0,ls=e.p,t??{}}function QA(){return!XA||ls!==null&&ls.l===null}function PF(t){return ls===null&&yie(),ls.c??=new Map(Xot(ls)||void 0)}function Xot(t){let e=t.p;for(;e!==null;){const r=e.c;if(r!==null)return r;e=e.p}return null}let wy=[];function gke(){var t=wy;wy=[],lQ(t)}function Of(t){if(wy.length===0&&!eN){var e=wy;queueMicrotask(()=>{e===wy&&gke()})}wy.push(t)}function Qot(){for(;wy.length>0;)gke()}function mke(t){var e=Ei;if(e===null)return da.f|=H_,t;if((e.f&C0)===0&&(e.f&pb)===0)throw t;k_(t,e)}function k_(t,e){for(;e!==null;){if((e.f&cQ)!==0){if((e.f&C0)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}const Zot=-7169;function oo(t,e){t.f=t.f&Zot|e}function xie(t){(t.f&Mh)!==0||t.deps===null?oo(t,ul):oo(t,lg)}function _ke(t){if(t!==null)for(const e of t)(e.f&ic)===0||(e.f&gb)===0||(e.f^=gb,_ke(e.deps))}function vke(t,e,r){(t.f&Kl)!==0?e.add(t):(t.f&lg)!==0&&r.add(t),_ke(t.deps),oo(t,ul)}function yke(t,e,r){if(t==null)return e(void 0),Tt;const n=Vi(()=>t.subscribe(e,r));return n.unsubscribe?()=>n.unsubscribe():n}const XE=[];function Aie(t,e=Tt){let r=null;const n=new Set;function i(o){if(Cie(t,o)&&(t=o,r)){const l=!XE.length;for(const u of n)u[1](),XE.push(u,t);if(l){for(let u=0;u<XE.length;u+=2)XE[u][0](XE[u+1]);XE.length=0}}}function a(o){i(o(t))}function s(o,l=Tt){const u=[o,l];return n.add(u),n.size===1&&(r=e(i,a)||Tt),o(t),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:s}}function Jot(t){let e;return yke(t,r=>e=r)(),e}let jD=!1,pQ=Symbol();function elt(t,e,r){const n=r[e]??={store:null,source:Die(void 0),unsubscribe:Tt};if(n.store!==t&&!(pQ in r))if(n.unsubscribe(),n.store=t??null,t==null)n.source.v=void 0,n.unsubscribe=Tt;else{var i=!0;n.unsubscribe=yke(t,a=>{i?n.source.v=a:J(n.source,a)}),i=!1}return t&&pQ in r?Jot(t):w(n.source)}function tlt(){const t={};function e(){ZA(()=>{for(var r in t)t[r].unsubscribe();gie(t,pQ,{enumerable:!1,value:!0})})}return[t,e]}function rlt(t){var e=jD;try{return jD=!1,[t(),jD]}finally{jD=e}}let Az=null,QE=null,zi=null,gQ=null,wf=null,mQ=null,eN=!1,Rz=!1,oT=null,bP=null;var gge=0;let nlt=1;class ug{id=nlt++;#e=!1;linked=!0;#t=null;#r=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#n=new Set;#i=new Set;#a=new Set;#s=0;#o=new Map;#c=null;#l=[];#d=[];#u=new Set;#p=new Set;#g=new Map;#f=new Set;is_fork=!1;#h=!1;#m(){if(this.is_fork)return!0;for(const n of this.#o.keys()){for(var e=n,r=!1;e.parent!==null;){if(this.#g.has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1}skip_effect(e){this.#g.has(e)||this.#g.set(e,{d:[],m:[]}),this.#f.delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=this.#g.get(e);if(n){this.#g.delete(e);for(var i of n.d)oo(i,Kl),r(i);for(i of n.m)oo(i,lg),r(i)}this.#f.add(e)}#v(){if(this.#e=!0,gge++>1e3&&(this.#C(),ilt()),!this.#m()){for(const l of this.#u)this.#p.delete(l),oo(l,Kl),this.schedule(l);for(const l of this.#p)oo(l,lg),this.schedule(l)}const e=this.#l;this.#l=[],this.apply();var r=oT=[],n=[],i=bP=[];for(const l of e)try{this.#_(l,r,n)}catch(u){throw Ske(l),u}if(zi=null,i.length>0){var a=ug.ensure();for(const l of i)a.schedule(l)}if(oT=null,bP=null,this.#m()){this.#y(n),this.#y(r);for(const[l,u]of this.#g)Eke(l,u);i.length>0&&zi.#v();return}const s=this.#b();if(s){s.#E(this);return}this.#u.clear(),this.#p.clear();for(const l of this.#n)l(this);this.#n.clear(),gQ=this,mge(n),mge(r),gQ=null,this.#c?.resolve();var o=zi;if(this.linked&&this.#s===0&&this.#C(),this.#l.length>0){o===null&&(o=this,this.#T());const l=o;l.#l.push(...this.#l.filter(u=>!l.#l.includes(u)))}o!==null&&o.#v()}#_(e,r,n){e.f^=ul;for(var i=e.first;i!==null;){var a=i.f,s=(a&(Wf|Km))!==0,o=s&&(a&ul)!==0,l=o||(a&uu)!==0||this.#g.has(i);if(!l&&i.fn!==null){s?i.f^=ul:(a&pb)!==0?r.push(i):z3(i)&&((a&Ah)!==0&&this.#p.add(i),Hx(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var d=i.next;if(d!==null){i=d;break}i=i.parent}}}#b(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=e.#t}return null}#E(e){for(const[n,i]of e.current)!this.previous.has(n)&&e.previous.has(n)&&this.previous.set(n,e.previous.get(n)),this.current.set(n,i);for(const[n,i]of e.async_deriveds){const a=this.async_deriveds.get(n);a&&i.promise.then(a.resolve)}const r=n=>{var i=n.reactions;if(i!==null)for(const o of i){var a=o.f;if((a&ic)!==0)r(o);else{var s=o;a&(DT|Ah)&&!this.async_deriveds.has(s)&&(this.#p.delete(s),oo(s,Kl),this.schedule(s))}}};for(const n of this.current.keys())r(n);this.oncommit(()=>e.discard()),e.#C(),zi=this,this.#v()}#y(e){for(var r=0;r<e.length;r+=1)vke(e[r],this.#u,this.#p)}capture(e,r,n=!1){e.v!==il&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&H_)===0&&(this.current.set(e,[r,n]),wf?.set(e,r)),this.is_fork||(e.v=r)}activate(){zi=this}deactivate(){zi=null,wf=null}flush(){try{Rz=!0,zi=this,this.#v()}finally{gge=0,mQ=null,oT=null,bP=null,Rz=!1,zi=null,wf=null,Ky.clear()}}discard(){for(const e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#C()}register_created_effect(e){this.#d.push(e)}#S(){this.#C();for(let d=Az;d!==null;d=d.#r){var e=d.id<this.id,r=[];for(const[h,[f,p]]of this.current){if(d.current.has(h)){var n=d.current.get(h)[0];if(e&&f!==n)d.current.set(h,[f,p]);else continue}r.push(h)}if(e)for(const[h,f]of this.async_deriveds){const p=d.async_deriveds.get(h);p&&f.promise.then(p.resolve)}if(d.#e){var i=[...d.current.keys()].filter(h=>!this.current.has(h));if(i.length===0)e&&d.discard();else if(r.length>0){if(e)for(const h of this.#f)d.unskip_effect(h,f=>{(f.f&(Ah|DT))!==0?d.schedule(f):d.#y([f])});d.activate();var a=new Set,s=new Map;for(var o of r)bke(o,i,a,s);s=new Map;var l=[...d.current.keys()].filter(h=>this.current.has(h)?this.current.get(h)[0]!==h.v:!0);if(l.length>0)for(const h of this.#d)(h.f&(Lh|uu|e9))===0&&Oie(h,l,s)&&((h.f&(DT|Ah))!==0?(oo(h,Kl),d.schedule(h)):d.#u.add(h));if(d.#l.length>0){d.apply();for(var u of d.#l)d.#_(u,[],[]);d.#l=[]}d.deactivate()}}}}increment(e,r){if(this.#s+=1,e){let n=this.#o.get(r)??0;this.#o.set(r,n+1)}}decrement(e,r){if(this.#s-=1,e){let n=this.#o.get(r)??0;n===1?this.#o.delete(r):this.#o.set(r,n-1)}this.#h||(this.#h=!0,Of(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)this.#u.add(n);for(const n of r)this.#p.add(n);e.clear(),r.clear()}oncommit(e){this.#n.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(const e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=ike()).promise}static ensure(){if(zi===null){const e=zi=new ug;e.#T(),!Rz&&!eN&&Of(()=>{e.#e||e.flush()})}return zi}apply(){{wf=null;return}}schedule(e){if(mQ=e,e.b?.is_pending&&(e.f&(pb|M3|_ie))!==0&&(e.f&C0)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(oT!==null&&r===Ei&&(da===null||(da.f&ic)===0))return;if((n&(Km|Wf))!==0){if((n&ul)===0)return;r.f^=ul}}this.#l.push(r)}#T(){QE===null?Az=QE=this:(QE.#r=this,this.#t=QE),QE=this}#C(){var e=this.#t,r=this.#r;e===null?Az=r:e.#r=r,r===null?QE=e:r.#t=e,this.linked=!1}}function Rie(t){var e=eN;eN=!0;try{for(var r;;){if(Qot(),zi===null)return r;zi.flush()}}finally{eN=e}}function ilt(){try{Tot()}catch(t){k_(t,mQ)}}let mm=null;function mge(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Lh|uu))===0&&z3(n)&&(mm=new Set,Hx(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Uke(n),mm?.size>0)){Ky.clear();for(const i of mm){if((i.f&(Lh|uu))!==0)continue;const a=[i];let s=i.parent;for(;s!==null;)mm.has(s)&&(mm.delete(s),a.push(s)),s=s.parent;for(let o=a.length-1;o>=0;o--){const l=a[o];(l.f&(Lh|uu))===0&&Hx(l)}}mm.clear()}}mm=null}}function bke(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const i of t.reactions){const a=i.f;(a&ic)!==0?bke(i,e,r,n):(a&(DT|Ah))!==0&&(a&Kl)===0&&Oie(i,e,n)&&(oo(i,Kl),Iie(i))}}function Oie(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const i of t.deps){if(Gx.call(e,i))return!0;if((i.f&ic)!==0&&Oie(i,e,r))return r.set(i,!0),!0}return r.set(t,!1),!1}function Iie(t){zi.schedule(t)}function Eke(t,e){if(!((t.f&Wf)!==0&&(t.f&ul)!==0)){(t.f&Kl)!==0?e.d.push(t):(t.f&lg)!==0&&e.m.push(t),oo(t,ul);for(var r=t.first;r!==null;)Eke(r,e),r=r.next}}function Ske(t){oo(t,ul);for(var e=t.first;e!==null;)Ske(e),e=e.next}function L1(t){let e=0,r=Xm(0),n;return()=>{Pie()&&(w(r),G3(()=>(e===0&&(n=Vi(()=>t(()=>Nd(r)))),e+=1,()=>{Of(()=>{e-=1,e===0&&(n?.(),n=void 0,Nd(r))})})))}}var alt=cg|Jb;function slt(t,e,r,n){new olt(t,e,r,n)}class olt{parent;is_pending=!1;transform_error;#e;#t=Rn?ui:null;#r;#n;#i;#a=null;#s=null;#o=null;#c=null;#l=0;#d=0;#u=!1;#p=new Set;#g=new Set;#f=null;#h=L1(()=>(this.#f=Xm(this.#l),()=>{this.#f=null}));constructor(e,r,n,i){this.#e=e,this.#r=r,this.#n=a=>{var s=Ei;s.b=this,s.f|=cQ,n(a)},this.parent=Ei.b,this.transform_error=i??this.parent?.transform_error??(a=>a),this.#i=P1(()=>{if(Rn){const a=this.#t;Kf();const s=a.data===Eie;if(a.data.startsWith(pge)){const l=JSON.parse(a.data.slice(pge.length));this.#v(l)}else s?this.#_():this.#m()}else this.#b()},alt),Rn&&(this.#e=ui)}#m(){try{this.#a=Qc(()=>this.#n(this.#e))}catch(e){this.error(e)}}#v(e){const r=this.#r.failed;r&&(this.#o=Qc(()=>{r(this.#e,()=>e,()=>()=>{})}))}#_(){const e=this.#r.pending;e&&(this.is_pending=!0,this.#s=Qc(()=>e(this.#e)),Of(()=>{var r=this.#c=document.createDocumentFragment(),n=Rc();r.append(n),this.#a=this.#y(()=>Qc(()=>this.#n(n))),this.#d===0&&(this.#e.before(r),this.#c=null,jy(this.#s,()=>{this.#s=null}),this.#E(zi))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#d=0,this.#l=0,this.#a=Qc(()=>{this.#n(this.#e)}),this.#d>0){var e=this.#c=document.createDocumentFragment();$ie(this.#a,e);const r=this.#r.pending;this.#s=Qc(()=>r(this.#e))}else this.#E(zi)}catch(r){this.error(r)}}#E(e){this.is_pending=!1,e.transfer_effects(this.#p,this.#g)}defer_effect(e){vke(e,this.#p,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#y(e){var r=Ei,n=da,i=ls;dg(this.#i),Bh(this.#i),zx(this.#i.ctx);try{return ug.ensure(),e()}catch(a){return mke(a),null}finally{dg(r),Bh(n),zx(i)}}#S(e,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,r);return}this.#d+=e,this.#d===0&&(this.#E(r),this.#s&&jy(this.#s,()=>{this.#s=null}),this.#c&&(this.#e.before(this.#c),this.#c=null))}update_pending_count(e,r){this.#S(e,r),this.#l+=e,!(!this.#f||this.#u)&&(this.#u=!0,Of(()=>{this.#u=!1,this.#f&&Vx(this.#f,this.#l)}))}get_effect_pending(){return this.#h(),w(this.#f)}error(e){if(!this.#r.onerror&&!this.#r.failed)throw e;zi?.is_fork?(this.#a&&zi.skip_effect(this.#a),this.#s&&zi.skip_effect(this.#s),this.#o&&zi.skip_effect(this.#o),zi.on_fork_commit(()=>{this.#T(e)})):this.#T(e)}#T(e){this.#a&&(xl(this.#a),this.#a=null),this.#s&&(xl(this.#s),this.#s=null),this.#o&&(xl(this.#o),this.#o=null),Rn&&(Ks(this.#t),Gt(),Ks(HN()));var r=this.#r.onerror;let n=this.#r.failed;var i=!1,a=!1;const s=()=>{if(i){Wot();return}i=!0,a&&Oot(),this.#o!==null&&jy(this.#o,()=>{this.#o=null}),this.#y(()=>{this.#b()})},o=l=>{try{a=!0,r?.(l,s),a=!1}catch(u){k_(u,this.#i&&this.#i.parent)}n&&(this.#o=this.#y(()=>{try{return Qc(()=>{var u=Ei;u.b=this,u.f|=cQ,n(this.#e,()=>l,()=>s)})}catch(u){return k_(u,this.#i.parent),null}}))};Of(()=>{var l;try{l=this.transform_error(e)}catch(u){k_(u,this.#i&&this.#i.parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(o,u=>k_(u,this.#i&&this.#i.parent)):o(l)})}}function Nie(t,e,r,n){const i=QA()?qx:B3;var a=t.filter(f=>!f.settled);if(r.length===0&&a.length===0){n(e.map(i));return}var s=Ei,o=llt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(f=>f.promise)):null;function u(f){if((s.f&Lh)===0){o();try{n(f)}catch(p){k_(p,s)}r9()}}var d=Tke();if(r.length===0){l.then(()=>u(e.map(i))).finally(d);return}function h(){Promise.all(r.map(f=>clt(f))).then(f=>u([...e.map(i),...f])).catch(f=>k_(f,s)).finally(d)}l?l.then(()=>{o(),h(),r9()}):h()}function llt(){var t=Ei,e=da,r=ls,n=zi;return function(a=!0){dg(t),Bh(e),zx(r),a&&(t.f&Lh)===0&&(n?.activate(),n?.apply())}}function r9(t=!0){dg(null),Bh(null),zx(null),t&&zi?.deactivate()}function Tke(){var t=Ei,e=t.b,r=zi,n=e.is_rendered();return e.update_pending_count(1,r),r.increment(n,t),()=>{e.update_pending_count(-1,r),r.decrement(n,t)}}function qx(t){var e=ic|Kl;return Ei!==null&&(Ei.f|=Jb),{ctx:ls,deps:null,effects:null,equals:hke,f:e,fn:t,reactions:null,rv:0,v:il,wv:0,parent:Ei,ac:null}}const XD=Symbol("obsolete");function clt(t,e,r){let n=Ei;n===null&&vot();var i=void 0,a=Xm(il),s=!da,o=new Set;return vlt(()=>{var l=Ei,u=ike();i=u.promise;try{Promise.resolve(t()).then(u.resolve,p=>{p!==LF&&u.reject(p)}).finally(r9)}catch(p){u.reject(p),r9()}var d=zi;if(s){if((l.f&C0)!==0)var h=Tke();if(n.b.is_rendered())d.async_deriveds.get(l)?.reject(XD);else for(const p of o.values())p.reject(XD);o.add(u),d.async_deriveds.set(l,u)}const f=(p,g=void 0)=>{h?.(),o.delete(u),g!==XD&&(d.activate(),g?(a.f|=H_,Vx(a,g)):((a.f&H_)!==0&&(a.f^=H_),Vx(a,p)),d.deactivate())};u.promise.then(f,p=>f(null,p||"unknown"))}),ZA(()=>{for(const l of o)l.reject(XD)}),new Promise(l=>{function u(d){function h(){d===i?l(a):u(i)}d.then(h,h)}u(i)})}function ee(t){const e=qx(t);return zke(e),e}function B3(t){const e=qx(t);return e.equals=fke,e}function ult(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)xl(e[r])}}function kie(t){var e,r=Ei,n=t.parent;if(!Qm&&n!==null&&(n.f&(Lh|uu))!==0)return Hot(),t.v;dg(n);try{t.f&=~gb,ult(t),e=Yke(t)}finally{dg(r)}return e}function Cke(t){var e=kie(t);if(!t.equals(e)&&(t.wv=Vke(),(!zi?.is_fork||t.deps===null)&&(zi!==null?(zi.capture(t,e,!0),gQ?.capture(t,e,!0)):t.v=e,t.deps===null))){oo(t,ul);return}Qm||(wf!==null?(Pie()||zi?.is_fork)&&wf.set(t,e):xie(t))}function dlt(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(LF),e.teardown=Tt,e.ac=null,YN(e,0),Bie(e))}function wke(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Hx(e)}let n9=new Set;const Ky=new Map;let xke=!1;function Xm(t,e){var r={f:0,v:t,reactions:null,equals:hke,rv:0,wv:0};return r}function Me(t,e){const r=Xm(t);return zke(r),r}function Die(t,e=!1,r=!0){const n=Xm(t);return e||(n.equals=fke),XA&&r&&ls!==null&&ls.l!==null&&(ls.l.s??=[]).push(n),n}function J(t,e,r=!1){da!==null&&(!xf||(da.f&e9)!==0)&&QA()&&(da.f&(ic|Ah|DT|e9))!==0&&(Ph===null||!Gx.call(Ph,t))&&Rot();let n=r?Kr(e):e;return Vx(t,n,bP)}function Vx(t,e,r=null){if(!t.equals(e)){Ky.set(t,Qm?e:t.v);var n=ug.ensure();if(n.capture(t,e),(t.f&ic)!==0){const i=t;(t.f&Kl)!==0&&kie(i),wf===null&&xie(i)}t.wv=Vke(),Ake(t,Kl,r),QA()&&Ei!==null&&(Ei.f&ul)!==0&&(Ei.f&(Wf|Km))===0&&(vh===null?blt([t]):vh.push(t)),!n.is_fork&&n9.size>0&&!xke&&hlt()}return e}function hlt(){xke=!1;for(const t of n9){(t.f&ul)!==0&&oo(t,lg);let e;try{e=z3(t)}catch{e=!0}e&&Hx(t)}n9.clear()}function tN(t,e=1){var r=w(t),n=e===1?r++:r--;return J(t,r),n}function Nd(t){J(t,t.v+1)}function Ake(t,e,r){var n=t.reactions;if(n!==null)for(var i=QA(),a=n.length,s=0;s<a;s++){var o=n[s],l=o.f;if(!(!i&&o===Ei)){var u=(l&Kl)===0;if(u&&oo(o,e),(l&e9)!==0)n9.add(o);else if((l&ic)!==0){var d=o;wf?.delete(d),(l&gb)===0&&(l&Mh&&(Ei===null||(Ei.f&t9)===0)&&(o.f|=gb),Ake(d,lg,r))}else if(u){var h=o;(l&Ah)!==0&&mm!==null&&mm.add(h),r!==null?r.push(h):Iie(h)}}}}function Kr(t){if(typeof t!="object"||t===null||eg in t)return t;const e=MF(t);if(e!==nke&&e!==fot)return t;var r=new Map,n=kF(t),i=Me(0),a=If,s=o=>{if(If===a)return o();var l=da,u=If;Bh(null),bge(a);var d=o();return Bh(l),bge(u),d};return n&&r.set("length",Me(t.length)),new Proxy(t,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&xot();var d=r.get(l);return d===void 0?s(()=>{var h=Me(u.value);return r.set(l,h),h}):J(d,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const d=s(()=>Me(il));r.set(l,d),Nd(i)}}else J(u,il),Nd(i);return!0},get(o,l,u){if(l===eg)return t;var d=r.get(l),h=l in o;if(d===void 0&&(!h||V_(o,l)?.writable)&&(d=s(()=>{var p=Kr(h?o[l]:il),g=Me(p);return g}),r.set(l,d)),d!==void 0){var f=w(d);return f===il?void 0:f}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var d=r.get(l);d&&(u.value=w(d))}else if(u===void 0){var h=r.get(l),f=h?.v;if(h!==void 0&&f!==il)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(o,l){if(l===eg)return!0;var u=r.get(l),d=u!==void 0&&u.v!==il||Reflect.has(o,l);if(u!==void 0||Ei!==null&&(!d||V_(o,l)?.writable)){u===void 0&&(u=s(()=>{var f=d?Kr(o[l]):il,p=Me(f);return p}),r.set(l,u));var h=w(u);if(h===il)return!1}return d},set(o,l,u,d){var h=r.get(l),f=l in o;if(n&&l==="length")for(var p=u;p<h.v;p+=1){var g=r.get(p+"");g!==void 0?J(g,il):p in o&&(g=s(()=>Me(il)),r.set(p+"",g))}if(h===void 0)(!f||V_(o,l)?.writable)&&(h=s(()=>Me(void 0)),J(h,Kr(u)),r.set(l,h));else{f=h.v!==il;var m=s(()=>Kr(u));J(h,m)}var _=Reflect.getOwnPropertyDescriptor(o,l);if(_?.set&&_.set.call(d,u),!f){if(n&&typeof l=="string"){var v=r.get("length"),y=Number(l);Number.isInteger(y)&&y>=v.v&&J(v,y+1)}Nd(i)}return!0},ownKeys(o){w(i);var l=Reflect.ownKeys(o).filter(h=>{var f=r.get(h);return f===void 0||f.v!==il});for(var[u,d]of r)d.v!==il&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Aot()}})}function _ge(t){try{if(t!==null&&typeof t=="object"&&eg in t)return t[eg]}catch{}return t}function flt(t,e){return Object.is(_ge(t),_ge(e))}var _b,FF,Rke,Oke,Ike;function _Q(){if(_b===void 0){_b=window,FF=document,Rke=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Oke=V_(e,"firstChild").get,Ike=V_(e,"nextSibling").get,fge(t)&&(t[dQ]=void 0,t[oke]=null,t[hQ]=void 0,t.__e=void 0),fge(r)&&(r[fQ]=void 0)}}function Rc(t=""){return document.createTextNode(t)}function Wl(t){return Oke.call(t)}function zd(t){return Ike.call(t)}function de(t,e){if(!Rn)return Wl(t);var r=Wl(ui);if(r===null)r=ui.appendChild(Rc());else if(e&&r.nodeType!==P3){var n=Rc();return r?.before(n),Ks(n),n}return e&&BF(r),Ks(r),r}function ne(t,e=!1){if(!Rn){var r=Wl(t);return r instanceof Comment&&r.data===""?zd(r):r}if(e){if(ui?.nodeType!==P3){var n=Rc();return ui?.before(n),Ks(n),n}BF(ui)}return ui}function he(t,e=1,r=!1){let n=Rn?ui:t;for(var i;e--;)i=n,n=zd(n);if(!Rn)return n;if(r){if(n?.nodeType!==P3){var a=Rc();return n===null?i?.after(a):n.before(a),Ks(a),a}BF(n)}return Ks(n),n}function Mie(t){t.textContent=""}function Nke(){return!1}function Lie(t,e,r){return document.createElementNS(e??cke,t,void 0)}function BF(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===P3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function plt(t,e){if(e){const r=document.body;t.autofocus=!0,Of(()=>{document.activeElement===r&&t.focus()})}}function UF(t){Rn&&Wl(t)!==null&&Mie(t)}let vge=!1;function kke(){vge||(vge=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[JI]?.()})},{capture:!0}))}function glt(t,e,r,n=!0){n&&r();for(var i of e)t.addEventListener(i,r);ZA(()=>{for(var a of e)t.removeEventListener(a,r)})}function eE(t){var e=da,r=Ei;Bh(null),dg(null);try{return t()}finally{Bh(e),dg(r)}}function Dke(t,e,r,n=r){t.addEventListener(e,()=>eE(r));const i=t[JI];i?t[JI]=()=>{i(),n(!0)}:t[JI]=()=>n(!0),kke()}function Mke(t){Ei===null&&(da===null&&Sot(),Eot()),Qm&&bot()}function mlt(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function jd(t,e){var r=Ei;r!==null&&(r.f&uu)!==0&&(t|=uu);var n={ctx:ls,deps:null,nodes:null,f:t|Kl|Mh,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};zi?.register_created_effect(n);var i=n;if((t&pb)!==0)oT!==null?oT.push(n):ug.ensure().schedule(n);else if(e!==null){try{Hx(n)}catch(s){throw xl(n),s}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Jb)===0&&(i=i.first,(t&Ah)!==0&&(t&cg)!==0&&i!==null&&(i.f|=cg))}if(i!==null&&(i.parent=r,r!==null&&mlt(i,r),da!==null&&(da.f&ic)!==0&&(t&Km)===0)){var a=da;(a.effects??=[]).push(i)}return n}function Pie(){return da!==null&&!xf}function ZA(t){const e=jd(M3,null);return oo(e,ul),e.teardown=t,e}function sr(t){Mke();var e=Ei.f,r=!da&&(e&Wf)!==0&&(e&C0)===0;if(r){var n=ls;(n.e??=[]).push(t)}else return Lke(t)}function Lke(t){return jd(pb|ske,t)}function Cc(t){return Mke(),jd(M3|ske,t)}function U3(t){ug.ensure();const e=jd(Km|Jb,t);return()=>{xl(e)}}function _lt(t){ug.ensure();const e=jd(Km|Jb,t);return(r={})=>new Promise(n=>{r.outro?jy(e,()=>{xl(e),n(void 0)}):(xl(e),n(void 0))})}function $3(t){return jd(pb,t)}function vlt(t){return jd(DT|Jb,t)}function G3(t,e=0){return jd(M3|e,t)}function at(t,e=[],r=[],n=[]){Nie(n,e,r,i=>{jd(M3,()=>t(...i.map(w)))})}function Fie(t,e=[],r=[],n=[]){Nie(n,e,r,i=>{jd(pb,()=>t(...i.map(w)))})}function P1(t,e=0){var r=jd(Ah|e,t);return r}function Pke(t,e=0){var r=jd(_ie|e,t);return r}function Qc(t){return jd(Wf|Jb,t)}function Fke(t){var e=t.teardown;if(e!==null){const r=Qm,n=da;yge(!0),Bh(null);try{e.call(null)}finally{yge(r),Bh(n)}}}function Bie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&eE(()=>{i.abort(LF)});var n=r.next;(r.f&Km)!==0?r.parent=null:xl(r,e),r=n}}function ylt(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Wf)===0&&xl(e),e=r}}function xl(t,e=!0){var r=!1;(e||(t.f&ake)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(Bke(t.nodes.start,t.nodes.end),r=!0),oo(t,uQ),Bie(t,e&&!r),YN(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)a.stop();Fke(t),t.f^=uQ,t.f|=Lh;var i=t.parent;i!==null&&i.first!==null&&Uke(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Bke(t,e){for(;t!==null;){var r=t===e?null:zd(t);t.remove(),t=r}}function Uke(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function jy(t,e,r=!0){var n=[];$ke(t,n,!0);var i=()=>{r&&xl(t),e&&e()},a=n.length;if(a>0){var s=()=>--a||i();for(var o of n)o.out(s)}else i()}function $ke(t,e,r){if((t.f&uu)===0){t.f^=uu;var n=t.nodes&&t.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&e.push(o);for(var i=t.first;i!==null;){var a=i.next;if((i.f&Km)===0){var s=(i.f&cg)!==0||(i.f&Wf)!==0&&(t.f&Ah)!==0;$ke(i,e,s?r:!1)}i=a}}}function Uie(t){Gke(t,!0)}function Gke(t,e){if((t.f&uu)!==0){t.f^=uu,(t.f&ul)===0&&(oo(t,Kl),ug.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&cg)!==0||(r.f&Wf)!==0;Gke(r,i?e:!1),r=n}var a=t.nodes&&t.nodes.t;if(a!==null)for(const s of a)(s.is_global||e)&&s.in()}}function $ie(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:zd(r);e.append(r),r=i}}let EP=!1,Qm=!1;function yge(t){Qm=t}let da=null,xf=!1;function Bh(t){da=t}let Ei=null;function dg(t){Ei=t}let Ph=null;function zke(t){da!==null&&(Ph===null?Ph=[t]:Ph.push(t))}let Gu=null,Ed=0,vh=null;function blt(t){vh=t}let qke=1,xy=0,If=xy;function bge(t){If=t}function Vke(){return++qke}function z3(t){var e=t.f;if((e&Kl)!==0)return!0;if(e&ic&&(t.f&=~gb),(e&lg)!==0){for(var r=t.deps,n=r.length,i=0;i<n;i++){var a=r[i];if(z3(a)&&Cke(a),a.wv>t.wv)return!0}(e&Mh)!==0&&wf===null&&oo(t,ul)}return!1}function Hke(t,e,r=!0){var n=t.reactions;if(n!==null&&!(Ph!==null&&Gx.call(Ph,t)))for(var i=0;i<n.length;i++){var a=n[i];(a.f&ic)!==0?Hke(a,e,!1):e===a&&(r?oo(a,Kl):(a.f&ul)!==0&&oo(a,lg),Iie(a))}}function Yke(t){var e=Gu,r=Ed,n=vh,i=da,a=Ph,s=ls,o=xf,l=If,u=t.f;Gu=null,Ed=0,vh=null,da=(u&(Wf|Km))===0?t:null,Ph=null,zx(t.ctx),xf=!1,If=++xy,t.ac!==null&&(eE(()=>{t.ac.abort(LF)}),t.ac=null);try{t.f|=t9;var d=t.fn,h=d();t.f|=C0;var f=t.deps,p=zi?.is_fork;if(Gu!==null){var g;if(p||YN(t,Ed),f!==null&&Ed>0)for(f.length=Ed+Gu.length,g=0;g<Gu.length;g++)f[Ed+g]=Gu[g];else t.deps=f=Gu;if(Pie()&&(t.f&Mh)!==0)for(g=Ed;g<f.length;g++)(f[g].reactions??=[]).push(t)}else!p&&f!==null&&Ed<f.length&&(YN(t,Ed),f.length=Ed);if(QA()&&vh!==null&&!xf&&f!==null&&(t.f&(ic|lg|Kl))===0)for(g=0;g<vh.length;g++)Hke(vh[g],t);if(i!==null&&i!==t){if(xy++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=xy;if(e!==null)for(const m of e)m.rv=xy;vh!==null&&(n===null?n=vh:n.push(...vh))}return(t.f&H_)!==0&&(t.f^=H_),h}catch(m){return mke(m)}finally{t.f^=t9,Gu=e,Ed=r,vh=n,da=i,Ph=a,zx(s),xf=o,If=l}}function Elt(t,e){let r=e.reactions;if(r!==null){var n=hot.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(e.f&ic)!==0&&(Gu===null||!Gx.call(Gu,e))){var a=e;(a.f&Mh)!==0&&(a.f^=Mh,a.f&=~gb),a.v!==il&&xie(a),dlt(a),YN(a,0)}}function YN(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Elt(t,r[n])}function Hx(t){var e=t.f;if((e&Lh)===0){oo(t,ul);var r=Ei,n=EP;Ei=t,EP=!0;try{(e&(Ah|_ie))!==0?ylt(t):Bie(t),Fke(t);var i=Yke(t);t.teardown=typeof i=="function"?i:null,t.wv=qke;var a}finally{EP=n,Ei=r}}}async function Uh(){await Promise.resolve(),Rie()}function Wke(){return ug.ensure().settled()}function w(t){var e=t.f,r=(e&ic)!==0;if(da!==null&&!xf){var n=Ei!==null&&(Ei.f&Lh)!==0;if(!n&&(Ph===null||!Gx.call(Ph,t))){var i=da.deps;if((da.f&t9)!==0)t.rv<xy&&(t.rv=xy,Gu===null&&i!==null&&i[Ed]===t?Ed++:Gu===null?Gu=[t]:Gu.push(t));else{(da.deps??=[]).push(t);var a=t.reactions;a===null?t.reactions=[da]:Gx.call(a,da)||a.push(da)}}}if(Qm&&Ky.has(t))return Ky.get(t);if(r){var s=t;if(Qm){var o=s.v;return((s.f&ul)===0&&s.reactions!==null||jke(s))&&(o=kie(s)),Ky.set(s,o),o}var l=(s.f&Mh)===0&&!xf&&da!==null&&(EP||(da.f&Mh)!==0),u=(s.f&C0)===0;z3(s)&&(l&&(s.f|=Mh),Cke(s)),l&&!u&&(wke(s),Kke(s))}if(wf?.has(t))return wf.get(t);if((t.f&H_)!==0)throw t.v;return t.v}function Kke(t){if(t.f|=Mh,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&ic)!==0&&(e.f&Mh)===0&&(wke(e),Kke(e))}function jke(t){if(t.v===il)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ky.has(e)||(e.f&ic)!==0&&jke(e))return!0;return!1}function Vi(t){var e=xf;try{return xf=!0,t()}finally{xf=e}}function Xke(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(eg in t)vQ(t);else if(!Array.isArray(t))for(let e in t){const r=t[e];typeof r=="object"&&r&&eg in r&&vQ(r)}}}function vQ(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let n in t)try{vQ(t[n],e)}catch{}const r=MF(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=rke(r);for(let i in n){const a=n[i].get;if(a)try{a.call(t)}catch{}}}}}function Slt(){return Symbol(dke)}function Tlt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Clt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function wlt(t){return Clt.includes(t)}const xlt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Alt(t){return t=t.toLowerCase(),xlt[t]??t}const Rlt=["touchstart","touchmove"];function Olt(t){return Rlt.includes(t)}const Ilt=["textarea","script","style","title"];function Nlt(t){return Ilt.includes(t)}const oI=Symbol("events"),Qke=new Set,yQ=new Set;function Zm(t){if(!Rn)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Gie(t,e,r,n={}){function i(a){if(n.capture||bQ.call(e,a),!a.cancelBubble)return eE(()=>r?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Of(()=>{e.addEventListener(t,i,n)}):e.addEventListener(t,i,n),i}function Ai(t,e,r,n={}){var i=Gie(e,t,r,n);return()=>{t.removeEventListener(e,i,n)}}function Ji(t,e,r,n,i){var a={capture:n,passive:i},s=Gie(t,e,r,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ZA(()=>{e.removeEventListener(t,s,a)})}function tn(t,e,r){(e[oI]??={})[t]=r}function Wi(t){for(var e=0;e<t.length;e++)Qke.add(t[e]);for(var r of yQ)r(t)}let Ege=null;function bQ(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],a=i[0]||t.target;Ege=t;var s=0,o=Ege===t&&t[oI];if(o){var l=i.indexOf(o);if(l!==-1&&(e===document||e===window)){t[oI]=e;return}var u=i.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||t.target,a!==e){gie(t,"currentTarget",{configurable:!0,get(){return a||r}});var d=da,h=Ei;Bh(null),dg(null);try{for(var f,p=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var m=a[oI]?.[n];m!=null&&(!a.disabled||t.target===a)&&m.call(a,t)}catch(_){f?p.push(_):f=_}if(t.cancelBubble||g===e||g===null)break;a=g}if(f){for(let _ of p)queueMicrotask(()=>{throw _});throw f}}finally{t[oI]=e,delete t.currentTarget,Bh(d),dg(h)}}}const klt=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Dlt(t){return klt?.createHTML(t)??t}function Zke(t){var e=Lie("template");return e.innerHTML=Dlt(t.replaceAll("<!>","<!---->")),e.content}function td(t,e){var r=Ei;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function ae(t,e){var r=(e&zot)!==0,n=(e&qot)!==0,i,a=!t.startsWith("<!>");return()=>{if(Rn)return td(ui,null),ui;i===void 0&&(i=Zke(a?t:"<!>"+t),r||(i=Wl(i)));var s=n||Rke?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Wl(s),l=s.lastChild;td(o,l)}else td(s,s);return s}}function Mlt(t,e,r="svg"){var n=!t.startsWith("<!>"),i=`<${r}>${n?t:"<!>"+t}</${r}>`,a;return()=>{if(Rn)return td(ui,null),ui;if(!a){var s=Zke(i),o=Wl(s);a=Wl(o)}var l=a.cloneNode(!0);return td(l,l),l}}function F1(t,e){return Mlt(t,e,"svg")}function fr(t=""){if(!Rn){var e=Rc(t+"");return td(e,e),e}var r=ui;return r.nodeType!==P3?(r.before(r=Rc()),Ks(r)):BF(r),td(r,r),r}function Ee(){if(Rn)return td(ui,null),ui;var t=document.createDocumentFragment(),e=document.createComment(""),r=Rc();return t.append(e,r),td(e,r),t}function H(t,e){if(Rn){var r=Ei;((r.f&C0)===0||r.nodes.end===null)&&(r.nodes.end=ui),Kf();return}t!==null&&t.before(e)}function ra(){if(Rn&&ui&&ui.nodeType===D1&&ui.textContent?.startsWith("$")){const t=ui.textContent.substring(1);return Kf(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}let i9=!0;function QD(t){i9=t}function yt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[fQ]??=t.nodeValue)&&(t[fQ]=r,t.nodeValue=`${r}`)}function $F(t,e){return e3e(t,e)}function Jke(t,e){_Q(),e.intro=e.intro??!1;const r=e.target,n=Rn,i=ui;try{for(var a=Wl(r);a&&(a.nodeType!==D1||a.data!==bie);)a=zd(a);if(!a)throw mb;jl(!0),Ks(a);const s=e3e(t,{...e,anchor:a});return jl(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw s;return s!==mb&&console.warn("Failed to hydrate: ",s),e.recover===!1&&Cot(),_Q(),Mie(r),jl(!1),$F(t,e)}finally{jl(n),Ks(i)}}const ZD=new Map;function e3e(t,{target:e,anchor:r,props:n={},events:i,context:a,intro:s=!0,transformError:o}){_Q();var l=void 0,u=_lt(()=>{var d=r??e.appendChild(Rc());slt(d,{pending:()=>{}},p=>{We({});var g=ls;if(a&&(g.c=a),i&&(n.$$events=i),Rn&&td(p,null),i9=s,l=t(p,n)||{},i9=!0,Rn&&(Ei.nodes.end=ui,ui===null||ui.nodeType!==D1||ui.data!==Sie))throw F3(),mb;Ke()},o);var h=new Set,f=p=>{for(var g=0;g<p.length;g++){var m=p[g];if(!h.has(m)){h.add(m);var _=Olt(m);for(const b of[e,document]){var v=ZD.get(b);v===void 0&&(v=new Map,ZD.set(b,v));var y=v.get(m);y===void 0?(b.addEventListener(m,bQ,{passive:_}),v.set(m,1)):v.set(m,y+1)}}}};return f(DF(Qke)),yQ.add(f),()=>{for(var p of h)for(const _ of[e,document]){var g=ZD.get(_),m=g.get(p);--m==0?(_.removeEventListener(p,bQ),g.delete(p),g.size===0&&ZD.delete(_)):g.set(p,m)}yQ.delete(f),d!==r&&d.parentNode?.removeChild(d)}});return EQ.set(l,u),l}let EQ=new WeakMap;function zie(t,e){const r=EQ.get(t);return r?(EQ.delete(t),r(e)):Promise.resolve()}class q3{anchor;#e=new Map;#t=new Map;#r=new Map;#n=new Set;#i=!0;constructor(e,r=!0){this.anchor=e,this.#i=r}#a=e=>{if(this.#e.has(e)){var r=this.#e.get(e),n=this.#t.get(r);if(n)Uie(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#t.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[a,s]of this.#e){if(this.#e.delete(a),a===e)break;const o=this.#r.get(s);o&&(xl(o.effect),this.#r.delete(s))}for(const[a,s]of this.#t){if(a===r||this.#n.has(a))continue;const o=()=>{if(Array.from(this.#e.values()).includes(a)){var u=document.createDocumentFragment();$ie(s,u),u.append(Rc()),this.#r.set(a,{effect:s,fragment:u})}else xl(s);this.#n.delete(a),this.#t.delete(a)};this.#i||!n?(this.#n.add(a),jy(s,o,!1)):o()}}};#s=e=>{this.#e.delete(e);const r=Array.from(this.#e.values());for(const[n,i]of this.#r)r.includes(n)||(xl(i.effect),this.#r.delete(n))};ensure(e,r){var n=zi,i=Nke();if(r&&!this.#t.has(e)&&!this.#r.has(e))if(i){var a=document.createDocumentFragment(),s=Rc();a.append(s),this.#r.set(e,{effect:Qc(()=>r(s)),fragment:a})}else this.#t.set(e,Qc(()=>r(this.anchor)));if(this.#e.set(n,e),i){for(const[o,l]of this.#t)o===e?n.unskip_effect(l):n.skip_effect(l);for(const[o,l]of this.#r)o===e?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(this.#a),n.ondiscard(this.#s)}else Rn&&(this.anchor=ui),this.#a(n)}}function Re(t,e,r=!1){var n;Rn&&(n=ui,Kf());var i=new q3(t),a=r?cg:0;function s(o,l){if(Rn){var u=Tie(n);if(o!==parseInt(u.substring(1))){var d=HN();Ks(d),i.anchor=d,jl(!1),i.ensure(o,l),jl(!0);return}}i.ensure(o,l)}P1(()=>{var o=!1;e((l,u=0)=>{o=!0,s(u,l)}),o||s(-1,null)},a)}const Llt=Symbol("NaN");function t3e(t,e,r){Rn&&Kf();var n=new q3(t),i=!QA();P1(()=>{var a=e();a!==a&&(a=Llt),i&&a!==null&&typeof a=="object"&&(a={}),n.ensure(a,r)})}function Xy(t,e){return e}function Plt(t,e,r){for(var n=[],i=e.length,a,s=e.length,o=0;o<i;o++){let h=e[o];jy(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var f=t.outrogroups;SQ(t,DF(a.done)),f.delete(a),f.size===0&&(t.outrogroups=null)}}else s-=1},!1)}if(s===0){var l=n.length===0&&r!==null;if(l){var u=r,d=u.parentNode;Mie(d),d.append(u),t.items.clear()}SQ(t,e,!l)}else a={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(a)}function SQ(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const s of t.pending.values())for(const o of s)n.add(t.items.get(o).e)}for(var i=0;i<e.length;i++){var a=e[i];if(n?.has(a)){a.f|=Hp;const s=document.createDocumentFragment();$ie(a,s)}else xl(e[i],r)}}var Sge;function fn(t,e,r,n,i,a=null){var s=t,o=new Map,l=(e&lke)!==0;if(l){var u=t;s=Rn?Ks(Wl(u)):u.appendChild(Rc())}Rn&&Kf();var d=null,h=B3(()=>{var b=r();return kF(b)?b:b==null?[]:DF(b)}),f,p=new Map,g=!0;function m(b){(y.effect.f&Lh)===0&&(y.pending.delete(b),y.fallback=d,Flt(y,f,s,e,n),d!==null&&(f.length===0?(d.f&Hp)===0?Uie(d):(d.f^=Hp,lI(d,null,s)):jy(d,()=>{d=null})))}function _(b){y.pending.delete(b)}var v=P1(()=>{f=w(h);var b=f.length;let E=!1;if(Rn){var S=Tie(s)===Eie;S!==(b===0)&&(s=HN(),Ks(s),jl(!1),E=!0)}for(var T=new Set,C=zi,x=Nke(),A=0;A<b;A+=1){Rn&&ui.nodeType===D1&&ui.data===Sie&&(s=ui,E=!0,jl(!1));var R=f[A],I=n(R,A),L=g?null:o.get(I);L?(L.v&&Vx(L.v,R),L.i&&Vx(L.i,A),x&&C.unskip_effect(L.e)):(L=Blt(o,g?s:Sge??=Rc(),R,I,A,i,e,r),g||(L.e.f|=Hp),o.set(I,L)),T.add(I)}if(b===0&&a&&!d&&(g?d=Qc(()=>a(s)):(d=Qc(()=>a(Sge??=Rc())),d.f|=Hp)),b>T.size&&yot(),Rn&&b>0&&Ks(HN()),!g)if(p.set(C,T),x){for(const[F,O]of o)T.has(F)||C.skip_effect(O.e);C.oncommit(m),C.ondiscard(_)}else m(C);E&&jl(!0),w(h)}),y={effect:v,items:o,pending:p,outrogroups:null,fallback:d};g=!1,Rn&&(s=ui)}function tO(t){for(;t!==null&&(t.f&Wf)===0;)t=t.next;return t}function Flt(t,e,r,n,i){var a=(n&kot)!==0,s=e.length,o=t.items,l=tO(t.effect.first),u,d=null,h,f=[],p=[],g,m,_,v;if(a)for(v=0;v<s;v+=1)g=e[v],m=i(g,v),_=o.get(m).e,(_.f&Hp)===0&&(_.nodes?.a?.measure(),(h??=new Set).add(_));for(v=0;v<s;v+=1){if(g=e[v],m=i(g,v),_=o.get(m).e,t.outrogroups!==null)for(const R of t.outrogroups)R.pending.delete(_),R.done.delete(_);if((_.f&uu)!==0&&(Uie(_),a&&(_.nodes?.a?.unfix(),(h??=new Set).delete(_))),(_.f&Hp)!==0)if(_.f^=Hp,_===l)lI(_,null,r);else{var y=d?d.next:l;_===t.effect.last&&(t.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Q0(t,d,_),Q0(t,_,y),lI(_,y,r),d=_,f=[],p=[],l=tO(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(f.length<p.length){var b=p[0],E;d=b.prev;var S=f[0],T=f[f.length-1];for(E=0;E<f.length;E+=1)lI(f[E],b,r);for(E=0;E<p.length;E+=1)u.delete(p[E]);Q0(t,S.prev,T.next),Q0(t,d,S),Q0(t,T,b),l=b,d=T,v-=1,f=[],p=[]}else u.delete(_),lI(_,l,r),Q0(t,_.prev,_.next),Q0(t,_,d===null?t.effect.first:d.next),Q0(t,d,_),d=_;continue}for(f=[],p=[];l!==null&&l!==_;)(u??=new Set).add(l),p.push(l),l=tO(l.next);if(l===null)continue}(_.f&Hp)===0&&f.push(_),d=_,l=tO(_.next)}if(t.outrogroups!==null){for(const R of t.outrogroups)R.pending.size===0&&(SQ(t,DF(R.done)),t.outrogroups?.delete(R));t.outrogroups.size===0&&(t.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)(_.f&uu)===0&&C.push(_);for(;l!==null;)(l.f&uu)===0&&l!==t.fallback&&C.push(l),l=tO(l.next);var x=C.length;if(x>0){var A=(n&lke)!==0&&s===0?r:null;if(a){for(v=0;v<x;v+=1)C[v].nodes?.a?.measure();for(v=0;v<x;v+=1)C[v].nodes?.a?.fix()}Plt(t,C,A)}}a&&Of(()=>{if(h!==void 0)for(_ of h)_.nodes?.a?.apply()})}function Blt(t,e,r,n,i,a,s,o){var l=(s&Iot)!==0?(s&Dot)===0?Die(r,!1,!1):Xm(r):null,u=(s&Not)!==0?Xm(i):null;return{v:l,i:u,e:Qc(()=>(a(e,l??r,u??i,o),()=>{t.delete(n)}))}}function lI(t,e,r){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end,a=e&&(e.f&Hp)===0?e.nodes.start:r;n!==null;){var s=zd(n);if(a.before(n),n===i)return;n=s}}function Q0(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function Qy(t,e,r=!1,n=!1,i=!1,a=!1){var s=t,o="";if(r){var l=t;Rn&&(s=Ks(Wl(l)))}at(()=>{var u=Ei;if(o===(o=e()??"")){Rn&&Kf();return}if(r&&!Rn){u.nodes=null,l.innerHTML=o,o!==""&&td(Wl(l),l.lastChild);return}if(u.nodes!==null&&(Bke(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){if(Rn){ui.data;for(var d=Kf(),h=d;d!==null&&(d.nodeType!==D1||d.data!=="");)h=d,d=zd(d);if(d===null)throw F3(),mb;td(ui,h),s=Ks(d);return}var f=n?uke:i?Vot:void 0,p=Lie(n?"svg":i?"math":"template",f);p.innerHTML=o;var g=n||i?p:p.content;if(td(Wl(g),g.lastChild),n||i)for(;Wl(g);)s.before(Wl(g));else s.before(g)}})}function ft(t,e,...r){var n=new q3(t);P1(()=>{const i=e()??null;n.ensure(i,i&&(a=>i(a,...r)))},cg)}function Le(t,e,r){var n;Rn&&(n=ui,Kf());var i=new q3(t);P1(()=>{var a=e()??null;if(Rn){var s=Tie(n),o=s===bie,l=a!==null;if(o!==l){var u=HN();Ks(u),i.anchor=u,jl(!1),i.ensure(a,a&&(d=>r(d,a))),jl(!0);return}}i.ensure(a,a&&(d=>r(d,a)))},cg)}const Ult=()=>performance.now(),Am={tick:t=>requestAnimationFrame(t),now:()=>Ult(),tasks:new Set};function r3e(){const t=Am.now();Am.tasks.forEach(e=>{e.c(t)||(Am.tasks.delete(e),e.f())}),Am.tasks.size!==0&&Am.tick(r3e)}function $lt(t){let e;return Am.tasks.size===0&&Am.tick(r3e),{promise:new Promise(r=>{Am.tasks.add(e={c:t,f:r})}),abort(){Am.tasks.delete(e)}}}function JD(t,e){eE(()=>{t.dispatchEvent(new CustomEvent(e))})}function Glt(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function Tge(t){const e={},r=t.split(";");for(const n of r){const[i,a]=n.split(":");if(!i||a===void 0)break;const s=Glt(i.trim());e[s]=a.trim()}return e}const zlt=t=>t;function sl(t,e,r,n){var i=(t&Uot)!==0,a=(t&$ot)!==0,s=i&&a,o=(t&Got)!==0,l=s?"both":i?"in":"out",u,d=e.inert,h=e.style.overflow,f,p;function g(){return eE(()=>u??=r()(e,n?.()??{},{direction:l}))}var m={is_global:o,in(){if(e.inert=d,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=TQ(e,g(),p,1,()=>{JD(e,"introstart")},()=>{JD(e,"introend"),f?.abort(),f=u=void 0,e.style.overflow=h})},out(b){if(!a){b?.(),u=void 0;return}e.inert=!0,p=TQ(e,g(),f,0,()=>{JD(e,"outrostart")},()=>{JD(e,"outroend"),b?.()})},stop:()=>{f?.abort(),p?.abort()}},_=Ei;if((_.nodes.t??=[]).push(m),i&&i9){var v=o;if(!v){for(var y=_.parent;y&&(y.f&cg)!==0;)for(;(y=y.parent)&&(y.f&Ah)===0;);v=!y||(y.f&C0)!==0}v&&$3(()=>{Vi(()=>m.in())})}}function TQ(t,e,r,n,i,a){var s=n===1;if(OS(e)){var o,l=!1;return Of(()=>{if(!l){var v=e({direction:s?"in":"out"});o=TQ(t,v,r,n,i,a)}}),{abort:()=>{l=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(r?.deactivate(),!e?.duration&&!e?.delay)return i(),a(),{abort:Tt,deactivate:Tt,reset:Tt,t:()=>n};const{delay:u=0,css:d,tick:h,easing:f=zlt}=e;var p=[];if(s&&r===void 0&&(h&&h(0,1),d)){var g=Tge(d(0,1));p.push(g,g)}var m=()=>1-n,_=t.animate(p,{duration:u,fill:"forwards"});return _.onfinish=()=>{_.cancel(),i();var v=r?.t()??1-n;r?.abort();var y=n-v,b=e.duration*Math.abs(y),E=[];if(b>0){var S=!1;if(d)for(var T=Math.ceil(b/16.666666666666668),C=0;C<=T;C+=1){var x=v+y*f(C/T),A=Tge(d(x,1-x));E.push(A),S||=A.overflow==="hidden"}S&&(t.style.overflow="hidden"),m=()=>{var R=_.currentTime;return v+y*f(R/b)},h&&$lt(()=>{if(_.playState!=="running")return!1;var R=m();return h(R,1-R),!0})}_=t.animate(E,{duration:b,fill:"forwards"}),_.onfinish=()=>{m=()=>n,h?.(n,1-n),a()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=Tt)},deactivate:()=>{a=Tt},reset:()=>{n===0&&h?.(1,0)},t:()=>m()}}function n3e(t,e,r,n,i,a){let s=Rn;Rn&&Kf();var o=null;Rn&&ui.nodeType===_ot&&(o=ui,Kf());var l=Rn?ui:t,u=new q3(l,!1);P1(()=>{const d=e()||null;var h=r||d==="svg"?uke:void 0;if(d===null){u.ensure(null,null),QD(!0);return}return u.ensure(d,f=>{if(d){if(o=Rn?o:Lie(d,h),td(o,o),n){Rn&&Nlt(d)&&o.append(document.createComment(""));var p=Rn?Wl(o):o.appendChild(Rc());Rn&&(p===null?jl(!1):Ks(p)),n(o,p)}Ei.nodes.end=o,f.before(o)}Rn&&Ks(f)}),QD(!0),()=>{d&&QD(!1)}},cg),ZA(()=>{QD(!0)}),s&&(jl(!0),Ks(l))}function V3(t,e){let r=null,n=Rn;var i;if(Rn){r=ui;for(var a=Wl(document.head);a!==null&&(a.nodeType!==D1||a.data!==t);)a=zd(a);if(a===null)jl(!1);else{var s=zd(a);a.remove(),Ks(s)}}Rn||(i=document.head.appendChild(Rc()));try{P1(()=>{var o=Qc(()=>e(i));o.f|=ake})}finally{n&&(jl(!0),Ks(r))}}function tE(t,e,r){$3(()=>{var n=Vi(()=>e(t,r?.())||{});if(r&&n?.update){var i=!1,a={};G3(()=>{var s=r();Xke(s),i&&Cie(a,s)&&(a=s,n.update(s))}),i=!0}if(n?.destroy)return()=>n.destroy()})}function qlt(t,e){var r=void 0,n;Pke(()=>{r!==(r=e())&&(n&&(xl(n),n=null),r&&(n=Qc(()=>{$3(()=>r(t))})))})}function i3e(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=i3e(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function rN(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=i3e(t))&&(n&&(n+=" "),n+=e);return n}function Fn(t){return typeof t=="object"?rN(t):t??""}const Cge=[...` 	
\r\f \v\uFEFF`];function Vlt(t,e,r){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var a=i.length,s=0;(s=n.indexOf(i,s))>=0;){var o=s+a;(s===0||Cge.includes(n[s-1]))&&(o===n.length||Cge.includes(n[o]))?n=(s===0?"":n.substring(0,s))+n.substring(o+1):s=o}}return n===""?null:n}function wge(t,e=!1){var r=e?" !important;":";",n="";for(var i of Object.keys(t)){var a=t[i];a!=null&&a!==""&&(n+=" "+i+": "+a+r)}return n}function Oz(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Hlt(t,e){if(e){var r="",n,i;if(Array.isArray(e)?(n=e[0],i=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,o=!1,l=[];n&&l.push(...Object.keys(n).map(Oz)),i&&l.push(...Object.keys(i).map(Oz));var u=0,d=-1;const m=t.length;for(var h=0;h<m;h++){var f=t[h];if(o?f==="/"&&t[h-1]==="*"&&(o=!1):a?a===f&&(a=!1):f==="/"&&t[h+1]==="*"?o=!0:f==='"'||f==="'"?a=f:f==="("?s++:f===")"&&s--,!o&&a===!1&&s===0){if(f===":"&&d===-1)d=h;else if(f===";"||h===m-1){if(d!==-1){var p=Oz(t.substring(u,d).trim());if(!l.includes(p)){f!==";"&&h++;var g=t.substring(u,h).trim();r+=" "+g+";"}}u=h+1,d=-1}}}}return n&&(r+=wge(n)),i&&(r+=wge(i,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function lr(t,e,r,n,i,a){var s=t[dQ];if(Rn||s!==r||s===void 0){var o=Vlt(r,n,a);(!Rn||o!==t.getAttribute("class"))&&(o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o)),t[dQ]=r}else if(a&&i!==a)for(var l in a){var u=!!a[l];(i==null||u!==!!i[l])&&t.classList.toggle(l,u)}return a}function Iz(t,e={},r,n){for(var i in r){var a=r[i];e[i]!==a&&(r[i]==null?t.style.removeProperty(i):t.style.setProperty(i,a,n))}}function du(t,e,r,n){var i=t[hQ];if(Rn||i!==e){var a=Hlt(e,n);(!Rn||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t[hQ]=e}else n&&(Array.isArray(n)?(Iz(t,r?.[0],n[0]),Iz(t,r?.[1],n[1],"important")):Iz(t,r,n));return n}function CQ(t,e,r=!1){if(t.multiple){if(e==null)return;if(!kF(e))return Yot();for(var n of t.options)n.selected=e.includes(xge(n));return}for(n of t.options){var i=xge(n);if(flt(i,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function Ylt(t){var e=new MutationObserver(()=>{CQ(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ZA(()=>{e.disconnect()})}function xge(t){return"__value"in t?t.__value:t.value}const rO=Symbol("class"),IS=Symbol("style"),a3e=Symbol("is custom element"),s3e=Symbol("is html"),Wlt=L3?"link":"LINK",Klt=L3?"input":"INPUT",jlt=L3?"option":"OPTION",Xlt=L3?"select":"SELECT",Qlt=L3?"progress":"PROGRESS";function Zlt(t){if(Rn){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;Pr(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var i=t.checked;Pr(t,"checked",null),t.checked=i}}};t[JI]=r,Of(r),kke()}}function o3e(t,e){var r=qie(t);r.value===(r.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==Qlt)||(t.value=e??"")}function Jlt(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Pr(t,e,r,n){var i=qie(t);Rn&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Wlt)||i[e]!==(i[e]=r)&&(e==="loading"&&(t[mot]=r),r==null?t.removeAttribute(e):typeof r!="string"&&l3e(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function ect(t,e,r,n,i=!1,a=!1){if(Rn&&i&&t.nodeName===Klt){var s=t,o=s.type==="checkbox"?"defaultChecked":"defaultValue";o in r||Zlt(s)}var l=qie(t),u=l[a3e],d=!l[s3e];let h=Rn&&u;h&&jl(!1);var f=e||{},p=t.nodeName===jlt;for(var g in e)g in r||(r[g]=null);r.class?r.class=Fn(r.class):(n||r[rO])&&(r.class=null),r[IS]&&(r.style??=null);var m=l3e(t);for(const T in r){let C=r[T];if(p&&T==="value"&&C==null){t.value=t.__value="",f[T]=C;continue}if(T==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";lr(t,_,C,n,e?.[rO],r[rO]),f[T]=C,f[rO]=r[rO];continue}if(T==="style"){du(t,C,e?.[IS],r[IS]),f[T]=C,f[IS]=r[IS];continue}var v=f[T];if(!(C===v&&!(C===void 0&&t.hasAttribute(T)))){f[T]=C;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){const x={},A="$$"+T;let R=T.slice(2);var b=wlt(R);if(Tlt(R)&&(R=R.slice(0,-7),x.capture=!0),!b&&v){if(C!=null)continue;t.removeEventListener(R,f[A],x),f[A]=null}if(b)tn(R,t,C),Wi([R]);else if(C!=null){let I=function(L){f[T].call(this,L)};f[A]=Gie(R,t,I,x)}}else if(T==="style")Pr(t,T,C);else if(T==="autofocus")plt(t,!!C);else if(!u&&(T==="__value"||T==="value"&&C!=null))t.value=t.__value=C;else if(T==="selected"&&p)Jlt(t,C);else{var E=T;d||(E=Alt(E));var S=E==="defaultValue"||E==="defaultChecked";if(C==null&&!u&&!S)if(l[T]=null,E==="value"||E==="checked"){let x=t;const A=e===void 0;if(E==="value"){let R=x.defaultValue;x.removeAttribute(E),x.defaultValue=R,x.value=x.__value=A?R:null}else{let R=x.defaultChecked;x.removeAttribute(E),x.defaultChecked=R,x.checked=A?R:!1}}else t.removeAttribute(T);else S||m.includes(E)&&(u||typeof C!="string")?(t[E]=C,E in l&&(l[E]=il)):typeof C!="function"&&Pr(t,E,C)}}}return h&&jl(!0),f}function Er(t,e,r=[],n=[],i=[],a,s=!1,o=!1){Nie(i,r,n,l=>{var u=void 0,d={},h=t.nodeName===Xlt,f=!1;if(Pke(()=>{var g=e(...l.map(w)),m=ect(t,u,g,a,s,o);f&&h&&"value"in g&&CQ(t,g.value);for(let v of Object.getOwnPropertySymbols(d))g[v]||xl(d[v]);for(let v of Object.getOwnPropertySymbols(g)){var _=g[v];v.description===dke&&(!u||_!==u[v])&&(d[v]&&xl(d[v]),d[v]=Qc(()=>qlt(t,()=>_))),m[v]=_}u=m}),h){var p=t;$3(()=>{CQ(p,u.value,!0),Ylt(p)})}f=!0})}function qie(t){return t[oke]??={[a3e]:t.nodeName.includes("-"),[s3e]:t.namespaceURI===cke}}var Age=new Map;function l3e(t){var e=t.getAttribute("is")||t.nodeName,r=Age.get(e);if(r)return r;Age.set(e,r=[]);for(var n,i=t,a=Element.prototype;a!==i;){n=rke(i);for(var s in n)n[s].set&&s!=="innerHTML"&&s!=="textContent"&&s!=="innerText"&&r.push(s);i=MF(i)}return r}function WN(t,e,r=e){var n=new WeakSet;Dke(t,"input",async i=>{var a=i?t.defaultValue:t.value;if(a=Nz(t)?kz(a):a,r(a),zi!==null&&n.add(zi),await Uh(),a!==(a=e())){var s=t.selectionStart,o=t.selectionEnd,l=t.value.length;if(t.value=a??"",o!==null){var u=t.value.length;s===o&&o===l&&u>l?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=s,t.selectionEnd=Math.min(o,u))}}}),(Rn&&t.defaultValue!==t.value||Vi(e)==null&&t.value)&&(r(Nz(t)?kz(t.value):t.value),zi!==null&&n.add(zi)),G3(()=>{var i=e();if(t===document.activeElement){var a=zi;if(n.has(a))return}Nz(t)&&i===kz(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function Nz(t){var e=t.type;return e==="number"||e==="range"}function kz(t){return t===""?null:+t}function tct(t,e,r=e){Dke(t,"change",()=>{r(t.files)}),Rn&&t.files&&r(t.files),G3(()=>{t.files=e()})}function Dz(t,e){return t===e||t?.[eg]===e}function Qr(t={},e,r,n){var i=ls.r,a=Ei;return $3(()=>{var s,o;return G3(()=>{s=o,o=[],Vi(()=>{Dz(r(...o),t)||(e(t,...o),s&&Dz(r(...s),t)&&e(null,...s))})}),()=>{let l=a;for(;l!==i&&l.parent!==null&&l.parent.f&uQ;)l=l.parent;const u=()=>{o&&Dz(r(...o),t)&&e(null,...o)},d=l.teardown;l.teardown=()=>{u(),d?.()}}}),t}function Rge(t,e){glt(window,["resize"],()=>eE(()=>e(window[t])))}function GF(t=!1){const e=ls,r=e.l.u;if(!r)return;let n=()=>Xke(e.s);if(t){let i=0,a={};const s=qx(()=>{let o=!1;const l=e.s;for(const u in l)l[u]!==a[u]&&(a[u]=l[u],o=!0);return o&&i++,i});n=()=>w(s)}r.b.length&&Cc(()=>{Oge(e,n),lQ(r.b)}),sr(()=>{const i=Vi(()=>r.m.map(pot));return()=>{for(const a of i)typeof a=="function"&&a()}}),r.a.length&&sr(()=>{Oge(e,n),lQ(r.a)})}function Oge(t,e){if(t.l.s)for(const r of t.l.s)w(r);e()}const rct={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function xt(t,e,r){return new Proxy({props:t,exclude:e},rct)}const nct={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(OS(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let i=t.props[n];OS(i)&&(i=i());const a=V_(i,e);if(a&&a.set)return a.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(OS(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const i=V_(n,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){if(e===eg||e===vie)return!1;for(let r of t.props)if(OS(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(OS(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function Bt(...t){return new Proxy({props:t},nct)}function ue(t,e,r,n){var i=!XA||(r&Lot)!==0,a=(r&Fot)!==0,s=(r&Bot)!==0,o=n,l=!0,u=void 0,d=()=>s&&i?(u??=qx(n),w(u)):(l&&(l=!1,o=s?Vi(n):n),o);let h;if(a){var f=eg in t||vie in t;h=V_(t,e)?.set??(f&&e in t?E=>t[e]=E:void 0)}var p,g=!1;a?[p,g]=rlt(()=>t[e]):p=t[e],p===void 0&&n!==void 0&&(p=d(),h&&(i&&wot(),h(p)));var m;if(i?m=()=>{var E=t[e];return E===void 0?d():(l=!0,E)}:m=()=>{var E=t[e];return E!==void 0&&(o=void 0),E===void 0?o:E},i&&(r&Pot)===0)return m;if(h){var _=t.$$legacy;return(function(E,S){return arguments.length>0?((!i||!S||_||g)&&h(S?m():E),E):m()})}var v=!1,y=((r&Mot)!==0?qx:B3)(()=>(v=!1,m()));a&&w(y);var b=Ei;return(function(E,S){if(arguments.length>0){const T=S?w(y):i&&a?Kr(E):E;return J(y,T),v=!0,o!==void 0&&(o=T),E}return Qm&&v||(b.f&Lh)!==0?y.v:w(y)})}function ict(t){return class extends act{constructor(e){super({component:t,...e})}}}class act{#e;#t;constructor(e){var r=new Map,n=(a,s)=>{var o=Die(s,!1,!1);return r.set(a,o),o};const i=new Proxy({...e.props||{},$$events:{}},{get(a,s){return w(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===vie?!0:(w(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,o){return J(r.get(s)??n(s,o),o),Reflect.set(a,s,o)}});this.#t=(e.hydrate?Jke:$F)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Rie(),this.#e=i.$$events;for(const a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||gie(this,a,{get(){return this.#t[a]},set(s){this.#t[a]=s},enumerable:!0});this.#t.$set=a=>{Object.assign(i,a)},this.#t.$destroy=()=>{zie(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const n=(...i)=>r.call(this,...i);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}function Ns(t){ls===null&&yie(),XA&&ls.l!==null?sct(ls).m.push(t):sr(()=>{const e=Vi(t);if(typeof e=="function")return e})}function Vie(t){ls===null&&yie(),Ns(()=>()=>Vi(t))}function sct(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}const oct=Object.freeze(Object.defineProperty({__proto__:null,flushSync:Rie,getAllContexts:pke,getContext:jm,hasContext:wie,hydrate:Jke,mount:$F,onDestroy:Vie,onMount:Ns,setContext:M1,settled:Wke,tick:Uh,unmount:zie,untrack:Vi},Symbol.toStringTag,{value:"Module"}));class zF{constructor(e,r){this.status=e,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class Hie{constructor(e,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=r}}class Yie extends Error{constructor(e,r,n){super(n),this.status=e,this.text=r}}new URL("sveltekit-internal://");function lct(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function cct(t){return t.split("%25").map(decodeURI).join("%25")}function uct(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Mz({href:t}){return t.split("#")[0]}function dct(t,e,r,n=!1){const i=new URL(t);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(u,...d)=>(r(u),s[o](u,...d));e();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const a=["href","pathname","search","toString","toJSON"];n&&a.push("hash");for(const s of a)Object.defineProperty(i,s,{get(){return e(),t[s]},enumerable:!0,configurable:!0});return i}function qm(){}function hct(...t){let e=5381;for(const r of t)if(typeof r=="string"){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n)}else if(ArrayBuffer.isView(r)){const n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);let i=n.length;for(;i;)e=e*33^n[--i]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;function fct(t){const e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}const pct=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:e?.method||"GET")!=="GET"&&nN.delete(Wie(t)),pct(t,e));const nN=new Map;function gct(t,e){const r=Wie(t,e),n=document.querySelector(r);if(n?.textContent){n.remove();let{body:i,...a}=JSON.parse(n.textContent);const s=n.getAttribute("data-ttl");return s&&nN.set(r,{body:i,init:a,ttl:1e3*Number(s)}),n.getAttribute("data-b64")!==null&&(i=fct(i)),Promise.resolve(new Response(i,a))}return window.fetch(t,e)}function mct(t,e,r){if(nN.size>0){const n=Wie(t,r),i=nN.get(n);if(i){if(performance.now()<i.ttl&&["default","force-cache","only-if-cached",void 0].includes(r?.cache))return new Response(i.body,i.init);nN.delete(n)}}return window.fetch(e,r)}function Wie(t,e){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e?.headers||e?.body){const i=[];e.headers&&i.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&i.push(e.body),n+=`[data-hash="${hct(...i)}"]`}return n}const _ct=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function vct(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${bct(t).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return e.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return e.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const s=n.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,u)=>{if(u%2){if(l.startsWith("x+"))return Lz(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Lz(String.fromCharCode(...l.slice(2).split("-").map(m=>parseInt(m,16))));const d=_ct.exec(l),[,h,f,p,g]=d;return e.push({name:p,matcher:g,optional:!!h,rest:!!f,chained:f?u===1&&s[0]==="":!1}),f?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Lz(l)}).join("")}).join("")}/?$`),params:e}}function yct(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function bct(t){return t.slice(1).split("/").filter(yct)}function Ect(t,e,r){const n={},i=t.slice(1),a=i.filter(o=>o!==void 0);let s=0;for(let o=0;o<e.length;o+=1){const l=e[o];let u=i[o-s];if(l.chained&&l.rest&&s&&(u=i.slice(o-s,o+1).filter(d=>d).join("/"),s=0),u===void 0)if(l.rest)u="";else continue;if(!l.matcher||r[l.matcher](u)){n[l.name]=u;const d=e[o+1],h=i[o+1];d&&!d.rest&&d.optional&&h&&l.chained&&(s=0),!d&&!h&&Object.keys(n).length===a.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return n}function Lz(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Sct({nodes:t,server_loads:e,dictionary:r,matchers:n}){const i=new Set(e);return Object.entries(r).map(([o,[l,u,d]])=>{const{pattern:h,params:f}=vct(o),p={id:o,exec:g=>{const m=h.exec(g);if(m)return Ect(m,f,n)},errors:[1,...d||[]].map(g=>t[g]),layouts:[0,...u||[]].map(s),leaf:a(l)};return p.errors.length=p.layouts.length=Math.max(p.errors.length,p.layouts.length),p});function a(o){const l=o<0;return l&&(o=~o),[l,t[o]]}function s(o){return o===void 0?o:[i.has(o),t[o]]}}function c3e(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function Ige(t,e,r=JSON.stringify){const n=r(e);try{sessionStorage[t]=n}catch{}}const Jl=globalThis.__sveltekit__?.base??"",Tct=globalThis.__sveltekit__?.assets??Jl??"",Cct="llama-ui",u3e="sveltekit:snapshot",d3e="sveltekit:scroll",Kie="sveltekit:states",h3e="sveltekit:pageurl",Zy="sveltekit:history",Yx="sveltekit:navigation",ny={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},qF=location.origin;function VF(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const r=document.getElementsByTagName("base");e=r.length?r[0].href:document.URL}return new URL(t,e)}function vb(){return{x:pageXOffset,y:pageYOffset}}function ZE(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const Nge={...ny,"":ny.hover};function f3e(t){let e=t.assignedSlot??t.parentNode;return e?.nodeType===11&&(e=e.host),e}function p3e(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=f3e(t)}}function wQ(t,e,r){let n;try{if(n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),r&&n.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";n.hash=`#${o}${n.hash}`}}catch{}const i=t instanceof SVGAElement?t.target.baseVal:t.target,a=!n||!!i||HF(n,e,r)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),s=n?.origin===qF&&t.hasAttribute("download");return{url:n,external:a,target:i,download:s}}function a9(t){let e=null,r=null,n=null,i=null,a=null,s=null,o=t;for(;o&&o!==document.documentElement;)n===null&&(n=ZE(o,"preload-code")),i===null&&(i=ZE(o,"preload-data")),e===null&&(e=ZE(o,"keepfocus")),r===null&&(r=ZE(o,"noscroll")),a===null&&(a=ZE(o,"reload")),s===null&&(s=ZE(o,"replacestate")),o=f3e(o);function l(u){switch(u){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Nge[n??"off"],preload_data:Nge[i??"off"],keepfocus:l(e),noscroll:l(r),reload:l(a),replace_state:l(s)}}function kge(t){const e=Aie(t);let r=!0;function n(){r=!0,e.update(s=>s)}function i(s){r=!1,e.set(s)}function a(s){let o;return e.subscribe(l=>{(o===void 0||r&&l!==o)&&s(o=l)})}return{notify:n,set:i,subscribe:a}}const g3e={v:qm};function wct(){const{set:t,subscribe:e}=Aie(!1);let r;async function n(){clearTimeout(r);try{const i=await fetch(`${Tct}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!i.ok)return!1;const s=(await i.json()).version!==Cct;return s&&(t(!0),g3e.v(),clearTimeout(r)),s}catch{return!1}}return{subscribe:e,check:n}}function HF(t,e,r){return t.origin!==qF||!t.pathname.startsWith(e)?!0:r?t.pathname!==location.pathname:!1}const m3e=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...m3e];const xct=new Set([...m3e]);[...xct];function Act(t){return t.filter(e=>e!=null)}function e4(t,e){return t+"/"+e}function jie(t){return t instanceof zF||t instanceof Yie?t.status:500}function Rct(t){return t instanceof Yie?t.text:"Internal Error"}let Vs,KN,Pz;const Oct=Ns.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ns.toString()),Dge="a:";Oct?(Vs={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Dge)},KN={current:null},Pz={current:!1}):(Vs=new class{#e=Me({});get data(){return w(this.#e)}set data(e){J(this.#e,e)}#t=Me(null);get form(){return w(this.#t)}set form(e){J(this.#t,e)}#r=Me(null);get error(){return w(this.#r)}set error(e){J(this.#r,e)}#n=Me({});get params(){return w(this.#n)}set params(e){J(this.#n,e)}#i=Me({id:null});get route(){return w(this.#i)}set route(e){J(this.#i,e)}#a=Me({});get state(){return w(this.#a)}set state(e){J(this.#a,e)}#s=Me(-1);get status(){return w(this.#s)}set status(e){J(this.#s,e)}#o=Me(new URL(Dge));get url(){return w(this.#o)}set url(e){J(this.#o,e)}},KN=new class{#e=Me(null);get current(){return w(this.#e)}set current(e){J(this.#e,e)}},Pz=new class{#e=Me(!1);get current(){return w(this.#e)}set current(e){J(this.#e,e)}},g3e.v=()=>Pz.current=!0);function _3e(t){Object.assign(Vs,t)}const Mge={spanContext(){return Ict},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Ict={traceId:"",spanId:"",traceFlags:0},{onMount:Nct}=oct,kct=Vi??(t=>t()),Dct=new Set(["icon","shortcut icon","apple-touch-icon"]);let nO=null;const t1=c3e(d3e)??{},jN=c3e(u3e)??{},tg={url:kge({}),page:kge({}),navigating:Aie(null),updated:wct()};function Xie(t){t1[t]=vb()}function Mct(t,e){let r=t+1;for(;t1[r];)delete t1[r],r+=1;for(r=e+1;jN[r];)delete jN[r],r+=1}function XN(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(qm)}async function v3e(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(Jl||"/");t&&await t.update()}}let Qie,xQ,s9,Rm,AQ,Al;const o9=[],l9=[];let Rh=null;function c9(){Rh?.fork?.then(t=>t?.discard()),Rh=null}const t4=new Map,Zie=new Set,Lct=new Set,MT=new Set;let Rs={branch:[],error:null,url:null},y3e=!1,u9=!1,Lge=!0,QN=!1,iO=!1,b3e=!1,Jie=!1,eae,Tl,Dd,f_;const d9=new Set,Pge=new Map,Fge=new Map;async function Pct(t,e,r){globalThis.__sveltekit__&&(globalThis.__sveltekit__.query,globalThis.__sveltekit__.prerender),document.URL!==location.href&&(location.href=location.href),Al=t,await t.hooks.init?.(),Qie=Sct(t),Rm=document.documentElement,AQ=e,xQ=t.nodes[0],s9=t.nodes[1],xQ(),s9(),Tl=history.state?.[Zy],Dd=history.state?.[Yx],Tl||(Tl=Dd=Date.now(),history.replaceState({...history.state,[Zy]:Tl,[Yx]:Dd},""));const n=t1[Tl];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await Kct(AQ,r)):(await LT({type:"enter",url:VF(Al.hash?Qct(new URL(location.href)):location.href),replace_state:!0}),i()),Wct()}function Fct(){o9.length=0,Jie=!1}function E3e(t){l9.some(e=>e?.snapshot)&&(jN[t]=l9.map(e=>e?.snapshot?.capture()))}function S3e(t){jN[t]?.forEach((e,r)=>{l9[r]?.snapshot?.restore(e)})}function Bge(){Xie(Tl),Ige(d3e,t1),E3e(Dd),Ige(u3e,jN)}async function T3e(t,e,r,n){let i,a;e.invalidateAll&&c9(),await LT({type:"goto",url:VF(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:r,nav_token:n,accept:()=>{if(e.invalidateAll){Jie=!0,i=new Set;for(const[s,o]of Pge)for(const l of o.keys())i.add(e4(s,l));a=new Set;for(const[s,o]of Fge)for(const l of o.keys())a.add(e4(s,l))}e.invalidate&&e.invalidate.forEach(Yct)}}),e.invalidateAll&&Uh().then(Uh).then(()=>{for(const[s,o]of Pge)for(const[l,{resource:u}]of o)i?.has(e4(s,l))&&u.refresh();for(const[s,o]of Fge)for(const[l,{resource:u}]of o)a?.has(e4(s,l))&&u.reconnect()})}async function Bct(t){if(t.id!==Rh?.id){c9();const e={};d9.add(e),Rh={id:t.id,token:e,promise:x3e({...t,preload:e}).then(r=>(d9.delete(e),r.type==="loaded"&&r.state.error&&c9(),r)),fork:null}}return Rh.promise}async function Fz(t){const e=(await YF(t,!1))?.route;e&&await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(r=>r[1]()))}async function C3e(t,e,r){const n={params:Rs.params,route:{id:Rs.route?.id??null},url:new URL(location.href)};Rs={...t.state,nav:n};const i=document.querySelector("style[data-sveltekit]");if(i&&i.remove(),_3e(t.props.page),eae=new Al.root({target:e,props:{...t.props,stores:tg,components:l9},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),S3e(Dd),r){const a={from:null,to:{...n,scroll:t1[Tl]??vb()},willUnload:!1,type:"enter",complete:Promise.resolve()};MT.forEach(s=>s(a))}u9=!0}async function h9({url:t,params:e,branch:r,errors:n,status:i,error:a,route:s,form:o}){let l="never";if(Jl&&(t.pathname===Jl||t.pathname===Jl+"/"))l="always";else for(const g of r)g?.slash!==void 0&&(l=g.slash);t.pathname=lct(t.pathname,l),t.search=t.search;const u={type:"loaded",state:{url:t,params:e,branch:r,error:a,route:s},props:{constructors:Act(r).map(g=>g.node.component),page:KF(Vs)}};o!==void 0&&(u.props.form=o);let d={},h=!Vs,f=0;for(let g=0;g<Math.max(r.length,Rs.branch.length);g+=1){const m=r[g],_=Rs.branch[g];m?.data!==_?.data&&(h=!0),m&&(d={...d,...m.data},h&&(u.props[`data_${f}`]=d),f+=1)}return(!Rs.url||t.href!==Rs.url.href||Rs.error!==a||o!==void 0&&o!==Vs.form||h)&&(u.props.page={error:a,params:e,route:{id:s?.id??null},state:{},status:i,url:new URL(t),form:o??null,data:h?d:Vs.data}),u}async function tae({loader:t,parent:e,url:r,params:n,route:i,server_data_node:a}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},u=await t();if(u.universal?.load){let d=function(...f){for(const p of f){const{href:g}=new URL(p,r);l.dependencies.add(g)}};const h={tracing:{enabled:!1,root:Mge,current:Mge},route:new Proxy(i,{get:(f,p)=>(o&&(l.route=!0),f[p])}),params:new Proxy(n,{get:(f,p)=>(o&&l.params.add(p),f[p])}),data:a?.data??null,url:dct(r,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},Al.hash),async fetch(f,p){f instanceof Request&&(p={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...p});const{resolved:g,promise:m}=w3e(f,p,r);return o&&d(g.href),m},setHeaders:qm,depends:d,parent(){return o&&(l.parent=!0),e()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await u.universal.load.call(null,h)??null}return{node:u,loader:t,server:a,universal:u.universal?.load?{type:"data",data:s,uses:l}:null,data:s??a?.data??null,slash:u.universal?.trailingSlash??a?.slash}}function w3e(t,e,r){let n=t instanceof Request?t.url:t;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=u9?mct(n,i.href,e):gct(n,e);return{resolved:i,promise:a}}function Uct(t,e,r,n,i,a){if(Jie)return!0;if(!i)return!1;if(i.parent&&t||i.route&&e||i.url&&r)return!0;for(const s of i.search_params)if(n.has(s))return!0;for(const s of i.params)if(a[s]!==Rs.params[s])return!0;for(const s of i.dependencies)if(o9.some(o=>o(new URL(s))))return!0;return!1}function rae(t,e){return t?.type==="data"?t:t?.type==="skip"?e??null:null}function $ct(t,e){if(!t)return new Set(e.searchParams.keys());const r=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const n of r){const i=t.searchParams.getAll(n),a=e.searchParams.getAll(n);i.every(s=>a.includes(s))&&a.every(s=>i.includes(s))&&r.delete(n)}return r}function Gct({error:t,url:e,route:r,params:n}){return{type:"loaded",state:{error:t,url:e,route:r,params:n,branch:[]},props:{page:KF(Vs),constructors:[]}}}async function x3e({id:t,invalidating:e,url:r,params:n,route:i,preload:a}){if(Rh?.id===t)return d9.delete(Rh.token),Rh.promise;const{errors:s,layouts:o,leaf:l}=i,u=[...o,l];s.forEach(_=>_?.().catch(qm)),u.forEach(_=>_?.[1]().catch(qm));const d=Rs.url?t!==f9(Rs.url):!1,h=Rs.route?i.id!==Rs.route.id:!1,f=$ct(Rs.url,r);let p=!1;const g=u.map(async(_,v)=>{if(!_)return;const y=Rs.branch[v];return _[1]===y?.loader&&!Uct(p,h,d,f,y.universal?.uses,n)?y:(p=!0,tae({loader:_[1],url:r,params:n,route:i,parent:async()=>{const E={};for(let S=0;S<v;S+=1)Object.assign(E,(await g[S])?.data);return E},server_data_node:rae(_[0]?{type:"skip"}:null,_[0]?y?.server:void 0)}))});for(const _ of g)_.catch(qm);const m=[];for(let _=0;_<u.length;_+=1)if(u[_])try{m.push(await g[_])}catch(v){if(v instanceof Hie)return{type:"redirect",location:v.location};if(d9.has(a))return Gct({error:await ZN(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let y=jie(v),b;if(v instanceof zF)b=v.body;else{if(await tg.updated.check())return await v3e(),await XN(r);b=await ZN(v,{params:n,url:r,route:{id:i.id}})}const E=await zct(_,m,s);return E?h9({url:r,params:n,branch:m.slice(0,E.idx).concat(E.node),errors:s,status:y,error:b,route:i}):await R3e(r,{id:i.id},b,y)}else m.push(void 0);return h9({url:r,params:n,branch:m,errors:s,status:200,error:null,route:i,form:e?void 0:null})}async function zct(t,e,r){for(;t--;)if(r[t]){let n=t;for(;!e[n];)n-=1;try{return{idx:n+1,node:{node:await r[t](),loader:r[t],data:{},server:null,universal:null}}}catch{continue}}}async function nae({status:t,error:e,url:r,route:n}){const i={};let a=null;try{const s=await tae({loader:xQ,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:rae(a)}),o={node:await s9(),loader:s9,universal:null,server:null,data:null};return h9({url:r,params:i,branch:[s,o],status:t,error:e,errors:[],route:null})}catch(s){if(s instanceof Hie)return T3e(new URL(s.location,location.href),{},0);throw s}}async function qct(t){const e=t.href;if(t4.has(e))return t4.get(e);let r;try{const n=(async()=>{let i=await Al.hooks.reroute({url:new URL(t),fetch:async(a,s)=>w3e(a,s,t).promise})??t;if(typeof i=="string"){const a=new URL(t);Al.hash?a.hash=i:a.pathname=i,i=a}return i})();t4.set(e,n),r=await n}catch{t4.delete(e);return}return r}async function YF(t,e){if(t&&!HF(t,Jl,Al.hash)){const r=await qct(t);if(!r)return;const n=Vct(r);for(const i of Qie){const a=i.exec(n);if(a)return{id:f9(t),invalidating:e,route:i,params:uct(a),url:t}}}}function Vct(t){return cct(Al.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(Jl.length))||"/"}function f9(t){return(Al.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function A3e({url:t,type:e,intent:r,delta:n,event:i,scroll:a}){let s=!1;const o=aae(Rs,r,t,e,a??null);n!==void 0&&(o.navigation.delta=n),i!==void 0&&(o.navigation.event=i);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return QN||Zie.forEach(u=>u(l)),s?null:o}async function LT({type:t,url:e,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s={},redirect_count:o=0,nav_token:l={},accept:u=qm,block:d=qm,event:h}){const f=f_;f_=l;const p=await YF(e,!1),g=t==="enter"?aae(Rs,p,e,t):A3e({url:e,type:t,delta:r?.delta,intent:p,scroll:r?.scroll,event:h});if(!g){d(),f_===l&&(f_=f);return}const m=Tl,_=Dd;u(),QN=!0,u9&&g.navigation.type!=="enter"&&tg.navigating.set(KN.current=g.navigation);let v=p&&await x3e(p);if(!v){if(HF(e,Jl,Al.hash))return await XN(e,a);v=await R3e(e,{id:null},await ZN(new Yie(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,a)}if(e=p?.url||e,f_!==l)return g.reject(new Error("navigation aborted")),!1;if(v.type==="redirect"){if(o<20){await LT({type:t,url:new URL(v.location,e),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s,redirect_count:o+1,nav_token:l}),g.fulfil(void 0);return}v=await nae({status:500,error:await ZN(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else v.props.page.status>=400&&await tg.updated.check()&&(await v3e(),await XN(e,a));if(Fct(),Xie(m),E3e(_),v.props.page.url.pathname!==e.pathname&&(e.pathname=v.props.page.url.pathname),s=r?r.state:s,!r){const C=a?0:1,x={[Zy]:Tl+=C,[Yx]:Dd+=C,[Kie]:s};(a?history.replaceState:history.pushState).call(history,x,"",e),a||Mct(Tl,Dd)}const y=p&&Rh?.id===p.id?Rh.fork:null;Rh?.fork&&!y&&c9(),Rh=null,v.props.page.state=s;let b;if(u9){const C=(await Promise.all(Array.from(Lct,R=>R(g.navigation)))).filter(R=>typeof R=="function");if(C.length>0){let R=function(){C.forEach(I=>{MT.delete(I)})};C.push(R),C.forEach(I=>{MT.add(I)})}const x=g.navigation.to;Rs={...v.state,nav:{params:x.params,route:x.route,url:x.url}},v.props.page&&(v.props.page.url=e);const A=y&&await y;A?b=A.commit():(nO=null,eae.$set(v.props),nO&&Object.assign(v.props.page,nO),_3e(v.props.page),b=Wke?.()),b3e=!0}else await C3e(v,AQ,!1);const{activeElement:E}=document;if(await b,await Uh(),await Uh(),f_!==l)return g.reject(new Error("navigation aborted")),!1;v.props.page&&nO&&Object.assign(v.props.page,nO);let S=null;if(Lge){const C=r?r.scroll:i?vb():null;C?scrollTo(C.x,C.y):(S=e.hash&&document.getElementById(I3e(e)))?S.scrollIntoView():scrollTo(0,0)}const T=document.activeElement!==E&&document.activeElement!==document.body;!n&&!T&&Xct(e,!S),Lge=!0,QN=!1,t==="popstate"&&S3e(Dd),g.fulfil(void 0),g.navigation.to&&(g.navigation.to.scroll=vb()),MT.forEach(C=>C(g.navigation)),tg.navigating.set(KN.current=null)}async function R3e(t,e,r,n,i){return t.origin===qF&&t.pathname===location.pathname&&!y3e?await nae({status:n,error:r,url:t,route:e}):await XN(t,i)}function Hct(){let t,e={element:void 0,href:void 0},r;Rm.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(t),t=setTimeout(()=>{a(l,ny.hover)},20)});function n(o){o.defaultPrevented||a(o.composedPath()[0],ny.tap)}Rm.addEventListener("mousedown",n),Rm.addEventListener("touchstart",n,{passive:!0});const i=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(Fz(new URL(l.target.href)),i.unobserve(l.target))},{threshold:0});async function a(o,l){const u=p3e(o,Rm),d=u===e.element&&u?.href===e.href&&l>=r;if(!u||d)return;const{url:h,external:f,download:p}=wQ(u,Jl,Al.hash);if(f||p)return;const g=a9(u),m=h&&f9(Rs.url)===f9(h);if(!(g.reload||m))if(l<=g.preload_data){e={element:u,href:u.href},r=ny.tap;const _=await YF(h,!1);if(!_)return;Bct(_)}else l<=g.preload_code&&(e={element:u,href:u.href},r=l,Fz(h))}function s(){i.disconnect();for(const o of Rm.querySelectorAll("a")){const{url:l,external:u,download:d}=wQ(o,Jl,Al.hash);if(u||d)continue;const h=a9(o);h.reload||(h.preload_code===ny.viewport&&i.observe(o),h.preload_code===ny.eager&&Fz(l))}}MT.add(s),s()}function ZN(t,e){if(t instanceof zF)return t.body;const r=jie(t),n=Rct(t);return Al.hooks.handleError({error:t,event:e,status:r,message:n})??{message:n}}function O3e(t,e){Nct(()=>(t.add(e),()=>{t.delete(e)}))}function H3(t){O3e(MT,t)}function iae(t){O3e(Zie,t)}function Ws(t,e={}){return t=new URL(VF(t)),t.origin!==qF?Promise.reject(new Error("goto: invalid URL")):T3e(t,e,0)}function Yct(t){if(typeof t=="function")o9.push(t);else{const{href:e}=new URL(t,location.href);o9.push(r=>r.href===e)}}function WF(t,e){const r={[Zy]:Tl,[Yx]:Dd,[h3e]:Vs.url.href,[Kie]:e};history.replaceState(r,"",VF(t)),Vs.state=e,eae.$set({page:kct(()=>KF(Vs))})}function Wct(){history.scrollRestoration="manual",addEventListener("beforeunload",e=>{let r=!1;if(Bge(),!QN){const n=aae(Rs,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};Zie.forEach(a=>a(i))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Bge()}),navigator.connection?.saveData||Hct(),Rm.addEventListener("click",async e=>{if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const r=p3e(e.composedPath()[0],Rm);if(!r)return;const{url:n,external:i,target:a,download:s}=wQ(r,Jl,Al.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const o=a9(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||s)return;const[u,d]=(Al.hash?n.hash.replace(/^#/,""):n.href).split("#"),h=u===Mz(location);if(i||o.reload&&(!h||!d)){A3e({url:n,type:"link",event:e})?QN=!0:e.preventDefault();return}if(d!==void 0&&h){const[,f]=Rs.url.href.split("#");if(f===d){if(e.preventDefault(),d===""||d==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const p=r.ownerDocument.getElementById(decodeURIComponent(d));p&&(p.scrollIntoView(),p.focus())}return}if(iO=!0,Xie(Tl),t(n),!o.replace_state)return;iO=!1}e.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await LT({type:"link",url:n,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??n.href===location.href,event:e})}),Rm.addEventListener("submit",e=>{if(e.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const s=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(HF(s,Jl,!1))return;const o=e.target,l=a9(o);if(l.reload)return;e.preventDefault(),e.stopPropagation();const u=new FormData(o,n);s.search=new URLSearchParams(u).toString(),LT({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:e})}),addEventListener("popstate",async e=>{if(!RQ){if(e.state?.[Zy]){const r=e.state[Zy];if(f_={},r===Tl)return;const n=t1[r],i=e.state[Kie]??{},a=new URL(e.state[h3e]??location.href),s=e.state[Yx],o=Rs.url?Mz(location)===Mz(Rs.url):!1;if(s===Dd&&(b3e||o)){i!==Vs.state&&(Vs.state=i),t(a),t1[Tl]=vb(),n&&scrollTo(n.x,n.y),Tl=r;return}const u=r-Tl;await LT({type:"popstate",url:a,popped:{state:i,scroll:n,delta:u},accept:()=>{Tl=r,Dd=s},block:()=>{history.go(-u)},nav_token:f_,event:e})}else if(!iO){const r=new URL(location.href);t(r),Al.hash&&location.reload()}}}),addEventListener("hashchange",()=>{iO&&(iO=!1,history.replaceState({...history.state,[Zy]:++Tl,[Yx]:Dd},"",location.href))});for(const e of document.querySelectorAll("link"))Dct.has(e.rel)&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&tg.navigating.set(KN.current=null)});function t(e){Rs.url=Vs.url=e,tg.page.set(KF(Vs)),tg.page.notify()}}async function Kct(t,{status:e=200,error:r,node_ids:n,params:i,route:a,server_route:s,data:o,form:l}){y3e=!0;const u=new URL(location.href);let d;({params:i={},route:a={id:null}}=await YF(u,!1)||{}),d=Qie.find(({id:p})=>p===a.id);let h,f=!0;try{const p=n.map(async(m,_)=>{const v=o[_];return v?.uses&&(v.uses=jct(v.uses)),tae({loader:Al.nodes[m],url:u,params:i,route:a,parent:async()=>{const y={};for(let b=0;b<_;b+=1)Object.assign(y,(await p[b]).data);return y},server_data_node:rae(v)})}),g=await Promise.all(p);if(d){const m=d.layouts;for(let _=0;_<m.length;_++)m[_]||g.splice(_,0,void 0)}h=await h9({url:u,params:i,branch:g,status:e,error:r,errors:d?.errors,form:l,route:d??null})}catch(p){if(p instanceof Hie){await XN(new URL(p.location,location.href));return}h=await nae({status:jie(p),error:await ZN(p,{url:u,params:i,route:a}),url:u,route:a}),t.textContent="",f=!1}h.props.page&&(h.props.page.state={}),await C3e(h,t,f)}function jct(t){return{dependencies:new Set(t?.dependencies??[]),params:new Set(t?.params??[]),parent:!!t?.parent,route:!!t?.route,url:!!t?.url,search_params:new Set(t?.search_params??[])}}let RQ=!1;function Xct(t,e=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=I3e(t);if(n&&document.getElementById(n)){const{x:a,y:s}=vb();setTimeout(()=>{const o=history.state;RQ=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(o,"",t),e&&scrollTo(a,s),RQ=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let s=0;s<i.rangeCount;s+=1)a.push(i.getRangeAt(s));setTimeout(()=>{if(i.rangeCount===a.length){for(let s=0;s<i.rangeCount;s+=1){const o=a[s],l=i.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}i.removeAllRanges()}})}}}function aae(t,e,r,n,i=null){let a,s;const o=new Promise((u,d)=>{a=u,s=d});return o.catch(qm),{navigation:{from:{params:t.params,route:{id:t.route?.id??null},url:t.url,scroll:vb()},to:r&&{params:e?.params??null,route:{id:e?.route?.id??null},url:r,scroll:i},willUnload:!e,type:n,complete:o},fulfil:a,reject:s}}function KF(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Qct(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function I3e(t){let e;if(Al.hash){const[,,r]=t.hash.split("#",3);e=r??""}else e=t.hash.slice(1);return decodeURIComponent(e)}const Zct="modulepreload",Jct=function(t,e){return new URL(t,e).href},Uge={},Pn=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){let u=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=u(r.map(d=>{if(d=Jct(d,n),d in Uge)return;Uge[d]=!0;const h=d.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(n)for(let g=s.length-1;g>=0;g--){const m=s[g];if(m.href===d&&(!h||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${f}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":Zct,h||(p.as="script"),p.crossOrigin="",p.href=d,l&&p.setAttribute("nonce",l),document.head.appendChild(p),h)return new Promise((g,m)=>{p.addEventListener("load",g),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return e().catch(a)})},eut={},tut="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(tut);var rut=ae('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),nut=ae("<!> <!>",1);function iut(t,e){We(e,!0);let r=ue(e,"components",23,()=>[]),n=ue(e,"data_0",3,null),i=ue(e,"data_1",3,null),a=ue(e,"data_2",3,null);Cc(()=>e.stores.page.set(e.page)),sr(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),i(),a(),e.stores.page.notify()});let s=Me(!1),o=Me(!1),l=Me(null);Ns(()=>{const _=e.stores.page.subscribe(()=>{w(s)&&(J(o,!0),Uh().then(()=>{J(l,document.title||"untitled page",!0)}))});return J(s,!0),_});const u=ee(()=>e.constructors[2]);var d=nut(),h=ne(d);{var f=_=>{const v=ee(()=>e.constructors[0]);var y=Ee(),b=ne(y);Le(b,()=>w(v),(E,S)=>{Qr(S(E,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(T,C)=>{var x=Ee(),A=ne(x);{var R=L=>{const F=ee(()=>e.constructors[1]);var O=Ee(),D=ne(O);Le(D,()=>w(F),(M,P)=>{Qr(P(M,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(N,$)=>{var U=Ee(),B=ne(U);Le(B,()=>w(u),(V,z)=>{Qr(z(V,{get data(){return a()},get form(){return e.form},get params(){return e.page.params}}),G=>r()[2]=G,()=>r()?.[2])}),H(N,U)},$$slots:{default:!0}}),N=>r()[1]=N,()=>r()?.[1])}),H(L,O)},I=L=>{const F=ee(()=>e.constructors[1]);var O=Ee(),D=ne(O);Le(D,()=>w(F),(M,P)=>{Qr(P(M,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),N=>r()[1]=N,()=>r()?.[1])}),H(L,O)};Re(A,L=>{e.constructors[2]?L(R):L(I,-1)})}H(T,x)},$$slots:{default:!0}}),T=>r()[0]=T,()=>r()?.[0])}),H(_,y)},p=_=>{const v=ee(()=>e.constructors[0]);var y=Ee(),b=ne(y);Le(b,()=>w(v),(E,S)=>{Qr(S(E,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),T=>r()[0]=T,()=>r()?.[0])}),H(_,y)};Re(h,_=>{e.constructors[1]?_(f):_(p,-1)})}var g=he(h,2);{var m=_=>{var v=rut(),y=de(v);{var b=E=>{var S=fr();at(()=>yt(S,w(l))),H(E,S)};Re(y,E=>{w(o)&&E(b)})}oe(v),H(_,v)};Re(g,_=>{w(s)&&_(m)})}H(t,d),Ke()}const aut=ict(iut),sut=[()=>Pn(()=>Promise.resolve().then(()=>iar),void 0,import.meta.url),()=>Pn(()=>Promise.resolve().then(()=>car),void 0,import.meta.url),()=>Pn(()=>Promise.resolve().then(()=>har),void 0,import.meta.url),()=>Pn(()=>Promise.resolve().then(()=>gar),void 0,import.meta.url),()=>Pn(()=>Promise.resolve().then(()=>bar),void 0,import.meta.url),()=>Pn(()=>Promise.resolve().then(()=>Car),void 0,import.meta.url),()=>Pn(()=>Promise.resolve().then(()=>xar),void 0,import.meta.url),()=>Pn(()=>Promise.resolve().then(()=>Rar),void 0,import.meta.url)],out=[],lut={"/(chat)":[4,[2]],"/(chat)/chat/[id]":[5,[2]],"/mcp-servers":[6],"/settings/[[section]]":[7,[3]]},sae={handleError:(({error:t})=>{console.error(t)}),reroute:(()=>{}),transport:{}},N3e=Object.fromEntries(Object.entries(sae.transport).map(([t,e])=>[t,e.decode])),cut=Object.fromEntries(Object.entries(sae.transport).map(([t,e])=>[t,e.encode])),uut=!0,dut=(t,e)=>N3e[t](e),hut=Object.freeze(Object.defineProperty({__proto__:null,decode:dut,decoders:N3e,dictionary:lut,encoders:cut,hash:uut,hooks:sae,matchers:eut,nodes:sut,root:aut,server_loads:out},Symbol.toStringTag,{value:"Module"}));function cJr(t,e){Pct(hut,t,e)}const fut={get data(){return Vs.data},get error(){return Vs.error},get form(){return Vs.form},get params(){return Vs.params},get route(){return Vs.route},get state(){return Vs.state},get status(){return Vs.status},get url(){return Vs.url}};tg.updated.check;const ba=fut,put=t=>t;function k3e(t){const e=t-1;return e*e*e+1}function $ge(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Jm(t,{delay:e=0,duration:r=400,easing:n=put}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:a=>`opacity: ${a*i}`}}function p_(t,{delay:e=0,duration:r=400,easing:n=k3e,x:i=0,y:a=0,opacity:s=0}={}){const o=getComputedStyle(t),l=+o.opacity,u=o.transform==="none"?"":o.transform,d=l*(1-s),[h,f]=$ge(i),[p,g]=$ge(a);return{delay:e,duration:r,easing:n,css:(m,_)=>`
			transform: ${u} translate(${(1-m)*h}${f}, ${(1-m)*p}${g});
			opacity: ${l-d*_}`}}function Gge(t,{delay:e=0,duration:r=400,easing:n=k3e,start:i=0,opacity:a=0}={}){const s=getComputedStyle(t),o=+s.opacity,l=s.transform==="none"?"":s.transform,u=1-i,d=o*(1-a);return{delay:e,duration:r,easing:n,css:(h,f)=>`
			transform: ${l} scale(${1-u*f});
			opacity: ${o-d*f}
		`}}const oae="-",gut=t=>{const e=_ut(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{const o=s.split(oae);return o[0]===""&&o.length!==1&&o.shift(),D3e(o,e)||mut(s)},getConflictingClassGroupIds:(s,o)=>{const l=r[s]||[];return o&&n[s]?[...l,...n[s]]:l}}},D3e=(t,e)=>{if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?D3e(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const a=t.join(oae);return e.validators.find(({validator:s})=>s(a))?.classGroupId},zge=/^\[(.+)\]$/,mut=t=>{if(zge.test(t)){const e=zge.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},_ut=t=>{const{theme:e,classGroups:r}=t,n={nextPart:new Map,validators:[]};for(const i in r)OQ(r[i],n,i,e);return n},OQ=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const a=i===""?e:qge(e,i);a.classGroupId=r;return}if(typeof i=="function"){if(vut(i)){OQ(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,s])=>{OQ(s,qge(e,a),r,n)})})},qge=(t,e)=>{let r=t;return e.split(oae).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},vut=t=>t.isThemeGetter,yut=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(a,s)=>{r.set(a,s),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return i(a,s),s},set(a,s){r.has(a)?r.set(a,s):i(a,s)}}},IQ="!",NQ=":",but=NQ.length,Eut=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=i=>{const a=[];let s=0,o=0,l=0,u;for(let g=0;g<i.length;g++){let m=i[g];if(s===0&&o===0){if(m===NQ){a.push(i.slice(l,g)),l=g+but;continue}if(m==="/"){u=g;continue}}m==="["?s++:m==="]"?s--:m==="("?o++:m===")"&&o--}const d=a.length===0?i:i.substring(l),h=Sut(d),f=h!==d,p=u&&u>l?u-l:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}};if(e){const i=e+NQ,a=n;n=s=>s.startsWith(i)?a(s.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},Sut=t=>t.endsWith(IQ)?t.substring(0,t.length-1):t.startsWith(IQ)?t.substring(1):t,Tut=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const i=[];let a=[];return n.forEach(s=>{s[0]==="["||e[s]?(i.push(...a.sort(),s),a=[]):a.push(s)}),i.push(...a.sort()),i}},Cut=t=>({cache:yut(t.cacheSize),parseClassName:Eut(t),sortModifiers:Tut(t),...gut(t)}),wut=/\s+/,xut=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=e,s=[],o=t.trim().split(wut);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{isExternal:h,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=r(d);if(h){l=d+(l.length>0?" "+l:l);continue}let _=!!m,v=n(_?g.substring(0,m):g);if(!v){if(!_){l=d+(l.length>0?" "+l:l);continue}if(v=n(g),!v){l=d+(l.length>0?" "+l:l);continue}_=!1}const y=a(f).join(":"),b=p?y+IQ:y,E=b+v;if(s.includes(E))continue;s.push(E);const S=i(v,_);for(let T=0;T<S.length;++T){const C=S[T];s.push(b+C)}l=d+(l.length>0?" "+l:l)}return l};function Aut(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=M3e(e))&&(n&&(n+=" "),n+=r);return n}const M3e=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=M3e(t[n]))&&(r&&(r+=" "),r+=e);return r};function kQ(t,...e){let r,n,i,a=s;function s(l){const u=e.reduce((d,h)=>h(d),t());return r=Cut(u),n=r.cache.get,i=r.cache.set,a=o,o(l)}function o(l){const u=n(l);if(u)return u;const d=xut(l,r);return i(l,d),d}return function(){return a(Aut.apply(null,arguments))}}const Zo=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},L3e=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P3e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Rut=/^\d+\/\d+$/,Out=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Iut=/\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$/,Nut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dut=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,JE=t=>Rut.test(t),Ni=t=>!!t&&!Number.isNaN(Number(t)),Z0=t=>!!t&&Number.isInteger(Number(t)),Bz=t=>t.endsWith("%")&&Ni(t.slice(0,-1)),Hg=t=>Out.test(t),Mut=()=>!0,Lut=t=>Iut.test(t)&&!Nut.test(t),F3e=()=>!1,Put=t=>kut.test(t),Fut=t=>Dut.test(t),But=t=>!bn(t)&&!En(t),Uut=t=>JA(t,$3e,F3e),bn=t=>L3e.test(t),dv=t=>JA(t,G3e,Lut),Uz=t=>JA(t,Vut,Ni),Vge=t=>JA(t,B3e,F3e),$ut=t=>JA(t,U3e,Fut),r4=t=>JA(t,z3e,Put),En=t=>P3e.test(t),aO=t=>eR(t,G3e),Gut=t=>eR(t,Hut),Hge=t=>eR(t,B3e),zut=t=>eR(t,$3e),qut=t=>eR(t,U3e),n4=t=>eR(t,z3e,!0),JA=(t,e,r)=>{const n=L3e.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},eR=(t,e,r=!1)=>{const n=P3e.exec(t);return n?n[1]?e(n[1]):r:!1},B3e=t=>t==="position"||t==="percentage",U3e=t=>t==="image"||t==="url",$3e=t=>t==="length"||t==="size"||t==="bg-size",G3e=t=>t==="length",Vut=t=>t==="number",Hut=t=>t==="family-name",z3e=t=>t==="shadow",DQ=()=>{const t=Zo("color"),e=Zo("font"),r=Zo("text"),n=Zo("font-weight"),i=Zo("tracking"),a=Zo("leading"),s=Zo("breakpoint"),o=Zo("container"),l=Zo("spacing"),u=Zo("radius"),d=Zo("shadow"),h=Zo("inset-shadow"),f=Zo("text-shadow"),p=Zo("drop-shadow"),g=Zo("blur"),m=Zo("perspective"),_=Zo("aspect"),v=Zo("ease"),y=Zo("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...E(),En,bn],T=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],x=()=>[En,bn,l],A=()=>[JE,"full","auto",...x()],R=()=>[Z0,"none","subgrid",En,bn],I=()=>["auto",{span:["full",Z0,En,bn]},Z0,En,bn],L=()=>[Z0,"auto",En,bn],F=()=>["auto","min","max","fr",En,bn],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...x()],P=()=>[JE,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],N=()=>[t,En,bn],$=()=>[...E(),Hge,Vge,{position:[En,bn]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",zut,Uut,{size:[En,bn]}],V=()=>[Bz,aO,dv],z=()=>["","none","full",u,En,bn],G=()=>["",Ni,aO,dv],Y=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[Ni,Bz,Hge,Vge],ie=()=>["","none",g,En,bn],Z=()=>["none",Ni,En,bn],re=()=>["none",Ni,En,bn],K=()=>[Ni,En,bn],j=()=>[JE,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Hg],breakpoint:[Hg],color:[Mut],container:[Hg],"drop-shadow":[Hg],ease:["in","out","in-out"],font:[But],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Hg],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Hg],shadow:[Hg],spacing:["px",Ni],text:[Hg],"text-shadow":[Hg],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",JE,bn,En,_]}],container:["container"],columns:[{columns:[Ni,bn,En,o]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Z0,"auto",En,bn]}],basis:[{basis:[JE,"full","auto",o,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ni,JE,"auto","initial","none",bn]}],grow:[{grow:["",Ni,En,bn]}],shrink:[{shrink:["",Ni,En,bn]}],order:[{order:[Z0,"first","last","none",En,bn]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[o,"screen",...P()]}],"min-w":[{"min-w":[o,"screen","none",...P()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,aO,dv]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,En,Uz]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bz,bn]}],"font-family":[{font:[Gut,bn,e]}],"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,En,bn]}],"line-clamp":[{"line-clamp":[Ni,"none",En,Uz]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",En,bn]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",En,bn]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ni,"from-font","auto",En,dv]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Ni,"auto",En,bn]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",En,bn]}],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",En,bn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Z0,En,bn],radial:["",En,bn],conic:[Z0,En,bn]},qut,$ut]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ni,En,bn]}],"outline-w":[{outline:["",Ni,aO,dv]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",d,n4,r4]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",h,n4,r4]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Ni,dv]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,n4,r4]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Ni,En,bn]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"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":[Ni]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[En,bn]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[Ni]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",En,bn]}],filter:[{filter:["","none",En,bn]}],blur:[{blur:ie()}],brightness:[{brightness:[Ni,En,bn]}],contrast:[{contrast:[Ni,En,bn]}],"drop-shadow":[{"drop-shadow":["","none",p,n4,r4]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Ni,En,bn]}],"hue-rotate":[{"hue-rotate":[Ni,En,bn]}],invert:[{invert:["",Ni,En,bn]}],saturate:[{saturate:[Ni,En,bn]}],sepia:[{sepia:["",Ni,En,bn]}],"backdrop-filter":[{"backdrop-filter":["","none",En,bn]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Ni,En,bn]}],"backdrop-contrast":[{"backdrop-contrast":[Ni,En,bn]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ni,En,bn]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ni,En,bn]}],"backdrop-invert":[{"backdrop-invert":["",Ni,En,bn]}],"backdrop-opacity":[{"backdrop-opacity":[Ni,En,bn]}],"backdrop-saturate":[{"backdrop-saturate":[Ni,En,bn]}],"backdrop-sepia":[{"backdrop-sepia":["",Ni,En,bn]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",En,bn]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ni,"initial",En,bn]}],ease:[{ease:["linear","initial",v,En,bn]}],delay:[{delay:[Ni,En,bn]}],animate:[{animate:["none",y,En,bn]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,En,bn]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[En,bn,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",En,bn]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",En,bn]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Ni,aO,dv,Uz]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Yut=(t,{cacheSize:e,prefix:r,experimentalParseClassName:n,extend:i={},override:a={}})=>(cI(t,"cacheSize",e),cI(t,"prefix",r),cI(t,"experimentalParseClassName",n),i4(t.theme,a.theme),i4(t.classGroups,a.classGroups),i4(t.conflictingClassGroups,a.conflictingClassGroups),i4(t.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),cI(t,"orderSensitiveModifiers",a.orderSensitiveModifiers),a4(t.theme,i.theme),a4(t.classGroups,i.classGroups),a4(t.conflictingClassGroups,i.conflictingClassGroups),a4(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),q3e(t,i,"orderSensitiveModifiers"),t),cI=(t,e,r)=>{r!==void 0&&(t[e]=r)},i4=(t,e)=>{if(e)for(const r in e)cI(t,r,e[r])},a4=(t,e)=>{if(e)for(const r in e)q3e(t,e,r)},q3e=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},Wut=(t,...e)=>typeof t=="function"?kQ(DQ,t,...e):kQ(()=>Yut(DQ(),t),...e),V3e=kQ(DQ);function an(...t){return V3e(rN(t))}var Kut=/\s+/g,jut=t=>typeof t!="string"||!t?t:t.replace(Kut," ").trim(),p9=(...t)=>{const e=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let a=0,s=n.length;a<s;a++)r(n[a]);return}const i=typeof n;if(i==="string"||i==="number"||i==="bigint"){if(i==="number"&&n!==n)return;e.push(String(n))}else if(i==="object"){const a=Object.keys(n);for(let s=0,o=a.length;s<o;s++){const l=a[s];n[l]&&e.push(l)}}};for(let n=0,i=t.length;n<i;n++){const a=t[n];a!=null&&r(a)}return e.length>0?jut(e.join(" ")):void 0},Yge=t=>t===!1?"false":t===!0?"true":t===0?"0":t,Du=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},Xut=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const a=r[i];if(!n.includes(a)||t[a]!==e[a])return!1}return!0},Qut=(t,e)=>{for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];r in t?t[r]=p9(t[r],n):t[r]=n}return t},H3e=(t,e)=>{for(let r=0;r<t.length;r++){const n=t[r];Array.isArray(n)?H3e(n,e):n&&e.push(n)}},Y3e=(...t)=>{const e=[];H3e(t,e);const r=[];for(let n=0;n<e.length;n++)e[n]&&r.push(e[n]);return r},MQ=(t,e)=>{const r={};for(const n in t){const i=t[n];if(n in e){const a=e[n];Array.isArray(i)||Array.isArray(a)?r[n]=Y3e(a,i):typeof i=="object"&&typeof a=="object"&&i&&a?r[n]=MQ(i,a):r[n]=a+" "+i}else r[n]=i}for(const n in e)n in t||(r[n]=e[n]);return r},Zut={twMerge:!0,twMergeConfig:{}};function Jut(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var bm=Jut(),edt=t=>{const e=(n,i)=>{const{extend:a=null,slots:s={},variants:o={},compoundVariants:l=[],compoundSlots:u=[],defaultVariants:d={}}=n,h={...Zut,...i},f=a?.base?p9(a.base,n?.base):n?.base,p=a?.variants&&!Du(a.variants)?MQ(o,a.variants):o,g=a?.defaultVariants&&!Du(a.defaultVariants)?{...a.defaultVariants,...d}:d;!Du(h.twMergeConfig)&&!Xut(h.twMergeConfig,bm.cachedTwMergeConfig)&&(bm.didTwMergeConfigChange=!0,bm.cachedTwMergeConfig=h.twMergeConfig);const m=Du(a?.slots),_=Du(s)?{}:{base:p9(n?.base,m&&a?.base),...s},v=m?_:Qut({...a?.slots},Du(_)?{base:n?.base}:_),y=Du(a?.compoundVariants)?l:Y3e(a?.compoundVariants,l),b=S=>{if(Du(p)&&Du(s)&&m)return t(f,S?.class,S?.className)(h);if(y&&!Array.isArray(y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof y}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const T=(O,D=p,M=null,P=null)=>{const N=D[O];if(!N||Du(N))return null;const $=P?.[O]??S?.[O];if($===null)return null;const U=Yge($);if(typeof U=="object")return null;const B=g?.[O],V=U??Yge(B);return N[V||"false"]},C=()=>{if(!p)return null;const O=Object.keys(p),D=[];for(let M=0;M<O.length;M++){const P=T(O[M],p);P&&D.push(P)}return D},x=(O,D)=>{if(!p||typeof p!="object")return null;const M=[];for(const P in p){const N=T(P,p,O,D),$=O==="base"&&typeof N=="string"?N:N&&N[O];$&&M.push($)}return M},A={};for(const O in S){const D=S[O];D!==void 0&&(A[O]=D)}const R=(O,D)=>{const M=typeof S?.[O]=="object"?{[O]:S[O]?.initial}:{};return{...g,...A,...M,...D}},I=(O=[],D)=>{const M=[],P=O.length;for(let N=0;N<P;N++){const{class:$,className:U,...B}=O[N];let V=!0;const z=R(null,D);for(const G in B){const Y=B[G],W=z[G];if(Array.isArray(Y)){if(!Y.includes(W)){V=!1;break}}else{if((Y==null||Y===!1)&&(W==null||W===!1))continue;if(W!==Y){V=!1;break}}}V&&($&&M.push($),U&&M.push(U))}return M},L=O=>{const D=I(y,O);if(!Array.isArray(D))return D;const M={},P=t;for(let N=0;N<D.length;N++){const $=D[N];if(typeof $=="string")M.base=P(M.base,$)(h);else if(typeof $=="object")for(const U in $)M[U]=P(M[U],$[U])(h)}return M},F=O=>{if(u.length<1)return null;const D={},M=R(null,O);for(let P=0;P<u.length;P++){const{slots:N=[],class:$,className:U,...B}=u[P];if(!Du(B)){let V=!0;for(const z in B){const G=M[z],Y=B[z];if(G===void 0||(Array.isArray(Y)?!Y.includes(G):Y!==G)){V=!1;break}}if(!V)continue}for(let V=0;V<N.length;V++){const z=N[V];D[z]||(D[z]=[]),D[z].push([$,U])}}return D};if(!Du(s)||!m){const O={};if(typeof v=="object"&&!Du(v)){const D=t;for(const M in v)O[M]=P=>{const N=L(P),$=F(P);return D(v[M],x(M,P),N?N[M]:void 0,$?$[M]:void 0,P?.class,P?.className)(h)}}return O}return t(f,C(),I(y),S?.class,S?.className)(h)},E=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return b.variantKeys=E(),b.extend=a,b.base=f,b.slots=v,b.variants=p,b.defaultVariants=g,b.compoundSlots=u,b.compoundVariants=y,b};return{tv:e,createTV:n=>(i,a)=>e(i,a?MQ(n,a):n)}},tdt=t=>Du(t)?V3e:Wut({...t,extend:{theme:t.theme,classGroups:t.classGroups,conflictingClassGroupModifiers:t.conflictingClassGroupModifiers,conflictingClassGroups:t.conflictingClassGroups,...t.extend}}),rdt=(t,e)=>{const r=p9(t);return!r||!(e?.twMerge??!0)?r:((!bm.cachedTwMerge||bm.didTwMergeConfigChange)&&(bm.didTwMergeConfigChange=!1,bm.cachedTwMerge=tdt(bm.cachedTwMergeConfig)),bm.cachedTwMerge(r)||void 0)},ndt=(...t)=>e=>rdt(t,e),{tv:Y3}=edt(ndt);const Wx=Y3({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive shadow-sm hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white!",outline:"shadow-sm hover:text-accent-foreground hover:bg-muted-foreground/10 backdrop-blur-sm dark:border-input border",secondary:"bg-background dark:bg-muted-foreground/15 dark:text-secondary-foreground shadow-sm text-foreground hover:bg-muted-foreground/20 dark:hover:bg-muted-foreground/25",ghost:"hover:text-accent-foreground hover:bg-muted-foreground/10 backdrop-blur-sm",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4","icon-lg":"size-10",icon:"size-9","icon-sm":"size-5 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}});var idt=ae("<a><!></a>"),adt=ae("<button><!></button>");function Mn(t,e){We(e,!0);let r=ue(e,"variant",3,"default"),n=ue(e,"size",3,"default"),i=ue(e,"ref",15,null),a=ue(e,"href",3,void 0),s=ue(e,"type",3,"button"),o=xt(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var l=Ee(),u=ne(l);{var d=f=>{var p=idt();Er(p,m=>({"data-slot":"button",class:m,href:e.disabled?void 0:a(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...o}),[()=>an(Wx({variant:r(),size:n()}),e.class)],void 0,void 0,"svelte-1q39rn8");var g=de(p);ft(g,()=>e.children??Tt),oe(p),Qr(p,m=>i(m),()=>i()),H(f,p)},h=f=>{var p=adt();Er(p,m=>({"data-slot":"button",class:m,type:s(),disabled:e.disabled,...o}),[()=>an(Wx({variant:r(),size:n()}),e.class)],void 0,void 0,"svelte-1q39rn8");var g=de(p);ft(g,()=>e.children??Tt),oe(p),Qr(p,m=>i(m),()=>i()),H(f,p)};Re(u,f=>{a()?f(d):f(h,-1)})}H(t,l),Ke()}function sdt(t){return typeof t=="function"}function W3(t){return t!==null&&typeof t=="object"}const odt=["string","number","bigint","boolean"];function LQ(t){return t==null||odt.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>LQ(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const Kx=Symbol("box"),jF=Symbol("is-writable");function St(t,e){const r=ee(t);return e?{[Kx]:!0,[jF]:!0,get current(){return w(r)},set current(n){e(n)}}:{[Kx]:!0,get current(){return t()}}}function K3(t){return W3(t)&&Kx in t}function lae(t){return K3(t)&&jF in t}function W3e(t){return K3(t)?t:sdt(t)?St(t):nu(t)}function ldt(t){return Object.entries(t).reduce((e,[r,n])=>K3(n)?(lae(n)?Object.defineProperty(e,r,{get(){return n.current},set(i){n.current=i}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function cdt(t){return lae(t)?{[Kx]:!0,get current(){return t.current}}:t}function nu(t){let e=Me(Kr(t));return{[Kx]:!0,[jF]:!0,get current(){return w(e)},set current(r){J(e,r,!0)}}}function rE(t){let e=Me(Kr(t));return{[Kx]:!0,[jF]:!0,get current(){return w(e)},set current(r){J(e,r,!0)}}}rE.from=W3e;rE.with=St;rE.flatten=ldt;rE.readonly=cdt;rE.isBox=K3;rE.isWritableBox=lae;function K3e(...t){return function(e){for(const r of t)if(r){if(e.defaultPrevented)return;typeof r=="function"?r.call(this,e):r.current?.call(this,e)}}}var udt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var eS={},$z,Wge;function ddt(){if(Wge)return $z;Wge=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
`,u="/",d="*",h="",f="comment",p="declaration";$z=function(m,_){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];_=_||{};var v=1,y=1;function b(F){var O=F.match(e);O&&(v+=O.length);var D=F.lastIndexOf(l);y=~D?F.length-D:y+F.length}function E(){var F={line:v,column:y};return function(O){return O.position=new S(F),x(),O}}function S(F){this.start=F,this.end={line:v,column:y},this.source=_.source}S.prototype.content=m;function T(F){var O=new Error(_.source+":"+v+":"+y+": "+F);if(O.reason=F,O.filename=_.source,O.line=v,O.column=y,O.source=m,!_.silent)throw O}function C(F){var O=F.exec(m);if(O){var D=O[0];return b(D),m=m.slice(D.length),O}}function x(){C(r)}function A(F){var O;for(F=F||[];O=R();)O!==!1&&F.push(O);return F}function R(){var F=E();if(!(u!=m.charAt(0)||d!=m.charAt(1))){for(var O=2;h!=m.charAt(O)&&(d!=m.charAt(O)||u!=m.charAt(O+1));)++O;if(O+=2,h===m.charAt(O-1))return T("End of comment missing");var D=m.slice(2,O-2);return y+=2,b(D),m=m.slice(O),y+=2,F({type:f,comment:D})}}function I(){var F=E(),O=C(n);if(O){if(R(),!C(i))return T("property missing ':'");var D=C(a),M=F({type:p,property:g(O[0].replace(t,h)),value:D?g(D[0].replace(t,h)):h});return C(s),M}}function L(){var F=[];A(F);for(var O;O=I();)O!==!1&&(F.push(O),A(F));return F}return x(),L()};function g(m){return m?m.replace(o,h):h}return $z}var Kge;function hdt(){if(Kge)return eS;Kge=1;var t=eS&&eS.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(eS,"__esModule",{value:!0}),eS.default=r;var e=t(ddt());function r(n,i){var a=null;if(!n||typeof n!="string")return a;var s=(0,e.default)(n),o=typeof i=="function";return s.forEach(function(l){if(l.type==="declaration"){var u=l.property,d=l.value;o?i(u,d,l):d&&(a=a||{},a[u]=d)}}),a}return eS}var fdt=hdt();const jge=sd(fdt),pdt=jge.default||jge,gdt=/\d/,mdt=["-","_","/","."];function _dt(t=""){if(!gdt.test(t))return t!==t.toLowerCase()}function vdt(t){const e=[];let r="",n,i;for(const a of t){const s=mdt.includes(a);if(s===!0){e.push(r),r="",n=void 0;continue}const o=_dt(a);if(i===!1){if(n===!1&&o===!0){e.push(r),r=a,n=o;continue}if(n===!0&&o===!1&&r.length>1){const l=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=l+a,n=o;continue}}r+=a,n=o,i=s}return e.push(r),e}function j3e(t){return t?vdt(t).map(e=>bdt(e)).join(""):""}function ydt(t){return Edt(j3e(t||""))}function bdt(t){return t?t[0].toUpperCase()+t.slice(1):""}function Edt(t){return t?t[0].toLowerCase()+t.slice(1):""}function uI(t){if(!t)return{};const e={};function r(n,i){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[j3e(n)]=i;return}if(n.startsWith("--")){e[n]=i;return}e[ydt(n)]=i}return pdt(t,r),e}function Jy(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function Sdt(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const Tdt=Sdt(/[A-Z]/,t=>`-${t.toLowerCase()}`);function Cdt(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${Tdt(e)}: ${t[e]};`).join(`
`)}function cae(t={}){return Cdt(t).replace(`
`," ")}const wdt=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],xdt=new Set(wdt);function Adt(t){return xdt.has(t)}function un(...t){const e={...t[0]};for(let r=1;r<t.length;r++){const n=t[r];if(n){for(const i of Object.keys(n)){const a=e[i],s=n[i],o=typeof a=="function",l=typeof s=="function";if(o&&Adt(i)){const u=a,d=s;e[i]=K3e(u,d)}else if(o&&l)e[i]=Jy(a,s);else if(i==="class"){const u=LQ(a),d=LQ(s);u&&d?e[i]=rN(a,s):u?e[i]=rN(a):d&&(e[i]=rN(s))}else if(i==="style"){const u=typeof a=="object",d=typeof s=="object",h=typeof a=="string",f=typeof s=="string";if(u&&d)e[i]={...a,...s};else if(u&&f){const p=uI(s);e[i]={...a,...p}}else if(h&&d){const p=uI(a);e[i]={...p,...s}}else if(h&&f){const p=uI(a),g=uI(s);e[i]={...p,...g}}else u?e[i]=a:d?e[i]=s:h?e[i]=a:f&&(e[i]=s)}else e[i]=s!==void 0?s:a}for(const i of Object.getOwnPropertySymbols(n)){const a=e[i],s=n[i];e[i]=s!==void 0?s:a}}}return typeof e.style=="object"&&(e.style=cae(e.style).replaceAll(`
`," ")),e.hidden===!1&&(e.hidden=void 0,delete e.hidden),e.disabled===!1&&(e.disabled=void 0,delete e.disabled),e}const X3e={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};cae(X3e);const Q3e=typeof window<"u"?window:void 0;function Rdt(t){let e=t.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var Odt=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Idt=["difference","intersection","symmetricDifference","union"],Xge=!1;class uo extends Set{#e=new Map;#t=Me(0);#r=Me(0);#n=If||-1;constructor(e){if(super(),e){for(var r of e)super.add(r);this.#r.v=super.size}Xge||this.#a()}#i(e){return If===this.#n?Me(e):Xm(e)}#a(){Xge=!0;var e=uo.prototype,r=Set.prototype;for(const n of Odt)e[n]=function(...i){return w(this.#t),r[n].apply(this,i)};for(const n of Idt)e[n]=function(...i){w(this.#t);var a=r[n].apply(this,i);return new uo(a)}}has(e){var r=super.has(e),n=this.#e,i=n.get(e);if(i===void 0){if(!r)return w(this.#t),!1;i=this.#i(!0),n.set(e,i)}return w(i),r}add(e){return super.has(e)||(super.add(e),J(this.#r,super.size),Nd(this.#t)),this}delete(e){var r=super.delete(e),n=this.#e,i=n.get(e);return i!==void 0&&(n.delete(e),J(i,!1)),r&&(J(this.#r,super.size),Nd(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var r of e.values())J(r,!1);e.clear(),J(this.#r,0),Nd(this.#t)}}keys(){return this.values()}values(){return w(this.#t),super.values()}entries(){return w(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return w(this.#r)}}class As extends Map{#e=new Map;#t=Me(0);#r=Me(0);#n=If||-1;constructor(e){if(super(),e){for(var[r,n]of e)super.set(r,n);this.#r.v=super.size}}#i(e){return If===this.#n?Me(e):Xm(e)}has(e){var r=this.#e,n=r.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),r.set(e,n);else return w(this.#t),!1;return w(n),!0}forEach(e,r){this.#a(),super.forEach(e,r)}get(e){var r=this.#e,n=r.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),r.set(e,n);else{w(this.#t);return}return w(n),super.get(e)}set(e,r){var n=this.#e,i=n.get(e),a=super.get(e),s=super.set(e,r),o=this.#t;if(i===void 0)i=this.#i(0),n.set(e,i),J(this.#r,super.size),Nd(o);else if(a!==r){Nd(i);var l=o.reactions===null?null:new Set(o.reactions),u=l===null||!i.reactions?.every(d=>l.has(d));u&&Nd(o)}return s}delete(e){var r=this.#e,n=r.get(e),i=super.delete(e);return n!==void 0&&(r.delete(e),J(n,-1)),i&&(J(this.#r,super.size),Nd(this.#t)),i}clear(){if(super.size!==0){super.clear();var e=this.#e;J(this.#r,0);for(var r of e.values())J(r,-1);Nd(this.#t),e.clear()}}#a(){w(this.#t);var e=this.#e;if(this.#r.v!==e.size){for(var r of super.keys())if(!e.has(r)){var n=this.#i(0);e.set(r,n)}}for([,n]of this.#e)w(n)}keys(){return w(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return w(this.#r),super.size}}class Ndt{#e;#t;constructor(e,r){this.#e=e,this.#t=L1(r)}get current(){return this.#t(),this.#e()}}const kdt=/\(.+\)/,Ddt=new Set(["all","print","screen","and","or","not","only"]);class Z3e extends Ndt{constructor(e,r){let n=kdt.test(e)||e.split(/[\s,]+/).some(a=>Ddt.has(a.trim()))?e:`(${e})`;const i=window.matchMedia(n);super(()=>i.matches,a=>Ai(i,"change",a))}}let Mdt=class{#e;#t;constructor(e={}){const{window:r=Q3e,document:n=r?.document}=e;r!==void 0&&(this.#e=n,this.#t=L1(i=>{const a=Ai(r,"focusin",i),s=Ai(r,"focusout",i);return()=>{a(),s()}}))}get current(){return this.#t?.(),this.#e?Rdt(this.#e):null}};new Mdt;function J3e(t){return typeof t=="function"}function Ldt(t,e){if(J3e(t)){const n=t();return n===void 0?e:n}return t===void 0?e:t}let vo=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return wie(this.#t)}get(){const e=jm(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const r=jm(this.#t);return r===void 0?e:r}set(e){return M1(this.#t,e)}};function XF(t,e){let r=Me(null);const n=ee(()=>Ldt(e,250));function i(...a){if(w(r))w(r).timeout&&clearTimeout(w(r).timeout);else{let s,o;const l=new Promise((u,d)=>{s=u,o=d});J(r,{timeout:null,runner:null,promise:l,resolve:s,reject:o},!0)}return w(r).runner=async()=>{if(!w(r))return;const s=w(r);J(r,null);try{s.resolve(await t.apply(this,a))}catch(o){s.reject(o)}},w(r).timeout=setTimeout(w(r).runner,w(n)),w(r).promise}return i.cancel=async()=>{(!w(r)||w(r).timeout===null)&&(await new Promise(a=>setTimeout(a,0)),!w(r)||w(r).timeout===null)||(clearTimeout(w(r).timeout),w(r).reject("Cancelled"),J(r,null))},i.runScheduledNow=async()=>{(!w(r)||!w(r).timeout)&&(await new Promise(a=>setTimeout(a,0)),!w(r)||!w(r).timeout)||(clearTimeout(w(r).timeout),w(r).timeout=null,await w(r).runner?.())},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!w(r)?.timeout}}),i}function Pdt(t,e){switch(t){case"post":sr(e);break;case"pre":Cc(e);break}}function e5e(t,e,r,n={}){const{lazy:i=!1}=n;let a=!i,s=Array.isArray(t)?[]:void 0;Pdt(e,()=>{const o=Array.isArray(t)?t.map(u=>u()):t();if(!a){a=!0,s=o;return}const l=Vi(()=>r(o,s));return s=o,l})}function di(t,e,r){e5e(t,"post",e,r)}function Fdt(t,e,r){e5e(t,"pre",e,r)}di.pre=Fdt;function Qge(t){return J3e(t)?t():t}class Bdt{#e={width:0,height:0};#t=!1;#r;#n;#i;#a=ee(()=>(w(this.#o)?.(),this.getSize().width));#s=ee(()=>(w(this.#o)?.(),this.getSize().height));#o=ee(()=>{const e=Qge(this.#n);if(e)return L1(r=>{if(!this.#i)return;const n=new this.#i.ResizeObserver(i=>{this.#t=!0;for(const a of i){const s=this.#r.box==="content-box"?a.contentBoxSize:a.borderBoxSize,o=Array.isArray(s)?s:[s];this.#e.width=o.reduce((l,u)=>Math.max(l,u.inlineSize),0),this.#e.height=o.reduce((l,u)=>Math.max(l,u.blockSize),0)}r()});return n.observe(e),()=>{this.#t=!1,n.disconnect()}})});constructor(e,r={box:"border-box"}){this.#i=r.window??Q3e,this.#r=r,this.#n=e,this.#e={width:0,height:0}}calculateSize(){const e=Qge(this.#n);if(!e||!this.#i)return;const r=e.offsetWidth,n=e.offsetHeight;if(this.#r.box==="border-box")return{width:r,height:n};const i=this.#i.getComputedStyle(e),a=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),s=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),o=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),l=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),u=r-a-o,d=n-s-l;return{width:u,height:d}}getSize(){return this.#t?this.#e:this.calculateSize()??this.#e}get current(){return w(this.#o)?.(),this.getSize()}get width(){return w(this.#a)}get height(){return w(this.#s)}}class uae{#e=Me(!1);constructor(){sr(()=>(Vi(()=>J(this.#e,!0)),()=>{J(this.#e,!1)}))}get current(){return w(this.#e)}}class Udt{#e=()=>{};#t=ee(()=>this.#e());constructor(e,r){let n;r!==void 0&&(n=r),this.#e=()=>{try{return n}finally{n=e()}}}get current(){return w(this.#t)}}function Kh(t){sr(()=>()=>{t()})}function QF(t){sr(()=>Vi(()=>t()))}function dae(t,e){return setTimeout(e,t)}function Ku(t){Uh().then(t)}const $dt=1,Gdt=9,zdt=11;function PQ(t){return W3(t)&&t.nodeType===$dt&&typeof t.nodeName=="string"}function t5e(t){return W3(t)&&t.nodeType===Gdt}function qdt(t){return W3(t)&&t.constructor?.name==="VisualViewport"}function Vdt(t){return W3(t)&&t.nodeType!==void 0}function r5e(t){return Vdt(t)&&t.nodeType===zdt&&"host"in t}function Hdt(t,e){if(!t||!e||!PQ(t)||!PQ(e))return!1;const r=e.getRootNode?.();if(t===e||t.contains(e))return!0;if(r&&r5e(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function tR(t){return t5e(t)?t:qdt(t)?t.document:t?.ownerDocument??document}function hae(t){return r5e(t)?hae(t.host):t5e(t)?t.defaultView??window:PQ(t)?t.ownerDocument?.defaultView??window:window}function Ydt(t){let e=t.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}class w0{element;#e=ee(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return w(this.#e)}set root(e){J(this.#e,e)}constructor(e){typeof e=="function"?this.element=St(e):this.element=e}getDocument=()=>tR(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ydt(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,r)=>this.getWindow().setTimeout(e,r);clearTimeout=e=>this.getWindow().clearTimeout(e)}function Yi(t,e){return{[Slt()]:r=>K3(t)?(t.current=r,Vi(()=>e?.(r)),()=>{"isConnected"in r&&r.isConnected||(t.current=null,e?.(null))}):(t(r),Vi(()=>e?.(r)),()=>{"isConnected"in r&&r.isConnected||(t(null),e?.(null))})}}function e0(t){return t?"true":"false"}function Wdt(t){return t?"true":void 0}function ac(t){return t?"":void 0}function FQ(t){return t?!0:void 0}function np(t){return t?"open":"closed"}function Kdt(t){return t?"checked":"unchecked"}function nE(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}function n5e(t,e){return e?"mixed":t?"true":"false"}class jdt{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(r=>[r,this.getAttr(r)]))}getAttr(e,r){return r?`data-${r}-${e}`:`${this.#t}${e}`}selector(e,r){return`[${this.getAttr(e,r)}]`}}function Sg(t){const e=new jdt(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const Yp="ArrowDown",j3="ArrowLeft",X3="ArrowRight",zp="ArrowUp",ZF="End",hg="Enter",Xdt="Escape",JF="Home",fae="PageDown",pae="PageUp",Pd=" ",BQ="Tab";function Qdt(t){return window.getComputedStyle(t).getPropertyValue("direction")}function Zdt(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?j3:X3,vertical:Yp}[e]}function Jdt(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?X3:j3,vertical:zp}[e]}function eht(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:Zdt(t,e),prevKey:Jdt(t,e)}}const i5e=typeof document<"u",UQ=tht();function tht(){return i5e&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function jf(t){return t instanceof HTMLElement}function Ju(t){return t instanceof Element}function a5e(t){return t instanceof Element||t instanceof SVGElement}function g9(t){return t.pointerType==="touch"}function rht(t){return t.matches(":focus-visible")}function nht(t){return t!==null}function iht(t){return t instanceof HTMLInputElement&&"select"in t}class aht{#e;#t=rE(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,r,n=!1){const i=this.#e.rootNode.current;if(!i||!e)return;const a=this.getCandidateNodes();if(!a.length)return;const s=a.indexOf(e),o=Qdt(i),{nextKey:l,prevKey:u}=eht(o,this.#e.orientation.current),d=this.#e.loop.current,h={[l]:s+1,[u]:s-1,[JF]:0,[ZF]:a.length-1};if(n){const g=l===Yp?X3:Yp,m=u===zp?j3:zp;h[g]=s+1,h[m]=s-1}let f=h[r.key];if(f===void 0)return;r.preventDefault(),f<0&&d?f=a.length-1:f===a.length&&d&&(f=0);const p=a[f];if(p)return p.focus(),this.#t.current=p.id,this.#e.onCandidateFocus?.(p),p}getTabIndex(e){const r=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&r[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){const e=this.#t.current;if(!e)return;const r=this.#e.rootNode.current?.querySelector(`#${e}`);!r||!jf(r)||r.focus()}}class s5e{#e;#t=null;#r=null;#n=0;constructor(e){this.#e=e,Kh(()=>this.#i())}#i(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#r?.disconnect(),this.#r=null,this.#n++}run(e){this.#i();const r=this.#e.ref.current;if(!r)return;if(typeof r.getAnimations!="function"){this.#a(e);return}const n=this.#n,i=()=>{n===this.#n&&this.#a(e)},a=()=>{if(n!==this.#n)return;const o=r.getAnimations();if(o.length===0){i();return}Promise.all(o.map(l=>l.finished)).then(()=>{i()}).catch(()=>{if(n!==this.#n)return;if(r.getAnimations().some(d=>d.pending||d.playState!=="finished")){a();return}i()})},s=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,a()})};if(!this.#e.afterTick.current){s();return}this.#t=window.requestAnimationFrame(()=>{this.#t=null;const o="data-starting-style";if(!r.hasAttribute(o)){s();return}this.#r=new MutationObserver(()=>{n===this.#n&&(r.hasAttribute(o)||(this.#r?.disconnect(),this.#r=null,s()))}),this.#r.observe(r,{attributes:!0,attributeFilter:[o]})})}#a(e){const r=()=>{e()};this.#e.afterTick?Ku(r):r()}}class r1{#e;#t;#r;#n=Me(!1);#i=Me(void 0);#a=!1;#s=null;constructor(e){this.#e=e,J(this.#n,e.open.current,!0),this.#t=e.enabled??!0,this.#r=new s5e({ref:this.#e.ref,afterTick:this.#e.open}),Kh(()=>this.#o()),di(()=>this.#e.open.current,r=>{if(!this.#a){this.#a=!0;return}if(this.#o(),!r&&this.#e.shouldSkipExitAnimation?.()){J(this.#n,!1),J(this.#i,void 0),this.#e.onComplete?.();return}if(r&&J(this.#n,!0),J(this.#i,r?"starting":"ending",!0),r&&(this.#s=window.requestAnimationFrame(()=>{this.#s=null,this.#e.open.current&&J(this.#i,void 0)})),!this.#t){r||J(this.#n,!1),J(this.#i,void 0),this.#e.onComplete?.();return}this.#r.run(()=>{r===this.#e.open.current&&(this.#e.open.current||J(this.#n,!1),J(this.#i,void 0),this.#e.onComplete?.())})})}get shouldRender(){return w(this.#n)}get transitionStatus(){return w(this.#i)}#o(){this.#s!==null&&(window.cancelAnimationFrame(this.#s),this.#s=null)}}function Tn(){}function na(t,e){return`bits-${t}`}const sht=Sg({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),t0=new vo("Dialog.Root | AlertDialog.Root");class eB{static create(e){const r=t0.getOr(null);return t0.set(new eB(e,r))}opts;#e=Me(null);get triggerNode(){return w(this.#e)}set triggerNode(e){J(this.#e,e,!0)}#t=Me(null);get contentNode(){return w(this.#t)}set contentNode(e){J(this.#t,e,!0)}#r=Me(null);get overlayNode(){return w(this.#r)}set overlayNode(e){J(this.#r,e,!0)}#n=Me(null);get descriptionNode(){return w(this.#n)}set descriptionNode(e){J(this.#n,e,!0)}#i=Me(void 0);get contentId(){return w(this.#i)}set contentId(e){J(this.#i,e,!0)}#a=Me(void 0);get titleId(){return w(this.#a)}set titleId(e){J(this.#a,e,!0)}#s=Me(void 0);get triggerId(){return w(this.#s)}set triggerId(e){J(this.#s,e,!0)}#o=Me(void 0);get descriptionId(){return w(this.#o)}set descriptionId(e){J(this.#o,e,!0)}#c=Me(null);get cancelNode(){return w(this.#c)}set cancelNode(e){J(this.#c,e,!0)}#l=Me(0);get nestedOpenCount(){return w(this.#l)}set nestedOpenCount(e){J(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,r){this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new r1({ref:St(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new r1({ref:St(()=>this.overlayNode),open:this.opts.open,enabled:!0}),di(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Kh(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>sht.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#d=ee(()=>({"data-state":np(this.opts.open.current)}));get sharedProps(){return w(this.#d)}set sharedProps(e){J(this.#d,e)}}class gae{static create(e){return new gae(e,t0.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Pd||e.key===hg)&&(e.preventDefault(),this.root.handleClose())}#e=ee(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}class mae{static create(e){return new mae(e,t0.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref)}#e=ee(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}class _ae{static create(e){return new _ae(e,t0.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=Yi(this.opts.ref),di.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}#e=ee(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}class vae{static create(e){return new vae(e,t0.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=Yi(this.opts.ref,n=>{this.root.descriptionNode=n}),di.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}#e=ee(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}class tB{static create(e){return new tB(e,t0.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n?.id})}#e=ee(()=>({open:this.root.opts.open.current}));get snippetProps(){return w(this.#e)}set snippetProps(e){J(this.#e,e)}#t=ee(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":ac(this.root.nestedOpenCount>0),"data-nested":ac(this.root.parent!==null),...nE(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}}class yae{static create(e){return new yae(e,t0.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref,n=>this.root.overlayNode=n)}#e=ee(()=>({open:this.root.opts.open.current}));get snippetProps(){return w(this.#e)}set snippetProps(e){J(this.#e,e)}#t=ee(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":ac(this.root.nestedOpenCount>0),"data-nested":ac(this.root.parent!==null),...nE(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class bae{static create(e){return new bae(e,t0.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref,n=>this.root.cancelNode=n),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Pd||e.key===hg)&&(e.preventDefault(),this.root.handleClose())}#e=ee(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}function oht(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"onOpenChange",3,Tn),i=ue(e,"onOpenChangeComplete",3,Tn);eB.create({variant:St(()=>"alert-dialog"),open:St(()=>r(),o=>{r(o),n()(o)}),onOpenChangeComplete:St(()=>i())});var a=Ee(),s=ne(a);ft(s,()=>e.children??Tt),H(t,a),Ke()}var lht=ae("<div><!></div>");function Eae(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"level",3,2),s=xt(e,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const o=_ae.create({id:St(()=>n()),level:St(()=>a()),ref:St(()=>i(),p=>i(p))}),l=ee(()=>un(s,o.props));var u=Ee(),d=ne(u);{var h=p=>{var g=Ee(),m=ne(g);ft(m,()=>e.child,()=>({props:w(l)})),H(p,g)},f=p=>{var g=lht();Er(g,()=>({...w(l)}));var m=de(g);ft(m,()=>e.children??Tt),oe(g),H(p,g)};Re(d,p=>{e.child?p(h):p(f,-1)})}H(t,u),Ke()}var cht=ae("<button><!></button>");function uht(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref"]);const s=mae.create({id:St(()=>n()),ref:St(()=>i(),f=>i(f))}),o=ee(()=>un(a,s.props));var l=Ee(),u=ne(l);{var d=f=>{var p=Ee(),g=ne(p);ft(g,()=>e.child,()=>({props:w(o)})),H(f,p)},h=f=>{var p=cht();Er(p,()=>({...w(o)}));var g=de(p);ft(g,()=>e.children??Tt),oe(p),H(f,p)};Re(u,f=>{e.child?f(d):f(h,-1)})}H(t,l),Ke()}var dht=ae("<button><!></button>");function hht(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"disabled",3,!1),s=xt(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const o=bae.create({id:St(()=>n()),ref:St(()=>i(),p=>i(p)),disabled:St(()=>!!a())}),l=ee(()=>un(s,o.props));var u=Ee(),d=ne(u);{var h=p=>{var g=Ee(),m=ne(g);ft(m,()=>e.child,()=>({props:w(l)})),H(p,g)},f=p=>{var g=dht();Er(g,()=>({...w(l)}));var m=de(g);ft(m,()=>e.children??Tt),oe(g),H(p,g)};Re(d,p=>{e.child?p(h):p(f,-1)})}H(t,u),Ke()}function fht(t,e){var r=Ee(),n=ne(r);t3e(n,()=>e.children,i=>{var a=Ee(),s=ne(a);ft(s,()=>e.children??Tt),H(i,a)}),H(t,r)}const pht=new vo("BitsConfig");function ght(){const t=new mht(null,{});return pht.getOr(t).opts}class mht{opts;constructor(e,r){const n=_ht(e,r);this.opts={defaultPortalTo:n(i=>i.defaultPortalTo),defaultLocale:n(i=>i.defaultLocale)}}}function _ht(t,e){return r=>St(()=>{const i=r(e)?.current;if(i!==void 0)return i;if(t!==null)return r(t.opts)?.current})}function vht(t,e){return r=>{const n=ght();return St(()=>{const i=r();if(i!==void 0)return i;const a=t(n).current;return a!==void 0?a:e})}}const yht=vht(t=>t.defaultPortalTo,"body");function Tg(t,e){We(e,!0);const r=yht(()=>e.to),n=pke();let i=ee(a);function a(){if(!i5e||e.disabled)return null;let h=null;return typeof r.current=="string"?h=document.querySelector(r.current):h=r.current,h}let s;function o(){s&&(zie(s),s=null)}di([()=>w(i),()=>e.disabled],([h,f])=>{if(!h||f){o();return}return s=$F(fht,{target:h,props:{children:e.children},context:n}),()=>{o()}});var l=Ee(),u=ne(l);{var d=h=>{var f=Ee(),p=ne(f);ft(p,()=>e.children??Tt),H(h,f)};Re(u,h=>{e.disabled&&h(d)})}H(t,l),Ke()}class bht{eventName;options;constructor(e,r={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const i=a=>{r(a)};return Ai(e,this.eventName,i,n)}}function Zge(t,e=500){let r=null;const n=(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function o5e(t,e){return t===e||t.contains(e)}function l5e(t){return t?.ownerDocument??document}function Eht(t,e){const{clientX:r,clientY:n}=t,i=e.getBoundingClientRect();return r<i.left||r>i.right||n<i.top||n>i.bottom}const $Q=[hg,Pd],Sht=[Yp,pae,JF],c5e=[zp,fae,ZF],Tht=[...Sht,...c5e],Cht={ltr:[...$Q,X3],rtl:[...$Q,j3]},wht={ltr:[j3],rtl:[X3]};function ff(t){return t.pointerType==="mouse"}function xht(t,{select:e=!1}={}){if(!t||!t.focus)return;const r=tR(t);if(r.activeElement===t)return;const n=r.activeElement;t.focus({preventScroll:!0}),t!==n&&iht(t)&&e&&t.select()}function Aht(t,{select:e=!1}={},r){const n=r();for(const i of t)if(xht(i,{select:e}),r()!==n)return!0}let sO=Me(!1);class g_{static _refs=0;static _cleanup;constructor(){sr(()=>(g_._refs===0&&(g_._cleanup=U3(()=>{const e=[],r=i=>{J(sO,!1)},n=i=>{J(sO,!0)};return e.push(Ai(document,"pointerdown",r,{capture:!0}),Ai(document,"pointermove",r,{capture:!0}),Ai(document,"keydown",n,{capture:!0})),Jy(...e)})),g_._refs++,()=>{g_._refs--,g_._refs===0&&(J(sO,!1),g_._cleanup?.())}))}get current(){return w(sO)}set current(e){J(sO,e,!0)}}var u5e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],m9=u5e.join(","),d5e=typeof Element>"u",yb=d5e?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_9=!d5e&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},v9=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),a=i===""||i==="true",s=a||r&&e&&t(e.parentNode);return s},Rht=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},h5e=function(e,r,n){if(v9(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(m9));return r&&yb.call(e,m9)&&i.unshift(e),i=i.filter(n),i},f5e=function t(e,r,n){for(var i=[],a=Array.from(e);a.length;){var s=a.shift();if(!v9(s,!1))if(s.tagName==="SLOT"){var o=s.assignedElements(),l=o.length?o:s.children,u=t(l,!0,n);n.flatten?i.push.apply(i,u):i.push({scopeParent:s,candidates:u})}else{var d=yb.call(s,m9);d&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var h=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!v9(h,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(h&&f){var p=t(h===!0?s.children:h.children,!0,n);n.flatten?i.push.apply(i,p):i.push({scopeParent:s,candidates:p})}else a.unshift.apply(a,s.children)}}return i},p5e=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},g5e=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Rht(e))&&!p5e(e)?0:e.tabIndex},Oht=function(e,r){var n=g5e(e);return n<0&&r&&!p5e(e)?0:n},Iht=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},m5e=function(e){return e.tagName==="INPUT"},Nht=function(e){return m5e(e)&&e.type==="hidden"},kht=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},Dht=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},Mht=function(e){if(!e.name)return!0;var r=e.form||_9(e),n=function(o){return r.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var a=Dht(i,e.form);return!a||a===e},Lht=function(e){return m5e(e)&&e.type==="radio"},Pht=function(e){return Lht(e)&&!Mht(e)},Fht=function(e){var r,n=e&&_9(e),i=(r=n)===null||r===void 0?void 0:r.host,a=!1;if(n&&n!==e){var s,o,l;for(a=!!((s=i)!==null&&s!==void 0&&(o=s.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&i;){var u,d,h;n=_9(i),i=(u=n)===null||u===void 0?void 0:u.host,a=!!((d=i)!==null&&d!==void 0&&(h=d.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return a},Jge=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},Bht=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=yb.call(e,"details>summary:first-of-type"),s=a?e.parentElement:e;if(yb.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var l=e.parentElement,u=_9(e);if(l&&!l.shadowRoot&&i(l)===!0)return Jge(e);e.assignedSlot?e=e.assignedSlot:!l&&u!==e.ownerDocument?e=u.host:e=l}e=o}if(Fht(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Jge(e);return!1},Uht=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return yb.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},y9=function(e,r){return!(r.disabled||v9(r)||Nht(r)||Bht(r,e)||kht(r)||Uht(r))},GQ=function(e,r){return!(Pht(r)||g5e(r)<0||!y9(e,r))},$ht=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Ght=function t(e){var r=[],n=[];return e.forEach(function(i,a){var s=!!i.scopeParent,o=s?i.scopeParent:i,l=Oht(o,s),u=s?t(i.candidates):o;l===0?s?r.push.apply(r,u):r.push(o):n.push({documentOrder:a,tabIndex:l,item:i,isScope:s,content:u})}),n.sort(Iht).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(r)},_5e=function(e,r){r=r||{};var n;return r.getShadowRoot?n=f5e([e],r.includeContainer,{filter:GQ.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:$ht}):n=h5e(e,r.includeContainer,GQ.bind(null,r)),Ght(n)},v5e=function(e,r){r=r||{};var n;return r.getShadowRoot?n=f5e([e],r.includeContainer,{filter:y9.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=h5e(e,r.includeContainer,y9.bind(null,r)),n},rB=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return yb.call(e,m9)===!1?!1:GQ(r,e)},zht=u5e.concat("iframe").join(","),y5e=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return yb.call(e,zht)===!1?!1:y9(r,e)};function iN(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function qht(t,e){if(!rB(t,iN()))return Vht(t,e);const r=tR(t),n=_5e(r.body,iN());e==="prev"&&n.reverse();const i=n.indexOf(t);return i===-1?r.body:n.slice(i+1)[0]}function Vht(t,e){const r=tR(t);if(!y5e(t,iN()))return r.body;const n=v5e(r.body,iN());e==="prev"&&n.reverse();const i=n.indexOf(t);return i===-1?r.body:n.slice(i+1).find(s=>rB(s,iN()))??r.body}function Hht(t,e,r=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===t.length-1?r?t[0]:void 0:t[e+1]}function Yht(t,e,r=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===0?r?t[t.length-1]:void 0:t[e-1]}function Wht(t,e,r,n=!0){if(t.length===0||e<0||e>=t.length)return;let i=e+r;return n?i=(i%t.length+t.length)%t.length:i=Math.max(0,Math.min(i,t.length-1)),t[i]}function Kht(t,e,r,n=!0){if(t.length===0||e<0||e>=t.length)return;let i=e-r;return n?i=(i%t.length+t.length)%t.length:i=Math.max(0,Math.min(i,t.length-1)),t[i]}function Sae(t,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const h=n.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(h)).length<=1)return Sae(t,h,r);const p=r?.toLowerCase();if(p&&p.startsWith(h)&&p.charAt(h.length)===" "&&e.trim()===h)return r;const g=t.filter(m=>m.toLowerCase().startsWith(n));if(g.length>0){const m=r?t.indexOf(r):-1;return eme(g,Math.max(m,0)).find(y=>y!==r)||r}}const a=e.length>1&&Array.from(e).every(h=>h===e[0])?e[0]:e,s=a.toLowerCase(),o=r?t.indexOf(r):-1;let l=eme(t,Math.max(o,0));a.length===1&&(l=l.filter(h=>h!==r));const d=l.find(h=>h?.toLowerCase().startsWith(s));return d!==r?d:void 0}function eme(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const jht={afterMs:1e4,onChange:Tn};function b5e(t,e){const{afterMs:r,onChange:n,getWindow:i}={...jht,...e};let a=null,s=Me(Kr(t));function o(){return i().setTimeout(()=>{J(s,t,!0),n?.(t)},r)}return sr(()=>()=>{a&&i().clearTimeout(a)}),St(()=>w(s),l=>{J(s,l,!0),n?.(l),a&&i().clearTimeout(a),a=o()})}class E5e{#e;#t;#r=ee(()=>this.#e.onMatch?this.#e.onMatch:e=>e.focus());#n=ee(()=>this.#e.getCurrentItem?this.#e.getCurrentItem:this.#e.getActiveElement);constructor(e){this.#e=e,this.#t=b5e("",{afterMs:1e3,getWindow:e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){if(!r.length)return;this.#t.current=this.#t.current+e;const n=w(this.#n)(),i=r.find(l=>l===n)?.textContent?.trim()??"",a=r.map(l=>l.textContent?.trim()??""),s=Sae(a,this.#t.current,i),o=r.find(l=>l.textContent?.trim()===s);return o&&w(this.#r)(o),o}resetTypeahead(){this.#t.current=""}get search(){return this.#t.current}}const Xht="data-context-menu-trigger",Qht="data-context-menu-content",S5e=new vo("Menu.Root"),jx=new vo("Menu.Root | Menu.Sub"),Tae=new vo("Menu.Content"),Cae=new bht("bitsmenuopen",{bubbles:!1,cancelable:!0}),Zht=Sg({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Jht{#e;#t=null;#r=null;#n=!1;#i=null;#a=null;#s=null;#o=null;constructor(e){this.#e=e,di([e.triggerNode,e.contentNode,e.enabled],([r,n,i])=>{if(this.#v(),!r||!n||!i)return;const a=h=>{ff(h)&&(this.#o={x:h.clientX,y:h.clientY},this.#n||this.#u(h,"content"))},s=h=>{ff(h)&&this.#p(h,"content")},o=h=>{ff(h)&&(this.#n||this.#u(h,"trigger"))},l=h=>{if(ff(h)){if(Ju(h.relatedTarget)){const f=this.#e.subContentSelector(),p=h.relatedTarget.closest(f);if(p&&p!==n&&p.id&&!!n.querySelector(`[aria-controls="${p.id}"]`))return}this.#p(h,"trigger")}},u=h=>{ff(h)&&this.#f()},d=h=>{ff(h)&&this.#f()};return r.addEventListener("pointermove",a),r.addEventListener("pointerleave",s),r.addEventListener("pointerenter",u),n.addEventListener("pointermove",o),n.addEventListener("pointerleave",l),n.addEventListener("pointerenter",d),()=>{r.removeEventListener("pointermove",a),r.removeEventListener("pointerleave",s),r.removeEventListener("pointerenter",u),n.removeEventListener("pointermove",o),n.removeEventListener("pointerleave",l),n.removeEventListener("pointerenter",d),this.#v()}}),Kh(()=>{this.#v()})}#c(){const e=this.#e.parentContentNode();return e?e.getBoundingClientRect():this.#e.triggerNode()?.getBoundingClientRect()??null}#l(e,r){const n=this.#e.triggerNode(),i=this.#e.contentNode();if(!n||!i)return null;const a=n.getBoundingClientRect(),s=i.getBoundingClientRect(),o=tft(a,s);let l,u,d;return r==="content"?(l=this.#n?this.#a??e:e,u=s):(l=this.#o??e,u=this.#c()??a,d=s),this.#a=l,{corridor:rft(a,s,o),intent:nft(l,u,o,r,d),targetRect:u,side:o}}#d(e,r,n){return tme(e,r)||tme(e,n)}#u(e,r){const n={x:e.clientX,y:e.clientY};this.#l(n,r)&&(this.#i=r,this.#s=n)}#p(e,r){if(!this.#e.enabled())return;const n=this.#e.triggerNode(),i=this.#e.contentNode();if(!n||!i)return;const a=e.relatedTarget;if(Ju(a)&&(r==="content"&&i.contains(a)||r==="trigger"&&n.contains(a)))return;const s={x:e.clientX,y:e.clientY},o=this.#l(s,r);if(o){if(!rme(s,o.targetRect)&&!this.#d(s,o.corridor,o.intent)){this.#C();return}this.#n=!0,this.#i=r,this.#s=s,this.#e.setIsPointerInTransit(!0),this.#E(),this.#S()}}#g=null;#f(){if(!this.#n)return;const e=this.#i==="trigger";this.#y(),this.#T(),this.#n=!1,this.#C(),e?(this.#h(),this.#g=setTimeout(()=>{this.#g=null,this.#e.setIsPointerInTransit(!1)},100)):this.#e.setIsPointerInTransit(!1)}#h(){this.#g!==null&&(clearTimeout(this.#g),this.#g=null)}#m(){const e=this.#s;this.#y(),this.#T(),this.#h(),this.#n=!1,this.#e.setIsPointerInTransit(!1),this.#C(),this.#e.onIntentExit(e)}#v(){this.#y(),this.#T(),this.#h(),this.#n&&this.#e.setIsPointerInTransit(!1),this.#n=!1,this.#i=null,this.#a=null,this.#s=null,this.#o=null}#_(e){const r=this.#e.contentNode();if(!r)return!1;const i=r.ownerDocument.elementFromPoint(e.x,e.y);if(!i)return!1;const a=this.#e.subContentSelector(),s=i.closest(a);return!s||s===r?!1:s.id?!!r.querySelector(`[aria-controls="${s.id}"]`):!1}#b=e=>{if(!this.#n||!this.#i||!ff(e))return;const r=this.#e.triggerNode(),n=this.#e.contentNode();if(!r||!n){this.#m();return}this.#T();const i={x:e.clientX,y:e.clientY};this.#s=i;const a=r.getBoundingClientRect(),s=n.getBoundingClientRect();if(this.#i==="content"&&rme(i,s)){this.#f();return}if(this.#i==="trigger"&&eft(i,a,4)){this.#f();return}if(this.#_(i)){this.#S();return}const o=this.#l(i,this.#i);if(!o){this.#m();return}if(this.#d(i,o.corridor,o.intent)){this.#S();return}this.#m()};#E(){if(this.#t)return;const e=tR(this.#e.triggerNode()??this.#e.contentNode());e&&(e.addEventListener("pointermove",this.#b,!0),this.#t=()=>{e.removeEventListener("pointermove",this.#b,!0),this.#t=null})}#y(){this.#t?.()}#S(){this.#T(),this.#r=setTimeout(()=>{this.#r=null,this.#n&&this.#m()},500)}#T(){this.#r!==null&&(clearTimeout(this.#r),this.#r=null)}#C(){this.#i=null,this.#a=null,this.#s=null}}function tme(t,e){const{x:r,y:n}=t;let i=!1;for(let a=0,s=e.length-1;a<e.length;s=a++){const o=e[a].x,l=e[a].y,u=e[s].x,d=e[s].y;l>n!=d>n&&r<(u-o)*(n-l)/(d-l)+o&&(i=!i)}return i}function rme(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function eft(t,e,r){return t.x>=e.left+r&&t.x<=e.right-r&&t.y>=e.top+r&&t.y<=e.bottom-r}function tft(t,e){const r=t.left+t.width/2,n=t.top+t.height/2,i=e.left+e.width/2,a=e.top+e.height/2,s=i-r,o=a-n;return Math.abs(s)>Math.abs(o)?s>0?"right":"left":o>0?"bottom":"top"}function rft(t,e,r){switch(r){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function nft(t,e,r,n,i){const s=n==="trigger"?ift(r):r,o=i?Math.min(e.top,i.top)-8:e.top-8,l=i?Math.max(e.bottom,i.bottom)+8:e.bottom+8,u=i?Math.min(e.left,i.left)-8:e.left-8,d=i?Math.max(e.right,i.right)+8:e.right+8;switch(s){case"right":return[t,{x:e.left,y:o},{x:e.left,y:l}];case"left":return[t,{x:e.right,y:o},{x:e.right,y:l}];case"bottom":return[t,{x:u,y:e.top},{x:d,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:d,y:e.bottom}]}}function ift(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}class wae{static create(e){const r=new wae(e);return S5e.set(r)}opts;isUsingKeyboard=new g_;#e=Me(!1);get ignoreCloseAutoFocus(){return w(this.#e)}set ignoreCloseAutoFocus(e){J(this.#e,e,!0)}#t=Me(!1);get isPointerInTransit(){return w(this.#t)}set isPointerInTransit(e){J(this.#t,e,!0)}constructor(e){this.opts=e}getBitsAttr=e=>Zht.getAttr(e,this.opts.variant.current)}class nB{static create(e,r){return jx.set(new nB(e,r,null))}opts;root;parentMenu;contentId=St(()=>"");#e=Me(null);get contentNode(){return w(this.#e)}set contentNode(e){J(this.#e,e,!0)}contentPresence;#t=Me(null);get triggerNode(){return w(this.#t)}set triggerNode(e){J(this.#t,e,!0)}constructor(e,r,n){this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new r1({ref:St(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:this.root.opts.shouldSkipExitAnimation?.()??!1}),n&&di(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class iB{static create(e){return Tae.set(new iB(e,jx.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#e=Me("");get search(){return w(this.#e)}set search(e){J(this.#e,e,!0)}#t=0;#r;#n=Me(!1);get mounted(){return w(this.#n)}set mounted(e){J(this.#n,e,!0)}#i;constructor(e,r){this.opts=e,this.parentMenu=r,this.domContext=new w0(e.ref),this.attachment=Yi(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,this.#i=e.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new Jht({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>this.parentMenu.parentMenu?.contentNode??null,subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onIntentExit:n=>{this.parentMenu.opts.open.current=!1,this.#o(n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),this.#r=new E5e({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new aht({rootNode:St(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:St(()=>"vertical")}),di(()=>this.parentMenu.contentNode,n=>{if(!n)return;const i=()=>{Ku(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Cae.listen(n,i)}),sr(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#t)})}#a(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#s(){return this.parentMenu.root.isPointerInTransit}#o(e){if(!e)return;const r=this.parentMenu.parentMenu?.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!Ju(n))return;const i=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!i||!r.contains(i)||i!==this.parentMenu.triggerNode&&i.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))}onCloseAutoFocus=e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||this.#i)){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&rB(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}};handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=qht(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),Ku(()=>{n.focus(),Ku(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===BQ){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!jf(r)||!jf(n))return;const i=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,a=e.ctrlKey||e.altKey||e.metaKey,s=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const l=this.#a();i&&!a&&s&&this.#r(e.key,l),e.target?.id===this.parentMenu.contentId.current&&Tht.includes(e.key)&&(e.preventDefault(),c5e.includes(e.key)&&l.reverse(),Aht(l,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){Ju(e.currentTarget)&&Ju(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(this.#t),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&Ku(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#s()}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#s()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#s()}handleInteractOutside(e){if(!a5e(e.target))return;const r=this.parentMenu.triggerNode?.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,Ku(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#c=ee(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return w(this.#c)}set snippetProps(e){J(this.#c,e)}#l=ee(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":np(this.parentMenu.opts.open.current),...nE(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return w(this.#l)}set props(e){J(this.#l,e)}popperProps={onCloseAutoFocus:e=>this.onCloseAutoFocus(e)}}class T5e{opts;content;attachment;#e=Me(!1);constructor(e,r){this.opts=e,this.content=r,this.attachment=Yi(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&ff(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!jf(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||ff(e)&&this.content.onItemLeave(e)}onfocus(e){Ku(()=>{e.defaultPrevented||this.opts.disabled.current||J(this.#e,!0)})}onblur(e){Ku(()=>{e.defaultPrevented||J(this.#e,!1)})}#t=ee(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":e0(this.opts.disabled.current),"data-disabled":ac(this.opts.disabled.current),"data-highlighted":w(this.#e)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class xae{static create(e){const r=new T5e(e,Tae.get());return new xae(e,r)}opts;item;root;#e=!1;constructor(e,r){this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#t(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Pd)&&$Q.includes(e.key)){if(!jf(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||this.#t()}onpointerup(e){if(!e.defaultPrevented&&!this.#e){if(!jf(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){this.#e=!0}#r=ee(()=>un(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return w(this.#r)}set props(e){J(this.#r,e)}}class Aae{static create(e){const r=Tae.get(),n=new T5e(e,r),i=jx.get();return new Aae(e,n,r,i)}opts;item;content;submenu;attachment;#e=null;constructor(e,r,n,i){this.opts=e,this.item=r,this.content=n,this.submenu=i,this.attachment=Yi(this.opts.ref,a=>this.submenu.triggerNode=a),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),Kh(()=>{this.#t()})}#t(){this.#e!==null&&(this.content.domContext.getWindow().clearTimeout(this.#e),this.#e=null)}onpointermove(e){if(ff(e)){if(this.submenu.root.isPointerInTransit){this.#e!==null&&this.#t();return}if(!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#e){const r=this.opts.openDelay.current;if(r<=0){this.submenu.onOpen();return}this.#e=this.content.domContext.setTimeout(()=>{if(this.submenu.root.isPointerInTransit){this.#t();return}this.submenu.onOpen(),this.#t()},r)}}}onpointerleave(e){ff(e)&&this.#t()}onkeydown(e){const r=this.content.search!=="";this.item.opts.disabled.current||r&&e.key===Pd||Cht[this.submenu.root.opts.dir.current].includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}onclick(e){if(this.item.opts.disabled.current||!jf(e.currentTarget))return;e.currentTarget.focus();const r=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(r),this.submenu.opts.open.current||(this.submenu.onOpen(),Ku(()=>{const n=this.submenu.contentNode;n&&Cae.dispatch(n)}))}#r=ee(()=>un({"aria-haspopup":"menu","aria-expanded":e0(this.submenu.opts.open.current),"data-state":np(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return w(this.#r)}set props(e){J(this.#r,e)}}class Rae{static create(e){return new Rae(e,S5e.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref)}#e=ee(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}class Oae{static create(e){return new Oae(e,jx.get())}opts;parentMenu;attachment;constructor(e,r){this.opts=e,this.parentMenu=r,this.attachment=Yi(this.opts.ref,n=>this.parentMenu.triggerNode=n)}onclick=e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())};onpointerdown=e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}};onpointerup=e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=e=>{if(!this.opts.disabled.current){if(e.key===Pd||e.key===hg){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Yp&&(this.parentMenu.onOpen(),e.preventDefault())}};#e=ee(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#t=ee(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":e0(this.parentMenu.opts.open.current),"aria-controls":w(this.#e),"data-disabled":ac(this.opts.disabled.current),"data-state":np(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class aft{static create(e){const r=jx.get();return jx.set(new nB(e,r.root,r))}}globalThis.bitsDismissableLayers??=new Map;class Iae{static create(e){return new Iae(e)}opts;#e;#t;#r={pointerdown:!1};#n=!1;#i=!1;#a=void 0;#s;#o=Tn;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#s=e.onFocusOutside,sr(()=>{this.#a=l5e(this.opts.ref.current)});let r=Tn;const n=()=>{this.#m(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),r()};di([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return dae(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#t),r(),r=this.#l())}),n}),Kh(()=>{this.#m.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),this.#o(),r()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&Ku(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#s.current?.(e)})};#l(){return Jy(Ai(this.#a,"pointerdown",Jy(this.#p,this.#f),{capture:!0}),Ai(this.#a,"pointerdown",Jy(this.#g,this.#u)),Ai(this.#a,"focusin",this.#c))}#d=e=>{let r=e;r.defaultPrevented&&(r=nme(e)),this.#e.current(e)};#u=Zge(e=>{if(!this.opts.ref.current){this.#o();return}const r=this.opts.isValidEvent.current(e,this.opts.ref.current)||lft(e,this.opts.ref.current);if(!this.#n||this.#v()||!r){this.#o();return}let n=e;if(n.defaultPrevented&&(n=nme(n)),this.#t.current!=="close"&&this.#t.current!=="defer-otherwise-close"){this.#o();return}e.pointerType==="touch"?(this.#o(),this.#o=Ai(this.#a,"click",this.#d,{once:!0})):this.#e.current(n)},10);#p=e=>{this.#r[e.type]=!0};#g=e=>{this.#r[e.type]=!1};#f=()=>{this.opts.ref.current&&(this.#n=oft(this.opts.ref.current))};#h=e=>this.opts.ref.current?o5e(this.opts.ref.current,e):!1;#m=Zge(()=>{for(const e in this.#r)this.#r[e]=!1;this.#n=!1},20);#v(){return Object.values(this.#r).some(Boolean)}#_=()=>{this.#i=!0};#b=()=>{this.#i=!1};props={onfocuscapture:this.#_,onblurcapture:this.#b}}function sft(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:r}])=>r==="close"||r==="ignore")}function oft(t){const e=[...globalThis.bitsDismissableLayers],r=sft(e);if(r)return r[0].opts.ref.current===t;const[n]=e[0];return n.opts.ref.current===t}function lft(t,e){const r=t.target;if(!a5e(r))return!1;const n=!!r.closest(`[${Xht}]`),i=!!e.closest(`[${Qht}]`);return"button"in t&&t.button>0&&!n?!1:"button"in t&&t.button===0&&n&&i?!0:n&&i?!1:l5e(r).documentElement.contains(r)&&!o5e(e,r)&&Eht(t,e)}function nme(t){const e=t.currentTarget,r=t.target;let n;t instanceof PointerEvent?n=new PointerEvent(t.type,t):n=new PointerEvent("pointerdown",t);let i=!1;return new Proxy(n,{get:(s,o)=>o==="currentTarget"?e:o==="target"?r:o==="preventDefault"?()=>{i=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:o==="defaultPrevented"?i:o in s?s[o]:t[o]})}function Nae(t,e){We(e,!0);let r=ue(e,"interactOutsideBehavior",3,"close"),n=ue(e,"onInteractOutside",3,Tn),i=ue(e,"onFocusOutside",3,Tn),a=ue(e,"isValidEvent",3,()=>!1);const s=Iae.create({id:St(()=>e.id),interactOutsideBehavior:St(()=>r()),onInteractOutside:St(()=>n()),enabled:St(()=>e.enabled),onFocusOutside:St(()=>i()),isValidEvent:St(()=>a()),ref:e.ref});var o=Ee(),l=ne(o);ft(l,()=>e.children??Tt,()=>({props:s.props})),H(t,o),Ke()}globalThis.bitsEscapeLayers??=new Map;class kae{static create(e){return new kae(e)}opts;domContext;constructor(e){this.opts=e,this.domContext=new w0(this.opts.ref);let r=Tn;di(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=this.#e()),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>Ai(this.domContext.getDocument(),"keydown",this.#t,{passive:!1});#t=e=>{if(e.key!==Xdt||!cft(this))return;const r=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)}}function cft(t){const e=[...globalThis.bitsEscapeLayers],r=e.findLast(([i,{current:a}])=>a==="close"||a==="ignore");if(r)return r[0]===t;const[n]=e[0];return n===t}function Dae(t,e){We(e,!0);let r=ue(e,"escapeKeydownBehavior",3,"close"),n=ue(e,"onEscapeKeydown",3,Tn);kae.create({escapeKeydownBehavior:St(()=>r()),onEscapeKeydown:St(()=>n()),enabled:St(()=>e.enabled),ref:e.ref});var i=Ee(),a=ne(i);ft(a,()=>e.children??Tt),H(t,i),Ke()}class Mae{static instance;#e=nu([]);#t=new WeakMap;#r=new WeakMap;static getInstance(){return this.instance||(this.instance=new Mae),this.instance}register(e){const r=this.getActive();r&&r!==e&&r.pause();const n=document.activeElement;n&&n!==document.body&&this.#r.set(e,n),this.#e.current=this.#e.current.filter(i=>i!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(n=>n!==e);const r=this.getActive();r&&r.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,r){this.#t.set(e,r)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,r){this.#r.set(e,r)}getPreFocusMemory(e){return this.#r.get(e)}clearPreFocusMemory(e){this.#r.delete(e)}}class Lae{#e=!1;#t=null;#r=Mae.getInstance();#n=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(const e of this.#n)e();this.#n=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#r.register(this),this.#c(),this.#s()}unmount(){this.#t&&(this.#a(),this.#o(),this.#r.unregister(this),this.#r.clearPreFocusMemory(this),this.#t=null)}#s(){if(!this.#t)return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;const r=this.#d();r?(r.focus(),this.#r.setFocusMemory(this,r)):this.#t.focus()})}#o(){const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){const r=this.#r.getPreFocusMemory(this);if(r&&document.contains(r))try{r.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;const e=this.#t,r=e.ownerDocument,n=s=>{if(this.#e||!this.#r.isActiveScope(this))return;const o=s.target;if(!o)return;if(e.contains(o))this.#r.setFocusMemory(this,o);else{const u=this.#r.getFocusMemory(this);if(u&&e.contains(u)&&y5e(u))s.preventDefault(),u.focus();else{const d=this.#d(),h=this.#u()[0];(d||h||e).focus()}}},i=s=>{if(!this.#i.loop||this.#e||s.key!=="Tab"||!this.#r.isActiveScope(this))return;const o=this.#l();if(o.length===0)return;const l=o[0],u=o[o.length-1];!s.shiftKey&&r.activeElement===u?(s.preventDefault(),l.focus()):s.shiftKey&&r.activeElement===l&&(s.preventDefault(),u.focus())};this.#n.push(Ai(r,"focusin",n,{capture:!0}),Ai(e,"keydown",i));const a=new MutationObserver(()=>{const s=this.#r.getFocusMemory(this);if(s&&!e.contains(s)){const o=this.#d(),l=this.#u()[0],u=o||l;u?(u.focus(),this.#r.setFocusMemory(this,u)):e.focus()}});a.observe(e,{childList:!0,subtree:!0}),this.#n.push(()=>a.disconnect())}#l(){return this.#t?_5e(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#d(){return this.#l()[0]||null}#u(){return this.#t?v5e(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(e){let r=null;return di([()=>e.ref.current,()=>e.enabled.current],([n,i])=>{n&&i?(r||(r=new Lae(e)),r.mount(n)):r&&(r.unmount(),r=null)}),Kh(()=>{r?.unmount()}),{get props(){return{tabindex:-1}}}}}function Pae(t,e){We(e,!0);let r=ue(e,"enabled",3,!1),n=ue(e,"trapFocus",3,!1),i=ue(e,"loop",3,!1),a=ue(e,"onCloseAutoFocus",3,Tn),s=ue(e,"onOpenAutoFocus",3,Tn);const o=Lae.use({enabled:St(()=>r()),trap:St(()=>n()),loop:i(),onCloseAutoFocus:St(()=>a()),onOpenAutoFocus:St(()=>s()),ref:e.ref});var l=Ee(),u=ne(l);ft(u,()=>e.focusScope??Tt,()=>({props:o.props})),H(t,l),Ke()}const ime=()=>{};globalThis.bitsTextSelectionLayers??=new Map;class Fae{static create(e){return new Fae(e)}opts;domContext;#e=Tn;#t=!1;#r=ime;#n=ime;constructor(e){this.opts=e,this.domContext=new w0(e.ref);let r=Tn;di(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([n,i,a])=>(this.#t=n,this.#r=i,this.#n=a,n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=this.#i()),()=>{this.#t=!1,r(),this.#o(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return Jy(Ai(this.domContext.getDocument(),"pointerdown",this.#s),Ai(this.domContext.getDocument(),"pointerup",K3e(this.#o,this.#a)))}#a=e=>{this.#n(e)};#s=e=>{const r=this.opts.ref.current,n=e.target;!jf(r)||!jf(n)||!this.#t||!dft(this)||!Hdt(r,n)||(this.#r(e),!e.defaultPrevented&&(this.#e=uft(r,this.domContext.getDocument().body)))};#o=()=>{this.#e(),this.#e=Tn}}const ame=t=>t.style.userSelect||t.style.webkitUserSelect;function uft(t,e){const r=ame(e),n=ame(t);return s4(e,"none"),s4(t,"text"),()=>{s4(e,r),s4(t,n)}}function s4(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function dft(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const r=e.at(-1);return r?r[0]===t:!1}function Bae(t,e){We(e,!0);let r=ue(e,"preventOverflowTextSelection",3,!0),n=ue(e,"onPointerDown",3,Tn),i=ue(e,"onPointerUp",3,Tn);Fae.create({id:St(()=>e.id),onPointerDown:St(()=>n()),onPointerUp:St(()=>i()),enabled:St(()=>e.enabled&&r()),ref:e.ref});var a=Ee(),s=ne(a);ft(s,()=>e.children??Tt),H(t,a),Ke()}globalThis.bitsIdCounter??={current:0};function rR(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}class hft{#e;#t=0;#r=Me();#n;constructor(e){this.#e=e}#i(){this.#t-=1,this.#n&&this.#t<=0&&(this.#n(),J(this.#r,void 0),this.#n=void 0)}get(...e){return this.#t+=1,w(this.#r)===void 0&&(this.#n=U3(()=>{J(this.#r,this.#e(...e),!0)})),sr(()=>()=>{this.#i()}),w(this.#r)}}const SP=new As;let o4=Me(null),Gz=null,oO=null,lO=!1;const sme=St(()=>{for(const t of SP.values())if(t)return!0;return!1});let zz=null;const fft=new hft(()=>{function t(){document.body.setAttribute("style",w(o4)??""),document.body.style.removeProperty("--scrollbar-width"),UQ&&Gz?.(),J(o4,null)}function e(){oO!==null&&(window.clearTimeout(oO),oO=null)}function r(i,a){e(),lO=!0,zz=Date.now();const s=zz,o=()=>{oO=null,zz===s&&(C5e(SP)?lO=!1:(lO=!1,a()))},l=i===null?24:i;oO=window.setTimeout(o,l)}function n(){w(o4)===null&&SP.size===0&&!lO&&J(o4,document.body.getAttribute("style"),!0)}return di(()=>sme.current,()=>{if(!sme.current)return;n(),lO=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),s=i.scrollbarGutter?.includes("stable")||a.scrollbarGutter?.includes("stable"),o=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(a.paddingRight??"0",10)+o,margin:Number.parseInt(a.marginRight??"0",10)};o>0&&!s&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${o}px`)),document.body.style.overflow="hidden",UQ&&(Gz=Ai(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),Ku(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Kh(()=>()=>{Gz?.()}),{get lockMap(){return SP},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:r,cancelPendingCleanup:e,ensureInitialStyleCaptured:n}});class pft{#e=rR();#t;#r=()=>null;#n;locked;constructor(e,r=()=>null){this.#t=e,this.#r=r,this.#n=fft.get(),this.#n&&(this.#n.cancelPendingCleanup(),this.#n.ensureInitialStyleCaptured(),this.#n.lockMap.set(this.#e,this.#t??!1),this.locked=St(()=>this.#n.lockMap.get(this.#e)??!1,n=>this.#n.lockMap.set(this.#e,n)),Kh(()=>{if(this.#n.lockMap.delete(this.#e),C5e(this.#n.lockMap))return;const n=this.#r();this.#n.scheduleCleanupIfNoNewLocks(n,()=>{this.#n.resetBodyStyle()})}))}}function C5e(t){for(const[e,r]of t)if(r)return!0;return!1}function Xx(t,e){We(e,!0);let r=ue(e,"preventScroll",3,!0),n=ue(e,"restoreScrollDelay",3,null);r()&&new pft(r(),()=>n()),Ke()}var gft=ae("<!> <!>",1),mft=ae("<!> <div><!></div>",1);function _ft(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"forceMount",3,!1),s=ue(e,"interactOutsideBehavior",3,"ignore"),o=ue(e,"onCloseAutoFocus",3,Tn),l=ue(e,"onEscapeKeydown",3,Tn),u=ue(e,"onOpenAutoFocus",3,Tn),d=ue(e,"onInteractOutside",3,Tn),h=ue(e,"preventScroll",3,!0),f=ue(e,"trapFocus",3,!0),p=ue(e,"restoreScrollDelay",3,null),g=xt(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const m=tB.create({id:St(()=>n()),ref:St(()=>i(),E=>i(E))}),_=ee(()=>un(g,m.props));var v=Ee(),y=ne(v);{var b=E=>{Pae(E,{get ref(){return m.opts.ref},loop:!0,get trapFocus(){return f()},get enabled(){return m.root.opts.open.current},get onCloseAutoFocus(){return o()},onOpenAutoFocus:T=>{u()(T),!T.defaultPrevented&&(T.preventDefault(),dae(0,()=>m.opts.ref.current?.focus()))},focusScope:(T,C)=>{let x=()=>C?.().props;Dae(T,Bt(()=>w(_),{get enabled(){return m.root.opts.open.current},get ref(){return m.opts.ref},onEscapeKeydown:A=>{l()(A),!A.defaultPrevented&&m.root.handleClose()},children:(A,R)=>{Nae(A,Bt(()=>w(_),{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},get interactOutsideBehavior(){return s()},onInteractOutside:I=>{d()(I),!I.defaultPrevented&&m.root.handleClose()},children:(I,L)=>{Bae(I,Bt(()=>w(_),{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},children:(F,O)=>{var D=Ee(),M=ne(D);{var P=$=>{var U=gft(),B=ne(U);{var V=G=>{Xx(G,{get preventScroll(){return h()},get restoreScrollDelay(){return p()}})};Re(B,G=>{m.root.opts.open.current&&G(V)})}var z=he(B,2);{let G=ee(()=>({props:un(w(_),x()),...m.snippetProps}));ft(z,()=>e.child,()=>w(G))}H($,U)},N=$=>{var U=mft(),B=ne(U);Xx(B,{get preventScroll(){return h()}});var V=he(B,2);Er(V,G=>({...G}),[()=>un(w(_),x())]);var z=de(V);ft(z,()=>e.children??Tt),oe(V),H($,U)};Re(M,$=>{e.child?$(P):$(N,-1)})}H(F,D)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};Re(y,E=>{(m.shouldRender||a())&&E(b)})}H(t,v),Ke()}var vft=ae("<div><!></div>");function aB(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"forceMount",3,!1),a=ue(e,"ref",15,null),s=xt(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const o=yae.create({id:St(()=>n()),ref:St(()=>a(),f=>a(f))}),l=ee(()=>un(s,o.props));var u=Ee(),d=ne(u);{var h=f=>{var p=Ee(),g=ne(p);{var m=v=>{var y=Ee(),b=ne(y);{let E=ee(()=>({props:un(w(l)),...o.snippetProps}));ft(b,()=>e.child,()=>w(E))}H(v,y)},_=v=>{var y=vft();Er(y,E=>({...E}),[()=>un(w(l))]);var b=de(y);ft(b,()=>e.children??Tt,()=>o.snippetProps),oe(y),H(v,y)};Re(g,v=>{e.child?v(m):v(_,-1)})}H(f,p)};Re(d,f=>{(o.shouldRender||i())&&f(h)})}H(t,u),Ke()}var yft=ae("<div><!></div>");function Uae(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=xt(e,["$$slots","$$events","$$legacy","id","children","child","ref"]);const s=vae.create({id:St(()=>n()),ref:St(()=>i(),f=>i(f))}),o=ee(()=>un(a,s.props));var l=Ee(),u=ne(l);{var d=f=>{var p=Ee(),g=ne(p);ft(g,()=>e.child,()=>({props:w(o)})),H(f,p)},h=f=>{var p=yft();Er(p,()=>({...w(o)}));var g=de(p);ft(g,()=>e.children??Tt),oe(p),H(f,p)};Re(u,f=>{e.child?f(d):f(h,-1)})}H(t,l),Ke()}const bft=Sg({component:"checkbox",parts:["root","group","group-label","input"]}),Eft=new vo("Checkbox.Group"),w5e=new vo("Checkbox.Root");class $ae{static create(e,r=null){return w5e.set(new $ae(e,r))}opts;group;#e=ee(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return w(this.#e)}set trueName(e){J(this.#e,e)}#t=ee(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return w(this.#t)}set trueRequired(e){J(this.#t,e)}#r=ee(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return w(this.#r)}set trueDisabled(e){J(this.#r,e)}#n=ee(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return w(this.#n)}set trueReadonly(e){J(this.#n,e)}attachment;constructor(e,r){this.opts=e,this.group=r,this.attachment=Yi(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),di.pre([()=>Y_(this.group?.opts.value.current),()=>this.opts.value.current],([n,i])=>{!n||!i||(this.opts.checked.current=n.includes(i))}),di.pre(()=>this.opts.checked.current,n=>{this.group&&(n?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===hg){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===Pd&&(e.preventDefault(),this.#i())}}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}e.preventDefault(),this.#i()}}#a=ee(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return w(this.#a)}set snippetProps(e){J(this.#a,e)}#s=ee(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":n5e(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":e0(this.trueRequired),"aria-readonly":e0(this.trueReadonly),"data-disabled":ac(this.trueDisabled),"data-readonly":ac(this.trueReadonly),"data-state":Sft(this.opts.checked.current,this.opts.indeterminate.current),[bft.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return w(this.#s)}set props(e){J(this.#s,e)}}class Gae{static create(){return new Gae(w5e.get())}root;#e=ee(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return w(this.#e)}set trueChecked(e){J(this.#e,e)}#t=ee(()=>!!this.root.trueName);get shouldRender(){return w(this.#t)}set shouldRender(e){J(this.#t,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){jf(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=ee(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return w(this.#r)}set props(e){J(this.#r,e)}}function Sft(t,e){return e?"indeterminate":t?"checked":"unchecked"}Kot();var Tft=ae("<input/>"),Cft=ae("<input/>");function zae(t,e){We(e,!0);let r=ue(e,"value",15),n=xt(e,["$$slots","$$events","$$legacy","value"]);const i=ee(()=>un(n,{"aria-hidden":"true",tabindex:-1,style:{...X3e,position:"absolute",top:"0",left:"0"}}));var a=Ee(),s=ne(a);{var o=u=>{var d=Tft();Er(d,()=>({...w(i),value:r()}),void 0,void 0,void 0,void 0,!0),H(u,d)},l=u=>{var d=Cft();Er(d,()=>({...w(i)}),void 0,void 0,void 0,void 0,!0),WN(d,r),H(u,d)};Re(s,u=>{w(i).type==="checkbox"?u(o):u(l,-1)})}H(t,a),Ke()}function wft(t,e){We(e,!1);const r=Gae.create();GF();var n=Ee(),i=ne(n);{var a=s=>{zae(s,Bt(()=>r.props))};Re(i,s=>{r.shouldRender&&s(a)})}H(t,n),Ke()}var xft=ae("<button><!></button>"),Aft=ae("<!> <!>",1);function Rft(t,e){const r=ra();We(e,!0);let n=ue(e,"checked",15,!1),i=ue(e,"ref",15,null),a=ue(e,"disabled",3,!1),s=ue(e,"required",3,!1),o=ue(e,"name",3,void 0),l=ue(e,"value",3,"on"),u=ue(e,"id",19,()=>na(r)),d=ue(e,"indeterminate",15,!1),h=ue(e,"type",3,"button"),f=xt(e,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const p=Eft.getOr(null);p&&l()&&(p.opts.value.current.includes(l())?n(!0):n(!1)),di.pre(()=>l(),()=>{p&&l()&&(p.opts.value.current.includes(l())?n(!0):n(!1))});const g=$ae.create({checked:St(()=>n(),S=>{n(S),e.onCheckedChange?.(S)}),disabled:St(()=>a()??!1),required:St(()=>s()),name:St(()=>o()),value:St(()=>l()),id:St(()=>u()),ref:St(()=>i(),S=>i(S)),indeterminate:St(()=>d(),S=>{d(S),e.onIndeterminateChange?.(S)}),type:St(()=>h()),readonly:St(()=>!!e.readonly)},p),m=ee(()=>un({...f},g.props));var _=Aft(),v=ne(_);{var y=S=>{var T=Ee(),C=ne(T);{let x=ee(()=>({props:w(m),...g.snippetProps}));ft(C,()=>e.child,()=>w(x))}H(S,T)},b=S=>{var T=xft();Er(T,()=>({...w(m)}));var C=de(T);ft(C,()=>e.children??Tt,()=>g.snippetProps),oe(T),H(S,T)};Re(v,S=>{e.child?S(y):S(b,-1)})}var E=he(v,2);wft(E,{}),H(t,_),Ke()}const qae=Sg({component:"collapsible",parts:["root","content","trigger"]}),Vae=new vo("Collapsible.Root");class Hae{static create(e){return Vae.set(new Hae(e))}opts;attachment;#e=Me(null);get contentNode(){return w(this.#e)}set contentNode(e){J(this.#e,e,!0)}contentPresence;#t=Me(void 0);get contentId(){return w(this.#t)}set contentId(e){J(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=Yi(this.opts.ref),this.contentPresence=new r1({ref:St(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=ee(()=>({id:this.opts.id.current,"data-state":np(this.opts.open.current),"data-disabled":ac(this.opts.disabled.current),[qae.root]:"",...this.attachment}));get props(){return w(this.#r)}set props(e){J(this.#r,e)}}class Yae{static create(e){return new Yae(e,Vae.get())}opts;root;attachment;#e=ee(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return w(this.#e)}set present(e){J(this.#e,e)}#t;#r=Me(!1);#n=Me(0);#i=Me(0);constructor(e,r){this.opts=e,this.root=r,J(this.#r,r.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=Yi(this.opts.ref,n=>this.root.contentNode=n),di.pre(()=>this.opts.id.current,n=>{this.root.contentId=n}),Cc(()=>{const n=requestAnimationFrame(()=>{J(this.#r,!1)});return()=>{cancelAnimationFrame(n)}}),di.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([n,i])=>!n||!i?void 0:Ai(n,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),di([()=>this.opts.ref.current,()=>this.present],([n])=>{n&&Ku(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:n.style.transitionDuration,animationName:n.style.animationName},n.style.transitionDuration="0s",n.style.animationName="none";const i=n.getBoundingClientRect();if(J(this.#i,i.height,!0),J(this.#n,i.width,!0),!w(this.#r)){const{animationName:a,transitionDuration:s}=this.#t;n.style.transitionDuration=s,n.style.animationName=a}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#a=ee(()=>({open:this.root.opts.open.current}));get snippetProps(){return w(this.#a)}set snippetProps(e){J(this.#a,e)}#s=ee(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":w(this.#i)?`${w(this.#i)}px`:void 0,"--bits-collapsible-content-width":w(this.#n)?`${w(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":np(this.root.opts.open.current),...nE(this.root.contentPresence.transitionStatus),"data-disabled":ac(this.root.opts.disabled.current),[qae.content]:"",...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return w(this.#s)}set props(e){J(this.#s,e)}}class Wae{static create(e){return new Wae(e,Vae.get())}opts;root;attachment;#e=ee(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!w(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){w(this.#e)||(e.key===Pd||e.key===hg)&&(e.preventDefault(),this.root.toggleOpen())}#t=ee(()=>({id:this.opts.id.current,type:"button",disabled:w(this.#e),"aria-controls":this.root.contentId,"aria-expanded":e0(this.root.opts.open.current),"data-state":np(this.root.opts.open.current),"data-disabled":ac(w(this.#e)),[qae.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}var Oft=ae("<div><!></div>");function Ift(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"open",15,!1),s=ue(e,"disabled",3,!1),o=ue(e,"onOpenChange",3,Tn),l=ue(e,"onOpenChangeComplete",3,Tn),u=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const d=Hae.create({open:St(()=>a(),_=>{a(_),o()(_)}),disabled:St(()=>s()),id:St(()=>n()),ref:St(()=>i(),_=>i(_)),onOpenChangeComplete:St(()=>l())}),h=ee(()=>un(u,d.props));var f=Ee(),p=ne(f);{var g=_=>{var v=Ee(),y=ne(v);ft(y,()=>e.child,()=>({props:w(h)})),H(_,v)},m=_=>{var v=Oft();Er(v,()=>({...w(h)}));var y=de(v);ft(y,()=>e.children??Tt),oe(v),H(_,v)};Re(p,_=>{e.child?_(g):_(m,-1)})}H(t,f),Ke()}var Nft=ae("<div><!></div>");function kft(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"forceMount",3,!1),a=ue(e,"hiddenUntilFound",3,!1),s=ue(e,"id",19,()=>na(r)),o=xt(e,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const l=Yae.create({id:St(()=>s()),forceMount:St(()=>i()),hiddenUntilFound:St(()=>a()),ref:St(()=>n(),g=>n(g))}),u=ee(()=>un(o,l.props));var d=Ee(),h=ne(d);{var f=g=>{var m=Ee(),_=ne(m);{let v=ee(()=>({...l.snippetProps,props:w(u)}));ft(_,()=>e.child,()=>w(v))}H(g,m)},p=g=>{var m=Nft();Er(m,()=>({...w(u)}));var _=de(m);ft(_,()=>e.children??Tt),oe(m),H(g,m)};Re(h,g=>{e.child?g(f):g(p,-1)})}H(t,d),Ke()}var Dft=ae("<button><!></button>");function Mft(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=ue(e,"disabled",3,!1),s=xt(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const o=Wae.create({id:St(()=>i()),ref:St(()=>n(),p=>n(p)),disabled:St(()=>a())}),l=ee(()=>un(s,o.props));var u=Ee(),d=ne(u);{var h=p=>{var g=Ee(),m=ne(g);ft(m,()=>e.child,()=>({props:w(l)})),H(p,g)},f=p=>{var g=Dft();Er(g,()=>({...w(l)}));var m=de(g);ft(m,()=>e.children??Tt),oe(g),H(p,g)};Re(d,p=>{e.child?p(h):p(f,-1)})}H(t,u),Ke()}const Lft=["top","right","bottom","left"],n1=Math.min,Ad=Math.max,b9=Math.round,l4=Math.floor,rg=t=>({x:t,y:t}),Pft={left:"right",right:"left",bottom:"top",top:"bottom"},Fft={start:"end",end:"start"};function zQ(t,e,r){return Ad(t,n1(e,r))}function r0(t,e){return typeof t=="function"?t(e):t}function n0(t){return t.split("-")[0]}function nR(t){return t.split("-")[1]}function Kae(t){return t==="x"?"y":"x"}function jae(t){return t==="y"?"height":"width"}const Bft=new Set(["top","bottom"]);function Wp(t){return Bft.has(n0(t))?"y":"x"}function Xae(t){return Kae(Wp(t))}function Uft(t,e,r){r===void 0&&(r=!1);const n=nR(t),i=Xae(t),a=jae(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=E9(s)),[s,E9(s)]}function $ft(t){const e=E9(t);return[qQ(t),e,qQ(e)]}function qQ(t){return t.replace(/start|end/g,e=>Fft[e])}const ome=["left","right"],lme=["right","left"],Gft=["top","bottom"],zft=["bottom","top"];function qft(t,e,r){switch(t){case"top":case"bottom":return r?e?lme:ome:e?ome:lme;case"left":case"right":return e?Gft:zft;default:return[]}}function Vft(t,e,r,n){const i=nR(t);let a=qft(n0(t),r==="start",n);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(qQ)))),a}function E9(t){return t.replace(/left|right|bottom|top/g,e=>Pft[e])}function Hft(t){return{top:0,right:0,bottom:0,left:0,...t}}function x5e(t){return typeof t!="number"?Hft(t):{top:t,right:t,bottom:t,left:t}}function S9(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function cme(t,e,r){let{reference:n,floating:i}=t;const a=Wp(e),s=Xae(e),o=jae(s),l=n0(e),u=a==="y",d=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,f=n[o]/2-i[o]/2;let p;switch(l){case"top":p={x:d,y:n.y-i.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:h};break;case"left":p={x:n.x-i.width,y:h};break;default:p={x:n.x,y:n.y}}switch(nR(e)){case"start":p[s]-=f*(r&&u?-1:1);break;case"end":p[s]+=f*(r&&u?-1:1);break}return p}const Yft=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,o=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:h}=cme(u,n,l),f=n,p={},g=0;for(let m=0;m<o.length;m++){const{name:_,fn:v}=o[m],{x:y,y:b,data:E,reset:S}=await v({x:d,y:h,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:t,floating:e}});d=y??d,h=b??h,p={...p,[_]:{...p[_],...E}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):S.rects),{x:d,y:h}=cme(u,f,l)),m=-1)}return{x:d,y:h,placement:f,strategy:i,middlewareData:p}};async function JN(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:s,elements:o,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=r0(e,t),g=x5e(p),_=o[f?h==="floating"?"reference":"floating":h],v=S9(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(_)))==null||r?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:l})),y=h==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),E=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},S=S9(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-S.top+g.top)/E.y,bottom:(S.bottom-v.bottom+g.bottom)/E.y,left:(v.left-S.left+g.left)/E.x,right:(S.right-v.right+g.right)/E.x}}const Wft=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:a,platform:s,elements:o,middlewareData:l}=e,{element:u,padding:d=0}=r0(t,e)||{};if(u==null)return{};const h=x5e(d),f={x:r,y:n},p=Xae(i),g=jae(p),m=await s.getDimensions(u),_=p==="y",v=_?"top":"left",y=_?"bottom":"right",b=_?"clientHeight":"clientWidth",E=a.reference[g]+a.reference[p]-f[p]-a.floating[g],S=f[p]-a.reference[p],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=T?T[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(T)))&&(C=o.floating[b]||a.floating[g]);const x=E/2-S/2,A=C/2-m[g]/2-1,R=n1(h[v],A),I=n1(h[y],A),L=R,F=C-m[g]-I,O=C/2-m[g]/2+x,D=zQ(L,O,F),M=!l.arrow&&nR(i)!=null&&O!==D&&a.reference[g]/2-(O<L?R:I)-m[g]/2<0,P=M?O<L?O-L:O-F:0;return{[p]:f[p]+P,data:{[p]:D,centerOffset:O-D-P,...M&&{alignmentOffset:P}},reset:M}}}),Kft=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,..._}=r0(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=n0(i),y=Wp(o),b=n0(o)===o,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(b||!m?[E9(o)]:$ft(o)),T=g!=="none";!f&&T&&S.push(...Vft(o,m,g,E));const C=[o,...S],x=await JN(e,_),A=[];let R=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&A.push(x[v]),h){const O=Uft(i,s,E);A.push(x[O[0]],x[O[1]])}if(R=[...R,{placement:i,overflows:A}],!A.every(O=>O<=0)){var I,L;const O=(((I=a.flip)==null?void 0:I.index)||0)+1,D=C[O];if(D&&(!(h==="alignment"?y!==Wp(D):!1)||R.every(N=>N.overflows[0]>0&&Wp(N.placement)===y)))return{data:{index:O,overflows:R},reset:{placement:D}};let M=(L=R.filter(P=>P.overflows[0]<=0).sort((P,N)=>P.overflows[1]-N.overflows[1])[0])==null?void 0:L.placement;if(!M)switch(p){case"bestFit":{var F;const P=(F=R.filter(N=>{if(T){const $=Wp(N.placement);return $===y||$==="y"}return!0}).map(N=>[N.placement,N.overflows.filter($=>$>0).reduce(($,U)=>$+U,0)]).sort((N,$)=>N[1]-$[1])[0])==null?void 0:F[0];P&&(M=P);break}case"initialPlacement":M=o;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function ume(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function dme(t){return Lft.some(e=>t[e]>=0)}const jft=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=r0(t,e);switch(n){case"referenceHidden":{const a=await JN(e,{...i,elementContext:"reference"}),s=ume(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:dme(s)}}}case"escaped":{const a=await JN(e,{...i,altBoundary:!0}),s=ume(a,r.floating);return{data:{escapedOffsets:s,escaped:dme(s)}}}default:return{}}}}},A5e=new Set(["left","top"]);async function Xft(t,e){const{placement:r,platform:n,elements:i}=t,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=n0(r),o=nR(r),l=Wp(r)==="y",u=A5e.has(s)?-1:1,d=a&&l?-1:1,h=r0(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof g=="number"&&(p=o==="end"?g*-1:g),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const Qft=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:a,placement:s,middlewareData:o}=e,l=await Xft(e,t);return s===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},Zft=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:_=>{let{x:v,y}=_;return{x:v,y}}},...l}=r0(t,e),u={x:r,y:n},d=await JN(e,l),h=Wp(n0(i)),f=Kae(h);let p=u[f],g=u[h];if(a){const _=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=p+d[_],b=p-d[v];p=zQ(y,p,b)}if(s){const _=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=g+d[_],b=g-d[v];g=zQ(y,g,b)}const m=o.fn({...e,[f]:p,[h]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:a,[h]:s}}}}}},Jft=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:a,middlewareData:s}=e,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=r0(t,e),d={x:r,y:n},h=Wp(i),f=Kae(h);let p=d[f],g=d[h];const m=r0(o,e),_=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=f==="y"?"height":"width",E=a.reference[f]-a.floating[b]+_.mainAxis,S=a.reference[f]+a.reference[b]-_.mainAxis;p<E?p=E:p>S&&(p=S)}if(u){var v,y;const b=f==="y"?"width":"height",E=A5e.has(n0(i)),S=a.reference[h]-a.floating[b]+(E&&((v=s.offset)==null?void 0:v[h])||0)+(E?0:_.crossAxis),T=a.reference[h]+a.reference[b]+(E?0:((y=s.offset)==null?void 0:y[h])||0)-(E?_.crossAxis:0);g<S?g=S:g>T&&(g=T)}return{[f]:p,[h]:g}}}},ept=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:i,rects:a,platform:s,elements:o}=e,{apply:l=()=>{},...u}=r0(t,e),d=await JN(e,u),h=n0(i),f=nR(i),p=Wp(i)==="y",{width:g,height:m}=a.floating;let _,v;h==="top"||h==="bottom"?(_=h,v=f===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(v=h,_=f==="end"?"top":"bottom");const y=m-d.top-d.bottom,b=g-d.left-d.right,E=n1(m-d[_],y),S=n1(g-d[v],b),T=!e.middlewareData.shift;let C=E,x=S;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(x=b),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(C=y),T&&!f){const R=Ad(d.left,0),I=Ad(d.right,0),L=Ad(d.top,0),F=Ad(d.bottom,0);p?x=g-2*(R!==0||I!==0?R+I:Ad(d.left,d.right)):C=m-2*(L!==0||F!==0?L+F:Ad(d.top,d.bottom))}await l({...e,availableWidth:x,availableHeight:C});const A=await s.getDimensions(o.floating);return g!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function sB(){return typeof window<"u"}function iR(t){return R5e(t)?(t.nodeName||"").toLowerCase():"#document"}function Fd(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Cg(t){var e;return(e=(R5e(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function R5e(t){return sB()?t instanceof Node||t instanceof Fd(t).Node:!1}function Xf(t){return sB()?t instanceof Element||t instanceof Fd(t).Element:!1}function fg(t){return sB()?t instanceof HTMLElement||t instanceof Fd(t).HTMLElement:!1}function hme(t){return!sB()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fd(t).ShadowRoot}const tpt=new Set(["inline","contents"]);function Q3(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Qf(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!tpt.has(i)}const rpt=new Set(["table","td","th"]);function npt(t){return rpt.has(iR(t))}const ipt=[":popover-open",":modal"];function oB(t){return ipt.some(e=>{try{return t.matches(e)}catch{return!1}})}const apt=["transform","translate","scale","rotate","perspective"],spt=["transform","translate","scale","rotate","perspective","filter"],opt=["paint","layout","strict","content"];function Qae(t){const e=Zae(),r=Xf(t)?Qf(t):t;return apt.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||spt.some(n=>(r.willChange||"").includes(n))||opt.some(n=>(r.contain||"").includes(n))}function lpt(t){let e=i1(t);for(;fg(e)&&!Qx(e);){if(Qae(e))return e;if(oB(e))return null;e=i1(e)}return null}function Zae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cpt=new Set(["html","body","#document"]);function Qx(t){return cpt.has(iR(t))}function Qf(t){return Fd(t).getComputedStyle(t)}function lB(t){return Xf(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function i1(t){if(iR(t)==="html")return t;const e=t.assignedSlot||t.parentNode||hme(t)&&t.host||Cg(t);return hme(e)?e.host:e}function O5e(t){const e=i1(t);return Qx(e)?t.ownerDocument?t.ownerDocument.body:t.body:fg(e)&&Q3(e)?e:O5e(e)}function ek(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=O5e(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Fd(i);if(a){const o=VQ(s);return e.concat(s,s.visualViewport||[],Q3(i)?i:[],o&&r?ek(o):[])}return e.concat(i,ek(i,[],r))}function VQ(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function I5e(t){const e=Qf(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=fg(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,o=b9(r)!==a||b9(n)!==s;return o&&(r=a,n=s),{width:r,height:n,$:o}}function Jae(t){return Xf(t)?t:t.contextElement}function PT(t){const e=Jae(t);if(!fg(e))return rg(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:a}=I5e(e);let s=(a?b9(r.width):r.width)/n,o=(a?b9(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const upt=rg(0);function N5e(t){const e=Fd(t);return!Zae()||!e.visualViewport?upt:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dpt(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Fd(t)?!1:e}function bb(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),a=Jae(t);let s=rg(1);e&&(n?Xf(n)&&(s=PT(n)):s=PT(t));const o=dpt(a,r,n)?N5e(a):rg(0);let l=(i.left+o.x)/s.x,u=(i.top+o.y)/s.y,d=i.width/s.x,h=i.height/s.y;if(a){const f=Fd(a),p=n&&Xf(n)?Fd(n):n;let g=f,m=VQ(g);for(;m&&n&&p!==g;){const _=PT(m),v=m.getBoundingClientRect(),y=Qf(m),b=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*_.x,E=v.top+(m.clientTop+parseFloat(y.paddingTop))*_.y;l*=_.x,u*=_.y,d*=_.x,h*=_.y,l+=b,u+=E,g=Fd(m),m=VQ(g)}}return S9({width:d,height:h,x:l,y:u})}function ese(t,e){const r=lB(t).scrollLeft;return e?e.left+r:bb(Cg(t)).left+r}function k5e(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(r?0:ese(t,n)),a=n.top+e.scrollTop;return{x:i,y:a}}function hpt(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const a=i==="fixed",s=Cg(n),o=e?oB(e.floating):!1;if(n===s||o&&a)return r;let l={scrollLeft:0,scrollTop:0},u=rg(1);const d=rg(0),h=fg(n);if((h||!h&&!a)&&((iR(n)!=="body"||Q3(s))&&(l=lB(n)),fg(n))){const p=bb(n);u=PT(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const f=s&&!h&&!a?k5e(s,l,!0):rg(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-l.scrollTop*u.y+d.y+f.y}}function fpt(t){return Array.from(t.getClientRects())}function ppt(t){const e=Cg(t),r=lB(t),n=t.ownerDocument.body,i=Ad(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ad(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ese(t);const o=-r.scrollTop;return Qf(n).direction==="rtl"&&(s+=Ad(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:o}}function gpt(t,e){const r=Fd(t),n=Cg(t),i=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;const u=Zae();(!u||u&&e==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o,y:l}}const mpt=new Set(["absolute","fixed"]);function _pt(t,e){const r=bb(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=fg(t)?PT(t):rg(1),s=t.clientWidth*a.x,o=t.clientHeight*a.y,l=i*a.x,u=n*a.y;return{width:s,height:o,x:l,y:u}}function fme(t,e,r){let n;if(e==="viewport")n=gpt(t,r);else if(e==="document")n=ppt(Cg(t));else if(Xf(e))n=_pt(e,r);else{const i=N5e(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return S9(n)}function D5e(t,e){const r=i1(t);return r===e||!Xf(r)||Qx(r)?!1:Qf(r).position==="fixed"||D5e(r,e)}function vpt(t,e){const r=e.get(t);if(r)return r;let n=ek(t,[],!1).filter(o=>Xf(o)&&iR(o)!=="body"),i=null;const a=Qf(t).position==="fixed";let s=a?i1(t):t;for(;Xf(s)&&!Qx(s);){const o=Qf(s),l=Qae(s);!l&&o.position==="fixed"&&(i=null),(a?!l&&!i:!l&&o.position==="static"&&!!i&&mpt.has(i.position)||Q3(s)&&!l&&D5e(t,s))?n=n.filter(d=>d!==s):i=o,s=i1(s)}return e.set(t,n),n}function ypt(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const s=[...r==="clippingAncestors"?oB(e)?[]:vpt(e,this._c):[].concat(r),n],o=s[0],l=s.reduce((u,d)=>{const h=fme(e,d,i);return u.top=Ad(h.top,u.top),u.right=n1(h.right,u.right),u.bottom=n1(h.bottom,u.bottom),u.left=Ad(h.left,u.left),u},fme(e,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bpt(t){const{width:e,height:r}=I5e(t);return{width:e,height:r}}function Ept(t,e,r){const n=fg(e),i=Cg(e),a=r==="fixed",s=bb(t,!0,a,e);let o={scrollLeft:0,scrollTop:0};const l=rg(0);function u(){l.x=ese(i)}if(n||!n&&!a)if((iR(e)!=="body"||Q3(i))&&(o=lB(e)),n){const p=bb(e,!0,a,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else i&&u();a&&!n&&i&&u();const d=i&&!n&&!a?k5e(i,o):rg(0),h=s.left+o.scrollLeft-l.x-d.x,f=s.top+o.scrollTop-l.y-d.y;return{x:h,y:f,width:s.width,height:s.height}}function qz(t){return Qf(t).position==="static"}function pme(t,e){if(!fg(t)||Qf(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Cg(t)===r&&(r=r.ownerDocument.body),r}function M5e(t,e){const r=Fd(t);if(oB(t))return r;if(!fg(t)){let i=i1(t);for(;i&&!Qx(i);){if(Xf(i)&&!qz(i))return i;i=i1(i)}return r}let n=pme(t,e);for(;n&&npt(n)&&qz(n);)n=pme(n,e);return n&&Qx(n)&&qz(n)&&!Qae(n)?r:n||lpt(t)||r}const Spt=async function(t){const e=this.getOffsetParent||M5e,r=this.getDimensions,n=await r(t.floating);return{reference:Ept(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Tpt(t){return Qf(t).direction==="rtl"}const Cpt={convertOffsetParentRelativeRectToViewportRelativeRect:hpt,getDocumentElement:Cg,getClippingRect:ypt,getOffsetParent:M5e,getElementRects:Spt,getClientRects:fpt,getDimensions:bpt,getScale:PT,isElement:Xf,isRTL:Tpt};function L5e(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wpt(t,e){let r=null,n;const i=Cg(t);function a(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const u=t.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=u;if(o||e(),!f||!p)return;const g=l4(h),m=l4(i.clientWidth-(d+f)),_=l4(i.clientHeight-(h+p)),v=l4(d),b={rootMargin:-g+"px "+-m+"px "+-_+"px "+-v+"px",threshold:Ad(0,n1(1,l))||1};let E=!0;function S(T){const C=T[0].intersectionRatio;if(C!==l){if(!E)return s();C?s(!1,C):n=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!L5e(u,t.getBoundingClientRect())&&s(),E=!1}try{r=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(S,b)}r.observe(t)}return s(!0),a}function xpt(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Jae(t),d=i||a?[...u?ek(u):[],...ek(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",r,{passive:!0}),a&&v.addEventListener("resize",r)});const h=u&&o?wpt(u,r):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(e)})),r()}),u&&!l&&p.observe(u),p.observe(e));let g,m=l?bb(t):null;l&&_();function _(){const v=bb(t);m&&!L5e(m,v)&&r(),m=v,g=requestAnimationFrame(_)}return r(),()=>{var v;d.forEach(y=>{i&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),h?.(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const Apt=Qft,Rpt=Zft,Opt=Kft,Ipt=ept,Npt=jft,kpt=Wft,Dpt=Jft,Mpt=(t,e,r)=>{const n=new Map,i={platform:Cpt,...r},a={...i.platform,_c:n};return Yft(t,e,{...i,platform:a})};function hv(t){return typeof t=="function"?t():t}function P5e(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function gme(t,e){const r=P5e(t);return Math.round(e*r)/r}function i0(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Lpt(t){const e=t.whileElementsMounted,r=ee(()=>hv(t.open)??!0),n=ee(()=>hv(t.middleware)),i=ee(()=>hv(t.transform)??!0),a=ee(()=>hv(t.placement)??"bottom"),s=ee(()=>hv(t.strategy)??"absolute"),o=ee(()=>hv(t.sideOffset)??0),l=ee(()=>hv(t.alignOffset)??0),u=t.reference;let d=Me(0),h=Me(0);const f=nu(null);let p=Me(Kr(w(s))),g=Me(Kr(w(a))),m=Me(Kr({})),_=Me(!1),v=!1,y=0;const b=ee(()=>{const R=f.current?gme(f.current,w(d)):w(d),I=f.current?gme(f.current,w(h)):w(h);return w(i)?{position:w(p),left:"0",top:"0",transform:`translate(${R}px, ${I}px)`,...f.current&&P5e(f.current)>=1.5&&{willChange:"transform"}}:{position:w(p),left:`${R}px`,top:`${I}px`}});let E;function S(){if(u.current===null||f.current===null)return;const R=u.current,I=f.current,L=++y;Mpt(R,I,{middleware:w(n),placement:w(a),strategy:w(s)}).then(F=>{if(L!==y||u.current!==R||f.current!==I)return;if(Ppt(R)){J(m,{...w(m),hide:{...w(m).hide,referenceHidden:!0}},!0);return}if(!w(r)&&w(d)!==0&&w(h)!==0){const D=Math.max(Math.abs(w(o)),Math.abs(w(l)),15);if(F.x<=D&&F.y<=D)return}J(d,F.x,!0),J(h,F.y,!0),J(p,F.strategy,!0),J(g,F.placement,!0),J(m,F.middlewareData,!0),J(_,!0)})}function T(){typeof E=="function"&&(E(),E=void 0),y++}function C(){if(T(),e===void 0){S();return}w(r)&&(u.current===null||f.current===null||(E=e(u.current,f.current,S)))}function x(){!w(r)&&f.current===null&&J(_,!1)}function A(){return[w(n),w(a),w(s),w(o),w(l),w(r)]}return sr(()=>{e===void 0&&w(r)&&S()}),sr(C),sr(()=>{if(e!==void 0){if(A(),!w(r)){v=!1;return}if(!w(_)){v=!1;return}if(!v){v=!0;return}S()}}),sr(x),sr(()=>T),{floating:f,reference:u,get strategy(){return w(p)},get placement(){return w(g)},get middlewareData(){return w(m)},get isPositioned(){return w(_)},get floatingStyles(){return w(b)},get update(){return S}}}function Ppt(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const Fpt={top:"bottom",right:"left",bottom:"top",left:"right"},tse=new vo("Floating.Root"),HQ=new vo("Floating.Content"),rse=new vo("Floating.Root");class T9{static create(e=!1){return e?rse.set(new T9):tse.set(new T9)}anchorNode=nu(null);customAnchorNode=nu(null);triggerNode=nu(null);constructor(){sr(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class C9{static create(e,r=!1){return r?HQ.set(new C9(e,rse.get())):HQ.set(new C9(e,tse.get()))}opts;root;contentRef=nu(null);wrapperRef=nu(null);arrowRef=nu(null);contentAttachment=Yi(this.contentRef);wrapperAttachment=Yi(this.wrapperRef);arrowAttachment=Yi(this.arrowRef);arrowId=nu(rR());#e=ee(()=>{if(typeof this.opts.style=="string")return uI(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#r=new Bdt(()=>this.arrowRef.current??void 0);#n=ee(()=>this.#r?.width??0);#i=ee(()=>this.#r?.height??0);#a=ee(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#s=ee(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#o=ee(()=>w(this.#s).length>0);get hasExplicitBoundaries(){return w(this.#o)}set hasExplicitBoundaries(e){J(this.#o,e)}#c=ee(()=>({padding:this.opts.collisionPadding.current,boundary:w(this.#s).filter(nht),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return w(this.#c)}set detectOverflowOptions(e){J(this.#c,e)}#l=Me(void 0);#d=Me(void 0);#u=Me(void 0);#p=Me(void 0);#g=ee(()=>[Apt({mainAxis:this.opts.sideOffset.current+w(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Rpt({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Dpt():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Opt({...this.detectOverflowOptions}),Ipt({...this.detectOverflowOptions,apply:({rects:e,availableWidth:r,availableHeight:n})=>{const{width:i,height:a}=e.reference;J(this.#l,r,!0),J(this.#d,n,!0),J(this.#u,i,!0),J(this.#p,a,!0)}}),this.arrowRef.current&&kpt({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Bpt({arrowWidth:w(this.#n),arrowHeight:w(this.#i)}),this.opts.hideWhenDetached.current&&Npt({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return w(this.#g)}set middleware(e){J(this.#g,e)}floating;#f=ee(()=>Upt(this.floating.placement));get placedSide(){return w(this.#f)}set placedSide(e){J(this.#f,e)}#h=ee(()=>$pt(this.floating.placement));get placedAlign(){return w(this.#h)}set placedAlign(e){J(this.#h,e)}#m=ee(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return w(this.#m)}set arrowX(e){J(this.#m,e)}#v=ee(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return w(this.#v)}set arrowY(e){J(this.#v,e)}#_=ee(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return w(this.#_)}set cannotCenterArrow(e){J(this.#_,e)}#b=Me();get contentZIndex(){return w(this.#b)}set contentZIndex(e){J(this.#b,e,!0)}#E=ee(()=>Fpt[this.placedSide]);get arrowBaseSide(){return w(this.#E)}set arrowBaseSide(e){J(this.#E,e)}#y=ee(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${w(this.#l)}px`,"--bits-floating-available-height":`${w(this.#d)}px`,"--bits-floating-anchor-width":`${w(this.#u)}px`,"--bits-floating-anchor-height":`${w(this.#p)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...w(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return w(this.#y)}set wrapperProps(e){J(this.#y,e)}#S=ee(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:cae({...w(this.#e)}),...this.contentAttachment}));get props(){return w(this.#S)}set props(e){J(this.#S,e)}#T=ee(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return w(this.#T)}set arrowStyle(e){J(this.#T,e)}constructor(e,r){this.opts=e,this.root=r,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),di(()=>e.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),this.floating=Lpt({strategy:()=>this.opts.strategy.current,placement:()=>w(this.#a),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>xpt(...n,{animationFrame:this.#t?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),sr(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),di(()=>this.contentRef.current,n=>{if(!n||!this.opts.enabled.current)return;const i=hae(n),a=i.requestAnimationFrame(()=>{if(this.contentRef.current!==n||!this.opts.enabled.current)return;const s=i.getComputedStyle(n).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{i.cancelAnimationFrame(a)}}),sr(()=>{this.floating.floating.current=this.wrapperRef.current})}}class nse{static create(e){return new nse(e,HQ.get())}opts;content;constructor(e,r){this.opts=e,this.content=r}#e=ee(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}class w9{static create(e,r=!1){return r?new w9(e,rse.get()):new w9(e,tse.get())}opts;root;constructor(e,r){this.opts=e,this.root=r,e.virtualEl&&e.virtualEl.current?r.triggerNode=W3e(e.virtualEl.current):r.triggerNode=e.ref}}function Bpt(t){return{name:"transformOrigin",options:t,fn(e){const{placement:r,rects:n,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,o=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[u,d]=ise(r),h={start:"0%",center:"50%",end:"100%"}[d],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+l/2;let g="",m="";return u==="bottom"?(g=s?h:`${f}px`,m=`${-l}px`):u==="top"?(g=s?h:`${f}px`,m=`${n.floating.height+l}px`):u==="right"?(g=`${-l}px`,m=s?h:`${p}px`):u==="left"&&(g=`${n.floating.width+l}px`,m=s?h:`${p}px`),{data:{x:g,y:m}}}}}function ise(t){const[e,r="center"]=t.split("-");return[e,r]}function Upt(t){return ise(t)[0]}function $pt(t){return ise(t)[1]}function Z3(t,e){We(e,!0);let r=ue(e,"tooltip",3,!1);T9.create(r());var n=Ee(),i=ne(n);ft(i,()=>e.children??Tt),H(t,n),Ke()}class Gpt{#e;#t=ee(()=>this.#e.candidateValues());#r;constructor(e){this.#e=e,this.#r=b5e("",{afterMs:1e3,getWindow:this.#e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!this.#e.enabled()||!w(this.#t).length)return;this.#r.current=this.#r.current+e;const r=this.#e.getCurrentItem(),n=w(this.#t).find(o=>o===r)??"",i=w(this.#t).map(o=>o??""),a=Sae(i,this.#r.current,n),s=w(this.#t).find(o=>o===a);return s&&this.#e.onMatch(s),s}resetTypeahead(){this.#r.current=""}}const zpt=[Yp,pae,JF],qpt=[zp,fae,ZF],Vpt=[...zpt,...qpt],Hpt=Sg({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),J3=new vo("Select.Root | Combobox.Root"),cB=new vo("Select.Content | Combobox.Content");class F5e{opts;#e=Me(!1);get touchedInput(){return w(this.#e)}set touchedInput(e){J(this.#e,e,!0)}#t=Me(null);get inputNode(){return w(this.#t)}set inputNode(e){J(this.#t,e,!0)}#r=Me(null);get contentNode(){return w(this.#r)}set contentNode(e){J(this.#r,e,!0)}contentPresence;#n=Me(null);get viewportNode(){return w(this.#n)}set viewportNode(e){J(this.#n,e,!0)}#i=Me(null);get triggerNode(){return w(this.#i)}set triggerNode(e){J(this.#i,e,!0)}#a=Me(null);get valueNode(){return w(this.#a)}set valueNode(e){J(this.#a,e,!0)}#s=Me("");get valueId(){return w(this.#s)}set valueId(e){J(this.#s,e,!0)}#o=Me(null);get highlightedNode(){return w(this.#o)}set highlightedNode(e){J(this.#o,e,!0)}#c=ee(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return w(this.#c)}set highlightedValue(e){J(this.#c,e)}#l=ee(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return w(this.#l)}set highlightedId(e){J(this.#l,e)}#d=ee(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return w(this.#d)}set highlightedLabel(e){J(this.#d,e)}#u=Me(!1);get contentIsPositioned(){return w(this.#u)}set contentIsPositioned(e){J(this.#u,e,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new w0(()=>null);constructor(e){this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new r1({ref:St(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Cc(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(e,r=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||r)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let r=this.getCandidateNodes();if(r.length){if(this.viewportNode){const n=this.viewportNode.getBoundingClientRect();r=r.filter(i=>{if(!this.viewportNode)return!1;const a=i.getBoundingClientRect();return a.right<=n.right&&a.left>=n.left&&a.bottom<=n.bottom&&a.top>=n.top})}this.setHighlightedNode(r[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(n=>n.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const r=this.opts.items.current.find(i=>i.value===e)?.label;if(r!==void 0)return r;const n=this.getNodeByValue(e);if(n){const i=n.getAttribute("data-label");return i!==null&&i!==""?i:n.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=e=>Hpt.getAttr(e,this.isCombobox?"combobox":void 0)}class Ypt extends F5e{opts;isMulti=!1;#e=ee(()=>this.opts.value.current!=="");get hasValue(){return w(this.#e)}set hasValue(e){J(this.#e,e)}#t=ee(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":"");get currentLabel(){return w(this.#t)}set currentLabel(e){J(this.#t,e)}#r=ee(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]);get candidateLabels(){return w(this.#r)}set candidateLabels(e){J(this.#r,e)}#n=ee(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return w(this.#n)}set dataTypeaheadEnabled(e){J(this.#n,e)}constructor(e){super(e),this.opts=e,sr(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),di(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current===e}toggleItem(e,r=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){Ku(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Wpt extends F5e{opts;isMulti=!0;#e=ee(()=>this.opts.value.current.length>0);get hasValue(){return w(this.#e)}set hasValue(e){J(this.#e,e)}constructor(e){super(e),this.opts=e,sr(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),di(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,r=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=r}setInitialHighlightedNode(){Ku(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Kpt{static create(e){const{type:r,...n}=e,i=r==="single"?new Ypt(n):new Wpt(n);return J3.set(i)}}class ase{static create(e){return new ase(e,J3.get())}opts;root;attachment;#e;#t;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(e.ref,n=>this.root.triggerNode=n),this.root.domContext=new w0(e.ref),this.#e=new E5e({getCurrentItem:()=>this.root.highlightedNode,onMatch:n=>{this.root.setHighlightedNode(n)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#t=new Gpt({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:n=>{if(this.root.isMulti||!this.root.opts.items.current)return;const i=this.root.opts.items.current.find(a=>a.label===n);i&&(this.root.opts.value.current=i.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#t.resetTypeahead(),this.#e.resetTypeahead()}#n(e){this.#r()}#i(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===zp||e.key===Yp)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===hg||e.key===Pd||e.key===Yp||e.key===zp)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#t.handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const s=this.root.getCandidateNodes();if(!s.length)return;if(e.key===Yp){const o=s[0];this.root.setHighlightedNode(o)}else if(e.key===zp){const o=s[s.length-1];this.root.setHighlightedNode(o)}return}if(e.key===BQ){this.root.handleClose();return}if((e.key===hg||e.key===Pd&&this.#e.search==="")&&!e.isComposing&&(e.preventDefault(),this.#i()))return;if(e.key===zp&&e.altKey&&this.root.handleClose(),Vpt.includes(e.key)){e.preventDefault();const s=this.root.getCandidateNodes(),o=this.root.highlightedNode,l=o?s.indexOf(o):-1,u=this.root.opts.loop.current;let d;if(e.key===Yp?d=Hht(s,l,u):e.key===zp?d=Yht(s,l,u):e.key===fae?d=Wht(s,l,10,u):e.key===pae?d=Kht(s,l,10,u):e.key===JF?d=s[0]:e.key===ZF&&(d=s[s.length-1]),!d)return;this.root.setHighlightedNode(d);return}const r=e.ctrlKey||e.altKey||e.metaKey,n=e.key.length===1,i=e.key===Pd,a=this.root.getCandidateNodes();if(e.key!==BQ){if(!r&&(n||i)){!this.#e.handleTypeaheadSearch(e.key,a)&&i&&(e.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const r=e.target;r?.hasPointerCapture(e.pointerId)&&r?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#n(e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#n(e):this.root.handleClose()))}#a=ee(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":e0(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":np(this.root.opts.open.current),"data-disabled":ac(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return w(this.#a)}set props(e){J(this.#a,e)}}class sse{static create(e){return cB.set(new sse(e,J3.get()))}opts;root;attachment;#e=Me(!1);get isPositioned(){return w(this.#e)}set isPositioned(e){J(this.#e,e,!0)}domContext;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(e.ref,n=>this.root.contentNode=n),this.domContext=new w0(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Kh(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),di(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),di([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(e){this.root.isUsingKeyboard=!1}#t=ee(()=>i0(this.root.isCombobox?"combobox":"select"));onInteractOutside=e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=ee(()=>({open:this.root.opts.open.current}));get snippetProps(){return w(this.#r)}set snippetProps(e){J(this.#r,e)}#n=ee(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":np(this.root.opts.open.current),...nE(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...w(this.#t)},onpointermove:this.onpointermove,...this.attachment}));get props(){return w(this.#n)}set props(e){J(this.#n,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}}}class ose{static create(e){return new ose(e,J3.get())}opts;root;attachment;#e=ee(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return w(this.#e)}set isSelected(e){J(this.#e,e)}#t=ee(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return w(this.#t)}set isHighlighted(e){J(this.#t,e)}prevHighlighted=new Udt(()=>this.isHighlighted);#r=Me(!1);get mounted(){return w(this.#r)}set mounted(e){J(this.#r,e,!0)}constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(e.ref),di([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),di(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}#n=ee(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return w(this.#n)}set snippetProps(e){J(this.#n,e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!UQ){Ai(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=ee(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":ac(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return w(this.#i)}set props(e){J(this.#i,e)}}class lse{static create(e){return new lse(e,J3.get())}opts;root;#e=ee(()=>this.root.opts.name.current!=="");get shouldRender(){return w(this.#e)}set shouldRender(e){J(this.#e,e)}constructor(e,r){this.opts=e,this.root=r,this.onfocus=this.onfocus.bind(this)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#t=ee(()=>({disabled:FQ(this.root.opts.disabled.current),required:FQ(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class cse{static create(e){return new cse(e,cB.get())}opts;content;root;attachment;#e=Me(0);get prevScrollTop(){return w(this.#e)}set prevScrollTop(e){J(this.#e,e,!0)}constructor(e,r){this.opts=e,this.content=r,this.root=r.root,this.attachment=Yi(e.ref,n=>{this.root.viewportNode=n})}#t=ee(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class B5e{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=Tn;#e=Me(!1);get mounted(){return w(this.#e)}set mounted(e){J(this.#e,e,!0)}constructor(e,r){this.opts=e,this.content=r,this.root=r.root,this.attachment=Yi(e.ref),di([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),sr(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(e){if(this.autoScrollTimer!==null)return;const r=n=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>r(n+1),this.opts.delay.current(n))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>r(1),this.opts.delay.current(0))}onpointermove(e){this.onpointerdown(e)}onpointerleave(e){this.clearAutoScrollInterval()}#t=ee(()=>({id:this.opts.id.current,"aria-hidden":Wdt(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class use{static create(e){return new use(new B5e(e,cB.get()))}scrollButtonState;content;root;#e=Me(!1);get canScrollDown(){return w(this.#e)}set canScrollDown(e){J(this.#e,e,!0)}scrollIntoViewTimer=null;constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,di([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),Ai(this.root.viewportNode,"scroll",()=>this.handleScroll())}),di([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),di(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=dae(5,()=>{const r=this.root.highlightedNode;r&&this.root.scrollHighlightedNodeIntoView(r)}))})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const r=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<r-n};handleAutoScroll=()=>{const e=this.root.viewportNode,r=this.root.highlightedNode;!e||!r||(e.scrollTop=e.scrollTop+r.offsetHeight)};#t=ee(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class dse{static create(e){return new dse(new B5e(e,cB.get()))}scrollButtonState;content;root;#e=Me(!1);get canScrollUp(){return w(this.#e)}set canScrollUp(e){J(this.#e,e,!0)}constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,di([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),Ai(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const r=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-r>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#t=ee(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}function Vz(t,e){We(e,!0);let r=ue(e,"value",15);const n=lse.create({value:St(()=>r())});var i=Ee(),a=ne(i);{var s=o=>{zae(o,Bt(()=>n.props,{get autocomplete(){return e.autocomplete},get value(){return r()},set value(l){r(l)}}))};Re(a,o=>{n.shouldRender&&o(s)})}H(t,i),Ke()}function uB(t,e){We(e,!0);let r=ue(e,"tooltip",3,!1);w9.create({id:St(()=>e.id),virtualEl:St(()=>e.virtualEl),ref:e.ref},r());var n=Ee(),i=ne(n);ft(i,()=>e.children??Tt),H(t,n),Ke()}var jpt=F1('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Xpt=ae("<span><!></span>");function Qpt(t,e){We(e,!0);let r=ue(e,"id",19,rR),n=ue(e,"width",3,10),i=ue(e,"height",3,5),a=xt(e,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const s=ee(()=>un(a,{id:r()}));var o=Ee(),l=ne(o);{var u=h=>{var f=Ee(),p=ne(f);ft(p,()=>e.child,()=>({props:w(s)})),H(h,f)},d=h=>{var f=Xpt();Er(f,()=>({...w(s)}));var p=de(f);{var g=_=>{var v=Ee(),y=ne(v);ft(y,()=>e.children??Tt),H(_,v)},m=_=>{var v=jpt();at(()=>{Pr(v,"width",n()),Pr(v,"height",i())}),H(_,v)};Re(p,_=>{e.children?_(g):_(m,-1)})}oe(f),H(h,f)};Re(l,h=>{e.child?h(u):h(d,-1)})}H(t,o),Ke()}function Zpt(t,e){We(e,!0);let r=ue(e,"id",19,rR),n=ue(e,"ref",15,null),i=xt(e,["$$slots","$$events","$$legacy","id","ref"]);const a=nse.create({id:St(()=>r()),ref:St(()=>n(),o=>n(o))}),s=ee(()=>un(i,a.props));Qpt(t,Bt(()=>w(s))),Ke()}function Jpt(t,e){We(e,!0);let r=ue(e,"side",3,"bottom"),n=ue(e,"sideOffset",3,0),i=ue(e,"align",3,"center"),a=ue(e,"alignOffset",3,0),s=ue(e,"arrowPadding",3,0),o=ue(e,"avoidCollisions",3,!0),l=ue(e,"collisionBoundary",19,()=>[]),u=ue(e,"collisionPadding",3,0),d=ue(e,"hideWhenDetached",3,!1),h=ue(e,"onPlaced",3,()=>{}),f=ue(e,"sticky",3,"partial"),p=ue(e,"updatePositionStrategy",3,"optimized"),g=ue(e,"strategy",3,"fixed"),m=ue(e,"dir",3,"ltr"),_=ue(e,"style",19,()=>({})),v=ue(e,"wrapperId",19,rR),y=ue(e,"customAnchor",3,null),b=ue(e,"tooltip",3,!1);const E=C9.create({side:St(()=>r()),sideOffset:St(()=>n()),align:St(()=>i()),alignOffset:St(()=>a()),id:St(()=>e.id),arrowPadding:St(()=>s()),avoidCollisions:St(()=>o()),collisionBoundary:St(()=>l()),collisionPadding:St(()=>u()),hideWhenDetached:St(()=>d()),onPlaced:St(()=>h()),sticky:St(()=>f()),updatePositionStrategy:St(()=>p()),strategy:St(()=>g()),dir:St(()=>m()),style:St(()=>_()),enabled:St(()=>e.enabled),wrapperId:St(()=>v()),customAnchor:St(()=>y())},b()),S=ee(()=>un(E.wrapperProps,{style:{pointerEvents:"auto"}}));var T=Ee(),C=ne(T);ft(C,()=>e.content??Tt,()=>({props:E.props,wrapperProps:w(S)})),H(t,T),Ke()}function egt(t,e){We(e,!0),Ns(()=>{e.onPlaced?.()});var r=Ee(),n=ne(r);ft(n,()=>e.content??Tt,()=>({props:{},wrapperProps:{}})),H(t,r),Ke()}function tgt(t,e){let r=ue(e,"isStatic",3,!1),n=xt(e,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=Ee(),a=ne(i);{var s=l=>{egt(l,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},o=l=>{Jpt(l,Bt({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>n))};Re(a,l=>{r()?l(s):l(o,-1)})}H(t,i)}var rgt=ae("<!> <!>",1);function U5e(t,e){We(e,!0);let r=ue(e,"interactOutsideBehavior",3,"close"),n=ue(e,"trapFocus",3,!0),i=ue(e,"isValidEvent",3,()=>!1),a=ue(e,"customAnchor",3,null),s=ue(e,"isStatic",3,!1),o=ue(e,"tooltip",3,!1),l=ue(e,"contentPointerEvents",3,"auto"),u=xt(e,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const d=ee(()=>e.preventScroll??!0),h=ee(()=>e.strategy??(w(d)?"fixed":"absolute"));tgt(t,{get isStatic(){return s()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return w(h)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return a()},get enabled(){return e.enabled},get tooltip(){return o()},content:(p,g)=>{let m=()=>g?.().props,_=()=>g?.().wrapperProps;var v=rgt(),y=ne(v);{var b=T=>{Xx(T,{get preventScroll(){return w(d)}})},E=T=>{Xx(T,{get preventScroll(){return w(d)}})};Re(y,T=>{e.forceMount&&e.enabled?T(b):e.forceMount||T(E,1)})}var S=he(y,2);Pae(S,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return n()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(C,x)=>{let A=()=>x?.().props;Dae(C,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(R,I)=>{Nae(R,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return r()},get isValidEvent(){return i()},get enabled(){return e.enabled},get ref(){return e.ref},children:(F,O)=>{let D=()=>O?.().props;Bae(F,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(M,P)=>{var N=Ee(),$=ne(N);{let U=ee(()=>({props:un(u,m(),D(),A(),{style:{pointerEvents:l()}}),wrapperProps:_()}));ft($,()=>e.popper??Tt,()=>w(U))}H(M,N)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),H(p,v)},$$slots:{content:!0}}),Ke()}function e5(t,e){let r=ue(e,"interactOutsideBehavior",3,"close"),n=ue(e,"trapFocus",3,!0),i=ue(e,"isValidEvent",3,()=>!1),a=ue(e,"customAnchor",3,null),s=ue(e,"isStatic",3,!1),o=xt(e,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var l=Ee(),u=ne(l);{var d=h=>{U5e(h,Bt({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return a()},get isStatic(){return s()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>o))};Re(u,h=>{e.shouldRender&&h(d)})}H(t,l)}function t5(t,e){let r=ue(e,"interactOutsideBehavior",3,"close"),n=ue(e,"trapFocus",3,!0),i=ue(e,"isValidEvent",3,()=>!1),a=ue(e,"customAnchor",3,null),s=ue(e,"isStatic",3,!1),o=xt(e,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);U5e(t,Bt({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return a()},get isStatic(){return s()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside}},()=>o,{forceMount:!0}))}var ngt=ae("<div><div><!></div></div>"),igt=ae("<div><div><!></div></div>");function agt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"forceMount",3,!1),s=ue(e,"side",3,"bottom"),o=ue(e,"onInteractOutside",3,Tn),l=ue(e,"onEscapeKeydown",3,Tn),u=ue(e,"preventScroll",3,!1),d=xt(e,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const h=sse.create({id:St(()=>n()),ref:St(()=>i(),v=>i(v)),onInteractOutside:St(()=>o()),onEscapeKeydown:St(()=>l())}),f=ee(()=>un(d,h.props));var p=Ee(),g=ne(p);{var m=v=>{t5(v,Bt(()=>w(f),()=>h.popperProps,{get ref(){return h.opts.ref},get side(){return s()},get enabled(){return h.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!0,get shouldRender(){return h.shouldRender},popper:(b,E)=>{let S=()=>E?.().props,T=()=>E?.().wrapperProps;const C=ee(()=>un(S(),{style:h.props.style},{style:e.style}));var x=Ee(),A=ne(x);{var R=L=>{var F=Ee(),O=ne(F);{let D=ee(()=>({props:w(C),wrapperProps:T(),...h.snippetProps}));ft(O,()=>e.child,()=>w(D))}H(L,F)},I=L=>{var F=ngt();Er(F,()=>({...T()}));var O=de(F);Er(O,()=>({...w(C)}));var D=de(O);ft(D,()=>e.children??Tt),oe(O),oe(F),H(L,F)};Re(A,L=>{e.child?L(R):L(I,-1)})}H(b,x)},$$slots:{popper:!0}}))},_=v=>{e5(v,Bt(()=>w(f),()=>h.popperProps,{get ref(){return h.opts.ref},get side(){return s()},get open(){return h.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!1,get shouldRender(){return h.shouldRender},popper:(b,E)=>{let S=()=>E?.().props,T=()=>E?.().wrapperProps;const C=ee(()=>un(S(),{style:h.props.style},{style:e.style}));var x=Ee(),A=ne(x);{var R=L=>{var F=Ee(),O=ne(F);{let D=ee(()=>({props:w(C),wrapperProps:T(),...h.snippetProps}));ft(O,()=>e.child,()=>w(D))}H(L,F)},I=L=>{var F=igt();Er(F,()=>({...T()}));var O=de(F);Er(O,()=>({...w(C)}));var D=de(O);ft(D,()=>e.children??Tt),oe(O),oe(F),H(L,F)};Re(A,L=>{e.child?L(R):L(I,-1)})}H(b,x)},$$slots:{popper:!0}}))};Re(g,v=>{a()?v(m):a()||v(_,1)})}H(t,p),Ke()}function hse(t,e){We(e,!0);let r=ue(e,"mounted",15,!1),n=ue(e,"onMountedChange",3,Tn);QF(()=>(r(!0),n()(!0),()=>{r(!1),n()(!1)})),Ke()}var sgt=ae("<div><!></div>"),ogt=ae("<!> <!>",1);function lgt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"label",19,()=>e.value),s=ue(e,"disabled",3,!1),o=ue(e,"onHighlight",3,Tn),l=ue(e,"onUnhighlight",3,Tn),u=xt(e,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const d=ose.create({id:St(()=>n()),ref:St(()=>i(),v=>i(v)),value:St(()=>e.value),disabled:St(()=>s()),label:St(()=>a()),onHighlight:St(()=>o()),onUnhighlight:St(()=>l())}),h=ee(()=>un(u,d.props));var f=ogt(),p=ne(f);{var g=v=>{var y=Ee(),b=ne(y);{let E=ee(()=>({props:w(h),...d.snippetProps}));ft(b,()=>e.child,()=>w(E))}H(v,y)},m=v=>{var y=sgt();Er(y,()=>({...w(h)}));var b=de(y);ft(b,()=>e.children??Tt,()=>d.snippetProps),oe(y),H(v,y)};Re(p,v=>{e.child?v(g):v(m,-1)})}var _=he(p,2);hse(_,{get mounted(){return d.mounted},set mounted(v){d.mounted=v}}),H(t,f),Ke()}var cgt=ae("<div><!></div>");function ugt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=xt(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const s=cse.create({id:St(()=>n()),ref:St(()=>i(),f=>i(f))}),o=ee(()=>un(a,s.props));var l=Ee(),u=ne(l);{var d=f=>{var p=Ee(),g=ne(p);ft(g,()=>e.child,()=>({props:w(o)})),H(f,p)},h=f=>{var p=cgt();Er(p,()=>({...w(o)}));var g=de(p);ft(g,()=>e.children??Tt),oe(p),H(f,p)};Re(u,f=>{e.child?f(d):f(h,-1)})}H(t,l),Ke()}var dgt=ae("<div><!></div>"),hgt=ae("<!> <!>",1);function fgt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"delay",3,()=>50),s=xt(e,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const o=use.create({id:St(()=>n()),ref:St(()=>i(),f=>i(f)),delay:St(()=>a())}),l=ee(()=>un(s,o.props));var u=Ee(),d=ne(u);{var h=f=>{var p=hgt(),g=ne(p);hse(g,{get mounted(){return o.scrollButtonState.mounted},set mounted(y){o.scrollButtonState.mounted=y}});var m=he(g,2);{var _=y=>{var b=Ee(),E=ne(b);ft(E,()=>e.child,()=>({props:s})),H(y,b)},v=y=>{var b=dgt();Er(b,()=>({...w(l)}));var E=de(b);ft(E,()=>e.children??Tt),oe(b),H(y,b)};Re(m,y=>{e.child?y(_):y(v,-1)})}H(f,p)};Re(d,f=>{o.canScrollDown&&f(h)})}H(t,u),Ke()}var pgt=ae("<div><!></div>"),ggt=ae("<!> <!>",1);function mgt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"delay",3,()=>50),s=xt(e,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const o=dse.create({id:St(()=>n()),ref:St(()=>i(),f=>i(f)),delay:St(()=>a())}),l=ee(()=>un(s,o.props));var u=Ee(),d=ne(u);{var h=f=>{var p=ggt(),g=ne(p);hse(g,{get mounted(){return o.scrollButtonState.mounted},set mounted(y){o.scrollButtonState.mounted=y}});var m=he(g,2);{var _=y=>{var b=Ee(),E=ne(b);ft(E,()=>e.child,()=>({props:s})),H(y,b)},v=y=>{var b=pgt();Er(b,()=>({...w(l)}));var E=de(b);ft(E,()=>e.children??Tt),oe(b),H(y,b)};Re(m,y=>{e.child?y(_):y(v,-1)})}H(f,p)};Re(d,f=>{o.canScrollUp&&f(h)})}H(t,u),Ke()}function _gt(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"onOpenChange",3,Tn),i=ue(e,"onOpenChangeComplete",3,Tn);aft.create({open:St(()=>r(),a=>{r(a),n()?.(a)}),onOpenChangeComplete:St(()=>i())}),Z3(t,{children:(a,s)=>{var o=Ee(),l=ne(o);ft(l,()=>e.children??Tt),H(a,o)},$$slots:{default:!0}}),Ke()}var vgt=ae("<div><!></div>");function ygt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=ue(e,"disabled",3,!1),s=ue(e,"onSelect",3,Tn),o=ue(e,"closeOnSelect",3,!0),l=xt(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const u=xae.create({id:St(()=>i()),disabled:St(()=>a()),onSelect:St(()=>s()),ref:St(()=>n(),m=>n(m)),closeOnSelect:St(()=>o())}),d=ee(()=>un(l,u.props));var h=Ee(),f=ne(h);{var p=m=>{var _=Ee(),v=ne(_);ft(v,()=>e.child,()=>({props:w(d)})),H(m,_)},g=m=>{var _=vgt();Er(_,()=>({...w(d)}));var v=de(_);ft(v,()=>e.children??Tt),oe(_),H(m,_)};Re(f,m=>{e.child?m(p):m(g,-1)})}H(t,h),Ke()}var bgt=ae("<div><!></div>");function Egt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=xt(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const s=Rae.create({id:St(()=>i()),ref:St(()=>n(),f=>n(f))}),o=ee(()=>un(a,s.props));var l=Ee(),u=ne(l);{var d=f=>{var p=Ee(),g=ne(p);ft(g,()=>e.child,()=>({props:w(o)})),H(f,p)},h=f=>{var p=bgt();Er(p,()=>({...w(o)}));var g=de(p);ft(g,()=>e.children??Tt),oe(p),H(f,p)};Re(u,f=>{e.child?f(d):f(h,-1)})}H(t,l),Ke()}var Sgt=ae("<div><div><!></div></div>"),Tgt=ae("<div><div><!></div></div>");function Cgt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"loop",3,!0),s=ue(e,"onInteractOutside",3,Tn),o=ue(e,"forceMount",3,!1),l=ue(e,"onEscapeKeydown",3,Tn),u=ue(e,"interactOutsideBehavior",3,"defer-otherwise-close"),d=ue(e,"escapeKeydownBehavior",3,"defer-otherwise-close"),h=ue(e,"onOpenAutoFocus",3,Tn),f=ue(e,"onCloseAutoFocus",3,Tn),p=ue(e,"onFocusOutside",3,Tn),g=ue(e,"side",3,"right"),m=ue(e,"trapFocus",3,!1),_=xt(e,["$$slots","$$events","$$legacy","id","ref","children","child","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocus","onCloseAutoFocus","onFocusOutside","side","trapFocus","style"]);const v=iB.create({id:St(()=>n()),loop:St(()=>a()),ref:St(()=>i(),O=>i(O)),isSub:!0,onCloseAutoFocus:St(()=>T)});function y(O){const D=O.currentTarget.contains(O.target),M=wht[v.parentMenu.root.opts.dir.current].includes(O.key);D&&M&&(v.parentMenu.onClose(),v.parentMenu.triggerNode?.focus(),O.preventDefault())}const b=ee(()=>v.parentMenu.root.getBitsAttr("sub-content")),E=ee(()=>un(_,v.props,{side:g(),onkeydown:y,[w(b)]:""}));function S(O){h()(O),!O.defaultPrevented&&(O.preventDefault(),v.parentMenu.root.isUsingKeyboard&&v.parentMenu.contentNode&&Cae.dispatch(v.parentMenu.contentNode))}function T(O){f()(O),!O.defaultPrevented&&O.preventDefault()}function C(O){s()(O),!O.defaultPrevented&&v.parentMenu.onClose()}function x(O){l()(O),!O.defaultPrevented&&v.parentMenu.onClose()}function A(O){if(p()(O),O.defaultPrevented||!jf(O.target)||O.target.id===v.parentMenu.triggerNode?.id)return;if(v.parentMenu.parentMenu?.contentNode?.contains(O.target)){v.parentMenu.onClose(),O.preventDefault();return}const M=`[${v.parentMenu.root.getBitsAttr("sub-content")}]`;if(O.target.closest(M)){O.preventDefault();return}v.parentMenu.onClose()}var R=Ee(),I=ne(R);{var L=O=>{t5(O,Bt(()=>w(E),{get ref(){return v.opts.ref},get interactOutsideBehavior(){return u()},get escapeKeydownBehavior(){return d()},onOpenAutoFocus:S,get enabled(){return v.parentMenu.opts.open.current},onInteractOutside:C,onEscapeKeydown:x,onFocusOutside:A,preventScroll:!1,get loop(){return a()},get trapFocus(){return m()},get shouldRender(){return v.shouldRender},popper:(M,P)=>{let N=()=>P?.().props,$=()=>P?.().wrapperProps;const U=ee(()=>un(N(),w(E),{style:i0("menu")},{style:e.style}));var B=Ee(),V=ne(B);{var z=Y=>{var W=Ee(),Q=ne(W);{let ie=ee(()=>({props:w(U),wrapperProps:$(),...v.snippetProps}));ft(Q,()=>e.child,()=>w(ie))}H(Y,W)},G=Y=>{var W=Sgt();Er(W,()=>({...$()}));var Q=de(W);Er(Q,()=>({...w(U)}));var ie=de(Q);ft(ie,()=>e.children??Tt),oe(Q),oe(W),H(Y,W)};Re(V,Y=>{e.child?Y(z):Y(G,-1)})}H(M,B)},$$slots:{popper:!0}}))},F=O=>{e5(O,Bt(()=>w(E),{get ref(){return v.opts.ref},get interactOutsideBehavior(){return u()},get escapeKeydownBehavior(){return d()},onCloseAutoFocus:T,onOpenAutoFocus:S,get open(){return v.parentMenu.opts.open.current},onInteractOutside:C,onEscapeKeydown:x,onFocusOutside:A,preventScroll:!1,get loop(){return a()},get trapFocus(){return m()},get shouldRender(){return v.shouldRender},popper:(M,P)=>{let N=()=>P?.().props,$=()=>P?.().wrapperProps;const U=ee(()=>un(N(),w(E),{style:i0("menu")},{style:e.style}));var B=Ee(),V=ne(B);{var z=Y=>{var W=Ee(),Q=ne(W);{let ie=ee(()=>({props:w(U),wrapperProps:$(),...v.snippetProps}));ft(Q,()=>e.child,()=>w(ie))}H(Y,W)},G=Y=>{var W=Tgt();Er(W,()=>({...$()}));var Q=de(W);Er(Q,()=>({...w(U)}));var ie=de(Q);ft(ie,()=>e.children??Tt),oe(Q),oe(W),H(Y,W)};Re(V,Y=>{e.child?Y(z):Y(G,-1)})}H(M,B)},$$slots:{popper:!0}}))};Re(I,O=>{o()?O(L):o()||O(F,1)})}H(t,R),Ke()}var wgt=ae("<div><!></div>");function xgt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"disabled",3,!1),a=ue(e,"ref",15,null),s=ue(e,"onSelect",3,Tn),o=ue(e,"openDelay",3,0),l=xt(e,["$$slots","$$events","$$legacy","id","disabled","ref","children","child","onSelect","openDelay"]);const u=Aae.create({disabled:St(()=>i()),onSelect:St(()=>s()),id:St(()=>n()),ref:St(()=>a(),h=>a(h)),openDelay:St(()=>o())}),d=ee(()=>un(l,u.props));uB(t,{get id(){return n()},get ref(){return u.opts.ref},children:(h,f)=>{var p=Ee(),g=ne(p);{var m=v=>{var y=Ee(),b=ne(y);ft(b,()=>e.child,()=>({props:w(d)})),H(v,y)},_=v=>{var y=wgt();Er(y,()=>({...w(d)}));var b=de(y);ft(b,()=>e.children??Tt),oe(y),H(v,y)};Re(g,v=>{e.child?v(m):v(_,-1)})}H(h,p)},$$slots:{default:!0}}),Ke()}function Hz(t,e){const[r,n]=t;let i=!1;const a=e.length;for(let s=0,o=a-1;s<a;o=s++){const[l,u]=e[s]??[0,0],[d,h]=e[o]??[0,0];u>=n!=h>=n&&r<=(d-l)*(n-u)/(h-u)+l&&(i=!i)}return i}function Yz(t,e){return t[0]>=e.left&&t[0]<=e.right&&t[1]>=e.top&&t[1]<=e.bottom}function mme(t,e){const r=t.left+t.width/2,n=t.top+t.height/2,i=e.left+e.width/2,a=e.top+e.height/2,s=i-r,o=a-n;return Math.abs(s)>Math.abs(o)?s>0?"right":"left":o>0?"bottom":"top"}class $5e{#e;#t;#r;#n=null;#i=null;#a=[];#s=null;#o=null;#c=null;#l(){this.#o!==null&&(cancelAnimationFrame(this.#o),this.#o=null)}#d(){this.#l(),this.#o=requestAnimationFrame(()=>{this.#o=null,!(!this.#n||!this.#i)&&(this.#f(),this.#e.onPointerExit())})}#u(){this.#c!==null&&(clearTimeout(this.#c),this.#c=null)}#p(){this.#r!==null&&(this.#u(),this.#c=window.setTimeout(()=>{this.#c=null,!(!this.#n||!this.#i)&&(this.#f(),this.#e.onPointerExit())},this.#r))}constructor(e){this.#e=e,this.#t=e.buffer??1;const r=e.transitIntentTimeout;this.#r=typeof r=="number"&&r>0?r:null,di([e.triggerNode,e.contentNode,e.enabled],([n,i,a])=>{if(!n||!i||!a){this.#s=null,this.#f();return}this.#s&&this.#s!==n&&this.#f(),this.#s=n;const s=tR(n),o=f=>{this.#g([f.clientX,f.clientY],n,i)},l=f=>{const p=f.relatedTarget;if(Ju(p)&&i.contains(p))return;const g=this.#e.ignoredTargets?.()??[];Ju(p)&&g.some(m=>m===p||m.contains(p))||(this.#a=Ju(p)&&g.length>0?g.filter(m=>p.contains(m)):[],this.#n=[f.clientX,f.clientY],this.#i="content",this.#d())},u=()=>{this.#f()},d=()=>{this.#f()},h=f=>{const p=f.relatedTarget;Ju(p)&&n.contains(p)||(this.#n=[f.clientX,f.clientY],this.#i="trigger",this.#d())};return[Ai(s,"pointermove",o),Ai(n,"pointerleave",l),Ai(n,"pointerenter",u),Ai(i,"pointerenter",d),Ai(i,"pointerleave",h)].reduce((f,p)=>()=>{f(),p()},()=>{})})}#g(e,r,n){if(!this.#n||!this.#i)return;this.#l(),this.#p();const i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(this.#i==="content"&&Yz(e,a)){this.#f();return}if(this.#i==="trigger"&&Yz(e,i)){this.#f();return}if(this.#i==="content"&&this.#a.length>0)for(const d of this.#a){const h=d.getBoundingClientRect();if(Yz(e,h))return;const f=mme(i,h),p=this.#h(i,h,f);if(p&&Hz(e,p))return}const s=mme(i,a),o=this.#h(i,a,s);if(o&&Hz(e,o))return;const l=this.#i==="content"?a:i,u=this.#m(this.#n,l,s,this.#i);Hz(e,u)||(this.#f(),this.#e.onPointerExit())}#f(){this.#n=null,this.#i=null,this.#a=[],this.#l(),this.#u()}#h(e,r,n){const i=this.#t;switch(n){case"top":return[[Math.min(e.left,r.left)-i,e.top],[Math.min(e.left,r.left)-i,r.bottom],[Math.max(e.right,r.right)+i,r.bottom],[Math.max(e.right,r.right)+i,e.top]];case"bottom":return[[Math.min(e.left,r.left)-i,e.bottom],[Math.min(e.left,r.left)-i,r.top],[Math.max(e.right,r.right)+i,r.top],[Math.max(e.right,r.right)+i,e.bottom]];case"left":return[[e.left,Math.min(e.top,r.top)-i],[r.right,Math.min(e.top,r.top)-i],[r.right,Math.max(e.bottom,r.bottom)+i],[e.left,Math.max(e.bottom,r.bottom)+i]];case"right":return[[e.right,Math.min(e.top,r.top)-i],[r.left,Math.min(e.top,r.top)-i],[r.left,Math.max(e.bottom,r.bottom)+i],[e.right,Math.max(e.bottom,r.bottom)+i]]}}#m(e,r,n,i){const a=this.#t*4,[s,o]=e;switch(i==="trigger"?this.#v(n):n){case"top":return[[s-a,o+a],[s+a,o+a],[r.right+a,r.bottom],[r.right+a,r.top],[r.left-a,r.top],[r.left-a,r.bottom]];case"bottom":return[[s-a,o-a],[s+a,o-a],[r.right+a,r.top],[r.right+a,r.bottom],[r.left-a,r.bottom],[r.left-a,r.top]];case"left":return[[s+a,o-a],[s+a,o+a],[r.right,r.bottom+a],[r.left,r.bottom+a],[r.left,r.top-a],[r.right,r.top-a]];case"right":return[[s-a,o-a],[s-a,o+a],[r.left,r.bottom+a],[r.right,r.bottom+a],[r.right,r.top-a],[r.left,r.top-a]]}}#v(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const YQ=Sg({component:"popover",parts:["root","trigger","content","close","overlay"]}),fse=new vo("Popover.Root");class pse{static create(e){return fse.set(new pse(e))}opts;#e=Me(null);get contentNode(){return w(this.#e)}set contentNode(e){J(this.#e,e,!0)}contentPresence;#t=Me(null);get triggerNode(){return w(this.#t)}set triggerNode(e){J(this.#t,e,!0)}#r=Me(null);get overlayNode(){return w(this.#r)}set overlayNode(e){J(this.#r,e,!0)}overlayPresence;#n=Me(!1);get openedViaHover(){return w(this.#n)}set openedViaHover(e){J(this.#n,e,!0)}#i=Me(!1);get hasInteractedWithContent(){return w(this.#i)}set hasInteractedWithContent(e){J(this.#i,e,!0)}#a=Me(!1);get hoverCooldown(){return w(this.#a)}set hoverCooldown(e){J(this.#a,e,!0)}#s=Me(0);get closeDelay(){return w(this.#s)}set closeDelay(e){J(this.#s,e,!0)}#o=null;#c=null;constructor(e){this.opts=e,this.contentPresence=new r1({ref:St(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new r1({ref:St(()=>this.overlayNode),open:this.opts.open}),di(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(e){this.#c=e}#l(){this.#o!==null&&this.#c&&(this.#c.clearTimeout(this.#o),this.#o=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#c&&(this.#o=this.#c.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#o=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class gse{static create(e){return new gse(e,fse.get())}opts;root;attachment;domContext;#e=null;#t=null;#r=Me(!1);constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref,n=>this.root.triggerNode=n),this.domContext=new w0(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),di(()=>this.opts.closeDelay.current,n=>{this.root.closeDelay=n})}#n(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#i(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#a(){this.#n(),this.#i()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||g9(e)||(J(this.#r,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},r)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(g9(e)||(J(this.#r,!1),this.#n(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#a(),w(this.#r)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}w(this.#r)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===hg||e.key===Pd)&&(e.preventDefault(),this.#a(),this.root.toggleOpen())}#s(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#o=ee(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":e0(this.root.opts.open.current),"data-state":np(this.root.opts.open.current),"aria-controls":this.#s(),[YQ.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return w(this.#o)}set props(e){J(this.#o,e)}}class mse{static create(e){return new mse(e,fse.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref,n=>this.root.contentNode=n),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new $5e({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const r=e.target;Ju(r)&&rB(r)&&this.root.markInteraction()}onpointerenter(e){g9(e)||this.root.cancelDelayedClose()}onpointerleave(e){g9(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!Ju(e.target))return;const r=e.target.closest(YQ.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Ju(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const n=document.querySelector(this.opts.customAnchor.current);if(n&&n.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=ee(()=>({open:this.root.opts.open.current}));get snippetProps(){return w(this.#e)}set snippetProps(e){J(this.#e,e)}#t=ee(()=>({id:this.opts.id.current,tabindex:-1,"data-state":np(this.root.opts.open.current),...nE(this.root.contentPresence.transitionStatus),[YQ.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Agt=ae("<div><div><!></div></div>"),Rgt=ae("<div><div><!></div></div>");function Ogt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=ue(e,"forceMount",3,!1),s=ue(e,"onOpenAutoFocus",3,Tn),o=ue(e,"onCloseAutoFocus",3,Tn),l=ue(e,"onEscapeKeydown",3,Tn),u=ue(e,"onInteractOutside",3,Tn),d=ue(e,"trapFocus",3,!0),h=ue(e,"preventScroll",3,!1),f=ue(e,"customAnchor",3,null),p=xt(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const g=mse.create({id:St(()=>i()),ref:St(()=>n(),T=>n(T)),onInteractOutside:St(()=>u()),onEscapeKeydown:St(()=>l()),customAnchor:St(()=>f())}),m=ee(()=>un(p,g.props)),_=ee(()=>d()&&g.shouldTrapFocus);function v(T){g.shouldTrapFocus||T.preventDefault(),s()(T)}var y=Ee(),b=ne(y);{var E=T=>{t5(T,Bt(()=>w(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return w(_)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return f()},onOpenAutoFocus:v,get onCloseAutoFocus(){return o()},get shouldRender(){return g.shouldRender},popper:(x,A)=>{let R=()=>A?.().props,I=()=>A?.().wrapperProps;const L=ee(()=>un(R(),{style:i0("popover")},{style:e.style}));var F=Ee(),O=ne(F);{var D=P=>{var N=Ee(),$=ne(N);{let U=ee(()=>({props:w(L),wrapperProps:I(),...g.snippetProps}));ft($,()=>e.child,()=>w(U))}H(P,N)},M=P=>{var N=Agt();Er(N,()=>({...I()}));var $=de(N);Er($,()=>({...w(L)}));var U=de($);ft(U,()=>e.children??Tt),oe($),oe(N),H(P,N)};Re(O,P=>{e.child?P(D):P(M,-1)})}H(x,F)},$$slots:{popper:!0}}))},S=T=>{e5(T,Bt(()=>w(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return w(_)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return f()},onOpenAutoFocus:v,get onCloseAutoFocus(){return o()},get shouldRender(){return g.shouldRender},popper:(x,A)=>{let R=()=>A?.().props,I=()=>A?.().wrapperProps;const L=ee(()=>un(R(),{style:i0("popover")},{style:e.style}));var F=Ee(),O=ne(F);{var D=P=>{var N=Ee(),$=ne(N);{let U=ee(()=>({props:w(L),wrapperProps:I(),...g.snippetProps}));ft($,()=>e.child,()=>w(U))}H(P,N)},M=P=>{var N=Rgt();Er(N,()=>({...I()}));var $=de(N);Er($,()=>({...w(L)}));var U=de($);ft(U,()=>e.children??Tt),oe($),oe(N),H(P,N)};Re(O,P=>{e.child?P(D):P(M,-1)})}H(x,F)},$$slots:{popper:!0}}))};Re(b,T=>{a()?T(E):a()||T(S,1)})}H(t,y),Ke()}var Igt=ae("<button><!></button>");function Ngt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"type",3,"button"),s=ue(e,"disabled",3,!1),o=ue(e,"openOnHover",3,!1),l=ue(e,"openDelay",3,700),u=ue(e,"closeDelay",3,300),d=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const h=gse.create({id:St(()=>n()),ref:St(()=>i(),p=>i(p)),disabled:St(()=>!!s()),openOnHover:St(()=>o()),openDelay:St(()=>l()),closeDelay:St(()=>u())}),f=ee(()=>un(d,h.props,{type:a()}));uB(t,{get id(){return n()},get ref(){return h.opts.ref},children:(p,g)=>{var m=Ee(),_=ne(m);{var v=b=>{var E=Ee(),S=ne(E);ft(S,()=>e.child,()=>({props:w(f)})),H(b,E)},y=b=>{var E=Igt();Er(E,()=>({...w(f)}));var S=de(E);ft(S,()=>e.children??Tt),oe(E),H(b,E)};Re(_,b=>{e.child?b(v):b(y,-1)})}H(p,m)},$$slots:{default:!0}}),Ke()}function dB(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"onOpenChange",3,Tn),i=ue(e,"onOpenChangeComplete",3,Tn);eB.create({variant:St(()=>"dialog"),open:St(()=>r(),o=>{r(o),n()(o)}),onOpenChangeComplete:St(()=>i())});var a=Ee(),s=ne(a);ft(s,()=>e.children??Tt),H(t,a),Ke()}var kgt=ae("<button><!></button>");function hB(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"disabled",3,!1),s=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const o=gae.create({variant:St(()=>"close"),id:St(()=>n()),ref:St(()=>i(),p=>i(p)),disabled:St(()=>!!a())}),l=ee(()=>un(s,o.props));var u=Ee(),d=ne(u);{var h=p=>{var g=Ee(),m=ne(g);ft(m,()=>e.child,()=>({props:w(l)})),H(p,g)},f=p=>{var g=kgt();Er(g,()=>({...w(l)}));var m=de(g);ft(m,()=>e.children??Tt),oe(g),H(p,g)};Re(d,p=>{e.child?p(h):p(f,-1)})}H(t,u),Ke()}var Dgt=ae("<!> <!>",1),Mgt=ae("<!> <div><!></div>",1);function fB(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"forceMount",3,!1),s=ue(e,"onCloseAutoFocus",3,Tn),o=ue(e,"onOpenAutoFocus",3,Tn),l=ue(e,"onEscapeKeydown",3,Tn),u=ue(e,"onInteractOutside",3,Tn),d=ue(e,"trapFocus",3,!0),h=ue(e,"preventScroll",3,!0),f=ue(e,"restoreScrollDelay",3,null),p=xt(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const g=tB.create({id:St(()=>n()),ref:St(()=>i(),b=>i(b))}),m=ee(()=>un(p,g.props));var _=Ee(),v=ne(_);{var y=b=>{Pae(b,{get ref(){return g.opts.ref},loop:!0,get trapFocus(){return d()},get enabled(){return g.root.opts.open.current},get onOpenAutoFocus(){return o()},get onCloseAutoFocus(){return s()},focusScope:(S,T)=>{let C=()=>T?.().props;Dae(S,Bt(()=>w(m),{get enabled(){return g.root.opts.open.current},get ref(){return g.opts.ref},onEscapeKeydown:x=>{l()(x),!x.defaultPrevented&&g.root.handleClose()},children:(x,A)=>{Nae(x,Bt(()=>w(m),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},onInteractOutside:R=>{u()(R),!R.defaultPrevented&&g.root.handleClose()},children:(R,I)=>{Bae(R,Bt(()=>w(m),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},children:(L,F)=>{var O=Ee(),D=ne(O);{var M=N=>{var $=Dgt(),U=ne($);{var B=z=>{Xx(z,{get preventScroll(){return h()},get restoreScrollDelay(){return f()}})};Re(U,z=>{g.root.opts.open.current&&z(B)})}var V=he(U,2);{let z=ee(()=>({props:un(w(m),C()),...g.snippetProps}));ft(V,()=>e.child,()=>w(z))}H(N,$)},P=N=>{var $=Mgt(),U=ne($);Xx(U,{get preventScroll(){return h()}});var B=he(U,2);Er(B,z=>({...z}),[()=>un(w(m),C())]);var V=de(B);ft(V,()=>e.children??Tt),oe(B),H(N,$)};Re(D,N=>{e.child?N(M):N(P,-1)})}H(L,O)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};Re(v,b=>{(g.shouldRender||a())&&b(y)})}H(t,_),Ke()}function Lgt(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"dir",3,"ltr"),i=ue(e,"onOpenChange",3,Tn),a=ue(e,"onOpenChangeComplete",3,Tn),s=ue(e,"_internal_variant",3,"dropdown-menu"),o=ue(e,"_internal_should_skip_exit_animation",3,void 0);const l=wae.create({variant:St(()=>s()),dir:St(()=>n()),onClose:()=>{r(!1),i()(!1)},shouldSkipExitAnimation:()=>o()?.()??!1});nB.create({open:St(()=>r(),u=>{r(u),i()(u)}),onOpenChangeComplete:St(()=>a())},l),Z3(t,{children:(u,d)=>{var h=Ee(),f=ne(h);ft(f,()=>e.children??Tt),H(u,h)},$$slots:{default:!0}}),Ke()}var Pgt=ae("<div><div><!></div></div>"),Fgt=ae("<div><div><!></div></div>");function Bgt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"loop",3,!0),s=ue(e,"onInteractOutside",3,Tn),o=ue(e,"onEscapeKeydown",3,Tn),l=ue(e,"onCloseAutoFocus",3,Tn),u=ue(e,"forceMount",3,!1),d=ue(e,"trapFocus",3,!1),h=xt(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const f=iB.create({id:St(()=>n()),loop:St(()=>a()),ref:St(()=>i(),E=>i(E)),onCloseAutoFocus:St(()=>l())}),p=ee(()=>un(h,f.props));function g(E){if(f.handleInteractOutside(E),!E.defaultPrevented&&(s()(E),!E.defaultPrevented)){if(E.target&&E.target instanceof Element){const S=`[${f.parentMenu.root.getBitsAttr("sub-content")}]`;if(E.target.closest(S))return}f.parentMenu.onClose()}}function m(E){o()(E),!E.defaultPrevented&&f.parentMenu.onClose()}var _=Ee(),v=ne(_);{var y=E=>{t5(E,Bt(()=>w(p),()=>f.popperProps,{get ref(){return f.opts.ref},get enabled(){return f.parentMenu.opts.open.current},onInteractOutside:g,onEscapeKeydown:m,get trapFocus(){return d()},get loop(){return a()},forceMount:!0,get id(){return n()},get shouldRender(){return f.shouldRender},popper:(T,C)=>{let x=()=>C?.().props,A=()=>C?.().wrapperProps;const R=ee(()=>un(x(),{style:i0("dropdown-menu")},{style:e.style}));var I=Ee(),L=ne(I);{var F=D=>{var M=Ee(),P=ne(M);{let N=ee(()=>({props:w(R),wrapperProps:A(),...f.snippetProps}));ft(P,()=>e.child,()=>w(N))}H(D,M)},O=D=>{var M=Pgt();Er(M,()=>({...A()}));var P=de(M);Er(P,()=>({...w(R)}));var N=de(P);ft(N,()=>e.children??Tt),oe(P),oe(M),H(D,M)};Re(L,D=>{e.child?D(F):D(O,-1)})}H(T,I)},$$slots:{popper:!0}}))},b=E=>{e5(E,Bt(()=>w(p),()=>f.popperProps,{get ref(){return f.opts.ref},get open(){return f.parentMenu.opts.open.current},onInteractOutside:g,onEscapeKeydown:m,get trapFocus(){return d()},get loop(){return a()},forceMount:!1,get id(){return n()},get shouldRender(){return f.shouldRender},popper:(T,C)=>{let x=()=>C?.().props,A=()=>C?.().wrapperProps;const R=ee(()=>un(x(),{style:i0("dropdown-menu")},{style:e.style}));var I=Ee(),L=ne(I);{var F=D=>{var M=Ee(),P=ne(M);{let N=ee(()=>({props:w(R),wrapperProps:A(),...f.snippetProps}));ft(P,()=>e.child,()=>w(N))}H(D,M)},O=D=>{var M=Fgt();Er(M,()=>({...A()}));var P=de(M);Er(P,()=>({...w(R)}));var N=de(P);ft(N,()=>e.children??Tt),oe(P),oe(M),H(D,M)};Re(L,D=>{e.child?D(F):D(O,-1)})}H(T,I)},$$slots:{popper:!0}}))};Re(v,E=>{u()?E(y):u()||E(b,1)})}H(t,_),Ke()}var Ugt=ae("<button><!></button>");function $gt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"disabled",3,!1),s=ue(e,"type",3,"button"),o=xt(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const l=Oae.create({id:St(()=>n()),disabled:St(()=>a()??!1),ref:St(()=>i(),d=>i(d))}),u=ee(()=>un(o,l.props,{type:s()}));uB(t,{get id(){return n()},get ref(){return l.opts.ref},children:(d,h)=>{var f=Ee(),p=ne(f);{var g=_=>{var v=Ee(),y=ne(v);ft(y,()=>e.child,()=>({props:w(u)})),H(_,v)},m=_=>{var v=Ugt();Er(v,()=>({...w(u)}));var y=de(v);ft(y,()=>e.children??Tt),oe(v),H(_,v)};Re(p,_=>{e.child?_(g):_(m,-1)})}H(d,f)},$$slots:{default:!0}}),Ke()}const Ggt=Sg({component:"label",parts:["root"]});class _se{static create(e){return new _se(e)}opts;attachment;constructor(e){this.opts=e,this.attachment=Yi(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=ee(()=>({id:this.opts.id.current,[Ggt.root]:"",onmousedown:this.onmousedown,...this.attachment}));get props(){return w(this.#e)}set props(e){J(this.#e,e)}}var zgt=ae("<label><!></label>");function qgt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const s=_se.create({id:St(()=>n()),ref:St(()=>i(),f=>i(f))}),o=ee(()=>un(a,s.props,{for:e.for}));var l=Ee(),u=ne(l);{var d=f=>{var p=Ee(),g=ne(p);ft(g,()=>e.child,()=>({props:w(o)})),H(f,p)},h=f=>{var p=zgt();Er(p,()=>({...w(o),for:e.for}));var g=de(p);ft(g,()=>e.children??Tt),oe(p),H(f,p)};Re(u,f=>{e.child?f(d):f(h,-1)})}H(t,l),Ke()}class Zx{#e;#t;constructor(e,r){this.#e=e,this.#t=r,this.handler=this.handler.bind(this),sr(this.handler)}handler(){let e=0;const r=this.#e();if(!r)return;const n=new ResizeObserver(()=>{cancelAnimationFrame(e),e=window.requestAnimationFrame(this.#t)});return n.observe(r),()=>{window.cancelAnimationFrame(e),n.unobserve(r)}}}class Vgt{opts;present;#e;#t=Me(!1);#r=!1;#n=Me(void 0);#i=null;constructor(e){this.opts=e,this.present=this.opts.open,J(this.#t,e.open.current,!0),this.#e=new s5e({ref:this.opts.ref,afterTick:this.opts.open}),Kh(()=>this.#s()),di(()=>this.present.current,r=>{if(!this.#r){this.#r=!0;return}this.#s(),r&&J(this.#t,!0),J(this.#n,r?"starting":"ending",!0),r&&(this.#i=window.requestAnimationFrame(()=>{this.#i=null,this.present.current&&J(this.#n,void 0)})),this.#e.run(()=>{r===this.present.current&&(r||J(this.#t,!1),J(this.#n,void 0))})})}#a=ee(()=>w(this.#t));get isPresent(){return w(this.#a)}set isPresent(e){J(this.#a,e)}get transitionStatus(){return w(this.#n)}#s(){this.#i!==null&&(window.cancelAnimationFrame(this.#i),this.#i=null)}}function pB(t,e){We(e,!0);const r=new Vgt({open:St(()=>e.open),ref:e.ref});var n=Ee(),i=ne(n);{var a=s=>{var o=Ee(),l=ne(o);ft(l,()=>e.presence??Tt,()=>({present:r.isPresent,transitionStatus:r.transitionStatus})),H(s,o)};Re(i,s=>{(e.forceMount||e.open||r.isPresent)&&s(a)})}H(t,n),Ke()}function Hgt(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"onOpenChange",3,Tn),i=ue(e,"onOpenChangeComplete",3,Tn);pse.create({open:St(()=>r(),a=>{r(a),n()(a)}),onOpenChangeComplete:St(()=>i())}),Z3(t,{children:(a,s)=>{var o=Ee(),l=ne(o);ft(l,()=>e.children??Tt),H(a,o)},$$slots:{default:!0}}),Ke()}function Ygt(t,e,r){return Math.min(r,Math.max(e,t))}class Wgt{state;#e;constructor(e,r){this.state=nu(e),this.#e=r,this.dispatch=this.dispatch.bind(this)}#t(e){return this.#e[this.state.current][e]??this.state.current}dispatch(e){this.state.current=this.#t(e)}}const r5=Sg({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),n5=new vo("ScrollArea.Root"),i5=new vo("ScrollArea.Scrollbar"),gB=new vo("ScrollArea.ScrollbarVisible"),vse=new vo("ScrollArea.ScrollbarAxis"),G5e=new vo("ScrollArea.ScrollbarShared");class yse{static create(e){return n5.set(new yse(e))}opts;attachment;#e=Me(null);get scrollAreaNode(){return w(this.#e)}set scrollAreaNode(e){J(this.#e,e,!0)}#t=Me(null);get viewportNode(){return w(this.#t)}set viewportNode(e){J(this.#t,e,!0)}#r=Me(null);get contentNode(){return w(this.#r)}set contentNode(e){J(this.#r,e,!0)}#n=Me(null);get scrollbarXNode(){return w(this.#n)}set scrollbarXNode(e){J(this.#n,e,!0)}#i=Me(null);get scrollbarYNode(){return w(this.#i)}set scrollbarYNode(e){J(this.#i,e,!0)}#a=Me(0);get cornerWidth(){return w(this.#a)}set cornerWidth(e){J(this.#a,e,!0)}#s=Me(0);get cornerHeight(){return w(this.#s)}set cornerHeight(e){J(this.#s,e,!0)}#o=Me(!1);get scrollbarXEnabled(){return w(this.#o)}set scrollbarXEnabled(e){J(this.#o,e,!0)}#c=Me(!1);get scrollbarYEnabled(){return w(this.#c)}set scrollbarYEnabled(e){J(this.#c,e,!0)}domContext;constructor(e){this.opts=e,this.attachment=Yi(e.ref,r=>this.scrollAreaNode=r),this.domContext=new w0(e.ref)}#l=ee(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[r5.root]:"",...this.attachment}));get props(){return w(this.#l)}set props(e){J(this.#l,e)}}class bse{static create(e){return new bse(e,n5.get())}opts;root;attachment;#e=nu(rR());#t=nu(null);contentAttachment=Yi(this.#t,e=>this.root.contentNode=e);constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(e.ref,n=>this.root.viewportNode=n)}#r=ee(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[r5.viewport]:"",...this.attachment}));get props(){return w(this.#r)}set props(e){J(this.#r,e)}#n=ee(()=>({id:this.#e.current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment}));get contentProps(){return w(this.#n)}set contentProps(e){J(this.#n,e)}}class Ese{static create(e){return i5.set(new Ese(e,n5.get()))}opts;root;#e=ee(()=>this.opts.orientation.current==="horizontal");get isHorizontal(){return w(this.#e)}set isHorizontal(e){J(this.#e,e)}#t=Me(!1);get hasThumb(){return w(this.#t)}set hasThumb(e){J(this.#t,e,!0)}constructor(e,r){this.opts=e,this.root=r,di(()=>this.isHorizontal,n=>n?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}}class Sse{static create(){return new Sse(i5.get())}scrollbar;root;#e=Me(!1);get isVisible(){return w(this.#e)}set isVisible(e){J(this.#e,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root,sr(()=>{const r=this.root.scrollAreaNode,n=this.root.opts.scrollHideDelay.current;let i=0;if(!r)return;const a=()=>{this.root.domContext.clearTimeout(i),Vi(()=>this.isVisible=!0)},s=()=>{i&&this.root.domContext.clearTimeout(i),i=this.root.domContext.setTimeout(()=>{Vi(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},n)},o=Jy(Ai(r,"pointerenter",a),Ai(r,"pointerleave",s));return()=>{this.root.domContext.getWindow().clearTimeout(i),o()}})}#t=ee(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class Tse{static create(){return new Tse(i5.get())}scrollbar;root;machine=new Wgt("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});#e=ee(()=>this.machine.state.current==="hidden");get isHidden(){return w(this.#e)}set isHidden(e){J(this.#e,e)}constructor(e){this.scrollbar=e,this.root=e.root;const r=XF(()=>this.machine.dispatch("SCROLL_END"),100);sr(()=>{const n=this.machine.state.current,i=this.root.opts.scrollHideDelay.current;if(n==="idle"){const a=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),i);return()=>this.root.domContext.clearTimeout(a)}}),sr(()=>{const n=this.root.viewportNode;if(!n)return;const i=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let a=n[i];return Ai(n,"scroll",()=>{const l=n[i];a!==l&&(this.machine.dispatch("SCROLL"),r()),a=l})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}onpointerenter(e){this.machine.dispatch("POINTER_ENTER")}onpointerleave(e){this.machine.dispatch("POINTER_LEAVE")}#t=ee(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class mB{static create(){return new mB(i5.get())}scrollbar;root;#e=Me(!1);get isVisible(){return w(this.#e)}set isVisible(e){J(this.#e,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root;const r=XF(()=>{const n=this.root.viewportNode;if(!n)return;const i=n.offsetWidth<n.scrollWidth,a=n.offsetHeight<n.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?i:a},10);new Zx(()=>this.root.viewportNode,r),new Zx(()=>this.root.contentNode,r)}#t=ee(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class Cse{static create(){return gB.set(new Cse(i5.get()))}scrollbar;root;#e=Me(null);get thumbNode(){return w(this.#e)}set thumbNode(e){J(this.#e,e,!0)}#t=Me(0);get pointerOffset(){return w(this.#t)}set pointerOffset(e){J(this.#t,e,!0)}#r=Me({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}});get sizes(){return w(this.#r)}set sizes(e){J(this.#r,e)}#n=ee(()=>z5e(this.sizes.viewport,this.sizes.content));get thumbRatio(){return w(this.#n)}set thumbRatio(e){J(this.#n,e)}#i=ee(()=>this.thumbRatio>0&&this.thumbRatio<1);get hasThumb(){return w(this.#i)}set hasThumb(e){J(this.#i,e)}#a=Me("");get prevTransformStyle(){return w(this.#a)}set prevTransformStyle(e){J(this.#a,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root,sr(()=>{this.scrollbar.hasThumb=this.hasThumb}),sr(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}setSizes(e){this.sizes=e}getScrollPosition(e,r){return Kgt({pointerPos:e,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:r})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(e){this.pointerOffset=e}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const e=this.root.viewportNode.scrollLeft,n=`translate3d(${_me({scrollPos:e,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}xOnWheelScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=e)}xOnDragScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(e,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const e=this.root.viewportNode.scrollTop,n=`translate3d(0, ${_me({scrollPos:e,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}yOnWheelScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollTop=e)}yOnDragScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(e,this.root.opts.dir.current))}}class wse{static create(e){return vse.set(new wse(e,gB.get()))}opts;scrollbarVis;root;scrollbar;attachment;#e=Me();get computedStyle(){return w(this.#e)}set computedStyle(e){J(this.#e,e,!0)}constructor(e,r){this.opts=e,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,this.attachment=Yi(this.scrollbar.opts.ref,n=>this.root.scrollbarXNode=n),sr(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),sr(()=>{this.onResize()})}onThumbPointerDown=e=>{this.scrollbarVis.onThumbPointerDown(e.x)};onDragScroll=e=>{this.scrollbarVis.xOnDragScroll(e.x)};onThumbPointerUp=()=>{this.scrollbarVis.onThumbPointerUp()};onThumbPositionChange=()=>{this.scrollbarVis.xOnThumbPositionChange()};onWheelScroll=(e,r)=>{if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollLeft+e.deltaX;this.scrollbarVis.xOnWheelScroll(n),V5e(n,r)&&e.preventDefault()};onResize=()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:x9(this.computedStyle.paddingLeft),paddingEnd:x9(this.computedStyle.paddingRight)}})};#t=ee(()=>_B(this.scrollbarVis.sizes));get thumbSize(){return w(this.#t)}set thumbSize(e){J(this.#t,e)}#r=ee(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment}));get props(){return w(this.#r)}set props(e){J(this.#r,e)}}class xse{static create(e){return vse.set(new xse(e,gB.get()))}opts;scrollbarVis;root;scrollbar;attachment;#e=Me();get computedStyle(){return w(this.#e)}set computedStyle(e){J(this.#e,e,!0)}constructor(e,r){this.opts=e,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,this.attachment=Yi(this.scrollbar.opts.ref,n=>this.root.scrollbarYNode=n),sr(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),sr(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}onThumbPointerDown(e){this.scrollbarVis.onThumbPointerDown(e.y)}onDragScroll(e){this.scrollbarVis.yOnDragScroll(e.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(e,r){if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollTop+e.deltaY;this.scrollbarVis.yOnWheelScroll(n),V5e(n,r)&&e.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:x9(this.computedStyle.paddingTop),paddingEnd:x9(this.computedStyle.paddingBottom)}})}#t=ee(()=>_B(this.scrollbarVis.sizes));get thumbSize(){return w(this.#t)}set thumbSize(e){J(this.#t,e)}#r=ee(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment}));get props(){return w(this.#r)}set props(e){J(this.#r,e)}}class Ase{static create(){return G5e.set(new Ase(vse.get()))}scrollbarState;root;scrollbarVis;scrollbar;#e=Me(null);get rect(){return w(this.#e)}set rect(e){J(this.#e,e)}#t=Me("");get prevWebkitUserSelect(){return w(this.#t)}set prevWebkitUserSelect(e){J(this.#t,e,!0)}handleResize;handleThumbPositionChange;handleWheelScroll;handleThumbPointerDown;handleThumbPointerUp;#r=ee(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport);get maxScrollPos(){return w(this.#r)}set maxScrollPos(e){J(this.#r,e)}constructor(e){this.scrollbarState=e,this.root=e.root,this.scrollbarVis=e.scrollbarVis,this.scrollbar=e.scrollbarVis.scrollbar,this.handleResize=XF(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,sr(()=>{const r=this.maxScrollPos,n=this.scrollbar.opts.ref.current;this.root.viewportNode;const i=s=>{const o=s.target;n?.contains(o)&&this.handleWheelScroll(s,r)};return Ai(this.root.domContext.getDocument(),"wheel",i,{passive:!1})}),Cc(()=>{this.scrollbarVis.sizes,Vi(()=>this.handleThumbPositionChange())}),new Zx(()=>this.scrollbar.opts.ref.current,this.handleResize),new Zx(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onlostpointercapture=this.onlostpointercapture.bind(this)}handleDragScroll(e){if(!this.rect)return;const r=e.clientX-this.rect.left,n=e.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:r,y:n})}#n(){this.rect!==null&&(this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null)}onpointerdown(e){if(e.button!==0)return;e.target.setPointerCapture(e.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(e)}onpointermove(e){this.handleDragScroll(e)}onpointerup(e){const r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),this.#n()}onlostpointercapture(e){this.#n()}#i=ee(()=>un({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[r5.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup,onlostpointercapture:this.onlostpointercapture}));get props(){return w(this.#i)}set props(e){J(this.#i,e)}}class Rse{static create(e){return new Rse(e,G5e.get())}opts;scrollbarState;attachment;#e;#t=Me();#r=XF(()=>{w(this.#t)&&(w(this.#t)(),J(this.#t,void 0))},100);constructor(e,r){this.opts=e,this.scrollbarState=r,this.#e=r.root,this.attachment=Yi(this.opts.ref,n=>this.scrollbarState.scrollbarVis.thumbNode=n),sr(()=>{const n=this.#e.viewportNode;if(!n)return;const i=()=>{if(this.#r(),!w(this.#t)){const s=jgt(n,this.scrollbarState.handleThumbPositionChange);J(this.#t,s,!0),this.scrollbarState.handleThumbPositionChange()}};return Vi(()=>this.scrollbarState.handleThumbPositionChange()),Ai(n,"scroll",i)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(e){const r=e.target;if(!r)return;const n=r.getBoundingClientRect(),i=e.clientX-n.left,a=e.clientY-n.top;this.scrollbarState.handleThumbPointerDown({x:i,y:a})}onpointerup(e){this.scrollbarState.handleThumbPointerUp()}#n=ee(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[r5.thumb]:"",...this.attachment}));get props(){return w(this.#n)}set props(e){J(this.#n,e)}}class Ose{static create(e){return new Ose(e,n5.get())}opts;root;attachment;#e=Me(0);#t=Me(0);#r=ee(()=>!!(w(this.#e)&&w(this.#t)));get hasSize(){return w(this.#r)}set hasSize(e){J(this.#r,e)}constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref),new Zx(()=>this.root.scrollbarXNode,()=>{const n=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=n,J(this.#t,n,!0)}),new Zx(()=>this.root.scrollbarYNode,()=>{const n=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=n,J(this.#e,n,!0)})}#n=ee(()=>({id:this.opts.id.current,style:{width:w(this.#e),height:w(this.#t),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[r5.corner]:"",...this.attachment}));get props(){return w(this.#n)}set props(e){J(this.#n,e)}}function x9(t){return t?Number.parseInt(t,10):0}function z5e(t,e){const r=t/e;return Number.isNaN(r)?0:r}function _B(t){const e=z5e(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function Kgt({pointerPos:t,pointerOffset:e,sizes:r,dir:n="ltr"}){const i=_B(r),a=i/2,s=e||a,o=i-s,l=r.scrollbar.paddingStart+s,u=r.scrollbar.size-r.scrollbar.paddingEnd-o,d=r.content-r.viewport,h=n==="ltr"?[0,d]:[d*-1,0];return q5e([l,u],h)(t)}function _me({scrollPos:t,sizes:e,dir:r="ltr"}){const n=_B(e),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-i,s=e.content-e.viewport,o=a-n,l=r==="ltr"?[0,s]:[s*-1,0],u=Ygt(t,l[0],l[1]);return q5e([0,s],[0,o])(u)}function q5e(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function V5e(t,e){return t>0&&t<e}function jgt(t,e){let r={left:t.scrollLeft,top:t.scrollTop},n=0;const i=hae(t);return(function a(){const s={left:t.scrollLeft,top:t.scrollTop},o=r.left!==s.left,l=r.top!==s.top;(o||l)&&e(),r=s,n=i.requestAnimationFrame(a)})(),()=>i.cancelAnimationFrame(n)}var Xgt=ae("<div><!></div>");function Qgt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=ue(e,"type",3,"hover"),s=ue(e,"dir",3,"ltr"),o=ue(e,"scrollHideDelay",3,600),l=xt(e,["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]);const u=yse.create({type:St(()=>a()),dir:St(()=>s()),scrollHideDelay:St(()=>o()),id:St(()=>i()),ref:St(()=>n(),m=>n(m))}),d=ee(()=>un(l,u.props));var h=Ee(),f=ne(h);{var p=m=>{var _=Ee(),v=ne(_);ft(v,()=>e.child,()=>({props:w(d)})),H(m,_)},g=m=>{var _=Xgt();Er(_,()=>({...w(d)}));var v=de(_);ft(v,()=>e.children??Tt),oe(_),H(m,_)};Re(f,m=>{e.child?m(p):m(g,-1)})}H(t,h),Ke()}var Zgt=ae("<div><div><!></div></div>");function Jgt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=xt(e,["$$slots","$$events","$$legacy","ref","id","children"]);const s=bse.create({id:St(()=>i()),ref:St(()=>n(),f=>n(f))}),o=ee(()=>un(a,s.props)),l=ee(()=>un({},s.contentProps));var u=Zgt();Er(u,()=>({...w(o)}));var d=de(u);Er(d,()=>({...w(l)}));var h=de(d);ft(h,()=>e.children??Tt),oe(d),oe(u),H(t,u),Ke()}var emt=ae("<div><!></div>");function H5e(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy","child","children"]);const n=Ase.create(),i=ee(()=>un(r,n.props));var a=Ee(),s=ne(a);{var o=u=>{var d=Ee(),h=ne(d);ft(h,()=>e.child,()=>({props:w(i)})),H(u,d)},l=u=>{var d=emt();Er(d,()=>({...w(i)}));var h=de(d);ft(h,()=>e.children??Tt),oe(d),H(u,d)};Re(s,u=>{e.child?u(o):u(l,-1)})}H(t,a),Ke()}function tmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=new uae,i=wse.create({mounted:St(()=>n.current)}),a=ee(()=>un(r,i.props));H5e(t,Bt(()=>w(a))),Ke()}function rmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=new uae,i=xse.create({mounted:St(()=>n.current)}),a=ee(()=>un(r,i.props));H5e(t,Bt(()=>w(a))),Ke()}function vB(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=Cse.create();var i=Ee(),a=ne(i);{var s=l=>{tmt(l,Bt(()=>r))},o=l=>{rmt(l,Bt(()=>r))};Re(a,l=>{n.scrollbar.opts.orientation.current==="horizontal"?l(s):l(o,-1)})}H(t,i),Ke()}function nmt(t,e){We(e,!0);let r=ue(e,"forceMount",3,!1),n=xt(e,["$$slots","$$events","$$legacy","forceMount"]);const i=mB.create(),a=ee(()=>un(n,i.props));{const s=l=>{vB(l,Bt(()=>w(a)))};let o=ee(()=>r()||i.isVisible);pB(t,{get open(){return w(o)},get ref(){return i.scrollbar.opts.ref},presence:s,$$slots:{presence:!0}})}Ke()}function imt(t,e){We(e,!0);let r=ue(e,"forceMount",3,!1),n=xt(e,["$$slots","$$events","$$legacy","forceMount"]);const i=Tse.create(),a=ee(()=>un(n,i.props));{const s=l=>{vB(l,Bt(()=>w(a)))};let o=ee(()=>r()||!i.isHidden);pB(t,Bt(()=>w(a),{get open(){return w(o)},get ref(){return i.scrollbar.opts.ref},presence:s,$$slots:{presence:!0}}))}Ke()}function amt(t,e){We(e,!0);let r=ue(e,"forceMount",3,!1),n=xt(e,["$$slots","$$events","$$legacy","forceMount"]);const i=Sse.create(),a=mB.create(),s=ee(()=>un(n,i.props,a.props,{"data-state":i.isVisible?"visible":"hidden"})),o=ee(()=>r()||i.isVisible&&a.isVisible);pB(t,{get open(){return w(o)},get ref(){return a.scrollbar.opts.ref},presence:u=>{vB(u,Bt(()=>w(s)))},$$slots:{presence:!0}}),Ke()}function smt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=xt(e,["$$slots","$$events","$$legacy","ref","id","orientation"]);const s=Ese.create({orientation:St(()=>e.orientation),id:St(()=>i()),ref:St(()=>n(),g=>n(g))}),o=ee(()=>s.root.opts.type.current);var l=Ee(),u=ne(l);{var d=g=>{amt(g,Bt(()=>a,{get id(){return i()}}))},h=g=>{imt(g,Bt(()=>a,{get id(){return i()}}))},f=g=>{nmt(g,Bt(()=>a,{get id(){return i()}}))},p=g=>{vB(g,Bt(()=>a,{get id(){return i()}}))};Re(u,g=>{w(o)==="hover"?g(d):w(o)==="scroll"?g(h,1):w(o)==="auto"?g(f,2):w(o)==="always"&&g(p,3)})}H(t,l),Ke()}var omt=ae("<div><!></div>");function lmt(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","id","child","children","present"]);const i=new uae,a=Rse.create({id:St(()=>e.id),ref:St(()=>r(),h=>r(h)),mounted:St(()=>i.current)}),s=ee(()=>un(n,a.props,{style:{hidden:!e.present}}));var o=Ee(),l=ne(o);{var u=h=>{var f=Ee(),p=ne(f);ft(p,()=>e.child,()=>({props:w(s)})),H(h,f)},d=h=>{var f=omt();Er(f,()=>({...w(s)}));var p=de(f);ft(p,()=>e.children??Tt),oe(f),H(h,f)};Re(l,h=>{e.child?h(u):h(d,-1)})}H(t,o),Ke()}function cmt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"forceMount",3,!1),s=xt(e,["$$slots","$$events","$$legacy","id","ref","forceMount"]);const o=gB.get();{const l=(d,h)=>{let f=()=>h?.().present;lmt(d,Bt(()=>s,{get id(){return n()},get present(){return f()},get ref(){return i()},set ref(p){i(p)}}))};let u=ee(()=>a()||o.hasThumb);pB(t,{get open(){return w(u)},get ref(){return o.scrollbar.opts.ref},presence:l,$$slots:{presence:!0}})}Ke()}var umt=ae("<div><!></div>");function dmt(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","id","children","child"]);const i=Ose.create({id:St(()=>e.id),ref:St(()=>r(),d=>r(d))}),a=ee(()=>un(n,i.props));var s=Ee(),o=ne(s);{var l=d=>{var h=Ee(),f=ne(h);ft(f,()=>e.child,()=>({props:w(a)})),H(d,h)},u=d=>{var h=umt();Er(h,()=>({...w(a)}));var f=de(h);ft(f,()=>e.children??Tt),oe(h),H(d,h)};Re(o,d=>{e.child?d(l):d(u,-1)})}H(t,s),Ke()}function hmt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=xt(e,["$$slots","$$events","$$legacy","ref","id"]);const s=n5.get(),o=ee(()=>!!(s.scrollbarXNode&&s.scrollbarYNode)),l=ee(()=>s.opts.type.current!=="scroll"&&w(o));var u=Ee(),d=ne(u);{var h=f=>{dmt(f,Bt(()=>a,{get id(){return i()},get ref(){return n()},set ref(p){n(p)}}))};Re(d,f=>{w(l)&&f(h)})}H(t,u),Ke()}var fmt=ae("<!> <!>",1);function pmt(t,e){We(e,!0);let r=ue(e,"value",15),n=ue(e,"onValueChange",3,Tn),i=ue(e,"name",3,""),a=ue(e,"disabled",3,!1),s=ue(e,"open",15,!1),o=ue(e,"onOpenChange",3,Tn),l=ue(e,"onOpenChangeComplete",3,Tn),u=ue(e,"loop",3,!1),d=ue(e,"scrollAlignment",3,"nearest"),h=ue(e,"required",3,!1),f=ue(e,"items",19,()=>[]),p=ue(e,"allowDeselect",3,!1);function g(){r()===void 0&&r(e.type==="single"?"":[])}g(),di.pre(()=>r(),()=>{g()});let m=Me("");const _=Kpt.create({type:e.type,value:St(()=>r(),C=>{r(C),n()(C)}),disabled:St(()=>a()),required:St(()=>h()),open:St(()=>s(),C=>{s(C),o()(C)}),loop:St(()=>u()),scrollAlignment:St(()=>d()),name:St(()=>i()),isCombobox:!1,items:St(()=>f()),allowDeselect:St(()=>p()),inputValue:St(()=>w(m),C=>J(m,C,!0)),onOpenChangeComplete:St(()=>l())});var v=fmt(),y=ne(v);Z3(y,{children:(C,x)=>{var A=Ee(),R=ne(A);ft(R,()=>e.children??Tt),H(C,A)},$$slots:{default:!0}});var b=he(y,2);{var E=C=>{var x=Ee(),A=ne(x);{var R=L=>{Vz(L,{get autocomplete(){return e.autocomplete}})},I=L=>{var F=Ee(),O=ne(F);fn(O,16,()=>_.opts.value.current,D=>D,(D,M)=>{Vz(D,{get value(){return M},get autocomplete(){return e.autocomplete}})}),H(L,F)};Re(A,L=>{_.opts.value.current.length===0?L(R):L(I,-1)})}H(C,x)},S=ee(()=>Array.isArray(_.opts.value.current)),T=C=>{Vz(C,{get autocomplete(){return e.autocomplete},get value(){return _.opts.value.current},set value(x){_.opts.value.current=x}})};Re(b,C=>{w(S)?C(E):C(T,-1)})}H(t,v),Ke()}var gmt=ae("<button><!></button>");function mmt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"type",3,"button"),s=xt(e,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const o=ase.create({id:St(()=>n()),ref:St(()=>i(),h=>i(h))}),l=ee(()=>un(s,o.props,{type:a()}));var u=Ee(),d=ne(u);Le(d,()=>uB,(h,f)=>{f(h,{get id(){return n()},get ref(){return o.opts.ref},children:(p,g)=>{var m=Ee(),_=ne(m);{var v=b=>{var E=Ee(),S=ne(E);ft(S,()=>e.child,()=>({props:w(l)})),H(b,E)},y=b=>{var E=gmt();Er(E,()=>({...w(l)}));var S=de(E);ft(S,()=>e.children??Tt),oe(E),H(b,E)};Re(_,b=>{e.child?b(v):b(y,-1)})}H(p,m)},$$slots:{default:!0}})}),H(t,u),Ke()}const Y5e=Sg({component:"switch",parts:["root","thumb"]}),Ise=new vo("Switch.Root");class Nse{static create(e){return Ise.set(new Nse(e))}opts;attachment;constructor(e){this.opts=e,this.attachment=Yi(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}#e(){this.opts.checked.current=!this.opts.checked.current}onkeydown(e){!(e.key===hg||e.key===Pd)||this.opts.disabled.current||(e.preventDefault(),this.#e())}onclick(e){this.opts.disabled.current||this.#e()}#t=ee(()=>({"data-disabled":ac(this.opts.disabled.current),"data-state":Kdt(this.opts.checked.current),"data-required":ac(this.opts.required.current)}));get sharedProps(){return w(this.#t)}set sharedProps(e){J(this.#t,e)}#r=ee(()=>({checked:this.opts.checked.current}));get snippetProps(){return w(this.#r)}set snippetProps(e){J(this.#r,e)}#n=ee(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:FQ(this.opts.disabled.current),"aria-checked":n5e(this.opts.checked.current,!1),"aria-required":e0(this.opts.required.current),[Y5e.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return w(this.#n)}set props(e){J(this.#n,e)}}class kse{static create(){return new kse(Ise.get())}root;#e=ee(()=>this.root.opts.name.current!==void 0);get shouldRender(){return w(this.#e)}set shouldRender(e){J(this.#e,e)}constructor(e){this.root=e}#t=ee(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}class Dse{static create(e){return new Dse(e,Ise.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(e.ref)}#e=ee(()=>({checked:this.root.opts.checked.current}));get snippetProps(){return w(this.#e)}set snippetProps(e){J(this.#e,e)}#t=ee(()=>({...this.root.sharedProps,id:this.opts.id.current,[Y5e.thumb]:"",...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}}function _mt(t,e){We(e,!1);const r=kse.create();GF();var n=Ee(),i=ne(n);{var a=s=>{zae(s,Bt(()=>r.props))};Re(i,s=>{r.shouldRender&&s(a)})}H(t,n),Ke()}var vmt=ae("<button><!></button>"),ymt=ae("<!> <!>",1);function bmt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=ue(e,"disabled",3,!1),s=ue(e,"required",3,!1),o=ue(e,"checked",15,!1),l=ue(e,"value",3,"on"),u=ue(e,"name",3,void 0),d=ue(e,"type",3,"button"),h=ue(e,"onCheckedChange",3,Tn),f=xt(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]);const p=Nse.create({checked:St(()=>o(),E=>{o(E),h()?.(E)}),disabled:St(()=>a()??!1),required:St(()=>s()),value:St(()=>l()),name:St(()=>u()),id:St(()=>i()),ref:St(()=>n(),E=>n(E))}),g=ee(()=>un(f,p.props,{type:d()}));var m=ymt(),_=ne(m);{var v=E=>{var S=Ee(),T=ne(S);{let C=ee(()=>({props:w(g),...p.snippetProps}));ft(T,()=>e.child,()=>w(C))}H(E,S)},y=E=>{var S=vmt();Er(S,()=>({...w(g)}));var T=de(S);ft(T,()=>e.children??Tt,()=>p.snippetProps),oe(S),H(E,S)};Re(_,E=>{e.child?E(v):E(y,-1)})}var b=he(_,2);_mt(b,{}),H(t,m),Ke()}var Emt=ae("<span><!></span>");function Smt(t,e){const r=ra();We(e,!0);let n=ue(e,"ref",15,null),i=ue(e,"id",19,()=>na(r)),a=xt(e,["$$slots","$$events","$$legacy","child","children","ref","id"]);const s=Dse.create({id:St(()=>i()),ref:St(()=>n(),f=>n(f))}),o=ee(()=>un(a,s.props));var l=Ee(),u=ne(l);{var d=f=>{var p=Ee(),g=ne(p);{let m=ee(()=>({props:w(o),...s.snippetProps}));ft(g,()=>e.child,()=>w(m))}H(f,p)},h=f=>{var p=Emt();Er(p,()=>({...w(o)}));var g=de(p);ft(g,()=>e.children??Tt,()=>s.snippetProps),oe(p),H(f,p)};Re(u,f=>{e.child?f(d):f(h,-1)})}H(t,l),Ke()}class WQ{#e;#t;#r=null;constructor(e,r){this.#t=e,this.#e=r,this.stop=this.stop.bind(this),this.start=this.start.bind(this),Kh(this.stop)}#n(){this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)}stop(){this.#n()}start(...e){this.#n(),this.#r=window.setTimeout(()=>{this.#r=null,this.#t(...e)},this.#e)}}const W5e=Sg({component:"tooltip",parts:["content","trigger"]}),K5e=new vo("Tooltip.Provider"),Mse=new vo("Tooltip.Root");class Tmt{#e=Me(Kr(new Map));get triggers(){return w(this.#e)}set triggers(e){J(this.#e,e,!0)}#t=Me(null);get activeTriggerId(){return w(this.#t)}set activeTriggerId(e){J(this.#t,e,!0)}#r=ee(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null});get activeTriggerNode(){return w(this.#r)}set activeTriggerNode(e){J(this.#r,e)}#n=ee(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null});get activePayload(){return w(this.#n)}set activePayload(e){J(this.#n,e)}register=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#i()};update=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#i()};unregister=e=>{if(!this.triggers.has(e))return;const r=new Map(this.triggers);r.delete(e),this.triggers=r,this.activeTriggerId===e&&(this.activeTriggerId=null)};setActiveTrigger=e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e};get=e=>this.triggers.get(e);has=e=>this.triggers.has(e);getFirstTriggerId=()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]};#i=()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))}}class Lse{static create(e){return K5e.set(new Lse(e))}opts;#e=Me(!0);get isOpenDelayed(){return w(this.#e)}set isOpenDelayed(e){J(this.#e,e,!0)}isPointerInTransit=nu(!1);#t;#r=Me(null);constructor(e){this.opts=e,this.#t=new WQ(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),QF(()=>Ai(window,"scroll",r=>{const n=w(this.#r);if(!n)return;const i=n.triggerNode;if(!i)return;const a=r.target;(a instanceof Element||a instanceof Document)&&a.contains(i)&&n.handleClose()}))}#n=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#t.start()};#i=()=>{this.#t.stop()};onOpen=e=>{w(this.#r)&&w(this.#r)!==e&&w(this.#r).handleClose(),this.#i(),this.isOpenDelayed=!1,J(this.#r,e,!0)};onClose=e=>{w(this.#r)===e&&(J(this.#r,null),this.#n())};isTooltipOpen=e=>w(this.#r)===e}class Pse{static create(e){return Mse.set(new Pse(e,K5e.get()))}opts;provider;#e=ee(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return w(this.#e)}set delayDuration(e){J(this.#e,e)}#t=ee(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return w(this.#t)}set disableHoverableContent(e){J(this.#t,e)}#r=ee(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return w(this.#r)}set disableCloseOnTriggerClick(e){J(this.#r,e)}#n=ee(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return w(this.#n)}set disabled(e){J(this.#n,e)}#i=ee(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return w(this.#i)}set ignoreNonKeyboardFocus(e){J(this.#i,e)}registry;tether;#a=Me(null);get contentNode(){return w(this.#a)}set contentNode(e){J(this.#a,e,!0)}contentPresence;#s=Me(!1);#o;#c=ee(()=>this.opts.open.current?w(this.#s)?"delayed-open":"instant-open":"closed");get stateAttr(){return w(this.#c)}set stateAttr(e){J(this.#c,e)}constructor(e,r){this.opts=e,this.provider=r,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new Tmt,this.#o=new WQ(()=>{J(this.#s,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,QF(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new r1({open:this.opts.open,ref:St(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),di(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#o=new WQ(()=>{J(this.#s,!0),this.opts.open.current=!0},this.delayDuration))}),di(()=>this.opts.open.current,n=>{n?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),di(()=>this.opts.triggerId.current,n=>{n!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(n)}),di(()=>this.registry.activeTriggerId,n=>{this.opts.triggerId.current!==n&&(this.opts.triggerId.current=n)})}handleOpen=()=>{this.#o.stop(),J(this.#s,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#o.stop(),this.opts.open.current=!1};#l=()=>{this.#o.stop();const e=!this.provider.isOpenDelayed,r=this.delayDuration??0;e||r===0?(J(this.#s,!1),this.opts.open.current=!0):this.#o.start()};onTriggerEnter=e=>{this.setActiveTrigger(e),this.#l()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#o.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)};setActiveTrigger=e=>{this.registry.setActiveTrigger(e)};registerTrigger=e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};updateTrigger=e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=e=>{const r=this.registry.activeTriggerId===e;this.registry.unregister(e),r&&this.opts.open.current&&this.handleClose()};isActiveTrigger=e=>this.registry.activeTriggerId===e;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class A9{static create(e){return e.tether.current?new A9(e,null,e.tether.current.state):new A9(e,Mse.get(),null)}opts;root;tether;attachment;#e=nu(!1);#t=Me(!1);domContext;#r=null;#n=!1;#i=null;constructor(e,r,n){this.opts=e,this.root=r,this.tether=n,this.domContext=new w0(e.ref),this.attachment=Yi(this.opts.ref,i=>this.#o(i)),di(()=>this.opts.id.current,()=>{this.#o(this.opts.ref.current)}),di(()=>this.opts.payload.current,()=>{this.#o(this.opts.ref.current)}),di(()=>this.opts.disabled.current,()=>{this.#o(this.opts.ref.current)}),QF(()=>(this.#n=!0,this.#o(this.opts.ref.current),()=>{const i=this.#a(),a=this.#i;a&&(this.tether?this.tether.registry.unregister(a):i?.unregisterTrigger(a)),this.#i=null,this.#n=!1}))}#a=()=>this.tether?.root??this.root;#s=()=>{const e=this.#a();return this.opts.disabled.current||!!e?.disabled};#o=e=>{if(!this.#n)return;const r=this.opts.id.current,n=this.opts.payload.current,i=this.opts.disabled.current;if(this.#i&&this.#i!==r){const o=this.#a();this.tether?this.tether.registry.unregister(this.#i):o?.unregisterTrigger(this.#i)}const a={id:r,node:e,payload:n,disabled:i},s=this.#a();this.tether?(this.tether.registry.has(r)?this.tether.registry.update(a):this.tether.registry.register(a),i&&this.tether.registry.activeTriggerId===r&&s?.opts.open.current&&s.handleClose()):s?.registry.has(r)?s.updateTrigger(a):s?.registerTrigger(a),this.#i=r};#c=()=>{this.#r!==null&&(clearTimeout(this.#r),this.#r=null)};handlePointerUp=()=>{this.#e.current=!1};#l=()=>{this.#s()||(this.#e.current=!1)};#d=()=>{this.#s()||(this.#e.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#u=e=>{const r=this.#a();if(r){if(this.#s()){r.opts.open.current&&r.handleClose();return}if(e.pointerType!=="touch"){if(r.provider.isPointerInTransit.current){this.#c(),this.#r=window.setTimeout(()=>{r.provider.isPointerInTransit.current&&(r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),J(this.#t,!0))},250);return}r.onTriggerEnter(this.opts.id.current),J(this.#t,!0)}}};#p=e=>{const r=this.#a();if(r){if(this.#s()){r.opts.open.current&&r.handleClose();return}e.pointerType!=="touch"&&(w(this.#t)||(this.#c(),r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),J(this.#t,!0)))}};#g=e=>{const r=this.#a();if(!r||this.#s())return;if(this.#c(),!r.isActiveTrigger(this.opts.id.current)){J(this.#t,!1);return}const n=e.relatedTarget;if(Ju(n)){for(const i of r.registry.triggers.values())if(i.node===n){if(r.provider.opts.skipDelayDuration.current>0){J(this.#t,!1);return}r.handleClose(),J(this.#t,!1);return}}r.onTriggerLeave(),J(this.#t,!1)};#f=e=>{const r=this.#a();if(r&&!this.#e.current){if(this.#s()){r.opts.open.current&&r.handleClose();return}r.ignoreNonKeyboardFocus&&!rht(e.currentTarget)||(r.setActiveTrigger(this.opts.id.current),r.handleOpen())}};#h=()=>{const e=this.#a();!e||this.#s()||e.handleClose()};#m=()=>{const e=this.#a();!e||e.disableCloseOnTriggerClick||this.#s()||e.handleClose()};#v=ee(()=>{const e=this.#a(),r=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),n=this.#s();return{id:this.opts.id.current,"aria-describedby":r?e?.contentNode?.id:void 0,"data-state":r?e?.stateAttr:"closed","data-disabled":ac(n),"data-delay-duration":`${e?.delayDuration??0}`,[W5e.trigger]:"",tabindex:n?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#l,onpointerdown:this.#d,onpointerenter:this.#u,onpointermove:this.#p,onpointerleave:this.#g,onfocus:this.#f,onblur:this.#h,onclick:this.#m,...this.attachment}});get props(){return w(this.#v)}set props(e){J(this.#v,e)}}class Fse{static create(e){return new Fse(e,Mse.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Yi(this.opts.ref,n=>this.root.contentNode=n),new $5e({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const n=[],i=this.root.triggerNode;for(const a of this.root.registry.triggers.values())a.node&&a.node!==i&&n.push(a.node);return n},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=e=>{if(Ju(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#e=ee(()=>({open:this.root.opts.open.current}));get snippetProps(){return w(this.#e)}set snippetProps(e){J(this.#e,e)}#t=ee(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":ac(this.root.disabled),...nE(this.root.contentPresence.transitionStatus),style:{outline:"none"},[W5e.content]:"",...this.attachment}));get props(){return w(this.#t)}set props(e){J(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function Cmt(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"triggerId",15,null),i=ue(e,"onOpenChange",3,Tn),a=ue(e,"onOpenChangeComplete",3,Tn);const s=Pse.create({open:St(()=>r(),o=>{r(o),i()(o)}),triggerId:St(()=>n(),o=>{n(o)}),delayDuration:St(()=>e.delayDuration),disableCloseOnTriggerClick:St(()=>e.disableCloseOnTriggerClick),disableHoverableContent:St(()=>e.disableHoverableContent),ignoreNonKeyboardFocus:St(()=>e.ignoreNonKeyboardFocus),disabled:St(()=>e.disabled),onOpenChangeComplete:St(()=>a()),tether:St(()=>e.tether)});Z3(t,{tooltip:!0,children:(o,l)=>{var u=Ee(),d=ne(u);ft(d,()=>e.children??Tt,()=>({open:s.opts.open.current,triggerId:s.activeTriggerId,payload:s.activePayload})),H(o,u)},$$slots:{default:!0}}),Ke()}var wmt=ae("<div><div><!></div></div>"),xmt=ae("<div><div><!></div></div>");function Amt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"ref",15,null),a=ue(e,"side",3,"top"),s=ue(e,"sideOffset",3,0),o=ue(e,"align",3,"center"),l=ue(e,"avoidCollisions",3,!0),u=ue(e,"arrowPadding",3,0),d=ue(e,"sticky",3,"partial"),h=ue(e,"hideWhenDetached",3,!1),f=ue(e,"collisionPadding",3,0),p=ue(e,"onInteractOutside",3,Tn),g=ue(e,"onEscapeKeydown",3,Tn),m=ue(e,"forceMount",3,!1),_=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]);const v=Fse.create({id:St(()=>n()),ref:St(()=>i(),x=>i(x)),onInteractOutside:St(()=>p()),onEscapeKeydown:St(()=>g())}),y=ee(()=>({side:a(),sideOffset:s(),align:o(),avoidCollisions:l(),arrowPadding:u(),sticky:d(),hideWhenDetached:h(),collisionPadding:f(),strategy:e.strategy,customAnchor:e.customAnchor??v.root.triggerNode})),b=ee(()=>un(_,w(y),v.props));var E=Ee(),S=ne(E);{var T=x=>{{const A=(I,L)=>{let F=()=>L?.().props,O=()=>L?.().wrapperProps;const D=ee(()=>un(O(),{style:{pointerEvents:v.root.disableHoverableContent?"none":void 0}})),M=ee(()=>un(F(),{style:i0("tooltip")},{style:e.style}));var P=Ee(),N=ne(P);{var $=B=>{var V=Ee(),z=ne(V);{let G=ee(()=>({props:w(M),wrapperProps:w(D),...v.snippetProps}));ft(z,()=>e.child,()=>w(G))}H(B,V)},U=B=>{var V=wmt();Er(V,()=>({...w(D)}));var z=de(V);Er(z,()=>({...w(M)}));var G=de(z);ft(G,()=>e.children??Tt),oe(z),oe(V),H(B,V)};Re(N,B=>{e.child?B($):B(U,-1)})}H(I,P)};let R=ee(()=>v.root.disableHoverableContent?"none":"auto");t5(x,Bt(()=>w(b),()=>v.popperProps,{get enabled(){return v.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return v.opts.ref},tooltip:!0,get shouldRender(){return v.shouldRender},get contentPointerEvents(){return w(R)},popper:A,$$slots:{popper:!0}}))}},C=x=>{{const A=(I,L)=>{let F=()=>L?.().props,O=()=>L?.().wrapperProps;const D=ee(()=>un(O(),{style:{pointerEvents:v.root.disableHoverableContent?"none":void 0}})),M=ee(()=>un(F(),{style:i0("tooltip")},{style:e.style}));var P=Ee(),N=ne(P);{var $=B=>{var V=Ee(),z=ne(V);{let G=ee(()=>({props:w(M),wrapperProps:w(D),...v.snippetProps}));ft(z,()=>e.child,()=>w(G))}H(B,V)},U=B=>{var V=xmt();Er(V,()=>({...w(D)}));var z=de(V);Er(z,()=>({...w(M)}));var G=de(z);ft(G,()=>e.children??Tt),oe(z),oe(V),H(B,V)};Re(N,B=>{e.child?B($):B(U,-1)})}H(I,P)};let R=ee(()=>v.root.disableHoverableContent?"none":"auto");e5(x,Bt(()=>w(b),()=>v.popperProps,{get open(){return v.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return v.opts.ref},tooltip:!0,get shouldRender(){return v.shouldRender},get contentPointerEvents(){return w(R)},popper:A,$$slots:{popper:!0}}))}};Re(S,x=>{m()?x(T):m()||x(C,1)})}H(t,E),Ke()}var Rmt=ae("<button><!></button>");function Omt(t,e){const r=ra();We(e,!0);let n=ue(e,"id",19,()=>na(r)),i=ue(e,"disabled",3,!1),a=ue(e,"type",3,"button"),s=ue(e,"tabindex",3,0),o=ue(e,"ref",15,null),l=xt(e,["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]);const u=A9.create({id:St(()=>n()),disabled:St(()=>i()??!1),tabindex:St(()=>s()??0),payload:St(()=>e.payload),tether:St(()=>e.tether),ref:St(()=>o(),m=>o(m))}),d=ee(()=>un(l,u.props,{type:a()}));var h=Ee(),f=ne(h);{var p=m=>{var _=Ee(),v=ne(_);ft(v,()=>e.child,()=>({props:w(d)})),H(m,_)},g=m=>{var _=Rmt();Er(_,()=>({...w(d)}));var v=de(_);ft(v,()=>e.children??Tt),oe(_),H(m,_)};Re(f,m=>{e.child?m(p):m(g,-1)})}H(t,h),Ke()}function Imt(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref"]);Zpt(t,Bt(()=>n,{get ref(){return r()},set ref(i){r(i)}})),Ke()}function Nmt(t,e){We(e,!0);let r=ue(e,"delayDuration",3,700),n=ue(e,"disableCloseOnTriggerClick",3,!1),i=ue(e,"disableHoverableContent",3,!1),a=ue(e,"disabled",3,!1),s=ue(e,"ignoreNonKeyboardFocus",3,!1),o=ue(e,"skipDelayDuration",3,300);Lse.create({delayDuration:St(()=>r()),disableCloseOnTriggerClick:St(()=>n()),disableHoverableContent:St(()=>i()),disabled:St(()=>a()),ignoreNonKeyboardFocus:St(()=>s()),skipDelayDuration:St(()=>o())});var l=Ee(),u=ne(l);ft(u,()=>e.children??Tt),H(t,l),Ke()}function po(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref"]);var i=Ee(),a=ne(i);Le(a,()=>Omt,(s,o)=>{o(s,Bt({"data-slot":"tooltip-trigger",class:"cursor-pointer"},()=>n,{get ref(){return r()},set ref(l){r(l)}}))}),H(t,i),Ke()}var kmt=ae("<div></div>"),Dmt=ae("<!> <!>",1);function go(t,e){We(e,!0);const r=p=>{var g=Ee(),m=ne(g);Le(m,()=>Amt,(_,v)=>{v(_,Bt({"data-slot":"tooltip-content",get sideOffset(){return i()},get side(){return a()},get class(){return w(l)}},()=>o,{get ref(){return n()},set ref(y){n(y)},children:(y,b)=>{var E=Dmt(),S=ne(E);ft(S,()=>e.children??Tt);var T=he(S,2);{const C=(x,A)=>{let R=()=>A?.().props;var I=kmt();Er(I,L=>({class:L,...R()}),[()=>an("z-50 size-2.5 rotate-45 rounded-[2px] bg-primary","data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]","data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)]","data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2","data-[side=left]:-translate-y-[calc(50%_-_3px)]",e.arrowClasses)]),H(x,I)};Le(T,()=>Imt,(x,A)=>{A(x,{child:C,$$slots:{child:!0}})})}H(y,E)},$$slots:{default:!0}}))}),H(p,g)};let n=ue(e,"ref",15,null),i=ue(e,"sideOffset",3,0),a=ue(e,"side",3,"top"),s=ue(e,"noPortal",3,!1),o=xt(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","noPortal"]);const l=ee(()=>an("z-50 w-fit origin-(--bits-tooltip-content-transform-origin) animate-in rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:fill-mode-forwards",e.class));var u=Ee(),d=ne(u);{var h=p=>{r(p)},f=p=>{var g=Ee(),m=ne(g);Le(m,()=>Tg,(_,v)=>{v(_,{children:(y,b)=>{r(y)},$$slots:{default:!0}})}),H(p,g)};Re(d,p=>{s()?p(h):p(f,-1)})}H(t,u),Ke()}const mo=Cmt,Mmt=Nmt;var hi=(t=>(t.AUDIO="AUDIO",t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.MCP_PROMPT="MCP_PROMPT",t.MCP_RESOURCE="MCP_RESOURCE",t.PDF="PDF",t.TEXT="TEXT",t.LEGACY_CONTEXT="context",t))(hi||{}),Om=(t=>(t.IMAGES="images",t.AUDIO="audio",t.VIDEO="video",t.TEXT="text",t.PDF="pdf",t.SYSTEM_MESSAGE="system-message",t.MCP_PROMPT="mcp-prompt",t.MCP_RESOURCES="mcp-resources",t))(Om||{}),Im=(t=>(t.ALWAYS="always",t.HAS_VISION_MODALITY="hasVisionModality",t.HAS_AUDIO_MODALITY="hasAudioModality",t.HAS_VIDEO_MODALITY="hasVideoModality",t))(Im||{}),kd=(t=>(t.FILE_UPLOAD="onFileUpload",t.SYSTEM_PROMPT_CLICK="onSystemPromptClick",t.MCP_PROMPT_CLICK="onMcpPromptClick",t.MCP_RESOURCES_CLICK="onMcpResourcesClick",t))(kd||{}),Bse=(t=>(t.HAS_MCP_PROMPTS_SUPPORT="hasMcpPromptsSupport",t.HAS_MCP_RESOURCES_SUPPORT="hasMcpResourcesSupport",t))(Bse||{}),aR=(t=>(t.FUNCTION="function",t))(aR||{}),ca=(t=>(t.TEXT="text",t.TOOL_CALL="tool_call",t.TOOL_CALL_PENDING="tool_call_pending",t.TOOL_CALL_STREAMING="tool_call_streaming",t.REASONING="reasoning",t.REASONING_PENDING="reasoning_pending",t))(ca||{}),Ay=(t=>(t.APPEND_TEXT="append_text",t.RERUN_TURN="rerun_turn",t.NEXT_TURN="next_turn",t))(Ay||{}),Bu=(t=>(t.GENERATION="generation",t.READING="reading",t.TOOLS="tools",t.SUMMARY="summary",t))(Bu||{}),KQ=(t=>(t.NONE="none",t.AUTO="auto",t))(KQ||{}),br=(t=>(t.USER="user",t.ASSISTANT="assistant",t.SYSTEM="system",t.TOOL="tool",t))(br||{}),d_=(t=>(t.ROOT="root",t.TEXT="text",t.THINK="think",t.SYSTEM="system",t))(d_||{}),zl=(t=>(t.TEXT="text",t.IMAGE_URL="image_url",t.INPUT_AUDIO="input_audio",t.INPUT_VIDEO="input_video",t))(zl||{}),Em=(t=>(t.TIMEOUT="timeout",t.SERVER="server",t))(Em||{}),jQ=(t=>(t.EXPORT="export",t.IMPORT="import",t))(jQ||{}),lm=(t=>(t.TEXT="text",t.PAGES="pages",t))(lm||{}),Oh=(t=>(t.LOW="low",t.MEDIUM="medium",t.HIGH="high",t.MAX="max",t))(Oh||{}),xi=(t=>(t.IMAGE="image",t.AUDIO="audio",t.VIDEO="video",t.PDF="pdf",t.TEXT="text",t))(xi||{}),tk=(t=>(t.MCP_PROMPT="mcp-prompt",t))(tk||{}),NS=(t=>(t.JPEG="jpeg",t.PNG="png",t.GIF="gif",t.WEBP="webp",t.SVG="svg",t))(NS||{}),rk=(t=>(t.MP3="mp3",t.WAV="wav",t.WEBM="webm",t))(rk||{}),XQ=(t=>(t.MP4="mp4",t.OGG="ogg",t))(XQ||{}),j5e=(t=>(t.PDF="pdf",t))(j5e||{}),pi=(t=>(t.PLAIN_TEXT="plainText",t.MARKDOWN="md",t.ASCIIDOC="asciidoc",t.JAVASCRIPT="js",t.TYPESCRIPT="ts",t.JSX="jsx",t.TSX="tsx",t.CSS="css",t.HTML="html",t.JSON="json",t.XML="xml",t.YAML="yaml",t.CSV="csv",t.LOG="log",t.PYTHON="python",t.JAVA="java",t.CPP="cpp",t.PHP="php",t.RUBY="ruby",t.GO="go",t.RUST="rust",t.SHELL="shell",t.SQL="sql",t.R="r",t.SCALA="scala",t.KOTLIN="kotlin",t.SWIFT="swift",t.DART="dart",t.VUE="vue",t.SVELTE="svelte",t.LATEX="latex",t.BIBTEX="bibtex",t.CUDA="cuda",t.VULKAN="vulkan",t.HASKELL="haskell",t.CSHARP="csharp",t.PROPERTIES="properties",t))(pi||{}),Rd=(t=>(t.JPG=".jpg",t.JPEG=".jpeg",t.PNG=".png",t.GIF=".gif",t.WEBP=".webp",t.SVG=".svg",t))(Rd||{}),nk=(t=>(t.MP3=".mp3",t.WAV=".wav",t))(nk||{}),QQ=(t=>(t.MP4=".mp4",t.OGG=".ogg",t))(QQ||{}),Use=(t=>(t.PDF=".pdf",t))(Use||{}),xr=(t=>(t.TXT=".txt",t.MD=".md",t.ADOC=".adoc",t.JS=".js",t.TS=".ts",t.JSX=".jsx",t.TSX=".tsx",t.CSS=".css",t.HTML=".html",t.HTM=".htm",t.JSON=".json",t.XML=".xml",t.YAML=".yaml",t.YML=".yml",t.CSV=".csv",t.LOG=".log",t.PY=".py",t.JAVA=".java",t.CPP=".cpp",t.C=".c",t.H=".h",t.PHP=".php",t.RB=".rb",t.GO=".go",t.RS=".rs",t.SH=".sh",t.BAT=".bat",t.SQL=".sql",t.R=".r",t.SCALA=".scala",t.KT=".kt",t.SWIFT=".swift",t.DART=".dart",t.VUE=".vue",t.SVELTE=".svelte",t.TEX=".tex",t.BIB=".bib",t.CU=".cu",t.CUH=".cuh",t.COMP=".comp",t.HPP=".hpp",t.HS=".hs",t.PROPERTIES=".properties",t.CS=".cs",t))(xr||{}),Jx=(t=>(t.IMAGE="image/",t.TEXT="text",t))(Jx||{}),Od=(t=>(t.JSON="json",t.JAVASCRIPT="javascript",t.TYPESCRIPT="typescript",t))(Od||{}),ZQ=(t=>(t.DATABASE_KEYWORD="database",t.DATABASE_SCHEME="db://",t))(ZQ||{}),ik=(t=>(t.PDF="application/pdf",t.OCTET_STREAM="application/octet-stream",t))(ik||{}),xa=(t=>(t.MP3_MPEG="audio/mpeg",t.MP3="audio/mp3",t.MP4="audio/mp4",t.WAV="audio/wav",t.WAVE="audio/wave",t.X_WAV="audio/x-wav",t.X_WAVE="audio/x-wave",t.VND_WAVE="audio/vnd.wave",t.X_PN_WAV="audio/x-pn-wav",t.WEBM="audio/webm",t.WEBM_OPUS="audio/webm;codecs=opus",t))(xa||{}),ak=(t=>(t.MP4="video/mp4",t.OGG="video/ogg",t))(ak||{}),ka=(t=>(t.JPEG="image/jpeg",t.JPG="image/jpg",t.PNG="image/png",t.GIF="image/gif",t.WEBP="image/webp",t.SVG="image/svg+xml",t.ICO="image/x-icon",t.ICO_MICROSOFT="image/vnd.microsoft.icon",t))(ka||{}),yr=(t=>(t.PLAIN="text/plain",t.MARKDOWN="text/markdown",t.ASCIIDOC="text/asciidoc",t.JAVASCRIPT="text/javascript",t.JAVASCRIPT_APP="application/javascript",t.TYPESCRIPT="text/typescript",t.JSX="text/jsx",t.TSX="text/tsx",t.CSS="text/css",t.HTML="text/html",t.JSON="application/json",t.XML_TEXT="text/xml",t.XML_APP="application/xml",t.YAML_TEXT="text/yaml",t.YAML_APP="application/yaml",t.CSV="text/csv",t.PYTHON="text/x-python",t.JAVA="text/x-java-source",t.CPP_HDR="text/x-c++hdr",t.CPP_SRC="text/x-c++src",t.CSHARP="text/x-csharp",t.HASKELL="text/x-haskell",t.C_SRC="text/x-csrc",t.C_HDR="text/x-chdr",t.PHP="text/x-php",t.RUBY="text/x-ruby",t.GO="text/x-go",t.RUST="text/x-rust",t.SHELL="text/x-shellscript",t.BAT="application/x-bat",t.SQL="text/x-sql",t.R="text/x-r",t.SCALA="text/x-scala",t.KOTLIN="text/x-kotlin",t.SWIFT="text/x-swift",t.DART="text/x-dart",t.VUE="text/x-vue",t.SVELTE="text/x-svelte",t.TEX="text/x-tex",t.TEX_APP="application/x-tex",t.LATEX="application/x-latex",t.BIBTEX="text/x-bibtex",t.CUDA="text/x-cuda",t.PROPERTIES="text/properties",t))(yr||{}),Ia=(t=>(t.IDLE="idle",t.TRANSPORT_CREATING="transport_creating",t.TRANSPORT_READY="transport_ready",t.INITIALIZING="initializing",t.CAPABILITIES_EXCHANGED="capabilities_exchanged",t.LISTING_TOOLS="listing_tools",t.CONNECTED="connected",t.ERROR="error",t.DISCONNECTED="disconnected",t))(Ia||{}),zu=(t=>(t.INFO="info",t.WARN="warn",t.ERROR="error",t))(zu||{}),ju=(t=>(t.WEBSOCKET="websocket",t.STREAMABLE_HTTP="streamable_http",t.SSE="sse",t))(ju||{}),oa=(t=>(t.IDLE="idle",t.CONNECTING="connecting",t.SUCCESS="success",t.ERROR="error",t))(oa||{}),TP=(t=>(t.TEXT="text",t.IMAGE="image",t.RESOURCE="resource",t))(TP||{}),FT=(t=>(t.OBJECT="object",t.STRING="string",t.NUMBER="number",t))(FT||{}),JQ=(t=>(t.PROMPT="ref/prompt",t.RESOURCE="ref/resource",t))(JQ||{}),Nm=(t=>(t.TEXT="TEXT",t.AUDIO="AUDIO",t.VISION="VISION",t.VIDEO="VIDEO",t))(Nm||{}),Uv=(t=>(t.MODEL="model",t.ROUTER="router",t))(Uv||{}),Sl=(t=>(t.UNLOADED="unloaded",t.LOADING="loading",t.LOADED="loaded",t.SLEEPING="sleeping",t.FAILED="failed",t))(Sl||{}),eZ=(t=>(t.DEFAULT="default",t.CUSTOM="custom",t))(eZ||{}),Gn=(t=>(t.NUMBER="number",t.STRING="string",t.BOOLEAN="boolean",t))(Gn||{}),_n=(t=>(t.INPUT="input",t.TEXTAREA="textarea",t.CHECKBOX="checkbox",t.SELECT="select",t))(_n||{}),Nf=(t=>(t.LIGHT="light",t.DARK="dark",t.SYSTEM="system",t))(Nf||{}),$se=(t=>(t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t))($se||{}),sk=(t=>(t.MESSAGE="message",t.ATTACHMENT="attachment",t))(sk||{}),_u=(t=>(t.DATA="data:",t.HTTP="http:",t.HTTPS="https:",t.WEBSOCKET="ws:",t.WEBSOCKET_SECURE="wss:",t))(_u||{}),R9=(t=>(t.FILE="file",t))(R9||{}),wi=(t=>(t.ENTER="Enter",t.ESCAPE="Escape",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.ARROW_LEFT="ArrowLeft",t.ARROW_RIGHT="ArrowRight",t.TAB="Tab",t.D_LOWER="d",t.D_UPPER="D",t.E_UPPER="E",t.K_LOWER="k",t.O_LOWER="o",t.O_UPPER="O",t.SPACE=" ",t))(wi||{}),Ci=(t=>(t.BUILTIN="builtin",t.MCP="mcp",t.CUSTOM="custom",t.FRONTEND="frontend",t))(Ci||{}),Sh=(t=>(t.ALWAYS="always",t.ALWAYS_SERVER="always_server",t.ONCE="once",t.DENY="deny",t))(Sh||{}),dI=(t=>(t.PLAIN_TEXT="plain_text_response",t.ERROR="error",t))(dI||{}),Lmt=ae("<p> </p>"),Pmt=ae("<!> <!>",1);function as(t,e){We(e,!0);let r=ue(e,"variant",3,"ghost"),n=ue(e,"size",3,"sm"),i=ue(e,"class",3,""),a=ue(e,"disabled",3,!1),s=ue(e,"iconSize",3,"h-3 w-3"),o=ue(e,"tooltipSide",19,()=>$se.TOP),l=ue(e,"stopPropagationOnClick",3,!1);var u=Ee(),d=ne(u);Le(d,()=>mo,(h,f)=>{f(h,{children:(p,g)=>{var m=Pmt(),_=ne(m);{const y=(b,E)=>{let S=()=>E?.().props;{let T=ee(()=>e.ariaLabel||e.tooltip);Mn(b,Bt(S,{get variant(){return r()},get size(){return n()},get disabled(){return a()},onclick:C=>{l()&&C.stopPropagation(),e.onclick?.(C)},get class(){return`h-6 w-6 p-0 ${i()??""} flex hover:bg-transparent data-[state=open]:bg-transparent!`},get"aria-label"(){return w(T)},children:(C,x)=>{var A=Ee(),R=ne(A);{var I=L=>{const F=ee(()=>e.icon);var O=Ee(),D=ne(O);Le(D,()=>w(F),(M,P)=>{P(M,{get class(){return s()}})}),H(L,O)};Re(R,L=>{e.icon&&L(I)})}H(C,A)},$$slots:{default:!0}}))}};Le(_,()=>po,(b,E)=>{E(b,{child:y,$$slots:{child:!0}})})}var v=he(_,2);Le(v,()=>go,(y,b)=>{b(y,{get side(){return o()},children:(E,S)=>{var T=Lmt(),C=de(T,!0);oe(T),at(()=>yt(C,e.tooltip)),H(E,T)},$$slots:{default:!0}})}),H(p,m)},$$slots:{default:!0}})}),H(t,u),Ke()}const Fmt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var Bmt=F1("<svg><!><!></svg>");function Mr(t,e){We(e,!0);const r=ue(e,"color",3,"currentColor"),n=ue(e,"size",3,24),i=ue(e,"strokeWidth",3,2),a=ue(e,"absoluteStrokeWidth",3,!1),s=ue(e,"iconNode",19,()=>[]),o=xt(e,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var l=Bmt();Er(l,h=>({...Fmt,...o,width:n(),height:n(),stroke:r(),"stroke-width":h,class:["lucide-icon lucide",e.name&&`lucide-${e.name}`,e.class]}),[()=>a()?Number(i())*24/Number(n()):i()]);var u=de(l);fn(u,17,s,Xy,(h,f)=>{var p=ee(()=>mie(w(f),2));let g=()=>w(p)[0],m=()=>w(p)[1];var _=Ee(),v=ne(_);n3e(v,g,!0,(y,b)=>{Er(y,()=>({...m()}))}),H(h,_)});var d=he(u);ft(d,()=>e.children??Tt),oe(l),H(t,l),Ke()}function Umt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M9 18v-6H5l7-7 7 7h-4v6H9z"}]];Mr(t,Bt({name:"arrow-big-up"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function $mt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];Mr(t,Bt({name:"arrow-down"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function X5e(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M5 12h14"}],["path",{d:"m12 5 7 7-7 7"}]];Mr(t,Bt({name:"arrow-right"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Q5e(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];Mr(t,Bt({name:"arrow-up"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Gmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 7v14"}],["path",{d:"M16 12h2"}],["path",{d:"M16 8h2"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"}],["path",{d:"M6 12h2"}],["path",{d:"M6 8h2"}]];Mr(t,Bt({name:"book-open-text"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Z5e(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"}]];Mr(t,Bt({name:"braces"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function vme(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18"}]];Mr(t,Bt({name:"brain"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function a5(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 6 9 17l-5-5"}]];Mr(t,Bt({name:"check"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function hu(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m6 9 6 6 6-6"}]];Mr(t,Bt({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function yB(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m15 18-6-6 6-6"}]];Mr(t,Bt({name:"chevron-left"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function zmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m18 15-6-6-6 6"}]];Mr(t,Bt({name:"chevron-up"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function fu(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m9 18 6-6-6-6"}]];Mr(t,Bt({name:"chevron-right"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function qmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m7 15 5 5 5-5"}],["path",{d:"m7 9 5-5 5 5"}]];Mr(t,Bt({name:"chevrons-up-down"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Gse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];Mr(t,Bt({name:"circle-alert"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Vmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}],["path",{d:"m9 11 3 3L22 4"}]];Mr(t,Bt({name:"circle-check-big"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function J5e(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]];Mr(t,Bt({name:"circle-x"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function c4(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["polyline",{points:"12 6 12 12 16 14"}]];Mr(t,Bt({name:"clock"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function eDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]];Mr(t,Bt({name:"code"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function tDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Mr(t,Bt({name:"copy"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function zse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]];Mr(t,Bt({name:"database"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function eA(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]];Mr(t,Bt({name:"download"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Hmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];Mr(t,Bt({name:"ellipsis"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Ymt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];Mr(t,Bt({name:"external-link"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function qse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]];Mr(t,Bt({name:"eye"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function ng(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];Mr(t,Bt({name:"file-text"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Wmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}],["path",{d:"m14.5 12.5-5 5"}],["path",{d:"m9.5 12.5 5 5"}]];Mr(t,Bt({name:"file-x"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function s5(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}]];Mr(t,Bt({name:"file"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function u4(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"}],["path",{d:"M6.453 15h11.094"}],["path",{d:"M8.5 2h7"}]];Mr(t,Bt({name:"flask-conical"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function sR(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]];Mr(t,Bt({name:"folder-open"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Kmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"}]];Mr(t,Bt({name:"funnel"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Wz(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];Mr(t,Bt({name:"gauge"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function tZ(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["line",{x1:"6",x2:"6",y1:"3",y2:"15"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}],["path",{d:"M18 9a9 9 0 0 1-9 9"}]];Mr(t,Bt({name:"git-branch"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function jmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];Mr(t,Bt({name:"globe"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Xmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["line",{x1:"2",y1:"2",x2:"22",y2:"22"}],["path",{d:"M16.5 16.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5a5.5 5.5 0 0 1 2.14-4.35"}],["path",{d:"M8.76 3.1c1.15.22 2.13.78 3.24 1.9 1.5-1.5 2.74-2 4.5-2A5.5 5.5 0 0 1 22 8.5c0 2.12-1.3 3.78-2.67 5.17"}]];Mr(t,Bt({name:"heart-off"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Qmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}]];Mr(t,Bt({name:"heart"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Vse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];Mr(t,Bt({name:"image"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function eb(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]];Mr(t,Bt({name:"info"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Zmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4"}],["path",{d:"m21 2-9.6 9.6"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5"}]];Mr(t,Bt({name:"key"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function yme(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]];Mr(t,Bt({name:"layers"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Jmt(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5"}],["path",{d:"m2 2 20 20"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]];Mr(t,Bt({name:"lightbulb-off"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function e0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]];Mr(t,Bt({name:"lightbulb"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function t0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m3 17 2 2 4-4"}],["path",{d:"m3 7 2 2 4-4"}],["path",{d:"M13 6h8"}],["path",{d:"M13 12h8"}],["path",{d:"M13 18h8"}]];Mr(t,Bt({name:"list-checks"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function r0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 6H3"}],["path",{d:"M7 12H3"}],["path",{d:"M7 18H3"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14"}],["path",{d:"M11 10v4h4"}]];Mr(t,Bt({name:"list-restart"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Ao(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];Mr(t,Bt({name:"loader-circle"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function bB(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}]];Mr(t,Bt({name:"message-square"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Hse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22"}]];Mr(t,Bt({name:"mic"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function n0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M5 12h14"}]];Mr(t,Bt({name:"minus"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function rDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]];Mr(t,Bt({name:"monitor"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function i0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"}]];Mr(t,Bt({name:"moon"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function EB(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M9 18V5l12-2v13"}],["circle",{cx:"6",cy:"18",r:"3"}],["circle",{cx:"18",cy:"16",r:"3"}]];Mr(t,Bt({name:"music"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function BT(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];Mr(t,Bt({name:"package"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function a0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]];Mr(t,Bt({name:"panel-left-close"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function s0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}]];Mr(t,Bt({name:"panel-left"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Yse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13"}],["path",{d:"m8 6 2-2"}],["path",{d:"m18 16 2-2"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Mr(t,Bt({name:"pencil-ruler"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Wse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Mr(t,Bt({name:"pencil"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function nDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]];Mr(t,Bt({name:"pin"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function o0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 17v5"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"}],["path",{d:"m2 2 20 20"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"}]];Mr(t,Bt({name:"pin-off"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Eb(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];Mr(t,Bt({name:"plus"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function bme(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68"}],["path",{d:"M12 2v4"}],["path",{d:"m2 2 20 20"}]];Mr(t,Bt({name:"power-off"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function l0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 2v10"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"}]];Mr(t,Bt({name:"power"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function c0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5"}],["circle",{cx:"12",cy:"12",r:"2"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19"}]];Mr(t,Bt({name:"radio"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function D_(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];Mr(t,Bt({name:"refresh-cw"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function O9(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]];Mr(t,Bt({name:"rotate-ccw"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function iDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}]];Mr(t,Bt({name:"rotate-cw"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function aDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];Mr(t,Bt({name:"search"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function sDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18"}]];Mr(t,Bt({name:"server"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function SB(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}],["circle",{cx:"12",cy:"12",r:"3"}]];Mr(t,Bt({name:"settings"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function u0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m2 2 20 20"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264"}]];Mr(t,Bt({name:"shield-off"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function d0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]];Mr(t,Bt({name:"shield-question"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function h0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}]];Mr(t,Bt({name:"shield"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function f0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["polygon",{points:"5 4 15 12 5 20 5 4"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19"}]];Mr(t,Bt({name:"skip-forward"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function p0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["line",{x1:"4",x2:"4",y1:"21",y2:"14"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16"}]];Mr(t,Bt({name:"sliders-vertical"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function oDe(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];Mr(t,Bt({name:"sparkles"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Kse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]];Mr(t,Bt({name:"square-pen"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function jse(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]];Mr(t,Bt({name:"square"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function g0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];Mr(t,Bt({name:"sun"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function m0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10 2h4"}],["path",{d:"M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7"}],["path",{d:"M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2"}],["path",{d:"m2 2 20 20"}],["path",{d:"M12 12v-2"}]];Mr(t,Bt({name:"timer-off"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function pg(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];Mr(t,Bt({name:"trash-2"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function B1(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];Mr(t,Bt({name:"triangle-alert"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function rZ(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]];Mr(t,Bt({name:"upload"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function oR(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"}]];Mr(t,Bt({name:"video"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Kz(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"7",cy:"12",r:"3"}],["path",{d:"M10 9v6"}],["circle",{cx:"17",cy:"12",r:"3"}],["path",{d:"M14 7v8"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1"}]];Mr(t,Bt({name:"whole-word"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function ok(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"}]];Mr(t,Bt({name:"wrench"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function Xd(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Mr(t,Bt({name:"x"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function TB(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];Mr(t,Bt({name:"zap"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function _0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]];Mr(t,Bt({name:"zoom-in"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}function v0t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]];Mr(t,Bt({name:"zoom-out"},()=>r,{get iconNode(){return n},children:(i,a)=>{var s=Ee(),o=ne(s);ft(o,()=>e.children??Tt),H(i,s)},$$slots:{default:!0}})),Ke()}const lDe=typeof window<"u"?window:void 0;function y0t(t){let e=t.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}let b0t=class{#e;#t;constructor(e={}){const{window:r=lDe,document:n=r?.document}=e;r!==void 0&&(this.#e=n,this.#t=L1(i=>{const a=Ai(r,"focusin",i),s=Ai(r,"focusout",i);return()=>{a(),s()}}))}get current(){return this.#t?.(),this.#e?y0t(this.#e):null}};new b0t;function E0t(t,e){switch(t){case"post":sr(e);break;case"pre":Cc(e);break}}function cDe(t,e,r,n={}){const{lazy:i=!1}=n;let a=!i,s=Array.isArray(t)?[]:void 0;E0t(e,()=>{const o=Array.isArray(t)?t.map(u=>u()):t();if(!a){a=!0,s=o;return}const l=Vi(()=>r(o,s));return s=o,l})}function Xse(t,e,r){cDe(t,"post",e,r)}function S0t(t,e,r){cDe(t,"pre",e,r)}Xse.pre=S0t;function T0t(t,e){switch(t){case"local":return e.localStorage;case"session":return e.sessionStorage}}class uDe{#e;#t;#r;#n;#i;#a=Me(0);constructor(e,r,n={}){const{storage:i="local",serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:s=!0,window:o=lDe}=n;if(this.#e=r,this.#t=e,this.#r=a,o===void 0)return;const l=T0t(i,o);this.#n=l;const u=l.getItem(e);u!==null?this.#e=this.#o(u):this.#c(r),s&&i==="local"&&(this.#i=L1(()=>Ai(o,"storage",this.#s)))}get current(){this.#i?.(),w(this.#a);const e=this.#o(this.#n?.getItem(this.#t))??this.#e,r=new WeakMap,n=i=>{if(i===null||i?.constructor.name==="Date"||typeof i!="object")return i;let a=r.get(i);return a||(a=new Proxy(i,{get:(s,o)=>(w(this.#a),n(Reflect.get(s,o))),set:(s,o,l)=>(J(this.#a,w(this.#a)+1),Reflect.set(s,o,l),this.#c(e),!0)}),r.set(i,a)),a};return n(e)}set current(e){this.#c(e),J(this.#a,w(this.#a)+1)}#s=e=>{e.key!==this.#t||e.newValue===null||(this.#e=this.#o(e.newValue),J(this.#a,w(this.#a)+1))};#o(e){try{return this.#r.deserialize(e)}catch(r){console.error(`Error when parsing "${e}" from persisted store "${this.#t}"`,r);return}}#c(e){try{e!=null&&this.#n?.setItem(this.#t,this.#r.serialize(e))}catch(r){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#n}`,r)}}}function Eme(t){return t.filter(e=>e.length>0)}const dDe={getItem:t=>null,setItem:(t,e)=>{}},o5=typeof document<"u";function C0t(t){return typeof t=="function"}function w0t(t){return t!==null&&typeof t=="object"}const lk=Symbol("box"),Qse=Symbol("is-writable");function x0t(t){return w0t(t)&&lk in t}function A0t(t){return Yo.isBox(t)&&Qse in t}function Yo(t){let e=Me(Kr(t));return{[lk]:!0,[Qse]:!0,get current(){return w(e)},set current(r){J(e,r,!0)}}}function R0t(t,e){const r=ee(t);return e?{[lk]:!0,[Qse]:!0,get current(){return w(r)},set current(n){e(n)}}:{[lk]:!0,get current(){return t()}}}function O0t(t){return Yo.isBox(t)?t:C0t(t)?Yo.with(t):Yo(t)}function I0t(t){return Object.entries(t).reduce((e,[r,n])=>Yo.isBox(n)?(Yo.isWritableBox(n)?Object.defineProperty(e,r,{get(){return n.current},set(i){n.current=i}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function N0t(t){return Yo.isWritableBox(t)?{[lk]:!0,get current(){return t.current}}:t}Yo.from=O0t;Yo.with=R0t;Yo.flatten=I0t;Yo.readonly=N0t;Yo.isBox=x0t;Yo.isWritableBox=A0t;function k0t(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const D0t=k0t(/[A-Z]/,t=>`-${t.toLowerCase()}`);function M0t(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${D0t(e)}: ${t[e]};`).join(`
`)}function L0t(t={}){return M0t(t).replace(`
`," ")}const P0t={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};L0t(P0t);const F0t=typeof window<"u"?window:void 0;function B0t(t){let e=t.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}let U0t=class{#e;#t;constructor(e={}){const{window:r=F0t,document:n=r?.document}=e;r!==void 0&&(this.#e=n,this.#t=L1(i=>{const a=Ai(r,"focusin",i),s=Ai(r,"focusout",i);return()=>{a(),s()}}))}get current(){return this.#t?.(),this.#e?B0t(this.#e):null}};new U0t;const Ry=Yo("mode-watcher-mode"),Oy=Yo("mode-watcher-theme"),$0t=["dark","light","system"];function nZ(t){return typeof t!="string"?!1:$0t.includes(t)}class G0t{#e="system";#t=o5?localStorage:dDe;#r=this.#t.getItem(Ry.current);#n=nZ(this.#r)?this.#r:this.#e;#i=Me(Kr(this.#a()));#a(e=this.#n){return new uDe(Ry.current,e,{serializer:{serialize:r=>r,deserialize:r=>nZ(r)?r:this.#e}})}constructor(){U3(()=>Xse.pre(()=>Ry.current,(e,r)=>{const n=w(this.#i).current;J(this.#i,this.#a(n),!0),r&&localStorage.removeItem(r)}))}get current(){return w(this.#i).current}set current(e){w(this.#i).current=e}}class z0t{#e=void 0;#t=!0;#r=Me(Kr(this.#e));#n=typeof window<"u"&&typeof window.matchMedia=="function"?new Z3e("prefers-color-scheme: light"):{current:!1};query(){o5&&J(this.#r,this.#n.current?"light":"dark",!0)}tracking(e){this.#t=e}constructor(){U3(()=>{Cc(()=>{this.#t&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return w(this.#r)}}const iZ=new G0t,aZ=new z0t;class q0t{#e=o5?localStorage:dDe;#t=this.#e.getItem(Oy.current);#r=this.#t===null||this.#t===void 0?"":this.#t;#n=Me(Kr(this.#i()));#i(e=this.#r){return new uDe(Oy.current,e,{serializer:{serialize:r=>typeof r!="string"?"":r,deserialize:r=>r}})}constructor(){U3(()=>Xse.pre(()=>Oy.current,(e,r)=>{const n=w(this.#n).current;J(this.#n,this.#i(n),!0),r&&localStorage.removeItem(r)}))}get current(){return w(this.#n).current}set current(e){w(this.#n).current=e}}const CP=new q0t;let Sme,Tme,Cme=!1,cO=null;function V0t(){return cO||(cO=document.createElement("style"),cO.appendChild(document.createTextNode(`* {
		-webkit-transition: none !important;
		-moz-transition: none !important;
		-o-transition: none !important;
		-ms-transition: none !important;
		transition: none !important;
	}`)),cO)}function hDe(t,e=!1){if(typeof document>"u")return;if(!Cme){Cme=!0,t();return}if(typeof window<"u"&&window.__vitest_worker__){t();return}clearTimeout(Sme),clearTimeout(Tme);const n=V0t(),i=()=>document.head.appendChild(n),a=()=>{n.parentNode&&document.head.removeChild(n)};function s(){t(),window.requestAnimationFrame(a)}if(typeof window.requestAnimationFrame<"u"){i(),e?s():window.requestAnimationFrame(()=>{s()});return}i(),Sme=window.setTimeout(()=>{t(),Tme=window.setTimeout(a,16)},16)}const M_=Yo(void 0),I9=Yo(!0),N9=Yo(!1),sZ=Yo([]),oZ=Yo([]);function H0t(){const t=ee(()=>{if(!o5)return;const e=iZ.current==="system"?aZ.current:iZ.current,r=Eme(sZ.current),n=Eme(oZ.current);function i(){const a=document.documentElement,s=document.querySelector('meta[name="theme-color"]');e==="light"?(r.length&&a.classList.remove(...r),n.length&&a.classList.add(...n),a.style.colorScheme="light",s&&M_.current&&s.setAttribute("content",M_.current.light)):(n.length&&a.classList.remove(...n),r.length&&a.classList.add(...r),a.style.colorScheme="dark",s&&M_.current&&s.setAttribute("content",M_.current.dark))}return I9.current?hDe(i,N9.current):i(),e});return{get current(){return w(t)}}}function Y0t(){const t=ee(()=>{if(CP.current,!o5)return;function e(){document.documentElement.setAttribute("data-theme",CP.current)}return I9.current?hDe(e,Vi(()=>N9.current)):e(),CP.current});return{get current(){return w(t)}}}const ck=H0t(),W0t=Y0t();function Sm(t){iZ.current=t}function K0t(t){CP.current=t}function j0t({defaultMode:t="system",themeColors:e,darkClassNames:r=["dark"],lightClassNames:n=[],defaultTheme:i="",modeStorageKey:a="mode-watcher-mode",themeStorageKey:s="mode-watcher-theme"}){const o=document.documentElement,l=localStorage.getItem(a)??t,u=localStorage.getItem(s)??i,d=l==="light"||l==="system"&&window.matchMedia("(prefers-color-scheme: light)").matches;if(d?(r.length&&o.classList.remove(...r.filter(Boolean)),n.length&&o.classList.add(...n.filter(Boolean))):(n.length&&o.classList.remove(...n.filter(Boolean)),r.length&&o.classList.add(...r.filter(Boolean))),o.style.colorScheme=d?"light":"dark",e){const h=document.querySelector('meta[name="theme-color"]');h&&h.setAttribute("content",l==="light"?e.light:e.dark)}u&&(o.setAttribute("data-theme",u),localStorage.setItem(s,u)),localStorage.setItem(a,l)}var X0t=ae('<meta name="theme-color"/>');function Q0t(t,e){We(e,!0);var r=Ee(),n=ne(r);{var i=a=>{var s=X0t();at(()=>Pr(s,"content",e.themeColors.dark)),H(a,s)};Re(n,a=>{e.themeColors&&a(i)})}H(t,r),Ke()}var Z0t=ae('<meta name="theme-color"/>'),J0t=ae("<!> <!>",1);function e_t(t,e){We(e,!0);let r=ue(e,"trueNonce",3,"");V3("1funsus",n=>{var i=J0t(),a=ne(i);{var s=l=>{var u=Z0t();at(()=>Pr(u,"content",e.themeColors.dark)),H(l,u)};Re(a,l=>{e.themeColors&&l(s)})}var o=he(a,2);Qy(o,()=>`<script${r()?` nonce=${r()}`:""}>(`+j0t.toString()+")("+JSON.stringify(e.initConfig)+");<\/script>"),H(n,i)}),Ke()}function t_t(t,e){We(e,!0);let r=ue(e,"track",3,!0),n=ue(e,"defaultMode",3,"system"),i=ue(e,"disableTransitions",3,!0),a=ue(e,"darkClassNames",19,()=>["dark"]),s=ue(e,"lightClassNames",19,()=>[]),o=ue(e,"defaultTheme",3,""),l=ue(e,"nonce",3,""),u=ue(e,"themeStorageKey",3,"mode-watcher-theme"),d=ue(e,"modeStorageKey",3,"mode-watcher-mode"),h=ue(e,"disableHeadScriptInjection",3,!1),f=ue(e,"synchronousModeChanges",3,!1);Ry.current=d(),Oy.current=u(),sZ.current=a(),oZ.current=s(),I9.current=i(),M_.current=e.themeColors,N9.current=f(),Cc(()=>{N9.current=f()}),Cc(()=>{I9.current=i()}),Cc(()=>{M_.current=e.themeColors}),Cc(()=>{sZ.current=a()}),Cc(()=>{oZ.current=s()}),Cc(()=>{Ry.current=d()}),Cc(()=>{Oy.current=u()}),Cc(()=>{ck.current,Ry.current,Oy.current,W0t.current}),Ns(()=>{aZ.tracking(r()),aZ.query();const b=localStorage.getItem(Ry.current);Sm(nZ(b)?b:n());const E=localStorage.getItem(Oy.current);K0t(E||o())});const p={defaultMode:n(),themeColors:e.themeColors,darkClassNames:a(),lightClassNames:s(),defaultTheme:o(),modeStorageKey:d(),themeStorageKey:u()},g=ee(()=>typeof window>"u"?l():"");var m=Ee(),_=ne(m);{var v=b=>{Q0t(b,{get themeColors(){return M_.current}})},y=b=>{e_t(b,{get trueNonce(){return w(g)},get initConfig(){return p},get themeColors(){return M_.current}})};Re(_,b=>{h()?b(v):b(y,-1)})}H(t,m),Ke()}const r_t=/\[Attachment saved: ([^\]]+)\]/,a1=`
`,jz={enabled:!0,maxTurns:100,maxToolPreviewLines:25},k9={START:"<think>",END:"</think>"},n_t={START:"<<<reasoning_content_start>>>"},tb={COMPLETED_TOOL_CALL:/<<<AGENTIC_TOOL_CALL_START>>>\n<<<TOOL_NAME:(.+?)>>>\n<<<TOOL_ARGS_START>>>([\s\S]*?)<<<TOOL_ARGS_END>>>([\s\S]*?)<<<AGENTIC_TOOL_CALL_END>>>/g,REASONING_BLOCK:/<<<reasoning_content_start>>>[\s\S]*?<<<reasoning_content_end>>>/g,REASONING_EXTRACT:/<<<reasoning_content_start>>>([\s\S]*?)<<<reasoning_content_end>>>/,REASONING_OPEN:/<<<reasoning_content_start>>>[\s\S]*$/,AGENTIC_TOOL_CALL_OPEN:/\n*<<<AGENTIC_TOOL_CALL_START>>>[\s\S]*$/,HAS_LEGACY_MARKERS:/<<<(?:AGENTIC_TOOL_CALL_START|reasoning_content_start)>>>/},d4={LIST:"/v1/models",LOAD:"/models/load",UNLOAD:"/models/unload"},Xz={COMPLETIONS:"./v1/chat/completions",CONTROL:"./v1/chat/completions/control"},wme={LIST:"./slots"},xme={LIST:"/tools",EXECUTE:"/tools"},i_t="/cors-proxy",a_t="PDF File",s_t="MCP Prompt",o_t="MCP Resource",jh="LlamaUi",lR="LlamaCppWebui",Ame="LlamacppWebui",hI=`${jh}.alwaysAllowedTools`,Sb=`${jh}.config`,l_t=`${jh}.disabledTools`,Rme=`${jh}.disabledToolKeys`,lZ=`${jh}.favoriteModels`,wP=`${jh}.mcpDefaultEnabled`,Ome=`${jh}.thinkingEnabledDefault`,Ime=`${jh}.reasoningEffortDefault`,cZ=`${jh}.userOverrides`,c_t=`${lR}.alwaysAllowedTools`,u_t=`${lR}.config`,d_t=`${lR}.disabledTools`,h_t=`${lR}.favoriteModels`,f_t=`${lR}.mcpDefaultEnabled`,p_t=`${lR}.userOverrides`,g_t={[hI]:c_t,[Sb]:u_t,[l_t]:d_t,[lZ]:h_t,[wP]:f_t,[cZ]:p_t},Nn={conversations:"conversations",messages:"messages"},Nme={conversations:"id, lastModified, currNode, name",messages:"id, convId, type, role, timestamp, parent, children"},uZ={[Nn.conversations]:Nme.conversations,[Nn.messages]:Nme.messages},m_t=[{value:"off",label:"Off",isOff:!0},{value:Oh.LOW,label:"Low"},{value:Oh.MEDIUM,label:"Medium"},{value:Oh.HIGH,label:"High"},{value:Oh.MAX,label:"Max",hasInfo:!0}],dZ={[Oh.LOW]:512,[Oh.MEDIUM]:2048,[Oh.HIGH]:8192,[Oh.MAX]:-1},uO={[xi.IMAGE]:Vse,[xi.AUDIO]:Hse,[xi.VIDEO]:oR,[xi.TEXT]:ng,[xi.PDF]:s5},__t='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy-icon lucide-copy"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>',v_t='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye lucide-eye-icon"><path d="M2.062 12.345a1 1 0 0 1 0-.69C3.5 7.73 7.36 5 12 5s8.5 2.73 9.938 6.655a1 1 0 0 1 0 .69C20.5 16.27 16.64 19 12 19s-8.5-2.73-9.938-6.655"/><circle cx="12" cy="12" r="3"/></svg>',fDe=[{id:Om.IMAGES,label:"Images",icon:uO.image,class:"images-button",enabledWhen:Im.HAS_VISION_MODALITY,disabledTooltip:"Image processing requires a vision model",action:kd.FILE_UPLOAD},{id:Om.AUDIO,label:"Audio Files",icon:uO.audio,class:"audio-button",enabledWhen:Im.HAS_AUDIO_MODALITY,disabledTooltip:"Audio files processing requires an audio model",action:kd.FILE_UPLOAD},{id:Om.VIDEO,label:"Video Files",icon:uO.video,class:"video-button",enabledWhen:Im.HAS_VIDEO_MODALITY,disabledTooltip:"Video files processing requires a video model",action:kd.FILE_UPLOAD},{id:Om.TEXT,label:"Text Files",icon:uO.text,enabledWhen:Im.ALWAYS,action:kd.FILE_UPLOAD},{id:Om.PDF,label:"PDF Files",icon:uO.pdf,enabledWhen:Im.ALWAYS,disabledTooltip:"PDFs will be converted to text. Image-based PDFs may not work properly.",hasEnabledTooltip:!0,action:kd.FILE_UPLOAD}];Om.SYSTEM_MESSAGE,Im.ALWAYS,kd.SYSTEM_PROMPT_CLICK,Om.MCP_PROMPT,Im.ALWAYS,kd.MCP_PROMPT_CLICK,Bse.HAS_MCP_PROMPTS_SUPPORT;Om.MCP_RESOURCES,Im.ALWAYS,kd.MCP_RESOURCES_CLICK,Bse.HAS_MCP_RESOURCES_SUPPORT;const D9="Add files, prompts, tools or MCP Servers",y_t=100,b_t=10,E_t={prefixLength:1024*10,suspiciousCharThresholdRatio:.15,maxAbsoluteNullBytes:2},pDe=300*1e3,S_t=100,T_t=600*1e3,C_t=50,w_t=50,x_t=300*1e3,A_t=10,R_t=1800*1e3,O_t=0,I_t=`

`,N_t='"',kme="/",Qz="@",Zz="__new_chat__",Iy={API_KEY:"--api-key",MCP_PROXY:"--ui-mcp-proxy",TOOLS:"--tools"},k_t="code-block-scroll-container",D_t="code-block-wrapper",M_t="code-block-header",L_t="code-block-actions",P_t="code-language",F_t="copy-code-btn",B_t="preview-code-btn",U_t="relative",$_t=`
`,G_t="text",z_t=/^(\w*)\n?/,q_t=/&/g,V_t=/</g,H_t=/>/g,Dme=/^```|\n```/g,Y_t="chat-message-edit",W_t="chat-actions",K_t="chat-settings-config",j_t="processing-info",X_t={END_REASONING:"reasoning_end"},gDe="border border-border/30 focus-within:border-border  dark:border-border/20 dark:focus-within:border-border",mDe=`
    bg-muted/60 dark:bg-muted/75
    ${gDe}
    shadow-sm
    outline-none
    text-foreground
`,Q_t=`
    bg-background
    border border-border/30 dark:border-border/20
    shadow-sm backdrop-blur-lg!
    rounded-t-lg!
`,Z_t="max-h-80",xP=1e3,Mme=60,Lme=3600,J_t=1,e1t=10,Pme="0s",Jz=120,t1t=[[/^```(.*)/gm,"$1"],[/(.*)```$/gm,"$1"],[/`([^`]*)`/g,"$1"],[/\*\*(.*?)\*\*/g,"$1"],[/__(.*?)__/g,"$1"],[/\*(.*?)\*/g,"$1"],[/_(.*?)_/g,"$1"]],r1t=new RegExp(["<[^>]*>","^>\\s*","^#{1,6}\\s+","^[\\s]*[-*+]\\s+","^[\\s]*\\d+[.)]\\s+","[\\u{1F600}-\\u{1F64F}\\u{1F300}-\\u{1F5FF}\\u{1F680}-\\u{1F6FF}\\u{1F1E0}-\\u{1F1FF}\\u{2600}-\\u{26FF}\\u{2700}-\\u{27BF}\\u{FE00}-\\u{FE0F}\\u{1F900}-\\u{1F9FF}\\u{1FA00}-\\u{1FA6F}\\u{1FA70}-\\u{1FAFF}\\u{200D}\\u{20E3}\\u{231A}-\\u{231B}\\u{23E9}-\\u{23F3}\\u{23F8}-\\u{23FA}\\u{25AA}-\\u{25AB}\\u{25B6}\\u{25C0}\\u{25FB}-\\u{25FE}\\u{2934}-\\u{2935}\\u{2B05}-\\u{2B07}\\u{2B1B}-\\u{2B1C}\\u{2B50}\\u{2B55}\\u{3030}\\u{303D}\\u{3297}\\u{3299}]"].join("|"),"gmu"),_De=256,vDe=8192,n1t=/[\x00-\x1F\x7F]/g,i1t=/[\x00-\x08\x0A-\x0D\x0E-\x1F\x7F]/g,a1t=/(```[\s\S]*?```|`[^`\n]+`)/g,s1t=new RegExp("(```[\\S\\s]*?```|`.*?`)|(?<!\\\\)\\\\\\[([\\S\\s]*?[^\\\\])\\\\]|(?<!\\\\)\\\\\\((.*?)\\\\\\)","g"),o1t=/\$\$([\s\S]*?\\\\[\s\S]*?)\$\$/,l1t=/\r?\n/,c1t=new Set(["paragraph","heading","emphasis","strong","delete","link","linkReference","tableCell"]),yDe=" ",u1t=yDe.repeat(4),d1t="img:not([data-error-bound])",h1t="errorBound",Fme="errorHandled",eq="true",f1t="mermaid-block-wrapper",p1t="mermaid-scroll-container",bDe="1.0.0",g1t="llama-ui-mcp",m1t=ka.PNG,_1t=new Set([ka.PNG,ka.JPEG,ka.JPG,ka.SVG,ka.WEBP,ka.ICO,ka.ICO_MICROSOFT]),v1t="2025-06-18",qs={protocolVersion:v1t,capabilities:{tools:{listChanged:!0}},clientInfo:{name:g1t,version:bDe},requestTimeoutSeconds:300,connectionTimeoutMs:1e4},Zse="LlamaUI-MCP-Server",y1t=1e3,b1t=2,E1t=3e4,Bme=15e3,S1t=2,T1t="url",C1t=5,tq=new Map([["mcp-session-id",C1t]]),w1t=new Set(["authorization","api-key","cookie","mcp-session-id","proxy-authorization","set-cookie","x-auth-token","x-api-key"]),x1t={[ju.WEBSOCKET]:"WebSocket",[ju.STREAMABLE_HTTP]:"HTTP",[ju.SSE]:"SSE"},A1t={[ju.WEBSOCKET]:TB,[ju.STREAMABLE_HTTP]:jmt,[ju.SSE]:c0t},R1t="https://mcp.example.com/sse",O1t=1,EDe=/\.(png|jpg|jpeg|gif|svg|webp)$/i,SDe=/\.(js|ts|json|yaml|yml|xml|html|css|py|rs|go|java|cpp|c|h|rb|sh|toml)$/i,I1t=/\.(txt|md|log)$/i,N1t=/^[a-z]+:\/\//,k1t=/\.[^.]+$/,D1t=/[-_]/,M1t=/^data:([^;]+);base64,([A-Za-z0-9+/]+=*)$/,L1t="mcp-attachment",P1t="res",F1t="img",TDe="resource.txt",B1t="/",U1t=`

`,Ume="unknown type",$me="Binary content",$1t={[ka.JPEG]:"jpg",[ka.JPG]:"jpg",[ka.PNG]:"png",[ka.GIF]:"gif",[ka.WEBP]:"webp"},G1t=8,z1t=20,q1t=19,V1t=/[^a-z0-9]/gi,H1t="_",Y1t=/_+/g,Gme="T",W1t="_",K1t=":",j1t="-",Yg=-1,X1t="/",zme="-",Q1t=":",qme=/^(I?Q\d+(_[A-Z0-9]+)*|F\d+|BF\d+|MXFP\d+(_[A-Z0-9]+)*)$/i,Z1t=/^UD$/i,J1t=/^\d+(\.\d+)?[BbMmKkTt]$/,evt=/^[Aa]\d+(\.\d+)?[BbMmKkTt]$/,tvt=new Set(["GGUF","GGML"]),Vme=1e6,rvt=2e3,Hme={TOKENS_PER_SECOND:"t/s"},hZ="new_chat",Xr={GENERAL:"general",DISPLAY:"display",SAMPLING:"sampling",PENALTIES:"penalties",AGENTIC:"agentic",DEVELOPER:"developer",MCP:"mcp",TOOLS:"tools",IMPORT_EXPORT:"import-export"},ho={START:"#/",NEW_CHAT:`?${hZ}=true#/`,CHAT:"#/chat",MCP_SERVERS:"#/mcp-servers",SETTINGS:"#/settings"},CDe="run_javascript",wDe=1e4,xDe=3e4,Yme=8192,nvt="(no output)",ivt="[output truncated]",avt={type:aR.FUNCTION,function:{name:CDe,description:"Execute JavaScript in a sandboxed browser worker (no DOM, no page access). Top level await is supported. Use console.log to print intermediate values; a top level return statement is captured as the result.",parameters:{type:FT.OBJECT,properties:{code:{type:FT.STRING,description:"JavaScript source to execute"},timeout_ms:{type:FT.NUMBER,description:`Execution timeout in milliseconds, default ${wDe}, max ${xDe}`}},required:["code"]}}},ar={THEME:"theme",API_KEY:"apiKey",SYSTEM_MESSAGE:"systemMessage",PASTE_LONG_TEXT_TO_FILE_LEN:"pasteLongTextToFileLen",COPY_TEXT_ATTACHMENTS_AS_PLAIN_TEXT:"copyTextAttachmentsAsPlainText",SEND_ON_ENTER:"sendOnEnter",ENABLE_CONTINUE_GENERATION:"enableContinueGeneration",PDF_AS_IMAGE:"pdfAsImage",ASK_FOR_TITLE_CONFIRMATION:"askForTitleConfirmation",TITLE_GENERATION_USE_FIRST_LINE:"titleGenerationUseFirstLine",TITLE_GENERATION_USE_LLM:"titleGenerationUseLLM",TITLE_GENERATION_PROMPT:"titleGenerationPrompt",MAX_IMAGE_RESOLUTION:"maxImageMPixels",SHOW_MESSAGE_STATS:"showMessageStats",SHOW_THOUGHT_IN_PROGRESS:"showThoughtInProgress",KEEP_STATS_VISIBLE:"keepStatsVisible",AUTO_MIC_ON_EMPTY:"autoMicOnEmpty",RENDER_USER_CONTENT_AS_MARKDOWN:"renderUserContentAsMarkdown",DISABLE_AUTO_SCROLL:"disableAutoScroll",ALWAYS_SHOW_SIDEBAR_ON_DESKTOP:"alwaysShowSidebarOnDesktop",FULL_HEIGHT_CODE_BLOCKS:"fullHeightCodeBlocks",SHOW_RAW_MODEL_NAMES:"showRawModelNames",SHOW_MODEL_QUANTIZATION:"showModelQuantization",SHOW_MODEL_TAGS:"showModelTags",SHOW_SYSTEM_MESSAGE:"showSystemMessage",TEMPERATURE:"temperature",DYNATEMP_RANGE:"dynatemp_range",DYNATEMP_EXPONENT:"dynatemp_exponent",TOP_K:"top_k",TOP_P:"top_p",MIN_P:"min_p",XTC_PROBABILITY:"xtc_probability",XTC_THRESHOLD:"xtc_threshold",TYP_P:"typ_p",MAX_TOKENS:"max_tokens",SAMPLERS:"samplers",BACKEND_SAMPLING:"backend_sampling",REPEAT_LAST_N:"repeat_last_n",REPEAT_PENALTY:"repeat_penalty",PRESENCE_PENALTY:"presence_penalty",FREQUENCY_PENALTY:"frequency_penalty",DRY_MULTIPLIER:"dry_multiplier",DRY_BASE:"dry_base",DRY_ALLOWED_LENGTH:"dry_allowed_length",DRY_PENALTY_LAST_N:"dry_penalty_last_n",MCP_SERVERS:"mcpServers",MCP_REQUEST_TIMEOUT_SECONDS:"mcpRequestTimeoutSeconds",AGENTIC_MAX_TURNS:"agenticMaxTurns",ALWAYS_SHOW_AGENTIC_TURNS:"alwaysShowAgenticTurns",AGENTIC_MAX_TOOL_PREVIEW_LINES:"agenticMaxToolPreviewLines",SHOW_TOOL_CALL_IN_PROGRESS:"showToolCallInProgress",PRE_ENCODE_CONVERSATION:"preEncodeConversation",DISABLE_REASONING_PARSING:"disableReasoningParsing",EXCLUDE_REASONING_FROM_CONTEXT:"excludeReasoningFromContext",ENABLE_THINKING:"enableThinking",SHOW_RAW_OUTPUT_SWITCH:"showRawOutputSwitch",JS_SANDBOX_ENABLED:"jsSandboxEnabled",CUSTOM_JSON:"customJson",CUSTOM_CSS:"customCss"};var svt=F1('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 174 174" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1"><g id="shape-320b5b95-d08d-8089-8007-585a8e498184"><defs><clipPath id="frame-clip-320b5b95-d08d-8089-8007-585a8e498184-render-1" class="frame-clip frame-clip-def"><rect rx="0" ry="0" x="0" y="0" width="174.00000000000045" height="174" transform="matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)"></rect></clipPath></defs><g class="frame-container-wrapper"><g class="frame-container-blur"><g class="frame-container-shadows"><g clip-path="url(#frame-clip-320b5b95-d08d-8089-8007-585a8e498184-render-1)" fill="none"><g class="fills" id="fills-320b5b95-d08d-8089-8007-585a8e498184"><rect rx="0" ry="0" x="0" y="0" width="174.00000000000045" height="174" transform="matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)" class="frame-background"></rect></g><g class="frame-children"><g id="shape-320b5b95-d08d-8089-8007-585a974337b1"><g class="fills" id="fills-320b5b95-d08d-8089-8007-585a974337b1"><path d="M15.5587158203125,81.5927734375L83.44091796875,13.7105712890625C92.813720703125,4.3380126953125,108.0096435546875,4.3380126953125,117.3817138671875,13.7105712890625L117.3817138671875,13.7105712890625C126.7547607421875,23.08306884765625,126.7547607421875,38.27911376953125,117.3817138671875,47.65167236328125L66.1168212890625,98.9169921875" fill="none" stroke-linecap="round" style="fill: none;"></path></g><g fill="none" stroke-linecap="round" id="strokes-b954dcef-3e3e-8015-8007-585acd4382b6-320b5b95-d08d-8089-8007-585a974337b1" class="strokes"><g class="stroke-shape"><path d="M15.5587158203125,81.5927734375L83.44091796875,13.7105712890625C92.813720703125,4.3380126953125,108.0096435546875,4.3380126953125,117.3817138671875,13.7105712890625L117.3817138671875,13.7105712890625C126.7547607421875,23.08306884765625,126.7547607421875,38.27911376953125,117.3817138671875,47.65167236328125L66.1168212890625,98.9169921875" style="fill: none; stroke-width: 12; stroke: currentColor; stroke-opacity: 1;"></path></g></g></g><g id="shape-320b5b95-d08d-8089-8007-585a974337b2"><g class="fills" id="fills-320b5b95-d08d-8089-8007-585a974337b2"><path d="M66.5587158203125,98.26885986328125L117.1165771484375,47.7105712890625C126.489501953125,38.3380126953125,141.6854248046875,38.3380126953125,151.0584716796875,47.7105712890625L151.4114990234375,48.0640869140625C160.7845458984375,57.43670654296875,160.7845458984375,72.6326904296875,151.4114990234375,82.00518798828125L90.018310546875,143.39886474609375C86.8941650390625,146.52288818359375,86.8941650390625,151.587890625,90.018310546875,154.71185302734375L102.62451171875,167.31890869140625" fill="none" stroke-linecap="round" style="fill: none;"></path></g><g fill="none" stroke-linecap="round" id="strokes-b954dcef-3e3e-8015-8007-585acd447743-320b5b95-d08d-8089-8007-585a974337b2" class="strokes"><g class="stroke-shape"><path d="M66.5587158203125,98.26885986328125L117.1165771484375,47.7105712890625C126.489501953125,38.3380126953125,141.6854248046875,38.3380126953125,151.0584716796875,47.7105712890625L151.4114990234375,48.0640869140625C160.7845458984375,57.43670654296875,160.7845458984375,72.6326904296875,151.4114990234375,82.00518798828125L90.018310546875,143.39886474609375C86.8941650390625,146.52288818359375,86.8941650390625,151.587890625,90.018310546875,154.71185302734375L102.62451171875,167.31890869140625" style="fill: none; stroke-width: 12; stroke: currentColor; stroke-opacity: 1;"></path></g></g></g><g id="shape-320b5b95-d08d-8089-8007-585a974337b3"><g class="fills" id="fills-320b5b95-d08d-8089-8007-585a974337b3"><path d="M99.79296875,30.68115234375L49.588134765625,80.8857421875C40.215576171875,90.258056640625,40.215576171875,105.45404052734375,49.588134765625,114.82708740234375L49.588134765625,114.82708740234375C58.9608154296875,124.19903564453125,74.1566162109375,124.19903564453125,83.529296875,114.82708740234375L133.7340087890625,64.62225341796875" fill="none" stroke-linecap="round" style="fill: none;"></path></g><g fill="none" stroke-linecap="round" id="strokes-b954dcef-3e3e-8015-8007-585acd44c5c9-320b5b95-d08d-8089-8007-585a974337b3" class="strokes"><g class="stroke-shape"><path d="M99.79296875,30.68115234375L49.588134765625,80.8857421875C40.215576171875,90.258056640625,40.215576171875,105.45404052734375,49.588134765625,114.82708740234375L49.588134765625,114.82708740234375C58.9608154296875,124.19903564453125,74.1566162109375,124.19903564453125,83.529296875,114.82708740234375L133.7340087890625,64.62225341796875" style="fill: none; stroke-width: 12; stroke: currentColor; stroke-opacity: 1;"></path></g></g></g></g></g></g></g></g></g></svg>');function l5(t,e){let r=ue(e,"class",3,""),n=ue(e,"style",3,"");var i=svt();at(()=>{lr(i,0,Fn(r())),du(i,n())}),H(t,i)}const $v={MIN_LENGTH:3,FALLBACK:"New Chat",DEFAULT_PROMPT:`Based on the following interaction, generate a short, concise title (maximum 6-8 words) that captures the main topic. Return ONLY the title text, nothing else. Do not use quotes.

User: {{USER}}

Assistant: {{ASSISTANT}}

Title:`,PREFIX_PATTERN:/^(Title:|Subject:|Topic:)\s*/i,QUOTE_PATTERN:/^["]|["]$/g},pf={GENERAL:"General",DISPLAY:"Display",SAMPLING:"Sampling",PENALTIES:"Penalties",AGENTIC:"Agentic",TOOLS:"Tools",MCP:"MCP",IMPORT_EXPORT:"Import/Export",DEVELOPER:"Developer"},ovt=[{title:pf.TOOLS,slug:Xr.TOOLS,icon:Yse},{title:pf.IMPORT_EXPORT,slug:Xr.IMPORT_EXPORT,icon:zse}],lvt=[{value:Nf.SYSTEM,label:"System",icon:rDe},{value:Nf.LIGHT,label:"Light",icon:g0t},{value:Nf.DARK,label:"Dark",icon:i0t}],ADe={[Xr.GENERAL]:{title:pf.GENERAL,slug:Xr.GENERAL,icon:p0t,settings:[{key:ar.THEME,label:"Theme",help:"Choose the color theme for the interface. You can choose between System (follows your device settings), Light, or Dark.",defaultValue:Nf.SYSTEM,type:_n.SELECT,section:Xr.GENERAL,options:lvt,sync:{serverKey:ar.THEME,paramType:Gn.STRING}},{key:ar.API_KEY,label:"API Key",help:`Set the API Key if you are using <code> ${Iy.API_KEY} </code> option for the server.`,defaultValue:"",type:_n.INPUT,section:Xr.GENERAL},{key:ar.SYSTEM_MESSAGE,label:"System Message",help:"The starting message that defines how model should behave.",defaultValue:"",type:_n.TEXTAREA,section:Xr.GENERAL,sync:{serverKey:ar.SYSTEM_MESSAGE,paramType:Gn.STRING}},{key:ar.PASTE_LONG_TEXT_TO_FILE_LEN,label:"Paste long text to file length",help:"On pasting long text, it will be converted to a file. You can control the file length by setting the value of this parameter. Value 0 means disable.",defaultValue:2500,type:_n.INPUT,section:Xr.GENERAL,sync:{serverKey:ar.PASTE_LONG_TEXT_TO_FILE_LEN,paramType:Gn.NUMBER}},{key:ar.SEND_ON_ENTER,label:"Send message on Enter",help:"Use Enter to send messages and Shift + Enter for new lines. When disabled, use Ctrl/Cmd + Enter.",defaultValue:!0,type:_n.CHECKBOX,section:Xr.GENERAL,sync:{serverKey:ar.SEND_ON_ENTER,paramType:Gn.BOOLEAN}},{key:ar.COPY_TEXT_ATTACHMENTS_AS_PLAIN_TEXT,label:"Copy text attachments as plain text",help:"When copying a message with text attachments, combine them into a single plain text string instead of a special format that can be pasted back as attachments.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.GENERAL,sync:{serverKey:ar.COPY_TEXT_ATTACHMENTS_AS_PLAIN_TEXT,paramType:Gn.BOOLEAN}},{key:ar.ENABLE_CONTINUE_GENERATION,label:'Enable "Continue" button',help:'Enable "Continue" button for assistant messages, including reasoning models.',defaultValue:!1,type:_n.CHECKBOX,section:Xr.GENERAL,isExperimental:!0,sync:{serverKey:ar.ENABLE_CONTINUE_GENERATION,paramType:Gn.BOOLEAN}},{key:ar.PDF_AS_IMAGE,label:"Parse PDF as image",help:"Parse PDF as image instead of text. Automatically falls back to text processing for non-vision models.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.GENERAL,sync:{serverKey:ar.PDF_AS_IMAGE,paramType:Gn.BOOLEAN}},{key:ar.ASK_FOR_TITLE_CONFIRMATION,label:"Ask for confirmation before changing conversation title",help:"Ask for confirmation before automatically changing conversation title when editing the first message.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.GENERAL,sync:{serverKey:ar.ASK_FOR_TITLE_CONFIRMATION,paramType:Gn.BOOLEAN}},{key:ar.TITLE_GENERATION_USE_FIRST_LINE,label:"Use first non-empty line for conversation title",help:"Use only the first non-empty line of the prompt to generate the conversation title.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.GENERAL,sync:{serverKey:ar.TITLE_GENERATION_USE_FIRST_LINE,paramType:Gn.BOOLEAN}},{key:ar.TITLE_GENERATION_USE_LLM,label:"Use LLM to generate conversation title",help:"Use the LLM to automatically generate conversation titles based on the first message exchange.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.GENERAL,isExperimental:!0},{key:ar.TITLE_GENERATION_PROMPT,label:"LLM title generation prompt",help:"Optional template for the title generation prompt. Use {{USER}} for the user message and {{ASSISTANT}} for the assistant message.",defaultValue:$v.DEFAULT_PROMPT,type:_n.TEXTAREA,section:Xr.GENERAL},{key:ar.MAX_IMAGE_RESOLUTION,label:"Maximum image resolution (megapixels)",help:"Images larger than this will be resized before sending to server. Set to 0 to disable.",defaultValue:0,type:_n.INPUT,section:Xr.GENERAL}]},[Xr.DISPLAY]:{title:pf.DISPLAY,slug:Xr.DISPLAY,icon:rDe,settings:[{key:ar.SHOW_MESSAGE_STATS,label:"Show message generation statistics",help:"Display generation statistics (tokens/second, token count, duration) below each assistant message.",defaultValue:!0,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.SHOW_MESSAGE_STATS,paramType:Gn.BOOLEAN}},{key:ar.SHOW_THOUGHT_IN_PROGRESS,label:"Show thought in progress",help:"Expand thought process by default when generating messages.",defaultValue:!0,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.SHOW_THOUGHT_IN_PROGRESS,paramType:Gn.BOOLEAN}},{key:ar.SHOW_TOOL_CALL_IN_PROGRESS,label:"Show tool call in progress",help:"Automatically expand tool call details while executing and keep them expanded after completion.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.SHOW_TOOL_CALL_IN_PROGRESS,paramType:Gn.BOOLEAN}},{key:ar.KEEP_STATS_VISIBLE,label:"Keep stats visible after generation",help:"Keep processing statistics visible after generation finishes.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.KEEP_STATS_VISIBLE,paramType:Gn.BOOLEAN}},{key:ar.AUTO_MIC_ON_EMPTY,label:"Show microphone on empty input",help:"Automatically show microphone button instead of send button when textarea is empty for models with audio modality support.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,isExperimental:!0,sync:{serverKey:ar.AUTO_MIC_ON_EMPTY,paramType:Gn.BOOLEAN}},{key:ar.RENDER_USER_CONTENT_AS_MARKDOWN,label:"Render user content as Markdown",help:"Render user messages using markdown formatting in the chat.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.RENDER_USER_CONTENT_AS_MARKDOWN,paramType:Gn.BOOLEAN}},{key:ar.FULL_HEIGHT_CODE_BLOCKS,label:"Use full height code blocks",help:"Always display code blocks at their full natural height, overriding any height limits.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.FULL_HEIGHT_CODE_BLOCKS,paramType:Gn.BOOLEAN}},{key:ar.DISABLE_AUTO_SCROLL,label:"Disable automatic scroll",help:"Disable automatic scrolling while messages stream so you can control the viewport position manually.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.DISABLE_AUTO_SCROLL,paramType:Gn.BOOLEAN}},{key:ar.ALWAYS_SHOW_SIDEBAR_ON_DESKTOP,label:"Always show sidebar on desktop",help:"Always keep the sidebar visible on desktop instead of auto-hiding it.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.ALWAYS_SHOW_SIDEBAR_ON_DESKTOP,paramType:Gn.BOOLEAN}},{key:ar.SHOW_RAW_MODEL_NAMES,label:"Show raw model names",help:'Display full raw model identifiers (e.g. "ggml-org/GLM-4.7-Flash-GGUF:Q8_0") instead of parsed names with badges.',defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.SHOW_RAW_MODEL_NAMES,paramType:Gn.BOOLEAN}},{key:ar.SHOW_MODEL_QUANTIZATION,label:"Show model quantization information",help:"Display quantization badges (e.g. Q8_0, Q4_K_M) next to model names throughout the interface.",defaultValue:!0,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.SHOW_MODEL_QUANTIZATION,paramType:Gn.BOOLEAN}},{key:ar.SHOW_MODEL_TAGS,label:"Show model tags",help:'Display model tags (e.g. "vision", "reasoning") next to model names throughout the interface.',defaultValue:!0,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.SHOW_MODEL_TAGS,paramType:Gn.BOOLEAN}},{key:ar.ALWAYS_SHOW_AGENTIC_TURNS,label:"Always show agentic turns in conversation",help:"Always expand and display agentic loop turns in conversation messages.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DISPLAY,sync:{serverKey:ar.ALWAYS_SHOW_AGENTIC_TURNS,paramType:Gn.BOOLEAN}}]},[Xr.SAMPLING]:{title:pf.SAMPLING,slug:Xr.SAMPLING,icon:Kmt,settings:[{key:ar.TEMPERATURE,label:"Temperature",help:"Controls the randomness of the generated text by affecting the probability distribution of the output tokens. Higher = more random, lower = more focused.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.TEMPERATURE,paramType:Gn.NUMBER}},{key:ar.DYNATEMP_RANGE,label:"Dynamic temperature range",help:"Addon for the temperature sampler. The added value to the range of dynamic temperature, which adjusts probabilities by entropy of tokens.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.DYNATEMP_RANGE,paramType:Gn.NUMBER}},{key:ar.DYNATEMP_EXPONENT,label:"Dynamic temperature exponent",help:"Addon for the temperature sampler. Smoothes out the probability redistribution based on the most probable token.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.DYNATEMP_EXPONENT,paramType:Gn.NUMBER}},{key:ar.TOP_K,label:"Top K",help:"Keeps only k top tokens.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.TOP_K,paramType:Gn.NUMBER}},{key:ar.TOP_P,label:"Top P",help:"Limits tokens to those that together have a cumulative probability of at least p",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.TOP_P,paramType:Gn.NUMBER}},{key:ar.MIN_P,label:"Min P",help:"Limits tokens based on the minimum probability for a token to be considered, relative to the probability of the most likely token.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.MIN_P,paramType:Gn.NUMBER}},{key:ar.XTC_PROBABILITY,label:"XTC probability",help:"XTC sampler cuts out top tokens; this parameter controls the chance of cutting tokens at all. 0 disables XTC.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.XTC_PROBABILITY,paramType:Gn.NUMBER}},{key:ar.XTC_THRESHOLD,label:"XTC threshold",help:"XTC sampler cuts out top tokens; this parameter controls the token probability that is required to cut that token.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.XTC_THRESHOLD,paramType:Gn.NUMBER}},{key:ar.TYP_P,label:"Typical P",help:"Sorts and limits tokens based on the difference between log-probability and entropy.",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.TYP_P,paramType:Gn.NUMBER}},{key:ar.MAX_TOKENS,label:"Max tokens",help:"The maximum number of token per output. Use -1 for infinite (no limit).",defaultValue:void 0,type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.MAX_TOKENS,paramType:Gn.NUMBER}},{key:ar.SAMPLERS,label:"Samplers",help:'The order at which samplers are applied, in simplified way. Default is "top_k;typ_p;top_p;min_p;temperature": top_k->typ_p->top_p->min_p->temperature',defaultValue:"",type:_n.INPUT,section:Xr.SAMPLING,sync:{serverKey:ar.SAMPLERS,paramType:Gn.STRING}},{key:ar.BACKEND_SAMPLING,label:"Backend sampling",help:"Enable backend-based samplers. When enabled, supported samplers run on the accelerator backend for faster sampling.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.SAMPLING,sync:{serverKey:ar.BACKEND_SAMPLING,paramType:Gn.BOOLEAN}}]},[Xr.PENALTIES]:{title:pf.PENALTIES,slug:Xr.PENALTIES,icon:B1,settings:[{key:ar.REPEAT_LAST_N,label:"Repeat last N",help:"Last n tokens to consider for penalizing repetition",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.REPEAT_LAST_N,paramType:Gn.NUMBER}},{key:ar.REPEAT_PENALTY,label:"Repeat penalty",help:"Controls the repetition of token sequences in the generated text",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.REPEAT_PENALTY,paramType:Gn.NUMBER}},{key:ar.PRESENCE_PENALTY,label:"Presence penalty",help:"Limits tokens based on whether they appear in the output or not.",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.PRESENCE_PENALTY,paramType:Gn.NUMBER}},{key:ar.FREQUENCY_PENALTY,label:"Frequency penalty",help:"Limits tokens based on how often they appear in the output.",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.FREQUENCY_PENALTY,paramType:Gn.NUMBER}},{key:ar.DRY_MULTIPLIER,label:"DRY multiplier",help:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling multiplier.",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.DRY_MULTIPLIER,paramType:Gn.NUMBER}},{key:ar.DRY_BASE,label:"DRY base",help:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling base value.",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.DRY_BASE,paramType:Gn.NUMBER}},{key:ar.DRY_ALLOWED_LENGTH,label:"DRY allowed length",help:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the allowed length for DRY sampling.",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.DRY_ALLOWED_LENGTH,paramType:Gn.NUMBER}},{key:ar.DRY_PENALTY_LAST_N,label:"DRY penalty last N",help:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets DRY penalty for the last n tokens.",defaultValue:void 0,type:_n.INPUT,section:Xr.PENALTIES,sync:{serverKey:ar.DRY_PENALTY_LAST_N,paramType:Gn.NUMBER}}]},[Xr.AGENTIC]:{title:pf.AGENTIC,slug:Xr.AGENTIC,icon:r0t,settings:[{key:ar.AGENTIC_MAX_TURNS,label:"Agentic turns",help:"Maximum number of tool execution cycles before stopping (prevents infinite loops).",defaultValue:10,type:_n.INPUT,section:Xr.AGENTIC,isPositiveInteger:!0,sync:{serverKey:ar.AGENTIC_MAX_TURNS,paramType:Gn.NUMBER}},{key:ar.AGENTIC_MAX_TOOL_PREVIEW_LINES,label:"Max lines per tool preview",help:"Number of lines shown in tool output previews (last N lines). Only these previews and the final LLM response persist after the agentic loop completes.",defaultValue:25,type:_n.INPUT,section:Xr.AGENTIC,isPositiveInteger:!0,sync:{serverKey:ar.AGENTIC_MAX_TOOL_PREVIEW_LINES,paramType:Gn.NUMBER}}]},[Xr.DEVELOPER]:{title:pf.DEVELOPER,slug:Xr.DEVELOPER,icon:eDe,settings:[{key:ar.PRE_ENCODE_CONVERSATION,label:"Pre-fill KV cache after response",help:"After each response, re-submit the conversation to pre-fill the server KV cache. Makes the next turn faster since the prompt is already encoded while you read the response.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DEVELOPER},{key:ar.DISABLE_REASONING_PARSING,label:"Disable reasoning content parsing",help:"Send reasoning_format=none so the server returns thinking tokens inline instead of extracting them into a separate field.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DEVELOPER},{key:ar.EXCLUDE_REASONING_FROM_CONTEXT,label:"Exclude reasoning from context",help:"Strip thinking from previous messages before sending. When off, thinking is sent back via the reasoning_content field so the model sees its own chain-of-thought across turns.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DEVELOPER,sync:{serverKey:ar.EXCLUDE_REASONING_FROM_CONTEXT,paramType:Gn.BOOLEAN}},{key:ar.ENABLE_THINKING,label:"Enable thinking",help:"Enable model thinking/reasoning for each request. When off, the model will skip the thinking phase and go straight to the response.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DEVELOPER},{key:ar.SHOW_RAW_OUTPUT_SWITCH,label:"Enable raw output toggle",help:"Show toggle button to display messages as plain text instead of Markdown-formatted content",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DEVELOPER,sync:{serverKey:ar.SHOW_RAW_OUTPUT_SWITCH,paramType:Gn.BOOLEAN}},{key:ar.JS_SANDBOX_ENABLED,label:"JavaScript sandbox tool",help:"Expose a run_javascript tool to the model. Code runs in a Web Worker inside a sandboxed iframe with an opaque origin, isolated from the WebUI and its API, with a hard timeout.",defaultValue:!1,type:_n.CHECKBOX,section:Xr.DEVELOPER},{key:ar.CUSTOM_JSON,label:"Custom JSON",help:"Custom JSON parameters to send to the API. Must be valid JSON format.",defaultValue:"",type:_n.TEXTAREA,section:Xr.DEVELOPER},{key:ar.CUSTOM_CSS,label:"Custom CSS",help:"CSS injected into the page at runtime. Set it here, or ship it server side via the --ui-config customCss field.",defaultValue:"",type:_n.TEXTAREA,section:Xr.DEVELOPER,sync:{serverKey:ar.CUSTOM_CSS,paramType:Gn.STRING}}]},[Xr.MCP]:{title:pf.MCP,slug:Xr.MCP,icon:l5,settings:[{key:ar.MCP_REQUEST_TIMEOUT_SECONDS,label:"Request timeout (seconds)",help:"Default timeout for individual MCP tool calls. Can be overridden per server.",defaultValue:qs.requestTimeoutSeconds,type:_n.INPUT,section:Xr.MCP,isPositiveInteger:!0}]}},cvt=[{key:ar.SHOW_SYSTEM_MESSAGE,label:"Show system message",help:"Display the system message at the top of each conversation.",defaultValue:!0,type:_n.CHECKBOX,sync:{serverKey:ar.SHOW_SYSTEM_MESSAGE,paramType:Gn.BOOLEAN}},{key:ar.MCP_SERVERS,label:"MCP servers",help:"Configure MCP servers as a JSON list. Use the form in the MCP Client settings section to edit.",defaultValue:"[]",type:_n.INPUT,sync:{serverKey:ar.MCP_SERVERS,paramType:Gn.STRING}}];function c5(){const t=[];for(const e of Object.values(ADe))t.push(...e.settings);return t.push(...cvt),t}const yd=Object.fromEntries(c5().map(t=>[t.key,t.defaultValue])),J0=Object.fromEntries(c5().map(t=>[t.key,t.help])),h4=[...Object.values(ADe).map(t=>({title:t.title,slug:t.slug,icon:t.icon,fields:t.settings.map(e=>({key:e.key,label:e.label,type:e.type,isExperimental:e.isExperimental,isPositiveInteger:e.isPositiveInteger,help:e.help,options:e.options}))})),...ovt],uvt=c5().filter(t=>t.type===_n.INPUT&&typeof t.defaultValue!="string").map(t=>t.key),dvt=c5().filter(t=>t.isPositiveInteger).map(t=>t.key),dO=c5().filter(t=>t.sync!==void 0).map(t=>({key:t.key,serverKey:t.sync.serverKey,type:t.sync.paramType,canSync:!0})),RDe=ho.START;rk.MP3+"",nk.MP3,xa.MP3_MPEG,xa.MP3,rk.WAV+"",nk.WAV,xa.WAV;XQ.MP4+"",QQ.MP4,ak.MP4,XQ.OGG+"",QQ.OGG,ak.OGG;NS.JPEG+"",Rd.JPG,Rd.JPEG,ka.JPEG,NS.PNG+"",Rd.PNG,ka.PNG,NS.GIF+"",Rd.GIF,ka.GIF,NS.WEBP+"",Rd.WEBP,ka.WEBP,NS.SVG+"",Rd.SVG,ka.SVG;j5e.PDF+"",Use.PDF,ik.PDF;pi.PLAIN_TEXT+"",xr.TXT,yr.PLAIN,pi.MARKDOWN+"",xr.MD,yr.MARKDOWN,pi.ASCIIDOC+"",xr.ADOC,yr.ASCIIDOC,pi.JAVASCRIPT+"",xr.JS,yr.JAVASCRIPT,yr.JAVASCRIPT_APP,pi.TYPESCRIPT+"",xr.TS,yr.TYPESCRIPT,pi.JSX+"",xr.JSX,yr.JSX,pi.TSX+"",xr.TSX,yr.TSX,pi.CSS+"",xr.CSS,yr.CSS,pi.HTML+"",xr.HTML,xr.HTM,yr.HTML,pi.JSON+"",xr.JSON,yr.JSON,pi.XML+"",xr.XML,yr.XML_TEXT,yr.XML_APP,pi.YAML+"",xr.YAML,xr.YML,yr.YAML_TEXT,yr.YAML_APP,pi.CSV+"",xr.CSV,yr.CSV,pi.LOG+"",xr.LOG,yr.PLAIN,pi.PYTHON+"",xr.PY,yr.PYTHON,pi.JAVA+"",xr.JAVA,yr.JAVA,pi.CPP+"",xr.CPP,xr.C,xr.H,xr.HPP,yr.CPP_SRC,yr.CPP_HDR,yr.C_SRC,yr.C_HDR,pi.PHP+"",xr.PHP,yr.PHP,pi.RUBY+"",xr.RB,yr.RUBY,pi.GO+"",xr.GO,yr.GO,pi.RUST+"",xr.RS,yr.RUST,pi.SHELL+"",xr.SH,xr.BAT,yr.SHELL,yr.BAT,pi.SQL+"",xr.SQL,yr.SQL,pi.R+"",xr.R,yr.R,pi.SCALA+"",xr.SCALA,yr.SCALA,pi.KOTLIN+"",xr.KT,yr.KOTLIN,pi.SWIFT+"",xr.SWIFT,yr.SWIFT,pi.DART+"",xr.DART,yr.DART,pi.VUE+"",xr.VUE,yr.VUE,pi.SVELTE+"",xr.SVELTE,yr.SVELTE,pi.LATEX+"",xr.TEX,yr.LATEX,yr.TEX,yr.TEX_APP,pi.BIBTEX+"",xr.BIB,yr.BIBTEX,pi.CUDA+"",xr.CU,xr.CUH,yr.CUDA,pi.VULKAN+"",xr.COMP,yr.PLAIN,pi.HASKELL+"",xr.HS,yr.HASKELL,pi.CSHARP+"",xr.CS,yr.CSHARP,pi.PROPERTIES+"",xr.PROPERTIES,yr.PROPERTIES;const hvt=/<br\s*\/?\s*>/gi,fvt=/^<ul>([\s\S]*)<\/ul>$/i,pvt=/<li>([\s\S]*?)<\/li>/gi,rq={[Ci.BUILTIN]:"Built-in",[Ci.CUSTOM]:"JSON Schema",[Ci.FRONTEND]:"Browser"},aN={[Ci.BUILTIN]:"Built-in Tools",[Ci.CUSTOM]:"Custom Tools",[Ci.FRONTEND]:"Browser Tools"},Jse=500,gvt=8,fZ="System message",CB="llama-ui",mvt=150,nq=50,pZ=[{icon:Kse,tooltip:"New chat",route:ho.NEW_CHAT,keys:["shift","cmd","o"]},{icon:aDe,tooltip:"Search",keys:["cmd","k"]},{icon:l5,tooltip:"MCP Servers",route:ho.MCP_SERVERS,activeRouteId:"/mcp-servers"},{icon:SB,tooltip:"Settings",route:ho.SETTINGS,activeRoutePrefix:"/settings"}],iq="://",M9=/\{([+#./;?&]?)([^}]+)\}/g,e_={RESERVED:"+",FRAGMENT:"#",PATH_SEGMENT:"/",LABEL:".",PATH_PARAM:";",FORM_QUERY:"?",FORM_CONTINUATION:"&"},dh={COMMA:",",SLASH:"/",PERIOD:".",SEMICOLON:";",QUERY_PREFIX:"?",QUERY_CONTINUATION:"&"},ODe=/[*]$/,IDe=/:[\d]+$/,_vt=/^\/+/,vvt=/^data:(image\/[a-z0-9.\-+]+);base64/,io=["com","net","org","gov","edu"],Wg=[...io,"mil"],yvt={ar:io,bd:io,bg:io,cn:Wg,eg:io,gr:io,hk:io,hr:io,lk:io,mx:Wg,my:Wg,ng:io,ph:io,pk:io,pl:io,ro:io,ru:io,sa:io,si:io,tr:io,tw:io,ua:io,ve:io,au:[...Wg,"id","asn","csiro"],br:[...Wg,"art","eco","eng","inf","med","psi","tmp","etc","adm","adv","arq","bio","bmd","cim","cng","cnt","coop","ecn","esp","far","fm","fnd","fot","fst","g12","ggf","imb","ind","jor","jus","leg","lel","mat","mp","mus","not","ntr","odo","ppg","pro","psc","qsl","rec","slg","srv","trd","tur","tv","vet","vlog","wiki","zlg"],id:[...Wg,"co","go","or","web","sch"],in:[...Wg,"co","gen","ind","firm","ernet","nic"],kr:[...Wg,"co","go","or","ac","re"],nz:[...Wg,"co","gen","geek","kiwi","maori","school","govt","health","iwi","parliament"],sg:[...io,"per"],th:["co","go","or","in","ac","mi","net"],ae:["co","net","org","gov","ac","sch"],hu:["co","net","org","gov","edu"],il:["co","net","org","gov","ac","muni"],jp:["ac","ad","co","ed","go","gr","lg","ne","or"],ke:["co","or","ne","go","ac","sc"],rs:["co","net","org","gov","edu"],uk:["co","org","net","ac","gov","mil","nhs","police","mod","ltd","plc","me","sch"],za:["co","org","net","web","law","mil"]},bvt={br:["nom","blog"],jp:["kobe","kyoto","nagoya","osaka","sapporo","sendai","tokyo","yokohama","aichi","akita","aomori","chiba","ehime","fukui","fukuoka","fukushima","gifu","gunma","hiroshima","hokkaido","hyogo","ibaraki","ishikawa","iwate","kagawa","kagoshima","kanagawa","kochi","kumamoto","mie","miyagi","miyazaki","nagano","nara","niigata","oita","okayama","okinawa","saga","saitama","shiga","shimane","shizuoka","tochigi","tokushima","tottori","toyama","wakayama","yamagata","yamaguchi","yamanashi"]};function NDe(t){const e=new Set;for(const[r,n]of Object.entries(t))for(const i of n)e.add(`${i}.${r}`);return e}const Evt=NDe(yvt),Svt=NDe(bvt),Tvt=768;Kr({width:window.innerWidth});const u5=new Z3e(`max-width: ${Tvt-1}px`);class t_{static roundFloatingPoint(e){return m_(e)}static extractServerDefaults(e,r){const n={};if(e){for(const i of dO)if(i.canSync&&i.serverKey in e){const a=e[i.serverKey];a!==void 0&&(n[i.key]=this.roundFloatingPoint(a))}e.samplers&&Array.isArray(e.samplers)&&(n[ar.SAMPLERS]=e.samplers.join(";"))}if(r){for(const i of dO)if(i.canSync&&i.serverKey in r){const a=r[i.serverKey];a!==void 0&&(n[i.key]=this.roundFloatingPoint(a))}}return n}static mergeWithServerDefaults(e,r,n=new Set){const i={...e};for(const[a,s]of Object.entries(r))n.has(a)||(i[a]=this.roundFloatingPoint(s));return i}static getParameterInfo(e,r,n,i){const a=n[e]!==void 0,s=i.has(e),o=s?eZ.CUSTOM:eZ.DEFAULT;return{value:r,source:o,serverDefault:a?n[e]:void 0,userOverride:s?r:void 0}}static canSyncParameter(e){return dO.some(r=>r.key===e&&r.canSync)}static getSyncableParameterKeys(){return dO.filter(e=>e.canSync).map(e=>e.key)}static validateServerParameter(e,r){const n=dO.find(i=>i.key===e);if(!n)return!1;switch(n.type){case Gn.NUMBER:return typeof r=="number"&&!isNaN(r);case Gn.STRING:return typeof r=="string";case Gn.BOOLEAN:return typeof r=="boolean";default:return!1}}static createParameterDiff(e,r){const n={};for(const i of this.getSyncableParameterKeys()){const a=e[i],s=r[i];s!==void 0&&(n[i]={current:a,server:s,differs:a!==s})}return n}}class kDe{static async fetch(e=!1){const r={};return e||(r.autoload="false"),Kme("./props",r,{authOnly:!0})}static async fetchForModel(e,r=!1){const n={model:e};return r||(n.autoload="false"),Kme("./props",n,{authOnly:!0})}}class Cvt{#e=Me(null);get props(){return w(this.#e)}set props(e){J(this.#e,e,!0)}#t=Me(!1);get loading(){return w(this.#t)}set loading(e){J(this.#t,e,!0)}#r=Me(null);get error(){return w(this.#r)}set error(e){J(this.#r,e,!0)}#n=Me(null);get role(){return w(this.#n)}set role(e){J(this.#n,e,!0)}fetchPromise=null;get defaultParams(){return this.props?.default_generation_settings?.params||null}get contextSize(){const e=this.props?.default_generation_settings?.n_ctx;return typeof e=="number"?e:null}get uiSettings(){return this.props?.ui_settings??this.props?.webui_settings}get isRouterMode(){return this.role===Uv.ROUTER}get isModelMode(){return this.role===Uv.MODEL}async fetch(){if(this.fetchPromise)return this.fetchPromise;this.loading=!0,this.error=null;const e=(async()=>{try{const r=await kDe.fetch();this.props=r,this.error=null,this.detectRole(r)}catch(r){this.error=r instanceof Error?r.message:String(r),console.error("Error fetching server properties:",r)}finally{this.loading=!1,this.fetchPromise=null}})();this.fetchPromise=e,await e}clear(){this.props=null,this.error=null,this.loading=!1,this.role=null,this.fetchPromise=null}detectRole(e){const r=e?.role===Uv.ROUTER?Uv.ROUTER:Uv.MODEL;this.role!==r&&(this.role=r,console.info(`Server running in ${r===Uv.ROUTER?"ROUTER":"MODEL"} mode`))}}const Ya=new Cvt,wvt=()=>Ya.props,UT=()=>Ya.loading,uk=()=>Ya.error,xvt=()=>Ya.contextSize,xs=()=>Ya.isRouterMode;class Avt{#e=Me(Kr({...yd}));get config(){return w(this.#e)}set config(e){J(this.#e,e,!0)}#t=Me(!1);get isInitialized(){return w(this.#t)}set isInitialized(e){J(this.#t,e,!0)}#r=Me(Kr(new Set));get userOverrides(){return w(this.#r)}set userOverrides(e){J(this.#r,e,!0)}getServerDefaults(){const e=Ya.defaultParams,r=Ya.uiSettings;return t_.extractServerDefaults(e,r)}constructor(){this.initialize()}initialize(){try{this.loadConfig(),this.migrateLegacyTheme(),Sm(this.config[ar.THEME]),this.isInitialized=!0}catch(e){console.error("Failed to initialize settings store:",e)}}loadConfig(){try{const e=localStorage.getItem(Sb),r=JSON.parse(e||"{}");this.config={...yd,...r},ar.SEND_ON_ENTER in r||u5.current&&(this.config[ar.SEND_ON_ENTER]=!1);const n=JSON.parse(localStorage.getItem(cZ)||"[]");this.userOverrides=new Set(n)}catch(e){console.warn("Failed to parse config from localStorage, using defaults:",e),this.config={...yd},this.userOverrides=new Set}}migrateLegacyTheme(){const e=localStorage.getItem("theme");e&&(this.config[ar.THEME]=e,localStorage.removeItem("theme"),this.saveConfig(),Sm(e))}updateConfig(e,r){if(this.config[e]=r,t_.canSyncParameter(e)){const i=this.getServerDefaults()[e];if(i!==void 0){const a=m_(r),s=m_(i);a===s?this.userOverrides.delete(e):this.userOverrides.add(e)}}this.saveConfig()}updateMultipleConfig(e){Object.assign(this.config,e);const r=this.getServerDefaults();for(const[n,i]of Object.entries(e))if(t_.canSyncParameter(n)){const a=r[n];if(a!==void 0){const s=m_(i),o=m_(a);s===o?this.userOverrides.delete(n):this.userOverrides.add(n)}}this.saveConfig()}saveConfig(){try{localStorage.setItem(Sb,JSON.stringify(this.config)),localStorage.setItem(cZ,JSON.stringify(Array.from(this.userOverrides)))}catch(e){console.error("Failed to save config to localStorage:",e)}}updateTheme(e){this.updateConfig(ar.THEME,e),Sm(e)}resetConfig(){this.config={...yd},this.saveConfig()}resetTheme(){this.updateConfig(ar.THEME,yd[ar.THEME]),Sm(yd[ar.THEME])}resetAll(){this.resetConfig(),this.resetTheme()}resetParameterToServerDefault(e){const r=this.getServerDefaults(),n=Ya.uiSettings;n&&e in n?r_(this.config,e,n[e]):r[e]!==void 0?r_(this.config,e,""):e in yd&&r_(this.config,e,kS(yd,e)),this.userOverrides.delete(e),this.saveConfig()}syncWithServerDefaults(){const e=this.getServerDefaults();if(Object.keys(e).length===0)return;const r=Ya.uiSettings,n=new Set(r?Object.keys(r):[]);for(const[i,a]of Object.entries(e)){const s=kS(this.config,i),o=m_(s),l=m_(a);o===l&&(this.userOverrides.delete(i),!n.has(i)&&kS(yd,i)===void 0&&r_(this.config,i,void 0))}if(r)for(const[i,a]of Object.entries(r))!this.userOverrides.has(i)&&a!==void 0&&(r_(this.config,i,a),i===ar.THEME&&Sm(a));this.saveConfig(),console.log("User overrides after sync:",Array.from(this.userOverrides))}forceSyncWithServerDefaults(){const e=this.getServerDefaults(),r=Ya.uiSettings;for(const n of t_.getSyncableParameterKeys())r&&n in r?r_(this.config,n,r[n]):e[n]!==void 0?r_(this.config,n,""):n in yd&&r_(this.config,n,kS(yd,n)),this.userOverrides.delete(n);this.saveConfig()}getConfig(e){return this.config[e]}getAllConfig(){return{...this.config}}canSyncParameter(e){return t_.canSyncParameter(e)}getParameterInfo(e){const r=this.getServerDefaults(),n=kS(this.config,e);return t_.getParameterInfo(e,n??"",r,this.userOverrides)}getParameterDiff(){const e=this.getServerDefaults();if(Object.keys(e).length===0)return{};const r=hSt(this.config,t_.getSyncableParameterKeys());return t_.createParameterDiff(r,e)}clearAllUserOverrides(){this.userOverrides.clear(),this.saveConfig(),console.log("Cleared all user overrides")}exportSettings(e=!1){const r=e?{...this.config}:Object.fromEntries(Object.entries(this.config).filter(([n])=>n!=="apiKey"));if("mcpServers"in r&&!e)try{const i=JSON.parse(r.mcpServers).map(a=>(delete a.headers,a));r.mcpServers=JSON.stringify(i)}catch{delete r.mcpServers}return{version:1,timestamp:Date.now(),config:r,userOverrides:Array.from(this.userOverrides)}}importSettings(e){if(!e||!e.config)throw new Error("Invalid settings data: missing config");this.config={...yd,...e.config},this.userOverrides=new Set(e.userOverrides??[]),this.saveConfig(),Sm(this.config[ar.THEME]),console.log("Settings imported successfully")}}const Oc=new Avt,Vn=()=>Oc.config;function Wme(t,e){return e?`....${t.slice(-e)}`:"[redacted]"}function wB(){const e=Vn().apiKey?.toString().trim();return e?{Authorization:`Bearer ${e}`}:{}}function sN(){return{"Content-Type":"application/json",...wB()}}function aq(t,e,r){if(!t)return{};const n=new Headers(t),i={},a=new Set(Array.from(e??[],s=>s.toLowerCase()));for(const[s,o]of n.entries()){const l=s.toLowerCase(),u=r?.get(l);u!==void 0?i[s]=Wme(o,u):w1t.has(l)||a.has(l)?i[s]=Wme(o):i[s]=o}return i}const qp={NETWORK:{GENERIC:"Failed to connect to server",NXDOMAIN:"Server not found - check server address",REFUSED:"Connection refused - server may be offline",TIMEOUT:"Request timed out",UNREACHABLE:"Server is not running or unreachable"},HTTP:{GENERIC:"Request failed",ACCESS_DENIED:"Access denied",INTERNAL_ERROR:"Server error - check server logs",TEMPORARILY_UNAVAILABLE:"Server temporarily unavailable"}},Rvt={401:qp.HTTP.ACCESS_DENIED,403:qp.HTTP.ACCESS_DENIED,500:qp.HTTP.INTERNAL_ERROR,503:qp.HTTP.TEMPORARILY_UNAVAILABLE};async function dk(t,e={}){const{authOnly:r=!1,headers:n,...i}=e,s={...r?wB():sN(),...n},o=t.startsWith(_u.HTTP)||t.startsWith(_u.HTTPS)?t:`${Jl}${t}`;let l;try{l=await fetch(o,{...i,headers:s})}catch(u){throw new Error(MDe(u))}if(!l.ok){const u=await DDe(l);throw new Error(u)}return l.json()}async function Kme(t,e,r={}){const n=new URL(t,window.location.href);for(const[d,h]of Object.entries(e))h!=null&&n.searchParams.set(d,h);const{authOnly:i=!1,headers:a,...s}=r,l={...i?wB():sN(),...a};let u;try{u=await fetch(n.toString(),{...s,headers:l})}catch(d){throw new Error(MDe(d))}if(!u.ok){const d=await DDe(u);throw new Error(d)}return u.json()}async function jme(t,e,r={}){return dk(t,{method:"POST",body:JSON.stringify(e),...r})}async function DDe(t){try{const r=await t.json();if(r?.error?.message)return r.error.message;if(r?.error&&typeof r.error=="string")return r.error;if(r?.message)return r.message}catch{}const e=Rvt[t.status];return e||`${qp.HTTP.GENERIC}: ${t.status} ${t.statusText}`}function MDe(t){let e;if(t instanceof Error){if(e=t.message,t.name==="TypeError"&&e.includes("fetch"))return qp.NETWORK.UNREACHABLE}else e=String(t);return e.includes("ECONNREFUSED")?qp.NETWORK.REFUSED:e.includes("ENOTFOUND")?qp.NETWORK.NXDOMAIN:e.includes("ETIMEDOUT")?qp.NETWORK.TIMEOUT:`${qp.NETWORK.GENERIC} (${e})`}function Ovt(t,e){throw new zF(t,e)}async function LDe(t){const e=Vn().apiKey;if(e)try{const r={"Content-Type":"application/json",Authorization:`Bearer ${e}`},n=await t(`${Jl}/props`,{headers:r});if(!n.ok){if(n.status===401||n.status===403)throw Ovt(401,"Access denied");console.warn(`Server responded with status ${n.status} during API key validation`);return}}catch(r){if(r&&typeof r=="object"&&"status"in r)throw r;console.warn("Cannot connect to server for API key validation:",r)}}function eoe(t){return!!(t.attachment?.type===hi.MCP_PROMPT||t.uploadedFile?.type===tk.MCP_PROMPT&&t.uploadedFile.mcpPrompt)}function toe(t){return t.attachment?.type===hi.MCP_RESOURCE}function Ivt(t){const e=Md(t.type);return e||noe(t.name)}function PDe(t){const{uploadedFiles:e=[],attachments:r=[]}=t,n=[];for(const i of e)n.push({id:i.id,name:i.name,size:i.size,preview:i.preview,isImage:Ivt(i)===xi.IMAGE,isLoading:i.isLoading,loadError:i.loadError,uploadedFile:i,textContent:i.textContent});for(const[i,a]of r.entries()){const s=gZ(a);n.push({id:`attachment-${i}`,name:a.name,size:"size"in a?a.size:void 0,preview:s&&"base64Url"in a?a.base64Url:void 0,isImage:s,attachment:a,attachmentIndex:i,textContent:"content"in a?a.content:void 0})}return n.reverse()}function d5(t){const e=Md(t.type);return e||noe(t.name)}function FDe(t,e){return e?d5(e)===xi.TEXT:t?t.type===hi.TEXT||t.type===hi.LEGACY_CONTEXT:!1}function gZ(t,e){return e?d5(e)===xi.IMAGE:t?t.type===hi.IMAGE:!1}function roe(t,e){return e?d5(e)===xi.PDF:t?t.type===hi.PDF:!1}function mZ(t,e){return e?d5(e)===xi.AUDIO:t?t.type===hi.AUDIO:!1}function _Z(t,e){return e?d5(e)===xi.VIDEO:t?t.type===hi.VIDEO:!1}function L9(t){t&&(t.style.height="1rem",t.style.height=t.scrollHeight+"px")}function fv(t,e){if(e)return t.find(r=>r.id===e)}function Ny(t,e,r=!1){const n=[],i=new Map;for(const o of t)i.set(o.id,o);let a=i.get(e);if(!a){let o=-1;for(const l of t)l.timestamp>o&&(a=l,o=l.timestamp)}let s=a;for(;s&&((s.type!=="root"||r)&&n.push(s),s.parent!==null);)s=i.get(s.parent);return n.sort((o,l)=>o.role===br.SYSTEM&&l.role!==br.SYSTEM?-1:o.role!==br.SYSTEM&&l.role===br.SYSTEM?1:o.timestamp-l.timestamp),n}function P9(t,e){const r=new Map;for(const i of t)r.set(i.id,i);let n=r.get(e);for(;n&&n.children.length>0;){const i=n.children[n.children.length-1];n=r.get(i)}return n?.id??e}function BDe(t,e){const r=new Map;for(const a of t)r.set(a.id,a);const n=[],i=[e];for(;i.length>0;){const a=i.shift(),s=r.get(a);if(s)for(const o of s.children)n.push(o),i.push(o)}return n}function Nvt(t,e){const r=new Map;for(const l of t)r.set(l.id,l);const n=r.get(e);if(!n)return null;if(n.parent===null)return{message:n,siblingIds:[e],currentIndex:0,totalSiblings:1};const i=r.get(n.parent);if(!i)return{message:n,siblingIds:[e],currentIndex:0,totalSiblings:1};const a=i.children,s=a.map(l=>P9(t,l)),o=a.indexOf(e);return{message:n,siblingIds:s,currentIndex:o,totalSiblings:a.length}}var sq,Xme;function UDe(){if(Xme)return sq;Xme=1;function t($e){return $e instanceof Map?$e.clear=$e.delete=$e.set=function(){throw new Error("map is read-only")}:$e instanceof Set&&($e.add=$e.clear=$e.delete=function(){throw new Error("set is read-only")}),Object.freeze($e),Object.getOwnPropertyNames($e).forEach(xe=>{const pt=$e[xe],Ve=typeof pt;(Ve==="object"||Ve==="function")&&!Object.isFrozen(pt)&&t(pt)}),$e}class e{constructor(xe){xe.data===void 0&&(xe.data={}),this.data=xe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r($e){return $e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n($e,...xe){const pt=Object.create(null);for(const Ve in $e)pt[Ve]=$e[Ve];return xe.forEach(function(Ve){for(const Ut in Ve)pt[Ut]=Ve[Ut]}),pt}const i="</span>",a=$e=>!!$e.scope,s=($e,{prefix:xe})=>{if($e.startsWith("language:"))return $e.replace("language:","language-");if($e.includes(".")){const pt=$e.split(".");return[`${xe}${pt.shift()}`,...pt.map((Ve,Ut)=>`${Ve}${"_".repeat(Ut+1)}`)].join(" ")}return`${xe}${$e}`};class o{constructor(xe,pt){this.buffer="",this.classPrefix=pt.classPrefix,xe.walk(this)}addText(xe){this.buffer+=r(xe)}openNode(xe){if(!a(xe))return;const pt=s(xe.scope,{prefix:this.classPrefix});this.span(pt)}closeNode(xe){a(xe)&&(this.buffer+=i)}value(){return this.buffer}span(xe){this.buffer+=`<span class="${xe}">`}}const l=($e={})=>{const xe={children:[]};return Object.assign(xe,$e),xe};class u{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(xe){this.top.children.push(xe)}openNode(xe){const pt=l({scope:xe});this.add(pt),this.stack.push(pt)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(xe){return this.constructor._walk(xe,this.rootNode)}static _walk(xe,pt){return typeof pt=="string"?xe.addText(pt):pt.children&&(xe.openNode(pt),pt.children.forEach(Ve=>this._walk(xe,Ve)),xe.closeNode(pt)),xe}static _collapse(xe){typeof xe!="string"&&xe.children&&(xe.children.every(pt=>typeof pt=="string")?xe.children=[xe.children.join("")]:xe.children.forEach(pt=>{u._collapse(pt)}))}}class d extends u{constructor(xe){super(),this.options=xe}addText(xe){xe!==""&&this.add(xe)}startScope(xe){this.openNode(xe)}endScope(){this.closeNode()}__addSublanguage(xe,pt){const Ve=xe.root;pt&&(Ve.scope=`language:${pt}`),this.add(Ve)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h($e){return $e?typeof $e=="string"?$e:$e.source:null}function f($e){return m("(?=",$e,")")}function p($e){return m("(?:",$e,")*")}function g($e){return m("(?:",$e,")?")}function m(...$e){return $e.map(pt=>h(pt)).join("")}function _($e){const xe=$e[$e.length-1];return typeof xe=="object"&&xe.constructor===Object?($e.splice($e.length-1,1),xe):{}}function v(...$e){return"("+(_($e).capture?"":"?:")+$e.map(Ve=>h(Ve)).join("|")+")"}function y($e){return new RegExp($e.toString()+"|").exec("").length-1}function b($e,xe){const pt=$e&&$e.exec(xe);return pt&&pt.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function S($e,{joinWith:xe}){let pt=0;return $e.map(Ve=>{pt+=1;const Ut=pt;let kt=h(Ve),gt="";for(;kt.length>0;){const Ct=E.exec(kt);if(!Ct){gt+=kt;break}gt+=kt.substring(0,Ct.index),kt=kt.substring(Ct.index+Ct[0].length),Ct[0][0]==="\\"&&Ct[1]?gt+="\\"+String(Number(Ct[1])+Ut):(gt+=Ct[0],Ct[0]==="("&&pt++)}return gt}).map(Ve=>`(${Ve})`).join(xe)}const T=/\b\B/,C="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",R="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",L="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=($e={})=>{const xe=/^#![ ]*\//;return $e.binary&&($e.begin=m(xe,/.*\b/,$e.binary,/\b.*/)),n({scope:"meta",begin:xe,end:/$/,relevance:0,"on:begin":(pt,Ve)=>{pt.index!==0&&Ve.ignoreMatch()}},$e)},O={begin:"\\\\[\\s\\S]",relevance:0},D={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[O]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[O]},P={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},N=function($e,xe,pt={}){const Ve=n({scope:"comment",begin:$e,end:xe,contains:[]},pt);Ve.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ut=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ve.contains.push({begin:m(/[ ]+/,"(",Ut,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ve},$=N("//","$"),U=N("/\\*","\\*/"),B=N("#","$"),V={scope:"number",begin:A,relevance:0},z={scope:"number",begin:R,relevance:0},G={scope:"number",begin:I,relevance:0},Y={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]},W={scope:"title",begin:C,relevance:0},Q={scope:"title",begin:x,relevance:0},ie={begin:"\\.\\s*"+x,relevance:0};var re=Object.freeze({__proto__:null,APOS_STRING_MODE:D,BACKSLASH_ESCAPE:O,BINARY_NUMBER_MODE:G,BINARY_NUMBER_RE:I,COMMENT:N,C_BLOCK_COMMENT_MODE:U,C_LINE_COMMENT_MODE:$,C_NUMBER_MODE:z,C_NUMBER_RE:R,END_SAME_AS_BEGIN:function($e){return Object.assign($e,{"on:begin":(xe,pt)=>{pt.data._beginMatch=xe[1]},"on:end":(xe,pt)=>{pt.data._beginMatch!==xe[1]&&pt.ignoreMatch()}})},HASH_COMMENT_MODE:B,IDENT_RE:C,MATCH_NOTHING_RE:T,METHOD_GUARD:ie,NUMBER_MODE:V,NUMBER_RE:A,PHRASAL_WORDS_MODE:P,QUOTE_STRING_MODE:M,REGEXP_MODE:Y,RE_STARTERS_RE:L,SHEBANG:F,TITLE_MODE:W,UNDERSCORE_IDENT_RE:x,UNDERSCORE_TITLE_MODE:Q});function K($e,xe){$e.input[$e.index-1]==="."&&xe.ignoreMatch()}function j($e,xe){$e.className!==void 0&&($e.scope=$e.className,delete $e.className)}function se($e,xe){xe&&$e.beginKeywords&&($e.begin="\\b("+$e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",$e.__beforeBegin=K,$e.keywords=$e.keywords||$e.beginKeywords,delete $e.beginKeywords,$e.relevance===void 0&&($e.relevance=0))}function le($e,xe){Array.isArray($e.illegal)&&($e.illegal=v(...$e.illegal))}function _e($e,xe){if($e.match){if($e.begin||$e.end)throw new Error("begin & end are not supported with match");$e.begin=$e.match,delete $e.match}}function ye($e,xe){$e.relevance===void 0&&($e.relevance=1)}const Ue=($e,xe)=>{if(!$e.beforeMatch)return;if($e.starts)throw new Error("beforeMatch cannot be used with starts");const pt=Object.assign({},$e);Object.keys($e).forEach(Ve=>{delete $e[Ve]}),$e.keywords=pt.keywords,$e.begin=m(pt.beforeMatch,f(pt.begin)),$e.starts={relevance:0,contains:[Object.assign(pt,{endsParent:!0})]},$e.relevance=0,delete pt.beforeMatch},Se=["of","and","for","in","not","or","if","then","parent","list","value"],be="keyword";function ke($e,xe,pt=be){const Ve=Object.create(null);return typeof $e=="string"?Ut(pt,$e.split(" ")):Array.isArray($e)?Ut(pt,$e):Object.keys($e).forEach(function(kt){Object.assign(Ve,ke($e[kt],xe,kt))}),Ve;function Ut(kt,gt){xe&&(gt=gt.map(Ct=>Ct.toLowerCase())),gt.forEach(function(Ct){const mt=Ct.split("|");Ve[mt[0]]=[kt,Ae(mt[0],mt[1])]})}}function Ae($e,xe){return xe?Number(xe):tt($e)?0:1}function tt($e){return Se.includes($e.toLowerCase())}const Oe={},je=$e=>{console.error($e)},ct=($e,...xe)=>{console.log(`WARN: ${$e}`,...xe)},Fe=($e,xe)=>{Oe[`${$e}/${xe}`]||(console.log(`Deprecated as of ${$e}. ${xe}`),Oe[`${$e}/${xe}`]=!0)},Xe=new Error;function et($e,xe,{key:pt}){let Ve=0;const Ut=$e[pt],kt={},gt={};for(let Ct=1;Ct<=xe.length;Ct++)gt[Ct+Ve]=Ut[Ct],kt[Ct+Ve]=!0,Ve+=y(xe[Ct-1]);$e[pt]=gt,$e[pt]._emit=kt,$e[pt]._multi=!0}function Ie($e){if(Array.isArray($e.begin)){if($e.skip||$e.excludeBegin||$e.returnBegin)throw je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Xe;if(typeof $e.beginScope!="object"||$e.beginScope===null)throw je("beginScope must be object"),Xe;et($e,$e.begin,{key:"beginScope"}),$e.begin=S($e.begin,{joinWith:""})}}function we($e){if(Array.isArray($e.end)){if($e.skip||$e.excludeEnd||$e.returnEnd)throw je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Xe;if(typeof $e.endScope!="object"||$e.endScope===null)throw je("endScope must be object"),Xe;et($e,$e.end,{key:"endScope"}),$e.end=S($e.end,{joinWith:""})}}function ce($e){$e.scope&&typeof $e.scope=="object"&&$e.scope!==null&&($e.beginScope=$e.scope,delete $e.scope)}function Te($e){ce($e),typeof $e.beginScope=="string"&&($e.beginScope={_wrap:$e.beginScope}),typeof $e.endScope=="string"&&($e.endScope={_wrap:$e.endScope}),Ie($e),we($e)}function fe($e){function xe(gt,Ct){return new RegExp(h(gt),"m"+($e.case_insensitive?"i":"")+($e.unicodeRegex?"u":"")+(Ct?"g":""))}class pt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ct,mt){mt.position=this.position++,this.matchIndexes[this.matchAt]=mt,this.regexes.push([mt,Ct]),this.matchAt+=y(Ct)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ct=this.regexes.map(mt=>mt[1]);this.matcherRe=xe(S(Ct,{joinWith:"|"}),!0),this.lastIndex=0}exec(Ct){this.matcherRe.lastIndex=this.lastIndex;const mt=this.matcherRe.exec(Ct);if(!mt)return null;const qt=mt.findIndex((pr,or)=>or>0&&pr!==void 0),De=this.matchIndexes[qt];return mt.splice(0,qt),Object.assign(mt,De)}}class Ve{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ct){if(this.multiRegexes[Ct])return this.multiRegexes[Ct];const mt=new pt;return this.rules.slice(Ct).forEach(([qt,De])=>mt.addRule(qt,De)),mt.compile(),this.multiRegexes[Ct]=mt,mt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ct,mt){this.rules.push([Ct,mt]),mt.type==="begin"&&this.count++}exec(Ct){const mt=this.getMatcher(this.regexIndex);mt.lastIndex=this.lastIndex;let qt=mt.exec(Ct);if(this.resumingScanAtSamePosition()&&!(qt&&qt.index===this.lastIndex)){const De=this.getMatcher(0);De.lastIndex=this.lastIndex+1,qt=De.exec(Ct)}return qt&&(this.regexIndex+=qt.position+1,this.regexIndex===this.count&&this.considerAll()),qt}}function Ut(gt){const Ct=new Ve;return gt.contains.forEach(mt=>Ct.addRule(mt.begin,{rule:mt,type:"begin"})),gt.terminatorEnd&&Ct.addRule(gt.terminatorEnd,{type:"end"}),gt.illegal&&Ct.addRule(gt.illegal,{type:"illegal"}),Ct}function kt(gt,Ct){const mt=gt;if(gt.isCompiled)return mt;[j,_e,Te,Ue].forEach(De=>De(gt,Ct)),$e.compilerExtensions.forEach(De=>De(gt,Ct)),gt.__beforeBegin=null,[se,le,ye].forEach(De=>De(gt,Ct)),gt.isCompiled=!0;let qt=null;return typeof gt.keywords=="object"&&gt.keywords.$pattern&&(gt.keywords=Object.assign({},gt.keywords),qt=gt.keywords.$pattern,delete gt.keywords.$pattern),qt=qt||/\w+/,gt.keywords&&(gt.keywords=ke(gt.keywords,$e.case_insensitive)),mt.keywordPatternRe=xe(qt,!0),Ct&&(gt.begin||(gt.begin=/\B|\b/),mt.beginRe=xe(mt.begin),!gt.end&&!gt.endsWithParent&&(gt.end=/\B|\b/),gt.end&&(mt.endRe=xe(mt.end)),mt.terminatorEnd=h(mt.end)||"",gt.endsWithParent&&Ct.terminatorEnd&&(mt.terminatorEnd+=(gt.end?"|":"")+Ct.terminatorEnd)),gt.illegal&&(mt.illegalRe=xe(gt.illegal)),gt.contains||(gt.contains=[]),gt.contains=[].concat(...gt.contains.map(function(De){return me(De==="self"?gt:De)})),gt.contains.forEach(function(De){kt(De,mt)}),gt.starts&&kt(gt.starts,Ct),mt.matcher=Ut(mt),mt}if($e.compilerExtensions||($e.compilerExtensions=[]),$e.contains&&$e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return $e.classNameAliases=n($e.classNameAliases||{}),kt($e)}function Be($e){return $e?$e.endsWithParent||Be($e.starts):!1}function me($e){return $e.variants&&!$e.cachedVariants&&($e.cachedVariants=$e.variants.map(function(xe){return n($e,{variants:null},xe)})),$e.cachedVariants?$e.cachedVariants:Be($e)?n($e,{starts:$e.starts?n($e.starts):null}):Object.isFrozen($e)?n($e):$e}var Ye="11.11.1";class qe extends Error{constructor(xe,pt){super(xe),this.name="HTMLInjectionError",this.html=pt}}const lt=r,it=n,He=Symbol("nomatch"),Je=7,ht=function($e){const xe=Object.create(null),pt=Object.create(null),Ve=[];let Ut=!0;const kt="Could not find the language '{}', did you forget to load/include a language module?",gt={disableAutodetect:!0,name:"Plain text",contains:[]};let Ct={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function mt(Ze){return Ct.noHighlightRe.test(Ze)}function qt(Ze){let Ot=Ze.className+" ";Ot+=Ze.parentNode?Ze.parentNode.className:"";const Mt=Ct.languageDetectRe.exec(Ot);if(Mt){const Yt=nn(Mt[1]);return Yt||(ct(kt.replace("{}",Mt[1])),ct("Falling back to no-highlight mode for this block.",Ze)),Yt?Mt[1]:"no-highlight"}return Ot.split(/\s+/).find(Yt=>mt(Yt)||nn(Yt))}function De(Ze,Ot,Mt){let Yt="",er="";typeof Ot=="object"?(Yt=Ze,Mt=Ot.ignoreIllegals,er=Ot.language):(Fe("10.7.0","highlight(lang, code, ...args) has been deprecated."),Fe("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),er=Ze,Yt=Ot),Mt===void 0&&(Mt=!0);const Ht={code:Yt,language:er};Ta("before:highlight",Ht);const Hr=Ht.result?Ht.result:pr(Ht.language,Ht.code,Mt);return Hr.code=Ht.code,Ta("after:highlight",Hr),Hr}function pr(Ze,Ot,Mt,Yt){const er=Object.create(null);function Ht(kr,en){return kr.keywords[en]}function Hr(){if(!wr.keywords){Ki.addText(Pi);return}let kr=0;wr.keywordPatternRe.lastIndex=0;let en=wr.keywordPatternRe.exec(Pi),zr="";for(;en;){zr+=Pi.substring(kr,en.index);const oi=eo.case_insensitive?en[0].toLowerCase():en[0],za=Ht(wr,oi);if(za){const[Qo,ov]=za;if(Ki.addText(zr),zr="",er[oi]=(er[oi]||0)+1,er[oi]<=Je&&(Ca+=ov),Qo.startsWith("_"))zr+=en[0];else{const rf=eo.classNameAliases[Qo]||Qo;ut(en[0],rf)}}else zr+=en[0];kr=wr.keywordPatternRe.lastIndex,en=wr.keywordPatternRe.exec(Pi)}zr+=Pi.substring(kr),Ki.addText(zr)}function ot(){if(Pi==="")return;let kr=null;if(typeof wr.subLanguage=="string"){if(!xe[wr.subLanguage]){Ki.addText(Pi);return}kr=pr(wr.subLanguage,Pi,!0,bl[wr.subLanguage]),bl[wr.subLanguage]=kr._top}else kr=ir(Pi,wr.subLanguage.length?wr.subLanguage:null);wr.relevance>0&&(Ca+=kr.relevance),Ki.__addSublanguage(kr._emitter,kr.language)}function Li(){wr.subLanguage!=null?ot():Hr(),Pi=""}function ut(kr,en){kr!==""&&(Ki.startScope(en),Ki.addText(kr),Ki.endScope())}function zn(kr,en){let zr=1;const oi=en.length-1;for(;zr<=oi;){if(!kr._emit[zr]){zr++;continue}const za=eo.classNameAliases[kr[zr]]||kr[zr],Qo=en[zr];za?ut(Qo,za):(Pi=Qo,Hr(),Pi=""),zr++}}function dc(kr,en){return kr.scope&&typeof kr.scope=="string"&&Ki.openNode(eo.classNameAliases[kr.scope]||kr.scope),kr.beginScope&&(kr.beginScope._wrap?(ut(Pi,eo.classNameAliases[kr.beginScope._wrap]||kr.beginScope._wrap),Pi=""):kr.beginScope._multi&&(zn(kr.beginScope,en),Pi="")),wr=Object.create(kr,{parent:{value:wr}}),wr}function hc(kr,en,zr){let oi=b(kr.endRe,zr);if(oi){if(kr["on:end"]){const za=new e(kr);kr["on:end"](en,za),za.isMatchIgnored&&(oi=!1)}if(oi){for(;kr.endsParent&&kr.parent;)kr=kr.parent;return kr}}if(kr.endsWithParent)return hc(kr.parent,en,zr)}function dp(kr){return wr.matcher.regexIndex===0?(Pi+=kr[0],1):(Do=!0,0)}function qg(kr){const en=kr[0],zr=kr.rule,oi=new e(zr),za=[zr.__beforeBegin,zr["on:begin"]];for(const Qo of za)if(Qo&&(Qo(kr,oi),oi.isMatchIgnored))return dp(en);return zr.skip?Pi+=en:(zr.excludeBegin&&(Pi+=en),Li(),!zr.returnBegin&&!zr.excludeBegin&&(Pi=en)),dc(zr,kr),zr.returnBegin?0:en.length}function Ka(kr){const en=kr[0],zr=Ot.substring(kr.index),oi=hc(wr,kr,zr);if(!oi)return He;const za=wr;wr.endScope&&wr.endScope._wrap?(Li(),ut(en,wr.endScope._wrap)):wr.endScope&&wr.endScope._multi?(Li(),zn(wr.endScope,kr)):za.skip?Pi+=en:(za.returnEnd||za.excludeEnd||(Pi+=en),Li(),za.excludeEnd&&(Pi=en));do wr.scope&&Ki.closeNode(),!wr.skip&&!wr.subLanguage&&(Ca+=wr.relevance),wr=wr.parent;while(wr!==oi.parent);return oi.starts&&dc(oi.starts,kr),za.returnEnd?0:en.length}function Ou(){const kr=[];for(let en=wr;en!==eo;en=en.parent)en.scope&&kr.unshift(en.scope);kr.forEach(en=>Ki.openNode(en))}let fc={};function pd(kr,en){const zr=en&&en[0];if(Pi+=kr,zr==null)return Li(),0;if(fc.type==="begin"&&en.type==="end"&&fc.index===en.index&&zr===""){if(Pi+=Ot.slice(en.index,en.index+1),!Ut){const oi=new Error(`0 width match regex (${Ze})`);throw oi.languageName=Ze,oi.badRule=fc.rule,oi}return 1}if(fc=en,en.type==="begin")return qg(en);if(en.type==="illegal"&&!Mt){const oi=new Error('Illegal lexeme "'+zr+'" for mode "'+(wr.scope||"<unnamed>")+'"');throw oi.mode=wr,oi}else if(en.type==="end"){const oi=Ka(en);if(oi!==He)return oi}if(en.type==="illegal"&&zr==="")return Pi+=`
`,1;if(to>1e5&&to>en.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Pi+=zr,zr.length}const eo=nn(Ze);if(!eo)throw je(kt.replace("{}",Ze)),new Error('Unknown language: "'+Ze+'"');const hp=fe(eo);let ch="",wr=Yt||hp;const bl={},Ki=new Ct.__emitter(Ct);Ou();let Pi="",Ca=0,Es=0,to=0,Do=!1;try{if(eo.__emitTokens)eo.__emitTokens(Ot,Ki);else{for(wr.matcher.considerAll();;){to++,Do?Do=!1:wr.matcher.considerAll(),wr.matcher.lastIndex=Es;const kr=wr.matcher.exec(Ot);if(!kr)break;const en=Ot.substring(Es,kr.index),zr=pd(en,kr);Es=kr.index+zr}pd(Ot.substring(Es))}return Ki.finalize(),ch=Ki.toHTML(),{language:Ze,value:ch,relevance:Ca,illegal:!1,_emitter:Ki,_top:wr}}catch(kr){if(kr.message&&kr.message.includes("Illegal"))return{language:Ze,value:lt(Ot),illegal:!0,relevance:0,_illegalBy:{message:kr.message,index:Es,context:Ot.slice(Es-100,Es+100),mode:kr.mode,resultSoFar:ch},_emitter:Ki};if(Ut)return{language:Ze,value:lt(Ot),illegal:!1,relevance:0,errorRaised:kr,_emitter:Ki,_top:wr};throw kr}}function or(Ze){const Ot={value:lt(Ze),illegal:!1,relevance:0,_top:gt,_emitter:new Ct.__emitter(Ct)};return Ot._emitter.addText(Ze),Ot}function ir(Ze,Ot){Ot=Ot||Ct.languages||Object.keys(xe);const Mt=or(Ze),Yt=Ot.filter(nn).filter(Jr).map(Li=>pr(Li,Ze,!1));Yt.unshift(Mt);const er=Yt.sort((Li,ut)=>{if(Li.relevance!==ut.relevance)return ut.relevance-Li.relevance;if(Li.language&&ut.language){if(nn(Li.language).supersetOf===ut.language)return 1;if(nn(ut.language).supersetOf===Li.language)return-1}return 0}),[Ht,Hr]=er,ot=Ht;return ot.secondBest=Hr,ot}function gr(Ze,Ot,Mt){const Yt=Ot&&pt[Ot]||Mt;Ze.classList.add("hljs"),Ze.classList.add(`language-${Yt}`)}function dn(Ze){let Ot=null;const Mt=qt(Ze);if(mt(Mt))return;if(Ta("before:highlightElement",{el:Ze,language:Mt}),Ze.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Ze);return}if(Ze.children.length>0&&(Ct.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Ze)),Ct.throwUnescapedHTML))throw new qe("One of your code blocks includes unescaped HTML.",Ze.innerHTML);Ot=Ze;const Yt=Ot.textContent,er=Mt?De(Yt,{language:Mt,ignoreIllegals:!0}):ir(Yt);Ze.innerHTML=er.value,Ze.dataset.highlighted="yes",gr(Ze,Mt,er.language),Ze.result={language:er.language,re:er.relevance,relevance:er.relevance},er.secondBest&&(Ze.secondBest={language:er.secondBest.language,relevance:er.secondBest.relevance}),Ta("after:highlightElement",{el:Ze,result:er,text:Yt})}function st(Ze){Ct=it(Ct,Ze)}const jt=()=>{Sr(),Fe("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function nr(){Sr(),Fe("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let vr=!1;function Sr(){function Ze(){Sr()}if(document.readyState==="loading"){vr||window.addEventListener("DOMContentLoaded",Ze,!1),vr=!0;return}document.querySelectorAll(Ct.cssSelector).forEach(dn)}function yn(Ze,Ot){let Mt=null;try{Mt=Ot($e)}catch(Yt){if(je("Language definition for '{}' could not be registered.".replace("{}",Ze)),Ut)je(Yt);else throw Yt;Mt=gt}Mt.name||(Mt.name=Ze),xe[Ze]=Mt,Mt.rawDefinition=Ot.bind(null,$e),Mt.aliases&&Zr(Mt.aliases,{languageName:Ze})}function ln(Ze){delete xe[Ze];for(const Ot of Object.keys(pt))pt[Ot]===Ze&&delete pt[Ot]}function xn(){return Object.keys(xe)}function nn(Ze){return Ze=(Ze||"").toLowerCase(),xe[Ze]||xe[pt[Ze]]}function Zr(Ze,{languageName:Ot}){typeof Ze=="string"&&(Ze=[Ze]),Ze.forEach(Mt=>{pt[Mt.toLowerCase()]=Ot})}function Jr(Ze){const Ot=nn(Ze);return Ot&&!Ot.disableAutodetect}function Jn(Ze){Ze["before:highlightBlock"]&&!Ze["before:highlightElement"]&&(Ze["before:highlightElement"]=Ot=>{Ze["before:highlightBlock"](Object.assign({block:Ot.el},Ot))}),Ze["after:highlightBlock"]&&!Ze["after:highlightElement"]&&(Ze["after:highlightElement"]=Ot=>{Ze["after:highlightBlock"](Object.assign({block:Ot.el},Ot))})}function _a(Ze){Jn(Ze),Ve.push(Ze)}function si(Ze){const Ot=Ve.indexOf(Ze);Ot!==-1&&Ve.splice(Ot,1)}function Ta(Ze,Ot){const Mt=Ze;Ve.forEach(function(Yt){Yt[Mt]&&Yt[Mt](Ot)})}function Vr(Ze){return Fe("10.7.0","highlightBlock will be removed entirely in v12.0"),Fe("10.7.0","Please use highlightElement now."),dn(Ze)}Object.assign($e,{highlight:De,highlightAuto:ir,highlightAll:Sr,highlightElement:dn,highlightBlock:Vr,configure:st,initHighlighting:jt,initHighlightingOnLoad:nr,registerLanguage:yn,unregisterLanguage:ln,listLanguages:xn,getLanguage:nn,registerAliases:Zr,autoDetection:Jr,inherit:it,addPlugin:_a,removePlugin:si}),$e.debugMode=function(){Ut=!1},$e.safeMode=function(){Ut=!0},$e.versionString=Ye,$e.regex={concat:m,lookahead:f,either:v,optional:g,anyNumberOfTimes:p};for(const Ze in re)typeof re[Ze]=="object"&&t(re[Ze]);return Object.assign($e,re),$e},rt=ht({});return rt.newInstance=()=>ht({}),sq=rt,rt.HighlightJS=rt,rt.default=rt,sq}var oq,Qme;function kvt(){if(Qme)return oq;Qme=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",p="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",U="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",z="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",G="null истина ложь неопределено",Y=e.inherit(e.NUMBER_MODE),W={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Q={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},ie={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},Z=e.inherit(e.C_LINE_COMMENT_MODE),re={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,keyword:a+l},contains:[Z]},K={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},j={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:r,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:r,keyword:"знач",literal:G},contains:[Y,W,Q]},Z]},e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:a,built_in:p,class:U,type:z,literal:G},contains:[re,j,Z,K,Y,W,Q,ie]}}return oq=t,oq}var lq,Zme;function Dvt(){if(Zme)return lq;Zme=1;function t(e){const r=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],a=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},u={scope:"symbol",match:/%[si](?=".*")/},d={scope:"attribute",match:r.concat(n,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:i,contains:[{scope:"operator",match:/=\/?/},d,a,s,o,l,u,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return lq=t,lq}var cq,Jme;function Mvt(){if(Jme)return cq;Jme=1;function t(e){const r=e.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:r.concat(/"/,r.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return cq=t,cq}var uq,e0e;function Lvt(){if(e0e)return uq;e0e=1;function t(e){const r=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=r.concat(n,r.concat("(\\.",n,")*")),a=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:r.concat(/:\s*/,a)}]},e.METHOD_GUARD],illegal:/#/}}return uq=t,uq}var dq,t0e;function Pvt(){if(t0e)return dq;t0e=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,i=r+"(\\."+r+")?("+n+")?",a="\\w+",o="\\b("+(r+"#"+a+"(\\."+a+")?#("+n+")?")+"|"+i+")",l="[A-Za-z](_?[A-Za-z0-9.])*",u=`[]\\{\\}%#'"`,d=e.COMMENT("--","$"),h={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:u,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[d,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:u},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:u},h,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:u}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:u},h]}}return dq=t,dq}var hq,r0e;function Fvt(){if(r0e)return hq;r0e=1;function t(e){const r={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[r,n]};return r.contains=[i],n.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},r,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return hq=t,hq}var fq,n0e;function Bvt(){if(n0e)return fq;n0e=1;function t(e){const r={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},a={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,a,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",r]},i,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return fq=t,fq}var pq,i0e;function Uvt(){if(i0e)return pq;i0e=1;function t(e){const r=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},a=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",a]}),o=[a,s,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],u=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,e.C_NUMBER_MODE,{className:"built_in",begin:r.concat(/\b/,r.either(...u),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:r.concat(/\b/,r.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...o],illegal:/\/\/|->|=>|\[\[/}}return pq=t,pq}var gq,a0e;function $vt(){if(a0e)return gq;a0e=1;function t(e){const r=e.regex,n="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},a=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],s={className:"symbol",begin:"\\$"+r.either(...a)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},u={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,o,e.REGEXP_MODE];const d=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:d}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:d}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return gq=t,gq}var mq,s0e;function Gvt(){if(s0e)return mq;s0e=1;function t(r){const n=r.regex,i=r.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+a+"|"+n.optional(s)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},r.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},r.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,r.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(s)+r.IDENT_RE,relevance:0},m=n.optional(s)+r.IDENT_RE+"\\s*\\(",_=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],T={type:v,keyword:_,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},C={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,r.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},x=[C,p,u,i,r.C_BLOCK_COMMENT_MODE,f,h],A={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:x.concat([{begin:/\(/,end:/\)/,keywords:T,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+l+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:T,relevance:0},{begin:m,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[i,r.C_BLOCK_COMMENT_MODE,h,f,u,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",i,r.C_BLOCK_COMMENT_MODE,h,f,u]}]},u,i,r.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:T,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(A,R,C,x,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:T,contains:["self",u]},{begin:r.IDENT_RE+"::",keywords:T},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(r){const n={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=t(r),a=i.keywords;return a.type=[...a.type,...n.type],a.literal=[...a.literal,...n.literal],a.built_in=[...a.built_in,...n.built_in],a._hints=n._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}return mq=e,mq}var _q,o0e;function zvt(){if(o0e)return _q;o0e=1;function t(e){const r={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},r,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return _q=t,_q}var vq,l0e;function qvt(){if(l0e)return vq;l0e=1;function t(e){const r=e.regex,n=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,u,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,u,l]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(n,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return vq=t,vq}var yq,c0e;function Vvt(){if(c0e)return yq;c0e=1;function t(e){const r=e.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},i=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],a=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:r.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:r.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ 	].+?([ 	]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,o,...i,...a,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return yq=t,yq}var bq,u0e;function Hvt(){if(u0e)return bq;u0e=1;function t(e){const r=e.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:r.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return bq=t,bq}var Eq,d0e;function Yvt(){if(d0e)return Eq;d0e=1;function t(e){const r={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[r,e.inherit(e.QUOTE_STRING_MODE,{contains:[r]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return Eq=t,Eq}var Sq,h0e;function Wvt(){if(h0e)return Sq;h0e=1;function t(e){const r="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],i="True False And Null Not Or Default",a="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},u={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},d={className:"meta",begin:"#",end:"$",keywords:{keyword:n},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,s]},h={className:"symbol",begin:"@[A-z0-9_]+"},f={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,l,u]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:a,literal:i},contains:[s,o,l,u,d,h,f]}}return Sq=t,Sq}var Tq,f0e;function Kvt(){if(f0e)return Tq;f0e=1;function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return Tq=t,Tq}var Cq,p0e;function jvt(){if(p0e)return Cq;p0e=1;function t(e){const r={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[r,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Cq=t,Cq}var wq,g0e;function Xvt(){if(g0e)return wq;g0e=1;function t(e){const r=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,r,/\s+(extends|implements)\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return wq=t,wq}var xq,m0e;function Qvt(){if(m0e)return xq;m0e=1;function t(e){const r=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,a]};a.contains.push(l);const u={match:/\\"/},d={className:"string",begin:/'/,end:/'/},h={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},_=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],S=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:_,literal:v,built_in:[...b,...E,"set","shopt",...S,...T]},contains:[g,e.SHEBANG(),m,f,s,o,y,l,u,d,h,n]}}return xq=t,xq}var Aq,_0e;function Zvt(){if(_0e)return Aq;_0e=1;function t(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return Aq=t,Aq}var Rq,v0e;function Jvt(){if(v0e)return Rq;v0e=1;function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return Rq=t,Rq}var Oq,y0e;function eyt(){if(y0e)return Oq;y0e=1;function t(e){const r={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[r]},r]}}return Oq=t,Oq}var Iq,b0e;function tyt(){if(b0e)return Iq;b0e=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+i+"|"+r.optional(a)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:r.optional(a)+e.IDENT_RE,relevance:0},g=r.optional(a)+e.IDENT_RE+"\\s*\\(",v={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[f,l,n,e.C_BLOCK_COMMENT_MODE,h,d],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:y.concat([{begin:/\(/,end:/\)/,keywords:v,contains:y.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:v,relevance:0},{begin:g,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:v,disableAutodetect:!0,illegal:"</",contains:[].concat(b,E,y,[f,{begin:e.IDENT_RE+"::",keywords:v},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:v}}}return Iq=t,Iq}var Nq,E0e;function ryt(){if(E0e)return Nq;E0e=1;function t(e){const r=e.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],i="false true",a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},u={className:"string",begin:'"',end:'"'},d={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[s,o,e.NUMBER_MODE]},...a]},h=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],f={match:[/OBJECT/,/\s+/,r.either(...h),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:i},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,u,e.NUMBER_MODE,f,d]}}return Nq=t,Nq}var kq,S0e;function nyt(){if(S0e)return kq;S0e=1;function t(e){const r=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],n=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],i=["true","false"],a={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:r,type:n,literal:i},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},a]}}return kq=t,kq}var Dq,T0e;function iyt(){if(T0e)return Dq;T0e=1;function t(e){const r=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],n=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],i=["doc","by","license","see","throws","tagged"],a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{name:"Ceylon",keywords:{keyword:r.concat(n),meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return Dq=t,Dq}var Mq,C0e;function ayt(){if(C0e)return Mq;C0e=1;function t(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return Mq=t,Mq}var Lq,w0e;function syt(){if(w0e)return Lq;w0e=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+r+"]["+r+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:n,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:n,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},u={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),h={scope:"punctuation",match:/,/,relevance:0},f=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},g={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},m={className:"symbol",begin:"[:]{1,2}"+n},_={begin:"\\(",end:"\\)"},v={endsWithParent:!0,relevance:0},y={keywords:a,className:"name",begin:n,relevance:0,starts:v},b=[h,_,l,u,d,f,m,g,o,p,s],E={beginKeywords:i,keywords:{$pattern:n,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return _.contains=[E,y,v],v.contains=b,g.contains=b,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[h,_,l,u,d,f,m,g,o,p]}}return Lq=t,Lq}var Pq,x0e;function oyt(){if(x0e)return Pq;x0e=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return Pq=t,Pq}var Fq,A0e;function lyt(){if(A0e)return Fq;A0e=1;function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Fq=t,Fq}var Bq,R0e;function cyt(){if(R0e)return Bq;R0e=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,r,n);function s(o){const l=["npm","print"],u=["yes","no","on","off"],d=["then","unless","until","loop","by","when","and","or","is","isnt","not"],h=["var","const","let","function","static"],f=S=>T=>!S.includes(T),p={keyword:t.concat(d).filter(f(h)),literal:e.concat(u),built_in:a.concat(l)},g="[A-Za-z$_][0-9A-Za-z$_]*",m={className:"subst",begin:/#\{/,end:/\}/,keywords:p},_=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,m]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,m]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[m,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+g},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];m.contains=_;const v=o.inherit(o.TITLE_MODE,{begin:g}),y="(\\(.*\\)\\s*)?\\B[-=]>",b={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(_)}]},E={variants:[{match:[/class\s+/,g,/\s+extends\s+/,g]},{match:[/class\s+/,g]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:p};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:p,illegal:/\/\*/,contains:[..._,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+g+"\\s*=\\s*"+y,end:"[-=]>",returnBegin:!0,contains:[v,b]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:y,end:"[-=]>",returnBegin:!0,contains:[b]}]},E,{begin:g+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return Bq=s,Bq}var Uq,O0e;function uyt(){if(O0e)return Uq;O0e=1;function t(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return Uq=t,Uq}var $q,I0e;function dyt(){if(I0e)return $q;I0e=1;function t(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return $q=t,$q}var Gq,N0e;function hyt(){if(N0e)return Gq;N0e=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+r.optional(a)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:r.optional(a)+e.IDENT_RE,relevance:0},g=r.optional(a)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],v=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],S={type:_,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:v},T={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},C=[T,f,l,n,e.C_BLOCK_COMMENT_MODE,h,d],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:C.concat([{begin:/\(/,end:/\)/,keywords:S,contains:C.concat(["self"]),relevance:0}]),relevance:0},A={className:"function",begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:S,relevance:0},{begin:g,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:S,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,A,T,C,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:S,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:S},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Gq=t,Gq}var zq,k0e;function fyt(){if(k0e)return zq;k0e=1;function t(e){const r="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:r,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return zq=t,zq}var qq,D0e;function pyt(){if(D0e)return qq;D0e=1;function t(e){const r="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:i,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},d={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function h(y,b){const E=[{begin:y,end:b}];return E[0].contains=E,E}const f={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:h("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%q<",end:">",contains:h("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},g={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},m={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%r<",end:">",contains:h("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},_={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},v=[d,f,p,m,g,_,u,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+r}],relevance:0}];return l.contains=v,d.contains=v.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:v}}return qq=t,qq}var Vq,M0e;function gyt(){if(M0e)return Vq;M0e=1;function t(e){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(s),built_in:r,literal:i},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},h={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(h,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:o},g=e.inherit(p,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,g]},_={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},v=e.inherit(_,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[_,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],g.contains=[v,m,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[d,_,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",S={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[y,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},S]}}return Vq=t,Vq}var Hq,L0e;function myt(){if(L0e)return Hq;L0e=1;function t(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return Hq=t,Hq}var Yq,P0e;function _yt(){if(P0e)return Yq;P0e=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=u.regex,h=t(u),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},p="and or not only",g=/@-?\w[\w]*(-\w+)*/,m="[a-zA-Z-][a-zA-Z0-9_-]*",_=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[h.BLOCK_COMMENT,f,h.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+m,relevance:0},h.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},h.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[h.BLOCK_COMMENT,h.HEXCOLOR,h.IMPORTANT,h.CSS_NUMBER_MODE,..._,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[..._,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},h.FUNCTION_DISPATCH]},{begin:d.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:g},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},..._,h.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}return Yq=l,Yq}var Wq,F0e;function vyt(){if(F0e)return Wq;F0e=1;function t(e){const r={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+i+")",u="("+i+"(\\.\\d*|"+l+")|\\d+\\."+i+"|\\."+n+l+"?)",d="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+i+")",h="("+n+"|"+a+"|"+o+")",f="("+d+"|"+u+")",p=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,g={className:"number",begin:"\\b"+h+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},m={className:"number",begin:"\\b("+f+"([fF]|L|i|[fF]i|Li)?|"+h+"(i|[fF]i|Li))",relevance:0},_={className:"string",begin:"'("+p+"|.)",end:"'",illegal:"."},y={className:"string",begin:'"',contains:[{begin:p,relevance:0}],end:'"[cwd]?'},b={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},E={className:"string",begin:"`",end:"`[cwd]?"},S={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},T={className:"string",begin:'q"\\{',end:'\\}"'},C={className:"meta",begin:"^#!",end:"$",relevance:5},x={className:"meta",begin:"#(line)",end:"$",relevance:5},A={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},R=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:r,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,R,S,y,b,E,T,m,g,_,C,x,A]}}return Wq=t,Wq}var Kq,B0e;function yyt(){if(B0e)return Kq;B0e=1;function t(e){const r=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},h={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(d,{contains:[]}),p=e.inherit(h,{contains:[]});d.contains.push(p),h.contains.push(f);let g=[n,u];return[d,h,f,p].forEach(y=>{y.contains=y.contains.concat(g)}),g=g.concat(d,h),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:g}]}]},n,s,d,h,{className:"quote",begin:"^>\\s+",contains:g,end:"$"},a,i,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Kq=t,Kq}var jq,U0e;function byt(){if(U0e)return jq;U0e=1;function t(e){const r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},a={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r,n]}]};n.contains=[i,a];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(d=>`${d}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[a,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},i,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return jq=t,jq}var Xq,$0e;function Eyt(){if($0e)return Xq;$0e=1;function t(e){const r=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},u={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,o,i].concat(n)},i].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,o,s,l,u,i].concat(n)}}return Xq=t,Xq}var Qq,G0e;function Syt(){if(G0e)return Qq;G0e=1;function t(e){const r=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Qq=t,Qq}var Zq,z0e;function Tyt(){if(z0e)return Zq;z0e=1;function t(e){const r={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[r]}]}}return Zq=t,Zq}var Jq,q0e;function Cyt(){if(q0e)return Jq;q0e=1;function t(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return Jq=t,Jq}var eV,V0e;function wyt(){if(V0e)return eV;V0e=1;function t(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return eV=t,eV}var tV,H0e;function xyt(){if(H0e)return tV;H0e=1;function t(e){const r=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"}.begin,end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{className:"number",begin:"\\b\\d+",relevance:0},r]}}return tV=t,tV}var rV,Y0e;function Ayt(){if(Y0e)return rV;Y0e=1;function t(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}return rV=t,rV}var nV,W0e;function Ryt(){if(W0e)return nV;W0e=1;function t(e){const r={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(r,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[n,a]},u={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},d={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},h={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},f={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},p={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[d,a,s,o,u,f,h,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,p,{begin:e.IDENT_RE+"::",keywords:""}]}}return nV=t,nV}var iV,K0e;function Oyt(){if(K0e)return iV;K0e=1;function t(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return iV=t,iV}var aV,j0e;function Iyt(){if(j0e)return aV;j0e=1;function t(e){const r=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},a={begin:/=/,end:/[.;]/,contains:[r,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[r,n,a]}}return aV=t,aV}var sV,X0e;function Nyt(){if(X0e)return sV;X0e=1;function t(e){const r=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:n,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},h={match:/\\[\s\S]/,scope:"char.escape",relevance:0},f=`[/|([{<"']`,p=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],g=T=>({scope:"char.escape",begin:r.concat(/\\/,T),relevance:0}),m={className:"string",begin:"~[a-z](?="+f+")",contains:p.map(T=>e.inherit(T,{contains:[g(T.end),h,l]}))},_={className:"string",begin:"~[A-Z](?="+f+")",contains:p.map(T=>e.inherit(T,{contains:[g(T.end)]}))},v={className:"regex",variants:[{begin:"~r(?="+f+")",contains:p.map(T=>e.inherit(T,{end:r.concat(T.end,/[uismxfU]{0,7}/),contains:[g(T.end),h,l]}))},{begin:"~R(?="+f+")",contains:p.map(T=>e.inherit(T,{end:r.concat(T.end,/[uismxfU]{0,7}/),contains:[g(T.end)]}))}]},y={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},b={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},E=e.inherit(b,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),S=[y,v,_,m,e.HASH_COMMENT_MODE,E,b,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[y,{begin:i}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=S,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:S}}return sV=t,sV}var oV,Q0e;function kyt(){if(Q0e)return oV;Q0e=1;function t(e){const r={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},a={begin:/\{/,end:/\}/,contains:i.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,a,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,r]},{begin:"port",end:"$",keywords:"port",contains:[r]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}],illegal:/;/}}return oV=t,oV}var lV,Z0e;function Dyt(){if(Z0e)return lV;Z0e=1;function t(e){const r=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=r.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],h={className:"subst",begin:/#\{/,end:/\}/,keywords:o},f={className:"string",contains:[e.BACKSLASH_ESCAPE,h],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,h]})]}]},p="[1-9](_?[0-9])*|0",g="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},_={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},C=[f,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[_]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,h],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,d),relevance:0}].concat(u,d);h.contains=C,_.contains=C;const I=[{begin:/^\s*=>/,starts:{end:"$",contains:C}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:C}}];return d.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(I).concat(d).concat(C)}}return lV=t,lV}var cV,J0e;function Myt(){if(J0e)return cV;J0e=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return cV=t,cV}var uV,e_e;function Lyt(){if(e_e)return uV;e_e=1;function t(e){const r=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:r.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return uV=t,uV}var dV,t_e;function Pyt(){if(t_e)return dV;t_e=1;function t(e){const r="[a-z'][a-zA-Z0-9_']*",n="("+r+":"+r+"|"+r+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},a=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+r+"/\\d+"},l={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},u={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},h={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},f={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},g={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},m={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?</,end:/>/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},_={beginKeywords:"fun receive if try case maybe",end:"end",keywords:i};_.contains=[a,o,e.inherit(e.APOS_STRING_MODE,{className:""}),_,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];const v=[a,o,_,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];l.contains[1].contains=v,u.contains=v,f.contains[1].contains=v;const y=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],b={className:"params",begin:"\\(",end:"\\)",contains:v};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+r+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[b,e.inherit(e.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:i,contains:v}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:y.map(E=>`${E}|1.5`).join(" ")},contains:[b,m,g,e.QUOTE_STRING_MODE]},s,m,g,e.QUOTE_STRING_MODE,f,d,h,u,p,{begin:/\.$/}]}}return dV=t,dV}var hV,r_e;function Fyt(){if(r_e)return hV;r_e=1;function t(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return hV=t,hV}var fV,n_e;function Byt(){if(n_e)return fV;n_e=1;function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return fV=t,fV}var pV,i_e;function Uyt(){if(i_e)return pV;i_e=1;function t(e){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,n,a,e.C_NUMBER_MODE]}}return pV=t,pV}var gV,a_e;function $yt(){if(a_e)return gV;a_e=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,s,a)},{begin:r.concat(/\b\d+/,s,a)},{begin:r.concat(/\.\d+/,s,a)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},u={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[u,l,{begin:/^C\s*=(?!=)/,relevance:0},i,o]}}return gV=t,gV}var mV,s_e;function Gyt(){if(s_e)return mV;s_e=1;function t(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function r(o){return n("(?=",o,")")}function n(...o){return o.map(u=>e(u)).join("")}function i(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function a(...o){return"("+(i(o).capture?"":"?:")+o.map(d=>e(d)).join("|")+")"}function s(o){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],u={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},d=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],h=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],f=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],p=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],m={keyword:l,literal:h,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":f},v={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},y=/[a-zA-Z_](\w|')*/,b={scope:"variable",begin:/``/,end:/``/},E=/\B('|\^)/,S={scope:"symbol",variants:[{match:n(E,/``.*?``/)},{match:n(E,o.UNDERSCORE_IDENT_RE)}],relevance:0},T=function({includeEqual:Y}){let W;Y?W="!%&*+-/<=>@^|~?":W="!%&*+-/<>@^|~?";const Q=Array.from(W),ie=n("[",...Q.map(t),"]"),Z=a(ie,/\./),re=n(Z,r(Z)),K=a(n(re,Z,"*"),n(ie,"+"));return{scope:"operator",match:a(K,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},C=T({includeEqual:!0}),x=T({includeEqual:!1}),A=function(Y,W){return{begin:n(Y,r(n(/\s*/,a(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:W,end:r(a(/\n/,/=/)),relevance:0,keywords:o.inherit(m,{type:p}),contains:[v,S,o.inherit(b,{scope:null}),x]}},R=A(/:/,"operator"),I=A(/\bof\b/,"keyword"),L={begin:[/(^|\s+)/,/type/,/\s+/,y],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:m,contains:[v,o.inherit(b,{scope:null}),S,{scope:"operator",match:/<|>/},R]},F={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},O={begin:[/^\s*/,n(/#/,a(...d)),/\b/],beginScope:{2:"meta"},end:r(/\s|$/)},D={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},M={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},P={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},N={scope:"string",begin:/"""/,end:/"""/,relevance:2},$={scope:"subst",begin:/\{/,end:/\}/,keywords:m},U={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,$]},B={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,$]},V={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},$],relevance:2},z={scope:"string",match:n(/'/,a(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return $.contains=[B,U,P,M,z,u,v,b,R,F,O,D,S,C],{name:"F#",aliases:["fs","f#"],keywords:m,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[u,{variants:[V,B,U,N,P,M,z]},v,b,L,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[b,N,P,M,z,D]},I,R,F,O,D,S,C]}}return mV=s,mV}var _V,o_e;function zyt(){if(o_e)return _V;o_e=1;function t(e){const r=e.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},a={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:n,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,u={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:r.concat(l,r.anyNumberOfTimes(r.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,u]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[u]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},i,a]},e.C_NUMBER_MODE,a]}}return _V=t,_V}var vV,l_e;function qyt(){if(l_e)return vV;l_e=1;function t(e){const r={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},a={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,a]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(p,g,m){const _=e.inherit({className:"function",beginKeywords:p,end:g,excludeEnd:!0,contains:[].concat(s)},{});return _.contains.push(o),_.contains.push(e.C_NUMBER_MODE),_.contains.push(e.C_BLOCK_COMMENT_MODE),_.contains.push(n),_},u={className:"built_in",begin:"\\b("+r.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},h={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:r,relevance:0,contains:[{beginKeywords:r.keyword},u,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:r.built_in,literal:r.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,u,h,d,"self"]};return h.contains.push(f),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:r,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,d,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},h,a]}}return vV=t,vV}var yV,c_e;function Vyt(){if(c_e)return yV;c_e=1;function t(e){const r=e.regex,n={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},i=/\b/;function a(g,m){if(g.index===0)return;const _=g.input[g.index-1];_>="0"&&_<="9"||_!=="_"&&m.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,l=/T\s*\d+/,u=/O\s*\d+/,d=/O<.+>/,h=/[ABCUVWXYZ]\s*/,f=/[FHIJKPQRS]\s*/,p=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:r.concat(i,o)},{begin:o,"on:begin":a},{match:r.concat(i,l)},{begin:l,"on:begin":a}]},{scope:"symbol",variants:[{match:r.concat(i,u)},{begin:u,"on:begin":a},{match:r.concat(i,d)},{begin:d,"on:begin":a},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:r.concat(i,h,s)},{begin:r.concat(h,s),"on:begin":a}]},{scope:"params",variants:[{match:r.concat(i,f,s)},{begin:r.concat(f,s),"on:begin":a}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:p}}return yV=t,yV}var bV,u_e;function Hyt(){if(u_e)return bV;u_e=1;function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return bV=t,bV}var EV,d_e;function Yyt(){if(d_e)return EV;d_e=1;function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return EV=t,EV}var SV,h_e;function Wyt(){if(h_e)return SV;h_e=1;function t(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return SV=t,SV}var TV,f_e;function Kyt(){if(f_e)return TV;f_e=1;function t(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}return TV=t,TV}var CV,p_e;function jyt(){if(p_e)return CV;p_e=1;function t(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return CV=t,CV}var wV,g_e;function Xyt(){if(g_e)return wV;g_e=1;function t(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}return wV=t,wV}var xV,m_e;function Qyt(){if(m_e)return xV;m_e=1;function t(e){const r=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(n,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return xV=t,xV}var AV,__e;function Zyt(){if(__e)return AV;__e=1;function t(r,n={}){return n.variants=r,n}function e(r){const n=r.regex,i="[A-Za-z0-9_$]+",a=t([r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),s={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[r.BACKSLASH_ESCAPE]},o=t([r.BINARY_NUMBER_MODE,r.C_NUMBER_MODE]),l=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE],{className:"string"}),u={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,r.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[r.SHEBANG({binary:"groovy",relevance:10}),a,l,s,o,u,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:i+"[ 	]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[a,l,s,o,"self"]},{className:"symbol",begin:"^[ 	]*"+n.lookahead(i+":"),excludeBegin:!0,end:i+":",relevance:0}],illegal:/#|<\//}}return AV=e,AV}var RV,v_e;function Jyt(){if(v_e)return RV;v_e=1;function t(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return RV=t,RV}var OV,y_e;function ebt(){if(y_e)return OV;y_e=1;function t(e){const r=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},i={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},a=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,u=/(\.|\/)/,d=r.either(a,s,o,l),h=r.concat(r.optional(/\.|\.\/|\//),d,r.anyNumberOfTimes(r.concat(u,d))),f=r.concat("(",o,"|",l,")(?==)"),p={begin:h},g=e.inherit(p,{keywords:i}),m={begin:/\(/,end:/\)/},_={className:"attr",begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m]}}},v={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},y={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,v,_,g,m],returnEnd:!0},b=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(y,{end:/\)/})});m.contains=[b];const E=e.inherit(p,{keywords:n,className:"name",starts:e.inherit(y,{end:/\}\}/})}),S=e.inherit(p,{keywords:n,className:"name"}),T=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(y,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[E],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[S]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[E]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[S]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[T]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[T]}]}}return OV=t,OV}var IV,b_e;function tbt(){if(b_e)return IV;b_e=1;function t(e){const r="([0-9]_*)+",n="([0-9a-fA-F]_*)+",i="([01]_*)+",a="([0-7]_*)+",u="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",d={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},h={className:"meta",begin:/\{-#/,end:/#-\}/},f={className:"meta",begin:"^#",end:"$"},p={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},g={begin:"\\(",end:"\\)",illegal:'"',contains:[h,f,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),d]},m={begin:/\{/,end:/\}/,contains:g.contains},_={className:"number",relevance:0,variants:[{match:`\\b(${r})(\\.(${r}))?([eE][+-]?(${r}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${r}))?\\b`},{match:`\\b0[oO](${a})\\b`},{match:`\\b0[bB](${i})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[g,d],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[g,d],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[p,g,d]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[h,p,g,m,d]},{beginKeywords:"default",end:"$",contains:[p,g,d]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,d]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[p,e.QUOTE_STRING_MODE,d]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},h,f,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,_,p,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${u}--+|--+(?!-)${u}`},d,{begin:"->|<-"}]}}return IV=t,IV}var NV,E_e;function rbt(){if(E_e)return NV;E_e=1;function t(e){const r="[a-zA-Z_$][a-zA-Z0-9_$]*",n=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:n,relevance:0},{className:"variable",begin:"\\$"+r},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return NV=t,NV}var kV,S_e;function nbt(){if(S_e)return kV;S_e=1;function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return kV=t,kV}var DV,T_e;function ibt(){if(T_e)return DV;T_e=1;function t(e){const r=e.regex,n="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,a={className:"attribute",begin:r.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(a,{relevance:0})]}}return DV=t,DV}var MV,C_e;function abt(){if(C_e)return MV;C_e=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",i={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},a="[-+]?\\d+(\\.\\d+)?",s={begin:n,relevance:0},o={className:"number",begin:a,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u=e.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},h={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},f={className:"comment",begin:"\\^"+n},p=e.COMMENT("\\^\\{","\\}"),g={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},_={endsWithParent:!0,relevance:0},v={className:"name",relevance:0,keywords:i,begin:n,starts:_},y=[m,l,f,p,u,g,h,o,d,s];return m.contains=[e.COMMENT("comment",""),v,_],_.contains=y,h.contains=y,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),m,l,f,p,u,g,h,o,d]}}return MV=t,MV}var LV,w_e;function sbt(){if(w_e)return LV;w_e=1;function t(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}return LV=t,LV}var PV,x_e;function obt(){if(x_e)return PV;x_e=1;function t(e){const r=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[i,s,a,o,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,h=/'[^']*'/,f=r.either(u,d,h),p=r.concat(f,"(\\s*\\.\\s*",f,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[i,l,s,a,o,n]}}]}}return PV=t,PV}var FV,A_e;function lbt(){if(A_e)return FV;A_e=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:r.concat(/\b\d+/,a,i)},{begin:r.concat(/\.\d+/,a,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return FV=t,FV}var BV,R_e;function cbt(){if(R_e)return BV;R_e=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",i="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Y="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING  SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",pd="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",eo="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",hp="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",ch="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",wr=Y+pd,bl=hp,Ki="null true false nil ",Pi={className:"number",begin:e.NUMBER_RE,relevance:0},Ca={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Es={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},to={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Es]},Do={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Es]},kr={variants:[to,Do]},en={$pattern:r,keyword:i,built_in:wr,class:bl,literal:Ki},zr={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:en,relevance:0},oi={className:"type",begin:":[ \\t]*("+ch.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},za={className:"variable",keywords:en,begin:r,relevance:0,contains:[oi,zr]},Qo=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:en,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:Qo,end:"\\)$",returnBegin:!0,keywords:en,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:r,built_in:eo},begin:Qo,end:"\\(",returnBegin:!0,excludeEnd:!0},zr,za,Ca,Pi,kr]},oi,zr,za,Ca,Pi,kr]}}return BV=t,BV}var UV,O_e;function ubt(){if(O_e)return UV;O_e=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",n={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(s,o,l){return l===-1?"":s.replace(o,u=>i(s,o,l-1))}function a(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=l+i("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),g={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},_={className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:g,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[_,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+u+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:g,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[m,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,n,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},n,m]}}return UV=a,UV}var $V,I_e;function dbt(){if(I_e)return $V;I_e=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,n,i);function l(u){const d=u.regex,h=(Q,{after:ie})=>{const Z="</"+Q[0].slice(1);return Q.input.indexOf(Z,ie)!==-1},f=t,p={begin:"<>",end:"</>"},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ie)=>{const Z=Q[0].length+Q.index,re=Q.input[Z];if(re==="<"||re===","){ie.ignoreMatch();return}re===">"&&(h(Q,{after:Z})||ie.ignoreMatch());let K;const j=Q.input.substring(Z);if(K=j.match(/^\s*=/)){ie.ignoreMatch();return}if((K=j.match(/^\s+extends\s+/))&&K.index===0){ie.ignoreMatch();return}}},_={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},v="[0-9](_?[0-9])*",y=`\\.(${v})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${b})((${y})|\\.)?|(${y}))[eE][+-]?(${v})\\b`},{begin:`\\b(${b})\\b((${y})\\b|\\.)?|(${y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},S={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},T={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,S],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,S],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,S],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,S]},I={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},L=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,T,C,x,A,{match:/\$\d+/},E];S.contains=L.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(L)});const F=[].concat(I,S.contains),O=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:_,contains:["self"].concat(F)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:O},M={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,d.concat(f,"(",d.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...n,...i]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},U={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function B(Q){return d.concat("(?!",Q.join("|"),")")}const V={match:d.concat(/\b/,B([...a,"super","import"].map(Q=>`${Q}\\s*\\(`)),f,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},z={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},Y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(Y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,T,C,x,A,I,{match:/\$\d+/},E,P,{scope:"attr",match:f+d.lookahead(":"),relevance:0},W,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,u.REGEXP_MODE,{className:"function",begin:Y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:g},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,u.inherit(u.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},V,U,M,G,{match:/\$[(.]/}]}}return $V=l,$V}var GV,N_e;function hbt(){if(N_e)return GV;N_e=1;function t(e){const n={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},i={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,i,a,n]}}return GV=t,GV}var zV,k_e;function fbt(){if(k_e)return zV;k_e=1;function t(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[r,n,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return zV=t,zV}var qV,D_e;function pbt(){if(D_e)return qV;D_e=1;function t(e){const r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:r,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},u={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},h={className:"variable",begin:"\\$"+r},f={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],begin:"`",end:"`"},g={className:"meta",begin:"@"+r},m={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[l,u,f,p,g,m,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=o.contains,o}return qV=t,qV}var VV,M_e;function gbt(){if(M_e)return VV;M_e=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return VV=t,VV}var HV,L_e;function mbt(){if(L_e)return HV;L_e=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",n={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(a){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[a.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+a.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[a.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(h);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+a.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+a.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[a.inherit(h,{className:"string"}),"self"]}]},g=n,m=a.COMMENT("/\\*","\\*/",{contains:[a.C_BLOCK_COMMENT_MODE]}),_={variants:[{className:"type",begin:a.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},v=_;return v.variants[1].contains=[_],_.variants[1].contains=[v],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),a.C_LINE_COMMENT_MODE,m,o,l,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[_,a.C_LINE_COMMENT_MODE,m],relevance:0},a.C_LINE_COMMENT_MODE,m,f,p,h,a.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,a.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},a.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,p]},h,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},g]}}return HV=i,HV}var YV,P_e;function _bt(){if(P_e)return YV;P_e=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",a={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("<!--","-->",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+n},u={className:"symbol",begin:"'"+r+"'"},d=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[u]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[s]}},o,l].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return YV=t,YV}var WV,F_e;function vbt(){if(F_e)return WV;F_e=1;function t(e){const n=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(I=>I+"(?![a-zA-Z@:_])")),i=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(I=>I+"(?![a-zA-Z:_])").join("|")),a=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:i},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:a}]},l={className:"params",relevance:0,begin:/#+\d?/},u={variants:s},d={className:"built_in",relevance:0,begin:/[$&^_]/},h={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},f=e.COMMENT("%","$",{relevance:0}),p=[o,l,u,d,h,f],g={begin:/\{/,end:/\}/,relevance:0,contains:["self",...p]},m=e.inherit(g,{relevance:0,endsParent:!0,contains:[g,...p]}),_={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[g,...p]},v={begin:/\s+/,relevance:0},y=[m],b=[_],E=function(I,L){return{contains:[v],starts:{relevance:0,contains:I,starts:L}}},S=function(I,L){return{begin:"\\\\"+I+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+I},relevance:0,contains:[v],starts:L}},T=function(I,L){return e.inherit({begin:"\\\\begin(?=[ 	]*(\\r?\\n[ 	]*)?\\{"+I+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},E(y,L))},C=(I="string")=>e.END_SAME_AS_BEGIN({className:I,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),x=function(I){return{className:"string",end:"(?=\\\\end\\{"+I+"\\})"}},A=(I="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:I,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),R=[...["verb","lstinline"].map(I=>S(I,{contains:[C()]})),S("mint",E(y,{contains:[C()]})),S("mintinline",E(y,{contains:[A(),C()]})),S("url",{contains:[A("link"),A("link")]}),S("hyperref",{contains:[A("link")]}),S("href",E(b,{contains:[A("link")]})),...[].concat(...["","\\*"].map(I=>[T("verbatim"+I,x("verbatim"+I)),T("filecontents"+I,E(y,x("filecontents"+I))),...["","B","L"].map(L=>T(L+"Verbatim"+I,E(b,x(L+"Verbatim"+I))))])),T("minted",E(b,E(y,x("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...R,...p]}}return WV=t,WV}var KV,B_e;function ybt(){if(B_e)return KV;B_e=1;function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return KV=t,KV}var jV,U_e;function bbt(){if(U_e)return jV;U_e=1;function t(e){const r=/([A-Za-z_][A-Za-z_0-9]*)?/,i={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},a={match:[r,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(a),{name:"Leaf",contains:[{match:[/#+/,r,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[i]},{match:[/#+/,r,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return jV=t,jV}var XV,$_e;function Ebt(){if($_e)return XV;$_e=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),l=a.concat(s).sort().reverse();function u(d){const h=t(d),f=l,p="and or not only",g="[\\w-]+",m="("+g+"|@\\{"+g+"\\})",_=[],v=[],y=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},b=function(F,O,D){return{className:F,begin:O,relevance:D}},E={$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},S={begin:"\\(",end:"\\)",contains:v,keywords:E,relevance:0};v.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,y("'"),y('"'),h.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},h.HEXCOLOR,S,b("variable","@@?"+g,10),b("variable","@\\{"+g+"\\}"),b("built_in","~?`[^`]*?`"),{className:"attribute",begin:g+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},h.IMPORTANT,{beginKeywords:"and not"},h.FUNCTION_DISPATCH);const T=v.concat({begin:/\{/,end:/\}/,contains:_}),C={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(v)},x={begin:m+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},h.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:v}}]},A={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:E,returnEnd:!0,contains:v,relevance:0}},R={className:"variable",variants:[{begin:"@"+g+"\\s*:",relevance:15},{begin:"@"+g}],starts:{end:"[;}]",returnEnd:!0,contains:T}},I={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:m,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,C,b("keyword","all\\b"),b("variable","@\\{"+g+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},h.CSS_NUMBER_MODE,b("selector-tag",m,0),b("selector-id","#"+m),b("selector-class","\\."+m,0),b("selector-tag","&",0),h.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:T},{begin:"!important"},h.FUNCTION_DISPATCH]},L={begin:g+`:(:)?(${f.join("|")})`,returnBegin:!0,contains:[I]};return _.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,A,R,L,x,I,C,h.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:_}}return XV=u,XV}var QV,G_e;function Sbt(){if(G_e)return QV;G_e=1;function t(e){const r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",a={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+r},h={begin:r,relevance:0},f={begin:n},g={contains:[s,o,u,d,{begin:"\\(",end:"\\)",contains:["self",a,o,s,h]},h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},_={begin:"\\(\\s*",end:"\\)"},v={endsWithParent:!0,relevance:0};return _.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:n}]},v],v.contains=[g,m,_,a,s,o,l,u,d,f,h],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),a,o,l,g,m,_,h]}}return QV=t,QV}var ZV,z_e;function Tbt(){if(z_e)return ZV;z_e=1;function t(e){const r={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[r,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[r,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(n),illegal:";$|^\\[|^=|&|\\{"}}return ZV=t,ZV}var JV,q_e;function Cbt(){if(q_e)return JV;q_e=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,r,n);function s(o){const l=["npm","print"],u=["yes","no","on","off","it","that","void"],d=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],h={keyword:t.concat(d),literal:e.concat(u),built_in:a.concat(l)},f="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",p=o.inherit(o.TITLE_MODE,{begin:f}),g={className:"subst",begin:/#\{/,end:/\}/,keywords:h},m={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:h},_=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,g,m]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,g,m]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[g,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+f},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];g.contains=_;const v={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(_)}]},y={begin:"(#=>|=>|\\|>>|-?->|!->)"},b={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:h};return{name:"LiveScript",aliases:["ls"],keywords:h,illegal:/\/\*/,contains:_.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,y,{className:"function",contains:[p,v],returnBegin:!0,variants:[{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},b,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return JV=s,JV}var eH,V_e;function wbt(){if(V_e)return eH;V_e=1;function t(e){const r=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},a={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},u={className:"variable",variants:[{begin:r.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},d={className:"title",variants:[{begin:r.concat(/@/,n)},{begin:/@\d+/},{begin:r.concat(/!/,n)},{begin:r.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[i,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,s,a,u,l,o]}}return eH=t,eH}var tH,H_e;function xbt(){if(H_e)return tH;H_e=1;function t(e){const n={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE},a={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[n,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,a,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return tH=t,tH}var rH,Y_e;function Abt(){if(Y_e)return rH;Y_e=1;function t(e){const r="\\[=*\\[",n="\\]=*\\]",i={begin:r,end:n,contains:["self"]},a=[e.COMMENT("--(?!"+r+")","$"),e.COMMENT("--"+r,n,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:r,end:n,contains:[i],relevance:5}])}}return rH=t,rH}var nH,W_e;function Rbt(){if(W_e)return nH;W_e=1;function t(e){const r={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,n]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,r,n,i,a,s,o]}}return nH=t,nH}var iH,K_e;function Obt(){if(K_e)return iH;K_e=1;const t=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function e(r){const n=r.regex,i=/([2-9]|[1-2]\d|[3][0-5])\^\^/,a=/(\w*\.\w+|\w+\.\w*|\w+)/,s=/(\d*\.\d+|\d+\.\d*|\d+)/,o=n.either(n.concat(i,a),s),l=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,u=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,d=n.either(l,u),h=/\*\^[+-]?\d+/,p={className:"number",relevance:0,begin:n.concat(o,n.optional(d),n.optional(h))},g=/[a-zA-Z$][a-zA-Z0-9$]*/,m=new Set(t),_={variants:[{className:"builtin-symbol",begin:g,"on:begin":(C,x)=>{m.has(C[0])||x.ignoreMatch()}},{className:"symbol",relevance:0,begin:g}]},v={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},y={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},b={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},E={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},S={className:"brace",relevance:0,begin:/[[\](){}]/},T={className:"message-name",relevance:0,begin:n.concat("::",g)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[r.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),b,E,T,_,v,r.QUOTE_STRING_MODE,p,y,S]}}return iH=e,iH}var aH,j_e;function Ibt(){if(j_e)return aH;j_e=1;function t(e){const r="('|\\.')+",n={relevance:0,contains:[{begin:r}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+r,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return aH=t,aH}var sH,X_e;function Nbt(){if(X_e)return sH;X_e=1;function t(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return sH=t,sH}var oH,Q_e;function kbt(){if(Q_e)return oH;Q_e=1;function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return oH=t,oH}var lH,Z_e;function Dbt(){if(Z_e)return lH;Z_e=1;function t(e){const r={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},n=e.COMMENT("%","$"),i={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},a=e.inherit(e.APOS_STRING_MODE,{relevance:0}),s=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),o={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return s.contains=s.contains.slice(),s.contains.push(o),{name:"Mercury",aliases:["m","moo"],keywords:r,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,a,s,{begin:/:-/},{begin:/\.$/}]}}return lH=t,lH}var cH,J_e;function Mbt(){if(J_e)return cH;J_e=1;function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return cH=t,cH}var uH,e1e;function Lbt(){if(e1e)return uH;e1e=1;function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return uH=t,uH}var dH,t1e;function Pbt(){if(t1e)return dH;t1e=1;function t(e){const r=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},d={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},h=[e.BACKSLASH_ESCAPE,s,u],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(_,v,y="\\1")=>{const b=y==="\\1"?y:r.concat(y,v);return r.concat(r.concat("(?:",_,")"),v,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,y,i)},g=(_,v,y)=>r.concat(r.concat("(?:",_,")"),v,/(?:\\.|[^\\\/])*?/,y,i),m=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:h,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},d,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",r.either(...f,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:g("(?:m|qr)?",/\//,/\//)},{begin:g("m|qr",r.either(...f,{capture:!0}),/\1/)},{begin:g("m|qr",/\(/,/\)/)},{begin:g("m|qr",/\[/,/\]/)},{begin:g("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,d]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=m,o.contains=m,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:m}}return dH=t,dH}var hH,r1e;function Fbt(){if(r1e)return hH;r1e=1;function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return hH=t,hH}var fH,n1e;function Bbt(){if(n1e)return fH;n1e=1;function t(e){const r={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),n,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,r]}}return fH=t,fH}var pH,i1e;function Ubt(){if(i1e)return pH;i1e=1;function t(e){const r={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:r},a=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=a;const s=e.inherit(e.TITLE_MODE,{begin:n}),o="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(a)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:a.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return pH=t,pH}var gH,a1e;function $bt(){if(a1e)return gH;a1e=1;function t(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return gH=t,gH}var mH,s1e;function Gbt(){if(s1e)return mH;s1e=1;function t(e){const r={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},n={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},i={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},a={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),a,i,r,n]}}return mH=t,mH}var _H,o1e;function zbt(){if(o1e)return _H;o1e=1;function t(e){const r=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:r.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},a={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:a.contains,keywords:{section:"upstream location"}},{className:"section",begin:r.concat(e.UNDERSCORE_IDENT_RE+r.lookahead(/\s+\{/)),relevance:0},{begin:r.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return _H=t,_H}var vH,l1e;function qbt(){if(l1e)return vH;l1e=1;function t(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return vH=t,vH}var yH,c1e;function Vbt(){if(c1e)return yH;c1e=1;function t(e){const r=e.regex,n={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},i={scope:"built_in",match:r.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(C=>`builtins\\.${C}`)),relevance:10},a="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${a}(/${a})*>`)},o="[A-Za-z0-9_\\+\\.-]+",l={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},u=r.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),d={scope:"operator",match:r.concat(u,/(?!-)/),relevance:0},h={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},f={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[u,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${a}(\\.${a})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${a}(\\.${a})*(?=\\s*=)`),relevance:.2}]},g={scope:"char.escape",match:/\\\$/},m={scope:"char.escape",match:/''\$/},_={scope:"subst",begin:/\$\{/,end:/\}/,keywords:n},v={scope:"char.escape",match:/'''/},y={scope:"char.escape",match:/\\(?!\$)./},b={scope:"string",variants:[{begin:"''",end:"''",contains:[m,_,v,y]},{begin:'"',end:'"',contains:[g,_,y]}]},E={scope:"params",match:new RegExp(`${a}\\s*:(?=\\s)`)},S=[h,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),i,b,s,l,E,p,f,d];_.contains=S;const T=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:n,contains:S.concat(T)}}return yH=t,yH}var bH,u1e;function Hbt(){if(u1e)return bH;u1e=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return bH=t,bH}var EH,d1e;function Ybt(){if(d1e)return EH;d1e=1;function t(e){const r=e.regex,n=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],i=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],a=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:r.concat(/\$/,r.either(...n))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},u={className:"variable",begin:/\$+\([\w^.:!-]+\)/},d={className:"params",begin:r.either(...i)},h={className:"keyword",begin:r.concat(/!/,r.either(...a))},f={className:"char.escape",begin:/\$(\\[nrt]|\$)/},p={className:"title.function",begin:/\w+::\w+/},g={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,s,o,l,u]},m=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],_=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],v={match:[/Function/,/\s+/,r.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},b={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:m,literal:_},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),b,v,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},g,h,o,l,u,d,p,e.NUMBER_MODE]}}return EH=t,EH}var SH,h1e;function Wbt(){if(h1e)return SH;h1e=1;function t(e){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"</",contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return SH=t,SH}var TH,f1e;function Kbt(){if(f1e)return TH;f1e=1;function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return TH=t,TH}var CH,p1e;function jbt(){if(p1e)return CH;p1e=1;function t(e){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",i,a,r,n]},l={begin:"[*!#%]",relevance:0},u={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,s,a,r,l,u]}}return CH=t,CH}var wH,g1e;function Xbt(){if(g1e)return wH;g1e=1;function t(e){const r={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:[a,s]},n,i]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[n,i,e.C_LINE_COMMENT_MODE,a,s,e.NUMBER_MODE,o,l]}}return wH=t,wH}var xH,m1e;function Qbt(){if(m1e)return xH;m1e=1;function t(e){const r=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[r]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return xH=t,xH}var AH,_1e;function Zbt(){if(_1e)return AH;_1e=1;function t(e){const r={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,r,n]}}return AH=t,AH}var RH,v1e;function Jbt(){if(v1e)return RH;v1e=1;function t(e){const r=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="<<\\s*"+n+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",u="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",d=u.trim().split(" ").map(function(_){return _.split("|")[0]}).join("|"),h="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",f="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",p="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",m="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(_){return _.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+l+o,built_in:h+f+p},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+m+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:u.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:a,relevance:10}]}}return RH=t,RH}var OH,y1e;function eEt(){if(y1e)return OH;y1e=1;function t(e){const r=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),a=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s=r.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+i},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),h=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(D,M)=>{M.data._beginMatch=D[1]||D[2]},"on:end":(D,M)=>{M.data._beginMatch!==D[1]&&M.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ 	
]`,m={scope:"string",variants:[h,d,f,p]},_={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],S={keyword:y,literal:(D=>{const M=[];return D.forEach(P=>{M.push(P),P.toLowerCase()===P?M.push(P.toUpperCase()):M.push(P.toLowerCase())}),M})(v),built_in:b},T=D=>D.map(M=>M.replace(/\|\d+$/,"")),C={variants:[{match:[/new/,r.concat(g,"+"),r.concat("(?!",T(b).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},x=r.concat(i,"\\b(?!\\()"),A={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,r.concat(/::/,r.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[a,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},R={scope:"attr",match:r.concat(i,r.lookahead(":"),r.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[R,o,A,e.C_BLOCK_COMMENT_MODE,m,_,C]},L={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",T(y).join("\\b|"),"|",T(b).join("\\b|"),"\\b)"),i,r.concat(g,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(L);const F=[R,A,e.C_BLOCK_COMMENT_MODE,m,_,C],O={begin:r.concat(/#\[\s*\\?/,r.either(a,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:a},{match:s}]}]};return{case_insensitive:!1,keywords:S,contains:[O,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},o,L,A,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},C,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:S,contains:["self",O,o,A,e.C_BLOCK_COMMENT_MODE,m,_]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},m,_]}}return OH=t,OH}var IH,b1e;function tEt(){if(b1e)return IH;b1e=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return IH=t,IH}var NH,E1e;function rEt(){if(E1e)return NH;E1e=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return NH=t,NH}var kH,S1e;function nEt(){if(S1e)return kH;S1e=1;function t(e){const r={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:r,contains:[s,n,i,a,o,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return kH=t,kH}var DH,T1e;function iEt(){if(T1e)return DH;T1e=1;function t(e){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",a={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},s=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},l={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},u={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},h={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},f={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},p=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),g={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},m={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},_={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:s,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[l]}]},v={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,h,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},y={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},b={className:"selector-tag",begin:/@\B/,relevance:0},E={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(a.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},S=[E,p,o,e.NUMBER_MODE,d,h,g,l,u,b],T={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",S,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return E.contains.unshift(T),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:a,contains:S.concat(m,_,v,y,T)}}return DH=t,DH}var MH,C1e;function aEt(){if(C1e)return MH;C1e=1;function t(e){const r=e.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,a={variants:[{match:r.concat(r.either(...n),r.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:r.concat(/\b(?!for|if|while)/,i,r.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,i],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},u=["boolean","byte","char","color","double","float","int","long","short"],d=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,...d],type:u},contains:[l,s,a,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return MH=t,MH}var LH,w1e;function sEt(){if(w1e)return LH;w1e=1;function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return LH=t,LH}var PH,x1e;function oEt(){if(x1e)return PH;x1e=1;function t(e){const r={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},l={className:"string",begin:/0'(\\'|.)/},u={className:"string",begin:/0'\\s/},h=[r,n,i,{begin:/:-/},a,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l,u,e.C_NUMBER_MODE];return i.contains=h,a.contains=h,{name:"Prolog",contains:h.concat([{begin:/\.$/}])}}return PH=t,PH}var FH,A1e;function lEt(){if(A1e)return FH;A1e=1;function t(e){const r="[ \\t\\f]*",n="[ \\t\\f]+",i=r+"[:=]"+r,a=n,s="("+i+"|"+a+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",l={end:s,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+i},{begin:o+a}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:l},{className:"attr",begin:o+r+"$"}]}}return FH=t,FH}var BH,R1e;function cEt(){if(R1e)return BH;R1e=1;function t(e){const r=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:r,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return BH=t,BH}var UH,O1e;function uEt(){if(O1e)return UH;O1e=1;function t(e){const r={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:i}),s={className:"variable",begin:"\\$"+i},o={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,s,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:r,relevance:0,contains:[o,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}}return UH=t,UH}var $H,I1e;function dEt(){if(I1e)return $H;I1e=1;function t(e){const r={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until  UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},r,n]}}return $H=t,$H}var GH,N1e;function hEt(){if(N1e)return GH;N1e=1;function t(e){const r=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},h={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",g=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,m=`\\b|${i.join("|")}`,_={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${g}))[eE][+-]?(${p})[jJ]?(?=${m})`},{begin:`(${g})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${p})[jJ](?=${m})`}]},v={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",u,_,f,e.HASH_COMMENT_MODE]}]};return d.contains=[f,_,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,_,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,v,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[_,y,f]}]}}return GH=t,GH}var zH,k1e;function fEt(){if(k1e)return zH;k1e=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return zH=t,zH}var qH,D1e;function pEt(){if(D1e)return qH;D1e=1;function t(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return qH=t,qH}var VH,M1e;function gEt(){if(M1e)return VH;M1e=1;function t(e){const r=e.regex,n={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",a={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},l={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},u={begin:r.concat(i,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},s,a,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,l,u],illegal:/#/}}return VH=t,VH}var HH,L1e;function mEt(){if(L1e)return HH;L1e=1;function t(e){const r=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return HH=t,HH}var YH,P1e;function _Et(){if(P1e)return YH;P1e=1;function t(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return YH=t,YH}var WH,F1e;function vEt(){if(F1e)return WH;F1e=1;function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}return WH=t,WH}var KH,B1e;function yEt(){if(B1e)return KH;B1e=1;function t(e){const r="[a-zA-Z-_][^\\n{]+\\{",n={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+r,end:/\}/,keywords:"facet",contains:[n,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+r,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",n,e.HASH_COMMENT_MODE]},{begin:"^"+r,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}return KH=t,KH}var jH,U1e;function bEt(){if(U1e)return jH;U1e=1;function t(e){const r="foreach do while for if from to step else on-error and or not in",n="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",i="add remove enable disable set get print export edit find run debug error info warning",a="true false yes no nothing nil null",s="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",o={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},u={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:a,keyword:r+" :"+r.split(" ").join(" :")+" :"+n.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),l,u,o,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,u,o,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+i.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return jH=t,jH}var XH,$1e;function EEt(){if($1e)return XH;$1e=1;function t(e){const r=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],n=["matrix","float","color","point","normal","vector"],i=["while","for","if","do","return","else","break","extern","continue"],a={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:i,built_in:r,type:n},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return XH=t,XH}var QH,G1e;function SEt(){if(G1e)return QH;G1e=1;function t(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return QH=t,QH}var ZH,z1e;function TEt(){if(z1e)return ZH;z1e=1;function t(e){const r=e.regex,n=/(r#)?/,i=r.concat(n,e.UNDERSCORE_IDENT_RE),a=r.concat(n,e.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,r.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",l=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],u=["true","false","Some","None","Ok","Err"],d=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],h=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:h,keyword:l,literal:u,built_in:d},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:d,type:h}},{className:"punctuation",begin:"->"},s]}}return ZH=t,ZH}var JH,q1e;function CEt(){if(q1e)return JH;q1e=1;function t(e){const r=e.regex,n=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],i=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],a=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:n},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+r.either(...a)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:r.either(...i)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return JH=t,JH}var eY,V1e;function wEt(){if(V1e)return eY;V1e=1;function t(e){const r=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},a={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},l={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},u={className:"function",beginKeywords:"def",end:r.lookahead(/[:={\[(\n;]/),contains:[o]},d={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},h={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],p={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,u,l,e.C_NUMBER_MODE,d,h,...f,p,n]}}return eY=t,eY}var tY,H1e;function xEt(){if(H1e)return tY;H1e=1;function t(e){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",i=n+"[+\\-]"+n+"i",a={$pattern:r,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"literal",begin:"(#t|#f|#\\\\"+r+"|#\\\\.)"},o={className:"number",variants:[{begin:n,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,u=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:r,relevance:0},h={className:"symbol",begin:"'"+r},f={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,l,o,d,h]}]},g={className:"name",relevance:0,begin:r,keywords:a},_={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},g,f]};return f.contains=[s,o,l,d,h,p,_].concat(u),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),o,l,h,p,_].concat(u)}}return tY=t,tY}var rY,Y1e;function AEt(){if(Y1e)return rY;Y1e=1;function t(e){const r=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:r},e.COMMENT("//","$")].concat(r)}}return rY=t,rY}var nY,W1e;function REt(){if(W1e)return nY;W1e=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=t(u),h=s,f=a,p="@[a-z-]+",g="and or not only",_={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,d.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+h.join("|")+")"},_,{begin:/\(/,end:/\)/,contains:[d.CSS_NUMBER_MODE]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[d.BLOCK_COMMENT,_,d.HEXCOLOR,d.CSS_NUMBER_MODE,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:p,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:p,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},_,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.HEXCOLOR,d.CSS_NUMBER_MODE]},d.FUNCTION_DISPATCH]}}return nY=l,nY}var iY,K1e;function OEt(){if(K1e)return iY;K1e=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return iY=t,iY}var aY,j1e;function IEt(){if(j1e)return aY;j1e=1;function t(e){const r=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+r.join("|")+")\\s"},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return aY=t,aY}var sY,X1e;function NEt(){if(X1e)return sY;X1e=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,i,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,i]}]}}return sY=t,sY}var oY,Q1e;function kEt(){if(Q1e)return oY;Q1e=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return oY=t,oY}var lY,Z1e;function DEt(){if(Z1e)return lY;Z1e=1;function t(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:a,built_in:o,literal:s},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,r,n,i,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return lY=t,lY}var cY,J1e;function MEt(){if(J1e)return cY;J1e=1;function t(e){const r=e.regex,n=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],g=h,m=[...d,...u].filter(T=>!h.includes(T)),_={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={match:r.concat(/\b/,r.either(...g),/\s*\(/),relevance:0,keywords:{built_in:g}};function b(T){return r.concat(/\b/,r.either(...T.map(C=>C.replace(/\s+/,"\\s+"))),/\b/)}const E={scope:"keyword",match:b(p),relevance:0};function S(T,{exceptions:C,when:x}={}){const A=x;return C=C||[],T.map(R=>R.match(/\|\d+$/)||C.includes(R)?R:A(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:S(m,{when:T=>T.length<3}),literal:s,type:l,built_in:f},contains:[{scope:"type",match:b(o)},E,y,_,i,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,v]}}return cY=t,cY}var uY,eve;function LEt(){if(eve)return uY;eve=1;function t(e){const r=e.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],a=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],s=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],o=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],l=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),u={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},d=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:n,type:a,keyword:i,built_in:s},contains:[e.C_LINE_COMMENT_MODE,u,e.HASH_COMMENT_MODE,l,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:r.concat(/[<,]\s*/,r.either(...d),/\s*=/),keywords:d},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,r.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:o,begin:r.concat(/\w*/,r.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,r.concat(r.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+r.either(...o)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:r.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return uY=t,uY}var dY,tve;function PEt(){if(tve)return dY;tve=1;function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ 	]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return dY=t,dY}var hY,rve;function FEt(){if(rve)return hY;rve=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return hY=t,hY}var fY,nve;function BEt(){if(nve)return fY;nve=1;const t=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(u){const d=t(u),h="and or not only",f={className:"variable",begin:"\\$"+u.IDENT_RE},p=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],g="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,d.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+g,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+g,className:"selector-id"},{begin:"\\b("+n.join("|")+")"+g,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+g},{className:"selector-pseudo",begin:"&?:(:)?("+s.join("|")+")"+g},d.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:i.join(" ")},contains:[d.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+p.join("|")+"))\\b"},f,d.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[d.HEXCOLOR,f,u.APOS_STRING_MODE,d.CSS_NUMBER_MODE,u.QUOTE_STRING_MODE]}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[d.HEXCOLOR,f,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,d.CSS_NUMBER_MODE,u.C_BLOCK_COMMENT_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},d.FUNCTION_DISPATCH]}}return fY=l,fY}var pY,ive;function UEt(){if(ive)return pY;ive=1;function t(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return pY=t,pY}var gY,ave;function $Et(){if(ave)return gY;ave=1;function t(x){return x?typeof x=="string"?x:x.source:null}function e(x){return r("(?=",x,")")}function r(...x){return x.map(R=>t(R)).join("")}function n(x){const A=x[x.length-1];return typeof A=="object"&&A.constructor===Object?(x.splice(x.length-1,1),A):{}}function i(...x){return"("+(n(x).capture?"":"?:")+x.map(I=>t(I)).join("|")+")"}const a=x=>r(/\b/,x,/\w$/.test(x)?/\b/:/\B/),s=["Protocol","Type"].map(a),o=["init","self"].map(a),l=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],g=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),m=i(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),_=r(g,m,"*"),v=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y=i(v,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),b=r(v,y,"*"),E=r(/[A-Z]/,y,"*"),S=["attached","autoclosure",r(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,b,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],T=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function C(x){const A={match:/\s+/,relevance:0},R=x.COMMENT("/\\*","\\*/",{contains:["self"]}),I=[x.C_LINE_COMMENT_MODE,R],L={match:[/\./,i(...s,...o)],className:{2:"keyword"}},F={match:r(/\./,i(...u)),relevance:0},O=u.filter(He=>typeof He=="string").concat(["_|0"]),D=u.filter(He=>typeof He!="string").concat(l).map(a),M={variants:[{className:"keyword",match:i(...D,...o)}]},P={$pattern:i(/\b\w+/,/#\w+/),keyword:O.concat(f),literal:d},N=[L,F,M],$={match:r(/\./,i(...p)),relevance:0},U={className:"built_in",match:r(/\b/,i(...p),/(?=\()/)},B=[$,U],V={match:/->/,relevance:0},z={className:"operator",relevance:0,variants:[{match:_},{match:`\\.(\\.|${m})+`}]},G=[V,z],Y="([0-9]_*)+",W="([0-9a-fA-F]_*)+",Q={className:"number",relevance:0,variants:[{match:`\\b(${Y})(\\.(${Y}))?([eE][+-]?(${Y}))?\\b`},{match:`\\b0x(${W})(\\.(${W}))?([pP][+-]?(${Y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ie=(He="")=>({className:"subst",variants:[{match:r(/\\/,He,/[0\\tnr"']/)},{match:r(/\\/,He,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Z=(He="")=>({className:"subst",match:r(/\\/,He,/[\t ]*(?:[\r\n]|\r\n)/)}),re=(He="")=>({className:"subst",label:"interpol",begin:r(/\\/,He,/\(/),end:/\)/}),K=(He="")=>({begin:r(He,/"""/),end:r(/"""/,He),contains:[ie(He),Z(He),re(He)]}),j=(He="")=>({begin:r(He,/"/),end:r(/"/,He),contains:[ie(He),re(He)]}),se={className:"string",variants:[K(),K("#"),K("##"),K("###"),j(),j("#"),j("##"),j("###")]},le=[x.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[x.BACKSLASH_ESCAPE]}],_e={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:le},ye=He=>{const Je=r(He,/\//),ht=r(/\//,He);return{begin:Je,end:ht,contains:[...le,{scope:"comment",begin:`#(?!.*${ht})`,end:/$/}]}},Ue={scope:"regexp",variants:[ye("###"),ye("##"),ye("#"),_e]},Se={match:r(/`/,b,/`/)},be={className:"variable",match:/\$\d+/},ke={className:"variable",match:`\\$${y}+`},Ae=[Se,be,ke],tt={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:T,contains:[...G,Q,se]}]}},Oe={scope:"keyword",match:r(/@/,i(...S),e(i(/\(/,/\s+/)))},je={scope:"meta",match:r(/@/,b)},ct=[tt,Oe,je],Fe={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y,"+")},{className:"type",match:E,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,e(E)),relevance:0}]},Xe={begin:/</,end:/>/,keywords:P,contains:[...I,...N,...ct,V,Fe]};Fe.contains.push(Xe);const et={match:r(b,/\s*:/),keywords:"_|0",relevance:0},Ie={begin:/\(/,end:/\)/,relevance:0,keywords:P,contains:["self",et,...I,Ue,...N,...B,...G,Q,se,...Ae,...ct,Fe]},we={begin:/</,end:/>/,keywords:"repeat each",contains:[...I,Fe]},ce={begin:i(e(r(b,/\s*:/)),e(r(b,/\s+/,b,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:b}]},Te={begin:/\(/,end:/\)/,keywords:P,contains:[ce,...I,...N,...G,Q,se,...ct,Fe,Ie],endsParent:!0,illegal:/["']/},fe={match:[/(func|macro)/,/\s+/,i(Se.match,b,_)],className:{1:"keyword",3:"title.function"},contains:[we,Te,A],illegal:[/\[/,/%/]},Be={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[we,Te,A],illegal:/\[|%/},me={match:[/operator/,/\s+/,_],className:{1:"keyword",3:"title"}},Ye={begin:[/precedencegroup/,/\s+/,E],className:{1:"keyword",3:"title"},contains:[Fe],keywords:[...h,...d],end:/}/},qe={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},lt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},it={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,b,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:P,contains:[we,...N,{begin:/:/,end:/\{/,keywords:P,contains:[{scope:"title.class.inherited",match:E},...N],relevance:0}]};for(const He of se.variants){const Je=He.contains.find(rt=>rt.label==="interpol");Je.keywords=P;const ht=[...N,...B,...G,Q,se,...Ae];Je.contains=[...ht,{begin:/\(/,end:/\)/,contains:["self",...ht]}]}return{name:"Swift",keywords:P,contains:[...I,fe,Be,qe,lt,it,me,Ye,{beginKeywords:"import",end:/$/,contains:[...I],relevance:0},Ue,...N,...B,...G,Q,se,...Ae,...ct,Fe,Ie]}}return gY=C,gY}var mY,sve;function GEt(){if(sve)return mY;sve=1;function t(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return mY=t,mY}var _Y,ove;function zEt(){if(ove)return _Y;ove=1;function t(e){const r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,a]},l=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},m={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},m,_,s,o],y=[...v];return y.pop(),y.push(l),g.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return _Y=t,_Y}var vY,lve;function qEt(){if(lve)return vY;lve=1;function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return vY=t,vY}var yY,cve;function VEt(){if(cve)return yY;cve=1;function t(e){const r=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:r.concat(/\$/,r.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}}return yY=t,yY}var bY,uve;function HEt(){if(uve)return bY;uve=1;function t(e){const r=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:r,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...r,"set","list","map"]},end:">",contains:["self"]}]}}return bY=t,bY}var EY,dve;function YEt(){if(dve)return EY;dve=1;function t(e){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",r,n]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",r,e.QUOTE_STRING_MODE,n]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[i,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return EY=t,EY}var SY,hve;function WEt(){if(hve)return SY;hve=1;function t(e){const r=e.regex,n=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],i=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let a=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];a=a.concat(a.map(m=>`end${m}`));const s={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:"number",match:/\d+/},l={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[s,o]},u={beginKeywords:n.join(" "),keywords:{name:n},relevance:0,contains:[l]},d={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:i}]},h=(m,{relevance:_})=>({beginScope:{1:"template-tag",3:"name"},relevance:_||2,endScope:"template-tag",begin:[/\{%/,/\s*/,r.either(...m)],end:/%\}/,keywords:"in",contains:[d,u,s,o]}),f=/[a-z_]+/,p=h(a,{relevance:2}),g=h([f],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),p,g,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",d,u,s,o]}]}}return SY=t,SY}var TY,fve;function KEt(){if(fve)return TY;fve=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,n,i);function l(d){const h=d.regex,f=(ie,{after:Z})=>{const re="</"+ie[0].slice(1);return ie.input.indexOf(re,Z)!==-1},p=t,g={begin:"<>",end:"</>"},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ie,Z)=>{const re=ie[0].length+ie.index,K=ie.input[re];if(K==="<"||K===","){Z.ignoreMatch();return}K===">"&&(f(ie,{after:re})||Z.ignoreMatch());let j;const se=ie.input.substring(re);if(j=se.match(/^\s*=/)){Z.ignoreMatch();return}if((j=se.match(/^\s+extends\s+/))&&j.index===0){Z.ignoreMatch();return}}},v={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},y="[0-9](_?[0-9])*",b=`\\.(${y})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${E})((${b})|\\.)?|(${b}))[eE][+-]?(${y})\\b`},{begin:`\\b(${E})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},T={className:"subst",begin:"\\$\\{",end:"\\}",keywords:v,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"graphql"}},R={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,T]},L={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},F=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,C,x,A,R,{match:/\$\d+/},S];T.contains=F.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat(F)});const O=[].concat(L,T.contains),D=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:v,contains:["self"].concat(O)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:D},P={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,h.concat(p,"(",h.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},N={relevance:0,match:h.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...n,...i]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function V(ie){return h.concat("(?!",ie.join("|"),")")}const z={match:h.concat(/\b/,V([...a,"super","import"].map(ie=>`${ie}\\s*\\(`)),p,h.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:h.concat(/\./,h.lookahead(h.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},W="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(W)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:D,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,C,x,A,R,L,{match:/\$\d+/},S,N,{scope:"attr",match:p+h.lookahead(":"),relevance:0},Q,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[L,d.REGEXP_MODE,{className:"function",begin:W,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:D}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:m},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,d.inherit(d.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},G,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},z,B,P,Y,{match:/\$[(.]/}]}}function u(d){const h=d.regex,f=l(d),p=t,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],m={begin:[/namespace/,/\s+/,d.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},_={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[f.exports.CLASS_REFERENCE]},v={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},y=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],b={$pattern:t,keyword:e.concat(y),literal:r,built_in:o.concat(g),"variable.language":s},E={className:"meta",begin:"@"+p},S=(A,R,I)=>{const L=A.contains.findIndex(F=>F.label===R);if(L===-1)throw new Error("can not find mode to replace");A.contains.splice(L,1,I)};Object.assign(f.keywords,b),f.exports.PARAMS_CONTAINS.push(E);const T=f.contains.find(A=>A.scope==="attr"),C=Object.assign({},T,{match:h.concat(p,h.lookahead(/\s*\?:/))});f.exports.PARAMS_CONTAINS.push([f.exports.CLASS_REFERENCE,T,C]),f.contains=f.contains.concat([E,m,_,C]),S(f,"shebang",d.SHEBANG()),S(f,"use_strict",v);const x=f.contains.find(A=>A.label==="func.def");return x.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return TY=u,TY}var CY,pve;function jEt(){if(pve)return CY;pve=1;function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return CY=t,CY}var wY,gve;function XEt(){if(gve)return wY;gve=1;function t(e){const r=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:r.concat(/# */,r.either(s,a),/ *#/)},{begin:r.concat(/# */,l,/ *#/)},{begin:r.concat(/# */,o,/ *#/)},{begin:r.concat(/# */,r.either(s,a),/ +/,r.either(o,l),/ *#/)}]},d={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},h={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,i,u,d,h,f,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}return wY=t,wY}var xY,mve;function QEt(){if(mve)return xY;mve=1;function t(e){const r=e.regex,n=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],i=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],a={begin:r.concat(r.either(...n),"\\s*\\("),relevance:0,keywords:{built_in:n}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:i,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[a,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return xY=t,xY}var AY,_ve;function ZEt(){if(_ve)return AY;_ve=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return AY=t,AY}var RY,vve;function JEt(){if(vve)return RY;vve=1;function t(e){const r=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},i=["__FILE__","__LINE__"],a=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:r.concat(/`/,r.either(...i))},{scope:"meta",begin:r.concat(/`/,r.either(...a)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:a}]}}return RY=t,RY}var OY,yve;function eSt(){if(yve)return OY;yve=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,i=r+"(\\."+r+")?("+n+")?",a="\\w+",o="\\b("+(r+"#"+a+"(\\."+a+")?#("+n+")?")+"|"+i+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return OY=t,OY}var IY,bve;function tSt(){if(bve)return IY;bve=1;function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return IY=t,IY}var NY,Eve;function rSt(){if(Eve)return NY;Eve=1;function t(e){e.regex;const r=e.COMMENT(/\(;/,/;\)/);r.contains.push("self");const n=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},d={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[n,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,a,e.QUOTE_STRING_MODE,u,d,l]}}return NY=t,NY}var kY,Sve;function nSt(){if(Sve)return kY;Sve=1;function t(e){const r=e.regex,n=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],a=["true","false","null"],s=["this","super"],o=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],l=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],u={relevance:0,match:r.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:"title.function"},d={match:r.concat(r.either(r.concat(/\b(?!(if|while|for|else|super)\b)/,n),r.either(...l)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:n}]}]}},h={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},f={relevance:0,match:r.either(...l),className:"operator"},p={className:"string",begin:/"""/,end:/"""/},g={className:"property",begin:r.concat(/\./,r.lookahead(n)),end:n,excludeBegin:!0,relevance:0},m={relevance:0,match:r.concat(/\b_/,n),scope:"variable"},_={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:o}},v=e.C_NUMBER_MODE,y={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},b=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),E={scope:"subst",begin:/%\(/,end:/\)/,contains:[v,_,u,m,f]},S={scope:"string",begin:/"/,end:/"/,contains:[E,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};E.contains.push(S);const T=[...i,...s,...a],C={relevance:0,match:r.concat("\\b(?!",T.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":s,literal:a},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:a},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},v,S,p,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,h,y,d,u,f,m,g,C]}}return kY=t,kY}var DY,Tve;function iSt(){if(Tve)return DY;Tve=1;function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0  xmm1  xmm2  xmm3  xmm4  xmm5  xmm6  xmm7  xmm8  xmm9 xmm10  xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0  ymm1  ymm2  ymm3  ymm4  ymm5  ymm6  ymm7  ymm8  ymm9 ymm10  ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0  zmm1  zmm2  zmm3  zmm4  zmm5  zmm6  zmm7  zmm8  zmm9 zmm10  zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__  __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__  __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return DY=t,DY}var MY,Cve;function aSt(){if(Cve)return MY;Cve=1;function t(e){const r=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],n=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],i=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],s={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:r,literal:["true","false","nil"],built_in:n.concat(i)},o={className:"string",begin:'"',end:'"',illegal:"\\n"},l={className:"string",begin:"'",end:"'",illegal:"\\n"},u={className:"string",begin:"<<",end:">>"},d={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},h={beginKeywords:"import",end:"$",keywords:s,contains:[o]},f={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:s}})]};return{name:"XL",aliases:["tao"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,l,u,f,h,d,e.NUMBER_MODE]}}return MY=t,MY}var LY,wve;function sSt(){if(wve)return LY;wve=1;function t(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return LY=t,LY}var PY,xve;function oSt(){if(xve)return PY;xve=1;function t(e){const r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},a="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:["self",e.C_BLOCK_COMMENT_MODE,r,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},r,i]}}return PY=t,PY}var FY,Ave;function lSt(){if(Ave)return FY;Ave=1;var t=UDe();return t.registerLanguage("1c",kvt()),t.registerLanguage("abnf",Dvt()),t.registerLanguage("accesslog",Mvt()),t.registerLanguage("actionscript",Lvt()),t.registerLanguage("ada",Pvt()),t.registerLanguage("angelscript",Fvt()),t.registerLanguage("apache",Bvt()),t.registerLanguage("applescript",Uvt()),t.registerLanguage("arcade",$vt()),t.registerLanguage("arduino",Gvt()),t.registerLanguage("armasm",zvt()),t.registerLanguage("xml",qvt()),t.registerLanguage("asciidoc",Vvt()),t.registerLanguage("aspectj",Hvt()),t.registerLanguage("autohotkey",Yvt()),t.registerLanguage("autoit",Wvt()),t.registerLanguage("avrasm",Kvt()),t.registerLanguage("awk",jvt()),t.registerLanguage("axapta",Xvt()),t.registerLanguage("bash",Qvt()),t.registerLanguage("basic",Zvt()),t.registerLanguage("bnf",Jvt()),t.registerLanguage("brainfuck",eyt()),t.registerLanguage("c",tyt()),t.registerLanguage("cal",ryt()),t.registerLanguage("capnproto",nyt()),t.registerLanguage("ceylon",iyt()),t.registerLanguage("clean",ayt()),t.registerLanguage("clojure",syt()),t.registerLanguage("clojure-repl",oyt()),t.registerLanguage("cmake",lyt()),t.registerLanguage("coffeescript",cyt()),t.registerLanguage("coq",uyt()),t.registerLanguage("cos",dyt()),t.registerLanguage("cpp",hyt()),t.registerLanguage("crmsh",fyt()),t.registerLanguage("crystal",pyt()),t.registerLanguage("csharp",gyt()),t.registerLanguage("csp",myt()),t.registerLanguage("css",_yt()),t.registerLanguage("d",vyt()),t.registerLanguage("markdown",yyt()),t.registerLanguage("dart",byt()),t.registerLanguage("delphi",Eyt()),t.registerLanguage("diff",Syt()),t.registerLanguage("django",Tyt()),t.registerLanguage("dns",Cyt()),t.registerLanguage("dockerfile",wyt()),t.registerLanguage("dos",xyt()),t.registerLanguage("dsconfig",Ayt()),t.registerLanguage("dts",Ryt()),t.registerLanguage("dust",Oyt()),t.registerLanguage("ebnf",Iyt()),t.registerLanguage("elixir",Nyt()),t.registerLanguage("elm",kyt()),t.registerLanguage("ruby",Dyt()),t.registerLanguage("erb",Myt()),t.registerLanguage("erlang-repl",Lyt()),t.registerLanguage("erlang",Pyt()),t.registerLanguage("excel",Fyt()),t.registerLanguage("fix",Byt()),t.registerLanguage("flix",Uyt()),t.registerLanguage("fortran",$yt()),t.registerLanguage("fsharp",Gyt()),t.registerLanguage("gams",zyt()),t.registerLanguage("gauss",qyt()),t.registerLanguage("gcode",Vyt()),t.registerLanguage("gherkin",Hyt()),t.registerLanguage("glsl",Yyt()),t.registerLanguage("gml",Wyt()),t.registerLanguage("go",Kyt()),t.registerLanguage("golo",jyt()),t.registerLanguage("gradle",Xyt()),t.registerLanguage("graphql",Qyt()),t.registerLanguage("groovy",Zyt()),t.registerLanguage("haml",Jyt()),t.registerLanguage("handlebars",ebt()),t.registerLanguage("haskell",tbt()),t.registerLanguage("haxe",rbt()),t.registerLanguage("hsp",nbt()),t.registerLanguage("http",ibt()),t.registerLanguage("hy",abt()),t.registerLanguage("inform7",sbt()),t.registerLanguage("ini",obt()),t.registerLanguage("irpf90",lbt()),t.registerLanguage("isbl",cbt()),t.registerLanguage("java",ubt()),t.registerLanguage("javascript",dbt()),t.registerLanguage("jboss-cli",hbt()),t.registerLanguage("json",fbt()),t.registerLanguage("julia",pbt()),t.registerLanguage("julia-repl",gbt()),t.registerLanguage("kotlin",mbt()),t.registerLanguage("lasso",_bt()),t.registerLanguage("latex",vbt()),t.registerLanguage("ldif",ybt()),t.registerLanguage("leaf",bbt()),t.registerLanguage("less",Ebt()),t.registerLanguage("lisp",Sbt()),t.registerLanguage("livecodeserver",Tbt()),t.registerLanguage("livescript",Cbt()),t.registerLanguage("llvm",wbt()),t.registerLanguage("lsl",xbt()),t.registerLanguage("lua",Abt()),t.registerLanguage("makefile",Rbt()),t.registerLanguage("mathematica",Obt()),t.registerLanguage("matlab",Ibt()),t.registerLanguage("maxima",Nbt()),t.registerLanguage("mel",kbt()),t.registerLanguage("mercury",Dbt()),t.registerLanguage("mipsasm",Mbt()),t.registerLanguage("mizar",Lbt()),t.registerLanguage("perl",Pbt()),t.registerLanguage("mojolicious",Fbt()),t.registerLanguage("monkey",Bbt()),t.registerLanguage("moonscript",Ubt()),t.registerLanguage("n1ql",$bt()),t.registerLanguage("nestedtext",Gbt()),t.registerLanguage("nginx",zbt()),t.registerLanguage("nim",qbt()),t.registerLanguage("nix",Vbt()),t.registerLanguage("node-repl",Hbt()),t.registerLanguage("nsis",Ybt()),t.registerLanguage("objectivec",Wbt()),t.registerLanguage("ocaml",Kbt()),t.registerLanguage("openscad",jbt()),t.registerLanguage("oxygene",Xbt()),t.registerLanguage("parser3",Qbt()),t.registerLanguage("pf",Zbt()),t.registerLanguage("pgsql",Jbt()),t.registerLanguage("php",eEt()),t.registerLanguage("php-template",tEt()),t.registerLanguage("plaintext",rEt()),t.registerLanguage("pony",nEt()),t.registerLanguage("powershell",iEt()),t.registerLanguage("processing",aEt()),t.registerLanguage("profile",sEt()),t.registerLanguage("prolog",oEt()),t.registerLanguage("properties",lEt()),t.registerLanguage("protobuf",cEt()),t.registerLanguage("puppet",uEt()),t.registerLanguage("purebasic",dEt()),t.registerLanguage("python",hEt()),t.registerLanguage("python-repl",fEt()),t.registerLanguage("q",pEt()),t.registerLanguage("qml",gEt()),t.registerLanguage("r",mEt()),t.registerLanguage("reasonml",_Et()),t.registerLanguage("rib",vEt()),t.registerLanguage("roboconf",yEt()),t.registerLanguage("routeros",bEt()),t.registerLanguage("rsl",EEt()),t.registerLanguage("ruleslanguage",SEt()),t.registerLanguage("rust",TEt()),t.registerLanguage("sas",CEt()),t.registerLanguage("scala",wEt()),t.registerLanguage("scheme",xEt()),t.registerLanguage("scilab",AEt()),t.registerLanguage("scss",REt()),t.registerLanguage("shell",OEt()),t.registerLanguage("smali",IEt()),t.registerLanguage("smalltalk",NEt()),t.registerLanguage("sml",kEt()),t.registerLanguage("sqf",DEt()),t.registerLanguage("sql",MEt()),t.registerLanguage("stan",LEt()),t.registerLanguage("stata",PEt()),t.registerLanguage("step21",FEt()),t.registerLanguage("stylus",BEt()),t.registerLanguage("subunit",UEt()),t.registerLanguage("swift",$Et()),t.registerLanguage("taggerscript",GEt()),t.registerLanguage("yaml",zEt()),t.registerLanguage("tap",qEt()),t.registerLanguage("tcl",VEt()),t.registerLanguage("thrift",HEt()),t.registerLanguage("tp",YEt()),t.registerLanguage("twig",WEt()),t.registerLanguage("typescript",KEt()),t.registerLanguage("vala",jEt()),t.registerLanguage("vbnet",XEt()),t.registerLanguage("vbscript",QEt()),t.registerLanguage("vbscript-html",ZEt()),t.registerLanguage("verilog",JEt()),t.registerLanguage("vhdl",eSt()),t.registerLanguage("vim",tSt()),t.registerLanguage("wasm",rSt()),t.registerLanguage("wren",nSt()),t.registerLanguage("x86asm",iSt()),t.registerLanguage("xl",aSt()),t.registerLanguage("xquery",sSt()),t.registerLanguage("zephir",oSt()),t.HighlightJS=t,t.default=t,FY=t,FY}var cSt=lSt();const $T=sd(cSt);function uSt(t,e){if(!t)return"";try{const r=e.toLowerCase();return $T.getLanguage(r)?$T.highlight(t,{language:r}).value:$T.highlightAuto(t).value}catch{return t.replace(q_t,"&amp;").replace(V_t,"&lt;").replace(H_t,"&gt;")}}function dSt(t){const e=new RegExp(Dme.source,Dme.flags),r=[];let n;for(;(n=e.exec(t))!==null;){const d=n[0].startsWith($_t)?n.index+1:n.index;r.push(d)}if(r.length%2===0)return null;const i=r[r.length-1],s=t.slice(i+3).match(z_t),o=s?.[1]||G_t,l=i+3+(s?.[0]?.length??0),u=t.slice(l);return{language:o,code:u,openingIndex:i}}function r_(t,e,r){e in t&&(t[e]=r)}function kS(t,e){return t[e]}function hSt(t,e){const r={};for(const n of e){const i=kS(t,n);i!==void 0&&(r[n]=i)}return r}function Rve(t){const e=`${Jl}${i_t}`,r=new URL(e,window.location.origin);return r.searchParams.set(T1t,t),r}function fSt(t){const e={};for(const[r,n]of Object.entries(t))e[`x-proxy-header-${r}`]=n;return e}function pSt(t){return!!(t.includes(":")||/^\d{1,3}(\.\d{1,3}){3}$/.test(t))}function gSt(t){const e=t.hostname.toLowerCase();if(!e||pSt(e))return null;const r=e.split(".");if(r.length<2)return null;if(r.length>=3){const n=`${r[r.length-2]}.${r[r.length-1]}`;if(Evt.has(n))return r.slice(-3).join(".")}for(let n=2;n<=r.length;n++){const i=r.slice(-n).join(".");if(Svt.has(i))return r.length===n+1?e:r.slice(-(n+2)).join(".")}return r.slice(-2).join(".")}function mSt(t){try{const e=new URL(t);return e.protocol!==_u.HTTP&&e.protocol!==_u.HTTPS?null:e.href}catch{return null}}function Ove(t){const e=new Map;for(const r of t)e.set(r.conv.id,r.messages.length);return e}const _St=Array(12).fill(0);var vSt=ae('<div class="sonner-loading-bar"></div>'),ySt=ae('<div><div class="sonner-spinner"></div></div>');function bSt(t,e){We(e,!0);var r=ySt(),n=de(r);fn(n,23,()=>_St,(i,a)=>`spinner-bar-${a}`,(i,a)=>{var s=vSt();H(i,s)}),oe(n),oe(r),at(i=>{lr(r,1,i),Pr(r,"data-visible",e.visible)},[()=>Fn(["sonner-loading-wrapper",e.class].filter(Boolean).join(" "))]),H(t,r),Ke()}function Kg(...t){return t.filter(Boolean).join(" ")}const ESt=typeof document<"u",SSt=typeof window<"u"?window:void 0;function TSt(t){let e=t.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}class CSt{#e;#t;constructor(e={}){const{window:r=SSt,document:n=r?.document}=e;r!==void 0&&(this.#e=n,this.#t=L1(i=>{const a=Ai(r,"focusin",i),s=Ai(r,"focusout",i);return()=>{a(),s()}}))}get current(){return this.#t?.(),this.#e?TSt(this.#e):null}}new CSt;class wSt{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return wie(this.#t)}get(){const e=jm(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const r=jm(this.#t);return r===void 0?e:r}set(e){return M1(this.#t,e)}}const xSt=new wSt("<Toaster/>");let Ive=0;class ASt{#e=Me(Kr([]));get toasts(){return w(this.#e)}set toasts(e){J(this.#e,e,!0)}#t=Me(Kr([]));get heights(){return w(this.#t)}set heights(e){J(this.#t,e,!0)}#r=e=>{const r=this.toasts.findIndex(n=>n.id===e);return r===-1?null:r};addToast=e=>{ESt&&this.toasts.unshift(e)};updateToast=({id:e,data:r,type:n,message:i})=>{const a=this.toasts.findIndex(o=>o.id===e),s=this.toasts[a];this.toasts[a]={...s,...r,id:e,title:i,type:n,updated:!0}};create=e=>{const{message:r,...n}=e,i=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:Ive++,a=e.dismissable===void 0?!0:e.dismissable,s=e.type===void 0?"default":e.type;return Vi(()=>{this.toasts.find(l=>l.id===i)?this.updateToast({id:i,data:e,type:s,message:r,dismissable:a}):this.addToast({...n,id:i,title:r,dismissable:a,type:s})}),i};dismiss=e=>(Vi(()=>{if(e===void 0){this.toasts=this.toasts.map(n=>({...n,dismiss:!0}));return}const r=this.toasts.findIndex(n=>n.id===e);this.toasts[r]&&(this.toasts[r]={...this.toasts[r],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const r=this.#r(e);if(r!==null)return this.toasts.splice(r,1),e};message=(e,r)=>this.create({...r,type:"default",message:e});error=(e,r)=>this.create({...r,type:"error",message:e});success=(e,r)=>this.create({...r,type:"success",message:e});info=(e,r)=>this.create({...r,type:"info",message:e});warning=(e,r)=>this.create({...r,type:"warning",message:e});loading=(e,r)=>this.create({...r,type:"loading",message:e});promise=(e,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:e,type:"loading",message:typeof r.loading=="string"?r.loading:r.loading()}));const i=e instanceof Promise?e:e();let a=n!==void 0;return i.then(s=>{if(typeof s=="object"&&s&&"ok"in s&&typeof s.ok=="boolean"&&!s.ok){a=!1;const o=RSt(s);this.create({id:n,type:"error",message:o})}else if(r.success!==void 0){a=!1;const o=typeof r.success=="function"?r.success(s):r.success;this.create({id:n,type:"success",message:o})}}).catch(s=>{if(r.error!==void 0){a=!1;const o=typeof r.error=="function"?r.error(s):r.error;this.create({id:n,type:"error",message:o})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally?.()}),n};custom=(e,r)=>{const n=r?.id||Ive++;return this.create({component:e,id:n,...r}),n};removeHeight=e=>{this.heights=this.heights.filter(r=>r.toastId!==e)};setHeight=e=>{const r=this.#r(e.toastId);if(r===null){this.heights.push(e);return}this.heights[r]=e};reset=()=>{this.toasts=[],this.heights=[]}}function RSt(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const $a=new ASt;function OSt(t,e){return $a.create({message:t,...e})}class ISt{#e=ee(()=>$a.toasts.filter(e=>!e.dismiss));get toasts(){return w(this.#e)}}const NSt=OSt,ha=Object.assign(NSt,{success:$a.success,info:$a.info,warning:$a.warning,error:$a.error,custom:$a.custom,message:$a.message,promise:$a.promise,dismiss:$a.dismiss,loading:$a.loading,getActiveToasts:()=>$a.toasts.filter(t=>!t.dismiss)});function f4(t){return t.label!==void 0}function kSt(){let t=Me(Kr(typeof document<"u"?document.hidden:!1));return sr(()=>Ai(document,"visibilitychange",()=>{J(t,document.hidden,!0)})),{get current(){return w(t)}}}const Nve=4e3,DSt=14,MSt=45,LSt=200,PSt=.05,FSt={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function BSt(t){const[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}function kve(t){return 1/(1.5+Math.abs(t)/20)}var USt=ae("<div><!></div>"),$St=ae('<button data-close-button=""><!></button>'),GSt=ae('<div data-icon=""><!> <!></div>'),zSt=ae('<div data-description=""><!></div>'),qSt=ae('<button data-button="" data-cancel=""> </button>'),VSt=ae('<button data-button=""> </button>'),HSt=ae('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),YSt=ae('<li data-sonner-toast=""><!> <!></li>');function WSt(t,e){We(e,!0);const r=tt=>{var Oe=Ee(),je=ne(Oe);{var ct=Xe=>{var et=USt(),Ie=de(et);ft(Ie,()=>e.loadingIcon),oe(et),at(we=>{lr(et,1,we),Pr(et,"data-visible",w(T)==="loading")},[()=>Fn(Kg(w($)?.loader,e.toast?.classes?.loader,"sonner-loader"))]),H(Xe,et)},Fe=Xe=>{{let et=ee(()=>Kg(w($)?.loader,e.toast.classes?.loader)),Ie=ee(()=>w(T)==="loading");bSt(Xe,{get class(){return w(et)},get visible(){return w(Ie)}})}};Re(je,Xe=>{e.loadingIcon?Xe(ct):Xe(Fe,-1)})}H(tt,Oe)};let n=ue(e,"cancelButtonStyle",3,""),i=ue(e,"actionButtonStyle",3,""),a=ue(e,"descriptionClass",3,""),s=ue(e,"unstyled",3,!1),o=ue(e,"defaultRichColors",3,!1);const l={...FSt};let u=Me(!1),d=Me(!1),h=Me(!1),f=Me(!1),p=Me(!1),g=Me(0),m=Me(0),_=e.toast.duration||e.duration||Nve,v=Me(void 0),y=Me(null),b=Me(null);const E=ee(()=>e.index===0),S=ee(()=>e.index+1<=e.visibleToasts),T=ee(()=>e.toast.type),C=ee(()=>e.toast.dismissable!==!1),x=ee(()=>e.toast.class||""),A=ee(()=>e.toast.descriptionClass||""),R=ee(()=>$a.heights.findIndex(tt=>tt.toastId===e.toast.id)||0),I=ee(()=>e.toast.closeButton??e.closeButton),L=ee(()=>e.toast.duration??e.duration??Nve);let F=null;const O=ee(()=>e.position.split("-")),D=ee(()=>$a.heights.reduce((tt,Oe,je)=>je>=w(R)?tt:tt+Oe.height,0)),M=kSt(),P=ee(()=>e.toast.invert||e.invert),N=ee(()=>w(T)==="loading"),$=ee(()=>({...l,...e.classes})),U=ee(()=>e.toast.title),B=ee(()=>e.toast.description);let V=Me(0),z=Me(0);const G=ee(()=>Math.round(w(R)*DSt+w(D)));sr(()=>{w(U),w(B);let tt;e.expanded||e.expandByDefault?tt=1:tt=1-e.index*PSt;const Oe=Vi(()=>w(v));if(Oe===void 0)return;Oe.style.setProperty("height","auto");const je=Oe.offsetHeight,ct=Oe.getBoundingClientRect().height,Fe=Math.round(ct/tt+Number.EPSILON&100)/100;Oe.style.removeProperty("height");let Xe;Math.abs(Fe-je)<1?Xe=Fe:Xe=je,J(m,Xe,!0),Vi(()=>{$a.setHeight({toastId:e.toast.id,height:Xe})})});function Y(){J(d,!0),J(g,w(G),!0),$a.removeHeight(e.toast.id),setTimeout(()=>{$a.remove(e.toast.id)},LSt)}let W;const Q=ee(()=>e.toast.promise&&w(T)==="loading"||e.toast.duration===Number.POSITIVE_INFINITY);function ie(){J(V,new Date().getTime(),!0),W=setTimeout(()=>{e.toast.onAutoClose?.(e.toast),Y()},_)}function Z(){if(w(z)<w(V)){const tt=new Date().getTime()-w(V);_=_-tt}J(z,new Date().getTime(),!0)}sr(()=>{e.toast.updated&&(clearTimeout(W),_=w(L),ie())}),sr(()=>(w(Q)||(e.expanded||e.interacting||M.current?Z():ie()),()=>clearTimeout(W))),Ns(()=>{J(u,!0);const tt=w(v)?.getBoundingClientRect().height;return J(m,tt,!0),$a.setHeight({toastId:e.toast.id,height:tt}),()=>{$a.removeHeight(e.toast.id)}}),sr(()=>{e.toast.delete&&Vi(()=>{Y(),e.toast.onDismiss?.(e.toast)})});const re=tt=>{if(w(N))return;J(g,w(G),!0);const Oe=tt.target;Oe.setPointerCapture(tt.pointerId),Oe.tagName!=="BUTTON"&&(J(h,!0),F={x:tt.clientX,y:tt.clientY})},K=()=>{if(w(f)||!w(C))return;F=null;const tt=Number(w(v)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),Oe=Number(w(v)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),je=new Date().getTime()-0,ct=w(y)==="x"?tt:Oe,Fe=Math.abs(ct)/je;if(Math.abs(ct)>=MSt||Fe>.11){J(g,w(G),!0),e.toast.onDismiss?.(e.toast),w(y)==="x"?J(b,tt>0?"right":"left",!0):J(b,Oe>0?"down":"up",!0),Y(),J(f,!0);return}else w(v)?.style.setProperty("--swipe-amount-x","0px"),w(v)?.style.setProperty("--swipe-amount-y","0px");J(p,!1),J(h,!1),J(y,null)},j=tt=>{if(!F||!w(C)||(window.getSelection()?.toString().length??-1)>0)return;const je=tt.clientY-F.y,ct=tt.clientX-F.x,Fe=e.swipeDirections??BSt(e.position);!w(y)&&(Math.abs(ct)>1||Math.abs(je)>1)&&J(y,Math.abs(ct)>Math.abs(je)?"x":"y",!0);let Xe={x:0,y:0};if(w(y)==="y"){if(Fe.includes("top")||Fe.includes("bottom"))if(Fe.includes("top")&&je<0||Fe.includes("bottom")&&je>0)Xe.y=je;else{const et=je*kve(je);Xe.y=Math.abs(et)<Math.abs(je)?et:je}}else if(w(y)==="x"&&(Fe.includes("left")||Fe.includes("right")))if(Fe.includes("left")&&ct<0||Fe.includes("right")&&ct>0)Xe.x=ct;else{const et=ct*kve(ct);Xe.x=Math.abs(et)<Math.abs(ct)?et:ct}(Math.abs(Xe.x)>0||Math.abs(Xe.y)>0)&&J(p,!0),w(v)?.style.setProperty("--swipe-amount-x",`${Xe.x}px`),w(v)?.style.setProperty("--swipe-amount-y",`${Xe.y}px`)},se=()=>{J(h,!1),J(y,null),F=null},le=ee(()=>e.toast.icon?e.toast.icon:w(T)==="success"?e.successIcon:w(T)==="error"?e.errorIcon:w(T)==="warning"?e.warningIcon:w(T)==="info"?e.infoIcon:w(T)==="loading"?e.loadingIcon:null);var _e=YSt();Pr(_e,"tabindex",0);let ye;var Ue=de(_e);{var Se=tt=>{var Oe=$St(),je=de(Oe);ft(je,()=>e.closeIcon??Tt),oe(Oe),at(ct=>{Pr(Oe,"aria-label",e.closeButtonAriaLabel),Pr(Oe,"data-disabled",w(N)),lr(Oe,1,ct)},[()=>Fn(Kg(w($)?.closeButton,e.toast?.classes?.closeButton))]),tn("click",Oe,()=>{w(N)||!w(C)||(Y(),e.toast.onDismiss?.(e.toast))}),H(tt,Oe)};Re(Ue,tt=>{w(I)&&!e.toast.component&&w(T)!=="loading"&&e.closeIcon!==null&&tt(Se)})}var be=he(Ue,2);{var ke=tt=>{const Oe=ee(()=>e.toast.component);var je=Ee(),ct=ne(je);Le(ct,()=>w(Oe),(Fe,Xe)=>{Xe(Fe,Bt(()=>e.toast.componentProps,{closeToast:Y}))}),H(tt,je)},Ae=tt=>{var Oe=HSt(),je=ne(Oe);{var ct=Ye=>{var qe=GSt(),lt=de(qe);{var it=ht=>{var rt=Ee(),$e=ne(rt);{var xe=Ve=>{var Ut=Ee(),kt=ne(Ut);Le(kt,()=>e.toast.icon,(gt,Ct)=>{Ct(gt,{})}),H(Ve,Ut)},pt=Ve=>{r(Ve)};Re($e,Ve=>{e.toast.icon?Ve(xe):Ve(pt,-1)})}H(ht,rt)};Re(lt,ht=>{(e.toast.promise||w(T)==="loading")&&ht(it)})}var He=he(lt,2);{var Je=ht=>{var rt=Ee(),$e=ne(rt);{var xe=gt=>{var Ct=Ee(),mt=ne(Ct);Le(mt,()=>e.toast.icon,(qt,De)=>{De(qt,{})}),H(gt,Ct)},pt=gt=>{var Ct=Ee(),mt=ne(Ct);ft(mt,()=>e.successIcon??Tt),H(gt,Ct)},Ve=gt=>{var Ct=Ee(),mt=ne(Ct);ft(mt,()=>e.errorIcon??Tt),H(gt,Ct)},Ut=gt=>{var Ct=Ee(),mt=ne(Ct);ft(mt,()=>e.warningIcon??Tt),H(gt,Ct)},kt=gt=>{var Ct=Ee(),mt=ne(Ct);ft(mt,()=>e.infoIcon??Tt),H(gt,Ct)};Re($e,gt=>{e.toast.icon?gt(xe):w(T)==="success"?gt(pt,1):w(T)==="error"?gt(Ve,2):w(T)==="warning"?gt(Ut,3):w(T)==="info"&&gt(kt,4)})}H(ht,rt)};Re(He,ht=>{e.toast.type!=="loading"&&ht(Je)})}oe(qe),at(ht=>lr(qe,1,ht),[()=>Fn(Kg(w($)?.icon,e.toast?.classes?.icon))]),H(Ye,qe)};Re(je,Ye=>{(w(T)||e.toast.icon||e.toast.promise)&&e.toast.icon!==null&&(w(le)!==null||e.toast.icon)&&Ye(ct)})}var Fe=he(je,2),Xe=de(Fe),et=de(Xe);{var Ie=Ye=>{var qe=Ee(),lt=ne(qe);{var it=Je=>{const ht=ee(()=>e.toast.title);var rt=Ee(),$e=ne(rt);Le($e,()=>w(ht),(xe,pt)=>{pt(xe,Bt(()=>e.toast.componentProps))}),H(Je,rt)},He=Je=>{var ht=fr();at(()=>yt(ht,e.toast.title)),H(Je,ht)};Re(lt,Je=>{typeof e.toast.title!="string"?Je(it):Je(He,-1)})}H(Ye,qe)};Re(et,Ye=>{e.toast.title&&Ye(Ie)})}oe(Xe);var we=he(Xe,2);{var ce=Ye=>{var qe=zSt(),lt=de(qe);{var it=Je=>{const ht=ee(()=>e.toast.description);var rt=Ee(),$e=ne(rt);Le($e,()=>w(ht),(xe,pt)=>{pt(xe,Bt(()=>e.toast.componentProps))}),H(Je,rt)},He=Je=>{var ht=fr();at(()=>yt(ht,e.toast.description)),H(Je,ht)};Re(lt,Je=>{typeof e.toast.description!="string"?Je(it):Je(He,-1)})}oe(qe),at(Je=>lr(qe,1,Je),[()=>Fn(Kg(a(),w(A),w($)?.description,e.toast.classes?.description))]),H(Ye,qe)};Re(we,Ye=>{e.toast.description&&Ye(ce)})}oe(Fe);var Te=he(Fe,2);{var fe=Ye=>{var qe=Ee(),lt=ne(qe);{var it=ht=>{var rt=Ee(),$e=ne(rt);Le($e,()=>e.toast.cancel,(xe,pt)=>{pt(xe,{})}),H(ht,rt)},He=ht=>{var rt=qSt(),$e=de(rt,!0);oe(rt),at(xe=>{du(rt,e.toast.cancelButtonStyle??n()),lr(rt,1,xe),yt($e,e.toast.cancel.label)},[()=>Fn(Kg(w($)?.cancelButton,e.toast?.classes?.cancelButton))]),tn("click",rt,xe=>{f4(e.toast.cancel)&&w(C)&&(e.toast.cancel?.onClick?.(xe),Y())}),H(ht,rt)},Je=ee(()=>f4(e.toast.cancel));Re(lt,ht=>{typeof e.toast.cancel=="function"?ht(it):w(Je)&&ht(He,1)})}H(Ye,qe)};Re(Te,Ye=>{e.toast.cancel&&Ye(fe)})}var Be=he(Te,2);{var me=Ye=>{var qe=Ee(),lt=ne(qe);{var it=ht=>{var rt=Ee(),$e=ne(rt);Le($e,()=>e.toast.action,(xe,pt)=>{pt(xe,{})}),H(ht,rt)},He=ht=>{var rt=VSt(),$e=de(rt,!0);oe(rt),at(xe=>{du(rt,e.toast.actionButtonStyle??i()),lr(rt,1,xe),yt($e,e.toast.action.label)},[()=>Fn(Kg(w($)?.actionButton,e.toast?.classes?.actionButton))]),tn("click",rt,xe=>{f4(e.toast.action)&&(e.toast.action?.onClick(xe),!xe.defaultPrevented&&Y())}),H(ht,rt)},Je=ee(()=>f4(e.toast.action));Re(lt,ht=>{typeof e.toast.action=="function"?ht(it):w(Je)&&ht(He,1)})}H(Ye,qe)};Re(Be,Ye=>{e.toast.action&&Ye(me)})}at(Ye=>lr(Xe,1,Ye),[()=>Fn(Kg(w($)?.title,e.toast?.classes?.title))]),H(tt,Oe)};Re(be,tt=>{e.toast.component?tt(ke):tt(Ae,-1)})}oe(_e),Qr(_e,tt=>J(v,tt),()=>w(v)),at((tt,Oe,je)=>{lr(_e,1,tt),Pr(_e,"data-rich-colors",e.toast.richColors??o()),Pr(_e,"data-styled",!(e.toast.component||e.toast.unstyled||s())),Pr(_e,"data-mounted",w(u)),Pr(_e,"data-promise",Oe),Pr(_e,"data-swiped",w(p)),Pr(_e,"data-removed",w(d)),Pr(_e,"data-visible",w(S)),Pr(_e,"data-y-position",w(O)[0]),Pr(_e,"data-x-position",w(O)[1]),Pr(_e,"data-index",e.index),Pr(_e,"data-front",w(E)),Pr(_e,"data-swiping",w(h)),Pr(_e,"data-dismissable",w(C)),Pr(_e,"data-type",w(T)),Pr(_e,"data-invert",w(P)),Pr(_e,"data-swipe-out",w(f)),Pr(_e,"data-swipe-direction",w(b)),Pr(_e,"data-expanded",je),ye=du(_e,`${e.style} ${e.toast.style}`,ye,{"--index":e.index,"--toasts-before":e.index,"--z-index":$a.toasts.length-e.index,"--offset":`${w(d)?w(g):w(G)}px`,"--initial-height":e.expandByDefault?"auto":`${w(m)}px`})},[()=>Fn(Kg(e.class,w(x),w($)?.toast,e.toast?.classes?.toast,w($)?.[w(T)],e.toast?.classes?.[w(T)])),()=>!!e.toast.promise,()=>!!(e.expanded||e.expandByDefault&&w(u))]),tn("pointermove",_e,j),tn("pointerup",_e,K),tn("pointerdown",_e,re),Ji("dragend",_e,se),H(t,_e),Ke()}Wi(["pointermove","pointerup","pointerdown","click"]);var KSt=F1('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function jSt(t){var e=KSt();H(t,e)}var XSt=F1('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function QSt(t){var e=XSt();H(t,e)}var ZSt=F1('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function JSt(t){var e=ZSt();H(t,e)}var eTt=F1('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function tTt(t){var e=eTt();H(t,e)}var rTt=F1('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function nTt(t){var e=rTt();H(t,e)}const iTt=3,$De="24px",GDe="16px",aTt=4e3,sTt=356,oTt=14,BY="dark",p4="light";function lTt(t,e){const r={};return[t,e].forEach((n,i)=>{const a=i===1,s=a?"--mobile-offset":"--offset",o=a?GDe:$De;function l(u){["top","right","bottom","left"].forEach(d=>{r[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{const d=n[u];d===void 0?r[`${s}-${u}`]=o:r[`${s}-${u}`]=typeof d=="number"?`${d}px`:d}):l(o)}),r}var cTt=ae("<ol></ol>"),uTt=ae('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function dTt(t,e){We(e,!0);function r(G){return G!=="system"?G:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?BY:p4}let n=ue(e,"invert",3,!1),i=ue(e,"position",3,"bottom-right"),a=ue(e,"hotkey",19,()=>["altKey","KeyT"]),s=ue(e,"expand",3,!1),o=ue(e,"closeButton",3,!1),l=ue(e,"offset",3,$De),u=ue(e,"mobileOffset",3,GDe),d=ue(e,"theme",3,"light"),h=ue(e,"richColors",3,!1),f=ue(e,"duration",3,aTt),p=ue(e,"visibleToasts",3,iTt),g=ue(e,"toastOptions",19,()=>({})),m=ue(e,"dir",7,"auto"),_=ue(e,"gap",3,oTt),v=ue(e,"containerAriaLabel",3,"Notifications"),y=ue(e,"closeButtonAriaLabel",3,"Close toast"),b=xt(e,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function E(){if(m()!=="auto")return m();if(typeof window>"u"||typeof document>"u")return"ltr";const G=document.documentElement.getAttribute("dir");return G==="auto"||!G?(Vi(()=>m(window.getComputedStyle(document.documentElement).direction??"ltr")),m()):(Vi(()=>m(G)),G)}const S=ee(()=>Array.from(new Set([i(),...$a.toasts.filter(G=>G.position).map(G=>G.position)].filter(Boolean))));let T=Me(!1),C=Me(!1),x=Me(Kr(r(d()))),A=Me(void 0),R=Me(null),I=Me(!1);const L=ee(()=>a().join("+").replace(/Key/g,"").replace(/Digit/g,""));sr(()=>{$a.toasts.length<=1&&J(T,!1)}),sr(()=>{const G=$a.toasts.filter(Y=>Y.dismiss&&!Y.delete);if(G.length>0){const Y=$a.toasts.map(W=>G.find(ie=>ie.id===W.id)?{...W,delete:!0}:W);$a.toasts=Y}}),sr(()=>()=>{w(A)&&w(R)&&(w(R).focus({preventScroll:!0}),J(R,null),J(I,!1))}),Ns(()=>($a.reset(),Ai(document,"keydown",Y=>{a().every(Q=>Y[Q]||Y.code===Q)&&(J(T,!0),w(A)?.focus()),Y.code==="Escape"&&(document.activeElement===w(A)||w(A)?.contains(document.activeElement))&&J(T,!1)}))),sr(()=>{if(d()!=="system"&&J(x,d()),typeof window<"u"){d()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?J(x,BY):J(x,p4));const G=window.matchMedia("(prefers-color-scheme: dark)"),Y=({matches:W})=>{J(x,W?BY:p4,!0)};"addEventListener"in G?G.addEventListener("change",Y):G.addListener(Y)}});const F=G=>{e.onblur?.(G),w(I)&&!G.currentTarget.contains(G.relatedTarget)&&(J(I,!1),w(R)&&(w(R).focus({preventScroll:!0}),J(R,null)))},O=G=>{e.onfocus?.(G),!(G.target instanceof HTMLElement&&G.target.dataset.dismissable==="false")&&(w(I)||(J(I,!0),J(R,G.relatedTarget,!0)))},D=G=>{e.onpointerdown?.(G),!(G.target instanceof HTMLElement&&G.target.dataset.dismissable==="false")&&J(C,!0)},M=G=>{e.onmouseenter?.(G),J(T,!0)},P=G=>{e.onmouseleave?.(G),w(C)||J(T,!1)},N=G=>{e.onmousemove?.(G),J(T,!0)},$=G=>{e.ondragend?.(G),J(T,!1)},U=G=>{e.onpointerup?.(G),J(C,!1)};xSt.set(new ISt);var B=uTt();Pr(B,"tabindex",-1);var V=de(B);{var z=G=>{var Y=Ee(),W=ne(Y);fn(W,18,()=>w(S),Q=>Q,(Q,ie,Z,re)=>{const K=ee(()=>{const[le,_e]=ie.split("-");return{y:le,x:_e}}),j=ee(()=>lTt(l(),u()));var se=cTt();Er(se,le=>({tabindex:-1,dir:le,class:e.class,"data-sonner-toaster":!0,"data-sonner-theme":w(x),"data-y-position":w(K).y,"data-x-position":w(K).x,style:e.style,onblur:F,onfocus:O,onmouseenter:M,onmousemove:N,onmouseleave:P,ondragend:$,onpointerdown:D,onpointerup:U,...b,[IS]:{"--front-toast-height":`${$a.heights[0]?.height}px`,"--width":`${sTt}px`,"--gap":`${_()}px`,"--offset-top":w(j)["--offset-top"],"--offset-right":w(j)["--offset-right"],"--offset-bottom":w(j)["--offset-bottom"],"--offset-left":w(j)["--offset-left"],"--mobile-offset-top":w(j)["--mobile-offset-top"],"--mobile-offset-right":w(j)["--mobile-offset-right"],"--mobile-offset-bottom":w(j)["--mobile-offset-bottom"],"--mobile-offset-left":w(j)["--mobile-offset-left"]}}),[()=>E()],void 0,void 0,"svelte-nbs0zk"),fn(se,23,()=>$a.toasts.filter(le=>!le.position&&w(Z)===0||le.position===ie),le=>le.id,(le,_e,ye,Ue)=>{{const Se=Te=>{var fe=Ee(),Be=ne(fe);{var me=qe=>{var lt=Ee(),it=ne(lt);ft(it,()=>e.successIcon??Tt),H(qe,lt)},Ye=qe=>{jSt(qe)};Re(Be,qe=>{e.successIcon?qe(me):e.successIcon!==null&&qe(Ye,1)})}H(Te,fe)},be=Te=>{var fe=Ee(),Be=ne(fe);{var me=qe=>{var lt=Ee(),it=ne(lt);ft(it,()=>e.errorIcon??Tt),H(qe,lt)},Ye=qe=>{QSt(qe)};Re(Be,qe=>{e.errorIcon?qe(me):e.errorIcon!==null&&qe(Ye,1)})}H(Te,fe)},ke=Te=>{var fe=Ee(),Be=ne(fe);{var me=qe=>{var lt=Ee(),it=ne(lt);ft(it,()=>e.warningIcon??Tt),H(qe,lt)},Ye=qe=>{JSt(qe)};Re(Be,qe=>{e.warningIcon?qe(me):e.warningIcon!==null&&qe(Ye,1)})}H(Te,fe)},Ae=Te=>{var fe=Ee(),Be=ne(fe);{var me=qe=>{var lt=Ee(),it=ne(lt);ft(it,()=>e.infoIcon??Tt),H(qe,lt)},Ye=qe=>{tTt(qe)};Re(Be,qe=>{e.infoIcon?qe(me):e.infoIcon!==null&&qe(Ye,1)})}H(Te,fe)},tt=Te=>{var fe=Ee(),Be=ne(fe);{var me=qe=>{var lt=Ee(),it=ne(lt);ft(it,()=>e.closeIcon??Tt),H(qe,lt)},Ye=qe=>{nTt(qe)};Re(Be,qe=>{e.closeIcon?qe(me):e.closeIcon!==null&&qe(Ye,1)})}H(Te,fe)};let Oe=ee(()=>g()?.duration??f()),je=ee(()=>g()?.class??""),ct=ee(()=>g()?.descriptionClass||""),Fe=ee(()=>g()?.style??""),Xe=ee(()=>g().classes||{}),et=ee(()=>g().unstyled??!1),Ie=ee(()=>g()?.cancelButtonStyle??""),we=ee(()=>g()?.actionButtonStyle??""),ce=ee(()=>g()?.closeButtonAriaLabel??y());WSt(le,{get index(){return w(ye)},get toast(){return w(_e)},get defaultRichColors(){return h()},get duration(){return w(Oe)},get class(){return w(je)},get descriptionClass(){return w(ct)},get invert(){return n()},get visibleToasts(){return p()},get closeButton(){return o()},get interacting(){return w(C)},get position(){return ie},get style(){return w(Fe)},get classes(){return w(Xe)},get unstyled(){return w(et)},get cancelButtonStyle(){return w(Ie)},get actionButtonStyle(){return w(we)},get closeButtonAriaLabel(){return w(ce)},get expandByDefault(){return s()},get expanded(){return w(T)},get loadingIcon(){return e.loadingIcon},successIcon:Se,errorIcon:be,warningIcon:ke,infoIcon:Ae,closeIcon:tt,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),oe(se),Qr(se,le=>J(A,le),()=>w(A)),at(()=>se.dir=se.dir),H(Q,se)}),H(G,Y)};Re(V,G=>{$a.toasts.length>0&&G(z)})}oe(B),at(()=>Pr(B,"aria-label",`${v()??""} ${w(L)??""}`)),H(t,B),Ke()}async function cR(t,e="Copied to clipboard",r="Failed to copy to clipboard"){try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(t),ha.success(e),!0;const n=document.createElement("textarea");n.value=t,n.style.position="fixed",n.style.left="-999999px",n.style.top="-999999px",document.body.appendChild(n),n.focus(),n.select();const i=document.execCommand("copy");if(document.body.removeChild(n),i)return ha.success(e),!0;throw new Error("execCommand failed")}catch(n){return console.error("Failed to copy to clipboard:",n),ha.error(r),!1}}async function hTt(t,e="Code copied to clipboard",r="Failed to copy code"){return cR(t,e,r)}function fTt(t,e,r=!1){const n=e?.filter(a=>a.type===hi.TEXT||a.type===hi.LEGACY_CONTEXT||a.type===hi.MCP_PROMPT||a.type===hi.MCP_RESOURCE)??[];if(n.length===0)return t;if(r){const a=[t];for(const s of n)a.push(s.content);return a.join(`

`)}const i=n.map(a=>{if(a.type===hi.MCP_PROMPT){const s=a;return{type:hi.MCP_PROMPT,name:s.name,serverName:s.serverName,promptName:s.promptName,content:s.content,arguments:s.arguments}}return{type:hi.TEXT,name:a.name,content:a.content}});return`${JSON.stringify(t)}
${JSON.stringify(i,null,2)}`}function pTt(t){const e={message:t,textAttachments:[],mcpPromptAttachments:[]};if(!t.startsWith('"'))return e;try{let r=-1,n=!1;for(let d=1;d<t.length;d++){const h=t[d];if(n){n=!1;continue}if(h==="\\"){n=!0;continue}if(h==='"'){r=d;break}}if(r===-1)return e;const i=t.substring(0,r+1),a=t.substring(r+1).trim(),s=JSON.parse(i);if(!a||!a.startsWith("["))return{message:s,textAttachments:[],mcpPromptAttachments:[]};const o=JSON.parse(a),l=[],u=[];for(const d of o)gTt(d)?u.push({type:hi.MCP_PROMPT,name:d.name,serverName:d.serverName,promptName:d.promptName,content:d.content,arguments:d.arguments}):mTt(d)&&l.push({type:hi.TEXT,name:d.name,content:d.content});return{message:s,textAttachments:l,mcpPromptAttachments:u}}catch{return e}}function gTt(t){if(typeof t!="object"||t===null)return!1;const e=t;return(e.type===hi.MCP_PROMPT||e.type==="MCP_PROMPT")&&typeof e.name=="string"&&typeof e.serverName=="string"&&typeof e.promptName=="string"&&typeof e.content=="string"}function mTt(t){if(typeof t!="object"||t===null)return!1;const e=t;return(e.type===hi.TEXT||e.type==="TEXT")&&typeof e.name=="string"&&typeof e.content=="string"}function g4(t){if(!t)return"FILE";if(t.includes("/")){const e=t.split("/").pop();if(e)return e.includes(".")?e.split(".").pop()?.toUpperCase()||"FILE":e.toUpperCase()}if(t.includes(".")){const e=t.split(".").pop();if(e)return e.toUpperCase()}return t.toUpperCase()}function zDe(t,e=150){return t.length>e?t.slice(0,e)+"...":t}function fI(t,e=!1){if(e){const r=t.split(a1).find(n=>n.trim().length>0);return r?r.trim():t.trim()}return t.trim()}function _Tt(t){return t.trim().toLowerCase()}function Md(t){switch(_Tt(t)){case ka.JPEG:case ka.PNG:case ka.GIF:case ka.WEBP:case ka.SVG:return xi.IMAGE;case xa.MP3_MPEG:case xa.MP3:case xa.MP4:case xa.WAV:case xa.WAVE:case xa.X_WAV:case xa.X_WAVE:case xa.VND_WAVE:case xa.X_PN_WAV:case xa.WEBM:case xa.WEBM_OPUS:return xi.AUDIO;case ak.MP4:case ak.OGG:return xi.VIDEO;case ik.PDF:return xi.PDF;case yr.PLAIN:case yr.MARKDOWN:case yr.ASCIIDOC:case yr.JAVASCRIPT:case yr.JAVASCRIPT_APP:case yr.TYPESCRIPT:case yr.JSX:case yr.TSX:case yr.CSS:case yr.HTML:case yr.JSON:case yr.XML_TEXT:case yr.XML_APP:case yr.YAML_TEXT:case yr.YAML_APP:case yr.CSV:case yr.PYTHON:case yr.JAVA:case yr.CPP_SRC:case yr.C_SRC:case yr.C_HDR:case yr.PHP:case yr.RUBY:case yr.GO:case yr.RUST:case yr.SHELL:case yr.BAT:case yr.SQL:case yr.R:case yr.SCALA:case yr.KOTLIN:case yr.SWIFT:case yr.DART:case yr.VUE:case yr.SVELTE:case yr.LATEX:case yr.BIBTEX:case yr.CUDA:case yr.CPP_HDR:case yr.CSHARP:case yr.HASKELL:case yr.PROPERTIES:case yr.TEX:case yr.TEX_APP:return xi.TEXT;default:return null}}function noe(t){switch(t.toLowerCase().substring(t.lastIndexOf("."))){case Rd.JPG:case Rd.JPEG:case Rd.PNG:case Rd.GIF:case Rd.WEBP:case Rd.SVG:return xi.IMAGE;case nk.MP3:case nk.WAV:return xi.AUDIO;case Use.PDF:return xi.PDF;case xr.TXT:case xr.MD:case xr.ADOC:case xr.JS:case xr.TS:case xr.JSX:case xr.TSX:case xr.CSS:case xr.HTML:case xr.HTM:case xr.JSON:case xr.XML:case xr.YAML:case xr.YML:case xr.CSV:case xr.LOG:case xr.PY:case xr.JAVA:case xr.CPP:case xr.C:case xr.H:case xr.PHP:case xr.RB:case xr.GO:case xr.RS:case xr.SH:case xr.BAT:case xr.SQL:case xr.R:case xr.SCALA:case xr.KT:case xr.SWIFT:case xr.DART:case xr.VUE:case xr.SVELTE:case xr.TEX:case xr.BIB:case xr.COMP:case xr.CU:case xr.CUH:case xr.HPP:case xr.HS:case xr.PROPERTIES:return xi.TEXT;default:return null}}function vTt(t,e){if(e){const n=Md(e);if(n===xi.IMAGE||n===xi.AUDIO||n===xi.PDF)return!0}const r=noe(t);return r===xi.IMAGE||r===xi.AUDIO||r===xi.PDF,!0}function F9(t){if(typeof t!="number")return"Unknown";if(t===0)return"0 Bytes";const e=1024,r=["Bytes","KB","MB","GB"],n=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,n)).toFixed(2))+" "+r[n]}function yTt(t){return typeof t!="number"?"Unknown":t>=1e9?`${(t/1e9).toFixed(2)}B`:t>=1e6?`${(t/1e6).toFixed(2)}M`:t>=1e3?`${(t/1e3).toFixed(2)}K`:t.toString()}function m4(t){return typeof t!="number"?"Unknown":t.toLocaleString()}function Dve(t){try{const e=JSON.parse(t);return JSON.stringify(e,null,2)}catch{return t}}function bTt(t){return t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function _4(t){if(t<0)return"0s";const e=t/xP;if(e<J_t)return`${e.toFixed(1)}s`;if(e<e1t)return`${e.toFixed(1)}s`;const r=Math.floor(e/Lme),n=Math.floor(e%Lme/Mme),i=Math.floor(e%Mme),a=[];return r>0&&a.push(`${r}h`),n>0&&a.push(`${n}min`),(i>0||a.length===0)&&a.push(`${i}s`),a.join(" ")}function hO(t,e,r,n){const i=n?`${e} (${n})`:e;return`

--- ${t}: ${i} ---
${r}`}function ETt(t){if(!t)return{preview:"",overflow:0};const e=t.split(a1);let r="";for(let a=e.length-1;a>=0;a--){let s=e[a].trim();if(s){s=s.replace(r1t,"");for(const[o,l]of t1t)s=s.replace(o,l);if(s.length>0){r=s;break}}}const n=r.length,i=Math.max(0,n-Jz);return n>Jz&&(r=r.slice(0,Jz)+"..."),{preview:r,overflow:i}}function qDe(t){return t.isComposing||t.keyCode===229}function STt(t,e){return t.includes("$")?t.split(`
`).map(r=>{if(r.indexOf("$")==-1)return r;let n="",i=0;for(;i<r.length;){const a=r.indexOf("$",i);if(a==-1){n+=r.slice(i);break}const s=r.indexOf("$",a+1);if(s==-1){n+=r.slice(i);break}const o=a>0?r[a-1]:"",l=r[a+1],u=a+1<s?r[s-1]:"",d=s+1<r.length?r[s+1]:"";let h=!1;if(s==i+1&&(h=!0),/[A-Za-z0-9_$-]/.test(o)&&(h=!0),/[0-9]/.test(l)&&(/[A-Za-z0-9_$-]/.test(d)||u==" ")&&(h=!0),h){n+=r.slice(i,a+1),i=a+1;continue}n+=r.slice(i,a);const f=r.slice(a,s+1);e.push(f),n+=`<<LATEX_${e.length-1}>>`,i=s+1}return n}).join(`
`):t}function TTt(t){return t.replace(s1t,(e,r,n,i)=>r??(n!=null?`$$${n}$$`:i!=null?`$${i}$`:e))}function Mve(t){const e=new Map;t=t.split(`
`).map((s,o)=>{const l=s.match(/^(>\s*)/);return l?(e.set(o,l[1]),s.slice(l[1].length)):s}).join(`
`);const i=[];t=t.replace(a1t,s=>(i.push(s),`<<CODE_BLOCK_${i.length-1}>>`));const a=[];return t=t.replace(/([\S].*?)\\\[([\s\S]*?)\\\](.*)/g,(s,o,l,u)=>{if(o.endsWith("\\"))return s;const d=/\S/.test(u);let h;return d?(a.push(`\\(${l.trim()}\\)`),h=""):(a.push(`\\[${l}\\]`),h=`
`),`${o}${h}<<LATEX_${a.length-1}>>${h}${u}`}),t=t.replace(new RegExp("(\\$\\$[\\s\\S]*?\\$\\$|(?<!\\\\)\\\\\\[[\\s\\S]*?\\\\\\]|(?<!\\\\)\\\\\\(.*?\\\\\\))","g"),s=>(a.push(s),`<<LATEX_${a.length-1}>>`)),t=STt(t,a),t=t.replace(/\$(?=\d)/g,"\\$"),t=t.replace(/<<LATEX_(\d+)>>/g,(s,o)=>{let l=a[parseInt(o)];const u=l.match(o1t);if(u){const d=u[1],h=d.startsWith(`
`)?"":`
`,f=d.endsWith(`
`)?"":`
`;l="$$"+h+d+f+"$$"}return l}),t=TTt(t),t=t.replace(new RegExp("(?<!\\\\)\\\\\\((.+?)\\\\\\)","g"),"$$$1$").replace(new RegExp("(?<!\\\\)\\\\\\[([\\s\\S]*?)\\\\\\]","g"),(s,o)=>`$$${o}$$`),t=t.replace(/<<CODE_BLOCK_(\d+)>>/g,(s,o)=>i[parseInt(o)]),e.size>0&&(t=t.split(`
`).map((l,u)=>{const d=e.get(u);return d?d+l:l}).join(`
`)),t}function CTt(t,e){const r=[],n=[],i={},{hasVision:a,hasAudio:s,hasVideo:o}=e;for(const l of t){const u=Md(l.type);let d=!0,h="";switch(u){case xi.IMAGE:a||(d=!1,h="Images require a vision-capable model");break;case xi.AUDIO:s||(d=!1,h="Audio files require an audio-capable model");break;case xi.VIDEO:o||(d=!1,h="Video files require a video-capable model");break;case xi.TEXT:case xi.PDF:break}d?r.push(l):(n.push(l),i[l.name]=h)}return{supportedFiles:r,unsupportedFiles:n,modalityReasons:i}}function wTt(t){const e=t.trim();if(!e)return"";const r=e.split(/[\\/]/);if(r.length===2){const[a,s]=r,o=a?.trim(),l=s?.trim();if(o&&l)return`${o}/${l}`}const i=r.pop()?.trim();return i&&i.length>0?i:e}function m_(t){return typeof t=="number"?Math.round(t*Vme)/Vme:t}function ioe(t){switch(t.toLowerCase().substring(t.lastIndexOf("."))){case".js":case".mjs":case".cjs":return"javascript";case".ts":case".mts":case".cts":return"typescript";case".jsx":return"javascript";case".tsx":return"typescript";case".html":case".htm":return"html";case".css":return"css";case".scss":return"scss";case".less":return"less";case".vue":return"html";case".svelte":return"html";case".json":return"json";case".xml":return"xml";case".yaml":case".yml":return"yaml";case".toml":return"ini";case".csv":return"plaintext";case".py":return"python";case".java":return"java";case".kt":case".kts":return"kotlin";case".scala":return"scala";case".cpp":case".cc":case".cxx":case".c++":return"cpp";case".c":return"c";case".h":case".hpp":return"cpp";case".cs":return"csharp";case".go":return"go";case".rs":return"rust";case".rb":return"ruby";case".php":return"php";case".swift":return"swift";case".dart":return"dart";case".r":return"r";case".lua":return"lua";case".pl":case".pm":return"perl";case".sh":case".bash":case".zsh":return"bash";case".bat":case".cmd":return"dos";case".ps1":return"powershell";case".sql":return"sql";case".md":case".markdown":return"markdown";case".tex":case".latex":return"latex";case".adoc":case".asciidoc":return"asciidoc";case".ini":case".cfg":case".conf":return"ini";case".dockerfile":return"dockerfile";case".nginx":return"nginx";case".graphql":case".gql":return"graphql";case".proto":return"protobuf";case".diff":case".patch":return"diff";case".log":return"plaintext";case".txt":return"plaintext";default:return"plaintext"}}async function xTt(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=i=>{i.target?.result!==null&&i.target?.result!==void 0?e(i.target.result):r(new Error("Failed to read file"))},n.onerror=()=>r(new Error("File reading error")),n.readAsText(t)})}function ATt(t,e={}){if(!t)return!0;const r={...E_t,...e},n=t.substring(0,r.prefixLength);let i=0,a=0;for(let s=0;s<n.length;s++){const o=n.charCodeAt(s);if(o===0){i++;continue}o<32&&o!==9&&o!==10&&o!==13&&(o<8||o>13&&o<27)&&a++,o===65533&&a++}return!(i>r.maxAbsoluteNullBytes||a/n.length>r.suspiciousCharThresholdRatio)}function VDe(t,e){let r=null;return(...n)=>{r&&clearTimeout(r),r=setTimeout(()=>{t(...n),r=null},e)}}function RTt(t){return t.replace(n1t,"").slice(0,_De)}function OTt(t){return t.replace(i1t,"").slice(0,vDe)}function ITt(t){return`<div class="image-error-content">
		<span>Image cannot be displayed</span>
		<a href="${t}" target="_blank" rel="noopener noreferrer">(open link)</a>
	</div>`}function Lve(t){const e=t.trim().toLowerCase();return e.startsWith(_u.WEBSOCKET)||e.startsWith(_u.WEBSOCKET_SECURE)?ju.WEBSOCKET:ju.STREAMABLE_HTTP}function Pve(t){if(!t)return[];let e;if(typeof t=="string"){const r=t.trim();if(!r)return[];try{e=JSON.parse(r)}catch(n){return console.warn("[MCP] Failed to parse mcpServers JSON, ignoring value:",n),[]}}else e=t;return Array.isArray(e)?e.map((r,n)=>{const i=typeof r?.url=="string"?r.url.trim():"",a=typeof r?.headers=="string"?r.headers.trim():void 0;return{id:typeof r?.id=="string"&&r.id?.trim()?r.id.trim():`${Zse}-${n+1}`,enabled:!!r?.enabled,url:i,name:r?.name,requestTimeoutSeconds:r?.requestTimeoutSeconds??qs.requestTimeoutSeconds,headers:a||void 0,useProxy:!!r?.useProxy}}):[]}function NTt(t){switch(t){case zu.ERROR:return J5e;case zu.WARN:return B1;default:return eb}}function kTt(t){switch(t){case zu.ERROR:return"text-destructive";case zu.WARN:return"text-yellow-600 dark:text-yellow-500";default:return"text-muted-foreground"}}function DTt(t){return t?.startsWith(Jx.IMAGE)??!1}function B9(t){try{return t.replace(N1t,"").split(B1t).filter(r=>r.length>0)}catch{return[t]}}function MTt(t){return t.replace(k1t,"").split(D1t).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}function vZ(t){try{const e=B9(t.uri);return e[e.length-1]||t.name||t.uri}catch{return t.name||t.uri}}function LTt(t,e){const r=t?.toLowerCase()||"",n=e?.toLowerCase()||"";return r.includes(Od.JSON)||r.includes(Od.JAVASCRIPT)||r.includes(Od.TYPESCRIPT)||SDe.test(n)}function PTt(t,e){const r=t?.toLowerCase()||"",n=e?.toLowerCase()||"";return r.startsWith(Jx.IMAGE)||EDe.test(n)}function HDe(t,e){const r=t?.toLowerCase()||"",n=e?.toLowerCase()||"";return r.startsWith(Jx.IMAGE)||EDe.test(n)?Vse:r.includes(Od.JSON)||r.includes(Od.JAVASCRIPT)||r.includes(Od.TYPESCRIPT)||SDe.test(n)?eDe:r.includes(Jx.TEXT)||I1t.test(n)?ng:n.includes(ZQ.DATABASE_KEYWORD)||n.includes(ZQ.DATABASE_SCHEME)?zse:s5}function fO(t){return t?t.filter(e=>"text"in e).map(e=>e.text).join(U1t):""}function FTt(t){return t?t.filter(e=>"blob"in e):[]}function YDe(t,e=yr.PLAIN,r=TDe){const n=new Blob([t],{type:e}),i=URL.createObjectURL(n),a=document.createElement("a");a.href=i,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)}function v4(t){const e=t.indexOf(iq);if(e===-1)return t;const r=t.substring(0,e),n=t.substring(e+iq.length).replace(_vt,"");return`${r}${iq}${n}`}function WDe(t){const e=[],r=new Set;let n;for(M9.lastIndex=0;(n=M9.exec(t))!==null;){const i=n[1]||"",a=n[2];for(const s of a.split(",")){const o=s.replace(ODe,"").replace(IDe,"").trim();o&&!r.has(o)&&(r.add(o),e.push({name:o,operator:i}))}}return e}function BTt(t,e){return M9.lastIndex=0,t.replace(M9,(r,n,i)=>{const a=i.split(",").map(o=>o.replace(ODe,"").replace(IDe,"").trim()),s=a.map(o=>e[o]??"").filter(o=>o!=="");if(s.length===0)return"";switch(n){case e_.RESERVED:return s.join(dh.COMMA);case e_.FRAGMENT:return e_.FRAGMENT+s.join(dh.COMMA);case e_.PATH_SEGMENT:return dh.SLASH+s.join(dh.SLASH);case e_.LABEL:return dh.PERIOD+s.join(dh.PERIOD);case e_.PATH_PARAM:return a.filter((o,l)=>s[l]).map((o,l)=>`${dh.SEMICOLON}${o}=${s[l]}`).join("");case e_.FORM_QUERY:return dh.QUERY_PREFIX+a.filter((o,l)=>s[l]).map((o,l)=>`${encodeURIComponent(o)}=${encodeURIComponent(s[l])}`).join(dh.QUERY_CONTINUATION);case e_.FORM_CONTINUATION:return dh.QUERY_CONTINUATION+a.filter((o,l)=>s[l]).map((o,l)=>`${encodeURIComponent(o)}=${encodeURIComponent(s[l])}`).join(dh.COMMA);default:return s.map(o=>encodeURIComponent(o)).join(dh.COMMA)}})}function UTt(t,e){return WDe(t).every(n=>(e[n.name]??"").trim()!=="")}function hk(t,e){return`data:${t};base64,${e}`}function $Tt(t){if(!t?.trim())return[];try{const e=JSON.parse(t);if(typeof e=="object"&&e!==null&&!Array.isArray(e))return Object.entries(e).map(([r,n])=>({key:r,value:String(n)}))}catch{return[]}return[]}function GTt(t){const e=t.filter(n=>n.key.trim());if(e.length===0)return"";const r={};for(const n of e)r[n.key.trim()]=n.value;return JSON.stringify(r)}function UY(t,e=[],r=[],n=!1){const i=[];if(t.reasoningContent){const s=U9(t.toolCalls),o=!!t.content?.trim()||s.length>0||r.length>0,l=n&&!o;i.push({type:l?ca.REASONING_PENDING:ca.REASONING,content:t.reasoningContent,wasInterrupted:!n&&!o})}t.content?.trim()&&i.push({type:ca.TEXT,content:t.content});const a=U9(t.toolCalls);for(const s of a){const o=e.find(u=>u.toolCallId===s.id),l=o?ca.TOOL_CALL:n?ca.TOOL_CALL_PENDING:ca.TOOL_CALL;i.push({type:l,content:o?.content||"",toolName:s.function?.name,toolArgs:s.function?.arguments,toolResult:o?.content,toolResultExtras:o?.extra})}for(const s of r)s.id&&a.find(o=>o.id===s.id)||i.push({type:ca.TOOL_CALL_STREAMING,content:"",toolName:s.function?.name,toolArgs:s.function?.arguments});return i}function aoe(t,e=[],r=[],n=!1){if(!e.some(l=>l.role===br.ASSISTANT))return UY(t,e,r,n);const a=[],s=Fve(e,0);a.push(...UY(t,s));let o=s.length;for(;o<e.length;){const l=e[o];if(l.role===br.ASSISTANT){const u=Fve(e,o+1),d=o+1+u.length>=e.length;a.push(...UY(l,u,d?r:[],d&&n)),o+=1+u.length}else o++}return a}function Fve(t,e){const r=[];for(let n=e;n<t.length&&t[n].role===br.TOOL;n++)r.push(t[n]);return r}function zTt(t,e){return t.split(a1).map(n=>{const i=n.match(r_t);if(!i||!e)return{text:n};const a=i[1],s=e.find(o=>o.type===hi.IMAGE&&o.name===a);return{text:n,image:s}})}function U9(t){if(!t)return[];try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}function KDe(t,e=[]){return t.toolCalls&&U9(t.toolCalls).length>0?!0:e.length>0}function qTt(t,e){const r=t[e];if(!r||r.role!==br.ASSISTANT)return{kind:Ay.APPEND_TEXT};if(!(U9(r.toolCalls).length>0))return{kind:Ay.APPEND_TEXT};let i=e;for(let a=e+1;a<t.length&&t[a].role===br.TOOL;a++)i=a;return i>e?{kind:Ay.NEXT_TURN,truncateAfter:i}:{kind:Ay.RERUN_TURN,truncateAfter:e-1}}class VTt{cache=new Map;ttlMs;maxEntries;onEvict;constructor(e={}){this.ttlMs=e.ttlMs??pDe,this.maxEntries=e.maxEntries??S_t,this.onEvict=e.onEvict}get(e){const r=this.cache.get(e);return r?Date.now()>r.expiresAt?(this.delete(e),null):(r.lastAccessed=Date.now(),r.value):null}set(e,r,n){this.cache.size>=this.maxEntries&&!this.cache.has(e)&&this.evictOldest();const i=n??this.ttlMs,a=Date.now();this.cache.set(e,{value:r,expiresAt:a+i,lastAccessed:a})}has(e){const r=this.cache.get(e);return r?Date.now()>r.expiresAt?(this.delete(e),!1):!0:!1}delete(e){const r=this.cache.get(e);return r&&this.onEvict&&this.onEvict(e,r.value),this.cache.delete(e)}clear(){if(this.onEvict)for(const[e,r]of this.cache)this.onEvict(e,r.value);this.cache.clear()}get size(){return this.cache.size}prune(){const e=Date.now();let r=0;for(const[n,i]of this.cache)e>i.expiresAt&&(this.delete(n),r++);return r}keys(){const e=Date.now(),r=[];for(const[n,i]of this.cache)e<=i.expiresAt&&r.push(n);return r}evictOldest(){let e=null,r=1/0;for(const[n,i]of this.cache)i.lastAccessed<r&&(r=i.lastAccessed,e=n);e!==null&&this.delete(e)}touch(e){const r=this.cache.get(e);if(!r)return!1;const n=Date.now();return n>r.expiresAt?(this.delete(e),!1):(r.expiresAt=n+this.ttlMs,r.lastAccessed=n,!0)}}function HTt(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function YTt(t,e,r){return e?.method?e.method:typeof Request<"u"&&t instanceof Request?t.method:r?.method??"GET"}function WTt(t,e){if(e?.body!==void 0)return e.body;if(typeof Request<"u"&&t instanceof Request)return t.body}function KTt(t){return t==null?{kind:"empty"}:typeof t=="string"?{kind:"string",size:t.length}:t instanceof Blob?{kind:"blob",size:t.size}:t instanceof URLSearchParams?{kind:"urlsearchparams",size:t.toString().length}:t instanceof FormData?{kind:"formdata"}:t instanceof ArrayBuffer?{kind:"arraybuffer",size:t.byteLength}:ArrayBuffer.isView(t)?{kind:t.constructor.name,size:t.byteLength}:{kind:typeof t}}function jTt(t){const e=t instanceof Error?t.message:String(t);return e.includes("Failed to fetch")?`${e} (check CORS?)`:e}function XTt(t){if(typeof t=="string")try{const e=JSON.parse(t),n=(Array.isArray(e)?e:[e]).map(i=>typeof i?.method=="string"?i.method:void 0).filter(i=>!!i);return n.length>0?n:void 0}catch{return}}function QTt(t){if(t?.aborted)throw new DOMException("Operation was aborted","AbortError")}function Td(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof Error&&t.name==="AbortError"}function Up(){return globalThis.crypto?.randomUUID?.()??Math.random().toString(36).substring(2)}function Bve(t){const e=parseFloat(t),r=parseFloat(getComputedStyle(document.documentElement).fontSize);return e*r}function Tb(t,e){We(e,!1);let r=ue(e,"ariaLabel",8,"Copy to clipboard"),n=ue(e,"canCopy",8,!0),i=ue(e,"text",8);GF();{let a=B3(()=>!n());as(t,{get icon(){return tDe},get tooltip(){return r()},iconSize:"h-4 w-4",get disabled(){return w(a)},onclick:()=>n()&&cR(i())})}Ke()}var ZTt=ae("<button><!> <!></button>");function yZ(t,e){let r=ue(e,"class",3,""),n=xt(e,["$$slots","$$events","$$legacy","children","class","icon"]);var i=ZTt();Er(i,()=>({...n,class:["inline-flex cursor-pointer items-center gap-1 rounded-sm bg-muted-foreground/15 px-1.5 py-0.75",r()]}));var a=de(i);{var s=l=>{var u=Ee(),d=ne(u);ft(d,()=>e.icon),H(l,u)};Re(a,l=>{e.icon&&l(s)})}var o=he(a,2);ft(o,()=>e.children),oe(i),H(t,i)}var JTt=ae("<!> Vision (Image)",1),eCt=ae("<!> Vision (Video)",1),tCt=ae("<!> Audio",1),rCt=ae("<span><!></span>");function nCt(t,e){We(e,!0);let r=ue(e,"class",3,"");var n=Ee(),i=ne(n);fn(i,16,()=>e.modalities,a=>a,(a,s)=>{var o=Ee(),l=ne(o);{var u=d=>{var h=rCt(),f=de(h);{var p=_=>{var v=JTt(),y=ne(v);qse(y,{class:"h-3 w-3"}),Gt(),H(_,v)},g=_=>{var v=eCt(),y=ne(v);oR(y,{class:"h-3 w-3"}),Gt(),H(_,v)},m=_=>{var v=tCt(),y=ne(v);Hse(y,{class:"h-3 w-3"}),Gt(),H(_,v)};Re(f,_=>{s===Nm.VISION?_(p):s===Nm.VIDEO?_(g,1):_(m,-1)})}oe(h),at(()=>lr(h,1,Fn(["inline-flex items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs font-medium",r()]))),H(d,h)};Re(l,d=>{(s===Nm.VISION||s===Nm.AUDIO||s===Nm.VIDEO)&&d(u)})}H(a,o)}),H(t,n),Ke()}var iCt=ae('<div class="flex flex-wrap items-start justify-end gap-3"></div>'),aCt=ae("<div><!></div>"),sCt=ae("<!> <!> <!>",1);function jDe(t,e){We(e,!0);const r=(R,I=Tt)=>{oCt(R,{get imageClass(){return l()},get imageHeight(){return u()},get imageWidth(){return d()},get item(){return I()},get limitToSingleRow(){return h()},get onFileRemove(){return e.onFileRemove},onMcpResourcePreview:b,onPreview:(L,F)=>y(L,F),get readonly(){return s()}})};let n=ue(e,"class",3,""),i=ue(e,"style",3,""),a=ue(e,"attachments",19,()=>[]),s=ue(e,"readonly",3,!1),o=ue(e,"uploadedFiles",27,()=>Kr([])),l=ue(e,"imageClass",3,""),u=ue(e,"imageHeight",3,"h-24"),d=ue(e,"imageWidth",3,"w-auto"),h=ue(e,"limitToSingleRow",3,!1),f=Me(void 0),p=Me(!1),g=Me(null),m=Me(0),_=Me(!1),v=ee(()=>PDe({uploadedFiles:o(),attachments:a()}));function y(R,I){I?.stopPropagation(),I?.preventDefault();const F=w(v).filter(O=>!eoe(O)&&!toe(O)).findIndex(O=>O.id===R.id);J(m,F>=0?F:0,!0),J(_,!0)}function b(R){J(g,R,!0),J(p,!0)}sr(()=>{w(f)&&w(v).length&&w(f).resetScroll()});var E=sCt(),S=ne(E);{var T=R=>{var I=aCt(),L=de(I);{var F=D=>{Qr(Voe(D,{children:(M,P)=>{var N=Ee(),$=ne(N);fn($,17,()=>w(v),U=>U.id,(U,B)=>{r(U,()=>w(B))}),H(M,N)},$$slots:{default:!0}}),M=>J(f,M,!0),()=>w(f))},O=D=>{var M=iCt();fn(M,21,()=>w(v),P=>P.id,(P,N)=>{r(P,()=>w(N))}),oe(M),H(D,M)};Re(L,D=>{h()?D(F):D(O,-1)})}oe(I),at(()=>{lr(I,1,Fn(n())),du(I,i())}),H(R,I)};Re(S,R=>{w(v).length>0&&R(T)})}var C=he(S,2);BJt(C,{get activeModelId(){return e.activeModelId},get attachments(){return a()},get previewFocusIndex(){return w(m)},get uploadedFiles(){return o()},get open(){return w(_)},set open(R){J(_,R,!0)}});var x=he(C,2);{var A=R=>{ptr(R,{get extra(){return w(g)},get open(){return w(p)},set open(I){J(p,I,!0)}})};Re(x,R=>{w(g)&&R(A)})}H(t,E),Ke()}function oCt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"imageClass",3,""),i=ue(e,"imageHeight",3,"h-24"),a=ue(e,"imageWidth",3,"w-auto"),s=ue(e,"limitToSingleRow",3,!1),o=ue(e,"readonly",3,!1);const l=ee(()=>s()?"first:ml-4 last:mr-4":"");function u(E,S){return{id:S,resource:{uri:E.uri,name:E.name,title:E.name,serverName:E.serverName}}}var d=Ee(),h=ne(d);{var f=E=>{const S=ee(()=>e.item.attachment?.type===hi.MCP_PROMPT?e.item.attachment:e.item.uploadedFile?.mcpPrompt?{type:hi.MCP_PROMPT,name:e.item.name,serverName:e.item.uploadedFile.mcpPrompt.serverName,promptName:e.item.uploadedFile.mcpPrompt.promptName,content:e.item.textContent??"",arguments:e.item.uploadedFile.mcpPrompt.arguments}:null);var T=Ee(),C=ne(T);{var x=A=>{{let R=ee(()=>e.onFileRemove?()=>e.onFileRemove(e.item.id):void 0);uCt(A,{get class(){return`max-w-[300px] min-w-[200px] flex-shrink-0 ${r()??""} ${w(l)??""}`},get prompt(){return w(S)},get readonly(){return o()},get isLoading(){return e.item.isLoading},get loadError(){return e.item.loadError},get onRemove(){return w(R)}})}};Re(C,A=>{w(S)&&A(x)})}H(E,T)},p=ee(()=>eoe(e.item)),g=E=>{const S=ee(()=>e.item.attachment);{let T=ee(()=>u(w(S),e.item.id));OMe(E,{get class(){return`flex-shrink-0 ${r()??""} ${w(l)??""}`},get attachment(){return w(T)},onclick:()=>e.onMcpResourcePreview?.(w(S))})}},m=ee(()=>toe(e.item)),_=E=>{_3t(E,{get class(){return`flex-shrink-0 cursor-pointer ${r()??""} ${w(l)??""}`},get id(){return e.item.id},get name(){return e.item.name},get preview(){return e.item.preview},get readonly(){return o()},get onRemove(){return e.onFileRemove},get height(){return i()},get width(){return a()},get imageClass(){return n()},onclick:()=>e.onPreview?.(e.item)})},v=E=>{$Ee(E,{get class(){return`flex-shrink-0 cursor-pointer ${r()??""} ${w(l)??""}`},get id(){return e.item.id},get name(){return e.item.name},get size(){return e.item.size},get readonly(){return o()},get onRemove(){return e.onFileRemove},get textContent(){return e.item.textContent},get attachment(){return e.item.attachment},get uploadedFile(){return e.item.uploadedFile},onclick:()=>e.onPreview?.(e.item)})},y=ee(()=>roe(e.item.attachment,e.item.uploadedFile)),b=E=>{$Ee(E,{get class(){return`flex-shrink-0 cursor-pointer ${r()??""} ${w(l)??""}`},get id(){return e.item.id},get name(){return e.item.name},get size(){return e.item.size},get readonly(){return o()},get onRemove(){return e.onFileRemove},get textContent(){return e.item.textContent},get attachment(){return e.item.attachment},get uploadedFile(){return e.item.uploadedFile},onclick:()=>e.onPreview?.(e.item)})};Re(h,E=>{w(p)?E(f):w(m)?E(g,1):e.item.isImage&&e.item.preview?E(_,2):w(y)?E(v,3):E(b,-1)})}H(t,d),Ke()}var lCt=ae('<div class="absolute top-10 right-2 flex items-center justify-center opacity-0 transition-opacity group-hover:opacity-100"><!></div>'),cCt=ae("<div><!> <!></div>");function uCt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"isLoading",3,!1),i=ue(e,"readonly",3,!1);var a=cCt(),s=de(a);WLe(s,{get isLoading(){return n()},get loadError(){return e.loadError},get prompt(){return e.prompt},get variant(){return sk.ATTACHMENT}});var o=he(s,2);{var l=u=>{var d=lCt(),h=de(d);as(h,{get icon(){return Xd},tooltip:"Remove",stopPropagationOnClick:!0,onclick:()=>e.onRemove?.()}),oe(d),H(u,d)};Re(o,u=>{!i()&&e.onRemove&&u(l)})}oe(a),at(()=>lr(a,1,`group relative ${r()??""}`)),H(t,a),Ke()}const dCt=Object.freeze({status:"aborted"});function cr(t,e,r){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);const u=s.prototype,d=Object.keys(u);for(let h=0;h<d.length;h++){const f=d[h];f in o||(o[f]=u[f].bind(o))}}const i=r?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:t});function s(o){var l;const u=r?.Parent?new a:this;n(u,o),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}class GT extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class XDe extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const QDe={};function s1(t){return QDe}function ZDe(t){const e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,i])=>e.indexOf(+n)===-1).map(([n,i])=>i)}function bZ(t,e){return typeof e=="bigint"?e.toString():e}function xB(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function soe(t){return t==null}function ooe(t){const e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function hCt(t,e){const r=(t.toString().split(".")[1]||"").length,n=e.toString();let i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){const l=n.match(/\d?e-(\d?)/);l?.[1]&&(i=Number.parseInt(l[1]))}const a=r>i?r:i,s=Number.parseInt(t.toFixed(a).replace(".","")),o=Number.parseInt(e.toFixed(a).replace(".",""));return s%o/10**a}const Uve=Symbol("evaluating");function ja(t,e,r){let n;Object.defineProperty(t,e,{get(){if(n!==Uve)return n===void 0&&(n=Uve,n=r()),n},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function iE(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function aE(...t){const e={};for(const r of t){const n=Object.getOwnPropertyDescriptors(r);Object.assign(e,n)}return Object.defineProperties({},e)}function $ve(t){return JSON.stringify(t)}function fCt(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const JDe="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function fk(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const pCt=xB(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function tA(t){if(fk(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const r=e.prototype;return!(fk(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function e4e(t){return tA(t)?{...t}:Array.isArray(t)?[...t]:t}const gCt=new Set(["string","number","symbol"]);function rA(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function U1(t,e,r){const n=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(n._zod.parent=t),n}function wn(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function mCt(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const _Ct={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function vCt(t,e){const r=t._zod.def,n=aE(t._zod.def,{get shape(){const i={};for(const a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(i[a]=r.shape[a])}return iE(this,"shape",i),i},checks:[]});return U1(t,n)}function yCt(t,e){const r=t._zod.def,n=aE(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete i[a]}return iE(this,"shape",i),i},checks:[]});return U1(t,n)}function bCt(t,e){if(!tA(e))throw new Error("Invalid input to extend: expected a plain object");const r=t._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=aE(t._zod.def,{get shape(){const a={...t._zod.def.shape,...e};return iE(this,"shape",a),a},checks:[]});return U1(t,i)}function ECt(t,e){if(!tA(e))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...t._zod.def,get shape(){const n={...t._zod.def.shape,...e};return iE(this,"shape",n),n},checks:t._zod.def.checks};return U1(t,r)}function SCt(t,e){const r=aE(t._zod.def,{get shape(){const n={...t._zod.def.shape,...e._zod.def.shape};return iE(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return U1(t,r)}function TCt(t,e,r){const n=aE(e._zod.def,{get shape(){const i=e._zod.def.shape,a={...i};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(a[s]=t?new t({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)a[s]=t?new t({type:"optional",innerType:i[s]}):i[s];return iE(this,"shape",a),a},checks:[]});return U1(e,n)}function CCt(t,e,r){const n=aE(e._zod.def,{get shape(){const i=e._zod.def.shape,a={...i};if(r)for(const s in r){if(!(s in a))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(a[s]=new t({type:"nonoptional",innerType:i[s]}))}else for(const s in i)a[s]=new t({type:"nonoptional",innerType:i[s]});return iE(this,"shape",a),a},checks:[]});return U1(e,n)}function lT(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function cT(t,e){return e.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function y4(t){return typeof t=="string"?t:t?.message}function o1(t,e,r){const n={...t,path:t.path??[]};if(!t.message){const i=y4(t.inst?._zod.def?.error?.(t))??y4(e?.error?.(t))??y4(r.customError?.(t))??y4(r.localeError?.(t))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,e?.reportInput||delete n.input,n}function loe(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function pk(...t){const[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}const t4e=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,bZ,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},r4e=cr("$ZodError",t4e),n4e=cr("$ZodError",t4e,{Parent:Error});function wCt(t,e=r=>r.message){const r={},n=[];for(const i of t.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}function xCt(t,e=r=>r.message){const r={_errors:[]},n=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>n({issues:s}));else if(a.code==="invalid_key")n({issues:a.issues});else if(a.code==="invalid_element")n({issues:a.issues});else if(a.path.length===0)r._errors.push(e(a));else{let s=r,o=0;for(;o<a.path.length;){const l=a.path[o];o===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(a))):s[l]=s[l]||{_errors:[]},s=s[l],o++}}};return n(t),r}const coe=t=>(e,r,n,i)=>{const a=n?Object.assign(n,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new GT;if(s.issues.length){const o=new(i?.Err??t)(s.issues.map(l=>o1(l,a,s1())));throw JDe(o,i?.callee),o}return s.value},uoe=t=>async(e,r,n,i)=>{const a=n?Object.assign(n,{async:!0}):{async:!0};let s=e._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const o=new(i?.Err??t)(s.issues.map(l=>o1(l,a,s1())));throw JDe(o,i?.callee),o}return s.value},AB=t=>(e,r,n)=>{const i=n?{...n,async:!1}:{async:!1},a=e._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new GT;return a.issues.length?{success:!1,error:new(t??r4e)(a.issues.map(s=>o1(s,i,s1())))}:{success:!0,data:a.value}},i4e=AB(n4e),RB=t=>async(e,r,n)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=e._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new t(a.issues.map(s=>o1(s,i,s1())))}:{success:!0,data:a.value}},ACt=RB(n4e),RCt=t=>(e,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return coe(t)(e,r,i)},OCt=t=>(e,r,n)=>coe(t)(e,r,n),ICt=t=>async(e,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return uoe(t)(e,r,i)},NCt=t=>async(e,r,n)=>uoe(t)(e,r,n),kCt=t=>(e,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return AB(t)(e,r,i)},DCt=t=>(e,r,n)=>AB(t)(e,r,n),MCt=t=>async(e,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return RB(t)(e,r,i)},LCt=t=>async(e,r,n)=>RB(t)(e,r,n),PCt=/^[cC][^\s-]{8,}$/,FCt=/^[0-9a-z]+$/,BCt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,UCt=/^[0-9a-vA-V]{20}$/,$Ct=/^[A-Za-z0-9]{27}$/,GCt=/^[a-zA-Z0-9_-]{21}$/,zCt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qCt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Gve=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,VCt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,HCt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function YCt(){return new RegExp(HCt,"u")}const WCt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,KCt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jCt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,XCt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,QCt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,a4e=/^[A-Za-z0-9_-]*$/,ZCt=/^\+(?:[0-9]){6,14}[0-9]$/,s4e="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",JCt=new RegExp(`^${s4e}$`);function o4e(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function e2t(t){return new RegExp(`^${o4e(t)}$`)}function t2t(t){const e=o4e({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${r.join("|")})`;return new RegExp(`^${s4e}T(?:${n})$`)}const r2t=t=>{const e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},n2t=/^-?\d+$/,i2t=/^-?\d+(?:\.\d+)?/,a2t=/^(?:true|false)$/i,s2t=/^null$/i,o2t=/^[^A-Z]*$/,l2t=/^[^a-z]*$/,od=cr("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),l4e={number:"number",bigint:"bigint",object:"date"},c4e=cr("$ZodCheckLessThan",(t,e)=>{od.init(t,e);const r=l4e[typeof e.value];t._zod.onattach.push(n=>{const i=n._zod.bag,a=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<a&&(e.inclusive?i.maximum=e.value:i.exclusiveMaximum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:r,code:"too_big",maximum:e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),u4e=cr("$ZodCheckGreaterThan",(t,e)=>{od.init(t,e);const r=l4e[typeof e.value];t._zod.onattach.push(n=>{const i=n._zod.bag,a=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>a&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:r,code:"too_small",minimum:e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),c2t=cr("$ZodCheckMultipleOf",(t,e)=>{od.init(t,e),t._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):hCt(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),u2t=cr("$ZodCheckNumberFormat",(t,e)=>{od.init(t,e),e.format=e.format||"float64";const r=e.format?.includes("int"),n=r?"int":"number",[i,a]=_Ct[e.format];t._zod.onattach.push(s=>{const o=s._zod.bag;o.format=e.format,o.minimum=i,o.maximum=a,r&&(o.pattern=n2t)}),t._zod.check=s=>{const o=s.value;if(r){if(!Number.isInteger(o)){s.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:o,inst:t});return}if(!Number.isSafeInteger(o)){o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort});return}}o<i&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:t,continue:!e.abort}),o>a&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:a,inst:t})}}),d2t=cr("$ZodCheckMaxLength",(t,e)=>{var r;od.init(t,e),(r=t._zod.def).when??(r.when=n=>{const i=n.value;return!soe(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<i&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{const i=n.value;if(i.length<=e.maximum)return;const s=loe(i);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),h2t=cr("$ZodCheckMinLength",(t,e)=>{var r;od.init(t,e),(r=t._zod.def).when??(r.when=n=>{const i=n.value;return!soe(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{const i=n.value;if(i.length>=e.minimum)return;const s=loe(i);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),f2t=cr("$ZodCheckLengthEquals",(t,e)=>{var r;od.init(t,e),(r=t._zod.def).when??(r.when=n=>{const i=n.value;return!soe(i)&&i.length!==void 0}),t._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=n=>{const i=n.value,a=i.length;if(a===e.length)return;const s=loe(i),o=a>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),OB=cr("$ZodCheckStringFormat",(t,e)=>{var r,n;od.init(t,e),t._zod.onattach.push(i=>{const a=i._zod.bag;a.format=e.format,e.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),p2t=cr("$ZodCheckRegex",(t,e)=>{OB.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),g2t=cr("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=o2t),OB.init(t,e)}),m2t=cr("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=l2t),OB.init(t,e)}),_2t=cr("$ZodCheckIncludes",(t,e)=>{od.init(t,e);const r=rA(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),v2t=cr("$ZodCheckStartsWith",(t,e)=>{od.init(t,e);const r=new RegExp(`^${rA(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),y2t=cr("$ZodCheckEndsWith",(t,e)=>{od.init(t,e);const r=new RegExp(`.*${rA(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}}),b2t=cr("$ZodCheckOverwrite",(t,e)=>{od.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});class E2t{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
`).filter(s=>s),i=Math.min(...n.map(s=>s.length-s.trimStart().length)),a=n.map(s=>s.slice(i)).map(s=>" ".repeat(this.indent*2)+s);for(const s of a)this.content.push(s)}compile(){const e=Function,r=this?.args,i=[...(this?.content??[""]).map(a=>`  ${a}`)];return new e(...r,i.join(`
`))}}const S2t={major:4,minor:2,patch:1},_s=cr("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=S2t;const n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(const i of n)for(const a of i._zod.onattach)a(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const i=(s,o,l)=>{let u=lT(s),d;for(const h of o){if(h._zod.def.when){if(!h._zod.def.when(s))continue}else if(u)continue;const f=s.issues.length,p=h._zod.check(s);if(p instanceof Promise&&l?.async===!1)throw new GT;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,s.issues.length!==f&&(u||(u=lT(s,f)))});else{if(s.issues.length===f)continue;u||(u=lT(s,f))}}return d?d.then(()=>s):s},a=(s,o,l)=>{if(lT(s))return s.aborted=!0,s;const u=i(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new GT;return u.then(d=>t._zod.parse(d,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){const u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(d=>a(d,s,o)):a(u,s,o)}const l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new GT;return l.then(u=>i(u,n,o))}return i(l,n,o)}}t["~standard"]={validate:i=>{try{const a=i4e(t,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return ACt(t,i).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),doe=cr("$ZodString",(t,e)=>{_s.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??r2t(t._zod.bag),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),Ms=cr("$ZodStringFormat",(t,e)=>{OB.init(t,e),doe.init(t,e)}),T2t=cr("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=qCt),Ms.init(t,e)}),C2t=cr("$ZodUUID",(t,e)=>{if(e.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Gve(n))}else e.pattern??(e.pattern=Gve());Ms.init(t,e)}),w2t=cr("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=VCt),Ms.init(t,e)}),x2t=cr("$ZodURL",(t,e)=>{Ms.init(t,e),t._zod.check=r=>{try{const n=r.value.trim(),i=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),A2t=cr("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=YCt()),Ms.init(t,e)}),R2t=cr("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=GCt),Ms.init(t,e)}),O2t=cr("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=PCt),Ms.init(t,e)}),I2t=cr("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=FCt),Ms.init(t,e)}),N2t=cr("$ZodULID",(t,e)=>{e.pattern??(e.pattern=BCt),Ms.init(t,e)}),k2t=cr("$ZodXID",(t,e)=>{e.pattern??(e.pattern=UCt),Ms.init(t,e)}),D2t=cr("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=$Ct),Ms.init(t,e)}),M2t=cr("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=t2t(e)),Ms.init(t,e)}),L2t=cr("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=JCt),Ms.init(t,e)}),P2t=cr("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=e2t(e)),Ms.init(t,e)}),F2t=cr("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=zCt),Ms.init(t,e)}),B2t=cr("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=WCt),Ms.init(t,e),t._zod.bag.format="ipv4"}),U2t=cr("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=KCt),Ms.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),$2t=cr("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=jCt),Ms.init(t,e)}),G2t=cr("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=XCt),Ms.init(t,e),t._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[i,a]=n;if(!a)throw new Error;const s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function d4e(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const z2t=cr("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=QCt),Ms.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{d4e(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function q2t(t){if(!a4e.test(t))return!1;const e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return d4e(r)}const V2t=cr("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=a4e),Ms.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{q2t(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),H2t=cr("$ZodE164",(t,e)=>{e.pattern??(e.pattern=ZCt),Ms.init(t,e)});function Y2t(t,e=null){try{const r=t.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const i=JSON.parse(atob(n));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||e&&(!("alg"in i)||i.alg!==e))}catch{return!1}}const W2t=cr("$ZodJWT",(t,e)=>{Ms.init(t,e),t._zod.check=r=>{Y2t(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),h4e=cr("$ZodNumber",(t,e)=>{_s.init(t,e),t._zod.pattern=t._zod.bag.pattern??i2t,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}const i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...a?{received:a}:{}}),r}}),K2t=cr("$ZodNumberFormat",(t,e)=>{u2t.init(t,e),h4e.init(t,e)}),j2t=cr("$ZodBoolean",(t,e)=>{_s.init(t,e),t._zod.pattern=a2t,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}const i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:t}),r}}),X2t=cr("$ZodNull",(t,e)=>{_s.init(t,e),t._zod.pattern=s2t,t._zod.values=new Set([null]),t._zod.parse=(r,n)=>{const i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:t}),r}}),Q2t=cr("$ZodAny",(t,e)=>{_s.init(t,e),t._zod.parse=r=>r}),Z2t=cr("$ZodUnknown",(t,e)=>{_s.init(t,e),t._zod.parse=r=>r}),J2t=cr("$ZodNever",(t,e)=>{_s.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function zve(t,e,r){t.issues.length&&e.issues.push(...cT(r,t.issues)),e.value[r]=t.value}const ewt=cr("$ZodArray",(t,e)=>{_s.init(t,e),t._zod.parse=(r,n)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:t}),r;r.value=Array(i.length);const a=[];for(let s=0;s<i.length;s++){const o=i[s],l=e.element._zod.run({value:o,issues:[]},n);l instanceof Promise?a.push(l.then(u=>zve(u,r,s))):zve(l,r,s)}return a.length?Promise.all(a).then(()=>r):r}});function $9(t,e,r,n){t.issues.length&&e.issues.push(...cT(r,t.issues)),t.value===void 0?r in n&&(e.value[r]=void 0):e.value[r]=t.value}function f4e(t){const e=Object.keys(t.shape);for(const n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=mCt(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function p4e(t,e,r,n,i,a){const s=[],o=i.keySet,l=i.catchall._zod,u=l.def.type;for(const d in e){if(o.has(d))continue;if(u==="never"){s.push(d);continue}const h=l.run({value:e[d],issues:[]},n);h instanceof Promise?t.push(h.then(f=>$9(f,r,d,e))):$9(h,r,d,e)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:a}),t.length?Promise.all(t).then(()=>r):r}const twt=cr("$ZodObject",(t,e)=>{if(_s.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){const o=e.shape;Object.defineProperty(e,"shape",{get:()=>{const l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}const n=xB(()=>f4e(e));ja(t._zod,"propValues",()=>{const o=e.shape,l={};for(const u in o){const d=o[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const h of d.values)l[u].add(h)}}return l});const i=fk,a=e.catchall;let s;t._zod.parse=(o,l)=>{s??(s=n.value);const u=o.value;if(!i(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};const d=[],h=s.shape;for(const f of s.keys){const g=h[f]._zod.run({value:u[f],issues:[]},l);g instanceof Promise?d.push(g.then(m=>$9(m,o,f,u))):$9(g,o,f,u)}return a?p4e(d,u,o,l,n.value,t):d.length?Promise.all(d).then(()=>o):o}}),rwt=cr("$ZodObjectJIT",(t,e)=>{twt.init(t,e);const r=t._zod.parse,n=xB(()=>f4e(e)),i=f=>{const p=new E2t(["shape","payload","ctx"]),g=n.value,m=b=>{const E=$ve(b);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};p.write("const input = payload.value;");const _=Object.create(null);let v=0;for(const b of g.keys)_[b]=`key_${v++}`;p.write("const newResult = {};");for(const b of g.keys){const E=_[b],S=$ve(b);p.write(`const ${E} = ${m(b)};`),p.write(`
        if (${E}.issues.length) {
          payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${S}, ...iss.path] : [${S}]
          })));
        }
        
        
        if (${E}.value === undefined) {
          if (${S} in input) {
            newResult[${S}] = undefined;
          }
        } else {
          newResult[${S}] = ${E}.value;
        }
        
      `)}p.write("payload.value = newResult;"),p.write("return payload;");const y=p.compile();return(b,E)=>y(f,b,E)};let a;const s=fk,o=!QDe.jitless,u=o&&pCt.value,d=e.catchall;let h;t._zod.parse=(f,p)=>{h??(h=n.value);const g=f.value;return s(g)?o&&u&&p?.async===!1&&p.jitless!==!0?(a||(a=i(e.shape)),f=a(f,p),d?p4e([],g,f,p,h,t):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),f)}});function qve(t,e,r,n){for(const a of t)if(a.issues.length===0)return e.value=a.value,e;const i=t.filter(a=>!lT(a));return i.length===1?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(a=>a.issues.map(s=>o1(s,n,s1())))}),e)}const g4e=cr("$ZodUnion",(t,e)=>{_s.init(t,e),ja(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ja(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ja(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),ja(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){const i=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>ooe(a.source)).join("|")})$`)}});const r=e.options.length===1,n=e.options[0]._zod.run;t._zod.parse=(i,a)=>{if(r)return n(i,a);let s=!1;const o=[];for(const l of e.options){const u=l._zod.run({value:i.value,issues:[]},a);if(u instanceof Promise)o.push(u),s=!0;else{if(u.issues.length===0)return u;o.push(u)}}return s?Promise.all(o).then(l=>qve(l,i,t,a)):qve(o,i,t,a)}}),nwt=cr("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,g4e.init(t,e);const r=t._zod.parse;ja(t._zod,"propValues",()=>{const i={};for(const a of e.options){const s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const[o,l]of Object.entries(s)){i[o]||(i[o]=new Set);for(const u of l)i[o].add(u)}}return i});const n=xB(()=>{const i=e.options,a=new Map;for(const s of i){const o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const l of o){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,s)}}return a});t._zod.parse=(i,a)=>{const s=i.value;if(!fk(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),i;const o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(i,a):e.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),i)}}),iwt=cr("$ZodIntersection",(t,e)=>{_s.init(t,e),t._zod.parse=(r,n)=>{const i=r.value,a=e.left._zod.run({value:i,issues:[]},n),s=e.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||s instanceof Promise?Promise.all([a,s]).then(([l,u])=>Vve(r,l,u)):Vve(r,a,s)}});function EZ(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(tA(t)&&tA(e)){const r=Object.keys(e),n=Object.keys(t).filter(a=>r.indexOf(a)!==-1),i={...t,...e};for(const a of n){const s=EZ(t[a],e[a]);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};i[a]=s.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<t.length;n++){const i=t[n],a=e[n],s=EZ(i,a);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Vve(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),lT(t))return t;const n=EZ(e.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return t.value=n.data,t}const awt=cr("$ZodRecord",(t,e)=>{_s.init(t,e),t._zod.parse=(r,n)=>{const i=r.value;if(!tA(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),r;const a=[],s=e.keyType._zod.values;if(s){r.value={};const o=new Set;for(const u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);const d=e.valueType._zod.run({value:i[u],issues:[]},n);d instanceof Promise?a.push(d.then(h=>{h.issues.length&&r.issues.push(...cT(u,h.issues)),r.value[u]=h.value})):(d.issues.length&&r.issues.push(...cT(u,d.issues)),r.value[u]=d.value)}let l;for(const u in i)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:l})}else{r.value={};for(const o of Reflect.ownKeys(i)){if(o==="__proto__")continue;const l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?r.value[o]=i[o]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>o1(d,n,s1())),input:o,path:[o],inst:t});continue}const u=e.valueType._zod.run({value:i[o],issues:[]},n);u instanceof Promise?a.push(u.then(d=>{d.issues.length&&r.issues.push(...cT(o,d.issues)),r.value[l.value]=d.value})):(u.issues.length&&r.issues.push(...cT(o,u.issues)),r.value[l.value]=u.value)}}return a.length?Promise.all(a).then(()=>r):r}}),swt=cr("$ZodEnum",(t,e)=>{_s.init(t,e);const r=ZDe(e.entries),n=new Set(r);t._zod.values=n,t._zod.pattern=new RegExp(`^(${r.filter(i=>gCt.has(typeof i)).map(i=>typeof i=="string"?rA(i):i.toString()).join("|")})$`),t._zod.parse=(i,a)=>{const s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:r,input:s,inst:t}),i}}),owt=cr("$ZodLiteral",(t,e)=>{if(_s.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?rA(n):n?rA(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,i)=>{const a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:e.values,input:a,inst:t}),n}}),lwt=cr("$ZodTransform",(t,e)=>{_s.init(t,e),t._zod.parse=(r,n)=>{if(n.direction==="backward")throw new XDe(t.constructor.name);const i=e.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(r.value=s,r));if(i instanceof Promise)throw new GT;return r.value=i,r}});function Hve(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}const cwt=cr("$ZodOptional",(t,e)=>{_s.init(t,e),t._zod.optin="optional",t._zod.optout="optional",ja(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),ja(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${ooe(r.source)})?$`):void 0}),t._zod.parse=(r,n)=>{if(e.innerType._zod.optin==="optional"){const i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Hve(a,r.value)):Hve(i,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,n)}}),uwt=cr("$ZodNullable",(t,e)=>{_s.init(t,e),ja(t._zod,"optin",()=>e.innerType._zod.optin),ja(t._zod,"optout",()=>e.innerType._zod.optout),ja(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${ooe(r.source)}|null)$`):void 0}),ja(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,n)=>r.value===null?r:e.innerType._zod.run(r,n)}),dwt=cr("$ZodDefault",(t,e)=>{_s.init(t,e),t._zod.optin="optional",ja(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);if(r.value===void 0)return r.value=e.defaultValue,r;const i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Yve(a,e)):Yve(i,e)}});function Yve(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const hwt=cr("$ZodPrefault",(t,e)=>{_s.init(t,e),t._zod.optin="optional",ja(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,n))}),fwt=cr("$ZodNonOptional",(t,e)=>{_s.init(t,e),ja(t._zod,"values",()=>{const r=e.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,n)=>{const i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Wve(a,t)):Wve(i,t)}});function Wve(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const pwt=cr("$ZodCatch",(t,e)=>{_s.init(t,e),ja(t._zod,"optin",()=>e.innerType._zod.optin),ja(t._zod,"optout",()=>e.innerType._zod.optout),ja(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);const i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=e.catchValue({...r,error:{issues:a.issues.map(s=>o1(s,n,s1()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(a=>o1(a,n,s1()))},input:r.value}),r.issues=[]),r)}}),gwt=cr("$ZodPipe",(t,e)=>{_s.init(t,e),ja(t._zod,"values",()=>e.in._zod.values),ja(t._zod,"optin",()=>e.in._zod.optin),ja(t._zod,"optout",()=>e.out._zod.optout),ja(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,n)=>{if(n.direction==="backward"){const a=e.out._zod.run(r,n);return a instanceof Promise?a.then(s=>b4(s,e.in,n)):b4(a,e.in,n)}const i=e.in._zod.run(r,n);return i instanceof Promise?i.then(a=>b4(a,e.out,n)):b4(i,e.out,n)}});function b4(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}const mwt=cr("$ZodReadonly",(t,e)=>{_s.init(t,e),ja(t._zod,"propValues",()=>e.innerType._zod.propValues),ja(t._zod,"values",()=>e.innerType._zod.values),ja(t._zod,"optin",()=>e.innerType?._zod?.optin),ja(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,n)=>{if(n.direction==="backward")return e.innerType._zod.run(r,n);const i=e.innerType._zod.run(r,n);return i instanceof Promise?i.then(Kve):Kve(i)}});function Kve(t){return t.value=Object.freeze(t.value),t}const _wt=cr("$ZodCustom",(t,e)=>{od.init(t,e),_s.init(t,e),t._zod.parse=(r,n)=>r,t._zod.check=r=>{const n=r.value,i=e.fn(n);if(i instanceof Promise)return i.then(a=>jve(a,r,n,t));jve(i,r,n,t)}});function jve(t,e,r,n){if(!t){const i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),e.issues.push(pk(i))}}var Xve;class vwt{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){const n=r[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){const r=e._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const i={...n,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function ywt(){return new vwt}(Xve=globalThis).__zod_globalRegistry??(Xve.__zod_globalRegistry=ywt());const pI=globalThis.__zod_globalRegistry;function bwt(t,e){return new t({type:"string",...wn(e)})}function Ewt(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...wn(e)})}function Qve(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...wn(e)})}function Swt(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...wn(e)})}function Twt(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...wn(e)})}function Cwt(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...wn(e)})}function wwt(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...wn(e)})}function m4e(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...wn(e)})}function xwt(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...wn(e)})}function Awt(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...wn(e)})}function Rwt(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...wn(e)})}function Owt(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...wn(e)})}function Iwt(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...wn(e)})}function Nwt(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...wn(e)})}function kwt(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...wn(e)})}function Dwt(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...wn(e)})}function Mwt(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...wn(e)})}function Lwt(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...wn(e)})}function Pwt(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...wn(e)})}function Fwt(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...wn(e)})}function Bwt(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...wn(e)})}function Uwt(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...wn(e)})}function $wt(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...wn(e)})}function Gwt(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...wn(e)})}function zwt(t,e){return new t({type:"string",format:"date",check:"string_format",...wn(e)})}function qwt(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...wn(e)})}function Vwt(t,e){return new t({type:"string",format:"duration",check:"string_format",...wn(e)})}function Hwt(t,e){return new t({type:"number",checks:[],...wn(e)})}function Ywt(t,e){return new t({type:"number",coerce:!0,checks:[],...wn(e)})}function Wwt(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...wn(e)})}function Kwt(t,e){return new t({type:"boolean",...wn(e)})}function jwt(t,e){return new t({type:"null",...wn(e)})}function Xwt(t){return new t({type:"any"})}function Qwt(t){return new t({type:"unknown"})}function Zwt(t,e){return new t({type:"never",...wn(e)})}function Zve(t,e){return new c4e({check:"less_than",...wn(e),value:t,inclusive:!1})}function $Y(t,e){return new c4e({check:"less_than",...wn(e),value:t,inclusive:!0})}function Jve(t,e){return new u4e({check:"greater_than",...wn(e),value:t,inclusive:!1})}function GY(t,e){return new u4e({check:"greater_than",...wn(e),value:t,inclusive:!0})}function eye(t,e){return new c2t({check:"multiple_of",...wn(e),value:t})}function _4e(t,e){return new d2t({check:"max_length",...wn(e),maximum:t})}function G9(t,e){return new h2t({check:"min_length",...wn(e),minimum:t})}function v4e(t,e){return new f2t({check:"length_equals",...wn(e),length:t})}function Jwt(t,e){return new p2t({check:"string_format",format:"regex",...wn(e),pattern:t})}function ext(t){return new g2t({check:"string_format",format:"lowercase",...wn(t)})}function txt(t){return new m2t({check:"string_format",format:"uppercase",...wn(t)})}function rxt(t,e){return new _2t({check:"string_format",format:"includes",...wn(e),includes:t})}function nxt(t,e){return new v2t({check:"string_format",format:"starts_with",...wn(e),prefix:t})}function ixt(t,e){return new y2t({check:"string_format",format:"ends_with",...wn(e),suffix:t})}function uR(t){return new b2t({check:"overwrite",tx:t})}function axt(t){return uR(e=>e.normalize(t))}function sxt(){return uR(t=>t.trim())}function oxt(){return uR(t=>t.toLowerCase())}function lxt(){return uR(t=>t.toUpperCase())}function cxt(){return uR(t=>fCt(t))}function uxt(t,e,r){return new t({type:"array",element:e,...wn(r)})}function dxt(t,e,r){const n=wn(r);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function hxt(t,e,r){return new t({type:"custom",check:"custom",fn:e,...wn(r)})}function fxt(t){const e=pxt(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(pk(n,r.value,e._zod.def));else{const i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),r.issues.push(pk(i))}},t(r.value,r)));return e}function pxt(t,e){const r=new od({check:"custom",...wn(e)});return r._zod.check=t,r}function y4e(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??pI,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function pl(t,e,r={path:[],schemaPath:[]}){var n;const i=t._zod.def,a=e.seen.get(t);if(a)return a.count++,r.schemaPath.includes(t)&&(a.cycle=r.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s);const o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{const d={...r,schemaPath:[...r.schemaPath,t],path:r.path},h=t._zod.parent;if(h)s.ref=h,pl(h,e,d),e.seen.get(h).isParent=!0;else if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,d);else{const f=s.schema,p=e.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(t,e,f,d)}}const l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&Vc(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function b4e(t,e){const r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=a=>{const s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const d=t.external.registry.get(a[0])?.id,h=t.external.uri??(p=>p);if(d)return{ref:h(d)};const f=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=f,{defId:f,ref:`${h("__shared")}#/${s}/${f}`}}if(a[1]===r)return{ref:"#"};const l=`#/${s}/`,u=a[1].schema.id??`__schema${t.counter++}`;return{defId:u,ref:l+u}},i=a=>{if(a[1].schema.$ref)return;const s=a[1],{ref:o,defId:l}=n(a);s.def={...s.schema},l&&(s.defId=l);const u=s.schema;for(const d in u)delete u[d];u.$ref=o};if(t.cycles==="throw")for(const a of t.seen.entries()){const s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of t.seen.entries()){const s=a[1];if(e===a[0]){i(a);continue}if(t.external){const l=t.external.registry.get(a[0])?.id;if(e!==a[0]&&l){i(a);continue}}if(t.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&t.reused==="ref"){i(a);continue}}}function E4e(t,e){const r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=s=>{const o=t.seen.get(s),l=o.def??o.schema,u={...l};if(o.ref===null)return;const d=o.ref;if(o.ref=null,d){n(d);const h=t.seen.get(d).schema;h.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):(Object.assign(l,h),Object.assign(l,u))}o.isParent||t.override({zodSchema:s,jsonSchema:l,path:o.path??[]})};for(const s of[...t.seen.entries()].reverse())n(s[0]);const i={};if(t.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){const s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");i.$id=t.external.uri(s)}Object.assign(i,r.def??r.schema);const a=t.external?.defs??{};for(const s of t.seen.entries()){const o=s[1];o.def&&o.defId&&(a[o.defId]=o.def)}t.external||Object.keys(a).length>0&&(t.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{const s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:z9(e,"input"),output:z9(e,"output")}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Vc(t,e){const r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);const n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Vc(n.element,r);if(n.type==="set")return Vc(n.valueType,r);if(n.type==="lazy")return Vc(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Vc(n.innerType,r);if(n.type==="intersection")return Vc(n.left,r)||Vc(n.right,r);if(n.type==="record"||n.type==="map")return Vc(n.keyType,r)||Vc(n.valueType,r);if(n.type==="pipe")return Vc(n.in,r)||Vc(n.out,r);if(n.type==="object"){for(const i in n.shape)if(Vc(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(const i of n.options)if(Vc(i,r))return!0;return!1}if(n.type==="tuple"){for(const i of n.items)if(Vc(i,r))return!0;return!!(n.rest&&Vc(n.rest,r))}return!1}const gxt=(t,e={})=>r=>{const n=y4e({...r,processors:e});return pl(t,n),b4e(n,t),E4e(n,t)},z9=(t,e)=>r=>{const{libraryOptions:n,target:i}=r??{},a=y4e({...n??{},target:i,io:e,processors:{}});return pl(t,a),b4e(a,t),E4e(a,t)},mxt={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},_xt=(t,e,r,n)=>{const i=r;i.type="string";const{minimum:a,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof s=="number"&&(i.maxLength=s),o&&(i.format=mxt[o]??o,i.format===""&&delete i.format),u&&(i.contentEncoding=u),l&&l.size>0){const d=[...l];d.length===1?i.pattern=d[0].source:d.length>1&&(i.allOf=[...d.map(h=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},vxt=(t,e,r,n)=>{const i=r,{minimum:a,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:d}=t._zod.bag;typeof o=="string"&&o.includes("int")?i.type="integer":i.type="number",typeof d=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d),typeof a=="number"&&(i.minimum=a,typeof d=="number"&&e.target!=="draft-04"&&(d>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof s=="number"&&(i.maximum=s,typeof u=="number"&&e.target!=="draft-04"&&(u<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},yxt=(t,e,r,n)=>{r.type="boolean"},bxt=(t,e,r,n)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ext=(t,e,r,n)=>{r.not={}},Sxt=(t,e,r,n)=>{},Txt=(t,e,r,n)=>{},Cxt=(t,e,r,n)=>{const i=t._zod.def,a=ZDe(i.entries);a.every(s=>typeof s=="number")&&(r.type="number"),a.every(s=>typeof s=="string")&&(r.type="string"),r.enum=a},wxt=(t,e,r,n)=>{const i=t._zod.def,a=[];for(const s of i.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(s))}else a.push(s);if(a.length!==0)if(a.length===1){const s=a[0];r.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[s]:r.const=s}else a.every(s=>typeof s=="number")&&(r.type="number"),a.every(s=>typeof s=="string")&&(r.type="string"),a.every(s=>typeof s=="boolean")&&(r.type="boolean"),a.every(s=>s===null)&&(r.type="null"),r.enum=a},xxt=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Axt=(t,e,r,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Rxt=(t,e,r,n)=>{const i=r,a=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(i.minItems=s),typeof o=="number"&&(i.maxItems=o),i.type="array",i.items=pl(a.element,e,{...n,path:[...n.path,"items"]})},Oxt=(t,e,r,n)=>{const i=r,a=t._zod.def;i.type="object",i.properties={};const s=a.shape;for(const u in s)i.properties[u]=pl(s[u],e,{...n,path:[...n.path,"properties",u]});const o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{const d=a.shape[u]._zod;return e.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(i.required=Array.from(l)),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=pl(a.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(i.additionalProperties=!1)},Ixt=(t,e,r,n)=>{const i=t._zod.def,a=i.inclusive===!1,s=i.options.map((o,l)=>pl(o,e,{...n,path:[...n.path,a?"oneOf":"anyOf",l]}));a?r.oneOf=s:r.anyOf=s},Nxt=(t,e,r,n)=>{const i=t._zod.def,a=pl(i.left,e,{...n,path:[...n.path,"allOf",0]}),s=pl(i.right,e,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(a)?a.allOf:[a],...o(s)?s.allOf:[s]];r.allOf=l},kxt=(t,e,r,n)=>{const i=r,a=t._zod.def;i.type="object",(e.target==="draft-07"||e.target==="draft-2020-12")&&(i.propertyNames=pl(a.keyType,e,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=pl(a.valueType,e,{...n,path:[...n.path,"additionalProperties"]})},Dxt=(t,e,r,n)=>{const i=t._zod.def,a=pl(i.innerType,e,n),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},Mxt=(t,e,r,n)=>{const i=t._zod.def;pl(i.innerType,e,n);const a=e.seen.get(t);a.ref=i.innerType},Lxt=(t,e,r,n)=>{const i=t._zod.def;pl(i.innerType,e,n);const a=e.seen.get(t);a.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},Pxt=(t,e,r,n)=>{const i=t._zod.def;pl(i.innerType,e,n);const a=e.seen.get(t);a.ref=i.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Fxt=(t,e,r,n)=>{const i=t._zod.def;pl(i.innerType,e,n);const a=e.seen.get(t);a.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},Bxt=(t,e,r,n)=>{const i=t._zod.def,a=e.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;pl(a,e,n);const s=e.seen.get(t);s.ref=a},Uxt=(t,e,r,n)=>{const i=t._zod.def;pl(i.innerType,e,n);const a=e.seen.get(t);a.ref=i.innerType,r.readOnly=!0},$xt=(t,e,r,n)=>{const i=t._zod.def;pl(i.innerType,e,n);const a=e.seen.get(t);a.ref=i.innerType};function IB(t){return!!t._zod}function __(t,e){return IB(t)?i4e(t,e):t.safeParse(e)}function S4e(t){if(!t)return;let e;if(IB(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function Gxt(t){if(IB(t)){const a=t._zod?.def;if(a){if(a.value!==void 0)return a.value;if(Array.isArray(a.values)&&a.values.length>0)return a.values[0]}}const r=t._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}const n=t.value;if(n!==void 0)return n}const zxt=cr("ZodISODateTime",(t,e)=>{M2t.init(t,e),Zs.init(t,e)});function T4e(t){return Gwt(zxt,t)}const qxt=cr("ZodISODate",(t,e)=>{L2t.init(t,e),Zs.init(t,e)});function Vxt(t){return zwt(qxt,t)}const Hxt=cr("ZodISOTime",(t,e)=>{P2t.init(t,e),Zs.init(t,e)});function Yxt(t){return qwt(Hxt,t)}const Wxt=cr("ZodISODuration",(t,e)=>{F2t.init(t,e),Zs.init(t,e)});function Kxt(t){return Vwt(Wxt,t)}const jxt=(t,e)=>{r4e.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>xCt(t,r)},flatten:{value:r=>wCt(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,bZ,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,bZ,2)}},isEmpty:{get(){return t.issues.length===0}}})},Xh=cr("ZodError",jxt,{Parent:Error}),Xxt=coe(Xh),Qxt=uoe(Xh),Zxt=AB(Xh),Jxt=RB(Xh),eAt=RCt(Xh),tAt=OCt(Xh),rAt=ICt(Xh),nAt=NCt(Xh),iAt=kCt(Xh),aAt=DCt(Xh),sAt=MCt(Xh),oAt=LCt(Xh),Ls=cr("ZodType",(t,e)=>(_s.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:z9(t,"input"),output:z9(t,"output")}}),t.toJSONSchema=gxt(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(aE(e,{checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),t.clone=(r,n)=>U1(t,r,n),t.brand=()=>t,t.register=((r,n)=>(r.add(t,n),t)),t.parse=(r,n)=>Xxt(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>Zxt(t,r,n),t.parseAsync=async(r,n)=>Qxt(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>Jxt(t,r,n),t.spa=t.safeParseAsync,t.encode=(r,n)=>eAt(t,r,n),t.decode=(r,n)=>tAt(t,r,n),t.encodeAsync=async(r,n)=>rAt(t,r,n),t.decodeAsync=async(r,n)=>nAt(t,r,n),t.safeEncode=(r,n)=>iAt(t,r,n),t.safeDecode=(r,n)=>aAt(t,r,n),t.safeEncodeAsync=async(r,n)=>sAt(t,r,n),t.safeDecodeAsync=async(r,n)=>oAt(t,r,n),t.refine=(r,n)=>t.check(ZAt(r,n)),t.superRefine=r=>t.check(JAt(r)),t.overwrite=r=>t.check(uR(r)),t.optional=()=>fo(t),t.nullable=()=>nye(t),t.nullish=()=>fo(nye(t)),t.nonoptional=r=>HAt(t,r),t.array=()=>Wr(t),t.or=r=>vs([t,r]),t.and=r=>foe(t,r),t.transform=r=>TZ(t,I4e(r)),t.default=r=>zAt(t,r),t.prefault=r=>VAt(t,r),t.catch=r=>WAt(t,r),t.pipe=r=>TZ(t,r),t.readonly=()=>XAt(t),t.describe=r=>{const n=t.clone();return pI.add(n,{description:r}),n},Object.defineProperty(t,"description",{get(){return pI.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return pI.get(t);const n=t.clone();return pI.add(n,r[0]),n},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),C4e=cr("_ZodString",(t,e)=>{doe.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(n,i,a)=>_xt(t,n,i);const r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...n)=>t.check(Jwt(...n)),t.includes=(...n)=>t.check(rxt(...n)),t.startsWith=(...n)=>t.check(nxt(...n)),t.endsWith=(...n)=>t.check(ixt(...n)),t.min=(...n)=>t.check(G9(...n)),t.max=(...n)=>t.check(_4e(...n)),t.length=(...n)=>t.check(v4e(...n)),t.nonempty=(...n)=>t.check(G9(1,...n)),t.lowercase=n=>t.check(ext(n)),t.uppercase=n=>t.check(txt(n)),t.trim=()=>t.check(sxt()),t.normalize=(...n)=>t.check(axt(...n)),t.toLowerCase=()=>t.check(oxt()),t.toUpperCase=()=>t.check(lxt()),t.slugify=()=>t.check(cxt())}),lAt=cr("ZodString",(t,e)=>{doe.init(t,e),C4e.init(t,e),t.email=r=>t.check(Ewt(cAt,r)),t.url=r=>t.check(m4e(w4e,r)),t.jwt=r=>t.check($wt(wAt,r)),t.emoji=r=>t.check(xwt(dAt,r)),t.guid=r=>t.check(Qve(tye,r)),t.uuid=r=>t.check(Swt(E4,r)),t.uuidv4=r=>t.check(Twt(E4,r)),t.uuidv6=r=>t.check(Cwt(E4,r)),t.uuidv7=r=>t.check(wwt(E4,r)),t.nanoid=r=>t.check(Awt(hAt,r)),t.guid=r=>t.check(Qve(tye,r)),t.cuid=r=>t.check(Rwt(fAt,r)),t.cuid2=r=>t.check(Owt(pAt,r)),t.ulid=r=>t.check(Iwt(gAt,r)),t.base64=r=>t.check(Fwt(SAt,r)),t.base64url=r=>t.check(Bwt(TAt,r)),t.xid=r=>t.check(Nwt(mAt,r)),t.ksuid=r=>t.check(kwt(_At,r)),t.ipv4=r=>t.check(Dwt(vAt,r)),t.ipv6=r=>t.check(Mwt(yAt,r)),t.cidrv4=r=>t.check(Lwt(bAt,r)),t.cidrv6=r=>t.check(Pwt(EAt,r)),t.e164=r=>t.check(Uwt(CAt,r)),t.datetime=r=>t.check(T4e(r)),t.date=r=>t.check(Vxt(r)),t.time=r=>t.check(Yxt(r)),t.duration=r=>t.check(Kxt(r))});function At(t){return bwt(lAt,t)}const Zs=cr("ZodStringFormat",(t,e)=>{Ms.init(t,e),C4e.init(t,e)}),cAt=cr("ZodEmail",(t,e)=>{w2t.init(t,e),Zs.init(t,e)}),tye=cr("ZodGUID",(t,e)=>{T2t.init(t,e),Zs.init(t,e)}),E4=cr("ZodUUID",(t,e)=>{C2t.init(t,e),Zs.init(t,e)}),w4e=cr("ZodURL",(t,e)=>{x2t.init(t,e),Zs.init(t,e)});function uAt(t){return m4e(w4e,t)}const dAt=cr("ZodEmoji",(t,e)=>{A2t.init(t,e),Zs.init(t,e)}),hAt=cr("ZodNanoID",(t,e)=>{R2t.init(t,e),Zs.init(t,e)}),fAt=cr("ZodCUID",(t,e)=>{O2t.init(t,e),Zs.init(t,e)}),pAt=cr("ZodCUID2",(t,e)=>{I2t.init(t,e),Zs.init(t,e)}),gAt=cr("ZodULID",(t,e)=>{N2t.init(t,e),Zs.init(t,e)}),mAt=cr("ZodXID",(t,e)=>{k2t.init(t,e),Zs.init(t,e)}),_At=cr("ZodKSUID",(t,e)=>{D2t.init(t,e),Zs.init(t,e)}),vAt=cr("ZodIPv4",(t,e)=>{B2t.init(t,e),Zs.init(t,e)}),yAt=cr("ZodIPv6",(t,e)=>{U2t.init(t,e),Zs.init(t,e)}),bAt=cr("ZodCIDRv4",(t,e)=>{$2t.init(t,e),Zs.init(t,e)}),EAt=cr("ZodCIDRv6",(t,e)=>{G2t.init(t,e),Zs.init(t,e)}),SAt=cr("ZodBase64",(t,e)=>{z2t.init(t,e),Zs.init(t,e)}),TAt=cr("ZodBase64URL",(t,e)=>{V2t.init(t,e),Zs.init(t,e)}),CAt=cr("ZodE164",(t,e)=>{H2t.init(t,e),Zs.init(t,e)}),wAt=cr("ZodJWT",(t,e)=>{W2t.init(t,e),Zs.init(t,e)}),hoe=cr("ZodNumber",(t,e)=>{h4e.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(n,i,a)=>vxt(t,n,i),t.gt=(n,i)=>t.check(Jve(n,i)),t.gte=(n,i)=>t.check(GY(n,i)),t.min=(n,i)=>t.check(GY(n,i)),t.lt=(n,i)=>t.check(Zve(n,i)),t.lte=(n,i)=>t.check($Y(n,i)),t.max=(n,i)=>t.check($Y(n,i)),t.int=n=>t.check(rye(n)),t.safe=n=>t.check(rye(n)),t.positive=n=>t.check(Jve(0,n)),t.nonnegative=n=>t.check(GY(0,n)),t.negative=n=>t.check(Zve(0,n)),t.nonpositive=n=>t.check($Y(0,n)),t.multipleOf=(n,i)=>t.check(eye(n,i)),t.step=(n,i)=>t.check(eye(n,i)),t.finite=()=>t;const r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function Fa(t){return Hwt(hoe,t)}const xAt=cr("ZodNumberFormat",(t,e)=>{K2t.init(t,e),hoe.init(t,e)});function rye(t){return Wwt(xAt,t)}const AAt=cr("ZodBoolean",(t,e)=>{j2t.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>yxt(t,r,n)});function fs(t){return Kwt(AAt,t)}const RAt=cr("ZodNull",(t,e)=>{X2t.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>bxt(t,r,n)});function x4e(t){return jwt(RAt,t)}const OAt=cr("ZodAny",(t,e)=>{Q2t.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Sxt()});function IAt(){return Xwt(OAt)}const NAt=cr("ZodUnknown",(t,e)=>{Z2t.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Txt()});function js(){return Qwt(NAt)}const kAt=cr("ZodNever",(t,e)=>{J2t.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Ext(t,r,n)});function DAt(t){return Zwt(kAt,t)}const MAt=cr("ZodArray",(t,e)=>{ewt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Rxt(t,r,n,i),t.element=e.element,t.min=(r,n)=>t.check(G9(r,n)),t.nonempty=r=>t.check(G9(1,r)),t.max=(r,n)=>t.check(_4e(r,n)),t.length=(r,n)=>t.check(v4e(r,n)),t.unwrap=()=>t.element});function Wr(t,e){return uxt(MAt,t,e)}const A4e=cr("ZodObject",(t,e)=>{rwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Oxt(t,r,n,i),ja(t,"shape",()=>e.shape),t.keyof=()=>Qd(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:js()}),t.loose=()=>t.clone({...t._zod.def,catchall:js()}),t.strict=()=>t.clone({...t._zod.def,catchall:DAt()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>bCt(t,r),t.safeExtend=r=>ECt(t,r),t.merge=r=>SCt(t,r),t.pick=r=>vCt(t,r),t.omit=r=>yCt(t,r),t.partial=(...r)=>TCt(N4e,t,r[0]),t.required=(...r)=>CCt(k4e,t,r[0])});function jr(t,e){const r={type:"object",shape:t??{},...wn(e)};return new A4e(r)}function Xl(t,e){return new A4e({type:"object",shape:t,catchall:js(),...wn(e)})}const R4e=cr("ZodUnion",(t,e)=>{g4e.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Ixt(t,r,n,i),t.options=e.options});function vs(t,e){return new R4e({type:"union",options:t,...wn(e)})}const LAt=cr("ZodDiscriminatedUnion",(t,e)=>{R4e.init(t,e),nwt.init(t,e)});function O4e(t,e,r){return new LAt({type:"union",options:e,discriminator:t,...wn(r)})}const PAt=cr("ZodIntersection",(t,e)=>{iwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Nxt(t,r,n,i)});function foe(t,e){return new PAt({type:"intersection",left:t,right:e})}const FAt=cr("ZodRecord",(t,e)=>{awt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>kxt(t,r,n,i),t.keyType=e.keyType,t.valueType=e.valueType});function Xs(t,e,r){return new FAt({type:"record",keyType:t,valueType:e,...wn(r)})}const SZ=cr("ZodEnum",(t,e)=>{swt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(n,i,a)=>Cxt(t,n,i),t.enum=e.entries,t.options=Object.values(e.entries);const r=new Set(Object.keys(e.entries));t.extract=(n,i)=>{const a={};for(const s of n)if(r.has(s))a[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new SZ({...e,checks:[],...wn(i),entries:a})},t.exclude=(n,i)=>{const a={...e.entries};for(const s of n)if(r.has(s))delete a[s];else throw new Error(`Key ${s} not found in enum`);return new SZ({...e,checks:[],...wn(i),entries:a})}});function Qd(t,e){const r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new SZ({type:"enum",entries:r,...wn(e)})}const BAt=cr("ZodLiteral",(t,e)=>{owt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>wxt(t,r,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function In(t,e){return new BAt({type:"literal",values:Array.isArray(t)?t:[t],...wn(e)})}const UAt=cr("ZodTransform",(t,e)=>{lwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Axt(t,r),t._zod.parse=(r,n)=>{if(n.direction==="backward")throw new XDe(t.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(pk(a,r.value,e));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),r.issues.push(pk(s))}};const i=e.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)}});function I4e(t){return new UAt({type:"transform",transform:t})}const N4e=cr("ZodOptional",(t,e)=>{cwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>$xt(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function fo(t){return new N4e({type:"optional",innerType:t})}const $At=cr("ZodNullable",(t,e)=>{uwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Dxt(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function nye(t){return new $At({type:"nullable",innerType:t})}const GAt=cr("ZodDefault",(t,e)=>{dwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Lxt(t,r,n,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function zAt(t,e){return new GAt({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():e4e(e)}})}const qAt=cr("ZodPrefault",(t,e)=>{hwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Pxt(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function VAt(t,e){return new qAt({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():e4e(e)}})}const k4e=cr("ZodNonOptional",(t,e)=>{fwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Mxt(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function HAt(t,e){return new k4e({type:"nonoptional",innerType:t,...wn(e)})}const YAt=cr("ZodCatch",(t,e)=>{pwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Fxt(t,r,n,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function WAt(t,e){return new YAt({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const KAt=cr("ZodPipe",(t,e)=>{gwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Bxt(t,r,n,i),t.in=e.in,t.out=e.out});function TZ(t,e){return new KAt({type:"pipe",in:t,out:e})}const jAt=cr("ZodReadonly",(t,e)=>{mwt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>Uxt(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function XAt(t){return new jAt({type:"readonly",innerType:t})}const D4e=cr("ZodCustom",(t,e)=>{_wt.init(t,e),Ls.init(t,e),t._zod.processJSONSchema=(r,n,i)=>xxt(t,r)});function QAt(t,e){return dxt(D4e,t??(()=>!0),e)}function ZAt(t,e={}){return hxt(D4e,t,e)}function JAt(t){return fxt(t)}function M4e(t,e){return TZ(I4e(t),e)}const eRt={custom:"custom"};function tRt(t){return Ywt(hoe,t)}const NB="2025-11-25",rRt=[NB,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Gv="io.modelcontextprotocol/related-task",kB="2.0",Ql=QAt(t=>t!==null&&(typeof t=="object"||typeof t=="function")),L4e=vs([At(),Fa().int()]),P4e=At();Xl({ttl:vs([Fa(),x4e()]).optional(),pollInterval:Fa().optional()});const nRt=jr({ttl:Fa().optional()}),iRt=jr({taskId:At()}),poe=Xl({progressToken:L4e.optional(),[Gv]:iRt.optional()}),Zd=jr({_meta:poe.optional()}),h5=Zd.extend({task:nRt.optional()}),aRt=t=>h5.safeParse(t).success,oc=jr({method:At(),params:Zd.loose().optional()}),Qh=jr({_meta:poe.optional()}),Zh=jr({method:At(),params:Qh.loose().optional()}),lc=Xl({_meta:poe.optional()}),DB=vs([At(),Fa().int()]),F4e=jr({jsonrpc:In(kB),id:DB,...oc.shape}).strict(),CZ=t=>F4e.safeParse(t).success,B4e=jr({jsonrpc:In(kB),...Zh.shape}).strict(),sRt=t=>B4e.safeParse(t).success,goe=jr({jsonrpc:In(kB),id:DB,result:lc}).strict(),gI=t=>goe.safeParse(t).success;var gi;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(gi||(gi={}));const moe=jr({jsonrpc:In(kB),id:DB.optional(),error:jr({code:Fa().int(),message:At(),data:js().optional()})}).strict(),oRt=t=>moe.safeParse(t).success,oN=vs([F4e,B4e,goe,moe]);vs([goe,moe]);const uT=lc.strict(),lRt=Qh.extend({requestId:DB.optional(),reason:At().optional()}),_oe=Zh.extend({method:In("notifications/cancelled"),params:lRt}),cRt=jr({src:At(),mimeType:At().optional(),sizes:Wr(At()).optional(),theme:Qd(["light","dark"]).optional()}),f5=jr({icons:Wr(cRt).optional()}),nA=jr({name:At(),title:At().optional()}),U4e=nA.extend({...nA.shape,...f5.shape,version:At(),websiteUrl:At().optional(),description:At().optional()}),uRt=foe(jr({applyDefaults:fs().optional()}),Xs(At(),js())),dRt=M4e(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,foe(jr({form:uRt.optional(),url:Ql.optional()}),Xs(At(),js()).optional())),hRt=Xl({list:Ql.optional(),cancel:Ql.optional(),requests:Xl({sampling:Xl({createMessage:Ql.optional()}).optional(),elicitation:Xl({create:Ql.optional()}).optional()}).optional()}),fRt=Xl({list:Ql.optional(),cancel:Ql.optional(),requests:Xl({tools:Xl({call:Ql.optional()}).optional()}).optional()}),pRt=jr({experimental:Xs(At(),Ql).optional(),sampling:jr({context:Ql.optional(),tools:Ql.optional()}).optional(),elicitation:dRt.optional(),roots:jr({listChanged:fs().optional()}).optional(),tasks:hRt.optional()}),gRt=Zd.extend({protocolVersion:At(),capabilities:pRt,clientInfo:U4e}),mRt=oc.extend({method:In("initialize"),params:gRt}),_Rt=jr({experimental:Xs(At(),Ql).optional(),logging:Ql.optional(),completions:Ql.optional(),prompts:jr({listChanged:fs().optional()}).optional(),resources:jr({subscribe:fs().optional(),listChanged:fs().optional()}).optional(),tools:jr({listChanged:fs().optional()}).optional(),tasks:fRt.optional()}),$4e=lc.extend({protocolVersion:At(),capabilities:_Rt,serverInfo:U4e,instructions:At().optional()}),G4e=Zh.extend({method:In("notifications/initialized"),params:Qh.optional()}),vRt=t=>G4e.safeParse(t).success,voe=oc.extend({method:In("ping"),params:Zd.optional()}),yRt=jr({progress:Fa(),total:fo(Fa()),message:fo(At())}),bRt=jr({...Qh.shape,...yRt.shape,progressToken:L4e}),yoe=Zh.extend({method:In("notifications/progress"),params:bRt}),ERt=Zd.extend({cursor:P4e.optional()}),p5=oc.extend({params:ERt.optional()}),g5=lc.extend({nextCursor:P4e.optional()}),SRt=Qd(["working","input_required","completed","failed","cancelled"]),m5=jr({taskId:At(),status:SRt,ttl:vs([Fa(),x4e()]),createdAt:At(),lastUpdatedAt:At(),pollInterval:fo(Fa()),statusMessage:fo(At())}),gk=lc.extend({task:m5}),TRt=Qh.merge(m5),q9=Zh.extend({method:In("notifications/tasks/status"),params:TRt}),boe=oc.extend({method:In("tasks/get"),params:Zd.extend({taskId:At()})}),Eoe=lc.merge(m5),Soe=oc.extend({method:In("tasks/result"),params:Zd.extend({taskId:At()})});lc.loose();const Toe=p5.extend({method:In("tasks/list")}),Coe=g5.extend({tasks:Wr(m5)}),woe=oc.extend({method:In("tasks/cancel"),params:Zd.extend({taskId:At()})}),CRt=lc.merge(m5),z4e=jr({uri:At(),mimeType:fo(At()),_meta:Xs(At(),js()).optional()}),q4e=z4e.extend({text:At()}),xoe=At().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),V4e=z4e.extend({blob:xoe}),_5=Qd(["user","assistant"]),dR=jr({audience:Wr(_5).optional(),priority:Fa().min(0).max(1).optional(),lastModified:T4e({offset:!0}).optional()}),H4e=jr({...nA.shape,...f5.shape,uri:At(),description:fo(At()),mimeType:fo(At()),annotations:dR.optional(),_meta:fo(Xl({}))}),wRt=jr({...nA.shape,...f5.shape,uriTemplate:At(),description:fo(At()),mimeType:fo(At()),annotations:dR.optional(),_meta:fo(Xl({}))}),xRt=p5.extend({method:In("resources/list")}),Y4e=g5.extend({resources:Wr(H4e)}),ARt=p5.extend({method:In("resources/templates/list")}),W4e=g5.extend({resourceTemplates:Wr(wRt)}),Aoe=Zd.extend({uri:At()}),RRt=Aoe,ORt=oc.extend({method:In("resources/read"),params:RRt}),K4e=lc.extend({contents:Wr(vs([q4e,V4e]))}),j4e=Zh.extend({method:In("notifications/resources/list_changed"),params:Qh.optional()}),IRt=Aoe,NRt=oc.extend({method:In("resources/subscribe"),params:IRt}),kRt=Aoe,DRt=oc.extend({method:In("resources/unsubscribe"),params:kRt}),MRt=Qh.extend({uri:At()}),LRt=Zh.extend({method:In("notifications/resources/updated"),params:MRt}),PRt=jr({name:At(),description:fo(At()),required:fo(fs())}),FRt=jr({...nA.shape,...f5.shape,description:fo(At()),arguments:fo(Wr(PRt)),_meta:fo(Xl({}))}),BRt=p5.extend({method:In("prompts/list")}),X4e=g5.extend({prompts:Wr(FRt)}),URt=Zd.extend({name:At(),arguments:Xs(At(),At()).optional()}),$Rt=oc.extend({method:In("prompts/get"),params:URt}),Roe=jr({type:In("text"),text:At(),annotations:dR.optional(),_meta:Xs(At(),js()).optional()}),Ooe=jr({type:In("image"),data:xoe,mimeType:At(),annotations:dR.optional(),_meta:Xs(At(),js()).optional()}),Ioe=jr({type:In("audio"),data:xoe,mimeType:At(),annotations:dR.optional(),_meta:Xs(At(),js()).optional()}),GRt=jr({type:In("tool_use"),name:At(),id:At(),input:Xs(At(),js()),_meta:Xs(At(),js()).optional()}),zRt=jr({type:In("resource"),resource:vs([q4e,V4e]),annotations:dR.optional(),_meta:Xs(At(),js()).optional()}),qRt=H4e.extend({type:In("resource_link")}),Noe=vs([Roe,Ooe,Ioe,qRt,zRt]),VRt=jr({role:_5,content:Noe}),Q4e=lc.extend({description:At().optional(),messages:Wr(VRt)}),Z4e=Zh.extend({method:In("notifications/prompts/list_changed"),params:Qh.optional()}),HRt=jr({title:At().optional(),readOnlyHint:fs().optional(),destructiveHint:fs().optional(),idempotentHint:fs().optional(),openWorldHint:fs().optional()}),YRt=jr({taskSupport:Qd(["required","optional","forbidden"]).optional()}),J4e=jr({...nA.shape,...f5.shape,description:At().optional(),inputSchema:jr({type:In("object"),properties:Xs(At(),Ql).optional(),required:Wr(At()).optional()}).catchall(js()),outputSchema:jr({type:In("object"),properties:Xs(At(),Ql).optional(),required:Wr(At()).optional()}).catchall(js()).optional(),annotations:HRt.optional(),execution:YRt.optional(),_meta:Xs(At(),js()).optional()}),WRt=p5.extend({method:In("tools/list")}),eMe=g5.extend({tools:Wr(J4e)}),MB=lc.extend({content:Wr(Noe).default([]),structuredContent:Xs(At(),js()).optional(),isError:fs().optional()});MB.or(lc.extend({toolResult:js()}));const KRt=h5.extend({name:At(),arguments:Xs(At(),js()).optional()}),jRt=oc.extend({method:In("tools/call"),params:KRt}),tMe=Zh.extend({method:In("notifications/tools/list_changed"),params:Qh.optional()}),XRt=jr({autoRefresh:fs().default(!0),debounceMs:Fa().int().nonnegative().default(300)}),rMe=Qd(["debug","info","notice","warning","error","critical","alert","emergency"]),QRt=Zd.extend({level:rMe}),ZRt=oc.extend({method:In("logging/setLevel"),params:QRt}),JRt=Qh.extend({level:rMe,logger:At().optional(),data:js()}),eOt=Zh.extend({method:In("notifications/message"),params:JRt}),tOt=jr({name:At().optional()}),rOt=jr({hints:Wr(tOt).optional(),costPriority:Fa().min(0).max(1).optional(),speedPriority:Fa().min(0).max(1).optional(),intelligencePriority:Fa().min(0).max(1).optional()}),nOt=jr({mode:Qd(["auto","required","none"]).optional()}),iOt=jr({type:In("tool_result"),toolUseId:At().describe("The unique identifier for the corresponding tool call."),content:Wr(Noe).default([]),structuredContent:jr({}).loose().optional(),isError:fs().optional(),_meta:Xs(At(),js()).optional()}),aOt=O4e("type",[Roe,Ooe,Ioe]),V9=O4e("type",[Roe,Ooe,Ioe,GRt,iOt]),sOt=jr({role:_5,content:vs([V9,Wr(V9)]),_meta:Xs(At(),js()).optional()}),oOt=h5.extend({messages:Wr(sOt),modelPreferences:rOt.optional(),systemPrompt:At().optional(),includeContext:Qd(["none","thisServer","allServers"]).optional(),temperature:Fa().optional(),maxTokens:Fa().int(),stopSequences:Wr(At()).optional(),metadata:Ql.optional(),tools:Wr(J4e).optional(),toolChoice:nOt.optional()}),nMe=oc.extend({method:In("sampling/createMessage"),params:oOt}),iMe=lc.extend({model:At(),stopReason:fo(Qd(["endTurn","stopSequence","maxTokens"]).or(At())),role:_5,content:aOt}),aMe=lc.extend({model:At(),stopReason:fo(Qd(["endTurn","stopSequence","maxTokens","toolUse"]).or(At())),role:_5,content:vs([V9,Wr(V9)])}),lOt=jr({type:In("boolean"),title:At().optional(),description:At().optional(),default:fs().optional()}),cOt=jr({type:In("string"),title:At().optional(),description:At().optional(),minLength:Fa().optional(),maxLength:Fa().optional(),format:Qd(["email","uri","date","date-time"]).optional(),default:At().optional()}),uOt=jr({type:Qd(["number","integer"]),title:At().optional(),description:At().optional(),minimum:Fa().optional(),maximum:Fa().optional(),default:Fa().optional()}),dOt=jr({type:In("string"),title:At().optional(),description:At().optional(),enum:Wr(At()),default:At().optional()}),hOt=jr({type:In("string"),title:At().optional(),description:At().optional(),oneOf:Wr(jr({const:At(),title:At()})),default:At().optional()}),fOt=jr({type:In("string"),title:At().optional(),description:At().optional(),enum:Wr(At()),enumNames:Wr(At()).optional(),default:At().optional()}),pOt=vs([dOt,hOt]),gOt=jr({type:In("array"),title:At().optional(),description:At().optional(),minItems:Fa().optional(),maxItems:Fa().optional(),items:jr({type:In("string"),enum:Wr(At())}),default:Wr(At()).optional()}),mOt=jr({type:In("array"),title:At().optional(),description:At().optional(),minItems:Fa().optional(),maxItems:Fa().optional(),items:jr({anyOf:Wr(jr({const:At(),title:At()}))}),default:Wr(At()).optional()}),_Ot=vs([gOt,mOt]),vOt=vs([fOt,pOt,_Ot]),yOt=vs([vOt,lOt,cOt,uOt]),bOt=h5.extend({mode:In("form").optional(),message:At(),requestedSchema:jr({type:In("object"),properties:Xs(At(),yOt),required:Wr(At()).optional()})}),EOt=h5.extend({mode:In("url"),message:At(),elicitationId:At(),url:At().url()}),SOt=vs([bOt,EOt]),sMe=oc.extend({method:In("elicitation/create"),params:SOt}),TOt=Qh.extend({elicitationId:At()}),COt=Zh.extend({method:In("notifications/elicitation/complete"),params:TOt}),oMe=lc.extend({action:Qd(["accept","decline","cancel"]),content:M4e(t=>t===null?void 0:t,Xs(At(),vs([At(),Fa(),fs(),Wr(At())])).optional())}),wOt=jr({type:In("ref/resource"),uri:At()}),xOt=jr({type:In("ref/prompt"),name:At()}),AOt=Zd.extend({ref:vs([xOt,wOt]),argument:jr({name:At(),value:At()}),context:jr({arguments:Xs(At(),At()).optional()}).optional()}),ROt=oc.extend({method:In("completion/complete"),params:AOt}),lMe=lc.extend({completion:Xl({values:Wr(At()).max(100),total:fo(Fa().int()),hasMore:fo(fs())})}),OOt=jr({uri:At().startsWith("file://"),name:At().optional(),_meta:Xs(At(),js()).optional()}),IOt=oc.extend({method:In("roots/list"),params:Zd.optional()}),NOt=lc.extend({roots:Wr(OOt)}),kOt=Zh.extend({method:In("notifications/roots/list_changed"),params:Qh.optional()});vs([voe,mRt,ROt,ZRt,$Rt,BRt,xRt,ARt,ORt,NRt,DRt,jRt,WRt,boe,Soe,Toe,woe]);vs([_oe,yoe,G4e,kOt,q9]);vs([uT,iMe,aMe,oMe,NOt,Eoe,Coe,gk]);vs([voe,nMe,sMe,IOt,boe,Soe,Toe,woe]);vs([_oe,yoe,eOt,LRt,j4e,tMe,Z4e,q9,COt]);vs([uT,$4e,lMe,Q4e,X4e,Y4e,W4e,K4e,MB,eMe,Eoe,Coe,gk]);class Qn extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,r,n){if(e===gi.UrlElicitationRequired&&n){const i=n;if(i.elicitations)return new DOt(i.elicitations,r)}return new Qn(e,r,n)}}class DOt extends Qn{constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(gi.UrlElicitationRequired,r,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}function pv(t){return t==="completed"||t==="failed"||t==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function iye(t){const r=S4e(t)?.method;if(!r)throw new Error("Schema is missing a method literal");const n=Gxt(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function aye(t,e){const r=__(t,e);if(!r.success)throw r.error;return r.data}const MOt=6e4;class LOt{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(_oe,r=>{this._oncancel(r)}),this.setNotificationHandler(yoe,r=>{this._onprogress(r)}),this.setRequestHandler(voe,r=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(boe,async(r,n)=>{const i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new Qn(gi.InvalidParams,"Failed to retrieve task: Task not found");return{...i}}),this.setRequestHandler(Soe,async(r,n)=>{const i=async()=>{const a=r.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(a,n.sessionId);){if(o.type==="response"||o.type==="error"){const l=o.message,u=l.id,d=this._requestResolvers.get(u);if(d)if(this._requestResolvers.delete(u),o.type==="response")d(l);else{const h=l,f=new Qn(h.error.code,h.error.message,h.error.data);d(f)}else{const h=o.type==="response"?"Response":"Error";this._onerror(new Error(`${h} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:n.requestId})}}const s=await this._taskStore.getTask(a,n.sessionId);if(!s)throw new Qn(gi.InvalidParams,`Task not found: ${a}`);if(!pv(s.status))return await this._waitForTaskUpdate(a,n.signal),await i();if(pv(s.status)){const o=await this._taskStore.getTaskResult(a,n.sessionId);return this._clearTaskQueue(a),{...o,_meta:{...o._meta,[Gv]:{taskId:a}}}}return await i()};return await i()}),this.setRequestHandler(Toe,async(r,n)=>{try{const{tasks:i,nextCursor:a}=await this._taskStore.listTasks(r.params?.cursor,n.sessionId);return{tasks:i,nextCursor:a,_meta:{}}}catch(i){throw new Qn(gi.InvalidParams,`Failed to list tasks: ${i instanceof Error?i.message:String(i)}`)}}),this.setRequestHandler(woe,async(r,n)=>{try{const i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new Qn(gi.InvalidParams,`Task not found: ${r.params.taskId}`);if(pv(i.status))throw new Qn(gi.InvalidParams,`Cannot cancel task in terminal status: ${i.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);const a=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!a)throw new Qn(gi.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...a}}catch(i){throw i instanceof Qn?i:new Qn(gi.InvalidRequest,`Failed to cancel task: ${i instanceof Error?i.message:String(i)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,r,n,i,a=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:a,onTimeout:i})}_resetTimeout(e){const r=this._timeoutInfo.get(e);if(!r)return!1;const n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),Qn.fromError(gi.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){const r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;const r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};const n=this.transport?.onerror;this._transport.onerror=a=>{n?.(a),this._onerror(a)};const i=this._transport?.onmessage;this._transport.onmessage=(a,s)=>{i?.(a,s),gI(a)||oRt(a)?this._onresponse(a):CZ(a)?this._onrequest(a,s):sRt(a)?this._onnotification(a):this._onerror(new Error(`Unknown message type: ${JSON.stringify(a)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();const r=Qn.fromError(gi.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const n of e.values())n(r)}_onerror(e){this.onerror?.(e)}_onnotification(e){const r=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,r){const n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,i=this._transport,a=e.params?._meta?.[Gv]?.taskId;if(n===void 0){const d={jsonrpc:"2.0",id:e.id,error:{code:gi.MethodNotFound,message:"Method not found"}};a&&this._taskMessageQueue?this._enqueueTaskMessage(a,{type:"error",message:d,timestamp:Date.now()},i?.sessionId).catch(h=>this._onerror(new Error(`Failed to enqueue error response: ${h}`))):i?.send(d).catch(h=>this._onerror(new Error(`Failed to send an error response: ${h}`)));return}const s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);const o=aRt(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,i?.sessionId):void 0,u={signal:s.signal,sessionId:i?.sessionId,_meta:e.params?._meta,sendNotification:async d=>{if(s.signal.aborted)return;const h={relatedRequestId:e.id};a&&(h.relatedTask={taskId:a}),await this.notification(d,h)},sendRequest:async(d,h,f)=>{if(s.signal.aborted)throw new Qn(gi.ConnectionClosed,"Request was cancelled");const p={...f,relatedRequestId:e.id};a&&!p.relatedTask&&(p.relatedTask={taskId:a});const g=p.relatedTask?.taskId??a;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(d,h,p)},authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo,taskId:a,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async d=>{if(s.signal.aborted)return;const h={result:d,jsonrpc:"2.0",id:e.id};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"response",message:h,timestamp:Date.now()},i?.sessionId):await i?.send(h)},async d=>{if(s.signal.aborted)return;const h={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(d.code)?d.code:gi.InternalError,message:d.message??"Internal error",...d.data!==void 0&&{data:d.data}}};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"error",message:h,timestamp:Date.now()},i?.sessionId):await i?.send(h)}).catch(d=>this._onerror(new Error(`Failed to send response: ${d}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:r,...n}=e.params,i=Number(r),a=this._progressHandlers.get(i);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}const s=this._responseHandlers.get(i),o=this._timeoutInfo.get(i);if(o&&s&&o.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(l){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),s(l);return}a(n)}_onresponse(e){const r=Number(e.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),gI(e))n(e);else{const s=new Qn(e.error.code,e.error.message,e.error.data);n(s)}return}const i=this._responseHandlers.get(r);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let a=!1;if(gI(e)&&e.result&&typeof e.result=="object"){const s=e.result;if(s.task&&typeof s.task=="object"){const o=s.task;typeof o.taskId=="string"&&(a=!0,this._taskProgressTokens.set(o.taskId,r))}}if(a||this._progressHandlers.delete(r),gI(e))i(e);else{const s=Qn.fromError(e.error.code,e.error.message,e.error.data);i(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,r,n){const{task:i}=n??{};if(!i){try{yield{type:"result",result:await this.request(e,r,n)}}catch(s){yield{type:"error",error:s instanceof Qn?s:new Qn(gi.InternalError,String(s))}}return}let a;try{const s=await this.request(e,gk,n);if(s.task)a=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new Qn(gi.InternalError,"Task creation did not return a task");for(;;){const o=await this.getTask({taskId:a},n);if(yield{type:"taskStatus",task:o},pv(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:a},r,n)}:o.status==="failed"?yield{type:"error",error:new Qn(gi.InternalError,`Task ${a} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new Qn(gi.InternalError,`Task ${a} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:a},r,n)};return}const l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof Qn?s:new Qn(gi.InternalError,String(s))}}}request(e,r,n){const{relatedRequestId:i,resumptionToken:a,onresumptiontoken:s,task:o,relatedTask:l}=n??{};return new Promise((u,d)=>{const h=y=>{d(y)};if(!this._transport){h(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(y){h(y);return}n?.signal?.throwIfAborted();const f=this._requestMessageId++,p={...e,jsonrpc:"2.0",id:f};n?.onprogress&&(this._progressHandlers.set(f,n.onprogress),p.params={...e.params,_meta:{...e.params?._meta||{},progressToken:f}}),o&&(p.params={...p.params,task:o}),l&&(p.params={...p.params,_meta:{...p.params?._meta||{},[Gv]:l}});const g=y=>{this._responseHandlers.delete(f),this._progressHandlers.delete(f),this._cleanupTimeout(f),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:f,reason:String(y)}},{relatedRequestId:i,resumptionToken:a,onresumptiontoken:s}).catch(E=>this._onerror(new Error(`Failed to send cancellation: ${E}`)));const b=y instanceof Qn?y:new Qn(gi.RequestTimeout,String(y));d(b)};this._responseHandlers.set(f,y=>{if(!n?.signal?.aborted){if(y instanceof Error)return d(y);try{const b=__(r,y.result);b.success?u(b.data):d(b.error)}catch(b){d(b)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});const m=n?.timeout??MOt,_=()=>g(Qn.fromError(gi.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(f,m,n?.maxTotalTimeout,_,n?.resetTimeoutOnProgress??!1);const v=l?.taskId;if(v){const y=b=>{const E=this._responseHandlers.get(f);E?E(b):this._onerror(new Error(`Response handler missing for side-channeled request ${f}`))};this._requestResolvers.set(f,y),this._enqueueTaskMessage(v,{type:"request",message:p,timestamp:Date.now()}).catch(b=>{this._cleanupTimeout(f),d(b)})}else this._transport.send(p,{relatedRequestId:i,resumptionToken:a,onresumptiontoken:s}).catch(y=>{this._cleanupTimeout(f),d(y)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},Eoe,r)}async getTaskResult(e,r,n){return this.request({method:"tasks/result",params:e},r,n)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},Coe,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},CRt,r)}async notification(e,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const n=r?.relatedTask?.taskId;if(n){const o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[Gv]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let o={...e,jsonrpc:"2.0"};r?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[Gv]:r.relatedTask}}}),this._transport?.send(o,r).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[Gv]:r.relatedTask}}}),await this._transport.send(s,r)}setRequestHandler(e,r){const n=iye(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,a)=>{const s=aye(e,i);return Promise.resolve(r(s,a))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){const n=iye(e);this._notificationHandlers.set(n,i=>{const a=aye(e,i);return Promise.resolve(r(a))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const i=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,n,i)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){const n=await this._taskMessageQueue.dequeueAll(e,r);for(const i of n)if(i.type==="request"&&CZ(i.message)){const a=i.message.id,s=this._requestResolvers.get(a);s?(s(new Qn(gi.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(a)):this._onerror(new Error(`Resolver missing for request ${a} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){let n=this._options?.defaultTaskPollInterval??1e3;try{const i=await this._taskStore?.getTask(e);i?.pollInterval&&(n=i.pollInterval)}catch{}return new Promise((i,a)=>{if(r.aborted){a(new Qn(gi.InvalidRequest,"Request cancelled"));return}const s=setTimeout(i,n);r.addEventListener("abort",()=>{clearTimeout(s),a(new Qn(gi.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){const n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async i=>{if(!e)throw new Error("No request provided");return await n.createTask(i,e.id,{method:e.method,params:e.params},r)},getTask:async i=>{const a=await n.getTask(i,r);if(!a)throw new Qn(gi.InvalidParams,"Failed to retrieve task: Task not found");return a},storeTaskResult:async(i,a,s)=>{await n.storeTaskResult(i,a,s,r);const o=await n.getTask(i,r);if(o){const l=q9.parse({method:"notifications/tasks/status",params:o});await this.notification(l),pv(o.status)&&this._cleanupTaskProgressHandler(i)}},getTaskResult:i=>n.getTaskResult(i,r),updateTaskStatus:async(i,a,s)=>{const o=await n.getTask(i,r);if(!o)throw new Qn(gi.InvalidParams,`Task "${i}" not found - it may have been cleaned up`);if(pv(o.status))throw new Qn(gi.InvalidParams,`Cannot update task "${i}" from terminal status "${o.status}" to "${a}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(i,a,s,r);const l=await n.getTask(i,r);if(l){const u=q9.parse({method:"notifications/tasks/status",params:l});await this.notification(u),pv(l.status)&&this._cleanupTaskProgressHandler(i)}},listTasks:i=>n.listTasks(i,r)}}}function sye(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function POt(t,e){const r={...t};for(const n in e){const i=n,a=e[i];if(a===void 0)continue;const s=r[i];sye(s)&&sye(a)?r[i]={...s,...a}:r[i]=a}return r}var S4={exports:{}},zY={},jg={},gv={},qY={},VY={},HY={},oye;function H9(){return oye||(oye=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(y){if(super(),!t.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((b,E)=>`${b}${E}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((b,E)=>(E instanceof r&&(b[E.str]=(b[E.str]||0)+1),b),{})}}t._Code=n,t.nil=new n("");function i(v,...y){const b=[v[0]];let E=0;for(;E<y.length;)o(b,y[E]),b.push(v[++E]);return new n(b)}t._=i;const a=new n("+");function s(v,...y){const b=[p(v[0])];let E=0;for(;E<y.length;)b.push(a),o(b,y[E]),b.push(a,p(v[++E]));return l(b),new n(b)}t.str=s;function o(v,y){y instanceof n?v.push(...y._items):y instanceof r?v.push(y):v.push(h(y))}t.addCodeArg=o;function l(v){let y=1;for(;y<v.length-1;){if(v[y]===a){const b=u(v[y-1],v[y+1]);if(b!==void 0){v.splice(y-1,3,b);continue}v[y++]="+"}y++}}function u(v,y){if(y==='""')return v;if(v==='""')return y;if(typeof v=="string")return y instanceof r||v[v.length-1]!=='"'?void 0:typeof y!="string"?`${v.slice(0,-1)}${y}"`:y[0]==='"'?v.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(v instanceof r))return`"${v}${y.slice(1)}`}function d(v,y){return y.emptyStr()?v:v.emptyStr()?y:s`${v}${y}`}t.strConcat=d;function h(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:p(Array.isArray(v)?v.join(","):v)}function f(v){return new n(p(v))}t.stringify=f;function p(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=p;function g(v){return typeof v=="string"&&t.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}t.getProperty=g;function m(v){if(typeof v=="string"&&t.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}t.getEsmExportName=m;function _(v){return new n(v.toString())}t.regexpCode=_})(HY)),HY}var YY={},lye;function cye(){return lye||(lye=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=H9();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof e.Name?u:this.name(u)}name(u){return new e.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}t.Scope=i;class a extends e.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:h}){this.value=u,this.scopePath=(0,e._)`.${new e.Name(d)}[${h}]`}}t.ValueScopeName=a;const s=(0,e._)`\n`;class o extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s:e.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(u),{prefix:p}=f,g=(h=d.key)!==null&&h!==void 0?h:d.ref;let m=this._values[p];if(m){const y=m.get(g);if(y)return y}else m=this._values[p]=new Map;m.set(g,f);const _=this._scope[p]||(this._scope[p]=[]),v=_.length;return _[v]=d.ref,f.setValue(d,{property:p,itemIndex:v}),f}getValue(u,d){const h=this._values[u];if(h)return h.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,e._)`${u}${h.scopePath}`})}scopeCode(u=this._values,d,h){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},d,h)}_reduceValues(u,d,h={},f){let p=e.nil;for(const g in u){const m=u[g];if(!m)continue;const _=h[g]=h[g]||new Map;m.forEach(v=>{if(_.has(v))return;_.set(v,n.Started);let y=d(v);if(y){const b=this.opts.es5?t.varKinds.var:t.varKinds.const;p=(0,e._)`${p}${b} ${v} = ${y};${this.opts._n}`}else if(y=f?.(v))p=(0,e._)`${p}${y}${this.opts._n}`;else throw new r(v);_.set(v,n.Completed)})}return p}}t.ValueScope=o})(YY)),YY}var uye;function Zi(){return uye||(uye=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=H9(),r=cye();var n=H9();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=cye();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class a{optimizeNodes(){return this}optimizeNames(G,Y){return this}}class s extends a{constructor(G,Y,W){super(),this.varKind=G,this.name=Y,this.rhs=W}render({es5:G,_n:Y}){const W=G?r.varKinds.var:this.varKind,Q=this.rhs===void 0?"":` = ${this.rhs}`;return`${W} ${this.name}${Q};`+Y}optimizeNames(G,Y){if(G[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,G,Y)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class o extends a{constructor(G,Y,W){super(),this.lhs=G,this.rhs=Y,this.sideEffects=W}render({_n:G}){return`${this.lhs} = ${this.rhs};`+G}optimizeNames(G,Y){if(!(this.lhs instanceof e.Name&&!G[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,G,Y),this}get names(){const G=this.lhs instanceof e.Name?{}:{...this.lhs.names};return F(G,this.rhs)}}class l extends o{constructor(G,Y,W,Q){super(G,W,Q),this.op=Y}render({_n:G}){return`${this.lhs} ${this.op}= ${this.rhs};`+G}}class u extends a{constructor(G){super(),this.label=G,this.names={}}render({_n:G}){return`${this.label}:`+G}}class d extends a{constructor(G){super(),this.label=G,this.names={}}render({_n:G}){return`break${this.label?` ${this.label}`:""};`+G}}class h extends a{constructor(G){super(),this.error=G}render({_n:G}){return`throw ${this.error};`+G}get names(){return this.error.names}}class f extends a{constructor(G){super(),this.code=G}render({_n:G}){return`${this.code};`+G}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(G,Y){return this.code=O(this.code,G,Y),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class p extends a{constructor(G=[]){super(),this.nodes=G}render(G){return this.nodes.reduce((Y,W)=>Y+W.render(G),"")}optimizeNodes(){const{nodes:G}=this;let Y=G.length;for(;Y--;){const W=G[Y].optimizeNodes();Array.isArray(W)?G.splice(Y,1,...W):W?G[Y]=W:G.splice(Y,1)}return G.length>0?this:void 0}optimizeNames(G,Y){const{nodes:W}=this;let Q=W.length;for(;Q--;){const ie=W[Q];ie.optimizeNames(G,Y)||(D(G,ie.names),W.splice(Q,1))}return W.length>0?this:void 0}get names(){return this.nodes.reduce((G,Y)=>L(G,Y.names),{})}}class g extends p{render(G){return"{"+G._n+super.render(G)+"}"+G._n}}class m extends p{}class _ extends g{}_.kind="else";class v extends g{constructor(G,Y){super(Y),this.condition=G}render(G){let Y=`if(${this.condition})`+super.render(G);return this.else&&(Y+="else "+this.else.render(G)),Y}optimizeNodes(){super.optimizeNodes();const G=this.condition;if(G===!0)return this.nodes;let Y=this.else;if(Y){const W=Y.optimizeNodes();Y=this.else=Array.isArray(W)?new _(W):W}if(Y)return G===!1?Y instanceof v?Y:Y.nodes:this.nodes.length?this:new v(M(G),Y instanceof v?[Y]:Y.nodes);if(!(G===!1||!this.nodes.length))return this}optimizeNames(G,Y){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(G,Y),!!(super.optimizeNames(G,Y)||this.else))return this.condition=O(this.condition,G,Y),this}get names(){const G=super.names;return F(G,this.condition),this.else&&L(G,this.else.names),G}}v.kind="if";class y extends g{}y.kind="for";class b extends y{constructor(G){super(),this.iteration=G}render(G){return`for(${this.iteration})`+super.render(G)}optimizeNames(G,Y){if(super.optimizeNames(G,Y))return this.iteration=O(this.iteration,G,Y),this}get names(){return L(super.names,this.iteration.names)}}class E extends y{constructor(G,Y,W,Q){super(),this.varKind=G,this.name=Y,this.from=W,this.to=Q}render(G){const Y=G.es5?r.varKinds.var:this.varKind,{name:W,from:Q,to:ie}=this;return`for(${Y} ${W}=${Q}; ${W}<${ie}; ${W}++)`+super.render(G)}get names(){const G=F(super.names,this.from);return F(G,this.to)}}class S extends y{constructor(G,Y,W,Q){super(),this.loop=G,this.varKind=Y,this.name=W,this.iterable=Q}render(G){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(G)}optimizeNames(G,Y){if(super.optimizeNames(G,Y))return this.iterable=O(this.iterable,G,Y),this}get names(){return L(super.names,this.iterable.names)}}class T extends g{constructor(G,Y,W){super(),this.name=G,this.args=Y,this.async=W}render(G){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(G)}}T.kind="func";class C extends p{render(G){return"return "+super.render(G)}}C.kind="return";class x extends g{render(G){let Y="try"+super.render(G);return this.catch&&(Y+=this.catch.render(G)),this.finally&&(Y+=this.finally.render(G)),Y}optimizeNodes(){var G,Y;return super.optimizeNodes(),(G=this.catch)===null||G===void 0||G.optimizeNodes(),(Y=this.finally)===null||Y===void 0||Y.optimizeNodes(),this}optimizeNames(G,Y){var W,Q;return super.optimizeNames(G,Y),(W=this.catch)===null||W===void 0||W.optimizeNames(G,Y),(Q=this.finally)===null||Q===void 0||Q.optimizeNames(G,Y),this}get names(){const G=super.names;return this.catch&&L(G,this.catch.names),this.finally&&L(G,this.finally.names),G}}class A extends g{constructor(G){super(),this.error=G}render(G){return`catch(${this.error})`+super.render(G)}}A.kind="catch";class R extends g{render(G){return"finally"+super.render(G)}}R.kind="finally";class I{constructor(G,Y={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Y,_n:Y.lines?`
`:""},this._extScope=G,this._scope=new r.Scope({parent:G}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(G){return this._scope.name(G)}scopeName(G){return this._extScope.name(G)}scopeValue(G,Y){const W=this._extScope.value(G,Y);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}getScopeValue(G,Y){return this._extScope.getValue(G,Y)}scopeRefs(G){return this._extScope.scopeRefs(G,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(G,Y,W,Q){const ie=this._scope.toName(Y);return W!==void 0&&Q&&(this._constants[ie.str]=W),this._leafNode(new s(G,ie,W)),ie}const(G,Y,W){return this._def(r.varKinds.const,G,Y,W)}let(G,Y,W){return this._def(r.varKinds.let,G,Y,W)}var(G,Y,W){return this._def(r.varKinds.var,G,Y,W)}assign(G,Y,W){return this._leafNode(new o(G,Y,W))}add(G,Y){return this._leafNode(new l(G,t.operators.ADD,Y))}code(G){return typeof G=="function"?G():G!==e.nil&&this._leafNode(new f(G)),this}object(...G){const Y=["{"];for(const[W,Q]of G)Y.length>1&&Y.push(","),Y.push(W),(W!==Q||this.opts.es5)&&(Y.push(":"),(0,e.addCodeArg)(Y,Q));return Y.push("}"),new e._Code(Y)}if(G,Y,W){if(this._blockNode(new v(G)),Y&&W)this.code(Y).else().code(W).endIf();else if(Y)this.code(Y).endIf();else if(W)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(G){return this._elseNode(new v(G))}else(){return this._elseNode(new _)}endIf(){return this._endBlockNode(v,_)}_for(G,Y){return this._blockNode(G),Y&&this.code(Y).endFor(),this}for(G,Y){return this._for(new b(G),Y)}forRange(G,Y,W,Q,ie=this.opts.es5?r.varKinds.var:r.varKinds.let){const Z=this._scope.toName(G);return this._for(new E(ie,Z,Y,W),()=>Q(Z))}forOf(G,Y,W,Q=r.varKinds.const){const ie=this._scope.toName(G);if(this.opts.es5){const Z=Y instanceof e.Name?Y:this.var("_arr",Y);return this.forRange("_i",0,(0,e._)`${Z}.length`,re=>{this.var(ie,(0,e._)`${Z}[${re}]`),W(ie)})}return this._for(new S("of",Q,ie,Y),()=>W(ie))}forIn(G,Y,W,Q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(G,(0,e._)`Object.keys(${Y})`,W);const ie=this._scope.toName(G);return this._for(new S("in",Q,ie,Y),()=>W(ie))}endFor(){return this._endBlockNode(y)}label(G){return this._leafNode(new u(G))}break(G){return this._leafNode(new d(G))}return(G){const Y=new C;if(this._blockNode(Y),this.code(G),Y.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(G,Y,W){if(!Y&&!W)throw new Error('CodeGen: "try" without "catch" and "finally"');const Q=new x;if(this._blockNode(Q),this.code(G),Y){const ie=this.name("e");this._currNode=Q.catch=new A(ie),Y(ie)}return W&&(this._currNode=Q.finally=new R,this.code(W)),this._endBlockNode(A,R)}throw(G){return this._leafNode(new h(G))}block(G,Y){return this._blockStarts.push(this._nodes.length),G&&this.code(G).endBlock(Y),this}endBlock(G){const Y=this._blockStarts.pop();if(Y===void 0)throw new Error("CodeGen: not in self-balancing block");const W=this._nodes.length-Y;if(W<0||G!==void 0&&W!==G)throw new Error(`CodeGen: wrong number of nodes: ${W} vs ${G} expected`);return this._nodes.length=Y,this}func(G,Y=e.nil,W,Q){return this._blockNode(new T(G,Y,W)),Q&&this.code(Q).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(G=1){for(;G-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(G){return this._currNode.nodes.push(G),this}_blockNode(G){this._currNode.nodes.push(G),this._nodes.push(G)}_endBlockNode(G,Y){const W=this._currNode;if(W instanceof G||Y&&W instanceof Y)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Y?`${G.kind}/${Y.kind}`:G.kind}"`)}_elseNode(G){const Y=this._currNode;if(!(Y instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=Y.else=G,this}get _root(){return this._nodes[0]}get _currNode(){const G=this._nodes;return G[G.length-1]}set _currNode(G){const Y=this._nodes;Y[Y.length-1]=G}}t.CodeGen=I;function L(z,G){for(const Y in G)z[Y]=(z[Y]||0)+(G[Y]||0);return z}function F(z,G){return G instanceof e._CodeOrName?L(z,G.names):z}function O(z,G,Y){if(z instanceof e.Name)return W(z);if(!Q(z))return z;return new e._Code(z._items.reduce((ie,Z)=>(Z instanceof e.Name&&(Z=W(Z)),Z instanceof e._Code?ie.push(...Z._items):ie.push(Z),ie),[]));function W(ie){const Z=Y[ie.str];return Z===void 0||G[ie.str]!==1?ie:(delete G[ie.str],Z)}function Q(ie){return ie instanceof e._Code&&ie._items.some(Z=>Z instanceof e.Name&&G[Z.str]===1&&Y[Z.str]!==void 0)}}function D(z,G){for(const Y in G)z[Y]=(z[Y]||0)-(G[Y]||0)}function M(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,e._)`!${V(z)}`}t.not=M;const P=B(t.operators.AND);function N(...z){return z.reduce(P)}t.and=N;const $=B(t.operators.OR);function U(...z){return z.reduce($)}t.or=U;function B(z){return(G,Y)=>G===e.nil?Y:Y===e.nil?G:(0,e._)`${V(G)} ${z} ${V(Y)}`}function V(z){return z instanceof e.Name?z:(0,e._)`(${z})`}})(VY)),VY}var Oi={},dye;function ga(){if(dye)return Oi;dye=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.checkStrictMode=Oi.getErrorPath=Oi.Type=Oi.useFunc=Oi.setEvaluated=Oi.evaluatedPropsToName=Oi.mergeEvaluated=Oi.eachItem=Oi.unescapeJsonPointer=Oi.escapeJsonPointer=Oi.escapeFragment=Oi.unescapeFragment=Oi.schemaRefOrVal=Oi.schemaHasRulesButRef=Oi.schemaHasRules=Oi.checkUnknownRules=Oi.alwaysValidSchema=Oi.toHash=void 0;const t=Zi(),e=H9();function r(S){const T={};for(const C of S)T[C]=!0;return T}Oi.toHash=r;function n(S,T){return typeof T=="boolean"?T:Object.keys(T).length===0?!0:(i(S,T),!a(T,S.self.RULES.all))}Oi.alwaysValidSchema=n;function i(S,T=S.schema){const{opts:C,self:x}=S;if(!C.strictSchema||typeof T=="boolean")return;const A=x.RULES.keywords;for(const R in T)A[R]||E(S,`unknown keyword: "${R}"`)}Oi.checkUnknownRules=i;function a(S,T){if(typeof S=="boolean")return!S;for(const C in S)if(T[C])return!0;return!1}Oi.schemaHasRules=a;function s(S,T){if(typeof S=="boolean")return!S;for(const C in S)if(C!=="$ref"&&T.all[C])return!0;return!1}Oi.schemaHasRulesButRef=s;function o({topSchemaRef:S,schemaPath:T},C,x,A){if(!A){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,t._)`${C}`}return(0,t._)`${S}${T}${(0,t.getProperty)(x)}`}Oi.schemaRefOrVal=o;function l(S){return h(decodeURIComponent(S))}Oi.unescapeFragment=l;function u(S){return encodeURIComponent(d(S))}Oi.escapeFragment=u;function d(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}Oi.escapeJsonPointer=d;function h(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}Oi.unescapeJsonPointer=h;function f(S,T){if(Array.isArray(S))for(const C of S)T(C);else T(S)}Oi.eachItem=f;function p({mergeNames:S,mergeToName:T,mergeValues:C,resultToName:x}){return(A,R,I,L)=>{const F=I===void 0?R:I instanceof t.Name?(R instanceof t.Name?S(A,R,I):T(A,R,I),I):R instanceof t.Name?(T(A,I,R),R):C(R,I);return L===t.Name&&!(F instanceof t.Name)?x(A,F):F}}Oi.mergeEvaluated={props:p({mergeNames:(S,T,C)=>S.if((0,t._)`${C} !== true && ${T} !== undefined`,()=>{S.if((0,t._)`${T} === true`,()=>S.assign(C,!0),()=>S.assign(C,(0,t._)`${C} || {}`).code((0,t._)`Object.assign(${C}, ${T})`))}),mergeToName:(S,T,C)=>S.if((0,t._)`${C} !== true`,()=>{T===!0?S.assign(C,!0):(S.assign(C,(0,t._)`${C} || {}`),m(S,C,T))}),mergeValues:(S,T)=>S===!0?!0:{...S,...T},resultToName:g}),items:p({mergeNames:(S,T,C)=>S.if((0,t._)`${C} !== true && ${T} !== undefined`,()=>S.assign(C,(0,t._)`${T} === true ? true : ${C} > ${T} ? ${C} : ${T}`)),mergeToName:(S,T,C)=>S.if((0,t._)`${C} !== true`,()=>S.assign(C,T===!0?!0:(0,t._)`${C} > ${T} ? ${C} : ${T}`)),mergeValues:(S,T)=>S===!0?!0:Math.max(S,T),resultToName:(S,T)=>S.var("items",T)})};function g(S,T){if(T===!0)return S.var("props",!0);const C=S.var("props",(0,t._)`{}`);return T!==void 0&&m(S,C,T),C}Oi.evaluatedPropsToName=g;function m(S,T,C){Object.keys(C).forEach(x=>S.assign((0,t._)`${T}${(0,t.getProperty)(x)}`,!0))}Oi.setEvaluated=m;const _={};function v(S,T){return S.scopeValue("func",{ref:T,code:_[T.code]||(_[T.code]=new e._Code(T.code))})}Oi.useFunc=v;var y;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(y||(Oi.Type=y={}));function b(S,T,C){if(S instanceof t.Name){const x=T===y.Num;return C?x?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:x?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,t.getProperty)(S).toString():"/"+d(S)}Oi.getErrorPath=b;function E(S,T,C=S.opts.strictSchema){if(C){if(T=`strict mode: ${T}`,C===!0)throw new Error(T);S.self.logger.warn(T)}}return Oi.checkStrictMode=E,Oi}var T4={},hye;function $1(){if(hye)return T4;hye=1,Object.defineProperty(T4,"__esModule",{value:!0});const t=Zi(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return T4.default=e,T4}var fye;function LB(){return fye||(fye=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=Zi(),r=ga(),n=$1();t.keywordError={message:({keyword:_})=>(0,e.str)`must pass "${_}" keyword validation`},t.keyword$DataError={message:({keyword:_,schemaType:v})=>v?(0,e.str)`"${_}" keyword must be ${v} ($data)`:(0,e.str)`"${_}" keyword is invalid ($data)`};function i(_,v=t.keywordError,y,b){const{it:E}=_,{gen:S,compositeRule:T,allErrors:C}=E,x=h(_,v,y);b??(T||C)?l(S,x):u(E,(0,e._)`[${x}]`)}t.reportError=i;function a(_,v=t.keywordError,y){const{it:b}=_,{gen:E,compositeRule:S,allErrors:T}=b,C=h(_,v,y);l(E,C),S||T||u(b,n.default.vErrors)}t.reportExtraError=a;function s(_,v){_.assign(n.default.errors,v),_.if((0,e._)`${n.default.vErrors} !== null`,()=>_.if(v,()=>_.assign((0,e._)`${n.default.vErrors}.length`,v),()=>_.assign(n.default.vErrors,null)))}t.resetErrorsCount=s;function o({gen:_,keyword:v,schemaValue:y,data:b,errsCount:E,it:S}){if(E===void 0)throw new Error("ajv implementation error");const T=_.name("err");_.forRange("i",E,n.default.errors,C=>{_.const(T,(0,e._)`${n.default.vErrors}[${C}]`),_.if((0,e._)`${T}.instancePath === undefined`,()=>_.assign((0,e._)`${T}.instancePath`,(0,e.strConcat)(n.default.instancePath,S.errorPath))),_.assign((0,e._)`${T}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${v}`),S.opts.verbose&&(_.assign((0,e._)`${T}.schema`,y),_.assign((0,e._)`${T}.data`,b))})}t.extendErrors=o;function l(_,v){const y=_.const("err",v);_.if((0,e._)`${n.default.vErrors} === null`,()=>_.assign(n.default.vErrors,(0,e._)`[${y}]`),(0,e._)`${n.default.vErrors}.push(${y})`),_.code((0,e._)`${n.default.errors}++`)}function u(_,v){const{gen:y,validateName:b,schemaEnv:E}=_;E.$async?y.throw((0,e._)`new ${_.ValidationError}(${v})`):(y.assign((0,e._)`${b}.errors`,v),y.return(!1))}const d={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function h(_,v,y){const{createErrors:b}=_.it;return b===!1?(0,e._)`{}`:f(_,v,y)}function f(_,v,y={}){const{gen:b,it:E}=_,S=[p(E,y),g(_,y)];return m(_,v,S),b.object(...S)}function p({errorPath:_},{instancePath:v}){const y=v?(0,e.str)`${_}${(0,r.getErrorPath)(v,r.Type.Str)}`:_;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,y)]}function g({keyword:_,it:{errSchemaPath:v}},{schemaPath:y,parentSchema:b}){let E=b?v:(0,e.str)`${v}/${_}`;return y&&(E=(0,e.str)`${E}${(0,r.getErrorPath)(y,r.Type.Str)}`),[d.schemaPath,E]}function m(_,{params:v,message:y},b){const{keyword:E,data:S,schemaValue:T,it:C}=_,{opts:x,propertyName:A,topSchemaRef:R,schemaPath:I}=C;b.push([d.keyword,E],[d.params,typeof v=="function"?v(_):v||(0,e._)`{}`]),x.messages&&b.push([d.message,typeof y=="function"?y(_):y]),x.verbose&&b.push([d.schema,T],[d.parentSchema,(0,e._)`${R}${I}`],[n.default.data,S]),A&&b.push([d.propertyName,A])}})(qY)),qY}var pye;function FOt(){if(pye)return gv;pye=1,Object.defineProperty(gv,"__esModule",{value:!0}),gv.boolOrEmptySchema=gv.topBoolOrEmptySchema=void 0;const t=LB(),e=Zi(),r=$1(),n={message:"boolean schema is false"};function i(o){const{gen:l,schema:u,validateName:d}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,e._)`${d}.errors`,null),l.return(!0))}gv.topBoolOrEmptySchema=i;function a(o,l){const{gen:u,schema:d}=o;d===!1?(u.var(l,!1),s(o)):u.var(l,!0)}gv.boolOrEmptySchema=a;function s(o,l){const{gen:u,data:d}=o,h={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,t.reportError)(h,n,void 0,l)}return gv}var Ml={},mv={},gye;function cMe(){if(gye)return mv;gye=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.getRules=mv.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(i){return typeof i=="string"&&e.has(i)}mv.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return mv.getRules=n,mv}var Xg={},mye;function uMe(){if(mye)return Xg;mye=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.shouldUseRule=Xg.shouldUseGroup=Xg.schemaHasRulesForType=void 0;function t({schema:n,self:i},a){const s=i.RULES.types[a];return s&&s!==!0&&e(n,s)}Xg.schemaHasRulesForType=t;function e(n,i){return i.rules.some(a=>r(n,a))}Xg.shouldUseGroup=e;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(s=>n[s]!==void 0))}return Xg.shouldUseRule=r,Xg}var _ye;function Y9(){if(_ye)return Ml;_ye=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.reportTypeError=Ml.checkDataTypes=Ml.checkDataType=Ml.coerceAndCheckDataType=Ml.getJSONTypes=Ml.getSchemaTypes=Ml.DataType=void 0;const t=cMe(),e=uMe(),r=LB(),n=Zi(),i=ga();var a;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(a||(Ml.DataType=a={}));function s(y){const b=o(y.type);if(b.includes("null")){if(y.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&y.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');y.nullable===!0&&b.push("null")}return b}Ml.getSchemaTypes=s;function o(y){const b=Array.isArray(y)?y:y?[y]:[];if(b.every(t.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}Ml.getJSONTypes=o;function l(y,b){const{gen:E,data:S,opts:T}=y,C=d(b,T.coerceTypes),x=b.length>0&&!(C.length===0&&b.length===1&&(0,e.schemaHasRulesForType)(y,b[0]));if(x){const A=g(b,S,T.strictNumbers,a.Wrong);E.if(A,()=>{C.length?h(y,b,C):_(y)})}return x}Ml.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(y,b){return b?y.filter(E=>u.has(E)||b==="array"&&E==="array"):[]}function h(y,b,E){const{gen:S,data:T,opts:C}=y,x=S.let("dataType",(0,n._)`typeof ${T}`),A=S.let("coerced",(0,n._)`undefined`);C.coerceTypes==="array"&&S.if((0,n._)`${x} == 'object' && Array.isArray(${T}) && ${T}.length == 1`,()=>S.assign(T,(0,n._)`${T}[0]`).assign(x,(0,n._)`typeof ${T}`).if(g(b,T,C.strictNumbers),()=>S.assign(A,T))),S.if((0,n._)`${A} !== undefined`);for(const I of E)(u.has(I)||I==="array"&&C.coerceTypes==="array")&&R(I);S.else(),_(y),S.endIf(),S.if((0,n._)`${A} !== undefined`,()=>{S.assign(T,A),f(y,A)});function R(I){switch(I){case"string":S.elseIf((0,n._)`${x} == "number" || ${x} == "boolean"`).assign(A,(0,n._)`"" + ${T}`).elseIf((0,n._)`${T} === null`).assign(A,(0,n._)`""`);return;case"number":S.elseIf((0,n._)`${x} == "boolean" || ${T} === null
              || (${x} == "string" && ${T} && ${T} == +${T})`).assign(A,(0,n._)`+${T}`);return;case"integer":S.elseIf((0,n._)`${x} === "boolean" || ${T} === null
              || (${x} === "string" && ${T} && ${T} == +${T} && !(${T} % 1))`).assign(A,(0,n._)`+${T}`);return;case"boolean":S.elseIf((0,n._)`${T} === "false" || ${T} === 0 || ${T} === null`).assign(A,!1).elseIf((0,n._)`${T} === "true" || ${T} === 1`).assign(A,!0);return;case"null":S.elseIf((0,n._)`${T} === "" || ${T} === 0 || ${T} === false`),S.assign(A,null);return;case"array":S.elseIf((0,n._)`${x} === "string" || ${x} === "number"
              || ${x} === "boolean" || ${T} === null`).assign(A,(0,n._)`[${T}]`)}}}function f({gen:y,parentData:b,parentDataProperty:E},S){y.if((0,n._)`${b} !== undefined`,()=>y.assign((0,n._)`${b}[${E}]`,S))}function p(y,b,E,S=a.Correct){const T=S===a.Correct?n.operators.EQ:n.operators.NEQ;let C;switch(y){case"null":return(0,n._)`${b} ${T} null`;case"array":C=(0,n._)`Array.isArray(${b})`;break;case"object":C=(0,n._)`${b} && typeof ${b} == "object" && !Array.isArray(${b})`;break;case"integer":C=x((0,n._)`!(${b} % 1) && !isNaN(${b})`);break;case"number":C=x();break;default:return(0,n._)`typeof ${b} ${T} ${y}`}return S===a.Correct?C:(0,n.not)(C);function x(A=n.nil){return(0,n.and)((0,n._)`typeof ${b} == "number"`,A,E?(0,n._)`isFinite(${b})`:n.nil)}}Ml.checkDataType=p;function g(y,b,E,S){if(y.length===1)return p(y[0],b,E,S);let T;const C=(0,i.toHash)(y);if(C.array&&C.object){const x=(0,n._)`typeof ${b} != "object"`;T=C.null?x:(0,n._)`!${b} || ${x}`,delete C.null,delete C.array,delete C.object}else T=n.nil;C.number&&delete C.integer;for(const x in C)T=(0,n.and)(T,p(x,b,E,S));return T}Ml.checkDataTypes=g;const m={message:({schema:y})=>`must be ${y}`,params:({schema:y,schemaValue:b})=>typeof y=="string"?(0,n._)`{type: ${y}}`:(0,n._)`{type: ${b}}`};function _(y){const b=v(y);(0,r.reportError)(b,m)}Ml.reportTypeError=_;function v(y){const{gen:b,data:E,schema:S}=y,T=(0,i.schemaRefOrVal)(y,S,"type");return{gen:b,keyword:"type",data:E,schema:S.type,schemaCode:T,schemaValue:T,parentSchema:S,params:{},it:y}}return Ml}var pO={},vye;function BOt(){if(vye)return pO;vye=1,Object.defineProperty(pO,"__esModule",{value:!0}),pO.assignDefaults=void 0;const t=Zi(),e=ga();function r(i,a){const{properties:s,items:o}=i.schema;if(a==="object"&&s)for(const l in s)n(i,l,s[l].default);else a==="array"&&Array.isArray(o)&&o.forEach((l,u)=>n(i,u,l.default))}pO.assignDefaults=r;function n(i,a,s){const{gen:o,compositeRule:l,data:u,opts:d}=i;if(s===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(a)}`;if(l){(0,e.checkStrictMode)(i,`default is ignored for: ${h}`);return}let f=(0,t._)`${h} === undefined`;d.useDefaults==="empty"&&(f=(0,t._)`${f} || ${h} === null || ${h} === ""`),o.if(f,(0,t._)`${h} = ${(0,t.stringify)(s)}`)}return pO}var nf={},Ba={},yye;function ip(){if(yye)return Ba;yye=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.validateUnion=Ba.validateArray=Ba.usePattern=Ba.callValidateCode=Ba.schemaProperties=Ba.allSchemaProperties=Ba.noPropertyInData=Ba.propertyInData=Ba.isOwnProperty=Ba.hasPropFunc=Ba.reportMissingProp=Ba.checkMissingProp=Ba.checkReportMissingProp=void 0;const t=Zi(),e=ga(),r=$1(),n=ga();function i(y,b){const{gen:E,data:S,it:T}=y;E.if(d(E,S,b,T.opts.ownProperties),()=>{y.setParams({missingProperty:(0,t._)`${b}`},!0),y.error()})}Ba.checkReportMissingProp=i;function a({gen:y,data:b,it:{opts:E}},S,T){return(0,t.or)(...S.map(C=>(0,t.and)(d(y,b,C,E.ownProperties),(0,t._)`${T} = ${C}`)))}Ba.checkMissingProp=a;function s(y,b){y.setParams({missingProperty:b},!0),y.error()}Ba.reportMissingProp=s;function o(y){return y.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Ba.hasPropFunc=o;function l(y,b,E){return(0,t._)`${o(y)}.call(${b}, ${E})`}Ba.isOwnProperty=l;function u(y,b,E,S){const T=(0,t._)`${b}${(0,t.getProperty)(E)} !== undefined`;return S?(0,t._)`${T} && ${l(y,b,E)}`:T}Ba.propertyInData=u;function d(y,b,E,S){const T=(0,t._)`${b}${(0,t.getProperty)(E)} === undefined`;return S?(0,t.or)(T,(0,t.not)(l(y,b,E))):T}Ba.noPropertyInData=d;function h(y){return y?Object.keys(y).filter(b=>b!=="__proto__"):[]}Ba.allSchemaProperties=h;function f(y,b){return h(b).filter(E=>!(0,e.alwaysValidSchema)(y,b[E]))}Ba.schemaProperties=f;function p({schemaCode:y,data:b,it:{gen:E,topSchemaRef:S,schemaPath:T,errorPath:C},it:x},A,R,I){const L=I?(0,t._)`${y}, ${b}, ${S}${T}`:b,F=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,C)],[r.default.parentData,x.parentData],[r.default.parentDataProperty,x.parentDataProperty],[r.default.rootData,r.default.rootData]];x.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const O=(0,t._)`${L}, ${E.object(...F)}`;return R!==t.nil?(0,t._)`${A}.call(${R}, ${O})`:(0,t._)`${A}(${O})`}Ba.callValidateCode=p;const g=(0,t._)`new RegExp`;function m({gen:y,it:{opts:b}},E){const S=b.unicodeRegExp?"u":"",{regExp:T}=b.code,C=T(E,S);return y.scopeValue("pattern",{key:C.toString(),ref:C,code:(0,t._)`${T.code==="new RegExp"?g:(0,n.useFunc)(y,T)}(${E}, ${S})`})}Ba.usePattern=m;function _(y){const{gen:b,data:E,keyword:S,it:T}=y,C=b.name("valid");if(T.allErrors){const A=b.let("valid",!0);return x(()=>b.assign(A,!1)),A}return b.var(C,!0),x(()=>b.break()),C;function x(A){const R=b.const("len",(0,t._)`${E}.length`);b.forRange("i",0,R,I=>{y.subschema({keyword:S,dataProp:I,dataPropType:e.Type.Num},C),b.if((0,t.not)(C),A)})}}Ba.validateArray=_;function v(y){const{gen:b,schema:E,keyword:S,it:T}=y;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(R=>(0,e.alwaysValidSchema)(T,R))&&!T.opts.unevaluated)return;const x=b.let("valid",!1),A=b.name("_valid");b.block(()=>E.forEach((R,I)=>{const L=y.subschema({keyword:S,schemaProp:I,compositeRule:!0},A);b.assign(x,(0,t._)`${x} || ${A}`),y.mergeValidEvaluated(L,A)||b.if((0,t.not)(x))})),y.result(x,()=>y.reset(),()=>y.error(!0))}return Ba.validateUnion=v,Ba}var bye;function UOt(){if(bye)return nf;bye=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.validateKeywordUsage=nf.validSchemaType=nf.funcKeywordCode=nf.macroKeywordCode=void 0;const t=Zi(),e=$1(),r=ip(),n=LB();function i(f,p){const{gen:g,keyword:m,schema:_,parentSchema:v,it:y}=f,b=p.macro.call(y.self,_,v,y),E=u(g,m,b);y.opts.validateSchema!==!1&&y.self.validateSchema(b,!0);const S=g.name("valid");f.subschema({schema:b,schemaPath:t.nil,errSchemaPath:`${y.errSchemaPath}/${m}`,topSchemaRef:E,compositeRule:!0},S),f.pass(S,()=>f.error(!0))}nf.macroKeywordCode=i;function a(f,p){var g;const{gen:m,keyword:_,schema:v,parentSchema:y,$data:b,it:E}=f;l(E,p);const S=!b&&p.compile?p.compile.call(E.self,v,y,E):p.validate,T=u(m,_,S),C=m.let("valid");f.block$data(C,x),f.ok((g=p.valid)!==null&&g!==void 0?g:C);function x(){if(p.errors===!1)I(),p.modifying&&s(f),L(()=>f.error());else{const F=p.async?A():R();p.modifying&&s(f),L(()=>o(f,F))}}function A(){const F=m.let("ruleErrs",null);return m.try(()=>I((0,t._)`await `),O=>m.assign(C,!1).if((0,t._)`${O} instanceof ${E.ValidationError}`,()=>m.assign(F,(0,t._)`${O}.errors`),()=>m.throw(O))),F}function R(){const F=(0,t._)`${T}.errors`;return m.assign(F,null),I(t.nil),F}function I(F=p.async?(0,t._)`await `:t.nil){const O=E.opts.passContext?e.default.this:e.default.self,D=!("compile"in p&&!b||p.schema===!1);m.assign(C,(0,t._)`${F}${(0,r.callValidateCode)(f,T,O,D)}`,p.modifying)}function L(F){var O;m.if((0,t.not)((O=p.valid)!==null&&O!==void 0?O:C),F)}}nf.funcKeywordCode=a;function s(f){const{gen:p,data:g,it:m}=f;p.if(m.parentData,()=>p.assign(g,(0,t._)`${m.parentData}[${m.parentDataProperty}]`))}function o(f,p){const{gen:g}=f;g.if((0,t._)`Array.isArray(${p})`,()=>{g.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${p} : ${e.default.vErrors}.concat(${p})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(f)},()=>f.error())}function l({schemaEnv:f},p){if(p.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,p,g){if(g===void 0)throw new Error(`keyword "${p}" failed to compile`);return f.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,t.stringify)(g)})}function d(f,p,g=!1){return!p.length||p.some(m=>m==="array"?Array.isArray(f):m==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==m||g&&typeof f>"u")}nf.validSchemaType=d;function h({schema:f,opts:p,self:g,errSchemaPath:m},_,v){if(Array.isArray(_.keyword)?!_.keyword.includes(v):_.keyword!==v)throw new Error("ajv implementation error");const y=_.dependencies;if(y?.some(b=>!Object.prototype.hasOwnProperty.call(f,b)))throw new Error(`parent schema must have dependencies of ${v}: ${y.join(",")}`);if(_.validateSchema&&!_.validateSchema(f[v])){const E=`keyword "${v}" value is invalid at path "${m}": `+g.errorsText(_.validateSchema.errors);if(p.validateSchema==="log")g.logger.error(E);else throw new Error(E)}}return nf.validateKeywordUsage=h,nf}var Qg={},Eye;function $Ot(){if(Eye)return Qg;Eye=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.extendSubschemaMode=Qg.extendSubschemaData=Qg.getSubschema=void 0;const t=Zi(),e=ga();function r(a,{keyword:s,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:d,topSchemaRef:h}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const f=a.schema[s];return o===void 0?{schema:f,schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${s}`}:{schema:f[o],schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(s)}${(0,t.getProperty)(o)}`,errSchemaPath:`${a.errSchemaPath}/${s}/${(0,e.escapeFragment)(o)}`}}if(l!==void 0){if(u===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Qg.getSubschema=r;function n(a,s,{dataProp:o,dataPropType:l,data:u,dataTypes:d,propertyName:h}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=s;if(o!==void 0){const{errorPath:g,dataPathArr:m,opts:_}=s,v=f.let("data",(0,t._)`${s.data}${(0,t.getProperty)(o)}`,!0);p(v),a.errorPath=(0,t.str)`${g}${(0,e.getErrorPath)(o,l,_.jsPropertySyntax)}`,a.parentDataProperty=(0,t._)`${o}`,a.dataPathArr=[...m,a.parentDataProperty]}if(u!==void 0){const g=u instanceof t.Name?u:f.let("data",u,!0);p(g),h!==void 0&&(a.propertyName=h)}d&&(a.dataTypes=d);function p(g){a.data=g,a.dataLevel=s.dataLevel+1,a.dataTypes=[],s.definedProperties=new Set,a.parentData=s.data,a.dataNames=[...s.dataNames,g]}}Qg.extendSubschemaData=n;function i(a,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:l,createErrors:u,allErrors:d}){l!==void 0&&(a.compositeRule=l),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=s,a.jtdMetadata=o}return Qg.extendSubschemaMode=i,Qg}var Bc={},WY,Sye;function PB(){return Sye||(Sye=1,WY=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var s=a[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}),WY}var KY={exports:{}},Tye;function GOt(){if(Tye)return KY.exports;Tye=1;var t=KY.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var s=typeof a=="function"?a:a.pre||function(){},o=a.post||function(){};e(i,s,o,n,"",n)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(n,i,a,s,o,l,u,d,h,f){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,l,u,d,h,f);for(var p in s){var g=s[p];if(Array.isArray(g)){if(p in t.arrayKeywords)for(var m=0;m<g.length;m++)e(n,i,a,g[m],o+"/"+p+"/"+m,l,o,p,s,m)}else if(p in t.propsKeywords){if(g&&typeof g=="object")for(var _ in g)e(n,i,a,g[_],o+"/"+p+"/"+r(_),l,o,p,s,_)}else(p in t.keywords||n.allKeys&&!(p in t.skipKeywords))&&e(n,i,a,g,o+"/"+p,l,o,p,s)}a(s,o,l,u,d,h,f)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return KY.exports}var Cye;function FB(){if(Cye)return Bc;Cye=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.getSchemaRefs=Bc.resolveUrl=Bc.normalizeId=Bc._getFullPath=Bc.getFullPath=Bc.inlineRef=void 0;const t=ga(),e=PB(),r=GOt(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(m,_=!0){return typeof m=="boolean"?!0:_===!0?!s(m):_?o(m)<=_:!1}Bc.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(m){for(const _ in m){if(a.has(_))return!0;const v=m[_];if(Array.isArray(v)&&v.some(s)||typeof v=="object"&&s(v))return!0}return!1}function o(m){let _=0;for(const v in m){if(v==="$ref")return 1/0;if(_++,!n.has(v)&&(typeof m[v]=="object"&&(0,t.eachItem)(m[v],y=>_+=o(y)),_===1/0))return 1/0}return _}function l(m,_="",v){v!==!1&&(_=h(_));const y=m.parse(_);return u(m,y)}Bc.getFullPath=l;function u(m,_){return m.serialize(_).split("#")[0]+"#"}Bc._getFullPath=u;const d=/#\/?$/;function h(m){return m?m.replace(d,""):""}Bc.normalizeId=h;function f(m,_,v){return v=h(v),m.resolve(_,v)}Bc.resolveUrl=f;const p=/^[a-z_][-a-z0-9._]*$/i;function g(m,_){if(typeof m=="boolean")return{};const{schemaId:v,uriResolver:y}=this.opts,b=h(m[v]||_),E={"":b},S=l(y,b,!1),T={},C=new Set;return r(m,{allKeys:!0},(R,I,L,F)=>{if(F===void 0)return;const O=S+I;let D=E[F];typeof R[v]=="string"&&(D=M.call(this,R[v])),P.call(this,R.$anchor),P.call(this,R.$dynamicAnchor),E[I]=D;function M(N){const $=this.opts.uriResolver.resolve;if(N=h(D?$(D,N):N),C.has(N))throw A(N);C.add(N);let U=this.refs[N];return typeof U=="string"&&(U=this.refs[U]),typeof U=="object"?x(R,U.schema,N):N!==h(O)&&(N[0]==="#"?(x(R,T[N],N),T[N]=R):this.refs[N]=O),N}function P(N){if(typeof N=="string"){if(!p.test(N))throw new Error(`invalid anchor "${N}"`);M.call(this,`#${N}`)}}}),T;function x(R,I,L){if(I!==void 0&&!e(R,I))throw A(L)}function A(R){return new Error(`reference "${R}" resolves to more than one schema`)}}return Bc.getSchemaRefs=g,Bc}var wye;function BB(){if(wye)return jg;wye=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.getData=jg.KeywordCxt=jg.validateFunctionCode=void 0;const t=FOt(),e=Y9(),r=uMe(),n=Y9(),i=BOt(),a=UOt(),s=$Ot(),o=Zi(),l=$1(),u=FB(),d=ga(),h=LB();function f(K){if(S(K)&&(C(K),E(K))){_(K);return}p(K,()=>(0,t.topBoolOrEmptySchema)(K))}jg.validateFunctionCode=f;function p({gen:K,validateName:j,schema:se,schemaEnv:le,opts:_e},ye){_e.code.es5?K.func(j,(0,o._)`${l.default.data}, ${l.default.valCxt}`,le.$async,()=>{K.code((0,o._)`"use strict"; ${y(se,_e)}`),m(K,_e),K.code(ye)}):K.func(j,(0,o._)`${l.default.data}, ${g(_e)}`,le.$async,()=>K.code(y(se,_e)).code(ye))}function g(K){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${K.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function m(K,j){K.if(l.default.valCxt,()=>{K.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),K.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),K.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),K.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),j.dynamicRef&&K.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{K.var(l.default.instancePath,(0,o._)`""`),K.var(l.default.parentData,(0,o._)`undefined`),K.var(l.default.parentDataProperty,(0,o._)`undefined`),K.var(l.default.rootData,l.default.data),j.dynamicRef&&K.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function _(K){const{schema:j,opts:se,gen:le}=K;p(K,()=>{se.$comment&&j.$comment&&F(K),R(K),le.let(l.default.vErrors,null),le.let(l.default.errors,0),se.unevaluated&&v(K),x(K),O(K)})}function v(K){const{gen:j,validateName:se}=K;K.evaluated=j.const("evaluated",(0,o._)`${se}.evaluated`),j.if((0,o._)`${K.evaluated}.dynamicProps`,()=>j.assign((0,o._)`${K.evaluated}.props`,(0,o._)`undefined`)),j.if((0,o._)`${K.evaluated}.dynamicItems`,()=>j.assign((0,o._)`${K.evaluated}.items`,(0,o._)`undefined`))}function y(K,j){const se=typeof K=="object"&&K[j.schemaId];return se&&(j.code.source||j.code.process)?(0,o._)`/*# sourceURL=${se} */`:o.nil}function b(K,j){if(S(K)&&(C(K),E(K))){T(K,j);return}(0,t.boolOrEmptySchema)(K,j)}function E({schema:K,self:j}){if(typeof K=="boolean")return!K;for(const se in K)if(j.RULES.all[se])return!0;return!1}function S(K){return typeof K.schema!="boolean"}function T(K,j){const{schema:se,gen:le,opts:_e}=K;_e.$comment&&se.$comment&&F(K),I(K),L(K);const ye=le.const("_errs",l.default.errors);x(K,ye),le.var(j,(0,o._)`${ye} === ${l.default.errors}`)}function C(K){(0,d.checkUnknownRules)(K),A(K)}function x(K,j){if(K.opts.jtd)return M(K,[],!1,j);const se=(0,e.getSchemaTypes)(K.schema),le=(0,e.coerceAndCheckDataType)(K,se);M(K,se,!le,j)}function A(K){const{schema:j,errSchemaPath:se,opts:le,self:_e}=K;j.$ref&&le.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(j,_e.RULES)&&_e.logger.warn(`$ref: keywords ignored in schema at path "${se}"`)}function R(K){const{schema:j,opts:se}=K;j.default!==void 0&&se.useDefaults&&se.strictSchema&&(0,d.checkStrictMode)(K,"default is ignored in the schema root")}function I(K){const j=K.schema[K.opts.schemaId];j&&(K.baseId=(0,u.resolveUrl)(K.opts.uriResolver,K.baseId,j))}function L(K){if(K.schema.$async&&!K.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:K,schemaEnv:j,schema:se,errSchemaPath:le,opts:_e}){const ye=se.$comment;if(_e.$comment===!0)K.code((0,o._)`${l.default.self}.logger.log(${ye})`);else if(typeof _e.$comment=="function"){const Ue=(0,o.str)`${le}/$comment`,Se=K.scopeValue("root",{ref:j.root});K.code((0,o._)`${l.default.self}.opts.$comment(${ye}, ${Ue}, ${Se}.schema)`)}}function O(K){const{gen:j,schemaEnv:se,validateName:le,ValidationError:_e,opts:ye}=K;se.$async?j.if((0,o._)`${l.default.errors} === 0`,()=>j.return(l.default.data),()=>j.throw((0,o._)`new ${_e}(${l.default.vErrors})`)):(j.assign((0,o._)`${le}.errors`,l.default.vErrors),ye.unevaluated&&D(K),j.return((0,o._)`${l.default.errors} === 0`))}function D({gen:K,evaluated:j,props:se,items:le}){se instanceof o.Name&&K.assign((0,o._)`${j}.props`,se),le instanceof o.Name&&K.assign((0,o._)`${j}.items`,le)}function M(K,j,se,le){const{gen:_e,schema:ye,data:Ue,allErrors:Se,opts:be,self:ke}=K,{RULES:Ae}=ke;if(ye.$ref&&(be.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ye,Ae))){_e.block(()=>Q(K,"$ref",Ae.all.$ref.definition));return}be.jtd||N(K,j),_e.block(()=>{for(const Oe of Ae.rules)tt(Oe);tt(Ae.post)});function tt(Oe){(0,r.shouldUseGroup)(ye,Oe)&&(Oe.type?(_e.if((0,n.checkDataType)(Oe.type,Ue,be.strictNumbers)),P(K,Oe),j.length===1&&j[0]===Oe.type&&se&&(_e.else(),(0,n.reportTypeError)(K)),_e.endIf()):P(K,Oe),Se||_e.if((0,o._)`${l.default.errors} === ${le||0}`))}}function P(K,j){const{gen:se,schema:le,opts:{useDefaults:_e}}=K;_e&&(0,i.assignDefaults)(K,j.type),se.block(()=>{for(const ye of j.rules)(0,r.shouldUseRule)(le,ye)&&Q(K,ye.keyword,ye.definition,j.type)})}function N(K,j){K.schemaEnv.meta||!K.opts.strictTypes||($(K,j),K.opts.allowUnionTypes||U(K,j),B(K,K.dataTypes))}function $(K,j){if(j.length){if(!K.dataTypes.length){K.dataTypes=j;return}j.forEach(se=>{z(K.dataTypes,se)||Y(K,`type "${se}" not allowed by context "${K.dataTypes.join(",")}"`)}),G(K,j)}}function U(K,j){j.length>1&&!(j.length===2&&j.includes("null"))&&Y(K,"use allowUnionTypes to allow union type keyword")}function B(K,j){const se=K.self.RULES.all;for(const le in se){const _e=se[le];if(typeof _e=="object"&&(0,r.shouldUseRule)(K.schema,_e)){const{type:ye}=_e.definition;ye.length&&!ye.some(Ue=>V(j,Ue))&&Y(K,`missing type "${ye.join(",")}" for keyword "${le}"`)}}}function V(K,j){return K.includes(j)||j==="number"&&K.includes("integer")}function z(K,j){return K.includes(j)||j==="integer"&&K.includes("number")}function G(K,j){const se=[];for(const le of K.dataTypes)z(j,le)?se.push(le):j.includes("integer")&&le==="number"&&se.push("integer");K.dataTypes=se}function Y(K,j){const se=K.schemaEnv.baseId+K.errSchemaPath;j+=` at "${se}" (strictTypes)`,(0,d.checkStrictMode)(K,j,K.opts.strictTypes)}class W{constructor(j,se,le){if((0,a.validateKeywordUsage)(j,se,le),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=le,this.data=j.data,this.schema=j.schema[le],this.$data=se.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(j,this.schema,le,this.$data),this.schemaType=se.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=se,this.$data)this.schemaCode=j.gen.const("vSchema",re(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,se.schemaType,se.allowUndefined))throw new Error(`${le} value must be ${JSON.stringify(se.schemaType)}`);("code"in se?se.trackErrors:se.errors!==!1)&&(this.errsCount=j.gen.const("_errs",l.default.errors))}result(j,se,le){this.failResult((0,o.not)(j),se,le)}failResult(j,se,le){this.gen.if(j),le?le():this.error(),se?(this.gen.else(),se(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,se){this.failResult((0,o.not)(j),void 0,se)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:se}=this;this.fail((0,o._)`${se} !== undefined && (${(0,o.or)(this.invalid$data(),j)})`)}error(j,se,le){if(se){this.setParams(se),this._error(j,le),this.setParams({});return}this._error(j,le)}_error(j,se){(j?h.reportExtraError:h.reportError)(this,this.def.error,se)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(j){this.allErrors||this.gen.if(j)}setParams(j,se){se?Object.assign(this.params,j):this.params=j}block$data(j,se,le=o.nil){this.gen.block(()=>{this.check$data(j,le),se()})}check$data(j=o.nil,se=o.nil){if(!this.$data)return;const{gen:le,schemaCode:_e,schemaType:ye,def:Ue}=this;le.if((0,o.or)((0,o._)`${_e} === undefined`,se)),j!==o.nil&&le.assign(j,!0),(ye.length||Ue.validateSchema)&&(le.elseIf(this.invalid$data()),this.$dataError(),j!==o.nil&&le.assign(j,!1)),le.else()}invalid$data(){const{gen:j,schemaCode:se,schemaType:le,def:_e,it:ye}=this;return(0,o.or)(Ue(),Se());function Ue(){if(le.length){if(!(se instanceof o.Name))throw new Error("ajv implementation error");const be=Array.isArray(le)?le:[le];return(0,o._)`${(0,n.checkDataTypes)(be,se,ye.opts.strictNumbers,n.DataType.Wrong)}`}return o.nil}function Se(){if(_e.validateSchema){const be=j.scopeValue("validate$data",{ref:_e.validateSchema});return(0,o._)`!${be}(${se})`}return o.nil}}subschema(j,se){const le=(0,s.getSubschema)(this.it,j);(0,s.extendSubschemaData)(le,this.it,j),(0,s.extendSubschemaMode)(le,j);const _e={...this.it,...le,items:void 0,props:void 0};return b(_e,se),_e}mergeEvaluated(j,se){const{it:le,gen:_e}=this;le.opts.unevaluated&&(le.props!==!0&&j.props!==void 0&&(le.props=d.mergeEvaluated.props(_e,j.props,le.props,se)),le.items!==!0&&j.items!==void 0&&(le.items=d.mergeEvaluated.items(_e,j.items,le.items,se)))}mergeValidEvaluated(j,se){const{it:le,gen:_e}=this;if(le.opts.unevaluated&&(le.props!==!0||le.items!==!0))return _e.if(se,()=>this.mergeEvaluated(j,o.Name)),!0}}jg.KeywordCxt=W;function Q(K,j,se,le){const _e=new W(K,se,j);"code"in se?se.code(_e,le):_e.$data&&se.validate?(0,a.funcKeywordCode)(_e,se):"macro"in se?(0,a.macroKeywordCode)(_e,se):(se.compile||se.validate)&&(0,a.funcKeywordCode)(_e,se)}const ie=/^\/(?:[^~]|~0|~1)*$/,Z=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(K,{dataLevel:j,dataNames:se,dataPathArr:le}){let _e,ye;if(K==="")return l.default.rootData;if(K[0]==="/"){if(!ie.test(K))throw new Error(`Invalid JSON-pointer: ${K}`);_e=K,ye=l.default.rootData}else{const ke=Z.exec(K);if(!ke)throw new Error(`Invalid JSON-pointer: ${K}`);const Ae=+ke[1];if(_e=ke[2],_e==="#"){if(Ae>=j)throw new Error(be("property/index",Ae));return le[j-Ae]}if(Ae>j)throw new Error(be("data",Ae));if(ye=se[j-Ae],!_e)return ye}let Ue=ye;const Se=_e.split("/");for(const ke of Se)ke&&(ye=(0,o._)`${ye}${(0,o.getProperty)((0,d.unescapeJsonPointer)(ke))}`,Ue=(0,o._)`${Ue} && ${ye}`);return Ue;function be(ke,Ae){return`Cannot access ${ke} ${Ae} levels up, current level is ${j}`}}return jg.getData=re,jg}var C4={},xye;function koe(){if(xye)return C4;xye=1,Object.defineProperty(C4,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return C4.default=t,C4}var w4={},Aye;function UB(){if(Aye)return w4;Aye=1,Object.defineProperty(w4,"__esModule",{value:!0});const t=FB();class e extends Error{constructor(n,i,a,s){super(s||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,t.resolveUrl)(n,i,a),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}return w4.default=e,w4}var md={},Rye;function Doe(){if(Rye)return md;Rye=1,Object.defineProperty(md,"__esModule",{value:!0}),md.resolveSchema=md.getCompilingSchema=md.resolveRef=md.compileSchema=md.SchemaEnv=void 0;const t=Zi(),e=koe(),r=$1(),n=FB(),i=ga(),a=BB();class s{constructor(v){var y;this.refs={},this.dynamicAnchors={};let b;typeof v.schema=="object"&&(b=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(y=v.baseId)!==null&&y!==void 0?y:(0,n.normalizeId)(b?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=b?.$async,this.refs={}}}md.SchemaEnv=s;function o(_){const v=d.call(this,_);if(v)return v;const y=(0,n.getFullPath)(this.opts.uriResolver,_.root.baseId),{es5:b,lines:E}=this.opts.code,{ownProperties:S}=this.opts,T=new t.CodeGen(this.scope,{es5:b,lines:E,ownProperties:S});let C;_.$async&&(C=T.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const x=T.scopeName("validate");_.validateName=x;const A={gen:T,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:T.scopeValue("schema",this.opts.code.source===!0?{ref:_.schema,code:(0,t.stringify)(_.schema)}:{ref:_.schema}),validateName:x,ValidationError:C,schema:_.schema,schemaEnv:_,rootId:y,baseId:_.baseId||y,schemaPath:t.nil,errSchemaPath:_.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let R;try{this._compilations.add(_),(0,a.validateFunctionCode)(A),T.optimize(this.opts.code.optimize);const I=T.toString();R=`${T.scopeRefs(r.default.scope)}return ${I}`,this.opts.code.process&&(R=this.opts.code.process(R,_));const F=new Function(`${r.default.self}`,`${r.default.scope}`,R)(this,this.scope.get());if(this.scope.value(x,{ref:F}),F.errors=null,F.schema=_.schema,F.schemaEnv=_,_.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:x,validateCode:I,scopeValues:T._values}),this.opts.unevaluated){const{props:O,items:D}=A;F.evaluated={props:O instanceof t.Name?void 0:O,items:D instanceof t.Name?void 0:D,dynamicProps:O instanceof t.Name,dynamicItems:D instanceof t.Name},F.source&&(F.source.evaluated=(0,t.stringify)(F.evaluated))}return _.validate=F,_}catch(I){throw delete _.validate,delete _.validateName,R&&this.logger.error("Error compiling schema, function code:",R),I}finally{this._compilations.delete(_)}}md.compileSchema=o;function l(_,v,y){var b;y=(0,n.resolveUrl)(this.opts.uriResolver,v,y);const E=_.refs[y];if(E)return E;let S=f.call(this,_,y);if(S===void 0){const T=(b=_.localRefs)===null||b===void 0?void 0:b[y],{schemaId:C}=this.opts;T&&(S=new s({schema:T,schemaId:C,root:_,baseId:v}))}if(S!==void 0)return _.refs[y]=u.call(this,S)}md.resolveRef=l;function u(_){return(0,n.inlineRef)(_.schema,this.opts.inlineRefs)?_.schema:_.validate?_:o.call(this,_)}function d(_){for(const v of this._compilations)if(h(v,_))return v}md.getCompilingSchema=d;function h(_,v){return _.schema===v.schema&&_.root===v.root&&_.baseId===v.baseId}function f(_,v){let y;for(;typeof(y=this.refs[v])=="string";)v=y;return y||this.schemas[v]||p.call(this,_,v)}function p(_,v){const y=this.opts.uriResolver.parse(v),b=(0,n._getFullPath)(this.opts.uriResolver,y);let E=(0,n.getFullPath)(this.opts.uriResolver,_.baseId,void 0);if(Object.keys(_.schema).length>0&&b===E)return m.call(this,y,_);const S=(0,n.normalizeId)(b),T=this.refs[S]||this.schemas[S];if(typeof T=="string"){const C=p.call(this,_,T);return typeof C?.schema!="object"?void 0:m.call(this,y,C)}if(typeof T?.schema=="object"){if(T.validate||o.call(this,T),S===(0,n.normalizeId)(v)){const{schema:C}=T,{schemaId:x}=this.opts,A=C[x];return A&&(E=(0,n.resolveUrl)(this.opts.uriResolver,E,A)),new s({schema:C,schemaId:x,root:_,baseId:E})}return m.call(this,y,T)}}md.resolveSchema=p;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(_,{baseId:v,schema:y,root:b}){var E;if(((E=_.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const C of _.fragment.slice(1).split("/")){if(typeof y=="boolean")return;const x=y[(0,i.unescapeFragment)(C)];if(x===void 0)return;y=x;const A=typeof y=="object"&&y[this.opts.schemaId];!g.has(C)&&A&&(v=(0,n.resolveUrl)(this.opts.uriResolver,v,A))}let S;if(typeof y!="boolean"&&y.$ref&&!(0,i.schemaHasRulesButRef)(y,this.RULES)){const C=(0,n.resolveUrl)(this.opts.uriResolver,v,y.$ref);S=p.call(this,b,C)}const{schemaId:T}=this.opts;if(S=S||new s({schema:y,schemaId:T,root:b,baseId:v}),S.schema!==S.root.schema)return S}return md}const zOt="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",qOt="Meta-schema for $data reference (JSON AnySchema extension proposal)",VOt="object",HOt=["$data"],YOt={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},WOt=!1,KOt={$id:zOt,description:qOt,type:VOt,required:HOt,properties:YOt,additionalProperties:WOt};var x4={},gO={exports:{}},jY,Oye;function dMe(){if(Oye)return jY;Oye=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function a(S){let T="",C=0,x=0;for(x=0;x<S.length;x++)if(C=S[x].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";T+=S[x];break}for(x+=1;x<S.length;x++){if(C=S[x].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";T+=S[x]}return T}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(S){return S.length=0,!0}function l(S,T,C){if(S.length){const x=a(S);if(x!=="")T.push(x);else return C.error=!0,!1;S.length=0}return!0}function u(S){let T=0;const C={error:!1,address:"",zone:""},x=[],A=[];let R=!1,I=!1,L=l;for(let F=0;F<S.length;F++){const O=S[F];if(!(O==="["||O==="]"))if(O===":"){if(R===!0&&(I=!0),!L(A,x,C))break;if(++T>7){C.error=!0;break}F>0&&S[F-1]===":"&&(R=!0),x.push(":");continue}else if(O==="%"){if(!L(A,x,C))break;L=o}else{A.push(O);continue}}return A.length&&(L===o?C.zone=A.join(""):I?x.push(A.join("")):x.push(a(A))),C.address=x.join(""),C}function d(S){if(h(S,":")<2)return{host:S,isIPV6:!1};const T=u(S);if(T.error)return{host:S,isIPV6:!1};{let C=T.address,x=T.address;return T.zone&&(C+="%"+T.zone,x+="%25"+T.zone),{host:C,isIPV6:!0,escapedHost:x}}}function h(S,T){let C=0;for(let x=0;x<S.length;x++)S[x]===T&&C++;return C}function f(S){let T=S;const C=[];let x=-1,A=0;for(;A=T.length;){if(A===1){if(T===".")break;if(T==="/"){C.push("/");break}else{C.push(T);break}}else if(A===2){if(T[0]==="."){if(T[1]===".")break;if(T[1]==="/"){T=T.slice(2);continue}}else if(T[0]==="/"&&(T[1]==="."||T[1]==="/")){C.push("/");break}}else if(A===3&&T==="/.."){C.length!==0&&C.pop(),C.push("/");break}if(T[0]==="."){if(T[1]==="."){if(T[2]==="/"){T=T.slice(3);continue}}else if(T[1]==="/"){T=T.slice(2);continue}}else if(T[0]==="/"&&T[1]==="."){if(T[2]==="/"){T=T.slice(2);continue}else if(T[2]==="."&&T[3]==="/"){T=T.slice(3),C.length!==0&&C.pop();continue}}if((x=T.indexOf("/",1))===-1){C.push(T);break}else C.push(T.slice(0,x)),T=T.slice(x)}return C.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},g=/[@/?#:]/g,m=/[@/?#]/g;function _(S,T){const C=T?m:g;return C.lastIndex=0,S.replace(C,x=>p[x])}function v(S,T=!1){if(S.indexOf("%")===-1)return S;let C="";for(let x=0;x<S.length;x++){if(S[x]==="%"&&x+2<S.length){const A=S.slice(x+1,x+3);if(r(A)){const R=A.toUpperCase(),I=String.fromCharCode(parseInt(R,16));T&&n(I)?C+=I:C+="%"+R,x+=2;continue}}C+=S[x]}return C}function y(S){let T="";for(let C=0;C<S.length;C++){if(S[C]==="%"&&C+2<S.length){const x=S.slice(C+1,C+3);if(r(x)){const A=x.toUpperCase(),R=String.fromCharCode(parseInt(A,16));R!=="."&&n(R)?T+=R:T+="%"+A,C+=2;continue}}i(S[C])?T+=S[C]:T+=escape(S[C])}return T}function b(S){let T="";for(let C=0;C<S.length;C++){if(S[C]==="%"&&C+2<S.length){const x=S.slice(C+1,C+3);if(r(x)){T+="%"+x.toUpperCase(),C+=2;continue}}T+=escape(S[C])}return T}function E(S){const T=[];if(S.userinfo!==void 0&&(T.push(S.userinfo),T.push("@")),S.host!==void 0){let C=unescape(S.host);if(!e(C)){const x=d(C);x.isIPV6===!0?C=`[${x.escapedHost}]`:C=_(C,!1)}T.push(C)}return(typeof S.port=="number"||typeof S.port=="string")&&(T.push(":"),T.push(String(S.port))),T.length?T.join(""):void 0}return jY={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:_,normalizePercentEncoding:v,normalizePathEncoding:y,escapePreservingEscapes:b,removeDotSegments:f,isIPv4:e,isUUID:t,normalizeIPv6:d,stringArrayToHexStripped:a},jY}var XY,Iye;function jOt(){if(Iye)return XY;Iye=1;const{isUUID:t}=dMe(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(S){return r.indexOf(S)!==-1}function i(S){return S.secure===!0?!0:S.secure===!1?!1:S.scheme?S.scheme.length===3&&(S.scheme[0]==="w"||S.scheme[0]==="W")&&(S.scheme[1]==="s"||S.scheme[1]==="S")&&(S.scheme[2]==="s"||S.scheme[2]==="S"):!1}function a(S){return S.host||(S.error=S.error||"HTTP URIs must have a host."),S}function s(S){const T=String(S.scheme).toLowerCase()==="https";return(S.port===(T?443:80)||S.port==="")&&(S.port=void 0),S.path||(S.path="/"),S}function o(S){return S.secure=i(S),S.resourceName=(S.path||"/")+(S.query?"?"+S.query:""),S.path=void 0,S.query=void 0,S}function l(S){if((S.port===(i(S)?443:80)||S.port==="")&&(S.port=void 0),typeof S.secure=="boolean"&&(S.scheme=S.secure?"wss":"ws",S.secure=void 0),S.resourceName){const[T,C]=S.resourceName.split("?");S.path=T&&T!=="/"?T:void 0,S.query=C,S.resourceName=void 0}return S.fragment=void 0,S}function u(S,T){if(!S.path)return S.error="URN can not be parsed",S;const C=S.path.match(e);if(C){const x=T.scheme||S.scheme||"urn";S.nid=C[1].toLowerCase(),S.nss=C[2];const A=`${x}:${T.nid||S.nid}`,R=E(A);S.path=void 0,R&&(S=R.parse(S,T))}else S.error=S.error||"URN can not be parsed.";return S}function d(S,T){if(S.nid===void 0)throw new Error("URN without nid cannot be serialized");const C=T.scheme||S.scheme||"urn",x=S.nid.toLowerCase(),A=`${C}:${T.nid||x}`,R=E(A);R&&(S=R.serialize(S,T));const I=S,L=S.nss;return I.path=`${x||T.nid}:${L}`,T.skipEscape=!0,I}function h(S,T){const C=S;return C.uuid=C.nss,C.nss=void 0,!T.tolerant&&(!C.uuid||!t(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function f(S){const T=S;return T.nss=(S.uuid||"").toLowerCase(),T}const p={scheme:"http",domainHost:!0,parse:a,serialize:s},g={scheme:"https",domainHost:p.domainHost,parse:a,serialize:s},m={scheme:"ws",domainHost:!0,parse:o,serialize:l},_={scheme:"wss",domainHost:m.domainHost,parse:m.parse,serialize:m.serialize},b={http:p,https:g,ws:m,wss:_,urn:{scheme:"urn",parse:u,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(b,null);function E(S){return S&&(b[S]||b[S.toLowerCase()])||void 0}return XY={wsIsSecure:i,SCHEMES:b,isValidSchemeName:n,getSchemeHandler:E},XY}var Nye;function hMe(){if(Nye)return gO.exports;Nye=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,escapePreservingEscapes:a,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=dMe(),{SCHEMES:u,getSchemeHandler:d}=jOt();function h(x,A){return typeof x=="string"?x=E(x,A):typeof x=="object"&&(x=b(m(x,A),A)),x}function f(x,A,R){const I=R?Object.assign({scheme:"null"},R):{scheme:"null"},L=p(b(x,I),b(A,I),I,!0);return I.skipEscape=!0,m(L,I)}function p(x,A,R,I){const L={};return I||(x=b(m(x,R),R),A=b(m(A,R),R)),R=R||{},!R.tolerant&&A.scheme?(L.scheme=A.scheme,L.userinfo=A.userinfo,L.host=A.host,L.port=A.port,L.path=e(A.path||""),L.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(L.userinfo=A.userinfo,L.host=A.host,L.port=A.port,L.path=e(A.path||""),L.query=A.query):(A.path?(A.path[0]==="/"?L.path=e(A.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?L.path="/"+A.path:x.path?L.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+A.path:L.path=A.path,L.path=e(L.path)),L.query=A.query):(L.path=x.path,A.query!==void 0?L.query=A.query:L.query=x.query),L.userinfo=x.userinfo,L.host=x.host,L.port=x.port),L.scheme=x.scheme),L.fragment=A.fragment,L}function g(x,A,R){const I=T(x,R),L=T(A,R);return I!==void 0&&L!==void 0&&I.toLowerCase()===L.toLowerCase()}function m(x,A){const R={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},I=Object.assign({},A),L=[],F=d(I.scheme||R.scheme);F&&F.serialize&&F.serialize(R,I),R.path!==void 0&&(I.skipEscape?R.path=n(R.path):(R.path=a(R.path),R.scheme!==void 0&&(R.path=R.path.split("%3A").join(":")))),I.reference!=="suffix"&&R.scheme&&L.push(R.scheme,":");const O=r(R);if(O!==void 0&&(I.reference!=="suffix"&&L.push("//"),L.push(O),R.path&&R.path[0]!=="/"&&L.push("/")),R.path!==void 0){let D=R.path;!I.absolutePath&&(!F||!F.absolutePath)&&(D=e(D)),O===void 0&&D[0]==="/"&&D[1]==="/"&&(D="/%2F"+D.slice(2)),L.push(D)}return R.query!==void 0&&L.push("?",R.query),R.fragment!==void 0&&L.push("#",R.fragment),L.join("")}const _=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(x,A){if(A[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port=="number"&&(x.port<0||x.port>65535))return"URI port is malformed."}function y(x,A){const R=Object.assign({},A),I={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let L=!1,F=!1;R.reference==="suffix"&&(R.scheme?x=R.scheme+":"+x:x="//"+x);const O=x.match(_);if(O){I.scheme=O[1],I.userinfo=O[3],I.host=O[4],I.port=parseInt(O[5],10),I.path=O[6]||"",I.query=O[7],I.fragment=O[8],isNaN(I.port)&&(I.port=O[5]);const D=v(I,O);if(D!==void 0&&(I.error=I.error||D,L=!0),I.host)if(o(I.host)===!1){const N=t(I.host);I.host=N.host.toLowerCase(),F=N.isIPV6}else F=!0;I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&I.query===void 0&&!I.path?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",R.reference&&R.reference!=="suffix"&&R.reference!==I.reference&&(I.error=I.error||"URI is not a "+R.reference+" reference.");const M=d(R.scheme||I.scheme);if(!R.unicodeSupport&&(!M||!M.unicodeSupport)&&I.host&&(R.domainHost||M&&M.domainHost)&&F===!1&&l(I.host))try{I.host=URL.domainToASCII(I.host.toLowerCase())}catch(P){I.error=I.error||"Host's domain name can not be converted to ASCII: "+P}if((!M||M&&!M.skipNormalize)&&(x.indexOf("%")!==-1&&(I.scheme!==void 0&&(I.scheme=unescape(I.scheme)),I.host!==void 0&&(I.host=s(unescape(I.host),F))),I.path&&(I.path=i(I.path)),I.fragment))try{I.fragment=encodeURI(decodeURIComponent(I.fragment))}catch{I.error=I.error||"URI malformed"}M&&M.parse&&M.parse(I,R)}else I.error=I.error||"URI can not be parsed.";return{parsed:I,malformedAuthorityOrPort:L}}function b(x,A){return y(x,A).parsed}function E(x,A){return S(x,A).normalized}function S(x,A){const{parsed:R,malformedAuthorityOrPort:I}=y(x,A);return{normalized:I?x:m(R,A),malformedAuthorityOrPort:I}}function T(x,A){if(typeof x=="string"){const{normalized:R,malformedAuthorityOrPort:I}=S(x,A);return I?void 0:R}if(typeof x=="object")return m(x,A)}const C={SCHEMES:u,normalize:h,resolve:f,resolveComponent:p,equal:g,serialize:m,parse:b};return gO.exports=C,gO.exports.default=C,gO.exports.fastUri=C,gO.exports}var kye;function XOt(){if(kye)return x4;kye=1,Object.defineProperty(x4,"__esModule",{value:!0});const t=hMe();return t.code='require("ajv/dist/runtime/uri").default',x4.default=t,x4}var Dye;function QOt(){return Dye||(Dye=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=BB();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=Zi();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=koe(),i=UB(),a=cMe(),s=Doe(),o=Zi(),l=FB(),u=Y9(),d=ga(),h=KOt,f=XOt(),p=(U,B)=>new RegExp(U,B);p.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function b(U){var B,V,z,G,Y,W,Q,ie,Z,re,K,j,se,le,_e,ye,Ue,Se,be,ke,Ae,tt,Oe,je,ct;const Fe=U.strict,Xe=(B=U.code)===null||B===void 0?void 0:B.optimize,et=Xe===!0||Xe===void 0?1:Xe||0,Ie=(z=(V=U.code)===null||V===void 0?void 0:V.regExp)!==null&&z!==void 0?z:p,we=(G=U.uriResolver)!==null&&G!==void 0?G:f.default;return{strictSchema:(W=(Y=U.strictSchema)!==null&&Y!==void 0?Y:Fe)!==null&&W!==void 0?W:!0,strictNumbers:(ie=(Q=U.strictNumbers)!==null&&Q!==void 0?Q:Fe)!==null&&ie!==void 0?ie:!0,strictTypes:(re=(Z=U.strictTypes)!==null&&Z!==void 0?Z:Fe)!==null&&re!==void 0?re:"log",strictTuples:(j=(K=U.strictTuples)!==null&&K!==void 0?K:Fe)!==null&&j!==void 0?j:"log",strictRequired:(le=(se=U.strictRequired)!==null&&se!==void 0?se:Fe)!==null&&le!==void 0?le:!1,code:U.code?{...U.code,optimize:et,regExp:Ie}:{optimize:et,regExp:Ie},loopRequired:(_e=U.loopRequired)!==null&&_e!==void 0?_e:y,loopEnum:(ye=U.loopEnum)!==null&&ye!==void 0?ye:y,meta:(Ue=U.meta)!==null&&Ue!==void 0?Ue:!0,messages:(Se=U.messages)!==null&&Se!==void 0?Se:!0,inlineRefs:(be=U.inlineRefs)!==null&&be!==void 0?be:!0,schemaId:(ke=U.schemaId)!==null&&ke!==void 0?ke:"$id",addUsedSchema:(Ae=U.addUsedSchema)!==null&&Ae!==void 0?Ae:!0,validateSchema:(tt=U.validateSchema)!==null&&tt!==void 0?tt:!0,validateFormats:(Oe=U.validateFormats)!==null&&Oe!==void 0?Oe:!0,unicodeRegExp:(je=U.unicodeRegExp)!==null&&je!==void 0?je:!0,int32range:(ct=U.int32range)!==null&&ct!==void 0?ct:!0,uriResolver:we}}class E{constructor(B={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,B=this.opts={...B,...b(B)};const{es5:V,lines:z}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:m,es5:V,lines:z}),this.logger=L(B.logger);const G=B.validateFormats;B.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,_,B,"NOT SUPPORTED"),S.call(this,v,B,"DEPRECATED","warn"),this._metaOpts=R.call(this),B.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),B.keywords&&A.call(this,B.keywords),typeof B.meta=="object"&&this.addMetaSchema(B.meta),C.call(this),B.validateFormats=G}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:B,meta:V,schemaId:z}=this.opts;let G=h;z==="id"&&(G={...h},G.id=G.$id,delete G.$id),V&&B&&this.addMetaSchema(G,G[z],!1)}defaultMeta(){const{meta:B,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof B=="object"?B[V]||B:void 0}validate(B,V){let z;if(typeof B=="string"){if(z=this.getSchema(B),!z)throw new Error(`no schema with key or ref "${B}"`)}else z=this.compile(B);const G=z(V);return"$async"in z||(this.errors=z.errors),G}compile(B,V){const z=this._addSchema(B,V);return z.validate||this._compileSchemaEnv(z)}compileAsync(B,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return G.call(this,B,V);async function G(re,K){await Y.call(this,re.$schema);const j=this._addSchema(re,K);return j.validate||W.call(this,j)}async function Y(re){re&&!this.getSchema(re)&&await G.call(this,{$ref:re},!0)}async function W(re){try{return this._compileSchemaEnv(re)}catch(K){if(!(K instanceof i.default))throw K;return Q.call(this,K),await ie.call(this,K.missingSchema),W.call(this,re)}}function Q({missingSchema:re,missingRef:K}){if(this.refs[re])throw new Error(`AnySchema ${re} is loaded but ${K} cannot be resolved`)}async function ie(re){const K=await Z.call(this,re);this.refs[re]||await Y.call(this,K.$schema),this.refs[re]||this.addSchema(K,re,V)}async function Z(re){const K=this._loading[re];if(K)return K;try{return await(this._loading[re]=z(re))}finally{delete this._loading[re]}}}addSchema(B,V,z,G=this.opts.validateSchema){if(Array.isArray(B)){for(const W of B)this.addSchema(W,void 0,z,G);return this}let Y;if(typeof B=="object"){const{schemaId:W}=this.opts;if(Y=B[W],Y!==void 0&&typeof Y!="string")throw new Error(`schema ${W} must be string`)}return V=(0,l.normalizeId)(V||Y),this._checkUnique(V),this.schemas[V]=this._addSchema(B,z,V,G,!0),this}addMetaSchema(B,V,z=this.opts.validateSchema){return this.addSchema(B,V,!0,z),this}validateSchema(B,V){if(typeof B=="boolean")return!0;let z;if(z=B.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const G=this.validate(z,B);if(!G&&V){const Y="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Y);else throw new Error(Y)}return G}getSchema(B){let V;for(;typeof(V=T.call(this,B))=="string";)B=V;if(V===void 0){const{schemaId:z}=this.opts,G=new s.SchemaEnv({schema:{},schemaId:z});if(V=s.resolveSchema.call(this,G,B),!V)return;this.refs[B]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(B){if(B instanceof RegExp)return this._removeAllSchemas(this.schemas,B),this._removeAllSchemas(this.refs,B),this;switch(typeof B){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=T.call(this,B);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[B],delete this.refs[B],this}case"object":{const V=B;this._cache.delete(V);let z=B[this.opts.schemaId];return z&&(z=(0,l.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(B){for(const V of B)this.addKeyword(V);return this}addKeyword(B,V){let z;if(typeof B=="string")z=B,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=z);else if(typeof B=="object"&&V===void 0){if(V=B,z=V.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,z,V),!V)return(0,d.eachItem)(z,Y=>D.call(this,Y)),this;P.call(this,V);const G={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,d.eachItem)(z,G.type.length===0?Y=>D.call(this,Y,G):Y=>G.type.forEach(W=>D.call(this,Y,G,W))),this}getKeyword(B){const V=this.RULES.all[B];return typeof V=="object"?V.definition:!!V}removeKeyword(B){const{RULES:V}=this;delete V.keywords[B],delete V.all[B];for(const z of V.rules){const G=z.rules.findIndex(Y=>Y.keyword===B);G>=0&&z.rules.splice(G,1)}return this}addFormat(B,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[B]=V,this}errorsText(B=this.errors,{separator:V=", ",dataVar:z="data"}={}){return!B||B.length===0?"No errors":B.map(G=>`${z}${G.instancePath} ${G.message}`).reduce((G,Y)=>G+V+Y)}$dataMetaSchema(B,V){const z=this.RULES.all;B=JSON.parse(JSON.stringify(B));for(const G of V){const Y=G.split("/").slice(1);let W=B;for(const Q of Y)W=W[Q];for(const Q in z){const ie=z[Q];if(typeof ie!="object")continue;const{$data:Z}=ie.definition,re=W[Q];Z&&re&&(W[Q]=$(re))}}return B}_removeAllSchemas(B,V){for(const z in B){const G=B[z];(!V||V.test(z))&&(typeof G=="string"?delete B[z]:G&&!G.meta&&(this._cache.delete(G.schema),delete B[z]))}}_addSchema(B,V,z,G=this.opts.validateSchema,Y=this.opts.addUsedSchema){let W;const{schemaId:Q}=this.opts;if(typeof B=="object")W=B[Q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof B!="boolean")throw new Error("schema must be object or boolean")}let ie=this._cache.get(B);if(ie!==void 0)return ie;z=(0,l.normalizeId)(W||z);const Z=l.getSchemaRefs.call(this,B,z);return ie=new s.SchemaEnv({schema:B,schemaId:Q,meta:V,baseId:z,localRefs:Z}),this._cache.set(ie.schema,ie),Y&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=ie),G&&this.validateSchema(B,!0),ie}_checkUnique(B){if(this.schemas[B]||this.refs[B])throw new Error(`schema with key or id "${B}" already exists`)}_compileSchemaEnv(B){if(B.meta?this._compileMetaSchema(B):s.compileSchema.call(this,B),!B.validate)throw new Error("ajv implementation error");return B.validate}_compileMetaSchema(B){const V=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,B)}finally{this.opts=V}}}E.ValidationError=n.default,E.MissingRefError=i.default,t.default=E;function S(U,B,V,z="error"){for(const G in U){const Y=G;Y in B&&this.logger[z](`${V}: option ${G}. ${U[Y]}`)}}function T(U){return U=(0,l.normalizeId)(U),this.schemas[U]||this.refs[U]}function C(){const U=this.opts.schemas;if(U)if(Array.isArray(U))this.addSchema(U);else for(const B in U)this.addSchema(U[B],B)}function x(){for(const U in this.opts.formats){const B=this.opts.formats[U];B&&this.addFormat(U,B)}}function A(U){if(Array.isArray(U)){this.addVocabulary(U);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const B in U){const V=U[B];V.keyword||(V.keyword=B),this.addKeyword(V)}}function R(){const U={...this.opts};for(const B of g)delete U[B];return U}const I={log(){},warn(){},error(){}};function L(U){if(U===!1)return I;if(U===void 0)return console;if(U.log&&U.warn&&U.error)return U;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function O(U,B){const{RULES:V}=this;if((0,d.eachItem)(U,z=>{if(V.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!F.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!B&&B.$data&&!("code"in B||"validate"in B))throw new Error('$data keyword must have "code" or "validate" function')}function D(U,B,V){var z;const G=B?.post;if(V&&G)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Y}=this;let W=G?Y.post:Y.rules.find(({type:ie})=>ie===V);if(W||(W={type:V,rules:[]},Y.rules.push(W)),Y.keywords[U]=!0,!B)return;const Q={keyword:U,definition:{...B,type:(0,u.getJSONTypes)(B.type),schemaType:(0,u.getJSONTypes)(B.schemaType)}};B.before?M.call(this,W,Q,B.before):W.rules.push(Q),Y.all[U]=Q,(z=B.implements)===null||z===void 0||z.forEach(ie=>this.addKeyword(ie))}function M(U,B,V){const z=U.rules.findIndex(G=>G.keyword===V);z>=0?U.rules.splice(z,0,B):(U.rules.push(B),this.logger.warn(`rule ${V} is not defined`))}function P(U){let{metaSchema:B}=U;B!==void 0&&(U.$data&&this.opts.$data&&(B=$(B)),U.validateSchema=this.compile(B,!0))}const N={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function $(U){return{anyOf:[U,N]}}})(zY)),zY}var A4={},R4={},O4={},Mye;function ZOt(){if(Mye)return O4;Mye=1,Object.defineProperty(O4,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return O4.default=t,O4}var n_={},Lye;function JOt(){if(Lye)return n_;Lye=1,Object.defineProperty(n_,"__esModule",{value:!0}),n_.callRef=n_.getValidate=void 0;const t=UB(),e=ip(),r=Zi(),n=$1(),i=Doe(),a=ga(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:h,it:f}=u,{baseId:p,schemaEnv:g,validateName:m,opts:_,self:v}=f,{root:y}=g;if((h==="#"||h==="#/")&&p===y.baseId)return E();const b=i.resolveRef.call(v,y,p,h);if(b===void 0)throw new t.default(f.opts.uriResolver,p,h);if(b instanceof i.SchemaEnv)return S(b);return T(b);function E(){if(g===y)return l(u,m,g,g.$async);const C=d.scopeValue("root",{ref:y});return l(u,(0,r._)`${C}.validate`,y,y.$async)}function S(C){const x=o(u,C);l(u,x,C,C.$async)}function T(C){const x=d.scopeValue("schema",_.code.source===!0?{ref:C,code:(0,r.stringify)(C)}:{ref:C}),A=d.name("valid"),R=u.subschema({schema:C,dataTypes:[],schemaPath:r.nil,topSchemaRef:x,errSchemaPath:h},A);u.mergeEvaluated(R),u.ok(A)}}};function o(u,d){const{gen:h}=u;return d.validate?h.scopeValue("validate",{ref:d.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:d})}.validate`}n_.getValidate=o;function l(u,d,h,f){const{gen:p,it:g}=u,{allErrors:m,schemaEnv:_,opts:v}=g,y=v.passContext?n.default.this:r.nil;f?b():E();function b(){if(!_.$async)throw new Error("async schema referenced by sync schema");const C=p.let("valid");p.try(()=>{p.code((0,r._)`await ${(0,e.callValidateCode)(u,d,y)}`),T(d),m||p.assign(C,!0)},x=>{p.if((0,r._)`!(${x} instanceof ${g.ValidationError})`,()=>p.throw(x)),S(x),m||p.assign(C,!1)}),u.ok(C)}function E(){u.result((0,e.callValidateCode)(u,d,y),()=>T(d),()=>S(d))}function S(C){const x=(0,r._)`${C}.errors`;p.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${x} : ${n.default.vErrors}.concat(${x})`),p.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function T(C){var x;if(!g.opts.unevaluated)return;const A=(x=h?.validate)===null||x===void 0?void 0:x.evaluated;if(g.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(g.props=a.mergeEvaluated.props(p,A.props,g.props));else{const R=p.var("props",(0,r._)`${C}.evaluated.props`);g.props=a.mergeEvaluated.props(p,R,g.props,r.Name)}if(g.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(g.items=a.mergeEvaluated.items(p,A.items,g.items));else{const R=p.var("items",(0,r._)`${C}.evaluated.items`);g.items=a.mergeEvaluated.items(p,R,g.items,r.Name)}}}return n_.callRef=l,n_.default=s,n_}var Pye;function eIt(){if(Pye)return R4;Pye=1,Object.defineProperty(R4,"__esModule",{value:!0});const t=ZOt(),e=JOt(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return R4.default=r,R4}var I4={},N4={},Fye;function tIt(){if(Fye)return N4;Fye=1,Object.defineProperty(N4,"__esModule",{value:!0});const t=Zi(),e=t.operators,r={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},n={message:({keyword:a,schemaCode:s})=>(0,t.str)`must be ${r[a].okStr} ${s}`,params:({keyword:a,schemaCode:s})=>(0,t._)`{comparison: ${r[a].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:s,data:o,schemaCode:l}=a;a.fail$data((0,t._)`${o} ${r[s].fail} ${l} || isNaN(${o})`)}};return N4.default=i,N4}var k4={},Bye;function rIt(){if(Bye)return k4;Bye=1,Object.defineProperty(k4,"__esModule",{value:!0});const t=Zi(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,t._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:s,it:o}=n,l=o.opts.multipleOfPrecision,u=i.let("res"),d=l?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,t._)`${u} !== parseInt(${u})`;n.fail$data((0,t._)`(${s} === 0 || (${u} = ${a}/${s}, ${d}))`)}};return k4.default=r,k4}var D4={},M4={},Uye;function nIt(){if(Uye)return M4;Uye=1,Object.defineProperty(M4,"__esModule",{value:!0});function t(e){const r=e.length;let n=0,i=0,a;for(;i<r;)n++,a=e.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=e.charCodeAt(i),(a&64512)===56320&&i++);return n}return M4.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',M4}var $ye;function iIt(){if($ye)return D4;$ye=1,Object.defineProperty(D4,"__esModule",{value:!0});const t=Zi(),e=ga(),r=nIt(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:s}){const o=a==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:s,data:o,schemaCode:l,it:u}=a,d=s==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${o}.length`:(0,t._)`${(0,e.useFunc)(a.gen,r.default)}(${o})`;a.fail$data((0,t._)`${h} ${d} ${l}`)}};return D4.default=i,D4}var L4={},Gye;function aIt(){if(Gye)return L4;Gye=1,Object.defineProperty(L4,"__esModule",{value:!0});const t=ip(),e=ga(),r=Zi(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,r.str)`must match pattern "${a}"`,params:({schemaCode:a})=>(0,r._)`{pattern: ${a}}`},code(a){const{gen:s,data:o,$data:l,schema:u,schemaCode:d,it:h}=a,f=h.opts.unicodeRegExp?"u":"";if(l){const{regExp:p}=h.opts.code,g=p.code==="new RegExp"?(0,r._)`new RegExp`:(0,e.useFunc)(s,p),m=s.let("valid");s.try(()=>s.assign(m,(0,r._)`${g}(${d}, ${f}).test(${o})`),()=>s.assign(m,!1)),a.fail$data((0,r._)`!${m}`)}else{const p=(0,t.usePattern)(a,u);a.fail$data((0,r._)`!${p}.test(${o})`)}}};return L4.default=i,L4}var P4={},zye;function sIt(){if(zye)return P4;zye=1,Object.defineProperty(P4,"__esModule",{value:!0});const t=Zi(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxProperties"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`Object.keys(${a}).length ${o} ${s}`)}};return P4.default=r,P4}var F4={},qye;function oIt(){if(qye)return F4;qye=1,Object.defineProperty(F4,"__esModule",{value:!0});const t=ip(),e=Zi(),r=ga(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,e.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,e._)`{missingProperty: ${a}}`},code(a){const{gen:s,schema:o,schemaCode:l,data:u,$data:d,it:h}=a,{opts:f}=h;if(!d&&o.length===0)return;const p=o.length>=f.loopRequired;if(h.allErrors?g():m(),f.strictRequired){const y=a.parentSchema.properties,{definedProperties:b}=a.it;for(const E of o)if(y?.[E]===void 0&&!b.has(E)){const S=h.schemaEnv.baseId+h.errSchemaPath,T=`required property "${E}" is not defined at "${S}" (strictRequired)`;(0,r.checkStrictMode)(h,T,h.opts.strictRequired)}}function g(){if(p||d)a.block$data(e.nil,_);else for(const y of o)(0,t.checkReportMissingProp)(a,y)}function m(){const y=s.let("missing");if(p||d){const b=s.let("valid",!0);a.block$data(b,()=>v(y,b)),a.ok(b)}else s.if((0,t.checkMissingProp)(a,o,y)),(0,t.reportMissingProp)(a,y),s.else()}function _(){s.forOf("prop",l,y=>{a.setParams({missingProperty:y}),s.if((0,t.noPropertyInData)(s,u,y,f.ownProperties),()=>a.error())})}function v(y,b){a.setParams({missingProperty:y}),s.forOf(y,l,()=>{s.assign(b,(0,t.propertyInData)(s,u,y,f.ownProperties)),s.if((0,e.not)(b),()=>{a.error(),s.break()})},e.nil)}}};return F4.default=i,F4}var B4={},Vye;function lIt(){if(Vye)return B4;Vye=1,Object.defineProperty(B4,"__esModule",{value:!0});const t=Zi(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxItems"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`${a}.length ${o} ${s}`)}};return B4.default=r,B4}var U4={},$4={},Hye;function Moe(){if(Hye)return $4;Hye=1,Object.defineProperty($4,"__esModule",{value:!0});const t=PB();return t.code='require("ajv/dist/runtime/equal").default',$4.default=t,$4}var Yye;function cIt(){if(Yye)return U4;Yye=1,Object.defineProperty(U4,"__esModule",{value:!0});const t=Y9(),e=Zi(),r=ga(),n=Moe(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,e.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,e._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:l,$data:u,schema:d,parentSchema:h,schemaCode:f,it:p}=s;if(!u&&!d)return;const g=o.let("valid"),m=h.items?(0,t.getSchemaTypes)(h.items):[];s.block$data(g,_,(0,e._)`${f} === false`),s.ok(g);function _(){const E=o.let("i",(0,e._)`${l}.length`),S=o.let("j");s.setParams({i:E,j:S}),o.assign(g,!0),o.if((0,e._)`${E} > 1`,()=>(v()?y:b)(E,S))}function v(){return m.length>0&&!m.some(E=>E==="object"||E==="array")}function y(E,S){const T=o.name("item"),C=(0,t.checkDataTypes)(m,T,p.opts.strictNumbers,t.DataType.Wrong),x=o.const("indices",(0,e._)`{}`);o.for((0,e._)`;${E}--;`,()=>{o.let(T,(0,e._)`${l}[${E}]`),o.if(C,(0,e._)`continue`),m.length>1&&o.if((0,e._)`typeof ${T} == "string"`,(0,e._)`${T} += "_"`),o.if((0,e._)`typeof ${x}[${T}] == "number"`,()=>{o.assign(S,(0,e._)`${x}[${T}]`),s.error(),o.assign(g,!1).break()}).code((0,e._)`${x}[${T}] = ${E}`)})}function b(E,S){const T=(0,r.useFunc)(o,n.default),C=o.name("outer");o.label(C).for((0,e._)`;${E}--;`,()=>o.for((0,e._)`${S} = ${E}; ${S}--;`,()=>o.if((0,e._)`${T}(${l}[${E}], ${l}[${S}])`,()=>{s.error(),o.assign(g,!1).break(C)})))}}};return U4.default=a,U4}var G4={},Wye;function uIt(){if(Wye)return G4;Wye=1,Object.defineProperty(G4,"__esModule",{value:!0});const t=Zi(),e=ga(),r=Moe(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,t._)`{allowedValue: ${a}}`},code(a){const{gen:s,data:o,$data:l,schemaCode:u,schema:d}=a;l||d&&typeof d=="object"?a.fail$data((0,t._)`!${(0,e.useFunc)(s,r.default)}(${o}, ${u})`):a.fail((0,t._)`${d} !== ${o}`)}};return G4.default=i,G4}var z4={},Kye;function dIt(){if(Kye)return z4;Kye=1,Object.defineProperty(z4,"__esModule",{value:!0});const t=Zi(),e=ga(),r=Moe(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,t._)`{allowedValues: ${a}}`},code(a){const{gen:s,data:o,$data:l,schema:u,schemaCode:d,it:h}=a;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=h.opts.loopEnum;let p;const g=()=>p??(p=(0,e.useFunc)(s,r.default));let m;if(f||l)m=s.let("valid"),a.block$data(m,_);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const y=s.const("vSchema",d);m=(0,t.or)(...u.map((b,E)=>v(y,E)))}a.pass(m);function _(){s.assign(m,!1),s.forOf("v",d,y=>s.if((0,t._)`${g()}(${o}, ${y})`,()=>s.assign(m,!0).break()))}function v(y,b){const E=u[b];return typeof E=="object"&&E!==null?(0,t._)`${g()}(${o}, ${y}[${b}])`:(0,t._)`${o} === ${E}`}}};return z4.default=i,z4}var jye;function hIt(){if(jye)return I4;jye=1,Object.defineProperty(I4,"__esModule",{value:!0});const t=tIt(),e=rIt(),r=iIt(),n=aIt(),i=sIt(),a=oIt(),s=lIt(),o=cIt(),l=uIt(),u=dIt(),d=[t.default,e.default,r.default,n.default,i.default,a.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return I4.default=d,I4}var q4={},tS={},Xye;function fMe(){if(Xye)return tS;Xye=1,Object.defineProperty(tS,"__esModule",{value:!0}),tS.validateAdditionalItems=void 0;const t=Zi(),e=ga(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,t.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,t._)`{limit: ${a}}`},code(a){const{parentSchema:s,it:o}=a,{items:l}=s;if(!Array.isArray(l)){(0,e.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,l)}};function i(a,s){const{gen:o,schema:l,data:u,keyword:d,it:h}=a;h.items=!0;const f=o.const("len",(0,t._)`${u}.length`);if(l===!1)a.setParams({len:s.length}),a.pass((0,t._)`${f} <= ${s.length}`);else if(typeof l=="object"&&!(0,e.alwaysValidSchema)(h,l)){const g=o.var("valid",(0,t._)`${f} <= ${s.length}`);o.if((0,t.not)(g),()=>p(g)),a.ok(g)}function p(g){o.forRange("i",s.length,f,m=>{a.subschema({keyword:d,dataProp:m,dataPropType:e.Type.Num},g),h.allErrors||o.if((0,t.not)(g),()=>o.break())})}}return tS.validateAdditionalItems=i,tS.default=n,tS}var V4={},rS={},Qye;function pMe(){if(Qye)return rS;Qye=1,Object.defineProperty(rS,"__esModule",{value:!0}),rS.validateTuple=void 0;const t=Zi(),e=ga(),r=ip(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:s,it:o}=a;if(Array.isArray(s))return i(a,"additionalItems",s);o.items=!0,!(0,e.alwaysValidSchema)(o,s)&&a.ok((0,r.validateArray)(a))}};function i(a,s,o=a.schema){const{gen:l,parentSchema:u,data:d,keyword:h,it:f}=a;m(u),f.opts.unevaluated&&o.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(l,o.length,f.items));const p=l.name("valid"),g=l.const("len",(0,t._)`${d}.length`);o.forEach((_,v)=>{(0,e.alwaysValidSchema)(f,_)||(l.if((0,t._)`${g} > ${v}`,()=>a.subschema({keyword:h,schemaProp:v,dataProp:v},p)),a.ok(p))});function m(_){const{opts:v,errSchemaPath:y}=f,b=o.length,E=b===_.minItems&&(b===_.maxItems||_[s]===!1);if(v.strictTuples&&!E){const S=`"${h}" is ${b}-tuple, but minItems or maxItems/${s} are not specified or different at path "${y}"`;(0,e.checkStrictMode)(f,S,v.strictTuples)}}}return rS.validateTuple=i,rS.default=n,rS}var Zye;function fIt(){if(Zye)return V4;Zye=1,Object.defineProperty(V4,"__esModule",{value:!0});const t=pMe(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,t.validateTuple)(r,"items")};return V4.default=e,V4}var H4={},Jye;function pIt(){if(Jye)return H4;Jye=1,Object.defineProperty(H4,"__esModule",{value:!0});const t=Zi(),e=ga(),r=ip(),n=fMe(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,t.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,t._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:l,it:u}=s,{prefixItems:d}=l;u.items=!0,!(0,e.alwaysValidSchema)(u,o)&&(d?(0,n.validateAdditionalItems)(s,d):s.ok((0,r.validateArray)(s)))}};return H4.default=a,H4}var Y4={},ebe;function gIt(){if(ebe)return Y4;ebe=1,Object.defineProperty(Y4,"__esModule",{value:!0});const t=Zi(),e=ga(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,t.str)`must contain at least ${i} valid item(s)`:(0,t.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,t._)`{minContains: ${i}}`:(0,t._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:s,parentSchema:o,data:l,it:u}=i;let d,h;const{minContains:f,maxContains:p}=o;u.opts.next?(d=f===void 0?1:f,h=p):d=1;const g=a.const("len",(0,t._)`${l}.length`);if(i.setParams({min:d,max:h}),h===void 0&&d===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&d>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,e.alwaysValidSchema)(u,s)){let b=(0,t._)`${g} >= ${d}`;h!==void 0&&(b=(0,t._)`${b} && ${g} <= ${h}`),i.pass(b);return}u.items=!0;const m=a.name("valid");h===void 0&&d===1?v(m,()=>a.if(m,()=>a.break())):d===0?(a.let(m,!0),h!==void 0&&a.if((0,t._)`${l}.length > 0`,_)):(a.let(m,!1),_()),i.result(m,()=>i.reset());function _(){const b=a.name("_valid"),E=a.let("count",0);v(b,()=>a.if(b,()=>y(E)))}function v(b,E){a.forRange("i",0,g,S=>{i.subschema({keyword:"contains",dataProp:S,dataPropType:e.Type.Num,compositeRule:!0},b),E()})}function y(b){a.code((0,t._)`${b}++`),h===void 0?a.if((0,t._)`${b} >= ${d}`,()=>a.assign(m,!0).break()):(a.if((0,t._)`${b} > ${h}`,()=>a.assign(m,!1).break()),d===1?a.assign(m,!0):a.if((0,t._)`${b} >= ${d}`,()=>a.assign(m,!0)))}}};return Y4.default=n,Y4}var QY={},tbe;function mIt(){return tbe||(tbe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=Zi(),r=ga(),n=ip();t.error={message:({params:{property:l,depsCount:u,deps:d}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${d} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:d,missingProperty:h}})=>(0,e._)`{property: ${l},
    missingProperty: ${h},
    depsCount: ${u},
    deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(l){const[u,d]=a(l);s(l,u),o(l,d)}};function a({schema:l}){const u={},d={};for(const h in l){if(h==="__proto__")continue;const f=Array.isArray(l[h])?u:d;f[h]=l[h]}return[u,d]}function s(l,u=l.schema){const{gen:d,data:h,it:f}=l;if(Object.keys(u).length===0)return;const p=d.let("missing");for(const g in u){const m=u[g];if(m.length===0)continue;const _=(0,n.propertyInData)(d,h,g,f.opts.ownProperties);l.setParams({property:g,depsCount:m.length,deps:m.join(", ")}),f.allErrors?d.if(_,()=>{for(const v of m)(0,n.checkReportMissingProp)(l,v)}):(d.if((0,e._)`${_} && (${(0,n.checkMissingProp)(l,m,p)})`),(0,n.reportMissingProp)(l,p),d.else())}}t.validatePropertyDeps=s;function o(l,u=l.schema){const{gen:d,data:h,keyword:f,it:p}=l,g=d.name("valid");for(const m in u)(0,r.alwaysValidSchema)(p,u[m])||(d.if((0,n.propertyInData)(d,h,m,p.opts.ownProperties),()=>{const _=l.subschema({keyword:f,schemaProp:m},g);l.mergeValidEvaluated(_,g)},()=>d.var(g,!0)),l.ok(g))}t.validateSchemaDeps=o,t.default=i})(QY)),QY}var W4={},rbe;function _It(){if(rbe)return W4;rbe=1,Object.defineProperty(W4,"__esModule",{value:!0});const t=Zi(),e=ga(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,t._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:s,data:o,it:l}=i;if((0,e.alwaysValidSchema)(l,s))return;const u=a.name("valid");a.forIn("key",o,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),a.if((0,t.not)(u),()=>{i.error(!0),l.allErrors||a.break()})}),i.ok(u)}};return W4.default=n,W4}var K4={},nbe;function gMe(){if(nbe)return K4;nbe=1,Object.defineProperty(K4,"__esModule",{value:!0});const t=ip(),e=Zi(),r=$1(),n=ga(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:u,data:d,errsCount:h,it:f}=s;if(!h)throw new Error("ajv implementation error");const{allErrors:p,opts:g}=f;if(f.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(f,l))return;const m=(0,t.allSchemaProperties)(u.properties),_=(0,t.allSchemaProperties)(u.patternProperties);v(),s.ok((0,e._)`${h} === ${r.default.errors}`);function v(){o.forIn("key",d,T=>{!m.length&&!_.length?E(T):o.if(y(T),()=>E(T))})}function y(T){let C;if(m.length>8){const x=(0,n.schemaRefOrVal)(f,u.properties,"properties");C=(0,t.isOwnProperty)(o,x,T)}else m.length?C=(0,e.or)(...m.map(x=>(0,e._)`${T} === ${x}`)):C=e.nil;return _.length&&(C=(0,e.or)(C,..._.map(x=>(0,e._)`${(0,t.usePattern)(s,x)}.test(${T})`))),(0,e.not)(C)}function b(T){o.code((0,e._)`delete ${d}[${T}]`)}function E(T){if(g.removeAdditional==="all"||g.removeAdditional&&l===!1){b(T);return}if(l===!1){s.setParams({additionalProperty:T}),s.error(),p||o.break();return}if(typeof l=="object"&&!(0,n.alwaysValidSchema)(f,l)){const C=o.name("valid");g.removeAdditional==="failing"?(S(T,C,!1),o.if((0,e.not)(C),()=>{s.reset(),b(T)})):(S(T,C),p||o.if((0,e.not)(C),()=>o.break()))}}function S(T,C,x){const A={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};x===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(A,C)}}};return K4.default=a,K4}var j4={},ibe;function vIt(){if(ibe)return j4;ibe=1,Object.defineProperty(j4,"__esModule",{value:!0});const t=BB(),e=ip(),r=ga(),n=gMe(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,parentSchema:l,data:u,it:d}=a;d.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(d,n.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(o);for(const _ of h)d.definedProperties.add(_);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(s,(0,r.toHash)(h),d.props));const f=h.filter(_=>!(0,r.alwaysValidSchema)(d,o[_]));if(f.length===0)return;const p=s.name("valid");for(const _ of f)g(_)?m(_):(s.if((0,e.propertyInData)(s,u,_,d.opts.ownProperties)),m(_),d.allErrors||s.else().var(p,!0),s.endIf()),a.it.definedProperties.add(_),a.ok(p);function g(_){return d.opts.useDefaults&&!d.compositeRule&&o[_].default!==void 0}function m(_){a.subschema({keyword:"properties",schemaProp:_,dataProp:_},p)}}};return j4.default=i,j4}var X4={},abe;function yIt(){if(abe)return X4;abe=1,Object.defineProperty(X4,"__esModule",{value:!0});const t=ip(),e=Zi(),r=ga(),n=ga(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,data:l,parentSchema:u,it:d}=a,{opts:h}=d,f=(0,t.allSchemaProperties)(o),p=f.filter(E=>(0,r.alwaysValidSchema)(d,o[E]));if(f.length===0||p.length===f.length&&(!d.opts.unevaluated||d.props===!0))return;const g=h.strictSchema&&!h.allowMatchingProperties&&u.properties,m=s.name("valid");d.props!==!0&&!(d.props instanceof e.Name)&&(d.props=(0,n.evaluatedPropsToName)(s,d.props));const{props:_}=d;v();function v(){for(const E of f)g&&y(E),d.allErrors?b(E):(s.var(m,!0),b(E),s.if(m))}function y(E){for(const S in g)new RegExp(E).test(S)&&(0,r.checkStrictMode)(d,`property ${S} matches pattern ${E} (use allowMatchingProperties)`)}function b(E){s.forIn("key",l,S=>{s.if((0,e._)`${(0,t.usePattern)(a,E)}.test(${S})`,()=>{const T=p.includes(E);T||a.subschema({keyword:"patternProperties",schemaProp:E,dataProp:S,dataPropType:n.Type.Str},m),d.opts.unevaluated&&_!==!0?s.assign((0,e._)`${_}[${S}]`,!0):!T&&!d.allErrors&&s.if((0,e.not)(m),()=>s.break())})})}}};return X4.default=i,X4}var Q4={},sbe;function bIt(){if(sbe)return Q4;sbe=1,Object.defineProperty(Q4,"__esModule",{value:!0});const t=ga(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,t.alwaysValidSchema)(a,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Q4.default=e,Q4}var Z4={},obe;function EIt(){if(obe)return Z4;obe=1,Object.defineProperty(Z4,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ip().validateUnion,error:{message:"must match a schema in anyOf"}};return Z4.default=e,Z4}var J4={},lbe;function SIt(){if(lbe)return J4;lbe=1,Object.defineProperty(J4,"__esModule",{value:!0});const t=Zi(),e=ga(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,t._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:s,parentSchema:o,it:l}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const u=s,d=a.let("valid",!1),h=a.let("passing",null),f=a.name("_valid");i.setParams({passing:h}),a.block(p),i.result(d,()=>i.reset(),()=>i.error(!0));function p(){u.forEach((g,m)=>{let _;(0,e.alwaysValidSchema)(l,g)?a.var(f,!0):_=i.subschema({keyword:"oneOf",schemaProp:m,compositeRule:!0},f),m>0&&a.if((0,t._)`${f} && ${d}`).assign(d,!1).assign(h,(0,t._)`[${h}, ${m}]`).else(),a.if(f,()=>{a.assign(d,!0),a.assign(h,m),_&&i.mergeEvaluated(_,t.Name)})})}}};return J4.default=n,J4}var eM={},cbe;function TIt(){if(cbe)return eM;cbe=1,Object.defineProperty(eM,"__esModule",{value:!0});const t=ga(),e={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((o,l)=>{if((0,t.alwaysValidSchema)(a,o))return;const u=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(u)})}};return eM.default=e,eM}var tM={},ube;function CIt(){if(ube)return tM;ube=1,Object.defineProperty(tM,"__esModule",{value:!0});const t=Zi(),e=ga(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,t.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,t._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:s,parentSchema:o,it:l}=a;o.then===void 0&&o.else===void 0&&(0,e.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const u=i(l,"then"),d=i(l,"else");if(!u&&!d)return;const h=s.let("valid",!0),f=s.name("_valid");if(p(),a.reset(),u&&d){const m=s.let("ifClause");a.setParams({ifClause:m}),s.if(f,g("then",m),g("else",m))}else u?s.if(f,g("then")):s.if((0,t.not)(f),g("else"));a.pass(h,()=>a.error(!0));function p(){const m=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);a.mergeEvaluated(m)}function g(m,_){return()=>{const v=a.subschema({keyword:m},f);s.assign(h,f),a.mergeValidEvaluated(v,h),_?s.assign(_,(0,t._)`${m}`):a.setParams({ifClause:m})}}}};function i(a,s){const o=a.schema[s];return o!==void 0&&!(0,e.alwaysValidSchema)(a,o)}return tM.default=n,tM}var rM={},dbe;function wIt(){if(dbe)return rM;dbe=1,Object.defineProperty(rM,"__esModule",{value:!0});const t=ga(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,t.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return rM.default=e,rM}var hbe;function xIt(){if(hbe)return q4;hbe=1,Object.defineProperty(q4,"__esModule",{value:!0});const t=fMe(),e=fIt(),r=pMe(),n=pIt(),i=gIt(),a=mIt(),s=_It(),o=gMe(),l=vIt(),u=yIt(),d=bIt(),h=EIt(),f=SIt(),p=TIt(),g=CIt(),m=wIt();function _(v=!1){const y=[d.default,h.default,f.default,p.default,g.default,m.default,s.default,o.default,a.default,l.default,u.default];return v?y.push(e.default,n.default):y.push(t.default,r.default),y.push(i.default),y}return q4.default=_,q4}var nM={},iM={},fbe;function AIt(){if(fbe)return iM;fbe=1,Object.defineProperty(iM,"__esModule",{value:!0});const t=Zi(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,t._)`{format: ${n}}`},code(n,i){const{gen:a,data:s,$data:o,schema:l,schemaCode:u,it:d}=n,{opts:h,errSchemaPath:f,schemaEnv:p,self:g}=d;if(!h.validateFormats)return;o?m():_();function m(){const v=a.scopeValue("formats",{ref:g.formats,code:h.code.formats}),y=a.const("fDef",(0,t._)`${v}[${u}]`),b=a.let("fType"),E=a.let("format");a.if((0,t._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>a.assign(b,(0,t._)`${y}.type || "string"`).assign(E,(0,t._)`${y}.validate`),()=>a.assign(b,(0,t._)`"string"`).assign(E,y)),n.fail$data((0,t.or)(S(),T()));function S(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function T(){const C=p.$async?(0,t._)`(${y}.async ? await ${E}(${s}) : ${E}(${s}))`:(0,t._)`${E}(${s})`,x=(0,t._)`(typeof ${E} == "function" ? ${C} : ${E}.test(${s}))`;return(0,t._)`${E} && ${E} !== true && ${b} === ${i} && !${x}`}}function _(){const v=g.formats[l];if(!v){S();return}if(v===!0)return;const[y,b,E]=T(v);y===i&&n.pass(C());function S(){if(h.strictSchema===!1){g.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${f}"`}}function T(x){const A=x instanceof RegExp?(0,t.regexpCode)(x):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(l)}`:void 0,R=a.scopeValue("formats",{key:l,ref:x,code:A});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,t._)`${R}.validate`]:["string",x,R]}function C(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!p.$async)throw new Error("async format in sync schema");return(0,t._)`await ${E}(${s})`}return typeof b=="function"?(0,t._)`${E}(${s})`:(0,t._)`${E}.test(${s})`}}}};return iM.default=r,iM}var pbe;function RIt(){if(pbe)return nM;pbe=1,Object.defineProperty(nM,"__esModule",{value:!0});const e=[AIt().default];return nM.default=e,nM}var _v={},gbe;function OIt(){return gbe||(gbe=1,Object.defineProperty(_v,"__esModule",{value:!0}),_v.contentVocabulary=_v.metadataVocabulary=void 0,_v.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],_v.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),_v}var mbe;function IIt(){if(mbe)return A4;mbe=1,Object.defineProperty(A4,"__esModule",{value:!0});const t=eIt(),e=hIt(),r=xIt(),n=RIt(),i=OIt(),a=[t.default,e.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return A4.default=a,A4}var aM={},mO={},_be;function NIt(){if(_be)return mO;_be=1,Object.defineProperty(mO,"__esModule",{value:!0}),mO.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(mO.DiscrError=t={})),mO}var vbe;function kIt(){if(vbe)return aM;vbe=1,Object.defineProperty(aM,"__esModule",{value:!0});const t=Zi(),e=NIt(),r=Doe(),n=UB(),i=ga(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:l}})=>o===e.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:o,tag:l,tagName:u}})=>(0,t._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:d,parentSchema:h,it:f}=o,{oneOf:p}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const m=l.let("valid",!1),_=l.const("tag",(0,t._)`${u}${(0,t.getProperty)(g)}`);l.if((0,t._)`typeof ${_} == "string"`,()=>v(),()=>o.error(!1,{discrError:e.DiscrError.Tag,tag:_,tagName:g})),o.ok(m);function v(){const E=b();l.if(!1);for(const S in E)l.elseIf((0,t._)`${_} === ${S}`),l.assign(m,y(E[S]));l.else(),o.error(!1,{discrError:e.DiscrError.Mapping,tag:_,tagName:g}),l.endIf()}function y(E){const S=l.name("valid"),T=o.subschema({keyword:"oneOf",schemaProp:E},S);return o.mergeEvaluated(T,t.Name),S}function b(){var E;const S={},T=x(h);let C=!0;for(let I=0;I<p.length;I++){let L=p[I];if(L?.$ref&&!(0,i.schemaHasRulesButRef)(L,f.self.RULES)){const O=L.$ref;if(L=r.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,O),L instanceof r.SchemaEnv&&(L=L.schema),L===void 0)throw new n.default(f.opts.uriResolver,f.baseId,O)}const F=(E=L?.properties)===null||E===void 0?void 0:E[g];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);C=C&&(T||x(L)),A(F,I)}if(!C)throw new Error(`discriminator: "${g}" must be required`);return S;function x({required:I}){return Array.isArray(I)&&I.includes(g)}function A(I,L){if(I.const)R(I.const,L);else if(I.enum)for(const F of I.enum)R(F,L);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function R(I,L){if(typeof I!="string"||I in S)throw new Error(`discriminator: "${g}" values must be unique strings`);S[I]=L}}}};return aM.default=s,aM}const DIt="http://json-schema.org/draft-07/schema#",MIt="http://json-schema.org/draft-07/schema#",LIt="Core schema meta-schema",PIt={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},FIt=["object","boolean"],BIt={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},UIt={$schema:DIt,$id:MIt,title:LIt,definitions:PIt,type:FIt,properties:BIt,default:!0};var ybe;function $It(){return ybe||(ybe=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=QOt(),n=IIt(),i=kIt(),a=UIt,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(g,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}e.Ajv=l,t.exports=e=l,t.exports.Ajv=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var u=BB();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=Zi();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=koe();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=UB();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(S4,S4.exports)),S4.exports}var GIt=$It();const zIt=sd(GIt);var sM={exports:{}},ZY={},bbe;function qIt(){return bbe||(bbe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(I,L){return{validate:I,compare:L}}t.fullFormats={date:e(a,s),time:e(l(!0),u),"date-time":e(f(!0),p),"iso-time":e(l(),d),"iso-date-time":e(f(),g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:R,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:T},int64:{type:"number",validate:C},float:{type:"number",validate:x},double:{type:"number",validate:x},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function r(I){return I%4===0&&(I%100!==0||I%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const L=n.exec(I);if(!L)return!1;const F=+L[1],O=+L[2],D=+L[3];return O>=1&&O<=12&&D>=1&&D<=(O===2&&r(F)?29:i[O])}function s(I,L){if(I&&L)return I>L?1:I<L?-1:0}const o=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function l(I){return function(F){const O=o.exec(F);if(!O)return!1;const D=+O[1],M=+O[2],P=+O[3],N=O[4],$=O[5]==="-"?-1:1,U=+(O[6]||0),B=+(O[7]||0);if(U>23||B>59||I&&!N)return!1;if(D<=23&&M<=59&&P<60)return!0;const V=M-B*$,z=D-U*$-(V<0?1:0);return(z===23||z===-1)&&(V===59||V===-1)&&P<61}}function u(I,L){if(!(I&&L))return;const F=new Date("2020-01-01T"+I).valueOf(),O=new Date("2020-01-01T"+L).valueOf();if(F&&O)return F-O}function d(I,L){if(!(I&&L))return;const F=o.exec(I),O=o.exec(L);if(F&&O)return I=F[1]+F[2]+F[3],L=O[1]+O[2]+O[3],I>L?1:I<L?-1:0}const h=/t|\s/i;function f(I){const L=l(I);return function(O){const D=O.split(h);return D.length===2&&a(D[0])&&L(D[1])}}function p(I,L){if(!(I&&L))return;const F=new Date(I).valueOf(),O=new Date(L).valueOf();if(F&&O)return F-O}function g(I,L){if(!(I&&L))return;const[F,O]=I.split(h),[D,M]=L.split(h),P=s(F,D);if(P!==void 0)return P||u(O,M)}const m=/\/|:/,_=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function v(I){return m.test(I)&&_.test(I)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(I){return y.lastIndex=0,y.test(I)}const E=-2147483648,S=2**31-1;function T(I){return Number.isInteger(I)&&I<=S&&I>=E}function C(I){return Number.isInteger(I)}function x(){return!0}const A=/[^\\]\\Z/;function R(I){if(A.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(ZY)),ZY}var JY={},oM={exports:{}},eW={},Zg={},vv={},tW={},rW={},nW={},Ebe;function W9(){return Ebe||(Ebe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(y){if(super(),!t.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((b,E)=>`${b}${E}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((b,E)=>(E instanceof r&&(b[E.str]=(b[E.str]||0)+1),b),{})}}t._Code=n,t.nil=new n("");function i(v,...y){const b=[v[0]];let E=0;for(;E<y.length;)o(b,y[E]),b.push(v[++E]);return new n(b)}t._=i;const a=new n("+");function s(v,...y){const b=[p(v[0])];let E=0;for(;E<y.length;)b.push(a),o(b,y[E]),b.push(a,p(v[++E]));return l(b),new n(b)}t.str=s;function o(v,y){y instanceof n?v.push(...y._items):y instanceof r?v.push(y):v.push(h(y))}t.addCodeArg=o;function l(v){let y=1;for(;y<v.length-1;){if(v[y]===a){const b=u(v[y-1],v[y+1]);if(b!==void 0){v.splice(y-1,3,b);continue}v[y++]="+"}y++}}function u(v,y){if(y==='""')return v;if(v==='""')return y;if(typeof v=="string")return y instanceof r||v[v.length-1]!=='"'?void 0:typeof y!="string"?`${v.slice(0,-1)}${y}"`:y[0]==='"'?v.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(v instanceof r))return`"${v}${y.slice(1)}`}function d(v,y){return y.emptyStr()?v:v.emptyStr()?y:s`${v}${y}`}t.strConcat=d;function h(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:p(Array.isArray(v)?v.join(","):v)}function f(v){return new n(p(v))}t.stringify=f;function p(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=p;function g(v){return typeof v=="string"&&t.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}t.getProperty=g;function m(v){if(typeof v=="string"&&t.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}t.getEsmExportName=m;function _(v){return new n(v.toString())}t.regexpCode=_})(nW)),nW}var iW={},Sbe;function Tbe(){return Sbe||(Sbe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=W9();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof e.Name?u:this.name(u)}name(u){return new e.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}t.Scope=i;class a extends e.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:h}){this.value=u,this.scopePath=(0,e._)`.${new e.Name(d)}[${h}]`}}t.ValueScopeName=a;const s=(0,e._)`\n`;class o extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s:e.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(u),{prefix:p}=f,g=(h=d.key)!==null&&h!==void 0?h:d.ref;let m=this._values[p];if(m){const y=m.get(g);if(y)return y}else m=this._values[p]=new Map;m.set(g,f);const _=this._scope[p]||(this._scope[p]=[]),v=_.length;return _[v]=d.ref,f.setValue(d,{property:p,itemIndex:v}),f}getValue(u,d){const h=this._values[u];if(h)return h.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,e._)`${u}${h.scopePath}`})}scopeCode(u=this._values,d,h){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},d,h)}_reduceValues(u,d,h={},f){let p=e.nil;for(const g in u){const m=u[g];if(!m)continue;const _=h[g]=h[g]||new Map;m.forEach(v=>{if(_.has(v))return;_.set(v,n.Started);let y=d(v);if(y){const b=this.opts.es5?t.varKinds.var:t.varKinds.const;p=(0,e._)`${p}${b} ${v} = ${y};${this.opts._n}`}else if(y=f?.(v))p=(0,e._)`${p}${y}${this.opts._n}`;else throw new r(v);_.set(v,n.Completed)})}return p}}t.ValueScope=o})(iW)),iW}var Cbe;function Mi(){return Cbe||(Cbe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=W9(),r=Tbe();var n=W9();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=Tbe();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class a{optimizeNodes(){return this}optimizeNames(G,Y){return this}}class s extends a{constructor(G,Y,W){super(),this.varKind=G,this.name=Y,this.rhs=W}render({es5:G,_n:Y}){const W=G?r.varKinds.var:this.varKind,Q=this.rhs===void 0?"":` = ${this.rhs}`;return`${W} ${this.name}${Q};`+Y}optimizeNames(G,Y){if(G[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,G,Y)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class o extends a{constructor(G,Y,W){super(),this.lhs=G,this.rhs=Y,this.sideEffects=W}render({_n:G}){return`${this.lhs} = ${this.rhs};`+G}optimizeNames(G,Y){if(!(this.lhs instanceof e.Name&&!G[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,G,Y),this}get names(){const G=this.lhs instanceof e.Name?{}:{...this.lhs.names};return F(G,this.rhs)}}class l extends o{constructor(G,Y,W,Q){super(G,W,Q),this.op=Y}render({_n:G}){return`${this.lhs} ${this.op}= ${this.rhs};`+G}}class u extends a{constructor(G){super(),this.label=G,this.names={}}render({_n:G}){return`${this.label}:`+G}}class d extends a{constructor(G){super(),this.label=G,this.names={}}render({_n:G}){return`break${this.label?` ${this.label}`:""};`+G}}class h extends a{constructor(G){super(),this.error=G}render({_n:G}){return`throw ${this.error};`+G}get names(){return this.error.names}}class f extends a{constructor(G){super(),this.code=G}render({_n:G}){return`${this.code};`+G}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(G,Y){return this.code=O(this.code,G,Y),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class p extends a{constructor(G=[]){super(),this.nodes=G}render(G){return this.nodes.reduce((Y,W)=>Y+W.render(G),"")}optimizeNodes(){const{nodes:G}=this;let Y=G.length;for(;Y--;){const W=G[Y].optimizeNodes();Array.isArray(W)?G.splice(Y,1,...W):W?G[Y]=W:G.splice(Y,1)}return G.length>0?this:void 0}optimizeNames(G,Y){const{nodes:W}=this;let Q=W.length;for(;Q--;){const ie=W[Q];ie.optimizeNames(G,Y)||(D(G,ie.names),W.splice(Q,1))}return W.length>0?this:void 0}get names(){return this.nodes.reduce((G,Y)=>L(G,Y.names),{})}}class g extends p{render(G){return"{"+G._n+super.render(G)+"}"+G._n}}class m extends p{}class _ extends g{}_.kind="else";class v extends g{constructor(G,Y){super(Y),this.condition=G}render(G){let Y=`if(${this.condition})`+super.render(G);return this.else&&(Y+="else "+this.else.render(G)),Y}optimizeNodes(){super.optimizeNodes();const G=this.condition;if(G===!0)return this.nodes;let Y=this.else;if(Y){const W=Y.optimizeNodes();Y=this.else=Array.isArray(W)?new _(W):W}if(Y)return G===!1?Y instanceof v?Y:Y.nodes:this.nodes.length?this:new v(M(G),Y instanceof v?[Y]:Y.nodes);if(!(G===!1||!this.nodes.length))return this}optimizeNames(G,Y){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(G,Y),!!(super.optimizeNames(G,Y)||this.else))return this.condition=O(this.condition,G,Y),this}get names(){const G=super.names;return F(G,this.condition),this.else&&L(G,this.else.names),G}}v.kind="if";class y extends g{}y.kind="for";class b extends y{constructor(G){super(),this.iteration=G}render(G){return`for(${this.iteration})`+super.render(G)}optimizeNames(G,Y){if(super.optimizeNames(G,Y))return this.iteration=O(this.iteration,G,Y),this}get names(){return L(super.names,this.iteration.names)}}class E extends y{constructor(G,Y,W,Q){super(),this.varKind=G,this.name=Y,this.from=W,this.to=Q}render(G){const Y=G.es5?r.varKinds.var:this.varKind,{name:W,from:Q,to:ie}=this;return`for(${Y} ${W}=${Q}; ${W}<${ie}; ${W}++)`+super.render(G)}get names(){const G=F(super.names,this.from);return F(G,this.to)}}class S extends y{constructor(G,Y,W,Q){super(),this.loop=G,this.varKind=Y,this.name=W,this.iterable=Q}render(G){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(G)}optimizeNames(G,Y){if(super.optimizeNames(G,Y))return this.iterable=O(this.iterable,G,Y),this}get names(){return L(super.names,this.iterable.names)}}class T extends g{constructor(G,Y,W){super(),this.name=G,this.args=Y,this.async=W}render(G){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(G)}}T.kind="func";class C extends p{render(G){return"return "+super.render(G)}}C.kind="return";class x extends g{render(G){let Y="try"+super.render(G);return this.catch&&(Y+=this.catch.render(G)),this.finally&&(Y+=this.finally.render(G)),Y}optimizeNodes(){var G,Y;return super.optimizeNodes(),(G=this.catch)===null||G===void 0||G.optimizeNodes(),(Y=this.finally)===null||Y===void 0||Y.optimizeNodes(),this}optimizeNames(G,Y){var W,Q;return super.optimizeNames(G,Y),(W=this.catch)===null||W===void 0||W.optimizeNames(G,Y),(Q=this.finally)===null||Q===void 0||Q.optimizeNames(G,Y),this}get names(){const G=super.names;return this.catch&&L(G,this.catch.names),this.finally&&L(G,this.finally.names),G}}class A extends g{constructor(G){super(),this.error=G}render(G){return`catch(${this.error})`+super.render(G)}}A.kind="catch";class R extends g{render(G){return"finally"+super.render(G)}}R.kind="finally";class I{constructor(G,Y={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Y,_n:Y.lines?`
`:""},this._extScope=G,this._scope=new r.Scope({parent:G}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(G){return this._scope.name(G)}scopeName(G){return this._extScope.name(G)}scopeValue(G,Y){const W=this._extScope.value(G,Y);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}getScopeValue(G,Y){return this._extScope.getValue(G,Y)}scopeRefs(G){return this._extScope.scopeRefs(G,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(G,Y,W,Q){const ie=this._scope.toName(Y);return W!==void 0&&Q&&(this._constants[ie.str]=W),this._leafNode(new s(G,ie,W)),ie}const(G,Y,W){return this._def(r.varKinds.const,G,Y,W)}let(G,Y,W){return this._def(r.varKinds.let,G,Y,W)}var(G,Y,W){return this._def(r.varKinds.var,G,Y,W)}assign(G,Y,W){return this._leafNode(new o(G,Y,W))}add(G,Y){return this._leafNode(new l(G,t.operators.ADD,Y))}code(G){return typeof G=="function"?G():G!==e.nil&&this._leafNode(new f(G)),this}object(...G){const Y=["{"];for(const[W,Q]of G)Y.length>1&&Y.push(","),Y.push(W),(W!==Q||this.opts.es5)&&(Y.push(":"),(0,e.addCodeArg)(Y,Q));return Y.push("}"),new e._Code(Y)}if(G,Y,W){if(this._blockNode(new v(G)),Y&&W)this.code(Y).else().code(W).endIf();else if(Y)this.code(Y).endIf();else if(W)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(G){return this._elseNode(new v(G))}else(){return this._elseNode(new _)}endIf(){return this._endBlockNode(v,_)}_for(G,Y){return this._blockNode(G),Y&&this.code(Y).endFor(),this}for(G,Y){return this._for(new b(G),Y)}forRange(G,Y,W,Q,ie=this.opts.es5?r.varKinds.var:r.varKinds.let){const Z=this._scope.toName(G);return this._for(new E(ie,Z,Y,W),()=>Q(Z))}forOf(G,Y,W,Q=r.varKinds.const){const ie=this._scope.toName(G);if(this.opts.es5){const Z=Y instanceof e.Name?Y:this.var("_arr",Y);return this.forRange("_i",0,(0,e._)`${Z}.length`,re=>{this.var(ie,(0,e._)`${Z}[${re}]`),W(ie)})}return this._for(new S("of",Q,ie,Y),()=>W(ie))}forIn(G,Y,W,Q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(G,(0,e._)`Object.keys(${Y})`,W);const ie=this._scope.toName(G);return this._for(new S("in",Q,ie,Y),()=>W(ie))}endFor(){return this._endBlockNode(y)}label(G){return this._leafNode(new u(G))}break(G){return this._leafNode(new d(G))}return(G){const Y=new C;if(this._blockNode(Y),this.code(G),Y.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(G,Y,W){if(!Y&&!W)throw new Error('CodeGen: "try" without "catch" and "finally"');const Q=new x;if(this._blockNode(Q),this.code(G),Y){const ie=this.name("e");this._currNode=Q.catch=new A(ie),Y(ie)}return W&&(this._currNode=Q.finally=new R,this.code(W)),this._endBlockNode(A,R)}throw(G){return this._leafNode(new h(G))}block(G,Y){return this._blockStarts.push(this._nodes.length),G&&this.code(G).endBlock(Y),this}endBlock(G){const Y=this._blockStarts.pop();if(Y===void 0)throw new Error("CodeGen: not in self-balancing block");const W=this._nodes.length-Y;if(W<0||G!==void 0&&W!==G)throw new Error(`CodeGen: wrong number of nodes: ${W} vs ${G} expected`);return this._nodes.length=Y,this}func(G,Y=e.nil,W,Q){return this._blockNode(new T(G,Y,W)),Q&&this.code(Q).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(G=1){for(;G-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(G){return this._currNode.nodes.push(G),this}_blockNode(G){this._currNode.nodes.push(G),this._nodes.push(G)}_endBlockNode(G,Y){const W=this._currNode;if(W instanceof G||Y&&W instanceof Y)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Y?`${G.kind}/${Y.kind}`:G.kind}"`)}_elseNode(G){const Y=this._currNode;if(!(Y instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=Y.else=G,this}get _root(){return this._nodes[0]}get _currNode(){const G=this._nodes;return G[G.length-1]}set _currNode(G){const Y=this._nodes;Y[Y.length-1]=G}}t.CodeGen=I;function L(z,G){for(const Y in G)z[Y]=(z[Y]||0)+(G[Y]||0);return z}function F(z,G){return G instanceof e._CodeOrName?L(z,G.names):z}function O(z,G,Y){if(z instanceof e.Name)return W(z);if(!Q(z))return z;return new e._Code(z._items.reduce((ie,Z)=>(Z instanceof e.Name&&(Z=W(Z)),Z instanceof e._Code?ie.push(...Z._items):ie.push(Z),ie),[]));function W(ie){const Z=Y[ie.str];return Z===void 0||G[ie.str]!==1?ie:(delete G[ie.str],Z)}function Q(ie){return ie instanceof e._Code&&ie._items.some(Z=>Z instanceof e.Name&&G[Z.str]===1&&Y[Z.str]!==void 0)}}function D(z,G){for(const Y in G)z[Y]=(z[Y]||0)-(G[Y]||0)}function M(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,e._)`!${V(z)}`}t.not=M;const P=B(t.operators.AND);function N(...z){return z.reduce(P)}t.and=N;const $=B(t.operators.OR);function U(...z){return z.reduce($)}t.or=U;function B(z){return(G,Y)=>G===e.nil?Y:Y===e.nil?G:(0,e._)`${V(G)} ${z} ${V(Y)}`}function V(z){return z instanceof e.Name?z:(0,e._)`(${z})`}})(rW)),rW}var Ii={},wbe;function ma(){if(wbe)return Ii;wbe=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.checkStrictMode=Ii.getErrorPath=Ii.Type=Ii.useFunc=Ii.setEvaluated=Ii.evaluatedPropsToName=Ii.mergeEvaluated=Ii.eachItem=Ii.unescapeJsonPointer=Ii.escapeJsonPointer=Ii.escapeFragment=Ii.unescapeFragment=Ii.schemaRefOrVal=Ii.schemaHasRulesButRef=Ii.schemaHasRules=Ii.checkUnknownRules=Ii.alwaysValidSchema=Ii.toHash=void 0;const t=Mi(),e=W9();function r(S){const T={};for(const C of S)T[C]=!0;return T}Ii.toHash=r;function n(S,T){return typeof T=="boolean"?T:Object.keys(T).length===0?!0:(i(S,T),!a(T,S.self.RULES.all))}Ii.alwaysValidSchema=n;function i(S,T=S.schema){const{opts:C,self:x}=S;if(!C.strictSchema||typeof T=="boolean")return;const A=x.RULES.keywords;for(const R in T)A[R]||E(S,`unknown keyword: "${R}"`)}Ii.checkUnknownRules=i;function a(S,T){if(typeof S=="boolean")return!S;for(const C in S)if(T[C])return!0;return!1}Ii.schemaHasRules=a;function s(S,T){if(typeof S=="boolean")return!S;for(const C in S)if(C!=="$ref"&&T.all[C])return!0;return!1}Ii.schemaHasRulesButRef=s;function o({topSchemaRef:S,schemaPath:T},C,x,A){if(!A){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,t._)`${C}`}return(0,t._)`${S}${T}${(0,t.getProperty)(x)}`}Ii.schemaRefOrVal=o;function l(S){return h(decodeURIComponent(S))}Ii.unescapeFragment=l;function u(S){return encodeURIComponent(d(S))}Ii.escapeFragment=u;function d(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}Ii.escapeJsonPointer=d;function h(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}Ii.unescapeJsonPointer=h;function f(S,T){if(Array.isArray(S))for(const C of S)T(C);else T(S)}Ii.eachItem=f;function p({mergeNames:S,mergeToName:T,mergeValues:C,resultToName:x}){return(A,R,I,L)=>{const F=I===void 0?R:I instanceof t.Name?(R instanceof t.Name?S(A,R,I):T(A,R,I),I):R instanceof t.Name?(T(A,I,R),R):C(R,I);return L===t.Name&&!(F instanceof t.Name)?x(A,F):F}}Ii.mergeEvaluated={props:p({mergeNames:(S,T,C)=>S.if((0,t._)`${C} !== true && ${T} !== undefined`,()=>{S.if((0,t._)`${T} === true`,()=>S.assign(C,!0),()=>S.assign(C,(0,t._)`${C} || {}`).code((0,t._)`Object.assign(${C}, ${T})`))}),mergeToName:(S,T,C)=>S.if((0,t._)`${C} !== true`,()=>{T===!0?S.assign(C,!0):(S.assign(C,(0,t._)`${C} || {}`),m(S,C,T))}),mergeValues:(S,T)=>S===!0?!0:{...S,...T},resultToName:g}),items:p({mergeNames:(S,T,C)=>S.if((0,t._)`${C} !== true && ${T} !== undefined`,()=>S.assign(C,(0,t._)`${T} === true ? true : ${C} > ${T} ? ${C} : ${T}`)),mergeToName:(S,T,C)=>S.if((0,t._)`${C} !== true`,()=>S.assign(C,T===!0?!0:(0,t._)`${C} > ${T} ? ${C} : ${T}`)),mergeValues:(S,T)=>S===!0?!0:Math.max(S,T),resultToName:(S,T)=>S.var("items",T)})};function g(S,T){if(T===!0)return S.var("props",!0);const C=S.var("props",(0,t._)`{}`);return T!==void 0&&m(S,C,T),C}Ii.evaluatedPropsToName=g;function m(S,T,C){Object.keys(C).forEach(x=>S.assign((0,t._)`${T}${(0,t.getProperty)(x)}`,!0))}Ii.setEvaluated=m;const _={};function v(S,T){return S.scopeValue("func",{ref:T,code:_[T.code]||(_[T.code]=new e._Code(T.code))})}Ii.useFunc=v;var y;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(y||(Ii.Type=y={}));function b(S,T,C){if(S instanceof t.Name){const x=T===y.Num;return C?x?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:x?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,t.getProperty)(S).toString():"/"+d(S)}Ii.getErrorPath=b;function E(S,T,C=S.opts.strictSchema){if(C){if(T=`strict mode: ${T}`,C===!0)throw new Error(T);S.self.logger.warn(T)}}return Ii.checkStrictMode=E,Ii}var lM={},xbe;function G1(){if(xbe)return lM;xbe=1,Object.defineProperty(lM,"__esModule",{value:!0});const t=Mi(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return lM.default=e,lM}var Abe;function $B(){return Abe||(Abe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=Mi(),r=ma(),n=G1();t.keywordError={message:({keyword:_})=>(0,e.str)`must pass "${_}" keyword validation`},t.keyword$DataError={message:({keyword:_,schemaType:v})=>v?(0,e.str)`"${_}" keyword must be ${v} ($data)`:(0,e.str)`"${_}" keyword is invalid ($data)`};function i(_,v=t.keywordError,y,b){const{it:E}=_,{gen:S,compositeRule:T,allErrors:C}=E,x=h(_,v,y);b??(T||C)?l(S,x):u(E,(0,e._)`[${x}]`)}t.reportError=i;function a(_,v=t.keywordError,y){const{it:b}=_,{gen:E,compositeRule:S,allErrors:T}=b,C=h(_,v,y);l(E,C),S||T||u(b,n.default.vErrors)}t.reportExtraError=a;function s(_,v){_.assign(n.default.errors,v),_.if((0,e._)`${n.default.vErrors} !== null`,()=>_.if(v,()=>_.assign((0,e._)`${n.default.vErrors}.length`,v),()=>_.assign(n.default.vErrors,null)))}t.resetErrorsCount=s;function o({gen:_,keyword:v,schemaValue:y,data:b,errsCount:E,it:S}){if(E===void 0)throw new Error("ajv implementation error");const T=_.name("err");_.forRange("i",E,n.default.errors,C=>{_.const(T,(0,e._)`${n.default.vErrors}[${C}]`),_.if((0,e._)`${T}.instancePath === undefined`,()=>_.assign((0,e._)`${T}.instancePath`,(0,e.strConcat)(n.default.instancePath,S.errorPath))),_.assign((0,e._)`${T}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${v}`),S.opts.verbose&&(_.assign((0,e._)`${T}.schema`,y),_.assign((0,e._)`${T}.data`,b))})}t.extendErrors=o;function l(_,v){const y=_.const("err",v);_.if((0,e._)`${n.default.vErrors} === null`,()=>_.assign(n.default.vErrors,(0,e._)`[${y}]`),(0,e._)`${n.default.vErrors}.push(${y})`),_.code((0,e._)`${n.default.errors}++`)}function u(_,v){const{gen:y,validateName:b,schemaEnv:E}=_;E.$async?y.throw((0,e._)`new ${_.ValidationError}(${v})`):(y.assign((0,e._)`${b}.errors`,v),y.return(!1))}const d={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function h(_,v,y){const{createErrors:b}=_.it;return b===!1?(0,e._)`{}`:f(_,v,y)}function f(_,v,y={}){const{gen:b,it:E}=_,S=[p(E,y),g(_,y)];return m(_,v,S),b.object(...S)}function p({errorPath:_},{instancePath:v}){const y=v?(0,e.str)`${_}${(0,r.getErrorPath)(v,r.Type.Str)}`:_;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,y)]}function g({keyword:_,it:{errSchemaPath:v}},{schemaPath:y,parentSchema:b}){let E=b?v:(0,e.str)`${v}/${_}`;return y&&(E=(0,e.str)`${E}${(0,r.getErrorPath)(y,r.Type.Str)}`),[d.schemaPath,E]}function m(_,{params:v,message:y},b){const{keyword:E,data:S,schemaValue:T,it:C}=_,{opts:x,propertyName:A,topSchemaRef:R,schemaPath:I}=C;b.push([d.keyword,E],[d.params,typeof v=="function"?v(_):v||(0,e._)`{}`]),x.messages&&b.push([d.message,typeof y=="function"?y(_):y]),x.verbose&&b.push([d.schema,T],[d.parentSchema,(0,e._)`${R}${I}`],[n.default.data,S]),A&&b.push([d.propertyName,A])}})(tW)),tW}var Rbe;function VIt(){if(Rbe)return vv;Rbe=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.boolOrEmptySchema=vv.topBoolOrEmptySchema=void 0;const t=$B(),e=Mi(),r=G1(),n={message:"boolean schema is false"};function i(o){const{gen:l,schema:u,validateName:d}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,e._)`${d}.errors`,null),l.return(!0))}vv.topBoolOrEmptySchema=i;function a(o,l){const{gen:u,schema:d}=o;d===!1?(u.var(l,!1),s(o)):u.var(l,!0)}vv.boolOrEmptySchema=a;function s(o,l){const{gen:u,data:d}=o,h={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,t.reportError)(h,n,void 0,l)}return vv}var Ll={},yv={},Obe;function mMe(){if(Obe)return yv;Obe=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.getRules=yv.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(i){return typeof i=="string"&&e.has(i)}yv.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return yv.getRules=n,yv}var Jg={},Ibe;function _Me(){if(Ibe)return Jg;Ibe=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.shouldUseRule=Jg.shouldUseGroup=Jg.schemaHasRulesForType=void 0;function t({schema:n,self:i},a){const s=i.RULES.types[a];return s&&s!==!0&&e(n,s)}Jg.schemaHasRulesForType=t;function e(n,i){return i.rules.some(a=>r(n,a))}Jg.shouldUseGroup=e;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(s=>n[s]!==void 0))}return Jg.shouldUseRule=r,Jg}var Nbe;function K9(){if(Nbe)return Ll;Nbe=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.reportTypeError=Ll.checkDataTypes=Ll.checkDataType=Ll.coerceAndCheckDataType=Ll.getJSONTypes=Ll.getSchemaTypes=Ll.DataType=void 0;const t=mMe(),e=_Me(),r=$B(),n=Mi(),i=ma();var a;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(a||(Ll.DataType=a={}));function s(y){const b=o(y.type);if(b.includes("null")){if(y.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&y.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');y.nullable===!0&&b.push("null")}return b}Ll.getSchemaTypes=s;function o(y){const b=Array.isArray(y)?y:y?[y]:[];if(b.every(t.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}Ll.getJSONTypes=o;function l(y,b){const{gen:E,data:S,opts:T}=y,C=d(b,T.coerceTypes),x=b.length>0&&!(C.length===0&&b.length===1&&(0,e.schemaHasRulesForType)(y,b[0]));if(x){const A=g(b,S,T.strictNumbers,a.Wrong);E.if(A,()=>{C.length?h(y,b,C):_(y)})}return x}Ll.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(y,b){return b?y.filter(E=>u.has(E)||b==="array"&&E==="array"):[]}function h(y,b,E){const{gen:S,data:T,opts:C}=y,x=S.let("dataType",(0,n._)`typeof ${T}`),A=S.let("coerced",(0,n._)`undefined`);C.coerceTypes==="array"&&S.if((0,n._)`${x} == 'object' && Array.isArray(${T}) && ${T}.length == 1`,()=>S.assign(T,(0,n._)`${T}[0]`).assign(x,(0,n._)`typeof ${T}`).if(g(b,T,C.strictNumbers),()=>S.assign(A,T))),S.if((0,n._)`${A} !== undefined`);for(const I of E)(u.has(I)||I==="array"&&C.coerceTypes==="array")&&R(I);S.else(),_(y),S.endIf(),S.if((0,n._)`${A} !== undefined`,()=>{S.assign(T,A),f(y,A)});function R(I){switch(I){case"string":S.elseIf((0,n._)`${x} == "number" || ${x} == "boolean"`).assign(A,(0,n._)`"" + ${T}`).elseIf((0,n._)`${T} === null`).assign(A,(0,n._)`""`);return;case"number":S.elseIf((0,n._)`${x} == "boolean" || ${T} === null
              || (${x} == "string" && ${T} && ${T} == +${T})`).assign(A,(0,n._)`+${T}`);return;case"integer":S.elseIf((0,n._)`${x} === "boolean" || ${T} === null
              || (${x} === "string" && ${T} && ${T} == +${T} && !(${T} % 1))`).assign(A,(0,n._)`+${T}`);return;case"boolean":S.elseIf((0,n._)`${T} === "false" || ${T} === 0 || ${T} === null`).assign(A,!1).elseIf((0,n._)`${T} === "true" || ${T} === 1`).assign(A,!0);return;case"null":S.elseIf((0,n._)`${T} === "" || ${T} === 0 || ${T} === false`),S.assign(A,null);return;case"array":S.elseIf((0,n._)`${x} === "string" || ${x} === "number"
              || ${x} === "boolean" || ${T} === null`).assign(A,(0,n._)`[${T}]`)}}}function f({gen:y,parentData:b,parentDataProperty:E},S){y.if((0,n._)`${b} !== undefined`,()=>y.assign((0,n._)`${b}[${E}]`,S))}function p(y,b,E,S=a.Correct){const T=S===a.Correct?n.operators.EQ:n.operators.NEQ;let C;switch(y){case"null":return(0,n._)`${b} ${T} null`;case"array":C=(0,n._)`Array.isArray(${b})`;break;case"object":C=(0,n._)`${b} && typeof ${b} == "object" && !Array.isArray(${b})`;break;case"integer":C=x((0,n._)`!(${b} % 1) && !isNaN(${b})`);break;case"number":C=x();break;default:return(0,n._)`typeof ${b} ${T} ${y}`}return S===a.Correct?C:(0,n.not)(C);function x(A=n.nil){return(0,n.and)((0,n._)`typeof ${b} == "number"`,A,E?(0,n._)`isFinite(${b})`:n.nil)}}Ll.checkDataType=p;function g(y,b,E,S){if(y.length===1)return p(y[0],b,E,S);let T;const C=(0,i.toHash)(y);if(C.array&&C.object){const x=(0,n._)`typeof ${b} != "object"`;T=C.null?x:(0,n._)`!${b} || ${x}`,delete C.null,delete C.array,delete C.object}else T=n.nil;C.number&&delete C.integer;for(const x in C)T=(0,n.and)(T,p(x,b,E,S));return T}Ll.checkDataTypes=g;const m={message:({schema:y})=>`must be ${y}`,params:({schema:y,schemaValue:b})=>typeof y=="string"?(0,n._)`{type: ${y}}`:(0,n._)`{type: ${b}}`};function _(y){const b=v(y);(0,r.reportError)(b,m)}Ll.reportTypeError=_;function v(y){const{gen:b,data:E,schema:S}=y,T=(0,i.schemaRefOrVal)(y,S,"type");return{gen:b,keyword:"type",data:E,schema:S.type,schemaCode:T,schemaValue:T,parentSchema:S,params:{},it:y}}return Ll}var _O={},kbe;function HIt(){if(kbe)return _O;kbe=1,Object.defineProperty(_O,"__esModule",{value:!0}),_O.assignDefaults=void 0;const t=Mi(),e=ma();function r(i,a){const{properties:s,items:o}=i.schema;if(a==="object"&&s)for(const l in s)n(i,l,s[l].default);else a==="array"&&Array.isArray(o)&&o.forEach((l,u)=>n(i,u,l.default))}_O.assignDefaults=r;function n(i,a,s){const{gen:o,compositeRule:l,data:u,opts:d}=i;if(s===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(a)}`;if(l){(0,e.checkStrictMode)(i,`default is ignored for: ${h}`);return}let f=(0,t._)`${h} === undefined`;d.useDefaults==="empty"&&(f=(0,t._)`${f} || ${h} === null || ${h} === ""`),o.if(f,(0,t._)`${h} = ${(0,t.stringify)(s)}`)}return _O}var af={},Ua={},Dbe;function ap(){if(Dbe)return Ua;Dbe=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.validateUnion=Ua.validateArray=Ua.usePattern=Ua.callValidateCode=Ua.schemaProperties=Ua.allSchemaProperties=Ua.noPropertyInData=Ua.propertyInData=Ua.isOwnProperty=Ua.hasPropFunc=Ua.reportMissingProp=Ua.checkMissingProp=Ua.checkReportMissingProp=void 0;const t=Mi(),e=ma(),r=G1(),n=ma();function i(y,b){const{gen:E,data:S,it:T}=y;E.if(d(E,S,b,T.opts.ownProperties),()=>{y.setParams({missingProperty:(0,t._)`${b}`},!0),y.error()})}Ua.checkReportMissingProp=i;function a({gen:y,data:b,it:{opts:E}},S,T){return(0,t.or)(...S.map(C=>(0,t.and)(d(y,b,C,E.ownProperties),(0,t._)`${T} = ${C}`)))}Ua.checkMissingProp=a;function s(y,b){y.setParams({missingProperty:b},!0),y.error()}Ua.reportMissingProp=s;function o(y){return y.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Ua.hasPropFunc=o;function l(y,b,E){return(0,t._)`${o(y)}.call(${b}, ${E})`}Ua.isOwnProperty=l;function u(y,b,E,S){const T=(0,t._)`${b}${(0,t.getProperty)(E)} !== undefined`;return S?(0,t._)`${T} && ${l(y,b,E)}`:T}Ua.propertyInData=u;function d(y,b,E,S){const T=(0,t._)`${b}${(0,t.getProperty)(E)} === undefined`;return S?(0,t.or)(T,(0,t.not)(l(y,b,E))):T}Ua.noPropertyInData=d;function h(y){return y?Object.keys(y).filter(b=>b!=="__proto__"):[]}Ua.allSchemaProperties=h;function f(y,b){return h(b).filter(E=>!(0,e.alwaysValidSchema)(y,b[E]))}Ua.schemaProperties=f;function p({schemaCode:y,data:b,it:{gen:E,topSchemaRef:S,schemaPath:T,errorPath:C},it:x},A,R,I){const L=I?(0,t._)`${y}, ${b}, ${S}${T}`:b,F=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,C)],[r.default.parentData,x.parentData],[r.default.parentDataProperty,x.parentDataProperty],[r.default.rootData,r.default.rootData]];x.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const O=(0,t._)`${L}, ${E.object(...F)}`;return R!==t.nil?(0,t._)`${A}.call(${R}, ${O})`:(0,t._)`${A}(${O})`}Ua.callValidateCode=p;const g=(0,t._)`new RegExp`;function m({gen:y,it:{opts:b}},E){const S=b.unicodeRegExp?"u":"",{regExp:T}=b.code,C=T(E,S);return y.scopeValue("pattern",{key:C.toString(),ref:C,code:(0,t._)`${T.code==="new RegExp"?g:(0,n.useFunc)(y,T)}(${E}, ${S})`})}Ua.usePattern=m;function _(y){const{gen:b,data:E,keyword:S,it:T}=y,C=b.name("valid");if(T.allErrors){const A=b.let("valid",!0);return x(()=>b.assign(A,!1)),A}return b.var(C,!0),x(()=>b.break()),C;function x(A){const R=b.const("len",(0,t._)`${E}.length`);b.forRange("i",0,R,I=>{y.subschema({keyword:S,dataProp:I,dataPropType:e.Type.Num},C),b.if((0,t.not)(C),A)})}}Ua.validateArray=_;function v(y){const{gen:b,schema:E,keyword:S,it:T}=y;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(R=>(0,e.alwaysValidSchema)(T,R))&&!T.opts.unevaluated)return;const x=b.let("valid",!1),A=b.name("_valid");b.block(()=>E.forEach((R,I)=>{const L=y.subschema({keyword:S,schemaProp:I,compositeRule:!0},A);b.assign(x,(0,t._)`${x} || ${A}`),y.mergeValidEvaluated(L,A)||b.if((0,t.not)(x))})),y.result(x,()=>y.reset(),()=>y.error(!0))}return Ua.validateUnion=v,Ua}var Mbe;function YIt(){if(Mbe)return af;Mbe=1,Object.defineProperty(af,"__esModule",{value:!0}),af.validateKeywordUsage=af.validSchemaType=af.funcKeywordCode=af.macroKeywordCode=void 0;const t=Mi(),e=G1(),r=ap(),n=$B();function i(f,p){const{gen:g,keyword:m,schema:_,parentSchema:v,it:y}=f,b=p.macro.call(y.self,_,v,y),E=u(g,m,b);y.opts.validateSchema!==!1&&y.self.validateSchema(b,!0);const S=g.name("valid");f.subschema({schema:b,schemaPath:t.nil,errSchemaPath:`${y.errSchemaPath}/${m}`,topSchemaRef:E,compositeRule:!0},S),f.pass(S,()=>f.error(!0))}af.macroKeywordCode=i;function a(f,p){var g;const{gen:m,keyword:_,schema:v,parentSchema:y,$data:b,it:E}=f;l(E,p);const S=!b&&p.compile?p.compile.call(E.self,v,y,E):p.validate,T=u(m,_,S),C=m.let("valid");f.block$data(C,x),f.ok((g=p.valid)!==null&&g!==void 0?g:C);function x(){if(p.errors===!1)I(),p.modifying&&s(f),L(()=>f.error());else{const F=p.async?A():R();p.modifying&&s(f),L(()=>o(f,F))}}function A(){const F=m.let("ruleErrs",null);return m.try(()=>I((0,t._)`await `),O=>m.assign(C,!1).if((0,t._)`${O} instanceof ${E.ValidationError}`,()=>m.assign(F,(0,t._)`${O}.errors`),()=>m.throw(O))),F}function R(){const F=(0,t._)`${T}.errors`;return m.assign(F,null),I(t.nil),F}function I(F=p.async?(0,t._)`await `:t.nil){const O=E.opts.passContext?e.default.this:e.default.self,D=!("compile"in p&&!b||p.schema===!1);m.assign(C,(0,t._)`${F}${(0,r.callValidateCode)(f,T,O,D)}`,p.modifying)}function L(F){var O;m.if((0,t.not)((O=p.valid)!==null&&O!==void 0?O:C),F)}}af.funcKeywordCode=a;function s(f){const{gen:p,data:g,it:m}=f;p.if(m.parentData,()=>p.assign(g,(0,t._)`${m.parentData}[${m.parentDataProperty}]`))}function o(f,p){const{gen:g}=f;g.if((0,t._)`Array.isArray(${p})`,()=>{g.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${p} : ${e.default.vErrors}.concat(${p})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(f)},()=>f.error())}function l({schemaEnv:f},p){if(p.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,p,g){if(g===void 0)throw new Error(`keyword "${p}" failed to compile`);return f.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,t.stringify)(g)})}function d(f,p,g=!1){return!p.length||p.some(m=>m==="array"?Array.isArray(f):m==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==m||g&&typeof f>"u")}af.validSchemaType=d;function h({schema:f,opts:p,self:g,errSchemaPath:m},_,v){if(Array.isArray(_.keyword)?!_.keyword.includes(v):_.keyword!==v)throw new Error("ajv implementation error");const y=_.dependencies;if(y?.some(b=>!Object.prototype.hasOwnProperty.call(f,b)))throw new Error(`parent schema must have dependencies of ${v}: ${y.join(",")}`);if(_.validateSchema&&!_.validateSchema(f[v])){const E=`keyword "${v}" value is invalid at path "${m}": `+g.errorsText(_.validateSchema.errors);if(p.validateSchema==="log")g.logger.error(E);else throw new Error(E)}}return af.validateKeywordUsage=h,af}var em={},Lbe;function WIt(){if(Lbe)return em;Lbe=1,Object.defineProperty(em,"__esModule",{value:!0}),em.extendSubschemaMode=em.extendSubschemaData=em.getSubschema=void 0;const t=Mi(),e=ma();function r(a,{keyword:s,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:d,topSchemaRef:h}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const f=a.schema[s];return o===void 0?{schema:f,schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${s}`}:{schema:f[o],schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(s)}${(0,t.getProperty)(o)}`,errSchemaPath:`${a.errSchemaPath}/${s}/${(0,e.escapeFragment)(o)}`}}if(l!==void 0){if(u===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}em.getSubschema=r;function n(a,s,{dataProp:o,dataPropType:l,data:u,dataTypes:d,propertyName:h}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=s;if(o!==void 0){const{errorPath:g,dataPathArr:m,opts:_}=s,v=f.let("data",(0,t._)`${s.data}${(0,t.getProperty)(o)}`,!0);p(v),a.errorPath=(0,t.str)`${g}${(0,e.getErrorPath)(o,l,_.jsPropertySyntax)}`,a.parentDataProperty=(0,t._)`${o}`,a.dataPathArr=[...m,a.parentDataProperty]}if(u!==void 0){const g=u instanceof t.Name?u:f.let("data",u,!0);p(g),h!==void 0&&(a.propertyName=h)}d&&(a.dataTypes=d);function p(g){a.data=g,a.dataLevel=s.dataLevel+1,a.dataTypes=[],s.definedProperties=new Set,a.parentData=s.data,a.dataNames=[...s.dataNames,g]}}em.extendSubschemaData=n;function i(a,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:l,createErrors:u,allErrors:d}){l!==void 0&&(a.compositeRule=l),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=s,a.jtdMetadata=o}return em.extendSubschemaMode=i,em}var Uc={},aW={exports:{}},Pbe;function KIt(){if(Pbe)return aW.exports;Pbe=1;var t=aW.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var s=typeof a=="function"?a:a.pre||function(){},o=a.post||function(){};e(i,s,o,n,"",n)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(n,i,a,s,o,l,u,d,h,f){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,l,u,d,h,f);for(var p in s){var g=s[p];if(Array.isArray(g)){if(p in t.arrayKeywords)for(var m=0;m<g.length;m++)e(n,i,a,g[m],o+"/"+p+"/"+m,l,o,p,s,m)}else if(p in t.propsKeywords){if(g&&typeof g=="object")for(var _ in g)e(n,i,a,g[_],o+"/"+p+"/"+r(_),l,o,p,s,_)}else(p in t.keywords||n.allKeys&&!(p in t.skipKeywords))&&e(n,i,a,g,o+"/"+p,l,o,p,s)}a(s,o,l,u,d,h,f)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return aW.exports}var Fbe;function GB(){if(Fbe)return Uc;Fbe=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.getSchemaRefs=Uc.resolveUrl=Uc.normalizeId=Uc._getFullPath=Uc.getFullPath=Uc.inlineRef=void 0;const t=ma(),e=PB(),r=KIt(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(m,_=!0){return typeof m=="boolean"?!0:_===!0?!s(m):_?o(m)<=_:!1}Uc.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(m){for(const _ in m){if(a.has(_))return!0;const v=m[_];if(Array.isArray(v)&&v.some(s)||typeof v=="object"&&s(v))return!0}return!1}function o(m){let _=0;for(const v in m){if(v==="$ref")return 1/0;if(_++,!n.has(v)&&(typeof m[v]=="object"&&(0,t.eachItem)(m[v],y=>_+=o(y)),_===1/0))return 1/0}return _}function l(m,_="",v){v!==!1&&(_=h(_));const y=m.parse(_);return u(m,y)}Uc.getFullPath=l;function u(m,_){return m.serialize(_).split("#")[0]+"#"}Uc._getFullPath=u;const d=/#\/?$/;function h(m){return m?m.replace(d,""):""}Uc.normalizeId=h;function f(m,_,v){return v=h(v),m.resolve(_,v)}Uc.resolveUrl=f;const p=/^[a-z_][-a-z0-9._]*$/i;function g(m,_){if(typeof m=="boolean")return{};const{schemaId:v,uriResolver:y}=this.opts,b=h(m[v]||_),E={"":b},S=l(y,b,!1),T={},C=new Set;return r(m,{allKeys:!0},(R,I,L,F)=>{if(F===void 0)return;const O=S+I;let D=E[F];typeof R[v]=="string"&&(D=M.call(this,R[v])),P.call(this,R.$anchor),P.call(this,R.$dynamicAnchor),E[I]=D;function M(N){const $=this.opts.uriResolver.resolve;if(N=h(D?$(D,N):N),C.has(N))throw A(N);C.add(N);let U=this.refs[N];return typeof U=="string"&&(U=this.refs[U]),typeof U=="object"?x(R,U.schema,N):N!==h(O)&&(N[0]==="#"?(x(R,T[N],N),T[N]=R):this.refs[N]=O),N}function P(N){if(typeof N=="string"){if(!p.test(N))throw new Error(`invalid anchor "${N}"`);M.call(this,`#${N}`)}}}),T;function x(R,I,L){if(I!==void 0&&!e(R,I))throw A(L)}function A(R){return new Error(`reference "${R}" resolves to more than one schema`)}}return Uc.getSchemaRefs=g,Uc}var Bbe;function zB(){if(Bbe)return Zg;Bbe=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.getData=Zg.KeywordCxt=Zg.validateFunctionCode=void 0;const t=VIt(),e=K9(),r=_Me(),n=K9(),i=HIt(),a=YIt(),s=WIt(),o=Mi(),l=G1(),u=GB(),d=ma(),h=$B();function f(K){if(S(K)&&(C(K),E(K))){_(K);return}p(K,()=>(0,t.topBoolOrEmptySchema)(K))}Zg.validateFunctionCode=f;function p({gen:K,validateName:j,schema:se,schemaEnv:le,opts:_e},ye){_e.code.es5?K.func(j,(0,o._)`${l.default.data}, ${l.default.valCxt}`,le.$async,()=>{K.code((0,o._)`"use strict"; ${y(se,_e)}`),m(K,_e),K.code(ye)}):K.func(j,(0,o._)`${l.default.data}, ${g(_e)}`,le.$async,()=>K.code(y(se,_e)).code(ye))}function g(K){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${K.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function m(K,j){K.if(l.default.valCxt,()=>{K.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),K.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),K.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),K.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),j.dynamicRef&&K.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{K.var(l.default.instancePath,(0,o._)`""`),K.var(l.default.parentData,(0,o._)`undefined`),K.var(l.default.parentDataProperty,(0,o._)`undefined`),K.var(l.default.rootData,l.default.data),j.dynamicRef&&K.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function _(K){const{schema:j,opts:se,gen:le}=K;p(K,()=>{se.$comment&&j.$comment&&F(K),R(K),le.let(l.default.vErrors,null),le.let(l.default.errors,0),se.unevaluated&&v(K),x(K),O(K)})}function v(K){const{gen:j,validateName:se}=K;K.evaluated=j.const("evaluated",(0,o._)`${se}.evaluated`),j.if((0,o._)`${K.evaluated}.dynamicProps`,()=>j.assign((0,o._)`${K.evaluated}.props`,(0,o._)`undefined`)),j.if((0,o._)`${K.evaluated}.dynamicItems`,()=>j.assign((0,o._)`${K.evaluated}.items`,(0,o._)`undefined`))}function y(K,j){const se=typeof K=="object"&&K[j.schemaId];return se&&(j.code.source||j.code.process)?(0,o._)`/*# sourceURL=${se} */`:o.nil}function b(K,j){if(S(K)&&(C(K),E(K))){T(K,j);return}(0,t.boolOrEmptySchema)(K,j)}function E({schema:K,self:j}){if(typeof K=="boolean")return!K;for(const se in K)if(j.RULES.all[se])return!0;return!1}function S(K){return typeof K.schema!="boolean"}function T(K,j){const{schema:se,gen:le,opts:_e}=K;_e.$comment&&se.$comment&&F(K),I(K),L(K);const ye=le.const("_errs",l.default.errors);x(K,ye),le.var(j,(0,o._)`${ye} === ${l.default.errors}`)}function C(K){(0,d.checkUnknownRules)(K),A(K)}function x(K,j){if(K.opts.jtd)return M(K,[],!1,j);const se=(0,e.getSchemaTypes)(K.schema),le=(0,e.coerceAndCheckDataType)(K,se);M(K,se,!le,j)}function A(K){const{schema:j,errSchemaPath:se,opts:le,self:_e}=K;j.$ref&&le.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(j,_e.RULES)&&_e.logger.warn(`$ref: keywords ignored in schema at path "${se}"`)}function R(K){const{schema:j,opts:se}=K;j.default!==void 0&&se.useDefaults&&se.strictSchema&&(0,d.checkStrictMode)(K,"default is ignored in the schema root")}function I(K){const j=K.schema[K.opts.schemaId];j&&(K.baseId=(0,u.resolveUrl)(K.opts.uriResolver,K.baseId,j))}function L(K){if(K.schema.$async&&!K.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:K,schemaEnv:j,schema:se,errSchemaPath:le,opts:_e}){const ye=se.$comment;if(_e.$comment===!0)K.code((0,o._)`${l.default.self}.logger.log(${ye})`);else if(typeof _e.$comment=="function"){const Ue=(0,o.str)`${le}/$comment`,Se=K.scopeValue("root",{ref:j.root});K.code((0,o._)`${l.default.self}.opts.$comment(${ye}, ${Ue}, ${Se}.schema)`)}}function O(K){const{gen:j,schemaEnv:se,validateName:le,ValidationError:_e,opts:ye}=K;se.$async?j.if((0,o._)`${l.default.errors} === 0`,()=>j.return(l.default.data),()=>j.throw((0,o._)`new ${_e}(${l.default.vErrors})`)):(j.assign((0,o._)`${le}.errors`,l.default.vErrors),ye.unevaluated&&D(K),j.return((0,o._)`${l.default.errors} === 0`))}function D({gen:K,evaluated:j,props:se,items:le}){se instanceof o.Name&&K.assign((0,o._)`${j}.props`,se),le instanceof o.Name&&K.assign((0,o._)`${j}.items`,le)}function M(K,j,se,le){const{gen:_e,schema:ye,data:Ue,allErrors:Se,opts:be,self:ke}=K,{RULES:Ae}=ke;if(ye.$ref&&(be.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ye,Ae))){_e.block(()=>Q(K,"$ref",Ae.all.$ref.definition));return}be.jtd||N(K,j),_e.block(()=>{for(const Oe of Ae.rules)tt(Oe);tt(Ae.post)});function tt(Oe){(0,r.shouldUseGroup)(ye,Oe)&&(Oe.type?(_e.if((0,n.checkDataType)(Oe.type,Ue,be.strictNumbers)),P(K,Oe),j.length===1&&j[0]===Oe.type&&se&&(_e.else(),(0,n.reportTypeError)(K)),_e.endIf()):P(K,Oe),Se||_e.if((0,o._)`${l.default.errors} === ${le||0}`))}}function P(K,j){const{gen:se,schema:le,opts:{useDefaults:_e}}=K;_e&&(0,i.assignDefaults)(K,j.type),se.block(()=>{for(const ye of j.rules)(0,r.shouldUseRule)(le,ye)&&Q(K,ye.keyword,ye.definition,j.type)})}function N(K,j){K.schemaEnv.meta||!K.opts.strictTypes||($(K,j),K.opts.allowUnionTypes||U(K,j),B(K,K.dataTypes))}function $(K,j){if(j.length){if(!K.dataTypes.length){K.dataTypes=j;return}j.forEach(se=>{z(K.dataTypes,se)||Y(K,`type "${se}" not allowed by context "${K.dataTypes.join(",")}"`)}),G(K,j)}}function U(K,j){j.length>1&&!(j.length===2&&j.includes("null"))&&Y(K,"use allowUnionTypes to allow union type keyword")}function B(K,j){const se=K.self.RULES.all;for(const le in se){const _e=se[le];if(typeof _e=="object"&&(0,r.shouldUseRule)(K.schema,_e)){const{type:ye}=_e.definition;ye.length&&!ye.some(Ue=>V(j,Ue))&&Y(K,`missing type "${ye.join(",")}" for keyword "${le}"`)}}}function V(K,j){return K.includes(j)||j==="number"&&K.includes("integer")}function z(K,j){return K.includes(j)||j==="integer"&&K.includes("number")}function G(K,j){const se=[];for(const le of K.dataTypes)z(j,le)?se.push(le):j.includes("integer")&&le==="number"&&se.push("integer");K.dataTypes=se}function Y(K,j){const se=K.schemaEnv.baseId+K.errSchemaPath;j+=` at "${se}" (strictTypes)`,(0,d.checkStrictMode)(K,j,K.opts.strictTypes)}class W{constructor(j,se,le){if((0,a.validateKeywordUsage)(j,se,le),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=le,this.data=j.data,this.schema=j.schema[le],this.$data=se.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(j,this.schema,le,this.$data),this.schemaType=se.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=se,this.$data)this.schemaCode=j.gen.const("vSchema",re(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,se.schemaType,se.allowUndefined))throw new Error(`${le} value must be ${JSON.stringify(se.schemaType)}`);("code"in se?se.trackErrors:se.errors!==!1)&&(this.errsCount=j.gen.const("_errs",l.default.errors))}result(j,se,le){this.failResult((0,o.not)(j),se,le)}failResult(j,se,le){this.gen.if(j),le?le():this.error(),se?(this.gen.else(),se(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,se){this.failResult((0,o.not)(j),void 0,se)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:se}=this;this.fail((0,o._)`${se} !== undefined && (${(0,o.or)(this.invalid$data(),j)})`)}error(j,se,le){if(se){this.setParams(se),this._error(j,le),this.setParams({});return}this._error(j,le)}_error(j,se){(j?h.reportExtraError:h.reportError)(this,this.def.error,se)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(j){this.allErrors||this.gen.if(j)}setParams(j,se){se?Object.assign(this.params,j):this.params=j}block$data(j,se,le=o.nil){this.gen.block(()=>{this.check$data(j,le),se()})}check$data(j=o.nil,se=o.nil){if(!this.$data)return;const{gen:le,schemaCode:_e,schemaType:ye,def:Ue}=this;le.if((0,o.or)((0,o._)`${_e} === undefined`,se)),j!==o.nil&&le.assign(j,!0),(ye.length||Ue.validateSchema)&&(le.elseIf(this.invalid$data()),this.$dataError(),j!==o.nil&&le.assign(j,!1)),le.else()}invalid$data(){const{gen:j,schemaCode:se,schemaType:le,def:_e,it:ye}=this;return(0,o.or)(Ue(),Se());function Ue(){if(le.length){if(!(se instanceof o.Name))throw new Error("ajv implementation error");const be=Array.isArray(le)?le:[le];return(0,o._)`${(0,n.checkDataTypes)(be,se,ye.opts.strictNumbers,n.DataType.Wrong)}`}return o.nil}function Se(){if(_e.validateSchema){const be=j.scopeValue("validate$data",{ref:_e.validateSchema});return(0,o._)`!${be}(${se})`}return o.nil}}subschema(j,se){const le=(0,s.getSubschema)(this.it,j);(0,s.extendSubschemaData)(le,this.it,j),(0,s.extendSubschemaMode)(le,j);const _e={...this.it,...le,items:void 0,props:void 0};return b(_e,se),_e}mergeEvaluated(j,se){const{it:le,gen:_e}=this;le.opts.unevaluated&&(le.props!==!0&&j.props!==void 0&&(le.props=d.mergeEvaluated.props(_e,j.props,le.props,se)),le.items!==!0&&j.items!==void 0&&(le.items=d.mergeEvaluated.items(_e,j.items,le.items,se)))}mergeValidEvaluated(j,se){const{it:le,gen:_e}=this;if(le.opts.unevaluated&&(le.props!==!0||le.items!==!0))return _e.if(se,()=>this.mergeEvaluated(j,o.Name)),!0}}Zg.KeywordCxt=W;function Q(K,j,se,le){const _e=new W(K,se,j);"code"in se?se.code(_e,le):_e.$data&&se.validate?(0,a.funcKeywordCode)(_e,se):"macro"in se?(0,a.macroKeywordCode)(_e,se):(se.compile||se.validate)&&(0,a.funcKeywordCode)(_e,se)}const ie=/^\/(?:[^~]|~0|~1)*$/,Z=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(K,{dataLevel:j,dataNames:se,dataPathArr:le}){let _e,ye;if(K==="")return l.default.rootData;if(K[0]==="/"){if(!ie.test(K))throw new Error(`Invalid JSON-pointer: ${K}`);_e=K,ye=l.default.rootData}else{const ke=Z.exec(K);if(!ke)throw new Error(`Invalid JSON-pointer: ${K}`);const Ae=+ke[1];if(_e=ke[2],_e==="#"){if(Ae>=j)throw new Error(be("property/index",Ae));return le[j-Ae]}if(Ae>j)throw new Error(be("data",Ae));if(ye=se[j-Ae],!_e)return ye}let Ue=ye;const Se=_e.split("/");for(const ke of Se)ke&&(ye=(0,o._)`${ye}${(0,o.getProperty)((0,d.unescapeJsonPointer)(ke))}`,Ue=(0,o._)`${Ue} && ${ye}`);return Ue;function be(ke,Ae){return`Cannot access ${ke} ${Ae} levels up, current level is ${j}`}}return Zg.getData=re,Zg}var cM={},Ube;function Loe(){if(Ube)return cM;Ube=1,Object.defineProperty(cM,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return cM.default=t,cM}var uM={},$be;function qB(){if($be)return uM;$be=1,Object.defineProperty(uM,"__esModule",{value:!0});const t=GB();class e extends Error{constructor(n,i,a,s){super(s||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,t.resolveUrl)(n,i,a),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}return uM.default=e,uM}var _d={},Gbe;function Poe(){if(Gbe)return _d;Gbe=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.resolveSchema=_d.getCompilingSchema=_d.resolveRef=_d.compileSchema=_d.SchemaEnv=void 0;const t=Mi(),e=Loe(),r=G1(),n=GB(),i=ma(),a=zB();class s{constructor(v){var y;this.refs={},this.dynamicAnchors={};let b;typeof v.schema=="object"&&(b=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(y=v.baseId)!==null&&y!==void 0?y:(0,n.normalizeId)(b?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=b?.$async,this.refs={}}}_d.SchemaEnv=s;function o(_){const v=d.call(this,_);if(v)return v;const y=(0,n.getFullPath)(this.opts.uriResolver,_.root.baseId),{es5:b,lines:E}=this.opts.code,{ownProperties:S}=this.opts,T=new t.CodeGen(this.scope,{es5:b,lines:E,ownProperties:S});let C;_.$async&&(C=T.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const x=T.scopeName("validate");_.validateName=x;const A={gen:T,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:T.scopeValue("schema",this.opts.code.source===!0?{ref:_.schema,code:(0,t.stringify)(_.schema)}:{ref:_.schema}),validateName:x,ValidationError:C,schema:_.schema,schemaEnv:_,rootId:y,baseId:_.baseId||y,schemaPath:t.nil,errSchemaPath:_.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let R;try{this._compilations.add(_),(0,a.validateFunctionCode)(A),T.optimize(this.opts.code.optimize);const I=T.toString();R=`${T.scopeRefs(r.default.scope)}return ${I}`,this.opts.code.process&&(R=this.opts.code.process(R,_));const F=new Function(`${r.default.self}`,`${r.default.scope}`,R)(this,this.scope.get());if(this.scope.value(x,{ref:F}),F.errors=null,F.schema=_.schema,F.schemaEnv=_,_.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:x,validateCode:I,scopeValues:T._values}),this.opts.unevaluated){const{props:O,items:D}=A;F.evaluated={props:O instanceof t.Name?void 0:O,items:D instanceof t.Name?void 0:D,dynamicProps:O instanceof t.Name,dynamicItems:D instanceof t.Name},F.source&&(F.source.evaluated=(0,t.stringify)(F.evaluated))}return _.validate=F,_}catch(I){throw delete _.validate,delete _.validateName,R&&this.logger.error("Error compiling schema, function code:",R),I}finally{this._compilations.delete(_)}}_d.compileSchema=o;function l(_,v,y){var b;y=(0,n.resolveUrl)(this.opts.uriResolver,v,y);const E=_.refs[y];if(E)return E;let S=f.call(this,_,y);if(S===void 0){const T=(b=_.localRefs)===null||b===void 0?void 0:b[y],{schemaId:C}=this.opts;T&&(S=new s({schema:T,schemaId:C,root:_,baseId:v}))}if(S!==void 0)return _.refs[y]=u.call(this,S)}_d.resolveRef=l;function u(_){return(0,n.inlineRef)(_.schema,this.opts.inlineRefs)?_.schema:_.validate?_:o.call(this,_)}function d(_){for(const v of this._compilations)if(h(v,_))return v}_d.getCompilingSchema=d;function h(_,v){return _.schema===v.schema&&_.root===v.root&&_.baseId===v.baseId}function f(_,v){let y;for(;typeof(y=this.refs[v])=="string";)v=y;return y||this.schemas[v]||p.call(this,_,v)}function p(_,v){const y=this.opts.uriResolver.parse(v),b=(0,n._getFullPath)(this.opts.uriResolver,y);let E=(0,n.getFullPath)(this.opts.uriResolver,_.baseId,void 0);if(Object.keys(_.schema).length>0&&b===E)return m.call(this,y,_);const S=(0,n.normalizeId)(b),T=this.refs[S]||this.schemas[S];if(typeof T=="string"){const C=p.call(this,_,T);return typeof C?.schema!="object"?void 0:m.call(this,y,C)}if(typeof T?.schema=="object"){if(T.validate||o.call(this,T),S===(0,n.normalizeId)(v)){const{schema:C}=T,{schemaId:x}=this.opts,A=C[x];return A&&(E=(0,n.resolveUrl)(this.opts.uriResolver,E,A)),new s({schema:C,schemaId:x,root:_,baseId:E})}return m.call(this,y,T)}}_d.resolveSchema=p;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(_,{baseId:v,schema:y,root:b}){var E;if(((E=_.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const C of _.fragment.slice(1).split("/")){if(typeof y=="boolean")return;const x=y[(0,i.unescapeFragment)(C)];if(x===void 0)return;y=x;const A=typeof y=="object"&&y[this.opts.schemaId];!g.has(C)&&A&&(v=(0,n.resolveUrl)(this.opts.uriResolver,v,A))}let S;if(typeof y!="boolean"&&y.$ref&&!(0,i.schemaHasRulesButRef)(y,this.RULES)){const C=(0,n.resolveUrl)(this.opts.uriResolver,v,y.$ref);S=p.call(this,b,C)}const{schemaId:T}=this.opts;if(S=S||new s({schema:y,schemaId:T,root:b,baseId:v}),S.schema!==S.root.schema)return S}return _d}const jIt="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",XIt="Meta-schema for $data reference (JSON AnySchema extension proposal)",QIt="object",ZIt=["$data"],JIt={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},eNt=!1,tNt={$id:jIt,description:XIt,type:QIt,required:ZIt,properties:JIt,additionalProperties:eNt};var dM={},zbe;function rNt(){if(zbe)return dM;zbe=1,Object.defineProperty(dM,"__esModule",{value:!0});const t=hMe();return t.code='require("ajv/dist/runtime/uri").default',dM.default=t,dM}var qbe;function nNt(){return qbe||(qbe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=zB();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=Mi();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Loe(),i=qB(),a=mMe(),s=Poe(),o=Mi(),l=GB(),u=K9(),d=ma(),h=tNt,f=rNt(),p=(U,B)=>new RegExp(U,B);p.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function b(U){var B,V,z,G,Y,W,Q,ie,Z,re,K,j,se,le,_e,ye,Ue,Se,be,ke,Ae,tt,Oe,je,ct;const Fe=U.strict,Xe=(B=U.code)===null||B===void 0?void 0:B.optimize,et=Xe===!0||Xe===void 0?1:Xe||0,Ie=(z=(V=U.code)===null||V===void 0?void 0:V.regExp)!==null&&z!==void 0?z:p,we=(G=U.uriResolver)!==null&&G!==void 0?G:f.default;return{strictSchema:(W=(Y=U.strictSchema)!==null&&Y!==void 0?Y:Fe)!==null&&W!==void 0?W:!0,strictNumbers:(ie=(Q=U.strictNumbers)!==null&&Q!==void 0?Q:Fe)!==null&&ie!==void 0?ie:!0,strictTypes:(re=(Z=U.strictTypes)!==null&&Z!==void 0?Z:Fe)!==null&&re!==void 0?re:"log",strictTuples:(j=(K=U.strictTuples)!==null&&K!==void 0?K:Fe)!==null&&j!==void 0?j:"log",strictRequired:(le=(se=U.strictRequired)!==null&&se!==void 0?se:Fe)!==null&&le!==void 0?le:!1,code:U.code?{...U.code,optimize:et,regExp:Ie}:{optimize:et,regExp:Ie},loopRequired:(_e=U.loopRequired)!==null&&_e!==void 0?_e:y,loopEnum:(ye=U.loopEnum)!==null&&ye!==void 0?ye:y,meta:(Ue=U.meta)!==null&&Ue!==void 0?Ue:!0,messages:(Se=U.messages)!==null&&Se!==void 0?Se:!0,inlineRefs:(be=U.inlineRefs)!==null&&be!==void 0?be:!0,schemaId:(ke=U.schemaId)!==null&&ke!==void 0?ke:"$id",addUsedSchema:(Ae=U.addUsedSchema)!==null&&Ae!==void 0?Ae:!0,validateSchema:(tt=U.validateSchema)!==null&&tt!==void 0?tt:!0,validateFormats:(Oe=U.validateFormats)!==null&&Oe!==void 0?Oe:!0,unicodeRegExp:(je=U.unicodeRegExp)!==null&&je!==void 0?je:!0,int32range:(ct=U.int32range)!==null&&ct!==void 0?ct:!0,uriResolver:we}}class E{constructor(B={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,B=this.opts={...B,...b(B)};const{es5:V,lines:z}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:m,es5:V,lines:z}),this.logger=L(B.logger);const G=B.validateFormats;B.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,_,B,"NOT SUPPORTED"),S.call(this,v,B,"DEPRECATED","warn"),this._metaOpts=R.call(this),B.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),B.keywords&&A.call(this,B.keywords),typeof B.meta=="object"&&this.addMetaSchema(B.meta),C.call(this),B.validateFormats=G}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:B,meta:V,schemaId:z}=this.opts;let G=h;z==="id"&&(G={...h},G.id=G.$id,delete G.$id),V&&B&&this.addMetaSchema(G,G[z],!1)}defaultMeta(){const{meta:B,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof B=="object"?B[V]||B:void 0}validate(B,V){let z;if(typeof B=="string"){if(z=this.getSchema(B),!z)throw new Error(`no schema with key or ref "${B}"`)}else z=this.compile(B);const G=z(V);return"$async"in z||(this.errors=z.errors),G}compile(B,V){const z=this._addSchema(B,V);return z.validate||this._compileSchemaEnv(z)}compileAsync(B,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return G.call(this,B,V);async function G(re,K){await Y.call(this,re.$schema);const j=this._addSchema(re,K);return j.validate||W.call(this,j)}async function Y(re){re&&!this.getSchema(re)&&await G.call(this,{$ref:re},!0)}async function W(re){try{return this._compileSchemaEnv(re)}catch(K){if(!(K instanceof i.default))throw K;return Q.call(this,K),await ie.call(this,K.missingSchema),W.call(this,re)}}function Q({missingSchema:re,missingRef:K}){if(this.refs[re])throw new Error(`AnySchema ${re} is loaded but ${K} cannot be resolved`)}async function ie(re){const K=await Z.call(this,re);this.refs[re]||await Y.call(this,K.$schema),this.refs[re]||this.addSchema(K,re,V)}async function Z(re){const K=this._loading[re];if(K)return K;try{return await(this._loading[re]=z(re))}finally{delete this._loading[re]}}}addSchema(B,V,z,G=this.opts.validateSchema){if(Array.isArray(B)){for(const W of B)this.addSchema(W,void 0,z,G);return this}let Y;if(typeof B=="object"){const{schemaId:W}=this.opts;if(Y=B[W],Y!==void 0&&typeof Y!="string")throw new Error(`schema ${W} must be string`)}return V=(0,l.normalizeId)(V||Y),this._checkUnique(V),this.schemas[V]=this._addSchema(B,z,V,G,!0),this}addMetaSchema(B,V,z=this.opts.validateSchema){return this.addSchema(B,V,!0,z),this}validateSchema(B,V){if(typeof B=="boolean")return!0;let z;if(z=B.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const G=this.validate(z,B);if(!G&&V){const Y="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Y);else throw new Error(Y)}return G}getSchema(B){let V;for(;typeof(V=T.call(this,B))=="string";)B=V;if(V===void 0){const{schemaId:z}=this.opts,G=new s.SchemaEnv({schema:{},schemaId:z});if(V=s.resolveSchema.call(this,G,B),!V)return;this.refs[B]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(B){if(B instanceof RegExp)return this._removeAllSchemas(this.schemas,B),this._removeAllSchemas(this.refs,B),this;switch(typeof B){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=T.call(this,B);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[B],delete this.refs[B],this}case"object":{const V=B;this._cache.delete(V);let z=B[this.opts.schemaId];return z&&(z=(0,l.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(B){for(const V of B)this.addKeyword(V);return this}addKeyword(B,V){let z;if(typeof B=="string")z=B,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=z);else if(typeof B=="object"&&V===void 0){if(V=B,z=V.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,z,V),!V)return(0,d.eachItem)(z,Y=>D.call(this,Y)),this;P.call(this,V);const G={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,d.eachItem)(z,G.type.length===0?Y=>D.call(this,Y,G):Y=>G.type.forEach(W=>D.call(this,Y,G,W))),this}getKeyword(B){const V=this.RULES.all[B];return typeof V=="object"?V.definition:!!V}removeKeyword(B){const{RULES:V}=this;delete V.keywords[B],delete V.all[B];for(const z of V.rules){const G=z.rules.findIndex(Y=>Y.keyword===B);G>=0&&z.rules.splice(G,1)}return this}addFormat(B,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[B]=V,this}errorsText(B=this.errors,{separator:V=", ",dataVar:z="data"}={}){return!B||B.length===0?"No errors":B.map(G=>`${z}${G.instancePath} ${G.message}`).reduce((G,Y)=>G+V+Y)}$dataMetaSchema(B,V){const z=this.RULES.all;B=JSON.parse(JSON.stringify(B));for(const G of V){const Y=G.split("/").slice(1);let W=B;for(const Q of Y)W=W[Q];for(const Q in z){const ie=z[Q];if(typeof ie!="object")continue;const{$data:Z}=ie.definition,re=W[Q];Z&&re&&(W[Q]=$(re))}}return B}_removeAllSchemas(B,V){for(const z in B){const G=B[z];(!V||V.test(z))&&(typeof G=="string"?delete B[z]:G&&!G.meta&&(this._cache.delete(G.schema),delete B[z]))}}_addSchema(B,V,z,G=this.opts.validateSchema,Y=this.opts.addUsedSchema){let W;const{schemaId:Q}=this.opts;if(typeof B=="object")W=B[Q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof B!="boolean")throw new Error("schema must be object or boolean")}let ie=this._cache.get(B);if(ie!==void 0)return ie;z=(0,l.normalizeId)(W||z);const Z=l.getSchemaRefs.call(this,B,z);return ie=new s.SchemaEnv({schema:B,schemaId:Q,meta:V,baseId:z,localRefs:Z}),this._cache.set(ie.schema,ie),Y&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=ie),G&&this.validateSchema(B,!0),ie}_checkUnique(B){if(this.schemas[B]||this.refs[B])throw new Error(`schema with key or id "${B}" already exists`)}_compileSchemaEnv(B){if(B.meta?this._compileMetaSchema(B):s.compileSchema.call(this,B),!B.validate)throw new Error("ajv implementation error");return B.validate}_compileMetaSchema(B){const V=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,B)}finally{this.opts=V}}}E.ValidationError=n.default,E.MissingRefError=i.default,t.default=E;function S(U,B,V,z="error"){for(const G in U){const Y=G;Y in B&&this.logger[z](`${V}: option ${G}. ${U[Y]}`)}}function T(U){return U=(0,l.normalizeId)(U),this.schemas[U]||this.refs[U]}function C(){const U=this.opts.schemas;if(U)if(Array.isArray(U))this.addSchema(U);else for(const B in U)this.addSchema(U[B],B)}function x(){for(const U in this.opts.formats){const B=this.opts.formats[U];B&&this.addFormat(U,B)}}function A(U){if(Array.isArray(U)){this.addVocabulary(U);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const B in U){const V=U[B];V.keyword||(V.keyword=B),this.addKeyword(V)}}function R(){const U={...this.opts};for(const B of g)delete U[B];return U}const I={log(){},warn(){},error(){}};function L(U){if(U===!1)return I;if(U===void 0)return console;if(U.log&&U.warn&&U.error)return U;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function O(U,B){const{RULES:V}=this;if((0,d.eachItem)(U,z=>{if(V.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!F.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!B&&B.$data&&!("code"in B||"validate"in B))throw new Error('$data keyword must have "code" or "validate" function')}function D(U,B,V){var z;const G=B?.post;if(V&&G)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Y}=this;let W=G?Y.post:Y.rules.find(({type:ie})=>ie===V);if(W||(W={type:V,rules:[]},Y.rules.push(W)),Y.keywords[U]=!0,!B)return;const Q={keyword:U,definition:{...B,type:(0,u.getJSONTypes)(B.type),schemaType:(0,u.getJSONTypes)(B.schemaType)}};B.before?M.call(this,W,Q,B.before):W.rules.push(Q),Y.all[U]=Q,(z=B.implements)===null||z===void 0||z.forEach(ie=>this.addKeyword(ie))}function M(U,B,V){const z=U.rules.findIndex(G=>G.keyword===V);z>=0?U.rules.splice(z,0,B):(U.rules.push(B),this.logger.warn(`rule ${V} is not defined`))}function P(U){let{metaSchema:B}=U;B!==void 0&&(U.$data&&this.opts.$data&&(B=$(B)),U.validateSchema=this.compile(B,!0))}const N={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function $(U){return{anyOf:[U,N]}}})(eW)),eW}var hM={},fM={},pM={},Vbe;function iNt(){if(Vbe)return pM;Vbe=1,Object.defineProperty(pM,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return pM.default=t,pM}var i_={},Hbe;function aNt(){if(Hbe)return i_;Hbe=1,Object.defineProperty(i_,"__esModule",{value:!0}),i_.callRef=i_.getValidate=void 0;const t=qB(),e=ap(),r=Mi(),n=G1(),i=Poe(),a=ma(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:h,it:f}=u,{baseId:p,schemaEnv:g,validateName:m,opts:_,self:v}=f,{root:y}=g;if((h==="#"||h==="#/")&&p===y.baseId)return E();const b=i.resolveRef.call(v,y,p,h);if(b===void 0)throw new t.default(f.opts.uriResolver,p,h);if(b instanceof i.SchemaEnv)return S(b);return T(b);function E(){if(g===y)return l(u,m,g,g.$async);const C=d.scopeValue("root",{ref:y});return l(u,(0,r._)`${C}.validate`,y,y.$async)}function S(C){const x=o(u,C);l(u,x,C,C.$async)}function T(C){const x=d.scopeValue("schema",_.code.source===!0?{ref:C,code:(0,r.stringify)(C)}:{ref:C}),A=d.name("valid"),R=u.subschema({schema:C,dataTypes:[],schemaPath:r.nil,topSchemaRef:x,errSchemaPath:h},A);u.mergeEvaluated(R),u.ok(A)}}};function o(u,d){const{gen:h}=u;return d.validate?h.scopeValue("validate",{ref:d.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:d})}.validate`}i_.getValidate=o;function l(u,d,h,f){const{gen:p,it:g}=u,{allErrors:m,schemaEnv:_,opts:v}=g,y=v.passContext?n.default.this:r.nil;f?b():E();function b(){if(!_.$async)throw new Error("async schema referenced by sync schema");const C=p.let("valid");p.try(()=>{p.code((0,r._)`await ${(0,e.callValidateCode)(u,d,y)}`),T(d),m||p.assign(C,!0)},x=>{p.if((0,r._)`!(${x} instanceof ${g.ValidationError})`,()=>p.throw(x)),S(x),m||p.assign(C,!1)}),u.ok(C)}function E(){u.result((0,e.callValidateCode)(u,d,y),()=>T(d),()=>S(d))}function S(C){const x=(0,r._)`${C}.errors`;p.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${x} : ${n.default.vErrors}.concat(${x})`),p.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function T(C){var x;if(!g.opts.unevaluated)return;const A=(x=h?.validate)===null||x===void 0?void 0:x.evaluated;if(g.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(g.props=a.mergeEvaluated.props(p,A.props,g.props));else{const R=p.var("props",(0,r._)`${C}.evaluated.props`);g.props=a.mergeEvaluated.props(p,R,g.props,r.Name)}if(g.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(g.items=a.mergeEvaluated.items(p,A.items,g.items));else{const R=p.var("items",(0,r._)`${C}.evaluated.items`);g.items=a.mergeEvaluated.items(p,R,g.items,r.Name)}}}return i_.callRef=l,i_.default=s,i_}var Ybe;function sNt(){if(Ybe)return fM;Ybe=1,Object.defineProperty(fM,"__esModule",{value:!0});const t=iNt(),e=aNt(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return fM.default=r,fM}var gM={},mM={},Wbe;function oNt(){if(Wbe)return mM;Wbe=1,Object.defineProperty(mM,"__esModule",{value:!0});const t=Mi(),e=t.operators,r={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},n={message:({keyword:a,schemaCode:s})=>(0,t.str)`must be ${r[a].okStr} ${s}`,params:({keyword:a,schemaCode:s})=>(0,t._)`{comparison: ${r[a].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:s,data:o,schemaCode:l}=a;a.fail$data((0,t._)`${o} ${r[s].fail} ${l} || isNaN(${o})`)}};return mM.default=i,mM}var _M={},Kbe;function lNt(){if(Kbe)return _M;Kbe=1,Object.defineProperty(_M,"__esModule",{value:!0});const t=Mi(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,t._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:s,it:o}=n,l=o.opts.multipleOfPrecision,u=i.let("res"),d=l?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,t._)`${u} !== parseInt(${u})`;n.fail$data((0,t._)`(${s} === 0 || (${u} = ${a}/${s}, ${d}))`)}};return _M.default=r,_M}var vM={},yM={},jbe;function cNt(){if(jbe)return yM;jbe=1,Object.defineProperty(yM,"__esModule",{value:!0});function t(e){const r=e.length;let n=0,i=0,a;for(;i<r;)n++,a=e.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=e.charCodeAt(i),(a&64512)===56320&&i++);return n}return yM.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',yM}var Xbe;function uNt(){if(Xbe)return vM;Xbe=1,Object.defineProperty(vM,"__esModule",{value:!0});const t=Mi(),e=ma(),r=cNt(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:s}){const o=a==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:s,data:o,schemaCode:l,it:u}=a,d=s==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${o}.length`:(0,t._)`${(0,e.useFunc)(a.gen,r.default)}(${o})`;a.fail$data((0,t._)`${h} ${d} ${l}`)}};return vM.default=i,vM}var bM={},Qbe;function dNt(){if(Qbe)return bM;Qbe=1,Object.defineProperty(bM,"__esModule",{value:!0});const t=ap(),e=ma(),r=Mi(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,r.str)`must match pattern "${a}"`,params:({schemaCode:a})=>(0,r._)`{pattern: ${a}}`},code(a){const{gen:s,data:o,$data:l,schema:u,schemaCode:d,it:h}=a,f=h.opts.unicodeRegExp?"u":"";if(l){const{regExp:p}=h.opts.code,g=p.code==="new RegExp"?(0,r._)`new RegExp`:(0,e.useFunc)(s,p),m=s.let("valid");s.try(()=>s.assign(m,(0,r._)`${g}(${d}, ${f}).test(${o})`),()=>s.assign(m,!1)),a.fail$data((0,r._)`!${m}`)}else{const p=(0,t.usePattern)(a,u);a.fail$data((0,r._)`!${p}.test(${o})`)}}};return bM.default=i,bM}var EM={},Zbe;function hNt(){if(Zbe)return EM;Zbe=1,Object.defineProperty(EM,"__esModule",{value:!0});const t=Mi(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxProperties"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`Object.keys(${a}).length ${o} ${s}`)}};return EM.default=r,EM}var SM={},Jbe;function fNt(){if(Jbe)return SM;Jbe=1,Object.defineProperty(SM,"__esModule",{value:!0});const t=ap(),e=Mi(),r=ma(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,e.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,e._)`{missingProperty: ${a}}`},code(a){const{gen:s,schema:o,schemaCode:l,data:u,$data:d,it:h}=a,{opts:f}=h;if(!d&&o.length===0)return;const p=o.length>=f.loopRequired;if(h.allErrors?g():m(),f.strictRequired){const y=a.parentSchema.properties,{definedProperties:b}=a.it;for(const E of o)if(y?.[E]===void 0&&!b.has(E)){const S=h.schemaEnv.baseId+h.errSchemaPath,T=`required property "${E}" is not defined at "${S}" (strictRequired)`;(0,r.checkStrictMode)(h,T,h.opts.strictRequired)}}function g(){if(p||d)a.block$data(e.nil,_);else for(const y of o)(0,t.checkReportMissingProp)(a,y)}function m(){const y=s.let("missing");if(p||d){const b=s.let("valid",!0);a.block$data(b,()=>v(y,b)),a.ok(b)}else s.if((0,t.checkMissingProp)(a,o,y)),(0,t.reportMissingProp)(a,y),s.else()}function _(){s.forOf("prop",l,y=>{a.setParams({missingProperty:y}),s.if((0,t.noPropertyInData)(s,u,y,f.ownProperties),()=>a.error())})}function v(y,b){a.setParams({missingProperty:y}),s.forOf(y,l,()=>{s.assign(b,(0,t.propertyInData)(s,u,y,f.ownProperties)),s.if((0,e.not)(b),()=>{a.error(),s.break()})},e.nil)}}};return SM.default=i,SM}var TM={},eEe;function pNt(){if(eEe)return TM;eEe=1,Object.defineProperty(TM,"__esModule",{value:!0});const t=Mi(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxItems"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`${a}.length ${o} ${s}`)}};return TM.default=r,TM}var CM={},wM={},tEe;function Foe(){if(tEe)return wM;tEe=1,Object.defineProperty(wM,"__esModule",{value:!0});const t=PB();return t.code='require("ajv/dist/runtime/equal").default',wM.default=t,wM}var rEe;function gNt(){if(rEe)return CM;rEe=1,Object.defineProperty(CM,"__esModule",{value:!0});const t=K9(),e=Mi(),r=ma(),n=Foe(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,e.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,e._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:l,$data:u,schema:d,parentSchema:h,schemaCode:f,it:p}=s;if(!u&&!d)return;const g=o.let("valid"),m=h.items?(0,t.getSchemaTypes)(h.items):[];s.block$data(g,_,(0,e._)`${f} === false`),s.ok(g);function _(){const E=o.let("i",(0,e._)`${l}.length`),S=o.let("j");s.setParams({i:E,j:S}),o.assign(g,!0),o.if((0,e._)`${E} > 1`,()=>(v()?y:b)(E,S))}function v(){return m.length>0&&!m.some(E=>E==="object"||E==="array")}function y(E,S){const T=o.name("item"),C=(0,t.checkDataTypes)(m,T,p.opts.strictNumbers,t.DataType.Wrong),x=o.const("indices",(0,e._)`{}`);o.for((0,e._)`;${E}--;`,()=>{o.let(T,(0,e._)`${l}[${E}]`),o.if(C,(0,e._)`continue`),m.length>1&&o.if((0,e._)`typeof ${T} == "string"`,(0,e._)`${T} += "_"`),o.if((0,e._)`typeof ${x}[${T}] == "number"`,()=>{o.assign(S,(0,e._)`${x}[${T}]`),s.error(),o.assign(g,!1).break()}).code((0,e._)`${x}[${T}] = ${E}`)})}function b(E,S){const T=(0,r.useFunc)(o,n.default),C=o.name("outer");o.label(C).for((0,e._)`;${E}--;`,()=>o.for((0,e._)`${S} = ${E}; ${S}--;`,()=>o.if((0,e._)`${T}(${l}[${E}], ${l}[${S}])`,()=>{s.error(),o.assign(g,!1).break(C)})))}}};return CM.default=a,CM}var xM={},nEe;function mNt(){if(nEe)return xM;nEe=1,Object.defineProperty(xM,"__esModule",{value:!0});const t=Mi(),e=ma(),r=Foe(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,t._)`{allowedValue: ${a}}`},code(a){const{gen:s,data:o,$data:l,schemaCode:u,schema:d}=a;l||d&&typeof d=="object"?a.fail$data((0,t._)`!${(0,e.useFunc)(s,r.default)}(${o}, ${u})`):a.fail((0,t._)`${d} !== ${o}`)}};return xM.default=i,xM}var AM={},iEe;function _Nt(){if(iEe)return AM;iEe=1,Object.defineProperty(AM,"__esModule",{value:!0});const t=Mi(),e=ma(),r=Foe(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,t._)`{allowedValues: ${a}}`},code(a){const{gen:s,data:o,$data:l,schema:u,schemaCode:d,it:h}=a;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=h.opts.loopEnum;let p;const g=()=>p??(p=(0,e.useFunc)(s,r.default));let m;if(f||l)m=s.let("valid"),a.block$data(m,_);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const y=s.const("vSchema",d);m=(0,t.or)(...u.map((b,E)=>v(y,E)))}a.pass(m);function _(){s.assign(m,!1),s.forOf("v",d,y=>s.if((0,t._)`${g()}(${o}, ${y})`,()=>s.assign(m,!0).break()))}function v(y,b){const E=u[b];return typeof E=="object"&&E!==null?(0,t._)`${g()}(${o}, ${y}[${b}])`:(0,t._)`${o} === ${E}`}}};return AM.default=i,AM}var aEe;function vNt(){if(aEe)return gM;aEe=1,Object.defineProperty(gM,"__esModule",{value:!0});const t=oNt(),e=lNt(),r=uNt(),n=dNt(),i=hNt(),a=fNt(),s=pNt(),o=gNt(),l=mNt(),u=_Nt(),d=[t.default,e.default,r.default,n.default,i.default,a.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return gM.default=d,gM}var RM={},nS={},sEe;function vMe(){if(sEe)return nS;sEe=1,Object.defineProperty(nS,"__esModule",{value:!0}),nS.validateAdditionalItems=void 0;const t=Mi(),e=ma(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,t.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,t._)`{limit: ${a}}`},code(a){const{parentSchema:s,it:o}=a,{items:l}=s;if(!Array.isArray(l)){(0,e.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,l)}};function i(a,s){const{gen:o,schema:l,data:u,keyword:d,it:h}=a;h.items=!0;const f=o.const("len",(0,t._)`${u}.length`);if(l===!1)a.setParams({len:s.length}),a.pass((0,t._)`${f} <= ${s.length}`);else if(typeof l=="object"&&!(0,e.alwaysValidSchema)(h,l)){const g=o.var("valid",(0,t._)`${f} <= ${s.length}`);o.if((0,t.not)(g),()=>p(g)),a.ok(g)}function p(g){o.forRange("i",s.length,f,m=>{a.subschema({keyword:d,dataProp:m,dataPropType:e.Type.Num},g),h.allErrors||o.if((0,t.not)(g),()=>o.break())})}}return nS.validateAdditionalItems=i,nS.default=n,nS}var OM={},iS={},oEe;function yMe(){if(oEe)return iS;oEe=1,Object.defineProperty(iS,"__esModule",{value:!0}),iS.validateTuple=void 0;const t=Mi(),e=ma(),r=ap(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:s,it:o}=a;if(Array.isArray(s))return i(a,"additionalItems",s);o.items=!0,!(0,e.alwaysValidSchema)(o,s)&&a.ok((0,r.validateArray)(a))}};function i(a,s,o=a.schema){const{gen:l,parentSchema:u,data:d,keyword:h,it:f}=a;m(u),f.opts.unevaluated&&o.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(l,o.length,f.items));const p=l.name("valid"),g=l.const("len",(0,t._)`${d}.length`);o.forEach((_,v)=>{(0,e.alwaysValidSchema)(f,_)||(l.if((0,t._)`${g} > ${v}`,()=>a.subschema({keyword:h,schemaProp:v,dataProp:v},p)),a.ok(p))});function m(_){const{opts:v,errSchemaPath:y}=f,b=o.length,E=b===_.minItems&&(b===_.maxItems||_[s]===!1);if(v.strictTuples&&!E){const S=`"${h}" is ${b}-tuple, but minItems or maxItems/${s} are not specified or different at path "${y}"`;(0,e.checkStrictMode)(f,S,v.strictTuples)}}}return iS.validateTuple=i,iS.default=n,iS}var lEe;function yNt(){if(lEe)return OM;lEe=1,Object.defineProperty(OM,"__esModule",{value:!0});const t=yMe(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,t.validateTuple)(r,"items")};return OM.default=e,OM}var IM={},cEe;function bNt(){if(cEe)return IM;cEe=1,Object.defineProperty(IM,"__esModule",{value:!0});const t=Mi(),e=ma(),r=ap(),n=vMe(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,t.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,t._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:l,it:u}=s,{prefixItems:d}=l;u.items=!0,!(0,e.alwaysValidSchema)(u,o)&&(d?(0,n.validateAdditionalItems)(s,d):s.ok((0,r.validateArray)(s)))}};return IM.default=a,IM}var NM={},uEe;function ENt(){if(uEe)return NM;uEe=1,Object.defineProperty(NM,"__esModule",{value:!0});const t=Mi(),e=ma(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,t.str)`must contain at least ${i} valid item(s)`:(0,t.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,t._)`{minContains: ${i}}`:(0,t._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:s,parentSchema:o,data:l,it:u}=i;let d,h;const{minContains:f,maxContains:p}=o;u.opts.next?(d=f===void 0?1:f,h=p):d=1;const g=a.const("len",(0,t._)`${l}.length`);if(i.setParams({min:d,max:h}),h===void 0&&d===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&d>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,e.alwaysValidSchema)(u,s)){let b=(0,t._)`${g} >= ${d}`;h!==void 0&&(b=(0,t._)`${b} && ${g} <= ${h}`),i.pass(b);return}u.items=!0;const m=a.name("valid");h===void 0&&d===1?v(m,()=>a.if(m,()=>a.break())):d===0?(a.let(m,!0),h!==void 0&&a.if((0,t._)`${l}.length > 0`,_)):(a.let(m,!1),_()),i.result(m,()=>i.reset());function _(){const b=a.name("_valid"),E=a.let("count",0);v(b,()=>a.if(b,()=>y(E)))}function v(b,E){a.forRange("i",0,g,S=>{i.subschema({keyword:"contains",dataProp:S,dataPropType:e.Type.Num,compositeRule:!0},b),E()})}function y(b){a.code((0,t._)`${b}++`),h===void 0?a.if((0,t._)`${b} >= ${d}`,()=>a.assign(m,!0).break()):(a.if((0,t._)`${b} > ${h}`,()=>a.assign(m,!1).break()),d===1?a.assign(m,!0):a.if((0,t._)`${b} >= ${d}`,()=>a.assign(m,!0)))}}};return NM.default=n,NM}var sW={},dEe;function SNt(){return dEe||(dEe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=Mi(),r=ma(),n=ap();t.error={message:({params:{property:l,depsCount:u,deps:d}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${d} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:d,missingProperty:h}})=>(0,e._)`{property: ${l},
    missingProperty: ${h},
    depsCount: ${u},
    deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(l){const[u,d]=a(l);s(l,u),o(l,d)}};function a({schema:l}){const u={},d={};for(const h in l){if(h==="__proto__")continue;const f=Array.isArray(l[h])?u:d;f[h]=l[h]}return[u,d]}function s(l,u=l.schema){const{gen:d,data:h,it:f}=l;if(Object.keys(u).length===0)return;const p=d.let("missing");for(const g in u){const m=u[g];if(m.length===0)continue;const _=(0,n.propertyInData)(d,h,g,f.opts.ownProperties);l.setParams({property:g,depsCount:m.length,deps:m.join(", ")}),f.allErrors?d.if(_,()=>{for(const v of m)(0,n.checkReportMissingProp)(l,v)}):(d.if((0,e._)`${_} && (${(0,n.checkMissingProp)(l,m,p)})`),(0,n.reportMissingProp)(l,p),d.else())}}t.validatePropertyDeps=s;function o(l,u=l.schema){const{gen:d,data:h,keyword:f,it:p}=l,g=d.name("valid");for(const m in u)(0,r.alwaysValidSchema)(p,u[m])||(d.if((0,n.propertyInData)(d,h,m,p.opts.ownProperties),()=>{const _=l.subschema({keyword:f,schemaProp:m},g);l.mergeValidEvaluated(_,g)},()=>d.var(g,!0)),l.ok(g))}t.validateSchemaDeps=o,t.default=i})(sW)),sW}var kM={},hEe;function TNt(){if(hEe)return kM;hEe=1,Object.defineProperty(kM,"__esModule",{value:!0});const t=Mi(),e=ma(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,t._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:s,data:o,it:l}=i;if((0,e.alwaysValidSchema)(l,s))return;const u=a.name("valid");a.forIn("key",o,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),a.if((0,t.not)(u),()=>{i.error(!0),l.allErrors||a.break()})}),i.ok(u)}};return kM.default=n,kM}var DM={},fEe;function bMe(){if(fEe)return DM;fEe=1,Object.defineProperty(DM,"__esModule",{value:!0});const t=ap(),e=Mi(),r=G1(),n=ma(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:u,data:d,errsCount:h,it:f}=s;if(!h)throw new Error("ajv implementation error");const{allErrors:p,opts:g}=f;if(f.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(f,l))return;const m=(0,t.allSchemaProperties)(u.properties),_=(0,t.allSchemaProperties)(u.patternProperties);v(),s.ok((0,e._)`${h} === ${r.default.errors}`);function v(){o.forIn("key",d,T=>{!m.length&&!_.length?E(T):o.if(y(T),()=>E(T))})}function y(T){let C;if(m.length>8){const x=(0,n.schemaRefOrVal)(f,u.properties,"properties");C=(0,t.isOwnProperty)(o,x,T)}else m.length?C=(0,e.or)(...m.map(x=>(0,e._)`${T} === ${x}`)):C=e.nil;return _.length&&(C=(0,e.or)(C,..._.map(x=>(0,e._)`${(0,t.usePattern)(s,x)}.test(${T})`))),(0,e.not)(C)}function b(T){o.code((0,e._)`delete ${d}[${T}]`)}function E(T){if(g.removeAdditional==="all"||g.removeAdditional&&l===!1){b(T);return}if(l===!1){s.setParams({additionalProperty:T}),s.error(),p||o.break();return}if(typeof l=="object"&&!(0,n.alwaysValidSchema)(f,l)){const C=o.name("valid");g.removeAdditional==="failing"?(S(T,C,!1),o.if((0,e.not)(C),()=>{s.reset(),b(T)})):(S(T,C),p||o.if((0,e.not)(C),()=>o.break()))}}function S(T,C,x){const A={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};x===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(A,C)}}};return DM.default=a,DM}var MM={},pEe;function CNt(){if(pEe)return MM;pEe=1,Object.defineProperty(MM,"__esModule",{value:!0});const t=zB(),e=ap(),r=ma(),n=bMe(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,parentSchema:l,data:u,it:d}=a;d.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(d,n.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(o);for(const _ of h)d.definedProperties.add(_);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(s,(0,r.toHash)(h),d.props));const f=h.filter(_=>!(0,r.alwaysValidSchema)(d,o[_]));if(f.length===0)return;const p=s.name("valid");for(const _ of f)g(_)?m(_):(s.if((0,e.propertyInData)(s,u,_,d.opts.ownProperties)),m(_),d.allErrors||s.else().var(p,!0),s.endIf()),a.it.definedProperties.add(_),a.ok(p);function g(_){return d.opts.useDefaults&&!d.compositeRule&&o[_].default!==void 0}function m(_){a.subschema({keyword:"properties",schemaProp:_,dataProp:_},p)}}};return MM.default=i,MM}var LM={},gEe;function wNt(){if(gEe)return LM;gEe=1,Object.defineProperty(LM,"__esModule",{value:!0});const t=ap(),e=Mi(),r=ma(),n=ma(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,data:l,parentSchema:u,it:d}=a,{opts:h}=d,f=(0,t.allSchemaProperties)(o),p=f.filter(E=>(0,r.alwaysValidSchema)(d,o[E]));if(f.length===0||p.length===f.length&&(!d.opts.unevaluated||d.props===!0))return;const g=h.strictSchema&&!h.allowMatchingProperties&&u.properties,m=s.name("valid");d.props!==!0&&!(d.props instanceof e.Name)&&(d.props=(0,n.evaluatedPropsToName)(s,d.props));const{props:_}=d;v();function v(){for(const E of f)g&&y(E),d.allErrors?b(E):(s.var(m,!0),b(E),s.if(m))}function y(E){for(const S in g)new RegExp(E).test(S)&&(0,r.checkStrictMode)(d,`property ${S} matches pattern ${E} (use allowMatchingProperties)`)}function b(E){s.forIn("key",l,S=>{s.if((0,e._)`${(0,t.usePattern)(a,E)}.test(${S})`,()=>{const T=p.includes(E);T||a.subschema({keyword:"patternProperties",schemaProp:E,dataProp:S,dataPropType:n.Type.Str},m),d.opts.unevaluated&&_!==!0?s.assign((0,e._)`${_}[${S}]`,!0):!T&&!d.allErrors&&s.if((0,e.not)(m),()=>s.break())})})}}};return LM.default=i,LM}var PM={},mEe;function xNt(){if(mEe)return PM;mEe=1,Object.defineProperty(PM,"__esModule",{value:!0});const t=ma(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,t.alwaysValidSchema)(a,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return PM.default=e,PM}var FM={},_Ee;function ANt(){if(_Ee)return FM;_Ee=1,Object.defineProperty(FM,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ap().validateUnion,error:{message:"must match a schema in anyOf"}};return FM.default=e,FM}var BM={},vEe;function RNt(){if(vEe)return BM;vEe=1,Object.defineProperty(BM,"__esModule",{value:!0});const t=Mi(),e=ma(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,t._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:s,parentSchema:o,it:l}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const u=s,d=a.let("valid",!1),h=a.let("passing",null),f=a.name("_valid");i.setParams({passing:h}),a.block(p),i.result(d,()=>i.reset(),()=>i.error(!0));function p(){u.forEach((g,m)=>{let _;(0,e.alwaysValidSchema)(l,g)?a.var(f,!0):_=i.subschema({keyword:"oneOf",schemaProp:m,compositeRule:!0},f),m>0&&a.if((0,t._)`${f} && ${d}`).assign(d,!1).assign(h,(0,t._)`[${h}, ${m}]`).else(),a.if(f,()=>{a.assign(d,!0),a.assign(h,m),_&&i.mergeEvaluated(_,t.Name)})})}}};return BM.default=n,BM}var UM={},yEe;function ONt(){if(yEe)return UM;yEe=1,Object.defineProperty(UM,"__esModule",{value:!0});const t=ma(),e={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((o,l)=>{if((0,t.alwaysValidSchema)(a,o))return;const u=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(u)})}};return UM.default=e,UM}var $M={},bEe;function INt(){if(bEe)return $M;bEe=1,Object.defineProperty($M,"__esModule",{value:!0});const t=Mi(),e=ma(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,t.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,t._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:s,parentSchema:o,it:l}=a;o.then===void 0&&o.else===void 0&&(0,e.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const u=i(l,"then"),d=i(l,"else");if(!u&&!d)return;const h=s.let("valid",!0),f=s.name("_valid");if(p(),a.reset(),u&&d){const m=s.let("ifClause");a.setParams({ifClause:m}),s.if(f,g("then",m),g("else",m))}else u?s.if(f,g("then")):s.if((0,t.not)(f),g("else"));a.pass(h,()=>a.error(!0));function p(){const m=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);a.mergeEvaluated(m)}function g(m,_){return()=>{const v=a.subschema({keyword:m},f);s.assign(h,f),a.mergeValidEvaluated(v,h),_?s.assign(_,(0,t._)`${m}`):a.setParams({ifClause:m})}}}};function i(a,s){const o=a.schema[s];return o!==void 0&&!(0,e.alwaysValidSchema)(a,o)}return $M.default=n,$M}var GM={},EEe;function NNt(){if(EEe)return GM;EEe=1,Object.defineProperty(GM,"__esModule",{value:!0});const t=ma(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,t.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return GM.default=e,GM}var SEe;function kNt(){if(SEe)return RM;SEe=1,Object.defineProperty(RM,"__esModule",{value:!0});const t=vMe(),e=yNt(),r=yMe(),n=bNt(),i=ENt(),a=SNt(),s=TNt(),o=bMe(),l=CNt(),u=wNt(),d=xNt(),h=ANt(),f=RNt(),p=ONt(),g=INt(),m=NNt();function _(v=!1){const y=[d.default,h.default,f.default,p.default,g.default,m.default,s.default,o.default,a.default,l.default,u.default];return v?y.push(e.default,n.default):y.push(t.default,r.default),y.push(i.default),y}return RM.default=_,RM}var zM={},qM={},TEe;function DNt(){if(TEe)return qM;TEe=1,Object.defineProperty(qM,"__esModule",{value:!0});const t=Mi(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,t._)`{format: ${n}}`},code(n,i){const{gen:a,data:s,$data:o,schema:l,schemaCode:u,it:d}=n,{opts:h,errSchemaPath:f,schemaEnv:p,self:g}=d;if(!h.validateFormats)return;o?m():_();function m(){const v=a.scopeValue("formats",{ref:g.formats,code:h.code.formats}),y=a.const("fDef",(0,t._)`${v}[${u}]`),b=a.let("fType"),E=a.let("format");a.if((0,t._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>a.assign(b,(0,t._)`${y}.type || "string"`).assign(E,(0,t._)`${y}.validate`),()=>a.assign(b,(0,t._)`"string"`).assign(E,y)),n.fail$data((0,t.or)(S(),T()));function S(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function T(){const C=p.$async?(0,t._)`(${y}.async ? await ${E}(${s}) : ${E}(${s}))`:(0,t._)`${E}(${s})`,x=(0,t._)`(typeof ${E} == "function" ? ${C} : ${E}.test(${s}))`;return(0,t._)`${E} && ${E} !== true && ${b} === ${i} && !${x}`}}function _(){const v=g.formats[l];if(!v){S();return}if(v===!0)return;const[y,b,E]=T(v);y===i&&n.pass(C());function S(){if(h.strictSchema===!1){g.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${f}"`}}function T(x){const A=x instanceof RegExp?(0,t.regexpCode)(x):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(l)}`:void 0,R=a.scopeValue("formats",{key:l,ref:x,code:A});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,t._)`${R}.validate`]:["string",x,R]}function C(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!p.$async)throw new Error("async format in sync schema");return(0,t._)`await ${E}(${s})`}return typeof b=="function"?(0,t._)`${E}(${s})`:(0,t._)`${E}.test(${s})`}}}};return qM.default=r,qM}var CEe;function MNt(){if(CEe)return zM;CEe=1,Object.defineProperty(zM,"__esModule",{value:!0});const e=[DNt().default];return zM.default=e,zM}var bv={},wEe;function LNt(){return wEe||(wEe=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.contentVocabulary=bv.metadataVocabulary=void 0,bv.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],bv.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),bv}var xEe;function PNt(){if(xEe)return hM;xEe=1,Object.defineProperty(hM,"__esModule",{value:!0});const t=sNt(),e=vNt(),r=kNt(),n=MNt(),i=LNt(),a=[t.default,e.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return hM.default=a,hM}var VM={},vO={},AEe;function FNt(){if(AEe)return vO;AEe=1,Object.defineProperty(vO,"__esModule",{value:!0}),vO.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(vO.DiscrError=t={})),vO}var REe;function BNt(){if(REe)return VM;REe=1,Object.defineProperty(VM,"__esModule",{value:!0});const t=Mi(),e=FNt(),r=Poe(),n=qB(),i=ma(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:l}})=>o===e.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:o,tag:l,tagName:u}})=>(0,t._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:d,parentSchema:h,it:f}=o,{oneOf:p}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const m=l.let("valid",!1),_=l.const("tag",(0,t._)`${u}${(0,t.getProperty)(g)}`);l.if((0,t._)`typeof ${_} == "string"`,()=>v(),()=>o.error(!1,{discrError:e.DiscrError.Tag,tag:_,tagName:g})),o.ok(m);function v(){const E=b();l.if(!1);for(const S in E)l.elseIf((0,t._)`${_} === ${S}`),l.assign(m,y(E[S]));l.else(),o.error(!1,{discrError:e.DiscrError.Mapping,tag:_,tagName:g}),l.endIf()}function y(E){const S=l.name("valid"),T=o.subschema({keyword:"oneOf",schemaProp:E},S);return o.mergeEvaluated(T,t.Name),S}function b(){var E;const S={},T=x(h);let C=!0;for(let I=0;I<p.length;I++){let L=p[I];if(L?.$ref&&!(0,i.schemaHasRulesButRef)(L,f.self.RULES)){const O=L.$ref;if(L=r.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,O),L instanceof r.SchemaEnv&&(L=L.schema),L===void 0)throw new n.default(f.opts.uriResolver,f.baseId,O)}const F=(E=L?.properties)===null||E===void 0?void 0:E[g];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);C=C&&(T||x(L)),A(F,I)}if(!C)throw new Error(`discriminator: "${g}" must be required`);return S;function x({required:I}){return Array.isArray(I)&&I.includes(g)}function A(I,L){if(I.const)R(I.const,L);else if(I.enum)for(const F of I.enum)R(F,L);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function R(I,L){if(typeof I!="string"||I in S)throw new Error(`discriminator: "${g}" values must be unique strings`);S[I]=L}}}};return VM.default=s,VM}const UNt="http://json-schema.org/draft-07/schema#",$Nt="http://json-schema.org/draft-07/schema#",GNt="Core schema meta-schema",zNt={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},qNt=["object","boolean"],VNt={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},HNt={$schema:UNt,$id:$Nt,title:GNt,definitions:zNt,type:qNt,properties:VNt,default:!0};var OEe;function YNt(){return OEe||(OEe=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=nNt(),n=PNt(),i=BNt(),a=HNt,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(g,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}e.Ajv=l,t.exports=e=l,t.exports.Ajv=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var u=zB();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=Mi();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=Loe();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=qB();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(oM,oM.exports)),oM.exports}var IEe;function WNt(){return IEe||(IEe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=YNt(),r=Mi(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:o,schemaCode:l})=>(0,r.str)`should be ${i[o].okStr} ${l}`,params:({keyword:o,schemaCode:l})=>(0,r._)`{comparison: ${i[o].okStr}, limit: ${l}}`};t.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(o){const{gen:l,data:u,schemaCode:d,keyword:h,it:f}=o,{opts:p,self:g}=f;if(!p.validateFormats)return;const m=new e.KeywordCxt(f,g.RULES.all.format.definition,"format");m.$data?_():v();function _(){const b=l.scopeValue("formats",{ref:g.formats,code:p.code.formats}),E=l.const("fmt",(0,r._)`${b}[${m.schemaCode}]`);o.fail$data((0,r.or)((0,r._)`typeof ${E} != "object"`,(0,r._)`${E} instanceof RegExp`,(0,r._)`typeof ${E}.compare != "function"`,y(E)))}function v(){const b=m.schema,E=g.formats[b];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${b}" does not define "compare" function`);const S=l.scopeValue("formats",{key:b,ref:E,code:p.code.formats?(0,r._)`${p.code.formats}${(0,r.getProperty)(b)}`:void 0});o.fail$data(y(S))}function y(b){return(0,r._)`${b}.compare(${u}, ${d}) ${i[h].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(t.formatLimitDefinition),o);t.default=s})(JY)),JY}var NEe;function KNt(){return NEe||(NEe=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=qIt(),n=WNt(),i=Mi(),a=new i.Name("fullFormats"),s=new i.Name("fastFormats"),o=(u,d={keywords:!0})=>{if(Array.isArray(d))return l(u,d,r.fullFormats,a),u;const[h,f]=d.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,a],p=d.formats||r.formatNames;return l(u,p,h,f),d.keywords&&(0,n.default)(u),u};o.get=(u,d="full")=>{const f=(d==="fast"?r.fastFormats:r.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function l(u,d,h,f){var p,g;(p=(g=u.opts.code).formats)!==null&&p!==void 0||(g.formats=(0,i._)`require("ajv-formats/dist/formats").${f}`);for(const m of d)u.addFormat(m,h[m])}t.exports=e=o,Object.defineProperty(e,"__esModule",{value:!0}),e.default=o})(sM,sM.exports)),sM.exports}var jNt=KNt();const XNt=sd(jNt);function QNt(){const t=new zIt({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return XNt(t),t}class ZNt{constructor(e){this._ajv=e??QNt()}getValidator(e){const r="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}}class JNt{constructor(e){this._client=e}async*callToolStream(e,r=MB,n){const i=this._client,a={...n,task:n?.task??(i.isToolTask(e.name)?{}:void 0)},s=i.requestStream({method:"tools/call",params:e},r,a),o=i.getToolOutputValidator(e.name);for await(const l of s){if(l.type==="result"&&o){const u=l.result;if(!u.structuredContent&&!u.isError){yield{type:"error",error:new Qn(gi.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`)};return}if(u.structuredContent)try{const d=o(u.structuredContent);if(!d.valid){yield{type:"error",error:new Qn(gi.InvalidParams,`Structured content does not match the tool's output schema: ${d.errorMessage}`)};return}}catch(d){if(d instanceof Qn){yield{type:"error",error:d};return}yield{type:"error",error:new Qn(gi.InvalidParams,`Failed to validate structured content: ${d instanceof Error?d.message:String(d)}`)};return}}yield l}}async getTask(e,r){return this._client.getTask({taskId:e},r)}async getTaskResult(e,r,n){return this._client.getTaskResult({taskId:e},r,n)}async listTasks(e,r){return this._client.listTasks(e?{cursor:e}:void 0,r)}async cancelTask(e,r){return this._client.cancelTask({taskId:e},r)}requestStream(e,r,n){return this._client.requestStream(e,r,n)}}function ekt(t,e,r){if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${e})`);break}}function tkt(t,e,r){if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${e})`);break}}function AP(t,e){if(!(!t||e===null||typeof e!="object")){if(t.type==="object"&&t.properties&&typeof t.properties=="object"){const r=e,n=t.properties;for(const i of Object.keys(n)){const a=n[i];r[i]===void 0&&Object.prototype.hasOwnProperty.call(a,"default")&&(r[i]=a.default),r[i]!==void 0&&AP(a,r[i])}}if(Array.isArray(t.anyOf))for(const r of t.anyOf)typeof r!="boolean"&&AP(r,e);if(Array.isArray(t.oneOf))for(const r of t.oneOf)typeof r!="boolean"&&AP(r,e)}}function rkt(t){if(!t)return{supportsFormMode:!1,supportsUrlMode:!1};const e=t.form!==void 0,r=t.url!==void 0;return{supportsFormMode:e||!e&&!r,supportsUrlMode:r}}class nkt extends LOt{constructor(e,r){super(r),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=r?.capabilities??{},this._jsonSchemaValidator=r?.jsonSchemaValidator??new ZNt,r?.listChanged&&(this._pendingListChangedConfig=r.listChanged)}_setupListChangedHandlers(e){e.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",tMe,e.tools,async()=>(await this.listTools()).tools),e.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",Z4e,e.prompts,async()=>(await this.listPrompts()).prompts),e.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",j4e,e.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new JNt(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=POt(this._capabilities,e)}setRequestHandler(e,r){const i=S4e(e)?.method;if(!i)throw new Error("Schema is missing a method literal");let a;if(IB(i)){const o=i;a=o._zod?.def?.value??o.value}else{const o=i;a=o._def?.value??o.value}if(typeof a!="string")throw new Error("Schema method literal must be a string");const s=a;if(s==="elicitation/create"){const o=async(l,u)=>{const d=__(sMe,l);if(!d.success){const y=d.error instanceof Error?d.error.message:String(d.error);throw new Qn(gi.InvalidParams,`Invalid elicitation request: ${y}`)}const{params:h}=d.data;h.mode=h.mode??"form";const{supportsFormMode:f,supportsUrlMode:p}=rkt(this._capabilities.elicitation);if(h.mode==="form"&&!f)throw new Qn(gi.InvalidParams,"Client does not support form-mode elicitation requests");if(h.mode==="url"&&!p)throw new Qn(gi.InvalidParams,"Client does not support URL-mode elicitation requests");const g=await Promise.resolve(r(l,u));if(h.task){const y=__(gk,g);if(!y.success){const b=y.error instanceof Error?y.error.message:String(y.error);throw new Qn(gi.InvalidParams,`Invalid task creation result: ${b}`)}return y.data}const m=__(oMe,g);if(!m.success){const y=m.error instanceof Error?m.error.message:String(m.error);throw new Qn(gi.InvalidParams,`Invalid elicitation result: ${y}`)}const _=m.data,v=h.mode==="form"?h.requestedSchema:void 0;if(h.mode==="form"&&_.action==="accept"&&_.content&&v&&this._capabilities.elicitation?.form?.applyDefaults)try{AP(v,_.content)}catch{}return _};return super.setRequestHandler(e,o)}if(s==="sampling/createMessage"){const o=async(l,u)=>{const d=__(nMe,l);if(!d.success){const _=d.error instanceof Error?d.error.message:String(d.error);throw new Qn(gi.InvalidParams,`Invalid sampling request: ${_}`)}const{params:h}=d.data,f=await Promise.resolve(r(l,u));if(h.task){const _=__(gk,f);if(!_.success){const v=_.error instanceof Error?_.error.message:String(_.error);throw new Qn(gi.InvalidParams,`Invalid task creation result: ${v}`)}return _.data}const g=h.tools||h.toolChoice?aMe:iMe,m=__(g,f);if(!m.success){const _=m.error instanceof Error?m.error.message:String(m.error);throw new Qn(gi.InvalidParams,`Invalid sampling result: ${_}`)}return m.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,r)}assertCapability(e,r){if(!this._serverCapabilities?.[e])throw new Error(`Server does not support ${e} (required for ${r})`)}async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{const n=await this.request({method:"initialize",params:{protocolVersion:NB,capabilities:this._capabilities,clientInfo:this._clientInfo}},$4e,r);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!rRt.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){switch(e){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${e})`);break}}assertNotificationCapability(e){switch(e){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${e})`);break}}assertTaskCapability(e){ekt(this._serverCapabilities?.tasks?.requests,e,"Server")}assertTaskHandlerCapability(e){this._capabilities&&tkt(this._capabilities.tasks?.requests,e,"Client")}async ping(e){return this.request({method:"ping"},uT,e)}async complete(e,r){return this.request({method:"completion/complete",params:e},lMe,r)}async setLoggingLevel(e,r){return this.request({method:"logging/setLevel",params:{level:e}},uT,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},Q4e,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},X4e,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},Y4e,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},W4e,r)}async readResource(e,r){return this.request({method:"resources/read",params:e},K4e,r)}async subscribeResource(e,r){return this.request({method:"resources/subscribe",params:e},uT,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},uT,r)}async callTool(e,r=MB,n){if(this.isToolTaskRequired(e.name))throw new Qn(gi.InvalidRequest,`Tool "${e.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);const i=await this.request({method:"tools/call",params:e},r,n),a=this.getToolOutputValidator(e.name);if(a){if(!i.structuredContent&&!i.isError)throw new Qn(gi.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(i.structuredContent)try{const s=a(i.structuredContent);if(!s.valid)throw new Qn(gi.InvalidParams,`Structured content does not match the tool's output schema: ${s.errorMessage}`)}catch(s){throw s instanceof Qn?s:new Qn(gi.InvalidParams,`Failed to validate structured content: ${s instanceof Error?s.message:String(s)}`)}}return i}isToolTask(e){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(e):!1}isToolTaskRequired(e){return this._cachedRequiredTaskTools.has(e)}cacheToolMetadata(e){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(const r of e){if(r.outputSchema){const i=this._jsonSchemaValidator.getValidator(r.outputSchema);this._cachedToolOutputValidators.set(r.name,i)}const n=r.execution?.taskSupport;(n==="required"||n==="optional")&&this._cachedKnownTaskTools.add(r.name),n==="required"&&this._cachedRequiredTaskTools.add(r.name)}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,r){const n=await this.request({method:"tools/list",params:e},eMe,r);return this.cacheToolMetadata(n.tools),n}_setupListChangedHandler(e,r,n,i){const a=XRt.safeParse(n);if(!a.success)throw new Error(`Invalid ${e} listChanged options: ${a.error.message}`);if(typeof n.onChanged!="function")throw new Error(`Invalid ${e} listChanged options: onChanged must be a function`);const{autoRefresh:s,debounceMs:o}=a.data,{onChanged:l}=n,u=async()=>{if(!s){l(null,null);return}try{const h=await i();l(null,h)}catch(h){const f=h instanceof Error?h:new Error(String(h));l(f,null)}},d=()=>{if(o){const h=this._listChangedDebounceTimers.get(e);h&&clearTimeout(h);const f=setTimeout(u,o);this._listChangedDebounceTimers.set(e,f)}else u()};this.setNotificationHandler(r,d)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}function j9(t){return t?t instanceof Headers?Object.fromEntries(t.entries()):Array.isArray(t)?Object.fromEntries(t):{...t}:{}}function EMe(t=fetch,e){return e?async(r,n)=>{const i={...e,...n,headers:n?.headers?{...j9(e.headers),...j9(n.headers)}:e.headers};return t(r,i)}:t}let Boe;Boe=globalThis.crypto;async function ikt(t){return(await Boe).getRandomValues(new Uint8Array(t))}async function akt(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r=Math.pow(2,8)-Math.pow(2,8)%e.length;let n="";for(;n.length<t;){const i=await ikt(t-n.length);for(const a of i)a<r&&(n+=e[a%e.length])}return n}async function skt(t){return await akt(t)}async function okt(t){const e=await(await Boe).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function lkt(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await skt(t),r=await okt(e);return{code_verifier:e,code_challenge:r}}const Yl=uAt().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:eRt.custom,message:"URL must be parseable",fatal:!0}),dCt}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),ckt=Xl({resource:At().url(),authorization_servers:Wr(Yl).optional(),jwks_uri:At().url().optional(),scopes_supported:Wr(At()).optional(),bearer_methods_supported:Wr(At()).optional(),resource_signing_alg_values_supported:Wr(At()).optional(),resource_name:At().optional(),resource_documentation:At().optional(),resource_policy_uri:At().url().optional(),resource_tos_uri:At().url().optional(),tls_client_certificate_bound_access_tokens:fs().optional(),authorization_details_types_supported:Wr(At()).optional(),dpop_signing_alg_values_supported:Wr(At()).optional(),dpop_bound_access_tokens_required:fs().optional()}),SMe=Xl({issuer:At(),authorization_endpoint:Yl,token_endpoint:Yl,registration_endpoint:Yl.optional(),scopes_supported:Wr(At()).optional(),response_types_supported:Wr(At()),response_modes_supported:Wr(At()).optional(),grant_types_supported:Wr(At()).optional(),token_endpoint_auth_methods_supported:Wr(At()).optional(),token_endpoint_auth_signing_alg_values_supported:Wr(At()).optional(),service_documentation:Yl.optional(),revocation_endpoint:Yl.optional(),revocation_endpoint_auth_methods_supported:Wr(At()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Wr(At()).optional(),introspection_endpoint:At().optional(),introspection_endpoint_auth_methods_supported:Wr(At()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Wr(At()).optional(),code_challenge_methods_supported:Wr(At()).optional(),client_id_metadata_document_supported:fs().optional()}),ukt=Xl({issuer:At(),authorization_endpoint:Yl,token_endpoint:Yl,userinfo_endpoint:Yl.optional(),jwks_uri:Yl,registration_endpoint:Yl.optional(),scopes_supported:Wr(At()).optional(),response_types_supported:Wr(At()),response_modes_supported:Wr(At()).optional(),grant_types_supported:Wr(At()).optional(),acr_values_supported:Wr(At()).optional(),subject_types_supported:Wr(At()),id_token_signing_alg_values_supported:Wr(At()),id_token_encryption_alg_values_supported:Wr(At()).optional(),id_token_encryption_enc_values_supported:Wr(At()).optional(),userinfo_signing_alg_values_supported:Wr(At()).optional(),userinfo_encryption_alg_values_supported:Wr(At()).optional(),userinfo_encryption_enc_values_supported:Wr(At()).optional(),request_object_signing_alg_values_supported:Wr(At()).optional(),request_object_encryption_alg_values_supported:Wr(At()).optional(),request_object_encryption_enc_values_supported:Wr(At()).optional(),token_endpoint_auth_methods_supported:Wr(At()).optional(),token_endpoint_auth_signing_alg_values_supported:Wr(At()).optional(),display_values_supported:Wr(At()).optional(),claim_types_supported:Wr(At()).optional(),claims_supported:Wr(At()).optional(),service_documentation:At().optional(),claims_locales_supported:Wr(At()).optional(),ui_locales_supported:Wr(At()).optional(),claims_parameter_supported:fs().optional(),request_parameter_supported:fs().optional(),request_uri_parameter_supported:fs().optional(),require_request_uri_registration:fs().optional(),op_policy_uri:Yl.optional(),op_tos_uri:Yl.optional(),client_id_metadata_document_supported:fs().optional()}),dkt=jr({...ukt.shape,...SMe.pick({code_challenge_methods_supported:!0}).shape}),hkt=jr({access_token:At(),id_token:At().optional(),token_type:At(),expires_in:tRt().optional(),scope:At().optional(),refresh_token:At().optional()}).strip(),fkt=jr({error:At(),error_description:At().optional(),error_uri:At().optional()}),kEe=Yl.optional().or(In("").transform(()=>{})),pkt=jr({redirect_uris:Wr(Yl),token_endpoint_auth_method:At().optional(),grant_types:Wr(At()).optional(),response_types:Wr(At()).optional(),client_name:At().optional(),client_uri:Yl.optional(),logo_uri:kEe,scope:At().optional(),contacts:Wr(At()).optional(),tos_uri:kEe,policy_uri:At().optional(),jwks_uri:Yl.optional(),jwks:IAt().optional(),software_id:At().optional(),software_version:At().optional(),software_statement:At().optional()}).strip(),gkt=jr({client_id:At(),client_secret:At().optional(),client_id_issued_at:Fa().optional(),client_secret_expires_at:Fa().optional()}).strip(),mkt=pkt.merge(gkt);jr({error:At(),error_description:At().optional()}).strip();jr({token:At(),token_type_hint:At().optional()}).strip();function _kt(t){const e=typeof t=="string"?new URL(t):new URL(t.href);return e.hash="",e}function vkt({requestedResource:t,configuredResource:e}){const r=typeof t=="string"?new URL(t):new URL(t.href),n=typeof e=="string"?new URL(e):new URL(e.href);if(r.origin!==n.origin||r.pathname.length<n.pathname.length)return!1;const i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/";return i.startsWith(a)}class Il extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class wZ extends Il{}wZ.errorCode="invalid_request";class X9 extends Il{}X9.errorCode="invalid_client";class Q9 extends Il{}Q9.errorCode="invalid_grant";class Z9 extends Il{}Z9.errorCode="unauthorized_client";class xZ extends Il{}xZ.errorCode="unsupported_grant_type";class AZ extends Il{}AZ.errorCode="invalid_scope";class RZ extends Il{}RZ.errorCode="access_denied";class iA extends Il{}iA.errorCode="server_error";class OZ extends Il{}OZ.errorCode="temporarily_unavailable";class IZ extends Il{}IZ.errorCode="unsupported_response_type";class NZ extends Il{}NZ.errorCode="unsupported_token_type";class kZ extends Il{}kZ.errorCode="invalid_token";class DZ extends Il{}DZ.errorCode="method_not_allowed";class MZ extends Il{}MZ.errorCode="too_many_requests";class J9 extends Il{}J9.errorCode="invalid_client_metadata";class LZ extends Il{}LZ.errorCode="insufficient_scope";class PZ extends Il{}PZ.errorCode="invalid_target";const ykt={[wZ.errorCode]:wZ,[X9.errorCode]:X9,[Q9.errorCode]:Q9,[Z9.errorCode]:Z9,[xZ.errorCode]:xZ,[AZ.errorCode]:AZ,[RZ.errorCode]:RZ,[iA.errorCode]:iA,[OZ.errorCode]:OZ,[IZ.errorCode]:IZ,[NZ.errorCode]:NZ,[kZ.errorCode]:kZ,[DZ.errorCode]:DZ,[MZ.errorCode]:MZ,[J9.errorCode]:J9,[LZ.errorCode]:LZ,[PZ.errorCode]:PZ};class mf extends Error{constructor(e){super(e??"Unauthorized")}}function bkt(t){return["client_secret_basic","client_secret_post","none"].includes(t)}const oW="code",lW="S256";function Ekt(t,e){const r=t.client_secret!==void 0;return e.length===0?r?"client_secret_post":"none":"token_endpoint_auth_method"in t&&t.token_endpoint_auth_method&&bkt(t.token_endpoint_auth_method)&&e.includes(t.token_endpoint_auth_method)?t.token_endpoint_auth_method:r&&e.includes("client_secret_basic")?"client_secret_basic":r&&e.includes("client_secret_post")?"client_secret_post":e.includes("none")?"none":r?"client_secret_post":"none"}function Skt(t,e,r,n){const{client_id:i,client_secret:a}=e;switch(t){case"client_secret_basic":Tkt(i,a,r);return;case"client_secret_post":Ckt(i,a,n);return;case"none":wkt(i,n);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function Tkt(t,e,r){if(!e)throw new Error("client_secret_basic authentication requires a client_secret");const n=btoa(`${t}:${e}`);r.set("Authorization",`Basic ${n}`)}function Ckt(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function wkt(t,e){e.set("client_id",t)}async function TMe(t){const e=t instanceof Response?t.status:void 0,r=t instanceof Response?await t.text():t;try{const n=fkt.parse(JSON.parse(r)),{error:i,error_description:a,error_uri:s}=n,o=ykt[i]||iA;return new o(a||"",s)}catch(n){const i=`${e?`HTTP ${e}: `:""}Invalid OAuth error response: ${n}. Raw body: ${r}`;return new iA(i)}}async function ky(t,e){try{return await cW(t,e)}catch(r){if(r instanceof X9||r instanceof Z9)return await t.invalidateCredentials?.("all"),await cW(t,e);if(r instanceof Q9)return await t.invalidateCredentials?.("tokens"),await cW(t,e);throw r}}async function cW(t,{serverUrl:e,authorizationCode:r,scope:n,resourceMetadataUrl:i,fetchFn:a}){let s,o;try{s=await Rkt(e,{resourceMetadataUrl:i},a),s.authorization_servers&&s.authorization_servers.length>0&&(o=s.authorization_servers[0])}catch{}o||(o=new URL("/",e));const l=await Akt(e,t,s),u=await Dkt(o,{fetchFn:a});let d=await Promise.resolve(t.clientInformation());if(!d){if(r!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const _=u?.client_id_metadata_document_supported===!0,v=t.clientMetadataUrl;if(v&&!xkt(v))throw new J9(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${v}`);if(_&&v)d={client_id:v},await t.saveClientInformation?.(d);else{if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const b=await Bkt(o,{metadata:u,clientMetadata:t.clientMetadata,fetchFn:a});await t.saveClientInformation(b),d=b}}const h=!t.redirectUrl;if(r!==void 0||h){const _=await Fkt(t,o,{metadata:u,resource:l,authorizationCode:r,fetchFn:a});return await t.saveTokens(_),"AUTHORIZED"}const f=await t.tokens();if(f?.refresh_token)try{const _=await Pkt(o,{metadata:u,clientInformation:d,refreshToken:f.refresh_token,resource:l,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(_),"AUTHORIZED"}catch(_){if(!(!(_ instanceof Il)||_ instanceof iA))throw _}const p=t.state?await t.state():void 0,{authorizationUrl:g,codeVerifier:m}=await Mkt(o,{metadata:u,clientInformation:d,state:p,redirectUrl:t.redirectUrl,scope:n||s?.scopes_supported?.join(" ")||t.clientMetadata.scope,resource:l});return await t.saveCodeVerifier(m),await t.redirectToAuthorization(g),"REDIRECT"}function xkt(t){if(!t)return!1;try{const e=new URL(t);return e.protocol==="https:"&&e.pathname!=="/"}catch{return!1}}async function Akt(t,e,r){const n=_kt(t);if(e.validateResourceURL)return await e.validateResourceURL(n,r?.resource);if(r){if(!vkt({requestedResource:n,configuredResource:r.resource}))throw new Error(`Protected resource ${r.resource} does not match expected ${n} (or origin)`);return new URL(r.resource)}}function e7(t){const e=t.headers.get("WWW-Authenticate");if(!e)return{};const[r,n]=e.split(" ");if(r.toLowerCase()!=="bearer"||!n)return{};const i=uW(t,"resource_metadata")||void 0;let a;if(i)try{a=new URL(i)}catch{}const s=uW(t,"scope")||void 0,o=uW(t,"error")||void 0;return{resourceMetadataUrl:a,scope:s,error:o}}function uW(t,e){const r=t.headers.get("WWW-Authenticate");if(!r)return null;const n=new RegExp(`${e}=(?:"([^"]+)"|([^\\s,]+))`),i=r.match(n);return i?i[1]||i[2]:null}async function Rkt(t,e,r=fetch){const n=await Nkt(t,"oauth-protected-resource",r,{protocolVersion:e?.protocolVersion,metadataUrl:e?.resourceMetadataUrl});if(!n||n.status===404)throw await n?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!n.ok)throw await n.body?.cancel(),new Error(`HTTP ${n.status} trying to load well-known OAuth protected resource metadata.`);return ckt.parse(await n.json())}async function Uoe(t,e,r=fetch){try{return await r(t,{headers:e})}catch(n){if(n instanceof TypeError)return e?Uoe(t,void 0,r):void 0;throw n}}function Okt(t,e="",r={}){return e.endsWith("/")&&(e=e.slice(0,-1)),r.prependPathname?`${e}/.well-known/${t}`:`/.well-known/${t}${e}`}async function DEe(t,e,r=fetch){return await Uoe(t,{"MCP-Protocol-Version":e},r)}function Ikt(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function Nkt(t,e,r,n){const i=new URL(t),a=n?.protocolVersion??NB;let s;if(n?.metadataUrl)s=new URL(n.metadataUrl);else{const l=Okt(e,i.pathname);s=new URL(l,n?.metadataServerUrl??i),s.search=i.search}let o=await DEe(s,a,r);if(!n?.metadataUrl&&Ikt(o,i.pathname)){const l=new URL(`/.well-known/${e}`,i);o=await DEe(l,a,r)}return o}function kkt(t){const e=typeof t=="string"?new URL(t):t,r=e.pathname!=="/",n=[];if(!r)return n.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),n.push({url:new URL("/.well-known/openid-configuration",e.origin),type:"oidc"}),n;let i=e.pathname;return i.endsWith("/")&&(i=i.slice(0,-1)),n.push({url:new URL(`/.well-known/oauth-authorization-server${i}`,e.origin),type:"oauth"}),n.push({url:new URL(`/.well-known/openid-configuration${i}`,e.origin),type:"oidc"}),n.push({url:new URL(`${i}/.well-known/openid-configuration`,e.origin),type:"oidc"}),n}async function Dkt(t,{fetchFn:e=fetch,protocolVersion:r=NB}={}){const n={"MCP-Protocol-Version":r,Accept:"application/json"},i=kkt(t);for(const{url:a,type:s}of i){const o=await Uoe(a,n,e);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${a}`)}return s==="oauth"?SMe.parse(await o.json()):dkt.parse(await o.json())}}}async function Mkt(t,{metadata:e,clientInformation:r,redirectUrl:n,scope:i,state:a,resource:s}){let o;if(e){if(o=new URL(e.authorization_endpoint),!e.response_types_supported.includes(oW))throw new Error(`Incompatible auth server: does not support response type ${oW}`);if(e.code_challenge_methods_supported&&!e.code_challenge_methods_supported.includes(lW))throw new Error(`Incompatible auth server: does not support code challenge method ${lW}`)}else o=new URL("/authorize",t);const l=await lkt(),u=l.code_verifier,d=l.code_challenge;return o.searchParams.set("response_type",oW),o.searchParams.set("client_id",r.client_id),o.searchParams.set("code_challenge",d),o.searchParams.set("code_challenge_method",lW),o.searchParams.set("redirect_uri",String(n)),a&&o.searchParams.set("state",a),i&&o.searchParams.set("scope",i),i?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function Lkt(t,e,r){return new URLSearchParams({grant_type:"authorization_code",code:t,code_verifier:e,redirect_uri:String(r)})}async function CMe(t,{metadata:e,tokenRequestParams:r,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s}){const o=e?.token_endpoint?new URL(e.token_endpoint):new URL("/token",t),l=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(a&&r.set("resource",a.href),i)await i(l,r,o,e);else if(n){const d=e?.token_endpoint_auth_methods_supported??[],h=Ekt(n,d);Skt(h,n,l,r)}const u=await(s??fetch)(o,{method:"POST",headers:l,body:r});if(!u.ok)throw await TMe(u);return hkt.parse(await u.json())}async function Pkt(t,{metadata:e,clientInformation:r,refreshToken:n,resource:i,addClientAuthentication:a,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:n}),l=await CMe(t,{metadata:e,tokenRequestParams:o,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s});return{refresh_token:n,...l}}async function Fkt(t,e,{metadata:r,resource:n,authorizationCode:i,fetchFn:a}={}){const s=t.clientMetadata.scope;let o;if(t.prepareTokenRequest&&(o=await t.prepareTokenRequest(s)),!o){if(!i)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!t.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await t.codeVerifier();o=Lkt(i,u,t.redirectUrl)}const l=await t.clientInformation();return CMe(e,{metadata:r,tokenRequestParams:o,clientInformation:l??void 0,addClientAuthentication:t.addClientAuthentication,resource:n,fetchFn:a})}async function Bkt(t,{metadata:e,clientMetadata:r,fetchFn:n}){let i;if(e){if(!e.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(e.registration_endpoint)}else i=new URL("/register",t);const a=await(n??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok)throw await TMe(a);return mkt.parse(await a.json())}let MEe=class extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function dW(t){}function wMe(t){if(typeof t=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:e=dW,onError:r=dW,onRetry:n=dW,onComment:i}=t;let a="",s=!0,o,l="",u="";function d(m){const _=s?m.replace(/^\xEF\xBB\xBF/,""):m,[v,y]=Ukt(`${a}${_}`);for(const b of v)h(b);a=y,s=!1}function h(m){if(m===""){p();return}if(m.startsWith(":")){i&&i(m.slice(m.startsWith(": ")?2:1));return}const _=m.indexOf(":");if(_!==-1){const v=m.slice(0,_),y=m[_+1]===" "?2:1,b=m.slice(_+y);f(v,b,m);return}f(m,"",m)}function f(m,_,v){switch(m){case"event":u=_;break;case"data":l=`${l}${_}
`;break;case"id":o=_.includes("\0")?void 0:_;break;case"retry":/^\d+$/.test(_)?n(parseInt(_,10)):r(new MEe(`Invalid \`retry\` value: "${_}"`,{type:"invalid-retry",value:_,line:v}));break;default:r(new MEe(`Unknown field "${m.length>20?`${m.slice(0,20)}…`:m}"`,{type:"unknown-field",field:m,value:_,line:v}));break}}function p(){l.length>0&&e({id:o,event:u||void 0,data:l.endsWith(`
`)?l.slice(0,-1):l}),o=void 0,l="",u=""}function g(m={}){a&&m.consume&&h(a),s=!0,o=void 0,l="",u="",a=""}return{feed:d,reset:g}}function Ukt(t){const e=[];let r="",n=0;for(;n<t.length;){const i=t.indexOf("\r",n),a=t.indexOf(`
`,n);let s=-1;if(i!==-1&&a!==-1?s=Math.min(i,a):i!==-1?i===t.length-1?s=-1:s=i:a!==-1&&(s=a),s===-1){r=t.slice(n);break}else{const o=t.slice(n,s);e.push(o),n=s+1,t[n-1]==="\r"&&t[n]===`
`&&n++}}return[e,r]}class $kt extends TransformStream{constructor({onError:e,onRetry:r,onComment:n}={}){let i;super({start(a){i=wMe({onEvent:s=>{a.enqueue(s)},onError(s){e==="terminate"?a.error(s):typeof e=="function"&&e(s)},onRetry:r,onComment:n})},transform(a){i.feed(a)}})}}const Gkt={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2};class zv extends Error{constructor(e,r){super(`Streamable HTTP error: ${r}`),this.code=e}}class LEe{constructor(e,r){this._hasCompletedAuthFlow=!1,this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=EMe(r?.fetch,r?.requestInit),this._sessionId=r?.sessionId,this._reconnectionOptions=r?.reconnectionOptions??Gkt}async _authThenStart(){if(!this._authProvider)throw new mf("No auth provider");let e;try{e=await ky(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(e!=="AUTHORIZED")throw new mf;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){const e={};if(this._authProvider){const n=await this._authProvider.tokens();n&&(e.Authorization=`Bearer ${n.access_token}`)}this._sessionId&&(e["mcp-session-id"]=this._sessionId),this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const r=j9(this._requestInit?.headers);return new Headers({...e,...r})}async _startOrAuthSse(e){const{resumptionToken:r}=e;try{const n=await this._commonHeaders();n.set("Accept","text/event-stream"),r&&n.set("last-event-id",r);const i=await(this._fetch??fetch)(this._url,{method:"GET",headers:n,signal:this._abortController?.signal});if(!i.ok){if(await i.body?.cancel(),i.status===401&&this._authProvider)return await this._authThenStart();if(i.status===405)return;throw new zv(i.status,`Failed to open SSE stream: ${i.statusText}`)}this._handleSseStream(i.body,e,!0)}catch(n){throw this.onerror?.(n),n}}_getNextReconnectionDelay(e){if(this._serverRetryMs!==void 0)return this._serverRetryMs;const r=this._reconnectionOptions.initialReconnectionDelay,n=this._reconnectionOptions.reconnectionDelayGrowFactor,i=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(n,e),i)}_scheduleReconnection(e,r=0){const n=this._reconnectionOptions.maxRetries;if(r>=n){this.onerror?.(new Error(`Maximum reconnection attempts (${n}) exceeded.`));return}const i=this._getNextReconnectionDelay(r);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(e).catch(a=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${a instanceof Error?a.message:String(a)}`)),this._scheduleReconnection(e,r+1)})},i)}_handleSseStream(e,r,n){if(!e)return;const{onresumptiontoken:i,replayMessageId:a}=r;let s,o=!1,l=!1;(async()=>{try{const d=e.pipeThrough(new TextDecoderStream).pipeThrough(new $kt({onRetry:p=>{this._serverRetryMs=p}})).getReader();for(;;){const{value:p,done:g}=await d.read();if(g)break;if(p.id&&(s=p.id,o=!0,i?.(p.id)),!!p.data&&(!p.event||p.event==="message"))try{const m=oN.parse(JSON.parse(p.data));gI(m)&&(l=!0,a!==void 0&&(m.id=a)),this.onmessage?.(m)}catch(m){this.onerror?.(m)}}(n||o)&&!l&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:s,onresumptiontoken:i,replayMessageId:a},0)}catch(d){if(this.onerror?.(new Error(`SSE stream disconnected: ${d}`)),(n||o)&&!l&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:s,onresumptiontoken:i,replayMessageId:a},0)}catch(p){this.onerror?.(new Error(`Failed to reconnect: ${p instanceof Error?p.message:String(p)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new mf("No auth provider");if(await ky(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new mf("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(e,r){try{const{resumptionToken:n,onresumptiontoken:i}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:CZ(e)?e.id:void 0}).catch(f=>this.onerror?.(f));return}const a=await this._commonHeaders();a.set("content-type","application/json"),a.set("accept","application/json, text/event-stream");const s={...this._requestInit,method:"POST",headers:a,body:JSON.stringify(e),signal:this._abortController?.signal},o=await(this._fetch??fetch)(this._url,s),l=o.headers.get("mcp-session-id");if(l&&(this._sessionId=l),!o.ok){const f=await o.text().catch(()=>null);if(o.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new zv(401,"Server returned 401 after successful authentication");const{resourceMetadataUrl:p,scope:g}=e7(o);if(this._resourceMetadataUrl=p,this._scope=g,await ky(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new mf;return this._hasCompletedAuthFlow=!0,this.send(e)}if(o.status===403&&this._authProvider){const{resourceMetadataUrl:p,scope:g,error:m}=e7(o);if(m==="insufficient_scope"){const _=o.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===_)throw new zv(403,"Server returned 403 after trying upscoping");if(g&&(this._scope=g),p&&(this._resourceMetadataUrl=p),this._lastUpscopingHeader=_??void 0,await ky(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new mf;return this.send(e)}}throw new zv(o.status,`Error POSTing to endpoint: ${f}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,o.status===202){await o.body?.cancel(),vRt(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(f=>this.onerror?.(f));return}const d=(Array.isArray(e)?e:[e]).filter(f=>"method"in f&&"id"in f&&f.id!==void 0).length>0,h=o.headers.get("content-type");if(d)if(h?.includes("text/event-stream"))this._handleSseStream(o.body,{onresumptiontoken:i},!1);else if(h?.includes("application/json")){const f=await o.json(),p=Array.isArray(f)?f.map(g=>oN.parse(g)):[oN.parse(f)];for(const g of p)this.onmessage?.(g)}else throw await o.body?.cancel(),new zv(-1,`Unexpected content type: ${h}`);else await o.body?.cancel()}catch(n){throw this.onerror?.(n),n}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{const e=await this._commonHeaders(),r={...this._requestInit,method:"DELETE",headers:e,signal:this._abortController?.signal},n=await(this._fetch??fetch)(this._url,r);if(await n.body?.cancel(),!n.ok&&n.status!==405)throw new zv(n.status,`Failed to terminate session: ${n.statusText}`);this._sessionId=void 0}catch(e){throw this.onerror?.(e),e}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}async resumeStream(e,r){await this._startOrAuthSse({resumptionToken:e,onresumptiontoken:r?.onresumptiontoken})}}class PEe extends Event{constructor(e,r){var n,i;super(e),this.code=(n=r?.code)!=null?n:void 0,this.message=(i=r?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,r,n){return n(FEe(this),r)}[Symbol.for("Deno.customInspect")](e,r){return e(FEe(this),r)}}function zkt(t){const e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function FZ(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(FZ).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${FZ(t.cause)}`:t.message:`${t}`}function FEe(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var xMe=t=>{throw TypeError(t)},$oe=(t,e,r)=>e.has(t)||xMe("Cannot "+r),ji=(t,e,r)=>($oe(t,e,"read from private field"),r?r.call(t):e.get(t)),Jo=(t,e,r)=>e.has(t)?xMe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ws=(t,e,r,n)=>($oe(t,e,"write to private field"),e.set(t,r),r),cm=(t,e,r)=>($oe(t,e,"access private method"),r),qu,iy,DS,RP,t7,lN,dT,cN,A_,MS,zT,LS,mI,lf,BZ,UZ,$Z,BEe,GZ,zZ,_I,qZ,VZ;class OP extends EventTarget{constructor(e,r){var n,i;super(),Jo(this,lf),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Jo(this,qu),Jo(this,iy),Jo(this,DS),Jo(this,RP),Jo(this,t7),Jo(this,lN),Jo(this,dT),Jo(this,cN,null),Jo(this,A_),Jo(this,MS),Jo(this,zT,null),Jo(this,LS,null),Jo(this,mI,null),Jo(this,UZ,async a=>{var s;ji(this,MS).reset();const{body:o,redirected:l,status:u,headers:d}=a;if(u===204){cm(this,lf,_I).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?ws(this,DS,new URL(a.url)):ws(this,DS,void 0),u!==200){cm(this,lf,_I).call(this,`Non-200 status code (${u})`,u);return}if(!(d.get("content-type")||"").startsWith("text/event-stream")){cm(this,lf,_I).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(ji(this,qu)===this.CLOSED)return;ws(this,qu,this.OPEN);const h=new Event("open");if((s=ji(this,mI))==null||s.call(this,h),this.dispatchEvent(h),typeof o!="object"||!o||!("getReader"in o)){cm(this,lf,_I).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}const f=new TextDecoder,p=o.getReader();let g=!0;do{const{done:m,value:_}=await p.read();_&&ji(this,MS).feed(f.decode(_,{stream:!m})),m&&(g=!1,ji(this,MS).reset(),cm(this,lf,qZ).call(this))}while(g)}),Jo(this,$Z,a=>{ws(this,A_,void 0),!(a.name==="AbortError"||a.type==="aborted")&&cm(this,lf,qZ).call(this,FZ(a))}),Jo(this,GZ,a=>{typeof a.id=="string"&&ws(this,cN,a.id);const s=new MessageEvent(a.event||"message",{data:a.data,origin:ji(this,DS)?ji(this,DS).origin:ji(this,iy).origin,lastEventId:a.id||""});ji(this,LS)&&(!a.event||a.event==="message")&&ji(this,LS).call(this,s),this.dispatchEvent(s)}),Jo(this,zZ,a=>{ws(this,lN,a)}),Jo(this,VZ,()=>{ws(this,dT,void 0),ji(this,qu)===this.CONNECTING&&cm(this,lf,BZ).call(this)});try{if(e instanceof URL)ws(this,iy,e);else if(typeof e=="string")ws(this,iy,new URL(e,qkt()));else throw new Error("Invalid URL")}catch{throw zkt("An invalid or illegal string was specified")}ws(this,MS,wMe({onEvent:ji(this,GZ),onRetry:ji(this,zZ)})),ws(this,qu,this.CONNECTING),ws(this,lN,3e3),ws(this,t7,(n=r?.fetch)!=null?n:globalThis.fetch),ws(this,RP,(i=r?.withCredentials)!=null?i:!1),cm(this,lf,BZ).call(this)}get readyState(){return ji(this,qu)}get url(){return ji(this,iy).href}get withCredentials(){return ji(this,RP)}get onerror(){return ji(this,zT)}set onerror(e){ws(this,zT,e)}get onmessage(){return ji(this,LS)}set onmessage(e){ws(this,LS,e)}get onopen(){return ji(this,mI)}set onopen(e){ws(this,mI,e)}addEventListener(e,r,n){const i=r;super.addEventListener(e,i,n)}removeEventListener(e,r,n){const i=r;super.removeEventListener(e,i,n)}close(){ji(this,dT)&&clearTimeout(ji(this,dT)),ji(this,qu)!==this.CLOSED&&(ji(this,A_)&&ji(this,A_).abort(),ws(this,qu,this.CLOSED),ws(this,A_,void 0))}}qu=new WeakMap,iy=new WeakMap,DS=new WeakMap,RP=new WeakMap,t7=new WeakMap,lN=new WeakMap,dT=new WeakMap,cN=new WeakMap,A_=new WeakMap,MS=new WeakMap,zT=new WeakMap,LS=new WeakMap,mI=new WeakMap,lf=new WeakSet,BZ=function(){ws(this,qu,this.CONNECTING),ws(this,A_,new AbortController),ji(this,t7)(ji(this,iy),cm(this,lf,BEe).call(this)).then(ji(this,UZ)).catch(ji(this,$Z))},UZ=new WeakMap,$Z=new WeakMap,BEe=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...ji(this,cN)?{"Last-Event-ID":ji(this,cN)}:void 0},cache:"no-store",signal:(t=ji(this,A_))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},GZ=new WeakMap,zZ=new WeakMap,_I=function(t,e){var r;ji(this,qu)!==this.CLOSED&&ws(this,qu,this.CLOSED);const n=new PEe("error",{code:e,message:t});(r=ji(this,zT))==null||r.call(this,n),this.dispatchEvent(n)},qZ=function(t,e){var r;if(ji(this,qu)===this.CLOSED)return;ws(this,qu,this.CONNECTING);const n=new PEe("error",{code:e,message:t});(r=ji(this,zT))==null||r.call(this,n),this.dispatchEvent(n),ws(this,dT,setTimeout(ji(this,VZ),ji(this,lN)))},VZ=new WeakMap,OP.CONNECTING=0,OP.OPEN=1,OP.CLOSED=2;function qkt(){const t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}class Vkt extends Error{constructor(e,r,n){super(`SSE error: ${r}`),this.code=e,this.event=n}}class Hkt{constructor(e,r){this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=EMe(r?.fetch,r?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new mf("No auth provider");let e;try{e=await ky(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(e!=="AUTHORIZED")throw new mf;return await this._startOrAuth()}async _commonHeaders(){const e={};if(this._authProvider){const n=await this._authProvider.tokens();n&&(e.Authorization=`Bearer ${n.access_token}`)}this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const r=j9(this._requestInit?.headers);return new Headers({...e,...r})}_startOrAuth(){const e=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((r,n)=>{this._eventSource=new OP(this._url.href,{...this._eventSourceInit,fetch:async(i,a)=>{const s=await this._commonHeaders();s.set("Accept","text/event-stream");const o=await e(i,{...a,headers:s});if(o.status===401&&o.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:u}=e7(o);this._resourceMetadataUrl=l,this._scope=u}return o}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(r,n);return}const a=new Vkt(i.code,i.message,i);n(a),this.onerror?.(a)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const a=i;try{if(this._endpoint=new URL(a.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(s){n(s),this.onerror?.(s),this.close();return}r()}),this._eventSource.onmessage=i=>{const a=i;let s;try{s=oN.parse(JSON.parse(a.data))}catch(o){this.onerror?.(o);return}this.onmessage?.(s)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new mf("No auth provider");if(await ky(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new mf("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(e){if(!this._endpoint)throw new Error("Not connected");try{const r=await this._commonHeaders();r.set("content-type","application/json");const n={...this._requestInit,method:"POST",headers:r,body:JSON.stringify(e),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,n);if(!i.ok){const a=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:s,scope:o}=e7(i);if(this._resourceMetadataUrl=s,this._scope=o,await ky(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new mf;return this.send(e)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${a}`)}await i.body?.cancel()}catch(r){throw this.onerror?.(r),r}}setProtocolVersion(e){this._protocolVersion=e}}const Ykt="mcp";class Wkt{constructor(e){this._url=e}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,r)=>{this._socket=new WebSocket(this._url,Ykt),this._socket.onerror=n=>{const i="error"in n?n.error:new Error(`WebSocket error: ${JSON.stringify(n)}`);r(i),this.onerror?.(i)},this._socket.onopen=()=>{e()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=n=>{let i;try{i=oN.parse(JSON.parse(n.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(e){return new Promise((r,n)=>{if(!this._socket){n(new Error("Not connected"));return}this._socket?.send(JSON.stringify(e)),r()})}}class Oa{static createLog(e,r,n=zu.INFO,i){return{timestamp:new Date,phase:e,message:r,level:n,details:i}}static createDiagnosticRequestDetails(e,r,n,i,a){const s=WTt(e,r),o={url:HTt(e),method:YTt(e,r,n).toUpperCase(),credentials:r?.credentials??n.credentials,mode:r?.mode??n.mode,headers:aq(i,a,tq),body:KTt(s)},l=XTt(s);return l&&(o.jsonRpcMethods=l),o}static summarizeError(e){return e instanceof Error?{name:e.name,message:e.message,cause:e.cause instanceof Error?{name:e.cause.name,message:e.cause.message}:e.cause,stack:e.stack?.split(`
`).slice(0,6).join(`
`)}:{value:String(e)}}static getBrowserContext(e,r){if(!(typeof window>"u"))return{location:window.location.href,origin:window.location.origin,protocol:window.location.protocol,isSecureContext:window.isSecureContext,targetOrigin:e.origin,targetProtocol:e.protocol,sameOrigin:window.location.origin===e.origin,useProxy:r}}static getConnectionHints(e,r,n){const i=[],a=n instanceof Error?n.message:String(n),s=Object.keys(r.headers??{});return typeof window<"u"&&(window.location.protocol==="https:"&&e.protocol==="http:"&&!r.useProxy&&i.push("The page is running over HTTPS but the MCP server is HTTP. Browsers often block this as mixed content; enable the proxy or use HTTPS/WSS for the MCP server."),window.location.origin!==e.origin&&!r.useProxy&&i.push("This is a cross-origin browser request. If the server is reachable from curl or Node but not from the browser, missing CORS headers are the most likely cause.")),s.length>0&&i.push(`Custom request headers are configured (${s.join(", ")}). That triggers a CORS preflight, so the server must allow OPTIONS and include the matching Access-Control-Allow-Headers response.`),r.credentials&&r.credentials!=="omit"&&i.push("Credentials are enabled for this connection. Cross-origin credentialed requests need Access-Control-Allow-Credentials: true and cannot use a wildcard Access-Control-Allow-Origin."),a.includes("Failed to fetch")&&i.push('"Failed to fetch" is a browser-level network failure. Common causes are CORS rejection, mixed-content blocking, certificate/TLS errors, DNS failures, or nothing listening on the target port.'),i}static createDiagnosticFetch(e,r,n,i,a,s){let o=!0;const l=u=>{o&&s?.(u)};return{fetch:async(u,d)=>{const h=performance.now(),f=new Headers(n.headers);if(typeof Request<"u"&&u instanceof Request)for(const[_,v]of u.headers.entries())f.set(_,v);if(d?.headers)for(const[_,v]of new Headers(d.headers).entries())f.set(_,v);const p=this.createDiagnosticRequestDetails(u,d,n,f,Object.keys(r.headers??{})),{method:g,url:m}=p;l(this.createLog(Ia.INITIALIZING,`HTTP ${g} ${m}`,zu.INFO,{serverName:e,request:p}));try{const _=await fetch(u,{...n,...d,headers:f}),v=Math.round(performance.now()-h);return l(this.createLog(Ia.INITIALIZING,`HTTP ${_.status} ${g} ${m} (${v}ms)`,_.ok?zu.INFO:zu.WARN,{response:{url:m,status:_.status,statusText:_.statusText,headers:aq(_.headers,void 0,tq),durationMs:v}})),_}catch(_){const v=Math.round(performance.now()-h);throw l(this.createLog(Ia.ERROR,`HTTP ${g} ${m} failed: ${jTt(_)}`,zu.ERROR,{serverName:e,request:p,error:this.summarizeError(_),browser:this.getBrowserContext(i,a),hints:this.getConnectionHints(i,r,_),durationMs:v})),_}},disable:()=>{o=!1}}}static isSessionExpiredError(e){return e instanceof zv&&e.code===404}static createTransport(e,r,n){if(!r.url)throw new Error("MCP server configuration is missing url");const i=r.useProxy??!1,a={};if(r.headers&&(a.headers=r.useProxy?fSt(r.headers):r.headers),i&&(a.headers={...wB(),...a.headers}),r.credentials&&(a.credentials=r.credentials),r.transport===ju.WEBSOCKET){if(i)throw new Error("WebSocket transport is not supported when using CORS proxy. Use HTTP transport instead.");const u=new URL(r.url);return{transport:new Wkt(u),type:ju.WEBSOCKET,stopPhaseLogging:()=>{}}}const s=i?Rve(r.url):new URL(r.url),{fetch:o,disable:l}=this.createDiagnosticFetch(e,r,a,s,i,n);try{return{transport:new LEe(s,{requestInit:a,fetch:o}),type:ju.STREAMABLE_HTTP,stopPhaseLogging:l}}catch(u){console.warn("[MCPService] StreamableHTTP failed, trying SSE transport...",u);try{return{transport:new Hkt(s,{requestInit:a,fetch:o,eventSourceInit:{fetch:o}}),type:ju.SSE,stopPhaseLogging:l}}catch(d){const h=u instanceof Error?u.message:String(u),f=d instanceof Error?d.message:String(d);throw new Error(`Failed to create transport. StreamableHTTP: ${h}; SSE: ${f}`)}}}static extractServerInfo(e){if(e)return{name:e.name,version:e.version,title:e.title,description:e.description,websiteUrl:e.websiteUrl,icons:e.icons?.map(r=>({src:r.src,mimeType:r.mimeType,sizes:r.sizes,theme:r.theme}))}}static async connect(e,r,n,i,a,s){const o=performance.now(),l=n??qs.clientInfo,u=i??qs.capabilities;a?.(Ia.TRANSPORT_CREATING,this.createLog(Ia.TRANSPORT_CREATING,`Creating transport for ${r.url}`));const{transport:d,type:h,stopPhaseLogging:f}=this.createTransport(e,r,S=>a?.(S.phase,S));h===ju.WEBSOCKET&&(d.onclose=()=>{console.log(`[MCPService][${e}] WebSocket closed, notifying for reconnection`),a?.(Ia.DISCONNECTED,this.createLog(Ia.DISCONNECTED,"WebSocket connection closed"))}),a?.(Ia.TRANSPORT_READY,this.createLog(Ia.TRANSPORT_READY,`Transport ready (${h})`),{transportType:h});const p=new nkt({name:l.name,version:l.version??bDe},{capabilities:u,listChanged:s}),g=S=>{const T=S.message||String(S);S.name==="AbortError"||S instanceof DOMException||T.includes("SSE stream disconnected")||T.includes("stream locked by a reader")||T.includes("The operation was aborted")||console.error(`[MCPService][${e}] Protocol error after initialize:`,S)};p.onerror=S=>{a?.(Ia.ERROR,this.createLog(Ia.ERROR,`Protocol error: ${S.message}`,zu.ERROR,{error:this.summarizeError(S)}))},a?.(Ia.INITIALIZING,this.createLog(Ia.INITIALIZING,"Sending initialize request..."));try{await p.connect(d),f(),p.onerror=g}catch(S){p.onerror=g;const T=r.useProxy??!1?Rve(r.url):new URL(r.url);throw a?.(Ia.ERROR,this.createLog(Ia.ERROR,`Connection failed during initialize: ${S instanceof Error?S.message:String(S)}`,zu.ERROR,{error:this.summarizeError(S),config:{serverName:e,configuredUrl:r.url,effectiveUrl:T.href,transportType:h,useProxy:r.useProxy??!1,headers:aq(r.headers,Object.keys(r.headers??{}),tq),credentials:r.credentials},browser:this.getBrowserContext(T,r.useProxy??!1),hints:this.getConnectionHints(T,r,S)})),S}const m=p.getServerVersion(),_=p.getServerCapabilities(),v=p.getInstructions(),y=this.extractServerInfo(m);a?.(Ia.CAPABILITIES_EXCHANGED,this.createLog(Ia.CAPABILITIES_EXCHANGED,"Capabilities exchanged successfully",zu.INFO,{serverCapabilities:_,serverInfo:y}),{serverInfo:y,serverCapabilities:_,clientCapabilities:u,instructions:v}),a?.(Ia.LISTING_TOOLS,this.createLog(Ia.LISTING_TOOLS,"Listing available tools..."));const b=await this.listTools({client:p,transport:d,tools:[],serverName:e,transportType:h,connectionTimeMs:0,requestTimeoutMs:r.requestTimeoutMs??qs.requestTimeoutSeconds*1e3}),E=Math.round(performance.now()-o);return a?.(Ia.CONNECTED,this.createLog(Ia.CONNECTED,`Connection established with ${b.length} tools (${E}ms)`)),{client:p,transport:d,tools:b,serverName:e,transportType:h,serverInfo:y,serverCapabilities:_,clientCapabilities:u,protocolVersion:qs.protocolVersion,instructions:v,connectionTimeMs:E,requestTimeoutMs:r.requestTimeoutMs??qs.requestTimeoutSeconds*1e3}}static async disconnect(e){try{e.transport instanceof LEe&&await e.transport.terminateSession(),e.client.onerror=void 0,e.transport.onclose&&(e.transport.onclose=void 0),await e.client.close()}catch(r){console.warn(`[MCPService][${e.serverName}] Error during disconnect:`,r)}}static async listTools(e){try{return(await e.client.listTools()).tools??[]}catch(r){if(this.isSessionExpiredError(r))throw r;return console.warn(`[MCPService][${e.serverName}] Failed to list tools:`,r),[]}}static async listPrompts(e){try{return(await e.client.listPrompts()).prompts??[]}catch(r){if(this.isSessionExpiredError(r))throw r;return console.warn(`[MCPService][${e.serverName}] Failed to list prompts:`,r),[]}}static async getPrompt(e,r,n){try{return await e.client.getPrompt({name:r,arguments:n})}catch(i){throw console.error(`[MCPService][${e.serverName}] Failed to get prompt:`,i),i}}static async callTool(e,r,n){QTt(n);try{const i=await e.client.callTool({name:r.name,arguments:r.arguments},void 0,{signal:n,timeout:e.requestTimeoutMs});return{content:this.formatToolResult(i),isError:i.isError??!1}}catch(i){if(Td(i)||this.isSessionExpiredError(i))throw i;const a=i instanceof Error?i.message:String(i);throw new Error(`Tool "${r.name}" execution failed on server "${e.serverName}": ${a}`,{cause:i instanceof Error?i:void 0})}}static formatToolResult(e){const r=e.content;return Array.isArray(r)?r.map(n=>this.formatSingleContent(n)).filter(Boolean).join(`
`):""}static formatSingleContent(e){if(e.type===TP.TEXT&&e.text)return e.text;if(e.type===TP.IMAGE&&e.data)return hk(e.mimeType??m1t,e.data);if(e.type===TP.RESOURCE&&e.resource){const r=e.resource;return r.text?r.text:r.blob?r.blob:JSON.stringify(r)}return e.data&&e.mimeType?hk(e.mimeType,e.data):JSON.stringify(e)}static async complete(e,r,n){try{return(await e.client.complete({ref:r,argument:n})).completion}catch(i){return console.error("[MCPService] Failed to get completions:",i),null}}static async listResources(e,r){try{const n=await e.client.listResources(r?{cursor:r}:void 0);return{resources:n.resources??[],nextCursor:n.nextCursor}}catch(n){if(this.isSessionExpiredError(n))throw n;return console.warn(`[MCPService][${e.serverName}] Failed to list resources:`,n),{resources:[]}}}static async listAllResources(e){const r=[];let n;do{const i=await this.listResources(e,n);r.push(...i.resources),n=i.nextCursor}while(n);return r}static async listResourceTemplates(e,r){try{const n=await e.client.listResourceTemplates(r?{cursor:r}:void 0);return{resourceTemplates:n.resourceTemplates??[],nextCursor:n.nextCursor}}catch(n){if(this.isSessionExpiredError(n))throw n;return console.warn(`[MCPService][${e.serverName}] Failed to list resource templates:`,n),{resourceTemplates:[]}}}static async listAllResourceTemplates(e){const r=[];let n;do{const i=await this.listResourceTemplates(e,n);r.push(...i.resourceTemplates),n=i.nextCursor}while(n);return r}static async readResource(e,r){try{const n=await e.client.readResource({uri:r});return{contents:n.contents??[],_meta:n._meta}}catch(n){throw console.error(`[MCPService][${e.serverName}] Failed to read resource:`,n),n}}static async subscribeResource(e,r){try{await e.client.subscribeResource({uri:r}),console.log(`[MCPService][${e.serverName}] Subscribed to resource: ${r}`)}catch(n){throw console.error(`[MCPService][${e.serverName}] Failed to subscribe to resource:`,n),n}}static async unsubscribeResource(e,r){try{await e.client.unsubscribeResource({uri:r})}catch(n){throw console.error(`[MCPService][${e.serverName}] Failed to unsubscribe from resource:`,n),n}}static supportsResources(e){return e.serverCapabilities?.resources!==void 0}static supportsResourceSubscriptions(e){return!!e.serverCapabilities?.resources?.subscribe}}function Kkt(){return`${P1t}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}class jkt{#e=Me(Kr(new As));get _serverResources(){return w(this.#e)}set _serverResources(e){J(this.#e,e,!0)}#t=Me(Kr(new As));get _cachedResources(){return w(this.#t)}set _cachedResources(e){J(this.#t,e,!0)}#r=Me(Kr(new As));get _subscriptions(){return w(this.#r)}set _subscriptions(e){J(this.#r,e,!0)}#n=Me(Kr([]));get _attachments(){return w(this.#n)}set _attachments(e){J(this.#n,e,!0)}#i=Me(!1);get _isLoading(){return w(this.#i)}set _isLoading(e){J(this.#i,e,!0)}get serverResources(){return this._serverResources}get cachedResources(){return this._cachedResources}get subscriptions(){return this._subscriptions}get attachments(){return this._attachments}get isLoading(){return this._isLoading}get totalResourceCount(){let e=0;for(const r of this._serverResources.values())e+=r.resources.length;return e}get totalTemplateCount(){let e=0;for(const r of this._serverResources.values())e+=r.templates.length;return e}get attachmentCount(){return this._attachments.length}get hasAttachments(){return this._attachments.length>0}setServerResources(e,r,n){this._serverResources.set(e,{serverName:e,resources:r,templates:n,lastFetched:new Date,loading:!1,error:void 0}),console.log(`[MCPResources][${e}] Set ${r.length} resources, ${n.length} templates`)}setServerLoading(e,r){const n=this._serverResources.get(e);n?this._serverResources.set(e,{...n,loading:r}):this._serverResources.set(e,{serverName:e,resources:[],templates:[],loading:r,error:void 0})}setServerError(e,r){const n=this._serverResources.get(e);n?this._serverResources.set(e,{...n,loading:!1,error:r}):this._serverResources.set(e,{serverName:e,resources:[],templates:[],loading:!1,error:r})}getServerResources(e){return this._serverResources.get(e)}getAllResourceInfos(){const e=[];for(const[r,n]of this._serverResources)for(const i of n.resources)e.push({uri:i.uri,name:i.name,title:i.title,description:i.description,mimeType:i.mimeType,serverName:r,annotations:i.annotations,icons:i.icons});return e}getAllTemplateInfos(){const e=[];for(const[r,n]of this._serverResources)for(const i of n.templates)e.push({uriTemplate:i.uriTemplate,name:i.name,title:i.title,description:i.description,mimeType:i.mimeType,serverName:r,annotations:i.annotations,icons:i.icons});return e}clearServerResources(e){this._serverResources.delete(e);for(const[r,n]of this._cachedResources)n.resource.serverName===e&&this._cachedResources.delete(r);for(const[r,n]of this._subscriptions)n.serverName===e&&this._subscriptions.delete(r);console.log(`[MCPResources][${e}] Cleared all resources`)}cacheResourceContent(e,r){if(this._cachedResources.size>=w_t){const n=this._cachedResources.keys().next().value;n&&this._cachedResources.delete(n)}this._cachedResources.set(e.uri,{resource:e,content:r,fetchedAt:new Date,subscribed:this._subscriptions.has(e.uri)}),console.log(`[MCPResources] Cached content for: ${e.uri}`)}getCachedContent(e){const r=this._cachedResources.get(e);if(!r)return;if(Date.now()-r.fetchedAt.getTime()>x_t&&!r.subscribed){this._cachedResources.delete(e);return}return r}invalidateCache(e){this._cachedResources.delete(e),console.log(`[MCPResources] Invalidated cache for: ${e}`)}clearCache(){this._cachedResources.clear(),console.log("[MCPResources] Cleared all cached content")}addSubscription(e,r){this._subscriptions.set(e,{uri:e,serverName:r,subscribedAt:new Date});const n=this._cachedResources.get(e);n&&this._cachedResources.set(e,{...n,subscribed:!0}),console.log(`[MCPResources] Added subscription: ${e}`)}removeSubscription(e){this._subscriptions.delete(e);const r=this._cachedResources.get(e);r&&this._cachedResources.set(e,{...r,subscribed:!1}),console.log(`[MCPResources] Removed subscription: ${e}`)}isSubscribed(e){return this._subscriptions.has(e)}handleResourceUpdate(e){this.invalidateCache(e);const r=this._subscriptions.get(e);r&&this._subscriptions.set(e,{...r,lastUpdate:new Date}),console.log(`[MCPResources] Resource updated: ${e}`)}handleResourcesListChanged(e){const r=this._serverResources.get(e);r&&this._serverResources.set(e,{...r,lastFetched:void 0}),console.log(`[MCPResources][${e}] Resources list changed, needs refresh`)}addAttachment(e){const r={id:Kkt(),resource:e,loading:!0};return this._attachments=[...this._attachments,r],console.log(`[MCPResources] Added attachment: ${e.uri}`),r}updateAttachmentContent(e,r){this._attachments=this._attachments.map(n=>n.id===e?{...n,content:r,loading:!1,error:void 0}:n)}updateAttachmentError(e,r){this._attachments=this._attachments.map(n=>n.id===e?{...n,loading:!1,error:r}:n)}removeAttachment(e){this._attachments=this._attachments.filter(r=>r.id!==e),console.log(`[MCPResources] Removed attachment: ${e}`)}clearAttachments(){this._attachments=[],console.log("[MCPResources] Cleared all attachments")}getAttachment(e){return this._attachments.find(r=>r.id===e)}isAttached(e){const r=v4(e);return this._attachments.some(n=>n.resource.uri===e||v4(n.resource.uri)===r)}setLoading(e){this._isLoading=e}findResourceByUri(e){const r=v4(e);for(const[n,i]of this._serverResources){const a=i.resources.find(s=>s.uri===e)??i.resources.find(s=>v4(s.uri)===r);if(a)return{uri:a.uri,name:a.name,title:a.title,description:a.description,mimeType:a.mimeType,serverName:n,annotations:a.annotations,icons:a.icons}}}findServerForUri(e){for(const[r,n]of this._serverResources)if(n.resources.some(i=>i.uri===e))return r}clear(){this._serverResources.clear(),this._cachedResources.clear(),this._subscriptions.clear(),this._attachments=[],this._isLoading=!1,console.log("[MCPResources] Cleared all state")}formatAttachmentsForContext(){if(this._attachments.length===0)return"";const e=[];for(const r of this._attachments){if(r.error||!r.content||r.content.length===0)continue;const n=r.resource.title||r.resource.name,i=r.resource.serverName;for(const a of r.content)"text"in a&&a.text?e.push(`

--- Resource: ${n} (from ${i}) ---
${a.text}`):"blob"in a&&a.blob&&e.push(`

--- Resource: ${n} (from ${i}) ---
[${$me}: ${a.mimeType||Ume}]`)}return e.join("")}toMessageExtras(){const e=[];for(const r of this._attachments){if(r.error||!r.content||r.content.length===0)continue;const n=r.resource.title||r.resource.name,i=[];for(const a of r.content)"text"in a&&a.text?i.push(a.text):"blob"in a&&a.blob&&i.push(`[${$me}: ${a.mimeType||Ume}]`);i.length>0&&e.push({type:hi.MCP_RESOURCE,name:n,uri:r.resource.uri,serverName:r.resource.serverName,content:i.join(a1),mimeType:r.resource.mimeType})}return e}}const $i=new jkt,AMe=()=>$i.serverResources,Xkt=()=>$i.attachments,RMe=()=>$i.hasAttachments,Qkt=()=>$i.totalResourceCount,Zkt=()=>$i.isLoading;class Jkt{#e=Me(!1);get _isInitializing(){return w(this.#e)}set _isInitializing(e){J(this.#e,e,!0)}#t=Me(null);get _error(){return w(this.#t)}set _error(e){J(this.#t,e,!0)}#r=Me(0);get _toolCount(){return w(this.#r)}set _toolCount(e){J(this.#r,e,!0)}#n=Me(Kr([]));get _connectedServers(){return w(this.#n)}set _connectedServers(e){J(this.#n,e,!0)}#i=Me(Kr({}));get _healthChecks(){return w(this.#i)}set _healthChecks(e){J(this.#i,e,!0)}connections=new Map;toolsIndex=new Map;serverConfigs=new Map;reconnectingServers=new Set;configSignature=null;initPromise=null;activeFlowCount=0;get isProxyAvailable(){return Ya.props?.cors_proxy_enabled??!1}#a(e,r){return typeof e=="string"&&e.trim()?e.trim():`${Zse}-${r+1}`}#s(e){if(!e)return[];let r;if(typeof e=="string"){const n=e.trim();if(!n)return[];try{r=JSON.parse(n)}catch(i){return console.warn("[MCP] Failed to parse mcpServers JSON:",i),[]}}else r=e;return Array.isArray(r)?r.map((n,i)=>{const a=typeof n?.url=="string"?n.url.trim():"",s=typeof n?.headers=="string"?n.headers.trim():void 0;return{id:this.#a(n?.id,i),enabled:!!n?.enabled,url:a,name:n?.name,requestTimeoutSeconds:n?.requestTimeoutSeconds??qs.requestTimeoutSeconds,headers:s||void 0,useProxy:!!n?.useProxy}}):[]}#o(e,r=qs.connectionTimeoutMs){if(!e?.url)return;let n;if(e.headers)try{const i=JSON.parse(e.headers);typeof i=="object"&&i!==null&&!Array.isArray(i)&&(n=i)}catch{console.warn("[MCP] Failed to parse custom headers JSON:",e.headers)}return{url:e.url,transport:Lve(e.url),handshakeTimeoutMs:r,requestTimeoutMs:Math.round(e.requestTimeoutSeconds*1e3),headers:n,useProxy:e.useProxy}}#c(e,r){return r?.find(i=>i.serverId===e.id)?.enabled??!1}#l(e,r){const n=this.#s(e.mcpServers);if(!n.length)return;const i={};for(const[a,s]of n.entries()){if(!this.#c(s,r))continue;const o=this.#o(s);o&&(i[this.#a(s.id,a)]=o)}if(Object.keys(i).length!==0)return{protocolVersion:qs.protocolVersion,capabilities:qs.capabilities,clientInfo:qs.clientInfo,requestTimeoutMs:Math.round(qs.requestTimeoutSeconds*1e3),servers:i}}#d(e,r){return{server:{tools:e?.tools?{listChanged:e.tools.listChanged}:void 0,prompts:e?.prompts?{listChanged:e.prompts.listChanged}:void 0,resources:e?.resources?{subscribe:e.resources.subscribe,listChanged:e.resources.listChanged}:void 0,logging:!!e?.logging,completions:!!e?.completions,tasks:!!e?.tasks},client:{roots:r?.roots?{listChanged:r.roots.listChanged}:void 0,sampling:!!r?.sampling,elicitation:r?.elicitation?{form:!!r.elicitation.form,url:!!r.elicitation.url}:void 0,tasks:!!r?.tasks}}}get isInitializing(){return this._isInitializing}get isInitialized(){return this.connections.size>0}get error(){return this._error}get toolCount(){return this._toolCount}get connectedServerCount(){return this._connectedServers.length}get connectedServerNames(){return this._connectedServers}get isEnabled(){const e=this.#l(Vn());return e!=null&&Object.keys(e.servers).length>0}get availableTools(){return Array.from(this.toolsIndex.keys())}updateState(e){e.isInitializing!==void 0&&(this._isInitializing=e.isInitializing),e.error!==void 0&&(this._error=e.error),e.toolCount!==void 0&&(this._toolCount=e.toolCount),e.connectedServers!==void 0&&(this._connectedServers=e.connectedServers)}updateHealthCheck(e,r){this._healthChecks={...this._healthChecks,[e]:r}}getHealthCheckState(e){return this._healthChecks[e]??{status:oa.IDLE}}hasHealthCheck(e){return e in this._healthChecks&&this._healthChecks[e].status!==oa.IDLE}clearHealthCheck(e){const{[e]:r,...n}=this._healthChecks;this._healthChecks=n}clearAllHealthChecks(){this._healthChecks={}}clearError(){this._error=null}getServers(){return Pve(Vn().mcpServers)}getConnections(){return this.connections}getServerLabel(e){const r=this.getHealthCheckState(e.id);return r?.status===oa.SUCCESS&&(r.serverInfo?.title||r.serverInfo?.name||e.name)||e.url}getServerById(e){return this.getServers().find(r=>r.id===e)}getServerDisplayName(e){const r=this.getServerById(e);return r?this.getServerLabel(r):e}#u(e){try{return e.startsWith(_u.DATA)?!0:new URL(e).protocol===_u.HTTPS}catch{return!1}}#p(e,r=!1){if(!e?.length)return null;const n=e.filter(o=>!(!o.src||!this.#u(o.src)||o.mimeType&&!_1t.has(o.mimeType)));if(n.length===0)return null;const i=r?Nf.DARK:Nf.LIGHT,a=n.find(o=>o.theme===i);if(a)return a.src;const s=n.filter(o=>!o.theme);return s.length===S1t?s[r?1:0].src:s.length>0?s[0].src:n[0].src}getServerFavicon(e){const r=this.getServerById(e);if(!r)return null;const n=ck.current===Nf.DARK,i=this.getHealthCheckState(e);if(i.status===oa.SUCCESS&&i.serverInfo?.icons){const s=this.#p(i.serverInfo.icons,n);if(s)return s}const a=this.#g(r.url);return a||null}#g(e){try{const r=new URL(e),n=gSt(r);if(!n)return null;const i=`${r.protocol}//${n}`,a=["favicon.ico","favicon.svg","favicon.png"];for(const s of a){const o=`${i}/${s}`;if(this.#u(o))return o}}catch{}return null}isAnyServerLoading(){return this.getServers().some(e=>{const r=this.getHealthCheckState(e.id);return r.status===oa.IDLE||r.status===oa.CONNECTING})}getServersSorted(){const e=this.getServers();return this.isAnyServerLoading()?e:[...e].sort((r,n)=>this.getServerLabel(r).localeCompare(this.getServerLabel(n)))}addServer(e){const r=this.getServers(),n={id:e.id||(Up()??`server-${Date.now()}`),enabled:e.enabled,url:e.url.trim(),name:e.name,headers:e.headers?.trim()||void 0,requestTimeoutSeconds:Number(Vn().mcpRequestTimeoutSeconds)||qs.requestTimeoutSeconds,useProxy:e.useProxy};Oc.updateConfig(ar.MCP_SERVERS,JSON.stringify([...r,n]))}updateServer(e,r){const n=this.getServers();Oc.updateConfig(ar.MCP_SERVERS,JSON.stringify(n.map(i=>i.id===e?{...i,...r}:i)))}removeServer(e){const r=this.getServers();Oc.updateConfig(ar.MCP_SERVERS,JSON.stringify(r.filter(n=>n.id!==e))),this.clearHealthCheck(e)}hasAvailableServers(){return Pve(Vn().mcpServers).some(e=>e.enabled&&e.url.trim())}hasEnabledServers(e){return!!this.#l(Vn(),e)}getEnabledServersForConversation(e){return this.getServers().filter(r=>this.#c(r,e))}async ensureInitialized(e){const r=this.#l(Vn(),e),n=r?JSON.stringify(r):null;return n?this.isInitialized&&this.configSignature===n?!0:this.initPromise&&this.configSignature===n?this.initPromise:((this.connections.size>0||this.initPromise)&&await this.shutdown(),this.initialize(n,r)):(await this.shutdown(),!1)}async initialize(e,r){this.updateState({isInitializing:!0,error:null}),this.configSignature=e;const n=Object.entries(r.servers);return n.length===0?(this.updateState({isInitializing:!1,toolCount:0,connectedServers:[]}),!1):(this.initPromise=this.doInitialize(e,r,n),this.initPromise)}async doInitialize(e,r,n){const i=r.clientInfo??qs.clientInfo,a=r.capabilities??qs.capabilities,s=await Promise.allSettled(n.map(async([l,u])=>{this.serverConfigs.set(l,u);const d=this.createListChangedHandlers(l),h=await Oa.connect(l,u,i,a,f=>{f===Ia.DISCONNECTED&&(console.log(`[MCPStore][${l}] Connection lost, starting auto-reconnect`),this.autoReconnect(l))},d);return{name:l,connection:h}}));if(this.configSignature!==e){for(const l of s)l.status==="fulfilled"&&await Oa.disconnect(l.value.connection).catch(console.warn);return!1}for(const l of s)if(l.status==="fulfilled"){const{name:u,connection:d}=l.value;this.connections.set(u,d);for(const h of d.tools)this.toolsIndex.has(h.name)&&console.warn(`[MCPStore] Tool name conflict: "${h.name}" exists in "${this.toolsIndex.get(h.name)}" and "${u}". Using tool from "${u}".`),this.toolsIndex.set(h.name,u)}else console.error("[MCPStore] Failed to connect:",l.reason);return this.connections.size===0&&n.length>0?(this.updateState({isInitializing:!1,error:"All MCP server connections failed",toolCount:0,connectedServers:[]}),this.initPromise=null,!1):(this.updateState({isInitializing:!1,error:null,toolCount:this.toolsIndex.size,connectedServers:Array.from(this.connections.keys())}),this.initPromise=null,!0)}createListChangedHandlers(e){return{tools:{onChanged:(r,n)=>{if(r){console.warn(`[MCPStore][${e}] Tools list changed error:`,r);return}this.handleToolsListChanged(e,n??[])}},prompts:{onChanged:r=>{if(r){console.warn(`[MCPStore][${e}] Prompts list changed error:`,r);return}}}}}handleToolsListChanged(e,r){const n=this.connections.get(e);if(n){for(const[i,a]of this.toolsIndex.entries())a===e&&this.toolsIndex.delete(i);n.tools=r;for(const i of r)this.toolsIndex.has(i.name)&&console.warn(`[MCPStore] Tool name conflict after list change: "${i.name}" exists in "${this.toolsIndex.get(i.name)}" and "${e}". Using tool from "${e}".`),this.toolsIndex.set(i.name,e);this.updateState({toolCount:this.toolsIndex.size})}}acquireConnection(){this.activeFlowCount++}async releaseConnection(e=!1){this.activeFlowCount=Math.max(0,this.activeFlowCount-1),e&&this.activeFlowCount===0&&await this.shutdown()}getActiveFlowCount(){return this.activeFlowCount}async shutdown(){this.initPromise&&(await this.initPromise.catch(()=>{}),this.initPromise=null),this.connections.size!==0&&(await Promise.all(Array.from(this.connections.values()).map(e=>Oa.disconnect(e).catch(r=>console.warn(`[MCPStore] Error disconnecting ${e.serverName}:`,r)))),this.connections.clear(),this.toolsIndex.clear(),this.serverConfigs.clear(),this.configSignature=null,this.updateState({isInitializing:!1,error:null,toolCount:0,connectedServers:[]}))}async reconnectServer(e){const r=this.serverConfigs.get(e);if(!r)throw new Error(`[MCPStore] No config found for ${e}, cannot reconnect`);const n=this.connections.get(e);n&&(await Oa.disconnect(n).catch(console.warn),this.connections.delete(e)),console.log(`[MCPStore][${e}] Session expired, reconnecting with fresh session...`);const i=this.createListChangedHandlers(e),a=await Oa.connect(e,r,qs.clientInfo,qs.capabilities,s=>{s===Ia.DISCONNECTED&&(console.log(`[MCPStore][${e}] Connection lost, starting auto-reconnect`),this.autoReconnect(e))},i);this.connections.set(e,a);for(const s of a.tools)this.toolsIndex.set(s.name,e);console.log(`[MCPStore][${e}] Session recovered successfully`)}async autoReconnect(e){if(this.reconnectingServers.has(e)){console.log(`[MCPStore][${e}] Reconnection already in progress, skipping`);return}const r=this.serverConfigs.get(e);if(!r){console.error(`[MCPStore] No config found for ${e}, cannot reconnect`);return}this.reconnectingServers.add(e);let n=y1t,i=!1;try{for(;;){await new Promise(a=>setTimeout(a,n)),console.log(`[MCPStore][${e}] Auto-reconnecting...`);try{const a=new Promise((u,d)=>setTimeout(()=>d(new Error(`Reconnect attempt timed out after ${Bme}ms`)),Bme));i=!1;const s=this.createListChangedHandlers(e),o=Oa.connect(e,r,qs.clientInfo,qs.capabilities,u=>{u===Ia.DISCONNECTED&&(this.reconnectingServers.has(e)?i=!0:(console.log(`[MCPStore][${e}] Connection lost, restarting auto-reconnect`),this.autoReconnect(e)))},s),l=await Promise.race([o,a]);this.connections.set(e,l);for(const u of l.tools)this.toolsIndex.set(u.name,e);console.log(`[MCPStore][${e}] Reconnected successfully`);break}catch(a){console.warn(`[MCPStore][${e}] Reconnection failed:`,a),n=Math.min(n*b1t,E1t)}}}finally{this.reconnectingServers.delete(e),i&&(console.log(`[MCPStore][${e}] Deferred disconnect detected, restarting auto-reconnect`),this.autoReconnect(e))}}getToolDefinitionsForLLM(){const e=[];for(const r of this.connections.values())for(const n of r.tools){const i=n.inputSchema??{type:FT.OBJECT,properties:{},required:[]};e.push({type:aR.FUNCTION,function:{name:n.name,description:n.description,parameters:this.normalizeSchemaProperties(i)}})}return e}normalizeSchemaProperties(e){if(!e||typeof e!="object")return e;const r={...e};if(r.properties&&typeof r.properties=="object"){const n=r.properties,i={};for(const[a,s]of Object.entries(n)){if(!s||typeof s!="object"){i[a]=s;continue}const o={...s};if(!o.type&&o.default!==void 0){const l=o.default;typeof l=="string"?o.type="string":typeof l=="number"?o.type=Number.isInteger(l)?"integer":"number":typeof l=="boolean"?o.type="boolean":Array.isArray(l)?o.type="array":typeof l=="object"&&l!==null&&(o.type="object")}o.properties&&Object.assign(o,this.normalizeSchemaProperties(o)),o.items&&typeof o.items=="object"&&(o.items=this.normalizeSchemaProperties(o.items)),i[a]=o}r.properties=i}return r}getToolNames(){return Array.from(this.toolsIndex.keys())}hasTool(e){return this.toolsIndex.has(e)}getToolServer(e){return this.toolsIndex.get(e)}hasPromptsSupport(){for(const e of this.connections.values())if(e.serverCapabilities?.prompts)return!0;return!1}hasPromptsCapability(e){if(e!==void 0){const r=new Set(e.filter(n=>n.enabled).map(n=>n.serverId));if(r.size===0)return!1;for(const[n,i]of Object.entries(this._healthChecks))if(r.has(n)&&i.status===oa.SUCCESS&&i.capabilities?.server?.prompts!==void 0)return!0;for(const[n,i]of this.connections)if(r.has(n)&&i.serverCapabilities?.prompts)return!0;return!1}for(const r of Object.values(this._healthChecks))if(r.status===oa.SUCCESS&&r.capabilities?.server?.prompts!==void 0)return!0;for(const r of this.connections.values())if(r.serverCapabilities?.prompts)return!0;return!1}async getAllPrompts(){const e=[];for(const[r,n]of this.connections){if(!n.serverCapabilities?.prompts)continue;const i=await Oa.listPrompts(n);for(const a of i)e.push({name:a.name,description:a.description,title:a.title,serverName:r,arguments:a.arguments?.map(s=>({name:s.name,description:s.description,required:s.required}))})}return e}async getPrompt(e,r,n){const i=this.connections.get(e);if(!i)throw new Error(`Server "${e}" not found for prompt "${r}"`);return Oa.getPrompt(i,r,n)}async executeTool(e,r){const n=e.function.name,i=this.toolsIndex.get(n);if(!i)throw new Error(`Unknown tool: ${n}`);const a=this.connections.get(i);if(!a)throw new Error(`Server "${i}" is not connected`);const s=this.parseToolArguments(e.function.arguments);try{return await Oa.callTool(a,{name:n,arguments:s},r)}catch(o){if(Oa.isSessionExpiredError(o)){await this.reconnectServer(i);const l=this.connections.get(i);if(!l)throw new Error(`Failed to reconnect to "${i}"`);return Oa.callTool(l,{name:n,arguments:s},r)}throw o}}async executeToolByName(e,r,n){const i=this.toolsIndex.get(e);if(!i)throw new Error(`Unknown tool: ${e}`);const a=this.connections.get(i);if(!a)throw new Error(`Server "${i}" is not connected`);try{return await Oa.callTool(a,{name:e,arguments:r},n)}catch(s){if(Oa.isSessionExpiredError(s)){await this.reconnectServer(i);const o=this.connections.get(i);if(!o)throw new Error(`Failed to reconnect to "${i}"`);return Oa.callTool(o,{name:e,arguments:r},n)}throw s}}parseToolArguments(e){if(typeof e=="string"){const r=e.trim();if(r==="")return{};try{const n=JSON.parse(r);if(typeof n!="object"||n===null||Array.isArray(n))throw new Error(`Tool arguments must be an object, got ${Array.isArray(n)?"array":typeof n}`);return n}catch(n){throw new Error(`Failed to parse tool arguments as JSON: ${n.message}`)}}if(typeof e=="object"&&e!==null&&!Array.isArray(e))return e;throw new Error(`Invalid tool arguments type: ${typeof e}`)}async getPromptCompletions(e,r,n,i){const a=this.connections.get(e);return a?a.serverCapabilities?.completions?Oa.complete(a,{type:JQ.PROMPT,name:r},{name:n,value:i}):null:(console.warn(`[MCPStore] Server "${e}" is not connected`),null)}async getResourceCompletions(e,r,n,i){const a=this.connections.get(e);return a?a.serverCapabilities?.completions?Oa.complete(a,{type:JQ.RESOURCE,uri:r},{name:n,value:i}):null:(console.warn(`[MCPStore] Server "${e}" is not connected`),null)}async readResourceByUri(e,r){const n=this.connections.get(e);if(!n)return console.error(`[MCPStore] No connection found for server: ${e}`),null;try{return(await Oa.readResource(n,r)).contents}catch(i){return console.error(`[MCPStore] Failed to read resource ${r}:`,i),null}}parseHeaders(e){if(e?.trim())try{const r=JSON.parse(e);if(typeof r=="object"&&r!==null&&!Array.isArray(r))return r}catch{console.warn("[MCPStore] Failed to parse custom headers JSON:",e)}}async runHealthChecksForServers(e,r=!0,n=!1){const i=r?e.filter(s=>!this.hasHealthCheck(s.id)&&s.url.trim()):e.filter(s=>s.url.trim());if(i.length===0)return;const a=5;for(let s=0;s<i.length;s+=a){const o=i.slice(s,s+a);await Promise.allSettled(o.map(l=>this.runHealthCheck(l,n)))}}getExistingConnection(e){return this.connections.get(e)}async runHealthCheck(e,r=!1){const n=this.connections.get(e.id);if(n)try{const u=await Oa.listTools(n),d=this.#d(n.serverCapabilities,n.clientCapabilities);this.updateHealthCheck(e.id,{status:oa.SUCCESS,tools:u.map(h=>({name:h.name,description:h.description,title:h.title})),serverInfo:n.serverInfo,capabilities:d,transportType:n.transportType,protocolVersion:n.protocolVersion,instructions:n.instructions,connectionTimeMs:n.connectionTimeMs,logs:[]});return}catch(u){console.warn(`[MCPStore] Failed to reuse connection for ${e.id}, creating new one:`,u),this.connections.delete(e.id)}const i=e.url.trim(),a=[];let s=Ia.IDLE;if(!i){this.updateHealthCheck(e.id,{status:oa.ERROR,message:"Please enter a server URL first.",logs:[]});return}this.updateHealthCheck(e.id,{status:oa.CONNECTING,phase:Ia.TRANSPORT_CREATING,logs:[]});const o=Math.round(e.requestTimeoutSeconds*1e3),l=this.parseHeaders(e.headers);try{const u={url:i,transport:Lve(i),handshakeTimeoutMs:qs.connectionTimeoutMs,requestTimeoutMs:o,headers:l,useProxy:e.useProxy};this.serverConfigs.set(e.id,u);const d=await Oa.connect(e.id,u,qs.clientInfo,qs.capabilities,(p,g)=>{s=p,a.push(g),this.updateHealthCheck(e.id,{status:oa.CONNECTING,phase:p,logs:[...a]}),p===Ia.DISCONNECTED&&r&&(console.log(`[MCPStore][${e.id}] Connection lost during health check, starting auto-reconnect`),this.autoReconnect(e.id))}),h=d.tools.map(p=>({name:p.name,description:p.description,title:p.title})),f=this.#d(d.serverCapabilities,d.clientCapabilities);this.updateHealthCheck(e.id,{status:oa.SUCCESS,tools:h,serverInfo:d.serverInfo,capabilities:f,transportType:d.transportType,protocolVersion:d.protocolVersion,instructions:d.instructions,connectionTimeMs:d.connectionTimeMs,logs:a}),r&&e.enabled?this.promoteHealthCheckToConnection(e.id,d):await Oa.disconnect(d)}catch(u){const d=u instanceof Error?u.message:"Unknown error occurred";a.at(-1)?.phase!==Ia.ERROR&&a.push({timestamp:new Date,phase:Ia.ERROR,message:`Connection failed: ${d}`,level:zu.ERROR}),this.updateHealthCheck(e.id,{status:oa.ERROR,message:d,phase:s,logs:a})}}promoteHealthCheckToConnection(e,r){for(const n of r.tools)this.toolsIndex.has(n.name)&&console.warn(`[MCPStore] Tool name conflict during promotion: "${n.name}" exists in "${this.toolsIndex.get(n.name)}" and "${e}". Using tool from "${e}".`),this.toolsIndex.set(n.name,e);this.connections.set(e,r),this.updateState({toolCount:this.toolsIndex.size,connectedServers:Array.from(this.connections.keys())})}getServersStatus(){const e=[];for(const[r,n]of this.connections)e.push({name:r,isConnected:!0,toolCount:n.tools.length,error:void 0});return e}getServerInstructions(){const e=[];for(const[r,n]of this.connections)n.instructions&&e.push({serverName:r,serverTitle:n.serverInfo?.title||n.serverInfo?.name,instructions:n.instructions});return e}getHealthCheckInstructions(){const e=[];for(const[r,n]of Object.entries(this._healthChecks))n.status===oa.SUCCESS&&n.instructions&&e.push({serverId:r,serverTitle:n.serverInfo?.title||n.serverInfo?.name,instructions:n.instructions});return e}hasServerInstructions(){for(const e of this.connections.values())if(e.instructions)return!0;return!1}hasResourcesCapability(e){if(e!==void 0){const r=new Set(e.filter(n=>n.enabled).map(n=>n.serverId));if(r.size===0)return!1;for(const[n,i]of Object.entries(this._healthChecks))if(r.has(n)&&i.status===oa.SUCCESS&&i.capabilities?.server?.resources!==void 0)return!0;for(const[n,i]of this.connections)if(r.has(n)&&Oa.supportsResources(i))return!0;return!1}for(const r of Object.values(this._healthChecks))if(r.status===oa.SUCCESS&&r.capabilities?.server?.resources!==void 0)return!0;for(const r of this.connections.values())if(Oa.supportsResources(r))return!0;return!1}getServersWithResources(){const e=[];for(const[r,n]of this.connections)Oa.supportsResources(n)&&!e.includes(r)&&e.push(r);for(const[r,n]of Object.entries(this._healthChecks))!e.includes(r)&&n.status===oa.SUCCESS&&n.capabilities?.server?.resources!==void 0&&e.push(r);return e}async fetchAllResources(e=!1){const r=this.getServersWithResources();if(r.length!==0){if(!e&&r.every(i=>{const a=$i.getServerResources(i);return!a||!a.lastFetched?!1:Date.now()-a.lastFetched.getTime()<pDe})){console.log("[MCPStore] Using cached resources");return}$i.setLoading(!0);try{await Promise.all(r.map(n=>this.fetchServerResources(n)))}finally{$i.setLoading(!1)}}}async fetchServerResources(e){const r=this.connections.get(e);if(!r){console.warn(`[MCPStore] No connection found for server: ${e}`);return}if(Oa.supportsResources(r)){$i.setServerLoading(e,!0);try{const[n,i]=await Promise.all([Oa.listAllResources(r),Oa.listAllResourceTemplates(r)]);$i.setServerResources(e,n,i)}catch(n){const i=n instanceof Error?n.message:String(n);$i.setServerError(e,i),console.error(`[MCPStore][${e}] Failed to fetch resources:`,n)}}}async readResource(e){const r=$i.getCachedContent(e);if(r)return r.content;const n=$i.findServerForUri(e);if(!n)return console.error(`[MCPStore] No server found for resource URI: ${e}`),null;const i=this.connections.get(n);if(!i)return console.error(`[MCPStore] No connection found for server: ${n}`),null;try{const a=await Oa.readResource(i,e),s=$i.findResourceByUri(e);return s&&$i.cacheResourceContent(s,a.contents),a.contents}catch(a){return console.error(`[MCPStore] Failed to read resource ${e}:`,a),null}}async subscribeToResource(e){const r=$i.findServerForUri(e);if(!r)return console.error(`[MCPStore] No server found for resource URI: ${e}`),!1;const n=this.connections.get(r);if(!n)return console.error(`[MCPStore] No connection found for server: ${r}`),!1;if(!Oa.supportsResourceSubscriptions(n))return!1;try{return await Oa.subscribeResource(n,e),$i.addSubscription(e,r),!0}catch(i){return console.error(`[MCPStore] Failed to subscribe to resource ${e}:`,i),!1}}async unsubscribeFromResource(e){const r=$i.findServerForUri(e);if(!r)return console.error(`[MCPStore] No server found for resource URI: ${e}`),!1;const n=this.connections.get(r);if(!n)return console.error(`[MCPStore] No connection found for server: ${r}`),!1;try{return await Oa.unsubscribeResource(n,e),$i.removeSubscription(e),!0}catch(i){return console.error(`[MCPStore] Failed to unsubscribe from resource ${e}:`,i),!1}}async attachResource(e){const r=$i.findResourceByUri(e);if(!r)return console.error(`[MCPStore] Resource not found: ${e}`),null;if($i.isAttached(e))return null;const n=$i.addAttachment(r);try{const i=await this.readResource(e);i?$i.updateAttachmentContent(n.id,i):$i.updateAttachmentError(n.id,"Failed to read resource")}catch(i){const a=i instanceof Error?i.message:String(i);$i.updateAttachmentError(n.id,a)}return $i.getAttachment(n.id)??null}removeResourceAttachment(e){$i.removeAttachment(e)}clearResourceAttachments(){$i.clearAttachments()}getResourceContextForChat(){return $i.formatAttachmentsForContext()}consumeResourceAttachmentsAsExtras(){const e=$i.toMessageExtras();return e.length>0&&$i.clearAttachments(),e}}const Br=new Jkt;var e3t=ae('<button type="button"><!> <span class="max-w-[150px] truncate text-xs"> </span> <!></button>'),t3t=ae('<img class="h-3 w-3 shrink-0 rounded-sm"/>'),r3t=ae('<div class="flex items-center gap-1 text-xs"><!> <span class="truncate"> </span></div>'),n3t=ae("<!> <!>",1);function OMe(t,e){We(e,!0);const r=ee(()=>HDe(e.attachment.resource.mimeType,e.attachment.resource.uri)),n=ee(()=>Br.getServerDisplayName(e.attachment.resource.serverName)),i=ee(()=>Br.getServerFavicon(e.attachment.resource.serverName));function a(l){return l.error?"border-red-500/50 bg-red-500/10":(l.loading,"border-border/50 bg-muted/30")}var s=Ee(),o=ne(s);Le(o,()=>mo,(l,u)=>{u(l,{children:(d,h)=>{var f=n3t(),p=ne(f);Le(p,()=>po,(m,_)=>{_(m,{children:(v,y)=>{var b=e3t(),E=de(b);{var S=L=>{Ao(L,{class:"h-3 w-3 animate-spin text-muted-foreground"})},T=L=>{Gse(L,{class:"h-3 w-3 text-red-500"})},C=L=>{var F=Ee(),O=ne(F);Le(O,()=>w(r),(D,M)=>{M(D,{class:"h-3 w-3 text-muted-foreground"})}),H(L,F)};Re(E,L=>{e.attachment.loading?L(S):e.attachment.error?L(T,1):L(C,-1)})}var x=he(E,2),A=de(x,!0);oe(x);var R=he(x,2);{var I=L=>{as(L,{class:"-my-2 -mr-1.5 bg-transparent",get icon(){return Xd},iconSize:"h-2 w-2",onclick:()=>e.onRemove?.(e.attachment.id),stopPropagationOnClick:!0,tooltip:"Remove"})};Re(R,L=>{e.onRemove&&L(I)})}oe(b),at((L,F)=>{lr(b,1,L),b.disabled=!e.onclick,yt(A,F)},[()=>Fn(["flex flex-shrink-0 items-center gap-1.5 rounded-md border px-2 py-0.75 text-sm transition-colors",a(e.attachment),e.onclick&&"cursor-pointer hover:bg-muted/50",e.class]),()=>vZ(e.attachment.resource)]),tn("click",b,function(...L){e.onclick?.apply(this,L)}),H(v,b)},$$slots:{default:!0}})});var g=he(p,2);Le(g,()=>go,(m,_)=>{_(m,{children:(v,y)=>{var b=r3t(),E=de(b);{var S=x=>{var A=t3t();at(()=>{Pr(A,"alt",e.attachment.resource.serverName),Pr(A,"src",w(i))}),Ji("error",A,R=>{R.currentTarget.style.display="none"}),Zm(A),H(x,A)};Re(E,x=>{w(i)&&x(S)})}var T=he(E,2),C=de(T,!0);oe(T),oe(b),at(()=>yt(C,w(n))),H(v,b)},$$slots:{default:!0}})}),H(d,f)},$$slots:{default:!0}})}),H(t,s),Ke()}Wi(["click"]);const UEe=(t,e=Tt)=>{var r=Ee(),n=ne(r);{var i=a=>{var s=l3t(),o=de(s,!0);oe(s),at(()=>yt(o,e())),H(a,s)};Re(n,a=>{e()&&a(i)})}H(t,r)};var i3t=ae("<div></div>"),a3t=ae('<div class="relative"><div> </div> <!></div>'),s3t=ae('<div class="absolute top-2 right-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!></div>'),o3t=ae('<div class="flex h-8 w-8 items-center justify-center rounded bg-primary/10 text-xs font-medium text-primary"><!></div>'),l3t=ae('<span class="text-xs text-muted-foreground"> </span>'),c3t=ae('<div class="flex items-start gap-3"><div class="flex min-w-0 flex-1 flex-col items-start text-left"><span class="w-full truncate text-sm font-medium text-foreground"> </span> <!> <!></div></div>'),u3t=ae('<span class="mb-3 block truncate text-sm font-medium text-foreground"> </span> <!>',1),d3t=ae('<button type="button"><!> <div><!></div></button>'),h3t=ae('<button type="button"><!> <div class="flex flex-col items-start gap-0.5"><span> </span> <!></div> <!></button>');function $Ee(t,e){We(e,!0);const r=(b,E=Tt)=>{var S=a3t(),T=de(S),C=de(T,!0);oe(T);var x=he(T,2);{var A=R=>{var I=i3t();at(()=>lr(I,1,`pointer-events-none absolute right-0 bottom-0 left-0 h-4 bg-gradient-to-t from-muted to-transparent ${s()?"h-6":""}`)),H(R,I)};Re(x,R=>{E().length>150&&R(A)})}oe(S),at(R=>{lr(T,1,`font-mono text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground ${s()?"":"max-h-3rem line-height-1.2"}`),yt(C,R)},[()=>zDe(E())]),H(b,S)},n=b=>{var E=s3t(),S=de(E);as(S,{get icon(){return Xd},tooltip:"Remove",stopPropagationOnClick:!0,onclick:()=>e.onRemove?.(e.id)}),oe(E),H(b,E)},i=b=>{var E=o3t(),S=de(E);{var T=A=>{EB(A,{class:"h-4 w-4 text-white/70"})},C=A=>{oR(A,{class:"h-4 w-4 text-white/70"})},x=A=>{var R=fr();at(()=>yt(R,w(p))),H(A,R)};Re(S,A=>{w(l)?A(T):w(u)?A(C,1):A(x,-1)})}oe(E),H(b,E)};let a=ue(e,"class",3,""),s=ue(e,"readonly",3,!1),o=ee(()=>roe(e.attachment,e.uploadedFile)),l=ee(()=>mZ(e.attachment,e.uploadedFile)),u=ee(()=>_Z(e.attachment,e.uploadedFile)),d=ee(()=>w(o)&&!!e.textContent),h=ee(()=>FDe(e.attachment,e.uploadedFile)),f=ee(()=>w(h)&&!!e.textContent),p=ee(()=>{if(e.uploadedFile?.type)return g4(e.uploadedFile.type);if(e.attachment){if("mimeType"in e.attachment&&e.attachment.mimeType)return g4(e.attachment.mimeType);if(e.attachment.type)return g4(e.attachment.type)}return g4(e.name)}),g=ee(()=>e.attachment?.type===hi.PDF?e.attachment.processedAsImages?"Sent as Image":"Sent as Text":null);var m=Ee(),_=ne(m);{var v=b=>{var E=d3t(),S=de(E);{var T=I=>{n(I)};Re(S,I=>{s()||I(T)})}var C=he(S,2),x=de(C);{var A=I=>{var L=c3t(),F=de(L),O=de(F),D=de(O,!0);oe(O);var M=he(O,2);{let $=ee(()=>w(g)||(e.size?F9(e.size):void 0));UEe(M,()=>w($))}var P=he(M,2);{var N=$=>{r($,()=>e.textContent)};Re(P,$=>{e.textContent&&$(N)})}oe(F),oe(L),at(()=>yt(D,e.name)),H(I,L)},R=I=>{var L=u3t(),F=ne(L),O=de(F,!0);oe(F);var D=he(F,2);{var M=P=>{r(P,()=>e.textContent)};Re(D,P=>{e.textContent&&P(M)})}at(()=>yt(O,e.name)),H(I,L)};Re(x,I=>{s()?I(A):I(R,-1)})}oe(C),oe(E),at(()=>{Pr(E,"aria-label",s()?`Preview ${e.name}`:void 0),lr(E,1,`rounded-lg border border-border bg-muted p-3 ${a()??""} cursor-pointer ${s()?"w-full max-w-2xl transition-shadow hover:shadow-md":`group relative text-left ${e.textContent?"max-h-24 max-w-72":"max-w-36"}`} overflow-hidden`),lr(C,1,Fn([!s()&&"pr-8","overflow-hidden"]))}),tn("click",E,function(...I){e.onclick?.apply(this,I)}),H(b,E)},y=b=>{var E=h3t(),S=de(E);i(S);var T=he(S,2),C=de(T),x=de(C,!0);oe(C);var A=he(C,2);{let L=ee(()=>w(g)||(e.size?F9(e.size):void 0));UEe(A,()=>w(L))}oe(T);var R=he(T,2);{var I=L=>{n(L)};Re(R,L=>{s()||L(I)})}oe(E),at(()=>{lr(E,1,`group flex items-center gap-3 rounded-lg border border-border bg-muted p-3 ${a()??""} relative`),lr(C,1,`max-w-24 truncate text-sm font-medium text-foreground ${s()?"":"group-hover:pr-6"} md:max-w-32`),yt(x,e.name)}),tn("click",E,function(...L){e.onclick?.apply(this,L)}),H(b,E)};Re(_,b=>{w(f)||w(d)?b(v):b(y,-1)})}H(t,m),Ke()}Wi(["click"]);var f3t=ae("<img/>"),p3t=ae('<button class="block h-full w-full rounded-lg focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:outline-none" type="button"><!></button>'),g3t=ae('<div class="absolute top-1 right-1 flex items-center justify-center opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!></div>'),m3t=ae("<div><!> <!></div>");function _3t(t,e){We(e,!0);const r=g=>{var m=f3t();at(()=>{Pr(m,"src",e.preview),Pr(m,"alt",e.name),lr(m,1,`${i()??""} ${o()??""} cursor-pointer object-cover ${a()??""}`)}),H(g,m)};let n=ue(e,"class",3,""),i=ue(e,"height",3,"h-16"),a=ue(e,"imageClass",3,""),s=ue(e,"readonly",3,!1),o=ue(e,"width",3,"w-auto");var l=m3t(),u=de(l);{var d=g=>{var m=p3t(),_=de(m);r(_),oe(m),at(()=>Pr(m,"aria-label",`Preview ${e.name??""}`)),tn("click",m,function(...v){e.onclick?.apply(this,v)}),H(g,m)},h=g=>{r(g)};Re(u,g=>{e.onclick?g(d):g(h,-1)})}var f=he(u,2);{var p=g=>{var m=g3t(),_=de(m);as(_,{class:"text-white",get icon(){return Xd},onclick:()=>e.onRemove?.(e.id),stopPropagationOnClick:!0,tooltip:"Remove"}),oe(m),H(g,m)};Re(f,g=>{s()||g(p)})}oe(l),at(()=>lr(l,1,`group relative overflow-hidden rounded-lg bg-muted shadow-lg dark:border dark:border-muted ${n()??""}`)),H(t,l),Ke()}Wi(["click"]);class qv{static async list(){return dk(d4.LIST)}static async listRouter(){return dk(d4.LIST)}static async load(e,r){const n={model:e};return r&&r.length>0&&(n.extra_args=r),jme(d4.LOAD,n)}static async unload(e){return jme(d4.UNLOAD,{model:e})}static isModelLoaded(e){return e.status.value===Sl.LOADED}static isModelLoading(e){return e.status.value===Sl.LOADING}static parseModelId(e){const r={raw:e,orgName:null,modelName:null,params:null,activatedParams:null,quantization:null,tags:[]},n=e.indexOf(Q1t);let i;n!==Yg?(r.quantization=e.slice(n+1)||null,i=e.slice(0,n)):i=e;const a=i.indexOf(X1t);let s;a!==Yg?(r.orgName=i.slice(0,a),s=i.slice(a+1)):s=i;const o=s.lastIndexOf(".");if(o!==Yg&&!r.quantization){const f=s.slice(o+1);qme.test(f)&&(r.quantization=f,s=s.slice(0,o))}const l=s.split(zme);if(!r.quantization&&l.length>1){const f=l[l.length-1],p=l.length>2?l[l.length-2]:null;qme.test(f)&&(p&&Z1t.test(p)?(r.quantization=`${p}-${f}`,l.splice(l.length-2,2)):(r.quantization=f,l.pop()))}let u=Yg,d=Yg;for(let f=0;f<l.length;f++){const p=l[f];u===Yg&&J1t.test(p)?(u=f,r.params=p.toUpperCase()):u!==Yg&&evt.test(p)&&(d=f,r.activatedParams=p.toUpperCase())}const h=u!==Yg?u:l.length;return r.modelName=l.slice(0,h).join(zme)||null,u!==Yg&&(r.tags=l.slice(u+1).filter((f,p)=>{const g=u+1+p;return g===d?!1:!tvt.has(l[g].toUpperCase())})),r}}const IMe=["enable_thinking","reasoning_effort","thinking_budget"],NMe=[["<think>","</think>"],["<|channel>thought","<|channel|>"],["<|think|>","</|think|>"],["<seed:think|>","</seed:think|>"],["<think></think>",null]],kMe=[/\{%-?\s*if\s+\(?\s*\w*enable[\s_]+\w*(thinking|think|reasoning)/i,/\{%-?\s*if\s+\w*(thinking|reasoning)\s*(is not|==|!=)/i,/\{%-?\s*if\s+not\s+\w*enable/i,/\{%-?\s*if\s+ns\.enable_thinking/i];function hW(t){if(!t)return!1;for(const e of IMe)if(new RegExp(`(\\{\\{[^{}]*\\b${e}\\b[^{}]*\\}\\}|\\{%[^{}]*\\b${e}\\b[^{}]*%\\})`,"i").test(t))return!0;for(const e of kMe)if(e.test(t))return!0;for(const[e,r]of NMe)if(t.includes(e)&&(!r||t.includes(r)))return!0;return!1}function GEe(t){if(!t)return{supported:!1,reason:"No chat template available"};for(const e of IMe)if(new RegExp(`(\\{\\{[^{}]*\\b${e}\\b[^{}]*\\}\\}|\\{%[^{}]*\\b${e}\\b[^{}]*%\\})`,"i").test(t))return{supported:!0,reason:"Found: "+e};for(const e of kMe)if(e.test(t))return{supported:!0,reason:"Found: thinking conditional"};for(const[e,r]of NMe)if(t.includes(e)&&(!r||t.includes(r)))return{supported:!0,reason:"Found: "+e+(r?" .. "+r:" (self)")};return{supported:!1,reason:"No thinking patterns found"}}var IP={exports:{}},v3t=IP.exports,zEe;function y3t(){return zEe||(zEe=1,(function(t,e){(function(r,n){t.exports=n()})(v3t,function(){var r=function(X,te){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,Ce){ge.__proto__=Ce}||function(ge,Ce){for(var Ne in Ce)Object.prototype.hasOwnProperty.call(Ce,Ne)&&(ge[Ne]=Ce[Ne])})(X,te)},n=function(){return(n=Object.assign||function(X){for(var te,ge=1,Ce=arguments.length;ge<Ce;ge++)for(var Ne in te=arguments[ge])Object.prototype.hasOwnProperty.call(te,Ne)&&(X[Ne]=te[Ne]);return X}).apply(this,arguments)};function i(X,te,ge){for(var Ce,Ne=0,Qe=te.length;Ne<Qe;Ne++)!Ce&&Ne in te||((Ce=Ce||Array.prototype.slice.call(te,0,Ne))[Ne]=te[Ne]);return X.concat(Ce||Array.prototype.slice.call(te))}var a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:udt,s=Object.keys,o=Array.isArray;function l(X,te){return typeof te!="object"||s(te).forEach(function(ge){X[ge]=te[ge]}),X}typeof Promise>"u"||a.Promise||(a.Promise=Promise);var u=Object.getPrototypeOf,d={}.hasOwnProperty;function h(X,te){return d.call(X,te)}function f(X,te){typeof te=="function"&&(te=te(u(X))),(typeof Reflect>"u"?s:Reflect.ownKeys)(te).forEach(function(ge){g(X,ge,te[ge])})}var p=Object.defineProperty;function g(X,te,ge,Ce){p(X,te,l(ge&&h(ge,"get")&&typeof ge.get=="function"?{get:ge.get,set:ge.set,configurable:!0}:{value:ge,configurable:!0,writable:!0},Ce))}function m(X){return{from:function(te){return X.prototype=Object.create(te.prototype),g(X.prototype,"constructor",X),{extend:f.bind(null,X.prototype)}}}}var _=Object.getOwnPropertyDescriptor,v=[].slice;function y(X,te,ge){return v.call(X,te,ge)}function b(X,te){return te(X)}function E(X){if(!X)throw new Error("Assertion Failed")}function S(X){a.setImmediate?setImmediate(X):setTimeout(X,0)}function T(X,te){if(typeof te=="string"&&h(X,te))return X[te];if(!te)return X;if(typeof te!="string"){for(var ge=[],Ce=0,Ne=te.length;Ce<Ne;++Ce){var Qe=T(X,te[Ce]);ge.push(Qe)}return ge}var dt=te.indexOf(".");if(dt!==-1){var Et=X[te.substr(0,dt)];return Et==null?void 0:T(Et,te.substr(dt+1))}}function C(X,te,ge){if(X&&te!==void 0&&!("isFrozen"in Object&&Object.isFrozen(X)))if(typeof te!="string"&&"length"in te){E(typeof ge!="string"&&"length"in ge);for(var Ce=0,Ne=te.length;Ce<Ne;++Ce)C(X,te[Ce],ge[Ce])}else{var Qe,dt,Et=te.indexOf(".");Et!==-1?(Qe=te.substr(0,Et),(dt=te.substr(Et+1))===""?ge===void 0?o(X)&&!isNaN(parseInt(Qe))?X.splice(Qe,1):delete X[Qe]:X[Qe]=ge:C(Et=!(Et=X[Qe])||!h(X,Qe)?X[Qe]={}:Et,dt,ge)):ge===void 0?o(X)&&!isNaN(parseInt(te))?X.splice(te,1):delete X[te]:X[te]=ge}}function x(X){var te,ge={};for(te in X)h(X,te)&&(ge[te]=X[te]);return ge}var A=[].concat;function R(X){return A.apply([],X)}var Fe="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(R([8,16,32,64].map(function(X){return["Int","Uint","Float"].map(function(te){return te+X+"Array"})}))).filter(function(X){return a[X]}),I=new Set(Fe.map(function(X){return a[X]})),L=null;function F(X){return L=new WeakMap,X=(function te(ge){if(!ge||typeof ge!="object")return ge;var Ce=L.get(ge);if(Ce)return Ce;if(o(ge)){Ce=[],L.set(ge,Ce);for(var Ne=0,Qe=ge.length;Ne<Qe;++Ne)Ce.push(te(ge[Ne]))}else if(I.has(ge.constructor))Ce=ge;else{var dt,Et=u(ge);for(dt in Ce=Et===Object.prototype?{}:Object.create(Et),L.set(ge,Ce),ge)h(ge,dt)&&(Ce[dt]=te(ge[dt]))}return Ce})(X),L=null,X}var O={}.toString;function D(X){return O.call(X).slice(8,-1)}var M=typeof Symbol<"u"?Symbol.iterator:"@@iterator",P=typeof M=="symbol"?function(X){var te;return X!=null&&(te=X[M])&&te.apply(X)}:function(){return null};function N(X,te){return te=X.indexOf(te),0<=te&&X.splice(te,1),0<=te}var $={};function U(X){var te,ge,Ce,Ne;if(arguments.length===1){if(o(X))return X.slice();if(this===$&&typeof X=="string")return[X];if(Ne=P(X)){for(ge=[];!(Ce=Ne.next()).done;)ge.push(Ce.value);return ge}if(X==null)return[X];if(typeof(te=X.length)!="number")return[X];for(ge=new Array(te);te--;)ge[te]=X[te];return ge}for(te=arguments.length,ge=new Array(te);te--;)ge[te]=arguments[te];return ge}var B=typeof Symbol<"u"?function(X){return X[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},ct=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],uh=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ct),V={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function z(X,te){this.name=X,this.message=te}function G(X,te){return X+". Errors: "+Object.keys(te).map(function(ge){return te[ge].toString()}).filter(function(ge,Ce,Ne){return Ne.indexOf(ge)===Ce}).join(`
`)}function Y(X,te,ge,Ce){this.failures=te,this.failedKeys=Ce,this.successCount=ge,this.message=G(X,te)}function W(X,te){this.name="BulkError",this.failures=Object.keys(te).map(function(ge){return te[ge]}),this.failuresByPos=te,this.message=G(X,this.failures)}m(z).from(Error).extend({toString:function(){return this.name+": "+this.message}}),m(Y).from(z),m(W).from(z);var Q=uh.reduce(function(X,te){return X[te]=te+"Error",X},{}),ie=z,Z=uh.reduce(function(X,te){var ge=te+"Error";function Ce(Ne,Qe){this.name=ge,Ne?typeof Ne=="string"?(this.message="".concat(Ne).concat(Qe?`
 `+Qe:""),this.inner=Qe||null):typeof Ne=="object"&&(this.message="".concat(Ne.name," ").concat(Ne.message),this.inner=Ne):(this.message=V[te]||ge,this.inner=null)}return m(Ce).from(ie),X[te]=Ce,X},{});Z.Syntax=SyntaxError,Z.Type=TypeError,Z.Range=RangeError;var re=ct.reduce(function(X,te){return X[te+"Error"]=Z[te],X},{}),K=uh.reduce(function(X,te){return["Syntax","Type","Range"].indexOf(te)===-1&&(X[te+"Error"]=Z[te]),X},{});function j(){}function se(X){return X}function le(X,te){return X==null||X===se?te:function(ge){return te(X(ge))}}function _e(X,te){return function(){X.apply(this,arguments),te.apply(this,arguments)}}function ye(X,te){return X===j?te:function(){var ge=X.apply(this,arguments);ge!==void 0&&(arguments[0]=ge);var Ce=this.onsuccess,Ne=this.onerror;this.onsuccess=null,this.onerror=null;var Qe=te.apply(this,arguments);return Ce&&(this.onsuccess=this.onsuccess?_e(Ce,this.onsuccess):Ce),Ne&&(this.onerror=this.onerror?_e(Ne,this.onerror):Ne),Qe!==void 0?Qe:ge}}function Ue(X,te){return X===j?te:function(){X.apply(this,arguments);var ge=this.onsuccess,Ce=this.onerror;this.onsuccess=this.onerror=null,te.apply(this,arguments),ge&&(this.onsuccess=this.onsuccess?_e(ge,this.onsuccess):ge),Ce&&(this.onerror=this.onerror?_e(Ce,this.onerror):Ce)}}function Se(X,te){return X===j?te:function(ge){var Ce=X.apply(this,arguments);l(ge,Ce);var Ne=this.onsuccess,Qe=this.onerror;return this.onsuccess=null,this.onerror=null,ge=te.apply(this,arguments),Ne&&(this.onsuccess=this.onsuccess?_e(Ne,this.onsuccess):Ne),Qe&&(this.onerror=this.onerror?_e(Qe,this.onerror):Qe),Ce===void 0?ge===void 0?void 0:ge:l(Ce,ge)}}function be(X,te){return X===j?te:function(){return te.apply(this,arguments)!==!1&&X.apply(this,arguments)}}function ke(X,te){return X===j?te:function(){var ge=X.apply(this,arguments);if(ge&&typeof ge.then=="function"){for(var Ce=this,Ne=arguments.length,Qe=new Array(Ne);Ne--;)Qe[Ne]=arguments[Ne];return ge.then(function(){return te.apply(Ce,Qe)})}return te.apply(this,arguments)}}K.ModifyError=Y,K.DexieError=z,K.BulkError=W;var Ae=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function tt(X){Ae=X}var Oe={},je=100,Fe=typeof Promise>"u"?[]:(function(){var X=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[X,u(X),X];var te=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[te,u(te),X]})(),ct=Fe[0],uh=Fe[1],Fe=Fe[2],uh=uh&&uh.then,Xe=ct&&ct.constructor,et=!!Fe,Ie=function(X,te){qe.push([X,te]),ce&&(queueMicrotask(Ve),ce=!1)},we=!0,ce=!0,Te=[],fe=[],Be=se,me={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:j,pgp:!1,env:{},finalize:j},Ye=me,qe=[],lt=0,it=[];function He(X){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var te=this._PSD=Ye;if(typeof X!="function"){if(X!==Oe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&rt(this,this._value))}this._state=null,this._value=null,++te.ref,(function ge(Ce,Ne){try{Ne(function(Qe){if(Ce._state===null){if(Qe===Ce)throw new TypeError("A promise cannot be resolved with itself.");var dt=Ce._lib&&Ut();Qe&&typeof Qe.then=="function"?ge(Ce,function(Et,It){Qe instanceof He?Qe._then(Et,It):Qe.then(Et,It)}):(Ce._state=!0,Ce._value=Qe,$e(Ce)),dt&&kt()}},rt.bind(null,Ce))}catch(Qe){rt(Ce,Qe)}})(this,X)}var Je={get:function(){var X=Ye,te=ir;function ge(Ce,Ne){var Qe=this,dt=!X.global&&(X!==Ye||te!==ir),Et=dt&&!jt(),It=new He(function(Lt,Vt){xe(Qe,new ht(xn(Ce,X,dt,Et),xn(Ne,X,dt,Et),Lt,Vt,X))});return this._consoleTask&&(It._consoleTask=this._consoleTask),It}return ge.prototype=Oe,ge},set:function(X){g(this,"then",X&&X.prototype===Oe?Je:{get:function(){return X},set:Je.set})}};function ht(X,te,ge,Ce,Ne){this.onFulfilled=typeof X=="function"?X:null,this.onRejected=typeof te=="function"?te:null,this.resolve=ge,this.reject=Ce,this.psd=Ne}function rt(X,te){var ge,Ce;fe.push(te),X._state===null&&(ge=X._lib&&Ut(),te=Be(te),X._state=!1,X._value=te,Ce=X,Te.some(function(Ne){return Ne._value===Ce._value})||Te.push(Ce),$e(X),ge&&kt())}function $e(X){var te=X._listeners;X._listeners=[];for(var ge=0,Ce=te.length;ge<Ce;++ge)xe(X,te[ge]);var Ne=X._PSD;--Ne.ref||Ne.finalize(),lt===0&&(++lt,Ie(function(){--lt==0&&gt()},[]))}function xe(X,te){if(X._state!==null){var ge=X._state?te.onFulfilled:te.onRejected;if(ge===null)return(X._state?te.resolve:te.reject)(X._value);++te.psd.ref,++lt,Ie(pt,[ge,X,te])}else X._listeners.push(te)}function pt(X,te,ge){try{var Ce,Ne=te._value;!te._state&&fe.length&&(fe=[]),Ce=Ae&&te._consoleTask?te._consoleTask.run(function(){return X(Ne)}):X(Ne),te._state||fe.indexOf(Ne)!==-1||(function(Qe){for(var dt=Te.length;dt;)if(Te[--dt]._value===Qe._value)return Te.splice(dt,1)})(te),ge.resolve(Ce)}catch(Qe){ge.reject(Qe)}finally{--lt==0&&gt(),--ge.psd.ref||ge.psd.finalize()}}function Ve(){ln(me,function(){Ut()&&kt()})}function Ut(){var X=we;return ce=we=!1,X}function kt(){var X,te,ge;do for(;0<qe.length;)for(X=qe,qe=[],ge=X.length,te=0;te<ge;++te){var Ce=X[te];Ce[0].apply(null,Ce[1])}while(0<qe.length);ce=we=!0}function gt(){var X=Te;Te=[],X.forEach(function(Ce){Ce._PSD.onunhandled.call(null,Ce._value,Ce)});for(var te=it.slice(0),ge=te.length;ge;)te[--ge]()}function Ct(X){return new He(Oe,!1,X)}function mt(X,te){var ge=Ye;return function(){var Ce=Ut(),Ne=Ye;try{return Sr(ge,!0),X.apply(this,arguments)}catch(Qe){te&&te(Qe)}finally{Sr(Ne,!1),Ce&&kt()}}}f(He.prototype,{then:Je,_then:function(X,te){xe(this,new ht(null,null,X,te,Ye))},catch:function(X){if(arguments.length===1)return this.then(null,X);var te=X,ge=arguments[1];return typeof te=="function"?this.then(null,function(Ce){return(Ce instanceof te?ge:Ct)(Ce)}):this.then(null,function(Ce){return(Ce&&Ce.name===te?ge:Ct)(Ce)})},finally:function(X){return this.then(function(te){return He.resolve(X()).then(function(){return te})},function(te){return He.resolve(X()).then(function(){return Ct(te)})})},timeout:function(X,te){var ge=this;return X<1/0?new He(function(Ce,Ne){var Qe=setTimeout(function(){return Ne(new Z.Timeout(te))},X);ge.then(Ce,Ne).finally(clearTimeout.bind(null,Qe))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&g(He.prototype,Symbol.toStringTag,"Dexie.Promise"),me.env=yn(),f(He,{all:function(){var X=U.apply(null,arguments).map(nr);return new He(function(te,ge){X.length===0&&te([]);var Ce=X.length;X.forEach(function(Ne,Qe){return He.resolve(Ne).then(function(dt){X[Qe]=dt,--Ce||te(X)},ge)})})},resolve:function(X){return X instanceof He?X:X&&typeof X.then=="function"?new He(function(te,ge){X.then(te,ge)}):new He(Oe,!0,X)},reject:Ct,race:function(){var X=U.apply(null,arguments).map(nr);return new He(function(te,ge){X.map(function(Ce){return He.resolve(Ce).then(te,ge)})})},PSD:{get:function(){return Ye},set:function(X){return Ye=X}},totalEchoes:{get:function(){return ir}},newPSD:dn,usePSD:ln,scheduler:{get:function(){return Ie},set:function(X){Ie=X}},rejectionMapper:{get:function(){return Be},set:function(X){Be=X}},follow:function(X,te){return new He(function(ge,Ce){return dn(function(Ne,Qe){var dt=Ye;dt.unhandleds=[],dt.onunhandled=Qe,dt.finalize=_e(function(){var Et,It=this;Et=function(){It.unhandleds.length===0?Ne():Qe(It.unhandleds[0])},it.push(function Lt(){Et(),it.splice(it.indexOf(Lt),1)}),++lt,Ie(function(){--lt==0&&gt()},[])},dt.finalize),X()},te,ge,Ce)})}}),Xe&&(Xe.allSettled&&g(He,"allSettled",function(){var X=U.apply(null,arguments).map(nr);return new He(function(te){X.length===0&&te([]);var ge=X.length,Ce=new Array(ge);X.forEach(function(Ne,Qe){return He.resolve(Ne).then(function(dt){return Ce[Qe]={status:"fulfilled",value:dt}},function(dt){return Ce[Qe]={status:"rejected",reason:dt}}).then(function(){return--ge||te(Ce)})})})}),Xe.any&&typeof AggregateError<"u"&&g(He,"any",function(){var X=U.apply(null,arguments).map(nr);return new He(function(te,ge){X.length===0&&ge(new AggregateError([]));var Ce=X.length,Ne=new Array(Ce);X.forEach(function(Qe,dt){return He.resolve(Qe).then(function(Et){return te(Et)},function(Et){Ne[dt]=Et,--Ce||ge(new AggregateError(Ne))})})})}),Xe.withResolvers&&(He.withResolvers=Xe.withResolvers));var qt={awaits:0,echoes:0,id:0},De=0,pr=[],or=0,ir=0,gr=0;function dn(X,te,ge,Ce){var Ne=Ye,Qe=Object.create(Ne);return Qe.parent=Ne,Qe.ref=0,Qe.global=!1,Qe.id=++gr,me.env,Qe.env=et?{Promise:He,PromiseProp:{value:He,configurable:!0,writable:!0},all:He.all,race:He.race,allSettled:He.allSettled,any:He.any,resolve:He.resolve,reject:He.reject}:{},te&&l(Qe,te),++Ne.ref,Qe.finalize=function(){--this.parent.ref||this.parent.finalize()},Ce=ln(Qe,X,ge,Ce),Qe.ref===0&&Qe.finalize(),Ce}function st(){return qt.id||(qt.id=++De),++qt.awaits,qt.echoes+=je,qt.id}function jt(){return!!qt.awaits&&(--qt.awaits==0&&(qt.id=0),qt.echoes=qt.awaits*je,!0)}function nr(X){return qt.echoes&&X&&X.constructor===Xe?(st(),X.then(function(te){return jt(),te},function(te){return jt(),Zr(te)})):X}function vr(){var X=pr[pr.length-1];pr.pop(),Sr(X,!1)}function Sr(X,te){var ge,Ce=Ye;(te?!qt.echoes||or++&&X===Ye:!or||--or&&X===Ye)||queueMicrotask(te?(function(Ne){++ir,qt.echoes&&--qt.echoes!=0||(qt.echoes=qt.awaits=qt.id=0),pr.push(Ye),Sr(Ne,!0)}).bind(null,X):vr),X!==Ye&&(Ye=X,Ce===me&&(me.env=yn()),et&&(ge=me.env.Promise,te=X.env,(Ce.global||X.global)&&(Object.defineProperty(a,"Promise",te.PromiseProp),ge.all=te.all,ge.race=te.race,ge.resolve=te.resolve,ge.reject=te.reject,te.allSettled&&(ge.allSettled=te.allSettled),te.any&&(ge.any=te.any))))}function yn(){var X=a.Promise;return et?{Promise:X,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:X.all,race:X.race,allSettled:X.allSettled,any:X.any,resolve:X.resolve,reject:X.reject}:{}}function ln(X,te,ge,Ce,Ne){var Qe=Ye;try{return Sr(X,!0),te(ge,Ce,Ne)}finally{Sr(Qe,!1)}}function xn(X,te,ge,Ce){return typeof X!="function"?X:function(){var Ne=Ye;ge&&st(),Sr(te,!0);try{return X.apply(this,arguments)}finally{Sr(Ne,!1),Ce&&queueMicrotask(jt)}}}function nn(X){Promise===Xe&&qt.echoes===0?or===0?X():enqueueNativeMicroTask(X):setTimeout(X,0)}(""+uh).indexOf("[native code]")===-1&&(st=jt=j);var Zr=He.reject,Jr="￿",Jn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",_a="String expected.",si=[],Ta="__dbnames",Vr="readonly",Ze="readwrite";function Ot(X,te){return X?te?function(){return X.apply(this,arguments)&&te.apply(this,arguments)}:X:te}var Mt={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Yt(X){return typeof X!="string"||/\./.test(X)?function(te){return te}:function(te){return te[X]===void 0&&X in te&&delete(te=F(te))[X],te}}function er(){throw Z.Type()}function Ht(X,te){try{var ge=Hr(X),Ce=Hr(te);if(ge!==Ce)return ge==="Array"?1:Ce==="Array"?-1:ge==="binary"?1:Ce==="binary"?-1:ge==="string"?1:Ce==="string"?-1:ge==="Date"?1:Ce!=="Date"?NaN:-1;switch(ge){case"number":case"Date":case"string":return te<X?1:X<te?-1:0;case"binary":return(function(Ne,Qe){for(var dt=Ne.length,Et=Qe.length,It=dt<Et?dt:Et,Lt=0;Lt<It;++Lt)if(Ne[Lt]!==Qe[Lt])return Ne[Lt]<Qe[Lt]?-1:1;return dt===Et?0:dt<Et?-1:1})(ot(X),ot(te));case"Array":return(function(Ne,Qe){for(var dt=Ne.length,Et=Qe.length,It=dt<Et?dt:Et,Lt=0;Lt<It;++Lt){var Vt=Ht(Ne[Lt],Qe[Lt]);if(Vt!==0)return Vt}return dt===Et?0:dt<Et?-1:1})(X,te)}}catch{}return NaN}function Hr(X){var te=typeof X;return te!="object"?te:ArrayBuffer.isView(X)?"binary":(X=D(X),X==="ArrayBuffer"?"binary":X)}function ot(X){return X instanceof Uint8Array?X:ArrayBuffer.isView(X)?new Uint8Array(X.buffer,X.byteOffset,X.byteLength):new Uint8Array(X)}var Li=(ut.prototype._trans=function(X,te,ge){var Ce=this._tx||Ye.trans,Ne=this.name,Qe=Ae&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(X==="readonly"?"read":"write"," ").concat(this.name));function dt(Lt,Vt,wt){if(!wt.schema[Ne])throw new Z.NotFound("Table "+Ne+" not part of transaction");return te(wt.idbtrans,wt)}var Et=Ut();try{var It=Ce&&Ce.db._novip===this.db._novip?Ce===Ye.trans?Ce._promise(X,dt,ge):dn(function(){return Ce._promise(X,dt,ge)},{trans:Ce,transless:Ye.transless||Ye}):(function Lt(Vt,wt,Kt,Dt){if(Vt.idbdb&&(Vt._state.openComplete||Ye.letThrough||Vt._vip)){var $t=Vt._createTransaction(wt,Kt,Vt._dbSchema);try{$t.create(),Vt._state.PR1398_maxLoop=3}catch(Wt){return Wt.name===Q.InvalidState&&Vt.isOpen()&&0<--Vt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Vt.close({disableAutoOpen:!1}),Vt.open().then(function(){return Lt(Vt,wt,Kt,Dt)})):Zr(Wt)}return $t._promise(wt,function(Wt,Ft){return dn(function(){return Ye.trans=$t,Dt(Wt,Ft,$t)})}).then(function(Wt){if(wt==="readwrite")try{$t.idbtrans.commit()}catch{}return wt==="readonly"?Wt:$t._completion.then(function(){return Wt})})}if(Vt._state.openComplete)return Zr(new Z.DatabaseClosed(Vt._state.dbOpenError));if(!Vt._state.isBeingOpened){if(!Vt._state.autoOpen)return Zr(new Z.DatabaseClosed);Vt.open().catch(j)}return Vt._state.dbReadyPromise.then(function(){return Lt(Vt,wt,Kt,Dt)})})(this.db,X,[this.name],dt);return Qe&&(It._consoleTask=Qe,It=It.catch(function(Lt){return console.trace(Lt),Zr(Lt)})),It}finally{Et&&kt()}},ut.prototype.get=function(X,te){var ge=this;return X&&X.constructor===Object?this.where(X).first(te):X==null?Zr(new Z.Type("Invalid argument to Table.get()")):this._trans("readonly",function(Ce){return ge.core.get({trans:Ce,key:X}).then(function(Ne){return ge.hook.reading.fire(Ne)})}).then(te)},ut.prototype.where=function(X){if(typeof X=="string")return new this.db.WhereClause(this,X);if(o(X))return new this.db.WhereClause(this,"[".concat(X.join("+"),"]"));var te=s(X);if(te.length===1)return this.where(te[0]).equals(X[te[0]]);var ge=this.schema.indexes.concat(this.schema.primKey).filter(function(Et){if(Et.compound&&te.every(function(Lt){return 0<=Et.keyPath.indexOf(Lt)})){for(var It=0;It<te.length;++It)if(te.indexOf(Et.keyPath[It])===-1)return!1;return!0}return!1}).sort(function(Et,It){return Et.keyPath.length-It.keyPath.length})[0];if(ge&&this.db._maxKey!==Jr){var Qe=ge.keyPath.slice(0,te.length);return this.where(Qe).equals(Qe.map(function(It){return X[It]}))}!ge&&Ae&&console.warn("The query ".concat(JSON.stringify(X)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(te.join("+"),"]"));var Ce=this.schema.idxByName;function Ne(Et,It){return Ht(Et,It)===0}var dt=te.reduce(function(wt,It){var Lt=wt[0],Vt=wt[1],wt=Ce[It],Kt=X[It];return[Lt||wt,Lt||!wt?Ot(Vt,wt&&wt.multi?function(Dt){return Dt=T(Dt,It),o(Dt)&&Dt.some(function($t){return Ne(Kt,$t)})}:function(Dt){return Ne(Kt,T(Dt,It))}):Vt]},[null,null]),Qe=dt[0],dt=dt[1];return Qe?this.where(Qe.name).equals(X[Qe.keyPath]).filter(dt):ge?this.filter(dt):this.where(te).equals("")},ut.prototype.filter=function(X){return this.toCollection().and(X)},ut.prototype.count=function(X){return this.toCollection().count(X)},ut.prototype.offset=function(X){return this.toCollection().offset(X)},ut.prototype.limit=function(X){return this.toCollection().limit(X)},ut.prototype.each=function(X){return this.toCollection().each(X)},ut.prototype.toArray=function(X){return this.toCollection().toArray(X)},ut.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},ut.prototype.orderBy=function(X){return new this.db.Collection(new this.db.WhereClause(this,o(X)?"[".concat(X.join("+"),"]"):X))},ut.prototype.reverse=function(){return this.toCollection().reverse()},ut.prototype.mapToClass=function(X){var te,ge=this.db,Ce=this.name;function Ne(){return te!==null&&te.apply(this,arguments)||this}(this.schema.mappedClass=X).prototype instanceof er&&((function(It,Lt){if(typeof Lt!="function"&&Lt!==null)throw new TypeError("Class extends value "+String(Lt)+" is not a constructor or null");function Vt(){this.constructor=It}r(It,Lt),It.prototype=Lt===null?Object.create(Lt):(Vt.prototype=Lt.prototype,new Vt)})(Ne,te=X),Object.defineProperty(Ne.prototype,"db",{get:function(){return ge},enumerable:!1,configurable:!0}),Ne.prototype.table=function(){return Ce},X=Ne);for(var Qe=new Set,dt=X.prototype;dt;dt=u(dt))Object.getOwnPropertyNames(dt).forEach(function(It){return Qe.add(It)});function Et(It){if(!It)return It;var Lt,Vt=Object.create(X.prototype);for(Lt in It)if(!Qe.has(Lt))try{Vt[Lt]=It[Lt]}catch{}return Vt}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=Et,this.hook("reading",Et),X},ut.prototype.defineClass=function(){return this.mapToClass(function(X){l(this,X)})},ut.prototype.add=function(X,te){var ge=this,Ce=this.schema.primKey,Ne=Ce.auto,Qe=Ce.keyPath,dt=X;return Qe&&Ne&&(dt=Yt(Qe)(X)),this._trans("readwrite",function(Et){return ge.core.mutate({trans:Et,type:"add",keys:te!=null?[te]:null,values:[dt]})}).then(function(Et){return Et.numFailures?He.reject(Et.failures[0]):Et.lastResult}).then(function(Et){if(Qe)try{C(X,Qe,Et)}catch{}return Et})},ut.prototype.update=function(X,te){return typeof X!="object"||o(X)?this.where(":id").equals(X).modify(te):(X=T(X,this.schema.primKey.keyPath),X===void 0?Zr(new Z.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(X).modify(te))},ut.prototype.put=function(X,te){var ge=this,Ce=this.schema.primKey,Ne=Ce.auto,Qe=Ce.keyPath,dt=X;return Qe&&Ne&&(dt=Yt(Qe)(X)),this._trans("readwrite",function(Et){return ge.core.mutate({trans:Et,type:"put",values:[dt],keys:te!=null?[te]:null})}).then(function(Et){return Et.numFailures?He.reject(Et.failures[0]):Et.lastResult}).then(function(Et){if(Qe)try{C(X,Qe,Et)}catch{}return Et})},ut.prototype.delete=function(X){var te=this;return this._trans("readwrite",function(ge){return te.core.mutate({trans:ge,type:"delete",keys:[X]})}).then(function(ge){return ge.numFailures?He.reject(ge.failures[0]):void 0})},ut.prototype.clear=function(){var X=this;return this._trans("readwrite",function(te){return X.core.mutate({trans:te,type:"deleteRange",range:Mt})}).then(function(te){return te.numFailures?He.reject(te.failures[0]):void 0})},ut.prototype.bulkGet=function(X){var te=this;return this._trans("readonly",function(ge){return te.core.getMany({keys:X,trans:ge}).then(function(Ce){return Ce.map(function(Ne){return te.hook.reading.fire(Ne)})})})},ut.prototype.bulkAdd=function(X,te,ge){var Ce=this,Ne=Array.isArray(te)?te:void 0,Qe=(ge=ge||(Ne?void 0:te))?ge.allKeys:void 0;return this._trans("readwrite",function(dt){var Lt=Ce.schema.primKey,Et=Lt.auto,Lt=Lt.keyPath;if(Lt&&Ne)throw new Z.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(Ne&&Ne.length!==X.length)throw new Z.InvalidArgument("Arguments objects and keys must have the same length");var It=X.length,Lt=Lt&&Et?X.map(Yt(Lt)):X;return Ce.core.mutate({trans:dt,type:"add",keys:Ne,values:Lt,wantResults:Qe}).then(function($t){var wt=$t.numFailures,Kt=$t.results,Dt=$t.lastResult,$t=$t.failures;if(wt===0)return Qe?Kt:Dt;throw new W("".concat(Ce.name,".bulkAdd(): ").concat(wt," of ").concat(It," operations failed"),$t)})})},ut.prototype.bulkPut=function(X,te,ge){var Ce=this,Ne=Array.isArray(te)?te:void 0,Qe=(ge=ge||(Ne?void 0:te))?ge.allKeys:void 0;return this._trans("readwrite",function(dt){var Lt=Ce.schema.primKey,Et=Lt.auto,Lt=Lt.keyPath;if(Lt&&Ne)throw new Z.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(Ne&&Ne.length!==X.length)throw new Z.InvalidArgument("Arguments objects and keys must have the same length");var It=X.length,Lt=Lt&&Et?X.map(Yt(Lt)):X;return Ce.core.mutate({trans:dt,type:"put",keys:Ne,values:Lt,wantResults:Qe}).then(function($t){var wt=$t.numFailures,Kt=$t.results,Dt=$t.lastResult,$t=$t.failures;if(wt===0)return Qe?Kt:Dt;throw new W("".concat(Ce.name,".bulkPut(): ").concat(wt," of ").concat(It," operations failed"),$t)})})},ut.prototype.bulkUpdate=function(X){var te=this,ge=this.core,Ce=X.map(function(dt){return dt.key}),Ne=X.map(function(dt){return dt.changes}),Qe=[];return this._trans("readwrite",function(dt){return ge.getMany({trans:dt,keys:Ce,cache:"clone"}).then(function(Et){var It=[],Lt=[];X.forEach(function(wt,Kt){var Dt=wt.key,$t=wt.changes,Wt=Et[Kt];if(Wt){for(var Ft=0,Qt=Object.keys($t);Ft<Qt.length;Ft++){var tr=Qt[Ft],rr=$t[tr];if(tr===te.schema.primKey.keyPath){if(Ht(rr,Dt)!==0)throw new Z.Constraint("Cannot update primary key in bulkUpdate()")}else C(Wt,tr,rr)}Qe.push(Kt),It.push(Dt),Lt.push(Wt)}});var Vt=It.length;return ge.mutate({trans:dt,type:"put",keys:It,values:Lt,updates:{keys:Ce,changeSpecs:Ne}}).then(function(wt){var Kt=wt.numFailures,Dt=wt.failures;if(Kt===0)return Vt;for(var $t=0,Wt=Object.keys(Dt);$t<Wt.length;$t++){var Ft,Qt=Wt[$t],tr=Qe[Number(Qt)];tr!=null&&(Ft=Dt[Qt],delete Dt[Qt],Dt[tr]=Ft)}throw new W("".concat(te.name,".bulkUpdate(): ").concat(Kt," of ").concat(Vt," operations failed"),Dt)})})})},ut.prototype.bulkDelete=function(X){var te=this,ge=X.length;return this._trans("readwrite",function(Ce){return te.core.mutate({trans:Ce,type:"delete",keys:X})}).then(function(dt){var Ne=dt.numFailures,Qe=dt.lastResult,dt=dt.failures;if(Ne===0)return Qe;throw new W("".concat(te.name,".bulkDelete(): ").concat(Ne," of ").concat(ge," operations failed"),dt)})},ut);function ut(){}function zn(X){function te(dt,Et){if(Et){for(var It=arguments.length,Lt=new Array(It-1);--It;)Lt[It-1]=arguments[It];return ge[dt].subscribe.apply(null,Lt),X}if(typeof dt=="string")return ge[dt]}var ge={};te.addEventType=Qe;for(var Ce=1,Ne=arguments.length;Ce<Ne;++Ce)Qe(arguments[Ce]);return te;function Qe(dt,Et,It){if(typeof dt!="object"){var Lt;Et=Et||be;var Vt={subscribers:[],fire:It=It||j,subscribe:function(wt){Vt.subscribers.indexOf(wt)===-1&&(Vt.subscribers.push(wt),Vt.fire=Et(Vt.fire,wt))},unsubscribe:function(wt){Vt.subscribers=Vt.subscribers.filter(function(Kt){return Kt!==wt}),Vt.fire=Vt.subscribers.reduce(Et,It)}};return ge[dt]=te[dt]=Vt}s(Lt=dt).forEach(function(wt){var Kt=Lt[wt];if(o(Kt))Qe(wt,Lt[wt][0],Lt[wt][1]);else{if(Kt!=="asap")throw new Z.InvalidArgument("Invalid event config");var Dt=Qe(wt,se,function(){for(var $t=arguments.length,Wt=new Array($t);$t--;)Wt[$t]=arguments[$t];Dt.subscribers.forEach(function(Ft){S(function(){Ft.apply(null,Wt)})})})}})}}function dc(X,te){return m(te).from({prototype:X}),te}function hc(X,te){return!(X.filter||X.algorithm||X.or)&&(te?X.justLimit:!X.replayFilter)}function dp(X,te){X.filter=Ot(X.filter,te)}function qg(X,te,ge){var Ce=X.replayFilter;X.replayFilter=Ce?function(){return Ot(Ce(),te())}:te,X.justLimit=ge&&!Ce}function Ka(X,te){if(X.isPrimKey)return te.primaryKey;var ge=te.getIndexByKeyPath(X.index);if(!ge)throw new Z.Schema("KeyPath "+X.index+" on object store "+te.name+" is not indexed");return ge}function Ou(X,te,ge){var Ce=Ka(X,te.schema);return te.openCursor({trans:ge,values:!X.keysOnly,reverse:X.dir==="prev",unique:!!X.unique,query:{index:Ce,range:X.range}})}function fc(X,te,ge,Ce){var Ne=X.replayFilter?Ot(X.filter,X.replayFilter()):X.filter;if(X.or){var Qe={},dt=function(Et,It,Lt){var Vt,wt;Ne&&!Ne(It,Lt,function(Kt){return It.stop(Kt)},function(Kt){return It.fail(Kt)})||((wt=""+(Vt=It.primaryKey))=="[object ArrayBuffer]"&&(wt=""+new Uint8Array(Vt)),h(Qe,wt)||(Qe[wt]=!0,te(Et,It,Lt)))};return Promise.all([X.or._iterate(dt,ge),pd(Ou(X,Ce,ge),X.algorithm,dt,!X.keysOnly&&X.valueMapper)])}return pd(Ou(X,Ce,ge),Ot(X.algorithm,Ne),te,!X.keysOnly&&X.valueMapper)}function pd(X,te,ge,Ce){var Ne=mt(Ce?function(Qe,dt,Et){return ge(Ce(Qe),dt,Et)}:ge);return X.then(function(Qe){if(Qe)return Qe.start(function(){var dt=function(){return Qe.continue()};te&&!te(Qe,function(Et){return dt=Et},function(Et){Qe.stop(Et),dt=j},function(Et){Qe.fail(Et),dt=j})||Ne(Qe.value,Qe,function(Et){return dt=Et}),dt()})})}var eo=(hp.prototype.execute=function(X){var te=this["@@propmod"];if(te.add!==void 0){var ge=te.add;if(o(ge))return i(i([],o(X)?X:[],!0),ge).sort();if(typeof ge=="number")return(Number(X)||0)+ge;if(typeof ge=="bigint")try{return BigInt(X)+ge}catch{return BigInt(0)+ge}throw new TypeError("Invalid term ".concat(ge))}if(te.remove!==void 0){var Ce=te.remove;if(o(Ce))return o(X)?X.filter(function(Ne){return!Ce.includes(Ne)}).sort():[];if(typeof Ce=="number")return Number(X)-Ce;if(typeof Ce=="bigint")try{return BigInt(X)-Ce}catch{return BigInt(0)-Ce}throw new TypeError("Invalid subtrahend ".concat(Ce))}return ge=(ge=te.replacePrefix)===null||ge===void 0?void 0:ge[0],ge&&typeof X=="string"&&X.startsWith(ge)?te.replacePrefix[1]+X.substring(ge.length):X},hp);function hp(X){this["@@propmod"]=X}var ch=(wr.prototype._read=function(X,te){var ge=this._ctx;return ge.error?ge.table._trans(null,Zr.bind(null,ge.error)):ge.table._trans("readonly",X).then(te)},wr.prototype._write=function(X){var te=this._ctx;return te.error?te.table._trans(null,Zr.bind(null,te.error)):te.table._trans("readwrite",X,"locked")},wr.prototype._addAlgorithm=function(X){var te=this._ctx;te.algorithm=Ot(te.algorithm,X)},wr.prototype._iterate=function(X,te){return fc(this._ctx,X,te,this._ctx.table.core)},wr.prototype.clone=function(X){var te=Object.create(this.constructor.prototype),ge=Object.create(this._ctx);return X&&l(ge,X),te._ctx=ge,te},wr.prototype.raw=function(){return this._ctx.valueMapper=null,this},wr.prototype.each=function(X){var te=this._ctx;return this._read(function(ge){return fc(te,X,ge,te.table.core)})},wr.prototype.count=function(X){var te=this;return this._read(function(ge){var Ce=te._ctx,Ne=Ce.table.core;if(hc(Ce,!0))return Ne.count({trans:ge,query:{index:Ka(Ce,Ne.schema),range:Ce.range}}).then(function(dt){return Math.min(dt,Ce.limit)});var Qe=0;return fc(Ce,function(){return++Qe,!1},ge,Ne).then(function(){return Qe})}).then(X)},wr.prototype.sortBy=function(X,te){var ge=X.split(".").reverse(),Ce=ge[0],Ne=ge.length-1;function Qe(It,Lt){return Lt?Qe(It[ge[Lt]],Lt-1):It[Ce]}var dt=this._ctx.dir==="next"?1:-1;function Et(It,Lt){return Ht(Qe(It,Ne),Qe(Lt,Ne))*dt}return this.toArray(function(It){return It.sort(Et)}).then(te)},wr.prototype.toArray=function(X){var te=this;return this._read(function(ge){var Ce=te._ctx;if(Ce.dir==="next"&&hc(Ce,!0)&&0<Ce.limit){var Ne=Ce.valueMapper,Qe=Ka(Ce,Ce.table.core.schema);return Ce.table.core.query({trans:ge,limit:Ce.limit,values:!0,query:{index:Qe,range:Ce.range}}).then(function(Et){return Et=Et.result,Ne?Et.map(Ne):Et})}var dt=[];return fc(Ce,function(Et){return dt.push(Et)},ge,Ce.table.core).then(function(){return dt})},X)},wr.prototype.offset=function(X){var te=this._ctx;return X<=0||(te.offset+=X,hc(te)?qg(te,function(){var ge=X;return function(Ce,Ne){return ge===0||(ge===1?--ge:Ne(function(){Ce.advance(ge),ge=0}),!1)}}):qg(te,function(){var ge=X;return function(){return--ge<0}})),this},wr.prototype.limit=function(X){return this._ctx.limit=Math.min(this._ctx.limit,X),qg(this._ctx,function(){var te=X;return function(ge,Ce,Ne){return--te<=0&&Ce(Ne),0<=te}},!0),this},wr.prototype.until=function(X,te){return dp(this._ctx,function(ge,Ce,Ne){return!X(ge.value)||(Ce(Ne),te)}),this},wr.prototype.first=function(X){return this.limit(1).toArray(function(te){return te[0]}).then(X)},wr.prototype.last=function(X){return this.reverse().first(X)},wr.prototype.filter=function(X){var te;return dp(this._ctx,function(ge){return X(ge.value)}),(te=this._ctx).isMatch=Ot(te.isMatch,X),this},wr.prototype.and=function(X){return this.filter(X)},wr.prototype.or=function(X){return new this.db.WhereClause(this._ctx.table,X,this)},wr.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},wr.prototype.desc=function(){return this.reverse()},wr.prototype.eachKey=function(X){var te=this._ctx;return te.keysOnly=!te.isMatch,this.each(function(ge,Ce){X(Ce.key,Ce)})},wr.prototype.eachUniqueKey=function(X){return this._ctx.unique="unique",this.eachKey(X)},wr.prototype.eachPrimaryKey=function(X){var te=this._ctx;return te.keysOnly=!te.isMatch,this.each(function(ge,Ce){X(Ce.primaryKey,Ce)})},wr.prototype.keys=function(X){var te=this._ctx;te.keysOnly=!te.isMatch;var ge=[];return this.each(function(Ce,Ne){ge.push(Ne.key)}).then(function(){return ge}).then(X)},wr.prototype.primaryKeys=function(X){var te=this._ctx;if(te.dir==="next"&&hc(te,!0)&&0<te.limit)return this._read(function(Ce){var Ne=Ka(te,te.table.core.schema);return te.table.core.query({trans:Ce,values:!1,limit:te.limit,query:{index:Ne,range:te.range}})}).then(function(Ce){return Ce.result}).then(X);te.keysOnly=!te.isMatch;var ge=[];return this.each(function(Ce,Ne){ge.push(Ne.primaryKey)}).then(function(){return ge}).then(X)},wr.prototype.uniqueKeys=function(X){return this._ctx.unique="unique",this.keys(X)},wr.prototype.firstKey=function(X){return this.limit(1).keys(function(te){return te[0]}).then(X)},wr.prototype.lastKey=function(X){return this.reverse().firstKey(X)},wr.prototype.distinct=function(){var X=this._ctx,X=X.index&&X.table.schema.idxByName[X.index];if(!X||!X.multi)return this;var te={};return dp(this._ctx,function(Ne){var Ce=Ne.primaryKey.toString(),Ne=h(te,Ce);return te[Ce]=!0,!Ne}),this},wr.prototype.modify=function(X){var te=this,ge=this._ctx;return this._write(function(Ce){var Ne,Qe,dt;dt=typeof X=="function"?X:(Ne=s(X),Qe=Ne.length,function(Ft){for(var Qt=!1,tr=0;tr<Qe;++tr){var rr=Ne[tr],ur=X[rr],Or=T(Ft,rr);ur instanceof eo?(C(Ft,rr,ur.execute(Or)),Qt=!0):Or!==ur&&(C(Ft,rr,ur),Qt=!0)}return Qt});var Et=ge.table.core,wt=Et.schema.primaryKey,It=wt.outbound,Lt=wt.extractKey,Vt=200,wt=te.db._options.modifyChunkSize;wt&&(Vt=typeof wt=="object"?wt[Et.name]||wt["*"]||200:wt);function Kt(Ft,rr){var tr=rr.failures,rr=rr.numFailures;$t+=Ft-rr;for(var ur=0,Or=s(tr);ur<Or.length;ur++){var $r=Or[ur];Dt.push(tr[$r])}}var Dt=[],$t=0,Wt=[];return te.clone().primaryKeys().then(function(Ft){function Qt(rr){var ur=Math.min(Vt,Ft.length-rr);return Et.getMany({trans:Ce,keys:Ft.slice(rr,rr+ur),cache:"immutable"}).then(function(Or){for(var $r=[],Ir=[],Lr=It?[]:null,Yr=[],Ur=0;Ur<ur;++Ur){var hn=Or[Ur],bi={value:F(hn),primKey:Ft[rr+Ur]};dt.call(bi,bi.value,bi)!==!1&&(bi.value==null?Yr.push(Ft[rr+Ur]):It||Ht(Lt(hn),Lt(bi.value))===0?(Ir.push(bi.value),It&&Lr.push(Ft[rr+Ur])):(Yr.push(Ft[rr+Ur]),$r.push(bi.value)))}return Promise.resolve(0<$r.length&&Et.mutate({trans:Ce,type:"add",values:$r}).then(function(Fi){for(var Bi in Fi.failures)Yr.splice(parseInt(Bi),1);Kt($r.length,Fi)})).then(function(){return(0<Ir.length||tr&&typeof X=="object")&&Et.mutate({trans:Ce,type:"put",keys:Lr,values:Ir,criteria:tr,changeSpec:typeof X!="function"&&X,isAdditionalChunk:0<rr}).then(function(Fi){return Kt(Ir.length,Fi)})}).then(function(){return(0<Yr.length||tr&&X===bl)&&Et.mutate({trans:Ce,type:"delete",keys:Yr,criteria:tr,isAdditionalChunk:0<rr}).then(function(Fi){return Kt(Yr.length,Fi)})}).then(function(){return Ft.length>rr+ur&&Qt(rr+Vt)})})}var tr=hc(ge)&&ge.limit===1/0&&(typeof X!="function"||X===bl)&&{index:ge.index,range:ge.range};return Qt(0).then(function(){if(0<Dt.length)throw new Y("Error modifying one or more objects",Dt,$t,Wt);return Ft.length})})})},wr.prototype.delete=function(){var X=this._ctx,te=X.range;return hc(X)&&(X.isPrimKey||te.type===3)?this._write(function(ge){var Ce=X.table.core.schema.primaryKey,Ne=te;return X.table.core.count({trans:ge,query:{index:Ce,range:Ne}}).then(function(Qe){return X.table.core.mutate({trans:ge,type:"deleteRange",range:Ne}).then(function(dt){var Et=dt.failures;if(dt.lastResult,dt.results,dt=dt.numFailures,dt)throw new Y("Could not delete some values",Object.keys(Et).map(function(It){return Et[It]}),Qe-dt);return Qe-dt})})}):this.modify(bl)},wr);function wr(){}var bl=function(X,te){return te.value=null};function Ki(X,te){return X<te?-1:X===te?0:1}function Pi(X,te){return te<X?-1:X===te?0:1}function Ca(X,te,ge){return X=X instanceof en?new X.Collection(X):X,X._ctx.error=new(ge||TypeError)(te),X}function Es(X){return new X.Collection(X,function(){return kr("")}).limit(0)}function to(X,te,ge,Ce){var Ne,Qe,dt,Et,It,Lt,Vt,wt=ge.length;if(!ge.every(function($t){return typeof $t=="string"}))return Ca(X,_a);function Kt($t){Ne=$t==="next"?function(Ft){return Ft.toUpperCase()}:function(Ft){return Ft.toLowerCase()},Qe=$t==="next"?function(Ft){return Ft.toLowerCase()}:function(Ft){return Ft.toUpperCase()},dt=$t==="next"?Ki:Pi;var Wt=ge.map(function(Ft){return{lower:Qe(Ft),upper:Ne(Ft)}}).sort(function(Ft,Qt){return dt(Ft.lower,Qt.lower)});Et=Wt.map(function(Ft){return Ft.upper}),It=Wt.map(function(Ft){return Ft.lower}),Vt=(Lt=$t)==="next"?"":Ce}Kt("next"),X=new X.Collection(X,function(){return Do(Et[0],It[wt-1]+Ce)}),X._ondirectionchange=function($t){Kt($t)};var Dt=0;return X._addAlgorithm(function($t,Wt,Ft){var Qt=$t.key;if(typeof Qt!="string")return!1;var tr=Qe(Qt);if(te(tr,It,Dt))return!0;for(var rr=null,ur=Dt;ur<wt;++ur){var Or=(function($r,Ir,Lr,Yr,Ur,hn){for(var bi=Math.min($r.length,Yr.length),Fi=-1,Bi=0;Bi<bi;++Bi){var gd=Ir[Bi];if(gd!==Yr[Bi])return Ur($r[Bi],Lr[Bi])<0?$r.substr(0,Bi)+Lr[Bi]+Lr.substr(Bi+1):Ur($r[Bi],Yr[Bi])<0?$r.substr(0,Bi)+Yr[Bi]+Lr.substr(Bi+1):0<=Fi?$r.substr(0,Fi)+Ir[Fi]+Lr.substr(Fi+1):null;Ur($r[Bi],gd)<0&&(Fi=Bi)}return bi<Yr.length&&hn==="next"?$r+Lr.substr($r.length):bi<$r.length&&hn==="prev"?$r.substr(0,Lr.length):Fi<0?null:$r.substr(0,Fi)+Yr[Fi]+Lr.substr(Fi+1)})(Qt,tr,Et[ur],It[ur],dt,Lt);Or===null&&rr===null?Dt=ur+1:(rr===null||0<dt(rr,Or))&&(rr=Or)}return Wt(rr!==null?function(){$t.continue(rr+Vt)}:Ft),!1}),X}function Do(X,te,ge,Ce){return{type:2,lower:X,upper:te,lowerOpen:ge,upperOpen:Ce}}function kr(X){return{type:1,lower:X,upper:X}}var en=(Object.defineProperty(zr.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),zr.prototype.between=function(X,te,ge,Ce){ge=ge!==!1,Ce=Ce===!0;try{return 0<this._cmp(X,te)||this._cmp(X,te)===0&&(ge||Ce)&&(!ge||!Ce)?Es(this):new this.Collection(this,function(){return Do(X,te,!ge,!Ce)})}catch{return Ca(this,Jn)}},zr.prototype.equals=function(X){return X==null?Ca(this,Jn):new this.Collection(this,function(){return kr(X)})},zr.prototype.above=function(X){return X==null?Ca(this,Jn):new this.Collection(this,function(){return Do(X,void 0,!0)})},zr.prototype.aboveOrEqual=function(X){return X==null?Ca(this,Jn):new this.Collection(this,function(){return Do(X,void 0,!1)})},zr.prototype.below=function(X){return X==null?Ca(this,Jn):new this.Collection(this,function(){return Do(void 0,X,!1,!0)})},zr.prototype.belowOrEqual=function(X){return X==null?Ca(this,Jn):new this.Collection(this,function(){return Do(void 0,X)})},zr.prototype.startsWith=function(X){return typeof X!="string"?Ca(this,_a):this.between(X,X+Jr,!0,!0)},zr.prototype.startsWithIgnoreCase=function(X){return X===""?this.startsWith(X):to(this,function(te,ge){return te.indexOf(ge[0])===0},[X],Jr)},zr.prototype.equalsIgnoreCase=function(X){return to(this,function(te,ge){return te===ge[0]},[X],"")},zr.prototype.anyOfIgnoreCase=function(){var X=U.apply($,arguments);return X.length===0?Es(this):to(this,function(te,ge){return ge.indexOf(te)!==-1},X,"")},zr.prototype.startsWithAnyOfIgnoreCase=function(){var X=U.apply($,arguments);return X.length===0?Es(this):to(this,function(te,ge){return ge.some(function(Ce){return te.indexOf(Ce)===0})},X,Jr)},zr.prototype.anyOf=function(){var X=this,te=U.apply($,arguments),ge=this._cmp;try{te.sort(ge)}catch{return Ca(this,Jn)}if(te.length===0)return Es(this);var Ce=new this.Collection(this,function(){return Do(te[0],te[te.length-1])});Ce._ondirectionchange=function(Qe){ge=Qe==="next"?X._ascending:X._descending,te.sort(ge)};var Ne=0;return Ce._addAlgorithm(function(Qe,dt,Et){for(var It=Qe.key;0<ge(It,te[Ne]);)if(++Ne===te.length)return dt(Et),!1;return ge(It,te[Ne])===0||(dt(function(){Qe.continue(te[Ne])}),!1)}),Ce},zr.prototype.notEqual=function(X){return this.inAnyRange([[-1/0,X],[X,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},zr.prototype.noneOf=function(){var X=U.apply($,arguments);if(X.length===0)return new this.Collection(this);try{X.sort(this._ascending)}catch{return Ca(this,Jn)}var te=X.reduce(function(ge,Ce){return ge?ge.concat([[ge[ge.length-1][1],Ce]]):[[-1/0,Ce]]},null);return te.push([X[X.length-1],this.db._maxKey]),this.inAnyRange(te,{includeLowers:!1,includeUppers:!1})},zr.prototype.inAnyRange=function(Qt,te){var ge=this,Ce=this._cmp,Ne=this._ascending,Qe=this._descending,dt=this._min,Et=this._max;if(Qt.length===0)return Es(this);if(!Qt.every(function(tr){return tr[0]!==void 0&&tr[1]!==void 0&&Ne(tr[0],tr[1])<=0}))return Ca(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Z.InvalidArgument);var It=!te||te.includeLowers!==!1,Lt=te&&te.includeUppers===!0,Vt,wt=Ne;function Kt(tr,rr){return wt(tr[0],rr[0])}try{(Vt=Qt.reduce(function(tr,rr){for(var ur=0,Or=tr.length;ur<Or;++ur){var $r=tr[ur];if(Ce(rr[0],$r[1])<0&&0<Ce(rr[1],$r[0])){$r[0]=dt($r[0],rr[0]),$r[1]=Et($r[1],rr[1]);break}}return ur===Or&&tr.push(rr),tr},[])).sort(Kt)}catch{return Ca(this,Jn)}var Dt=0,$t=Lt?function(tr){return 0<Ne(tr,Vt[Dt][1])}:function(tr){return 0<=Ne(tr,Vt[Dt][1])},Wt=It?function(tr){return 0<Qe(tr,Vt[Dt][0])}:function(tr){return 0<=Qe(tr,Vt[Dt][0])},Ft=$t,Qt=new this.Collection(this,function(){return Do(Vt[0][0],Vt[Vt.length-1][1],!It,!Lt)});return Qt._ondirectionchange=function(tr){wt=tr==="next"?(Ft=$t,Ne):(Ft=Wt,Qe),Vt.sort(Kt)},Qt._addAlgorithm(function(tr,rr,ur){for(var Or,$r=tr.key;Ft($r);)if(++Dt===Vt.length)return rr(ur),!1;return!$t(Or=$r)&&!Wt(Or)||(ge._cmp($r,Vt[Dt][1])===0||ge._cmp($r,Vt[Dt][0])===0||rr(function(){wt===Ne?tr.continue(Vt[Dt][0]):tr.continue(Vt[Dt][1])}),!1)}),Qt},zr.prototype.startsWithAnyOf=function(){var X=U.apply($,arguments);return X.every(function(te){return typeof te=="string"})?X.length===0?Es(this):this.inAnyRange(X.map(function(te){return[te,te+Jr]})):Ca(this,"startsWithAnyOf() only works with strings")},zr);function zr(){}function oi(X){return mt(function(te){return za(te),X(te.target.error),!1})}function za(X){X.stopPropagation&&X.stopPropagation(),X.preventDefault&&X.preventDefault()}var Qo="storagemutated",ov="x-storagemutated-1",rf=zn(null,Qo),jst=(fp.prototype._lock=function(){return E(!Ye.global),++this._reculock,this._reculock!==1||Ye.global||(Ye.lockOwnerFor=this),this},fp.prototype._unlock=function(){if(E(!Ye.global),--this._reculock==0)for(Ye.global||(Ye.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var X=this._blockedFuncs.shift();try{ln(X[1],X[0])}catch{}}return this},fp.prototype._locked=function(){return this._reculock&&Ye.lockOwnerFor!==this},fp.prototype.create=function(X){var te=this;if(!this.mode)return this;var ge=this.db.idbdb,Ce=this.db._state.dbOpenError;if(E(!this.idbtrans),!X&&!ge)switch(Ce&&Ce.name){case"DatabaseClosedError":throw new Z.DatabaseClosed(Ce);case"MissingAPIError":throw new Z.MissingAPI(Ce.message,Ce);default:throw new Z.OpenFailed(Ce)}if(!this.active)throw new Z.TransactionInactive;return E(this._completion._state===null),(X=this.idbtrans=X||(this.db.core||ge).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=mt(function(Ne){za(Ne),te._reject(X.error)}),X.onabort=mt(function(Ne){za(Ne),te.active&&te._reject(new Z.Abort(X.error)),te.active=!1,te.on("abort").fire(Ne)}),X.oncomplete=mt(function(){te.active=!1,te._resolve(),"mutatedParts"in X&&rf.storagemutated.fire(X.mutatedParts)}),this},fp.prototype._promise=function(X,te,ge){var Ce=this;if(X==="readwrite"&&this.mode!=="readwrite")return Zr(new Z.ReadOnly("Transaction is readonly"));if(!this.active)return Zr(new Z.TransactionInactive);if(this._locked())return new He(function(Qe,dt){Ce._blockedFuncs.push([function(){Ce._promise(X,te,ge).then(Qe,dt)},Ye])});if(ge)return dn(function(){var Qe=new He(function(dt,Et){Ce._lock();var It=te(dt,Et,Ce);It&&It.then&&It.then(dt,Et)});return Qe.finally(function(){return Ce._unlock()}),Qe._lib=!0,Qe});var Ne=new He(function(Qe,dt){var Et=te(Qe,dt,Ce);Et&&Et.then&&Et.then(Qe,dt)});return Ne._lib=!0,Ne},fp.prototype._root=function(){return this.parent?this.parent._root():this},fp.prototype.waitFor=function(X){var te,ge=this._root(),Ce=He.resolve(X);ge._waitingFor?ge._waitingFor=ge._waitingFor.then(function(){return Ce}):(ge._waitingFor=Ce,ge._waitingQueue=[],te=ge.idbtrans.objectStore(ge.storeNames[0]),(function Qe(){for(++ge._spinCount;ge._waitingQueue.length;)ge._waitingQueue.shift()();ge._waitingFor&&(te.get(-1/0).onsuccess=Qe)})());var Ne=ge._waitingFor;return new He(function(Qe,dt){Ce.then(function(Et){return ge._waitingQueue.push(mt(Qe.bind(null,Et)))},function(Et){return ge._waitingQueue.push(mt(dt.bind(null,Et)))}).finally(function(){ge._waitingFor===Ne&&(ge._waitingFor=null)})})},fp.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Z.Abort))},fp.prototype.table=function(X){var te=this._memoizedTables||(this._memoizedTables={});if(h(te,X))return te[X];var ge=this.schema[X];if(!ge)throw new Z.NotFound("Table "+X+" not part of transaction");return ge=new this.db.Table(X,ge,this),ge.core=this.db.core.table(X),te[X]=ge},fp);function fp(){}function az(X,te,ge,Ce,Ne,Qe,dt){return{name:X,keyPath:te,unique:ge,multi:Ce,auto:Ne,compound:Qe,src:(ge&&!dt?"&":"")+(Ce?"*":"")+(Ne?"++":"")+jpe(te)}}function jpe(X){return typeof X=="string"?X:X?"["+[].join.call(X,"+")+"]":""}function sz(X,te,ge){return{name:X,primKey:te,indexes:ge,mappedClass:null,idxByName:(Ce=function(Ne){return[Ne.name,Ne]},ge.reduce(function(Ne,Qe,dt){return dt=Ce(Qe,dt),dt&&(Ne[dt[0]]=dt[1]),Ne},{}))};var Ce}var QR=function(X){try{return X.only([[]]),QR=function(){return[[]]},[[]]}catch{return QR=function(){return Jr},Jr}};function oz(X){return X==null?function(){}:typeof X=="string"?(te=X).split(".").length===1?function(ge){return ge[te]}:function(ge){return T(ge,te)}:function(ge){return T(ge,X)};var te}function Xpe(X){return[].slice.call(X)}var Xst=0;function ZR(X){return X==null?":id":typeof X=="string"?X:"[".concat(X.join("+"),"]")}function Qst(X,te,It){function Ce(Ft){if(Ft.type===3)return null;if(Ft.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var Dt=Ft.lower,$t=Ft.upper,Wt=Ft.lowerOpen,Ft=Ft.upperOpen;return Dt===void 0?$t===void 0?null:te.upperBound($t,!!Ft):$t===void 0?te.lowerBound(Dt,!!Wt):te.bound(Dt,$t,!!Wt,!!Ft)}function Ne(Kt){var Dt,$t=Kt.name;return{name:$t,schema:Kt,mutate:function(Wt){var Ft=Wt.trans,Qt=Wt.type,tr=Wt.keys,rr=Wt.values,ur=Wt.range;return new Promise(function(Or,$r){Or=mt(Or);var Ir=Ft.objectStore($t),Lr=Ir.keyPath==null,Yr=Qt==="put"||Qt==="add";if(!Yr&&Qt!=="delete"&&Qt!=="deleteRange")throw new Error("Invalid operation type: "+Qt);var Ur,hn=(tr||rr||{length:1}).length;if(tr&&rr&&tr.length!==rr.length)throw new Error("Given keys array must have same length as given values array.");if(hn===0)return Or({numFailures:0,failures:{},results:[],lastResult:void 0});function bi(Fc){++gd,za(Fc)}var Fi=[],Bi=[],gd=0;if(Qt==="deleteRange"){if(ur.type===4)return Or({numFailures:gd,failures:Bi,results:[],lastResult:void 0});ur.type===3?Fi.push(Ur=Ir.clear()):Fi.push(Ur=Ir.delete(Ce(ur)))}else{var Lr=Yr?Lr?[rr,tr]:[rr,null]:[tr,null],yi=Lr[0],gc=Lr[1];if(Yr)for(var mc=0;mc<hn;++mc)Fi.push(Ur=gc&&gc[mc]!==void 0?Ir[Qt](yi[mc],gc[mc]):Ir[Qt](yi[mc])),Ur.onerror=bi;else for(mc=0;mc<hn;++mc)Fi.push(Ur=Ir[Qt](yi[mc])),Ur.onerror=bi}function KD(Fc){Fc=Fc.target.result,Fi.forEach(function(uv,wz){return uv.error!=null&&(Bi[wz]=uv.error)}),Or({numFailures:gd,failures:Bi,results:Qt==="delete"?tr:Fi.map(function(uv){return uv.result}),lastResult:Fc})}Ur.onerror=function(Fc){bi(Fc),KD(Fc)},Ur.onsuccess=KD})},getMany:function(Wt){var Ft=Wt.trans,Qt=Wt.keys;return new Promise(function(tr,rr){tr=mt(tr);for(var ur,Or=Ft.objectStore($t),$r=Qt.length,Ir=new Array($r),Lr=0,Yr=0,Ur=function(Fi){Fi=Fi.target,Ir[Fi._pos]=Fi.result,++Yr===Lr&&tr(Ir)},hn=oi(rr),bi=0;bi<$r;++bi)Qt[bi]!=null&&((ur=Or.get(Qt[bi]))._pos=bi,ur.onsuccess=Ur,ur.onerror=hn,++Lr);Lr===0&&tr(Ir)})},get:function(Wt){var Ft=Wt.trans,Qt=Wt.key;return new Promise(function(tr,rr){tr=mt(tr);var ur=Ft.objectStore($t).get(Qt);ur.onsuccess=function(Or){return tr(Or.target.result)},ur.onerror=oi(rr)})},query:(Dt=Lt,function(Wt){return new Promise(function(Ft,Qt){Ft=mt(Ft);var tr,rr,ur,Lr=Wt.trans,Or=Wt.values,$r=Wt.limit,Ur=Wt.query,Ir=$r===1/0?void 0:$r,Yr=Ur.index,Ur=Ur.range,Lr=Lr.objectStore($t),Yr=Yr.isPrimaryKey?Lr:Lr.index(Yr.name),Ur=Ce(Ur);if($r===0)return Ft({result:[]});Dt?((Ir=Or?Yr.getAll(Ur,Ir):Yr.getAllKeys(Ur,Ir)).onsuccess=function(hn){return Ft({result:hn.target.result})},Ir.onerror=oi(Qt)):(tr=0,rr=!Or&&"openKeyCursor"in Yr?Yr.openKeyCursor(Ur):Yr.openCursor(Ur),ur=[],rr.onsuccess=function(hn){var bi=rr.result;return bi?(ur.push(Or?bi.value:bi.primaryKey),++tr===$r?Ft({result:ur}):void bi.continue()):Ft({result:ur})},rr.onerror=oi(Qt))})}),openCursor:function(Wt){var Ft=Wt.trans,Qt=Wt.values,tr=Wt.query,rr=Wt.reverse,ur=Wt.unique;return new Promise(function(Or,$r){Or=mt(Or);var Yr=tr.index,Ir=tr.range,Lr=Ft.objectStore($t),Lr=Yr.isPrimaryKey?Lr:Lr.index(Yr.name),Yr=rr?ur?"prevunique":"prev":ur?"nextunique":"next",Ur=!Qt&&"openKeyCursor"in Lr?Lr.openKeyCursor(Ce(Ir),Yr):Lr.openCursor(Ce(Ir),Yr);Ur.onerror=oi($r),Ur.onsuccess=mt(function(hn){var bi,Fi,Bi,gd,yi=Ur.result;yi?(yi.___id=++Xst,yi.done=!1,bi=yi.continue.bind(yi),Fi=(Fi=yi.continuePrimaryKey)&&Fi.bind(yi),Bi=yi.advance.bind(yi),gd=function(){throw new Error("Cursor not stopped")},yi.trans=Ft,yi.stop=yi.continue=yi.continuePrimaryKey=yi.advance=function(){throw new Error("Cursor not started")},yi.fail=mt($r),yi.next=function(){var gc=this,mc=1;return this.start(function(){return mc--?gc.continue():gc.stop()}).then(function(){return gc})},yi.start=function(gc){function mc(){if(Ur.result)try{gc()}catch(Fc){yi.fail(Fc)}else yi.done=!0,yi.start=function(){throw new Error("Cursor behind last entry")},yi.stop()}var KD=new Promise(function(Fc,uv){Fc=mt(Fc),Ur.onerror=oi(uv),yi.fail=uv,yi.stop=function(wz){yi.stop=yi.continue=yi.continuePrimaryKey=yi.advance=gd,Fc(wz)}});return Ur.onsuccess=mt(function(Fc){Ur.onsuccess=mc,mc()}),yi.continue=bi,yi.continuePrimaryKey=Fi,yi.advance=Bi,mc(),KD},Or(yi)):Or(null)},$r)})},count:function(Wt){var Ft=Wt.query,Qt=Wt.trans,tr=Ft.index,rr=Ft.range;return new Promise(function(ur,Or){var $r=Qt.objectStore($t),Ir=tr.isPrimaryKey?$r:$r.index(tr.name),$r=Ce(rr),Ir=$r?Ir.count($r):Ir.count();Ir.onsuccess=mt(function(Lr){return ur(Lr.target.result)}),Ir.onerror=oi(Or)})}}}var Qe,dt,Et,Vt=(dt=It,Et=Xpe((Qe=X).objectStoreNames),{schema:{name:Qe.name,tables:Et.map(function(Kt){return dt.objectStore(Kt)}).map(function(Kt){var Dt=Kt.keyPath,Ft=Kt.autoIncrement,$t=o(Dt),Wt={},Ft={name:Kt.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:Dt==null,compound:$t,keyPath:Dt,autoIncrement:Ft,unique:!0,extractKey:oz(Dt)},indexes:Xpe(Kt.indexNames).map(function(Qt){return Kt.index(Qt)}).map(function(ur){var tr=ur.name,rr=ur.unique,Or=ur.multiEntry,ur=ur.keyPath,Or={name:tr,compound:o(ur),keyPath:ur,unique:rr,multiEntry:Or,extractKey:oz(ur)};return Wt[ZR(ur)]=Or}),getIndexByKeyPath:function(Qt){return Wt[ZR(Qt)]}};return Wt[":id"]=Ft.primaryKey,Dt!=null&&(Wt[ZR(Dt)]=Ft.primaryKey),Ft})},hasGetAll:0<Et.length&&"getAll"in dt.objectStore(Et[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),It=Vt.schema,Lt=Vt.hasGetAll,Vt=It.tables.map(Ne),wt={};return Vt.forEach(function(Kt){return wt[Kt.name]=Kt}),{stack:"dbcore",transaction:X.transaction.bind(X),table:function(Kt){if(!wt[Kt])throw new Error("Table '".concat(Kt,"' not found"));return wt[Kt]},MIN_KEY:-1/0,MAX_KEY:QR(te),schema:It}}function Zst(X,te,ge,Ce){var Ne=ge.IDBKeyRange;return ge.indexedDB,{dbcore:(Ce=Qst(te,Ne,Ce),X.dbcore.reduce(function(Qe,dt){return dt=dt.create,n(n({},Qe),dt(Qe))},Ce))}}function PD(X,Ce){var ge=Ce.db,Ce=Zst(X._middlewares,ge,X._deps,Ce);X.core=Ce.dbcore,X.tables.forEach(function(Ne){var Qe=Ne.name;X.core.schema.tables.some(function(dt){return dt.name===Qe})&&(Ne.core=X.core.table(Qe),X[Qe]instanceof X.Table&&(X[Qe].core=Ne.core))})}function FD(X,te,ge,Ce){ge.forEach(function(Ne){var Qe=Ce[Ne];te.forEach(function(dt){var Et=(function It(Lt,Vt){return _(Lt,Vt)||(Lt=u(Lt))&&It(Lt,Vt)})(dt,Ne);(!Et||"value"in Et&&Et.value===void 0)&&(dt===X.Transaction.prototype||dt instanceof X.Transaction?g(dt,Ne,{get:function(){return this.table(Ne)},set:function(It){p(this,Ne,{value:It,writable:!0,configurable:!0,enumerable:!0})}}):dt[Ne]=new X.Table(Ne,Qe))})})}function lz(X,te){te.forEach(function(ge){for(var Ce in ge)ge[Ce]instanceof X.Table&&delete ge[Ce]})}function Jst(X,te){return X._cfg.version-te._cfg.version}function eot(X,te,ge,Ce){var Ne=X._dbSchema;ge.objectStoreNames.contains("$meta")&&!Ne.$meta&&(Ne.$meta=sz("$meta",Zpe("")[0],[]),X._storeNames.push("$meta"));var Qe=X._createTransaction("readwrite",X._storeNames,Ne);Qe.create(ge),Qe._completion.catch(Ce);var dt=Qe._reject.bind(Qe),Et=Ye.transless||Ye;dn(function(){return Ye.trans=Qe,Ye.transless=Et,te!==0?(PD(X,ge),Lt=te,((It=Qe).storeNames.includes("$meta")?It.table("$meta").get("version").then(function(Vt){return Vt??Lt}):He.resolve(Lt)).then(function(Vt){return Kt=Vt,Dt=Qe,$t=ge,Wt=[],Vt=(wt=X)._versions,Ft=wt._dbSchema=UD(0,wt.idbdb,$t),(Vt=Vt.filter(function(Qt){return Qt._cfg.version>=Kt})).length!==0?(Vt.forEach(function(Qt){Wt.push(function(){var tr=Ft,rr=Qt._cfg.dbschema;$D(wt,tr,$t),$D(wt,rr,$t),Ft=wt._dbSchema=rr;var ur=cz(tr,rr);ur.add.forEach(function(Yr){uz($t,Yr[0],Yr[1].primKey,Yr[1].indexes)}),ur.change.forEach(function(Yr){if(Yr.recreate)throw new Z.Upgrade("Not yet support for changing primary key");var Ur=$t.objectStore(Yr.name);Yr.add.forEach(function(hn){return BD(Ur,hn)}),Yr.change.forEach(function(hn){Ur.deleteIndex(hn.name),BD(Ur,hn)}),Yr.del.forEach(function(hn){return Ur.deleteIndex(hn)})});var Or=Qt._cfg.contentUpgrade;if(Or&&Qt._cfg.version>Kt){PD(wt,$t),Dt._memoizedTables={};var $r=x(rr);ur.del.forEach(function(Yr){$r[Yr]=tr[Yr]}),lz(wt,[wt.Transaction.prototype]),FD(wt,[wt.Transaction.prototype],s($r),$r),Dt.schema=$r;var Ir,Lr=B(Or);return Lr&&st(),ur=He.follow(function(){var Yr;(Ir=Or(Dt))&&Lr&&(Yr=jt.bind(null,null),Ir.then(Yr,Yr))}),Ir&&typeof Ir.then=="function"?He.resolve(Ir):ur.then(function(){return Ir})}}),Wt.push(function(tr){var rr,ur,Or=Qt._cfg.dbschema;rr=Or,ur=tr,[].slice.call(ur.db.objectStoreNames).forEach(function($r){return rr[$r]==null&&ur.db.deleteObjectStore($r)}),lz(wt,[wt.Transaction.prototype]),FD(wt,[wt.Transaction.prototype],wt._storeNames,wt._dbSchema),Dt.schema=wt._dbSchema}),Wt.push(function(tr){wt.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(wt.idbdb.version/10)===Qt._cfg.version?(wt.idbdb.deleteObjectStore("$meta"),delete wt._dbSchema.$meta,wt._storeNames=wt._storeNames.filter(function(rr){return rr!=="$meta"})):tr.objectStore("$meta").put(Qt._cfg.version,"version"))})}),(function Qt(){return Wt.length?He.resolve(Wt.shift()(Dt.idbtrans)).then(Qt):He.resolve()})().then(function(){Qpe(Ft,$t)})):He.resolve();var wt,Kt,Dt,$t,Wt,Ft}).catch(dt)):(s(Ne).forEach(function(Vt){uz(ge,Vt,Ne[Vt].primKey,Ne[Vt].indexes)}),PD(X,ge),void He.follow(function(){return X.on.populate.fire(Qe)}).catch(dt));var It,Lt})}function tot(X,te){Qpe(X._dbSchema,te),te.db.version%10!=0||te.objectStoreNames.contains("$meta")||te.db.createObjectStore("$meta").add(Math.ceil(te.db.version/10-1),"version");var ge=UD(0,X.idbdb,te);$D(X,X._dbSchema,te);for(var Ce=0,Ne=cz(ge,X._dbSchema).change;Ce<Ne.length;Ce++){var Qe=(function(dt){if(dt.change.length||dt.recreate)return console.warn("Unable to patch indexes of table ".concat(dt.name," because it has changes on the type of index or primary key.")),{value:void 0};var Et=te.objectStore(dt.name);dt.add.forEach(function(It){Ae&&console.debug("Dexie upgrade patch: Creating missing index ".concat(dt.name,".").concat(It.src)),BD(Et,It)})})(Ne[Ce]);if(typeof Qe=="object")return Qe.value}}function cz(X,te){var ge,Ce={del:[],add:[],change:[]};for(ge in X)te[ge]||Ce.del.push(ge);for(ge in te){var Ne=X[ge],Qe=te[ge];if(Ne){var dt={name:ge,def:Qe,recreate:!1,del:[],add:[],change:[]};if(""+(Ne.primKey.keyPath||"")!=""+(Qe.primKey.keyPath||"")||Ne.primKey.auto!==Qe.primKey.auto)dt.recreate=!0,Ce.change.push(dt);else{var Et=Ne.idxByName,It=Qe.idxByName,Lt=void 0;for(Lt in Et)It[Lt]||dt.del.push(Lt);for(Lt in It){var Vt=Et[Lt],wt=It[Lt];Vt?Vt.src!==wt.src&&dt.change.push(wt):dt.add.push(wt)}(0<dt.del.length||0<dt.add.length||0<dt.change.length)&&Ce.change.push(dt)}}else Ce.add.push([ge,Qe])}return Ce}function uz(X,te,ge,Ce){var Ne=X.db.createObjectStore(te,ge.keyPath?{keyPath:ge.keyPath,autoIncrement:ge.auto}:{autoIncrement:ge.auto});return Ce.forEach(function(Qe){return BD(Ne,Qe)}),Ne}function Qpe(X,te){s(X).forEach(function(ge){te.db.objectStoreNames.contains(ge)||(Ae&&console.debug("Dexie: Creating missing table",ge),uz(te,ge,X[ge].primKey,X[ge].indexes))})}function BD(X,te){X.createIndex(te.name,te.keyPath,{unique:te.unique,multiEntry:te.multi})}function UD(X,te,ge){var Ce={};return y(te.objectStoreNames,0).forEach(function(Ne){for(var Qe=ge.objectStore(Ne),dt=az(jpe(Lt=Qe.keyPath),Lt||"",!0,!1,!!Qe.autoIncrement,Lt&&typeof Lt!="string",!0),Et=[],It=0;It<Qe.indexNames.length;++It){var Vt=Qe.index(Qe.indexNames[It]),Lt=Vt.keyPath,Vt=az(Vt.name,Lt,!!Vt.unique,!!Vt.multiEntry,!1,Lt&&typeof Lt!="string",!1);Et.push(Vt)}Ce[Ne]=sz(Ne,dt,Et)}),Ce}function $D(X,te,ge){for(var Ce=ge.db.objectStoreNames,Ne=0;Ne<Ce.length;++Ne){var Qe=Ce[Ne],dt=ge.objectStore(Qe);X._hasGetAll="getAll"in dt;for(var Et=0;Et<dt.indexNames.length;++Et){var It=dt.indexNames[Et],Lt=dt.index(It).keyPath,Vt=typeof Lt=="string"?Lt:"["+y(Lt).join("+")+"]";!te[Qe]||(Lt=te[Qe].idxByName[Vt])&&(Lt.name=It,delete te[Qe].idxByName[Vt],te[Qe].idxByName[It]=Lt)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&a.WorkerGlobalScope&&a instanceof a.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(X._hasGetAll=!1)}function Zpe(X){return X.split(",").map(function(te,ge){var Ce=(te=te.trim()).replace(/([&*]|\+\+)/g,""),Ne=/^\[/.test(Ce)?Ce.match(/^\[(.*)\]$/)[1].split("+"):Ce;return az(Ce,Ne||null,/\&/.test(te),/\*/.test(te),/\+\+/.test(te),o(Ne),ge===0)})}var rot=(GD.prototype._parseStoresSpec=function(X,te){s(X).forEach(function(ge){if(X[ge]!==null){var Ce=Zpe(X[ge]),Ne=Ce.shift();if(Ne.unique=!0,Ne.multi)throw new Z.Schema("Primary key cannot be multi-valued");Ce.forEach(function(Qe){if(Qe.auto)throw new Z.Schema("Only primary key can be marked as autoIncrement (++)");if(!Qe.keyPath)throw new Z.Schema("Index must have a name and cannot be an empty string")}),te[ge]=sz(ge,Ne,Ce)}})},GD.prototype.stores=function(ge){var te=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,ge):ge;var ge=te._versions,Ce={},Ne={};return ge.forEach(function(Qe){l(Ce,Qe._cfg.storesSource),Ne=Qe._cfg.dbschema={},Qe._parseStoresSpec(Ce,Ne)}),te._dbSchema=Ne,lz(te,[te._allTables,te,te.Transaction.prototype]),FD(te,[te._allTables,te,te.Transaction.prototype,this._cfg.tables],s(Ne),Ne),te._storeNames=s(Ne),this},GD.prototype.upgrade=function(X){return this._cfg.contentUpgrade=ke(this._cfg.contentUpgrade||j,X),this},GD);function GD(){}function dz(X,te){var ge=X._dbNamesDB;return ge||(ge=X._dbNamesDB=new Vg(Ta,{addons:[],indexedDB:X,IDBKeyRange:te})).version(1).stores({dbnames:"name"}),ge.table("dbnames")}function hz(X){return X&&typeof X.databases=="function"}function fz(X){return dn(function(){return Ye.letThrough=!0,X()})}function pz(X){return!("from"in X)}var pc=function(X,te){if(!this){var ge=new pc;return X&&"d"in X&&l(ge,X),ge}l(this,arguments.length?{d:1,from:X,to:1<arguments.length?te:X}:{d:0})};function JR(X,te,ge){var Ce=Ht(te,ge);if(!isNaN(Ce)){if(0<Ce)throw RangeError();if(pz(X))return l(X,{from:te,to:ge,d:1});var Ne=X.l,Ce=X.r;if(Ht(ge,X.from)<0)return Ne?JR(Ne,te,ge):X.l={from:te,to:ge,d:1,l:null,r:null},ege(X);if(0<Ht(te,X.to))return Ce?JR(Ce,te,ge):X.r={from:te,to:ge,d:1,l:null,r:null},ege(X);Ht(te,X.from)<0&&(X.from=te,X.l=null,X.d=Ce?Ce.d+1:1),0<Ht(ge,X.to)&&(X.to=ge,X.r=null,X.d=X.l?X.l.d+1:1),ge=!X.r,Ne&&!X.l&&eO(X,Ne),Ce&&ge&&eO(X,Ce)}}function eO(X,te){pz(te)||(function ge(Ce,It){var Qe=It.from,dt=It.to,Et=It.l,It=It.r;JR(Ce,Qe,dt),Et&&ge(Ce,Et),It&&ge(Ce,It)})(X,te)}function Jpe(X,te){var ge=zD(te),Ce=ge.next();if(Ce.done)return!1;for(var Ne=Ce.value,Qe=zD(X),dt=Qe.next(Ne.from),Et=dt.value;!Ce.done&&!dt.done;){if(Ht(Et.from,Ne.to)<=0&&0<=Ht(Et.to,Ne.from))return!0;Ht(Ne.from,Et.from)<0?Ne=(Ce=ge.next(Et.from)).value:Et=(dt=Qe.next(Ne.from)).value}return!1}function zD(X){var te=pz(X)?null:{s:0,n:X};return{next:function(ge){for(var Ce=0<arguments.length;te;)switch(te.s){case 0:if(te.s=1,Ce)for(;te.n.l&&Ht(ge,te.n.from)<0;)te={up:te,n:te.n.l,s:1};else for(;te.n.l;)te={up:te,n:te.n.l,s:1};case 1:if(te.s=2,!Ce||Ht(ge,te.n.to)<=0)return{value:te.n,done:!1};case 2:if(te.n.r){te.s=3,te={up:te,n:te.n.r,s:0};continue}case 3:te=te.up}return{done:!0}}}}function ege(X){var te,ge,Ce=(((te=X.r)===null||te===void 0?void 0:te.d)||0)-(((ge=X.l)===null||ge===void 0?void 0:ge.d)||0),Ne=1<Ce?"r":Ce<-1?"l":"";Ne&&(te=Ne=="r"?"l":"r",ge=n({},X),Ce=X[Ne],X.from=Ce.from,X.to=Ce.to,X[Ne]=Ce[Ne],ge[Ne]=Ce[te],(X[te]=ge).d=tge(ge)),X.d=tge(X)}function tge(ge){var te=ge.r,ge=ge.l;return(te?ge?Math.max(te.d,ge.d):te.d:ge?ge.d:0)+1}function qD(X,te){return s(te).forEach(function(ge){X[ge]?eO(X[ge],te[ge]):X[ge]=(function Ce(Ne){var Qe,dt,Et={};for(Qe in Ne)h(Ne,Qe)&&(dt=Ne[Qe],Et[Qe]=!dt||typeof dt!="object"||I.has(dt.constructor)?dt:Ce(dt));return Et})(te[ge])}),X}function gz(X,te){return X.all||te.all||Object.keys(X).some(function(ge){return te[ge]&&Jpe(te[ge],X[ge])})}f(pc.prototype,((uh={add:function(X){return eO(this,X),this},addKey:function(X){return JR(this,X,X),this},addKeys:function(X){var te=this;return X.forEach(function(ge){return JR(te,ge,ge)}),this},hasKey:function(X){var te=zD(this).next(X).value;return te&&Ht(te.from,X)<=0&&0<=Ht(te.to,X)}})[M]=function(){return zD(this)},uh));var lv={},mz={},_z=!1;function VD(X){qD(mz,X),_z||(_z=!0,setTimeout(function(){_z=!1,vz(mz,!(mz={}))},0))}function vz(X,te){te===void 0&&(te=!1);var ge=new Set;if(X.all)for(var Ce=0,Ne=Object.values(lv);Ce<Ne.length;Ce++)rge(dt=Ne[Ce],X,ge,te);else for(var Qe in X){var dt,Et=/^idb\:\/\/(.*)\/(.*)\//.exec(Qe);Et&&(Qe=Et[1],Et=Et[2],(dt=lv["idb://".concat(Qe,"/").concat(Et)])&&rge(dt,X,ge,te))}ge.forEach(function(It){return It()})}function rge(X,te,ge,Ce){for(var Ne=[],Qe=0,dt=Object.entries(X.queries.query);Qe<dt.length;Qe++){for(var Et=dt[Qe],It=Et[0],Lt=[],Vt=0,wt=Et[1];Vt<wt.length;Vt++){var Kt=wt[Vt];gz(te,Kt.obsSet)?Kt.subscribers.forEach(function(Ft){return ge.add(Ft)}):Ce&&Lt.push(Kt)}Ce&&Ne.push([It,Lt])}if(Ce)for(var Dt=0,$t=Ne;Dt<$t.length;Dt++){var Wt=$t[Dt],It=Wt[0],Lt=Wt[1];X.queries.query[It]=Lt}}function not(X){var te=X._state,ge=X._deps.indexedDB;if(te.isBeingOpened||X.idbdb)return te.dbReadyPromise.then(function(){return te.dbOpenError?Zr(te.dbOpenError):X});te.isBeingOpened=!0,te.dbOpenError=null,te.openComplete=!1;var Ce=te.openCanceller,Ne=Math.round(10*X.verno),Qe=!1;function dt(){if(te.openCanceller!==Ce)throw new Z.DatabaseClosed("db.open() was cancelled")}function Et(){return new He(function(Kt,Dt){if(dt(),!ge)throw new Z.MissingAPI;var $t=X.name,Wt=te.autoSchema||!Ne?ge.open($t):ge.open($t,Ne);if(!Wt)throw new Z.MissingAPI;Wt.onerror=oi(Dt),Wt.onblocked=mt(X._fireOnBlocked),Wt.onupgradeneeded=mt(function(Ft){var Qt;Vt=Wt.transaction,te.autoSchema&&!X._options.allowEmptyDB?(Wt.onerror=za,Vt.abort(),Wt.result.close(),(Qt=ge.deleteDatabase($t)).onsuccess=Qt.onerror=mt(function(){Dt(new Z.NoSuchDatabase("Database ".concat($t," doesnt exist")))})):(Vt.onerror=oi(Dt),Ft=Ft.oldVersion>Math.pow(2,62)?0:Ft.oldVersion,wt=Ft<1,X.idbdb=Wt.result,Qe&&tot(X,Vt),eot(X,Ft/10,Vt,Dt))},Dt),Wt.onsuccess=mt(function(){Vt=null;var Ft,Qt,tr,rr,ur,Or=X.idbdb=Wt.result,$r=y(Or.objectStoreNames);if(0<$r.length)try{var Ir=Or.transaction((rr=$r).length===1?rr[0]:rr,"readonly");if(te.autoSchema)Qt=Or,tr=Ir,(Ft=X).verno=Qt.version/10,tr=Ft._dbSchema=UD(0,Qt,tr),Ft._storeNames=y(Qt.objectStoreNames,0),FD(Ft,[Ft._allTables],s(tr),tr);else if($D(X,X._dbSchema,Ir),((ur=cz(UD(0,(ur=X).idbdb,Ir),ur._dbSchema)).add.length||ur.change.some(function(Lr){return Lr.add.length||Lr.change.length}))&&!Qe)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Or.close(),Ne=Or.version+1,Qe=!0,Kt(Et());PD(X,Ir)}catch{}si.push(X),Or.onversionchange=mt(function(Lr){te.vcFired=!0,X.on("versionchange").fire(Lr)}),Or.onclose=mt(function(Lr){X.on("close").fire(Lr)}),wt&&(ur=X._deps,Ir=$t,Or=ur.indexedDB,ur=ur.IDBKeyRange,hz(Or)||Ir===Ta||dz(Or,ur).put({name:Ir}).catch(j)),Kt()},Dt)}).catch(function(Kt){switch(Kt?.name){case"UnknownError":if(0<te.PR1398_maxLoop)return te.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Et();break;case"VersionError":if(0<Ne)return Ne=0,Et()}return He.reject(Kt)})}var It,Lt=te.dbReadyResolve,Vt=null,wt=!1;return He.race([Ce,(typeof navigator>"u"?He.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Kt){function Dt(){return indexedDB.databases().finally(Kt)}It=setInterval(Dt,100),Dt()}).finally(function(){return clearInterval(It)}):Promise.resolve()).then(Et)]).then(function(){return dt(),te.onReadyBeingFired=[],He.resolve(fz(function(){return X.on.ready.fire(X.vip)})).then(function Kt(){if(0<te.onReadyBeingFired.length){var Dt=te.onReadyBeingFired.reduce(ke,j);return te.onReadyBeingFired=[],He.resolve(fz(function(){return Dt(X.vip)})).then(Kt)}})}).finally(function(){te.openCanceller===Ce&&(te.onReadyBeingFired=null,te.isBeingOpened=!1)}).catch(function(Kt){te.dbOpenError=Kt;try{Vt&&Vt.abort()}catch{}return Ce===te.openCanceller&&X._close(),Zr(Kt)}).finally(function(){te.openComplete=!0,Lt()}).then(function(){var Kt;return wt&&(Kt={},X.tables.forEach(function(Dt){Dt.schema.indexes.forEach(function($t){$t.name&&(Kt["idb://".concat(X.name,"/").concat(Dt.name,"/").concat($t.name)]=new pc(-1/0,[[[]]]))}),Kt["idb://".concat(X.name,"/").concat(Dt.name,"/")]=Kt["idb://".concat(X.name,"/").concat(Dt.name,"/:dels")]=new pc(-1/0,[[[]]])}),rf(Qo).fire(Kt),vz(Kt,!0)),X})}function yz(X){function te(Qe){return X.next(Qe)}var ge=Ne(te),Ce=Ne(function(Qe){return X.throw(Qe)});function Ne(Qe){return function(It){var Et=Qe(It),It=Et.value;return Et.done?It:It&&typeof It.then=="function"?It.then(ge,Ce):o(It)?Promise.all(It).then(ge,Ce):ge(It)}}return Ne(te)()}function HD(X,te,ge){for(var Ce=o(X)?X.slice():[X],Ne=0;Ne<ge;++Ne)Ce.push(te);return Ce}var iot={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(X){return n(n({},X),{table:function(te){var ge=X.table(te),Ce=ge.schema,Ne={},Qe=[];function dt(wt,Kt,Dt){var $t=ZR(wt),Wt=Ne[$t]=Ne[$t]||[],Ft=wt==null?0:typeof wt=="string"?1:wt.length,Qt=0<Kt,Qt=n(n({},Dt),{name:Qt?"".concat($t,"(virtual-from:").concat(Dt.name,")"):Dt.name,lowLevelIndex:Dt,isVirtual:Qt,keyTail:Kt,keyLength:Ft,extractKey:oz(wt),unique:!Qt&&Dt.unique});return Wt.push(Qt),Qt.isPrimaryKey||Qe.push(Qt),1<Ft&&dt(Ft===2?wt[0]:wt.slice(0,Ft-1),Kt+1,Dt),Wt.sort(function(tr,rr){return tr.keyTail-rr.keyTail}),Qt}te=dt(Ce.primaryKey.keyPath,0,Ce.primaryKey),Ne[":id"]=[te];for(var Et=0,It=Ce.indexes;Et<It.length;Et++){var Lt=It[Et];dt(Lt.keyPath,0,Lt)}function Vt(wt){var Kt,Dt=wt.query.index;return Dt.isVirtual?n(n({},wt),{query:{index:Dt.lowLevelIndex,range:(Kt=wt.query.range,Dt=Dt.keyTail,{type:Kt.type===1?2:Kt.type,lower:HD(Kt.lower,Kt.lowerOpen?X.MAX_KEY:X.MIN_KEY,Dt),lowerOpen:!0,upper:HD(Kt.upper,Kt.upperOpen?X.MIN_KEY:X.MAX_KEY,Dt),upperOpen:!0})}}):wt}return n(n({},ge),{schema:n(n({},Ce),{primaryKey:te,indexes:Qe,getIndexByKeyPath:function(wt){return(wt=Ne[ZR(wt)])&&wt[0]}}),count:function(wt){return ge.count(Vt(wt))},query:function(wt){return ge.query(Vt(wt))},openCursor:function(wt){var Kt=wt.query.index,Dt=Kt.keyTail,$t=Kt.isVirtual,Wt=Kt.keyLength;return $t?ge.openCursor(Vt(wt)).then(function(Qt){return Qt&&Ft(Qt)}):ge.openCursor(wt);function Ft(Qt){return Object.create(Qt,{continue:{value:function(tr){tr!=null?Qt.continue(HD(tr,wt.reverse?X.MAX_KEY:X.MIN_KEY,Dt)):wt.unique?Qt.continue(Qt.key.slice(0,Wt).concat(wt.reverse?X.MIN_KEY:X.MAX_KEY,Dt)):Qt.continue()}},continuePrimaryKey:{value:function(tr,rr){Qt.continuePrimaryKey(HD(tr,X.MAX_KEY,Dt),rr)}},primaryKey:{get:function(){return Qt.primaryKey}},key:{get:function(){var tr=Qt.key;return Wt===1?tr[0]:tr.slice(0,Wt)}},value:{get:function(){return Qt.value}}})}}})}})}};function bz(X,te,ge,Ce){return ge=ge||{},Ce=Ce||"",s(X).forEach(function(Ne){var Qe,dt,Et;h(te,Ne)?(Qe=X[Ne],dt=te[Ne],typeof Qe=="object"&&typeof dt=="object"&&Qe&&dt?(Et=D(Qe))!==D(dt)?ge[Ce+Ne]=te[Ne]:Et==="Object"?bz(Qe,dt,ge,Ce+Ne+"."):Qe!==dt&&(ge[Ce+Ne]=te[Ne]):Qe!==dt&&(ge[Ce+Ne]=te[Ne])):ge[Ce+Ne]=void 0}),s(te).forEach(function(Ne){h(X,Ne)||(ge[Ce+Ne]=te[Ne])}),ge}function Ez(X,te){return te.type==="delete"?te.keys:te.keys||te.values.map(X.extractKey)}var aot={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(X){return n(n({},X),{table:function(te){var ge=X.table(te),Ce=ge.schema.primaryKey;return n(n({},ge),{mutate:function(Ne){var Qe=Ye.trans,dt=Qe.table(te).hook,Et=dt.deleting,It=dt.creating,Lt=dt.updating;switch(Ne.type){case"add":if(It.fire===j)break;return Qe._promise("readwrite",function(){return Vt(Ne)},!0);case"put":if(It.fire===j&&Lt.fire===j)break;return Qe._promise("readwrite",function(){return Vt(Ne)},!0);case"delete":if(Et.fire===j)break;return Qe._promise("readwrite",function(){return Vt(Ne)},!0);case"deleteRange":if(Et.fire===j)break;return Qe._promise("readwrite",function(){return(function wt(Kt,Dt,$t){return ge.query({trans:Kt,values:!1,query:{index:Ce,range:Dt},limit:$t}).then(function(Wt){var Ft=Wt.result;return Vt({type:"delete",keys:Ft,trans:Kt}).then(function(Qt){return 0<Qt.numFailures?Promise.reject(Qt.failures[0]):Ft.length<$t?{failures:[],numFailures:0,lastResult:void 0}:wt(Kt,n(n({},Dt),{lower:Ft[Ft.length-1],lowerOpen:!0}),$t)})})})(Ne.trans,Ne.range,1e4)},!0)}return ge.mutate(Ne);function Vt(wt){var Kt,Dt,$t,Wt=Ye.trans,Ft=wt.keys||Ez(Ce,wt);if(!Ft)throw new Error("Keys missing");return(wt=wt.type==="add"||wt.type==="put"?n(n({},wt),{keys:Ft}):n({},wt)).type!=="delete"&&(wt.values=i([],wt.values)),wt.keys&&(wt.keys=i([],wt.keys)),Kt=ge,$t=Ft,((Dt=wt).type==="add"?Promise.resolve([]):Kt.getMany({trans:Dt.trans,keys:$t,cache:"immutable"})).then(function(Qt){var tr=Ft.map(function(rr,ur){var Or,$r,Ir,Lr=Qt[ur],Yr={onerror:null,onsuccess:null};return wt.type==="delete"?Et.fire.call(Yr,rr,Lr,Wt):wt.type==="add"||Lr===void 0?(Or=It.fire.call(Yr,rr,wt.values[ur],Wt),rr==null&&Or!=null&&(wt.keys[ur]=rr=Or,Ce.outbound||C(wt.values[ur],Ce.keyPath,rr))):(Or=bz(Lr,wt.values[ur]),($r=Lt.fire.call(Yr,Or,rr,Lr,Wt))&&(Ir=wt.values[ur],Object.keys($r).forEach(function(Ur){h(Ir,Ur)?Ir[Ur]=$r[Ur]:C(Ir,Ur,$r[Ur])}))),Yr});return ge.mutate(wt).then(function(rr){for(var ur=rr.failures,Or=rr.results,$r=rr.numFailures,rr=rr.lastResult,Ir=0;Ir<Ft.length;++Ir){var Lr=(Or||Ft)[Ir],Yr=tr[Ir];Lr==null?Yr.onerror&&Yr.onerror(ur[Ir]):Yr.onsuccess&&Yr.onsuccess(wt.type==="put"&&Qt[Ir]?wt.values[Ir]:Lr)}return{failures:ur,results:Or,numFailures:$r,lastResult:rr}}).catch(function(rr){return tr.forEach(function(ur){return ur.onerror&&ur.onerror(rr)}),Promise.reject(rr)})})}}})}})}};function nge(X,te,ge){try{if(!te||te.keys.length<X.length)return null;for(var Ce=[],Ne=0,Qe=0;Ne<te.keys.length&&Qe<X.length;++Ne)Ht(te.keys[Ne],X[Qe])===0&&(Ce.push(ge?F(te.values[Ne]):te.values[Ne]),++Qe);return Ce.length===X.length?Ce:null}catch{return null}}var sot={stack:"dbcore",level:-1,create:function(X){return{table:function(te){var ge=X.table(te);return n(n({},ge),{getMany:function(Ce){if(!Ce.cache)return ge.getMany(Ce);var Ne=nge(Ce.keys,Ce.trans._cache,Ce.cache==="clone");return Ne?He.resolve(Ne):ge.getMany(Ce).then(function(Qe){return Ce.trans._cache={keys:Ce.keys,values:Ce.cache==="clone"?F(Qe):Qe},Qe})},mutate:function(Ce){return Ce.type!=="add"&&(Ce.trans._cache=null),ge.mutate(Ce)}})}}}};function ige(X,te){return X.trans.mode==="readonly"&&!!X.subscr&&!X.trans.explicit&&X.trans.db._options.cache!=="disabled"&&!te.schema.primaryKey.outbound}function age(X,te){switch(X){case"query":return te.values&&!te.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var oot={stack:"dbcore",level:0,name:"Observability",create:function(X){var te=X.schema.name,ge=new pc(X.MIN_KEY,X.MAX_KEY);return n(n({},X),{transaction:function(Ce,Ne,Qe){if(Ye.subscr&&Ne!=="readonly")throw new Z.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Ye.querier));return X.transaction(Ce,Ne,Qe)},table:function(Ce){var Ne=X.table(Ce),Qe=Ne.schema,dt=Qe.primaryKey,wt=Qe.indexes,Et=dt.extractKey,It=dt.outbound,Lt=dt.autoIncrement&&wt.filter(function(Dt){return Dt.compound&&Dt.keyPath.includes(dt.keyPath)}),Vt=n(n({},Ne),{mutate:function(Dt){function $t(Ur){return Ur="idb://".concat(te,"/").concat(Ce,"/").concat(Ur),rr[Ur]||(rr[Ur]=new pc)}var Wt,Ft,Qt,tr=Dt.trans,rr=Dt.mutatedParts||(Dt.mutatedParts={}),ur=$t(""),Or=$t(":dels"),$r=Dt.type,Yr=Dt.type==="deleteRange"?[Dt.range]:Dt.type==="delete"?[Dt.keys]:Dt.values.length<50?[Ez(dt,Dt).filter(function(Ur){return Ur}),Dt.values]:[],Ir=Yr[0],Lr=Yr[1],Yr=Dt.trans._cache;return o(Ir)?(ur.addKeys(Ir),(Yr=$r==="delete"||Ir.length===Lr.length?nge(Ir,Yr):null)||Or.addKeys(Ir),(Yr||Lr)&&(Wt=$t,Ft=Yr,Qt=Lr,Qe.indexes.forEach(function(Ur){var hn=Wt(Ur.name||"");function bi(Bi){return Bi!=null?Ur.extractKey(Bi):null}function Fi(Bi){return Ur.multiEntry&&o(Bi)?Bi.forEach(function(gd){return hn.addKey(gd)}):hn.addKey(Bi)}(Ft||Qt).forEach(function(Bi,gc){var yi=Ft&&bi(Ft[gc]),gc=Qt&&bi(Qt[gc]);Ht(yi,gc)!==0&&(yi!=null&&Fi(yi),gc!=null&&Fi(gc))})}))):Ir?(Lr={from:(Lr=Ir.lower)!==null&&Lr!==void 0?Lr:X.MIN_KEY,to:(Lr=Ir.upper)!==null&&Lr!==void 0?Lr:X.MAX_KEY},Or.add(Lr),ur.add(Lr)):(ur.add(ge),Or.add(ge),Qe.indexes.forEach(function(Ur){return $t(Ur.name).add(ge)})),Ne.mutate(Dt).then(function(Ur){return!Ir||Dt.type!=="add"&&Dt.type!=="put"||(ur.addKeys(Ur.results),Lt&&Lt.forEach(function(hn){for(var bi=Dt.values.map(function(yi){return hn.extractKey(yi)}),Fi=hn.keyPath.findIndex(function(yi){return yi===dt.keyPath}),Bi=0,gd=Ur.results.length;Bi<gd;++Bi)bi[Bi][Fi]=Ur.results[Bi];$t(hn.name).addKeys(bi)})),tr.mutatedParts=qD(tr.mutatedParts||{},rr),Ur})}}),wt=function($t){var Wt=$t.query,$t=Wt.index,Wt=Wt.range;return[$t,new pc(($t=Wt.lower)!==null&&$t!==void 0?$t:X.MIN_KEY,(Wt=Wt.upper)!==null&&Wt!==void 0?Wt:X.MAX_KEY)]},Kt={get:function(Dt){return[dt,new pc(Dt.key)]},getMany:function(Dt){return[dt,new pc().addKeys(Dt.keys)]},count:wt,query:wt,openCursor:wt};return s(Kt).forEach(function(Dt){Vt[Dt]=function($t){var Wt=Ye.subscr,Ft=!!Wt,Qt=ige(Ye,Ne)&&age(Dt,$t)?$t.obsSet={}:Wt;if(Ft){var tr=function(Lr){return Lr="idb://".concat(te,"/").concat(Ce,"/").concat(Lr),Qt[Lr]||(Qt[Lr]=new pc)},rr=tr(""),ur=tr(":dels"),Wt=Kt[Dt]($t),Ft=Wt[0],Wt=Wt[1];if((Dt==="query"&&Ft.isPrimaryKey&&!$t.values?ur:tr(Ft.name||"")).add(Wt),!Ft.isPrimaryKey){if(Dt!=="count"){var Or=Dt==="query"&&It&&$t.values&&Ne.query(n(n({},$t),{values:!1}));return Ne[Dt].apply(this,arguments).then(function(Lr){if(Dt==="query"){if(It&&$t.values)return Or.then(function(bi){return bi=bi.result,rr.addKeys(bi),Lr});var Yr=$t.values?Lr.result.map(Et):Lr.result;($t.values?rr:ur).addKeys(Yr)}else if(Dt==="openCursor"){var Ur=Lr,hn=$t.values;return Ur&&Object.create(Ur,{key:{get:function(){return ur.addKey(Ur.primaryKey),Ur.key}},primaryKey:{get:function(){var bi=Ur.primaryKey;return ur.addKey(bi),bi}},value:{get:function(){return hn&&rr.addKey(Ur.primaryKey),Ur.value}}})}return Lr})}ur.add(ge)}}return Ne[Dt].apply(this,arguments)}}),Vt}})}};function sge(X,te,ge){if(ge.numFailures===0)return te;if(te.type==="deleteRange")return null;var Ce=te.keys?te.keys.length:"values"in te&&te.values?te.values.length:1;return ge.numFailures===Ce?null:(te=n({},te),o(te.keys)&&(te.keys=te.keys.filter(function(Ne,Qe){return!(Qe in ge.failures)})),"values"in te&&o(te.values)&&(te.values=te.values.filter(function(Ne,Qe){return!(Qe in ge.failures)})),te)}function Sz(X,te){return ge=X,((Ce=te).lower===void 0||(Ce.lowerOpen?0<Ht(ge,Ce.lower):0<=Ht(ge,Ce.lower)))&&(X=X,(te=te).upper===void 0||(te.upperOpen?Ht(X,te.upper)<0:Ht(X,te.upper)<=0));var ge,Ce}function oge(X,te,Kt,Ce,Ne,Qe){if(!Kt||Kt.length===0)return X;var dt=te.query.index,Et=dt.multiEntry,It=te.query.range,Lt=Ce.schema.primaryKey.extractKey,Vt=dt.extractKey,wt=(dt.lowLevelIndex||dt).extractKey,Kt=Kt.reduce(function(Dt,$t){var Wt=Dt,Ft=[];if($t.type==="add"||$t.type==="put")for(var Qt=new pc,tr=$t.values.length-1;0<=tr;--tr){var rr,ur=$t.values[tr],Or=Lt(ur);Qt.hasKey(Or)||(rr=Vt(ur),(Et&&o(rr)?rr.some(function(Ur){return Sz(Ur,It)}):Sz(rr,It))&&(Qt.addKey(Or),Ft.push(ur)))}switch($t.type){case"add":var $r=new pc().addKeys(te.values?Dt.map(function(hn){return Lt(hn)}):Dt),Wt=Dt.concat(te.values?Ft.filter(function(hn){return hn=Lt(hn),!$r.hasKey(hn)&&($r.addKey(hn),!0)}):Ft.map(function(hn){return Lt(hn)}).filter(function(hn){return!$r.hasKey(hn)&&($r.addKey(hn),!0)}));break;case"put":var Ir=new pc().addKeys($t.values.map(function(hn){return Lt(hn)}));Wt=Dt.filter(function(hn){return!Ir.hasKey(te.values?Lt(hn):hn)}).concat(te.values?Ft:Ft.map(function(hn){return Lt(hn)}));break;case"delete":var Lr=new pc().addKeys($t.keys);Wt=Dt.filter(function(hn){return!Lr.hasKey(te.values?Lt(hn):hn)});break;case"deleteRange":var Yr=$t.range;Wt=Dt.filter(function(hn){return!Sz(Lt(hn),Yr)})}return Wt},X);return Kt===X?X:(Kt.sort(function(Dt,$t){return Ht(wt(Dt),wt($t))||Ht(Lt(Dt),Lt($t))}),te.limit&&te.limit<1/0&&(Kt.length>te.limit?Kt.length=te.limit:X.length===te.limit&&Kt.length<te.limit&&(Ne.dirty=!0)),Qe?Object.freeze(Kt):Kt)}function lge(X,te){return Ht(X.lower,te.lower)===0&&Ht(X.upper,te.upper)===0&&!!X.lowerOpen==!!te.lowerOpen&&!!X.upperOpen==!!te.upperOpen}function lot(X,te){return(function(ge,Ce,Ne,Qe){if(ge===void 0)return Ce!==void 0?-1:0;if(Ce===void 0)return 1;if((Ce=Ht(ge,Ce))===0){if(Ne&&Qe)return 0;if(Ne)return 1;if(Qe)return-1}return Ce})(X.lower,te.lower,X.lowerOpen,te.lowerOpen)<=0&&0<=(function(ge,Ce,Ne,Qe){if(ge===void 0)return Ce!==void 0?1:0;if(Ce===void 0)return-1;if((Ce=Ht(ge,Ce))===0){if(Ne&&Qe)return 0;if(Ne)return-1;if(Qe)return 1}return Ce})(X.upper,te.upper,X.upperOpen,te.upperOpen)}function cot(X,te,ge,Ce){X.subscribers.add(ge),Ce.addEventListener("abort",function(){var Ne,Qe;X.subscribers.delete(ge),X.subscribers.size===0&&(Ne=X,Qe=te,setTimeout(function(){Ne.subscribers.size===0&&N(Qe,Ne)},3e3))})}var uot={stack:"dbcore",level:0,name:"Cache",create:function(X){var te=X.schema.name;return n(n({},X),{transaction:function(ge,Ce,Ne){var Qe,dt,Et=X.transaction(ge,Ce,Ne);return Ce==="readwrite"&&(dt=(Qe=new AbortController).signal,Ne=function(It){return function(){if(Qe.abort(),Ce==="readwrite"){for(var Lt=new Set,Vt=0,wt=ge;Vt<wt.length;Vt++){var Kt=wt[Vt],Dt=lv["idb://".concat(te,"/").concat(Kt)];if(Dt){var $t=X.table(Kt),Wt=Dt.optimisticOps.filter(function(hn){return hn.trans===Et});if(Et._explicit&&It&&Et.mutatedParts)for(var Ft=0,Qt=Object.values(Dt.queries.query);Ft<Qt.length;Ft++)for(var tr=0,rr=($r=Qt[Ft]).slice();tr<rr.length;tr++)gz((Ir=rr[tr]).obsSet,Et.mutatedParts)&&(N($r,Ir),Ir.subscribers.forEach(function(hn){return Lt.add(hn)}));else if(0<Wt.length){Dt.optimisticOps=Dt.optimisticOps.filter(function(hn){return hn.trans!==Et});for(var ur=0,Or=Object.values(Dt.queries.query);ur<Or.length;ur++)for(var $r,Ir,Lr,Yr=0,Ur=($r=Or[ur]).slice();Yr<Ur.length;Yr++)(Ir=Ur[Yr]).res!=null&&Et.mutatedParts&&(It&&!Ir.dirty?(Lr=Object.isFrozen(Ir.res),Lr=oge(Ir.res,Ir.req,Wt,$t,Ir,Lr),Ir.dirty?(N($r,Ir),Ir.subscribers.forEach(function(hn){return Lt.add(hn)})):Lr!==Ir.res&&(Ir.res=Lr,Ir.promise=He.resolve({result:Lr}))):(Ir.dirty&&N($r,Ir),Ir.subscribers.forEach(function(hn){return Lt.add(hn)})))}}}Lt.forEach(function(hn){return hn()})}}},Et.addEventListener("abort",Ne(!1),{signal:dt}),Et.addEventListener("error",Ne(!1),{signal:dt}),Et.addEventListener("complete",Ne(!0),{signal:dt})),Et},table:function(ge){var Ce=X.table(ge),Ne=Ce.schema.primaryKey;return n(n({},Ce),{mutate:function(Qe){var dt=Ye.trans;if(Ne.outbound||dt.db._options.cache==="disabled"||dt.explicit||dt.idbtrans.mode!=="readwrite")return Ce.mutate(Qe);var Et=lv["idb://".concat(te,"/").concat(ge)];return Et?(dt=Ce.mutate(Qe),Qe.type!=="add"&&Qe.type!=="put"||!(50<=Qe.values.length||Ez(Ne,Qe).some(function(It){return It==null}))?(Et.optimisticOps.push(Qe),Qe.mutatedParts&&VD(Qe.mutatedParts),dt.then(function(It){0<It.numFailures&&(N(Et.optimisticOps,Qe),(It=sge(0,Qe,It))&&Et.optimisticOps.push(It),Qe.mutatedParts&&VD(Qe.mutatedParts))}),dt.catch(function(){N(Et.optimisticOps,Qe),Qe.mutatedParts&&VD(Qe.mutatedParts)})):dt.then(function(It){var Lt=sge(0,n(n({},Qe),{values:Qe.values.map(function(Vt,wt){var Kt;return It.failures[wt]?Vt:(Vt=(Kt=Ne.keyPath)!==null&&Kt!==void 0&&Kt.includes(".")?F(Vt):n({},Vt),C(Vt,Ne.keyPath,It.results[wt]),Vt)})}),It);Et.optimisticOps.push(Lt),queueMicrotask(function(){return Qe.mutatedParts&&VD(Qe.mutatedParts)})}),dt):Ce.mutate(Qe)},query:function(Qe){if(!ige(Ye,Ce)||!age("query",Qe))return Ce.query(Qe);var dt=((Lt=Ye.trans)===null||Lt===void 0?void 0:Lt.db._options.cache)==="immutable",wt=Ye,Et=wt.requery,It=wt.signal,Lt=(function($t,Wt,Ft,Qt){var tr=lv["idb://".concat($t,"/").concat(Wt)];if(!tr)return[];if(!(Wt=tr.queries[Ft]))return[null,!1,tr,null];var rr=Wt[(Qt.query?Qt.query.index.name:null)||""];if(!rr)return[null,!1,tr,null];switch(Ft){case"query":var ur=rr.find(function(Or){return Or.req.limit===Qt.limit&&Or.req.values===Qt.values&&lge(Or.req.query.range,Qt.query.range)});return ur?[ur,!0,tr,rr]:[rr.find(function(Or){return("limit"in Or.req?Or.req.limit:1/0)>=Qt.limit&&(!Qt.values||Or.req.values)&&lot(Or.req.query.range,Qt.query.range)}),!1,tr,rr];case"count":return ur=rr.find(function(Or){return lge(Or.req.query.range,Qt.query.range)}),[ur,!!ur,tr,rr]}})(te,ge,"query",Qe),Vt=Lt[0],wt=Lt[1],Kt=Lt[2],Dt=Lt[3];return Vt&&wt?Vt.obsSet=Qe.obsSet:(wt=Ce.query(Qe).then(function($t){var Wt=$t.result;if(Vt&&(Vt.res=Wt),dt){for(var Ft=0,Qt=Wt.length;Ft<Qt;++Ft)Object.freeze(Wt[Ft]);Object.freeze(Wt)}else $t.result=F(Wt);return $t}).catch(function($t){return Dt&&Vt&&N(Dt,Vt),Promise.reject($t)}),Vt={obsSet:Qe.obsSet,promise:wt,subscribers:new Set,type:"query",req:Qe,dirty:!1},Dt?Dt.push(Vt):(Dt=[Vt],(Kt=Kt||(lv["idb://".concat(te,"/").concat(ge)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[Qe.query.index.name||""]=Dt)),cot(Vt,Dt,Et,It),Vt.promise.then(function($t){return{result:oge($t.result,Qe,Kt?.optimisticOps,Ce,Vt,dt)}})}})}})}};function YD(X,te){return new Proxy(X,{get:function(ge,Ce,Ne){return Ce==="db"?te:Reflect.get(ge,Ce,Ne)}})}var Vg=(Eo.prototype.version=function(X){if(isNaN(X)||X<.1)throw new Z.Type("Given version is not a positive number");if(X=Math.round(10*X)/10,this.idbdb||this._state.isBeingOpened)throw new Z.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,X);var te=this._versions,ge=te.filter(function(Ce){return Ce._cfg.version===X})[0];return ge||(ge=new this.Version(X),te.push(ge),te.sort(Jst),ge.stores({}),this._state.autoSchema=!1,ge)},Eo.prototype._whenReady=function(X){var te=this;return this.idbdb&&(this._state.openComplete||Ye.letThrough||this._vip)?X():new He(function(ge,Ce){if(te._state.openComplete)return Ce(new Z.DatabaseClosed(te._state.dbOpenError));if(!te._state.isBeingOpened){if(!te._state.autoOpen)return void Ce(new Z.DatabaseClosed);te.open().catch(j)}te._state.dbReadyPromise.then(ge,Ce)}).then(X)},Eo.prototype.use=function(X){var te=X.stack,ge=X.create,Ce=X.level,Ne=X.name;return Ne&&this.unuse({stack:te,name:Ne}),X=this._middlewares[te]||(this._middlewares[te]=[]),X.push({stack:te,create:ge,level:Ce??10,name:Ne}),X.sort(function(Qe,dt){return Qe.level-dt.level}),this},Eo.prototype.unuse=function(X){var te=X.stack,ge=X.name,Ce=X.create;return te&&this._middlewares[te]&&(this._middlewares[te]=this._middlewares[te].filter(function(Ne){return Ce?Ne.create!==Ce:!!ge&&Ne.name!==ge})),this},Eo.prototype.open=function(){var X=this;return ln(me,function(){return not(X)})},Eo.prototype._close=function(){var X=this._state,te=si.indexOf(this);if(0<=te&&si.splice(te,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}X.isBeingOpened||(X.dbReadyPromise=new He(function(ge){X.dbReadyResolve=ge}),X.openCanceller=new He(function(ge,Ce){X.cancelOpen=Ce}))},Eo.prototype.close=function(ge){var te=(ge===void 0?{disableAutoOpen:!0}:ge).disableAutoOpen,ge=this._state;te?(ge.isBeingOpened&&ge.cancelOpen(new Z.DatabaseClosed),this._close(),ge.autoOpen=!1,ge.dbOpenError=new Z.DatabaseClosed):(this._close(),ge.autoOpen=this._options.autoOpen||ge.isBeingOpened,ge.openComplete=!1,ge.dbOpenError=null)},Eo.prototype.delete=function(X){var te=this;X===void 0&&(X={disableAutoOpen:!0});var ge=0<arguments.length&&typeof arguments[0]!="object",Ce=this._state;return new He(function(Ne,Qe){function dt(){te.close(X);var Et=te._deps.indexedDB.deleteDatabase(te.name);Et.onsuccess=mt(function(){var It,Lt,Vt;It=te._deps,Lt=te.name,Vt=It.indexedDB,It=It.IDBKeyRange,hz(Vt)||Lt===Ta||dz(Vt,It).delete(Lt).catch(j),Ne()}),Et.onerror=oi(Qe),Et.onblocked=te._fireOnBlocked}if(ge)throw new Z.InvalidArgument("Invalid closeOptions argument to db.delete()");Ce.isBeingOpened?Ce.dbReadyPromise.then(dt):dt()})},Eo.prototype.backendDB=function(){return this.idbdb},Eo.prototype.isOpen=function(){return this.idbdb!==null},Eo.prototype.hasBeenClosed=function(){var X=this._state.dbOpenError;return X&&X.name==="DatabaseClosed"},Eo.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Eo.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Eo.prototype,"tables",{get:function(){var X=this;return s(this._allTables).map(function(te){return X._allTables[te]})},enumerable:!1,configurable:!0}),Eo.prototype.transaction=function(){var X=(function(te,ge,Ce){var Ne=arguments.length;if(Ne<2)throw new Z.InvalidArgument("Too few arguments");for(var Qe=new Array(Ne-1);--Ne;)Qe[Ne-1]=arguments[Ne];return Ce=Qe.pop(),[te,R(Qe),Ce]}).apply(this,arguments);return this._transaction.apply(this,X)},Eo.prototype._transaction=function(X,te,ge){var Ce=this,Ne=Ye.trans;Ne&&Ne.db===this&&X.indexOf("!")===-1||(Ne=null);var Qe,dt,Et=X.indexOf("?")!==-1;X=X.replace("!","").replace("?","");try{if(dt=te.map(function(Lt){if(Lt=Lt instanceof Ce.Table?Lt.name:Lt,typeof Lt!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return Lt}),X=="r"||X===Vr)Qe=Vr;else{if(X!="rw"&&X!=Ze)throw new Z.InvalidArgument("Invalid transaction mode: "+X);Qe=Ze}if(Ne){if(Ne.mode===Vr&&Qe===Ze){if(!Et)throw new Z.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");Ne=null}Ne&&dt.forEach(function(Lt){if(Ne&&Ne.storeNames.indexOf(Lt)===-1){if(!Et)throw new Z.SubTransaction("Table "+Lt+" not included in parent transaction.");Ne=null}}),Et&&Ne&&!Ne.active&&(Ne=null)}}catch(Lt){return Ne?Ne._promise(null,function(Vt,wt){wt(Lt)}):Zr(Lt)}var It=(function Lt(Vt,wt,Kt,Dt,$t){return He.resolve().then(function(){var Wt=Ye.transless||Ye,Ft=Vt._createTransaction(wt,Kt,Vt._dbSchema,Dt);if(Ft.explicit=!0,Wt={trans:Ft,transless:Wt},Dt)Ft.idbtrans=Dt.idbtrans;else try{Ft.create(),Ft.idbtrans._explicit=!0,Vt._state.PR1398_maxLoop=3}catch(rr){return rr.name===Q.InvalidState&&Vt.isOpen()&&0<--Vt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Vt.close({disableAutoOpen:!1}),Vt.open().then(function(){return Lt(Vt,wt,Kt,null,$t)})):Zr(rr)}var Qt,tr=B($t);return tr&&st(),Wt=He.follow(function(){var rr;(Qt=$t.call(Ft,Ft))&&(tr?(rr=jt.bind(null,null),Qt.then(rr,rr)):typeof Qt.next=="function"&&typeof Qt.throw=="function"&&(Qt=yz(Qt)))},Wt),(Qt&&typeof Qt.then=="function"?He.resolve(Qt).then(function(rr){return Ft.active?rr:Zr(new Z.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):Wt.then(function(){return Qt})).then(function(rr){return Dt&&Ft._resolve(),Ft._completion.then(function(){return rr})}).catch(function(rr){return Ft._reject(rr),Zr(rr)})})}).bind(null,this,Qe,dt,Ne,ge);return Ne?Ne._promise(Qe,It,"lock"):Ye.trans?ln(Ye.transless,function(){return Ce._whenReady(It)}):this._whenReady(It)},Eo.prototype.table=function(X){if(!h(this._allTables,X))throw new Z.InvalidTable("Table ".concat(X," does not exist"));return this._allTables[X]},Eo);function Eo(X,te){var ge=this;this._middlewares={},this.verno=0;var Ce=Eo.dependencies;this._options=te=n({addons:Eo.addons,autoOpen:!0,indexedDB:Ce.indexedDB,IDBKeyRange:Ce.IDBKeyRange,cache:"cloned"},te),this._deps={indexedDB:te.indexedDB,IDBKeyRange:te.IDBKeyRange},Ce=te.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var Ne,Qe,dt,Et,It,Lt={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:j,dbReadyPromise:null,cancelOpen:j,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:te.autoOpen};Lt.dbReadyPromise=new He(function(wt){Lt.dbReadyResolve=wt}),Lt.openCanceller=new He(function(wt,Kt){Lt.cancelOpen=Kt}),this._state=Lt,this.name=X,this.on=zn(this,"populate","blocked","versionchange","close",{ready:[ke,j]}),this.on.ready.subscribe=b(this.on.ready.subscribe,function(wt){return function(Kt,Dt){Eo.vip(function(){var $t,Wt=ge._state;Wt.openComplete?(Wt.dbOpenError||He.resolve().then(Kt),Dt&&wt(Kt)):Wt.onReadyBeingFired?(Wt.onReadyBeingFired.push(Kt),Dt&&wt(Kt)):(wt(Kt),$t=ge,Dt||wt(function Ft(){$t.on.ready.unsubscribe(Kt),$t.on.ready.unsubscribe(Ft)}))})}}),this.Collection=(Ne=this,dc(ch.prototype,function(Qt,Ft){this.db=Ne;var Dt=Mt,$t=null;if(Ft)try{Dt=Ft()}catch(tr){$t=tr}var Wt=Qt._ctx,Ft=Wt.table,Qt=Ft.hook.reading.fire;this._ctx={table:Ft,index:Wt.index,isPrimKey:!Wt.index||Ft.schema.primKey.keyPath&&Wt.index===Ft.schema.primKey.name,range:Dt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:$t,or:Wt.or,valueMapper:Qt!==se?Qt:null}})),this.Table=(Qe=this,dc(Li.prototype,function(wt,Kt,Dt){this.db=Qe,this._tx=Dt,this.name=wt,this.schema=Kt,this.hook=Qe._allTables[wt]?Qe._allTables[wt].hook:zn(null,{creating:[ye,j],reading:[le,se],updating:[Se,j],deleting:[Ue,j]})})),this.Transaction=(dt=this,dc(jst.prototype,function(wt,Kt,Dt,$t,Wt){var Ft=this;this.db=dt,this.mode=wt,this.storeNames=Kt,this.schema=Dt,this.chromeTransactionDurability=$t,this.idbtrans=null,this.on=zn(this,"complete","error","abort"),this.parent=Wt||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new He(function(Qt,tr){Ft._resolve=Qt,Ft._reject=tr}),this._completion.then(function(){Ft.active=!1,Ft.on.complete.fire()},function(Qt){var tr=Ft.active;return Ft.active=!1,Ft.on.error.fire(Qt),Ft.parent?Ft.parent._reject(Qt):tr&&Ft.idbtrans&&Ft.idbtrans.abort(),Zr(Qt)})})),this.Version=(Et=this,dc(rot.prototype,function(wt){this.db=Et,this._cfg={version:wt,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(It=this,dc(en.prototype,function(wt,Kt,Dt){if(this.db=It,this._ctx={table:wt,index:Kt===":id"?null:Kt,or:Dt},this._cmp=this._ascending=Ht,this._descending=function($t,Wt){return Ht(Wt,$t)},this._max=function($t,Wt){return 0<Ht($t,Wt)?$t:Wt},this._min=function($t,Wt){return Ht($t,Wt)<0?$t:Wt},this._IDBKeyRange=It._deps.IDBKeyRange,!this._IDBKeyRange)throw new Z.MissingAPI})),this.on("versionchange",function(wt){0<wt.newVersion?console.warn("Another connection wants to upgrade database '".concat(ge.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(ge.name,"'. Closing db now to resume the delete request.")),ge.close({disableAutoOpen:!1})}),this.on("blocked",function(wt){!wt.newVersion||wt.newVersion<wt.oldVersion?console.warn("Dexie.delete('".concat(ge.name,"') was blocked")):console.warn("Upgrade '".concat(ge.name,"' blocked by other connection holding version ").concat(wt.oldVersion/10))}),this._maxKey=QR(te.IDBKeyRange),this._createTransaction=function(wt,Kt,Dt,$t){return new ge.Transaction(wt,Kt,Dt,ge._options.chromeTransactionDurability,$t)},this._fireOnBlocked=function(wt){ge.on("blocked").fire(wt),si.filter(function(Kt){return Kt.name===ge.name&&Kt!==ge&&!Kt._state.vcFired}).map(function(Kt){return Kt.on("versionchange").fire(wt)})},this.use(sot),this.use(uot),this.use(oot),this.use(iot),this.use(aot);var Vt=new Proxy(this,{get:function(wt,Kt,Dt){if(Kt==="_vip")return!0;if(Kt==="table")return function(Wt){return YD(ge.table(Wt),Vt)};var $t=Reflect.get(wt,Kt,Dt);return $t instanceof Li?YD($t,Vt):Kt==="tables"?$t.map(function(Wt){return YD(Wt,Vt)}):Kt==="_createTransaction"?function(){return YD($t.apply(this,arguments),Vt)}:$t}});this.vip=Vt,Ce.forEach(function(wt){return wt(ge)})}var WD,uh=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",dot=(Tz.prototype.subscribe=function(X,te,ge){return this._subscribe(X&&typeof X!="function"?X:{next:X,error:te,complete:ge})},Tz.prototype[uh]=function(){return this},Tz);function Tz(X){this._subscribe=X}try{WD={indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch{WD={indexedDB:null,IDBKeyRange:null}}function cge(X){var te,ge=!1,Ce=new dot(function(Ne){var Qe=B(X),dt,Et=!1,It={},Lt={},Vt={get closed(){return Et},unsubscribe:function(){Et||(Et=!0,dt&&dt.abort(),wt&&rf.storagemutated.unsubscribe(Dt))}};Ne.start&&Ne.start(Vt);var wt=!1,Kt=function(){return nn($t)},Dt=function(Wt){qD(It,Wt),gz(Lt,It)&&Kt()},$t=function(){var Wt,Ft,Qt;!Et&&WD.indexedDB&&(It={},Wt={},dt&&dt.abort(),dt=new AbortController,Qt=(function(tr){var rr=Ut();try{Qe&&st();var ur=dn(X,tr);return ur=Qe?ur.finally(jt):ur}finally{rr&&kt()}})(Ft={subscr:Wt,signal:dt.signal,requery:Kt,querier:X,trans:null}),Promise.resolve(Qt).then(function(tr){ge=!0,te=tr,Et||Ft.signal.aborted||(It={},(function(rr){for(var ur in rr)if(h(rr,ur))return;return 1})(Lt=Wt)||wt||(rf(Qo,Dt),wt=!0),nn(function(){return!Et&&Ne.next&&Ne.next(tr)}))},function(tr){ge=!1,["DatabaseClosedError","AbortError"].includes(tr?.name)||Et||nn(function(){Et||Ne.error&&Ne.error(tr)})}))};return setTimeout(Kt,0),Vt});return Ce.hasValue=function(){return ge},Ce.getValue=function(){return te},Ce}var cv=Vg;function Cz(X){var te=X0;try{X0=!0,rf.storagemutated.fire(X),vz(X,!0)}finally{X0=te}}f(cv,n(n({},K),{delete:function(X){return new cv(X,{addons:[]}).delete()},exists:function(X){return new cv(X,{addons:[]}).open().then(function(te){return te.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(X){try{return te=cv.dependencies,ge=te.indexedDB,te=te.IDBKeyRange,(hz(ge)?Promise.resolve(ge.databases()).then(function(Ce){return Ce.map(function(Ne){return Ne.name}).filter(function(Ne){return Ne!==Ta})}):dz(ge,te).toCollection().primaryKeys()).then(X)}catch{return Zr(new Z.MissingAPI)}var te,ge},defineClass:function(){return function(X){l(this,X)}},ignoreTransaction:function(X){return Ye.trans?ln(Ye.transless,X):X()},vip:fz,async:function(X){return function(){try{var te=yz(X.apply(this,arguments));return te&&typeof te.then=="function"?te:He.resolve(te)}catch(ge){return Zr(ge)}}},spawn:function(X,te,ge){try{var Ce=yz(X.apply(ge,te||[]));return Ce&&typeof Ce.then=="function"?Ce:He.resolve(Ce)}catch(Ne){return Zr(Ne)}},currentTransaction:{get:function(){return Ye.trans||null}},waitFor:function(X,te){return te=He.resolve(typeof X=="function"?cv.ignoreTransaction(X):X).timeout(te||6e4),Ye.trans?Ye.trans.waitFor(te):te},Promise:He,debug:{get:function(){return Ae},set:function(X){tt(X)}},derive:m,extend:l,props:f,override:b,Events:zn,on:rf,liveQuery:cge,extendObservabilitySet:qD,getByKeyPath:T,setByKeyPath:C,delByKeyPath:function(X,te){typeof te=="string"?C(X,te,void 0):"length"in te&&[].map.call(te,function(ge){C(X,ge,void 0)})},shallowClone:x,deepClone:F,getObjectDiff:bz,cmp:Ht,asap:S,minKey:-1/0,addons:[],connections:si,errnames:Q,dependencies:WD,cache:lv,semVer:"4.0.11",version:"4.0.11".split(".").map(function(X){return parseInt(X)}).reduce(function(X,te,ge){return X+te/Math.pow(10,2*ge)})})),cv.maxKey=QR(cv.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(rf(Qo,function(X){X0||(X=new CustomEvent(ov,{detail:X}),X0=!0,dispatchEvent(X),X0=!1)}),addEventListener(ov,function(X){X=X.detail,X0||Cz(X)}));var jE,X0=!1,uge=function(){};return typeof BroadcastChannel<"u"&&((uge=function(){(jE=new BroadcastChannel(ov)).onmessage=function(X){return X.data&&Cz(X.data)}})(),typeof jE.unref=="function"&&jE.unref(),rf(Qo,function(X){X0||jE.postMessage(X)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(X){if(!Vg.disableBfCache&&X.persisted){Ae&&console.debug("Dexie: handling persisted pagehide"),jE?.close();for(var te=0,ge=si;te<ge.length;te++)ge[te].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(X){!Vg.disableBfCache&&X.persisted&&(Ae&&console.debug("Dexie: handling persisted pageshow"),uge(),Cz({all:new pc(-1/0,[[]])}))})),He.rejectionMapper=function(X,te){return!X||X instanceof z||X instanceof TypeError||X instanceof SyntaxError||!X.name||!re[X.name]?X:(te=new re[X.name](te||X.message,X),"stack"in X&&g(te,"stack",{get:function(){return this.inner.stack}}),te)},tt(Ae),n(Vg,Object.freeze({__proto__:null,Dexie:Vg,liveQuery:cge,Entity:er,cmp:Ht,PropModification:eo,replacePrefix:function(X,te){return new eo({replacePrefix:[X,te]})},add:function(X){return new eo({add:X})},remove:function(X){return new eo({remove:X})},default:Vg,RangeSet:pc,mergeRanges:eO,rangesOverlap:Jpe}),{default:Vg}),Vg})})(IP)),IP.exports}var b3t=y3t();const HZ=sd(b3t),qEe=Symbol.for("Dexie"),rb=globalThis[qEe]||(globalThis[qEe]=HZ);if(HZ.semVer!==rb.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${HZ.semVer} and ${rb.semVer}`);const{liveQuery:gJr,mergeRanges:mJr,rangesOverlap:_Jr,RangeSet:vJr,cmp:yJr,Entity:bJr,PropModification:EJr,replacePrefix:SJr,add:TJr,remove:CJr}=rb;class E3t extends rb{[Nn.conversations];[Nn.messages];constructor(){super(jh),this.version(1).stores(uZ)}}const Un=new E3t;let vn=class{static async createConversation(e){const r={id:Up(),name:e,lastModified:Date.now(),currNode:""};return await Un[Nn.conversations].add(r),r}static async createMessageBranch(e,r){return await Un.transaction("rw",[Un[Nn.conversations],Un[Nn.messages]],async()=>{if(r!==null&&!await Un[Nn.messages].get(r))throw new Error(`Parent message ${r} not found`);const n={...e,id:Up(),parent:r,toolCalls:e.toolCalls??"",children:[]};if(await Un[Nn.messages].add(n),r!==null){const i=await Un[Nn.messages].get(r);i&&await Un[Nn.messages].update(r,{children:[...i.children,n.id]})}return await this.updateConversation(e.convId,{currNode:n.id}),n})}static async createRootMessage(e){const r={id:Up(),convId:e,type:"root",timestamp:Date.now(),role:br.SYSTEM,content:"",parent:null,toolCalls:"",children:[]};return await Un[Nn.messages].add(r),r.id}static async createSystemMessage(e,r,n){const i=r.trim();if(!i)throw new Error("Cannot create system message with empty content");const a={id:Up(),convId:e,type:br.SYSTEM,timestamp:Date.now(),role:br.SYSTEM,content:i,parent:n,children:[]};await Un[Nn.messages].add(a);const s=await Un[Nn.messages].get(n);return s&&await Un[Nn.messages].update(n,{children:[...s.children,a.id]}),a}static async deleteConversation(e,r){await Un.transaction("rw",[Un[Nn.conversations],Un[Nn.messages]],async()=>{if(r?.deleteWithForks){const n=[],i=[e];for(;i.length>0;){const a=i.pop(),s=await Un[Nn.conversations].filter(o=>o.forkedFromConversationId===a).toArray();for(const o of s)n.push(o.id),i.push(o.id)}for(const a of n)await Un[Nn.conversations].delete(a),await Un[Nn.messages].where("convId").equals(a).delete()}else{const i=(await Un[Nn.conversations].get(e))?.forkedFromConversationId,a=await Un[Nn.conversations].filter(s=>s.forkedFromConversationId===e).toArray();for(const s of a)await Un[Nn.conversations].update(s.id,{forkedFromConversationId:i??void 0})}await Un[Nn.conversations].delete(e),await Un[Nn.messages].where("convId").equals(e).delete()})}static async deleteMessage(e){await Un.transaction("rw",Un[Nn.messages],async()=>{const r=await Un[Nn.messages].get(e);if(r){if(r.parent){const n=await Un[Nn.messages].get(r.parent);n&&(n.children=n.children.filter(i=>i!==e),await Un[Nn.messages].put(n))}await Un[Nn.messages].delete(e)}})}static async deleteMessageCascading(e,r){return await Un.transaction("rw",Un[Nn.messages],async()=>{const n=await Un[Nn.messages].where("convId").equals(e).toArray(),i=BDe(n,r),a=[r,...i],s=await Un[Nn.messages].get(r);if(s&&s.parent){const o=await Un[Nn.messages].get(s.parent);o&&(o.children=o.children.filter(l=>l!==r),await Un[Nn.messages].put(o))}return await Un[Nn.messages].bulkDelete(a),a})}static async getAllConversations(){return await Un[Nn.conversations].orderBy("lastModified").reverse().toArray()}static async getConversation(e){return await Un[Nn.conversations].get(e)}static async getConversationMessages(e){return await Un[Nn.messages].where("convId").equals(e).sortBy("timestamp")}static async updateConversation(e,r){await Un[Nn.conversations].update(e,{...r,lastModified:Date.now()})}static async toggleConversationPin(e){const r=await Un.conversations.get(e);if(!r)throw new Error(`Conversation ${e} not found`);const n=!r.pinned;return await this.updateConversation(e,{pinned:n}),n}static async updateCurrentNode(e,r){await this.updateConversation(e,{currNode:r})}static async updateMessage(e,r){await Un[Nn.messages].update(e,r)}static async importConversations(e){let r=0,n=0;return await Un.transaction("rw",[Un[Nn.conversations],Un[Nn.messages]],async()=>{for(const i of e){const{conv:a,messages:s}=i;if(await Un[Nn.conversations].get(a.id)){console.warn(`Conversation "${a.name}" already exists, skipping...`),n++;continue}await Un[Nn.conversations].add(a);for(const l of s)await Un[Nn.messages].put(l);r++}return{imported:r,skipped:n}})}static async forkConversation(e,r,n){return await Un.transaction("rw",[Un[Nn.conversations],Un[Nn.messages]],async()=>{const i=await Un[Nn.conversations].get(e);if(!i)throw new Error(`Source conversation ${e} not found`);const a=await Un[Nn.messages].where("convId").equals(e).toArray(),s=Ny(a,r,!0);if(s.length===0)throw new Error(`Could not resolve message path to ${r}`);const o=new Map;for(const f of s)o.set(f.id,Up());const l=Up(),u=s.map(f=>{const p=o.get(f.id),g=f.parent?o.get(f.parent)??null:null,m=f.children.filter(_=>o.has(_)).map(_=>o.get(_));return{...f,id:p,convId:l,parent:g,children:m,extra:n.includeAttachments?f.extra:void 0}}),d=u[u.length-1],h={id:l,name:n.name,lastModified:Date.now(),currNode:d.id,forkedFromConversationId:e,mcpServerOverrides:i.mcpServerOverrides?i.mcpServerOverrides.map(f=>({serverId:f.serverId,enabled:f.enabled})):void 0};await Un[Nn.conversations].add(h);for(const f of u)await Un[Nn.messages].add(f);return h})}};const S3t=Object.freeze(Object.defineProperty({__proto__:null,DatabaseService:vn},Symbol.toStringTag,{value:"Module"})),Goe=`${jh}.migration-state`,DMe=1;function mk(){try{const t=localStorage.getItem(Goe);if(!t)return{completed:[],failed:[],lastRun:""};const e=JSON.parse(t);return e.version!==DMe?{completed:[],failed:[],lastRun:""}:{completed:e.completed??[],failed:e.failed??[],lastRun:e.lastRun??""}}catch{return{completed:[],failed:[],lastRun:""}}}function MMe(t){localStorage.setItem(Goe,JSON.stringify({version:DMe,...t,lastRun:new Date().toISOString()}))}function VEe(t){return mk().completed.includes(t)}function T3t(t){const e=mk();e.completed.includes(t)||e.completed.push(t),e.failed=e.failed.filter(r=>r!==t),MMe(e)}function C3t(t){const e=mk();e.failed.includes(t)||e.failed.push(t),MMe(e)}const w3t="localstorage-prefix-v1",x3t={id:w3t,description:"Copy localStorage keys from LlamaCppWebui to LlamaUi prefix (non-destructive)",async run(){for(const[t,e]of Object.entries(g_t)){if(localStorage.getItem(t)!==null)continue;const n=localStorage.getItem(e);n!==null&&localStorage.setItem(t,n)}}},A3t="idxdb-database-v1",R3t={id:A3t,description:"Copy IndexedDB from LlamacppWebui to LlamaUi database (non-destructive)",async run(){if(!(await rb.getDatabaseNames()).includes(Ame))return;const e=new rb(jh);if(e.version(1).stores(uZ),await e.table(Nn.conversations).count()>0)return;const n=new rb(Ame);n.version(1).stores(uZ);const i=await n.table(Nn.conversations).toArray(),a=await n.table(Nn.messages).toArray();i.length>0&&await e.table(Nn.conversations).bulkAdd(i),a.length>0&&await e.table(Nn.messages).bulkAdd(a)}},O3t="legacy-message-format-v2";function I3t(t){const e=[],r=new RegExp(tb.COMPLETED_TOOL_CALL.source,"g");let n=0,i={textBefore:"",toolCalls:[]},a;for(;(a=r.exec(t))!==null;){const o=t.slice(n,a.index).trim();o&&i.toolCalls.length>0?(e.push(i),i={textBefore:o,toolCalls:[]}):o&&i.toolCalls.length===0&&(i.textBefore=o),i.toolCalls.push({name:a[1],args:a[2],result:a[3].replace(/^\n+|\n+$/g,"")}),n=a.index+a[0].length}const s=t.slice(n).trim();if(i.toolCalls.length>0&&e.push(i),s){const o=s.replace(tb.AGENTIC_TOOL_CALL_OPEN,"").trim();o&&e.push({textBefore:o,toolCalls:[]})}return e.length===0&&e.push({textBefore:t.trim(),toolCalls:[]}),e}function HEe(t){let e="",r=t;const n=new RegExp(tb.REASONING_EXTRACT.source,"g");let i;for(;(i=n.exec(t))!==null;)e+=i[1];return r=r.replace(new RegExp(tb.REASONING_BLOCK.source,"g"),"").replace(tb.REASONING_OPEN,""),{reasoning:e,cleanContent:r}}function N3t(t){return tb.HAS_LEGACY_MARKERS.test(t)}let fW=null;async function k3t(){return fW||(fW=(await Pn(()=>Promise.resolve().then(()=>S3t),void 0,import.meta.url)).DatabaseService),fW}const D3t={id:O3t,description:"Migrate legacy marker-based messages to structured format",async run(){const t=await k3t(),e=await t.getAllConversations();for(const r of e){const n=await t.getConversationMessages(r.id);for(const i of n){if(i.role!==br.ASSISTANT){if(i.content?.includes(n_t.START)){const{reasoning:p,cleanContent:g}=HEe(i.content);await t.updateMessage(i.id,{content:g.trim(),reasoningContent:p||void 0})}continue}if(!N3t(i.content??""))continue;const{reasoning:a,cleanContent:s}=HEe(i.content),o=I3t(s);let l=[];if(i.toolCalls)try{l=JSON.parse(i.toolCalls)}catch{}const u=o[0];if(!u)continue;const d=u.toolCalls.map((p,g)=>({id:(l.find(_=>_.function?.name===p.name)||l[g])?.id||`legacy_tool_${g}`,type:"function",function:{name:p.name,arguments:p.args}}));await t.updateMessage(i.id,{content:u.textBefore,reasoningContent:a||void 0,toolCalls:d.length>0?JSON.stringify(d):""});let h=i.id,f=l.length;for(let p=0;p<u.toolCalls.length;p++){const g=u.toolCalls[p],m=d[p]?.id||`legacy_tool_${p}`;h=(await t.createMessageBranch({convId:r.id,type:"text",role:br.TOOL,content:g.result,toolCallId:m,timestamp:i.timestamp+p+1,toolCalls:"",children:[]},h)).id}for(let p=1;p<o.length;p++){const g=o[p],m=g.toolCalls.map((v,y)=>{const b=f+y;return{id:l[b]?.id||`legacy_tool_${b}`,type:"function",function:{name:v.name,arguments:v.args}}});f+=g.toolCalls.length,h=(await t.createMessageBranch({convId:r.id,type:"text",role:br.ASSISTANT,content:g.textBefore,timestamp:i.timestamp+p*100,toolCalls:m.length>0?JSON.stringify(m):"",children:[],model:i.model},h)).id;for(let v=0;v<g.toolCalls.length;v++){const y=g.toolCalls[v],b=m[v]?.id||`legacy_tool_${f+v}`;h=(await t.createMessageBranch({convId:r.id,type:"text",role:br.TOOL,content:y.result,toolCallId:b,timestamp:i.timestamp+p*100+v+1,toolCalls:"",children:[]},h)).id}}if(i.children.length>0&&h!==i.id){for(const p of i.children){const g=n.find(m=>m.id===p);g&&g.role!==br.TOOL&&await t.updateMessage(p,{parent:h})}await t.updateMessage(i.id,{children:[]})}}}}},M3t="theme-key-v1",L3t={id:M3t,description:"Copy standalone theme key to config object (non-destructive)",async run(){const t=localStorage.getItem("theme");if(t===null)return;const e=localStorage.getItem(Sb),r=e?JSON.parse(e):{};ar.THEME in r||(r[ar.THEME]=t,localStorage.setItem(Sb,JSON.stringify(r)))}},P3t="custom-json-key-v1",F3t={id:P3t,description:"Copy legacy custom config key to customJson (non-destructive)",async run(){const t=localStorage.getItem(Sb);if(t===null)return;const e=JSON.parse(t);"custom"in e&&(ar.CUSTOM_JSON in e||(e[ar.CUSTOM_JSON]=e.custom,localStorage.setItem(Sb,JSON.stringify(e))))}},YEe=[x3t,R3t,D3t,L3t,F3t],B3t={getMigrations(){return[...YEe]},isCompleted(t){return VEe(t)},getState(){return mk()},resetState(){localStorage.removeItem(Goe)},async runAllMigrations(){mk();for(const t of YEe)if(!VEe(t.id))try{await t.run(),T3t(t.id)}catch(e){console.error(`[Migration] ${t.id}: failed`,e),C3t(t.id)}}};class a0{static chat(e){return`${ho.CHAT}/${e}`}static settings(e){return`${ho.SETTINGS}/${e}`}}class ay{#e=Me(Kr([]));get conversations(){return w(this.#e)}set conversations(e){J(this.#e,e,!0)}#t=Me(null);get activeConversation(){return w(this.#t)}set activeConversation(e){J(this.#t,e,!0)}#r=Me(Kr([]));get activeMessages(){return w(this.#r)}set activeMessages(e){J(this.#r,e,!0)}#n=Me(!1);get isInitialized(){return w(this.#n)}set isInitialized(e){J(this.#n,e,!0)}#i=Me(Kr(ay.loadMcpDefaults()));get pendingMcpServerOverrides(){return w(this.#i)}set pendingMcpServerOverrides(e){J(this.#i,e,!0)}#a=Me(Kr(ay.loadThinkingDefaults()));get pendingThinkingEnabled(){return w(this.#a)}set pendingThinkingEnabled(e){J(this.#a,e,!0)}#s=Me(Kr(ay.loadReasoningEffortDefault()));get pendingReasoningEffort(){return w(this.#s)}set pendingReasoningEffort(e){J(this.#s,e,!0)}static loadMcpDefaults(){if(typeof globalThis.localStorage>"u")return[];try{const e=localStorage.getItem(wP);if(!e)return[];const r=JSON.parse(e);return Array.isArray(r)?r.filter(n=>typeof n=="object"&&n!==null&&"serverId"in n&&"enabled"in n):[]}catch{return[]}}saveMcpDefaults(){if(typeof globalThis.localStorage>"u")return;const e=this.pendingMcpServerOverrides.map(r=>({serverId:r.serverId,enabled:r.enabled}));e.length>0?localStorage.setItem(wP,JSON.stringify(e)):localStorage.removeItem(wP)}static loadThinkingDefaults(){if(typeof globalThis.localStorage>"u")return!1;try{const e=localStorage.getItem(Ome);if(!e)return!1;const r=e==="true";return typeof r=="boolean"?r:!1}catch{return!1}}saveThinkingDefaults(){typeof globalThis.localStorage>"u"||localStorage.setItem(Ome,this.pendingThinkingEnabled?"true":"false")}static loadReasoningEffortDefault(){if(typeof globalThis.localStorage>"u")return Oh.MEDIUM;try{return localStorage.getItem(Ime)||Oh.MEDIUM}catch{return Oh.MEDIUM}}saveReasoningEffortDefaults(){typeof globalThis.localStorage>"u"||localStorage.setItem(Ime,this.pendingReasoningEffort)}titleUpdateConfirmationCallback;messageUpdateCallback=null;async init(){if(!this.isInitialized)try{await B3t.runAllMigrations(),await this.loadConversations(),this.isInitialized=!0}catch(e){console.error("Failed to initialize conversations:",e)}}async initialize(){return this.init()}registerMessageUpdateCallback(e){this.messageUpdateCallback=e}addMessageToActive(e){this.activeMessages.push(e)}updateMessageAtIndex(e,r){e!==-1&&this.activeMessages[e]&&(this.activeMessages[e]={...this.activeMessages[e],...r})}findMessageIndex(e){return this.activeMessages.findIndex(r=>r.id===e)}sliceActiveMessages(e){this.activeMessages=this.activeMessages.slice(0,e)}removeMessageAtIndex(e){if(e!==-1)return this.activeMessages.splice(e,1)[0]}setTitleUpdateConfirmationCallback(e){this.titleUpdateConfirmationCallback=e}async loadConversations(){const e=await vn.getAllConversations();this.conversations=e}async createConversation(e){const r=e||`Chat ${new Date().toLocaleString()}`,n=await vn.createConversation(r);if(this.pendingMcpServerOverrides.length>0){const i=this.pendingMcpServerOverrides.map(a=>({serverId:a.serverId,enabled:a.enabled}));n.mcpServerOverrides=i,await vn.updateConversation(n.id,{mcpServerOverrides:i}),this.pendingMcpServerOverrides=[]}return n.thinkingEnabled=this.pendingThinkingEnabled,await vn.updateConversation(n.id,{thinkingEnabled:this.pendingThinkingEnabled}),this.conversations=[n,...this.conversations],this.activeConversation=n,this.activeMessages=[],await Ws(a0.chat(n.id)),n.id}async loadConversation(e){try{const r=await vn.getConversation(e);if(!r)return!1;if(this.pendingMcpServerOverrides=[],this.pendingThinkingEnabled=!1,this.activeConversation=r,r.currNode){const n=await vn.getConversationMessages(e),i=Ny(n,r.currNode,!1);this.activeMessages=i}else{const n=await vn.getConversationMessages(e);this.activeMessages=n}return!0}catch(r){return console.error("Failed to load conversation:",r),!1}}clearActiveConversation(){this.activeConversation=null,this.activeMessages=[],this.pendingMcpServerOverrides=ay.loadMcpDefaults(),this.pendingThinkingEnabled=ay.loadThinkingDefaults()}async deleteConversation(e,r){try{if(await vn.deleteConversation(e,r),r?.deleteWithForks){const n=new uo([e]),i=[e];for(;i.length>0;){const a=i.pop();for(const s of this.conversations)s.forkedFromConversationId===a&&!n.has(s.id)&&(n.add(s.id),i.push(s.id))}this.conversations=this.conversations.filter(a=>!n.has(a.id)),this.activeConversation&&n.has(this.activeConversation.id)&&(this.clearActiveConversation(),await Ws(ho.NEW_CHAT))}else{const i=this.conversations.find(a=>a.id===e)?.forkedFromConversationId;this.conversations=this.conversations.filter(a=>a.id!==e).map(a=>a.forkedFromConversationId===e?{...a,forkedFromConversationId:i}:a),this.activeConversation?.id===e&&(this.clearActiveConversation(),await Ws(ho.NEW_CHAT))}}catch(n){console.error("Failed to delete conversation:",n)}}async deleteAll(){try{const e=await vn.getAllConversations();for(const r of e)await vn.deleteConversation(r.id);this.clearActiveConversation(),this.conversations=[],ha.success("All conversations deleted"),await Ws(ho.NEW_CHAT)}catch(e){console.error("Failed to delete all conversations:",e),ha.error("Failed to delete conversations")}}async refreshActiveMessages(){if(!this.activeConversation)return;const e=await vn.getConversationMessages(this.activeConversation.id);if(e.length===0){this.activeMessages=[];return}const r=this.activeConversation.currNode||e.reduce((i,a)=>a.timestamp>i.timestamp?a:i).id,n=Ny(e,r,!1);this.activeMessages=n}async getConversationMessages(e){return await vn.getConversationMessages(e)}async updateConversationName(e,r){try{await vn.updateConversation(e,{name:r});const n=this.conversations.findIndex(i=>i.id===e);n!==-1&&(this.conversations[n].name=r,this.conversations=[...this.conversations]),this.activeConversation?.id===e&&(this.activeConversation={...this.activeConversation,name:r})}catch(n){console.error("Failed to update conversation name:",n)}}async toggleConversationPin(e){try{const r=await vn.toggleConversationPin(e),n=this.conversations.findIndex(i=>i.id===e);return n!==-1&&(this.conversations[n].pinned=r,this.conversations=[...this.conversations]),this.activeConversation?.id===e&&(this.activeConversation={...this.activeConversation,pinned:r}),r}catch(r){return console.error("Failed to toggle conversation pin:",r),!1}}async updateConversationTitleWithConfirmation(e,r){try{if(Vn().askForTitleConfirmation&&this.titleUpdateConfirmationCallback){const i=await vn.getConversation(e);if(!i||!await this.titleUpdateConfirmationCallback(i.name,r))return!1}return await this.updateConversationName(e,r),!0}catch(n){return console.error("Failed to update conversation title with confirmation:",n),!1}}updateConversationTimestamp(){if(!this.activeConversation)return;const e=this.conversations.findIndex(r=>r.id===this.activeConversation.id);if(e!==-1){this.conversations[e].lastModified=Date.now();const r=this.conversations.splice(e,1)[0];this.conversations=[r,...this.conversations]}}async updateCurrentNode(e){this.activeConversation&&(await vn.updateCurrentNode(this.activeConversation.id,e),this.activeConversation={...this.activeConversation,currNode:e})}async navigateToSibling(e){if(!this.activeConversation)return;const r=await vn.getConversationMessages(this.activeConversation.id),n=r.find(s=>s.type==="root"&&s.parent===null),i=this.activeMessages.find(s=>s.role===br.USER&&s.parent===n?.id),a=P9(r,e);if(await vn.updateCurrentNode(this.activeConversation.id,a),this.activeConversation={...this.activeConversation,currNode:a},await this.refreshActiveMessages(),n&&this.activeMessages.length>0){const s=this.activeMessages.find(o=>o.role===br.USER&&o.parent===n.id);s&&s.content.trim()&&(!i||s.id!==i.id||s.content.trim()!==i.content.trim())&&await this.updateConversationTitleWithConfirmation(this.activeConversation.id,fI(s.content,!!Vn().titleGenerationUseFirstLine))}}getMcpServerOverride(e){return this.activeConversation?this.activeConversation.mcpServerOverrides?.find(r=>r.serverId===e):this.pendingMcpServerOverrides.find(r=>r.serverId===e)}getAllMcpServerOverrides(){return this.activeConversation?.mcpServerOverrides?this.activeConversation.mcpServerOverrides:this.pendingMcpServerOverrides}isMcpServerEnabledForChat(e){return this.getMcpServerOverride(e)?.enabled??!1}async setMcpServerOverride(e,r){if(!this.activeConversation){this.setPendingMcpServerOverride(e,r);return}const n=(this.activeConversation.mcpServerOverrides||[]).map(s=>({serverId:s.serverId,enabled:s.enabled}));let i;if(r===void 0)i=n.filter(s=>s.serverId!==e);else{const s=n.findIndex(o=>o.serverId===e);s>=0?(i=[...n],i[s]={serverId:e,enabled:r}):i=[...n,{serverId:e,enabled:r}]}await vn.updateConversation(this.activeConversation.id,{mcpServerOverrides:i.length>0?i:void 0}),this.activeConversation={...this.activeConversation,mcpServerOverrides:i.length>0?i:void 0};const a=this.conversations.findIndex(s=>s.id===this.activeConversation.id);a!==-1&&(this.conversations[a].mcpServerOverrides=i.length>0?i:void 0,this.conversations=[...this.conversations])}setPendingMcpServerOverride(e,r){if(r===void 0)this.pendingMcpServerOverrides=this.pendingMcpServerOverrides.filter(n=>n.serverId!==e);else{const n=this.pendingMcpServerOverrides.findIndex(i=>i.serverId===e);if(n>=0){const i=[...this.pendingMcpServerOverrides];i[n]={serverId:e,enabled:r},this.pendingMcpServerOverrides=i}else this.pendingMcpServerOverrides=[...this.pendingMcpServerOverrides,{serverId:e,enabled:r}]}this.saveMcpDefaults()}async toggleMcpServerForChat(e){const r=this.isMcpServerEnabledForChat(e);await this.setMcpServerOverride(e,!r)}async removeMcpServerOverride(e){await this.setMcpServerOverride(e,void 0)}clearPendingMcpServerOverrides(){this.pendingMcpServerOverrides=[],this.saveMcpDefaults()}getThinkingEnabled(){return this.activeConversation?this.activeConversation.thinkingEnabled??this.pendingThinkingEnabled:this.pendingThinkingEnabled}async setThinkingEnabled(e){if(!this.activeConversation){this.pendingThinkingEnabled=e,this.saveThinkingDefaults();return}this.activeConversation={...this.activeConversation,thinkingEnabled:e},await vn.updateConversation(this.activeConversation.id,{thinkingEnabled:e});const r=this.conversations.findIndex(n=>n.id===this.activeConversation.id);r!==-1&&(this.conversations[r].thinkingEnabled=e,this.conversations=[...this.conversations])}getReasoningEffort(){return this.activeConversation?this.activeConversation.reasoningEffort??this.pendingReasoningEffort:this.pendingReasoningEffort}async setReasoningEffort(e){if(!this.activeConversation){this.pendingReasoningEffort=e,this.saveReasoningEffortDefaults();return}this.activeConversation={...this.activeConversation,reasoningEffort:e},await vn.updateConversation(this.activeConversation.id,{reasoningEffort:e});const r=this.conversations.findIndex(n=>n.id===this.activeConversation.id);r!==-1&&(this.conversations[r].reasoningEffort=e,this.conversations=[...this.conversations])}async forkConversation(e,r){if(!this.activeConversation)return null;try{const n=await vn.forkConversation(this.activeConversation.id,e,r);return this.conversations=[n,...this.conversations],await Ws(a0.chat(n.id)),ha.success("Conversation forked"),n.id}catch(n){return console.error("Failed to fork conversation:",n),ha.error("Failed to fork conversation"),null}}generateConversationFilename(e,r){const i=(e.name??"").trim().toLowerCase().replace(V1t,H1t).replace(Y1t,"_").substring(0,z1t),o=(r?.length?new Date(Math.max(...r.map(u=>u.timestamp))):new Date).toISOString().slice(0,q1t).replace(Gme,W1t).replaceAll(K1t,j1t),l=e.id?.slice(0,G1t)??"";return`${o}_conv_${l}_${i}.json`}downloadConversationFile(e,r){const n="conv"in e?e.conv:Array.isArray(e)?e[0]?.conv:void 0,i="messages"in e?e.messages:Array.isArray(e)?e[0]?.messages:void 0;if(!n){console.error("Invalid data: missing conversation");return}let a;r?a=r:Array.isArray(e)&&e.length>1?a=`${new Date().toISOString().split(Gme)[0]}_conversations.json`:a=this.generateConversationFilename(n,i);const s=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),o=URL.createObjectURL(s),l=document.createElement("a");l.href=o,l.download=a,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)}async downloadConversation(e){let r,n;if(this.activeConversation?.id===e)r=this.activeConversation,n=this.activeMessages;else{if(r=await vn.getConversation(e),!r)return;n=await vn.getConversationMessages(e)}this.downloadConversationFile({conv:r,messages:n})}async importConversations(){return new Promise((e,r)=>{const n=document.createElement("input");n.type=R9.FILE,n.accept=xr.JSON,n.onchange=async i=>{const a=i.target?.files?.[0];if(!a){r(new Error("No file selected"));return}try{const s=await a.text(),o=JSON.parse(s);let l;if(Array.isArray(o))l=o;else if(o&&typeof o=="object"&&"conv"in o&&"messages"in o)l=[o];else throw new Error("Invalid file format");const u=await vn.importConversations(l);ha.success(`Imported ${u.imported} conversation(s), skipped ${u.skipped}`),await this.loadConversations();const d=(Array.isArray(l)?l:[l]).map(h=>h.conv);e(d)}catch(s){const o=s instanceof Error?s.message:"Unknown error";console.error("Failed to import conversations:",s),ha.error("Import failed",{description:o}),r(new Error(`Import failed: ${o}`))}},n.click()})}async importConversationsData(e){const r=await vn.importConversations(e);return await this.loadConversations(),r}}const Rt=new ay;Rt.init();const R_=()=>Rt.conversations,wc=()=>Rt.activeConversation,W_=()=>Rt.activeMessages,U3t=()=>Rt.isInitialized,WEe=(t,e)=>t.pinned&&!e.pinned?-1:!t.pinned&&e.pinned?1:e.lastModified-t.lastModified;function $3t(t){const e=new As,r=new uo;for(const o of t)if(o.forkedFromConversationId){r.add(o.id);const l=e.get(o.forkedFromConversationId)||[];l.push(o),e.set(o.forkedFromConversationId,l)}const n=[],i=new uo;function a(o,l){i.add(o.id),n.push({conversation:o,depth:l});const u=e.get(o.id);if(u){u.sort(WEe);for(const d of u)a(d,l+1)}}const s=t.filter(o=>!r.has(o.id)).sort(WEe);for(const o of s)a(o,0);for(const o of t)i.has(o.id)||a(o,1);return n}class zoe{#e=Me(Kr([]));get models(){return w(this.#e)}set models(e){J(this.#e,e,!0)}#t=Me(Kr([]));get routerModels(){return w(this.#t)}set routerModels(e){J(this.#t,e,!0)}#r=Me(!1);get loading(){return w(this.#r)}set loading(e){J(this.#r,e,!0)}#n=Me(!1);get updating(){return w(this.#n)}set updating(e){J(this.#n,e,!0)}#i=Me(null);get error(){return w(this.#i)}set error(e){J(this.#i,e,!0)}#a=Me(null);get selectedModelId(){return w(this.#a)}set selectedModelId(e){J(this.#a,e,!0)}#s=Me(null);get selectedModelName(){return w(this.#s)}set selectedModelName(e){J(this.#s,e,!0)}inflightFetch=null;#o=Me(Kr(new Map));get modelUsage(){return w(this.#o)}set modelUsage(e){J(this.#o,e,!0)}modelLoadingStates=new As;#c=Me(Kr(this.loadFavoritesFromStorage()));get favoriteModelIds(){return w(this.#c)}set favoriteModelIds(e){J(this.#c,e,!0)}modelPropsCache=new VTt({ttlMs:T_t,maxEntries:C_t});#l=Me(Kr(new Set));get modelPropsFetching(){return w(this.#l)}set modelPropsFetching(e){J(this.#l,e,!0)}#d=Me(0);get propsCacheVersion(){return w(this.#d)}set propsCacheVersion(e){J(this.#d,e,!0)}get selectedModel(){return this.selectedModelId?this.models.find(e=>e.id===this.selectedModelId)??null:null}get loadedModelIds(){return this.routerModels.filter(e=>e.status.value===Sl.LOADED||e.status.value===Sl.SLEEPING).map(e=>e.id)}get loadingModelIds(){return Array.from(this.modelLoadingStates.entries()).filter(([,e])=>e).map(([e])=>e)}get singleModelName(){if(xs())return null;const e=Ya.props;return e?.model_alias?e.model_alias:e?.model_path&&e.model_path.split(/(\\|\/)/).pop()||null}get selectedModelContextSize(){return this.selectedModelName?this.getModelContextSize(this.selectedModelName):null}getModelModalities(e){const r=this.models.find(i=>i.model===e||i.id===e);if(r?.modalities)return r.modalities;const n=this.modelPropsCache.get(e);return n?.modalities?this.buildModalities(n.modalities):null}modelSupportsVision(e){return this.getModelModalities(e)?.vision??!1}modelSupportsAudio(e){return this.getModelModalities(e)?.audio??!1}modelSupportsVideo(e){return this.getModelModalities(e)?.video??!1}getModelModalitiesArray(e){const r=this.getModelModalities(e);if(!r)return[];const n=[];return r.vision&&n.push(Nm.VISION),r.audio&&n.push(Nm.AUDIO),r.video&&n.push(Nm.VIDEO),n}getModelProps(e){return this.modelPropsCache.get(e)}getModelContextSize(e){const n=this.getModelProps(e)?.default_generation_settings?.n_ctx;return typeof n=="number"?n:null}isModelPropsFetching(e){return this.modelPropsFetching.has(e)}isModelLoaded(e){const r=this.routerModels.find(n=>n.id===e);return r?.status.value===Sl.LOADED||r?.status.value===Sl.SLEEPING}isModelOperationInProgress(e){return this.modelLoadingStates.get(e)??!1}getModelStatus(e){return this.routerModels.find(n=>n.id===e)?.status.value??null}getModelUsage(e){return this.modelUsage.get(e)??new uo}isModelInUse(e){const r=this.modelUsage.get(e);return r!==void 0&&r.size>0}get supportsThinking(){const e=this.selectedModelName;if(!e)return xs()?!1:hW(Ya.props?.chat_template??"");xs()&&!this.modelPropsCache.get(e)&&this.fetchModelProps(e);const r=this.getModelProps(e);return hW(r?.chat_template??"")}checkModelSupportsThinking(e){if(!e)return!1;xs()&&!this.modelPropsCache.get(e)&&this.fetchModelProps(e);const r=this.getModelProps(e);return hW(r?.chat_template??"")}get thinkingSupportDetails(){const e=this.selectedModelName;if(!e)return xs()?{supported:!1,reason:"No model selected"}:GEe(Ya.props?.chat_template??"");xs()&&!this.modelPropsCache.get(e)&&this.fetchModelProps(e);const r=this.getModelProps(e);return GEe(r?.chat_template??"")}async fetch(e=!1){if(this.inflightFetch)return this.inflightFetch;if(!(this.models.length>0&&!e)){this.inflightFetch=this.runFetch();try{await this.inflightFetch}finally{this.inflightFetch=null}}}async runFetch(){this.loading=!0,this.error=null;try{if(Ya.props||await Ya.fetch(),xs()){const r=await qv.listRouter();this.routerModels=r.data,this.models=this.buildModelOptions(r),await this.fetchModalitiesForLoadedModels();const n=this.getVisibleModels();n.length===1&&this.isModelLoaded(n[0].model)&&this.selectModelById(n[0].id)}else this.models=await this.fetchModelModeInternal()}catch(e){throw this.models=[],this.error=e instanceof Error?e.message:"Failed to load models",e}finally{this.loading=!1}}async fetchModelModeInternal(){const e=await qv.list();return this.buildModelOptions(e)}buildModelOptions(e){return e.data.map((r,n)=>{const i=e.models?.[n],a=Array.isArray(i?.capabilities)?i?.capabilities:[],s=i?.name&&i.name.trim().length>0?i.name:r.id,o=i?.model||r.id;return{id:r.id,name:this.toDisplayName(s),model:o,description:i?.description,capabilities:a.filter(l=>!!l),details:i?.details,meta:r.meta??null,parsedId:qv.parseModelId(o),aliases:r.aliases??[],tags:r.tags??[]}})}async fetchRouterModels(){if(xs())try{const e=await qv.listRouter();this.routerModels=e.data,await this.fetchModalitiesForLoadedModels();const r=this.getVisibleModels();r.length===1&&this.isModelLoaded(r[0].model)&&this.selectModelById(r[0].id)}catch(e){console.warn("Failed to fetch router models:",e),this.routerModels=[]}}async fetchModelProps(e){const r=this.modelPropsCache.get(e);if(r)return r;if(Ya.isRouterMode&&!this.isModelLoaded(e)||this.modelPropsFetching.has(e))return null;this.modelPropsFetching.add(e);try{const n=await kDe.fetchForModel(e);return this.modelPropsCache.set(e,n),this.propsCacheVersion++,n}catch(n){return console.warn(`Failed to fetch props for model ${e}:`,n),null}finally{this.modelPropsFetching.delete(e)}}async fetchModalitiesForLoadedModels(){const e=this.loadedModelIds;if(e.length===0)return;const r=e.map(n=>this.fetchModelProps(n));try{const n=await Promise.all(r);this.models=this.models.map(i=>{const a=e.indexOf(i.model);if(a===-1)return i;const s=n[a];return s?.modalities?{...i,modalities:this.buildModalities(s.modalities)}:i}),this.propsCacheVersion++}catch(n){console.warn("Failed to fetch modalities for loaded models:",n)}}async updateModelModalities(e){const r=await this.fetchModelProps(e);r?.modalities&&(this.models=this.models.map(n=>n.model===e?{...n,modalities:this.buildModalities(r.modalities)}:n),this.propsCacheVersion++)}getVisibleModels(){return this.models.filter(e=>this.getModelProps(e.model)?.ui!==!1)}getModelFromLastAssistantResponse(){const e=Rt.activeMessages;if(!e||e.length===0)return null;for(let r=e.length-1;r>=0;r--)if(e[r].model)return e[r].model;return null}async selectModelFromLastAssistantResponse(){const e=this.getModelFromLastAssistantResponse();if(!e||this.selectedModelName===e)return!1;const r=this.models.find(n=>n.model===e);if(!r||!this.isModelLoaded(e))return!1;try{return await this.selectModelById(r.id),console.log(`[modelsStore] Automatically selected model: ${e} from last message`),!0}catch(n){return console.warn("[modelsStore] Failed to automatically select model from last message:",n),!1}}async ensureFirstModelSelected(){if(this.selectedModelName)return;const e=this.getVisibleModels();if(e.length===0)return;const r=this.getModelFromLastAssistantResponse();if(r){const i=e.find(a=>a.model===r);if(i){await this.selectModelById(i.id),this.isModelLoaded(r)&&await this.fetchModelProps(r);return}}const n=e.find(i=>this.isModelLoaded(i.model));if(n){await this.selectModelById(n.id),await this.fetchModelProps(n.model);return}await this.selectModelById(e[0].id)}async selectModelById(e){if(!e||this.updating||this.selectedModelId===e)return;const r=this.models.find(n=>n.id===e);if(!r)throw new Error("Selected model is not available");this.updating=!0,this.error=null;try{this.selectedModelId=r.id,this.selectedModelName=r.model}finally{this.updating=!1}}selectModelByName(e){const r=this.models.find(n=>n.model===e);r&&(this.selectedModelId=r.id,this.selectedModelName=r.model)}clearSelection(){this.selectedModelId=null,this.selectedModelName=null}findModelByName(e){return this.models.find(r=>r.model===e)??null}findModelById(e){return this.models.find(r=>r.id===e)??null}hasModel(e){return this.models.some(r=>r.model===e)}static STATUS_POLL_INTERVAL=500;async pollForModelStatus(e,r){let n=0;for(;;){await this.fetchRouterModels();const i=this.getModelStatus(e);if(i===r)return;if(i===Sl.FAILED)throw new Error(`Model failed to ${r===Sl.LOADED?"load":"unload"}`);if(r===Sl.LOADED&&i===Sl.UNLOADED&&n>2)throw new Error("Model was unloaded unexpectedly during loading");n++,await new Promise(a=>setTimeout(a,zoe.STATUS_POLL_INTERVAL))}}async loadModel(e){if(!this.isModelLoaded(e)&&!this.modelLoadingStates.get(e)){this.modelLoadingStates.set(e,!0),this.error=null;try{await qv.load(e),await this.pollForModelStatus(e,Sl.LOADED),await this.updateModelModalities(e),ha.success(`Model loaded: ${this.toDisplayName(e)}`)}catch(r){throw this.error=r instanceof Error?r.message:"Failed to load model",ha.error(`Failed to load model: ${this.toDisplayName(e)}`),r}finally{this.modelLoadingStates.set(e,!1)}}}async unloadModel(e){if(this.isModelLoaded(e)&&!this.modelLoadingStates.get(e)){this.modelLoadingStates.set(e,!0),this.error=null;try{await qv.unload(e),await this.pollForModelStatus(e,Sl.UNLOADED),ha.info(`Model unloaded: ${this.toDisplayName(e)}`)}catch(r){throw this.error=r instanceof Error?r.message:"Failed to unload model",ha.error(`Failed to unload model: ${this.toDisplayName(e)}`),r}finally{this.modelLoadingStates.set(e,!1)}}}async ensureModelLoaded(e){this.isModelLoaded(e)||await this.loadModel(e)}isFavorite(e){return this.favoriteModelIds.has(e)}toggleFavorite(e){const r=new uo(this.favoriteModelIds);r.has(e)?r.delete(e):r.add(e),this.favoriteModelIds=r;try{localStorage.setItem(lZ,JSON.stringify([...r]))}catch{ha.error("Failed to save favorite models to local storage")}}loadFavoritesFromStorage(){try{const e=localStorage.getItem(lZ);return e?new Set(JSON.parse(e)):new Set}catch{return ha.error("Failed to load favorite models from local storage"),new Set}}toDisplayName(e){const n=e.split(/\\|\//).pop();return n&&n.trim().length>0?n:e}buildModalities(e){return{vision:e.vision??!1,audio:e.audio??!1,video:e.video??!1}}clear(){this.models=[],this.routerModels=[],this.loading=!1,this.updating=!1,this.error=null,this.selectedModelId=null,this.selectedModelName=null,this.modelUsage.clear(),this.modelLoadingStates.clear(),this.modelPropsCache.clear(),this.modelPropsFetching.clear()}pruneExpiredCache(){return this.modelPropsCache.prune()}}const Fr=new zoe,Ef=()=>Fr.models,G3t=()=>Fr.routerModels,LMe=()=>Fr.loading,z3t=()=>Fr.updating,nb=()=>Fr.selectedModelId,hT=()=>Fr.selectedModelName,q3t=()=>Fr.loadedModelIds,PMe=()=>Fr.propsCacheVersion,FMe=()=>Fr.singleModelName,V3t=()=>Fr.selectedModelContextSize,H3t=()=>Fr.supportsThinking,Y3t=t=>Fr.checkModelSupportsThinking(t);var W3t=ae("<!> <!>",1),K3t=ae('<div><div class="relative flex min-h-0 flex-1 items-center justify-center overflow-hidden"><!> <div class="flex h-full w-full flex-col items-center justify-start overflow-auto py-4"><!> <!></div></div></div>');function j3t(t,e){We(e,!0);let r=ue(e,"uploadedFiles",19,()=>[]),n=ue(e,"attachments",19,()=>[]),i=ue(e,"class",3,""),a=ue(e,"previewFocusIndex",3,0),s=ee(()=>PDe({uploadedFiles:r(),attachments:n()}).filter(P=>!eoe(P)&&!toe(P)).map(P=>({...P,isImage:gZ(P.attachment,P.uploadedFile),isAudio:mZ(P.attachment,P.uploadedFile),isVideo:_Z(P.attachment,P.uploadedFile)}))),o=Me(0);sr(()=>{a()>=0&&a()<w(s).length&&J(o,a())}),sr(()=>{const P=N=>{N.detail<0?J(o,w(o)>0?w(o)-1:w(s).length-1,!0):J(o,w(o)<w(s).length-1?w(o)+1:0,!0)};return document.addEventListener("chat-attachments-nav",P),()=>document.removeEventListener("chat-attachments-nav",P)}),sr(()=>{const P=w(o);setTimeout(()=>{document.querySelector(`[data-thumbnail-index="${P}"]`)?.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},0)});let l=ee(()=>w(s)[w(o)]??null),u=ee(()=>w(l)?.name||w(l)?.uploadedFile?.name||w(l)?.attachment?.name||"Unknown File"),d=ee(()=>w(l)?mZ(w(l).attachment,w(l).uploadedFile):!1),h=ee(()=>w(l)?_Z(w(l).attachment,w(l).uploadedFile):!1),f=ee(()=>w(l)?gZ(w(l).attachment,w(l).uploadedFile):!1),p=ee(()=>w(l)?roe(w(l).attachment,w(l).uploadedFile):!1),g=ee(()=>w(l)?FDe(w(l).attachment,w(l).uploadedFile):!1),m=ee(()=>w(l)?.uploadedFile?.preview||(w(f)&&w(l)?.attachment&&"base64Url"in w(l).attachment?w(l).attachment.base64Url:w(l)?.preview)),_=ee(()=>w(l)?.uploadedFile?.textContent||(w(l)?.attachment&&"content"in w(l).attachment?w(l).attachment.content:w(l)?.textContent)),v=ee(()=>ioe(w(u))),y=ee(()=>w(l)?.size?F9(w(l).size):""),b=ee(()=>w(l)&&e.activeModelId?Fr.modelSupportsVision(e.activeModelId):!1),E=ee(()=>w(d)&&w(l)?w(l).uploadedFile?.preview??(w(l).attachment&&"mimeType"in w(l).attachment&&"base64Data"in w(l).attachment?hk(w(l).attachment.mimeType,w(l).attachment.base64Data):null):null),S=ee(()=>w(h)&&w(l)?w(l).uploadedFile?.preview??(w(l).attachment&&"mimeType"in w(l).attachment&&"base64Data"in w(l).attachment?hk(w(l).attachment.mimeType,w(l).attachment.base64Data):null):null);function T(){J(o,w(o)>0?w(o)-1:w(s).length-1,!0)}function C(){J(o,w(o)<w(s).length-1?w(o)+1:0,!0)}function x(P){J(o,P,!0)}var A={prev:T,next:C},R=K3t(),I=de(R),L=de(I);{let P=ee(()=>w(s).length>1);Q3t(L,{onPrev:T,onNext:C,get show(){return w(P)}})}var F=he(L,2),O=de(F);{var D=P=>{var N=W3t(),$=ne(N);e5t($,{get displayName(){return w(u)},get fileSize(){return w(y)}});var U=he($,2);rMt(U,{get currentItem(){return w(l)},get isImage(){return w(f)},get isAudio(){return w(d)},get isVideo(){return w(h)},get isPdf(){return w(p)},get isText(){return w(g)},get displayPreview(){return w(m)},get displayTextContent(){return w(_)},get audioSrc(){return w(E)},get videoSrc(){return w(S)},get language(){return w(v)},get hasVisionModality(){return w(b)},get activeModelId(){return e.activeModelId}}),H(P,N)};Re(O,P=>{w(l)&&P(D)})}var M=he(O,2);return R5t(M,{get items(){return w(s)},get currentIndex(){return w(o)},onNavigate:x}),oe(F),oe(I),oe(R),at(()=>lr(R,1,`${i()??""} flex flex-col text-white`)),H(t,R),Ke(A)}var X3t=ae("<!> <!>",1);function Q3t(t,e){var r=Ee(),n=ne(r);{var i=a=>{var s=X3t(),o=ne(s);Mn(o,{variant:"secondary",size:"icon",class:"absolute top-1/2 left-4 z-10 h-8 w-8 -translate-y-1/2 rounded-full bg-background/5 p-0 text-white!",get onclick(){return e.onPrev},"aria-label":"Previous",children:(u,d)=>{yB(u,{class:"size-4"})},$$slots:{default:!0}});var l=he(o,2);Mn(l,{variant:"secondary",size:"icon",class:"absolute top-1/2 right-4 z-10 h-8 w-8 -translate-y-1/2 rounded-full bg-background/5 p-0 text-white!",get onclick(){return e.onNext},"aria-label":"Next",children:(u,d)=>{fu(u,{class:"size-4"})},$$slots:{default:!0}}),H(a,s)};Re(n,a=>{e.show&&a(i)})}H(t,r)}var Z3t=ae('<p class="text-xs text-white/60"> </p>'),J3t=ae('<div class="sticky top-0 z-[20] mb-4 rounded-lg bg-black/5 px-4 py-2 text-center backdrop-blur-md"><p class="font-medium text-white"> </p> <!></div>');function e5t(t,e){var r=J3t(),n=de(r),i=de(n,!0);oe(n);var a=he(n,2);{var s=o=>{var l=Z3t(),u=de(l,!0);oe(l),at(()=>yt(u,e.fileSize)),H(o,l)};Re(a,o=>{e.fileSize&&o(s)})}oe(r),at(()=>yt(i,e.displayName)),H(t,r)}var t5t=ae('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function $h(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"checked",15,!1),i=ue(e,"indeterminate",15,!1),a=xt(e,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var s=Ee(),o=ne(s);{const l=(d,h)=>{let f=()=>h?.().checked,p=()=>h?.().indeterminate;var g=t5t(),m=de(g);{var _=y=>{a5(y,{class:"size-3.5"})},v=y=>{n0t(y,{class:"size-3.5"})};Re(m,y=>{f()?y(_):p()&&y(v,1)})}oe(g),H(d,g)};let u=ee(()=>an("peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e.class));Le(o,()=>Rft,(d,h)=>{h(d,Bt({"data-slot":"checkbox",get class(){return w(u)}},()=>a,{get ref(){return r()},set ref(f){r(f)},get checked(){return n()},set checked(f){n(f)},get indeterminate(){return i()},set indeterminate(f){i(f)},children:l,$$slots:{default:!0}}))})}H(t,s),Ke()}var r5t=ae("<input/>"),n5t=ae("<input/>");function x0(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"value",15),i=ue(e,"files",15),a=xt(e,["$$slots","$$events","$$legacy","ref","value","type","files","class"]);var s=Ee(),o=ne(s);{var l=d=>{var h=r5t();Er(h,f=>({"data-slot":"input",class:f,type:"file",...a}),[()=>an("flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 pt-1.5 text-sm font-medium shadow-xs ring-offset-background transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e.class)],void 0,void 0,void 0,!0),Qr(h,f=>r(f),()=>r()),tct(h,i),WN(h,n),H(d,h)},u=d=>{var h=n5t();Er(h,f=>({"data-slot":"input",class:f,style:"backdrop-filter: blur(0.5rem);",type:e.type,...a}),[()=>an("flex h-9 w-full min-w-0 rounded-md border border-input bg-background px-3 py-1 text-base shadow-xs ring-offset-background transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e.class)],void 0,void 0,void 0,!0),Qr(h,f=>r(f),()=>r()),WN(h,n),H(d,h)};Re(o,d=>{e.type==="file"?d(l):d(u,-1)})}H(t,s),Ke()}var i5t=ae('<button type="button" class="absolute top-1/2 right-3 -translate-y-1/2 transform cursor-pointer text-muted-foreground transition-colors hover:text-foreground"><!></button>'),a5t=ae("<div><!> <!> <!></div>");function hR(t,e){We(e,!0);let r=ue(e,"value",15,""),n=ue(e,"placeholder",3,"Search..."),i=ue(e,"ref",15,null),a=ue(e,"isCancelAlwaysVisible",3,!1),s=ee(()=>a()||!!r()||!!e.onClose);function o(g){const m=g.target;r(m.value),e.onInput?.(m.value)}function l(){r()?(r(""),e.onInput?.(""),i()?.focus()):e.onClose?.()}var u=a5t(),d=de(u);aDe(d,{class:"absolute top-1/2 left-3 z-10 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"});var h=he(d,2);{let g=ee(()=>w(s)?"pr-9":"");x0(h,{get id(){return e.id},get class(){return`pl-9 ${w(g)??""}`},oninput:o,get onkeydown(){return e.onKeyDown},get placeholder(){return n()},type:"search",get value(){return r()},set value(m){r(m)},get ref(){return i()},set ref(m){i(m)}})}var f=he(h,2);{var p=g=>{var m=i5t(),_=de(m);Xd(_,{class:"h-4 w-4"}),oe(m),at(()=>Pr(m,"aria-label",r()?"Clear search":"Close")),tn("click",m,l),H(g,m)};Re(f,g=>{w(s)&&g(p)})}oe(u),at(()=>lr(u,1,`relative ${e.class??""}`)),H(t,u),Ke()}Wi(["click"]);var s5t=ae("<!> <!>",1);function KEe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"orientation",3,"vertical"),i=xt(e,["$$slots","$$events","$$legacy","ref","class","orientation","children"]);var a=Ee(),s=ne(a);{let o=ee(()=>an("flex touch-none p-px transition-colors select-none",n()==="vertical"&&"h-full w-2.5 border-l border-l-transparent",n()==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e.class));Le(s,()=>smt,(l,u)=>{u(l,Bt({"data-slot":"scroll-area-scrollbar",get orientation(){return n()},get class(){return w(o)}},()=>i,{get ref(){return r()},set ref(d){r(d)},children:(d,h)=>{var f=s5t(),p=ne(f);ft(p,()=>e.children??Tt);var g=he(p,2);Le(g,()=>cmt,(m,_)=>{_(m,{"data-slot":"scroll-area-thumb",class:"relative flex-1 rounded-full bg-border"})}),H(d,f)},$$slots:{default:!0}}))})}H(t,a),Ke()}var o5t=ae("<!> <!> <!> <!>",1);function qoe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"orientation",3,"vertical"),i=ue(e,"scrollbarXClasses",3,""),a=ue(e,"scrollbarYClasses",3,""),s=xt(e,["$$slots","$$events","$$legacy","ref","class","orientation","scrollbarXClasses","scrollbarYClasses","children"]);var o=Ee(),l=ne(o);{let u=ee(()=>an("relative",e.class));Le(l,()=>Qgt,(d,h)=>{h(d,Bt({"data-slot":"scroll-area",get class(){return w(u)}},()=>s,{get ref(){return r()},set ref(f){r(f)},children:(f,p)=>{var g=o5t(),m=ne(g);Le(m,()=>Jgt,(S,T)=>{T(S,{"data-slot":"scroll-area-viewport",class:"size-full rounded-[inherit] ring-ring/10 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 dark:ring-ring/20 dark:outline-ring/40",children:(C,x)=>{var A=Ee(),R=ne(A);ft(R,()=>e.children??Tt),H(C,A)},$$slots:{default:!0}})});var _=he(m,2);{var v=S=>{KEe(S,{orientation:"vertical",get class(){return a()}})};Re(_,S=>{(n()==="vertical"||n()==="both")&&S(v)})}var y=he(_,2);{var b=S=>{KEe(S,{orientation:"horizontal",get class(){return i()}})};Re(y,S=>{(n()==="horizontal"||n()==="both")&&S(b)})}var E=he(y,2);Le(E,()=>hmt,(S,T)=>{T(S,{})}),H(f,g)},$$slots:{default:!0}}))})}H(t,o),Ke()}var l5t=ae('<tr><td colspan="3" class="p-8 text-center text-sm text-muted-foreground"><!></td></tr>'),c5t=ae('<tr class="cursor-pointer border-b transition-colors hover:bg-muted/50"><td class="p-3"><!></td><td class="p-3 text-sm"><div class="max-w-[17rem] truncate"> </div></td><td class="p-3 text-sm text-muted-foreground"> </td></tr>'),u5t=ae('<table class="w-full"><thead class="sticky top-0 z-10 bg-muted"><tr class="border-b"><th class="w-12 p-3 text-left"><!></th><th class="p-3 text-left text-sm font-medium">Conversation Name</th><th class="w-32 p-3 text-left text-sm font-medium">Messages</th></tr></thead><tbody><!></tbody></table>'),d5t=ae('<div class="space-y-4"><!> <div class="flex items-center justify-between text-sm text-muted-foreground"><span> <!></span></div> <div class="overflow-hidden rounded-md border"><!></div> <div class="flex justify-end gap-2"><!> <!></div></div>');function h5t(t,e){We(e,!0);let r=ue(e,"messageCountMap",19,()=>new Map),n=Me(""),i=Me(s()),a=Me(null);function s(){return new uo(e.conversations.map(L=>L.id))}let o=ee(()=>e.conversations.filter(L=>(L.name||"Untitled conversation").toLowerCase().includes(w(n).toLowerCase()))),l=ee(()=>w(o).length>0&&w(o).every(L=>w(i).has(L.id))),u=ee(()=>w(o).some(L=>w(i).has(L.id))&&!w(l));function d(L,F=!1){const O=new uo(w(i));if(F&&w(a)!==null){const D=w(o).findIndex(P=>P.id===w(a)),M=w(o).findIndex(P=>P.id===L);if(D!==-1&&M!==-1){const P=Math.min(D,M),N=Math.max(D,M),$=!O.has(L);for(let U=P;U<=N;U++)$?O.add(w(o)[U].id):O.delete(w(o)[U].id);J(i,O);return}}O.has(L)?O.delete(L):O.add(L),J(i,O),J(a,L,!0)}function h(){if(w(l)){const L=new uo(w(i));w(o).forEach(F=>L.delete(F.id)),J(i,L)}else{const L=new uo(w(i));w(o).forEach(F=>L.add(F.id)),J(i,L)}}function f(){const L=e.conversations.filter(F=>w(i).has(F.id));e.onConfirm(L)}function p(){J(i,s()),J(n,""),J(a,null),e.onCancel()}function g(){J(i,s()),J(n,""),J(a,null)}var m={reset:g},_=d5t(),v=de(_);hR(v,{placeholder:"Search conversations...",get value(){return w(n)},set value(L){J(n,L,!0)}});var y=he(v,2),b=de(y),E=de(b),S=he(E);{var T=L=>{var F=fr();at(()=>yt(F,`(${w(o).length??""} shown)`)),H(L,F)};Re(S,L=>{w(n)&&L(T)})}oe(b),oe(y);var C=he(y,2),x=de(C);qoe(x,{class:"h-[400px]",children:(L,F)=>{var O=u5t(),D=de(O),M=de(D),P=de(M),N=de(P);$h(N,{get checked(){return w(l)},get indeterminate(){return w(u)},onCheckedChange:h}),oe(P),Gt(2),oe(M),oe(D);var $=he(D),U=de($);{var B=z=>{var G=l5t(),Y=de(G),W=de(Y);{var Q=Z=>{var re=fr();at(()=>yt(re,`No conversations found matching "${w(n)??""}"`)),H(Z,re)},ie=Z=>{var re=fr("No conversations available");H(Z,re)};Re(W,Z=>{w(n)?Z(Q):Z(ie,-1)})}oe(Y),oe(G),H(z,G)},V=z=>{var G=Ee(),Y=ne(G);fn(Y,17,()=>w(o),W=>W.id,(W,Q)=>{var ie=c5t(),Z=de(ie),re=de(Z);{let ye=ee(()=>w(i).has(w(Q).id));$h(re,{get checked(){return w(ye)},onclick:Ue=>{Ue.preventDefault(),Ue.stopPropagation(),d(w(Q).id,Ue.shiftKey)}})}oe(Z);var K=he(Z),j=de(K),se=de(j,!0);oe(j),oe(K);var le=he(K),_e=de(le,!0);oe(le),oe(ie),at(ye=>{Pr(j,"title",w(Q).name||"Untitled conversation"),yt(se,w(Q).name||"Untitled conversation"),yt(_e,ye)},[()=>r().get(w(Q).id)??0]),tn("click",ie,ye=>d(w(Q).id,ye.shiftKey)),H(W,ie)}),H(z,G)};Re(U,z=>{w(o).length===0?z(B):z(V,-1)})}oe($),oe(O),H(L,O)},$$slots:{default:!0}}),oe(C);var A=he(C,2),R=de(A);Mn(R,{variant:"outline",onclick:p,children:(L,F)=>{Gt();var O=fr("Cancel");H(L,O)},$$slots:{default:!0}});var I=he(R,2);{let L=ee(()=>w(i).size===0);Mn(I,{onclick:f,get disabled(){return w(L)},children:(F,O)=>{Gt();var D=fr();at(()=>yt(D,`${e.mode==="export"?"Export":"Import"} (${w(i).size??""})`)),H(F,D)},$$slots:{default:!0}})}return oe(A),oe(_),at(()=>yt(E,`${w(i).size??""} of ${e.conversations.length??""} selected `)),H(t,_),Ke(m)}Wi(["click"]);var f5t=ae('<div><button class="absolute top-1/2 left-4 z-10 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full bg-background/25 shadow-md backdrop-blur-xs transition-opacity hover:bg-background/45 disabled:pointer-events-none disabled:opacity-0" aria-label="Scroll left"><!></button> <div><!></div> <button class="absolute top-1/2 right-4 z-10 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full bg-background/25 shadow-md backdrop-blur-xs transition-opacity hover:bg-background/45 disabled:pointer-events-none disabled:opacity-0" aria-label="Scroll right"><!></button></div>');function Voe(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"gapSize",3,"3"),i=Me(!1),a=Me(!1),s=Me(void 0);function o(b){b?.stopPropagation(),b?.preventDefault(),w(s)&&w(s).scrollBy({left:w(s).clientWidth*-.67,behavior:"smooth"})}function l(b){b?.stopPropagation(),b?.preventDefault(),w(s)&&w(s).scrollBy({left:w(s).clientWidth*.67,behavior:"smooth"})}function u(){if(!w(s))return;const{scrollLeft:b,scrollWidth:E,clientWidth:S}=w(s);J(i,b>0),J(a,b<E-S-1);const T=E>S;e.onScrollableChange?.(T)}function d(){w(s)&&(w(s).scrollLeft=0,setTimeout(()=>{u()},0))}sr(()=>{if(!w(s))return;const b=new ResizeObserver(()=>u());return b.observe(w(s)),()=>b.disconnect()});var h={resetScroll:d},f=f5t(),p=de(f),g=de(p);yB(g,{class:"h-4 w-4"}),oe(p);var m=he(p,2),_=de(m);ft(_,()=>e.children??Tt),oe(m),Qr(m,b=>J(s,b),()=>w(s));var v=he(m,2),y=de(v);return fu(y,{class:"h-4 w-4"}),oe(v),oe(f),at(()=>{lr(f,1,`relative ${r()??""}`),p.disabled=!w(i),lr(m,1,`scrollbar-hide flex items-start gap-${n()??""} overflow-x-auto`),v.disabled=!w(a)}),tn("click",p,o),Ji("scroll",m,u),tn("click",v,l),H(t,f),Ke(h)}Wi(["click"]);var p5t=ae('<span class="block truncate"> </span>'),g5t=ae("<p> </p>"),m5t=ae("<!> <!>",1),_5t=ae("<span> </span>");function aA(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"showTooltip",3,!0),i=Me(void 0),a=Me(!1);function s(){w(i)&&J(a,w(i).scrollWidth>w(i).clientWidth)}sr(()=>{if(w(i)){s();const h=new ResizeObserver(s);return h.observe(w(i)),()=>h.disconnect()}});var o=Ee(),l=ne(o);{var u=h=>{var f=Ee(),p=ne(f);Le(p,()=>mo,(g,m)=>{m(g,{children:(_,v)=>{var y=m5t(),b=ne(y);Le(b,()=>po,(S,T)=>{T(S,{get class(){return`${r()??""} min-w-0`},children:(C,x)=>{var A=p5t(),R=de(A,!0);oe(A),Qr(A,I=>J(i,I),()=>w(i)),at(()=>yt(R,e.text)),H(C,A)},$$slots:{default:!0}})});var E=he(b,2);Le(E,()=>go,(S,T)=>{T(S,{class:"z-[9999]",children:(C,x)=>{var A=g5t(),R=de(A,!0);oe(A),at(()=>yt(R,e.text)),H(C,A)},$$slots:{default:!0}})}),H(_,y)},$$slots:{default:!0}})}),H(h,f)},d=h=>{var f=_5t(),p=de(f,!0);oe(f),Qr(f,g=>J(i,g),()=>w(i)),at(()=>{lr(f,1,`${r()??""} block min-w-0 truncate`),yt(p,e.text)}),H(h,f)};Re(l,h=>{w(a)&&n()?h(u):h(d,-1)})}H(t,o),Ke()}var v5t=ae("<span>⌘</span>"),y5t=ae("<span></span>"),b5t=ae("<!> <!>",1),E5t=ae("<kbd></kbd>");function YZ(t,e){We(e,!0);let r=ue(e,"variant",3,"default"),n=ue(e,"class",3,""),i=ee(()=>r()==="destructive"?"text-destructive":"text-muted-foreground");var a=E5t();fn(a,21,()=>e.keys,Xy,(s,o,l)=>{var u=b5t(),d=ne(u);{var h=_=>{{let v=ee(()=>r()==="destructive"?"text-destructive":"");Umt(_,{get class(){return`h-1 w-1 ${w(v)??""} -mr-1`}})}},f=_=>{var v=v5t();at(()=>lr(v,1,Fn(r()==="destructive"?"text-destructive":""))),H(_,v)},p=_=>{var v=fr();at(y=>yt(v,y),[()=>w(o).toUpperCase()]),H(_,v)};Re(d,_=>{w(o)==="shift"?_(h):w(o)==="cmd"?_(f,1):_(p,-1)})}var g=he(d,2);{var m=_=>{var v=y5t();H(_,v)};Re(g,_=>{l<e.keys.length-1&&_(m)})}H(s,u)}),oe(a),at(()=>lr(a,1,`px-1 pointer-events-none inline-flex select-none items-center gap-0.5 font-sans text-md font-medium opacity-0 transition-opacity -my-1 ${w(i)??""} ${n()??""}`)),H(t,a),Ke()}var S5t=ae('<div class="code-block-actions"><!> <!></div>');function T5t(t,e){We(e,!0);let r=ue(e,"disabled",3,!1);const n=ee(()=>e.language?.toLowerCase()===pi.HTML);var i=S5t(),a=de(i);{let l=ee(()=>!r()),u=ee(()=>r()?"Code incomplete":"Copy code");Tb(a,{get text(){return e.code},get canCopy(){return w(l)},get ariaLabel(){return w(u)}})}var s=he(a,2);{var o=l=>{{let u=ee(()=>r()?"Code incomplete":"Preview code");as(l,{get icon(){return qse},get tooltip(){return w(u)},get disabled(){return r()},onclick:()=>e.onPreview(e.code,e.language)})}};Re(s,l=>{w(n)&&l(o)})}oe(i),H(t,i),Ke()}var C5t=ae('<img class="h-12 w-12 object-cover"/>'),w5t=ae('<div class="bg-foreground-muted/50 flex h-12 w-12 flex-col items-center justify-center gap-0.5 py-1"><!> <span class="font-mono text-[9px] text-white/60"> </span></div>'),x5t=ae("<button><!></button>"),A5t=ae('<div class="sticky bottom-0 z-10 mt-4 flex-shrink-0"><!></div>');function R5t(t,e){We(e,!0);function r(s){const o=s.split(".");return o.length>1?o.pop()?.toUpperCase()??"":""}var n=Ee(),i=ne(n);{var a=s=>{var o=A5t(),l=de(o);Voe(l,{class:"max-w-full",children:(u,d)=>{var h=Ee(),f=ne(h);fn(f,19,()=>e.items,p=>p.id,(p,g,m)=>{var _=x5t(),v=de(_);{var y=E=>{var S=C5t();at(()=>{Pr(S,"src",w(g).preview),Pr(S,"alt",w(g).name)}),H(E,S)},b=E=>{var S=w5t(),T=de(S);{var C=L=>{EB(L,{class:"h-4 w-4 text-white/70"})},x=L=>{oR(L,{class:"h-4 w-4 text-white/70"})},A=L=>{ng(L,{class:"h-4 w-4 text-white/70"})};Re(T,L=>{w(g).isAudio?L(C):w(g).isVideo?L(x,1):L(A,-1)})}var R=he(T,2),I=de(R,!0);oe(R),oe(S),at(L=>yt(I,L),[()=>r(w(g).name)]),H(E,S)};Re(v,E=>{w(g).isImage&&w(g).preview?E(y):E(b,-1)})}oe(_),at(()=>{Pr(_,"data-thumbnail-index",w(m)),lr(_,1,Fn(["relative flex-shrink-0 cursor-pointer overflow-hidden rounded border-2 bg-black/80 backdrop-blur-sm transition-all hover:opacity-90",w(m)===e.currentIndex?"border-white":"border-transparent opacity-60","[&:not(:first-child)]:last:mr-4 [&:not(:last-child)]:first:ml-4"])),Pr(_,"aria-label",`Go to ${w(g).name}`)}),tn("click",_,()=>e.onNavigate(w(m))),H(p,_)}),H(u,h)},$$slots:{default:!0}}),oe(o),H(s,o)};Re(i,s=>{e.items.length>1&&s(a)})}H(t,n),Ke()}Wi(["click"]);const O5t=Y3({base:"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});var I5t=ae("<div><!></div>");function BMe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"variant",3,"default"),i=xt(e,["$$slots","$$events","$$legacy","ref","class","variant","children"]);var a=I5t();Er(a,o=>({"data-slot":"alert",class:o,...i,role:"alert"}),[()=>an(O5t({variant:n()}),e.class)]);var s=de(a);ft(s,()=>e.children??Tt),oe(a),Qr(a,o=>r(o),()=>r()),H(t,a),Ke()}var N5t=ae("<div><!></div>");function UMe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=N5t();Er(i,s=>({"data-slot":"alert-description",class:s,...n}),[()=>an("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var k5t=ae("<div><!></div>");function $Me(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=k5t();Er(i,s=>({"data-slot":"alert-title",class:s,...n}),[()=>an("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}class D5t{mediaRecorder=null;audioChunks=[];stream=null;recordingState=!1;async startRecording(){try{this.stream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}}),this.initializeRecorder(this.stream),this.audioChunks=[],this.mediaRecorder.start(100),this.recordingState=!0}catch(e){throw console.error("Failed to start recording:",e),new Error("Failed to access microphone. Please check permissions.")}}async stopRecording(){return new Promise((e,r)=>{const n=this.mediaRecorder,i=this.audioChunks,a=this.stream;if(!n||n.state==="inactive"){r(new Error("No active recording to stop"));return}this.mediaRecorder=null,this.audioChunks=[],this.stream=null,this.recordingState=!1,n.onstop=()=>{const s=new Blob(i,{type:n.mimeType||xa.WAV});if(a)for(const o of a.getTracks())o.stop();e(s)},n.onerror=s=>{if(console.error("Recording error:",s),a)for(const o of a.getTracks())o.stop();r(new Error("Recording failed"))},n.stop()})}isRecording(){return this.recordingState}cancelRecording(){const e=this.mediaRecorder,r=this.stream;if(this.mediaRecorder=null,this.audioChunks=[],this.stream=null,this.recordingState=!1,e&&e.state!=="inactive"&&(e.onstop=null,e.onerror=null,e.stop()),r)for(const n of r.getTracks())n.stop()}initializeRecorder(e){const r={};MediaRecorder.isTypeSupported(xa.WAV)?r.mimeType=xa.WAV:MediaRecorder.isTypeSupported(xa.WEBM_OPUS)?r.mimeType=xa.WEBM_OPUS:MediaRecorder.isTypeSupported(xa.WEBM)?r.mimeType=xa.WEBM:MediaRecorder.isTypeSupported(xa.MP4)?r.mimeType=xa.MP4:console.warn("No preferred audio format supported, using default"),this.mediaRecorder=new MediaRecorder(e,r),this.mediaRecorder.ondataavailable=n=>{n.data.size>0&&this.audioChunks.push(n.data)},this.mediaRecorder.onstop=()=>{this.recordingState=!1},this.mediaRecorder.onerror=n=>{console.error("MediaRecorder error:",n),this.recordingState=!1}}}async function M5t(t){try{if(t.type.includes("wav"))return t;const e=await t.arrayBuffer(),r=new(window.AudioContext||window.webkitAudioContext);try{const n=await r.decodeAudioData(e);return L5t(n)}finally{r.close()}}catch(e){return console.error("Failed to convert audio to WAV:",e),t}}function L5t(t){const e=t.length,r=t.numberOfChannels,n=t.sampleRate,a=r*2,s=n*a,o=e*a,l=44+o,u=new ArrayBuffer(l),d=new DataView(u),h=(m,_)=>{for(let v=0;v<_.length;v++)d.setUint8(m+v,_.charCodeAt(v))};h(0,"RIFF"),d.setUint32(4,l-8,!0),h(8,"WAVE"),h(12,"fmt "),d.setUint32(16,16,!0),d.setUint16(20,1,!0),d.setUint16(22,r,!0),d.setUint32(24,n,!0),d.setUint32(28,s,!0),d.setUint16(32,a,!0),d.setUint16(34,16,!0),h(36,"data"),d.setUint32(40,o,!0);const f=new Array(r);for(let m=0;m<r;m++)f[m]=t.getChannelData(m);const p=new Int16Array(u,44,e*r);let g=0;for(let m=0;m<e;m++)for(let _=0;_<r;_++){let v=f[_][m];v>1?v=1:v<-1&&(v=-1),p[g++]=v*32767}return new Blob([u],{type:xa.WAV})}function P5t(t,e){const r=new Date().toISOString().replace(/[:.]/g,"-"),n=t.type.includes("wav")?"wav":"mp3",i=`recording-${r}.${n}`;return new File([t],i,{type:t.type,lastModified:Date.now()})}function F5t(){return!!(typeof navigator<"u"&&navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function"&&typeof window<"u"&&window.MediaRecorder)}const Kc=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),WZ=[.001,0,0,.001,0,0],pW=1.35,Cd={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},O_={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},GMe="pdfjs_internal_editor_",mi={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,SIGNATURE:101,COMMENT:102},aa={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},B5t={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},vc={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},NP={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Lo={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},PS={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},VB={ERRORS:0,WARNINGS:1,INFOS:5},r7={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},HM={moveTo:0,lineTo:1,curveTo:2,closePath:3},U5t={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let HB=VB.WARNINGS;function $5t(t){Number.isInteger(t)&&(HB=t)}function G5t(){return HB}function YB(t){HB>=VB.INFOS&&console.log(`Info: ${t}`)}function _i(t){HB>=VB.WARNINGS&&console.log(`Warning: ${t}`)}function Wa(t){throw new Error(t)}function Go(t,e){t||Wa(e)}function z5t(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function zMe(t,e=null,r=null){if(!t)return null;if(r&&typeof t=="string"&&(r.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),r.tryConvertEncoding))try{t=W5t(t)}catch{}const n=e?URL.parse(t,e):URL.parse(t);return z5t(n)?n:null}function qMe(t,e,r=!1){const n=URL.parse(t);return n?(n.hash=e,n.href):r&&zMe(t,"http://example.com")?t.split("#",1)[0]+`${e?`#${e}`:""}`:""}function qi(t,e,r,n=!1){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}const sE=(function(){function e(r,n){this.message=r,this.name=n}return e.prototype=new Error,e.constructor=e,e})();class jEe extends sE{constructor(e,r){super(e,"PasswordException"),this.code=r}}class gW extends sE{constructor(e,r){super(e,"UnknownErrorException"),this.details=r}}class KZ extends sE{constructor(e){super(e,"InvalidPDFException")}}class n7 extends sE{constructor(e,r,n){super(e,"ResponseException"),this.status=r,this.missing=n}}class q5t extends sE{constructor(e){super(e,"FormatError")}}class l1 extends sE{constructor(e){super(e,"AbortException")}}function VMe(t){(typeof t!="object"||t?.length===void 0)&&Wa("Invalid argument for bytesToString");const e=t.length,r=8192;if(e<r)return String.fromCharCode.apply(null,t);const n=[];for(let i=0;i<e;i+=r){const a=Math.min(i+r,e),s=t.subarray(i,a);n.push(String.fromCharCode.apply(null,s))}return n.join("")}function v5(t){typeof t!="string"&&Wa("Invalid argument for stringToBytes");const e=t.length,r=new Uint8Array(e);for(let n=0;n<e;++n)r[n]=t.charCodeAt(n)&255;return r}function V5t(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function H5t(){const t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}function Y5t(){try{return new Function(""),!0}catch{return!1}}class ec{static get isLittleEndian(){return qi(this,"isLittleEndian",H5t())}static get isEvalSupported(){return qi(this,"isEvalSupported",Y5t())}static get isOffscreenCanvasSupported(){return qi(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return qi(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){const{platform:e,userAgent:r}=navigator;return qi(this,"platform",{isAndroid:r.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:r.includes("Firefox")})}static get isCSSRoundSupported(){return qi(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const mW=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0"));class $n{static makeHexColor(e,r,n){return`#${mW[e]}${mW[r]}${mW[n]}`}static scaleMinMax(e,r){let n;e[0]?(e[0]<0&&(n=r[0],r[0]=r[2],r[2]=n),r[0]*=e[0],r[2]*=e[0],e[3]<0&&(n=r[1],r[1]=r[3],r[3]=n),r[1]*=e[3],r[3]*=e[3]):(n=r[0],r[0]=r[1],r[1]=n,n=r[2],r[2]=r[3],r[3]=n,e[1]<0&&(n=r[1],r[1]=r[3],r[3]=n),r[1]*=e[1],r[3]*=e[1],e[2]<0&&(n=r[0],r[0]=r[2],r[2]=n),r[0]*=e[2],r[2]*=e[2]),r[0]+=e[4],r[1]+=e[5],r[2]+=e[4],r[3]+=e[5]}static transform(e,r){return[e[0]*r[0]+e[2]*r[1],e[1]*r[0]+e[3]*r[1],e[0]*r[2]+e[2]*r[3],e[1]*r[2]+e[3]*r[3],e[0]*r[4]+e[2]*r[5]+e[4],e[1]*r[4]+e[3]*r[5]+e[5]]}static applyTransform(e,r,n=0){const i=e[n],a=e[n+1];e[n]=i*r[0]+a*r[2]+r[4],e[n+1]=i*r[1]+a*r[3]+r[5]}static applyTransformToBezier(e,r,n=0){const i=r[0],a=r[1],s=r[2],o=r[3],l=r[4],u=r[5];for(let d=0;d<6;d+=2){const h=e[n+d],f=e[n+d+1];e[n+d]=h*i+f*s+l,e[n+d+1]=h*a+f*o+u}}static applyInverseTransform(e,r){const n=e[0],i=e[1],a=r[0]*r[3]-r[1]*r[2];e[0]=(n*r[3]-i*r[2]+r[2]*r[5]-r[4]*r[3])/a,e[1]=(-n*r[1]+i*r[0]+r[4]*r[1]-r[5]*r[0])/a}static axialAlignedBoundingBox(e,r,n){const i=r[0],a=r[1],s=r[2],o=r[3],l=r[4],u=r[5],d=e[0],h=e[1],f=e[2],p=e[3];let g=i*d+l,m=g,_=i*f+l,v=_,y=o*h+u,b=y,E=o*p+u,S=E;if(a!==0||s!==0){const T=a*d,C=a*f,x=s*h,A=s*p;g+=x,v+=x,_+=A,m+=A,y+=T,S+=T,E+=C,b+=C}n[0]=Math.min(n[0],g,_,m,v),n[1]=Math.min(n[1],y,E,b,S),n[2]=Math.max(n[2],g,_,m,v),n[3]=Math.max(n[3],y,E,b,S)}static inverseTransform(e){const r=e[0]*e[3]-e[1]*e[2];return[e[3]/r,-e[1]/r,-e[2]/r,e[0]/r,(e[2]*e[5]-e[4]*e[3])/r,(e[4]*e[1]-e[5]*e[0])/r]}static singularValueDecompose2dScale(e,r){const n=e[0],i=e[1],a=e[2],s=e[3],o=n**2+i**2,l=n*a+i*s,u=a**2+s**2,d=(o+u)/2,h=Math.sqrt(d**2-(o*u-l**2));r[0]=Math.sqrt(d+h||1),r[1]=Math.sqrt(d-h||1)}static normalizeRect(e){const r=e.slice(0);return e[0]>e[2]&&(r[0]=e[2],r[2]=e[0]),e[1]>e[3]&&(r[1]=e[3],r[3]=e[1]),r}static intersect(e,r){const n=Math.max(Math.min(e[0],e[2]),Math.min(r[0],r[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(r[0],r[2]));if(n>i)return null;const a=Math.max(Math.min(e[1],e[3]),Math.min(r[1],r[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(r[1],r[3]));return a>s?null:[n,a,i,s]}static pointBoundingBox(e,r,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],r),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],r)}static rectBoundingBox(e,r,n,i,a){a[0]=Math.min(a[0],e,n),a[1]=Math.min(a[1],r,i),a[2]=Math.max(a[2],e,n),a[3]=Math.max(a[3],r,i)}static#e(e,r,n,i,a,s,o,l,u,d){if(u<=0||u>=1)return;const h=1-u,f=u*u,p=f*u,g=h*(h*(h*e+3*u*r)+3*f*n)+p*i,m=h*(h*(h*a+3*u*s)+3*f*o)+p*l;d[0]=Math.min(d[0],g),d[1]=Math.min(d[1],m),d[2]=Math.max(d[2],g),d[3]=Math.max(d[3],m)}static#t(e,r,n,i,a,s,o,l,u,d,h,f){if(Math.abs(u)<1e-12){Math.abs(d)>=1e-12&&this.#e(e,r,n,i,a,s,o,l,-h/d,f);return}const p=d**2-4*h*u;if(p<0)return;const g=Math.sqrt(p),m=2*u;this.#e(e,r,n,i,a,s,o,l,(-d+g)/m,f),this.#e(e,r,n,i,a,s,o,l,(-d-g)/m,f)}static bezierBoundingBox(e,r,n,i,a,s,o,l,u){u[0]=Math.min(u[0],e,o),u[1]=Math.min(u[1],r,l),u[2]=Math.max(u[2],e,o),u[3]=Math.max(u[3],r,l),this.#t(e,n,a,o,r,i,s,l,3*(-e+3*(n-a)+o),6*(e-2*n+a),3*(n-e),u),this.#t(e,n,a,o,r,i,s,l,3*(-r+3*(i-s)+l),6*(r-2*i+s),3*(i-r),u)}}function W5t(t){return decodeURIComponent(escape(t))}let _W=null,XEe=null;function K5t(t){return _W||(_W=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,XEe=new Map([["ﬅ","ſt"]])),t.replaceAll(_W,(e,r,n)=>r?r.normalize("NFKC"):XEe.get(n))}function HMe(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const t=new Uint8Array(32);return crypto.getRandomValues(t),VMe(t)}const Hoe="pdfjs_internal_id_";function j5t(t,e,r){if(!Array.isArray(r)||r.length<2)return!1;const[n,i,...a]=r;if(!t(n)&&!Number.isInteger(n)||!e(i))return!1;const s=a.length;let o=!0;switch(i.name){case"XYZ":if(s<2||s>3)return!1;break;case"Fit":case"FitB":return s===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(s>1)return!1;break;case"FitR":if(s!==4)return!1;o=!1;break;default:return!1}for(const l of a)if(!(typeof l=="number"||o&&l===null))return!1;return!0}function jc(t,e,r){return Math.min(Math.max(t,e),r)}function YMe(t){return Uint8Array.prototype.toBase64?t.toBase64():btoa(VMe(t))}function X5t(t){return Uint8Array.fromBase64?Uint8Array.fromBase64(t):v5(atob(t))}typeof Promise.try!="function"&&(Promise.try=function(t,...e){return new Promise(r=>{r(t(...e))})});typeof Math.sumPrecise!="function"&&(Math.sumPrecise=function(t){return t.reduce((e,r)=>e+r,0)});const um="http://www.w3.org/2000/svg";class sA{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}async function y5(t,e="text"){if(vI(t,document.baseURI)){const r=await fetch(t);if(!r.ok)throw new Error(r.statusText);switch(e){case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();case"json":return r.json()}return r.text()}return new Promise((r,n)=>{const i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType=e,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(e){case"arraybuffer":case"blob":case"json":r(i.response);return}r(i.responseText);return}n(new Error(i.statusText))}},i.send(null)})}class b5{constructor({viewBox:e,userUnit:r,scale:n,rotation:i,offsetX:a=0,offsetY:s=0,dontFlip:o=!1}){this.viewBox=e,this.userUnit=r,this.scale=n,this.rotation=i,this.offsetX=a,this.offsetY=s,n*=r;const l=(e[2]+e[0])/2,u=(e[3]+e[1])/2;let d,h,f,p;switch(i%=360,i<0&&(i+=360),i){case 180:d=-1,h=0,f=0,p=1;break;case 90:d=0,h=1,f=1,p=0;break;case 270:d=0,h=-1,f=-1,p=0;break;case 0:d=1,h=0,f=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(f=-f,p=-p);let g,m,_,v;d===0?(g=Math.abs(u-e[1])*n+a,m=Math.abs(l-e[0])*n+s,_=(e[3]-e[1])*n,v=(e[2]-e[0])*n):(g=Math.abs(l-e[0])*n+a,m=Math.abs(u-e[1])*n+s,_=(e[2]-e[0])*n,v=(e[3]-e[1])*n),this.transform=[d*n,h*n,f*n,p*n,g-d*n*l-f*n*u,m-h*n*l-p*n*u],this.width=_,this.height=v}get rawDims(){const e=this.viewBox;return qi(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:r=this.rotation,offsetX:n=this.offsetX,offsetY:i=this.offsetY,dontFlip:a=!1}={}){return new b5({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:r,offsetX:n,offsetY:i,dontFlip:a})}convertToViewportPoint(e,r){const n=[e,r];return $n.applyTransform(n,this.transform),n}convertToViewportRectangle(e){const r=[e[0],e[1]];$n.applyTransform(r,this.transform);const n=[e[2],e[3]];return $n.applyTransform(n,this.transform),[r[0],r[1],n[0],n[1]]}convertToPdfPoint(e,r){const n=[e,r];return $n.applyInverseTransform(n,this.transform),n}}class Yoe extends sE{constructor(e,r=0){super(e,"RenderingCancelledException"),this.extraDelay=r}}function WB(t){const e=t.length;let r=0;for(;r<e&&t[r].trim()==="";)r++;return t.substring(r,r+5).toLowerCase()==="data:"}function Woe(t){return typeof t=="string"&&/\.pdf$/i.test(t)}function Q5t(t){return[t]=t.split(/[#?]/,1),t.substring(t.lastIndexOf("/")+1)}function Z5t(t,e="document.pdf"){if(typeof t!="string")return e;if(WB(t))return _i('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;const n=(o=>{try{return new URL(o)}catch{try{return new URL(decodeURIComponent(o))}catch{try{return new URL(o,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(o),"https://foo.bar")}catch{return null}}}}})(t);if(!n)return e;const i=o=>{try{let l=decodeURIComponent(o);return l.includes("/")?(l=l.split("/").at(-1),l.test(/^\.pdf$/i)?l:o):l}catch{return o}},a=/\.pdf$/i,s=n.pathname.split("/").at(-1);if(a.test(s))return i(s);if(n.searchParams.size>0){const o=Array.from(n.searchParams.values()).reverse();for(const u of o)if(a.test(u))return i(u);const l=Array.from(n.searchParams.keys()).reverse();for(const u of l)if(a.test(u))return i(u)}if(n.hash){const l=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(n.hash);if(l)return i(l[0])}return e}class QEe{started=Object.create(null);times=[];time(e){e in this.started&&_i(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||_i(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let r=0;for(const{name:n}of this.times)r=Math.max(n.length,r);for(const{name:n,start:i,end:a}of this.times)e.push(`${n.padEnd(r)} ${a-i}ms
`);return e.join("")}}function vI(t,e){const r=e?URL.parse(t,e):URL.parse(t);return r?.protocol==="http:"||r?.protocol==="https:"}function Gh(t){t.preventDefault()}function Bo(t){t.preventDefault(),t.stopPropagation()}function J5t(t){console.log("Deprecated API usage: "+t)}class jZ{static#e;static toDateObject(e){if(e instanceof Date)return e;if(!e||typeof e!="string")return null;this.#e||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const r=this.#e.exec(e);if(!r)return null;const n=parseInt(r[1],10);let i=parseInt(r[2],10);i=i>=1&&i<=12?i-1:0;let a=parseInt(r[3],10);a=a>=1&&a<=31?a:1;let s=parseInt(r[4],10);s=s>=0&&s<=23?s:0;let o=parseInt(r[5],10);o=o>=0&&o<=59?o:0;let l=parseInt(r[6],10);l=l>=0&&l<=59?l:0;const u=r[7]||"Z";let d=parseInt(r[8],10);d=d>=0&&d<=23?d:0;let h=parseInt(r[9],10)||0;return h=h>=0&&h<=59?h:0,u==="-"?(s+=d,o+=h):u==="+"&&(s-=d,o-=h),new Date(Date.UTC(n,i,a,s,o,l))}}function eDt(t,{scale:e=1,rotation:r=0}){const{width:n,height:i}=t.attributes.style,a=[0,0,parseInt(n),parseInt(i)];return new b5({viewBox:a,userUnit:1,scale:e,rotation:r})}function KB(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(e=>parseInt(e)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(_i(`Not a valid color format: "${t}"`),[0,0,0])}function tDt(t){const e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(const r of t.keys()){e.style.color=r;const n=window.getComputedStyle(e).color;t.set(r,KB(n))}e.remove()}function Gs(t){const{a:e,b:r,c:n,d:i,e:a,f:s}=t.getTransform();return[e,r,n,i,a,s]}function mp(t){const{a:e,b:r,c:n,d:i,e:a,f:s}=t.getTransform().invertSelf();return[e,r,n,i,a,s]}function Cb(t,e,r=!1,n=!0){if(e instanceof b5){const{pageWidth:i,pageHeight:a}=e.rawDims,{style:s}=t,o=ec.isCSSRoundSupported,l=`var(--total-scale-factor) * ${i}px`,u=`var(--total-scale-factor) * ${a}px`,d=o?`round(down, ${l}, var(--scale-round-x))`:`calc(${l})`,h=o?`round(down, ${u}, var(--scale-round-y))`:`calc(${u})`;!r||e.rotation%180===0?(s.width=d,s.height=h):(s.width=h,s.height=d)}n&&t.setAttribute("data-main-rotation",e.rotation)}class gg{constructor(){const{pixelRatio:e}=gg;this.sx=e,this.sy=e}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(e,r,n,i,a=-1){let s=1/0,o=1/0,l=1/0;n=gg.capPixels(n,a),n>0&&(s=Math.sqrt(n/(e*r))),i!==-1&&(o=i/e,l=i/r);const u=Math.min(s,o,l);return this.sx>u||this.sy>u?(this.sx=u,this.sy=u,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,r){if(r>=0){const n=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+r/100));return e>0?Math.min(e,n):n}return e}}const XZ=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];class uN{#e=null;#t=null;#r;#n=null;#i=null;#a=null;#s=null;static#o=null;constructor(e){this.#r=e,uN.#o||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"})}render(){const e=this.#e=document.createElement("div");e.classList.add("editToolbar","hidden"),e.setAttribute("role","toolbar");const r=this.#r._uiManager._signal;e.addEventListener("contextmenu",Gh,{signal:r}),e.addEventListener("pointerdown",uN.#c,{signal:r});const n=this.#n=document.createElement("div");n.className="buttons",e.append(n);const i=this.#r.toolbarPosition;if(i){const{style:a}=e,s=this.#r._uiManager.direction==="ltr"?1-i[0]:i[0];a.insetInlineEnd=`${100*s}%`,a.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return e}get div(){return this.#e}static#c(e){e.stopPropagation()}#l(e){this.#r._focusEventsAllowed=!1,Bo(e)}#d(e){this.#r._focusEventsAllowed=!0,Bo(e)}#u(e){const r=this.#r._uiManager._signal;e.addEventListener("focusin",this.#l.bind(this),{capture:!0,signal:r}),e.addEventListener("focusout",this.#d.bind(this),{capture:!0,signal:r}),e.addEventListener("contextmenu",Gh,{signal:r})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden"),this.#i?.shown(),this.#a?.shown()}addDeleteButton(){const{editorType:e,_uiManager:r}=this.#r,n=document.createElement("button");n.className="delete",n.tabIndex=0,n.setAttribute("data-l10n-id",uN.#o[e]),this.#u(n),n.addEventListener("click",i=>{r.delete()},{signal:r._signal}),this.#n.append(n)}get#p(){const e=document.createElement("div");return e.className="divider",e}async addAltText(e){const r=await e.render();this.#u(r),this.#n.append(r,this.#p),this.#i=e}addComment(e){if(this.#a)return;const r=e.render();r&&(this.#u(r),this.#n.prepend(r,this.#p),this.#a=e,e.toolbar=this)}addColorPicker(e){if(this.#t)return;this.#t=e;const r=e.renderButton();this.#u(r),this.#n.append(r,this.#p)}async addEditSignatureButton(e){const r=this.#s=await e.renderEditButton(this.#r);this.#u(r),this.#n.append(r,this.#p)}async addButton(e,r){switch(e){case"colorPicker":this.addColorPicker(r);break;case"altText":await this.addAltText(r);break;case"editSignature":await this.addEditSignatureButton(r);break;case"delete":this.addDeleteButton();break;case"comment":this.addComment(r);break}}updateEditSignatureButton(e){this.#s&&(this.#s.title=e)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class rDt{#e=null;#t=null;#r;constructor(e){this.#r=e}#n(){const e=this.#t=document.createElement("div");e.className="editToolbar",e.setAttribute("role","toolbar"),e.addEventListener("contextmenu",Gh,{signal:this.#r._signal});const r=this.#e=document.createElement("div");return r.className="buttons",e.append(r),this.#a(),e}#i(e,r){let n=0,i=0;for(const a of e){const s=a.y+a.height;if(s<n)continue;const o=a.x+(r?a.width:0);if(s>n){i=o,n=s;continue}r?o>i&&(i=o):o<i&&(i=o)}return[r?1-i:i,n]}show(e,r,n){const[i,a]=this.#i(r,n),{style:s}=this.#t||=this.#n();e.append(this.#t),s.insetInlineEnd=`${100*i}%`,s.top=`calc(${100*a}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#a(){const e=document.createElement("button");e.className="highlightButton",e.tabIndex=0,e.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const r=document.createElement("span");e.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const n=this.#r._signal;e.addEventListener("contextmenu",Gh,{signal:n}),e.addEventListener("click",()=>{this.#r.highlightSelection("floating_button")},{signal:n}),this.#e.append(e)}}function WMe(t,e,r){for(const n of r)e.addEventListener(n,t[n].bind(t))}class nDt{#e=0;get id(){return`${GMe}${this.#e++}`}}class Koe{#e=HMe();#t=0;#r=null;static get _isSVGFittingCanvas(){const e='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image;i.src=e;const a=i.decode().then(()=>(n.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return qi(this,"_isSVGFittingCanvas",a)}async#n(e,r){this.#r||=new Map;let n=this.#r.get(e);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let i;if(typeof r=="string"?(n.url=r,i=await y5(r,"blob")):r instanceof File?i=n.file=r:r instanceof Blob&&(i=r),i.type==="image/svg+xml"){const a=Koe._isSVGFittingCanvas,s=new FileReader,o=new Image,l=new Promise((u,d)=>{o.onload=()=>{n.bitmap=o,n.isSvg=!0,u()},s.onload=async()=>{const h=n.svgUrl=s.result;o.src=await a?`${h}#svgView(preserveAspectRatio(none))`:h},o.onerror=s.onerror=d});s.readAsDataURL(i),await l}else n.bitmap=await createImageBitmap(i);n.refCounter=1}catch(i){_i(i),n=null}return this.#r.set(e,n),n&&this.#r.set(n.id,n),n}async getFromFile(e){const{lastModified:r,name:n,size:i,type:a}=e;return this.#n(`${r}_${n}_${i}_${a}`,e)}async getFromUrl(e){return this.#n(e,e)}async getFromBlob(e,r){const n=await r;return this.#n(e,n)}async getFromId(e){this.#r||=new Map;const r=this.#r.get(e);if(!r)return null;if(r.bitmap)return r.refCounter+=1,r;if(r.file)return this.getFromFile(r.file);if(r.blobPromise){const{blobPromise:n}=r;return delete r.blobPromise,this.getFromBlob(r.id,n)}return this.getFromUrl(r.url)}getFromCanvas(e,r){this.#r||=new Map;let n=this.#r.get(e);if(n?.bitmap)return n.refCounter+=1,n;const i=new OffscreenCanvas(r.width,r.height);return i.getContext("2d").drawImage(r,0,0),n={bitmap:i.transferToImageBitmap(),id:`image_${this.#e}_${this.#t++}`,refCounter:1,isSvg:!1},this.#r.set(e,n),this.#r.set(n.id,n),n}getSvgUrl(e){const r=this.#r.get(e);return r?.isSvg?r.svgUrl:null}deleteId(e){this.#r||=new Map;const r=this.#r.get(e);if(!r||(r.refCounter-=1,r.refCounter!==0))return;const{bitmap:n}=r;if(!r.url&&!r.file){const i=new OffscreenCanvas(n.width,n.height);i.getContext("bitmaprenderer").transferFromImageBitmap(n),r.blobPromise=i.convertToBlob()}n.close?.(),r.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#e}_`)}}class iDt{#e=[];#t=!1;#r;#n=-1;constructor(e=128){this.#r=e}add({cmd:e,undo:r,post:n,mustExec:i,type:a=NaN,overwriteIfSameType:s=!1,keepUndo:o=!1}){if(i&&e(),this.#t)return;const l={cmd:e,undo:r,post:n,type:a};if(this.#n===-1){this.#e.length>0&&(this.#e.length=0),this.#n=0,this.#e.push(l);return}if(s&&this.#e[this.#n].type===a){o&&(l.undo=this.#e[this.#n].undo),this.#e[this.#n]=l;return}const u=this.#n+1;u===this.#r?this.#e.splice(0,1):(this.#n=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(l)}undo(){if(this.#n===-1)return;this.#t=!0;const{undo:e,post:r}=this.#e[this.#n];e(),r?.(),this.#t=!1,this.#n-=1}redo(){if(this.#n<this.#e.length-1){this.#n+=1,this.#t=!0;const{cmd:e,post:r}=this.#e[this.#n];e(),r?.(),this.#t=!1}}hasSomethingToUndo(){return this.#n!==-1}hasSomethingToRedo(){return this.#n<this.#e.length-1}cleanType(e){if(this.#n!==-1){for(let r=this.#n;r>=0;r--)if(this.#e[r].type!==e){this.#e.splice(r+1,this.#n-r),this.#n=r;return}this.#e.length=0,this.#n=-1}}destroy(){this.#e=null}}class E5{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:r}=ec.platform;for(const[n,i,a={}]of e)for(const s of n){const o=s.startsWith("mac+");r&&o?(this.callbacks.set(s.slice(4),{callback:i,options:a}),this.allKeys.add(s.split("+").at(-1))):!r&&!o&&(this.callbacks.set(s,{callback:i,options:a}),this.allKeys.add(s.split("+").at(-1)))}}#e(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const r=this.buffer.join("+");return this.buffer.length=0,r}exec(e,r){if(!this.allKeys.has(r.key))return;const n=this.callbacks.get(this.#e(r));if(!n)return;const{callback:i,options:{bubbles:a=!1,args:s=[],checker:o=null}}=n;o&&!o(e,r)||(i.bind(e,...s,r)(),a||Bo(r))}}class joe{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return tDt(e),qi(this,"_colors",e)}convert(e){const r=KB(e);if(!window.matchMedia("(forced-colors: active)").matches)return r;for(const[n,i]of this._colors)if(i.every((a,s)=>a===r[s]))return joe._colorsMapping.get(n);return r}getHexCode(e){const r=this._colors.get(e);return r?$n.makeHexColor(...r):e}}class c1{#e=new AbortController;#t=null;#r=new Map;#n=new Map;#i=null;#a=null;#s=null;#o=new iDt;#c=null;#l=null;#d=null;#u=0;#p=new Set;#g=null;#f=null;#h=new Set;_editorUndoBar=null;#m=!1;#v=!1;#_=!1;#b=null;#E=null;#y=null;#S=null;#T=!1;#C=null;#I=new nDt;#O=!1;#R=!1;#A=null;#k=null;#F=null;#D=null;#G=null;#x=mi.NONE;#w=new Set;#B=null;#U=null;#z=null;#H=null;#Y={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#q=[0,0];#M=null;#L=null;#V=null;#X=null;#P=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const e=c1.prototype,r=s=>s.#L.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&s.hasSomethingToControl(),n=(s,{target:o})=>{if(o instanceof HTMLInputElement){const{type:l}=o;return l!=="text"&&l!=="number"}return!0},i=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return qi(this,"_keyboardManager",new E5([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],e.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:n}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(s,{target:o})=>!(o instanceof HTMLButtonElement)&&s.#L.contains(o)&&!s.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(s,{target:o})=>!(o instanceof HTMLButtonElement)&&s.#L.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-a,0],checker:r}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[a,0],checker:r}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-a],checker:r}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,a],checker:r}]]))}constructor(e,r,n,i,a,s,o,l,u,d,h,f,p,g,m,_){const v=this._signal=this.#e.signal;this.#L=e,this.#V=r,this.#X=n,this.#i=i,this.#c=a,this.#U=s,this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:v}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:v}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:v}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:v}),o._on("setpreference",this.onSetPreference.bind(this),{signal:v}),o._on("switchannotationeditorparams",y=>this.updateParams(y.type,y.value),{signal:v}),this.#ae(),this.#ce(),this.#Z(),this.#a=l.annotationStorage,this.#b=l.filterFactory,this.#z=u,this.#S=d||null,this.#m=h,this.#v=f,this.#_=p,this.#G=g||null,this.viewParameters={realScale:sA.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=m||null,this._supportsPinchToZoom=_!==!1}destroy(){this.#P?.resolve(),this.#P=null,this.#e?.abort(),this.#e=null,this._signal=null;for(const e of this.#n.values())e.destroy();this.#n.clear(),this.#r.clear(),this.#h.clear(),this.#D?.clear(),this.#t=null,this.#w.clear(),this.#o.destroy(),this.#i?.destroy(),this.#c?.destroy(),this.#U?.destroy(),this.#C?.hide(),this.#C=null,this.#F?.destroy(),this.#F=null,this.#E&&(clearTimeout(this.#E),this.#E=null),this.#M&&(clearTimeout(this.#M),this.#M=null),this._editorUndoBar?.destroy()}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#G}get useNewAltTextFlow(){return this.#v}get useNewAltTextWhenAddingImage(){return this.#_}get hcmFilter(){return qi(this,"hcmFilter",this.#z?this.#b.addHCMFilter(this.#z.foreground,this.#z.background):"none")}get direction(){return qi(this,"direction",getComputedStyle(this.#L).direction)}get _highlightColors(){return qi(this,"_highlightColors",this.#S?new Map(this.#S.split(",").map(e=>(e=e.split("=").map(r=>r.trim()),e[1]=e[1].toUpperCase(),e))):null)}get highlightColors(){const{_highlightColors:e}=this;if(!e)return qi(this,"highlightColors",null);const r=new Map,n=!!this.#z;for(const[i,a]of e){const s=i.endsWith("_HCM");if(n&&s){r.set(i.replace("_HCM",""),a);continue}!n&&!s&&r.set(i,a)}return qi(this,"highlightColors",r)}get highlightColorNames(){return qi(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}getNonHCMColor(e){if(!this._highlightColors)return e;const r=this.highlightColorNames.get(e);return this._highlightColors.get(r)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#d=e}setMainHighlightColorPicker(e){this.#F=e}editAltText(e,r=!1){this.#i?.editAltText(this,e,r)}hasCommentManager(){return!!this.#c}editComment(e,r){this.#c?.open(this,e,r)}getSignature(e){this.#U?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#U}switchToMode(e,r){this._eventBus.on("annotationeditormodechanged",r,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,r){this._eventBus.dispatch("setpreference",{source:this,name:e,value:r})}onSetPreference({name:e,value:r}){e==="enableNewAltTextWhenAddingImage"&&(this.#_=r)}onPageChanging({pageNumber:e}){this.#u=e-1}focusMainContainer(){this.#L.focus()}findParent(e,r){for(const n of this.#n.values()){const{x:i,y:a,width:s,height:o}=n.div.getBoundingClientRect();if(e>=i&&e<=i+s&&r>=a&&r<=a+o)return n}return null}disableUserSelect(e=!1){this.#V.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#h.add(e)}removeShouldRescale(e){this.#h.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*sA.PDF_TO_CSS_UNITS;for(const r of this.#h)r.onScaleChanging();this.#d?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#K({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#Q(e){const{currentLayer:r}=this;if(r.hasTextLayer(e))return r;for(const n of this.#n.values())if(n.hasTextLayer(e))return n;return null}highlightSelection(e=""){const r=document.getSelection();if(!r||r.isCollapsed)return;const{anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:s}=r,o=r.toString(),u=this.#K(r).closest(".textLayer"),d=this.getSelectionBoxes(u);if(!d)return;r.empty();const h=this.#Q(u),f=this.#x===mi.NONE,p=()=>{h?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:d,anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:s,text:o}),f&&this.showAllEditors("highlight",!0,!0)};if(f){this.switchToMode(mi.HIGHLIGHT,p);return}p()}#ne(){const e=document.getSelection();if(!e||e.isCollapsed)return;const n=this.#K(e).closest(".textLayer"),i=this.getSelectionBoxes(n);i&&(this.#C||=new rDt(this),this.#C.show(n,i,this.direction==="ltr"))}addToAnnotationStorage(e){!e.isEmpty()&&this.#a&&!this.#a.has(e.id)&&this.#a.setValue(e.id,e)}a11yAlert(e,r=null){const n=this.#X;n&&(n.setAttribute("data-l10n-id",e),r?n.setAttribute("data-l10n-args",JSON.stringify(r)):n.removeAttribute("data-l10n-args"))}#ie(){const e=document.getSelection();if(!e||e.isCollapsed){this.#B&&(this.#C?.hide(),this.#B=null,this.#N({hasSelectedText:!1}));return}const{anchorNode:r}=e;if(r===this.#B)return;const i=this.#K(e).closest(".textLayer");if(!i){this.#B&&(this.#C?.hide(),this.#B=null,this.#N({hasSelectedText:!1}));return}if(this.#C?.hide(),this.#B=r,this.#N({hasSelectedText:!0}),!(this.#x!==mi.HIGHLIGHT&&this.#x!==mi.NONE)&&(this.#x===mi.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#T=this.isShiftKeyDown,!this.isShiftKeyDown)){const a=this.#x===mi.HIGHLIGHT?this.#Q(i):null;a?.toggleDrawing();const s=new AbortController,o=this.combinedSignal(s),l=u=>{u.type==="pointerup"&&u.button!==0||(s.abort(),a?.toggleDrawing(!0),u.type==="pointerup"&&this.#j("main_toolbar"))};window.addEventListener("pointerup",l,{signal:o}),window.addEventListener("blur",l,{signal:o})}}#j(e=""){this.#x===mi.HIGHLIGHT?this.highlightSelection(e):this.#m&&this.#ne()}#ae(){document.addEventListener("selectionchange",this.#ie.bind(this),{signal:this._signal})}#se(){if(this.#y)return;this.#y=new AbortController;const e=this.combinedSignal(this.#y);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#oe(){this.#y?.abort(),this.#y=null}blur(){if(this.isShiftKeyDown=!1,this.#T&&(this.#T=!1,this.#j("main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const r of this.#w)if(r.div.contains(e)){this.#k=[r,e],r._focusEventsAllowed=!1;break}}focus(){if(!this.#k)return;const[e,r]=this.#k;this.#k=null,r.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),r.focus()}#Z(){if(this.#A)return;this.#A=new AbortController;const e=this.combinedSignal(this.#A);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#le(){this.#A?.abort(),this.#A=null}#J(){if(this.#l)return;this.#l=new AbortController;const e=this.combinedSignal(this.#l);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#ee(){this.#l?.abort(),this.#l=null}#ce(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#Z(),this.#J()}removeEditListeners(){this.#le(),this.#ee()}dragOver(e){for(const{type:r}of e.dataTransfer.items)for(const n of this.#f)if(n.isHandlingMimeForPasting(r)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(const r of e.dataTransfer.items)for(const n of this.#f)if(n.isHandlingMimeForPasting(r.type)){n.paste(r,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const r=[];for(const n of this.#w){const i=n.serialize(!0);i&&r.push(i)}r.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(r))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();const{clipboardData:r}=e;for(const a of r.items)for(const s of this.#f)if(s.isHandlingMimeForPasting(a.type)){s.paste(a,this.currentLayer);return}let n=r.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(a){_i(`paste: "${a.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();const i=this.currentLayer;try{const a=[];for(const l of n){const u=await i.deserialize(l);if(!u)return;a.push(u)}const s=()=>{for(const l of a)this.#te(l);this.#re(a)},o=()=>{for(const l of a)l.remove()};this.addCommands({cmd:s,undo:o,mustExec:!0})}catch(a){_i(`paste: "${a.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),this.#x!==mi.NONE&&!this.isEditorHandlingKeyboard&&c1._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,this.#T&&(this.#T=!1,this.#j("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#N(e){Object.entries(e).some(([n,i])=>this.#Y[n]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Y,e)}),this.#x===mi.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#$([[aa.HIGHLIGHT_FREE,!0]]))}#$(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#se(),this.#J(),this.#N({isEditing:this.#x!==mi.NONE,isEmpty:this.#W(),hasSomethingToUndo:this.#o.hasSomethingToUndo(),hasSomethingToRedo:this.#o.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#oe(),this.#ee(),this.#N({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#f){this.#f=e;for(const r of this.#f)this.#$(r.defaultPropertiesToUpdate)}}getId(){return this.#I.id}get currentLayer(){return this.#n.get(this.#u)}getLayer(e){return this.#n.get(e)}get currentPageIndex(){return this.#u}addLayer(e){this.#n.set(e.pageIndex,e),this.#O?e.enable():e.disable()}removeLayer(e){this.#n.delete(e.pageIndex)}async updateMode(e,r=null,n=!1,i=!1,a=!1){if(this.#x!==e&&!(this.#P&&(await this.#P.promise,!this.#P))){if(this.#P=Promise.withResolvers(),this.#d?.commitOrRemove(),this.#x=e,e===mi.NONE){this.setEditingState(!1),this.#de(),this._editorUndoBar?.hide(),this.#P.resolve();return}e===mi.SIGNATURE&&await this.#U?.loadSignatures(),this.setEditingState(!0),await this.#ue(),this.unselectAll();for(const s of this.#n.values())s.updateMode(e);if(!r){n&&this.addNewEditorFromKeyboard(),this.#P.resolve();return}for(const s of this.#r.values())s.annotationElementId===r||s.id===r?(this.setSelected(s),a?s.editComment():i&&s.enterInEditMode()):s.unselect();this.#P.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#x&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...e})}updateParams(e,r){if(this.#f){switch(e){case aa.CREATE:this.currentLayer.addNewEditor(r);return;case aa.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#H||=new Map).set(e,r),this.showAllEditors("highlight",r);break}if(this.hasSelection)for(const n of this.#w)n.updateParams(e,r);else for(const n of this.#f)n.updateDefaultParams(e,r)}}showAllEditors(e,r,n=!1){for(const a of this.#r.values())a.editorType===e&&a.show(r);(this.#H?.get(aa.HIGHLIGHT_SHOW_ALL)??!0)!==r&&this.#$([[aa.HIGHLIGHT_SHOW_ALL,r]])}enableWaiting(e=!1){if(this.#R!==e){this.#R=e;for(const r of this.#n.values())e?r.disableClick():r.enableClick(),r.div.classList.toggle("waiting",e)}}async#ue(){if(!this.#O){this.#O=!0;const e=[];for(const r of this.#n.values())e.push(r.enable());await Promise.all(e);for(const r of this.#r.values())r.enable()}}#de(){if(this.unselectAll(),this.#O){this.#O=!1;for(const e of this.#n.values())e.disable();for(const e of this.#r.values())e.disable()}}getEditors(e){const r=[];for(const n of this.#r.values())n.pageIndex===e&&r.push(n);return r}getEditor(e){return this.#r.get(e)}addEditor(e){this.#r.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#E&&clearTimeout(this.#E),this.#E=setTimeout(()=>{this.focusMainContainer(),this.#E=null},0)),this.#r.delete(e.id),e.annotationElementId&&this.#D?.delete(e.annotationElementId),this.unselect(e),(!e.annotationElementId||!this.#p.has(e.annotationElementId))&&this.#a?.remove(e.id)}addDeletedAnnotationElement(e){this.#p.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#p.has(e)}removeDeletedAnnotationElement(e){this.#p.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#te(e){const r=this.#n.get(e.pageIndex);r?r.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#t!==e&&(this.#t=e,e&&this.#$(e.propertiesToUpdate))}get#he(){let e=null;for(e of this.#w);return e}updateUI(e){this.#he===e&&this.#$(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#$(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#w.has(e)){this.#w.delete(e),e.unselect(),this.#N({hasSelectedEditor:this.hasSelection});return}this.#w.add(e),e.select(),this.#$(e.propertiesToUpdate),this.#N({hasSelectedEditor:!0})}setSelected(e){this.updateToolbar({mode:e.mode,editId:e.id}),this.#d?.commitOrRemove();for(const r of this.#w)r!==e&&r.unselect();this.#w.clear(),this.#w.add(e),e.select(),this.#$(e.propertiesToUpdate),this.#N({hasSelectedEditor:!0})}isSelected(e){return this.#w.has(e)}get firstSelectedEditor(){return this.#w.values().next().value}unselect(e){e.unselect(),this.#w.delete(e),this.#N({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#w.size!==0}get isEnterHandled(){return this.#w.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#o.undo(),this.#N({hasSomethingToUndo:this.#o.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#W()}),this._editorUndoBar?.hide()}redo(){this.#o.redo(),this.#N({hasSomethingToUndo:!0,hasSomethingToRedo:this.#o.hasSomethingToRedo(),isEmpty:this.#W()})}addCommands(e){this.#o.add(e),this.#N({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#W()})}cleanUndoStack(e){this.#o.cleanType(e)}#W(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(const e of this.#r.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();const e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;const r=e?[e]:[...this.#w],n=()=>{this._editorUndoBar?.show(i,r.length===1?r[0].editorType:r.length);for(const a of r)a.remove()},i=()=>{for(const a of r)this.#te(a)};this.addCommands({cmd:n,undo:i,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#re(e){for(const r of this.#w)r.unselect();this.#w.clear();for(const r of e)r.isEmpty()||(this.#w.add(r),r.select());this.#N({hasSelectedEditor:this.hasSelection})}selectAll(){for(const e of this.#w)e.commit();this.#re(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#x!==mi.NONE))&&!this.#d?.commitOrRemove()&&this.hasSelection){for(const e of this.#w)e.unselect();this.#w.clear(),this.#N({hasSelectedEditor:!1})}}translateSelectedEditors(e,r,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#q[0]+=e,this.#q[1]+=r;const[i,a]=this.#q,s=[...this.#w],o=1e3;this.#M&&clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#M=null,this.#q[0]=this.#q[1]=0,this.addCommands({cmd:()=>{for(const l of s)this.#r.has(l.id)&&(l.translateInPage(i,a),l.translationDone())},undo:()=>{for(const l of s)this.#r.has(l.id)&&(l.translateInPage(-i,-a),l.translationDone())},mustExec:!1})},o);for(const l of s)l.translateInPage(e,r),l.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#g=new Map;for(const e of this.#w)this.#g.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#g)return!1;this.disableUserSelect(!1);const e=this.#g;this.#g=null;let r=!1;for(const[{x:i,y:a,pageIndex:s},o]of e)o.newX=i,o.newY=a,o.newPageIndex=s,r||=i!==o.savedX||a!==o.savedY||s!==o.savedPageIndex;if(!r)return!1;const n=(i,a,s,o)=>{if(this.#r.has(i.id)){const l=this.#n.get(o);l?i._setParentAndPosition(l,a,s):(i.pageIndex=o,i.x=a,i.y=s)}};return this.addCommands({cmd:()=>{for(const[i,{newX:a,newY:s,newPageIndex:o}]of e)n(i,a,s,o)},undo:()=>{for(const[i,{savedX:a,savedY:s,savedPageIndex:o}]of e)n(i,a,s,o)},mustExec:!0}),!0}dragSelectedEditors(e,r){if(this.#g)for(const n of this.#g.keys())n.drag(e,r)}rebuild(e){if(e.parent===null){const r=this.getLayer(e.pageIndex);r?(r.changeParent(e),r.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#w.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#t===e}getActive(){return this.#t}getMode(){return this.#x}get imageManager(){return qi(this,"imageManager",new Koe)}getSelectionBoxes(e){if(!e)return null;const r=document.getSelection();for(let u=0,d=r.rangeCount;u<d;u++)if(!e.contains(r.getRangeAt(u).commonAncestorContainer))return null;const{x:n,y:i,width:a,height:s}=e.getBoundingClientRect();let o;switch(e.getAttribute("data-main-rotation")){case"90":o=(u,d,h,f)=>({x:(d-i)/s,y:1-(u+h-n)/a,width:f/s,height:h/a});break;case"180":o=(u,d,h,f)=>({x:1-(u+h-n)/a,y:1-(d+f-i)/s,width:h/a,height:f/s});break;case"270":o=(u,d,h,f)=>({x:1-(d+f-i)/s,y:(u-n)/a,width:f/s,height:h/a});break;default:o=(u,d,h,f)=>({x:(u-n)/a,y:(d-i)/s,width:h/a,height:f/s});break}const l=[];for(let u=0,d=r.rangeCount;u<d;u++){const h=r.getRangeAt(u);if(!h.collapsed)for(const{x:f,y:p,width:g,height:m}of h.getClientRects())g===0||m===0||l.push(o(f,p,g,m))}return l.length===0?null:l}addChangedExistingAnnotation({annotationElementId:e,id:r}){(this.#s||=new Map).set(e,r)}removeChangedExistingAnnotation({annotationElementId:e}){this.#s?.delete(e)}renderAnnotationElement(e){const r=this.#s?.get(e.data.id);if(!r)return;const n=this.#a.getRawValue(r);n&&(this.#x===mi.NONE&&!n.hasBeenModified||n.renderAnnotationElement(e))}setMissingCanvas(e,r,n){const i=this.#D?.get(e);i&&(i.setCanvas(r,n),this.#D.delete(e))}addMissingCanvas(e,r){(this.#D||=new Map).set(e,r)}}class Dp{#e=null;#t=!1;#r=null;#n=null;#i=null;#a=null;#s=!1;#o=null;#c=null;#l=null;#d=null;#u=!1;static#p=null;static _l10n=null;constructor(e){this.#c=e,this.#u=e._uiManager.useNewAltTextFlow,Dp.#p||=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"})}static initialize(e){Dp._l10n??=e}async render(){const e=this.#r=document.createElement("button");e.className="altText",e.tabIndex="0";const r=this.#n=document.createElement("span");e.append(r),this.#u?(e.classList.add("new"),e.setAttribute("data-l10n-id",Dp.#p.missing),r.setAttribute("data-l10n-id",Dp.#p["missing-label"])):(e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),r.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const n=this.#c._uiManager._signal;e.addEventListener("contextmenu",Gh,{signal:n}),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:n});const i=a=>{a.preventDefault(),this.#c._uiManager.editAltText(this.#c),this.#u&&this.#c._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#g}})};return e.addEventListener("click",i,{capture:!0,signal:n}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(this.#s=!0,i(a))},{signal:n}),await this.#f(),e}get#g(){return this.#e&&"added"||this.#e===null&&this.guessedText&&"review"||"missing"}finish(){this.#r&&(this.#r.focus({focusVisible:this.#s}),this.#s=!1)}isEmpty(){return this.#u?this.#e===null:!this.#e&&!this.#t}hasData(){return this.#u?this.#e!==null||!!this.#l:this.isEmpty()}get guessedText(){return this.#l}async setGuessedText(e){this.#e===null&&(this.#l=e,this.#d=await Dp._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),this.#f())}toggleAltTextBadge(e=!1){if(!this.#u||this.#e){this.#o?.remove(),this.#o=null;return}if(!this.#o){const r=this.#o=document.createElement("div");r.className="noAltTextBadge",this.#c.div.append(r)}this.#o.classList.toggle("hidden",!e)}serialize(e){let r=this.#e;return!e&&this.#l===r&&(r=this.#d),{altText:r,decorative:this.#t,guessedText:this.#l,textWithDisclaimer:this.#d}}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:e,decorative:r,guessedText:n,textWithDisclaimer:i,cancel:a=!1}){n&&(this.#l=n,this.#d=i),!(this.#e===e&&this.#t===r)&&(a||(this.#e=e,this.#t=r),this.#f())}toggle(e=!1){this.#r&&(!e&&this.#a&&(clearTimeout(this.#a),this.#a=null),this.#r.disabled=!e)}shown(){this.#c._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#g}})}destroy(){this.#r?.remove(),this.#r=null,this.#n=null,this.#i=null,this.#o?.remove(),this.#o=null}async#f(){const e=this.#r;if(!e)return;if(this.#u){if(e.classList.toggle("done",!!this.#e),e.setAttribute("data-l10n-id",Dp.#p[this.#g]),this.#n?.setAttribute("data-l10n-id",Dp.#p[`${this.#g}-label`]),!this.#e){this.#i?.remove();return}}else{if(!this.#e&&!this.#t){e.classList.remove("done"),this.#i?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let r=this.#i;if(!r){this.#i=r=document.createElement("span"),r.className="tooltip",r.setAttribute("role","tooltip"),r.id=`alt-text-tooltip-${this.#c.id}`;const i=100,a=this.#c._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#a),this.#a=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#a=setTimeout(()=>{this.#a=null,this.#i.classList.add("show"),this.#c._reportTelemetry({action:"alt_text_tooltip"})},i)},{signal:a}),e.addEventListener("mouseleave",()=>{this.#a&&(clearTimeout(this.#a),this.#a=null),this.#i?.classList.remove("show")},{signal:a})}this.#t?r.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(r.removeAttribute("data-l10n-id"),r.textContent=this.#e),r.parentNode||e.append(r),this.#c.getElementForAltText()?.setAttribute("aria-describedby",r.id)}}let YM=class{#e=null;#t=!1;#r=null;#n=null;#i=null;#a=null;#s=!1;constructor(e){this.#r=e,this.toolbar=null}render(){if(!this.#r._uiManager.hasCommentManager())return null;const e=this.#e=document.createElement("button");e.className="comment",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-edit-comment-button");const r=this.#r._uiManager._signal;e.addEventListener("contextmenu",Gh,{signal:r}),e.addEventListener("pointerdown",i=>i.stopPropagation(),{signal:r});const n=i=>{i.preventDefault(),this.edit()};return e.addEventListener("click",n,{capture:!0,signal:r}),e.addEventListener("keydown",i=>{i.target===e&&i.key==="Enter"&&(this.#t=!0,n(i))},{signal:r}),e}edit(){const{bottom:e,left:r,right:n}=this.#r.getClientDimensions(),i={top:e};this.#r._uiManager.direction==="ltr"?i.right=n:i.left=r,this.#r._uiManager.editComment(this.#r,i)}finish(){this.#e&&(this.#e.focus({focusVisible:this.#t}),this.#t=!1)}isDeleted(){return this.#s||this.#i===""}hasBeenEdited(){return this.isDeleted()||this.#i!==this.#n}serialize(){return this.data}get data(){return{text:this.#i,date:this.#a,deleted:this.#s}}set data(e){if(e===null){this.#i="",this.#s=!0;return}this.#i=e,this.#a=new Date,this.#s=!1}setInitialText(e){this.#n=e,this.data=e}toggle(e=!1){this.#e&&(this.#e.disabled=!e)}shown(){}destroy(){this.#e?.remove(),this.#e=null,this.#i="",this.#a=null,this.#r=null,this.#t=!1,this.#s=!1}};class jB{#e;#t=!1;#r=null;#n;#i;#a;#s;#o=null;#c;#l=null;#d;#u=null;constructor({container:e,isPinchingDisabled:r=null,isPinchingStopped:n=null,onPinchStart:i=null,onPinching:a=null,onPinchEnd:s=null,signal:o}){this.#e=e,this.#r=n,this.#n=r,this.#i=i,this.#a=a,this.#s=s,this.#d=new AbortController,this.#c=AbortSignal.any([o,this.#d.signal]),e.addEventListener("touchstart",this.#p.bind(this),{passive:!1,signal:this.#c})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/gg.pixelRatio}#p(e){if(this.#n?.())return;if(e.touches.length===1){if(this.#o)return;const i=this.#o=new AbortController,a=AbortSignal.any([this.#c,i.signal]),s=this.#e,o={capture:!0,signal:a,passive:!1},l=u=>{u.pointerType==="touch"&&(this.#o?.abort(),this.#o=null)};s.addEventListener("pointerdown",u=>{u.pointerType==="touch"&&(Bo(u),l(u))},o),s.addEventListener("pointerup",l,o),s.addEventListener("pointercancel",l,o);return}if(!this.#u){this.#u=new AbortController;const i=AbortSignal.any([this.#c,this.#u.signal]),a=this.#e,s={signal:i,capture:!1,passive:!1};a.addEventListener("touchmove",this.#g.bind(this),s);const o=this.#f.bind(this);a.addEventListener("touchend",o,s),a.addEventListener("touchcancel",o,s),s.capture=!0,a.addEventListener("pointerdown",Bo,s),a.addEventListener("pointermove",Bo,s),a.addEventListener("pointercancel",Bo,s),a.addEventListener("pointerup",Bo,s),this.#i?.()}if(Bo(e),e.touches.length!==2||this.#r?.()){this.#l=null;return}let[r,n]=e.touches;r.identifier>n.identifier&&([r,n]=[n,r]),this.#l={touch0X:r.screenX,touch0Y:r.screenY,touch1X:n.screenX,touch1Y:n.screenY}}#g(e){if(!this.#l||e.touches.length!==2)return;Bo(e);let[r,n]=e.touches;r.identifier>n.identifier&&([r,n]=[n,r]);const{screenX:i,screenY:a}=r,{screenX:s,screenY:o}=n,l=this.#l,{touch0X:u,touch0Y:d,touch1X:h,touch1Y:f}=l,p=h-u,g=f-d,m=s-i,_=o-a,v=Math.hypot(m,_)||1,y=Math.hypot(p,g)||1;if(!this.#t&&Math.abs(y-v)<=jB.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=i,l.touch0Y=a,l.touch1X=s,l.touch1Y=o,!this.#t){this.#t=!0;return}const b=[(i+s)/2,(a+o)/2];this.#a?.(b,y,v)}#f(e){e.touches.length>=2||(this.#u&&(this.#u.abort(),this.#u=null,this.#s?.()),this.#l&&(Bo(e),this.#l=null,this.#t=!1))}destroy(){this.#d?.abort(),this.#d=null,this.#o?.abort(),this.#o=null}}class qn{#e=null;#t=null;#r=null;#n=null;#i=!1;#a=null;#s="";#o=!1;#c=null;#l=null;#d=null;#u=null;#p="";#g=!1;#f=null;#h=!1;#m=!1;#v=!1;#_=null;#b=0;#E=0;#y=null;#S=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#T=!1;#C=qn._zIndex++;static _borderLineWidth=-1;static _colorManager=new joe;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const e=qn.prototype._resizeWithKeyboard,r=c1.TRANSLATE_SMALL,n=c1.TRANSLATE_BIG;return qi(this,"_resizerKeyboardManager",new E5([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-r,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[r,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-r]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,r]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,n]}],[["Escape","mac+Escape"],qn.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null;const{rotation:r,rawDims:{pageWidth:n,pageHeight:i,pageX:a,pageY:s}}=this.parent.viewport;this.rotation=r,this.pageRotation=(360+r-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[a,s];const[o,l]=this.parentDimensions;this.x=e.x/o,this.y=e.y/l,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return qi(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const r=new aDt({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});r.annotationElementId=e.annotationElementId,r.deleted=!0,r._uiManager.addToAnnotationStorage(r)}static initialize(e,r){if(qn._l10n??=e,qn._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),qn._borderLineWidth!==-1)return;const n=getComputedStyle(document.documentElement);qn._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,r){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,r){Wa("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#T}set _isDraggable(e){this.#T=e,this.div?.classList.toggle("draggable",e)}get isEnterHandled(){return!0}center(){const[e,r]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*r/(e*2),this.y+=this.width*e/(r*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*r/(e*2),this.y-=this.width*e/(r*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#C}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):this.#V(),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#g?this.#g=!1:this.parent.setSelected(this))}focusout(e){!this._focusEventsAllowed||!this.isAttachedToDOM||e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,r,n,i){const[a,s]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(e+n)/a,this.y=(r+i)/s,this.fixAndSetPosition()}_moveAfterPaste(e,r){const[n,i]=this.parentDimensions;this.setAt(e*n,r*i,this.width*n,this.height*i),this._onTranslated()}#I([e,r],n,i){[n,i]=this.screenToPageTranslation(n,i),this.x+=n/e,this.y+=i/r,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,r){this.#I(this.parentDimensions,e,r)}translateInPage(e,r){this.#f||=[this.x,this.y,this.width,this.height],this.#I(this.pageDimensions,e,r),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,r){this.#f||=[this.x,this.y,this.width,this.height];const{div:n,parentDimensions:[i,a]}=this;if(this.x+=e/i,this.y+=r/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:h,y:f}=this.div.getBoundingClientRect();this.parent.findNewParent(this,h,f)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:s,y:o}=this;const[l,u]=this.getBaseTranslation();s+=l,o+=u;const{style:d}=n;d.left=`${(100*s).toFixed(2)}%`,d.top=`${(100*o).toFixed(2)}%`,this._onTranslating(s,o),n.scrollIntoView({block:"nearest"})}_onTranslating(e,r){}_onTranslated(e,r){}get _hasBeenMoved(){return!!this.#f&&(this.#f[0]!==this.x||this.#f[1]!==this.y)}get _hasBeenResized(){return!!this.#f&&(this.#f[2]!==this.width||this.#f[3]!==this.height)}getBaseTranslation(){const[e,r]=this.parentDimensions,{_borderLineWidth:n}=qn,i=n/e,a=n/r;switch(this.rotation){case 90:return[-i,a];case 180:return[i,a];case 270:return[i,-a];default:return[-i,-a]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){const{div:{style:r},pageDimensions:[n,i]}=this;let{x:a,y:s,width:o,height:l}=this;if(o*=n,l*=i,a*=n,s*=i,this._mustFixPosition)switch(e){case 0:a=jc(a,0,n-o),s=jc(s,0,i-l);break;case 90:a=jc(a,0,n-l),s=jc(s,o,i);break;case 180:a=jc(a,o,n),s=jc(s,l,i);break;case 270:a=jc(a,l,n),s=jc(s,0,i-o);break}this.x=a/=n,this.y=s/=i;const[u,d]=this.getBaseTranslation();a+=u,s+=d,r.left=`${(100*a).toFixed(2)}%`,r.top=`${(100*s).toFixed(2)}%`,this.moveInDOM()}static#O(e,r,n){switch(n){case 90:return[r,-e];case 180:return[-e,-r];case 270:return[-r,e];default:return[e,r]}}screenToPageTranslation(e,r){return qn.#O(e,r,this.parentRotation)}pageTranslationToScreen(e,r){return qn.#O(e,r,360-this.parentRotation)}#R(e){switch(e){case 90:{const[r,n]=this.pageDimensions;return[0,-r/n,n/r,0]}case 180:return[-1,0,0,-1];case 270:{const[r,n]=this.pageDimensions;return[0,r/n,-n/r,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[r,n]}=this;return[r*e,n*e]}setDims(e,r){const[n,i]=this.parentDimensions,{style:a}=this.div;a.width=`${(100*e/n).toFixed(2)}%`,this.#o||(a.height=`${(100*r/i).toFixed(2)}%`)}fixDims(){const{style:e}=this.div,{height:r,width:n}=e,i=n.endsWith("%"),a=!this.#o&&r.endsWith("%");if(i&&a)return;const[s,o]=this.parentDimensions;i||(e.width=`${(100*parseFloat(n)/s).toFixed(2)}%`),!this.#o&&!a&&(e.height=`${(100*parseFloat(r)/o).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#A(){if(this.#c)return;this.#c=document.createElement("div"),this.#c.classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],r=this._uiManager._signal;for(const n of e){const i=document.createElement("div");this.#c.append(i),i.classList.add("resizer",n),i.setAttribute("data-resizer-name",n),i.addEventListener("pointerdown",this.#k.bind(this,n),{signal:r}),i.addEventListener("contextmenu",Gh,{signal:r}),i.tabIndex=-1}this.div.prepend(this.#c)}#k(e,r){r.preventDefault();const{isMac:n}=ec.platform;if(r.button!==0||r.ctrlKey&&n)return;this.#r?.toggle(!1);const i=this._isDraggable;this._isDraggable=!1,this.#l=[r.screenX,r.screenY];const a=new AbortController,s=this._uiManager.combinedSignal(a);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#G.bind(this,e),{passive:!0,capture:!0,signal:s}),window.addEventListener("touchmove",Bo,{passive:!1,signal:s}),window.addEventListener("contextmenu",Gh,{signal:s}),this.#d={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const o=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(r.target).cursor;const u=()=>{a.abort(),this.parent.togglePointerEvents(!0),this.#r?.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=o,this.div.style.cursor=l,this.#D()};window.addEventListener("pointerup",u,{signal:s}),window.addEventListener("blur",u,{signal:s})}#F(e,r,n,i){this.width=n,this.height=i,this.x=e,this.y=r;const[a,s]=this.parentDimensions;this.setDims(a*n,s*i),this.fixAndSetPosition(),this._onResized()}_onResized(){}#D(){if(!this.#d)return;const{savedX:e,savedY:r,savedWidth:n,savedHeight:i}=this.#d;this.#d=null;const a=this.x,s=this.y,o=this.width,l=this.height;a===e&&s===r&&o===n&&l===i||this.addCommands({cmd:this.#F.bind(this,a,s,o,l),undo:this.#F.bind(this,e,r,n,i),mustExec:!0})}static _round(e){return Math.round(e*1e4)/1e4}#G(e,r){const[n,i]=this.parentDimensions,a=this.x,s=this.y,o=this.width,l=this.height,u=qn.MIN_SIZE/n,d=qn.MIN_SIZE/i,h=this.#R(this.rotation),f=(M,P)=>[h[0]*M+h[2]*P,h[1]*M+h[3]*P],p=this.#R(360-this.rotation),g=(M,P)=>[p[0]*M+p[2]*P,p[1]*M+p[3]*P];let m,_,v=!1,y=!1;switch(e){case"topLeft":v=!0,m=(M,P)=>[0,0],_=(M,P)=>[M,P];break;case"topMiddle":m=(M,P)=>[M/2,0],_=(M,P)=>[M/2,P];break;case"topRight":v=!0,m=(M,P)=>[M,0],_=(M,P)=>[0,P];break;case"middleRight":y=!0,m=(M,P)=>[M,P/2],_=(M,P)=>[0,P/2];break;case"bottomRight":v=!0,m=(M,P)=>[M,P],_=(M,P)=>[0,0];break;case"bottomMiddle":m=(M,P)=>[M/2,P],_=(M,P)=>[M/2,0];break;case"bottomLeft":v=!0,m=(M,P)=>[0,P],_=(M,P)=>[M,0];break;case"middleLeft":y=!0,m=(M,P)=>[0,P/2],_=(M,P)=>[M,P/2];break}const b=m(o,l),E=_(o,l);let S=f(...E);const T=qn._round(a+S[0]),C=qn._round(s+S[1]);let x=1,A=1,R,I;if(r.fromKeyboard)({deltaX:R,deltaY:I}=r);else{const{screenX:M,screenY:P}=r,[N,$]=this.#l;[R,I]=this.screenToPageTranslation(M-N,P-$),this.#l[0]=M,this.#l[1]=P}if([R,I]=g(R/n,I/i),v){const M=Math.hypot(o,l);x=A=Math.max(Math.min(Math.hypot(E[0]-b[0]-R,E[1]-b[1]-I)/M,1/o,1/l),u/o,d/l)}else y?x=jc(Math.abs(E[0]-b[0]-R),u,1)/o:A=jc(Math.abs(E[1]-b[1]-I),d,1)/l;const L=qn._round(o*x),F=qn._round(l*A);S=f(..._(L,F));const O=T-S[0],D=C-S[1];this.#f||=[this.x,this.y,this.width,this.height],this.width=L,this.height=F,this.x=O,this.y=D,this.setDims(n*L,i*F),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#r?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#m)return this._editToolbar;this._editToolbar=new uN(this),this.div.append(this._editToolbar.render()),this._editToolbar.addButton("comment",this.addCommentButton());const{toolbarButtons:e}=this;if(e)for(const[r,n]of e)await this._editToolbar.addButton(r,n);return this._editToolbar.addButton("delete"),this._editToolbar}removeEditToolbar(){this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,this.#r?.destroy())}addContainer(e){const r=this._editToolbar?.div;r?r.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#r||(Dp.initialize(qn._l10n),this.#r=new Dp(this),this.#e&&(this.#r.data=this.#e,this.#e=null)),this.#r}get altTextData(){return this.#r?.data}set altTextData(e){this.#r&&(this.#r.data=e)}get guessedAltText(){return this.#r?.guessedText}async setGuessedAltText(e){await this.#r?.setGuessedText(e)}serializeAltText(e){return this.#r?.serialize(e)}hasAltText(){return!!this.#r&&!this.#r.isEmpty()}hasAltTextData(){return this.#r?.hasData()??!1}addCommentButton(){return this.#n?this.#n:this.#n=new YM(this)}get commentColor(){return null}get comment(){const e=this.#n;return{text:e.data.text,date:e.data.date,deleted:e.isDeleted(),color:this.commentColor}}set comment(e){this.#n||(this.#n=new YM(this)),this.#n.data=e}setCommentData(e){this.#n||(this.#n=new YM(this)),this.#n.setInitialText(e)}get hasEditedComment(){return this.#n?.hasBeenEdited()}async editComment(){this.#n||(this.#n=new YM(this)),this.#n.edit()}addComment(e){this.hasEditedComment&&(e.popup={contents:this.comment.text,deleted:this.comment.deleted})}render(){const e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=this.#i?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),this.#H();const[r,n]=this.parentDimensions;this.parentRotation%180!==0&&(e.style.maxWidth=`${(100*n/r).toFixed(2)}%`,e.style.maxHeight=`${(100*r/n).toFixed(2)}%`);const[i,a]=this.getInitialTranslation();return this.translate(i,a),WMe(this,e,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#S||=new jB({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#x.bind(this),onPinching:this.#w.bind(this),onPinchEnd:this.#B.bind(this),signal:this._uiManager._signal})),this._uiManager._editorUndoBar?.hide(),e}#x(){this.#d={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#r?.toggle(!1),this.parent.togglePointerEvents(!1)}#w(e,r,n){let a=.7*(n/r)+1-.7;if(a===1)return;const s=this.#R(this.rotation),o=(T,C)=>[s[0]*T+s[2]*C,s[1]*T+s[3]*C],[l,u]=this.parentDimensions,d=this.x,h=this.y,f=this.width,p=this.height,g=qn.MIN_SIZE/l,m=qn.MIN_SIZE/u;a=Math.max(Math.min(a,1/f,1/p),g/f,m/p);const _=qn._round(f*a),v=qn._round(p*a);if(_===f&&v===p)return;this.#f||=[d,h,f,p];const y=o(f/2,p/2),b=qn._round(d+y[0]),E=qn._round(h+y[1]),S=o(_/2,v/2);this.x=b-S[0],this.y=E-S[1],this.width=_,this.height=v,this.setDims(l*_,u*v),this.fixAndSetPosition(),this._onResizing()}#B(){this.#r?.toggle(!0),this.parent.togglePointerEvents(!0),this.#D()}pointerdown(e){const{isMac:r}=ec.platform;if(e.button!==0||e.ctrlKey&&r){e.preventDefault();return}if(this.#g=!0,this._isDraggable){this.#z(e);return}this.#U(e)}#U(e){const{isMac:r}=ec.platform;e.ctrlKey&&!r||e.shiftKey||e.metaKey&&r?this.parent.toggleSelected(this):this.parent.setSelected(this)}#z(e){const{isSelected:r}=this;this._uiManager.setUpDragSession();let n=!1;const i=new AbortController,a=this._uiManager.combinedSignal(i),s={capture:!0,passive:!1,signal:a},o=u=>{i.abort(),this.#a=null,this.#g=!1,this._uiManager.endDragSession()||this.#U(u),n&&this._onStopDragging()};r&&(this.#b=e.clientX,this.#E=e.clientY,this.#a=e.pointerId,this.#s=e.pointerType,window.addEventListener("pointermove",u=>{n||(n=!0,this._onStartDragging());const{clientX:d,clientY:h,pointerId:f}=u;if(f!==this.#a){Bo(u);return}const[p,g]=this.screenToPageTranslation(d-this.#b,h-this.#E);this.#b=d,this.#E=h,this._uiManager.dragSelectedEditors(p,g)},s),window.addEventListener("touchmove",Bo,s),window.addEventListener("pointerdown",u=>{u.pointerType===this.#s&&(this.#S||u.isPrimary)&&o(u),Bo(u)},s));const l=u=>{if(!this.#a||this.#a===u.pointerId){o(u);return}Bo(u)};window.addEventListener("pointerup",l,{signal:a}),window.addEventListener("blur",l,{signal:a})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#_&&clearTimeout(this.#_),this.#_=setTimeout(()=>{this.#_=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,r,n){e.changeParent(this),this.x=r,this.y=n,this.fixAndSetPosition(),this._onTranslated()}getRect(e,r,n=this.rotation){const i=this.parentScale,[a,s]=this.pageDimensions,[o,l]=this.pageTranslation,u=e/i,d=r/i,h=this.x*a,f=this.y*s,p=this.width*a,g=this.height*s;switch(n){case 0:return[h+u+o,s-f-d-g+l,h+u+p+o,s-f-d+l];case 90:return[h+d+o,s-f+u+l,h+d+g+o,s-f+u+p+l];case 180:return[h-u-p+o,s-f+d+l,h-u+o,s-f+d+g+l];case 270:return[h-d-g+o,s-f-u-p+l,h-d+o,s-f-u+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,r){const[n,i,a,s]=e,o=a-n,l=s-i;switch(this.rotation){case 0:return[n,r-s,o,l];case 90:return[n,r-i,l,o];case 180:return[a,r-i,o,l];case 270:return[a,r-s,l,o];default:throw new Error("Invalid rotation")}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),this.#m=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#m=!1,!0):!1}isInEditMode(){return this.#m}shouldGetKeyboardEvents(){return this.#v}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:e,left:r,bottom:n,right:i}=this.getClientDimensions(),{innerHeight:a,innerWidth:s}=window;return r<s&&i>0&&e<a&&n>0}#H(){if(this.#u||!this.div)return;this.#u=new AbortController;const e=this._uiManager.combinedSignal(this.#u);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}rebuild(){this.#H()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(e=!1,r=null){Wa("An editor must be serializable")}static async deserialize(e,r,n){const i=new this.prototype.constructor({parent:r,id:r.getNextId(),uiManager:n,annotationElementId:e.annotationElementId});i.rotation=e.rotation,i.#e=e.accessibilityData,i._isCopy=e.isCopy||!1;const[a,s]=i.pageDimensions,[o,l,u,d]=i.getRectInCurrentCoords(e.rect,s);return i.x=o/a,i.y=l/s,i.width=u/a,i.height=d/s,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#u?.abort(),this.#u=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#_&&(clearTimeout(this.#_),this.#_=null),this.#V(),this.removeEditToolbar(),this.#y){for(const e of this.#y.values())clearTimeout(e);this.#y=null}this.parent=null,this.#S?.destroy(),this.#S=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#A(),this.#c.classList.remove("hidden"))}get toolbarPosition(){return null}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),this.#d={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const r=this.#c.children;if(!this.#t){this.#t=Array.from(r);const s=this.#Y.bind(this),o=this.#q.bind(this),l=this._uiManager._signal;for(const u of this.#t){const d=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",s,{signal:l}),u.addEventListener("blur",o,{signal:l}),u.addEventListener("focus",this.#M.bind(this,d),{signal:l}),u.setAttribute("data-l10n-id",qn._l10nResizer[d])}}const n=this.#t[0];let i=0;for(const s of r){if(s===n)break;i++}const a=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(a!==i){if(a<i)for(let o=0;o<i-a;o++)this.#c.append(this.#c.firstChild);else if(a>i)for(let o=0;o<a-i;o++)this.#c.firstChild.before(this.#c.lastChild);let s=0;for(const o of r){const u=this.#t[s++].getAttribute("data-resizer-name");o.setAttribute("data-l10n-id",qn._l10nResizer[u])}}this.#L(0),this.#v=!0,this.#c.firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}#Y(e){qn._resizerKeyboardManager.exec(this,e)}#q(e){this.#v&&e.relatedTarget?.parentNode!==this.#c&&this.#V()}#M(e){this.#p=this.#v?e:""}#L(e){if(this.#t)for(const r of this.#t)r.tabIndex=e}_resizeWithKeyboard(e,r){this.#v&&this.#G(this.#p,{deltaX:e,deltaY:r,fromKeyboard:!0})}#V(){this.#v=!1,this.#L(-1),this.#D()}_stopResizingWithKeyboard(){this.#V(),this.div.focus()}select(){if(!(this.isSelected&&this._editToolbar)){if(this.isSelected=!0,this.makeResizable(),this.div?.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()});return}this._editToolbar?.show(),this.#r?.toggleAltTextBadge(!1)}}unselect(){this.isSelected&&(this.isSelected=!1,this.#c?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#r?.toggleAltTextBadge(!0))}updateParams(e,r){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.id})}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#h}set isEditing(e){this.#h=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,r){this.#o=!0;const n=e/r,{style:i}=this.div;i.aspectRatio=n,i.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,r=!1){if(r){this.#y||=new Map;const{action:n}=e;let i=this.#y.get(n);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(e),this.#y.delete(n),this.#y.size===0&&(this.#y=null)},qn._telemetryTimeout),this.#y.set(n,i);return}e.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#i=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#i=!0}renderAnnotationElement(e){let r=e.container.querySelector(".annotationContent");if(!r)r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),e.container.prepend(r);else if(r.nodeName==="CANVAS"){const n=r;r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),n.before(r)}return r}resetAnnotationElement(e){const{firstChild:r}=e.container;r?.nodeName==="DIV"&&r.classList.contains("annotationContent")&&r.remove()}}class aDt extends qn{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const ZEe=3285377520,hh=4294901760,_p=65535;class KMe{constructor(e){this.h1=e?e&4294967295:ZEe,this.h2=e?e&4294967295:ZEe}update(e){let r,n;if(typeof e=="string"){r=new Uint8Array(e.length*2),n=0;for(let m=0,_=e.length;m<_;m++){const v=e.charCodeAt(m);v<=255?r[n++]=v:(r[n++]=v>>>8,r[n++]=v&255)}}else if(ArrayBuffer.isView(e))r=e.slice(),n=r.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const i=n>>2,a=n-i*4,s=new Uint32Array(r.buffer,0,i);let o=0,l=0,u=this.h1,d=this.h2;const h=3432918353,f=461845907,p=h&_p,g=f&_p;for(let m=0;m<i;m++)m&1?(o=s[m],o=o*h&hh|o*p&_p,o=o<<15|o>>>17,o=o*f&hh|o*g&_p,u^=o,u=u<<13|u>>>19,u=u*5+3864292196):(l=s[m],l=l*h&hh|l*p&_p,l=l<<15|l>>>17,l=l*f&hh|l*g&_p,d^=l,d=d<<13|d>>>19,d=d*5+3864292196);switch(o=0,a){case 3:o^=r[i*4+2]<<16;case 2:o^=r[i*4+1]<<8;case 1:o^=r[i*4],o=o*h&hh|o*p&_p,o=o<<15|o>>>17,o=o*f&hh|o*g&_p,i&1?u^=o:d^=o}this.h1=u,this.h2=d}hexdigest(){let e=this.h1,r=this.h2;return e^=r>>>1,e=e*3981806797&hh|e*36045&_p,r=r*4283543511&hh|((r<<16|e>>>16)*2950163797&hh)>>>16,e^=r>>>1,e=e*444984403&hh|e*60499&_p,r=r*3301882366&hh|((r<<16|e>>>16)*3120437893&hh)>>>16,e^=r>>>1,(e>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}const QZ=Object.freeze({map:null,hash:"",transfer:void 0});class Xoe{#e=!1;#t=null;#r=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,r){const n=this.#r.get(e);return n===void 0?r:Object.assign(r,n)}getRawValue(e){return this.#r.get(e)}remove(e){if(this.#r.delete(e),this.#r.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const r of this.#r.values())if(r instanceof qn)return;this.onAnnotationEditor(null)}}setValue(e,r){const n=this.#r.get(e);let i=!1;if(n!==void 0)for(const[a,s]of Object.entries(r))n[a]!==s&&(i=!0,n[a]=s);else i=!0,this.#r.set(e,r);i&&this.#n(),r instanceof qn&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(r.constructor._type)}has(e){return this.#r.has(e)}get size(){return this.#r.size}#n(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new jMe(this)}get serializable(){if(this.#r.size===0)return QZ;const e=new Map,r=new KMe,n=[],i=Object.create(null);let a=!1;for(const[s,o]of this.#r){const l=o instanceof qn?o.serialize(!1,i):o;l&&(e.set(s,l),r.update(`${s}:${JSON.stringify(l)}`),a||=!!l.bitmap)}if(a)for(const s of e.values())s.bitmap&&n.push(s.bitmap);return e.size>0?{map:e,hash:r.hexdigest(),transfer:n}:QZ}get editorStats(){let e=null;const r=new Map;for(const n of this.#r.values()){if(!(n instanceof qn))continue;const i=n.telemetryFinalData;if(!i)continue;const{type:a}=i;r.has(a)||r.set(a,Object.getPrototypeOf(n).constructor),e||=Object.create(null);const s=e[a]||=new Map;for(const[o,l]of Object.entries(i)){if(o==="type")continue;let u=s.get(o);u||(u=new Map,s.set(o,u));const d=u.get(l)??0;u.set(l,d+1)}}for(const[n,i]of r)e[n]=i.computeTelemetryFinalData(e[n]);return e}resetModifiedIds(){this.#t=null}get modifiedIds(){if(this.#t)return this.#t;const e=[];for(const r of this.#r.values())!(r instanceof qn)||!r.annotationElementId||!r.serialize()||e.push(r.annotationElementId);return this.#t={ids:new Set(e),hash:e.join(",")}}[Symbol.iterator](){return this.#r.entries()}}class jMe extends Xoe{#e;constructor(e){super();const{map:r,hash:n,transfer:i}=e.serializable,a=structuredClone(r,i?{transfer:i}:null);this.#e={map:a,hash:n,transfer:i}}get print(){Wa("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}get modifiedIds(){return qi(this,"modifiedIds",{ids:new Set,hash:""})}}class sDt{#e=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:r=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const r=this.styleElement.sheet;r.insertRule(e,r.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,disableFontFace:r,_inspectFont:n}){if(!(!e||this.#e.has(e.loadedName))){if(Go(!r,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:i,src:a,style:s}=e,o=new FontFace(i,a,s);this.addNativeFontFace(o);try{await o.load(),this.#e.add(i),n?.(e)}catch{_i(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(o)}return}Wa("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){const n=e.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(i){throw _i(`Failed to load font '${n.family}': '${i}'.`),e.disableFontFace=!0,i}}return}const r=e.createFontFaceRule();if(r){if(this.insertRule(r),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const i=this._queueLoadingCallback(n);this._prepareFontLoadEvent(e,i)})}}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return qi(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){return qi(this,"isSyncFontLoadingSupported",Kc||ec.platform.isFirefox)}_queueLoadingCallback(e){function r(){for(Go(!i.done,"completeRequest() cannot be called twice."),i.done=!0;n.length>0&&n[0].done;){const a=n.shift();setTimeout(a.callback,0)}}const{loadingRequests:n}=this,i={done:!1,complete:r,callback:e};return n.push(i),i}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return qi(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,r){function n(E,S){return E.charCodeAt(S)<<24|E.charCodeAt(S+1)<<16|E.charCodeAt(S+2)<<8|E.charCodeAt(S+3)&255}function i(E,S,T,C){const x=E.substring(0,S),A=E.substring(S+T);return x+C+A}let a,s;const o=this._document.createElement("canvas");o.width=1,o.height=1;const l=o.getContext("2d");let u=0;function d(E,S){if(++u>30){_i("Load test font never loaded."),S();return}if(l.font="30px "+E,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){S();return}setTimeout(d.bind(null,E,S))}const h=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=i(f,976,h.length,h);const g=16,m=1482184792;let _=n(f,g);for(a=0,s=h.length-3;a<s;a+=4)_=_-m+n(h,a)|0;a<h.length&&(_=_-m+n(h+"XXX",a)|0),f=i(f,g,4,V5t(_));const v=`url(data:font/opentype;base64,${btoa(f)});`,y=`@font-face {font-family:"${h}";src:${v}}`;this.insertRule(y);const b=this._document.createElement("div");b.style.visibility="hidden",b.style.width=b.style.height="10px",b.style.position="absolute",b.style.top=b.style.left="0px";for(const E of[e.loadedName,h]){const S=this._document.createElement("span");S.textContent="Hi",S.style.fontFamily=E,b.append(S)}this._document.body.append(b),d(h,()=>{b.remove(),r.complete()})}}class oDt{constructor(e,r=null){this.compiledGlyphs=Object.create(null);for(const n in e)this[n]=e[n];this._inspectFont=r}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,this.data,{});else{const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=`url(data:${this.mimetype};base64,${YMe(this.data)});`;let r;if(!this.cssFontInfo)r=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let n=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(n+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),r=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${n}src:${e}}`}return this._inspectFont?.(this,e),r}getPathGenerator(e,r){if(this.compiledGlyphs[r]!==void 0)return this.compiledGlyphs[r];const n=this.loadedName+"_path_"+r;let i;try{i=e.get(n)}catch(s){_i(`getPathGenerator - ignoring character: "${s}".`)}const a=new Path2D(i||"");return this.fontExtraProperties||e.delete(n),this.compiledGlyphs[r]=a}}function lDt(t){if(t instanceof URL)return t.href;if(typeof t=="string"){if(Kc)return t;const e=URL.parse(t,window.location);if(e)return e.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function cDt(t){if(Kc&&typeof Buffer<"u"&&t instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(typeof t=="string")return v5(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||typeof t=="object"&&!isNaN(t?.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function WM(t){if(typeof t!="string")return null;if(t.endsWith("/"))return t;throw new Error(`Invalid factory url: "${t}" must include trailing slash.`)}const ZZ=t=>typeof t=="object"&&Number.isInteger(t?.num)&&t.num>=0&&Number.isInteger(t?.gen)&&t.gen>=0,uDt=t=>typeof t=="object"&&typeof t?.name=="string",dDt=j5t.bind(null,ZZ,uDt);class hDt{#e=new Map;#t=Promise.resolve();postMessage(e,r){const n={data:structuredClone(e,r?{transfer:r}:null)};this.#t.then(()=>{for(const[i]of this.#e)i.call(this,n)})}addEventListener(e,r,n=null){let i=null;if(n?.signal instanceof AbortSignal){const{signal:a}=n;if(a.aborted){_i("LoopbackPort - cannot use an `aborted` signal.");return}const s=()=>this.removeEventListener(e,r);i=()=>a.removeEventListener("abort",s),a.addEventListener("abort",s)}this.#e.set(r,i)}removeEventListener(e,r){this.#e.get(r)?.(),this.#e.delete(r)}terminate(){for(const[,e]of this.#e)e?.();this.#e.clear()}}const KM={DATA:1,ERROR:2},Mo={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function JEe(){}function Lu(t){if(t instanceof l1||t instanceof KZ||t instanceof jEe||t instanceof n7||t instanceof gW)return t;switch(t instanceof Error||typeof t=="object"&&t!==null||Wa('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new l1(t.message);case"InvalidPDFException":return new KZ(t.message);case"PasswordException":return new jEe(t.message,t.code);case"ResponseException":return new n7(t.message,t.status,t.missing);case"UnknownErrorException":return new gW(t.message,t.details)}return new gW(t.message,t.toString())}class yI{#e=new AbortController;constructor(e,r,n){this.sourceName=e,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),n.addEventListener("message",this.#t.bind(this),{signal:this.#e.signal})}#t({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#n(e);return}if(e.callback){const n=e.callbackId,i=this.callbackCapabilities[n];if(!i)throw new Error(`Cannot resolve callback ${n}`);if(delete this.callbackCapabilities[n],e.callback===KM.DATA)i.resolve(e.data);else if(e.callback===KM.ERROR)i.reject(Lu(e.reason));else throw new Error("Unexpected callback case");return}const r=this.actionHandler[e.action];if(!r)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const n=this.sourceName,i=e.sourceName,a=this.comObj;Promise.try(r,e.data).then(function(s){a.postMessage({sourceName:n,targetName:i,callback:KM.DATA,callbackId:e.callbackId,data:s})},function(s){a.postMessage({sourceName:n,targetName:i,callback:KM.ERROR,callbackId:e.callbackId,reason:Lu(s)})});return}if(e.streamId){this.#r(e);return}r(e.data)}on(e,r){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=r}send(e,r,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:r},n)}sendWithPromise(e,r,n){const i=this.callbackId++,a=Promise.withResolvers();this.callbackCapabilities[i]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:r},n)}catch(s){a.reject(s)}return a.promise}sendWithStream(e,r,n,i){const a=this.streamId++,s=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:u=>{const d=Promise.withResolvers();return this.streamControllers[a]={controller:u,startCall:d,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:s,targetName:o,action:e,streamId:a,data:r,desiredSize:u.desiredSize},i),d.promise},pull:u=>{const d=Promise.withResolvers();return this.streamControllers[a].pullCall=d,l.postMessage({sourceName:s,targetName:o,stream:Mo.PULL,streamId:a,desiredSize:u.desiredSize}),d.promise},cancel:u=>{Go(u instanceof Error,"cancel must have a valid reason");const d=Promise.withResolvers();return this.streamControllers[a].cancelCall=d,this.streamControllers[a].isClosed=!0,l.postMessage({sourceName:s,targetName:o,stream:Mo.CANCEL,streamId:a,reason:Lu(u)}),d.promise}},n)}#r(e){const r=e.streamId,n=this.sourceName,i=e.sourceName,a=this.comObj,s=this,o=this.actionHandler[e.action],l={enqueue(u,d=1,h){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=d,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),a.postMessage({sourceName:n,targetName:i,stream:Mo.ENQUEUE,streamId:r,chunk:u},h)},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:i,stream:Mo.CLOSE,streamId:r}),delete s.streamSinks[r])},error(u){Go(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:i,stream:Mo.ERROR,streamId:r,reason:Lu(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[r]=l,Promise.try(o,e.data,l).then(function(){a.postMessage({sourceName:n,targetName:i,stream:Mo.START_COMPLETE,streamId:r,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:Mo.START_COMPLETE,streamId:r,reason:Lu(u)})})}#n(e){const r=e.streamId,n=this.sourceName,i=e.sourceName,a=this.comObj,s=this.streamControllers[r],o=this.streamSinks[r];switch(e.stream){case Mo.START_COMPLETE:e.success?s.startCall.resolve():s.startCall.reject(Lu(e.reason));break;case Mo.PULL_COMPLETE:e.success?s.pullCall.resolve():s.pullCall.reject(Lu(e.reason));break;case Mo.PULL:if(!o){a.postMessage({sourceName:n,targetName:i,stream:Mo.PULL_COMPLETE,streamId:r,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||JEe).then(function(){a.postMessage({sourceName:n,targetName:i,stream:Mo.PULL_COMPLETE,streamId:r,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:Mo.PULL_COMPLETE,streamId:r,reason:Lu(u)})});break;case Mo.ENQUEUE:if(Go(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(e.chunk);break;case Mo.CLOSE:if(Go(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),this.#i(s,r);break;case Mo.ERROR:Go(s,"error should have stream controller"),s.controller.error(Lu(e.reason)),this.#i(s,r);break;case Mo.CANCEL_COMPLETE:e.success?s.cancelCall.resolve():s.cancelCall.reject(Lu(e.reason)),this.#i(s,r);break;case Mo.CANCEL:if(!o)break;const l=Lu(e.reason);Promise.try(o.onCancel||JEe,l).then(function(){a.postMessage({sourceName:n,targetName:i,stream:Mo.CANCEL_COMPLETE,streamId:r,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:Mo.CANCEL_COMPLETE,streamId:r,reason:Lu(u)})}),o.sinkCapability.reject(l),o.isCancelled=!0,delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}async#i(e,r){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[r]}destroy(){this.#e?.abort(),this.#e=null}}class XMe{#e=!1;constructor({enableHWA:e=!1}){this.#e=e}create(e,r){if(e<=0||r<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,r);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!this.#e})}}reset(e,r,n){if(!e.canvas)throw new Error("Canvas is not specified");if(r<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=r,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,r){Wa("Abstract method `_createCanvas` called.")}}class fDt extends XMe{constructor({ownerDocument:e=globalThis.document,enableHWA:r=!1}){super({enableHWA:r}),this._document=e}_createCanvas(e,r){const n=this._document.createElement("canvas");return n.width=e,n.height=r,n}}class QMe{constructor({baseUrl:e=null,isCompressed:r=!0}){this.baseUrl=e,this.isCompressed=r}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");const r=this.baseUrl+e+(this.isCompressed?".bcmap":"");return this._fetch(r).then(n=>({cMapData:n,isCompressed:this.isCompressed})).catch(n=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${r}`)})}async _fetch(e){Wa("Abstract method `_fetch` called.")}}class eSe extends QMe{async _fetch(e){const r=await y5(e,this.isCompressed?"arraybuffer":"text");return r instanceof ArrayBuffer?new Uint8Array(r):v5(r)}}class ZMe{addFilter(e){return"none"}addHCMFilter(e,r){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,r,n,i,a){return"none"}destroy(e=!1){}}class pDt extends ZMe{#e;#t;#r;#n;#i;#a;#s=0;constructor({docId:e,ownerDocument:r=globalThis.document}){super(),this.#n=e,this.#i=r}get#o(){return this.#t||=new Map}get#c(){return this.#a||=new Map}get#l(){if(!this.#r){const e=this.#i.createElement("div"),{style:r}=e;r.visibility="hidden",r.contain="strict",r.width=r.height=0,r.position="absolute",r.top=r.left=0,r.zIndex=-1;const n=this.#i.createElementNS(um,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#r=this.#i.createElementNS(um,"defs"),e.append(n),n.append(this.#r),this.#i.body.append(e)}return this.#r}#d(e){if(e.length===1){const l=e[0],u=new Array(256);for(let h=0;h<256;h++)u[h]=l[h]/255;const d=u.join(",");return[d,d,d]}const[r,n,i]=e,a=new Array(256),s=new Array(256),o=new Array(256);for(let l=0;l<256;l++)a[l]=r[l]/255,s[l]=n[l]/255,o[l]=i[l]/255;return[a.join(","),s.join(","),o.join(",")]}#u(e){if(this.#e===void 0){this.#e="";const r=this.#i.URL;r!==this.#i.baseURI&&(WB(r)?_i('#createUrl: ignore "data:"-URL for performance reasons.'):this.#e=qMe(r,""))}return`url(${this.#e}#${e})`}addFilter(e){if(!e)return"none";let r=this.#o.get(e);if(r)return r;const[n,i,a]=this.#d(e),s=e.length===1?n:`${n}${i}${a}`;if(r=this.#o.get(s),r)return this.#o.set(e,r),r;const o=`g_${this.#n}_transfer_map_${this.#s++}`,l=this.#u(o);this.#o.set(e,l),this.#o.set(s,l);const u=this.#f(o);return this.#m(n,i,a,u),l}addHCMFilter(e,r){const n=`${e}-${r}`,i="base";let a=this.#c.get(i);if(a?.key===n||(a?(a.filter?.remove(),a.key=n,a.url="none",a.filter=null):(a={key:n,url:"none",filter:null},this.#c.set(i,a)),!e||!r))return a.url;const s=this.#_(e);e=$n.makeHexColor(...s);const o=this.#_(r);if(r=$n.makeHexColor(...o),this.#l.style.color="",e==="#000000"&&r==="#ffffff"||e===r)return a.url;const l=new Array(256);for(let p=0;p<=255;p++){const g=p/255;l[p]=g<=.03928?g/12.92:((g+.055)/1.055)**2.4}const u=l.join(","),d=`g_${this.#n}_hcm_filter`,h=a.filter=this.#f(d);this.#m(u,u,u,h),this.#g(h);const f=(p,g)=>{const m=s[p]/255,_=o[p]/255,v=new Array(g+1);for(let y=0;y<=g;y++)v[y]=m+y/g*(_-m);return v.join(",")};return this.#m(f(0,5),f(1,5),f(2,5),h),a.url=this.#u(d),a.url}addAlphaFilter(e){let r=this.#o.get(e);if(r)return r;const[n]=this.#d([e]),i=`alpha_${n}`;if(r=this.#o.get(i),r)return this.#o.set(e,r),r;const a=`g_${this.#n}_alpha_map_${this.#s++}`,s=this.#u(a);this.#o.set(e,s),this.#o.set(i,s);const o=this.#f(a);return this.#v(n,o),s}addLuminosityFilter(e){let r=this.#o.get(e||"luminosity");if(r)return r;let n,i;if(e?([n]=this.#d([e]),i=`luminosity_${n}`):i="luminosity",r=this.#o.get(i),r)return this.#o.set(e,r),r;const a=`g_${this.#n}_luminosity_map_${this.#s++}`,s=this.#u(a);this.#o.set(e,s),this.#o.set(i,s);const o=this.#f(a);return this.#p(o),e&&this.#v(n,o),s}addHighlightHCMFilter(e,r,n,i,a){const s=`${r}-${n}-${i}-${a}`;let o=this.#c.get(e);if(o?.key===s||(o?(o.filter?.remove(),o.key=s,o.url="none",o.filter=null):(o={key:s,url:"none",filter:null},this.#c.set(e,o)),!r||!n))return o.url;const[l,u]=[r,n].map(this.#_.bind(this));let d=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),h=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[f,p]=[i,a].map(this.#_.bind(this));h<d&&([d,h,f,p]=[h,d,p,f]),this.#l.style.color="";const g=(v,y,b)=>{const E=new Array(256),S=(h-d)/b,T=v/255,C=(y-v)/(255*b);let x=0;for(let A=0;A<=b;A++){const R=Math.round(d+A*S),I=T+A*C;for(let L=x;L<=R;L++)E[L]=I;x=R+1}for(let A=x;A<256;A++)E[A]=E[x-1];return E.join(",")},m=`g_${this.#n}_hcm_${e}_filter`,_=o.filter=this.#f(m);return this.#g(_),this.#m(g(f[0],p[0],5),g(f[1],p[1],5),g(f[2],p[2],5),_),o.url=this.#u(m),o.url}destroy(e=!1){e&&this.#a?.size||(this.#r?.parentNode.parentNode.remove(),this.#r=null,this.#t?.clear(),this.#t=null,this.#a?.clear(),this.#a=null,this.#s=0)}#p(e){const r=this.#i.createElementNS(um,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(r)}#g(e){const r=this.#i.createElementNS(um,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(r)}#f(e){const r=this.#i.createElementNS(um,"filter");return r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("id",e),this.#l.append(r),r}#h(e,r,n){const i=this.#i.createElementNS(um,r);i.setAttribute("type","discrete"),i.setAttribute("tableValues",n),e.append(i)}#m(e,r,n,i){const a=this.#i.createElementNS(um,"feComponentTransfer");i.append(a),this.#h(a,"feFuncR",e),this.#h(a,"feFuncG",r),this.#h(a,"feFuncB",n)}#v(e,r){const n=this.#i.createElementNS(um,"feComponentTransfer");r.append(n),this.#h(n,"feFuncA",e)}#_(e){return this.#l.style.color=e,KB(getComputedStyle(this.#l).getPropertyValue("color"))}}class JMe{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");const r=`${this.baseUrl}${e}`;return this._fetch(r).catch(n=>{throw new Error(`Unable to load font data at: ${r}`)})}async _fetch(e){Wa("Abstract method `_fetch` called.")}}class tSe extends JMe{async _fetch(e){const r=await y5(e,"arraybuffer");return new Uint8Array(r)}}class eLe{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!e)throw new Error("Wasm filename must be specified.");const r=`${this.baseUrl}${e}`;return this._fetch(r).catch(n=>{throw new Error(`Unable to load wasm data at: ${r}`)})}async _fetch(e){Wa("Abstract method `_fetch` called.")}}class rSe extends eLe{async _fetch(e){const r=await y5(e,"arraybuffer");return new Uint8Array(r)}}Kc&&_i("Please use the `legacy` build in Node.js environments.");async function Qoe(t){const r=await process.getBuiltinModule("fs").promises.readFile(t);return new Uint8Array(r)}class gDt extends ZMe{}class mDt extends XMe{_createCanvas(e,r){return process.getBuiltinModule("module").createRequire(import.meta.url)("@napi-rs/canvas").createCanvas(e,r)}}class _Dt extends QMe{async _fetch(e){return Qoe(e)}}class vDt extends JMe{async _fetch(e){return Qoe(e)}}class yDt extends eLe{async _fetch(e){return Qoe(e)}}const Hl={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function JZ(t,e){if(!e)return;const r=e[2]-e[0],n=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],r,n),t.clip(i)}class Zoe{isModifyingCurrentTransform(){return!1}getPattern(){Wa("Abstract method `getPattern` called.")}}class bDt extends Zoe{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let r;this._type==="axial"?r=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(r=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)r.addColorStop(n[0],n[1]);return r}getPattern(e,r,n,i){let a;if(i===Hl.STROKE||i===Hl.FILL){const s=r.current.getClippedPathBoundingBox(i,Gs(e))||[0,0,0,0],o=Math.ceil(s[2]-s[0])||1,l=Math.ceil(s[3]-s[1])||1,u=r.cachedCanvases.getCanvas("pattern",o,l),d=u.context;d.clearRect(0,0,d.canvas.width,d.canvas.height),d.beginPath(),d.rect(0,0,d.canvas.width,d.canvas.height),d.translate(-s[0],-s[1]),n=$n.transform(n,[1,0,0,1,s[0],s[1]]),d.transform(...r.baseTransform),this.matrix&&d.transform(...this.matrix),JZ(d,this._bbox),d.fillStyle=this._createGradient(d),d.fill(),a=e.createPattern(u.canvas,"no-repeat");const h=new DOMMatrix(n);a.setTransform(h)}else JZ(e,this._bbox),a=this._createGradient(e);return a}}function vW(t,e,r,n,i,a,s,o){const l=e.coords,u=e.colors,d=t.data,h=t.width*4;let f;l[r+1]>l[n+1]&&(f=r,r=n,n=f,f=a,a=s,s=f),l[n+1]>l[i+1]&&(f=n,n=i,i=f,f=s,s=o,o=f),l[r+1]>l[n+1]&&(f=r,r=n,n=f,f=a,a=s,s=f);const p=(l[r]+e.offsetX)*e.scaleX,g=(l[r+1]+e.offsetY)*e.scaleY,m=(l[n]+e.offsetX)*e.scaleX,_=(l[n+1]+e.offsetY)*e.scaleY,v=(l[i]+e.offsetX)*e.scaleX,y=(l[i+1]+e.offsetY)*e.scaleY;if(g>=y)return;const b=u[a],E=u[a+1],S=u[a+2],T=u[s],C=u[s+1],x=u[s+2],A=u[o],R=u[o+1],I=u[o+2],L=Math.round(g),F=Math.round(y);let O,D,M,P,N,$,U,B;for(let V=L;V<=F;V++){if(V<_){const Q=V<g?0:(g-V)/(g-_);O=p-(p-m)*Q,D=b-(b-T)*Q,M=E-(E-C)*Q,P=S-(S-x)*Q}else{let Q;V>y?Q=1:_===y?Q=0:Q=(_-V)/(_-y),O=m-(m-v)*Q,D=T-(T-A)*Q,M=C-(C-R)*Q,P=x-(x-I)*Q}let z;V<g?z=0:V>y?z=1:z=(g-V)/(g-y),N=p-(p-v)*z,$=b-(b-A)*z,U=E-(E-R)*z,B=S-(S-I)*z;const G=Math.round(Math.min(O,N)),Y=Math.round(Math.max(O,N));let W=h*V+G*4;for(let Q=G;Q<=Y;Q++)z=(O-Q)/(O-N),z<0?z=0:z>1&&(z=1),d[W++]=D-(D-$)*z|0,d[W++]=M-(M-U)*z|0,d[W++]=P-(P-B)*z|0,d[W++]=255}}function EDt(t,e,r){const n=e.coords,i=e.colors;let a,s;switch(e.type){case"lattice":const o=e.verticesPerRow,l=Math.floor(n.length/o)-1,u=o-1;for(a=0;a<l;a++){let d=a*o;for(let h=0;h<u;h++,d++)vW(t,r,n[d],n[d+1],n[d+o],i[d],i[d+1],i[d+o]),vW(t,r,n[d+o+1],n[d+1],n[d+o],i[d+o+1],i[d+1],i[d+o])}break;case"triangles":for(a=0,s=n.length;a<s;a+=3)vW(t,r,n[a],n[a+1],n[a+2],i[a],i[a+1],i[a+2]);break;default:throw new Error("illegal figure")}}class SDt extends Zoe{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[6],this._background=e[7],this.matrix=null}_createMeshCanvas(e,r,n){const o=Math.floor(this._bounds[0]),l=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-o,d=Math.ceil(this._bounds[3])-l,h=Math.min(Math.ceil(Math.abs(u*e[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(d*e[1]*1.1)),3e3),p=u/h,g=d/f,m={coords:this._coords,colors:this._colors,offsetX:-o,offsetY:-l,scaleX:1/p,scaleY:1/g},_=h+4,v=f+4,y=n.getCanvas("mesh",_,v),b=y.context,E=b.createImageData(h,f);if(r){const T=E.data;for(let C=0,x=T.length;C<x;C+=4)T[C]=r[0],T[C+1]=r[1],T[C+2]=r[2],T[C+3]=255}for(const T of this._figures)EDt(E,T,m);return b.putImageData(E,2,2),{canvas:y.canvas,offsetX:o-2*p,offsetY:l-2*g,scaleX:p,scaleY:g}}isModifyingCurrentTransform(){return!0}getPattern(e,r,n,i){JZ(e,this._bbox);const a=new Float32Array(2);if(i===Hl.SHADING)$n.singularValueDecompose2dScale(Gs(e),a);else if(this.matrix){$n.singularValueDecompose2dScale(this.matrix,a);const[o,l]=a;$n.singularValueDecompose2dScale(r.baseTransform,a),a[0]*=o,a[1]*=l}else $n.singularValueDecompose2dScale(r.baseTransform,a);const s=this._createMeshCanvas(a,i===Hl.SHADING?null:this._background,r.cachedCanvases);return i!==Hl.SHADING&&(e.setTransform(...r.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(s.offsetX,s.offsetY),e.scale(s.scaleX,s.scaleY),e.createPattern(s.canvas,"no-repeat")}}class TDt extends Zoe{getPattern(){return"hotpink"}}function CDt(t){switch(t[0]){case"RadialAxial":return new bDt(t);case"Mesh":return new SDt(t);case"Dummy":return new TDt}throw new Error(`Unknown IR type: ${t[0]}`)}const nSe={COLORED:1,UNCOLORED:2};class Joe{static MAX_PATTERN_SIZE=3e3;constructor(e,r,n,i){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.ctx=r,this.canvasGraphicsFactory=n,this.baseTransform=i}createPatternCanvas(e){const{bbox:r,operatorList:n,paintType:i,tilingType:a,color:s,canvasGraphicsFactory:o}=this;let{xstep:l,ystep:u}=this;l=Math.abs(l),u=Math.abs(u),YB("TilingType: "+a);const d=r[0],h=r[1],f=r[2],p=r[3],g=f-d,m=p-h,_=new Float32Array(2);$n.singularValueDecompose2dScale(this.matrix,_);const[v,y]=_;$n.singularValueDecompose2dScale(this.baseTransform,_);const b=v*_[0],E=y*_[1];let S=g,T=m,C=!1,x=!1;const A=Math.ceil(l*b),R=Math.ceil(u*E),I=Math.ceil(g*b),L=Math.ceil(m*E);A>=I?S=l:C=!0,R>=L?T=u:x=!0;const F=this.getSizeAndScale(S,this.ctx.canvas.width,b),O=this.getSizeAndScale(T,this.ctx.canvas.height,E),D=e.cachedCanvases.getCanvas("pattern",F.size,O.size),M=D.context,P=o.createCanvasGraphics(M);if(P.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(P,i,s),M.translate(-F.scale*d,-O.scale*h),P.transform(F.scale,0,0,O.scale,0,0),M.save(),this.clipBbox(P,d,h,f,p),P.baseTransform=Gs(P.ctx),P.executeOperatorList(n),P.endDrawing(),M.restore(),C||x){const N=D.canvas;C&&(S=l),x&&(T=u);const $=this.getSizeAndScale(S,this.ctx.canvas.width,b),U=this.getSizeAndScale(T,this.ctx.canvas.height,E),B=$.size,V=U.size,z=e.cachedCanvases.getCanvas("pattern-workaround",B,V),G=z.context,Y=C?Math.floor(g/l):0,W=x?Math.floor(m/u):0;for(let Q=0;Q<=Y;Q++)for(let ie=0;ie<=W;ie++)G.drawImage(N,B*Q,V*ie,B,V,0,0,B,V);return{canvas:z.canvas,scaleX:$.scale,scaleY:U.scale,offsetX:d,offsetY:h}}return{canvas:D.canvas,scaleX:F.scale,scaleY:O.scale,offsetX:d,offsetY:h}}getSizeAndScale(e,r,n){const i=Math.max(Joe.MAX_PATTERN_SIZE,r);let a=Math.ceil(e*n);return a>=i?a=i:n=a/e,{scale:n,size:a}}clipBbox(e,r,n,i,a){const s=i-r,o=a-n;e.ctx.rect(r,n,s,o),$n.axialAlignedBoundingBox([r,n,i,a],Gs(e.ctx),e.current.minMax),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,r,n){const i=e.ctx,a=e.current;switch(r){case nSe.COLORED:const{fillStyle:s,strokeStyle:o}=this.ctx;i.fillStyle=a.fillColor=s,i.strokeStyle=a.strokeColor=o;break;case nSe.UNCOLORED:i.fillStyle=i.strokeStyle=n,a.fillColor=a.strokeColor=n;break;default:throw new q5t(`Unsupported paint type: ${r}`)}}isModifyingCurrentTransform(){return!1}getPattern(e,r,n,i){let a=n;i!==Hl.SHADING&&(a=$n.transform(a,r.baseTransform),this.matrix&&(a=$n.transform(a,this.matrix)));const s=this.createPatternCanvas(r);let o=new DOMMatrix(a);o=o.translate(s.offsetX,s.offsetY),o=o.scale(1/s.scaleX,1/s.scaleY);const l=e.createPattern(s.canvas,"repeat");return l.setTransform(o),l}}function wDt({src:t,srcPos:e=0,dest:r,width:n,height:i,nonBlackColor:a=4294967295,inverseDecode:s=!1}){const o=ec.isLittleEndian?4278190080:255,[l,u]=s?[a,o]:[o,a],d=n>>3,h=n&7,f=t.length;r=new Uint32Array(r.buffer);let p=0;for(let g=0;g<i;g++){for(const _=e+d;e<_;e++){const v=e<f?t[e]:255;r[p++]=v&128?u:l,r[p++]=v&64?u:l,r[p++]=v&32?u:l,r[p++]=v&16?u:l,r[p++]=v&8?u:l,r[p++]=v&4?u:l,r[p++]=v&2?u:l,r[p++]=v&1?u:l}if(h===0)continue;const m=e<f?t[e++]:255;for(let _=0;_<h;_++)r[p++]=m&1<<7-_?u:l}return{srcPos:e,destPos:p}}const iSe=16,aSe=100,xDt=15,sSe=10,Uu=16,yW=new DOMMatrix,wd=new Float32Array(2),fT=new Float32Array([1/0,1/0,-1/0,-1/0]);function ADt(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=()=>{t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(r,n){e.translate(r,n),this.__originalTranslate(r,n)},t.scale=function(r,n){e.scale(r,n),this.__originalScale(r,n)},t.transform=function(r,n,i,a,s,o){e.transform(r,n,i,a,s,o),this.__originalTransform(r,n,i,a,s,o)},t.setTransform=function(r,n,i,a,s,o){e.setTransform(r,n,i,a,s,o),this.__originalSetTransform(r,n,i,a,s,o)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(r){e.rotate(r),this.__originalRotate(r)},t.clip=function(r){e.clip(r),this.__originalClip(r)},t.moveTo=function(r,n){e.moveTo(r,n),this.__originalMoveTo(r,n)},t.lineTo=function(r,n){e.lineTo(r,n),this.__originalLineTo(r,n)},t.bezierCurveTo=function(r,n,i,a,s,o){e.bezierCurveTo(r,n,i,a,s,o),this.__originalBezierCurveTo(r,n,i,a,s,o)},t.rect=function(r,n,i,a){e.rect(r,n,i,a),this.__originalRect(r,n,i,a)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}class RDt{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,r,n){let i;return this.cache[e]!==void 0?(i=this.cache[e],this.canvasFactory.reset(i,r,n)):(i=this.canvasFactory.create(r,n),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const r=this.cache[e];this.canvasFactory.destroy(r),delete this.cache[e]}}}function jM(t,e,r,n,i,a,s,o,l,u){const[d,h,f,p,g,m]=Gs(t);if(h===0&&f===0){const y=s*d+g,b=Math.round(y),E=o*p+m,S=Math.round(E),T=(s+l)*d+g,C=Math.abs(Math.round(T)-b)||1,x=(o+u)*p+m,A=Math.abs(Math.round(x)-S)||1;return t.setTransform(Math.sign(d),0,0,Math.sign(p),b,S),t.drawImage(e,r,n,i,a,0,0,C,A),t.setTransform(d,h,f,p,g,m),[C,A]}if(d===0&&p===0){const y=o*f+g,b=Math.round(y),E=s*h+m,S=Math.round(E),T=(o+u)*f+g,C=Math.abs(Math.round(T)-b)||1,x=(s+l)*h+m,A=Math.abs(Math.round(x)-S)||1;return t.setTransform(0,Math.sign(h),Math.sign(f),0,b,S),t.drawImage(e,r,n,i,a,0,0,A,C),t.setTransform(d,h,f,p,g,m),[A,C]}t.drawImage(e,r,n,i,a,s,o,l,u);const _=Math.hypot(d,h),v=Math.hypot(f,p);return[_*l,v*u]}class oSe{alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=WZ;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=vc.FILL;textRise=0;fillColor="#000000";strokeColor="#000000";patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps="none";constructor(e,r){this.clipBox=new Float32Array([0,0,e,r]),this.minMax=fT.slice()}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e.minMax=this.minMax.slice(),e}getPathBoundingBox(e=Hl.FILL,r=null){const n=this.minMax.slice();if(e===Hl.STROKE){r||Wa("Stroke bounding box must include transform."),$n.singularValueDecompose2dScale(r,wd);const i=wd[0]*this.lineWidth/2,a=wd[1]*this.lineWidth/2;n[0]-=i,n[1]-=a,n[2]+=i,n[3]+=a}return n}updateClipFromPath(){const e=$n.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(e){this.clipBox.set(e,0),this.minMax.set(fT,0)}getClippedPathBoundingBox(e=Hl.FILL,r=null){return $n.intersect(this.clipBox,this.getPathBoundingBox(e,r))}}function lSe(t,e){if(e instanceof ImageData){t.putImageData(e,0,0);return}const r=e.height,n=e.width,i=r%Uu,a=(r-i)/Uu,s=i===0?a:a+1,o=t.createImageData(n,Uu);let l=0,u;const d=e.data,h=o.data;let f,p,g,m;if(e.kind===NP.GRAYSCALE_1BPP){const _=d.byteLength,v=new Uint32Array(h.buffer,0,h.byteLength>>2),y=v.length,b=n+7>>3,E=4294967295,S=ec.isLittleEndian?4278190080:255;for(f=0;f<s;f++){for(g=f<a?Uu:i,u=0,p=0;p<g;p++){const T=_-l;let C=0;const x=T>b?n:T*8-7,A=x&-8;let R=0,I=0;for(;C<A;C+=8)I=d[l++],v[u++]=I&128?E:S,v[u++]=I&64?E:S,v[u++]=I&32?E:S,v[u++]=I&16?E:S,v[u++]=I&8?E:S,v[u++]=I&4?E:S,v[u++]=I&2?E:S,v[u++]=I&1?E:S;for(;C<x;C++)R===0&&(I=d[l++],R=128),v[u++]=I&R?E:S,R>>=1}for(;u<y;)v[u++]=0;t.putImageData(o,0,f*Uu)}}else if(e.kind===NP.RGBA_32BPP){for(p=0,m=n*Uu*4,f=0;f<a;f++)h.set(d.subarray(l,l+m)),l+=m,t.putImageData(o,0,p),p+=Uu;f<s&&(m=n*i*4,h.set(d.subarray(l,l+m)),t.putImageData(o,0,p))}else if(e.kind===NP.RGB_24BPP)for(g=Uu,m=n*g,f=0;f<s;f++){for(f>=a&&(g=i,m=n*g),u=0,p=m;p--;)h[u++]=d[l++],h[u++]=d[l++],h[u++]=d[l++],h[u++]=255;t.putImageData(o,0,f*Uu)}else throw new Error(`bad image kind: ${e.kind}`)}function cSe(t,e){if(e.bitmap){t.drawImage(e.bitmap,0,0);return}const r=e.height,n=e.width,i=r%Uu,a=(r-i)/Uu,s=i===0?a:a+1,o=t.createImageData(n,Uu);let l=0;const u=e.data,d=o.data;for(let h=0;h<s;h++){const f=h<a?Uu:i;({srcPos:l}=wDt({src:u,srcPos:l,dest:d,width:n,height:f,nonBlackColor:0})),t.putImageData(o,0,h*Uu)}}function yO(t,e){const r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const n of r)t[n]!==void 0&&(e[n]=t[n]);t.setLineDash!==void 0&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function XM(t){t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",t.setLineDash!==void 0&&(t.setLineDash([]),t.lineDashOffset=0);const{filter:e}=t;e!=="none"&&e!==""&&(t.filter="none")}function uSe(t,e){if(e)return!0;$n.singularValueDecompose2dScale(t,wd);const r=Math.fround(gg.pixelRatio*sA.PDF_TO_CSS_UNITS);return wd[0]<=r&&wd[1]<=r}const ODt=["butt","round","square"],IDt=["miter","round","bevel"],NDt={},dSe={};class qT{constructor(e,r,n,i,a,{optionalContentConfig:s,markedContentStack:o=null},l,u){this.ctx=e,this.current=new oSe(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=r,this.objs=n,this.canvasFactory=i,this.filterFactory=a,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=o||[],this.optionalContentConfig=s,this.cachedCanvases=new RDt(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=l,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,r=null){return typeof e=="string"?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):r}beginDrawing({transform:e,viewport:r,transparency:n=!1,background:i=null}){const a=this.ctx.canvas.width,s=this.ctx.canvas.height,o=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,a,s),this.ctx.fillStyle=o,n){const l=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform(...Gs(this.compositeCtx))}this.ctx.save(),XM(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=Gs(this.ctx)}executeOperatorList(e,r,n,i){const a=e.argsArray,s=e.fnArray;let o=r||0;const l=a.length;if(l===o)return o;const u=l-o>sSe&&typeof n=="function",d=u?Date.now()+xDt:0;let h=0;const f=this.commonObjs,p=this.objs;let g;for(;;){if(i!==void 0&&o===i.nextBreakPoint)return i.breakIt(o,n),o;if(g=s[o],g!==r7.dependency)this[g].apply(this,a[o]);else for(const m of a[o]){const _=m.startsWith("g_")?f:p;if(!_.has(m))return _.get(m,n),o}if(o++,o===l)return o;if(u&&++h>sSe){if(Date.now()>d)return n(),o;h=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const r of e.values())typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement&&(r.width=r.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const r=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=r}}}_scaleImage(e,r){const n=e.width??e.displayWidth,i=e.height??e.displayHeight;let a=Math.max(Math.hypot(r[0],r[1]),1),s=Math.max(Math.hypot(r[2],r[3]),1),o=n,l=i,u="prescale1",d,h;for(;a>2&&o>1||s>2&&l>1;){let f=o,p=l;a>2&&o>1&&(f=o>=16384?Math.floor(o/2)-1||1:Math.ceil(o/2),a/=o/f),s>2&&l>1&&(p=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,s/=l/p),d=this.cachedCanvases.getCanvas(u,f,p),h=d.context,h.clearRect(0,0,f,p),h.drawImage(e,0,0,o,l,0,0,f,p),e=d.canvas,o=f,l=p,u=u==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:o,paintHeight:l}}_createMaskCanvas(e){const r=this.ctx,{width:n,height:i}=e,a=this.current.fillColor,s=this.current.patternFill,o=Gs(r);let l,u,d,h;if((e.bitmap||e.data)&&e.count>1){const A=e.bitmap||e.data.buffer;u=JSON.stringify(s?o:[o.slice(0,4),a]),l=this._cachedBitmapsMap.get(A),l||(l=new Map,this._cachedBitmapsMap.set(A,l));const R=l.get(u);if(R&&!s){const I=Math.round(Math.min(o[0],o[2])+o[4]),L=Math.round(Math.min(o[1],o[3])+o[5]);return{canvas:R,offsetX:I,offsetY:L}}d=R}d||(h=this.cachedCanvases.getCanvas("maskCanvas",n,i),cSe(h.context,e));let f=$n.transform(o,[1/n,0,0,-1/i,0,0]);f=$n.transform(f,[1,0,0,1,0,-i]);const p=fT.slice();$n.axialAlignedBoundingBox([0,0,n,i],f,p);const[g,m,_,v]=p,y=Math.round(_-g)||1,b=Math.round(v-m)||1,E=this.cachedCanvases.getCanvas("fillCanvas",y,b),S=E.context,T=g,C=m;S.translate(-T,-C),S.transform(...f),d||(d=this._scaleImage(h.canvas,mp(S)),d=d.img,l&&s&&l.set(u,d)),S.imageSmoothingEnabled=uSe(Gs(S),e.interpolate),jM(S,d,0,0,d.width,d.height,0,0,n,i),S.globalCompositeOperation="source-in";const x=$n.transform(mp(S),[1,0,0,1,-T,-C]);return S.fillStyle=s?a.getPattern(r,this,x,Hl.FILL):a,S.fillRect(0,0,n,i),l&&!s&&(this.cachedCanvases.delete("fillCanvas"),l.set(u,E.canvas)),{canvas:E.canvas,offsetX:Math.round(T),offsetY:Math.round(C)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=ODt[e]}setLineJoin(e){this.ctx.lineJoin=IDt[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,r){const n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(e),n.lineDashOffset=r)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[r,n]of e)switch(r){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.ctx.globalAlpha=this.current.fillAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,r=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(n,e,r);this.suspendedCtx=this.ctx;const a=this.ctx=i.context;a.setTransform(this.suspendedCtx.getTransform()),yO(this.suspendedCtx,a),ADt(a,this.suspendedCtx),this.setGState([["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),yO(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const r=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,r,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(e,r,n,i){const a=i[0],s=i[1],o=i[2]-a,l=i[3]-s;o===0||l===0||(this.genericComposeSMask(r.context,n,o,l,r.subtype,r.backdrop,r.transferMap,a,s,r.offsetX,r.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}genericComposeSMask(e,r,n,i,a,s,o,l,u,d,h){let f=e.canvas,p=l-d,g=u-h;if(s)if(p<0||g<0||p+n>f.width||g+i>f.height){const _=this.cachedCanvases.getCanvas("maskExtension",n,i),v=_.context;v.drawImage(f,-p,-g),v.globalCompositeOperation="destination-atop",v.fillStyle=s,v.fillRect(0,0,n,i),v.globalCompositeOperation="source-over",f=_.canvas,p=g=0}else{e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const _=new Path2D;_.rect(p,g,n,i),e.clip(_),e.globalCompositeOperation="destination-atop",e.fillStyle=s,e.fillRect(p,g,n,i),e.restore()}r.save(),r.globalAlpha=1,r.setTransform(1,0,0,1,0,0),a==="Alpha"&&o?r.filter=this.filterFactory.addAlphaFilter(o):a==="Luminosity"&&(r.filter=this.filterFactory.addLuminosityFilter(o));const m=new Path2D;m.rect(l,u,n,i),r.clip(m),r.globalCompositeOperation="destination-in",r.drawImage(f,p,g,n,i,l,u,n,i),r.restore()}save(){this.inSMaskMode&&yO(this.ctx,this.suspendedCtx),this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){if(this.stateStack.length===0){this.inSMaskMode&&this.endSMaskMode();return}this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&yO(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(e,r,n,i,a,s){this.ctx.transform(e,r,n,i,a,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,r,n){let[i]=r;if(!n){i||=r[0]=new Path2D,this[e](i);return}if(!(i instanceof Path2D)){const a=r[0]=new Path2D;for(let s=0,o=i.length;s<o;)switch(i[s++]){case HM.moveTo:a.moveTo(i[s++],i[s++]);break;case HM.lineTo:a.lineTo(i[s++],i[s++]);break;case HM.curveTo:a.bezierCurveTo(i[s++],i[s++],i[s++],i[s++],i[s++],i[s++]);break;case HM.closePath:a.closePath();break;default:_i(`Unrecognized drawing path operator: ${i[s-1]}`);break}i=a}$n.axialAlignedBoundingBox(n,Gs(this.ctx),this.current.minMax),this[e](i)}closePath(){this.ctx.closePath()}stroke(e,r=!0){const n=this.ctx,i=this.current.strokeColor;if(n.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof i=="object"&&i?.getPattern){const a=i.isModifyingCurrentTransform()?n.getTransform():null;if(n.save(),n.strokeStyle=i.getPattern(n,this,mp(n),Hl.STROKE),a){const s=new Path2D;s.addPath(e,n.getTransform().invertSelf().multiplySelf(a)),e=s}this.rescaleAndStroke(e,!1),n.restore()}else this.rescaleAndStroke(e,!0);r&&this.consumePath(e,this.current.getClippedPathBoundingBox(Hl.STROKE,Gs(this.ctx))),n.globalAlpha=this.current.fillAlpha}closeStroke(e){this.stroke(e)}fill(e,r=!0){const n=this.ctx,i=this.current.fillColor,a=this.current.patternFill;let s=!1;if(a){const l=i.isModifyingCurrentTransform()?n.getTransform():null;if(n.save(),n.fillStyle=i.getPattern(n,this,mp(n),Hl.FILL),l){const u=new Path2D;u.addPath(e,n.getTransform().invertSelf().multiplySelf(l)),e=u}s=!0}const o=this.current.getClippedPathBoundingBox();this.contentVisible&&o!==null&&(this.pendingEOFill?(n.fill(e,"evenodd"),this.pendingEOFill=!1):n.fill(e)),s&&n.restore(),r&&this.consumePath(e,o)}eoFill(e){this.pendingEOFill=!0,this.fill(e)}fillStroke(e){this.fill(e,!1),this.stroke(e,!1),this.consumePath(e)}eoFillStroke(e){this.pendingEOFill=!0,this.fillStroke(e)}closeFillStroke(e){this.fillStroke(e)}closeEOFillStroke(e){this.pendingEOFill=!0,this.fillStroke(e)}endPath(e){this.consumePath(e)}rawFillPath(e){this.ctx.fill(e)}clip(){this.pendingClip=NDt}eoClip(){this.pendingClip=dSe}beginText(){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,r=this.ctx;if(e===void 0)return;const n=new Path2D,i=r.getTransform().invertSelf();for(const{transform:a,x:s,y:o,fontSize:l,path:u}of e)u&&n.addPath(u,new DOMMatrix(a).preMultiplySelf(i).translate(s,o).scale(l,-l));r.clip(n),delete this.pendingTextPaths}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,r){const n=this.commonObjs.get(e),i=this.current;if(!n)throw new Error(`Can't find font for ${e}`);if(i.fontMatrix=n.fontMatrix||WZ,(i.fontMatrix[0]===0||i.fontMatrix[3]===0)&&_i("Invalid font matrix for font "+e),r<0?(r=-r,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=r,n.isType3Font)return;const a=n.loadedName||"sans-serif",s=n.systemFontInfo?.css||`"${a}", ${n.fallbackName}`;let o="normal";n.black?o="900":n.bold&&(o="bold");const l=n.italic?"italic":"normal";let u=r;r<iSe?u=iSe:r>aSe&&(u=aSe),this.current.fontSizeScale=r/u,this.ctx.font=`${l} ${o} ${u}px ${s}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,r){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=r}setLeadingMoveText(e,r){this.setLeading(-r),this.moveText(e,r)}setTextMatrix(e){const{current:r}=this;r.textMatrix=e,r.textMatrixScale=Math.hypot(e[0],e[1]),r.x=r.lineX=0,r.y=r.lineY=0}nextLine(){this.moveText(0,this.current.leading)}#r(e,r,n){const i=new Path2D;return i.addPath(e,new DOMMatrix(n).invertSelf().multiplySelf(r)),i}paintChar(e,r,n,i,a){const s=this.ctx,o=this.current,l=o.font,u=o.textRenderingMode,d=o.fontSize/o.fontSizeScale,h=u&vc.FILL_STROKE_MASK,f=!!(u&vc.ADD_TO_PATH_FLAG),p=o.patternFill&&!l.missingFile,g=o.patternStroke&&!l.missingFile;let m;if((l.disableFontFace||f||p||g)&&!l.missingFile&&(m=l.getPathGenerator(this.commonObjs,e)),m&&(l.disableFontFace||p||g)){s.save(),s.translate(r,n),s.scale(d,-d);let _;if((h===vc.FILL||h===vc.FILL_STROKE)&&(i?(_=s.getTransform(),s.setTransform(...i),s.fill(this.#r(m,_,i))):s.fill(m)),h===vc.STROKE||h===vc.FILL_STROKE)if(a){_||=s.getTransform(),s.setTransform(...a);const{a:v,b:y,c:b,d:E}=_,S=$n.inverseTransform(a),T=$n.transform([v,y,b,E,0,0],S);$n.singularValueDecompose2dScale(T,wd),s.lineWidth*=Math.max(wd[0],wd[1])/d,s.stroke(this.#r(m,_,a))}else s.lineWidth/=d,s.stroke(m);s.restore()}else(h===vc.FILL||h===vc.FILL_STROKE)&&s.fillText(e,r,n),(h===vc.STROKE||h===vc.FILL_STROKE)&&s.strokeText(e,r,n);f&&(this.pendingTextPaths||=[]).push({transform:Gs(s),x:r,y:n,fontSize:d,path:m})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const r=e.getImageData(0,0,10,10).data;let n=!1;for(let i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return qi(this,"isFontSubpixelAAEnabled",n)}showText(e){const r=this.current,n=r.font;if(n.isType3Font)return this.showType3Text(e);const i=r.fontSize;if(i===0)return;const a=this.ctx,s=r.fontSizeScale,o=r.charSpacing,l=r.wordSpacing,u=r.fontDirection,d=r.textHScale*u,h=e.length,f=n.vertical,p=f?1:-1,g=n.defaultVMetrics,m=i*r.fontMatrix[0],_=r.textRenderingMode===vc.FILL&&!n.disableFontFace&&!r.patternFill;a.save(),r.textMatrix&&a.transform(...r.textMatrix),a.translate(r.x,r.y+r.textRise),u>0?a.scale(d,-1):a.scale(d,1);let v,y;if(r.patternFill){a.save();const C=r.fillColor.getPattern(a,this,mp(a),Hl.FILL);v=Gs(a),a.restore(),a.fillStyle=C}if(r.patternStroke){a.save();const C=r.strokeColor.getPattern(a,this,mp(a),Hl.STROKE);y=Gs(a),a.restore(),a.strokeStyle=C}let b=r.lineWidth;const E=r.textMatrixScale;if(E===0||b===0){const C=r.textRenderingMode&vc.FILL_STROKE_MASK;(C===vc.STROKE||C===vc.FILL_STROKE)&&(b=this.getSinglePixelWidth())}else b/=E;if(s!==1&&(a.scale(s,s),b/=s),a.lineWidth=b,n.isInvalidPDFjsFont){const C=[];let x=0;for(const A of e)C.push(A.unicode),x+=A.width;a.fillText(C.join(""),0,0),r.x+=x*m*d,a.restore(),this.compose();return}let S=0,T;for(T=0;T<h;++T){const C=e[T];if(typeof C=="number"){S+=p*C*i/1e3;continue}let x=!1;const A=(C.isSpace?l:0)+o,R=C.fontChar,I=C.accent;let L,F,O=C.width;if(f){const M=C.vmetric||g,P=-(C.vmetric?M[1]:O*.5)*m,N=M[2]*m;O=M?-M[0]:O,L=P/s,F=(S+N)/s}else L=S/s,F=0;if(n.remeasure&&O>0){const M=a.measureText(R).width*1e3/i*s;if(O<M&&this.isFontSubpixelAAEnabled){const P=O/M;x=!0,a.save(),a.scale(P,1),L/=P}else O!==M&&(L+=(O-M)/2e3*i/s)}if(this.contentVisible&&(C.isInFont||n.missingFile)){if(_&&!I)a.fillText(R,L,F);else if(this.paintChar(R,L,F,v,y),I){const M=L+i*I.offset.x/s,P=F-i*I.offset.y/s;this.paintChar(I.fontChar,M,P,v,y)}}const D=f?O*m-A*u:O*m+A*u;S+=D,x&&a.restore()}f?r.y-=S:r.x+=S*d,a.restore(),this.compose()}showType3Text(e){const r=this.ctx,n=this.current,i=n.font,a=n.fontSize,s=n.fontDirection,o=i.vertical?1:-1,l=n.charSpacing,u=n.wordSpacing,d=n.textHScale*s,h=n.fontMatrix||WZ,f=e.length,p=n.textRenderingMode===vc.INVISIBLE;let g,m,_,v;if(!(p||a===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,r.save(),n.textMatrix&&r.transform(...n.textMatrix),r.translate(n.x,n.y+n.textRise),r.scale(d,s),g=0;g<f;++g){if(m=e[g],typeof m=="number"){v=o*m*a/1e3,this.ctx.translate(v,0),n.x+=v*d;continue}const y=(m.isSpace?u:0)+l,b=i.charProcOperatorList[m.operatorListId];b?this.contentVisible&&(this.save(),r.scale(a,a),r.transform(...h),this.executeOperatorList(b),this.restore()):_i(`Type3 character "${m.operatorListId}" is not available.`);const E=[m.width,0];$n.applyTransform(E,h),_=E[0]*a+y,r.translate(_,0),n.x+=_*d}r.restore()}}setCharWidth(e,r){}setCharWidthAndBounds(e,r,n,i,a,s){const o=new Path2D;o.rect(n,i,a-n,s-i),this.ctx.clip(o),this.endPath()}getColorN_Pattern(e){let r;if(e[0]==="TilingPattern"){const n=this.baseTransform||Gs(this.ctx),i={createCanvasGraphics:a=>new qT(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};r=new Joe(e,this.ctx,i,n)}else r=this._getPattern(e[1],e[2]);return r}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e){this.ctx.strokeStyle=this.current.strokeColor=e,this.current.patternStroke=!1}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e){this.ctx.fillStyle=this.current.fillColor=e,this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,r=null){let n;return this.cachedPatterns.has(e)?n=this.cachedPatterns.get(e):(n=CDt(this.getObject(e)),this.cachedPatterns.set(e,n)),r&&(n.matrix=r),n}shadingFill(e){if(!this.contentVisible)return;const r=this.ctx;this.save();const n=this._getPattern(e);r.fillStyle=n.getPattern(r,this,mp(r),Hl.SHADING);const i=mp(r);if(i){const{width:a,height:s}=r.canvas,o=fT.slice();$n.axialAlignedBoundingBox([0,0,a,s],i,o);const[l,u,d,h]=o;this.ctx.fillRect(l,u,d-l,h-u)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){Wa("Should not call beginInlineImage")}beginImageData(){Wa("Should not call beginImageData")}paintFormXObjectBegin(e,r){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),e&&this.transform(...e),this.baseTransform=Gs(this.ctx),r)){$n.axialAlignedBoundingBox(r,this.baseTransform,this.current.minMax);const[n,i,a,s]=r,o=new Path2D;o.rect(n,i,a-n,s-i),this.ctx.clip(o),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const r=this.ctx;e.isolated||YB("TODO: Support non-isolated groups."),e.knockout&&_i("Knockout groups not supported.");const n=Gs(r);if(e.matrix&&r.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let i=fT.slice();$n.axialAlignedBoundingBox(e.bbox,Gs(r),i);const a=[0,0,r.canvas.width,r.canvas.height];i=$n.intersect(i,a)||[0,0,0,0];const s=Math.floor(i[0]),o=Math.floor(i[1]),l=Math.max(Math.ceil(i[2])-s,1),u=Math.max(Math.ceil(i[3])-o,1);this.current.startNewPathAndClipBox([0,0,l,u]);let d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(d,l,u),f=h.context;f.translate(-s,-o),f.transform(...n);let p=new Path2D;const[g,m,_,v]=e.bbox;if(p.rect(g,m,_-g,v-m),e.matrix){const y=new Path2D;y.addPath(p,new DOMMatrix(e.matrix)),p=y}f.clip(p),e.smask?this.smaskStack.push({canvas:h.canvas,context:f,offsetX:s,offsetY:o,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(r.setTransform(1,0,0,1,0,0),r.translate(s,o),r.save()),yO(r,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(r),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const r=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const i=Gs(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);const a=fT.slice();$n.axialAlignedBoundingBox([0,0,r.canvas.width,r.canvas.height],i,a),this.ctx.drawImage(r.canvas,0,0),this.ctx.restore(),this.compose(a)}}beginAnnotation(e,r,n,i,a){if(this.#e(),XM(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),r){const s=r[2]-r[0],o=r[3]-r[1];if(a&&this.annotationCanvasMap){n=n.slice(),n[4]-=r[0],n[5]-=r[1],r=r.slice(),r[0]=r[1]=0,r[2]=s,r[3]=o,$n.singularValueDecompose2dScale(Gs(this.ctx),wd);const{viewportScale:l}=this,u=Math.ceil(s*this.outputScaleX*l),d=Math.ceil(o*this.outputScaleY*l);this.annotationCanvas=this.canvasFactory.create(u,d);const{canvas:h,context:f}=this.annotationCanvas;this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=f,this.ctx.save(),this.ctx.setTransform(wd[0],0,0,-wd[1],0,o*wd[1]),XM(this.ctx)}else{XM(this.ctx),this.endPath();const l=new Path2D;l.rect(r[0],r[1],s,o),this.ctx.clip(l)}}this.current=new oSe(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const r=e.count;e=this.getObject(e.data,e),e.count=r;const n=this.ctx,i=this._createMaskCanvas(e),a=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(a,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,r,n=0,i=0,a,s){if(!this.contentVisible)return;e=this.getObject(e.data,e);const o=this.ctx;o.save();const l=Gs(o);o.transform(r,n,i,a,0,0);const u=this._createMaskCanvas(e);o.setTransform(1,0,0,1,u.offsetX-l[4],u.offsetY-l[5]);for(let d=0,h=s.length;d<h;d+=2){const f=$n.transform(l,[r,n,i,a,s[d],s[d+1]]);o.drawImage(u.canvas,f[4],f[5])}o.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const r=this.ctx,n=this.current.fillColor,i=this.current.patternFill;for(const a of e){const{data:s,width:o,height:l,transform:u}=a,d=this.cachedCanvases.getCanvas("maskCanvas",o,l),h=d.context;h.save();const f=this.getObject(s,a);cSe(h,f),h.globalCompositeOperation="source-in",h.fillStyle=i?n.getPattern(h,this,mp(r),Hl.FILL):n,h.fillRect(0,0,o,l),h.restore(),r.save(),r.transform(...u),r.scale(1,-1),jM(r,d.canvas,0,0,o,l,0,-1,1,1),r.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const r=this.getObject(e);if(!r){_i("Dependent image isn't ready yet");return}this.paintInlineImageXObject(r)}paintImageXObjectRepeat(e,r,n,i){if(!this.contentVisible)return;const a=this.getObject(e);if(!a){_i("Dependent image isn't ready yet");return}const s=a.width,o=a.height,l=[];for(let u=0,d=i.length;u<d;u+=2)l.push({transform:[r,0,0,n,i[u],i[u+1]],x:0,y:0,w:s,h:o});this.paintInlineImageXObjectGroup(a,l)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;const{bitmap:r,width:n,height:i}=e,a=this.cachedCanvases.getCanvas("inlineImage",n,i),s=a.context;return s.filter=this.current.transferMaps,s.drawImage(r,0,0),s.filter="none",a.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return;const r=e.width,n=e.height,i=this.ctx;this.save();const{filter:a}=i;a!=="none"&&a!==""&&(i.filter="none"),i.scale(1/r,-1/n);let s;if(e.bitmap)s=this.applyTransferMapsToBitmap(e);else if(typeof HTMLElement=="function"&&e instanceof HTMLElement||!e.data)s=e;else{const u=this.cachedCanvases.getCanvas("inlineImage",r,n).context;lSe(u,e),s=this.applyTransferMapsToCanvas(u)}const o=this._scaleImage(s,mp(i));i.imageSmoothingEnabled=uSe(Gs(i),e.interpolate),jM(i,o.img,0,0,o.paintWidth,o.paintHeight,0,-n,r,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,r){if(!this.contentVisible)return;const n=this.ctx;let i;if(e.bitmap)i=e.bitmap;else{const a=e.width,s=e.height,l=this.cachedCanvases.getCanvas("inlineImage",a,s).context;lSe(l,e),i=this.applyTransferMapsToCanvas(l)}for(const a of r)n.save(),n.transform(...a.transform),n.scale(1,-1),jM(n,i,a.x,a.y,a.w,a.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,r){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,r){e==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(r)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e,r){const n=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(r);const i=this.ctx;this.pendingClip&&(n||(this.pendingClip===dSe?i.clip(e,"evenodd"):i.clip(e)),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=Gs(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const r=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,i)/r}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:e}=this.current,{a:r,b:n,c:i,d:a}=this.ctx.getTransform();let s,o;if(n===0&&i===0){const l=Math.abs(r),u=Math.abs(a);if(l===u)if(e===0)s=o=1/l;else{const d=l*e;s=o=d<1?1/d:1}else if(e===0)s=1/l,o=1/u;else{const d=l*e,h=u*e;s=d<1?1/d:1,o=h<1?1/h:1}}else{const l=Math.abs(r*a-n*i),u=Math.hypot(r,n),d=Math.hypot(i,a);if(e===0)s=d/l,o=u/l;else{const h=e*l;s=d>h?d/h:1,o=u>h?u/h:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(e,r){const{ctx:n,current:{lineWidth:i}}=this,[a,s]=this.getScaleForStroking();if(a===s){n.lineWidth=(i||1)*a,n.stroke(e);return}const o=n.getLineDash();r&&n.save(),n.scale(a,s),yW.a=1/a,yW.d=1/s;const l=new Path2D;if(l.addPath(e,yW),o.length>0){const u=Math.max(a,s);n.setLineDash(o.map(d=>d/u)),n.lineDashOffset/=u}n.lineWidth=i||1,n.stroke(l),r&&n.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}for(const t in r7)qT.prototype[t]!==void 0&&(qT.prototype[r7[t]]=qT.prototype[t]);class VT{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");this.#e=e}static get workerSrc(){return this.#t}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");this.#t=e}}class kDt{#e;#t;constructor({parsedData:e,rawData:r}){this.#e=e,this.#t=r}getRaw(){return this.#t}get(e){return this.#e.get(e)??null}[Symbol.iterator](){return this.#e.entries()}}const FS=Symbol("INTERNAL");class DDt{#e=!1;#t=!1;#r=!1;#n=!0;constructor(e,{name:r,intent:n,usage:i,rbGroups:a}){this.#e=!!(e&Cd.DISPLAY),this.#t=!!(e&Cd.PRINT),this.name=r,this.intent=n,this.usage=i,this.rbGroups=a}get visible(){if(this.#r)return this.#n;if(!this.#n)return!1;const{print:e,view:r}=this.usage;return this.#e?r?.viewState!=="OFF":this.#t?e?.printState!=="OFF":!0}_setVisible(e,r,n=!1){e!==FS&&Wa("Internal method `_setVisible` called."),this.#r=n,this.#n=r}}class MDt{#e=null;#t=new Map;#r=null;#n=null;constructor(e,r=Cd.DISPLAY){if(this.renderingIntent=r,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,this.#n=e.order;for(const n of e.groups)this.#t.set(n.id,new DDt(r,n));if(e.baseState==="OFF")for(const n of this.#t.values())n._setVisible(FS,!1);for(const n of e.on)this.#t.get(n)._setVisible(FS,!0);for(const n of e.off)this.#t.get(n)._setVisible(FS,!1);this.#r=this.getHash()}}#i(e){const r=e.length;if(r<2)return!0;const n=e[0];for(let i=1;i<r;i++){const a=e[i];let s;if(Array.isArray(a))s=this.#i(a);else if(this.#t.has(a))s=this.#t.get(a).visible;else return _i(`Optional content group not found: ${a}`),!0;switch(n){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return n==="And"}isVisible(e){if(this.#t.size===0)return!0;if(!e)return YB("Optional content group not defined."),!0;if(e.type==="OCG")return this.#t.has(e.id)?this.#t.get(e.id).visible:(_i(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return this.#i(e.expression);if(!e.policy||e.policy==="AnyOn"){for(const r of e.ids){if(!this.#t.has(r))return _i(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!0}return!1}else if(e.policy==="AllOn"){for(const r of e.ids){if(!this.#t.has(r))return _i(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!1}return!0}else if(e.policy==="AnyOff"){for(const r of e.ids){if(!this.#t.has(r))return _i(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!0}return!1}else if(e.policy==="AllOff"){for(const r of e.ids){if(!this.#t.has(r))return _i(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!1}return!0}return _i(`Unknown optional content policy ${e.policy}.`),!0}return _i(`Unknown group type ${e.type}.`),!0}setVisibility(e,r=!0,n=!0){const i=this.#t.get(e);if(!i){_i(`Optional content group not found: ${e}`);return}if(n&&r&&i.rbGroups.length)for(const a of i.rbGroups)for(const s of a)s!==e&&this.#t.get(s)?._setVisible(FS,!1,!0);i._setVisible(FS,!!r,!0),this.#e=null}setOCGState({state:e,preserveRB:r}){let n;for(const i of e){switch(i){case"ON":case"OFF":case"Toggle":n=i;continue}const a=this.#t.get(i);if(a)switch(n){case"ON":this.setVisibility(i,!0,r);break;case"OFF":this.setVisibility(i,!1,r);break;case"Toggle":this.setVisibility(i,!a.visible,r);break}}this.#e=null}get hasInitialVisibility(){return this.#r===null||this.getHash()===this.#r}getOrder(){return this.#t.size?this.#n?this.#n.slice():[...this.#t.keys()]:null}getGroup(e){return this.#t.get(e)||null}getHash(){if(this.#e!==null)return this.#e;const e=new KMe;for(const[r,n]of this.#t)e.update(`${r}:${n.visible}`);return this.#e=e.hexdigest()}[Symbol.iterator](){return this.#t.entries()}}class LDt{constructor(e,{disableRange:r=!1,disableStream:n=!1}){Go(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:i,initialData:a,progressiveDone:s,contentDispositionFilename:o}=e;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=o,a?.length>0){const l=a instanceof Uint8Array&&a.byteLength===a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!n,this._isRangeSupported=!r,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((l,u)=>{this._onReceiveData({begin:l,chunk:u})}),e.addProgressListener((l,u)=>{this._onProgress({loaded:l,total:u})}),e.addProgressiveReadListener(l=>{this._onReceiveData({chunk:l})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:r}){const n=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(e===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const i=this._rangeReaders.some(function(a){return a._begin!==e?!1:(a._enqueue(n),!0)});Go(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){e.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const r=this._rangeReaders.indexOf(e);r>=0&&this._rangeReaders.splice(r,1)}getFullReader(){Go(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new PDt(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,r){if(r<=this._progressiveDataLength)return null;const n=new FDt(this,e,r);return this._pdfDataRangeTransport.requestDataRange(e,r),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const r of this._rangeReaders.slice(0))r.cancel(e);this._pdfDataRangeTransport.abort()}}class PDt{constructor(e,r,n=!1,i=null){this._stream=e,this._done=n||!1,this._filename=Woe(i)?i:null,this._queuedChunks=r||[],this._loaded=0;for(const a of this._queuedChunks)this._loaded+=a.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class FDt{constructor(e,r,n){this._stream=e,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function BDt(t){let e=!0,r=n("filename\\*","i").exec(t);if(r){r=r[1];let d=o(r);return d=unescape(d),d=l(d),d=u(d),a(d)}if(r=s(t),r){const d=u(r);return a(d)}if(r=n("filename","i").exec(t),r){r=r[1];let d=o(r);return d=u(d),a(d)}function n(d,h){return new RegExp("(?:^|;)\\s*"+d+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',h)}function i(d,h){if(d){if(!/^[\x00-\xFF]+$/.test(h))return h;try{const f=new TextDecoder(d,{fatal:!0}),p=v5(h);h=f.decode(p),e=!1}catch{}}return h}function a(d){return e&&/[\x80-\xff]/.test(d)&&(d=i("utf-8",d),e&&(d=i("iso-8859-1",d))),d}function s(d){const h=[];let f;const p=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(f=p.exec(d))!==null;){let[,m,_,v]=f;if(m=parseInt(m,10),m in h){if(m===0)break;continue}h[m]=[_,v]}const g=[];for(let m=0;m<h.length&&m in h;++m){let[_,v]=h[m];v=o(v),_&&(v=unescape(v),m===0&&(v=l(v))),g.push(v)}return g.join("")}function o(d){if(d.startsWith('"')){const h=d.slice(1).split('\\"');for(let f=0;f<h.length;++f){const p=h[f].indexOf('"');p!==-1&&(h[f]=h[f].slice(0,p),h.length=f+1),h[f]=h[f].replaceAll(/\\(.)/g,"$1")}d=h.join('"')}return d}function l(d){const h=d.indexOf("'");if(h===-1)return d;const f=d.slice(0,h),g=d.slice(h+1).replace(/^[^']*'/,"");return i(f,g)}function u(d){return!d.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(d)?d:d.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(h,f,p,g){if(p==="q"||p==="Q")return g=g.replaceAll("_"," "),g=g.replaceAll(/=([0-9a-fA-F]{2})/g,function(m,_){return String.fromCharCode(parseInt(_,16))}),i(f,g);try{g=atob(g)}catch{}return i(f,g)})}return""}function tLe(t,e){const r=new Headers;if(!t||!e||typeof e!="object")return r;for(const n in e){const i=e[n];i!==void 0&&r.append(n,i)}return r}function XB(t){return URL.parse(t)?.origin??null}function rLe({responseHeaders:t,isHttp:e,rangeChunkSize:r,disableRange:n}){const i={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t.get("Content-Length"),10);return!Number.isInteger(a)||(i.suggestedLength=a,a<=2*r)||n||!e||t.get("Accept-Ranges")!=="bytes"||(t.get("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function nLe(t){const e=t.get("Content-Disposition");if(e){let r=BDt(e);if(r.includes("%"))try{r=decodeURIComponent(r)}catch{}if(Woe(r))return r}return null}function S5(t,e){return new n7(`Unexpected server response (${t}) while retrieving PDF "${e}".`,t,t===404||t===0&&e.startsWith("file:"))}function iLe(t){return t===200||t===206}function aLe(t,e,r){return{method:"GET",headers:t,signal:r.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function sLe(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:(_i(`getArrayBuffer - unexpected data format: ${t}`),new Uint8Array(t).buffer)}class UDt{_responseOrigin=null;constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.headers=tLe(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Go(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new $Dt(this),this._fullRequestReader}getRangeReader(e,r){if(r<=this._progressiveDataLength)return null;const n=new GDt(this,e,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class $Dt{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const r=e.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange;const n=new Headers(e.headers),i=r.url;fetch(i,aLe(n,this._withCredentials,this._abortController)).then(a=>{if(e._responseOrigin=XB(a.url),!iLe(a.status))throw S5(a.status,i);this._reader=a.body.getReader(),this._headersCapability.resolve();const s=a.headers,{allowRangeRequests:o,suggestedLength:l}=rLe({responseHeaders:s,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=l||this._contentLength,this._filename=nLe(s),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new l1("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:r}=await this._reader.read();return r?{value:e,done:r}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:sLe(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class GDt{constructor(e,r,n){this._stream=e,this._reader=null,this._loaded=0;const i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController;const a=new Headers(e.headers);a.append("Range",`bytes=${r}-${n-1}`);const s=i.url;fetch(s,aLe(a,this._withCredentials,this._abortController)).then(o=>{const l=XB(o.url);if(l!==e._responseOrigin)throw new Error(`Expected range response-origin "${l}" to match "${e._responseOrigin}".`);if(!iLe(o.status))throw S5(o.status,s);this._readCapability.resolve(),this._reader=o.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:r}=await this._reader.read();return r?{value:e,done:r}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:sLe(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}const bW=200,EW=206;function zDt(t){const e=t.response;return typeof e!="string"?e:v5(e).buffer}class qDt{_responseOrigin=null;constructor({url:e,httpHeaders:r,withCredentials:n}){this.url=e,this.isHttp=/^https?:/i.test(e),this.headers=tLe(this.isHttp,r),this.withCredentials=n||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(e){const r=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:r};r.open("GET",this.url),r.withCredentials=this.withCredentials;for(const[a,s]of this.headers)r.setRequestHeader(a,s);return this.isHttp&&"begin"in e&&"end"in e?(r.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=EW):i.expectedStatus=bW,r.responseType="arraybuffer",Go(e.onError,"Expected `onError` callback to be provided."),r.onerror=()=>{e.onError(r.status)},r.onreadystatechange=this.onStateChange.bind(this,n),r.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,r.send(null),n}onProgress(e,r){const n=this.pendingRequests[e];n&&n.onProgress?.(r)}onStateChange(e,r){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),i.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],i.status===0&&this.isHttp){n.onError(i.status);return}const a=i.status||bW;if(!(a===bW&&n.expectedStatus===EW)&&a!==n.expectedStatus){n.onError(i.status);return}const o=zDt(i);if(a===EW){const l=i.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);u?n.onDone({begin:parseInt(u[1],10),chunk:o}):(_i('Missing or invalid "Content-Range" header.'),n.onError(0))}else o?n.onDone({begin:0,chunk:o}):n.onError(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const r=this.pendingRequests[e].xhr;delete this.pendingRequests[e],r.abort()}}class VDt{constructor(e){this._source=e,this._manager=new qDt(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const r=this._rangeRequestReaders.indexOf(e);r>=0&&this._rangeRequestReaders.splice(r,1)}getFullReader(){return Go(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new HDt(this._manager,this._source),this._fullRequestReader}getRangeReader(e,r){const n=new YDt(this._manager,e,r);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class HDt{constructor(e,r){this._manager=e,this._url=r.url,this._fullRequestId=e.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,r=this._manager.getRequestXhr(e);this._manager._responseOrigin=XB(r.responseURL);const n=r.getAllResponseHeaders(),i=new Headers(n?n.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(o=>{const[l,...u]=o.split(": ");return[l,u.join(": ")]}):[]),{allowRangeRequests:a,suggestedLength:s}=rLe({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=nLe(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=S5(e,this._url),this._headersCapability.reject(this._storedError);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e);for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class YDt{constructor(e,r,n){this._manager=e,this._url=e.url,this._requestId=e.request({begin:r,end:n,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){const e=XB(this._manager.getRequestXhr(this._requestId)?.responseURL);e!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${e}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(e){const r=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:r,done:!1}):this._queuedChunk=r,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError??=S5(e,this._url);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const WDt=/^[a-z][a-z0-9\-+.]+:/i;function KDt(t){if(WDt.test(t))return new URL(t);const e=process.getBuiltinModule("url");return new URL(e.pathToFileURL(t))}class jDt{constructor(e){this.source=e,this.url=KDt(e.url),Go(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Go(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new XDt(this),this._fullRequestReader}getRangeReader(e,r){if(r<=this._progressiveDataLength)return null;const n=new QDt(this,e,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class XDt{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const r=e.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const n=process.getBuiltinModule("fs");n.promises.lstat(this._url).then(i=>{this._contentLength=i.size,this._setReadableStream(n.createReadStream(this._url)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=S5(0,this._url.href)),this._storedError=i,this._headersCapability.reject(i)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",r=>{this._error(r)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new l1("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class QDt{constructor(e,r,n){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const i=e.source;this._isStreamingSupported=!i.disableStream;const a=process.getBuiltinModule("fs");this._setReadableStream(a.createReadStream(this._url,{start:r,end:n-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",r=>{this._error(r)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const bO=Symbol("INITIAL_DATA");class oLe{#e=Object.create(null);#t(e){return this.#e[e]||={...Promise.withResolvers(),data:bO}}get(e,r=null){if(r){const i=this.#t(e);return i.promise.then(()=>r(i.data)),null}const n=this.#e[e];if(!n||n.data===bO)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){const r=this.#e[e];return!!r&&r.data!==bO}delete(e){const r=this.#e[e];return!r||r.data===bO?!1:(delete this.#e[e],!0)}resolve(e,r=null){const n=this.#t(e);n.data=r,n.resolve()}clear(){for(const e in this.#e){const{data:r}=this.#e[e];r?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const e in this.#e){const{data:r}=this.#e[e];r!==bO&&(yield[e,r])}}}const ZDt=1e5,hSe=30;class Yc{#e=Promise.withResolvers();#t=null;#r=!1;#n=!!globalThis.FontInspector?.enabled;#i=null;#a=null;#s=0;#o=0;#c=null;#l=null;#d=0;#u=0;#p=Object.create(null);#g=[];#f=null;#h=[];#m=new WeakMap;#v=null;static#_=new Map;static#b=new Map;static#E=new WeakMap;static#y=null;static#S=new Set;constructor({textContentSource:e,container:r,viewport:n}){if(e instanceof ReadableStream)this.#f=e;else if(typeof e=="object")this.#f=new ReadableStream({start(l){l.enqueue(e),l.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#l=r,this.#u=n.scale*gg.pixelRatio,this.#d=n.rotation,this.#a={div:null,properties:null,ctx:null};const{pageWidth:i,pageHeight:a,pageX:s,pageY:o}=n.rawDims;this.#v=[1,0,0,-1,-s,o+a],this.#o=i,this.#s=a,Yc.#A(),Cb(r,n),this.#e.promise.finally(()=>{Yc.#S.delete(this),this.#a=null,this.#p=null}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:e,isFirefox:r}=ec.platform;return qi(this,"fontFamilyMap",new Map([["sans-serif",`${e&&r?"Calibri, ":""}sans-serif`],["monospace",`${e&&r?"Lucida Console, ":""}monospace`]]))}render(){const e=()=>{this.#c.read().then(({value:r,done:n})=>{if(n){this.#e.resolve();return}this.#i??=r.lang,Object.assign(this.#p,r.styles),this.#T(r.items),e()},this.#e.reject)};return this.#c=this.#f.getReader(),Yc.#S.add(this),e(),this.#e.promise}update({viewport:e,onBefore:r=null}){const n=e.scale*gg.pixelRatio,i=e.rotation;if(i!==this.#d&&(r?.(),this.#d=i,Cb(this.#l,{rotation:i})),n!==this.#u){r?.(),this.#u=n;const a={div:null,properties:null,ctx:Yc.#O(this.#i)};for(const s of this.#h)a.properties=this.#m.get(s),a.div=s,this.#I(a)}}cancel(){const e=new l1("TextLayer task cancelled.");this.#c?.cancel(e).catch(()=>{}),this.#c=null,this.#e.reject(e)}get textDivs(){return this.#h}get textContentItemsStr(){return this.#g}#T(e){if(this.#r)return;this.#a.ctx??=Yc.#O(this.#i);const r=this.#h,n=this.#g;for(const i of e){if(r.length>ZDt){_i("Ignoring additional textDivs for performance reasons."),this.#r=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){const a=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),i.id&&this.#t.setAttribute("id",`${i.id}`),a.append(this.#t)}else i.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(i.str),this.#C(i)}}#C(e){const r=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};this.#h.push(r);const i=$n.transform(this.#v,e.transform);let a=Math.atan2(i[1],i[0]);const s=this.#p[e.fontName];s.vertical&&(a+=Math.PI/2);let o=this.#n&&s.fontSubstitution||s.fontFamily;o=Yc.fontFamilyMap.get(o)||o;const l=Math.hypot(i[2],i[3]),u=l*Yc.#k(o,s,this.#i);let d,h;a===0?(d=i[4],h=i[5]-u):(d=i[4]+u*Math.sin(a),h=i[5]-u*Math.cos(a));const f="calc(var(--total-scale-factor) *",p=r.style;this.#t===this.#l?(p.left=`${(100*d/this.#o).toFixed(2)}%`,p.top=`${(100*h/this.#s).toFixed(2)}%`):(p.left=`${f}${d.toFixed(2)}px)`,p.top=`${f}${h.toFixed(2)}px)`),p.fontSize=`${f}${(Yc.#y*l).toFixed(2)}px)`,p.fontFamily=o,n.fontSize=l,r.setAttribute("role","presentation"),r.textContent=e.str,r.dir=e.dir,this.#n&&(r.dataset.fontName=s.fontSubstitutionLoadedName||e.fontName),a!==0&&(n.angle=a*(180/Math.PI));let g=!1;if(e.str.length>1)g=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const m=Math.abs(e.transform[0]),_=Math.abs(e.transform[3]);m!==_&&Math.max(m,_)/Math.min(m,_)>1.5&&(g=!0)}if(g&&(n.canvasWidth=s.vertical?e.height:e.width),this.#m.set(r,n),this.#a.div=r,this.#a.properties=n,this.#I(this.#a),n.hasText&&this.#t.append(r),n.hasEOL){const m=document.createElement("br");m.setAttribute("role","presentation"),this.#t.append(m)}}#I(e){const{div:r,properties:n,ctx:i}=e,{style:a}=r;let s="";if(Yc.#y>1&&(s=`scale(${1/Yc.#y})`),n.canvasWidth!==0&&n.hasText){const{fontFamily:o}=a,{canvasWidth:l,fontSize:u}=n;Yc.#R(i,u*this.#u,o);const{width:d}=i.measureText(r.textContent);d>0&&(s=`scaleX(${l*this.#u/d}) ${s}`)}n.angle!==0&&(s=`rotate(${n.angle}deg) ${s}`),s.length>0&&(a.transform=s)}static cleanup(){if(!(this.#S.size>0)){this.#_.clear();for(const{canvas:e}of this.#b.values())e.remove();this.#b.clear()}}static#O(e=null){let r=this.#b.get(e||="");if(!r){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=e,document.body.append(n),r=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#b.set(e,r),this.#E.set(r,{size:0,family:""})}return r}static#R(e,r,n){const i=this.#E.get(e);r===i.size&&n===i.family||(e.font=`${r}px ${n}`,i.size=r,i.family=n)}static#A(){if(this.#y!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),this.#y=e.getBoundingClientRect().height,e.remove()}static#k(e,r,n){const i=this.#_.get(e);if(i)return i;const a=this.#O(n);a.canvas.width=a.canvas.height=hSe,this.#R(a,hSe,e);const s=a.measureText(""),o=s.fontBoundingBoxAscent,l=Math.abs(s.fontBoundingBoxDescent);a.canvas.width=a.canvas.height=0;let u=.8;return o?u=o/(o+l):(ec.platform.isFirefox&&_i("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),r.ascent?u=r.ascent:r.descent&&(u=1+r.descent)),this.#_.set(e,u),u}}class _k{static textContent(e){const r=[],n={items:r,styles:Object.create(null)};function i(a){if(!a)return;let s=null;const o=a.name;if(o==="#text")s=a.value;else if(_k.shouldBuildText(o))a?.attributes?.textContent?s=a.attributes.textContent:a.value&&(s=a.value);else return;if(s!==null&&r.push({str:s}),!!a.children)for(const l of a.children)i(l)}return i(e),n}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}}const JDt=100;function ele(t={}){typeof t=="string"||t instanceof URL?t={url:t}:(t instanceof ArrayBuffer||ArrayBuffer.isView(t))&&(t={data:t});const e=new tle,{docId:r}=e,n=t.url?lDt(t.url):null,i=t.data?cDt(t.data):null,a=t.httpHeaders||null,s=t.withCredentials===!0,o=t.password??null,l=t.range instanceof lLe?t.range:null,u=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:2**16;let d=t.worker instanceof vk?t.worker:null;const h=t.verbosity,f=typeof t.docBaseUrl=="string"&&!WB(t.docBaseUrl)?t.docBaseUrl:null,p=WM(t.cMapUrl),g=t.cMapPacked!==!1,m=t.CMapReaderFactory||(Kc?_Dt:eSe),_=WM(t.iccUrl),v=WM(t.standardFontDataUrl),y=t.StandardFontDataFactory||(Kc?vDt:tSe),b=WM(t.wasmUrl),E=t.WasmFactory||(Kc?yDt:rSe),S=t.stopAtErrors!==!0,T=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,C=t.isEvalSupported!==!1,x=typeof t.isOffscreenCanvasSupported=="boolean"?t.isOffscreenCanvasSupported:!Kc,A=typeof t.isImageDecoderSupported=="boolean"?t.isImageDecoderSupported:!Kc&&(ec.platform.isFirefox||!globalThis.chrome),R=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,I=typeof t.disableFontFace=="boolean"?t.disableFontFace:Kc,L=t.fontExtraProperties===!0,F=t.enableXfa===!0,O=t.ownerDocument||globalThis.document,D=t.disableRange===!0,M=t.disableStream===!0,P=t.disableAutoFetch===!0,N=t.pdfBug===!0,$=t.CanvasFactory||(Kc?mDt:fDt),U=t.FilterFactory||(Kc?gDt:pDt),B=t.enableHWA===!0,V=t.useWasm!==!1,z=l?l.length:t.length??NaN,G=typeof t.useSystemFonts=="boolean"?t.useSystemFonts:!Kc&&!I,Y=typeof t.useWorkerFetch=="boolean"?t.useWorkerFetch:!!(m===eSe&&y===tSe&&E===rSe&&p&&v&&b&&vI(p,document.baseURI)&&vI(v,document.baseURI)&&vI(b,document.baseURI)),W=null;$5t(h);const Q={canvasFactory:new $({ownerDocument:O,enableHWA:B}),filterFactory:new U({docId:r,ownerDocument:O}),cMapReaderFactory:Y?null:new m({baseUrl:p,isCompressed:g}),standardFontDataFactory:Y?null:new y({baseUrl:v}),wasmFactory:Y?null:new E({baseUrl:b})};d||(d=vk.create({verbosity:h,port:VT.workerPort}),e._worker=d);const ie={docId:r,apiVersion:"5.4.54",data:i,password:o,disableAutoFetch:P,rangeChunkSize:u,length:z,docBaseUrl:f,enableXfa:F,evaluatorOptions:{maxImageSize:T,disableFontFace:I,ignoreErrors:S,isEvalSupported:C,isOffscreenCanvasSupported:x,isImageDecoderSupported:A,canvasMaxAreaInBytes:R,fontExtraProperties:L,useSystemFonts:G,useWasm:V,useWorkerFetch:Y,cMapUrl:p,iccUrl:_,standardFontDataUrl:v,wasmUrl:b}},Z={ownerDocument:O,pdfBug:N,styleElement:W,loadingParams:{disableAutoFetch:P,enableXfa:F}};return d.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const re=d.messageHandler.sendWithPromise("GetDocRequest",ie,i?[i.buffer]:null);let K;if(l)K=new LDt(l,{disableRange:D,disableStream:M});else if(!i){if(!n)throw new Error("getDocument - no `url` parameter provided.");const j=vI(n)?UDt:Kc?jDt:VDt;K=new j({url:n,length:z,httpHeaders:a,withCredentials:s,rangeChunkSize:u,disableRange:D,disableStream:M})}return re.then(j=>{if(e.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const se=new yI(r,j,d.port),le=new r4t(se,e,K,Z,Q,B);e._transport=le,se.send("Ready",null)})}).catch(e._capability.reject),e}class tle{static#e=0;_capability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${tle.#e++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}}class lLe{#e=Promise.withResolvers();#t=[];#r=[];#n=[];#i=[];constructor(e,r,n=!1,i=null){this.length=e,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=i}addRangeListener(e){this.#i.push(e)}addProgressListener(e){this.#n.push(e)}addProgressiveReadListener(e){this.#r.push(e)}addProgressiveDoneListener(e){this.#t.push(e)}onDataRange(e,r){for(const n of this.#i)n(e,r)}onDataProgress(e,r){this.#e.promise.then(()=>{for(const n of this.#n)n(e,r)})}onDataProgressiveRead(e){this.#e.promise.then(()=>{for(const r of this.#r)r(e)})}onDataProgressiveDone(){this.#e.promise.then(()=>{for(const e of this.#t)e()})}transportReady(){this.#e.resolve()}requestDataRange(e,r){Wa("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class e4t{constructor(e,r){this._pdfInfo=e,this._transport=r}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return qi(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(r)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class t4t{#e=!1;constructor(e,r,n,i=!1){this._pageIndex=e,this._pageInfo=r,this._transport=n,this._stats=i?new QEe:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new oLe,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:r=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:a=!1}={}){return new b5({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:r,offsetX:n,offsetY:i,dontFlip:a})}getAnnotations({intent:e="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,r)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return qi(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,canvas:r=e.canvas,viewport:n,intent:i="display",annotationMode:a=O_.ENABLE,transform:s=null,background:o=null,optionalContentConfigPromise:l=null,annotationCanvasMap:u=null,pageColors:d=null,printAnnotationStorage:h=null,isEditing:f=!1}){this._stats?.time("Overall");const p=this._transport.getRenderingIntent(i,a,h,f),{renderingIntent:g,cacheKey:m}=p;this.#e=!1,l||=this._transport.getOptionalContentConfig(g);let _=this._intentStates.get(m);_||(_=Object.create(null),this._intentStates.set(m,_)),_.streamReaderCancelTimeout&&(clearTimeout(_.streamReaderCancelTimeout),_.streamReaderCancelTimeout=null);const v=!!(g&Cd.PRINT);_.displayReadyCapability||(_.displayReadyCapability=Promise.withResolvers(),_.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(p));const y=S=>{_.renderTasks.delete(b),v&&(this.#e=!0),this.#t(),S?(b.capability.reject(S),this._abortOperatorList({intentState:_,reason:S instanceof Error?S:new Error(S)})):b.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},b=new pT({callback:y,params:{canvas:r,canvasContext:e,viewport:n,transform:s,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:_.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:d,enableHWA:this._transport.enableHWA});(_.renderTasks||=new Set).add(b);const E=b.task;return Promise.all([_.displayReadyCapability.promise,l]).then(([S,T])=>{if(this.destroyed){y();return}if(this._stats?.time("Rendering"),!(T.renderingIntent&g))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");b.initializeGraphics({transparency:S,optionalContentConfig:T}),b.operatorListChanged()}).catch(y),E}getOperatorList({intent:e="display",annotationMode:r=O_.ENABLE,printAnnotationStorage:n=null,isEditing:i=!1}={}){function a(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(l))}const s=this._transport.getRenderingIntent(e,r,n,i,!0);let o=this._intentStates.get(s.cacheKey);o||(o=Object.create(null),this._intentStates.set(s.cacheKey,o));let l;return o.opListReadCapability||(l=Object.create(null),l.operatorListChanged=a,o.opListReadCapability=Promise.withResolvers(),(o.renderTasks||=new Set).add(l),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(s)),o.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:r=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:r===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>_k.textContent(n));const r=this.streamTextContent(e);return new Promise(function(n,i){function a(){s.read().then(function({value:l,done:u}){if(u){n(o);return}o.lang??=l.lang,Object.assign(o.styles,l.styles),o.items.push(...l.items),a()},i)}const s=r.getReader(),o={items:[],styles:Object.create(null),lang:null};a()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const r of this._intentStates.values())if(this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),!r.opListReadCapability)for(const n of r.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),this.#e=!1,Promise.all(e)}cleanup(e=!1){this.#e=!0;const r=this.#t();return e&&r&&(this._stats&&=new QEe),r}#t(){if(!this.#e||this.destroyed)return!1;for(const{renderTasks:e,operatorList:r}of this._intentStates.values())if(e.size>0||!r.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#e=!1,!0}_startRenderPage(e,r){const n=this._intentStates.get(r);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(e))}_renderPageChunk(e,r){for(let n=0,i=e.length;n<i;n++)r.operatorList.fnArray.push(e.fnArray[n]),r.operatorList.argsArray.push(e.argsArray[n]);r.operatorList.lastChunk=e.lastChunk,r.operatorList.separateAnnots=e.separateAnnots;for(const n of r.renderTasks)n.operatorListChanged();e.lastChunk&&this.#t()}_pumpOperatorList({renderingIntent:e,cacheKey:r,annotationStorageSerializable:n,modifiedIds:i}){const{map:a,transfer:s}=n,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:r,annotationStorage:a,modifiedIds:i},s).getReader(),u=this._intentStates.get(r);u.streamReader=l;const d=()=>{l.read().then(({value:h,done:f})=>{if(f){u.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(h,u),d())},h=>{if(u.streamReader=null,!this._transport.destroyed){if(u.operatorList){u.operatorList.lastChunk=!0;for(const f of u.renderTasks)f.operatorListChanged();this.#t()}if(u.displayReadyCapability)u.displayReadyCapability.reject(h);else if(u.opListReadCapability)u.opListReadCapability.reject(h);else throw h}})};d()}_abortOperatorList({intentState:e,reason:r,force:n=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!n){if(e.renderTasks.size>0)return;if(r instanceof Yoe){let i=JDt;r.extraDelay>0&&r.extraDelay<1e3&&(i+=r.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:r,force:!0})},i);return}}if(e.streamReader.cancel(new l1(r.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[i,a]of this._intentStates)if(a===e){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}var N_,hf,xm,Hy,NF,Yy,Wy,cu,kP,cLe,uLe,bI,pC,DP;const Cs=class Cs{constructor({name:e=null,port:r=null,verbosity:n=G5t()}={}){pp(this,cu);pp(this,N_,Promise.withResolvers());pp(this,hf,null);pp(this,xm,null);pp(this,Hy,null);if(this.name=e,this.destroyed=!1,this.verbosity=n,r){if(Ss(Cs,Wy).has(r))throw new Error("Cannot use more than one PDFWorker per port.");Ss(Cs,Wy).set(r,this),gp(this,cu,cLe).call(this,r)}else gp(this,cu,uLe).call(this)}get promise(){return Ss(this,N_).promise}get port(){return Ss(this,xm)}get messageHandler(){return Ss(this,hf)}destroy(){this.destroyed=!0,Ss(this,Hy)?.terminate(),Iu(this,Hy,null),Ss(Cs,Wy).delete(Ss(this,xm)),Iu(this,xm,null),Ss(this,hf)?.destroy(),Iu(this,hf,null)}static create(e){const r=Ss(this,Wy).get(e?.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}return new Cs(e)}static get workerSrc(){if(VT.workerSrc)return VT.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return qi(this,"_setupFakeWorkerGlobal",(async()=>Ss(this,pC,DP)?Ss(this,pC,DP):(await import(this.workerSrc)).WorkerMessageHandler)())}};N_=new WeakMap,hf=new WeakMap,xm=new WeakMap,Hy=new WeakMap,NF=new WeakMap,Yy=new WeakMap,Wy=new WeakMap,cu=new WeakSet,kP=function(){Ss(this,N_).resolve(),Ss(this,hf).send("configure",{verbosity:this.verbosity})},cLe=function(e){Iu(this,xm,e),Iu(this,hf,new yI("main","worker",e)),Ss(this,hf).on("ready",()=>{}),gp(this,cu,kP).call(this)},uLe=function(){if(Ss(Cs,Yy)||Ss(Cs,pC,DP)){gp(this,cu,bI).call(this);return}let{workerSrc:e}=Cs;try{Cs._isSameOrigin(window.location,e)||(e=Cs._createCDNWrapper(new URL(e,window.location).href));const r=new Worker(e,{type:"module"}),n=new yI("main","worker",r),i=()=>{a.abort(),n.destroy(),r.terminate(),this.destroyed?Ss(this,N_).reject(new Error("Worker was destroyed")):gp(this,cu,bI).call(this)},a=new AbortController;r.addEventListener("error",()=>{Ss(this,Hy)||i()},{signal:a.signal}),n.on("test",o=>{if(a.abort(),this.destroyed||!o){i();return}Iu(this,hf,n),Iu(this,xm,r),Iu(this,Hy,r),gp(this,cu,kP).call(this)}),n.on("ready",o=>{if(a.abort(),this.destroyed){i();return}try{s()}catch{gp(this,cu,bI).call(this)}});const s=()=>{const o=new Uint8Array;n.send("test",o,[o.buffer])};s();return}catch{YB("The worker has been disabled.")}gp(this,cu,bI).call(this)},bI=function(){Ss(Cs,Yy)||(_i("Setting up fake worker."),Iu(Cs,Yy,!0)),Cs._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){Ss(this,N_).reject(new Error("Worker was destroyed"));return}const r=new hDt;Iu(this,xm,r);const n=`fake${hge(Cs,NF)._++}`,i=new yI(n+"_worker",n,r);e.setup(i,r),Iu(this,hf,new yI(n,n+"_worker",r)),gp(this,cu,kP).call(this)}).catch(e=>{Ss(this,N_).reject(new Error(`Setting up fake worker failed: "${e.message}".`))})},pC=new WeakSet,DP=function(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}},pp(Cs,pC),pp(Cs,NF,0),pp(Cs,Yy,!1),pp(Cs,Wy,new WeakMap),Kc&&(Iu(Cs,Yy,!0),VT.workerSrc||="./pdf.worker.mjs"),Cs._isSameOrigin=(e,r)=>{const n=URL.parse(e);if(!n?.origin||n.origin==="null")return!1;const i=new URL(r,n);return n.origin===i.origin},Cs._createCDNWrapper=e=>{const r=`await import("${e}");`;return URL.createObjectURL(new Blob([r],{type:"text/javascript"}))},Cs.fromPort=e=>{if(J5t("`PDFWorker.fromPort` - please use `PDFWorker.create` instead."),!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return Cs.create(e)};let vk=Cs;class r4t{#e=new Map;#t=new Map;#r=new Map;#n=new Map;#i=null;constructor(e,r,n,i,a,s){this.messageHandler=e,this.loadingTask=r,this.commonObjs=new oLe,this.fontLoader=new sDt({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=a.canvasFactory,this.filterFactory=a.filterFactory,this.cMapReaderFactory=a.cMapReaderFactory,this.standardFontDataFactory=a.standardFontDataFactory,this.wasmFactory=a.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.enableHWA=s,this.setupMessageHandler()}#a(e,r=null){const n=this.#e.get(e);if(n)return n;const i=this.messageHandler.sendWithPromise(e,r);return this.#e.set(e,i),i}get annotationStorage(){return qi(this,"annotationStorage",new Xoe)}getRenderingIntent(e,r=O_.ENABLE,n=null,i=!1,a=!1){let s=Cd.DISPLAY,o=QZ;switch(e){case"any":s=Cd.ANY;break;case"display":break;case"print":s=Cd.PRINT;break;default:_i(`getRenderingIntent - invalid intent: ${e}`)}const l=s&Cd.PRINT&&n instanceof jMe?n:this.annotationStorage;switch(r){case O_.DISABLE:s+=Cd.ANNOTATIONS_DISABLE;break;case O_.ENABLE:break;case O_.ENABLE_FORMS:s+=Cd.ANNOTATIONS_FORMS;break;case O_.ENABLE_STORAGE:s+=Cd.ANNOTATIONS_STORAGE,o=l.serializable;break;default:_i(`getRenderingIntent - invalid annotationMode: ${r}`)}i&&(s+=Cd.IS_EDITING),a&&(s+=Cd.OPLIST);const{ids:u,hash:d}=l.modifiedIds,h=[s,o.hash,d];return{renderingIntent:s,cacheKey:h.join("_"),annotationStorageSerializable:o,modifiedIds:u}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#i?.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const n of this.#t.values())e.push(n._destroy());this.#t.clear(),this.#r.clear(),this.#n.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const r=this.messageHandler.sendWithPromise("Terminate",null);return e.push(r),Promise.all(e).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),Yc.cleanup(),this._networkStream?.cancelAllRequests(new l1("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:r}=this;e.on("GetReader",(n,i)=>{Go(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=a=>{this._lastProgress={loaded:a.loaded,total:a.total}},i.onPull=()=>{this._fullReader.read().then(function({value:a,done:s}){if(s){i.close();return}Go(a instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{this._fullReader.cancel(a),i.ready.catch(s=>{if(!this.destroyed)throw s})}}),e.on("ReaderHeadersReady",async n=>{await this._fullReader.headersReady;const{isStreamingSupported:i,isRangeSupported:a,contentLength:s}=this._fullReader;return(!i||!a)&&(this._lastProgress&&r.onProgress?.(this._lastProgress),this._fullReader.onProgress=o=>{r.onProgress?.({loaded:o.loaded,total:o.total})}),{isStreamingSupported:i,isRangeSupported:a,contentLength:s}}),e.on("GetRangeReader",(n,i)=>{Go(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const a=this._networkStream.getRangeReader(n.begin,n.end);if(!a){i.close();return}i.onPull=()=>{a.read().then(function({value:s,done:o}){if(o){i.close();return}Go(s instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(s),1,[s])}).catch(s=>{i.error(s)})},i.onCancel=s=>{a.cancel(s),i.ready.catch(o=>{if(!this.destroyed)throw o})}}),e.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,r._capability.resolve(new e4t(n,this))}),e.on("DocException",n=>{r._capability.reject(Lu(n))}),e.on("PasswordRequest",n=>{this.#i=Promise.withResolvers();try{if(!r.onPassword)throw Lu(n);const i=a=>{a instanceof Error?this.#i.reject(a):this.#i.resolve({password:a})};r.onPassword(i,n.code)}catch(i){this.#i.reject(i)}return this.#i.promise}),e.on("DataLoaded",n=>{r.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),e.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),e.on("commonobj",([n,i,a])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(i){case"Font":if("error"in a){const u=a.error;_i(`Error during font loading: ${u}`),this.commonObjs.resolve(n,u);break}const s=this._params.pdfBug&&globalThis.FontInspector?.enabled?(u,d)=>globalThis.FontInspector.fontAdded(u,d):null,o=new oDt(a,s);this.fontLoader.bind(o).catch(()=>e.sendWithPromise("FontFallback",{id:n})).finally(()=>{!o.fontExtraProperties&&o.data&&(o.data=null),this.commonObjs.resolve(n,o)});break;case"CopyLocalImage":const{imageRef:l}=a;Go(l,"The imageRef must be defined.");for(const u of this.#t.values())for(const[,d]of u.objs)if(d?.ref===l)return d.dataLen?(this.commonObjs.resolve(n,structuredClone(d)),d.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,a);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),e.on("obj",([n,i,a,s])=>{if(this.destroyed)return;const o=this.#t.get(i);if(!o.objs.has(n)){if(o._intentStates.size===0){s?.bitmap?.close();return}switch(a){case"Image":case"Pattern":o.objs.resolve(n,s);break;default:throw new Error(`Got unknown object type ${a}`)}}}),e.on("DocProgress",n=>{this.destroyed||r.onProgress?.({loaded:n.loaded,total:n.total})}),e.on("FetchBinaryData",async n=>{if(this.destroyed)throw new Error("Worker was destroyed.");const i=this[n.type];if(!i)throw new Error(`${n.type} not initialized, see the \`useWorkerFetch\` parameter.`);return i.fetch(n)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&_i("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfer:r}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},r).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const r=e-1,n=this.#r.get(r);if(n)return n;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(a=>{if(this.destroyed)throw new Error("Transport destroyed");a.refStr&&this.#n.set(a.refStr,e);const s=new t4t(r,a,this,this._params.pdfBug);return this.#t.set(r,s),s});return this.#r.set(r,i),i}getPageIndex(e){return ZZ(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,r){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:r})}getFieldObjects(){return this.#a("GetFieldObjects")}hasJSActions(){return this.#a("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#a("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return this.#a("GetOptionalContentConfig").then(r=>new MDt(r,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",r=this.#e.get(e);if(r)return r;const n=this.messageHandler.sendWithPromise(e,null).then(i=>({info:i[0],metadata:i[1]?new kDt(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const r of this.#t.values())if(!r.cleanup())throw new Error(`startCleanup: Page ${r.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),Yc.cleanup()}}cachedPageNumber(e){if(!ZZ(e))return null;const r=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return this.#n.get(r)??null}}class n4t{#e=null;onContinue=null;onError=null;constructor(e){this.#e=e}get promise(){return this.#e.capability.promise}cancel(e=0){this.#e.cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=this.#e.operatorList;if(!e)return!1;const{annotationCanvasMap:r}=this.#e;return e.form||e.canvas&&r?.size>0}}class pT{#e=null;static#t=new WeakSet;constructor({callback:e,params:r,objs:n,commonObjs:i,annotationCanvasMap:a,operatorList:s,pageIndex:o,canvasFactory:l,filterFactory:u,useRequestAnimationFrame:d=!1,pdfBug:h=!1,pageColors:f=null,enableHWA:p=!1}){this.callback=e,this.params=r,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=o,this.canvasFactory=l,this.filterFactory=u,this._pdfBug=h,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=d===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new n4t(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvas,this._canvasContext=r.canvas?null:r.canvasContext,this._enableHWA=p}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:r}){if(this.cancelled)return;if(this._canvas){if(pT.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");pT.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{viewport:n,transform:i,background:a}=this.params,s=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new qT(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:r},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:i,viewport:n,transparency:e,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,r=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),pT.#t.delete(this._canvas),e||=new Yoe(`Rendering cancelled, page ${this._pageIndex+1}`,r),this.callback(e),this.task.onError?.(e)}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),pT.#t.delete(this._canvas),this.callback())))}}const i4t="5.4.54",a4t="295fb3ec4";class yh{#e=null;#t=null;#r;#n=null;#i=!1;#a=!1;#s=null;#o;#c=null;#l=null;static#d=null;static get _keyboardManager(){return qi(this,"_keyboardManager",new E5([[["Escape","mac+Escape"],yh.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],yh.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],yh.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],yh.prototype._moveToPrevious],[["Home","mac+Home"],yh.prototype._moveToBeginning],[["End","mac+End"],yh.prototype._moveToEnd]]))}constructor({editor:e=null,uiManager:r=null}){e?(this.#a=!1,this.#s=e):this.#a=!0,this.#l=e?._uiManager||r,this.#o=this.#l._eventBus,this.#r=e?.color?.toUpperCase()||this.#l?.highlightColors.values().next().value||"#FFFF98",yh.#d||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){const e=this.#e=document.createElement("button");e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.ariaHasPopup="true",this.#s&&(e.ariaControls=`${this.#s.id}_colorpicker_dropdown`);const r=this.#l._signal;e.addEventListener("click",this.#f.bind(this),{signal:r}),e.addEventListener("keydown",this.#g.bind(this),{signal:r});const n=this.#t=document.createElement("span");return n.className="swatch",n.ariaHidden="true",n.style.backgroundColor=this.#r,e.append(n),e}renderMainDropdown(){const e=this.#n=this.#u();return e.ariaOrientation="horizontal",e.ariaLabelledBy="highlightColorPickerLabel",e}#u(){const e=document.createElement("div"),r=this.#l._signal;e.addEventListener("contextmenu",Gh,{signal:r}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),this.#s&&(e.id=`${this.#s.id}_colorpicker_dropdown`);for(const[n,i]of this.#l.highlightColors){const a=document.createElement("button");a.tabIndex="0",a.role="option",a.setAttribute("data-color",i),a.title=n,a.setAttribute("data-l10n-id",yh.#d[n]);const s=document.createElement("span");a.append(s),s.className="swatch",s.style.backgroundColor=i,a.ariaSelected=i===this.#r,a.addEventListener("click",this.#p.bind(this,i),{signal:r}),e.append(a)}return e.addEventListener("keydown",this.#g.bind(this),{signal:r}),e}#p(e,r){r.stopPropagation(),this.#o.dispatch("switchannotationeditorparams",{source:this,type:aa.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}_colorSelectFromKeyboard(e){if(e.target===this.#e){this.#f(e);return}const r=e.target.getAttribute("data-color");r&&this.#p(r,e)}_moveToNext(e){if(!this.#m){this.#f(e);return}if(e.target===this.#e){this.#n.firstChild?.focus();return}e.target.nextSibling?.focus()}_moveToPrevious(e){if(e.target===this.#n?.firstChild||e.target===this.#e){this.#m&&this._hideDropdownFromKeyboard();return}this.#m||this.#f(e),e.target.previousSibling?.focus()}_moveToBeginning(e){if(!this.#m){this.#f(e);return}this.#n.firstChild?.focus()}_moveToEnd(e){if(!this.#m){this.#f(e);return}this.#n.lastChild?.focus()}#g(e){yh._keyboardManager.exec(this,e)}#f(e){if(this.#m){this.hideDropdown();return}if(this.#i=e.detail===0,this.#c||(this.#c=new AbortController,window.addEventListener("pointerdown",this.#h.bind(this),{signal:this.#l.combinedSignal(this.#c)})),this.#e.ariaExpanded="true",this.#n){this.#n.classList.remove("hidden");return}const r=this.#n=this.#u();this.#e.append(r)}#h(e){this.#n?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#n?.classList.add("hidden"),this.#e.ariaExpanded="false",this.#c?.abort(),this.#c=null}get#m(){return this.#n&&!this.#n.classList.contains("hidden")}_hideDropdownFromKeyboard(){if(!this.#a){if(!this.#m){this.#s?.unselect();return}this.hideDropdown(),this.#e.focus({preventScroll:!0,focusVisible:this.#i})}}updateColor(e){if(this.#t&&(this.#t.style.backgroundColor=e),!this.#n)return;const r=this.#l.highlightColors.values();for(const n of this.#n.children)n.ariaSelected=r.next().value===e.toUpperCase()}destroy(){this.#e?.remove(),this.#e=null,this.#t=null,this.#n?.remove(),this.#n=null}}class yk{#e=null;#t=null;#r=null;static#n=null;constructor(e){this.#t=e,this.#r=e._uiManager,yk.#n||=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"})}renderButton(){if(this.#e)return this.#e;const{editorType:e,colorType:r,colorValue:n}=this.#t,i=this.#e=document.createElement("input");return i.type="color",i.value=n||"#000000",i.className="basicColorPicker",i.tabIndex=0,i.setAttribute("data-l10n-id",yk.#n[e]),i.addEventListener("input",()=>{this.#r.updateParams(r,i.value)},{signal:this.#r._signal}),i}update(e){this.#e&&(this.#e.value=e)}destroy(){this.#e?.remove(),this.#e=null}hideDropdown(){}}function fSe(t){return Math.floor(Math.max(0,Math.min(1,t))*255).toString(16).padStart(2,"0")}function EO(t){return Math.max(0,Math.min(255,255*t))}class pSe{static CMYK_G([e,r,n,i]){return["G",1-Math.min(1,.3*e+.59*n+.11*r+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return e=EO(e),[e,e,e]}static G_HTML([e]){const r=fSe(e);return`#${r}${r}${r}`}static RGB_G([e,r,n]){return["G",.3*e+.59*r+.11*n]}static RGB_rgb(e){return e.map(EO)}static RGB_HTML(e){return`#${e.map(fSe).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,r,n,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,n+i),1-Math.min(1,r+i)]}static CMYK_rgb([e,r,n,i]){return[EO(1-Math.min(1,e+i)),EO(1-Math.min(1,n+i)),EO(1-Math.min(1,r+i))]}static CMYK_HTML(e){const r=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(r)}static RGB_CMYK([e,r,n]){const i=1-e,a=1-r,s=1-n,o=Math.min(i,a,s);return["CMYK",i,a,s,o]}}class s4t{create(e,r,n=!1){if(e<=0||r<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),n||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${r}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${r}`),i}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){Wa("Abstract method `_createSVG` called.")}}class i7 extends s4t{_createSVG(e){return document.createElementNS(um,e)}}class dLe{static setupStorage(e,r,n,i,a){const s=i.getValue(r,{value:null});switch(n.name){case"textarea":if(s.value!==null&&(e.textContent=s.value),a==="print")break;e.addEventListener("input",o=>{i.setValue(r,{value:o.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(s.value===n.attributes.xfaOn?e.setAttribute("checked",!0):s.value===n.attributes.xfaOff&&e.removeAttribute("checked"),a==="print")break;e.addEventListener("change",o=>{i.setValue(r,{value:o.target.checked?o.target.getAttribute("xfaOn"):o.target.getAttribute("xfaOff")})})}else{if(s.value!==null&&e.setAttribute("value",s.value),a==="print")break;e.addEventListener("input",o=>{i.setValue(r,{value:o.target.value})})}break;case"select":if(s.value!==null){e.setAttribute("value",s.value);for(const o of n.children)o.attributes.value===s.value?o.attributes.selected=!0:o.attributes.hasOwnProperty("selected")&&delete o.attributes.selected}e.addEventListener("input",o=>{const l=o.target.options,u=l.selectedIndex===-1?"":l[l.selectedIndex].value;i.setValue(r,{value:u})});break}}static setAttributes({html:e,element:r,storage:n=null,intent:i,linkService:a}){const{attributes:s}=r,o=e instanceof HTMLAnchorElement;s.type==="radio"&&(s.name=`${s.name}-${i}`);for(const[l,u]of Object.entries(s))if(u!=null)switch(l){case"class":u.length&&e.setAttribute(l,u.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",u);break;case"style":Object.assign(e.style,u);break;case"textContent":e.textContent=u;break;default:(!o||l!=="href"&&l!=="newWindow")&&e.setAttribute(l,u)}o&&a.addLinkAttributes(e,s.href,s.newWindow),n&&s.dataId&&this.setupStorage(e,s.dataId,r,n)}static render(e){const r=e.annotationStorage,n=e.linkService,i=e.xfaHtml,a=e.intent||"display",s=document.createElement(i.name);i.attributes&&this.setAttributes({html:s,element:i,intent:a,linkService:n});const o=a!=="richText",l=e.div;if(l.append(s),e.viewport){const h=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=h}o&&l.setAttribute("class","xfaLayer xfaFont");const u=[];if(i.children.length===0){if(i.value){const h=document.createTextNode(i.value);s.append(h),o&&_k.shouldBuildText(i.name)&&u.push(h)}return{textDivs:u}}const d=[[i,-1,s]];for(;d.length>0;){const[h,f,p]=d.at(-1);if(f+1===h.children.length){d.pop();continue}const g=h.children[++d.at(-1)[1]];if(g===null)continue;const{name:m}=g;if(m==="#text"){const v=document.createTextNode(g.value);u.push(v),p.append(v);continue}const _=g?.attributes?.xmlns?document.createElementNS(g.attributes.xmlns,m):document.createElement(m);if(p.append(_),g.attributes&&this.setAttributes({html:_,element:g,storage:r,intent:a,linkService:n}),g.children?.length>0)d.push([g,-1,_]);else if(g.value){const v=document.createTextNode(g.value);o&&_k.shouldBuildText(m)&&u.push(v),_.append(v)}}for(const h of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){const r=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=r,e.div.hidden=!1}}const o4t=9,wb=new WeakSet,l4t=new Date().getTimezoneOffset()*60*1e3;class gSe{static create(e){switch(e.data.annotationType){case Lo.LINK:return new rle(e);case Lo.TEXT:return new c4t(e);case Lo.WIDGET:switch(e.data.fieldType){case"Tx":return new u4t(e);case"Btn":return e.data.radioButton?new hLe(e):e.data.checkBox?new h4t(e):new f4t(e);case"Ch":return new p4t(e);case"Sig":return new d4t(e)}return new oE(e);case Lo.POPUP:return new eJ(e);case Lo.FREETEXT:return new fLe(e);case Lo.LINE:return new m4t(e);case Lo.SQUARE:return new _4t(e);case Lo.CIRCLE:return new v4t(e);case Lo.POLYLINE:return new pLe(e);case Lo.CARET:return new b4t(e);case Lo.INK:return new nle(e);case Lo.POLYGON:return new y4t(e);case Lo.HIGHLIGHT:return new gLe(e);case Lo.UNDERLINE:return new E4t(e);case Lo.SQUIGGLY:return new S4t(e);case Lo.STRIKEOUT:return new T4t(e);case Lo.STAMP:return new mLe(e);case Lo.FILEATTACHMENT:return new C4t(e);default:return new No(e)}}}class No{#e=null;#t=!1;#r=null;constructor(e,{isRenderable:r=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=r,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,r&&(this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:e,richText:r}){return!!(e?.str||r?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return No._hasPopupData(this.data)}updateEdited(e){if(!this.container)return;e.rect&&(this.#e||={rect:this.data.rect.slice(0)});const{rect:r,popup:n}=e;r&&this.#n(r);let i=this.#r?.popup||this.popup;!i&&n?.text&&(this._createPopup(n),i=this.#r.popup),i&&(i.updateEdited(e),n?.deleted&&(i.remove(),this.#r=null,this.popup=null))}resetEdited(){this.#e&&(this.#n(this.#e.rect),this.#r?.popup.resetEdited(),this.#e=null)}#n(e){const{container:{style:r},data:{rect:n,rotation:i},parent:{viewport:{rawDims:{pageWidth:a,pageHeight:s,pageX:o,pageY:l}}}}=this;n?.splice(0,4,...e),r.left=`${100*(e[0]-o)/a}%`,r.top=`${100*(s-e[3]+l)/s}%`,i===0?(r.width=`${100*(e[2]-e[0])/a}%`,r.height=`${100*(e[3]-e[1])/s}%`):this.setRotation(i)}_createContainer(e){const{data:r,parent:{page:n,viewport:i}}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",r.id),!(this instanceof oE)&&!(this instanceof rle)&&(a.tabIndex=0);const{style:s}=a;if(s.zIndex=this.parent.zIndex++,r.alternativeText&&(a.title=r.alternativeText),r.noRotate&&a.classList.add("norotate"),!r.rect||this instanceof eJ){const{rotation:m}=r;return!r.hasOwnCanvas&&m!==0&&this.setRotation(m,a),a}const{width:o,height:l}=this;if(!e&&r.borderStyle.width>0){s.borderWidth=`${r.borderStyle.width}px`;const m=r.borderStyle.horizontalCornerRadius,_=r.borderStyle.verticalCornerRadius;if(m>0||_>0){const y=`calc(${m}px * var(--total-scale-factor)) / calc(${_}px * var(--total-scale-factor))`;s.borderRadius=y}else if(this instanceof hLe){const y=`calc(${o}px * var(--total-scale-factor)) / calc(${l}px * var(--total-scale-factor))`;s.borderRadius=y}switch(r.borderStyle.style){case PS.SOLID:s.borderStyle="solid";break;case PS.DASHED:s.borderStyle="dashed";break;case PS.BEVELED:_i("Unimplemented border style: beveled");break;case PS.INSET:_i("Unimplemented border style: inset");break;case PS.UNDERLINE:s.borderBottomStyle="solid";break}const v=r.borderColor||null;v?(this.#t=!0,s.borderColor=$n.makeHexColor(v[0]|0,v[1]|0,v[2]|0)):s.borderWidth=0}const u=$n.normalizeRect([r.rect[0],n.view[3]-r.rect[1]+n.view[1],r.rect[2],n.view[3]-r.rect[3]+n.view[1]]),{pageWidth:d,pageHeight:h,pageX:f,pageY:p}=i.rawDims;s.left=`${100*(u[0]-f)/d}%`,s.top=`${100*(u[1]-p)/h}%`;const{rotation:g}=r;return r.hasOwnCanvas||g===0?(s.width=`${100*o/d}%`,s.height=`${100*l/h}%`):this.setRotation(g,a),a}setRotation(e,r=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims;let{width:a,height:s}=this;e%180!==0&&([a,s]=[s,a]),r.style.width=`${100*a/n}%`,r.style.height=`${100*s/i}%`,r.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(r,n,i)=>{const a=i.detail[r],s=a[0],o=a.slice(1);i.target.style[n]=pSe[`${s}_HTML`](o),this.annotationStorage.setValue(this.data.id,{[n]:pSe[`${s}_rgb`](o)})};return qi(this,"_commonActions",{display:r=>{const{display:n}=r.detail,i=n%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:n===1||n===2})},print:r=>{this.annotationStorage.setValue(this.data.id,{noPrint:!r.detail.print})},hidden:r=>{const{hidden:n}=r.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:r=>{setTimeout(()=>r.target.focus({preventScroll:!1}),0)},userName:r=>{r.target.title=r.detail.userName},readonly:r=>{r.target.disabled=r.detail.readonly},required:r=>{this._setRequired(r.target,r.detail.required)},bgColor:r=>{e("bgColor","backgroundColor",r)},fillColor:r=>{e("fillColor","backgroundColor",r)},fgColor:r=>{e("fgColor","color",r)},textColor:r=>{e("textColor","color",r)},borderColor:r=>{e("borderColor","borderColor",r)},strokeColor:r=>{e("strokeColor","borderColor",r)},rotation:r=>{const n=r.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(e,r){const n=this._commonActions;for(const i of Object.keys(r.detail))(e[i]||n[i])?.(r)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const r=this.annotationStorage.getRawValue(this.data.id);if(!r)return;const n=this._commonActions;for(const[i,a]of Object.entries(r)){const s=n[i];if(s){const o={detail:{[i]:a},target:e};s(o),delete r[i]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[r,n,i,a]=this.data.rect.map(m=>Math.fround(m));if(e.length===8){const[m,_,v,y]=e.subarray(2,6);if(i===m&&a===_&&r===v&&n===y)return}const{style:s}=this.container;let o;if(this.#t){const{borderColor:m,borderWidth:_}=s;s.borderWidth=0,o=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${m}" stroke-width="${_}">`],this.container.classList.add("hasBorder")}const l=i-r,u=a-n,{svgFactory:d}=this,h=d.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0),h.role="none";const f=d.createElement("defs");h.append(f);const p=d.createElement("clipPath"),g=`clippath_${this.data.id}`;p.setAttribute("id",g),p.setAttribute("clipPathUnits","objectBoundingBox"),f.append(p);for(let m=2,_=e.length;m<_;m+=8){const v=e[m],y=e[m+1],b=e[m+2],E=e[m+3],S=d.createElement("rect"),T=(b-r)/l,C=(a-y)/u,x=(v-b)/l,A=(y-E)/u;S.setAttribute("x",T),S.setAttribute("y",C),S.setAttribute("width",x),S.setAttribute("height",A),p.append(S),o?.push(`<rect vector-effect="non-scaling-stroke" x="${T}" y="${C}" width="${x}" height="${A}"/>`)}this.#t&&(o.push("</g></svg>')"),s.backgroundImage=o.join("")),this.container.append(h),this.container.style.clipPath=`url(#${g})`}_createPopup(e=null){const{data:r}=this;let n,i;e?(n={str:e.text},i=e.date):(n=r.contentsObj,i=r.modificationDate);const a=this.#r=new eJ({data:{color:r.color,titleObj:r.titleObj,modificationDate:i,contentsObj:n,richText:r.richText,parentRect:r.rect,borderStyle:0,id:`popup_${r.id}`,rotation:r.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]});this.parent.div.append(a.render())}get hasPopupElement(){return!!(this.#r||this.popup||this.data.popupRef)}render(){Wa("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,r=null){const n=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:a,id:s,exportValues:o}of i){if(a===-1||s===r)continue;const l=typeof o=="string"?o:null,u=document.querySelector(`[data-element-id="${s}"]`);if(u&&!wb.has(u)){_i(`_getElementsByName - element not allowed: ${s}`);continue}n.push({id:s,exportValue:l,domElement:u})}return n}for(const i of document.getElementsByName(e)){const{exportValue:a}=i,s=i.getAttribute("data-element-id");s!==r&&wb.has(i)&&n.push({id:s,exportValue:a,domElement:i})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const r of e)r.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:r}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:r,mustEnterInEditMode:!0})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}class rle extends No{constructor(e,r=null){super(e,{isRenderable:!0,ignoreBorder:!!r?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:r}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let i=!1;return e.url?(r.addLinkAttributes(n,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(n,e.action,e.overlaidText),i=!0):e.attachment?(this.#t(n,e.attachment,e.overlaidText,e.attachmentDest),i=!0):e.setOCGState?(this.#r(n,e.setOCGState,e.overlaidText),i=!0):e.dest?(this._bindLink(n,e.dest,e.overlaidText),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),i=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(e,r,n=""){e.href=this.linkService.getDestinationHash(r),e.onclick=()=>(r&&this.linkService.goToDestination(r),!1),(r||r==="")&&this.#e(),n&&(e.title=n)}_bindNamedAction(e,r,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(r),!1),n&&(e.title=n),this.#e()}#t(e,r,n="",i=null){e.href=this.linkService.getAnchorUrl(""),r.description?e.title=r.description:n&&(e.title=n),e.onclick=()=>(this.downloadManager?.openOrDownloadData(r.content,r.filename,i),!1),this.#e()}#r(e,r,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(r),!1),n&&(e.title=n),this.#e()}_bindJSAction(e,r){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(r.actions)){const a=n.get(i);a&&(e[a]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r.id,name:i}}),!1))}r.overlaidText&&(e.title=r.overlaidText),e.onclick||(e.onclick=()=>!1),this.#e()}_bindResetFormAction(e,r){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){_i('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(e.onclick=()=>!1);return}e.onclick=()=>{n?.();const{fields:i,refs:a,include:s}=r,o=[];if(i.length!==0||a.length!==0){const d=new Set(a);for(const h of i){const f=this._fieldObjects[h]||[];for(const{id:p}of f)d.add(p)}for(const h of Object.values(this._fieldObjects))for(const f of h)d.has(f.id)===s&&o.push(f)}else for(const d of Object.values(this._fieldObjects))o.push(...d);const l=this.annotationStorage,u=[];for(const d of o){const{id:h}=d;switch(u.push(h),d.type){case"text":{const p=d.defaultValue||"";l.setValue(h,{value:p});break}case"checkbox":case"radiobutton":{const p=d.defaultValue===d.exportValues;l.setValue(h,{value:p});break}case"combobox":case"listbox":{const p=d.defaultValue||"";l.setValue(h,{value:p});break}default:continue}const f=document.querySelector(`[data-element-id="${h}"]`);if(f){if(!wb.has(f)){_i(`_bindResetFormAction - element not allowed: ${h}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class c4t extends No{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class oE extends No{render(){return this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&(e.previousSibling?.nodeName==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return ec.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,r,n,i,a){n.includes("mouse")?e.addEventListener(n,s=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(s),shift:s.shiftKey,modifier:this._getKeyModifier(s)}})}):e.addEventListener(n,s=>{if(n==="blur"){if(!r.focused||!s.relatedTarget)return;r.focused=!1}else if(n==="focus"){if(r.focused)return;r.focused=!0}a&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(s)}})})}_setEventListeners(e,r,n,i){for(const[a,s]of n)(s==="Action"||this.data.actions?.[s])&&((s==="Focus"||s==="Blur")&&(r||={focused:!1}),this._setEventListener(e,r,a,s,i),s==="Focus"&&!this.data.actions?.Blur?this._setEventListener(e,r,"blur","Blur",null):s==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(e,r,"focus","Focus",null))}_setBackgroundColor(e){const r=this.data.backgroundColor||null;e.style.backgroundColor=r===null?"transparent":$n.makeHexColor(r[0],r[1],r[2])}_setTextStyle(e){const r=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||o4t,a=e.style;let s;const o=2,l=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-o),d=Math.round(u/(pW*i))||1,h=u/d;s=Math.min(i,l(h/pW))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-o);s=Math.min(i,l(u/pW))}a.fontSize=`calc(${s}px * var(--total-scale-factor))`,a.color=$n.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(a.textAlign=r[this.data.textAlignment])}_setRequired(e,r){r?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",r)}}class u4t extends oE{constructor(e){const r=e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:r})}setPropertyOnSiblings(e,r,n,i){const a=this.annotationStorage;for(const s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[r]=n),a.setValue(s.id,{[i]:n})}render(){const e=this.annotationStorage,r=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const i=e.getValue(r,{value:this.data.fieldValue});let a=i.value||"";const s=e.getValue(r,{charLimit:this.data.maxLen}).charLimit;s&&a.length>s&&(a=a.slice(0,s));let o=i.formattedValue||this.data.textContent?.join(`
`)||null;o&&this.data.comb&&(o=o.replaceAll(/\s+/g,""));const l={userValue:a,formattedValue:o,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=o??a,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type=this.data.password?"password":"text",n.setAttribute("value",o??a),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),wb.add(n),n.setAttribute("data-element-id",r),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=0;const{datetimeFormat:u,datetimeType:d,timeStep:h}=this.data,f=!!d&&this.enableScripting;u&&(n.title=u),this._setRequired(n,this.data.required),s&&(n.maxLength=s),n.addEventListener("input",g=>{e.setValue(r,{value:g.target.value}),this.setPropertyOnSiblings(n,"value",g.target.value,"value"),l.formattedValue=null}),n.addEventListener("resetform",g=>{const m=this.data.defaultFieldValue??"";n.value=l.userValue=m,l.formattedValue=null});let p=g=>{const{formattedValue:m}=l;m!=null&&(g.target.value=m),g.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",m=>{if(l.focused)return;const{target:_}=m;if(f&&(_.type=d,h&&(_.step=h)),l.userValue){const v=l.userValue;if(f)if(d==="time"){const y=new Date(v),b=[y.getHours(),y.getMinutes(),y.getSeconds()];_.value=b.map(E=>E.toString().padStart(2,"0")).join(":")}else _.value=new Date(v-l4t).toISOString().split(d==="date"?"T":".",1)[0];else _.value=v}l.lastCommittedValue=_.value,l.commitKey=1,this.data.actions?.Focus||(l.focused=!0)}),n.addEventListener("updatefromsandbox",m=>{this.showElementAndHideCanvas(m.target);const _={value(v){l.userValue=v.detail.value??"",f||e.setValue(r,{value:l.userValue.toString()}),v.target.value=l.userValue},formattedValue(v){const{formattedValue:y}=v.detail;l.formattedValue=y,y!=null&&v.target!==document.activeElement&&(v.target.value=y);const b={formattedValue:y};f&&(b.value=y),e.setValue(r,b)},selRange(v){v.target.setSelectionRange(...v.detail.selRange)},charLimit:v=>{const{charLimit:y}=v.detail,{target:b}=v;if(y===0){b.removeAttribute("maxLength");return}b.setAttribute("maxLength",y);let E=l.userValue;!E||E.length<=y||(E=E.slice(0,y),b.value=l.userValue=E,e.setValue(r,{value:E}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:E,willCommit:!0,commitKey:1,selStart:b.selectionStart,selEnd:b.selectionEnd}}))}};this._dispatchEventFromSandbox(_,m)}),n.addEventListener("keydown",m=>{l.commitKey=1;let _=-1;if(m.key==="Escape"?_=0:m.key==="Enter"&&!this.data.multiLine?_=2:m.key==="Tab"&&(l.commitKey=3),_===-1)return;const{value:v}=m.target;l.lastCommittedValue!==v&&(l.lastCommittedValue=v,l.userValue=v,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:v,willCommit:!0,commitKey:_,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}))});const g=p;p=null,n.addEventListener("blur",m=>{if(!l.focused||!m.relatedTarget)return;this.data.actions?.Blur||(l.focused=!1);const{target:_}=m;let{value:v}=_;if(f){if(v&&d==="time"){const y=v.split(":").map(b=>parseInt(b,10));v=new Date(2e3,0,1,y[0],y[1],y[2]||0).valueOf(),_.step=""}else v=new Date(v).valueOf();_.type="text"}l.userValue=v,l.lastCommittedValue!==v&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:v,willCommit:!0,commitKey:l.commitKey,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}),g(m)}),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",m=>{l.lastCommittedValue=null;const{data:_,target:v}=m,{value:y,selectionStart:b,selectionEnd:E}=v;let S=b,T=E;switch(m.inputType){case"deleteWordBackward":{const C=y.substring(0,b).match(/\w*[^\w]*$/);C&&(S-=C[0].length);break}case"deleteWordForward":{const C=y.substring(b).match(/^[^\w]*\w*/);C&&(T+=C[0].length);break}case"deleteContentBackward":b===E&&(S-=1);break;case"deleteContentForward":b===E&&(T+=1);break}m.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:y,change:_||"",willCommit:!1,selStart:S,selEnd:T}})}),this._setEventListeners(n,l,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],m=>m.target.value)}if(p&&n.addEventListener("blur",p),this.data.comb){const m=(this.data.rect[2]-this.data.rect[0])/s;n.classList.add("comb"),n.style.letterSpacing=`calc(${m}px * var(--total-scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class d4t extends oE{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class h4t extends oE{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,r=this.data,n=r.id;let i=e.getValue(n,{value:r.exportValue===r.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",e.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const a=document.createElement("input");return wb.add(a),a.setAttribute("data-element-id",n),a.disabled=r.readOnly,this._setRequired(a,this.data.required),a.type="checkbox",a.name=r.fieldName,i&&a.setAttribute("checked",!0),a.setAttribute("exportValue",r.exportValue),a.tabIndex=0,a.addEventListener("change",s=>{const{name:o,checked:l}=s.target;for(const u of this._getElementsByName(o,n)){const d=l&&u.exportValue===r.exportValue;u.domElement&&(u.domElement.checked=d),e.setValue(u.id,{value:d})}e.setValue(n,{value:l})}),a.addEventListener("resetform",s=>{const o=r.defaultFieldValue||"Off";s.target.checked=o===r.exportValue}),this.enableScripting&&this.hasJSActions&&(a.addEventListener("updatefromsandbox",s=>{const o={value(l){l.target.checked=l.detail.value!=="Off",e.setValue(n,{value:l.target.checked})}};this._dispatchEventFromSandbox(o,s)}),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],s=>s.target.checked)),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class hLe extends oE{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,r=this.data,n=r.id;let i=e.getValue(n,{value:r.fieldValue===r.buttonValue}).value;if(typeof i=="string"&&(i=i!==r.buttonValue,e.setValue(n,{value:i})),i)for(const s of this._getElementsByName(r.fieldName,n))e.setValue(s.id,{value:!1});const a=document.createElement("input");if(wb.add(a),a.setAttribute("data-element-id",n),a.disabled=r.readOnly,this._setRequired(a,this.data.required),a.type="radio",a.name=r.fieldName,i&&a.setAttribute("checked",!0),a.tabIndex=0,a.addEventListener("change",s=>{const{name:o,checked:l}=s.target;for(const u of this._getElementsByName(o,n))e.setValue(u.id,{value:!1});e.setValue(n,{value:l})}),a.addEventListener("resetform",s=>{const o=r.defaultFieldValue;s.target.checked=o!=null&&o===r.buttonValue}),this.enableScripting&&this.hasJSActions){const s=r.buttonValue;a.addEventListener("updatefromsandbox",o=>{const l={value:u=>{const d=s===u.detail.value;for(const h of this._getElementsByName(u.target.name)){const f=d&&h.id===n;h.domElement&&(h.domElement.checked=f),e.setValue(h.id,{value:f})}}};this._dispatchEventFromSandbox(l,o)}),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],o=>o.target.checked)}return this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class f4t extends rle{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");const r=e.lastChild;return this.enableScripting&&this.hasJSActions&&r&&(this._setDefaultPropertiesFromJS(r),r.addEventListener("updatefromsandbox",n=>{this._dispatchEventFromSandbox({},n)})),e}}class p4t extends oE{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,r=this.data.id,n=e.getValue(r,{value:this.data.fieldValue}),i=document.createElement("select");wb.add(i),i.setAttribute("data-element-id",r),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=0;let a=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",d=>{const h=this.data.defaultFieldValue;for(const f of i.options)f.selected=f.value===h});for(const d of this.data.options){const h=document.createElement("option");h.textContent=d.displayValue,h.value=d.exportValue,n.value.includes(d.exportValue)&&(h.setAttribute("selected",!0),a=!1),i.append(h)}let s=null;if(a){const d=document.createElement("option");d.value=" ",d.setAttribute("hidden",!0),d.setAttribute("selected",!0),i.prepend(d),s=()=>{d.remove(),i.removeEventListener("input",s),s=null},i.addEventListener("input",s)}const o=d=>{const h=d?"value":"textContent",{options:f,multiple:p}=i;return p?Array.prototype.filter.call(f,g=>g.selected).map(g=>g[h]):f.selectedIndex===-1?null:f[f.selectedIndex][h]};let l=o(!1);const u=d=>{const h=d.target.options;return Array.prototype.map.call(h,f=>({displayValue:f.textContent,exportValue:f.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",d=>{const h={value(f){s?.();const p=f.detail.value,g=new Set(Array.isArray(p)?p:[p]);for(const m of i.options)m.selected=g.has(m.value);e.setValue(r,{value:o(!0)}),l=o(!1)},multipleSelection(f){i.multiple=!0},remove(f){const p=i.options,g=f.detail.remove;p[g].selected=!1,i.remove(g),p.length>0&&Array.prototype.findIndex.call(p,_=>_.selected)===-1&&(p[0].selected=!0),e.setValue(r,{value:o(!0),items:u(f)}),l=o(!1)},clear(f){for(;i.length!==0;)i.remove(0);e.setValue(r,{value:null,items:[]}),l=o(!1)},insert(f){const{index:p,displayValue:g,exportValue:m}=f.detail.insert,_=i.children[p],v=document.createElement("option");v.textContent=g,v.value=m,_?_.before(v):i.append(v),e.setValue(r,{value:o(!0),items:u(f)}),l=o(!1)},items(f){const{items:p}=f.detail;for(;i.length!==0;)i.remove(0);for(const g of p){const{displayValue:m,exportValue:_}=g,v=document.createElement("option");v.textContent=m,v.value=_,i.append(v)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(r,{value:o(!0),items:u(f)}),l=o(!1)},indices(f){const p=new Set(f.detail.indices);for(const g of f.target.options)g.selected=p.has(g.index);e.setValue(r,{value:o(!0)}),l=o(!1)},editable(f){f.target.disabled=!f.detail.editable}};this._dispatchEventFromSandbox(h,d)}),i.addEventListener("input",d=>{const h=o(!0),f=o(!1);e.setValue(r,{value:h}),d.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:l,change:f,changeEx:h,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],d=>d.target.value)):i.addEventListener("input",function(d){e.setValue(r,{value:o(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class eJ extends No{constructor(e){const{data:r,elements:n}=e;super(e,{isRenderable:No._hasPopupData(r)}),this.elements=n,this.popup=null}render(){const{container:e}=this;e.classList.add("popupAnnotation"),e.role="comment";const r=this.popup=new g4t({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),n=[];for(const i of this.elements)i.popup=r,i.container.ariaHasPopup="dialog",n.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(i=>`${Hoe}${i}`).join(",")),this.container}}class g4t{#e=this.#I.bind(this);#t=this.#k.bind(this);#r=this.#A.bind(this);#n=this.#R.bind(this);#i=null;#a=null;#s=null;#o=null;#c=null;#l=null;#d=null;#u=!1;#p=null;#g=null;#f=null;#h=null;#m=null;#v=null;#_=null;#b=!1;constructor({container:e,color:r,elements:n,titleObj:i,modificationDate:a,contentsObj:s,richText:o,parent:l,rect:u,parentRect:d,open:h}){this.#a=e,this.#v=i,this.#s=s,this.#m=o,this.#l=l,this.#i=r,this.#h=u,this.#d=d,this.#c=n,this.#o=jZ.toDateObject(a),this.trigger=n.flatMap(f=>f.getElementsToTriggerPopup()),this.#E(),this.#a.hidden=!0,h&&this.#R()}#E(){if(this.#g)return;this.#g=new AbortController;const{signal:e}=this.#g;for(const r of this.trigger)r.addEventListener("click",this.#n,{signal:e}),r.addEventListener("mouseenter",this.#r,{signal:e}),r.addEventListener("mouseleave",this.#t,{signal:e}),r.classList.add("popupTriggerArea");for(const r of this.#c)r.container?.addEventListener("keydown",this.#e,{signal:e})}render(){if(this.#p)return;const e=this.#p=document.createElement("div");if(e.className="popup",this.#i){const i=e.style.outlineColor=$n.makeHexColor(...this.#i);e.style.backgroundColor=`color-mix(in srgb, ${i} 30%, white)`}const r=document.createElement("span");if(r.className="header",this.#v?.str){const i=document.createElement("span");i.className="title",r.append(i),{dir:i.dir,str:i.textContent}=this.#v}if(e.append(r),this.#o){const i=document.createElement("time");i.className="popupDate",i.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),i.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#o.valueOf()})),i.dateTime=this.#o.toISOString(),r.append(i)}const n=this.#y;if(n)dLe.render({xfaHtml:n,intent:"richText",div:e}),e.lastChild.classList.add("richText","popupContent");else{const i=this._formatContents(this.#s);e.append(i)}this.#a.append(e)}get#y(){const e=this.#m,r=this.#s;return e?.str&&(!r?.str||r.str===e.str)&&this.#m.html||null}get#S(){return this.#y?.attributes?.style?.fontSize||0}get#T(){return this.#y?.attributes?.style?.color||null}#C(e){const r=[],n={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:r}]}},i={style:{color:this.#T,fontSize:this.#S?`calc(${this.#S}px * var(--total-scale-factor))`:""}};for(const a of e.split(`
`))r.push({name:"span",value:a,attributes:i});return n}_formatContents({str:e,dir:r}){const n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;const i=e.split(/(?:\r\n?|\n)/);for(let a=0,s=i.length;a<s;++a){const o=i[a];n.append(document.createTextNode(o)),a<s-1&&n.append(document.createElement("br"))}return n}#I(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&this.#u)&&this.#R()}updateEdited({rect:e,popup:r,deleted:n}){if(n||r?.deleted){this.remove();return}this.#E(),this.#_||={contentsObj:this.#s,richText:this.#m},e&&(this.#f=null),r&&(this.#m=this.#C(r.text),this.#o=jZ.toDateObject(r.date),this.#s=null),this.#p?.remove(),this.#p=null}resetEdited(){this.#_&&({contentsObj:this.#s,richText:this.#m}=this.#_,this.#_=null,this.#p?.remove(),this.#p=null,this.#f=null)}remove(){this.#g?.abort(),this.#g=null,this.#p?.remove(),this.#p=null,this.#b=!1,this.#u=!1;for(const e of this.trigger)e.classList.remove("popupTriggerArea")}#O(){if(this.#f!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:r,pageHeight:n,pageX:i,pageY:a}}}=this.#l;let s=!!this.#d,o=s?this.#d:this.#h;for(const g of this.#c)if(!o||$n.intersect(g.data.rect,o)!==null){o=g.data.rect,s=!0;break}const l=$n.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),d=s?o[2]-o[0]+5:0,h=l[0]+d,f=l[1];this.#f=[100*(h-i)/r,100*(f-a)/n];const{style:p}=this.#a;p.left=`${this.#f[0]}%`,p.top=`${this.#f[1]}%`}#R(){this.#u=!this.#u,this.#u?(this.#A(),this.#a.addEventListener("click",this.#n),this.#a.addEventListener("keydown",this.#e)):(this.#k(),this.#a.removeEventListener("click",this.#n),this.#a.removeEventListener("keydown",this.#e))}#A(){this.#p||this.render(),this.isVisible?this.#u&&this.#a.classList.add("focused"):(this.#O(),this.#a.hidden=!1,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)+1e3)}#k(){this.#a.classList.remove("focused"),!(this.#u||!this.isVisible)&&(this.#a.hidden=!0,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)-1e3)}forceHide(){this.#b=this.isVisible,this.#b&&(this.#a.hidden=!0)}maybeShow(){this.#E(),this.#b&&(this.#p||this.#A(),this.#b=!1,this.#a.hidden=!1)}get isVisible(){return this.#a.hidden===!1}}class fLe extends No{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=mi.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const r of this.textContent){const n=document.createElement("span");n.textContent=r,e.append(n)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class m4t extends No{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const{data:e,width:r,height:n}=this,i=this.svgFactory.create(r,n,!0),a=this.#e=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class _4t extends No{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const{data:e,width:r,height:n}=this,i=this.svgFactory.create(r,n,!0),a=e.borderStyle.width,s=this.#e=this.svgFactory.createElement("svg:rect");return s.setAttribute("x",a/2),s.setAttribute("y",a/2),s.setAttribute("width",r-a),s.setAttribute("height",n-a),s.setAttribute("stroke-width",a||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class v4t extends No{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const{data:e,width:r,height:n}=this,i=this.svgFactory.create(r,n,!0),a=e.borderStyle.width,s=this.#e=this.svgFactory.createElement("svg:ellipse");return s.setAttribute("cx",r/2),s.setAttribute("cy",n/2),s.setAttribute("rx",r/2-a/2),s.setAttribute("ry",n/2-a/2),s.setAttribute("stroke-width",a||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class pLe extends No{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,vertices:r,borderStyle:n,popupRef:i},width:a,height:s}=this;if(!r)return this.container;const o=this.svgFactory.create(a,s,!0);let l=[];for(let d=0,h=r.length;d<h;d+=2){const f=r[d]-e[0],p=e[3]-r[d+1];l.push(`${f},${p}`)}l=l.join(" ");const u=this.#e=this.svgFactory.createElement(this.svgElementName);return u.setAttribute("points",l),u.setAttribute("stroke-width",n.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),o.append(u),this.container.append(o),!i&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class y4t extends pLe{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class b4t extends No{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class nle extends No{#e=null;#t=[];constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?mi.HIGHLIGHT:mi.INK}#r(e,r){switch(e){case 90:return{transform:`rotate(90) translate(${-r[0]},${r[1]}) scale(1,-1)`,width:r[3]-r[1],height:r[2]-r[0]};case 180:return{transform:`rotate(180) translate(${-r[2]},${r[1]}) scale(1,-1)`,width:r[2]-r[0],height:r[3]-r[1]};case 270:return{transform:`rotate(270) translate(${-r[2]},${r[3]}) scale(1,-1)`,width:r[3]-r[1],height:r[2]-r[0]};default:return{transform:`translate(${-r[0]},${r[3]}) scale(1,-1)`,width:r[2]-r[0],height:r[3]-r[1]}}}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,rotation:r,inkLists:n,borderStyle:i,popupRef:a}}=this,{transform:s,width:o,height:l}=this.#r(r,e),u=this.svgFactory.create(o,l,!0),d=this.#e=this.svgFactory.createElement("svg:g");u.append(d),d.setAttribute("stroke-width",i.width||1),d.setAttribute("stroke-linecap","round"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit",10),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),d.setAttribute("transform",s);for(let h=0,f=n.length;h<f;h++){const p=this.svgFactory.createElement(this.svgElementName);this.#t.push(p),p.setAttribute("points",n[h].join(",")),d.append(p)}return!a&&this.hasPopupData&&this._createPopup(),this.container.append(u),this._editOnDoubleClick(),this.container}updateEdited(e){super.updateEdited(e);const{thickness:r,points:n,rect:i}=e,a=this.#e;if(r>=0&&a.setAttribute("stroke-width",r||1),n)for(let s=0,o=this.#t.length;s<o;s++)this.#t[s].setAttribute("points",n[s].join(","));if(i){const{transform:s,width:o,height:l}=this.#r(this.data.rotation,i);a.parentElement.setAttribute("viewBox",`0 0 ${o} ${l}`),a.setAttribute("transform",s)}}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}}class gLe extends No{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=mi.HIGHLIGHT}render(){const{data:{overlaidText:e,popupRef:r}}=this;if(!r&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),e){const n=document.createElement("mark");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}}class E4t extends No{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:r}}=this;if(!r&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),e){const n=document.createElement("u");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}}class S4t extends No{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:r}}=this;if(!r&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),e){const n=document.createElement("u");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}}class T4t extends No{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:r}}=this;if(!r&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),e){const n=document.createElement("s");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}}class mLe extends No{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=mi.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class C4t extends No{#e=null;constructor(e){super(e,{isRenderable:!0});const{file:r}=this.data;this.filename=r.filename,this.content=r.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...r})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:e,data:r}=this;let n;r.hasAppearance||r.fillAlpha===0?n=document.createElement("div"):(n=document.createElement("img"),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(r.name)?"paperclip":"pushpin"}.svg`,r.fillAlpha&&r.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(r.fillAlpha*100)}%);`)),n.addEventListener("dblclick",this.#t.bind(this)),this.#e=n;const{isMac:i}=ec.platform;return e.addEventListener("keydown",a=>{a.key==="Enter"&&(i?a.metaKey:a.ctrlKey)&&this.#t()}),!r.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}class ile{#e=null;#t=null;#r=new Map;#n=null;constructor({div:e,accessibilityManager:r,annotationCanvasMap:n,annotationEditorUIManager:i,page:a,viewport:s,structTreeLayer:o}){this.div=e,this.#e=r,this.#t=n,this.#n=o||null,this.page=a,this.viewport=s,this.zIndex=0,this._annotationEditorUIManager=i}hasEditableAnnotations(){return this.#r.size>0}async#i(e,r,n){const i=e.firstChild||e,a=i.id=`${Hoe}${r}`,s=await this.#n?.getAriaAttributes(a);if(s)for(const[o,l]of s)i.setAttribute(o,l);n?n.at(-1).container.after(e):(this.div.append(e),this.#e?.moveElementInDOM(this.div,e,i,!1))}async render(e){const{annotations:r}=e,n=this.div;Cb(n,this.viewport);const i=new Map,a={data:null,layer:n,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new i7,annotationStorage:e.annotationStorage||new Xoe,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const s of r){if(s.noHTML)continue;const o=s.annotationType===Lo.POPUP;if(o){const d=i.get(s.id);if(!d)continue;a.elements=d}else if(s.rect[2]===s.rect[0]||s.rect[3]===s.rect[1])continue;a.data=s;const l=gSe.create(a);if(!l.isRenderable)continue;if(!o&&s.popupRef){const d=i.get(s.popupRef);d?d.push(l):i.set(s.popupRef,[l])}const u=l.render();s.hidden&&(u.style.visibility="hidden"),await this.#i(u,s.id,a.elements),l._isEditable&&(this.#r.set(l.data.id,l),this._annotationEditorUIManager?.renderAnnotationElement(l))}this.#a()}async addLinkAnnotations(e,r){const n={data:null,layer:this.div,linkService:r,svgFactory:new i7,parent:this};for(const i of e){i.borderStyle||=ile._defaultBorderStyle,n.data=i;const a=gSe.create(n);if(!a.isRenderable)continue;const s=a.render();await this.#i(s,i.id,null)}}update({viewport:e}){const r=this.div;this.viewport=e,Cb(r,{rotation:e.rotation}),this.#a(),r.hidden=!1}#a(){if(!this.#t)return;const e=this.div;for(const[r,n]of this.#t){const i=e.querySelector(`[data-annotation-id="${r}"]`);if(!i)continue;n.className="annotationContent";const{firstChild:a}=i;a?a.nodeName==="CANVAS"?a.replaceWith(n):a.classList.contains("annotationContent")?a.after(n):a.before(n):i.append(n);const s=this.#r.get(r);s&&(s._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(r,i.id,n),s._hasNoCanvas=!1):s.canvas=n)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#r.values())}getEditableAnnotation(e){return this.#r.get(e)}static get _defaultBorderStyle(){return qi(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:PS.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}}const QM=/\r\n?|\n/g;class tl extends qn{#e;#t="";#r=`${this.id}-editor`;#n=null;#i;_colorPicker=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const e=tl.prototype,r=a=>a.isEmpty(),n=c1.TRANSLATE_SMALL,i=c1.TRANSLATE_BIG;return qi(this,"_keyboardManager",new E5([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:r}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[i,0],checker:r}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:r}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,i],checker:r}]]))}static _type="freetext";static _editorType=mi.FREETEXT;constructor(e){super({...e,name:"freeTextEditor"}),this.#e=e.color||tl._defaultColor||qn._defaultLineColor,this.#i=e.fontSize||tl._defaultFontSize,this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert")}static initialize(e,r){qn.initialize(e,r);const n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,r){switch(e){case aa.FREETEXT_SIZE:tl._defaultFontSize=r;break;case aa.FREETEXT_COLOR:tl._defaultColor=r;break}}updateParams(e,r){switch(e){case aa.FREETEXT_SIZE:this.#a(r);break;case aa.FREETEXT_COLOR:this.#s(r);break}}static get defaultPropertiesToUpdate(){return[[aa.FREETEXT_SIZE,tl._defaultFontSize],[aa.FREETEXT_COLOR,tl._defaultColor||qn._defaultLineColor]]}get propertiesToUpdate(){return[[aa.FREETEXT_SIZE,this.#i],[aa.FREETEXT_COLOR,this.#e]]}get toolbarButtons(){return this._colorPicker||=new yk(this),[["colorPicker",this._colorPicker]]}get colorType(){return aa.FREETEXT_COLOR}get colorValue(){return this.#e}#a(e){const r=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--total-scale-factor))`,this.translate(0,-(i-this.#i)*this.parentScale),this.#i=i,this.#c()},n=this.#i;this.addCommands({cmd:r.bind(this,e),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:aa.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#s(e){const r=i=>{this.#e=this.editorDiv.style.color=i,this._colorPicker?.update(i)},n=this.#e;this.addCommands({cmd:r.bind(this,e),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:aa.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,r){this._uiManager.translateSelectedEditors(e,r,!0)}getInitialTranslation(){const e=this.parentScale;return[-tl._internalPadding*e,-(tl._internalPadding+this.#i)*e]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#n=new AbortController;const e=this._uiManager.combinedSignal(this.#n);return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#r),this._isDraggable=!0,this.#n?.abort(),this.#n=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0):!1}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#o(){const e=[];this.editorDiv.normalize();let r=null;for(const n of this.editorDiv.childNodes)r?.nodeType===Node.TEXT_NODE&&n.nodeName==="BR"||(e.push(tl.#l(n)),r=n);return e.join(`
`)}#c(){const[e,r]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:i,div:a}=this,s=a.style.display,o=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",i.div.append(this.div),n=a.getBoundingClientRect(),a.remove(),a.style.display=s,a.classList.toggle("hidden",o)}this.rotation%180===this.parentRotation%180?(this.width=n.width/e,this.height=n.height/r):(this.width=n.height/e,this.height=n.width/r),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=this.#t,r=this.#t=this.#o().trimEnd();if(e===r)return;const n=i=>{if(this.#t=i,!i){this.remove();return}this.#d(),this._uiManager.rebuild(this),this.#c()};this.addCommands({cmd:()=>{n(r)},undo:()=>{n(e)},mustExec:!1}),this.#c()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&e.key==="Enter"&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){tl._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let e,r;(this._isCopy||this.annotationElementId)&&(e=this.x,r=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#r),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#i}px * var(--total-scale-factor))`,n.color=this.#e,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){const[i,a]=this.parentDimensions;if(this.annotationElementId){const{position:s}=this._initialData;let[o,l]=this.getInitialTranslation();[o,l]=this.pageTranslationToScreen(o,l);const[u,d]=this.pageDimensions,[h,f]=this.pageTranslation;let p,g;switch(this.rotation){case 0:p=e+(s[0]-h)/u,g=r+this.height-(s[1]-f)/d;break;case 90:p=e+(s[0]-h)/u,g=r-(s[1]-f)/d,[o,l]=[l,-o];break;case 180:p=e-this.width+(s[0]-h)/u,g=r-(s[1]-f)/d,[o,l]=[-o,-l];break;case 270:p=e+(s[0]-h-this.height*d)/u,g=r+(s[1]-f-this.width*u)/d,[o,l]=[-l,o];break}this.setAt(p*i,g*a,o,l)}else this._moveAfterPaste(e,r);this.#d(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#l(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(QM,"")}editorDivPaste(e){const r=e.clipboardData||window.clipboardData,{types:n}=r;if(n.length===1&&n[0]==="text/plain")return;e.preventDefault();const i=tl.#p(r.getData("text")||"").replaceAll(QM,`
`);if(!i)return;const a=window.getSelection();if(!a.rangeCount)return;this.editorDiv.normalize(),a.deleteFromDocument();const s=a.getRangeAt(0);if(!i.includes(`
`)){s.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),a.collapseToStart();return}const{startContainer:o,startOffset:l}=s,u=[],d=[];if(o.nodeType===Node.TEXT_NODE){const p=o.parentElement;if(d.push(o.nodeValue.slice(l).replaceAll(QM,"")),p!==this.editorDiv){let g=u;for(const m of this.editorDiv.childNodes){if(m===p){g=d;continue}g.push(tl.#l(m))}}u.push(o.nodeValue.slice(0,l).replaceAll(QM,""))}else if(o===this.editorDiv){let p=u,g=0;for(const m of this.editorDiv.childNodes)g++===l&&(p=d),p.push(tl.#l(m))}this.#t=`${u.join(`
`)}${i}${d.join(`
`)}`,this.#d();const h=new Range;let f=Math.sumPrecise(u.map(p=>p.length));for(const{firstChild:p}of this.editorDiv.childNodes)if(p.nodeType===Node.TEXT_NODE){const g=p.nodeValue.length;if(f<=g){h.setStart(p,f),h.setEnd(p,f);break}f-=g}a.removeAllRanges(),a.addRange(h)}#d(){if(this.editorDiv.replaceChildren(),!!this.#t)for(const e of this.#t.split(`
`)){const r=document.createElement("div");r.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(r)}}#u(){return this.#t.replaceAll(" "," ")}static#p(e){return e.replaceAll(" "," ")}get contentDiv(){return this.editorDiv}static async deserialize(e,r,n){let i=null;if(e instanceof fLe){const{data:{defaultAppearanceData:{fontSize:s,fontColor:o},rect:l,rotation:u,id:d,popupRef:h,contentsObj:f},textContent:p,textPosition:g,parent:{page:{pageNumber:m}}}=e;if(!p||p.length===0)return null;i=e={annotationType:mi.FREETEXT,color:Array.from(o),fontSize:s,value:p.join(`
`),position:g,pageIndex:m-1,rect:l.slice(0),rotation:u,annotationElementId:d,id:d,deleted:!1,popupRef:h,comment:f?.str||null}}const a=await super.deserialize(e,r,n);return a.#i=e.fontSize,a.#e=$n.makeHexColor(...e.color),a.#t=tl.#p(e.value),a._initialData=i,e.comment&&a.setCommentData(e.comment),a}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const r=tl._internalPadding*this.parentScale,n=this.getRect(r,r),i=qn._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#e),a={annotationType:mi.FREETEXT,color:i,fontSize:this.#i,value:this.#u(),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return this.addComment(a),e?(a.isCopy=!0,a):this.annotationElementId&&!this.#g(a)?null:(a.id=this.annotationElementId,a)}#g(e){const{value:r,fontSize:n,color:i,pageIndex:a}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==r||e.fontSize!==n||e.color.some((s,o)=>s!==i[o])||e.pageIndex!==a}renderAnnotationElement(e){const r=super.renderAnnotationElement(e),{style:n}=r;n.fontSize=`calc(${this.#i}px * var(--total-scale-factor))`,n.color=this.#e,r.replaceChildren();for(const s of this.#t.split(`
`)){const o=document.createElement("div");o.append(s?document.createTextNode(s):document.createElement("br")),r.append(o)}const i=tl._internalPadding*this.parentScale,a={rect:this.getRect(i,i)};return a.popup=this.hasEditedComment?this.comment:{text:this.#t},e.updateEdited(a),r}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}}class pn{static PRECISION=1e-4;toSVGPath(){Wa("Abstract method `toSVGPath` must be implemented.")}get box(){Wa("Abstract getter `box` must be implemented.")}serialize(e,r){Wa("Abstract method `serialize` must be implemented.")}static _rescale(e,r,n,i,a,s){s||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)s[o]=r+e[o]*i,s[o+1]=n+e[o+1]*a;return s}static _rescaleAndSwap(e,r,n,i,a,s){s||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)s[o]=r+e[o+1]*i,s[o+1]=n+e[o]*a;return s}static _translate(e,r,n,i){i||=new Float32Array(e.length);for(let a=0,s=e.length;a<s;a+=2)i[a]=r+e[a],i[a+1]=n+e[a+1];return i}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,r,n,i,a){switch(a){case 90:return[1-r/n,e/i];case 180:return[1-e/n,1-r/i];case 270:return[r/n,1-e/i];default:return[e/n,r/i]}}static _normalizePagePoint(e,r,n){switch(n){case 90:return[1-r,e];case 180:return[1-e,1-r];case 270:return[r,1-e];default:return[e,r]}}static createBezierPoints(e,r,n,i,a,s){return[(e+5*n)/6,(r+5*i)/6,(5*n+a)/6,(5*i+s)/6,(n+a)/2,(i+s)/2]}}class Dy{#e;#t=[];#r;#n;#i=[];#a=new Float32Array(18);#s;#o;#c;#l;#d;#u;#p=[];static#g=8;static#f=2;static#h=Dy.#g+Dy.#f;constructor({x:e,y:r},n,i,a,s,o=0){this.#e=n,this.#u=a*i,this.#n=s,this.#a.set([NaN,NaN,NaN,NaN,e,r],6),this.#r=o,this.#l=Dy.#g*i,this.#c=Dy.#h*i,this.#d=i,this.#p.push(e,r)}isEmpty(){return isNaN(this.#a[8])}#m(){const e=this.#a.subarray(4,6),r=this.#a.subarray(16,18),[n,i,a,s]=this.#e;return[(this.#s+(e[0]-r[0])/2-n)/a,(this.#o+(e[1]-r[1])/2-i)/s,(this.#s+(r[0]-e[0])/2-n)/a,(this.#o+(r[1]-e[1])/2-i)/s]}add({x:e,y:r}){this.#s=e,this.#o=r;const[n,i,a,s]=this.#e;let[o,l,u,d]=this.#a.subarray(8,12);const h=e-u,f=r-d,p=Math.hypot(h,f);if(p<this.#c)return!1;const g=p-this.#l,m=g/p,_=m*h,v=m*f;let y=o,b=l;o=u,l=d,u+=_,d+=v,this.#p?.push(e,r);const E=-v/g,S=_/g,T=E*this.#u,C=S*this.#u;return this.#a.set(this.#a.subarray(2,8),0),this.#a.set([u+T,d+C],4),this.#a.set(this.#a.subarray(14,18),12),this.#a.set([u-T,d-C],16),isNaN(this.#a[6])?(this.#i.length===0&&(this.#a.set([o+T,l+C],2),this.#i.push(NaN,NaN,NaN,NaN,(o+T-n)/a,(l+C-i)/s),this.#a.set([o-T,l-C],14),this.#t.push(NaN,NaN,NaN,NaN,(o-T-n)/a,(l-C-i)/s)),this.#a.set([y,b,o,l,u,d],6),!this.isEmpty()):(this.#a.set([y,b,o,l,u,d],6),Math.abs(Math.atan2(b-l,y-o)-Math.atan2(v,_))<Math.PI/2?([o,l,u,d]=this.#a.subarray(2,6),this.#i.push(NaN,NaN,NaN,NaN,((o+u)/2-n)/a,((l+d)/2-i)/s),[o,l,y,b]=this.#a.subarray(14,18),this.#t.push(NaN,NaN,NaN,NaN,((y+o)/2-n)/a,((b+l)/2-i)/s),!0):([y,b,o,l,u,d]=this.#a.subarray(0,6),this.#i.push(((y+5*o)/6-n)/a,((b+5*l)/6-i)/s,((5*o+u)/6-n)/a,((5*l+d)/6-i)/s,((o+u)/2-n)/a,((l+d)/2-i)/s),[u,d,o,l,y,b]=this.#a.subarray(12,18),this.#t.push(((y+5*o)/6-n)/a,((b+5*l)/6-i)/s,((5*o+u)/6-n)/a,((5*l+d)/6-i)/s,((o+u)/2-n)/a,((l+d)/2-i)/s),!0))}toSVGPath(){if(this.isEmpty())return"";const e=this.#i,r=this.#t;if(isNaN(this.#a[6])&&!this.isEmpty())return this.#v();const n=[];n.push(`M${e[4]} ${e[5]}`);for(let i=6;i<e.length;i+=6)isNaN(e[i])?n.push(`L${e[i+4]} ${e[i+5]}`):n.push(`C${e[i]} ${e[i+1]} ${e[i+2]} ${e[i+3]} ${e[i+4]} ${e[i+5]}`);this.#b(n);for(let i=r.length-6;i>=6;i-=6)isNaN(r[i])?n.push(`L${r[i+4]} ${r[i+5]}`):n.push(`C${r[i]} ${r[i+1]} ${r[i+2]} ${r[i+3]} ${r[i+4]} ${r[i+5]}`);return this.#_(n),n.join(" ")}#v(){const[e,r,n,i]=this.#e,[a,s,o,l]=this.#m();return`M${(this.#a[2]-e)/n} ${(this.#a[3]-r)/i} L${(this.#a[4]-e)/n} ${(this.#a[5]-r)/i} L${a} ${s} L${o} ${l} L${(this.#a[16]-e)/n} ${(this.#a[17]-r)/i} L${(this.#a[14]-e)/n} ${(this.#a[15]-r)/i} Z`}#_(e){const r=this.#t;e.push(`L${r[4]} ${r[5]} Z`)}#b(e){const[r,n,i,a]=this.#e,s=this.#a.subarray(4,6),o=this.#a.subarray(16,18),[l,u,d,h]=this.#m();e.push(`L${(s[0]-r)/i} ${(s[1]-n)/a} L${l} ${u} L${d} ${h} L${(o[0]-r)/i} ${(o[1]-n)/a}`)}newFreeDrawOutline(e,r,n,i,a,s){return new _Le(e,r,n,i,a,s)}getOutlines(){const e=this.#i,r=this.#t,n=this.#a,[i,a,s,o]=this.#e,l=new Float32Array((this.#p?.length??0)+2);for(let h=0,f=l.length-2;h<f;h+=2)l[h]=(this.#p[h]-i)/s,l[h+1]=(this.#p[h+1]-a)/o;if(l[l.length-2]=(this.#s-i)/s,l[l.length-1]=(this.#o-a)/o,isNaN(n[6])&&!this.isEmpty())return this.#E(l);const u=new Float32Array(this.#i.length+24+this.#t.length);let d=e.length;for(let h=0;h<d;h+=2){if(isNaN(e[h])){u[h]=u[h+1]=NaN;continue}u[h]=e[h],u[h+1]=e[h+1]}d=this.#S(u,d);for(let h=r.length-6;h>=6;h-=6)for(let f=0;f<6;f+=2){if(isNaN(r[h+f])){u[d]=u[d+1]=NaN,d+=2;continue}u[d]=r[h+f],u[d+1]=r[h+f+1],d+=2}return this.#y(u,d),this.newFreeDrawOutline(u,l,this.#e,this.#d,this.#r,this.#n)}#E(e){const r=this.#a,[n,i,a,s]=this.#e,[o,l,u,d]=this.#m(),h=new Float32Array(36);return h.set([NaN,NaN,NaN,NaN,(r[2]-n)/a,(r[3]-i)/s,NaN,NaN,NaN,NaN,(r[4]-n)/a,(r[5]-i)/s,NaN,NaN,NaN,NaN,o,l,NaN,NaN,NaN,NaN,u,d,NaN,NaN,NaN,NaN,(r[16]-n)/a,(r[17]-i)/s,NaN,NaN,NaN,NaN,(r[14]-n)/a,(r[15]-i)/s],0),this.newFreeDrawOutline(h,e,this.#e,this.#d,this.#r,this.#n)}#y(e,r){const n=this.#t;return e.set([NaN,NaN,NaN,NaN,n[4],n[5]],r),r+=6}#S(e,r){const n=this.#a.subarray(4,6),i=this.#a.subarray(16,18),[a,s,o,l]=this.#e,[u,d,h,f]=this.#m();return e.set([NaN,NaN,NaN,NaN,(n[0]-a)/o,(n[1]-s)/l,NaN,NaN,NaN,NaN,u,d,NaN,NaN,NaN,NaN,h,f,NaN,NaN,NaN,NaN,(i[0]-a)/o,(i[1]-s)/l],r),r+=24}}class _Le extends pn{#e;#t=new Float32Array(4);#r;#n;#i;#a;#s;constructor(e,r,n,i,a,s){super(),this.#s=e,this.#i=r,this.#e=n,this.#a=i,this.#r=a,this.#n=s,this.lastPoint=[NaN,NaN],this.#o(s);const[o,l,u,d]=this.#t;for(let h=0,f=e.length;h<f;h+=2)e[h]=(e[h]-o)/u,e[h+1]=(e[h+1]-l)/d;for(let h=0,f=r.length;h<f;h+=2)r[h]=(r[h]-o)/u,r[h+1]=(r[h+1]-l)/d}toSVGPath(){const e=[`M${this.#s[4]} ${this.#s[5]}`];for(let r=6,n=this.#s.length;r<n;r+=6){if(isNaN(this.#s[r])){e.push(`L${this.#s[r+4]} ${this.#s[r+5]}`);continue}e.push(`C${this.#s[r]} ${this.#s[r+1]} ${this.#s[r+2]} ${this.#s[r+3]} ${this.#s[r+4]} ${this.#s[r+5]}`)}return e.push("Z"),e.join(" ")}serialize([e,r,n,i],a){const s=n-e,o=i-r;let l,u;switch(a){case 0:l=pn._rescale(this.#s,e,i,s,-o),u=pn._rescale(this.#i,e,i,s,-o);break;case 90:l=pn._rescaleAndSwap(this.#s,e,r,s,o),u=pn._rescaleAndSwap(this.#i,e,r,s,o);break;case 180:l=pn._rescale(this.#s,n,r,-s,o),u=pn._rescale(this.#i,n,r,-s,o);break;case 270:l=pn._rescaleAndSwap(this.#s,n,i,-s,-o),u=pn._rescaleAndSwap(this.#i,n,i,-s,-o);break}return{outline:Array.from(l),points:[Array.from(u)]}}#o(e){const r=this.#s;let n=r[4],i=r[5];const a=[n,i,n,i];let s=n,o=i;const l=e?Math.max:Math.min;for(let d=6,h=r.length;d<h;d+=6){const f=r[d+4],p=r[d+5];if(isNaN(r[d]))$n.pointBoundingBox(f,p,a),o<p?(s=f,o=p):o===p&&(s=l(s,f));else{const g=[1/0,1/0,-1/0,-1/0];$n.bezierBoundingBox(n,i,...r.slice(d,d+6),g),$n.rectBoundingBox(...g,a),o<g[3]?(s=g[2],o=g[3]):o===g[3]&&(s=l(s,g[2]))}n=f,i=p}const u=this.#t;u[0]=a[0]-this.#r,u[1]=a[1]-this.#r,u[2]=a[2]-a[0]+2*this.#r,u[3]=a[3]-a[1]+2*this.#r,this.lastPoint=[s,o]}get box(){return this.#t}newOutliner(e,r,n,i,a,s=0){return new Dy(e,r,n,i,a,s)}getNewOutline(e,r){const[n,i,a,s]=this.#t,[o,l,u,d]=this.#e,h=a*u,f=s*d,p=n*u+o,g=i*d+l,m=this.newOutliner({x:this.#i[0]*h+p,y:this.#i[1]*f+g},this.#e,this.#a,e,this.#n,r??this.#r);for(let _=2;_<this.#i.length;_+=2)m.add({x:this.#i[_]*h+p,y:this.#i[_+1]*f+g});return m.getOutlines()}}class tJ{#e;#t;#r=[];#n=[];constructor(e,r=0,n=0,i=!0){const a=[1/0,1/0,-1/0,-1/0],s=10**-4;for(const{x:p,y:g,width:m,height:_}of e){const v=Math.floor((p-r)/s)*s,y=Math.ceil((p+m+r)/s)*s,b=Math.floor((g-r)/s)*s,E=Math.ceil((g+_+r)/s)*s,S=[v,b,E,!0],T=[y,b,E,!1];this.#r.push(S,T),$n.rectBoundingBox(v,b,y,E,a)}const o=a[2]-a[0]+2*n,l=a[3]-a[1]+2*n,u=a[0]-n,d=a[1]-n,h=this.#r.at(i?-1:-2),f=[h[0],h[2]];for(const p of this.#r){const[g,m,_]=p;p[0]=(g-u)/o,p[1]=(m-d)/l,p[2]=(_-d)/l}this.#e=new Float32Array([u,d,o,l]),this.#t=f}getOutlines(){this.#r.sort((r,n)=>r[0]-n[0]||r[1]-n[1]||r[2]-n[2]);const e=[];for(const r of this.#r)r[3]?(e.push(...this.#c(r)),this.#s(r)):(this.#o(r),e.push(...this.#c(r)));return this.#i(e)}#i(e){const r=[],n=new Set;for(const s of e){const[o,l,u]=s;r.push([o,l,s],[o,u,s])}r.sort((s,o)=>s[1]-o[1]||s[0]-o[0]);for(let s=0,o=r.length;s<o;s+=2){const l=r[s][2],u=r[s+1][2];l.push(u),u.push(l),n.add(l),n.add(u)}const i=[];let a;for(;n.size>0;){const s=n.values().next().value;let[o,l,u,d,h]=s;n.delete(s);let f=o,p=l;for(a=[o,u],i.push(a);;){let g;if(n.has(d))g=d;else if(n.has(h))g=h;else break;n.delete(g),[o,l,u,d,h]=g,f!==o&&(a.push(f,p,o,p===l?l:u),f=o),p=p===l?u:l}a.push(f,p)}return new w4t(i,this.#e,this.#t)}#a(e){const r=this.#n;let n=0,i=r.length-1;for(;n<=i;){const a=n+i>>1,s=r[a][0];if(s===e)return a;s<e?n=a+1:i=a-1}return i+1}#s([,e,r]){const n=this.#a(e);this.#n.splice(n,0,[e,r])}#o([,e,r]){const n=this.#a(e);for(let i=n;i<this.#n.length;i++){const[a,s]=this.#n[i];if(a!==e)break;if(a===e&&s===r){this.#n.splice(i,1);return}}for(let i=n-1;i>=0;i--){const[a,s]=this.#n[i];if(a!==e)break;if(a===e&&s===r){this.#n.splice(i,1);return}}}#c(e){const[r,n,i]=e,a=[[r,n,i]],s=this.#a(i);for(let o=0;o<s;o++){const[l,u]=this.#n[o];for(let d=0,h=a.length;d<h;d++){const[,f,p]=a[d];if(!(u<=f||p<=l)){if(f>=l){if(p>u)a[d][1]=u;else{if(h===1)return[];a.splice(d,1),d--,h--}continue}a[d][2]=l,p>u&&a.push([r,u,p])}}}return a}}class w4t extends pn{#e;#t;constructor(e,r,n){super(),this.#t=e,this.#e=r,this.lastPoint=n}toSVGPath(){const e=[];for(const r of this.#t){let[n,i]=r;e.push(`M${n} ${i}`);for(let a=2;a<r.length;a+=2){const s=r[a],o=r[a+1];s===n?(e.push(`V${o}`),i=o):o===i&&(e.push(`H${s}`),n=s)}e.push("Z")}return e.join(" ")}serialize([e,r,n,i],a){const s=[],o=n-e,l=i-r;for(const u of this.#t){const d=new Array(u.length);for(let h=0;h<u.length;h+=2)d[h]=e+u[h]*o,d[h+1]=i-u[h+1]*l;s.push(d)}return s}get box(){return this.#e}get classNamesForOutlining(){return["highlightOutline"]}}class rJ extends Dy{newFreeDrawOutline(e,r,n,i,a,s){return new x4t(e,r,n,i,a,s)}}class x4t extends _Le{newOutliner(e,r,n,i,a,s=0){return new rJ(e,r,n,i,a,s)}}class So extends qn{#e=null;#t=0;#r;#n=null;#i=null;#a=null;#s=null;#o=0;#c=null;#l=null;#d=null;#u=!1;#p=null;#g;#f=null;#h="";#m;#v="";static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=12;static _type="highlight";static _editorType=mi.HIGHLIGHT;static _freeHighlightId=-1;static _freeHighlight=null;static _freeHighlightClipId="";static get _keyboardManager(){const e=So.prototype;return qi(this,"_keyboardManager",new E5([[["ArrowLeft","mac+ArrowLeft"],e._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],e._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],e._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],e._moveCaret,{args:[3]}]]))}constructor(e){super({...e,name:"highlightEditor"}),this.color=e.color||So._defaultColor,this.#m=e.thickness||So._defaultThickness,this.#g=e.opacity||So._defaultOpacity,this.#r=e.boxes||null,this.#v=e.methodOfCreation||"",this.#h=e.text||"",this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",e.highlightId>-1?(this.#u=!0,this.#b(e),this.#C()):this.#r&&(this.#e=e.anchorNode,this.#t=e.anchorOffset,this.#s=e.focusNode,this.#o=e.focusOffset,this.#_(),this.#C(),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}get telemetryInitialData(){return{action:"added",type:this.#u?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:this.#m,methodOfCreation:this.#v}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}get commentColor(){return this.color}static computeTelemetryFinalData(e){return{numberOfColors:e.get("color").size}}#_(){const e=new tJ(this.#r,.001);this.#l=e.getOutlines(),[this.x,this.y,this.width,this.height]=this.#l.box;const r=new tJ(this.#r,.0025,.001,this._uiManager.direction==="ltr");this.#a=r.getOutlines();const{lastPoint:n}=this.#a;this.#p=[(n[0]-this.x)/this.width,(n[1]-this.y)/this.height]}#b({highlightOutlines:e,highlightId:r,clipPathId:n}){this.#l=e;const i=1.5;if(this.#a=e.getNewOutline(this.#m/2+i,.0025),r>=0)this.#d=r,this.#n=n,this.parent.drawLayer.finalizeDraw(r,{bbox:e.box,path:{d:e.toSVGPath()}}),this.#f=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},!0);else if(this.parent){const d=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#d,{bbox:So.#I(this.#l.box,(d-this.rotation+360)%360),path:{d:e.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#f,{bbox:So.#I(this.#a.box,d),path:{d:this.#a.toSVGPath()}})}const[a,s,o,l]=e.box;switch(this.rotation){case 0:this.x=a,this.y=s,this.width=o,this.height=l;break;case 90:{const[d,h]=this.parentDimensions;this.x=s,this.y=1-a,this.width=o*h/d,this.height=l*d/h;break}case 180:this.x=1-a,this.y=1-s,this.width=o,this.height=l;break;case 270:{const[d,h]=this.parentDimensions;this.x=1-s,this.y=a,this.width=o*h/d,this.height=l*d/h;break}}const{lastPoint:u}=this.#a;this.#p=[(u[0]-a)/o,(u[1]-s)/l]}static initialize(e,r){qn.initialize(e,r),So._defaultColor||=r.highlightColors?.values().next().value||"#fff066"}static updateDefaultParams(e,r){switch(e){case aa.HIGHLIGHT_COLOR:So._defaultColor=r;break;case aa.HIGHLIGHT_THICKNESS:So._defaultThickness=r;break}}translateInPage(e,r){}get toolbarPosition(){return this.#p}updateParams(e,r){switch(e){case aa.HIGHLIGHT_COLOR:this.#E(r);break;case aa.HIGHLIGHT_THICKNESS:this.#y(r);break}}static get defaultPropertiesToUpdate(){return[[aa.HIGHLIGHT_COLOR,So._defaultColor],[aa.HIGHLIGHT_THICKNESS,So._defaultThickness]]}get propertiesToUpdate(){return[[aa.HIGHLIGHT_COLOR,this.color||So._defaultColor],[aa.HIGHLIGHT_THICKNESS,this.#m||So._defaultThickness],[aa.HIGHLIGHT_FREE,this.#u]]}#E(e){const r=(a,s)=>{this.color=a,this.#g=s,this.parent?.drawLayer.updateProperties(this.#d,{root:{fill:a,"fill-opacity":s}}),this.#i?.updateColor(a)},n=this.color,i=this.#g;this.addCommands({cmd:r.bind(this,e,So._defaultOpacity),undo:r.bind(this,n,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:aa.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(e)},!0)}#y(e){const r=this.#m,n=i=>{this.#m=i,this.#S(i)};this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:aa.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:e},!0)}get toolbarButtons(){return this._uiManager.highlightColors?[["colorPicker",this.#i=new yh({editor:this})]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#A())}getBaseTranslation(){return[0,0]}getRect(e,r){return super.getRect(e,r,this.#A())}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){this.#T(),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#C(),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let r=!1;this.parent&&!e?this.#T():e&&(this.#C(e),r=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),this.show(this._isVisible),r&&this.select()}#S(e){if(!this.#u)return;this.#b({highlightOutlines:this.#l.getNewOutline(e/2)}),this.fixAndSetPosition();const[r,n]=this.parentDimensions;this.setDims(this.width*r,this.height*n)}#T(){this.#d===null||!this.parent||(this.parent.drawLayer.remove(this.#d),this.#d=null,this.parent.drawLayer.remove(this.#f),this.#f=null)}#C(e=this.parent){this.#d===null&&({id:this.#d,clipPathId:this.#n}=e.drawLayer.draw({bbox:this.#l.box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.#g},rootClass:{highlight:!0,free:this.#u},path:{d:this.#l.toSVGPath()}},!1,!0),this.#f=e.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#u},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},this.#u),this.#c&&(this.#c.style.clipPath=this.#n))}static#I([e,r,n,i],a){switch(a){case 90:return[1-r-i,e,i,n];case 180:return[1-e-n,1-r-i,n,i];case 270:return[r,1-e-n,i,n]}return[e,r,n,i]}rotate(e){const{drawLayer:r}=this.parent;let n;this.#u?(e=(e-this.rotation+360)%360,n=So.#I(this.#l.box,e)):n=So.#I([this.x,this.y,this.width,this.height],e),r.updateProperties(this.#d,{bbox:n,root:{"data-main-rotation":e}}),r.updateProperties(this.#f,{bbox:So.#I(this.#a.box,e),root:{"data-main-rotation":e}})}render(){if(this.div)return this.div;const e=super.render();this.#h&&(e.setAttribute("aria-label",this.#h),e.setAttribute("role","mark")),this.#u?e.classList.add("free"):this.div.addEventListener("keydown",this.#O.bind(this),{signal:this._uiManager._signal});const r=this.#c=document.createElement("div");e.append(r),r.setAttribute("aria-hidden","true"),r.className="internal",r.style.clipPath=this.#n;const[n,i]=this.parentDimensions;return this.setDims(this.width*n,this.height*i),WMe(this,this.#c,["pointerover","pointerleave"]),this.enableEditing(),e}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#f,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#f,{rootClass:{hovered:!1}})}#O(e){So._keyboardManager.exec(this,e)}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:this.#R(!0);break;case 1:case 3:this.#R(!1);break}}#R(e){if(!this.#e)return;const r=window.getSelection();e?r.setPosition(this.#e,this.#t):r.setPosition(this.#s,this.#o)}select(){super.select(),this.#f&&this.parent?.drawLayer.updateProperties(this.#f,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#f&&(this.parent?.drawLayer.updateProperties(this.#f,{rootClass:{selected:!1}}),this.#u||this.#R(!1))}get _mustFixPosition(){return!this.#u}show(e=this._isVisible){super.show(e),this.parent&&(this.parent.drawLayer.updateProperties(this.#d,{rootClass:{hidden:!e}}),this.parent.drawLayer.updateProperties(this.#f,{rootClass:{hidden:!e}}))}#A(){return this.#u?this.rotation:0}#k(){if(this.#u)return null;const[e,r]=this.pageDimensions,[n,i]=this.pageTranslation,a=this.#r,s=new Float32Array(a.length*8);let o=0;for(const{x:l,y:u,width:d,height:h}of a){const f=l*e+n,p=(1-u)*r+i;s[o]=s[o+4]=f,s[o+1]=s[o+3]=p,s[o+2]=s[o+6]=f+d*e,s[o+5]=s[o+7]=p-h*r,o+=8}return s}#F(e){return this.#l.serialize(e,this.#A())}static startHighlighting(e,r,{target:n,x:i,y:a}){const{x:s,y:o,width:l,height:u}=n.getBoundingClientRect(),d=new AbortController,h=e.combinedSignal(d),f=p=>{d.abort(),this.#G(e,p)};window.addEventListener("blur",f,{signal:h}),window.addEventListener("pointerup",f,{signal:h}),window.addEventListener("pointerdown",Bo,{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",Gh,{signal:h}),n.addEventListener("pointermove",this.#D.bind(this,e),{signal:h}),this._freeHighlight=new rJ({x:i,y:a},[s,o,l,u],e.scale,this._defaultThickness/2,r,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static#D(e,r){this._freeHighlight.add(r)&&e.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static#G(e,r){this._freeHighlight.isEmpty()?e.drawLayer.remove(this._freeHighlightId):e.createAndAddNewEditor(r,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}static async deserialize(e,r,n){let i=null;if(e instanceof gLe){const{data:{quadPoints:g,rect:m,rotation:_,id:v,color:y,opacity:b,popupRef:E,contentsObj:S},parent:{page:{pageNumber:T}}}=e;i=e={annotationType:mi.HIGHLIGHT,color:Array.from(y),opacity:b,quadPoints:g,boxes:null,pageIndex:T-1,rect:m.slice(0),rotation:_,annotationElementId:v,id:v,deleted:!1,popupRef:E,comment:S?.str||null}}else if(e instanceof nle){const{data:{inkLists:g,rect:m,rotation:_,id:v,color:y,borderStyle:{rawWidth:b},popupRef:E,contentsObj:S},parent:{page:{pageNumber:T}}}=e;i=e={annotationType:mi.HIGHLIGHT,color:Array.from(y),thickness:b,inkLists:g,boxes:null,pageIndex:T-1,rect:m.slice(0),rotation:_,annotationElementId:v,id:v,deleted:!1,popupRef:E,comment:S?.str||null}}const{color:a,quadPoints:s,inkLists:o,opacity:l}=e,u=await super.deserialize(e,r,n);u.color=$n.makeHexColor(...a),u.#g=l||1,o&&(u.#m=e.thickness),u._initialData=i,e.comment&&u.setCommentData(e.comment);const[d,h]=u.pageDimensions,[f,p]=u.pageTranslation;if(s){const g=u.#r=[];for(let m=0;m<s.length;m+=8)g.push({x:(s[m]-f)/d,y:1-(s[m+1]-p)/h,width:(s[m+2]-s[m])/d,height:(s[m+1]-s[m+5])/h});u.#_(),u.#C(),u.rotate(u.rotation)}else if(o){u.#u=!0;const g=o[0],m={x:g[0]-f,y:h-(g[1]-p)},_=new rJ(m,[0,0,d,h],1,u.#m/2,!0,.001);for(let b=0,E=g.length;b<E;b+=2)m.x=g[b]-f,m.y=h-(g[b+1]-p),_.add(m);const{id:v,clipPathId:y}=r.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:u.color,"fill-opacity":u._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:_.toSVGPath()}},!0,!0);u.#b({highlightOutlines:_.getOutlines(),highlightId:v,clipPathId:y}),u.#C(),u.rotate(u.parentRotation)}return u}serialize(e=!1){if(this.isEmpty()||e)return null;if(this.deleted)return this.serializeDeleted();const r=this.getRect(0,0),n=qn._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),i={annotationType:mi.HIGHLIGHT,color:n,opacity:this.#g,thickness:this.#m,quadPoints:this.#k(),outlines:this.#F(r),pageIndex:this.pageIndex,rect:r,rotation:this.#A(),structTreeParentId:this._structTreeParentId};return this.addComment(i),this.annotationElementId&&!this.#x(i)?null:(i.id=this.annotationElementId,i)}#x(e){const{color:r}=this._initialData;return this.hasEditedComment||e.color.some((n,i)=>n!==r[i])}renderAnnotationElement(e){const r={rect:this.getRect(0,0)};return this.hasEditedComment&&(r.popup=this.comment),e.updateEdited(r),null}static canCreateNewEmptyEditor(){return!1}}class vLe{#e=Object.create(null);updateProperty(e,r){this[e]=r,this.updateSVGProperty(e,r)}updateProperties(e){if(e)for(const[r,n]of Object.entries(e))r.startsWith("_")||this.updateProperty(r,n)}updateSVGProperty(e,r){this.#e[e]=r}toSVGProperties(){const e=this.#e;return this.#e=Object.create(null),{root:e}}reset(){this.#e=Object.create(null)}updateAll(e=this){this.updateProperties(e)}clone(){Wa("Not implemented")}}class Xn extends qn{#e=null;#t;_colorPicker=null;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static#r=null;static#n=null;static#i=null;static#a=NaN;static#s=null;static#o=null;static#c=NaN;static _INNER_MARGIN=3;constructor(e){super(e),this.#t=e.mustBeCommitted||!1,this._addOutlines(e)}_addOutlines(e){e.drawOutlines&&(this.#l(e),this.#p())}#l({drawOutlines:e,drawId:r,drawingOptions:n}){this.#e=e,this._drawingOptions||=n,this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),r>=0?(this._drawId=r,this.parent.drawLayer.finalizeDraw(r,e.defaultProperties)):this._drawId=this.#d(e,this.parent),this.#h(e.box)}#d(e,r){const{id:n}=r.drawLayer.draw(Xn._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,!1);return n}static _mergeSVGProperties(e,r){const n=new Set(Object.keys(e));for(const[i,a]of Object.entries(r))n.has(i)?Object.assign(e[i],a):e[i]=a;return e}static getDefaultDrawingOptions(e){Wa("Not implemented")}static get typesMap(){Wa("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(e,r){const n=this.typesMap.get(e);n&&this._defaultDrawingOptions.updateProperty(n,r),this._currentParent&&(Xn.#r.updateProperty(n,r),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,r){const n=this.constructor.typesMap.get(e);n&&this._updateProperty(e,n,r)}static get defaultPropertiesToUpdate(){const e=[],r=this._defaultDrawingOptions;for(const[n,i]of this.typesMap)e.push([n,r[i]]);return e}get propertiesToUpdate(){const e=[],{_drawingOptions:r}=this;for(const[n,i]of this.constructor.typesMap)e.push([n,r[i]]);return e}_updateProperty(e,r,n){const i=this._drawingOptions,a=i[r],s=o=>{i.updateProperty(r,o);const l=this.#e.updateProperty(r,o);l&&this.#h(l),this.parent?.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),e===this.colorType&&this._colorPicker?.update(o)};this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,Xn._mergeSVGProperties(this.#e.getPathResizingSVGProperties(this.#f()),{bbox:this.#m()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,Xn._mergeSVGProperties(this.#e.getPathResizedSVGProperties(this.#f()),{bbox:this.#m()}))}_onTranslating(e,r){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#m()})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,Xn._mergeSVGProperties(this.#e.getPathTranslatedSVGProperties(this.#f(),this.parentDimensions),{bbox:this.#m()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#t&&(this.#t=!1,this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this.#u(),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#p(),this.#h(this.#e.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let r=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),this.#u()):e&&(this._uiManager.addShouldRescale(this),this.#p(e),r=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),r&&this.select()}#u(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#p(e=this.parent){if(!(this._drawId!==null&&this.parent===e)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,e.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=this.#d(this.#e,e)}}#g([e,r,n,i]){const{parentDimensions:[a,s],rotation:o}=this;switch(o){case 90:return[r,1-e,n*(s/a),i*(a/s)];case 180:return[1-e,1-r,n,i];case 270:return[1-r,e,n*(s/a),i*(a/s)];default:return[e,r,n,i]}}#f(){const{x:e,y:r,width:n,height:i,parentDimensions:[a,s],rotation:o}=this;switch(o){case 90:return[1-r,e,n*(a/s),i*(s/a)];case 180:return[1-e,1-r,n,i];case 270:return[r,1-e,n*(a/s),i*(s/a)];default:return[e,r,n,i]}}#h(e){if([this.x,this.y,this.width,this.height]=this.#g(e),this.div){this.fixAndSetPosition();const[r,n]=this.parentDimensions;this.setDims(this.width*r,this.height*n)}this._onResized()}#m(){const{x:e,y:r,width:n,height:i,rotation:a,parentRotation:s,parentDimensions:[o,l]}=this;switch((a*4+s)/90){case 1:return[1-r-i,e,i,n];case 2:return[1-e-n,1-r-i,n,i];case 3:return[r,1-e-n,i,n];case 4:return[e,r-n*(o/l),i*(l/o),n*(o/l)];case 5:return[1-r,e,n*(o/l),i*(l/o)];case 6:return[1-e-i*(l/o),1-r,i*(l/o),n*(o/l)];case 7:return[r-n*(o/l),1-e-i*(l/o),n*(o/l),i*(l/o)];case 8:return[e-n,r-i,n,i];case 9:return[1-r,e-n,i,n];case 10:return[1-e,1-r,n,i];case 11:return[r-i,1-e,i,n];case 12:return[e-i*(l/o),r,i*(l/o),n*(o/l)];case 13:return[1-r-n*(o/l),e-i*(l/o),n*(o/l),i*(l/o)];case 14:return[1-e,1-r-n*(o/l),i*(l/o),n*(o/l)];case 15:return[r,1-e,n*(o/l),i*(l/o)];default:return[e,r,n,i]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,Xn._mergeSVGProperties({bbox:this.#m()},this.#e.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#h(this.#e.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let e,r;this._isCopy&&(e=this.x,r=this.y);const n=super.render();n.classList.add("draw");const i=document.createElement("div");n.append(i),i.setAttribute("aria-hidden","true"),i.className="internal";const[a,s]=this.parentDimensions;return this.setDims(this.width*a,this.height*s),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,r),n}static createDrawerInstance(e,r,n,i,a){Wa("Not implemented")}static startDrawing(e,r,n,i){const{target:a,offsetX:s,offsetY:o,pointerId:l,pointerType:u}=i;if(Xn.#s&&Xn.#s!==u)return;const{viewport:{rotation:d}}=e,{width:h,height:f}=a.getBoundingClientRect(),p=Xn.#n=new AbortController,g=e.combinedSignal(p);if(Xn.#a||=l,Xn.#s??=u,window.addEventListener("pointerup",m=>{Xn.#a===m.pointerId?this._endDraw(m):Xn.#o?.delete(m.pointerId)},{signal:g}),window.addEventListener("pointercancel",m=>{Xn.#a===m.pointerId?this._currentParent.endDrawingSession():Xn.#o?.delete(m.pointerId)},{signal:g}),window.addEventListener("pointerdown",m=>{Xn.#s===m.pointerType&&((Xn.#o||=new Set).add(m.pointerId),Xn.#r.isCancellable()&&(Xn.#r.removeLastElement(),Xn.#r.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:g}),window.addEventListener("contextmenu",Gh,{signal:g}),a.addEventListener("pointermove",this._drawMove.bind(this),{signal:g}),a.addEventListener("touchmove",m=>{m.timeStamp===Xn.#c&&Bo(m)},{signal:g}),e.toggleDrawing(),r._editorUndoBar?.hide(),Xn.#r){e.drawLayer.updateProperties(this._currentDrawId,Xn.#r.startNew(s,o,h,f,d));return}r.updateUIForDefaultProperties(this),Xn.#r=this.createDrawerInstance(s,o,h,f,d),Xn.#i=this.getDefaultDrawingOptions(),this._currentParent=e,{id:this._currentDrawId}=e.drawLayer.draw(this._mergeSVGProperties(Xn.#i.toSVGProperties(),Xn.#r.defaultSVGProperties),!0,!1)}static _drawMove(e){if(Xn.#c=-1,!Xn.#r)return;const{offsetX:r,offsetY:n,pointerId:i}=e;if(Xn.#a===i){if(Xn.#o?.size>=1){this._endDraw(e);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,Xn.#r.add(r,n)),Xn.#c=e.timeStamp,Bo(e)}}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,Xn.#r=null,Xn.#i=null,Xn.#s=null,Xn.#c=NaN),Xn.#n&&(Xn.#n.abort(),Xn.#n=null,Xn.#a=NaN,Xn.#o=null)}static _endDraw(e){const r=this._currentParent;if(r){if(r.toggleDrawing(!0),this._cleanup(!1),e?.target===r.div&&r.drawLayer.updateProperties(this._currentDrawId,Xn.#r.end(e.offsetX,e.offsetY)),this.supportMultipleDrawings){const n=Xn.#r,i=this._currentDrawId,a=n.getLastElement();r.addCommands({cmd:()=>{r.drawLayer.updateProperties(i,n.setLastElement(a))},undo:()=>{r.drawLayer.updateProperties(i,n.removeLastElement())},mustExec:!1,type:aa.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(e){const r=this._currentParent;if(!r)return null;if(r.toggleDrawing(!0),r.cleanUndoStack(aa.DRAW_STEP),!Xn.#r.isEmpty()){const{pageDimensions:[n,i],scale:a}=r,s=r.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:Xn.#r.getOutlines(n*a,i*a,a,this._INNER_MARGIN),drawingOptions:Xn.#i,mustBeCommitted:!e});return this._cleanup(!0),s}return r.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,r,n,i,a,s){Wa("Not implemented")}static async deserialize(e,r,n){const{rawDims:{pageWidth:i,pageHeight:a,pageX:s,pageY:o}}=r.viewport,l=this.deserializeDraw(s,o,i,a,this._INNER_MARGIN,e),u=await super.deserialize(e,r,n);return u.createDrawingOptions(e),u.#l({drawOutlines:l}),u.#p(),u.onScaleChanging(),u.rotate(),u}serializeDraw(e){const[r,n]=this.pageTranslation,[i,a]=this.pageDimensions;return this.#e.serialize([r,n,i,a],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}}class A4t{#e=new Float64Array(6);#t;#r;#n;#i;#a;#s="";#o=0;#c=new T5;#l;#d;constructor(e,r,n,i,a,s){this.#l=n,this.#d=i,this.#n=a,this.#i=s,[e,r]=this.#u(e,r);const o=this.#t=[NaN,NaN,NaN,NaN,e,r];this.#a=[e,r],this.#r=[{line:o,points:this.#a}],this.#e.set(o,0)}updateProperty(e,r){e==="stroke-width"&&(this.#i=r)}#u(e,r){return pn._normalizePoint(e,r,this.#l,this.#d,this.#n)}isEmpty(){return!this.#r||this.#r.length===0}isCancellable(){return this.#a.length<=10}add(e,r){[e,r]=this.#u(e,r);const[n,i,a,s]=this.#e.subarray(2,6),o=e-a,l=r-s;return Math.hypot(this.#l*o,this.#d*l)<=2?null:(this.#a.push(e,r),isNaN(n)?(this.#e.set([a,s,e,r],2),this.#t.push(NaN,NaN,NaN,NaN,e,r),{path:{d:this.toSVGPath()}}):(isNaN(this.#e[0])&&this.#t.splice(6,6),this.#e.set([n,i,a,s,e,r],0),this.#t.push(...pn.createBezierPoints(n,i,a,s,e,r)),{path:{d:this.toSVGPath()}}))}end(e,r){const n=this.add(e,r);return n||(this.#a.length===2?{path:{d:this.toSVGPath()}}:null)}startNew(e,r,n,i,a){this.#l=n,this.#d=i,this.#n=a,[e,r]=this.#u(e,r);const s=this.#t=[NaN,NaN,NaN,NaN,e,r];this.#a=[e,r];const o=this.#r.at(-1);return o&&(o.line=new Float32Array(o.line),o.points=new Float32Array(o.points)),this.#r.push({line:s,points:this.#a}),this.#e.set(s,0),this.#o=0,this.toSVGPath(),null}getLastElement(){return this.#r.at(-1)}setLastElement(e){return this.#r?(this.#r.push(e),this.#t=e.line,this.#a=e.points,this.#o=0,{path:{d:this.toSVGPath()}}):this.#c.setLastElement(e)}removeLastElement(){if(!this.#r)return this.#c.removeLastElement();this.#r.pop(),this.#s="";for(let e=0,r=this.#r.length;e<r;e++){const{line:n,points:i}=this.#r[e];this.#t=n,this.#a=i,this.#o=0,this.toSVGPath()}return{path:{d:this.#s}}}toSVGPath(){const e=pn.svgRound(this.#t[4]),r=pn.svgRound(this.#t[5]);if(this.#a.length===2)return this.#s=`${this.#s} M ${e} ${r} Z`,this.#s;if(this.#a.length<=6){const i=this.#s.lastIndexOf("M");this.#s=`${this.#s.slice(0,i)} M ${e} ${r}`,this.#o=6}if(this.#a.length===4){const i=pn.svgRound(this.#t[10]),a=pn.svgRound(this.#t[11]);return this.#s=`${this.#s} L ${i} ${a}`,this.#o=12,this.#s}const n=[];this.#o===0&&(n.push(`M ${e} ${r}`),this.#o=6);for(let i=this.#o,a=this.#t.length;i<a;i+=6){const[s,o,l,u,d,h]=this.#t.slice(i,i+6).map(pn.svgRound);n.push(`C${s} ${o} ${l} ${u} ${d} ${h}`)}return this.#s+=n.join(" "),this.#o=this.#t.length,this.#s}getOutlines(e,r,n,i){const a=this.#r.at(-1);return a.line=new Float32Array(a.line),a.points=new Float32Array(a.points),this.#c.build(this.#r,e,r,n,this.#n,this.#i,i),this.#e=null,this.#t=null,this.#r=null,this.#s=null,this.#c}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}class T5 extends pn{#e;#t=0;#r;#n;#i;#a;#s;#o;#c;build(e,r,n,i,a,s,o){this.#i=r,this.#a=n,this.#s=i,this.#o=a,this.#c=s,this.#r=o??0,this.#n=e,this.#u()}get thickness(){return this.#c}setLastElement(e){return this.#n.push(e),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#n.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const e=[];for(const{line:r}of this.#n){if(e.push(`M${pn.svgRound(r[4])} ${pn.svgRound(r[5])}`),r.length===6){e.push("Z");continue}if(r.length===12&&isNaN(r[6])){e.push(`L${pn.svgRound(r[10])} ${pn.svgRound(r[11])}`);continue}for(let n=6,i=r.length;n<i;n+=6){const[a,s,o,l,u,d]=r.subarray(n,n+6).map(pn.svgRound);e.push(`C${a} ${s} ${o} ${l} ${u} ${d}`)}}return e.join("")}serialize([e,r,n,i],a){const s=[],o=[],[l,u,d,h]=this.#d();let f,p,g,m,_,v,y,b,E;switch(this.#o){case 0:E=pn._rescale,f=e,p=r+i,g=n,m=-i,_=e+l*n,v=r+(1-u-h)*i,y=e+(l+d)*n,b=r+(1-u)*i;break;case 90:E=pn._rescaleAndSwap,f=e,p=r,g=n,m=i,_=e+u*n,v=r+l*i,y=e+(u+h)*n,b=r+(l+d)*i;break;case 180:E=pn._rescale,f=e+n,p=r,g=-n,m=i,_=e+(1-l-d)*n,v=r+u*i,y=e+(1-l)*n,b=r+(u+h)*i;break;case 270:E=pn._rescaleAndSwap,f=e+n,p=r+i,g=-n,m=-i,_=e+(1-u-h)*n,v=r+(1-l-d)*i,y=e+(1-u)*n,b=r+(1-l)*i;break}for(const{line:S,points:T}of this.#n)s.push(E(S,f,p,g,m,a?new Array(S.length):null)),o.push(E(T,f,p,g,m,a?new Array(T.length):null));return{lines:s,points:o,rect:[_,v,y,b]}}static deserialize(e,r,n,i,a,{paths:{lines:s,points:o},rotation:l,thickness:u}){const d=[];let h,f,p,g,m;switch(l){case 0:m=pn._rescale,h=-e/n,f=r/i+1,p=1/n,g=-1/i;break;case 90:m=pn._rescaleAndSwap,h=-r/i,f=-e/n,p=1/i,g=1/n;break;case 180:m=pn._rescale,h=e/n+1,f=-r/i,p=-1/n,g=1/i;break;case 270:m=pn._rescaleAndSwap,h=r/i+1,f=e/n+1,p=-1/i,g=-1/n;break}if(!s){s=[];for(const v of o){const y=v.length;if(y===2){s.push(new Float32Array([NaN,NaN,NaN,NaN,v[0],v[1]]));continue}if(y===4){s.push(new Float32Array([NaN,NaN,NaN,NaN,v[0],v[1],NaN,NaN,NaN,NaN,v[2],v[3]]));continue}const b=new Float32Array(3*(y-2));s.push(b);let[E,S,T,C]=v.subarray(0,4);b.set([NaN,NaN,NaN,NaN,E,S],0);for(let x=4;x<y;x+=2){const A=v[x],R=v[x+1];b.set(pn.createBezierPoints(E,S,T,C,A,R),(x-2)*3),[E,S,T,C]=[T,C,A,R]}}}for(let v=0,y=s.length;v<y;v++)d.push({line:m(s[v].map(b=>b??NaN),h,f,p,g),points:m(o[v].map(b=>b??NaN),h,f,p,g)});const _=new this.prototype.constructor;return _.build(d,n,i,1,l,u,a),_}#l(e=this.#c){const r=this.#r+e/2*this.#s;return this.#o%180===0?[r/this.#i,r/this.#a]:[r/this.#a,r/this.#i]}#d(){const[e,r,n,i]=this.#e,[a,s]=this.#l(0);return[e+a,r+s,n-2*a,i-2*s]}#u(){const e=this.#e=new Float32Array([1/0,1/0,-1/0,-1/0]);for(const{line:i}of this.#n){if(i.length<=12){for(let o=4,l=i.length;o<l;o+=6)$n.pointBoundingBox(i[o],i[o+1],e);continue}let a=i[4],s=i[5];for(let o=6,l=i.length;o<l;o+=6){const[u,d,h,f,p,g]=i.subarray(o,o+6);$n.bezierBoundingBox(a,s,u,d,h,f,p,g,e),a=p,s=g}}const[r,n]=this.#l();e[0]=jc(e[0]-r,0,1),e[1]=jc(e[1]-n,0,1),e[2]=jc(e[2]+r,0,1),e[3]=jc(e[3]+n,0,1),e[2]-=e[0],e[3]-=e[1]}get box(){return this.#e}updateProperty(e,r){return e==="stroke-width"?this.#p(r):null}#p(e){const[r,n]=this.#l();this.#c=e;const[i,a]=this.#l(),[s,o]=[i-r,a-n],l=this.#e;return l[0]-=s,l[1]-=o,l[2]+=2*s,l[3]+=2*o,l}updateParentDimensions([e,r],n){const[i,a]=this.#l();this.#i=e,this.#a=r,this.#s=n;const[s,o]=this.#l(),l=s-i,u=o-a,d=this.#e;return d[0]-=l,d[1]-=u,d[2]+=2*l,d[3]+=2*u,d}updateRotation(e){return this.#t=e,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#e.map(pn.svgRound).join(" ")}get defaultProperties(){const[e,r]=this.#e;return{root:{viewBox:this.viewBox},path:{"transform-origin":`${pn.svgRound(e)} ${pn.svgRound(r)}`}}}get rotationTransform(){const[,,e,r]=this.#e;let n=0,i=0,a=0,s=0,o=0,l=0;switch(this.#t){case 90:i=r/e,a=-e/r,o=e;break;case 180:n=-1,s=-1,o=e,l=r;break;case 270:i=-r/e,a=e/r,l=r;break;default:return""}return`matrix(${n} ${i} ${a} ${s} ${pn.svgRound(o)} ${pn.svgRound(l)})`}getPathResizingSVGProperties([e,r,n,i]){const[a,s]=this.#l(),[o,l,u,d]=this.#e;if(Math.abs(u-a)<=pn.PRECISION||Math.abs(d-s)<=pn.PRECISION){const m=e+n/2-(o+u/2),_=r+i/2-(l+d/2);return{path:{"transform-origin":`${pn.svgRound(e)} ${pn.svgRound(r)}`,transform:`${this.rotationTransform} translate(${m} ${_})`}}}const h=(n-2*a)/(u-2*a),f=(i-2*s)/(d-2*s),p=u/n,g=d/i;return{path:{"transform-origin":`${pn.svgRound(o)} ${pn.svgRound(l)}`,transform:`${this.rotationTransform} scale(${p} ${g}) translate(${pn.svgRound(a)} ${pn.svgRound(s)}) scale(${h} ${f}) translate(${pn.svgRound(-a)} ${pn.svgRound(-s)})`}}}getPathResizedSVGProperties([e,r,n,i]){const[a,s]=this.#l(),o=this.#e,[l,u,d,h]=o;if(o[0]=e,o[1]=r,o[2]=n,o[3]=i,Math.abs(d-a)<=pn.PRECISION||Math.abs(h-s)<=pn.PRECISION){const _=e+n/2-(l+d/2),v=r+i/2-(u+h/2);for(const{line:y,points:b}of this.#n)pn._translate(y,_,v,y),pn._translate(b,_,v,b);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${pn.svgRound(e)} ${pn.svgRound(r)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const f=(n-2*a)/(d-2*a),p=(i-2*s)/(h-2*s),g=-f*(l+a)+e+a,m=-p*(u+s)+r+s;if(f!==1||p!==1||g!==0||m!==0)for(const{line:_,points:v}of this.#n)pn._rescale(_,g,m,f,p,_),pn._rescale(v,g,m,f,p,v);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${pn.svgRound(e)} ${pn.svgRound(r)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([e,r],n){const[i,a]=n,s=this.#e,o=e-s[0],l=r-s[1];if(this.#i===i&&this.#a===a)for(const{line:u,points:d}of this.#n)pn._translate(u,o,l,u),pn._translate(d,o,l,d);else{const u=this.#i/i,d=this.#a/a;this.#i=i,this.#a=a;for(const{line:h,points:f}of this.#n)pn._rescale(h,o,l,u,d,h),pn._rescale(f,o,l,u,d,f);s[2]*=u,s[3]*=d}return s[0]=e,s[1]=r,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${pn.svgRound(e)} ${pn.svgRound(r)}`}}}get defaultSVGProperties(){const e=this.#e;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${pn.svgRound(e[0])} ${pn.svgRound(e[1])}`,transform:this.rotationTransform||null},bbox:e}}}class QB extends vLe{constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:"none",stroke:qn._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(e,r){e==="stroke-width"&&(r??=this["stroke-width"],r*=this._viewParameters.realScale),super.updateSVGProperty(e,r)}clone(){const e=new QB(this._viewParameters);return e.updateAll(this),e}}class ale extends Xn{static _type="ink";static _editorType=mi.INK;static _defaultDrawingOptions=null;constructor(e){super({...e,name:"inkEditor"}),this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(e,r){qn.initialize(e,r),this._defaultDrawingOptions=new QB(r.viewParameters)}static getDefaultDrawingOptions(e){const r=this._defaultDrawingOptions.clone();return r.updateProperties(e),r}static get supportMultipleDrawings(){return!0}static get typesMap(){return qi(this,"typesMap",new Map([[aa.INK_THICKNESS,"stroke-width"],[aa.INK_COLOR,"stroke"],[aa.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(e,r,n,i,a){return new A4t(e,r,n,i,a,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(e,r,n,i,a,s){return T5.deserialize(e,r,n,i,a,s)}static async deserialize(e,r,n){let i=null;if(e instanceof nle){const{data:{inkLists:s,rect:o,rotation:l,id:u,color:d,opacity:h,borderStyle:{rawWidth:f},popupRef:p,contentsObj:g},parent:{page:{pageNumber:m}}}=e;i=e={annotationType:mi.INK,color:Array.from(d),thickness:f,opacity:h,paths:{points:s},boxes:null,pageIndex:m-1,rect:o.slice(0),rotation:l,annotationElementId:u,id:u,deleted:!1,popupRef:p,comment:g?.str||null}}const a=await super.deserialize(e,r,n);return a._initialData=i,e.comment&&a.setCommentData(e.comment),a}get toolbarButtons(){return this._colorPicker||=new yk(this),[["colorPicker",this._colorPicker]]}get colorType(){return aa.INK_COLOR}get colorValue(){return this._drawingOptions.stroke}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:e,_drawingOptions:r,parent:n}=this;r.updateSVGProperty("stroke-width"),n.drawLayer.updateProperties(e,r.toSVGProperties())}static onScaleChangingWhenDrawing(){const e=this._currentParent;e&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),e.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:e,thickness:r,opacity:n}){this._drawingOptions=ale.getDefaultDrawingOptions({stroke:$n.makeHexColor(...e),"stroke-width":r,"stroke-opacity":n})}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:r,points:n,rect:i}=this.serializeDraw(e),{_drawingOptions:{stroke:a,"stroke-opacity":s,"stroke-width":o}}=this,l={annotationType:mi.INK,color:qn._colorManager.convert(a),opacity:s,thickness:o,paths:{lines:r,points:n},pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return this.addComment(l),e?(l.isCopy=!0,l):this.annotationElementId&&!this.#e(l)?null:(l.id=this.annotationElementId,l)}#e(e){const{color:r,thickness:n,opacity:i,pageIndex:a}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||e.color.some((s,o)=>s!==r[o])||e.thickness!==n||e.opacity!==i||e.pageIndex!==a}renderAnnotationElement(e){const{points:r,rect:n}=this.serializeDraw(!1),i={rect:n,thickness:this._drawingOptions["stroke-width"],points:r};return this.hasEditedComment&&(i.popup=this.comment),e.updateEdited(i),null}}class nJ extends T5{toSVGPath(){let e=super.toSVGPath();return e.endsWith("Z")||(e+="Z"),e}}const ZM=8,SO=3;class BS{static#e={maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16};static#t(e,r,n,i){return n-=e,i-=r,n===0?i>0?0:4:n===1?i+6:2-i}static#r=new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]);static#n(e,r,n,i,a,s,o){const l=this.#t(n,i,a,s);for(let u=0;u<8;u++){const d=(-u+l-o+16)%8,h=this.#r[2*d],f=this.#r[2*d+1];if(e[(n+h)*r+(i+f)]!==0)return d}return-1}static#i(e,r,n,i,a,s,o){const l=this.#t(n,i,a,s);for(let u=0;u<8;u++){const d=(u+l+o+16)%8,h=this.#r[2*d],f=this.#r[2*d+1];if(e[(n+h)*r+(i+f)]!==0)return d}return-1}static#a(e,r,n,i){const a=e.length,s=new Int32Array(a);for(let d=0;d<a;d++)s[d]=e[d]<=i?1:0;for(let d=1;d<n-1;d++)s[d*r]=s[d*r+r-1]=0;for(let d=0;d<r;d++)s[d]=s[r*n-1-d]=0;let o=1,l;const u=[];for(let d=1;d<n-1;d++){l=1;for(let h=1;h<r-1;h++){const f=d*r+h,p=s[f];if(p===0)continue;let g=d,m=h;if(p===1&&s[f-1]===0)o+=1,m-=1;else if(p>=1&&s[f+1]===0)o+=1,m+=1,p>1&&(l=p);else{p!==1&&(l=Math.abs(p));continue}const _=[h,d],v=m===h+1,y={isHole:v,points:_,id:o,parent:0};u.push(y);let b;for(const I of u)if(I.id===l){b=I;break}b?b.isHole?y.parent=v?b.parent:l:y.parent=v?l:b.parent:y.parent=v?l:0;const E=this.#n(s,r,d,h,g,m,0);if(E===-1){s[f]=-o,s[f]!==1&&(l=Math.abs(s[f]));continue}let S=this.#r[2*E],T=this.#r[2*E+1];const C=d+S,x=h+T;g=C,m=x;let A=d,R=h;for(;;){const I=this.#i(s,r,A,R,g,m,1);S=this.#r[2*I],T=this.#r[2*I+1];const L=A+S,F=R+T;_.push(F,L);const O=A*r+R;if(s[O+1]===0?s[O]=-o:s[O]===1&&(s[O]=o),L===d&&F===h&&A===C&&R===x){s[f]!==1&&(l=Math.abs(s[f]));break}else g=A,m=R,A=L,R=F}}}return u}static#s(e,r,n,i){if(n-r<=4){for(let C=r;C<n-2;C+=2)i.push(e[C],e[C+1]);return}const a=e[r],s=e[r+1],o=e[n-4]-a,l=e[n-3]-s,u=Math.hypot(o,l),d=o/u,h=l/u,f=d*s-h*a,p=l/o,g=1/u,m=Math.atan(p),_=Math.cos(m),v=Math.sin(m),y=g*(Math.abs(_)+Math.abs(v)),b=g*(1-y+y**2),E=Math.max(Math.atan(Math.abs(v+_)*b),Math.atan(Math.abs(v-_)*b));let S=0,T=r;for(let C=r+2;C<n-2;C+=2){const x=Math.abs(f-d*e[C+1]+h*e[C]);x>S&&(T=C,S=x)}S>(u*E)**2?(this.#s(e,r,T+2,i),this.#s(e,T,n,i)):i.push(a,s)}static#o(e){const r=[],n=e.length;return this.#s(e,0,n,r),r.push(e[n-2],e[n-1]),r.length<=4?null:r}static#c(e,r,n,i,a,s){const o=new Float32Array(s**2),l=-2*i**2,u=s>>1;for(let m=0;m<s;m++){const _=(m-u)**2;for(let v=0;v<s;v++)o[m*s+v]=Math.exp((_+(v-u)**2)/l)}const d=new Float32Array(256),h=-2*a**2;for(let m=0;m<256;m++)d[m]=Math.exp(m**2/h);const f=e.length,p=new Uint8Array(f),g=new Uint32Array(256);for(let m=0;m<n;m++)for(let _=0;_<r;_++){const v=m*r+_,y=e[v];let b=0,E=0;for(let T=0;T<s;T++){const C=m+T-u;if(!(C<0||C>=n))for(let x=0;x<s;x++){const A=_+x-u;if(A<0||A>=r)continue;const R=e[C*r+A],I=o[T*s+x]*d[Math.abs(R-y)];b+=R*I,E+=I}}const S=p[v]=Math.round(b/E);g[S]++}return[p,g]}static#l(e){const r=new Uint32Array(256);for(const n of e)r[n]++;return r}static#d(e){const r=e.length,n=new Uint8ClampedArray(r>>2);let i=-1/0,a=1/0;for(let o=0,l=n.length;o<l;o++){const u=n[o]=e[o<<2];i=Math.max(i,u),a=Math.min(a,u)}const s=255/(i-a);for(let o=0,l=n.length;o<l;o++)n[o]=(n[o]-a)*s;return n}static#u(e){let r,n=-1/0,i=-1/0;const a=e.findIndex(l=>l!==0);let s=a,o=a;for(r=a;r<256;r++){const l=e[r];l>n&&(r-s>i&&(i=r-s,o=r-1),n=l,s=r)}for(r=o-1;r>=0&&!(e[r]>e[r+1]);r--);return r}static#p(e){const r=e,{width:n,height:i}=e,{maxDim:a}=this.#e;let s=n,o=i;if(n>a||i>a){let f=n,p=i,g=Math.log2(Math.max(n,i)/a);const m=Math.floor(g);g=g===m?m-1:m;for(let v=0;v<g;v++){s=Math.ceil(f/2),o=Math.ceil(p/2);const y=new OffscreenCanvas(s,o);y.getContext("2d").drawImage(e,0,0,f,p,0,0,s,o),f=s,p=o,e!==r&&e.close(),e=y.transferToImageBitmap()}const _=Math.min(a/s,a/o);s=Math.round(s*_),o=Math.round(o*_)}const u=new OffscreenCanvas(s,o).getContext("2d",{willReadFrequently:!0});u.fillStyle="white",u.fillRect(0,0,s,o),u.filter="grayscale(1)",u.drawImage(e,0,0,e.width,e.height,0,0,s,o);const d=u.getImageData(0,0,s,o).data;return[this.#d(d),s,o]}static extractContoursFromText(e,{fontFamily:r,fontStyle:n,fontWeight:i},a,s,o,l){let u=new OffscreenCanvas(1,1),d=u.getContext("2d",{alpha:!1});const h=200,f=d.font=`${n} ${i} ${h}px ${r}`,{actualBoundingBoxLeft:p,actualBoundingBoxRight:g,actualBoundingBoxAscent:m,actualBoundingBoxDescent:_,fontBoundingBoxAscent:v,fontBoundingBoxDescent:y,width:b}=d.measureText(e),E=1.5,S=Math.ceil(Math.max(Math.abs(p)+Math.abs(g)||0,b)*E),T=Math.ceil(Math.max(Math.abs(m)+Math.abs(_)||h,Math.abs(v)+Math.abs(y)||h)*E);u=new OffscreenCanvas(S,T),d=u.getContext("2d",{alpha:!0,willReadFrequently:!0}),d.font=f,d.filter="grayscale(1)",d.fillStyle="white",d.fillRect(0,0,S,T),d.fillStyle="black",d.fillText(e,S*(E-1)/2,T*(3-E)/2);const C=this.#d(d.getImageData(0,0,S,T).data),x=this.#l(C),A=this.#u(x),R=this.#a(C,S,T,A);return this.processDrawnLines({lines:{curves:R,width:S,height:T},pageWidth:a,pageHeight:s,rotation:o,innerMargin:l,mustSmooth:!0,areContours:!0})}static process(e,r,n,i,a){const[s,o,l]=this.#p(e),[u,d]=this.#c(s,o,l,Math.hypot(o,l)*this.#e.sigmaSFactor,this.#e.sigmaR,this.#e.kernelSize),h=this.#u(d),f=this.#a(u,o,l,h);return this.processDrawnLines({lines:{curves:f,width:o,height:l},pageWidth:r,pageHeight:n,rotation:i,innerMargin:a,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:e,pageWidth:r,pageHeight:n,rotation:i,innerMargin:a,mustSmooth:s,areContours:o}){i%180!==0&&([r,n]=[n,r]);const{curves:l,width:u,height:d}=e,h=e.thickness??0,f=[],p=Math.min(r/u,n/d),g=p/r,m=p/n,_=[];for(const{points:y}of l){const b=s?this.#o(y):y;if(!b)continue;_.push(b);const E=b.length,S=new Float32Array(E),T=new Float32Array(3*(E===2?2:E-2));if(f.push({line:T,points:S}),E===2){S[0]=b[0]*g,S[1]=b[1]*m,T.set([NaN,NaN,NaN,NaN,S[0],S[1]],0);continue}let[C,x,A,R]=b;C*=g,x*=m,A*=g,R*=m,S.set([C,x,A,R],0),T.set([NaN,NaN,NaN,NaN,C,x],0);for(let I=4;I<E;I+=2){const L=S[I]=b[I]*g,F=S[I+1]=b[I+1]*m;T.set(pn.createBezierPoints(C,x,A,R,L,F),(I-2)*3),[C,x,A,R]=[A,R,L,F]}}if(f.length===0)return null;const v=o?new nJ:new T5;return v.build(f,r,n,1,i,o?0:h,a),{outline:v,newCurves:_,areContours:o,thickness:h,width:u,height:d}}static async compressSignature({outlines:e,areContours:r,thickness:n,width:i,height:a}){let s=1/0,o=-1/0,l=0;for(const b of e){l+=b.length;for(let E=2,S=b.length;E<S;E++){const T=b[E]-b[E-2];s=Math.min(s,T),o=Math.max(o,T)}}let u;s>=-128&&o<=127?u=Int8Array:s>=-32768&&o<=32767?u=Int16Array:u=Int32Array;const d=e.length,h=ZM+SO*d,f=new Uint32Array(h);let p=0;f[p++]=h*Uint32Array.BYTES_PER_ELEMENT+(l-2*d)*u.BYTES_PER_ELEMENT,f[p++]=0,f[p++]=i,f[p++]=a,f[p++]=r?0:1,f[p++]=Math.max(0,Math.floor(n??0)),f[p++]=d,f[p++]=u.BYTES_PER_ELEMENT;for(const b of e)f[p++]=b.length-2,f[p++]=b[0],f[p++]=b[1];const g=new CompressionStream("deflate-raw"),m=g.writable.getWriter();await m.ready,m.write(f);const _=u.prototype.constructor;for(const b of e){const E=new _(b.length-2);for(let S=2,T=b.length;S<T;S++)E[S-2]=b[S]-b[S-2];m.write(E)}m.close();const v=await new Response(g.readable).arrayBuffer(),y=new Uint8Array(v);return YMe(y)}static async decompressSignature(e){try{const r=X5t(e),{readable:n,writable:i}=new DecompressionStream("deflate-raw"),a=i.getWriter();await a.ready,a.write(r).then(async()=>{await a.ready,await a.close()}).catch(()=>{});let s=null,o=0;for await(const b of n)s||=new Uint8Array(new Uint32Array(b.buffer,0,4)[0]),s.set(b,o),o+=b.length;const l=new Uint32Array(s.buffer,0,s.length>>2),u=l[1];if(u!==0)throw new Error(`Invalid version: ${u}`);const d=l[2],h=l[3],f=l[4]===0,p=l[5],g=l[6],m=l[7],_=[],v=(ZM+SO*g)*Uint32Array.BYTES_PER_ELEMENT;let y;switch(m){case Int8Array.BYTES_PER_ELEMENT:y=new Int8Array(s.buffer,v);break;case Int16Array.BYTES_PER_ELEMENT:y=new Int16Array(s.buffer,v);break;case Int32Array.BYTES_PER_ELEMENT:y=new Int32Array(s.buffer,v);break}o=0;for(let b=0;b<g;b++){const E=l[SO*b+ZM],S=new Float32Array(E+2);_.push(S);for(let T=0;T<SO-1;T++)S[T]=l[SO*b+ZM+T+1];for(let T=0;T<E;T++)S[T+2]=S[T]+y[o++]}return{areContours:f,thickness:p,outlines:_,width:d,height:h}}catch(r){return _i(`decompressSignature: ${r}`),null}}}class sle extends vLe{constructor(){super(),super.updateProperties({fill:qn._defaultLineColor,"stroke-width":0})}clone(){const e=new sle;return e.updateAll(this),e}}class ole extends QB{constructor(e){super(e),super.updateProperties({stroke:qn._defaultLineColor,"stroke-width":1})}clone(){const e=new ole(this._viewParameters);return e.updateAll(this),e}}class Op extends Xn{#e=!1;#t=null;#r=null;#n=null;static _type="signature";static _editorType=mi.SIGNATURE;static _defaultDrawingOptions=null;constructor(e){super({...e,mustBeCommitted:!0,name:"signatureEditor"}),this._willKeepAspectRatio=!0,this.#r=e.signatureData||null,this.#t=null,this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(e,r){qn.initialize(e,r),this._defaultDrawingOptions=new sle,this._defaultDrawnSignatureOptions=new ole(r.viewParameters)}static getDefaultDrawingOptions(e){const r=this._defaultDrawingOptions.clone();return r.updateProperties(e),r}static get supportMultipleDrawings(){return!1}static get typesMap(){return qi(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!this.#t}}static computeTelemetryFinalData(e){const r=e.get("hasDescription");return{hasAltText:r.get(!0)??0,hasNoAltText:r.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let e,r;const{_isCopy:n}=this;if(n&&(this._isCopy=!1,e=this.x,r=this.y),super.render(),this._drawId===null)if(this.#r){const{lines:i,mustSmooth:a,areContours:s,description:o,uuid:l,heightInPage:u}=this.#r,{rawDims:{pageWidth:d,pageHeight:h},rotation:f}=this.parent.viewport,p=BS.processDrawnLines({lines:i,pageWidth:d,pageHeight:h,rotation:f,innerMargin:Op._INNER_MARGIN,mustSmooth:a,areContours:s});this.addSignature(p,u,o,l)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:this.#t||""}));return n&&(this._isCopy=!0,this._moveAfterPaste(e,r)),this.div}setUuid(e){this.#n=e,this.addEditToolbar()}getUuid(){return this.#n}get description(){return this.#t}set description(e){this.#t=e,this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:e})),super.addEditToolbar().then(r=>{r?.updateEditSignatureButton(e)}))}getSignaturePreview(){const{newCurves:e,areContours:r,thickness:n,width:i,height:a}=this.#r,s=Math.max(i,a),o=BS.processDrawnLines({lines:{curves:e.map(l=>({points:l})),thickness:n,width:i,height:a},pageWidth:s,pageHeight:s,rotation:0,innerMargin:0,mustSmooth:!1,areContours:r});return{areContours:r,outline:o.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(e,r,n,i){const{x:a,y:s}=this,{outline:o}=this.#r=e;this.#e=o instanceof nJ,this.description=n;let l;this.#e?l=Op.getDefaultDrawingOptions():(l=Op._defaultDrawnSignatureOptions.clone(),l.updateProperties({"stroke-width":o.thickness})),this._addOutlines({drawOutlines:o,drawingOptions:l});const[u,d]=this.parentDimensions,[,h]=this.pageDimensions;let f=r/h;f=f>=1?.5:f,this.width*=f/this.height,this.width>=1&&(f*=.9/this.width,this.width=.9),this.height=f,this.setDims(u*this.width,d*this.height),this.x=a,this.y=s,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!n}}),this.div.hidden=!1}getFromImage(e){const{rawDims:{pageWidth:r,pageHeight:n},rotation:i}=this.parent.viewport;return BS.process(e,r,n,i,Op._INNER_MARGIN)}getFromText(e,r){const{rawDims:{pageWidth:n,pageHeight:i},rotation:a}=this.parent.viewport;return BS.extractContoursFromText(e,r,n,i,a,Op._INNER_MARGIN)}getDrawnSignature(e){const{rawDims:{pageWidth:r,pageHeight:n},rotation:i}=this.parent.viewport;return BS.processDrawnLines({lines:e,pageWidth:r,pageHeight:n,rotation:i,innerMargin:Op._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:e,thickness:r}){e?this._drawingOptions=Op.getDefaultDrawingOptions():(this._drawingOptions=Op._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":r}))}serialize(e=!1){if(this.isEmpty())return null;const{lines:r,points:n,rect:i}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":a}}=this,s={annotationType:mi.SIGNATURE,isSignature:!0,areContours:this.#e,color:[0,0,0],thickness:this.#e?0:a,pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return this.addComment(s),e?(s.paths={lines:r,points:n},s.uuid=this.#n,s.isCopy=!0):s.lines=r,this.#t&&(s.accessibilityData={type:"Figure",alt:this.#t}),s}static deserializeDraw(e,r,n,i,a,s){return s.areContours?nJ.deserialize(e,r,n,i,a,s):T5.deserialize(e,r,n,i,a,s)}static async deserialize(e,r,n){const i=await super.deserialize(e,r,n);return i.#e=e.areContours,i.description=e.accessibilityData?.alt||"",i.#n=e.uuid,i}}class R4t extends qn{#e=null;#t=null;#r=null;#n=null;#i=null;#a="";#s=null;#o=!1;#c=null;#l=!1;#d=!1;static _type="stamp";static _editorType=mi.STAMP;constructor(e){super({...e,name:"stampEditor"}),this.#n=e.bitmapUrl,this.#i=e.bitmapFile,this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(e,r){qn.initialize(e,r)}static isHandlingMimeForPasting(e){return XZ.includes(e)}static paste(e,r){r.pasteEditor({mode:mi.STAMP},{bitmapFile:e.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(e){const r=e.get("hasAltText");return{hasAltText:r.get(!0)??0,hasNoAltText:r.get(!1)??0}}#u(e,r=!1){if(!e){this.remove();return}this.#e=e.bitmap,r||(this.#t=e.id,this.#l=e.isSvg),e.file&&(this.#a=e.file.name),this.#f()}#p(){if(this.#r=null,this._uiManager.enableWaiting(!1),!!this.#s){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(e=null,r=!0){if(this.hasAltTextData())return null;const{mlManager:n}=this._uiManager;if(!n)throw new Error("No ML.");if(!await n.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:a,height:s}=e||this.copyCanvas(null,null,!0).imageData,o=await n.guess({name:"altText",request:{data:i,width:a,height:s,channels:i.length/(a*s)}});if(!o)throw new Error("No response from the AI service.");if(o.error)throw new Error("Error from the AI service.");if(o.cancel)return null;if(!o.output)throw new Error("No valid response from the AI service.");const l=o.output;return await this.setGuessedAltText(l),r&&!this.hasAltTextData()&&(this.altTextData={alt:l,decorative:!1}),l}#g(){if(this.#t){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#t).then(n=>this.#u(n,!0)).finally(()=>this.#p());return}if(this.#n){const n=this.#n;this.#n=null,this._uiManager.enableWaiting(!0),this.#r=this._uiManager.imageManager.getFromUrl(n).then(i=>this.#u(i)).finally(()=>this.#p());return}if(this.#i){const n=this.#i;this.#i=null,this._uiManager.enableWaiting(!0),this.#r=this._uiManager.imageManager.getFromFile(n).then(i=>this.#u(i)).finally(()=>this.#p());return}const e=document.createElement("input");e.type="file",e.accept=XZ.join(",");const r=this._uiManager._signal;this.#r=new Promise(n=>{e.addEventListener("change",async()=>{if(!e.files||e.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const i=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#u(i)}n()},{signal:r}),e.addEventListener("cancel",()=>{this.remove(),n()},{signal:r})}).finally(()=>this.#p()),e.click()}remove(){this.#t&&(this.#e=null,this._uiManager.imageManager.deleteId(this.#t),this.#s?.remove(),this.#s=null,this.#c&&(clearTimeout(this.#c),this.#c=null)),super.remove()}rebuild(){if(!this.parent){this.#t&&this.#g();return}super.rebuild(),this.div!==null&&(this.#t&&this.#s===null&&this.#g(),this.isAttachedToDOM||this.parent.add(this))}onceAdded(e){this._isDraggable=!0,e&&this.div.focus()}isEmpty(){return!(this.#r||this.#e||this.#n||this.#i||this.#t||this.#o)}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let e,r;return this._isCopy&&(e=this.x,r=this.y),super.render(),this.div.hidden=!0,this.createAltText(),this.#o||(this.#e?this.#f():this.#g()),this._isCopy&&this._moveAfterPaste(e,r),this._uiManager.addShouldRescale(this),this.div}setCanvas(e,r){const{id:n,bitmap:i}=this._uiManager.imageManager.getFromCanvas(e,r);r.remove(),n&&this._uiManager.imageManager.isValidId(n)&&(this.#t=n,i&&(this.#e=i),this.#o=!1,this.#f())}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;this.#c!==null&&clearTimeout(this.#c);const e=200;this.#c=setTimeout(()=>{this.#c=null,this.#m()},e)}#f(){const{div:e}=this;let{width:r,height:n}=this.#e;const[i,a]=this.pageDimensions,s=.75;if(this.width)r=this.width*i,n=this.height*a;else if(r>s*i||n>s*a){const d=Math.min(s*i/r,s*a/n);r*=d,n*=d}const[o,l]=this.parentDimensions;this.setDims(r*o/i,n*l/a),this._uiManager.enableWaiting(!1);const u=this.#s=document.createElement("canvas");u.setAttribute("role","img"),this.addContainer(u),this.width=r/i,this.height=n/a,this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(e.hidden=!1),this.#m(),this.#d||(this.parent.addUndoableEditor(this),this.#d=!0),this._reportTelemetry({action:"inserted_image"}),this.#a&&this.div.setAttribute("aria-description",this.#a),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")}copyCanvas(e,r,n=!1){e||(e=224);const{width:i,height:a}=this.#e,s=new gg;let o=this.#e,l=i,u=a,d=null;if(r){if(i>r||a>r){const T=Math.min(r/i,r/a);l=Math.floor(i*T),u=Math.floor(a*T)}d=document.createElement("canvas");const f=d.width=Math.ceil(l*s.sx),p=d.height=Math.ceil(u*s.sy);this.#l||(o=this.#h(f,p));const g=d.getContext("2d");g.filter=this._uiManager.hcmFilter;let m="white",_="#cfcfd8";this._uiManager.hcmFilter!=="none"?_="black":window.matchMedia?.("(prefers-color-scheme: dark)").matches&&(m="#8f8f9d",_="#42414d");const v=15,y=v*s.sx,b=v*s.sy,E=new OffscreenCanvas(y*2,b*2),S=E.getContext("2d");S.fillStyle=m,S.fillRect(0,0,y*2,b*2),S.fillStyle=_,S.fillRect(0,0,y,b),S.fillRect(y,b,y,b),g.fillStyle=g.createPattern(E,"repeat"),g.fillRect(0,0,f,p),g.drawImage(o,0,0,o.width,o.height,0,0,f,p)}let h=null;if(n){let f,p;if(s.symmetric&&o.width<e&&o.height<e)f=o.width,p=o.height;else if(o=this.#e,i>e||a>e){const _=Math.min(e/i,e/a);f=Math.floor(i*_),p=Math.floor(a*_),this.#l||(o=this.#h(f,p))}const m=new OffscreenCanvas(f,p).getContext("2d",{willReadFrequently:!0});m.drawImage(o,0,0,o.width,o.height,0,0,f,p),h={width:f,height:p,data:m.getImageData(0,0,f,p).data}}return{canvas:d,width:l,height:u,imageData:h}}#h(e,r){const{width:n,height:i}=this.#e;let a=n,s=i,o=this.#e;for(;a>2*e||s>2*r;){const l=a,u=s;a>2*e&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2)),s>2*r&&(s=s>=16384?Math.floor(s/2)-1:Math.ceil(s/2));const d=new OffscreenCanvas(a,s);d.getContext("2d").drawImage(o,0,0,l,u,0,0,a,s),o=d.transferToImageBitmap()}return o}#m(){const[e,r]=this.parentDimensions,{width:n,height:i}=this,a=new gg,s=Math.ceil(n*e*a.sx),o=Math.ceil(i*r*a.sy),l=this.#s;if(!l||l.width===s&&l.height===o)return;l.width=s,l.height=o;const u=this.#l?this.#e:this.#h(s,o),d=l.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(u,0,0,u.width,u.height,0,0,s,o)}#v(e){if(e){if(this.#l){const i=this._uiManager.imageManager.getSvgUrl(this.#t);if(i)return i}const r=document.createElement("canvas");return{width:r.width,height:r.height}=this.#e,r.getContext("2d").drawImage(this.#e,0,0),r.toDataURL()}if(this.#l){const[r,n]=this.pageDimensions,i=Math.round(this.width*r*sA.PDF_TO_CSS_UNITS),a=Math.round(this.height*n*sA.PDF_TO_CSS_UNITS),s=new OffscreenCanvas(i,a);return s.getContext("2d").drawImage(this.#e,0,0,this.#e.width,this.#e.height,0,0,i,a),s.transferToImageBitmap()}return structuredClone(this.#e)}static async deserialize(e,r,n){let i=null,a=!1;if(e instanceof mLe){const{data:{rect:m,rotation:_,id:v,structParent:y,popupRef:b,contentsObj:E},container:S,parent:{page:{pageNumber:T}},canvas:C}=e;let x,A;C?(delete e.canvas,{id:x,bitmap:A}=n.imageManager.getFromCanvas(S.id,C),C.remove()):(a=!0,e._hasNoCanvas=!0);const R=(await r._structTree.getAriaAttributes(`${Hoe}${v}`))?.get("aria-label")||"";i=e={annotationType:mi.STAMP,bitmapId:x,bitmap:A,pageIndex:T-1,rect:m.slice(0),rotation:_,annotationElementId:v,id:v,deleted:!1,accessibilityData:{decorative:!1,altText:R},isSvg:!1,structParent:y,popupRef:b,comment:E?.str||null}}const s=await super.deserialize(e,r,n),{rect:o,bitmap:l,bitmapUrl:u,bitmapId:d,isSvg:h,accessibilityData:f}=e;a?(n.addMissingCanvas(e.id,s),s.#o=!0):d&&n.imageManager.isValidId(d)?(s.#t=d,l&&(s.#e=l)):s.#n=u,s.#l=h;const[p,g]=s.pageDimensions;return s.width=(o[2]-o[0])/p,s.height=(o[3]-o[1])/g,f&&(s.altTextData=f),s._initialData=i,e.comment&&s.setCommentData(e.comment),s.#d=!!i,s}serialize(e=!1,r=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const n={annotationType:mi.STAMP,bitmapId:this.#t,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#l,structTreeParentId:this._structTreeParentId};if(this.addComment(n),e)return n.bitmapUrl=this.#v(!0),n.accessibilityData=this.serializeAltText(!0),n.isCopy=!0,n;const{decorative:i,altText:a}=this.serializeAltText(!1);if(!i&&a&&(n.accessibilityData={type:"Figure",alt:a}),this.annotationElementId){const o=this.#_(n);if(o.isSame)return null;o.isSameAltText?delete n.accessibilityData:n.accessibilityData.structParent=this._initialData.structParent??-1}if(n.id=this.annotationElementId,r===null)return n;r.stamps||=new Map;const s=this.#l?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(!r.stamps.has(this.#t))r.stamps.set(this.#t,{area:s,serialized:n}),n.bitmap=this.#v(!1);else if(this.#l){const o=r.stamps.get(this.#t);s>o.area&&(o.area=s,o.serialized.bitmap.close(),o.serialized.bitmap=this.#v(!1))}return n}#_(e){const{pageIndex:r,accessibilityData:{altText:n}}=this._initialData,i=e.pageIndex===r,a=(e.accessibilityData?.alt||"")===n;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&i&&a,isSameAltText:a}}renderAnnotationElement(e){const r={rect:this.getRect(0,0)};return this.hasEditedComment&&(r.popup=this.comment),e.updateEdited(r),null}}class _m{#e;#t=!1;#r=null;#n=null;#i=null;#a=new Map;#s=!1;#o=!1;#c=!1;#l=null;#d=null;#u=null;#p=null;#g=null;#f=-1;#h;static _initialized=!1;static#m=new Map([tl,ale,R4t,So,Op].map(e=>[e._editorType,e]));constructor({uiManager:e,pageIndex:r,div:n,structTreeLayer:i,accessibilityManager:a,annotationLayer:s,drawLayer:o,textLayer:l,viewport:u,l10n:d}){const h=[..._m.#m.values()];if(!_m._initialized){_m._initialized=!0;for(const f of h)f.initialize(d,e)}e.registerEditorTypes(h),this.#h=e,this.pageIndex=r,this.div=n,this.#e=a,this.#r=s,this.viewport=u,this.#u=l,this.drawLayer=o,this._structTree=i,this.#h.addLayer(this)}get isEmpty(){return this.#a.size===0}get isInvisible(){return this.isEmpty&&this.#h.getMode()===mi.NONE}updateToolbar(e){this.#h.updateToolbar(e)}updateMode(e=this.#h.getMode()){switch(this.#y(),e){case mi.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case mi.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case mi.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:r}=this.div;for(const n of _m.#m.values())r.toggle(`${n._type}Editing`,e===n._editorType);this.div.hidden=!1}hasTextLayer(e){return e===this.#u?.div}setEditingState(e){this.#h.setEditingState(e)}addCommands(e){this.#h.addCommands(e)}cleanUndoStack(e){this.#h.cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#r?.div.classList.toggle("disabled",!e)}async enable(){this.#c=!0,this.div.tabIndex=0,this.togglePointerEvents(!0),this.#g?.abort(),this.#g=null;const e=new Set;for(const n of this.#a.values())n.enableEditing(),n.show(!0),n.annotationElementId&&(this.#h.removeChangedExistingAnnotation(n),e.add(n.annotationElementId));if(!this.#r){this.#c=!1;return}const r=this.#r.getEditableAnnotations();for(const n of r){if(n.hide(),this.#h.isDeletedAnnotationElement(n.data.id)||e.has(n.data.id))continue;const i=await this.deserialize(n);i&&(this.addOrRebuild(i),i.enableEditing())}this.#c=!1}disable(){if(this.#o=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1),this.#u&&!this.#g){this.#g=new AbortController;const i=this.#h.combinedSignal(this.#g);this.#u.div.addEventListener("pointerdown",a=>{const{clientX:o,clientY:l,timeStamp:u}=a,d=this.#f;if(u-d>500){this.#f=u;return}this.#f=-1;const{classList:h}=this.div;h.toggle("getElements",!0);const f=document.elementsFromPoint(o,l);if(h.toggle("getElements",!1),!this.div.contains(f[0]))return;let p;const g=new RegExp(`^${GMe}[0-9]+$`);for(const _ of f)if(g.test(_.id)){p=_.id;break}if(!p)return;const m=this.#a.get(p);m?.annotationElementId===null&&(a.stopPropagation(),a.preventDefault(),m.dblclick())},{signal:i,capture:!0})}const e=new Map,r=new Map;for(const i of this.#a.values())if(i.disableEditing(),!!i.annotationElementId){if(i.serialize()!==null){e.set(i.annotationElementId,i);continue}else r.set(i.annotationElementId,i);this.getEditableAnnotation(i.annotationElementId)?.show(),i.remove()}if(this.#r){const i=this.#r.getEditableAnnotations();for(const a of i){const{id:s}=a.data;if(this.#h.isDeletedAnnotationElement(s)){a.updateEdited({deleted:!0});continue}let o=r.get(s);if(o){o.resetAnnotationElement(a),o.show(!1),a.show();continue}o=e.get(s),o&&(this.#h.addChangedExistingAnnotation(o),o.renderAnnotationElement(a)&&o.show(!1)),a.show()}}this.#y(),this.isEmpty&&(this.div.hidden=!0);const{classList:n}=this.div;for(const i of _m.#m.values())n.remove(`${i._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),this.#o=!1}getEditableAnnotation(e){return this.#r?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#h.getActive()!==e&&this.#h.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#u?.div&&!this.#p){this.#p=new AbortController;const e=this.#h.combinedSignal(this.#p);this.#u.div.addEventListener("pointerdown",this.#v.bind(this),{signal:e}),this.#u.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#u?.div&&this.#p&&(this.#p.abort(),this.#p=null,this.#u.div.classList.remove("highlighting"))}#v(e){this.#h.unselectAll();const{target:r}=e;if(r===this.#u.div||(r.getAttribute("role")==="img"||r.classList.contains("endOfContent"))&&this.#u.div.contains(r)){const{isMac:n}=ec.platform;if(e.button!==0||e.ctrlKey&&n)return;this.#h.showAllEditors("highlight",!0,!0),this.#u.div.classList.add("free"),this.toggleDrawing(),So.startHighlighting(this,this.#h.direction==="ltr",{target:this.#u.div,x:e.x,y:e.y}),this.#u.div.addEventListener("pointerup",()=>{this.#u.div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:this.#h._signal}),e.preventDefault()}}enableClick(){if(this.#n)return;this.#n=new AbortController;const e=this.#h.combinedSignal(this.#n);this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const r=this.pointerup.bind(this);this.div.addEventListener("pointerup",r,{signal:e}),this.div.addEventListener("pointercancel",r,{signal:e})}disableClick(){this.#n?.abort(),this.#n=null}attach(e){this.#a.set(e.id,e);const{annotationElementId:r}=e;r&&this.#h.isDeletedAnnotationElement(r)&&this.#h.removeDeletedAnnotationElement(e)}detach(e){this.#a.delete(e.id),this.#e?.removePointerInTextLayer(e.contentDiv),!this.#o&&e.annotationElementId&&this.#h.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#h.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#h.addDeletedAnnotationElement(e.annotationElementId),qn.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),this.#h.addEditor(e),this.attach(e),!e.isAttachedToDOM){const r=e.render();this.div.append(r),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!this.#c),this.#h.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;const{activeElement:r}=document;e.div.contains(r)&&!this.#i&&(e._focusEventsAllowed=!1,this.#i=setTimeout(()=>{this.#i=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#h._signal}),r.focus())},0)),e._structTreeParentId=this.#e?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){const r=()=>e._uiManager.rebuild(e),n=()=>{e.remove()};this.addCommands({cmd:r,undo:n,mustExec:!1})}getNextId(){return this.#h.getId()}get#_(){return _m.#m.get(this.#h.getMode())}combinedSignal(e){return this.#h.combinedSignal(e)}#b(e){const r=this.#_;return r?new r.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#_?.canCreateNewEmptyEditor()}async pasteEditor(e,r){this.updateToolbar(e),await this.#h.updateMode(e.mode);const{offsetX:n,offsetY:i}=this.#E(),a=this.getNextId(),s=this.#b({parent:this,id:a,x:n,y:i,uiManager:this.#h,isCentered:!0,...r});s&&this.add(s)}async deserialize(e){return await _m.#m.get(e.annotationType??e.annotationEditorType)?.deserialize(e,this,this.#h)||null}createAndAddNewEditor(e,r,n={}){const i=this.getNextId(),a=this.#b({parent:this,id:i,x:e.offsetX,y:e.offsetY,uiManager:this.#h,isCentered:r,...n});return a&&this.add(a),a}#E(){const{x:e,y:r,width:n,height:i}=this.div.getBoundingClientRect(),a=Math.max(0,e),s=Math.max(0,r),o=Math.min(window.innerWidth,e+n),l=Math.min(window.innerHeight,r+i),u=(a+o)/2-e,d=(s+l)/2-r,[h,f]=this.viewport.rotation%180===0?[u,d]:[d,u];return{offsetX:h,offsetY:f}}addNewEditor(e={}){this.createAndAddNewEditor(this.#E(),!0,e)}setSelected(e){this.#h.setSelected(e)}toggleSelected(e){this.#h.toggleSelected(e)}unselect(e){this.#h.unselect(e)}pointerup(e){const{isMac:r}=ec.platform;if(e.button!==0||e.ctrlKey&&r||e.target!==this.div||!this.#s||(this.#s=!1,this.#_?.isDrawer&&this.#_.supportMultipleDrawings))return;if(!this.#t){this.#t=!0;return}const n=this.#h.getMode();if(n===mi.STAMP||n===mi.SIGNATURE){this.#h.unselectAll();return}this.createAndAddNewEditor(e,!1)}pointerdown(e){if(this.#h.getMode()===mi.HIGHLIGHT&&this.enableTextSelection(),this.#s){this.#s=!1;return}const{isMac:r}=ec.platform;if(e.button!==0||e.ctrlKey&&r||e.target!==this.div)return;if(this.#s=!0,this.#_?.isDrawer){this.startDrawingSession(e);return}const n=this.#h.getActive();this.#t=!n||n.isEmpty()}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),this.#l){this.#_.startDrawing(this,this.#h,!1,e);return}this.#h.setCurrentDrawingSession(this),this.#l=new AbortController;const r=this.#h.combinedSignal(this.#l);this.div.addEventListener("blur",({relatedTarget:n})=>{n&&!this.div.contains(n)&&(this.#d=null,this.commitOrRemove())},{signal:r}),this.#_.startDrawing(this,this.#h,!1,e)}pause(e){if(e){const{activeElement:r}=document;this.div.contains(r)&&(this.#d=r);return}this.#d&&setTimeout(()=>{this.#d?.focus(),this.#d=null},0)}endDrawingSession(e=!1){return this.#l?(this.#h.setCurrentDrawingSession(null),this.#l.abort(),this.#l=null,this.#d=null,this.#_.endDrawing(e)):null}findNewParent(e,r,n){const i=this.#h.findParent(r,n);return i===null||i===this?!1:(i.changeParent(e),!0)}commitOrRemove(){return this.#l?(this.endDrawingSession(),!0):!1}onScaleChanging(){this.#l&&this.#_.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#h.getActive()?.parent===this&&(this.#h.commitOrRemove(),this.#h.setActiveEditor(null)),this.#i&&(clearTimeout(this.#i),this.#i=null);for(const e of this.#a.values())this.#e?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#a.clear(),this.#h.removeLayer(this)}#y(){for(const e of this.#a.values())e.isEmpty()&&e.remove()}render({viewport:e}){this.viewport=e,Cb(this.div,e);for(const r of this.#h.getEditors(this.pageIndex))this.add(r),r.rebuild();this.updateMode()}update({viewport:e}){this.#h.commitOrRemove(),this.#y();const r=this.viewport.rotation,n=e.rotation;if(this.viewport=e,Cb(this.div,{rotation:n}),r!==n)for(const i of this.#a.values())i.rotate(n)}get pageDimensions(){const{pageWidth:e,pageHeight:r}=this.viewport.rawDims;return[e,r]}get scale(){return this.#h.viewParameters.realScale}}class Gl{#e=null;#t=new Map;#r=new Map;static#n=0;constructor({pageIndex:e}){this.pageIndex=e}setParent(e){if(!this.#e){this.#e=e;return}if(this.#e!==e){if(this.#t.size>0)for(const r of this.#t.values())r.remove(),e.append(r);this.#e=e}}static get _svgFactory(){return qi(this,"_svgFactory",new i7)}static#i(e,[r,n,i,a]){const{style:s}=e;s.top=`${100*n}%`,s.left=`${100*r}%`,s.width=`${100*i}%`,s.height=`${100*a}%`}#a(){const e=Gl._svgFactory.create(1,1,!0);return this.#e.append(e),e.setAttribute("aria-hidden",!0),e}#s(e,r){const n=Gl._svgFactory.createElement("clipPath");e.append(n);const i=`clip_${r}`;n.setAttribute("id",i),n.setAttribute("clipPathUnits","objectBoundingBox");const a=Gl._svgFactory.createElement("use");return n.append(a),a.setAttribute("href",`#${r}`),a.classList.add("clip"),i}#o(e,r){for(const[n,i]of Object.entries(r))i===null?e.removeAttribute(n):e.setAttribute(n,i)}draw(e,r=!1,n=!1){const i=Gl.#n++,a=this.#a(),s=Gl._svgFactory.createElement("defs");a.append(s);const o=Gl._svgFactory.createElement("path");s.append(o);const l=`path_p${this.pageIndex}_${i}`;o.setAttribute("id",l),o.setAttribute("vector-effect","non-scaling-stroke"),r&&this.#r.set(i,o);const u=n?this.#s(s,l):null,d=Gl._svgFactory.createElement("use");return a.append(d),d.setAttribute("href",`#${l}`),this.updateProperties(a,e),this.#t.set(i,a),{id:i,clipPathId:`url(#${u})`}}drawOutline(e,r){const n=Gl.#n++,i=this.#a(),a=Gl._svgFactory.createElement("defs");i.append(a);const s=Gl._svgFactory.createElement("path");a.append(s);const o=`path_p${this.pageIndex}_${n}`;s.setAttribute("id",o),s.setAttribute("vector-effect","non-scaling-stroke");let l;if(r){const h=Gl._svgFactory.createElement("mask");a.append(h),l=`mask_p${this.pageIndex}_${n}`,h.setAttribute("id",l),h.setAttribute("maskUnits","objectBoundingBox");const f=Gl._svgFactory.createElement("rect");h.append(f),f.setAttribute("width","1"),f.setAttribute("height","1"),f.setAttribute("fill","white");const p=Gl._svgFactory.createElement("use");h.append(p),p.setAttribute("href",`#${o}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}const u=Gl._svgFactory.createElement("use");i.append(u),u.setAttribute("href",`#${o}`),l&&u.setAttribute("mask",`url(#${l})`);const d=u.cloneNode();return i.append(d),u.classList.add("mainOutline"),d.classList.add("secondaryOutline"),this.updateProperties(i,e),this.#t.set(n,i),n}finalizeDraw(e,r){this.#r.delete(e),this.updateProperties(e,r)}updateProperties(e,r){if(!r)return;const{root:n,bbox:i,rootClass:a,path:s}=r,o=typeof e=="number"?this.#t.get(e):e;if(o){if(n&&this.#o(o,n),i&&Gl.#i(o,i),a){const{classList:l}=o;for(const[u,d]of Object.entries(a))l.toggle(u,d)}if(s){const u=o.firstChild.firstChild;this.#o(u,s)}}}updateParent(e,r){if(r===this)return;const n=this.#t.get(e);n&&(r.#e.append(n),this.#t.delete(e),r.#t.set(e,n))}remove(e){this.#r.delete(e),this.#e!==null&&(this.#t.get(e).remove(),this.#t.delete(e))}destroy(){this.#e=null;for(const e of this.#t.values())e.remove();this.#t.clear(),this.#r.clear()}}globalThis._pdfjsTestingUtils={HighlightOutliner:tJ};globalThis.pdfjsLib={AbortException:l1,AnnotationEditorLayer:_m,AnnotationEditorParamsType:aa,AnnotationEditorType:mi,AnnotationEditorUIManager:c1,AnnotationLayer:ile,AnnotationMode:O_,AnnotationType:Lo,build:a4t,ColorPicker:yh,createValidAbsoluteUrl:zMe,DOMSVGFactory:i7,DrawLayer:Gl,FeatureTest:ec,fetchData:y5,getDocument:ele,getFilenameFromUrl:Q5t,getPdfFilenameFromUrl:Z5t,getRGB:KB,getUuid:HMe,getXfaPageViewport:eDt,GlobalWorkerOptions:VT,ImageKind:NP,InvalidPDFException:KZ,isDataScheme:WB,isPdfFile:Woe,isValidExplicitDest:dDt,MathClamp:jc,noContextMenu:Gh,normalizeUnicode:K5t,OPS:r7,OutputScale:gg,PasswordResponses:U5t,PDFDataRangeTransport:lLe,PDFDateString:jZ,PDFWorker:vk,PermissionFlag:B5t,PixelsPerInch:sA,RenderingCancelledException:Yoe,ResponseException:n7,setLayerDimensions:Cb,shadow:qi,SignatureExtractor:BS,stopEvent:Bo,SupportedImageMimeTypes:XZ,TextLayer:Yc,TouchManager:jB,updateUrlHash:qMe,Util:$n,VerbosityLevel:VB,version:i4t,XfaLayer:dLe};Pn(()=>Promise.resolve().then(()=>Iar),[],import.meta.url).then(t=>{const e=new Blob([t.default],{type:"application/javascript"});VT.workerSrc=URL.createObjectURL(e)}).catch(()=>{console.warn("Failed to load PDF.js worker, PDF processing may not work")});async function yLe(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=i=>{i.target?.result?e(i.target.result):r(new Error("Failed to read file."))},n.onerror=()=>{r(new Error("Failed to read file."))},n.readAsArrayBuffer(t)})}async function iJ(t){try{const e=await yLe(t),r=await ele(e).promise,n=r.numPages,i=[];for(let o=1;o<=n;o++)i.push(r.getPage(o).then(l=>l.getTextContent()));return(await Promise.all(i)).flatMap(o=>o.items.map(l=>l.str??"")).join(`
`)}catch(e){throw console.error("Error converting PDF to text:",e),new Error(`Failed to convert PDF to text: ${e instanceof Error?e.message:"Unknown error"}`)}}async function bLe(t,e=1.5){try{const r=await yLe(t),n=await ele(r).promise,i=[];for(let a=1;a<=n.numPages;a++){const s=await n.getPage(a),o=s.getViewport({scale:e}),l=document.createElement("canvas"),u=l.getContext("2d");if(l.width=o.width,l.height=o.height,!u)throw new Error("Failed to get 2D context from canvas");const d=s.render({canvasContext:u,viewport:o,canvas:l});i.push(d.promise.then(()=>l.toDataURL(ka.PNG)))}return await Promise.all(i)}catch(r){throw console.error("Error converting PDF to images:",r),new Error(`Failed to convert PDF to images: ${r instanceof Error?r.message:"Unknown error"}`)}}function ELe(t,e="white"){return new Promise((r,n)=>{try{const i=new Image;i.onload=()=>{const a=document.createElement("canvas"),s=a.getContext("2d");if(!s){n(new Error("Failed to get 2D canvas context."));return}const o=i.naturalWidth||300,l=i.naturalHeight||300;a.width=o,a.height=l,e&&(s.fillStyle=e,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,o,l),r(a.toDataURL(ka.PNG))},i.onerror=()=>{n(new Error("Failed to load SVG image. Ensure the SVG data is valid."))},i.src=t}catch(i){const s=`Error converting SVG to PNG: ${i instanceof Error?i.message:String(i)}`;console.error(s,i),n(new Error(s))}})}function SLe(t){return t===ka.SVG}function TLe(t,e="white"){return new Promise((r,n)=>{try{const i=new Image;i.onload=()=>{const a=document.createElement("canvas"),s=a.getContext("2d");if(!s){n(new Error("Failed to get 2D canvas context."));return}const o=i.naturalWidth||300,l=i.naturalHeight||300;a.width=o,a.height=l,e&&(s.fillStyle=e,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,o,l),r(a.toDataURL(ka.PNG))},i.onerror=()=>{n(new Error("Failed to load WebP image. Ensure the WebP data is valid."))},i.src=t}catch(i){const s=`Error converting WebP to PNG: ${i instanceof Error?i.message:String(i)}`;console.error(s,i),n(new Error(s))}})}function CLe(t){return t===ka.WEBP}function SW(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const a=n.result.split(",")[1];e(a)},n.onerror=()=>r(n.error),n.readAsDataURL(t)})}async function lle(t,e){const r=[],n=[];for(const i of t){if(i.type===tk.MCP_PROMPT&&i.mcpPrompt){r.push({type:hi.MCP_PROMPT,name:i.name,size:i.size,serverName:i.mcpPrompt.serverName,promptName:i.mcpPrompt.promptName,content:i.textContent??"",arguments:i.mcpPrompt.arguments});continue}if(Md(i.type)===xi.IMAGE){if(i.preview){let a=i.preview;if(SLe(i.type))try{a=await ELe(a)}catch(s){console.error("Failed to convert SVG to PNG for database storage:",s)}else if(CLe(i.type))try{a=await TLe(a)}catch(s){console.error("Failed to convert WebP to PNG for database storage:",s)}r.push({type:hi.IMAGE,name:i.name,size:i.size,base64Url:a})}}else if(Md(i.type)===xi.AUDIO)try{const a=await SW(i.file);r.push({type:hi.AUDIO,name:i.name,size:i.size,base64Data:a,mimeType:i.type})}catch(a){console.error(`Failed to process audio file ${i.name}:`,a)}else if(Md(i.type)===xi.VIDEO)try{const a=await SW(i.file);r.push({type:hi.VIDEO,name:i.name,size:i.size,base64Data:a,mimeType:i.type})}catch(a){console.error(`Failed to process video file ${i.name}:`,a)}else if(Md(i.type)===xi.PDF)try{const a=await SW(i.file),s=Vn(),o=e?Fr.modelSupportsVision(e):!1;let l=!!s.pdfAsImage&&o;if(s.pdfAsImage&&!o&&(console.log("Non-vision model detected: forcing PDF-to-text mode and updating settings"),Oc.updateConfig(ar.PDF_AS_IMAGE,!1),ha.warning("PDF setting changed: Non-vision model detected, PDFs will be processed as text instead of images.",{duration:5e3}),l=!1),l)try{const u=await bLe(i.file);ha.success(`PDF "${i.name}" processed as ${u.length} images for vision model.`,{duration:3e3}),r.push({type:hi.PDF,name:i.name,size:i.size,content:`PDF file with ${u.length} pages`,images:u,processedAsImages:!0,base64Data:a})}catch(u){console.warn(`Failed to process PDF ${i.name} as images, falling back to text:`,u);const d=await iJ(i.file);r.push({type:hi.PDF,name:i.name,size:i.size,content:d,processedAsImages:!1,base64Data:a})}else{const u=await iJ(i.file);ha.success(`PDF "${i.name}" processed as text content.`,{duration:3e3}),r.push({type:hi.PDF,name:i.name,size:i.size,content:u,processedAsImages:!1,base64Data:a})}}catch(a){console.error(`Failed to process PDF file ${i.name}:`,a)}else try{const a=await xTt(i.file);a.trim()===""?(console.warn(`File ${i.name} is empty and will be skipped`),n.push(i.name)):ATt(a)?r.push({type:hi.TEXT,name:i.name,size:i.size,content:a}):console.warn(`File ${i.name} appears to be binary and will be skipped`)}catch(a){console.error(`Failed to read file ${i.name}:`,a)}}return{extras:r,emptyFiles:n}}function TW(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}function O4t(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>r(n.error),n.readAsText(t)})}async function wLe(t,e){const r=[];for(const n of t){const a={id:Date.now().toString()+Math.random().toString(36).substr(2,9),name:n.name,size:n.size,type:n.type,file:n};try{if(Md(n.type)===xi.IMAGE){let s=await TW(n);if(SLe(n.type))try{s=await ELe(s)}catch(o){console.error("Failed to convert SVG to PNG:",o)}else if(CLe(n.type))try{s=await TLe(s)}catch(o){console.error("Failed to convert WebP to PNG:",o)}r.push({...a,preview:s})}else if(Md(n.type)===xi.PDF){try{const l=await iJ(n);r.push({...a,textContent:l})}catch(l){console.warn("Failed to extract text from PDF, adding without content:",l),r.push(a)}const s=e?Fr.modelSupportsVision(e):!1,o=Oc.config;s&&!o.pdfAsImage&&ha.info("You can enable parsing PDF as images with vision models.",{duration:8e3,action:{label:"Enable PDF as Images",onClick:()=>{Oc.updateConfig(ar.PDF_AS_IMAGE,!0),ha.success("PDF parsing as images enabled!",{duration:3e3})}}})}else if(Md(n.type)===xi.AUDIO){const s=await TW(n);r.push({...a,preview:s})}else if(Md(n.type)===xi.VIDEO){const s=await TW(n);r.push({...a,preview:s})}else try{const s=await O4t(n);r.push({...a,textContent:s})}catch(s){console.warn("Failed to read file as text, adding without content:",s),r.push(a)}}catch(s){console.error("Error processing file",n.name,s),r.push(a)}}return r}var I4t=ae("<!> Text",1),N4t=ae('<div class="mr-1 h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"></div>'),k4t=ae("<!> Pages",1),D4t=ae('<span class="inline-flex">The selected model does not support vision. Only the extracted  <span class="mx-1 cursor-pointer underline">text</span> will be sent to the model.</span>'),M4t=ae("<!> <!> <!>",1),L4t=ae('<div class="flex flex-1 items-center justify-center p-8"><div class="text-center"><div class="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-4 border-white border-t-transparent"></div> <p class="text-white/70">Converting PDF to images...</p></div></div>'),P4t=ae('<div class="flex flex-1 items-center justify-center p-8"><div class="text-center"><!> <p class="mb-4 text-white/70">Failed to load PDF images</p> <p class="text-sm text-white/50"> </p></div></div>'),F4t=ae('<p class="mb-2 text-sm text-white/50"> </p> <img class="mx-auto max-w-[85vw] rounded-lg shadow-lg"/> <div class="h-4"></div>',1),B4t=ae('<div class="flex flex-1 items-center justify-center p-8"><div class="text-center"><!> <p class="text-white/70">No PDF pages available</p></div></div>'),U4t=ae('<div class="px-4 pb-4"><!></div>'),$4t=ae('<div class="mb-4 flex items-center justify-end gap-2"><!> <!></div> <!> <!> <!>',1);function G4t(t,e){We(e,!0);let r=Me(Kr(lm.PAGES)),n=Me(Kr([])),i=Me(!1),a=Me(null),s=ee(()=>ioe(e.displayName));async function o(){if(!(w(n).length>0||w(i)||!e.currentItem)){J(i,!0),J(a,null);try{let S=null;if(e.currentItem.uploadedFile?.file)S=e.currentItem.uploadedFile.file;else if(e.currentItem.attachment){if("images"in e.currentItem.attachment&&e.currentItem.attachment.images&&Array.isArray(e.currentItem.attachment.images)&&e.currentItem.attachment.images.length>0){J(n,e.currentItem.attachment.images,!0);return}if("base64Data"in e.currentItem.attachment&&e.currentItem.attachment.base64Data){const T=e.currentItem.attachment.base64Data,C=atob(T),x=new Array(C.length);for(let R=0;R<C.length;R++)x[R]=C.charCodeAt(R);const A=new Uint8Array(x);S=new File([A],e.displayName,{type:"application/pdf"})}}if(S)J(n,await bLe(S),!0);else throw new Error("No PDF file available for conversion")}catch(S){J(a,S instanceof Error?S.message:"Failed to load PDF images",!0)}finally{J(i,!1)}}}sr(()=>{w(r)===lm.PAGES&&o()});var l=$4t(),u=ne(l),d=de(u);{let S=ee(()=>w(r)===lm.TEXT?"default":"outline");Mn(d,{get variant(){return w(S)},size:"sm",onclick:()=>J(r,lm.TEXT,!0),get disabled(){return w(i)},children:(T,C)=>{var x=I4t(),A=ne(x);ng(A,{class:"mr-1 h-4 w-4"}),Gt(),H(T,x)},$$slots:{default:!0}})}var h=he(d,2);{let S=ee(()=>w(r)===lm.PAGES?"default":"outline");Mn(h,{get variant(){return w(S)},size:"sm",onclick:()=>J(r,lm.PAGES,!0),get disabled(){return w(i)},children:(T,C)=>{var x=k4t(),A=ne(x);{var R=L=>{var F=N4t();H(L,F)},I=L=>{qse(L,{class:"mr-1 h-4 w-4"})};Re(A,L=>{w(i)?L(R):L(I,-1)})}Gt(),H(T,x)},$$slots:{default:!0}})}oe(u);var f=he(u,2);{var p=S=>{var T=Ee(),C=ne(T);Le(C,()=>BMe,(x,A)=>{A(x,{class:"mb-4 max-w-4xl",children:(R,I)=>{var L=M4t(),F=ne(L);eb(F,{class:"h-4 w-4"});var O=he(F,2);Le(O,()=>$Me,(M,P)=>{P(M,{children:(N,$)=>{Gt();var U=fr("Preview only");H(N,U)},$$slots:{default:!0}})});var D=he(O,2);Le(D,()=>UMe,(M,P)=>{P(M,{children:(N,$)=>{var U=D4t(),B=he(de(U));Gt(),oe(U),tn("click",B,()=>J(r,lm.TEXT,!0)),H(N,U)},$$slots:{default:!0}})}),H(R,L)},$$slots:{default:!0}})}),H(S,T)};Re(f,S=>{!e.hasVisionModality&&e.activeModelId&&e.currentItem&&S(p)})}var g=he(f,2);{var m=S=>{var T=L4t();H(S,T)},_=S=>{var T=P4t(),C=de(T),x=de(C);ng(x,{class:"mx-auto mb-4 h-16 w-16 text-white/50"});var A=he(x,4),R=de(A,!0);oe(A),oe(C),oe(T),at(()=>yt(R,w(a))),H(S,T)},v=S=>{var T=Ee(),C=ne(T);fn(C,18,()=>w(n),x=>x,(x,A,R)=>{var I=F4t(),L=ne(I),F=de(L);oe(L);var O=he(L,2);Gt(2),at(()=>{yt(F,`Page ${w(R)+1}`),Pr(O,"src",A),Pr(O,"alt",`PDF Page ${w(R)+1}`)}),H(x,I)}),H(S,T)},y=S=>{var T=B4t(),C=de(T),x=de(C);ng(x,{class:"mx-auto mb-4 h-16 w-16 text-white/50"}),Gt(2),oe(C),oe(T),H(S,T)};Re(g,S=>{w(i)?S(m):w(a)?S(_,1):w(n).length>0?S(v,2):S(y,-1)})}var b=he(g,2);{var E=S=>{var T=U4t(),C=de(T);Ck(C,{class:"max-w-4xl",get code(){return e.displayTextContent},get language(){return w(s)},maxHeight:"none"}),oe(T),H(S,T)};Re(b,S=>{w(r)===lm.TEXT&&e.displayTextContent&&S(E)})}H(t,l),Ke()}Wi(["click"]);var z4t=ae('<div class="flex flex-1 items-center justify-center"><img class="max-h-[80vh] max-w-[80vw] rounded-lg object-contain shadow-lg"/></div>');function q4t(t,e){We(e,!0);var r=Ee(),n=ne(r);{var i=a=>{var s=z4t(),o=de(s);oe(s),at(()=>{Pr(o,"src",e.displayPreview),Pr(o,"alt",e.currentItem?.name||"preview")}),H(a,s)};Re(n,a=>{e.displayPreview&&a(i)})}H(t,r),Ke()}var V4t=ae('<audio controls="" class="mb-4 w-full">Your browser does not support the audio element.</audio>'),H4t=ae('<p class="mb-4 text-white/70">Audio preview not available</p>'),Y4t=ae('<div class="flex flex-1 items-center justify-center p-8"><div class="w-full max-w-md text-center"><!> <!> <p class="text-sm text-white/50"> </p></div></div>');function W4t(t,e){We(e,!0);var r=Y4t(),n=de(r),i=de(n);EB(i,{class:"mx-auto mb-4 h-16 w-16 text-white/50"});var a=he(i,2);{var s=d=>{var h=V4t();at(()=>Pr(h,"src",e.audioSrc)),H(d,h)},o=d=>{var h=H4t();H(d,h)};Re(a,d=>{e.audioSrc?d(s):d(o,-1)})}var l=he(a,2),u=de(l,!0);oe(l),oe(n),oe(r),at(()=>yt(u,e.currentItem?.name||"Audio")),H(t,r),Ke()}var K4t=ae('<video controls="" class="mb-4 w-full"><track kind="captions" src=""/> Your browser does not support the video element.</video>',2),j4t=ae('<p class="mb-4 text-white/70">Video preview not available</p>'),X4t=ae('<div class="flex flex-1 items-center justify-center p-8"><div class="w-full max-w-md text-center"><!> <!> <p class="text-sm text-white/50"> </p></div></div>');function Q4t(t,e){We(e,!0);var r=X4t(),n=de(r),i=de(n);oR(i,{class:"mx-auto mb-4 h-16 w-16 text-white/50"});var a=he(i,2);{var s=d=>{var h=K4t();at(()=>Pr(h,"src",e.videoSrc)),H(d,h)},o=d=>{var h=j4t();H(d,h)};Re(a,d=>{e.videoSrc?d(s):d(o,-1)})}var l=he(a,2),u=de(l,!0);oe(l),oe(n),oe(r),at(()=>yt(u,e.currentItem?.name||"Video")),H(t,r),Ke()}var Z4t=ae('<div class="px-4 pb-4"><!></div>');function J4t(t,e){var r=Ee(),n=ne(r);{var i=a=>{var s=Z4t(),o=de(s);Ck(o,{class:"max-w-4xl",get code(){return e.displayTextContent},get language(){return e.language},maxHeight:"none"}),oe(s),H(a,s)};Re(n,a=>{e.displayTextContent&&a(i)})}H(t,r)}var eMt=ae('<div class="flex flex-1 items-center justify-center p-8"><div class="text-center"><!> <p class="text-white/70">Preview not available for this file type</p></div></div>');function tMt(t,e){var r=eMt(),n=de(r),i=de(n);Le(i,()=>e.IconComponent,(a,s)=>{s(a,{class:"mx-auto mb-4 h-16 w-16 text-white/50"})}),Gt(2),oe(n),oe(r),H(t,r)}function rMt(t,e){We(e,!0);let r=ee(()=>e.isImage?Vse:e.isText||e.isPdf?ng:e.isAudio?EB:e.isVideo?oR:s5),n=ee(()=>!e.isPdf&&!e.isImage&&!(e.isText&&e.displayTextContent)&&!e.isAudio&&!e.isVideo);var i=Ee(),a=ne(i);{var s=o=>{var l=Ee(),u=ne(l);t3e(u,()=>e.currentItem.id,d=>{var h=Ee(),f=ne(h);{var p=b=>{G4t(b,{get currentItem(){return e.currentItem},get displayName(){return e.currentItem.name},get displayTextContent(){return e.displayTextContent},get hasVisionModality(){return e.hasVisionModality},get activeModelId(){return e.activeModelId}})},g=b=>{q4t(b,{get currentItem(){return e.currentItem},get displayPreview(){return e.displayPreview}})},m=b=>{J4t(b,{get displayTextContent(){return e.displayTextContent},get language(){return e.language}})},_=b=>{W4t(b,{get currentItem(){return e.currentItem},get audioSrc(){return e.audioSrc}})},v=b=>{Q4t(b,{get currentItem(){return e.currentItem},get videoSrc(){return e.videoSrc}})},y=b=>{tMt(b,{get IconComponent(){return w(r)}})};Re(f,b=>{e.isPdf?b(p):e.isImage?b(g,1):e.isText&&e.displayTextContent?b(m,2):e.isAudio?b(_,3):e.isVideo?b(v,4):w(n)&&b(y,5)})}H(d,h)}),H(o,l)};Re(a,o=>{e.currentItem&&o(s)})}H(t,i),Ke()}const xLe=1e6;function nMt(t,e){return new Promise((r,n)=>{try{const i=t.match(vvt);if(!i)return n(new Error("Invalid data URL format."));const a=i[1];if(!Object.values(ka).includes(a))return n(new Error(`Unsupported image MIME type: ${a}`));const s=new Image;s.onload=()=>{try{const o=document.createElement("canvas"),l=o.getContext("2d");if(!l)throw new Error("Failed to get 2D canvas context.");const u=s.naturalWidth,d=s.naturalHeight,h=u*d,f=Math.floor(e*xLe);if(f>0&&h>f){const p=Math.sqrt(f/h);o.width=Math.floor(u*p),o.height=Math.floor(d*p)}else return r(t);l.drawImage(s,0,0,o.width,o.height),r(o.toDataURL(a))}catch(o){n(o instanceof Error?o:new Error(String(o)))}},s.onerror=()=>{n(new Error("Failed to load image."))},s.src=t}catch(i){const s=`Error resizing image: ${i instanceof Error?i.message:String(i)}`;console.error(s,i),n(new Error(s))}})}function iMt(t){const e=t.trim().toLowerCase();return e===xa.WAV||e===xa.WAVE||e===xa.X_WAV||e===xa.X_WAVE||e===xa.VND_WAVE||e===xa.X_PN_WAV?rk.WAV:rk.MP3}class so{static async generateTitle(e,r,n){let i="";try{await so.sendMessage([e],{model:r||void 0,stream:!0,custom:{chat_template_kwargs:{enable_thinking:!1}},onChunk:a=>{i+=a}},void 0,n)}catch{return""}return i}static async sendMessage(e,r={},n,i){const{stream:a,onChunk:s,onComplete:o,onError:l,onReasoningChunk:u,onToolCallChunk:d,onModel:h,onCompletionId:f,onTimings:p,tools:g,temperature:m,max_tokens:_,dynatemp_range:v,dynatemp_exponent:y,top_k:b,top_p:E,min_p:S,xtc_probability:T,xtc_threshold:C,typ_p:x,repeat_last_n:A,repeat_penalty:R,presence_penalty:I,frequency_penalty:L,dry_multiplier:F,dry_base:O,dry_allowed_length:D,dry_penalty_last_n:M,samplers:P,backend_sampling:N,custom:$,timings_per_token:U,disableReasoningParsing:B,excludeReasoningFromContext:V,enableThinking:z,reasoningEffort:G,continueFinalMessage:Y}=r,W=(await Promise.all(e.map(Z=>{if("id"in Z&&"convId"in Z&&"timestamp"in Z){const re=Z;return so.convertDbMessageToApiChatMessageData(re)}else return Z}))).filter(Z=>Z.role===br.SYSTEM?(typeof Z.content=="string"?Z.content:"").trim().length>0:!0);r.model&&!Fr.modelSupportsVision(r.model)&&W.forEach(Z=>{Array.isArray(Z.content)&&(Z.content=Z.content.filter(re=>re.type===zl.IMAGE_URL?(console.info(`[ChatService] Skipping image attachment in message history (model "${r.model}" does not support vision)`),!1):!0),Z.content.length===1&&Z.content[0].type===zl.TEXT&&typeof Z.content[0].text=="string"&&(Z.content=Z.content[0].text))});const Q={messages:W.map(Z=>{const re={role:Z.role,content:Z.content,tool_calls:Z.tool_calls,tool_call_id:Z.tool_call_id};return!V&&Z.reasoning_content&&(re.reasoning_content=Z.reasoning_content),re}),stream:a,return_progress:a?!0:void 0,tools:g&&g.length>0?g:void 0};r.model&&(Q.model=r.model),Q.reasoning_format=B?KQ.NONE:KQ.AUTO;const ie=z&&G?dZ[G]??-1:-1;if(Q.chat_template_kwargs={...Q.chat_template_kwargs??{},enable_thinking:z},ie>=0&&(Q.thinking_budget_tokens=ie),Q.reasoning_control=!0,Y&&(Q.continue_final_message=!0,Q.add_generation_prompt=!1),m!==void 0&&(Q.temperature=m),_!==void 0&&(Q.max_tokens=_!==null&&_!==0?_:-1),v!==void 0&&(Q.dynatemp_range=v),y!==void 0&&(Q.dynatemp_exponent=y),b!==void 0&&(Q.top_k=b),E!==void 0&&(Q.top_p=E),S!==void 0&&(Q.min_p=S),T!==void 0&&(Q.xtc_probability=T),C!==void 0&&(Q.xtc_threshold=C),x!==void 0&&(Q.typ_p=x),A!==void 0&&(Q.repeat_last_n=A),R!==void 0&&(Q.repeat_penalty=R),I!==void 0&&(Q.presence_penalty=I),L!==void 0&&(Q.frequency_penalty=L),F!==void 0&&(Q.dry_multiplier=F),O!==void 0&&(Q.dry_base=O),D!==void 0&&(Q.dry_allowed_length=D),M!==void 0&&(Q.dry_penalty_last_n=M),P!==void 0&&(Q.samplers=typeof P=="string"?P.split(";").filter(Z=>Z.trim()):P),N!==void 0&&(Q.backend_sampling=N),U!==void 0&&(Q.timings_per_token=U),$)try{const Z=typeof $=="string"?JSON.parse($):$;Object.assign(Q,Z)}catch(Z){console.warn("Failed to parse custom parameters:",Z)}try{const Z=await fetch(Xz.COMPLETIONS,{method:"POST",headers:sN(),body:JSON.stringify(Q),signal:i});if(!Z.ok){const re=await so.parseErrorResponse(Z);throw l&&l(re),re}if(a){await so.handleStreamResponse(Z,s,o,l,u,d,h,f,p,n,i);return}else return so.handleNonStreamResponse(Z,o,l,d,h)}catch(Z){if(Td(Z)){console.log("Chat completion request was aborted");return}let re;throw Z instanceof Error?Z.name==="TypeError"&&Z.message.includes("fetch")?(re=new Error("Unable to connect to server - please check if the server is running"),re.name="NetworkError"):Z.message.includes("ECONNREFUSED")?(re=new Error("Connection refused - server may be offline"),re.name="NetworkError"):Z.message.includes("ETIMEDOUT")?(re=new Error("Request timed out - the server took too long to respond"),re.name="TimeoutError"):re=Z:re=new Error("Unknown error occurred while sending message"),console.error("Error in sendMessage:",Z),l&&l(re),re}}static async areAllSlotsIdle(e,r){try{const n=e?`${wme.LIST}?model=${encodeURIComponent(e)}`:wme.LIST,i=await fetch(n,{signal:r});return i.ok?(await i.json()).every(s=>!s.is_processing):!0}catch{return!0}}static async stopReasoning(e,r){if(!e)return console.error("stopReasoning: no completion id for the active message, cannot target the running completion"),!1;const n={id:e,action:X_t.END_REASONING};r&&(n.model=r);try{const i=await fetch(Xz.CONTROL,{method:"POST",headers:sN(),body:JSON.stringify(n)}),a=await i.json().catch(()=>null);return!i.ok||a?.success!==!0?(console.error("stopReasoning: control request failed",{status:i.status,completionId:e,response:a}),!1):!0}catch(i){return console.error("stopReasoning: control request threw",{completionId:e,error:i}),!1}}static async preEncode(e,r,n,i){const s={messages:(await Promise.all(e.map(o=>"id"in o&&"convId"in o&&"timestamp"in o?so.convertDbMessageToApiChatMessageData(o):o))).filter(o=>o.role===br.SYSTEM?(typeof o.content=="string"?o.content:"").trim().length>0:!0).map(o=>{const l={role:o.role,content:n?so.stripReasoningContent(o.content):o.content,tool_calls:o.tool_calls,tool_call_id:o.tool_call_id};return!n&&o.reasoning_content&&(l.reasoning_content=o.reasoning_content),l}),stream:!1,n_predict:0};r&&(s.model=r);try{await fetch(Xz.COMPLETIONS,{method:"POST",headers:sN(),body:JSON.stringify(s),signal:i})}catch(o){Td(o)||console.warn("[ChatService] Pre-encode request failed:",o)}}static async handleStreamResponse(e,r,n,i,a,s,o,l,u,d,h){const f=e.body?.getReader();if(!f)throw new Error("No response body");const p=new TextDecoder;let g="",m="",_=[],v,y=!1,b=!1,E=!1,S=0,T=!1;const C=()=>{T&&(S=_.length,T=!1)},x=A=>{if(!A||A.length===0||(_=so.mergeToolCallDeltas(_,A,S),_.length===0))return;T=!0;const R=JSON.stringify(_);R&&(h?.aborted||s?.(R))};try{let A="";for(;!h?.aborted;){const{done:R,value:I}=await f.read();if(R||h?.aborted)break;A+=p.decode(I,{stream:!0});const L=A.split(`
`);A=L.pop()||"";for(const F of L){if(h?.aborted)break;if(F.startsWith(_u.DATA)){const O=F.slice(6);if(O==="[DONE]"){y=!0;continue}try{const D=JSON.parse(O),M=D.choices?.[0],P=M?.delta?.content,N=M?.delta?.reasoning_content,$=M?.delta?.tool_calls,U=D.timings,B=D.prompt_progress,V=so.extractModelName(D);V&&!b&&(b=!0,o?.(V)),D.id&&!E&&(E=!0,l?.(D.id)),B&&so.notifyTimings(void 0,B,u),U&&(so.notifyTimings(U,B,u),v=U),P&&(C(),g+=P,h?.aborted||r?.(P)),N&&(C(),m+=N,h?.aborted||a?.(N)),x($)}catch(D){console.error("Error parsing JSON chunk:",D)}}}if(h?.aborted)break}if(h?.aborted)return;if(y){C();const R=_.length>0?JSON.stringify(_):void 0;n?.(g,m||void 0,v,R)}}catch(A){const R=A instanceof Error?A:new Error("Stream error");throw i?.(R),R}finally{f.releaseLock()}}static async handleNonStreamResponse(e,r,n,i,a){try{const s=await e.text();if(!s.trim())throw new Error("No response received from server. Please try again.");const o=JSON.parse(s),l=so.extractModelName(o);l&&a?.(l);const u=o.choices[0]?.message?.content||"",d=o.choices[0]?.message?.reasoning_content,h=o.choices[0]?.message?.tool_calls;let f;if(h&&h.length>0){const p=so.mergeToolCallDeltas([],h);p.length>0&&(f=JSON.stringify(p),f&&i?.(f))}if(!u.trim()&&!f)throw new Error("No response received from server. Please try again.");return r?.(u,d,void 0,f),u}catch(s){const o=s instanceof Error?s:new Error("Parse error");throw n?.(o),o}}static mergeToolCallDeltas(e,r,n=0){const i=e.map(a=>({...a,function:a.function?{...a.function}:void 0}));for(const a of r){const s=typeof a.index=="number"&&a.index>=0?a.index+n:i.length;for(;i.length<=s;)i.push({function:void 0});const o=i[s];if(a.id&&(o.id=a.id),a.type&&(o.type=a.type),a.function){const l=o.function?{...o.function}:{};a.function.name&&(l.name=a.function.name),a.function.arguments&&(l.arguments=(l.arguments??"")+a.function.arguments),o.function=l}}return i}static async convertDbMessageToApiChatMessageData(e){if(e.role===br.TOOL&&e.toolCallId)return{role:br.TOOL,content:e.content,tool_call_id:e.toolCallId};let r;if(e.toolCalls)try{r=JSON.parse(e.toolCalls)}catch{}if(!e.extra||e.extra.length===0){const p={role:e.role,content:e.content};return e.reasoningContent&&(p.reasoning_content=e.reasoningContent),r&&r.length>0&&(p.tool_calls=r),p}const n=[],i=e.extra.filter(p=>p.type===hi.TEXT);for(const p of i)n.push({type:zl.TEXT,text:hO("File",p.name,p.content)});const a=e.extra.filter(p=>p.type===hi.LEGACY_CONTEXT);for(const p of a)n.push({type:zl.TEXT,text:hO("File",p.name,p.content)});const s=e.extra.filter(p=>p.type===hi.IMAGE);for(const p of s){const g=Oc.getConfig(ar.MAX_IMAGE_RESOLUTION);let m=p.base64Url;g>1/xLe&&(m=await nMt(p.base64Url,g)),n.push({type:zl.IMAGE_URL,image_url:{url:m}})}const o=e.extra.filter(p=>p.type===hi.AUDIO);for(const p of o)n.push({type:zl.INPUT_AUDIO,input_audio:{data:p.base64Data,format:iMt(p.mimeType)}});e.content&&n.push({type:zl.TEXT,text:e.content});const l=e.extra.filter(p=>p.type===hi.VIDEO);for(const p of l)n.push({type:zl.INPUT_VIDEO,input_video:{data:p.base64Data,format:p.mimeType.includes("mp4")?"mp4":p.mimeType.includes("ogg")?"ogg":"auto"}});const u=e.extra.filter(p=>p.type===hi.PDF);for(const p of u)if(p.processedAsImages&&p.images)for(let g=0;g<p.images.length;g++)n.push({type:zl.IMAGE_URL,image_url:{url:p.images[g]}});else n.push({type:zl.TEXT,text:hO(a_t,p.name,p.content)});const d=e.extra.filter(p=>p.type===hi.MCP_PROMPT);for(const p of d)n.push({type:zl.TEXT,text:hO(s_t,p.name,p.content,p.serverName)});const h=e.extra.filter(p=>p.type===hi.MCP_RESOURCE);for(const p of h)n.push({type:zl.TEXT,text:hO(o_t,p.name,p.content,p.serverName)});const f={role:e.role,content:n};return e.reasoningContent&&(f.reasoning_content=e.reasoningContent),r&&r.length>0&&(f.tool_calls=r),f}static stripReasoningContent(e){const r=n=>n.replace(tb.REASONING_BLOCK,"").trim();return typeof e=="string"?r(e):e.map(n=>n.type===zl.TEXT&&n.text?{...n,text:r(n.text)}:n)}static async parseErrorResponse(e){try{const r=await e.text(),n=JSON.parse(r),i=n.error?.message||"Unknown server error",a=new Error(i);return a.name=e.status===400?"ServerError":"HttpError",n.error&&"n_prompt_tokens"in n.error&&"n_ctx"in n.error&&(a.contextInfo={n_prompt_tokens:n.error.n_prompt_tokens,n_ctx:n.error.n_ctx}),a}catch{const r=new Error(`Server error (${e.status}): ${e.statusText}`);return r.name="HttpError",r}}static extractModelName(e){const r=u=>typeof u=="object"&&u!==null?u:void 0,n=u=>typeof u=="string"&&u.trim()?u.trim():void 0,i=r(e);if(!i)return;const a=n(i.model);if(a)return a;const s=Array.isArray(i.choices)?r(i.choices[0]):void 0;if(!s)return;const o=n(r(s.delta)?.model);if(o)return o;const l=n(r(s.message)?.model);if(l)return l}static notifyTimings(e,r,n){!n||!e&&!r||n(e,r)}}const aMt=`const logs = [];
const fmt = (value) => {
	if (typeof value === 'string') return value;
	try {
		return JSON.stringify(value);
	} catch {
		return String(value);
	}
};
const capture =
	(level, prefix) =>
	(...args) => {
		logs.push(prefix + args.map(fmt).join(' '));
	};
console.log = capture('log', '');
console.info = capture('info', '');
console.debug = capture('debug', '');
console.warn = capture('warn', 'warn: ');
console.error = capture('error', 'error: ');
self.onmessage = async (event) => {
	const reply = { logs, result: null, error: null };
	try {
		const AsyncFunction = Object.getPrototypeOf(async function () {}).constructor;
		const value = await new AsyncFunction(event.data.code)();
		if (value !== undefined) reply.result = fmt(value);
	} catch (err) {
		reply.error = err instanceof Error ? err.stack || err.message : String(err);
	}
	self.postMessage(reply);
};
`,sMt=`<!doctype html><script>
const SHIM = ${JSON.stringify(aMt)};
addEventListener('message', (event) => {
	const respond = (payload) => parent.postMessage(payload, '*');
	let worker;
	try {
		worker = new Worker(URL.createObjectURL(new Blob([SHIM], { type: 'text/javascript' })));
	} catch (err) {
		respond({ logs: [], result: null, error: 'Worker creation failed: ' + err });
		return;
	}
	worker.onmessage = (msg) => respond(msg.data);
	worker.onerror = (err) => respond({ logs: [], result: null, error: String(err.message || err) });
	worker.postMessage({ code: event.data.code });
});
<\/script>`;function oMt(t){const e=[];if(Array.isArray(t.logs))for(const n of t.logs)e.push(String(n));t.error!=null?e.push(`Error: ${String(t.error)}`):t.result!=null&&e.push(`=> ${String(t.result)}`);let r=e.join(a1);return r||(r=nvt),r.length>Yme&&(r=`${r.slice(0,Yme)}${a1}${ivt}`),{content:r,isError:t.error!=null}}class lMt{static executeTool(e,r,n){if(e!==CDe)return Promise.resolve({content:`Unknown frontend tool: ${e}`,isError:!0});const i=typeof r.code=="string"?r.code:"";if(!i)return Promise.resolve({content:"Missing required parameter: code",isError:!0});const a=Number(r.timeout_ms),s=Number.isFinite(a)&&a>0?Math.min(a,xDe):wDe;return new Promise((o,l)=>{const u=document.createElement("iframe");u.setAttribute("sandbox","allow-scripts"),u.style.display="none",u.srcdoc=sMt;let d=!1;const h=()=>{d=!0,clearTimeout(m),window.removeEventListener("message",g),n?.removeEventListener("abort",p),u.remove()},f=_=>{d||(h(),o(_))},p=()=>{d||(h(),l(new DOMException("Sandbox execution aborted","AbortError")))},g=_=>{_.source===u.contentWindow&&f(oMt(_.data??{}))},m=setTimeout(()=>f({content:`Execution timed out after ${s} ms`,isError:!0}),s);window.addEventListener("message",g),n?.addEventListener("abort",p),u.onload=()=>u.contentWindow?.postMessage({code:i},"*"),document.body.appendChild(u)})}}class ALe{static async list(){return dk(xme.LIST)}static async executeTool(e,r,n){const i=await dk(xme.EXECUTE,{method:"POST",body:JSON.stringify({tool:e,params:r}),signal:n});return dI.ERROR in i?{content:String(i[dI.ERROR]),isError:!0}:dI.PLAIN_TEXT in i?{content:String(i[dI.PLAIN_TEXT]),isError:!1}:{content:JSON.stringify(i),isError:!1}}}function TO(t,e,r){switch(t){case Ci.MCP:return r?`mcp-${r}:${e}`:`mcp:${e}`;case Ci.CUSTOM:return`custom:${e}`;case Ci.FRONTEND:return`frontend:${e}`;default:return`builtin:${e}`}}function mSe(t,e,r){return{type:aR.FUNCTION,function:{name:t,description:e,parameters:r??{type:FT.OBJECT,properties:{},required:[]}}}}class cMt{#e=Me(Kr([]));get _builtinTools(){return w(this.#e)}set _builtinTools(e){J(this.#e,e,!0)}#t=Me(!1);get _loading(){return w(this.#t)}set _loading(e){J(this.#t,e,!0)}#r=Me(null);get _error(){return w(this.#r)}set _error(e){J(this.#r,e,!0)}#n=Me(Kr(new uo));get _disabledTools(){return w(this.#n)}set _disabledTools(e){J(this.#n,e,!0)}#i=Me(!1);get _toolsEndpointUnreachable(){return w(this.#i)}set _toolsEndpointUnreachable(e){J(this.#i,e,!0)}constructor(){try{const e=localStorage.getItem(Rme);if(e){const r=JSON.parse(e);if(Array.isArray(r))for(const n of r)typeof n=="string"&&this._disabledTools.add(n)}}catch(e){console.error("[ToolsStore] Failed to load disabled tools from localStorage:",e)}this.fetchBuiltinTools()}persistDisabledTools(){try{localStorage.setItem(Rme,JSON.stringify([...this._disabledTools]))}catch{}}get builtinTools(){return this._builtinTools}get mcpTools(){return Br.getToolDefinitionsForLLM()}get frontendTools(){return Vn().jsSandboxEnabled?[avt]:[]}get customTools(){const e=Vn().customJson;if(!e||typeof e!="string")return[];try{const r=JSON.parse(e);return Array.isArray(r)?r.filter(n=>typeof n=="object"&&n!==null&&"type"in n&&n.type==="function"&&"function"in n&&typeof n.function?.name=="string"):[]}catch{return[]}}mcpEntries(){const e=[],r=Br.getConnections();if(r.size>0)for(const[n,i]of r){const a=Br.getServerDisplayName(n);for(const s of i.tools){const o=s.inputSchema??void 0;e.push({serverId:n,serverName:a,definition:mSe(s.name,s.description,o)})}}else for(const{serverId:n,serverName:i,tools:a}of this.getMcpToolsFromHealthChecks())for(const s of a)e.push({serverId:n,serverName:i,definition:mSe(s.name,s.description)});return e}get allTools(){const e=[],r=new uo,n=i=>{r.has(i.key)||(r.add(i.key),e.push(i))};for(const i of this._builtinTools){const a=i.function.name;n({source:Ci.BUILTIN,key:TO(Ci.BUILTIN,a),definition:i})}for(const i of this.frontendTools){const a=i.function.name;n({source:Ci.FRONTEND,key:TO(Ci.FRONTEND,a),definition:i})}for(const{serverId:i,serverName:a,definition:s}of this.mcpEntries()){const o=s.function.name;n({source:Ci.MCP,serverId:i,serverName:a,key:TO(Ci.MCP,o,i),definition:s})}for(const i of this.customTools){const a=i.function.name;n({source:Ci.CUSTOM,key:TO(Ci.CUSTOM,a),definition:i})}return e}get toolGroups(){const e=[],r=new As;for(const n of this.allTools){const i=n.source===Ci.MCP?`mcp:${n.serverId??""}`:n.source;let a=r.get(i);a||(a={source:n.source,label:this.groupLabel(n),serverId:n.serverId,tools:[]},r.set(i,a),e.push(a)),a.tools.push(n)}return e}groupLabel(e){switch(e.source){case Ci.MCP:return e.serverName??"";case Ci.CUSTOM:return rq[Ci.CUSTOM];case Ci.FRONTEND:return rq[Ci.FRONTEND];default:return rq[Ci.BUILTIN]}}getEnabledToolsForLLM(){const e=new uo;for(const a of this.allTools)this._disabledTools.has(a.key)||e.add(a.definition.function.name);const r=[],n=new uo,i=a=>{const s=a.function.name;!e.has(s)||n.has(s)||(n.add(s),r.push(a))};for(const a of this._builtinTools)i(a);for(const a of this.frontendTools)i(a);for(const a of Br.getToolDefinitionsForLLM())i(a);for(const a of this.customTools)i(a);return r}get allToolDefinitions(){return this.allTools.map(e=>e.definition)}get loading(){return this._loading}get error(){return this._error}get isToolsEndpointUnreachable(){return this._toolsEndpointUnreachable}get disabledTools(){return this._disabledTools}isToolEnabled(e){return!this._disabledTools.has(e)}toggleTool(e){this._disabledTools.has(e)?this._disabledTools.delete(e):this._disabledTools.add(e),this.persistDisabledTools()}setToolEnabled(e,r){r?this._disabledTools.delete(e):this._disabledTools.add(e)}enableAllToolsForServer(e){const r=Br.getConnections().get(e);if(r){for(const n of r.tools)this._disabledTools.delete(TO(Ci.MCP,n.name,e));this.persistDisabledTools()}}toggleGroup(e){const r=e.tools.every(n=>this.isToolEnabled(n.key));for(const n of e.tools)this.setToolEnabled(n.key,!r);this.persistDisabledTools()}isGroupFullyEnabled(e){return e.tools.length>0&&e.tools.every(r=>this.isToolEnabled(r.key))}getMcpToolsFromHealthChecks(){const e=[];for(const r of Br.getServersSorted().filter(n=>n.enabled)){const n=Br.getHealthCheckState(r.id);n.status===oa.SUCCESS&&n.tools.length>0&&e.push({serverId:r.id,serverName:Br.getServerLabel(r),tools:n.tools})}return e}findEntryByName(e){for(const r of this.allTools)if(r.definition.function.name===e)return r;return null}getToolSource(e){return this.findEntryByName(e)?.source??null}getToolServerLabel(e){const r=this.findEntryByName(e);return r?r.serverName?Br.getServerDisplayName(r.serverName):r.source===Ci.BUILTIN?aN[Ci.BUILTIN]:r.source===Ci.CUSTOM?aN[Ci.CUSTOM]:r.source===Ci.FRONTEND?aN[Ci.FRONTEND]:"":""}getPermissionKey(e){return this.findEntryByName(e)?.key??null}get hasEnabledTools(){return this.getEnabledToolsForLLM().length>0}async fetchBuiltinTools(){if(!this._loading){this._loading=!0,this._error=null,this._toolsEndpointUnreachable=!1;try{const e=await ALe.list();this._builtinTools=e.map(r=>r.definition)}catch(e){const r=e instanceof Error?e.message:String(e);this._error=r,(r.includes("404")||r.toLowerCase().includes("not found"))&&(this._toolsEndpointUnreachable=!0),console.error("[ToolsStore] Failed to fetch built-in tools:",e)}finally{this._loading=!1}}}}const ua=new cMt;class uMt{#e=Me(Kr(new uo));get _tools(){return w(this.#e)}set _tools(e){J(this.#e,e,!0)}constructor(){try{const e=localStorage.getItem(hI);if(e)for(const r of JSON.parse(e))typeof r=="string"&&this._tools.add(r)}catch(e){console.error(`Failed to load permissions from localStorage ("${hI}"):`,e)}}get tools(){return this._tools}hasTool(e){return this._tools.has(e)}allowTool(e){this._tools.add(e),this._persist()}allowTools(e){for(const r of e)this._tools.add(r);this._persist()}revokeTool(e){this._tools.delete(e),this._persist()}_persist(){try{localStorage.setItem(hI,JSON.stringify([...this._tools]))}catch(e){console.error(`Failed to persist to localStorage ("${hI}"):`,e)}}}const HT=new uMt;function dMt(){return{isRunning:!1,currentTurn:0,totalToolCalls:0,lastError:null,streamingToolCall:null,pendingPermissionRequest:null}}function hMt(t){return t.map(e=>e.role===br.ASSISTANT&&e.tool_calls&&e.tool_calls.length>0?{role:br.ASSISTANT,content:e.content,reasoning_content:e.reasoning_content,tool_calls:e.tool_calls.map((r,n)=>({id:r.id??`call_${n}`,type:r.type??aR.FUNCTION,function:{name:r.function?.name??"",arguments:r.function?.arguments??""}}))}:e.role===br.ASSISTANT?{role:br.ASSISTANT,content:e.content,reasoning_content:e.reasoning_content}:e.role===br.TOOL&&e.tool_call_id?{role:br.TOOL,tool_call_id:e.tool_call_id,content:typeof e.content=="string"?e.content:""}:{role:e.role,content:e.content})}class fMt{_sessions=new As;_pendingPermissions=new As;_permissionResolvers=new Map;_pendingContinueRequests=new As;_continueResolvers=new Map;_steeringMessages=new As;get isReady(){return!0}get isAnyRunning(){for(const e of this._sessions.values())if(e.isRunning)return!0;return!1}getSession(e){let r=this._sessions.get(e);return r||(r=dMt(),this._sessions.set(e,r)),r}updateSession(e,r){const n=this.getSession(e);this._sessions.set(e,{...n,...r})}clearSession(e){this._sessions.delete(e)}getActiveSessions(){const e=[];for(const[r,n]of this._sessions.entries())n.isRunning&&e.push({conversationId:r,session:n});return e}isRunning(e){return this.getSession(e).isRunning}currentTurn(e){return this.getSession(e).currentTurn}totalToolCalls(e){return this.getSession(e).totalToolCalls}lastError(e){return this.getSession(e).lastError}streamingToolCall(e){return this.getSession(e).streamingToolCall}pendingPermissionRequest(e){return this._pendingPermissions.get(e)??null}pendingContinueRequest(e){return this._pendingContinueRequests.get(e)??!1}resolveContinue(e,r){const n=this._continueResolvers.get(e);n&&(this._continueResolvers.delete(e),n(r))}resolvePermission(e,r){const n=this._permissionResolvers.get(e);n&&(this._permissionResolvers.delete(e),n(r))}clearError(e){this.updateSession(e,{lastError:null})}hasPendingSteeringMessage(e){return this._steeringMessages.has(e)}pendingSteeringMessageContent(e){return this._steeringMessages.get(e)?.content??null}pendingSteeringMessageExtras(e){return this._steeringMessages.get(e)?.extras}injectSteeringMessage(e,r,n){this._steeringMessages.set(e,{content:r,extras:n})}clearSteeringMessage(e){this._steeringMessages.delete(e)}consumePendingSteeringMessage(e){const r=this._steeringMessages.get(e);return r?(this._steeringMessages.delete(e),r):null}getConfig(e,r){const n=Number(e.agenticMaxTurns)||jz.maxTurns,i=Number(e.agenticMaxToolPreviewLines)||jz.maxToolPreviewLines;return{enabled:(Br.hasEnabledServers(r)||ua.builtinTools.length>0||ua.customTools.length>0)&&jz.enabled,maxTurns:n,maxToolPreviewLines:i}}parseToolArguments(e){if(typeof e=="object")return e;const r=e.trim();return r===""?{}:JSON.parse(r)}async requestPermission(e,r,n,i){const a=ua.getPermissionKey(r);return a&&HT.hasTool(a)?Sh.ONCE:(this._pendingPermissions.set(e,{toolName:r,serverLabel:n}),new Promise(s=>{if(i?.aborted){this._pendingPermissions.set(e,null),s(Sh.DENY);return}this._permissionResolvers.set(e,o=>{if(this._pendingPermissions.set(e,null),o===Sh.ALWAYS&&a)HT.allowTool(a);else if(o===Sh.ALWAYS_SERVER){const l=ua.allTools.filter(u=>u.serverName?u.serverName===n:ua.getToolServerLabel(u.definition.function.name)===n).map(u=>ua.getPermissionKey(u.definition.function.name)).filter(u=>u!==null);HT.allowTools(l)}s(o)}),i?.addEventListener("abort",()=>{this._permissionResolvers.get(e)&&(this._permissionResolvers.delete(e),this._pendingPermissions.set(e,null),s(Sh.DENY))},{once:!0})}))}async requestContinue(e,r){return this._pendingContinueRequests.set(e,!0),new Promise(n=>{if(r?.aborted){this._pendingContinueRequests.set(e,!1),n(!1);return}this._continueResolvers.set(e,i=>{this._pendingContinueRequests.set(e,!1),n(i)}),r?.addEventListener("abort",()=>{this._continueResolvers.get(e)&&(this._continueResolvers.delete(e),this._pendingContinueRequests.set(e,!1),n(!1))},{once:!0})})}async runAgenticFlow(e){const{conversationId:r,messages:n,options:i={},callbacks:a,signal:s,perChatOverrides:o}=e;this._pendingPermissions.set(r,null),this._permissionResolvers.delete(r),this._pendingContinueRequests.set(r,!1),this._continueResolvers.delete(r),this._steeringMessages.delete(r),ua.builtinTools.length===0&&!ua.loading&&await ua.fetchBuiltinTools();const l=this.getConfig(Vn(),o);if(!l.enabled)return{handled:!1};const u=Br.hasEnabledServers(o);u&&(await Br.ensureInitialized(o)||console.log("[AgenticStore] MCP not initialized"));const d=ua.getEnabledToolsForLLM();if(d.length===0)return{handled:!1};console.log(`[AgenticStore] Starting agentic flow with ${d.length} tools`);const h=(await Promise.all(n.map(f=>"id"in f&&"convId"in f&&"timestamp"in f?so.convertDbMessageToApiChatMessageData(f):f))).filter(f=>f.role===br.SYSTEM?(typeof f.content=="string"?f.content:"").trim().length>0:!0);this.updateSession(r,{isRunning:!0,currentTurn:0,totalToolCalls:0,lastError:null}),u&&Br.acquireConnection();try{return await this.executeAgenticLoop({conversationId:r,messages:h,options:i,tools:d,agenticConfig:l,callbacks:a,signal:s}),{handled:!0}}catch(f){const p=f instanceof Error?f:new Error(String(f));return this.updateSession(r,{lastError:p}),a.onError?.(p),{handled:!0,error:p}}finally{this.updateSession(r,{isRunning:!1}),u&&await Br.releaseConnection().catch(f=>console.warn("[AgenticStore] Failed to release MCP connection:",f))}}async executeAgenticLoop(e){const{conversationId:r,messages:n,options:i,tools:a,agenticConfig:s,callbacks:o,signal:l}=e,{onChunk:u,onReasoningChunk:d,onToolCallsStreaming:h,onAttachments:f,onModel:p,onCompletionId:g,onAssistantTurnComplete:m,createToolResultMessage:_,createAssistantMessage:v,onFlowComplete:y,onTimings:b,onTurnComplete:E}=o,S=hMt(n);let T,C=0;const x={turns:0,toolCallsCount:0,toolsMs:0,toolCalls:[],perTurn:[],llm:{predicted_n:0,predicted_ms:0,prompt_n:0,prompt_ms:0}},A=s.maxTurns,R=i.model||Fr.models[0]?.model||"";let I=0;for(;;){if(I>=A){const U=await this.requestContinue(r,l);if(await new Promise(B=>setTimeout(B,0)),!U||l?.aborted){y?.(this.buildFinalTimings(T,x));return}I=0}if(this.updateSession(r,{currentTurn:I+1}),x.turns=I+1,l?.aborted){y?.(this.buildFinalTimings(T,x));return}I>0&&v&&await v();let L="",F="",O=[],D="",M=0,P;const N={turn:I+1,llm:{predicted_n:0,predicted_ms:0,prompt_n:0,prompt_ms:0},toolCalls:[],toolsMs:0};try{await so.sendMessage(S,{...i,stream:!0,tools:a.length>0?a:void 0,onChunk:U=>{L+=U,u?.(U)},onReasoningChunk:U=>{F+=U,d?.(U)},onToolCallChunk:U=>{try{if(O=JSON.parse(U),h?.(O),O.length>0&&O[0]?.function){const B=O[0].function.name||"",V=O[0].function.arguments||"",z=Math.floor(V.length/100);(B!==D||z!==M)&&(D=B,M=z,this.updateSession(r,{streamingToolCall:{name:B,arguments:V}}))}}catch{}},onModel:p,onCompletionId:g,onTimings:(U,B)=>{b?.(U,B),U&&(T=U,P=U)},onComplete:()=>{},onError:U=>{throw U}},void 0,l),this.updateSession(r,{streamingToolCall:null}),P&&(x.llm.predicted_n+=P.predicted_n||0,x.llm.predicted_ms+=P.predicted_ms||0,x.llm.prompt_n+=P.prompt_n||0,x.llm.prompt_ms+=P.prompt_ms||0,N.llm.predicted_n=P.predicted_n||0,N.llm.predicted_ms=P.predicted_ms||0,N.llm.prompt_n=P.prompt_n||0,N.llm.prompt_ms=P.prompt_ms||0)}catch(U){if(l?.aborted){await m?.(L,F||void 0,this.buildFinalTimings(T,x),void 0),y?.(this.buildFinalTimings(T,x));return}const B=U instanceof Error?U:new Error("LLM stream error");throw await m?.(L,F||void 0,this.buildFinalTimings(T,x),void 0),y?.(this.buildFinalTimings(T,x)),B}if(this._steeringMessages.has(r)){console.log("[AgenticStore] Steering message detected after turn, exiting agentic flow"),await m?.(L,F||void 0,this.buildFinalTimings(T,x),O.length>0?this.normalizeToolCalls(O):void 0),y?.(this.buildFinalTimings(T,x));return}if(O.length===0){x.perTurn.push(N);const U=this.buildFinalTimings(T,x);await m?.(L,F||void 0,U,void 0),U&&E?.(U),y?.(U);return}const $=this.normalizeToolCalls(O);if($.length===0){await m?.(L,F||void 0,this.buildFinalTimings(T,x),void 0),y?.(this.buildFinalTimings(T,x));return}C+=$.length,this.updateSession(r,{totalToolCalls:C}),await m?.(L,F||void 0,P,$),S.push({role:br.ASSISTANT,content:L||void 0,reasoning_content:F||void 0,tool_calls:$});for(let U=0;U<$.length;U++){const B=$[U];if(l?.aborted){y?.(this.buildFinalTimings(T,x));return}if(this._steeringMessages.has(r)){console.log(`[AgenticStore] Steering message detected, skipping ${$.length-U} remaining tool call(s)`);for(let _e=U;_e<$.length;_e++){const ye=$[_e],Ue="Tool execution was interrupted by a new user message.";_&&await _(ye.id,Ue),S.push({role:br.TOOL,tool_call_id:ye.id,content:Ue})}break}const V=B.function.name,z=ua.getToolServerLabel(V),G=await this.requestPermission(r,V,z,l);if(await new Promise(_e=>setTimeout(_e,0)),l?.aborted){y?.(this.buildFinalTimings(T,x));return}const Y=performance.now(),W=ua.getToolSource(V);let Q,ie=!0;if(G===Sh.DENY)Q="Tool execution was denied by the user.",ie=!1;else try{if(W===Ci.BUILTIN){const _e=this.parseToolArguments(B.function.arguments),ye=await ALe.executeTool(V,_e,l);Q=ye.content,ye.isError&&(ie=!1)}else if(W===Ci.FRONTEND){const _e=this.parseToolArguments(B.function.arguments),ye=await lMt.executeTool(V,_e,l);Q=ye.content,ye.isError&&(ie=!1)}else{const _e={id:B.id,function:{name:V,arguments:B.function.arguments}};Q=(await Br.executeTool(_e,l)).content}}catch(_e){if(Td(_e)){y?.(this.buildFinalTimings(T,x));return}Q=`Error: ${_e instanceof Error?_e.message:String(_e)}`,ie=!1}const Z=performance.now()-Y,re={name:B.function.name,duration_ms:Math.round(Z),success:ie};if(x.toolCalls.push(re),x.toolCallsCount++,x.toolsMs+=Math.round(Z),N.toolCalls.push(re),N.toolsMs+=Math.round(Z),l?.aborted){y?.(this.buildFinalTimings(T,x));return}const{cleanedResult:K,attachments:j}=this.extractBase64Attachments(Q);let se;_&&(se=await _(B.id,K,j.length>0?j:void 0)),j.length>0&&se&&f?.(se.id,j);const le=[{type:zl.TEXT,text:K}];for(const _e of j)_e.type===hi.IMAGE&&(Fr.modelSupportsVision(R)?le.push({type:zl.IMAGE_URL,image_url:{url:_e.base64Url}}):console.info(`[AgenticStore] Skipping image attachment (model "${R}" does not support vision)`));S.push({role:br.TOOL,tool_call_id:B.id,content:le.length===1?K:le})}if(N.toolCalls.length>0){x.perTurn.push(N);const U=this.buildFinalTimings(T,x);U&&E?.(U)}if(this._steeringMessages.has(r)){console.log("[AgenticStore] Steering message detected after tool execution, exiting agentic flow"),y?.(this.buildFinalTimings(T,x));return}I++}}buildFinalTimings(e,r){return r.toolCallsCount===0?e:{predicted_n:e?.predicted_n,predicted_ms:e?.predicted_ms,prompt_n:e?.prompt_n,prompt_ms:e?.prompt_ms,cache_n:e?.cache_n,agentic:r}}normalizeToolCalls(e){return e?e.map((r,n)=>({id:r?.id??`tool_${n}`,type:r?.type??aR.FUNCTION,function:{name:r?.function?.name??"",arguments:r?.function?.arguments??""}})):[]}extractBase64Attachments(e){if(!e.trim())return{cleanedResult:e,attachments:[]};const r=e.split(a1),n=[];let i=0;return{cleanedResult:r.map(s=>{const o=s.trim(),l=o.match(M1t);if(!l)return s;const u=l[1].toLowerCase();if(!l[2])return s;i+=1;const h=this.buildAttachmentName(u,i);return u.startsWith(Jx.IMAGE)?(n.push({type:hi.IMAGE,name:h,base64Url:o}),`[Attachment saved: ${h}]`):s}).join(a1),attachments:n}}buildAttachmentName(e,r){const n=$1t[e]??F1t;return`${L1t}-${Date.now()}-${r}.${n}`}}const Ld=new fMt;function pMt(t){return Ld.lastError(t)}function gMt(t){return Ld.pendingPermissionRequest(t)}function mMt(t,e){Ld.resolvePermission(t,e)}function _Mt(t){return Ld.pendingContinueRequest(t)}function vMt(t,e){Ld.resolveContinue(t,e)}function yMt(t,e,r){Ld.injectSteeringMessage(t,e,r)}function _Se(t){return Ld.pendingSteeringMessageContent(t)}function bMt(t){return Ld.pendingSteeringMessageExtras(t)}function EMt(t){Ld.clearSteeringMessage(t)}class SMt{#e=Me(null);get activeProcessingState(){return w(this.#e)}set activeProcessingState(e){J(this.#e,e,!0)}#t=Me("");get currentResponse(){return w(this.#t)}set currentResponse(e){J(this.#t,e,!0)}#r=Me(null);get errorDialogState(){return w(this.#r)}set errorDialogState(e){J(this.#r,e,!0)}#n=Me(!1);get isLoading(){return w(this.#n)}set isLoading(e){J(this.#n,e,!0)}#i=Me(!1);get isReasoning(){return w(this.#i)}set isReasoning(e){J(this.#i,e,!0)}chatLoadingStates=new As;chatReasoningStates=new As;chatStreamingStates=new As;abortControllers=new As;preEncodeAbortController=null;processingStates=new As;conversationStateTimestamps=new As;#a=Me(null);get activeConversationId(){return w(this.#a)}set activeConversationId(e){J(this.#a,e,!0)}#s=Me(!1);get isStreamingActive(){return w(this.#s)}set isStreamingActive(e){J(this.#s,e,!0)}#o=Me(!1);get isEditModeActive(){return w(this.#o)}set isEditModeActive(e){J(this.#o,e,!0)}#c=Me(null);get addFilesHandler(){return w(this.#c)}set addFilesHandler(e){J(this.#c,e,!0)}#l=Me(null);get pendingEditMessageId(){return w(this.#l)}set pendingEditMessageId(e){J(this.#l,e,!0)}messageUpdateCallback=null;#d=Me("");get _pendingDraftMessage(){return w(this.#d)}set _pendingDraftMessage(e){J(this.#d,e,!0)}#u=Me(Kr([]));get _pendingDraftFiles(){return w(this.#u)}set _pendingDraftFiles(e){J(this.#u,e,!0)}_pendingMessages=new As;setChatLoading(e,r){this.touchConversationState(e),r?(this.chatLoadingStates.set(e,!0),e===Rt.activeConversation?.id&&(this.isLoading=!0)):(this.chatLoadingStates.delete(e),e===Rt.activeConversation?.id&&(this.isLoading=!1),this.setChatReasoning(e,!1))}setChatReasoning(e,r){r?(this.chatReasoningStates.set(e,!0),e===Rt.activeConversation?.id&&(this.isReasoning=!0)):(this.chatReasoningStates.delete(e),e===Rt.activeConversation?.id&&(this.isReasoning=!1))}setChatStreaming(e,r,n){this.touchConversationState(e),this.chatStreamingStates.set(e,{response:r,messageId:n}),e===Rt.activeConversation?.id&&(this.currentResponse=r)}clearChatStreaming(e){this.chatStreamingStates.delete(e),e===Rt.activeConversation?.id&&(this.currentResponse="")}getChatStreaming(e){return this.chatStreamingStates.get(e)}syncLoadingStateForChat(e){this.isLoading=this.chatLoadingStates.get(e)||!1,this.isReasoning=this.chatReasoningStates.get(e)||!1;const r=this.chatStreamingStates.get(e);if(this.currentResponse=r?.response||"",this.isStreamingActive=r!==void 0,this.setActiveProcessingConversation(e),r?.response&&r?.messageId){const n=Rt.findMessageIndex(r.messageId);n!==-1&&Rt.updateMessageAtIndex(n,{content:r.response})}}clearUIState(){this.isLoading=!1,this.currentResponse="",this.isStreamingActive=!1}setActiveProcessingConversation(e){this.activeConversationId=e,this.activeProcessingState=e&&this.processingStates.get(e)||null}getProcessingState(e){return this.processingStates.get(e)||null}setProcessingState(e,r){r===null?this.processingStates.delete(e):this.processingStates.set(e,r),e===this.activeConversationId&&(this.activeProcessingState=r)}clearProcessingState(e){this.processingStates.delete(e),e===this.activeConversationId&&(this.activeProcessingState=null)}getActiveProcessingState(){return this.activeProcessingState}getCurrentProcessingStateSync(){return this.activeProcessingState}setStreamingActive(e){this.isStreamingActive=e}isStreaming(){return this.isStreamingActive}getOrCreateAbortController(e){let r=this.abortControllers.get(e);return(!r||r.signal.aborted)&&(r=new AbortController,this.abortControllers.set(e,r)),r}abortRequest(e){if(e){const r=this.abortControllers.get(e);r&&(r.abort(),this.abortControllers.delete(e))}else{for(const r of this.abortControllers.values())r.abort();this.abortControllers.clear()}}abortCurrentFlow(e){const r=this.abortControllers.get(e);r&&(r.abort(),this.abortControllers.delete(e))}showErrorDialog(e){this.errorDialogState=e}dismissErrorDialog(){this.errorDialogState=null}clearEditMode(){this.isEditModeActive=!1,this.addFilesHandler=null}isEditing(){return this.isEditModeActive}setEditModeActive(e){this.isEditModeActive=!0,this.addFilesHandler=e}getAddFilesHandler(){return this.addFilesHandler}clearPendingEditMessageId(){this.pendingEditMessageId=null}savePendingDraft(e,r){this._pendingDraftMessage=e,this._pendingDraftFiles=[...r]}consumePendingDraft(){if(!this._pendingDraftMessage&&this._pendingDraftFiles.length===0)return null;const e={message:this._pendingDraftMessage,files:[...this._pendingDraftFiles]};return this._pendingDraftMessage="",this._pendingDraftFiles=[],e}hasPendingDraft(){return!!this._pendingDraftMessage||this._pendingDraftFiles.length>0}getAllLoadingChats(){return Array.from(this.chatLoadingStates.keys())}getAllStreamingChats(){return Array.from(this.chatStreamingStates.keys())}getChatStreamingPublic(e){return this.getChatStreaming(e)}isChatLoadingPublic(e){return this.chatLoadingStates.get(e)||!1}isChatReasoningPublic(e){return this.chatReasoningStates.get(e)||!1}isChatLoadingInternal(e){return this.chatLoadingStates.has(e)||this.chatStreamingStates.has(e)}hasPendingMessage(e){return this._pendingMessages.has(e)}pendingMessageContent(e){return this._pendingMessages.get(e)?.content??null}pendingMessageExtras(e){return this._pendingMessages.get(e)?.extras}injectPendingMessage(e,r,n){this._pendingMessages.set(e,{content:r,extras:n})}clearPendingMessage(e){this._pendingMessages.delete(e)}consumePendingMessage(e){const r=this._pendingMessages.get(e);return r?(this._pendingMessages.delete(e),r):null}touchConversationState(e){this.conversationStateTimestamps.set(e,{lastAccessed:Date.now()})}cleanupOldConversationStates(e){const r=Date.now(),n=e??[],i=this.activeConversationId?[...n,this.activeConversationId]:n,a=[...new Set([...this.chatLoadingStates.keys(),...this.chatStreamingStates.keys(),...this.abortControllers.keys(),...this.processingStates.keys(),...this.conversationStateTimestamps.keys()])],s=[];for(const l of a){if(i.includes(l)||this.chatLoadingStates.get(l)||this.chatStreamingStates.has(l))continue;const u=this.conversationStateTimestamps.get(l);s.push({convId:l,lastAccessed:u?.lastAccessed??0})}s.sort((l,u)=>l.lastAccessed-u.lastAccessed);let o=0;for(const{convId:l,lastAccessed:u}of s)(s.length-o>A_t||r-u>R_t)&&(this.cleanupConversationState(l),o++);return o}cleanupConversationState(e){const r=this.abortControllers.get(e);r&&!r.signal.aborted&&r.abort(),this.chatLoadingStates.delete(e),this.chatStreamingStates.delete(e),this.abortControllers.delete(e),this.processingStates.delete(e),this.conversationStateTimestamps.delete(e)}getTrackedConversationCount(){return new Set([...this.chatLoadingStates.keys(),...this.chatStreamingStates.keys(),...this.abortControllers.keys(),...this.processingStates.keys()]).size}getMessageByIdWithRole(e,r){const n=Rt.findMessageIndex(e);if(n===-1)return null;const i=Rt.activeMessages[n];return r&&i.role!==r?null:{message:i,index:n}}async addMessage(e,r,n=d_.TEXT,i="-1",a){const s=Rt.activeConversation;if(!s)throw new Error("No active conversation");let o=null;if(i==="-1"){const u=Rt.activeMessages;if(u.length>0)o=u[u.length-1].id;else{const h=(await Rt.getConversationMessages(s.id)).find(f=>f.parent===null&&f.type==="root");o=h?h.id:await vn.createRootMessage(s.id)}}else o=i;const l=await vn.createMessageBranch({convId:s.id,role:e,content:r,type:n,timestamp:Date.now(),toolCalls:"",children:[],extra:a},o);return Rt.addMessageToActive(l),await Rt.updateCurrentNode(l.id),Rt.updateConversationTimestamp(),l}async addSystemPrompt(){let e=Rt.activeConversation;if(e||(await Rt.createConversation(),e=Rt.activeConversation),!!e)try{const r=await Rt.getConversationMessages(e.id),n=r.find(u=>u.type==="root"&&u.parent===null),i=n?n.id:await vn.createRootMessage(e.id),a=r.find(u=>u.role===br.SYSTEM&&u.parent===i);if(a){this.pendingEditMessageId=a.id,Rt.activeMessages.some(u=>u.id===a.id)||Rt.activeMessages.unshift(a);return}const o=Rt.activeMessages.find(u=>u.parent===i),l=await vn.createSystemMessage(e.id,fZ,i);if(o){await vn.updateMessage(o.id,{parent:l.id}),await vn.updateMessage(l.id,{children:[o.id]});const u=n?n.children.filter(h=>h!==o.id):[];await vn.updateMessage(i,{children:[...u.filter(h=>h!==l.id),l.id]});const d=Rt.findMessageIndex(o.id);d!==-1&&Rt.updateMessageAtIndex(d,{parent:l.id})}Rt.activeMessages.unshift(l),this.pendingEditMessageId=l.id,Rt.updateConversationTimestamp()}catch(r){console.error("Failed to add system prompt:",r)}}async removeSystemPromptPlaceholder(e){const r=Rt.activeConversation;if(!r)return!1;try{const n=await Rt.getConversationMessages(r.id),i=fv(n,e);if(!i||i.role!==br.SYSTEM)return!1;const a=n.find(o=>o.type==="root"&&o.parent===null);if(!a)return!1;if(n.length===2&&i.children.length===0)return await Rt.deleteConversation(r.id),!0;for(const o of i.children){await vn.updateMessage(o,{parent:a.id});const l=Rt.findMessageIndex(o);l!==-1&&Rt.updateMessageAtIndex(l,{parent:a.id})}await vn.updateMessage(a.id,{children:[...a.children.filter(o=>o!==e),...i.children]}),await vn.deleteMessage(e);const s=Rt.findMessageIndex(e);return s!==-1&&Rt.activeMessages.splice(s,1),Rt.updateConversationTimestamp(),!1}catch(n){return console.error("Failed to remove system prompt placeholder:",n),!1}}async createAssistantMessage(e){const r=Rt.activeConversation;if(!r)throw new Error("No active conversation");return await vn.createMessageBranch({convId:r.id,type:d_.TEXT,role:br.ASSISTANT,content:"",timestamp:Date.now(),toolCalls:"",children:[],model:null},e||null)}async sendMessage(e,r){if(!e.trim()&&(!r||r.length===0))return;const n=Rt.activeConversation;if(n&&Ld.isRunning(n.id)){Ld.injectSteeringMessage(n.id,e,r);return}if(n&&this.isChatLoadingInternal(n.id)){this.injectPendingMessage(n.id,e,r);return}this.cancelPreEncode();const i=Br.consumeResourceAttachmentsAsExtras(),a=i.length>0?[...r||[],...i]:r;let s=!1;n||(await Rt.createConversation(),s=!0);const o=Rt.activeConversation;if(o){this.showErrorDialog(null),this.setChatLoading(o.id,!0),this.clearChatStreaming(o.id);try{let l;if(s){const h=await vn.createRootMessage(o.id),p=Vn().systemMessage?.toString().trim();if(p){const g=await vn.createSystemMessage(o.id,p,h);Rt.addMessageToActive(g),l=g.id}else l=h}const u=await this.addMessage(br.USER,e,d_.TEXT,l??"-1",a);s&&e&&await Rt.updateConversationName(o.id,fI(e,!!Vn().titleGenerationUseFirstLine));const d=await this.createAssistantMessage(u.id);Rt.addMessageToActive(d),await this.streamChatCompletion(Rt.activeMessages.slice(0,-1),d,void 0,void 0,void 0,Vn().titleGenerationUseLLM&&s?e:void 0)}catch(l){if(Td(l)){this.setChatLoading(o.id,!1);return}console.error("Failed to send message:",l),this.setChatLoading(o.id,!1);const u=l instanceof Error&&l.name==="TimeoutError"?Em.TIMEOUT:Em.SERVER,d=l.contextInfo;this.showErrorDialog({type:u,message:l instanceof Error?l.message:"Unknown error",contextInfo:d})}}}async streamChatCompletion(e,r,n,i,a,s){let o=a;if(xs()&&!o){const T=this.getConversationModel(e);o=hT()||T}xs()&&o&&(Fr.getModelProps(o)||await Fr.fetchModelProps(o));let l=r.id,u="",d="",h=null,f=!1;const p=r.convId,g=(T,C=!0)=>{if(!T)return;const x=wTt(T);if(!x||x===h)return;h=x;const A=Rt.findMessageIndex(l);Rt.updateMessageAtIndex(A,{model:x}),C&&!f&&(f=!0,vn.updateMessage(l,{model:x}).catch(()=>{f=!1,h=null}))};let m=!1;const _=T=>{if(!T||m)return;m=!0;const C=Rt.findMessageIndex(l);Rt.updateMessageAtIndex(C,{completionId:T}),vn.updateMessage(l,{completionId:T}).catch(()=>{m=!1})},v=()=>{this.setChatStreaming(p,u,l);const T=Rt.findMessageIndex(l);Rt.updateMessageAtIndex(T,{content:u})},y=()=>{this.setStreamingActive(!1),this.setChatLoading(p,!1),this.clearChatStreaming(p),this.setProcessingState(p,null)};this.setStreamingActive(!0),this.setActiveProcessingConversation(p);const b=this.getOrCreateAbortController(p),E={onChunk:T=>{u+=T,v(),this.setChatReasoning(p,!1)},onReasoningChunk:T=>{d+=T,this.setChatStreaming(p,u,l);const C=Rt.findMessageIndex(l);Rt.updateMessageAtIndex(C,{reasoningContent:d}),this.setChatReasoning(p,!0)},onToolCallsStreaming:T=>{const C=Rt.findMessageIndex(l);Rt.updateMessageAtIndex(C,{toolCalls:JSON.stringify(T)})},onAttachments:(T,C)=>{if(!C.length)return;const x=Rt.findMessageIndex(T);if(x===-1)return;const R=[...Rt.activeMessages[x].extra||[],...C];Rt.updateMessageAtIndex(x,{extra:R}),vn.updateMessage(T,{extra:R}).catch(console.error)},onModel:T=>g(T),onCompletionId:T=>_(T),onTurnComplete:T=>{const C=Rt.findMessageIndex(r.id);Rt.updateMessageAtIndex(C,{timings:T})},onTimings:(T,C)=>{const x=T?.predicted_ms&&T?.predicted_n?T.predicted_n/T.predicted_ms*1e3:0;this.updateProcessingStateFromTimings({prompt_n:T?.prompt_n||0,prompt_ms:T?.prompt_ms,predicted_n:T?.predicted_n||0,predicted_per_second:x,cache_n:T?.cache_n||0,prompt_progress:C},p)},onAssistantTurnComplete:async(T,C,x,A)=>{const R={content:T,reasoningContent:C||void 0,toolCalls:A?JSON.stringify(A):"",timings:x};h&&!f&&(R.model=h),await vn.updateMessage(l,R);const I=Rt.findMessageIndex(l),L={content:T,reasoningContent:C||void 0,toolCalls:A?JSON.stringify(A):""};x&&(L.timings=x),h&&(L.model=h),Rt.updateMessageAtIndex(I,L),await Rt.updateCurrentNode(l)},createToolResultMessage:async(T,C,x)=>{const A=await vn.createMessageBranch({convId:p,type:d_.TEXT,role:br.TOOL,content:C,toolCallId:T,timestamp:Date.now(),toolCalls:"",children:[],extra:x},l);return Rt.addMessageToActive(A),await Rt.updateCurrentNode(A.id),A},createAssistantMessage:async()=>{u="",d="";const T=Rt.activeMessages[Rt.activeMessages.length-1],C=await vn.createMessageBranch({convId:p,type:d_.TEXT,role:br.ASSISTANT,content:"",timestamp:Date.now(),toolCalls:"",children:[],model:h},T.id);return Rt.addMessageToActive(C),l=C.id,C},onFlowComplete:T=>{if(T){const C=Rt.findMessageIndex(r.id);Rt.updateMessageAtIndex(C,{timings:T}),vn.updateMessage(r.id,{timings:T}).catch(console.error)}y(),n&&n(u),xs()&&Fr.fetchRouterModels().catch(console.error),Vn().preEncodeConversation&&this.triggerPreEncode(e,r,u,o,!!Vn().excludeReasoningFromContext)},onError:async T=>{if(this.setStreamingActive(!1),Td(T)){y();const x=this.consumePendingMessage(p);x&&this.sendMessage(x.content,x.extras);return}console.error("Streaming error:",T),await this.savePartialResponseIfNeeded(p),y(),this.clearPendingMessage(p);const C=T.contextInfo;this.showErrorDialog({type:T.name==="TimeoutError"?Em.TIMEOUT:Em.SERVER,message:T.message,contextInfo:C}),i&&i(T)}},S=Rt.activeConversation?.mcpServerOverrides;if((await Ld.runAgenticFlow({conversationId:p,messages:e,options:{...this.getApiOptions(),...o?{model:o}:{}},callbacks:E,signal:b.signal,perChatOverrides:S})).handled){s&&await this.generateTitleWithLLM(s,u,p);const C=Ld.consumePendingSteeringMessage(p);C&&await this.sendMessage(C.content,C.extras);return}await so.sendMessage(e,{...this.getApiOptions(),...o?{model:o}:{},stream:!0,onChunk:E.onChunk,onReasoningChunk:E.onReasoningChunk,onModel:E.onModel,onCompletionId:E.onCompletionId,onTimings:E.onTimings,onComplete:async(T,C,x,A)=>{const R=u||T||"",I=d||C,L={content:R,reasoningContent:I||void 0,toolCalls:A||"",timings:x};h&&!f&&(L.model=h),await vn.updateMessage(l,L);const F=Rt.findMessageIndex(l),O={content:R,reasoningContent:I||void 0,toolCalls:A||""};x&&(O.timings=x),h&&(O.model=h),Rt.updateMessageAtIndex(F,O),await Rt.updateCurrentNode(l),y(),n&&await n(R),xs()&&Fr.fetchRouterModels().catch(console.error),s&&await this.generateTitleWithLLM(s,u,p);const D=this.consumePendingMessage(p);D&&await this.sendMessage(D.content,D.extras)},onError:E.onError},p,b.signal)}async stopGeneration(){const e=Rt.activeConversation;e&&await this.stopGenerationForChat(e.id)}async stopGenerationForChat(e){await this.savePartialResponseIfNeeded(e),this.setStreamingActive(!1),this.abortRequest(e),this.setChatLoading(e,!1),this.clearChatStreaming(e),this.setProcessingState(e,null),this.clearPendingMessage(e)}async generateTitleWithLLM(e,r,n){const i=xs()&&hT()?hT():void 0,a=Vn(),o=(typeof a.titleGenerationPrompt=="string"&&a.titleGenerationPrompt.trim()?a.titleGenerationPrompt:$v.DEFAULT_PROMPT).replace("{{USER}}",String(e||"")).replace("{{ASSISTANT}}",String(r||"")),l={role:br.USER,content:o},u=await so.generateTitle(l,i);if(!u)return;let d=u.trim();if(d=d.replace($v.PREFIX_PATTERN,"").replace($v.QUOTE_PATTERN,"").trim(),!d||d.length<$v.MIN_LENGTH){const h=e.split(`
`).find(f=>f.trim().length>0);d=h?h.trim():$v.FALLBACK}d&&d.length>=$v.MIN_LENGTH&&await Rt.updateConversationName(n,d)}async savePartialResponseIfNeeded(e){const r=e||Rt.activeConversation?.id;if(!r)return;const n=this.getChatStreaming(r);if(!n)return;const i=r===Rt.activeConversation?.id?Rt.activeMessages:await Rt.getConversationMessages(r);if(!i.length)return;const a=i[i.length-1];if(a?.role!==br.ASSISTANT)return;const s=n.response,o=a.reasoningContent||"";if(!(!s.trim()&&!o.trim()))try{const l={content:s};o&&(l.reasoningContent=o);const u=this.getProcessingState(r);u&&(l.timings={prompt_n:u.promptTokens||0,prompt_ms:u.promptMs,predicted_n:u.tokensDecoded||0,cache_n:u.cacheTokens||0,predicted_ms:u.tokensPerSecond&&u.tokensDecoded?u.tokensDecoded/u.tokensPerSecond*1e3:void 0}),await vn.updateMessage(a.id,l),a.content=s,l.timings&&(a.timings=l.timings)}catch(l){a.content=s,console.error("Failed to save partial response:",l)}}async updateMessage(e,r){const n=Rt.activeConversation;if(!n)return;this.isChatLoadingInternal(n.id)&&await this.stopGeneration();const i=this.getMessageByIdWithRole(e,br.USER);if(!i)return;const{message:a,index:s}=i,o=a.content;try{const u=(await Rt.getConversationMessages(n.id)).find(p=>p.type==="root"&&p.parent===null),d=u&&a.parent===u.id;Rt.updateMessageAtIndex(s,{content:r}),await vn.updateMessage(e,{content:r}),d&&r.trim()&&await Rt.updateConversationTitleWithConfirmation(n.id,fI(r,!!Vn().titleGenerationUseFirstLine));const h=Rt.activeMessages.slice(s+1);for(const p of h)await vn.deleteMessage(p.id);Rt.sliceActiveMessages(s+1),Rt.updateConversationTimestamp(),this.setChatLoading(n.id,!0),this.clearChatStreaming(n.id);const f=await this.createAssistantMessage();Rt.addMessageToActive(f),await Rt.updateCurrentNode(f.id),await this.streamChatCompletion(Rt.activeMessages.slice(0,-1),f,void 0,()=>{Rt.updateMessageAtIndex(Rt.findMessageIndex(e),{content:o})})}catch(l){Td(l)||console.error("Failed to update message:",l)}}async regenerateMessage(e){const r=Rt.activeConversation;if(!r||this.isChatLoadingInternal(r.id))return;this.cancelPreEncode();const n=this.getMessageByIdWithRole(e,br.ASSISTANT);if(!n)return;const{index:i}=n;try{const a=Rt.activeMessages.slice(i);for(const l of a)await vn.deleteMessage(l.id);Rt.sliceActiveMessages(i),Rt.updateConversationTimestamp(),this.setChatLoading(r.id,!0),this.clearChatStreaming(r.id);const s=Rt.activeMessages.length>0?Rt.activeMessages[Rt.activeMessages.length-1].id:void 0,o=await this.createAssistantMessage(s);Rt.addMessageToActive(o),await this.streamChatCompletion(Rt.activeMessages.slice(0,-1),o)}catch(a){Td(a)||console.error("Failed to regenerate message:",a),this.setChatLoading(r?.id||"",!1)}}async regenerateMessageWithBranching(e,r){const n=Rt.activeConversation;if(!(!n||this.isChatLoadingInternal(n.id))){this.cancelPreEncode();try{const i=Rt.findMessageIndex(e);if(i===-1)return;const a=Rt.activeMessages[i];if(a.role!==br.ASSISTANT)return;const s=await Rt.getConversationMessages(n.id),o=fv(s,a.parent);if(!o)return;this.setChatLoading(n.id,!0),this.clearChatStreaming(n.id);const l=await vn.createMessageBranch({convId:a.convId,type:a.type,timestamp:Date.now(),role:a.role,content:"",toolCalls:"",children:[],model:null},o.id);await Rt.updateCurrentNode(l.id),Rt.updateConversationTimestamp(),await Rt.refreshActiveMessages();const u=Ny(s,o.id,!1),d=r||a.model||void 0;await this.streamChatCompletion(u,l,void 0,void 0,d)}catch(i){Td(i)||console.error("Failed to regenerate message with branching:",i),this.setChatLoading(n?.id||"",!1)}}}async getDeletionInfo(e){const r=Rt.activeConversation;if(!r)return{totalCount:0,userMessages:0,assistantMessages:0,messageTypes:[]};const n=await Rt.getConversationMessages(r.id);if(fv(n,e)?.role===br.SYSTEM){const h=n.filter(m=>m.id===e);let f=0,p=0;const g=[];for(const m of h)m.role===br.USER?(f++,g.includes("user message")||g.push("user message")):m.role===br.ASSISTANT&&(p++,g.includes("assistant response")||g.push("assistant response"));return{totalCount:1,userMessages:f,assistantMessages:p,messageTypes:g}}const a=BDe(n,e),s=[e,...a],o=n.filter(h=>s.includes(h.id));let l=0,u=0;const d=[];for(const h of o)h.role===br.USER?(l++,d.includes("user message")||d.push("user message")):h.role===br.ASSISTANT&&(u++,d.includes("assistant response")||d.push("assistant response"));return{totalCount:s.length,userMessages:l,assistantMessages:u,messageTypes:d}}async deleteMessage(e){const r=Rt.activeConversation;if(r)try{const n=await Rt.getConversationMessages(r.id),i=fv(n,e);if(!i)return;if(Ny(n,r.currNode||"",!1).some(o=>o.id===e)&&i.parent){const o=n.filter(l=>l.parent===i.parent&&l.id!==e);if(o.length>0){const l=o.reduce((u,d)=>d.timestamp>u.timestamp?d:u);await Rt.updateCurrentNode(P9(n,l.id))}else i.parent&&await Rt.updateCurrentNode(P9(n,i.parent))}await vn.deleteMessageCascading(r.id,e),await Rt.refreshActiveMessages(),Rt.updateConversationTimestamp()}catch(n){console.error("Failed to delete message:",n)}}async continueAsNextAgenticTurn(e){const r=Rt.activeConversation;if(!r)return;const n=Rt.activeMessages[e];if(n){this.cancelPreEncode(),this.setChatLoading(r.id,!0),this.clearChatStreaming(r.id);try{const i=await Rt.getConversationMessages(r.id),a=fv(i,n.id);if(!a){this.setChatLoading(r.id,!1);return}const s=await vn.createMessageBranch({convId:r.id,type:d_.TEXT,timestamp:Date.now(),role:br.ASSISTANT,content:"",toolCalls:"",children:[],model:null},a.id);await Rt.updateCurrentNode(s.id),Rt.updateConversationTimestamp(),await Rt.refreshActiveMessages();const o=Ny(i,a.id,!1);await this.streamChatCompletion(o,s)}catch(i){Td(i)||console.error("Failed to continue agentic turn:",i),this.setChatLoading(r.id,!1)}}}async continueAssistantMessage(e){const r=Rt.activeConversation;if(!r||this.isChatLoadingInternal(r.id))return;const n=this.getMessageByIdWithRole(e,br.ASSISTANT);if(!n)return;const{message:i,index:a}=n,s=qTt(Rt.activeMessages,a);if(s.kind===Ay.RERUN_TURN)return this.regenerateMessageWithBranching(e);if(s.kind===Ay.NEXT_TURN)return this.continueAsNextAgenticTurn(s.truncateAfter);try{this.showErrorDialog(null),this.setChatLoading(r.id,!0),this.clearChatStreaming(r.id);const o=await Rt.getConversationMessages(r.id),l=fv(o,e);if(!l){this.setChatLoading(r.id,!1);return}const u=l.content,d=l.reasoningContent||"",h=Rt.activeMessages.slice(0,a+1);let f="",p="",g=!1;const m=v=>{this.setChatStreaming(i.convId,v,i.id),Rt.updateMessageAtIndex(a,{content:v})},_=this.getOrCreateAbortController(i.convId);await so.sendMessage(h,{...this.getApiOptions(),continueFinalMessage:!0,onChunk:v=>{f+=v,g=!0,m(u+f),this.setChatReasoning(i.convId,!1)},onReasoningChunk:v=>{p+=v,g=!0,this.setChatStreaming(i.convId,u+f,i.id),Rt.updateMessageAtIndex(a,{reasoningContent:d+p}),this.setChatReasoning(i.convId,!0)},onTimings:(v,y)=>{const b=v?.predicted_ms&&v?.predicted_n?v.predicted_n/v.predicted_ms*1e3:0;this.updateProcessingStateFromTimings({prompt_n:v?.prompt_n||0,prompt_ms:v?.prompt_ms,predicted_n:v?.predicted_n||0,predicted_per_second:b,cache_n:v?.cache_n||0,prompt_progress:y},i.convId)},onComplete:async(v,y,b)=>{const E=g?f:v||"",S=g?p:y||"",T=u+E,C=d+S||void 0;await vn.updateMessage(i.id,{content:T,reasoningContent:C,timestamp:Date.now(),timings:b}),Rt.updateMessageAtIndex(a,{content:T,reasoningContent:C,timestamp:Date.now(),timings:b}),Rt.updateConversationTimestamp(),this.setChatLoading(i.convId,!1),this.clearChatStreaming(i.convId),this.setProcessingState(i.convId,null)},onError:async v=>{if(Td(v)){g&&f&&(await vn.updateMessage(i.id,{content:u+f,reasoningContent:d+p||void 0,timestamp:Date.now()}),Rt.updateMessageAtIndex(a,{content:u+f,reasoningContent:d+p||void 0,timestamp:Date.now()})),this.setChatLoading(i.convId,!1),this.clearChatStreaming(i.convId),this.setProcessingState(i.convId,null);return}console.error("Continue generation error:",v),await vn.updateMessage(i.id,{content:u+f,reasoningContent:d+p||void 0,timestamp:Date.now()}),Rt.updateMessageAtIndex(a,{content:u+f,reasoningContent:d+p||void 0,timestamp:Date.now()}),this.setChatLoading(i.convId,!1),this.clearChatStreaming(i.convId),this.setProcessingState(i.convId,null),this.showErrorDialog({type:v.name==="TimeoutError"?Em.TIMEOUT:Em.SERVER,message:v.message})}},i.convId,_.signal)}catch(o){Td(o)||console.error("Failed to continue message:",o),r&&this.setChatLoading(r.id,!1)}}async editAssistantMessage(e,r,n){const i=Rt.activeConversation;if(!i||this.isChatLoadingInternal(i.id))return;const a=this.getMessageByIdWithRole(e,br.ASSISTANT);if(!a)return;const{message:s,index:o}=a;try{if(n){const l=await vn.createMessageBranch({convId:s.convId,type:s.type,timestamp:Date.now(),role:s.role,content:r,toolCalls:s.toolCalls||"",children:[],model:s.model},s.parent);await Rt.updateCurrentNode(l.id)}else await vn.updateMessage(s.id,{content:r}),Rt.updateMessageAtIndex(o,{content:r});Rt.updateConversationTimestamp(),await Rt.refreshActiveMessages()}catch(l){console.error("Failed to edit assistant message:",l)}}async editUserMessagePreserveResponses(e,r,n){const i=Rt.activeConversation;if(!i)return;const a=this.getMessageByIdWithRole(e,br.USER);if(!a)return;const{message:s,index:o}=a;try{const l={content:r};n!==void 0&&(l.extra=JSON.parse(JSON.stringify(n))),await vn.updateMessage(e,l),Rt.updateMessageAtIndex(o,l);const d=(await Rt.getConversationMessages(i.id)).find(h=>h.type==="root"&&h.parent===null);d&&s.parent===d.id&&r.trim()&&await Rt.updateConversationTitleWithConfirmation(i.id,fI(r,!!Vn().titleGenerationUseFirstLine)),Rt.updateConversationTimestamp()}catch(l){console.error("Failed to edit user message:",l)}}async editMessageWithBranching(e,r,n){const i=Rt.activeConversation;if(!i||this.isChatLoadingInternal(i.id))return;let a=this.getMessageByIdWithRole(e,br.USER);if(a||(a=this.getMessageByIdWithRole(e,br.SYSTEM)),!a)return;const{message:s,index:o}=a;try{const l=await Rt.getConversationMessages(i.id),u=l.find(m=>m.type==="root"&&m.parent===null),d=s.role===br.USER&&u&&s.parent===u.id,h=n!==void 0?JSON.parse(JSON.stringify(n)):s.extra?JSON.parse(JSON.stringify(s.extra)):void 0;let f;const p=fv(l,s.id);if(p?p.children.length>0:s.children.length>0){const m=s.parent||u?.id;if(!m)return;const _=await vn.createMessageBranch({convId:s.convId,type:s.type,timestamp:Date.now(),role:s.role,content:r,toolCalls:s.toolCalls||"",children:[],extra:h,model:s.model},m);await Rt.updateCurrentNode(_.id),f=_.id}else{const m={content:r,timestamp:Date.now(),extra:h};await vn.updateMessage(s.id,m),Rt.updateMessageAtIndex(o,m),f=s.id}Rt.updateConversationTimestamp(),d&&r.trim()&&await Rt.updateConversationTitleWithConfirmation(i.id,fI(r,!!Vn().titleGenerationUseFirstLine)),await Rt.refreshActiveMessages(),s.role===br.USER&&await this.generateResponseForMessage(f)}catch(l){console.error("Failed to edit message with branching:",l)}}async generateResponseForMessage(e){const r=Rt.activeConversation;if(r){this.showErrorDialog(null),this.setChatLoading(r.id,!0),this.clearChatStreaming(r.id);try{const n=await Rt.getConversationMessages(r.id),i=Ny(n,e,!1),a=await vn.createMessageBranch({convId:r.id,type:d_.TEXT,timestamp:Date.now(),role:br.ASSISTANT,content:"",toolCalls:"",children:[],model:null},e);Rt.addMessageToActive(a),await this.streamChatCompletion(i,a)}catch(n){console.error("Failed to generate response:",n),this.setChatLoading(r.id,!1)}}}getContextTotal(){const e=this.activeConversationId,r=e?this.getProcessingState(e):null;if(r&&typeof r.contextTotal=="number"&&r.contextTotal>0)return r.contextTotal;if(xs()){const n=V3t();if(typeof n=="number"&&n>0)return n}else{const n=xvt();if(typeof n=="number"&&n>0)return n}return null}updateProcessingStateFromTimings(e,r){const n=this.parseTimingData(e);if(n===null){console.warn("Failed to parse timing data - skipping update");return}const i=r||this.activeConversationId;i&&this.setProcessingState(i,n)}parseTimingData(e){const r=e.prompt_n||0,n=e.prompt_ms||void 0,i=e.predicted_n||0,a=e.predicted_per_second||0,s=e.cache_n||0,o=e.prompt_progress,l=this.getContextTotal(),u=Vn(),d=u.max_tokens||-1,h=r+s+i,f=i,p=o?.cache||0,g=(o?.processed??0)-p,m=(o?.total??0)-p,_=o?Math.round(g/m*100):void 0;return{status:i>0?"generating":o?"preparing":"idle",tokensDecoded:i,tokensRemaining:d-i,contextUsed:h,contextTotal:l,outputTokensUsed:f,outputTokensMax:d,hasNextToken:i>0,tokensPerSecond:a,temperature:u.temperature??.8,topP:u.top_p??.95,speculative:!1,progressPercent:_,promptProgress:o,promptTokens:r,promptMs:n,cacheTokens:s}}restoreProcessingStateFromMessages(e,r){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.role===br.ASSISTANT&&i.timings){const a=this.parseTimingData({prompt_n:i.timings.prompt_n||0,prompt_ms:i.timings.prompt_ms,predicted_n:i.timings.predicted_n||0,predicted_per_second:i.timings.predicted_n&&i.timings.predicted_ms?i.timings.predicted_n/i.timings.predicted_ms*1e3:0,cache_n:i.timings.cache_n||0});if(a){this.setProcessingState(r,a);return}}}}getConversationModel(e){for(let r=e.length-1;r>=0;r--){const n=e[r];if(n.role===br.ASSISTANT&&n.model)return n.model}return null}getApiOptions(){const e=Vn(),r=i=>i!=null&&i!=="",n={stream:!0,timings_per_token:!0};if(xs()){const i=hT();i&&(n.model=i)}return e.systemMessage&&(n.systemMessage=e.systemMessage),e.disableReasoningParsing&&(n.disableReasoningParsing=!0),e.excludeReasoningFromContext&&(n.excludeReasoningFromContext=!0),n.enableThinking=Rt.getThinkingEnabled(),n.reasoningEffort=Rt.getReasoningEffort(),r(e.temperature)&&(n.temperature=Number(e.temperature)),r(e.max_tokens)&&(n.max_tokens=Number(e.max_tokens)),r(e.dynatemp_range)&&(n.dynatemp_range=Number(e.dynatemp_range)),r(e.dynatemp_exponent)&&(n.dynatemp_exponent=Number(e.dynatemp_exponent)),r(e.top_k)&&(n.top_k=Number(e.top_k)),r(e.top_p)&&(n.top_p=Number(e.top_p)),r(e.min_p)&&(n.min_p=Number(e.min_p)),r(e.xtc_probability)&&(n.xtc_probability=Number(e.xtc_probability)),r(e.xtc_threshold)&&(n.xtc_threshold=Number(e.xtc_threshold)),r(e.typ_p)&&(n.typ_p=Number(e.typ_p)),r(e.repeat_last_n)&&(n.repeat_last_n=Number(e.repeat_last_n)),r(e.repeat_penalty)&&(n.repeat_penalty=Number(e.repeat_penalty)),r(e.presence_penalty)&&(n.presence_penalty=Number(e.presence_penalty)),r(e.frequency_penalty)&&(n.frequency_penalty=Number(e.frequency_penalty)),r(e.dry_multiplier)&&(n.dry_multiplier=Number(e.dry_multiplier)),r(e.dry_base)&&(n.dry_base=Number(e.dry_base)),r(e.dry_allowed_length)&&(n.dry_allowed_length=Number(e.dry_allowed_length)),r(e.dry_penalty_last_n)&&(n.dry_penalty_last_n=Number(e.dry_penalty_last_n)),e.samplers&&(n.samplers=e.samplers),n.backend_sampling=e.backend_sampling,e.customJson&&(n.custom=e.customJson),n}cancelPreEncode(){this.preEncodeAbortController&&(this.preEncodeAbortController.abort(),this.preEncodeAbortController=null)}async triggerPreEncode(e,r,n,i,a){this.cancelPreEncode(),this.preEncodeAbortController=new AbortController;const s=this.preEncodeAbortController.signal;try{if(!await so.areAllSlotsIdle(i,s)||s.aborted)return;const l=[...e,{...r,content:n}];await so.preEncode(l,i,a,s)}catch(o){Td(o)||console.warn("[ChatStore] Pre-encode failed:",o)}}}const li=new SMt,RLe=()=>li.activeProcessingState,TMt=()=>li.errorDialogState,CMt=()=>li.getAddFilesHandler(),wMt=()=>li.getAllLoadingChats(),bk=()=>li.isStreaming(),vSe=()=>li.isEditing(),ib=()=>li.isLoading,xMt=()=>li.pendingEditMessageId,ySe=t=>li.pendingMessageContent(t),AMt=t=>li.pendingMessageExtras(t),RMt=t=>li.clearPendingMessage(t),OMt=(t,e,r)=>li.injectPendingMessage(t,e,r);var IMt=ae('<!> <form><!> <div data-slot="input-area"><!> <div class="flex-column relative min-h-[48px] items-center rounded-3xl py-2 pb-2.25 shadow-sm transition-all focus-within:shadow-md md:!py-3"><!> <!> <!></div></div></form> <!>',1);function OLe(t,e){We(e,!0);let r=ue(e,"attachments",19,()=>[]),n=ue(e,"class",3,""),i=ue(e,"disabled",3,!1),a=ue(e,"isLoading",3,!1),s=ue(e,"placeholder",3,"Type a message..."),o=ue(e,"showMcpPromptButton",3,!1),l=ue(e,"showAddButton",3,!0),u=ue(e,"showModelSelector",3,!0),d=ue(e,"uploadedFiles",31,()=>Kr([])),h=ue(e,"value",15,""),f,p=Me(void 0),g=Me(void 0),m=Me(void 0),_=Me(void 0),v=Me(!1),y=Me(!1),b=Me(!1),E=Me(""),S=Me(!1),T=Me(""),C=Me(!1),x=Me(void 0),A=ee(Vn),R=ee(()=>{const we=Number(w(A).pasteLongTextToFileLen);return Number.isNaN(we)?Number(yd.pasteLongTextToFileLen):we}),I=ee(xs),L=ee(()=>li.getConversationModel(W_())),F=ee(()=>{const we=Ef();if(!w(I))return we.length>0?we[0].model:null;const ce=nb();if(ce){const Te=we.find(fe=>fe.id===ce);if(Te)return Te.model}if(w(L)){const Te=we.find(fe=>fe.model===w(L));if(Te)return Te.model}return null}),O=ee(()=>!w(I)||!!w(L)||!!nb()),D=ee(()=>d().some(we=>we.isLoading)),M=ee(()=>r()&&r().length>0||d()&&d().length>0),P=ee(()=>h().trim().length>0||w(M));Ns(()=>{J(y,F5t(),!0),f=new D5t});function N(){w(_)?.focus()}function $(){w(_)?.resetHeight()}function U(){w(p)?.openModelSelector()}function B(){return w(O)?!0:(w(p)?.openModelSelector(),!1)}function V(we){e.onFilesAdd?.(we)}function z(){w(g)?.click()}function G(we){if(we.startsWith("attachment-")){const ce=parseInt(we.replace("attachment-",""),10);!isNaN(ce)&&ce>=0&&ce<r().length&&e.onAttachmentRemove?.(ce)}else e.onUploadedFileRemove?.(we)}function Y(){const we=Rt.getAllMcpServerOverrides(),ce=Br.hasEnabledServers(we);h().startsWith(kme)&&ce?(J(b,!0),J(E,h().slice(1),!0),J(S,!1),J(T,"")):h().startsWith(Qz)&&ce&&Br.hasResourcesCapability(we)?(J(S,!0),J(T,h().slice(1),!0),J(b,!1),J(E,"")):(J(b,!1),J(E,""),J(S,!1),J(T,""))}function W(we){if(!w(m)?.handleKeydown(we)){if(we.key===wi.ESCAPE&&w(b)){J(b,!1),J(E,"");return}if(we.key===wi.ESCAPE&&w(S)){J(S,!1),J(T,"");return}if(we.key===wi.ENTER&&!we.shiftKey&&!qDe(we)){const ce=we.ctrlKey||we.metaKey;if(w(A).sendOnEnter!==!1||ce){if(we.preventDefault(),!w(P)||i()||w(D))return;e.onSubmit?.()}}}}function Q(we){if(!we.clipboardData)return;const ce=Array.from(we.clipboardData.items).filter(fe=>fe.kind==="file").map(fe=>fe.getAsFile()).filter(fe=>fe!==null);if(ce.length>0){we.preventDefault(),e.onFilesAdd?.(ce);return}const Te=we.clipboardData.getData(yr.PLAIN);if(Te.startsWith(N_t)){const fe=pTt(Te);if(fe.textAttachments.length>0||fe.mcpPromptAttachments.length>0){if(we.preventDefault(),h(fe.message),e.onValueChange?.(fe.message),fe.textAttachments.length>0){const Be=fe.textAttachments.map(me=>new File([me.content],me.name,{type:yr.PLAIN}));e.onFilesAdd?.(Be)}if(fe.mcpPromptAttachments.length>0){const Be=fe.mcpPromptAttachments.map(me=>({id:Up(),name:me.name,size:me.content.length,type:tk.MCP_PROMPT,file:new File([me.content],`${me.name}${xr.TXT}`,{type:yr.PLAIN}),isLoading:!1,textContent:me.content,mcpPrompt:{serverName:me.serverName,promptName:me.promptName,arguments:me.arguments}}));d([...d(),...Be]),e.onUploadedFilesChange?.(d())}setTimeout(()=>{w(_)?.focus()},10);return}}if(Te.length>0&&w(R)>0&&Te.length>w(R)){we.preventDefault();const fe=new File([Te],"Pasted",{type:yr.PLAIN});e.onFilesAdd?.([fe])}}function ie(we,ce,Te){h().startsWith(kme)&&(h(""),e.onValueChange?.("")),J(b,!1),J(E,"");const fe=ce.title||ce.name,Be={id:we,name:fe,size:O_t,type:tk.MCP_PROMPT,file:new File([],"loading"),isLoading:!0,mcpPrompt:{serverName:ce.serverName,promptName:ce.name,arguments:Te?{...Te}:void 0}};d([...d(),Be]),e.onUploadedFilesChange?.(d()),w(_)?.focus()}function Z(we,ce){const Te=ce.messages?.map(fe=>typeof fe.content=="string"?fe.content:fe.content.type===zl.TEXT?fe.content.text:"").filter(Boolean).join(I_t);d(d().map(fe=>fe.id===we?{...fe,isLoading:!1,textContent:Te,size:Te.length,file:new File([Te],`${fe.name}${xr.TXT}`,{type:yr.PLAIN})}:fe)),e.onUploadedFilesChange?.(d())}function re(we,ce){d(d().map(Te=>Te.id===we?{...Te,isLoading:!1,loadError:ce}:Te)),e.onUploadedFilesChange?.(d())}function K(){J(b,!1),J(E,""),w(_)?.focus()}function j(){J(S,!1),J(T,""),w(_)?.focus()}function se(){h().startsWith(Qz)&&(h(""),e.onValueChange?.("")),J(S,!1),J(T,""),w(_)?.focus()}function le(){J(S,!1),J(T,""),h().startsWith(Qz)&&(h(""),e.onValueChange?.("")),J(C,!0)}async function _e(){if(!f||!w(y)){console.warn("Audio recording not supported");return}if(w(v)){J(v,!1);try{const we=await f.stopRecording(),ce=await M5t(we),Te=P5t(ce);e.onFilesAdd?.([Te])}catch(we){console.error("Failed to stop recording:",we)}}else try{await f.startRecording(),J(v,!0)}catch(we){console.error("Failed to start recording:",we)}}var ye={focus:N,resetTextareaHeight:$,openModelSelector:U,checkModelSelected:B},Ue=IMt(),Se=ne(Ue);Qr(IPt(Se,{onFileSelect:V}),we=>J(g,we,!0),()=>w(g));var be=he(Se,2),ke=de(be);Qr(p6t(ke,{get isPromptPickerOpen(){return w(b)},get promptSearchQuery(){return w(E)},get isInlineResourcePickerOpen(){return w(S)},get resourceSearchQuery(){return w(T)},onPromptPickerClose:K,onInlineResourcePickerClose:j,onInlineResourceSelect:se,onPromptLoadStart:ie,onPromptLoadComplete:Z,onPromptLoadError:re,onInlineResourceBrowse:le}),we=>J(m,we,!0),()=>w(m));var Ae=he(ke,2),tt=de(Ae);{let we=ee(()=>w(F)??void 0);jDe(tt,{get attachments(){return r()},onFileRemove:G,limitToSingleRow:!0,class:"py-5",style:"scroll-padding: 1rem;",get activeModelId(){return w(we)},get uploadedFiles(){return d()},set uploadedFiles(ce){d(ce)}})}var Oe=he(tt,2),je=de(Oe);Qr(MPt(je,{class:"px-5 py-1.5 md:pt-0",onKeydown:W,onInput:()=>{Y(),e.onValueChange?.(h())},get disabled(){return i()},get placeholder(){return s()},get value(){return h()},set value(we){h(we)}}),we=>J(_,we,!0),()=>w(_));var ct=he(je,2);{var Fe=we=>{kPt(we,{class:"mb-3",onResourceClick:ce=>{J(x,ce,!0),J(C,!0)}})},Xe=ee(()=>RMe());Re(ct,we=>{w(Xe)&&we(Fe)})}var et=he(ct,2);{let we=ee(()=>o()?()=>J(b,!0):void 0);Qr(zLt(et,{class:"px-3",get canSend(){return w(P)},get disabled(){return i()},get isLoading(){return a()},get isReasoning(){return li.isReasoning},get isRecording(){return w(v)},get showAddButton(){return l()},get showModelSelector(){return u()},get uploadedFiles(){return d()},onFileUpload:z,onMicClick:_e,get onStop(){return e.onStop},onSystemPromptClick:()=>e.onSystemPromptClick?.({message:h(),files:d()}),get onMcpPromptClick(){return w(we)},onMcpResourcesClick:()=>J(C,!0)}),ce=>J(p,ce,!0),()=>w(p))}oe(Oe),oe(Ae),oe(be);var Ie=he(be,2);return itr(Ie,{get preSelectedUri(){return w(x)},onAttach:we=>{Br.attachResource(we.uri)},onOpenChange:we=>{we||J(x,void 0)},get open(){return w(C)},set open(we){J(C,we,!0)}}),at(()=>{lr(be,1,`relative ${n()??""}`),lr(Ae,1,`${mDe??""} overflow-hidden rounded-3xl backdrop-blur-md ${i()?"cursor-not-allowed opacity-60":""}`)}),Ji("submit",be,we=>{we.preventDefault(),!(!w(P)||i()||w(D))&&e.onSubmit?.()}),Ji("paste",Oe,Q),H(t,Ue),Ke(ye)}function C5(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"sideOffset",3,4),i=xt(e,["$$slots","$$events","$$legacy","ref","sideOffset","portalProps","class"]);var a=Ee(),s=ne(a);Le(s,()=>Tg,(o,l)=>{l(o,Bt(()=>e.portalProps,{children:(u,d)=>{var h=Ee(),f=ne(h);{let p=ee(()=>an("z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover p-1.5 text-popover-foreground shadow-md outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:border-border/20",e.class));Le(f,()=>Bgt,(g,m)=>{m(g,Bt({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get class(){return w(p)}},()=>i,{get ref(){return r()},set ref(_){r(_)}}))})}H(u,h)},$$slots:{default:!0}}))}),H(t,a),Ke()}function Sf(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"variant",3,"default"),i=xt(e,["$$slots","$$events","$$legacy","ref","class","inset","variant"]);var a=Ee(),s=ne(a);{let o=ee(()=>an("relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:data-highlighted:text-destructive dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive",e.class));Le(s,()=>ygt,(l,u)=>{u(l,Bt({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return w(o)}},()=>i,{get ref(){return r()},set ref(d){r(d)}}))})}H(t,a),Ke()}function ZB(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("-mx-1 my-1 h-px bg-border/20",e.class));Le(a,()=>Egt,(o,l)=>{l(o,Bt({"data-slot":"dropdown-menu-separator",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}function w5(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref"]);var i=Ee(),a=ne(i);Le(a,()=>$gt,(s,o)=>{o(s,Bt({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(l){r(l)}}))}),H(t,i),Ke()}function cle(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover p-1.5 text-popover-foreground shadow-md outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:border-border/20",e.class));Le(a,()=>Cgt,(o,l)=>{l(o,Bt({"data-slot":"dropdown-menu-sub-content",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}var NMt=ae("<!> <!>",1);function ule(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","inset","children"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e.class));Le(a,()=>xgt,(o,l)=>{l(o,Bt({"data-slot":"dropdown-menu-sub-trigger",get"data-inset"(){return e.inset},get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)},children:(u,d)=>{var h=NMt(),f=ne(h);ft(f,()=>e.children??Tt);var p=he(f,2);fu(p,{class:"ml-auto size-4"}),H(u,h)},$$slots:{default:!0}}))})}H(t,i),Ke()}const dle=_gt,fR=Lgt;function ILe(t,e,r){const n=ee(t),i=ee(()=>{const l=e(),u=d=>()=>{r(),d?.()};return{[kd.FILE_UPLOAD]:u(l.onFileUpload),[kd.SYSTEM_PROMPT_CLICK]:u(l.onSystemPromptClick),[kd.MCP_PROMPT_CLICK]:u(l.onMcpPromptClick),[kd.MCP_RESOURCES_CLICK]:u(l.onMcpResourcesClick)}});function a(l){return!l||l==="always"?!0:!!w(n)[l]}function s(l){return l?!!w(n)[l]:!0}function o(){return ba.params.id?"Inject custom system message at the beginning of the conversation":"Add custom system message for a new conversation"}return{get callbacks(){return w(i)},isItemEnabled:a,isItemVisible:s,getSystemMessageTooltip:o}}var kMt=ae('<span class="sr-only"> </span> <!>',1),DMt=ae("<p> </p>"),MMt=ae("<!> <!>",1),LMt=ae("<!> <span>Add files</span>",1),PMt=ae("<!> <span> </span>",1),FMt=ae("<!> <span> </span>",1),BMt=ae("<div><!></div>"),UMt=ae("<p> </p>"),$Mt=ae("<!> <!>",1),GMt=ae("<!> <!>",1),zMt=ae("<!> <span>System Message</span>",1),qMt=ae("<!> <span>MCP Prompt</span>",1),VMt=ae("<!> <!>",1),HMt=ae("<!> <span>MCP Resources</span>",1),YMt=ae("<!> <!> <!> <!> <!> <!>",1),WMt=ae("<!> <!>",1),KMt=ae("<div><!></div>");function jMt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"disabled",3,!1),i=ue(e,"hasAudioModality",3,!1),a=ue(e,"hasVideoModality",3,!1),s=ue(e,"hasVisionModality",3,!1),o=ue(e,"hasMcpPromptsSupport",3,!1),l=ue(e,"hasMcpResourcesSupport",3,!1),u=Me(!1);function d(){J(u,!1),e.onMcpSettingsClick?.()}const h=ILe(()=>({hasVisionModality:s(),hasAudioModality:i(),hasVideoModality:a(),hasMcpPromptsSupport:o(),hasMcpResourcesSupport:l()}),()=>({onFileUpload:e.onFileUpload,onSystemPromptClick:e.onSystemPromptClick,onMcpPromptClick:e.onMcpPromptClick,onMcpResourcesClick:e.onMcpResourcesClick}),()=>{J(u,!1)});var f=KMt(),p=de(f);Le(p,()=>fR,(g,m)=>{m(g,{get open(){return w(u)},set open(_){J(u,_,!0)},children:(_,v)=>{var y=WMt(),b=ne(y);Le(b,()=>mo,(S,T)=>{T(S,{children:(C,x)=>{var A=MMt(),R=ne(A);{const L=(F,O)=>{let D=()=>O?.().props;var M=Ee(),P=ne(M);{let N=ee(()=>an(Wx({variant:"secondary"}),"file-upload-button h-8 w-8 cursor-pointer rounded-full p-0"));Le(P,()=>w5,($,U)=>{U($,Bt(D,{get class(){return w(N)},get disabled(){return n()},children:(B,V)=>{var z=kMt(),G=ne(z),Y=de(G,!0);oe(G);var W=he(G,2);Eb(W,{class:"h-4 w-4"}),at(()=>yt(Y,D9)),H(B,z)},$$slots:{default:!0}}))})}H(F,M)};Le(R,()=>po,(F,O)=>{O(F,{child:L,$$slots:{child:!0}})})}var I=he(R,2);Le(I,()=>go,(L,F)=>{F(L,{children:(O,D)=>{var M=DMt(),P=de(M,!0);oe(M),at(()=>yt(P,D9)),H(O,M)},$$slots:{default:!0}})}),H(C,A)},$$slots:{default:!0}})});var E=he(b,2);Le(E,()=>C5,(S,T)=>{T(S,{align:"start",class:"w-48",children:(C,x)=>{var A=YMt(),R=ne(A);Le(R,()=>dle,(N,$)=>{$(N,{children:(U,B)=>{var V=GMt(),z=ne(V);Le(z,()=>ule,(Y,W)=>{W(Y,{class:"flex cursor-pointer items-center gap-2",children:(Q,ie)=>{var Z=LMt(),re=ne(Z);s5(re,{class:"h-4 w-4"}),Gt(2),H(Q,Z)},$$slots:{default:!0}})});var G=he(z,2);Le(G,()=>cle,(Y,W)=>{W(Y,{class:"w-48",children:(Q,ie)=>{var Z=Ee(),re=ne(Z);fn(re,17,()=>fDe,K=>K.id,(K,j)=>{const se=ee(()=>h.isItemEnabled(w(j).enabledWhen));var le=Ee(),_e=ne(le);{var ye=Se=>{var be=Ee(),ke=ne(be);{let Ae=ee(()=>w(j).class??"");Le(ke,()=>Sf,(tt,Oe)=>{Oe(tt,{get class(){return`${w(Ae)??""} flex cursor-pointer items-center gap-2`},onclick:()=>h.callbacks[w(j).action](),children:(je,ct)=>{var Fe=PMt(),Xe=ne(Fe);Le(Xe,()=>w(j).icon,(we,ce)=>{ce(we,{class:"h-4 w-4"})});var et=he(Xe,2),Ie=de(et,!0);oe(et),at(()=>yt(Ie,w(j).label)),H(je,Fe)},$$slots:{default:!0}})})}H(Se,be)},Ue=Se=>{var be=Ee(),ke=ne(be);Le(ke,()=>mo,(Ae,tt)=>{tt(Ae,{get delayDuration(){return Jse},children:(Oe,je)=>{var ct=$Mt(),Fe=ne(ct);{const et=(Ie,we)=>{let ce=()=>we?.().props;var Te=BMt();Er(Te,()=>({...ce(),class:"cursor-default"}));var fe=de(Te);{let Be=ee(()=>w(j).class??"");Le(fe,()=>Sf,(me,Ye)=>{Ye(me,{get class(){return`${w(Be)??""} flex items-center gap-2`},disabled:!0,children:(qe,lt)=>{var it=FMt(),He=ne(it);Le(He,()=>w(j).icon,(rt,$e)=>{$e(rt,{class:"h-4 w-4"})});var Je=he(He,2),ht=de(Je,!0);oe(Je),at(()=>yt(ht,w(j).label)),H(qe,it)},$$slots:{default:!0}})})}oe(Te),H(Ie,Te)};Le(Fe,()=>po,(Ie,we)=>{we(Ie,{tabindex:-1,child:et,$$slots:{child:!0}})})}var Xe=he(Fe,2);Le(Xe,()=>go,(et,Ie)=>{Ie(et,{side:"right",children:(we,ce)=>{var Te=UMt(),fe=de(Te,!0);oe(Te),at(()=>yt(fe,w(j).disabledTooltip)),H(we,Te)},$$slots:{default:!0}})}),H(Oe,ct)},$$slots:{default:!0}})}),H(Se,be)};Re(_e,Se=>{w(se)?Se(ye):w(j).disabledTooltip&&Se(Ue,1)})}H(K,le)}),H(Q,Z)},$$slots:{default:!0}})}),H(U,V)},$$slots:{default:!0}})});var I=he(R,2);Le(I,()=>Sf,(N,$)=>{$(N,{class:"flex cursor-pointer items-center gap-2",get onclick(){return e.onSystemPromptClick},children:(U,B)=>{var V=zMt(),z=ne(V);bB(z,{class:"h-4 w-4"}),Gt(2),H(U,V)},$$slots:{default:!0}})});var L=he(I,2);cPt(L,{});var F=he(L,2);vPt(F,{onMcpSettingsClick:d});var O=he(F,2);{var D=N=>{var $=VMt(),U=ne($);Le(U,()=>ZB,(V,z)=>{z(V,{})});var B=he(U,2);Le(B,()=>Sf,(V,z)=>{z(V,{class:"flex cursor-pointer items-center gap-2",get onclick(){return e.onMcpPromptClick},children:(G,Y)=>{var W=qMt(),Q=ne(W);TB(Q,{class:"h-4 w-4"}),Gt(2),H(G,W)},$$slots:{default:!0}})}),H(N,$)};Re(O,N=>{o()&&N(D)})}var M=he(O,2);{var P=N=>{var $=Ee(),U=ne($);Le(U,()=>Sf,(B,V)=>{V(B,{class:"flex cursor-pointer items-center gap-2",get onclick(){return e.onMcpResourcesClick},children:(z,G)=>{var Y=HMt(),W=ne(Y);sR(W,{class:"h-4 w-4"}),Gt(2),H(z,Y)},$$slots:{default:!0}})}),H(N,$)};Re(M,N=>{l()&&N(P)})}H(C,A)},$$slots:{default:!0}})}),H(_,y)},$$slots:{default:!0}})}),oe(f),at(()=>lr(f,1,`flex items-center gap-1 ${r()??""}`)),H(t,f),Ke()}function XMt(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0",e.class));Le(a,()=>aB,(o,l)=>{l(o,Bt({"data-slot":"sheet-overlay",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}const QMt=Y3({base:`border-border/30 dark:border-border/20 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards fixed z-50 flex flex-col gap-4 shadow-sm transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 ${Q_t}`,variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}});var ZMt=ae('<!> <span class="sr-only">Close</span>',1),JMt=ae("<!> <!>",1),eLt=ae("<!> <!>",1);function NLe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"side",3,"right"),i=xt(e,["$$slots","$$events","$$legacy","ref","class","side","portalProps","children"]);var a=Ee(),s=ne(a);Le(s,()=>Tg,(o,l)=>{l(o,Bt(()=>e.portalProps,{children:(u,d)=>{var h=eLt(),f=ne(h);XMt(f,{});var p=he(f,2);{let g=ee(()=>an(QMt({side:n()}),e.class));Le(p,()=>fB,(m,_)=>{_(m,Bt({"data-slot":"sheet-content",get class(){return w(g)}},()=>i,{get ref(){return r()},set ref(v){r(v)},children:(v,y)=>{var b=JMt(),E=ne(b);ft(E,()=>e.children??Tt);var S=he(E,2);Le(S,()=>hB,(T,C)=>{C(T,{class:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none",children:(x,A)=>{var R=ZMt(),I=ne(R);Xd(I,{class:"size-4"}),Gt(2),H(x,R)},$$slots:{default:!0}})}),H(v,b)},$$slots:{default:!0}}))})}H(u,h)},$$slots:{default:!0}}))}),H(t,a),Ke()}var tLt=ae("<div><!></div>");function kLe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=tLt();Er(i,s=>({"data-slot":"sheet-header",class:s,...n}),[()=>an("flex flex-col gap-1.5 p-4",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}function DLe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("font-semibold text-foreground",e.class));Le(a,()=>Eae,(o,l)=>{l(o,Bt({"data-slot":"sheet-title",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}function MLe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("text-sm text-muted-foreground",e.class));Le(a,()=>Uae,(o,l)=>{l(o,Bt({"data-slot":"sheet-description",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}const LLe=dB;function kf(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"open",15,!1),i=xt(e,["$$slots","$$events","$$legacy","ref","open"]);var a=Ee(),s=ne(a);Le(s,()=>Ift,(o,l)=>{l(o,Bt({"data-slot":"collapsible"},()=>i,{get ref(){return r()},set ref(u){r(u)},get open(){return n()},set open(u){n(u)}}))}),H(t,a),Ke()}function Df(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref"]);var i=Ee(),a=ne(i);Le(a,()=>Mft,(s,o)=>{o(s,Bt({"data-slot":"collapsible-trigger"},()=>n,{get ref(){return r()},set ref(l){r(l)}}))}),H(t,i),Ke()}function Mf(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref"]);var i=Ee(),a=ne(i);Le(a,()=>kft,(s,o)=>{o(s,Bt({"data-slot":"collapsible-content"},()=>n,{get ref(){return r()},set ref(l){r(l)}}))}),H(t,i),Ke()}function xb(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"checked",15,!1),i=xt(e,["$$slots","$$events","$$legacy","ref","class","checked"]);var a=Ee(),s=ne(a);{let o=ee(()=>an("peer inline-flex h-[1.15rem] w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",e.class));Le(s,()=>bmt,(l,u)=>{u(l,Bt({"data-slot":"switch",get class(){return w(o)}},()=>i,{get ref(){return r()},set ref(d){r(d)},get checked(){return n()},set checked(d){n(d)},children:(d,h)=>{var f=Ee(),p=ne(f);{let g=ee(()=>an("pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground"));Le(p,()=>Smt,(m,_)=>{_(m,{"data-slot":"switch-thumb",get class(){return w(g)}})})}H(d,f)},$$slots:{default:!0}}))})}H(t,a),Ke()}function PLe(){const t=new uo,e=ee(()=>ua.toolGroups),r=ee(()=>w(e).filter(f=>f.source!==Ci.MCP||!f.serverId||Rt.isMcpServerEnabledForChat(f.serverId))),n=ee(()=>w(r).reduce((f,p)=>f+p.tools.length,0)),i=ee(()=>ua.loading||ua.toolGroups.length>0?null:ua.isToolsEndpointUnreachable?`To enable Built-In Tools you need to run llama-server with ${Iy.TOOLS} all or ${Iy.TOOLS} <name> flag. To see MCP Tools you need to add / enable MCP Server(s).`:ua.error?null:`To enable Built-In Tools you need to run llama-server with ${Iy.TOOLS} all or ${Iy.TOOLS} <name> flag. To see MCP Tools you need to add / enable MCP Server(s).`);function a(f){return ua.isGroupFullyEnabled(f)}function s(f){return f.tools.filter(p=>ua.isToolEnabled(p.key)).length}function o(f){return f.source!==Ci.MCP||!f.serverId?null:Br.getServerFavicon(f.serverId)}function l(f){return f.source===Ci.MCP&&!!f.serverId&&!Rt.isMcpServerEnabledForChat(f.serverId)}function u(f){t.has(f)?t.delete(f):t.add(f)}function d(f){const p=w(r).find(g=>g.label===f);p&&ua.toggleGroup(p)}function h(){ua.builtinTools.length===0&&!ua.loading&&ua.fetchBuiltinTools(),Br.runHealthChecksForServers(Br.getServersSorted().filter(f=>f.enabled))}return{expandedGroups:t,get groups(){return w(e)},get activeGroups(){return w(r)},get totalToolCount(){return w(n)},get noToolsInfoMessage(){return w(i)},isGroupChecked:a,getEnabledToolCount:s,getFavicon:o,isGroupDisabled:l,toggleGroupExpanded:u,toggleGroupByLabel:d,handleOpen:h}}var rLt=ae("<!> <!>",1),nLt=ae('<!> <!> <span class="flex-1">Add files</span>',1),iLt=ae('<button type="button"><!> <span> </span></button>'),aLt=ae('<button type="button" disabled=""><!> <span> </span></button>'),sLt=ae("<p> </p>"),oLt=ae("<!> <!>",1),lLt=ae('<div class="flex flex-col gap-0.5 pl-4"></div>'),cLt=ae("<!> <!>",1),uLt=ae('<!> <!> <span class="flex-1">MCP Servers</span> <span class="text-xs text-muted-foreground"> </span>',1),dLt=ae('<img alt="" class="h-4 w-4 shrink-0 rounded-sm"/>'),hLt=ae('<span class="shrink-0 rounded bg-destructive/15 px-1.5 py-0.5 text-xs text-destructive">Error</span>'),fLt=ae('<button type="button"><div class="flex min-w-0 flex-1 items-center gap-2"><!> <span class="min-w-0 truncate text-sm"> </span></div> <!></button>'),pLt=ae('<div class="px-3 py-2 text-center text-sm text-muted-foreground">No MCP servers configured</div>'),gLt=ae('<div class="flex flex-col gap-0.5 pl-4"><!> <!></div>'),mLt=ae("<!> <!>",1),_Lt=ae('<!> <!> <span class="flex-1">Tools</span> <span class="text-xs text-muted-foreground"> </span>',1),vLt=ae('<img alt="" class="h-4 w-4 shrink-0 rounded-sm"/>'),yLt=ae('<button type="button"><!> <span class="min-w-0 flex-1 truncate text-sm font-medium"> </span> <span class="shrink-0 text-xs text-muted-foreground"> </span> <!></button>'),bLt=ae('<div class="flex flex-col gap-0.5 pl-4"></div>'),ELt=ae("<!> <!>",1),SLt=ae('<button type="button"><!> <span>MCP Prompt</span></button>'),TLt=ae('<button type="button"><!> <span>MCP Resources</span></button>'),CLt=ae('<!> <div class="flex flex-col gap-1 px-1.5 pb-2"><!> <!> <!> <button type="button"><!> <span>System Message</span></button> <!> <!></div>',1),wLt=ae("<!> <!>",1),xLt=ae("<div><!></div>");function ALt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"disabled",3,!1),i=ue(e,"hasAudioModality",3,!1),a=ue(e,"hasVisionModality",3,!1),s=ue(e,"hasVideoModality",3,!1),o=ue(e,"hasMcpPromptsSupport",3,!1),l=ue(e,"hasMcpResourcesSupport",3,!1),u=Me(!1),d=Me(!0),h=Me(!1),f=Me(!1);const p=ILe(()=>({hasVisionModality:a(),hasAudioModality:i(),hasVideoModality:s(),hasMcpPromptsSupport:o(),hasMcpResourcesSupport:l()}),()=>({onFileUpload:e.onFileUpload,onSystemPromptClick:e.onSystemPromptClick,onMcpPromptClick:e.onMcpPromptClick,onMcpResourcesClick:e.onMcpResourcesClick}),()=>{J(u,!1)}),g=PLe(),m="flex w-full items-center gap-3 rounded-md px-3 py-2.5 text-left text-sm transition-colors hover:bg-accent active:bg-accent disabled:cursor-not-allowed disabled:opacity-50",_="flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-accent";function v(){return Br.getServersSorted().filter(E=>E.enabled)}var y=xLt(),b=de(y);Le(b,()=>LLe,(E,S)=>{S(E,{get open(){return w(u)},set open(T){J(u,T,!0)},children:(T,C)=>{var x=wLt(),A=ne(x);ft(A,()=>e.trigger,()=>({disabled:n(),onclick:()=>J(u,!0)}));var R=he(A,2);Le(R,()=>NLe,(I,L)=>{L(I,{side:"bottom",class:"max-h-[85vh] gap-0 overflow-y-auto",children:(F,O)=>{var D=CLt(),M=ne(D);Le(M,()=>kLe,(ie,Z)=>{Z(ie,{children:(re,K)=>{var j=rLt(),se=ne(j);Le(se,()=>DLe,(_e,ye)=>{ye(_e,{children:(Ue,Se)=>{Gt();var be=fr("Add to chat");H(Ue,be)},$$slots:{default:!0}})});var le=he(se,2);Le(le,()=>MLe,(_e,ye)=>{ye(_e,{class:"sr-only",children:(Ue,Se)=>{Gt();var be=fr("Add files, system prompt or configure MCP servers");H(Ue,be)},$$slots:{default:!0}})}),H(re,j)},$$slots:{default:!0}})});var P=he(M,2),N=de(P);Le(N,()=>kf,(ie,Z)=>{Z(ie,{get open(){return w(d)},onOpenChange:re=>J(d,re,!0),children:(re,K)=>{var j=cLt(),se=ne(j);Le(se,()=>Df,(_e,ye)=>{ye(_e,{class:m,children:(Ue,Se)=>{var be=nLt(),ke=ne(be);{var Ae=je=>{hu(je,{class:"h-4 w-4 shrink-0"})},tt=je=>{fu(je,{class:"h-4 w-4 shrink-0"})};Re(ke,je=>{w(d)?je(Ae):je(tt,-1)})}var Oe=he(ke,2);s5(Oe,{class:"h-4 w-4 shrink-0"}),Gt(2),H(Ue,be)},$$slots:{default:!0}})});var le=he(se,2);Le(le,()=>Mf,(_e,ye)=>{ye(_e,{children:(Ue,Se)=>{var be=lLt();fn(be,21,()=>fDe,ke=>ke.id,(ke,Ae)=>{const tt=ee(()=>p.isItemEnabled(w(Ae).enabledWhen));var Oe=Ee(),je=ne(Oe);{var ct=Xe=>{var et=iLt();lr(et,1,Fn(m));var Ie=de(et);Le(Ie,()=>w(Ae).icon,(Te,fe)=>{fe(Te,{class:"h-4 w-4 shrink-0"})});var we=he(Ie,2),ce=de(we,!0);oe(we),oe(et),at(()=>yt(ce,w(Ae).label)),tn("click",et,()=>p.callbacks[w(Ae).action]()),H(Xe,et)},Fe=Xe=>{var et=Ee(),Ie=ne(et);Le(Ie,()=>mo,(we,ce)=>{ce(we,{get delayDuration(){return Jse},children:(Te,fe)=>{var Be=oLt(),me=ne(Be);Le(me,()=>po,(qe,lt)=>{lt(qe,{children:(it,He)=>{var Je=aLt();lr(Je,1,Fn(m));var ht=de(Je);Le(ht,()=>w(Ae).icon,(xe,pt)=>{pt(xe,{class:"h-4 w-4 shrink-0"})});var rt=he(ht,2),$e=de(rt,!0);oe(rt),oe(Je),at(()=>yt($e,w(Ae).label)),H(it,Je)},$$slots:{default:!0}})});var Ye=he(me,2);Le(Ye,()=>go,(qe,lt)=>{lt(qe,{side:"right",children:(it,He)=>{var Je=sLt(),ht=de(Je,!0);oe(Je),at(()=>yt(ht,w(Ae).disabledTooltip)),H(it,Je)},$$slots:{default:!0}})}),H(Te,Be)},$$slots:{default:!0}})}),H(Xe,et)};Re(je,Xe=>{w(tt)?Xe(ct):w(Ae).disabledTooltip&&Xe(Fe,1)})}H(ke,Oe)}),oe(be),H(Ue,be)},$$slots:{default:!0}})}),H(re,j)},$$slots:{default:!0}})});var $=he(N,2);Le($,()=>kf,(ie,Z)=>{Z(ie,{get open(){return w(f)},onOpenChange:re=>J(f,re,!0),children:(re,K)=>{var j=mLt(),se=ne(j);Le(se,()=>Df,(_e,ye)=>{ye(_e,{class:m,children:(Ue,Se)=>{var be=uLt(),ke=ne(be);{var Ae=Fe=>{hu(Fe,{class:"h-4 w-4 shrink-0"})},tt=Fe=>{fu(Fe,{class:"h-4 w-4 shrink-0"})};Re(ke,Fe=>{w(f)?Fe(Ae):Fe(tt,-1)})}var Oe=he(ke,2);l5(Oe,{class:"inline h-4 w-4 shrink-0"});var je=he(Oe,4),ct=de(je);oe(je),at((Fe,Xe)=>yt(ct,`${Fe??""} server${Xe??""}`),[()=>v().length,()=>v().length!==1?"s":""]),H(Ue,be)},$$slots:{default:!0}})});var le=he(se,2);Le(le,()=>Mf,(_e,ye)=>{ye(_e,{children:(Ue,Se)=>{var be=gLt(),ke=de(be);fn(ke,17,v,je=>je.id,(je,ct)=>{const Fe=ee(()=>Br.getHealthCheckState(w(ct).id)),Xe=ee(()=>w(Fe).status===oa.ERROR),et=ee(()=>Br.getServerLabel(w(ct))),Ie=ee(()=>Br.getServerFavicon(w(ct).id)),we=ee(()=>Rt.isMcpServerEnabledForChat(w(ct).id));var ce=fLt();lr(ce,1,Fn(_));var Te=de(ce),fe=de(Te);{var Be=He=>{var Je=dLt();at(()=>Pr(Je,"src",w(Ie))),Ji("error",Je,ht=>{ht.currentTarget.style.display="none"}),Zm(Je),H(He,Je)};Re(fe,He=>{w(Ie)&&He(Be)})}var me=he(fe,2),Ye=de(me,!0);oe(me),oe(Te);var qe=he(Te,2);{var lt=He=>{var Je=hLt();H(He,Je)},it=He=>{xb(He,{get checked(){return w(we)},onCheckedChange:()=>Rt.toggleMcpServerForChat(w(ct).id)})};Re(qe,He=>{w(Xe)?He(lt):He(it,-1)})}oe(ce),at(()=>{ce.disabled=w(Xe),yt(Ye,w(et))}),tn("click",ce,()=>!w(Xe)&&Rt.toggleMcpServerForChat(w(ct).id)),H(je,ce)});var Ae=he(ke,2);{var tt=je=>{var ct=pLt();H(je,ct)},Oe=ee(()=>v().length===0);Re(Ae,je=>{w(Oe)&&je(tt)})}oe(be),H(Ue,be)},$$slots:{default:!0}})}),H(re,j)},$$slots:{default:!0}})});var U=he($,2);{var B=ie=>{var Z=Ee(),re=ne(Z);Le(re,()=>kf,(K,j)=>{j(K,{get open(){return w(h)},onOpenChange:se=>J(h,se,!0),children:(se,le)=>{var _e=ELt(),ye=ne(_e);Le(ye,()=>Df,(Se,be)=>{be(Se,{class:m,children:(ke,Ae)=>{var tt=_Lt(),Oe=ne(tt);{var je=Ie=>{hu(Ie,{class:"h-4 w-4 shrink-0"})},ct=Ie=>{fu(Ie,{class:"h-4 w-4 shrink-0"})};Re(Oe,Ie=>{w(h)?Ie(je):Ie(ct,-1)})}var Fe=he(Oe,2);Yse(Fe,{class:"inline h-4 w-4 shrink-0"});var Xe=he(Fe,4),et=de(Xe);oe(Xe),at(()=>yt(et,`${g.totalToolCount??""} tool${g.totalToolCount!==1?"s":""}`)),H(ke,tt)},$$slots:{default:!0}})});var Ue=he(ye,2);Le(Ue,()=>Mf,(Se,be)=>{be(Se,{children:(ke,Ae)=>{var tt=bLt();fn(tt,21,()=>g.activeGroups,Oe=>Oe.label,(Oe,je)=>{const ct=ee(()=>g.isGroupChecked(w(je))),Fe=ee(()=>g.getEnabledToolCount(w(je))),Xe=ee(()=>g.getFavicon(w(je)));var et=yLt();lr(et,1,Fn(_));var Ie=de(et);{var we=Ye=>{var qe=vLt();at(()=>Pr(qe,"src",w(Xe))),Ji("error",qe,lt=>{lt.currentTarget.style.display="none"}),Zm(qe),H(Ye,qe)};Re(Ie,Ye=>{w(Xe)&&Ye(we)})}var ce=he(Ie,2),Te=de(ce,!0);oe(ce);var fe=he(ce,2),Be=de(fe);oe(fe);var me=he(fe,2);$h(me,{get checked(){return w(ct)},class:"h-4 w-4 shrink-0",onclick:Ye=>Ye.stopPropagation(),onCheckedChange:()=>g.toggleGroupByLabel(w(je).label)}),oe(et),at(()=>{yt(Te,w(je).label),yt(Be,`${w(Fe)??""}/${w(je).tools.length??""}`)}),tn("click",et,()=>g.toggleGroupByLabel(w(je).label)),H(Oe,et)}),oe(tt),H(ke,tt)},$$slots:{default:!0}})}),H(se,_e)},$$slots:{default:!0}})}),H(ie,Z)};Re(U,ie=>{g.totalToolCount>0&&ie(B)})}var V=he(U,2);lr(V,1,Fn(m));var z=de(V);bB(z,{class:"h-4 w-4 shrink-0"}),Gt(2),oe(V);var G=he(V,2);{var Y=ie=>{var Z=SLt();lr(Z,1,Fn(m));var re=de(Z);TB(re,{class:"h-4 w-4 shrink-0"}),Gt(2),oe(Z),tn("click",Z,function(...K){e.onMcpPromptClick?.apply(this,K)}),H(ie,Z)};Re(G,ie=>{o()&&ie(Y)})}var W=he(G,2);{var Q=ie=>{var Z=TLt();lr(Z,1,Fn(m));var re=de(Z);sR(re,{class:"h-4 w-4 shrink-0"}),Gt(2),oe(Z),tn("click",Z,function(...K){e.onMcpResourcesClick?.apply(this,K)}),H(ie,Z)};Re(W,ie=>{l()&&ie(Q)})}oe(P),tn("click",V,function(...ie){e.onSystemPromptClick?.apply(this,ie)}),H(F,D)},$$slots:{default:!0}})}),H(T,x)},$$slots:{default:!0}})}),oe(y),at(()=>lr(y,1,`flex items-center gap-1 ${r()??""}`)),H(t,y),Ke()}Wi(["click"]);var RLt=ae('<span class="sr-only"> </span> <!>',1),OLt=ae("<p> </p>"),ILt=ae("<!> <!>",1);function NLt(t,e){let r=ue(e,"disabled",3,!1);var n=Ee(),i=ne(n);Le(i,()=>mo,(a,s)=>{s(a,{children:(o,l)=>{var u=ILt(),d=ne(u);Le(d,()=>po,(f,p)=>{p(f,{class:"w-full",children:(g,m)=>{Mn(g,{class:"file-upload-button h-8 w-8 rounded-full p-0",get disabled(){return r()},get onclick(){return e.onclick},variant:"secondary",type:"button",children:(_,v)=>{var y=RLt(),b=ne(y),E=de(b,!0);oe(b);var S=he(b,2);Eb(S,{class:"h-4 w-4"}),at(()=>yt(E,D9)),H(_,y)},$$slots:{default:!0}})},$$slots:{default:!0}})});var h=he(d,2);Le(h,()=>go,(f,p)=>{p(f,{children:(g,m)=>{var _=OLt(),v=de(_,!0);oe(_),at(()=>yt(v,D9)),H(g,_)},$$slots:{default:!0}})}),H(o,u)},$$slots:{default:!0}})}),H(t,n)}function kLt(t,e){We(e,!0);let r=ue(e,"disabled",3,!1),n=ue(e,"hasAudioModality",3,!1),i=ue(e,"hasVideoModality",3,!1),a=ue(e,"hasMcpPromptsSupport",3,!1),s=ue(e,"hasMcpResourcesSupport",3,!1),o=ue(e,"hasVisionModality",3,!1);var l=Ee(),u=ne(l);{var d=f=>{ALt(f,{get disabled(){return r()},get hasAudioModality(){return n()},get hasVideoModality(){return i()},get hasVisionModality(){return o()},get hasMcpPromptsSupport(){return a()},get hasMcpResourcesSupport(){return s()},get onFileUpload(){return e.onFileUpload},get onMcpPromptClick(){return e.onMcpPromptClick},get onMcpResourcesClick(){return e.onMcpResourcesClick},trigger:(g,m)=>{let _=()=>m?.().disabled,v=()=>m?.().onclick;NLt(g,{get disabled(){return _()},get onclick(){return v()}})},$$slots:{trigger:!0}})},h=f=>{jMt(f,{get disabled(){return r()},get hasAudioModality(){return n()},get hasVideoModality(){return i()},get hasVisionModality(){return o()},get hasMcpPromptsSupport(){return a()},get hasMcpResourcesSupport(){return s()},get onFileUpload(){return e.onFileUpload},get onMcpPromptClick(){return e.onMcpPromptClick},get onMcpResourcesClick(){return e.onMcpResourcesClick},get onMcpSettingsClick(){return e.onMcpSettingsClick},get onSystemPromptClick(){return e.onSystemPromptClick}})};Re(u,f=>{u5.current?f(d):f(h,-1)})}H(t,l),Ke()}var DLt=ae('<span class="sr-only"> </span> <!>',1),MLt=ae("<p>Current model does not support audio</p>"),LLt=ae("<!> <!>",1),PLt=ae("<div><!></div>");function FLt(t,e){let r=ue(e,"class",3,""),n=ue(e,"disabled",3,!1),i=ue(e,"hasAudioModality",3,!1),a=ue(e,"isLoading",3,!1),s=ue(e,"isRecording",3,!1);var o=PLt(),l=de(o);Le(l,()=>mo,(u,d)=>{d(u,{children:(h,f)=>{var p=LLt(),g=ne(p);Le(g,()=>po,(v,y)=>{y(v,{children:(b,E)=>{{let S=ee(()=>s()?"animate-pulse bg-red-500 text-white hover:bg-red-600":""),T=ee(()=>n()||a()||!i());Mn(b,{get class(){return`h-8 w-8 rounded-full p-0 ${w(S)??""}`},get disabled(){return w(T)},get onclick(){return e.onMicClick},type:"button",children:(C,x)=>{var A=DLt(),R=ne(A),I=de(R,!0);oe(R);var L=he(R,2);{var F=D=>{jse(D,{class:"h-4 w-4 animate-pulse fill-white"})},O=D=>{Hse(D,{class:"h-4 w-4"})};Re(L,D=>{s()?D(F):D(O,-1)})}at(()=>yt(I,s()?"Stop recording":"Start recording")),H(C,A)},$$slots:{default:!0}})}},$$slots:{default:!0}})});var m=he(g,2);{var _=v=>{var y=Ee(),b=ne(y);Le(b,()=>go,(E,S)=>{S(E,{children:(T,C)=>{var x=MLt();H(T,x)},$$slots:{default:!0}})}),H(v,y)};Re(m,v=>{i()||v(_)})}H(h,p)},$$slots:{default:!0}})}),oe(o),at(()=>lr(o,1,`flex items-center gap-1 ${r()??""}`)),H(t,o)}var BLt=ae('<div class="mr-auto flex items-center gap-3"><!></div>'),ULt=ae('<span class="sr-only">Skip reasoning</span> <!>',1),$Lt=ae('<span class="sr-only">Stop</span> <!>',1),GLt=ae('<div style="container-type: inline-size"><!> <div class="flex items-center gap-2"><!> <!></div> <!> <!></div>');function zLt(t,e){We(e,!0);let r=ue(e,"canSend",3,!1),n=ue(e,"canSubmit",3,!1),i=ue(e,"class",3,""),a=ue(e,"disabled",3,!1),s=ue(e,"isLoading",3,!1),o=ue(e,"isReasoning",3,!1),l=ue(e,"isRecording",3,!1),u=ue(e,"showAddButton",3,!0),d=ue(e,"showModelSelector",3,!0),h=ue(e,"uploadedFiles",19,()=>[]),f=ee(Vn),p=ee(()=>{const G=Rt.getAllMcpServerOverrides();return Br.hasPromptsCapability(G)}),g=ee(()=>{const G=Rt.getAllMcpServerOverrides();return Br.hasResourcesCapability(G)}),m=Me(!1),_=Me(!1),v=Me(!1),y=Me(!1),b=Me(!0),E=Me(""),S=ee(()=>h().some(G=>Md(G.type)===xi.AUDIO)),T=ee(()=>w(m)&&!n()&&!w(S)&&w(f).autoMicOnEmpty),C=Me(void 0);function x(){w(C)?.open()}let A=ee(()=>Rt.activeMessages[Rt.activeMessages.length-1]);var R={openModelSelector:x},I=GLt(),L=de(I);{var F=G=>{var Y=BLt(),W=de(Y);kLt(W,{get disabled(){return a()},get hasAudioModality(){return w(m)},get hasVideoModality(){return w(_)},get hasVisionModality(){return w(v)},get hasMcpPromptsSupport(){return w(p)},get hasMcpResourcesSupport(){return w(g)},get onFileUpload(){return e.onFileUpload},get onSystemPromptClick(){return e.onSystemPromptClick},get onMcpPromptClick(){return e.onMcpPromptClick},get onMcpResourcesClick(){return e.onMcpResourcesClick},onMcpSettingsClick:()=>Ws(ho.MCP_SERVERS)}),oe(Y),H(G,Y)};Re(L,G=>{u()&&G(F)})}var O=he(L,2),D=de(O);RPt(D,{});var M=he(D,2);{var P=G=>{Qr(WLt(G,{get disabled(){return a()},forceForegroundText:!0,useGlobalSelection:!0,get hasAudioModality(){return w(m)},set hasAudioModality(Y){J(m,Y,!0)},get hasVideoModality(){return w(_)},set hasVideoModality(Y){J(_,Y,!0)},get hasVisionModality(){return w(v)},set hasVisionModality(Y){J(v,Y,!0)},get hasModelSelected(){return w(y)},set hasModelSelected(Y){J(y,Y,!0)},get isSelectedModelInCache(){return w(b)},set isSelectedModelInCache(Y){J(b,Y,!0)},get submitTooltip(){return w(E)},set submitTooltip(Y){J(E,Y,!0)}}),Y=>J(C,Y,!0),()=>w(C))};Re(M,G=>{d()&&G(P)})}oe(O);var N=he(O,2);{var $=G=>{Mn(G,{type:"button",variant:"secondary",onclick:()=>so.stopReasoning(w(A)?.completionId??"",w(A)?.model),class:"group h-8 w-8 rounded-full p-0",title:"Skip reasoning",children:(Y,W)=>{var Q=ULt(),ie=he(ne(Q),2);f0t(ie,{class:"h-4 w-4 stroke-muted-foreground group-hover:stroke-foreground"}),H(Y,Q)},$$slots:{default:!0}})};Re(N,G=>{o()&&G($)})}var U=he(N,2);{var B=G=>{Mn(G,{type:"button",variant:"secondary",get onclick(){return e.onStop},class:"group h-8 w-8 rounded-full p-0 hover:bg-destructive/10!",children:(Y,W)=>{var Q=$Lt(),ie=he(ne(Q),2);jse(ie,{class:"h-8 w-8 fill-muted-foreground stroke-muted-foreground group-hover:fill-destructive group-hover:stroke-destructive hover:fill-destructive hover:stroke-destructive"}),H(Y,Q)},$$slots:{default:!0}})},V=G=>{FLt(G,{get disabled(){return a()},get hasAudioModality(){return w(m)},get isLoading(){return s()},get isRecording(){return l()},get onMicClick(){return e.onMicClick}})},z=G=>{{let Y=ee(()=>r()&&(d()?w(y)&&w(b):!0)),W=ee(()=>d()&&w(y)&&!w(b));YLt(G,{get canSend(){return w(Y)},get disabled(){return a()},get tooltipLabel(){return w(E)},get showErrorState(){return w(W)}})}};Re(U,G=>{s()&&!n()?G(B):w(T)?G(V,1):G(z,-1)})}return oe(I),at(()=>lr(I,1,`flex w-full items-center gap-3 ${i()??""} ${u()?"":"justify-end"}`)),H(t,I),Ke(R)}var qLt=ae('<span class="sr-only">Send</span> <!>',1),VLt=ae("<p> </p>"),HLt=ae("<!> <!>",1);function YLt(t,e){const r=(h,f)=>{let p=B3(()=>got(f?.(),()=>({}),!0));{let g=ee(()=>["h-8 w-8 rounded-full p-0",a()&&"bg-red-400/10 text-red-400 hover:bg-red-400/20 hover:text-red-400 disabled:opacity-100"]);Mn(h,Bt({type:"submit",get disabled(){return w(s)},get class(){return w(g)}},()=>w(p),{children:(m,_)=>{var v=qLt(),y=he(ne(v),2);Q5e(y,{class:"h-12 w-12"}),H(m,v)},$$slots:{default:!0}}))}};let n=ue(e,"canSend",3,!1),i=ue(e,"disabled",3,!1),a=ue(e,"showErrorState",3,!1),s=ee(()=>!n()||i());var o=Ee(),l=ne(o);{var u=h=>{var f=Ee(),p=ne(f);Le(p,()=>mo,(g,m)=>{m(g,{children:(_,v)=>{var y=HLt(),b=ne(y);Le(b,()=>po,(S,T)=>{T(S,{children:(C,x)=>{r(C)},$$slots:{default:!0}})});var E=he(b,2);Le(E,()=>go,(S,T)=>{T(S,{children:(C,x)=>{var A=VLt(),R=de(A,!0);oe(A),at(()=>yt(R,e.tooltipLabel)),H(C,A)},$$slots:{default:!0}})}),H(_,y)},$$slots:{default:!0}})}),H(h,f)},d=h=>{r(h)};Re(l,h=>{e.tooltipLabel?h(u):h(d,-1)})}H(t,o)}function WLt(t,e){We(e,!0);let r=ue(e,"disabled",3,!1),n=ue(e,"forceForegroundText",3,!1),i=ue(e,"hasAudioModality",15,!1),a=ue(e,"hasVideoModality",15,!1),s=ue(e,"hasVisionModality",15,!1),o=ue(e,"hasModelSelected",15,!1),l=ue(e,"isSelectedModelInCache",15,!0),u=ue(e,"submitTooltip",15,""),d=ue(e,"useGlobalSelection",3,!1),h=ee(xs),f=ee(()=>!!uk()),p=ee(()=>li.getConversationModel(W_())),g=null,m=ee(()=>{const A=hT();return A&&A!==w(p)?A:w(p)?w(p):null});sr(()=>{if(w(p)&&w(p)!==g)Ef().some(A=>A.model===w(p))?(Fr.selectedModelName=w(p),Fr.selectModelByName(w(p))):(Fr.selectedModelName=null,Fr.clearSelection()),g=w(p);else if(w(h)&&!Fr.selectedModelId&&Fr.loadedModelIds.length>0&&W_().length>0&&!w(p)){g=null;const A=Ef().find(R=>Fr.loadedModelIds.includes(R.model));A&&Fr.selectModelById(A.id)}});let _=ee(()=>{const A=Ef();if(!w(h))return A.length>0?A[0].model:null;const R=nb();if(R){const I=A.find(L=>L.id===R);if(I)return I.model}if(w(p)){const I=A.find(L=>L.model===w(p));if(I)return I.model}return null}),v=Me(0);sr(()=>{w(_)&&(Fr.getModelProps(w(_))||Fr.fetchModelProps(w(_)).then(()=>{tN(v)}))}),sr(()=>{w(v),i(w(_)?Fr.modelSupportsAudio(w(_)):!1)}),sr(()=>{w(v),a(w(_)?Fr.modelSupportsVideo(w(_)):!1)}),sr(()=>{w(v),s(w(_)?Fr.modelSupportsVision(w(_)):!1)}),sr(()=>{o(!w(h)||!!w(p)||!!nb())}),sr(()=>{if(!w(h))l(!0);else if(w(p))l(Ef().some(A=>A.model===w(p)));else{const A=nb();l(A?Ef().some(R=>R.id===A):!1)}}),sr(()=>{o()?l()?u(""):u("Selected model is not available, please select another"):u("Please select a model first")});let y=Me(void 0);function b(){w(y)?.open()}var E={open:b},S=Ee(),T=ne(S);{var C=A=>{{let R=ee(()=>r()||w(f));Qr(hnr(A,{get disabled(){return w(R)},get currentModel(){return w(m)},get forceForegroundText(){return n()},get useGlobalSelection(){return d()}}),I=>J(y,I,!0),()=>w(y))}},x=A=>{{let R=ee(()=>r()||w(f));Qr(i7e(A,{get disabled(){return w(R)},get currentModel(){return w(m)},get forceForegroundText(){return n()},get useGlobalSelection(){return d()}}),I=>J(y,I,!0),()=>w(y))}};Re(T,A=>{u5.current?A(C):A(x,-1)})}return H(t,S),Ke(E)}var KLt=ae("<!> <span>Tools</span>",1),jLt=ae('<div class="px-3 py-4 text-center text-sm text-muted-foreground"><!> Loading tools...</div>'),XLt=ae('<div class="grid gap-2.5 px-3 py-4 text-sm text-muted-foreground"><span class="flex gap-2"><!> <span>Run llama-server with <code> </code> flag to enable <strong>Built-in Tools</strong>.</span></span> <span class="flex gap-2"><!> <span> <strong>MCP Tools</strong>.</span></span></div>'),QLt=ae('<div class="px-3 py-4 text-center text-sm text-muted-foreground">Failed to load tools</div>'),ZLt=ae('<div class="flex gap-2 px-3 py-4 text-sm text-muted-foreground"><!> <span> </span></div>'),JLt=ae('<div class="px-3 py-4 text-center text-sm text-muted-foreground">No tools available</div>'),ePt=ae('<img alt="" class="h-4 w-4 shrink-0 rounded-sm"/>'),tPt=ae('<!> <span class="inline-flex min-w-0 items-center gap-1.5 font-medium"><!> <span class="truncate"> </span></span> <span class="ml-auto shrink-0 text-xs text-muted-foreground"> </span>',1),rPt=ae("<p> </p>"),nPt=ae("<!> <!>",1),iPt=ae('<button type="button" class="flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted/50"><span data-slot="checkbox" class="flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"><!></span> <span class="min-w-0 flex-1 truncate font-mono text-[12px]"> </span></button>'),aPt=ae('<div class="ml-4 flex flex-col gap-0.5 border-l border-border/50 pl-2"></div>'),sPt=ae('<div class="flex items-center gap-1"><!> <!></div> <!>',1),oPt=ae('<div class="max-h-80 overflow-y-auto p-2 pr-1"></div>'),lPt=ae("<!> <!>",1);function cPt(t,e){We(e,!0);const r=PLe(),n=ee(()=>Br.getServersSorted().length>0);var i=Ee(),a=ne(i);Le(a,()=>dle,(s,o)=>{o(s,{onOpenChange:l=>l&&r.handleOpen(),children:(l,u)=>{var d=lPt(),h=ne(d);Le(h,()=>ule,(p,g)=>{g(p,{class:"flex cursor-pointer items-center gap-2",children:(m,_)=>{var v=KLt(),y=ne(v);Yse(y,{class:"h-4 w-4"}),Gt(2),H(m,v)},$$slots:{default:!0}})});var f=he(h,2);Le(f,()=>cle,(p,g)=>{g(p,{class:"w-72 p-0",children:(m,_)=>{var v=Ee(),y=ne(v);{var b=S=>{var T=Ee(),C=ne(T);{var x=F=>{var O=jLt(),D=de(O);Ao(D,{class:"mx-auto mb-1 h-4 w-4 animate-spin"}),Gt(),oe(O),H(F,O)},A=F=>{var O=XLt(),D=de(O),M=de(D);eb(M,{class:"mt-0.5 h-4 w-4 shrink-0"});var P=he(M,2),N=he(de(P)),$=de(N,!0);oe(N),Gt(3),oe(P),oe(D);var U=he(D,2),B=de(U);eb(B,{class:"mt-0.5 h-4 w-4 shrink-0"});var V=he(B,2),z=de(V);Gt(2),oe(V),oe(U),oe(O),at(()=>{yt($,Iy.TOOLS),yt(z,`${w(n)?"Enable":"Add"} MCP Server(s) to access `)}),H(F,O)},R=F=>{var O=QLt();H(F,O)},I=F=>{var O=ZLt(),D=de(O);eb(D,{class:"mt-0.5 h-4 w-4 shrink-0"});var M=he(D,2),P=de(M,!0);oe(M),oe(O),at(()=>yt(P,r.noToolsInfoMessage)),H(F,O)},L=F=>{var O=JLt();H(F,O)};Re(C,F=>{ua.loading?F(x):ua.isToolsEndpointUnreachable?F(A,1):ua.error?F(R,2):r.noToolsInfoMessage?F(I,3):F(L,-1)})}H(S,T)},E=S=>{var T=oPt();fn(T,21,()=>r.activeGroups,C=>C.label,(C,x)=>{const A=ee(()=>r.expandedGroups.has(w(x).label)),R=ee(()=>r.isGroupChecked(w(x))),I=ee(()=>r.getFavicon(w(x)));var L=Ee(),F=ne(L);Le(F,()=>kf,(O,D)=>{D(O,{get open(){return w(A)},onOpenChange:()=>r.toggleGroupExpanded(w(x).label),children:(M,P)=>{var N=sPt(),$=ne(N),U=de($);Le(U,()=>Df,(z,G)=>{G(z,{class:"flex min-w-0 flex-1 items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-muted/50",children:(Y,W)=>{var Q=tPt(),ie=ne(Q);{var Z=Se=>{hu(Se,{class:"h-3.5 w-3.5 shrink-0"})},re=Se=>{fu(Se,{class:"h-3.5 w-3.5 shrink-0"})};Re(ie,Se=>{w(A)?Se(Z):Se(re,-1)})}var K=he(ie,2),j=de(K);{var se=Se=>{var be=ePt();at(()=>Pr(be,"src",w(I))),Ji("error",be,ke=>{ke.currentTarget.style.display="none"}),Zm(be),H(Se,be)};Re(j,Se=>{w(I)&&Se(se)})}var le=he(j,2),_e=de(le,!0);oe(le),oe(K);var ye=he(K,2),Ue=de(ye);oe(ye),at(Se=>{yt(_e,w(x).label),yt(Ue,`${Se??""}/${w(x).tools.length??""}`)},[()=>r.getEnabledToolCount(w(x))]),H(Y,Q)},$$slots:{default:!0}})});var B=he(U,2);Le(B,()=>mo,(z,G)=>{G(z,{children:(Y,W)=>{var Q=nPt(),ie=ne(Q);{const re=(K,j)=>{$h(K,Bt(()=>j?.().props,{get checked(){return w(R)},onCheckedChange:()=>r.toggleGroupByLabel(w(x).label),class:"mr-2 h-4 w-4 shrink-0"}))};Le(ie,()=>po,(K,j)=>{j(K,{child:re,$$slots:{child:!0}})})}var Z=he(ie,2);Le(Z,()=>go,(re,K)=>{K(re,{side:"right",children:(j,se)=>{var le=rPt(),_e=de(le);oe(le),at(()=>yt(_e,`${w(R)?"Disable":"Enable"}
										${w(x).tools.length??""} tool${w(x).tools.length!==1?"s":""}`)),H(j,le)},$$slots:{default:!0}})}),H(Y,Q)},$$slots:{default:!0}})}),oe($);var V=he($,2);Le(V,()=>Mf,(z,G)=>{G(z,{children:(Y,W)=>{var Q=aPt();fn(Q,21,()=>w(x).tools,ie=>ie.key,(ie,Z)=>{const re=ee(()=>ua.isToolEnabled(w(Z).key));var K=iPt(),j=de(K),se=de(j);{var le=Ue=>{a5(Ue,{class:"size-3.5"})};Re(se,Ue=>{w(re)&&Ue(le)})}oe(j);var _e=he(j,2),ye=de(_e,!0);oe(_e),oe(K),at(()=>{Pr(j,"data-state",w(re)?"checked":"unchecked"),yt(ye,w(Z).definition.function.name)}),tn("click",K,()=>ua.toggleTool(w(Z).key)),H(ie,K)}),oe(Q),H(Y,Q)},$$slots:{default:!0}})}),H(M,N)},$$slots:{default:!0}})}),H(C,L)}),oe(T),H(S,T)};Re(y,S=>{r.totalToolCount===0?S(b):S(E,-1)})}H(m,v)},$$slots:{default:!0}})}),H(l,d)},$$slots:{default:!0}})}),H(t,i),Ke()}Wi(["click"]);var uPt=ae("<!> <span>MCP Servers</span>",1),dPt=ae("<!> <span>Manage MCP Servers</span>",1),hPt=ae('<span class="shrink-0 rounded bg-destructive/15 px-1.5 py-0.5 text-xs text-destructive">Error</span>'),fPt=ae('<button type="button" class="flex w-full items-center justify-between gap-2 rounded-sm px-2 py-2 text-left transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50"><div class="flex min-w-0 flex-1 items-center gap-2"><div class="min-w-0 flex-1"><!></div> <!></div> <!></button>'),pPt=ae('<div class="max-h-64 overflow-y-auto"></div>'),gPt=ae("<!> <span>Add MCP Servers</span>",1),mPt=ae('<div class="px-2 py-3 text-center text-sm text-muted-foreground">No MCP servers configured</div> <!> <!>',1),_Pt=ae("<!> <!>",1);function vPt(t,e){We(e,!0);let r=Me(""),n=ee(()=>Br.getServersSorted()),i=ee(()=>w(n).filter(g=>g.enabled)),a=ee(()=>w(i).length>0),s=ee(()=>{const g=w(r).toLowerCase().trim();return g?w(i).filter(m=>{const _=o(m).toLowerCase(),v=m.url.toLowerCase();return _.includes(g)||v.includes(g)}):w(i)});function o(g){return Br.getServerLabel(g)}function l(g){return Rt.isMcpServerEnabledForChat(g)}async function u(g){await Rt.toggleMcpServerForChat(g)}function d(g){g&&(J(r,""),Br.runHealthChecksForServers(w(n)))}function h(){e.onMcpSettingsClick?.(),Ws(`${w(a)?"":"?add"}${ho.MCP_SERVERS}`)}var f=Ee(),p=ne(f);Le(p,()=>fR,(g,m)=>{m(g,{children:(_,v)=>{var y=Ee(),b=ne(y);Le(b,()=>dle,(E,S)=>{S(E,{onOpenChange:d,children:(T,C)=>{var x=_Pt(),A=ne(x);Le(A,()=>ule,(I,L)=>{L(I,{class:"flex cursor-pointer items-center gap-2",children:(F,O)=>{var D=uPt(),M=ne(D);l5(M,{class:"h-4 w-4"}),Gt(2),H(F,D)},$$slots:{default:!0}})});var R=he(A,2);Le(R,()=>cle,(I,L)=>{L(I,{class:"w-72 pt-0",children:(F,O)=>{var D=Ee(),M=ne(D);{var P=$=>{{const U=V=>{var z=Ee(),G=ne(z);Le(G,()=>Sf,(Y,W)=>{W(Y,{class:"flex cursor-pointer items-center gap-2",onclick:h,children:(Q,ie)=>{var Z=dPt(),re=ne(Z);SB(re,{class:"h-4 w-4"}),Gt(2),H(Q,Z)},$$slots:{default:!0}})}),H(V,z)};let B=ee(()=>w(s).length===0);o7e($,{placeholder:"Search servers...",emptyMessage:"No servers found",get isEmpty(){return w(B)},get searchValue(){return w(r)},set searchValue(V){J(r,V,!0)},footer:U,children:(V,z)=>{var G=pPt();fn(G,21,()=>w(s),Y=>Y.id,(Y,W)=>{const Q=ee(()=>Br.getHealthCheckState(w(W).id)),ie=ee(()=>w(Q).status===oa.ERROR),Z=ee(()=>l(w(W).id)),re=ee(()=>o(w(W))),K=ee(()=>Br.getServerFavicon(w(W).id));var j=fPt(),se=de(j),le=de(se),_e=de(le);EU(_e,{get displayName(){return w(re)},get faviconUrl(){return w(K)},iconClass:"h-4 w-4",iconRounded:"rounded-sm",showVersion:!1,nameClass:"text-sm"}),oe(le);var ye=he(le,2);{var Ue=be=>{var ke=hPt();H(be,ke)};Re(ye,be=>{w(ie)&&be(Ue)})}oe(se);var Se=he(se,2);xb(Se,{get checked(){return w(Z)},get disabled(){return w(ie)},onclick:be=>be.stopPropagation(),onCheckedChange:()=>u(w(W).id)}),oe(j),at(()=>j.disabled=w(ie)),tn("click",j,()=>!w(ie)&&u(w(W).id)),H(Y,j)}),oe(G),H(V,G)},$$slots:{footer:!0,default:!0}})}},N=$=>{var U=mPt(),B=he(ne(U),2);Le(B,()=>ZB,(z,G)=>{G(z,{})});var V=he(B,2);Le(V,()=>Sf,(z,G)=>{G(z,{class:"flex cursor-pointer items-center gap-2",onclick:h,children:(Y,W)=>{var Q=gPt(),ie=ne(Q);Eb(ie,{class:"h-4 w-4"}),Gt(2),H(Y,Q)},$$slots:{default:!0}})}),H($,U)};Re(M,$=>{w(a)?$(P):$(N,-1)})}H(F,D)},$$slots:{default:!0}})}),H(T,x)},$$slots:{default:!0}})}),H(_,y)},$$slots:{default:!0}})}),H(t,f),Ke()}Wi(["click"]);var yPt=ae('<p class="capitalize"> </p>'),bPt=ae("<!> <!>",1),EPt=ae('<div class="h-4 w-4 shrink-0"></div>'),SPt=ae('<span class="text-[11px] text-muted-foreground opacity-60"> </span>'),TPt=ae("<p>Maximum reasoning effort with extended context usage</p>"),CPt=ae("<!> <!>",1),wPt=ae('<button type="button"><!> <span class="flex-1"> </span> <!> <!></button>'),xPt=ae('<div class="mb-2 px-2.5 text-sm font-medium">Reasoning effort</div> <!>',1),APt=ae("<!> <!>",1);function RPt(t,e){We(e,!0);let r=ee(()=>Rt.getThinkingEnabled()),n=ee(()=>Rt.getReasoningEffort()),i=ee(()=>!w(r)),a=ee(()=>w(r)?`${w(n)} Reasoning`:"Disabled Reasoning"),s=Me(!1),o=ee(()=>li.getConversationModel(W_())),l=ee(()=>{const m=xs()?Fr.selectedModelName||w(o):null;return m?Rt.activeMessages.some(v=>v.role===br.ASSISTANT&&v.model===m&&!!v.reasoningContent):!1}),u=ee(()=>{if(q3t(),PMe(),xs()){const m=Fr.selectedModelName||w(o);return Y3t(m??"")||w(l)}return H3t()||w(l)});function d(m){return m.isOff?w(i):w(r)&&w(n)===m.value}function h(m){m.isOff?Rt.setThinkingEnabled(!1):(Rt.setThinkingEnabled(!0),Rt.setReasoningEffort(m.value)),J(s,!1)}var f=Ee(),p=ne(f);{var g=m=>{var _=Ee(),v=ne(_);Le(v,()=>fR,(y,b)=>{b(y,{get open(){return w(s)},set open(E){J(s,E,!0)},children:(E,S)=>{var T=APt(),C=ne(T);Le(C,()=>mo,(A,R)=>{R(A,{children:(I,L)=>{var F=bPt(),O=ne(F);Le(O,()=>po,(M,P)=>{P(M,{children:(N,$)=>{var U=Ee(),B=ne(U);{let V=ee(()=>["flex h-6 w-6 cursor-pointer items-center justify-center rounded-full p-0 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",w(r)?"bg-amber-400/10 hover:bg-amber-400/20":"bg-muted"]),z=ee(()=>`${w(a)}. Click to configure.`);Le(B,()=>w5,(G,Y)=>{Y(G,{get class(){return w(V)},get"aria-label"(){return w(z)},children:(W,Q)=>{var ie=Ee(),Z=ne(ie);{var re=j=>{e0t(j,{class:"h-3 w-3 text-amber-400"})},K=j=>{Jmt(j,{class:"h-3 w-3 text-muted-foreground"})};Re(Z,j=>{w(r)?j(re):j(K,-1)})}H(W,ie)},$$slots:{default:!0}})})}H(N,U)},$$slots:{default:!0}})});var D=he(O,2);Le(D,()=>go,(M,P)=>{P(M,{children:(N,$)=>{var U=yPt(),B=de(U,!0);oe(U),at(()=>yt(B,w(a))),H(N,U)},$$slots:{default:!0}})}),H(I,F)},$$slots:{default:!0}})});var x=he(C,2);Le(x,()=>C5,(A,R)=>{R(A,{align:"start",class:"w-60 rounded-xl bg-popover p-3 text-popover-foreground shadow-md outline-none",children:(I,L)=>{var F=xPt(),O=he(ne(F),2);fn(O,17,()=>m_t,D=>D.value,(D,M)=>{var P=wPt();let N;var $=de(P);{var U=Z=>{a5(Z,{class:"h-4 w-4 shrink-0 text-foreground"})},B=ee(()=>d(w(M))),V=Z=>{var re=EPt();H(Z,re)};Re($,Z=>{w(B)?Z(U):Z(V,-1)})}var z=he($,2),G=de(z,!0);oe(z);var Y=he(z,2);{var W=Z=>{var re=SPt(),K=de(re,!0);oe(re),at(j=>yt(K,j),[()=>dZ[w(M).value]===-1?"Unlimited":`Max ${dZ[w(M).value].toLocaleString()} tokens`]),H(Z,re)};Re(Y,Z=>{w(M).isOff||Z(W)})}var Q=he(Y,2);{var ie=Z=>{var re=Ee(),K=ne(re);Le(K,()=>mo,(j,se)=>{se(j,{children:(le,_e)=>{var ye=CPt(),Ue=ne(ye);Le(Ue,()=>po,(be,ke)=>{ke(be,{children:(Ae,tt)=>{eb(Ae,{class:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})},$$slots:{default:!0}})});var Se=he(Ue,2);Le(Se,()=>go,(be,ke)=>{ke(be,{side:"left",children:(Ae,tt)=>{var Oe=TPt();H(Ae,Oe)},$$slots:{default:!0}})}),H(le,ye)},$$slots:{default:!0}})}),H(Z,re)};Re(Q,Z=>{w(M).hasInfo&&Z(ie)})}oe(P),at(Z=>{N=lr(P,1,"flex w-full cursor-pointer items-center gap-2 rounded-lg px-2.5 py-2 text-left text-sm transition-colors hover:bg-accent",null,N,Z),yt(G,w(M).label)},[()=>({"bg-accent":d(w(M))})]),tn("click",P,()=>h(w(M))),H(D,P)}),H(I,F)},$$slots:{default:!0}})}),H(E,T)},$$slots:{default:!0}})}),H(m,_)};Re(p,m=>{w(u)&&m(g)})}H(t,f),Ke()}Wi(["click"]);var OPt=ae('<input type="file"/>');function IPt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"multiple",3,!0),i;function a(){i?.click()}function s(u){const d=u.target;d.files&&e.onFileSelect?.(Array.from(d.files))}var o={click:a},l=OPt();return Qr(l,u=>i=u,()=>i),at(()=>{l.multiple=n(),lr(l,1,`hidden ${r()??""}`)}),tn("change",l,s),H(t,l),Ke(o)}Wi(["change"]);var NPt=ae("<div><!></div>");function kPt(t,e){We(e,!0);const r=ee(Xkt),n=ee(RMe);function i(u){Br.removeResourceAttachment(u)}function a(u){e.onResourceClick?.(u)}var s=Ee(),o=ne(s);{var l=u=>{var d=NPt(),h=de(d);Voe(h,{gapSize:"2",children:(f,p)=>{var g=Ee(),m=ne(g);fn(m,19,()=>w(r),_=>_.id,(_,v,y)=>{{let b=ee(()=>w(y)===0?"ml-3":"");OMe(_,{get class(){return w(b)},get attachment(){return w(v)},onRemove:i,onclick:()=>a(w(v).resource.uri)})}}),H(f,g)},$$slots:{default:!0}}),oe(d),at(()=>lr(d,1,Fn(e.class))),H(u,d)};Re(o,u=>{w(n)&&u(l)})}H(t,s),Ke()}var DPt=ae('<div><textarea style="max-height: var(--max-message-height);"></textarea></div>');function MPt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"disabled",3,!1),i=ue(e,"placeholder",3,"Ask anything..."),a=ue(e,"value",15,""),s;Ns(()=>{s&&(L9(s),s.focus())});function o(){return s}function l(){s?.focus()}function u(){s&&(s.style.height="1rem")}var d={getElement:o,focus:l,resetHeight:u},h=DPt(),f=de(h);return UF(f),Qr(f,p=>s=p,()=>s),oe(h),at(()=>{lr(h,1,`flex-1 ${r()??""}`),lr(f,1,Fn(["text-md min-h-12 w-full resize-none border-0 bg-transparent p-0 leading-6 outline-none placeholder:text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0",n()&&"cursor-not-allowed"])),f.disabled=n(),Pr(f,"placeholder",i())}),tn("keydown",f,function(...p){e.onKeydown?.apply(this,p)}),tn("input",f,p=>{L9(p.currentTarget),e.onInput?.()}),Ji("paste",f,function(...p){e.onPaste?.apply(this,p)}),WN(f,a),H(t,h),Ke(d)}Wi(["keydown","input"]);const LPt=Y3({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",tertiary:"bg-foreground/15 dark:bg-foreground/10 text-foreground [a&]:hover:bg-foreground/25 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Hu(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"variant",3,"default"),i=xt(e,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var a=Ee(),s=ne(a);n3e(s,()=>e.href?"a":"span",!1,(o,l)=>{Qr(o,h=>r(h),()=>r()),Er(o,h=>({"data-slot":"badge",href:e.href,class:h,...i}),[()=>an(LPt({variant:n()}),e.class,"backdrop-blur-sm")]);var u=Ee(),d=ne(u);ft(d,()=>e.children??Tt),H(l,u)}),H(t,a),Ke()}var PPt=ae('<div class="p-4"><!> <!></div>');function FPt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"isOpen",7,!1),i=ue(e,"searchQuery",3,""),a=Me(Kr([])),s=Me(!1),o=Me(null),l=Me(Kr({})),u=Me(0),d=Me(""),h=Me(null),f=Me(null),p=Kr({}),g=Kr({}),m=Me(null),_=Me(0),v=ee(()=>{const P=Br.getServers(),N=new As;for(const $ of P)N.set($.id,$);return N});sr(()=>{n()?(y(),J(u,0)):(J(o,null),J(l,{},!0),J(h,null))}),sr(()=>{w(O).length>0&&w(u)>=w(O).length&&J(u,0)});async function y(){J(s,!0);try{const P=Rt.getAllMcpServerOverrides();if(!await Br.ensureInitialized(P)){J(a,[],!0);return}J(a,await Br.getAllPrompts(),!0)}catch(P){console.error("[ChatFormPickerMcpPrompts] Failed to load prompts:",P),J(a,[],!0)}finally{J(s,!1)}}function b(P){const N=P.arguments??[];N.length>0?(J(f,w(u),!0),J(o,P,!0),J(l,{},!0),J(h,null),requestAnimationFrame(()=>{const $=document.querySelector(`#arg-${N[0].name}`);$&&$.focus()})):E(P,{})}async function E(P,N){J(h,null);const $=Up(),U=Object.fromEntries(Object.entries(N).filter(([,V])=>V.trim()!=="")),B=Object.keys(U).length>0?U:void 0;e.onPromptLoadStart?.($,P,B),e.onClose?.();try{const V=await Br.getPrompt(P.serverName,P.name,N);e.onPromptLoadComplete?.($,V)}catch(V){const z=V instanceof Error?V.message:"Unknown error executing prompt";e.onPromptLoadError?.($,z)}}function S(P){P.preventDefault(),w(o)&&E(w(o),w(l))}const T=VDe(async(P,N)=>{if(!w(o)||N.length<1){p[P]=[];return}g[P]=!0;try{const $=await Br.getPromptCompletions(w(o).serverName,w(o).name,P,N);if($&&$.values.length>0){const U=$.values.filter(B=>B.trim()!=="");U.length>0?(p[P]=U,J(m,P,!0),J(_,0)):p[P]=[]}else p[P]=[]}catch($){console.error("[ChatFormPickerMcpPrompts] Failed to fetch completions:",$),p[P]=[]}finally{g[P]=!1}},200);function C(P,N){w(l)[P]=N,T(P,N)}function x(P,N){w(l)[P]=N,p[P]=[],J(m,null)}function A(P,N){const $=p[N]??[];if(P.key===wi.ESCAPE){P.preventDefault(),P.stopPropagation(),L();return}$.length===0||w(m)!==N||(P.key===wi.ARROW_DOWN?(P.preventDefault(),J(_,Math.min(w(_)+1,$.length-1),!0)):P.key===wi.ARROW_UP?(P.preventDefault(),J(_,Math.max(w(_)-1,0),!0)):P.key===wi.ENTER&&$[w(_)]&&(P.preventDefault(),P.stopPropagation(),x(N,$[w(_)])))}function R(P){setTimeout(()=>{w(m)===P&&(p[P]=[],J(m,null))},150)}function I(P){(p[P]?.length??0)>0&&J(m,P,!0)}function L(){w(f)!==null&&(J(u,w(f),!0),J(f,null)),J(o,null),J(l,{},!0),J(h,null)}function F(P){return n()?P.key===wi.ESCAPE?(P.preventDefault(),w(o)?L():e.onClose?.(),!0):P.key===wi.ARROW_DOWN?(P.preventDefault(),w(O).length>0&&J(u,(w(u)+1)%w(O).length),!0):P.key===wi.ARROW_UP?(P.preventDefault(),w(O).length>0&&J(u,w(u)===0?w(O).length-1:w(u)-1,!0),!0):P.key===wi.ENTER&&!w(o)?(P.preventDefault(),w(O)[w(u)]&&b(w(O)[w(u)]),!0):!1:!1}let O=ee(()=>{const P=Br.getServersSorted(),N=new Map(P.map((B,V)=>[B.id,V])),$=[...w(a)].sort((B,V)=>{const z=N.get(B.serverName)??Number.MAX_SAFE_INTEGER,G=N.get(V.serverName)??Number.MAX_SAFE_INTEGER;return z-G}),U=(i()||w(d)).toLowerCase();return U?$.filter(B=>B.name.toLowerCase().includes(U)||B.title?.toLowerCase().includes(U)||B.description?.toLowerCase().includes(U)):$}),D=ee(()=>w(a).length>3);var M={handleKeydown:F};return FLe(t,{get class(){return r()},srLabel:"Open prompt picker",get onClose(){return e.onClose},onKeydown:F,get isOpen(){return n()},set isOpen(P){n(P)},children:(P,N)=>{var $=Ee(),U=ne($);{var B=z=>{const G=ee(()=>w(o)),Y=ee(()=>w(v).get(w(G).serverName)),W=ee(()=>w(Y)?Br.getServerLabel(w(Y)):w(G).serverName);var Q=PPt(),ie=de(Q);{const re=j=>{var se=Ee(),le=ne(se);{var _e=ye=>{Hu(ye,{variant:"secondary",children:(Ue,Se)=>{Gt();var be=fr();at(()=>yt(be,`${w(G).arguments.length??""} arg${w(G).arguments.length>1?"s":""}`)),H(Ue,be)},$$slots:{default:!0}})};Re(le,ye=>{w(G).arguments?.length&&ye(_e)})}H(j,se)};let K=ee(()=>w(G).title||w(G).name);aJ(ie,{get server(){return w(Y)},get serverLabel(){return w(W)},get title(){return w(K)},get description(){return w(G).description},titleExtra:re,$$slots:{titleExtra:!0}})}var Z=he(ie,2);WPt(Z,{get prompt(){return w(o)},get promptArgs(){return w(l)},get suggestions(){return p},get loadingSuggestions(){return g},get activeAutocomplete(){return w(m)},get autocompleteIndex(){return w(_)},get promptError(){return w(h)},onArgInput:C,onArgKeydown:A,onArgBlur:R,onArgFocus:I,onSelectSuggestion:x,onSubmit:S,onCancel:L}),oe(Q),H(z,Q)},V=z=>{BLe(z,{get items(){return w(O)},get isLoading(){return w(s)},get selectedIndex(){return w(u)},get showSearchInput(){return w(D)},searchPlaceholder:"Search prompts...",emptyMessage:"No MCP prompts available",itemKey:W=>W.serverName+":"+W.name,get searchQuery(){return w(d)},set searchQuery(W){J(d,W,!0)},item:(W,Q=Tt,ie=Tt,Z=Tt)=>{const re=ee(()=>w(v).get(Q().serverName)),K=ee(()=>w(re)?Br.getServerLabel(w(re)):Q().serverName);ULe(W,{get dataIndex(){return ie()},get isSelected(){return Z()},onclick:()=>b(Q()),children:(j,se)=>{{const le=ye=>{var Ue=Ee(),Se=ne(Ue);{var be=ke=>{Hu(ke,{variant:"secondary",children:(Ae,tt)=>{Gt();var Oe=fr();at(()=>yt(Oe,`${Q().arguments.length??""} arg${Q().arguments.length>1?"s":""}`)),H(Ae,Oe)},$$slots:{default:!0}})};Re(Se,ke=>{Q().arguments?.length&&ke(be)})}H(ye,Ue)};let _e=ee(()=>Q().title||Q().name);aJ(j,{get server(){return w(re)},get serverLabel(){return w(K)},get title(){return w(_e)},get description(){return Q().description},titleExtra:le,$$slots:{titleExtra:!0}})}},$$slots:{default:!0}})},skeleton:W=>{$Le(W,{titleWidth:"w-32",showBadge:!0})},$$slots:{item:!0,skeleton:!0}})};Re(U,z=>{w(o)?z(B):z(V,-1)})}H(P,$)},$$slots:{default:!0}}),Ke(M)}function Af(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e.class));Le(a,()=>qgt,(o,l)=>{l(o,Bt({"data-slot":"label",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}var BPt=ae('<span class="text-destructive">*</span>'),UPt=ae('<span class="text-xs text-muted-foreground/50">...</span>'),$Pt=ae("<span> <!></span> <!>",1),GPt=ae('<button type="button"> </button>'),zPt=ae('<div class="absolute top-full right-0 left-0 z-10 mt-1 max-h-32 overflow-y-auto rounded-lg border border-border/50 bg-background shadow-lg"></div>'),qPt=ae('<div class="relative grid gap-1"><!> <!> <!></div>');function VPt(t,e){We(e,!0);let r=ue(e,"value",3,""),n=ue(e,"suggestions",19,()=>[]),i=ue(e,"isLoadingSuggestions",3,!1),a=ue(e,"isAutocompleteActive",3,!1),s=ue(e,"autocompleteIndex",3,0);var o=qPt(),l=de(o);Af(l,{get for(){return`arg-${e.argument.name??""}`},class:"mb-1 text-muted-foreground",children:(f,p)=>{var g=$Pt(),m=ne(g),_=de(m),v=he(_);{var y=S=>{var T=BPt();H(S,T)};Re(v,S=>{e.argument.required&&S(y)})}oe(m);var b=he(m,2);{var E=S=>{var T=UPt();H(S,T)};Re(b,S=>{i()&&S(E)})}at(()=>yt(_,`${e.argument.name??""} `)),H(f,g)},$$slots:{default:!0}});var u=he(l,2);{let f=ee(()=>e.argument.description||e.argument.name);x0(u,{get id(){return`arg-${e.argument.name??""}`},type:"text",get value(){return r()},oninput:p=>e.onInput(p.currentTarget.value),get onkeydown(){return e.onKeydown},get onblur(){return e.onBlur},get onfocus(){return e.onFocus},get placeholder(){return w(f)},get required(){return e.argument.required},autocomplete:"off"})}var d=he(u,2);{var h=f=>{var p=zPt();fn(p,22,n,g=>g,(g,m,_)=>{var v=GPt(),y=de(v,!0);oe(v),at(()=>{lr(v,1,`w-full px-3 py-1.5 text-left text-sm hover:bg-accent ${w(_)===s()?"bg-accent":""}`),yt(y,m)}),tn("mousedown",v,()=>e.onSelectSuggestion(m)),H(g,v)}),oe(p),sl(3,p,()=>p_,()=>({y:-5,duration:100})),H(f,p)};Re(d,f=>{a()&&n().length>0&&f(h)})}oe(o),H(t,o),Ke()}Wi(["mousedown"]);var HPt=ae('<div class="flex items-start gap-2 rounded-lg border border-destructive/50 bg-destructive/10 px-3 py-2 text-sm text-destructive" role="alert"><span class="shrink-0">⚠</span> <span> </span></div>'),YPt=ae('<form class="space-y-3 pt-4"><!> <!> <div class="mt-8 flex justify-end gap-2"><!> <!></div></form>');function WPt(t,e){We(e,!0);var r=YPt(),n=de(r);fn(n,17,()=>e.prompt.arguments??[],u=>u.name,(u,d)=>{{let h=ee(()=>e.promptArgs[w(d).name]??""),f=ee(()=>e.suggestions[w(d).name]??[]),p=ee(()=>e.loadingSuggestions[w(d).name]??!1),g=ee(()=>e.activeAutocomplete===w(d).name),m=ee(()=>e.activeAutocomplete===w(d).name?e.autocompleteIndex:0);VPt(u,{get argument(){return w(d)},get value(){return w(h)},get suggestions(){return w(f)},get isLoadingSuggestions(){return w(p)},get isAutocompleteActive(){return w(g)},get autocompleteIndex(){return w(m)},onInput:_=>e.onArgInput(w(d).name,_),onKeydown:_=>e.onArgKeydown(_,w(d).name),onBlur:()=>e.onArgBlur(w(d).name),onFocus:()=>e.onArgFocus(w(d).name),onSelectSuggestion:_=>e.onSelectSuggestion(w(d).name,_)})}});var i=he(n,2);{var a=u=>{var d=HPt(),h=he(de(d),2),f=de(h,!0);oe(h),oe(d),at(()=>yt(f,e.promptError)),H(u,d)};Re(i,u=>{e.promptError&&u(a)})}var s=he(i,2),o=de(s);Mn(o,{type:"button",size:"sm",get onclick(){return e.onCancel},variant:"secondary",children:(u,d)=>{Gt();var h=fr("Cancel");H(u,h)},$$slots:{default:!0}});var l=he(o,2);Mn(l,{size:"sm",type:"submit",children:(u,d)=>{Gt();var h=fr("Use Prompt");H(u,h)},$$slots:{default:!0}}),oe(s),oe(r),Ji("submit",r,function(...u){e.onSubmit?.apply(this,u)}),H(t,r),Ke()}function KPt(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=xt(e,["$$slots","$$events","$$legacy","open"]);var i=Ee(),a=ne(i);Le(a,()=>Hgt,(s,o)=>{o(s,Bt(()=>n,{get open(){return r()},set open(l){r(l)}}))}),H(t,i),Ke()}function jPt(t,e){let r=xt(e,["$$slots","$$events","$$legacy"]);var n=Ee(),i=ne(n);Le(i,()=>Tg,(a,s)=>{s(a,Bt(()=>r))}),H(t,n)}function XPt(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"sideOffset",3,4),i=ue(e,"align",3,"center"),a=ue(e,"collisionPadding",3,8),s=ue(e,"avoidCollisions",3,!0),o=xt(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","side","align","collisionPadding","avoidCollisions","portalProps"]);jPt(t,Bt(()=>e.portalProps,{children:(l,u)=>{var d=Ee(),h=ne(d);{let f=ee(()=>an("z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));Le(h,()=>Ogt,(p,g)=>{g(p,Bt({"data-slot":"popover-content",get sideOffset(){return n()},get side(){return e.side},get align(){return i()},get collisionPadding(){return a()},get avoidCollisions(){return s()},get class(){return w(f)}},()=>o,{get ref(){return r()},set ref(m){r(m)}}))})}H(l,d)},$$slots:{default:!0}})),Ke()}function QPt(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("",e.class));Le(a,()=>Ngt,(o,l)=>{l(o,Bt({"data-slot":"popover-trigger",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}var ZPt=ae('<span class="sr-only"> </span>'),JPt=ae("<!> <!>",1);function FLe(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"isOpen",15,!1),i=ue(e,"srLabel",3,"Open picker");var a=Ee(),s=ne(a);Le(s,()=>KPt,(o,l)=>{l(o,{onOpenChange:u=>{u||e.onClose?.()},get open(){return n()},set open(u){n(u)},children:(u,d)=>{var h=JPt(),f=ne(h);Le(f,()=>QPt,(g,m)=>{m(g,{class:"pointer-events-none absolute inset-0 opacity-0",tabindex:-1,"aria-hidden":"true",children:(_,v)=>{var y=ZPt(),b=de(y,!0);oe(y),at(()=>yt(b,i())),H(_,y)},$$slots:{default:!0}})});var p=he(f,2);Le(p,()=>XPt,(g,m)=>{m(g,{side:"top",align:"start",sideOffset:12,get class(){return`w-[var(--bits-popover-anchor-width)] max-w-none rounded-xl border-border/50 p-0 shadow-xl ${r()??""}`},get onkeydown(){return e.onKeydown},onOpenAutoFocus:_=>_.preventDefault(),children:(_,v)=>{var y=Ee(),b=ne(y);ft(b,()=>e.children),H(_,y)},$$slots:{default:!0}})}),H(u,h)},$$slots:{default:!0}})}),H(t,a),Ke()}var e6t=ae('<div class="absolute top-0 right-0 left-0 z-10 p-2 pb-0"><!></div>'),t6t=ae('<div class="py-6 text-center text-sm text-muted-foreground"> </div>'),r6t=ae("<!> <div><!></div> <!>",1);function BLe(t,e){We(e,!0);let r=ue(e,"searchQuery",15),n=ue(e,"searchPlaceholder",3,"Search..."),i=ue(e,"emptyMessage",3,"No items available"),a=Me(null);sr(()=>{if(w(a)&&e.selectedIndex>=0&&e.selectedIndex<e.items.length){const s=w(a).querySelector(`[data-picker-index="${e.selectedIndex}"]`);s&&s.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}}),qoe(t,{children:(s,o)=>{var l=r6t(),u=ne(l);{var d=y=>{var b=e6t(),E=de(b);hR(E,{get placeholder(){return n()},get value(){return r()},set value(S){r(S)}}),oe(b),H(y,b)};Re(u,y=>{e.showSearchInput&&y(d)})}var h=he(u,2),f=de(h);{var p=y=>{var b=Ee(),E=ne(b);{var S=T=>{var C=Ee(),x=ne(C);ft(x,()=>e.skeleton),H(T,C)};Re(E,T=>{e.skeleton&&T(S)})}H(y,b)},g=y=>{var b=t6t(),E=de(b,!0);oe(b),at(()=>yt(E,i())),H(y,b)},m=y=>{var b=Ee(),E=ne(b);fn(E,19,()=>e.items,(S,T)=>e.itemKey(S,T),(S,T,C)=>{var x=Ee(),A=ne(x);ft(A,()=>e.item,()=>w(T),()=>w(C),()=>w(C)===e.selectedIndex),H(S,x)}),H(y,b)};Re(f,y=>{e.isLoading?y(p):e.items.length===0?y(g,1):y(m,-1)})}oe(h),Qr(h,y=>J(a,y),()=>w(a));var _=he(h,2);{var v=y=>{var b=Ee(),E=ne(b);ft(E,()=>e.footer),H(y,b)};Re(_,y=>{e.footer&&y(v)})}at(()=>lr(h,1,Fn([`${Z_t} p-2`,e.showSearchInput&&"pt-13"]))),H(s,l)},$$slots:{default:!0}}),Ke()}var n6t=ae('<button type="button"><!></button>');function ULe(t,e){let r=ue(e,"isSelected",3,!1);var n=n6t(),i=de(n);ft(i,()=>e.children),oe(n),at(()=>{Pr(n,"data-picker-index",e.dataIndex),lr(n,1,`flex w-full cursor-pointer items-start gap-3 rounded-lg px-3 py-2 text-left hover:bg-accent/50 ${r()?"bg-accent/50":""}`)}),tn("click",n,function(...a){e.onclick?.apply(this,a)}),H(t,n)}Wi(["click"]);var i6t=ae('<img alt="" class="h-3 w-3 shrink-0 rounded-sm"/>'),a6t=ae('<p class="mt-0.5 truncate text-sm text-muted-foreground"> </p>'),s6t=ae('<div class="min-w-0 flex-1"><div class="mb-0.5 flex items-center gap-1.5 text-xs text-muted-foreground"><!> <span> </span></div> <div class="flex items-center gap-2"><span class="font-medium"> </span> <!></div> <!> <!></div>');function aJ(t,e){We(e,!0);let r=ee(()=>e.server?Br.getServerFavicon(e.server.id):null);var n=s6t(),i=de(n),a=de(i);{var s=y=>{var b=i6t();at(()=>Pr(b,"src",w(r))),Ji("error",b,E=>{E.currentTarget.style.display="none"}),Zm(b),H(y,b)};Re(a,y=>{w(r)&&y(s)})}var o=he(a,2),l=de(o,!0);oe(o),oe(i);var u=he(i,2),d=de(u),h=de(d,!0);oe(d);var f=he(d,2);{var p=y=>{var b=Ee(),E=ne(b);ft(E,()=>e.titleExtra),H(y,b)};Re(f,y=>{e.titleExtra&&y(p)})}oe(u);var g=he(u,2);{var m=y=>{var b=a6t(),E=de(b,!0);oe(b),at(()=>yt(E,e.description)),H(y,b)};Re(g,y=>{e.description&&y(m)})}var _=he(g,2);{var v=y=>{var b=Ee(),E=ne(b);ft(E,()=>e.subtitle),H(y,b)};Re(_,y=>{e.subtitle&&y(v)})}oe(n),at(()=>{yt(l,e.serverLabel),yt(h,e.title)}),H(t,n),Ke()}var o6t=ae('<div class="h-4 w-12 animate-pulse rounded-full bg-muted"></div>'),l6t=ae('<div class="flex w-full items-start gap-3 rounded-lg px-3 py-2"><div class="min-w-0 flex-1 space-y-2"><div class="mb-2 flex items-center gap-1.5"><div class="h-3 w-3 shrink-0 animate-pulse rounded-sm bg-muted"></div> <div class="h-3 w-24 animate-pulse rounded bg-muted"></div></div> <div class="flex items-center gap-2"><div></div> <!></div> <div class="h-3 w-full animate-pulse rounded bg-muted"></div></div></div>');function $Le(t,e){let r=ue(e,"titleWidth",3,"w-48"),n=ue(e,"showBadge",3,!1);var i=l6t(),a=de(i),s=he(de(a),2),o=de(s),l=he(o,2);{var u=d=>{var h=o6t();H(d,h)};Re(l,d=>{n()&&d(u)})}oe(s),Gt(2),oe(a),oe(i),at(()=>lr(o,1,`h-4 ${r()??""} animate-pulse rounded bg-muted`)),H(t,i)}var c6t=ae('<span class="inline-flex items-center rounded-full bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium text-primary">attached</span>'),u6t=ae('<p class="mt-0.5 truncate text-xs text-muted-foreground/60"> </p>'),d6t=ae("<!> Browse all",1);function h6t(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"isOpen",7,!1),i=ue(e,"searchQuery",3,""),a=Me(Kr([])),s=Me(!1),o=Me(0),l=Me(""),u=ee(()=>{const v=Br.getServers(),y=new As;for(const b of v)y.set(b.id,b);return y});sr(()=>{n()&&(d(),J(o,0))}),sr(()=>{w(g).length>0&&w(o)>=w(g).length&&J(o,0)});async function d(){J(s,!0);try{const v=Rt.getAllMcpServerOverrides();if(!await Br.ensureInitialized(v)){J(a,[],!0);return}await Br.fetchAllResources(),J(a,$i.getAllResourceInfos(),!0)}catch(v){console.error("[ChatFormPickerMcpResources] Failed to load resources:",v),J(a,[],!0)}finally{J(s,!1)}}function h(v){Br.attachResource(v.uri),e.onResourceSelect?.(v),e.onClose?.()}function f(v){return $i.isAttached(v)}function p(v){return n()?v.key===wi.ESCAPE?(v.preventDefault(),e.onClose?.(),!0):v.key===wi.ARROW_DOWN?(v.preventDefault(),w(g).length>0&&J(o,(w(o)+1)%w(g).length),!0):v.key===wi.ARROW_UP?(v.preventDefault(),w(g).length>0&&J(o,w(o)===0?w(g).length-1:w(o)-1,!0),!0):v.key===wi.ENTER?(v.preventDefault(),w(g)[w(o)]&&h(w(g)[w(o)]),!0):!1:!1}let g=ee(()=>{const v=Br.getServersSorted(),y=new Map(v.map((S,T)=>[S.id,T])),b=[...w(a)].sort((S,T)=>{const C=y.get(S.serverName)??Number.MAX_SAFE_INTEGER,x=y.get(T.serverName)??Number.MAX_SAFE_INTEGER;return C-x}),E=(i()||w(l)).toLowerCase();return E?b.filter(S=>S.name.toLowerCase().includes(E)||S.title?.toLowerCase().includes(E)||S.description?.toLowerCase().includes(E)||S.uri.toLowerCase().includes(E)):b}),m=ee(()=>w(a).length>3);var _={handleKeydown:p};return FLe(t,{get class(){return r()},srLabel:"Open resource picker",get onClose(){return e.onClose},onKeydown:p,get isOpen(){return n()},set isOpen(v){n(v)},children:(v,y)=>{BLe(v,{get items(){return w(g)},get isLoading(){return w(s)},get selectedIndex(){return w(o)},get showSearchInput(){return w(m)},searchPlaceholder:"Search resources...",emptyMessage:"No MCP resources available",itemKey:T=>T.serverName+":"+T.uri,get searchQuery(){return w(l)},set searchQuery(T){J(l,T,!0)},item:(T,C=Tt,x=Tt,A=Tt)=>{const R=ee(()=>w(u).get(C().serverName)),I=ee(()=>w(R)?Br.getServerLabel(w(R)):C().serverName);ULe(T,{get dataIndex(){return x()},get isSelected(){return A()},onclick:()=>h(C()),children:(L,F)=>{{const O=P=>{var N=Ee(),$=ne(N);{var U=V=>{var z=c6t();H(V,z)},B=ee(()=>f(C().uri));Re($,V=>{w(B)&&V(U)})}H(P,N)},D=P=>{var N=u6t(),$=de(N,!0);oe(N),at(()=>yt($,C().uri)),H(P,N)};let M=ee(()=>C().title||C().name);aJ(L,{get server(){return w(R)},get serverLabel(){return w(I)},get title(){return w(M)},get description(){return C().description},titleExtra:O,subtitle:D,$$slots:{titleExtra:!0,subtitle:!0}})}},$$slots:{default:!0}})},skeleton:T=>{$Le(T,{})},footer:T=>{var C=Ee(),x=ne(C);{var A=R=>{Mn(R,{class:"fixed right-3 bottom-3",type:"button",get onclick(){return e.onBrowse},variant:"secondary",size:"sm",children:(I,L)=>{var F=d6t(),O=ne(F);sR(O,{class:"h-3 w-3"}),Gt(),H(I,F)},$$slots:{default:!0}})};Re(x,R=>{e.onBrowse&&w(a).length>3&&R(A)})}H(T,C)},$$slots:{item:!0,skeleton:!0,footer:!0}})},$$slots:{default:!0}}),Ke(_)}var f6t=ae("<!> <!>",1);function p6t(t,e){We(e,!0);let r=Me(void 0),n=Me(void 0);function i(u){return!!(e.isPromptPickerOpen&&w(r)?.handleKeydown(u)||e.isInlineResourcePickerOpen&&w(n)?.handleKeydown(u))}var a={handleKeydown:i},s=f6t(),o=ne(s);Qr(FPt(o,{get isOpen(){return e.isPromptPickerOpen},get searchQuery(){return e.promptSearchQuery},get onClose(){return e.onPromptPickerClose},get onPromptLoadStart(){return e.onPromptLoadStart},get onPromptLoadComplete(){return e.onPromptLoadComplete},get onPromptLoadError(){return e.onPromptLoadError}}),u=>J(r,u,!0),()=>w(r));var l=he(o,2);return Qr(h6t(l,{get isOpen(){return e.isInlineResourcePickerOpen},get searchQuery(){return e.resourceSearchQuery},get onClose(){return e.onInlineResourcePickerClose},get onResourceSelect(){return e.onInlineResourceSelect},get onBrowse(){return e.onInlineResourceBrowse}}),u=>J(n,u,!0),()=>w(n)),H(t,s),Ke(a)}const GLe=Symbol.for(Y_t);function zLe(t){return M1(GLe,t)}function x5(){return jm(GLe)}const qLe=Symbol.for(W_t);function g6t(t){return M1(qLe,t)}function m6t(){return jm(qLe)}const _6t=Symbol.for(K_t);function v6t(t){return M1(_6t,t)}const VLe=Symbol.for(j_t);function y6t(t){return M1(VLe,t)}function HLe(){return jm(VLe)}var b6t=ae("<div><!> <!></div>");function E6t(t,e){We(e,!0);let r=ue(e,"messages",19,()=>[]),n=Me(Kr([])),i=Me(!1),a=Me(null);const s=Vn();g6t({copy:async _=>{const v=!!s.copyTextAttachmentsAsPlainText,y=fTt(_.content,_.extra,v);await cR(y,"Message copied to clipboard")},delete:async _=>{await li.deleteMessage(_.id),o()},navigateToSibling:async _=>{await Rt.navigateToSibling(_)},editWithBranching:async(_,v,y)=>{e.onUserAction?.(),await li.editMessageWithBranching(_.id,v,y),o()},editWithReplacement:async(_,v,y)=>{e.onUserAction?.(),await li.editAssistantMessage(_.id,v,y),o()},editUserMessagePreserveResponses:async(_,v,y)=>{e.onUserAction?.(),await li.editUserMessagePreserveResponses(_.id,v,y),o()},regenerateWithBranching:async(_,v)=>{e.onUserAction?.(),await li.regenerateMessageWithBranching(_.id,v),o()},continueAssistantMessage:async _=>{e.onUserAction?.(),await li.continueAssistantMessage(_.id),o()},forkConversation:async(_,v)=>{await Rt.forkConversation(_.id,v)}});function o(){const _=wc();_?Rt.getConversationMessages(_.id).then(v=>{J(n,v,!0)}):J(n,[],!0)}sr(()=>{const _=wc(),v=_?.id??null;v!==w(a)&&w(a)!==null?(J(i,!1),requestAnimationFrame(()=>{o(),J(a,v,!0),requestAnimationFrame(()=>{J(i,!0)})})):(J(a,v,!0),_&&o())}),sr(()=>{w(n),e.onMessagesReady?.(w(l).length)}),Ns(()=>{requestAnimationFrame(()=>{J(i,!0)})}),iae(()=>{J(i,!1)}),H3(()=>{requestAnimationFrame(()=>{J(i,!0)})});let l=ee(()=>{if(!r().length)return[];const _=s.showSystemMessage?r():r().filter(y=>y.type!==br.SYSTEM),v=[];for(let y=0;y<_.length;y++){const b=_[y];if(b.role===br.TOOL)continue;const E=[];if(b.role===br.ASSISTANT&&KDe(b)){let T=y+1;for(;T<_.length;){const C=_[T];if(C.role===br.TOOL)E.push(C),T++;else if(C.role===br.ASSISTANT)E.push(C),T++;else break}y=T-1}else if(b.role===br.ASSISTANT){let T=y+1;for(;T<_.length&&_[T].role===br.TOOL;)E.push(_[T]),T++}const S=Nvt(w(n),b.id);v.push({message:b,toolMessages:E,isLastAssistantMessage:!1,siblingInfo:S||{message:b,siblingIds:[b.id],currentIndex:0,totalSiblings:1}})}for(let y=v.length-1;y>=0;y--)if(v[y].message.role===br.ASSISTANT){v[y].isLastAssistantMessage=!0;break}return v});var u=b6t(),d=de(u);fn(d,17,()=>w(l),({message:_,toolMessages:v,isLastAssistantMessage:y,siblingInfo:b})=>_.id,(_,v)=>{let y=()=>w(v).message,b=()=>w(v).toolMessages,E=()=>w(v).isLastAssistantMessage,S=()=>w(v).siblingInfo;C6t(_,{class:"mx-auto mt-12 w-full max-w-[48rem]",get message(){return y()},get toolMessages(){return b()},get isLastAssistantMessage(){return E()},get siblingInfo(){return S()}})});var h=he(d,2);{var f=_=>{const v=ee(()=>wc().id),y=ee(()=>_Se(w(v)));var b=Ee(),E=ne(b);{var S=T=>{{let C=ee(()=>bMt(w(v)));bSe(T,{class:"mx-auto mt-12 w-full max-w-[48rem]",get content(){return w(y)},get extras(){return w(C)},onSendImmediately:()=>li.abortCurrentFlow(w(v)),onEdit:(x,A)=>yMt(w(v),x,A),onDelete:()=>EMt(w(v))})}};Re(E,T=>{w(y)&&T(S)})}H(_,b)},p=ee(()=>wc()&&_Se(wc().id)),g=_=>{const v=ee(()=>wc().id),y=ee(()=>ySe(w(v)));var b=Ee(),E=ne(b);{var S=T=>{{let C=ee(()=>AMt(w(v)));bSe(T,{class:"mx-auto mt-12 w-full max-w-[48rem]",get content(){return w(y)},get extras(){return w(C)},onSendImmediately:()=>li.abortCurrentFlow(w(v)),onEdit:(x,A)=>OMt(w(v),x,A),onDelete:()=>RMt(w(v))})}};Re(E,T=>{w(y)&&T(S)})}H(_,b)},m=ee(()=>wc()&&ySe(wc().id));Re(h,_=>{w(p)?_(f):w(m)&&_(g,1)})}oe(u),at(()=>lr(u,1,`transition-opacity delay-300 duration-500 ease-out
		${w(i)?"opacity-100":"opacity-0"}`)),H(t,u),Ke()}function S6t(t){const e=t.getBoundingClientRect();return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0}function A5(t,e={}){const{duration:r=300,y:n=0,skipIfVisible:i=!1}=e;i&&S6t(t)||(t.style.opacity="0",t.style.transform=`translateY(${n}px)`,t.style.transition=`opacity ${r}ms ease-out, transform ${r}ms ease-out`,sr(()=>{const a=new IntersectionObserver(s=>{for(const o of s)o.isIntersecting&&(requestAnimationFrame(()=>{t.style.opacity="1",t.style.transform="translateY(0)"}),a.disconnect())},{threshold:.05});return a.observe(t),()=>{a.disconnect()}}))}var T6t=ae("<div><!></div>");function C6t(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"toolMessages",19,()=>[]),i=ue(e,"isLastAssistantMessage",3,!1),a=ue(e,"siblingInfo",3,null);const s=m6t();let o=Me(null),l=ee(()=>e.message.content),u=ee(()=>{if(e.message.role!==br.ASSISTANT)return;const V=aoe(e.message,n(),[],!1),z=[];for(const G of V)switch(G.type){case ca.REASONING:case ca.REASONING_PENDING:z.push(`${k9.START}
${G.content}
${k9.END}`);break;case ca.TEXT:z.push(G.content);break;case ca.TOOL_CALL:case ca.TOOL_CALL_PENDING:case ca.TOOL_CALL_STREAMING:{const Y={name:G.toolName};if(G.toolArgs)try{Y.arguments=JSON.parse(G.toolArgs)}catch{Y.arguments=G.toolArgs}z.push(JSON.stringify(Y,null,2)),G.toolResult&&z.push(`[Tool Result]
${G.toolResult}`);break}}return z.join(`


`)}),d=ee(()=>e.message.extra?[...e.message.extra]:[]),h=Me(Kr([])),f=Me(!1),p=Me(!1),g=Me(!1),m=Me(void 0),_=ee(()=>e.message.role===br.USER),v=ee(()=>e.message.role===br.ASSISTANT);zLe({get isEditing(){return w(f)},get editedContent(){return w(l)},get editedExtras(){return w(d)},get editedUploadedFiles(){return w(h)},get originalContent(){return e.message.role===br.ASSISTANT?w(u)??e.message.content:e.message.content},get originalExtras(){return e.message.extra||[]},get showSaveOnlyOption(){return w(_)},get showBranchAfterEditOption(){return w(v)},get shouldBranchAfterEdit(){return w(g)},get messageRole(){return e.message.role},get rawEditContent(){return w(u)},setContent:V=>{J(l,V)},setExtras:V=>{J(d,V)},setUploadedFiles:V=>{J(h,V,!0)},setShouldBranchAfterEdit:V=>{J(g,V,!0)},save:L,saveOnly:F,cancel:b,startEdit:C});let y=ee(()=>{if(e.message.role!==br.USER||e.message.content.trim()||!e.message.extra||e.message.extra.length!==1)return null;const V=e.message.extra[0];return V.type===hi.MCP_PROMPT?V:null});sr(()=>{const V=xMt();V&&V===e.message.id&&!w(f)&&(C(),li.clearPendingEditMessageId())});async function b(){if(J(f,!1),e.message.role===br.SYSTEM&&e.message.content===fZ){await li.removeSystemPromptPlaceholder(e.message.id)&&Ws(ho.START);return}J(l,e.message.role===br.ASSISTANT?w(u)||e.message.content||"":e.message.content),J(d,e.message.extra?[...e.message.extra]:[]),J(h,[],!0)}function E(){s.copy(e.message)}async function S(){e.message.role===br.SYSTEM?await li.removeSystemPromptPlaceholder(e.message.id)&&Ws(ho.START):s.delete(e.message),J(p,!1)}async function T(){J(o,await li.getDeletionInfo(e.message.id),!0),J(p,!0)}function C(){J(f,!0),e.message.role===br.SYSTEM&&e.message.content===fZ?J(l,""):e.message.role===br.ASSISTANT?J(l,w(u)||e.message.content||""):J(l,e.message.content),w(m)?.focus(),J(d,e.message.extra?[...e.message.extra]:[]),J(h,[],!0),setTimeout(()=>{w(m)&&(w(m).focus(),w(m).setSelectionRange(w(m).value.length,w(m).value.length))},0)}function x(V){s.regenerateWithBranching(e.message,V)}function A(){s.continueAssistantMessage(e.message)}function R(V){s.forkConversation(e.message,V)}function I(V){s.navigateToSibling(V)}async function L(){if(e.message.role===br.SYSTEM){const V=w(l).trim();if(!V){const G=await li.removeSystemPromptPlaceholder(e.message.id);J(f,!1),G&&Ws(ho.START);return}await vn.updateMessage(e.message.id,{content:V});const z=Rt.findMessageIndex(e.message.id);z!==-1&&Rt.updateMessageAtIndex(z,{content:V})}else if(e.message.role===br.USER){const V=await O();s.editWithBranching(e.message,w(l).trim(),V)}else s.editWithReplacement(e.message,w(l),w(g));J(f,!1),J(g,!1),J(h,[],!0)}async function F(){if(e.message.role===br.USER){const V=await O();s.editUserMessagePreserveResponses(e.message,w(l).trim(),V)}J(f,!1),J(h,[],!0)}async function O(){if(w(h).length===0)return w(d);const V=Y_(w(h)),G=(await lle(V))?.extras||[];return[...w(d),...G]}function D(V){J(p,V,!0)}var M=T6t(),P=de(M);{var N=V=>{v7t(V,{get class(){return r()},get deletionInfo(){return w(o)},get message(){return e.message},onConfirmDelete:S,onCopy:E,onDelete:T,onEdit:C,onNavigateToSibling:I,onShowDeleteDialogChange:D,get showDeleteDialog(){return w(p)},get siblingInfo(){return a()},get textareaElement(){return w(m)},set textareaElement(z){J(m,z,!0)}})},$=V=>{S9t(V,{get class(){return r()},get deletionInfo(){return w(o)},get message(){return e.message},get mcpPrompt(){return w(y)},onConfirmDelete:S,onCopy:E,onDelete:T,onEdit:C,onNavigateToSibling:I,onShowDeleteDialogChange:D,get showDeleteDialog(){return w(p)},get siblingInfo(){return a()}})},U=V=>{Z9t(V,{get class(){return r()},get deletionInfo(){return w(o)},get message(){return e.message},onConfirmDelete:S,onCopy:E,onDelete:T,onEdit:C,onForkConversation:R,onNavigateToSibling:I,onShowDeleteDialogChange:D,get showDeleteDialog(){return w(p)},get siblingInfo(){return a()}})},B=V=>{q9t(V,{get class(){return r()},get deletionInfo(){return w(o)},get isLastAssistantMessage(){return i()},get message(){return e.message},get toolMessages(){return n()},get messageContent(){return e.message.content},onConfirmDelete:S,onContinue:A,onCopy:E,onDelete:T,onEdit:C,onForkConversation:R,onNavigateToSibling:I,onRegenerate:x,onShowDeleteDialogChange:D,get showDeleteDialog(){return w(p)},get siblingInfo(){return a()},get textareaElement(){return w(m)},set textareaElement(z){J(m,z,!0)}})};Re(P,V=>{e.message.role===br.SYSTEM?V(N):w(y)?V($,1):e.message.role===br.USER?V(U,2):V(B,-1)})}oe(M),tE(M,V=>A5?.(V)),H(t,M),Ke()}var w6t=ae('<div class="agentic-text svelte-1uhcmx5"><!></div>'),x6t=ae('<div class="rounded bg-muted/30 p-2 text-xs text-muted-foreground italic">Receiving arguments...</div>'),A6t=ae('<div class="rounded bg-yellow-500/10 p-2 text-xs text-yellow-600 italic dark:text-yellow-400">Response was truncated</div>'),R6t=ae('<div class="pt-3"><div class="my-3 flex items-center gap-2 text-xs text-muted-foreground"><span>Arguments:</span> <!></div> <!></div>'),O6t=ae('<div class="pt-3"><div class="my-3 text-xs text-muted-foreground">Arguments:</div> <!></div>'),I6t=ae('<div class="rounded bg-muted/30 p-2 text-xs text-muted-foreground italic">Waiting for result...</div>'),N6t=ae('<img class="mt-2 mb-2 h-auto max-w-full rounded-lg" loading="lazy"/>'),k6t=ae('<div class="font-mono text-xs leading-relaxed whitespace-pre-wrap"> </div> <!>',1),D6t=ae('<div class="overflow-auto rounded-lg border border-border bg-muted p-4"></div>'),M6t=ae('<div class="rounded bg-muted/30 p-2 text-xs text-muted-foreground italic">No output</div>'),L6t=ae('<!> <div class="pt-3"><div class="my-3 flex items-center gap-2 text-xs text-muted-foreground"><span>Result:</span> <!></div> <!></div>',1),P6t=ae('<div class="pt-3"><div class="text-xs leading-relaxed break-words whitespace-pre-wrap"> </div></div>'),F6t=ae('<div class="pt-3"><div class="text-xs leading-relaxed break-words whitespace-pre-wrap"> </div></div>'),B6t=ae('<div class="turn-stats svelte-1uhcmx5"><!></div>'),U6t=ae('<div class="agentic-turn my-2 hover:bg-muted/80 dark:hover:bg-muted/30 svelte-1uhcmx5"><span class="agentic-turn-label svelte-1uhcmx5"></span> <!> <!></div>'),$6t=ae('<div class="agentic-content svelte-1uhcmx5"><!> <!> <!></div>');function G6t(t,e){We(e,!0);const r=(N,$=Tt,U=Tt)=>{var B=Ee(),V=ne(B);{var z=ie=>{var Z=w6t(),re=de(Z);{let K=ee(()=>e.message?.extra);Kle(re,{get content(){return $().content},get attachments(){return w(K)}})}oe(Z),H(ie,Z)},G=ie=>{const Z=ee(()=>(i(),Ao)),re=ee(()=>i()?"h-4 w-4 animate-spin":"h-4 w-4");{let K=ee(()=>C(U(),$())),j=ee(()=>$().toolName||"Tool call"),se=ee(()=>i()?"":"incomplete");yL(ie,{get open(){return w(K)},class:"my-2",get icon(){return w(Z)},get iconClass(){return w(re)},get title(){return w(j)},get subtitle(){return w(se)},get isStreaming(){return i()},onToggle:()=>x(U(),$()),children:(le,_e)=>{var ye=R6t(),Ue=de(ye),Se=he(de(Ue),2);{var be=je=>{Ao(je,{class:"h-3 w-3 animate-spin"})};Re(Se,je=>{i()&&je(be)})}oe(Ue);var ke=he(Ue,2);{var Ae=je=>{{let ct=ee(()=>Dve($().toolArgs));Ck(je,{get code(){return w(ct)},get language(){return pi.JSON},maxHeight:"20rem",class:"text-xs"})}},tt=je=>{var ct=x6t();H(je,ct)},Oe=je=>{var ct=A6t();H(je,ct)};Re(ke,je=>{$().toolArgs?je(Ae):i()?je(tt,1):je(Oe,-1)})}oe(ye),H(le,ye)},$$slots:{default:!0}})}},Y=ie=>{const Z=ee(()=>$().type===ca.TOOL_CALL_PENDING),re=ee(()=>w(Z)?Ao:ok),K=ee(()=>w(Z)?"h-4 w-4 animate-spin":"h-4 w-4");{let j=ee(()=>C(U(),$())),se=ee(()=>$().toolName||""),le=ee(()=>w(Z)?"executing...":void 0);yL(ie,{get open(){return w(j)},class:"my-2",get icon(){return w(re)},get iconClass(){return w(K)},get title(){return w(se)},get subtitle(){return w(le)},get isStreaming(){return w(Z)},onToggle:()=>x(U(),$()),children:(_e,ye)=>{var Ue=L6t(),Se=ne(Ue);{var be=et=>{var Ie=O6t(),we=he(de(Ie),2);{let ce=ee(()=>Dve($().toolArgs));Ck(we,{get code(){return w(ce)},get language(){return pi.JSON},maxHeight:"20rem",class:"text-xs"})}oe(Ie),H(et,Ie)};Re(Se,et=>{$().toolArgs&&$().toolArgs!=="{}"&&et(be)})}var ke=he(Se,2),Ae=de(ke),tt=he(de(Ae),2);{var Oe=et=>{Ao(et,{class:"h-3 w-3 animate-spin"})};Re(tt,et=>{w(Z)&&et(Oe)})}oe(Ae);var je=he(Ae,2);{var ct=et=>{var Ie=I6t();H(et,Ie)},Fe=et=>{var Ie=D6t();fn(Ie,21,()=>$().parsedLines,Xy,(we,ce)=>{var Te=k6t(),fe=ne(Te),Be=de(fe,!0);oe(fe);var me=he(fe,2);{var Ye=qe=>{var lt=N6t();at(()=>{Pr(lt,"src",w(ce).image.base64Url),Pr(lt,"alt",w(ce).image.name)}),H(qe,lt)};Re(me,qe=>{w(ce).image&&qe(Ye)})}at(()=>yt(Be,w(ce).text)),H(we,Te)}),oe(Ie),H(et,Ie)},Xe=et=>{var Ie=M6t();H(et,Ie)};Re(je,et=>{w(Z)?et(ct):$().toolResult?et(Fe,1):et(Xe,-1)})}oe(ke),H(_e,Ue)},$$slots:{default:!0}})}},W=ie=>{const Z=ee(()=>$().wasInterrupted?w(d)?"Error":"Cancelled":i()?"":void 0);{let re=ee(()=>C(U(),$()));yL(ie,{get open(){return w(re)},class:"my-2",get icon(){return vme},title:"Reasoning",get subtitle(){return w(Z)},get rawContent(){return $().content},onToggle:()=>x(U(),$()),children:(K,j)=>{var se=P6t(),le=de(se),_e=de(le,!0);oe(le),oe(se),at(()=>yt(_e,$().content)),H(K,se)},$$slots:{default:!0}})}},Q=ie=>{const Z=ee(()=>i()?"Reasoning...":"Reasoning"),re=ee(()=>i()?"":w(d)?"Error":"Cancelled");{let K=ee(()=>C(U(),$()));yL(ie,{get open(){return w(K)},class:"my-2",get icon(){return vme},get title(){return w(Z)},get subtitle(){return w(re)},get rawContent(){return $().content},get isStreaming(){return i()},onToggle:()=>x(U(),$()),children:(j,se)=>{var le=F6t(),_e=de(le),ye=de(_e,!0);oe(_e),oe(le),at(()=>yt(ye,$().content)),H(j,le)},$$slots:{default:!0}})}};Re(V,ie=>{$().type===ca.TEXT?ie(z):$().type===ca.TOOL_CALL_STREAMING?ie(G,1):$().type===ca.TOOL_CALL||$().type===ca.TOOL_CALL_PENDING?ie(Y,2):$().type===ca.REASONING?ie(W,3):$().type===ca.REASONING_PENDING&&ie(Q,4)})}H(N,B)};let n=ue(e,"toolMessages",19,()=>[]),i=ue(e,"isStreaming",3,!1),a=ue(e,"isLastAssistantMessage",3,!1),s=ue(e,"highlightTurns",3,!1),o=Kr({});const l=ee(()=>Vn().showToolCallInProgress),u=ee(()=>Vn().showThoughtInProgress),d=ee(()=>a()?!!pMt(e.message.convId):!1);let h=Me(!1);const f=ee(()=>i()&&a()?gMt(e.message.convId):null);let p=null;sr(()=>{w(f)!==p&&(p=w(f),w(f)&&J(h,!1))});function g(N){J(h,!0),mMt(e.message.convId,N)}let m=Me(!1);const _=ee(()=>i()&&a()?_Mt(e.message.convId):!1);let v=!1;sr(()=>{w(_)!==v&&(v=w(_),w(_)&&J(m,!1))});function y(N){J(m,!0),vMt(e.message.convId,N)}const b=ee(()=>aoe(e.message,n(),[],i())),E=ee(()=>w(b).map(N=>({...N,parsedLines:N.toolResult?zTt(N.toolResult,N.toolResultExtras||e.message?.extra):[]}))),S=ee(()=>{const N=[];let $=[],U=[],B=!1;for(let V=0;V<w(E).length;V++){const z=w(E)[V],G=z.type===ca.TOOL_CALL||z.type===ca.TOOL_CALL_PENDING||z.type===ca.TOOL_CALL_STREAMING;!G&&B&&$.length>0&&(N.push({sections:$,flatIndices:U}),$=[],U=[]),$.push(z),U.push(V),B=G}return $.length>0&&N.push({sections:$,flatIndices:U}),N});function T(N){return N.type===ca.TOOL_CALL_PENDING||N.type===ca.TOOL_CALL_STREAMING?w(l):N.type===ca.REASONING_PENDING?w(u):!1}function C(N,$){return o[N]!==void 0?o[N]:T($)}function x(N,$){const U=C(N,$);o[N]=!U}function A(N){return{turns:1,toolCallsCount:N.toolCalls.length,toolsMs:N.toolsMs,toolCalls:N.toolCalls,llm:N.llm}}var R=$6t(),I=de(R);{var L=N=>{var $=Ee(),U=ne($);fn(U,17,()=>w(S),Xy,(B,V,z)=>{const G=ee(()=>e.message?.timings?.agentic?.perTurn?.[z]);var Y=U6t(),W=de(Y);W.textContent=`Turn ${z+1}`;var Q=he(W,2);fn(Q,19,()=>w(V).sections,(re,K)=>w(V).flatIndices[K],(re,K,j)=>{r(re,()=>w(K),()=>w(V).flatIndices[w(j)])});var ie=he(Q,2);{var Z=re=>{var K=B6t(),j=de(K);{let se=ee(()=>w(G).toolCalls.length>0?A(w(G)):void 0);sJ(j,{get promptTokens(){return w(G).llm.prompt_n},get promptMs(){return w(G).llm.prompt_ms},get predictedTokens(){return w(G).llm.predicted_n},get predictedMs(){return w(G).llm.predicted_ms},get agenticTimings(){return w(se)},get initialView(){return Bu.GENERATION},hideSummary:!0})}oe(K),H(re,K)};Re(ie,re=>{w(G)&&re(Z)})}oe(Y),H(B,Y)}),H(N,$)},F=N=>{var $=Ee(),U=ne($);fn(U,17,()=>w(E),Xy,(B,V,z)=>{r(B,()=>w(V),()=>z)}),H(N,$)};Re(I,N=>{s()&&w(S).length>1?N(L):N(F,-1)})}var O=he(I,2);{var D=N=>{J6t(N,{get toolName(){return w(f).toolName},get serverLabel(){return w(f).serverLabel},onDecision:g})};Re(O,N=>{w(f)&&!w(h)&&N(D)})}var M=he(O,2);{var P=N=>{r9t(N,{onDecision:y})};Re(M,N=>{w(_)&&!w(m)&&N(P)})}oe(R),H(t,R),Ke()}var z6t=ae("<div><!></div>");function q6t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy","class","children"]);var n=z6t();Er(n,a=>({class:a,...r}),[()=>an("flex items-center [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child):not(:last-child)]:rounded-none",e.class)]);var i=de(n);ft(i,()=>e.children),oe(n),H(t,n),Ke()}var V6t=ae("<div></div>");function H6t(t,e){We(e,!0);let r=xt(e,["$$slots","$$events","$$legacy"]);var n=V6t();Er(n,i=>({class:i,...r}),[()=>an("shrink-0 self-stretch bg-border","w-px")]),H(t,n),Ke()}var Y6t=ae('from <span class="font-semibold"> </span>',1),W6t=ae('Allow use of <span class="font-semibold"> </span> <!> ?',1),K6t=ae("<!> <!> <!>",1),j6t=ae("Always allow <pre> </pre> tool",1),X6t=ae("<!> <!>",1),Q6t=ae("<!> <!>",1),Z6t=ae("<!> <!>",1);function J6t(t,e){We(e,!0),YLe(t,{get icon(){return d0t},message:i=>{Gt();var a=W6t(),s=he(ne(a)),o=de(s,!0);oe(s);var l=he(s,2);{var u=d=>{var h=Y6t(),f=he(ne(h)),p=de(f,!0);oe(f),at(()=>yt(p,e.serverLabel)),H(d,h)};Re(l,d=>{e.serverLabel&&d(u)})}Gt(),at(()=>yt(o,e.toolName)),H(i,a)},actions:i=>{var a=Z6t(),s=ne(a);Le(s,()=>fR,(l,u)=>{u(l,{children:(d,h)=>{var f=Q6t(),p=ne(f);Le(p,()=>q6t,(m,_)=>{_(m,{class:"overflow-hidden rounded-md bg-foreground text-white shadow-sm dark:bg-secondary dark:text-foreground",children:(v,y)=>{var b=K6t(),E=ne(b);Mn(E,{class:"rounded-none! shadow-none!",size:"sm",onclick:()=>e.onDecision(Sh.ONCE),children:(C,x)=>{Gt();var A=fr("Allow once");H(C,A)},$$slots:{default:!0}});var S=he(E,2);Le(S,()=>H6t,(C,x)=>{x(C,{})});var T=he(S,2);Le(T,()=>w5,(C,x)=>{x(C,{children:(A,R)=>{Mn(A,{size:"sm",class:"rounded-none! !ps-2 shadow-none!",children:(I,L)=>{hu(I,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}})},$$slots:{default:!0}})}),H(v,b)},$$slots:{default:!0}})});var g=he(p,2);Le(g,()=>C5,(m,_)=>{_(m,{align:"start",class:"min-w-[8rem]",children:(v,y)=>{var b=X6t(),E=ne(b);Le(E,()=>Sf,(x,A)=>{A(x,{onclick:()=>e.onDecision(Sh.ALWAYS),children:(R,I)=>{Gt();var L=j6t(),F=he(ne(L)),O=de(F,!0);oe(F),Gt(),at(()=>yt(O,e.toolName)),H(R,L)},$$slots:{default:!0}})});var S=he(E,2);{var T=x=>{var A=Ee(),R=ne(A);Le(R,()=>Sf,(I,L)=>{L(I,{onclick:()=>e.onDecision(Sh.ALWAYS_SERVER),children:(F,O)=>{Gt();var D=fr();at(()=>yt(D,`Always allow all tools from ${e.serverLabel??""}`)),H(F,D)},$$slots:{default:!0}})}),H(x,A)},C=x=>{const A=ee(()=>ua.getToolSource(e.toolName)),R=ee(()=>w(A)===Ci.BUILTIN?aN[Ci.BUILTIN]:w(A)===Ci.CUSTOM?aN[Ci.CUSTOM]:"MCP Tools");var I=Ee(),L=ne(I);Le(L,()=>Sf,(F,O)=>{O(F,{onclick:()=>e.onDecision(Sh.ALWAYS_SERVER),children:(D,M)=>{Gt();var P=fr();at(()=>yt(P,`Approve all tools from ${w(R)??""}`)),H(D,P)},$$slots:{default:!0}})}),H(x,I)};Re(S,x=>{e.serverLabel?x(T):x(C,-1)})}H(v,b)},$$slots:{default:!0}})}),H(d,f)},$$slots:{default:!0}})});var o=he(s,2);Mn(o,{variant:"destructive",size:"sm",class:"text-destructive hover:text-destructive",onclick:()=>e.onDecision(Sh.DENY),children:(l,u)=>{Gt();var d=fr("Deny");H(l,d)},$$slots:{default:!0}}),H(i,a)}}),Ke()}var e9t=ae('<div class="my-2 rounded-lg border border-border bg-card p-3"><div class="mb-3 flex items-center gap-2 text-sm"><!> <span><!></span></div> <div class="flex flex-wrap items-center gap-2"><!></div></div>');function YLe(t,e){var r=e9t(),n=de(r),i=de(n);Le(i,()=>e.icon,(u,d)=>{d(u,{class:"h-4 w-4 shrink-0 text-muted-foreground"})});var a=he(i,2),s=de(a);ft(s,()=>e.message),oe(a),oe(n);var o=he(n,2),l=de(o);ft(l,()=>e.actions),oe(o),oe(r),H(t,r)}var t9t=ae("<!> <!>",1);function r9t(t,e){We(e,!0),YLe(t,{get icon(){return iDe},message:i=>{Gt();var a=fr("Agentic turn limit reached. Continue?");H(i,a)},actions:i=>{var a=t9t(),s=ne(a);Mn(s,{size:"sm",onclick:()=>e.onDecision(!0),children:(l,u)=>{Gt();var d=fr("Continue");H(l,d)},$$slots:{default:!0}});var o=he(s,2);Mn(o,{variant:"destructive",size:"sm",class:"text-destructive hover:text-destructive",onclick:()=>e.onDecision(!1),children:(l,u)=>{Gt();var d=fr("Stop");H(l,d)},$$slots:{default:!0}}),H(i,a)}}),Ke()}var n9t=ae('<div class="flex items-center gap-2"><span class="text-xs text-muted-foreground">Show raw output</span> <!></div>'),i9t=ae('<div class="flex flex-col gap-4 py-2"><div class="flex flex-col gap-2"><!> <!></div> <div class="flex items-center gap-2"><!> <!></div></div>'),a9t=ae('<div><div><!> <div class="pointer-events-auto inset-0 flex items-center gap-1 opacity-100 transition-all duration-150"><!> <!> <!> <!> <!> <!></div></div> <!></div> <!> <!>',1);function JB(t,e){We(e,!0);let r=ue(e,"siblingInfo",3,null),n=ue(e,"showDeleteDialog",7),i=ue(e,"showRawOutputSwitch",3,!1),a=ue(e,"rawOutputEnabled",3,!1),s=Me(!1),o=Me(""),l=Me(!0);function u(){e.onConfirmDelete(),e.onShowDeleteDialogChange(!1)}function d(){const M=wc();J(o,`Fork of ${M?.name??"Conversation"}`),J(l,!0),J(s,!0)}function h(){e.onForkConversation?.({name:w(o).trim(),includeAttachments:w(l)}),J(s,!1)}var f=a9t(),p=ne(f),g=de(p),m=de(g);{var _=M=>{o9t(M,{get siblingInfo(){return r()},get onNavigateToSibling(){return e.onNavigateToSibling}})};Re(m,M=>{r()&&r().totalSiblings>1&&M(_)})}var v=he(m,2),y=de(v);as(y,{get icon(){return tDe},tooltip:"Copy",get onclick(){return e.onCopy}});var b=he(y,2);{var E=M=>{as(M,{get icon(){return Kse},tooltip:"Edit",get onclick(){return e.onEdit}})};Re(b,M=>{e.onEdit&&M(E)})}var S=he(b,2);{var T=M=>{as(M,{get icon(){return D_},tooltip:"Regenerate",onclick:()=>e.onRegenerate()})};Re(S,M=>{e.role===br.ASSISTANT&&e.onRegenerate&&M(T)})}var C=he(S,2);{var x=M=>{as(M,{get icon(){return X5e},tooltip:"Continue",get onclick(){return e.onContinue}})};Re(C,M=>{e.role===br.ASSISTANT&&e.onContinue&&M(x)})}var A=he(C,2);{var R=M=>{as(M,{get icon(){return tZ},tooltip:"Fork conversation",onclick:d})};Re(A,M=>{e.onForkConversation&&M(R)})}var I=he(A,2);as(I,{get icon(){return pg},tooltip:"Delete",get onclick(){return e.onDelete}}),oe(v),oe(g);var L=he(g,2);{var F=M=>{var P=n9t(),N=he(de(P),2);xb(N,{get checked(){return a()},onCheckedChange:$=>e.onRawOutputToggle?.($)}),oe(P),H(M,P)};Re(L,M=>{i()&&M(F)})}oe(p);var O=he(p,2);{let M=ee(()=>e.deletionInfo&&e.deletionInfo.totalCount>1?`This will delete ${e.deletionInfo.totalCount} messages including: ${e.deletionInfo.userMessages} user message${e.deletionInfo.userMessages>1?"s":""} and ${e.deletionInfo.assistantMessages} assistant response${e.deletionInfo.assistantMessages>1?"s":""}. All messages in this branch and their responses will be permanently removed. This action cannot be undone.`:"Are you sure you want to delete this message? This action cannot be undone."),P=ee(()=>e.deletionInfo&&e.deletionInfo.totalCount>1?`Delete ${e.deletionInfo.totalCount} Messages`:"Delete");Rb(O,{title:"Delete Message",get description(){return w(M)},get confirmText(){return w(P)},cancelText:"Cancel",variant:"destructive",get icon(){return pg},onConfirm:u,onCancel:()=>e.onShowDeleteDialogChange(!1),get open(){return n()},set open(N){n(N)}})}var D=he(O,2);Rb(D,{title:"Fork Conversation",description:"Create a new conversation branching from this message.",confirmText:"Fork",cancelText:"Cancel",get icon(){return tZ},onConfirm:h,onCancel:()=>J(s,!1),get open(){return w(s)},set open(M){J(s,M,!0)},children:(M,P)=>{var N=i9t(),$=de(N),U=de($);Af(U,{for:"fork-name",children:(Y,W)=>{Gt();var Q=fr("Title");H(Y,Q)},$$slots:{default:!0}});var B=he(U,2);x0(B,{id:"fork-name",class:"text-foreground",placeholder:"Enter fork name",type:"text",get value(){return w(o)},set value(Y){J(o,Y,!0)}}),oe($);var V=he($,2),z=de(V);$h(z,{id:"fork-attachments",get checked(){return w(l)},onCheckedChange:Y=>{J(l,Y===!0)}});var G=he(z,2);Af(G,{for:"fork-attachments",class:"cursor-pointer text-sm font-normal",children:(Y,W)=>{Gt();var Q=fr("Include all attachments");H(Y,Q)},$$slots:{default:!0}}),oe(V),oe(N),H(M,N)},$$slots:{default:!0}}),at(()=>{lr(p,1,`relative ${e.justify==="start"?"mt-2":""} flex h-6 items-center justify-between`),lr(g,1,`${e.actionsPosition==="left"?"left-0":"right-0"} flex items-center gap-2 opacity-100 transition-opacity`)}),H(t,f),Ke()}var s9t=ae('<div role="navigation"><!> <span class="px-1 font-mono text-xs"> </span> <!></div>');function o9t(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ee(()=>e.siblingInfo&&e.siblingInfo.currentIndex>0),i=ee(()=>e.siblingInfo&&e.siblingInfo.currentIndex<e.siblingInfo.totalSiblings-1),a=ee(()=>w(i)?e.siblingInfo.siblingIds[e.siblingInfo.currentIndex+1]:null),s=ee(()=>w(n)?e.siblingInfo.siblingIds[e.siblingInfo.currentIndex-1]:null);var o=Ee(),l=ne(o);{var u=d=>{var h=s9t(),f=de(h);{let _=ee(()=>!w(n)),v=ee(()=>w(n)?"":"!cursor-not-allowed opacity-30");as(f,{get icon(){return yB},tooltip:"Previous version",get disabled(){return w(_)},get class(){return`h-5 w-5 p-0 ${w(v)??""}`},onclick:()=>e.onNavigateToSibling?.(w(s))})}var p=he(f,2),g=de(p);oe(p);var m=he(p,2);{let _=ee(()=>!w(i)),v=ee(()=>w(i)?"":"opacity-30");as(m,{get icon(){return fu},tooltip:"Next version",get disabled(){return w(_)},get class(){return`h-5 w-5 p-0 ${w(v)??""}`},onclick:()=>e.onNavigateToSibling?.(w(a))})}oe(h),at(()=>{Pr(h,"aria-label",`Message version ${e.siblingInfo.currentIndex+1} of ${e.siblingInfo.totalSiblings??""}`),lr(h,1,`flex items-center gap-1 text-xs text-muted-foreground ${r()??""}`),yt(g,`${e.siblingInfo.currentIndex+1}/${e.siblingInfo.totalSiblings??""}`)}),H(d,h)};Re(l,d=>{e.siblingInfo&&e.siblingInfo.totalSiblings>1&&d(u)})}H(t,o),Ke()}var l9t=ae('<button><!> <span class="sr-only"> </span></button>'),c9t=ae("<p> </p>"),u9t=ae("<!> <!>",1),d9t=ae("<!> <!>",1),h9t=ae("<!> <!> <!>",1),f9t=ae("<!> <!> <!>",1),p9t=ae("<!> <!> <!>",1),g9t=ae("<!> <!> <!>",1),m9t=ae('<div class="inline-flex items-center text-xs text-muted-foreground"><div class="inline-flex items-center rounded-sm bg-muted-foreground/15 p-0.5"><!> <!> <!></div> <div class="flex items-center gap-1 px-2"><!></div></div>');function sJ(t,e){We(e,!0);const r=(N,$=Tt)=>{const U=ee(()=>$().icon);var B=Ee(),V=ne(B);Le(V,()=>mo,(z,G)=>{G(z,{children:(Y,W)=>{var Q=u9t(),ie=ne(Q);{const re=(K,j)=>{let se=()=>j?.().props;var le=l9t(),_e=()=>!$().disabled&&J(o,$().view);Er(le,()=>({...se(),type:"button",class:`inline-flex h-5 w-5 items-center justify-center rounded-sm transition-colors ${w(o)===$().view?"bg-background text-foreground shadow-sm":$().disabled?"cursor-not-allowed opacity-40":"hover:text-foreground"}`,onclick:_e,disabled:$().disabled}));var ye=de(le);Le(ye,()=>w(U),(be,ke)=>{ke(be,{class:"h-3 w-3"})});var Ue=he(ye,2),Se=de(Ue,!0);oe(Ue),oe(le),at(()=>yt(Se,$().label)),H(K,le)};Le(ie,()=>po,(K,j)=>{j(K,{child:re,$$slots:{child:!0}})})}var Z=he(ie,2);Le(Z,()=>go,(re,K)=>{K(re,{children:(j,se)=>{var le=c9t(),_e=de(le,!0);oe(le),at(()=>yt(_e,$().tooltipText)),H(j,le)},$$slots:{default:!0}})}),H(Y,Q)},$$slots:{default:!0}})}),H(N,B)};let n=ue(e,"isLive",3,!1),i=ue(e,"isProcessingPrompt",3,!1),a=ue(e,"initialView",19,()=>Bu.GENERATION),s=ue(e,"hideSummary",3,!1),o=ee(a),l=Me(!1);sr(()=>{e.onActiveViewChange?.(w(o))}),sr(()=>{n()&&(!w(l)&&!i()&&e.predictedTokens&&e.predictedTokens>0?(J(o,Bu.GENERATION),J(l,!0)):w(l)||J(o,Bu.READING))});let u=ee(()=>e.predictedTokens!==void 0&&e.predictedTokens>0&&e.predictedMs!==void 0&&e.predictedMs>0),d=ee(()=>w(u)?e.predictedTokens/e.predictedMs*xP:0),h=ee(()=>e.predictedMs!==void 0?_4(e.predictedMs):Pme),f=ee(()=>e.promptTokens!==void 0&&e.promptMs!==void 0&&e.promptMs>0?e.promptTokens/e.promptMs*xP:void 0),p=ee(()=>e.promptMs!==void 0?_4(e.promptMs):void 0),g=ee(()=>e.promptTokens!==void 0&&e.promptMs!==void 0&&w(f)!==void 0&&w(p)!==void 0),m=ee(()=>n()&&!w(u)),_=ee(()=>e.agenticTimings!==void 0&&e.agenticTimings.toolCallsCount>0),v=ee(()=>w(_)&&e.agenticTimings.toolsMs>0?e.agenticTimings.toolCallsCount/e.agenticTimings.toolsMs*xP:0),y=ee(()=>w(_)?_4(e.agenticTimings.toolsMs):Pme),b=ee(()=>w(_)?e.agenticTimings.toolsMs+e.agenticTimings.llm.predicted_ms+e.agenticTimings.llm.prompt_ms:0),E=ee(()=>_4(w(b)));var S=m9t(),T=de(S),C=de(T);{var x=N=>{r(N,()=>({view:Bu.READING,icon:Gmt,label:"Reading",tooltipText:"Reading (prompt processing)"}))};Re(C,N=>{(w(g)||n())&&N(x)})}var A=he(C,2);r(A,()=>({view:Bu.GENERATION,icon:oDe,label:"Generation",tooltipText:w(m)?"Generation (waiting for tokens...)":"Generation (token output)",disabled:w(m)}));var R=he(A,2);{var I=N=>{var $=d9t(),U=ne($);r(U,()=>({view:Bu.TOOLS,icon:ok,label:"Tools",tooltipText:"Tool calls"}));var B=he(U,2);{var V=z=>{r(z,()=>({view:Bu.SUMMARY,icon:yme,label:"Summary",tooltipText:"Agentic summary"}))};Re(B,z=>{s()||z(V)})}H(N,$)};Re(R,N=>{w(_)&&N(I)})}oe(T);var L=he(T,2),F=de(L);{var O=N=>{var $=h9t(),U=ne($);{let z=ee(()=>e.predictedTokens?.toLocaleString());fh(U,{class:"bg-transparent",get icon(){return Kz},get value(){return`${w(z)??""} tokens`},tooltipLabel:"Generated tokens"})}var B=he(U,2);fh(B,{class:"bg-transparent",get icon(){return c4},get value(){return w(h)},tooltipLabel:"Generation time"});var V=he(B,2);{let z=ee(()=>w(d).toFixed(2));fh(V,{class:"bg-transparent",get icon(){return Wz},get value(){return`${w(z)??""} t/s`},tooltipLabel:"Generation speed"})}H(N,$)},D=N=>{var $=f9t(),U=ne($);fh(U,{class:"bg-transparent",get icon(){return ok},get value(){return`${e.agenticTimings.toolCallsCount??""} calls`},tooltipLabel:"Tool calls executed"});var B=he(U,2);fh(B,{class:"bg-transparent",get icon(){return c4},get value(){return w(y)},tooltipLabel:"Tool execution time"});var V=he(B,2);{let z=ee(()=>w(v).toFixed(2));fh(V,{class:"bg-transparent",get icon(){return Wz},get value(){return`${w(z)??""} calls/s`},tooltipLabel:"Tool execution rate"})}H(N,$)},M=N=>{var $=p9t(),U=ne($);fh(U,{class:"bg-transparent",get icon(){return yme},get value(){return`${e.agenticTimings.turns??""} turns`},tooltipLabel:"Agentic turns (LLM calls)"});var B=he(U,2);{let z=ee(()=>e.agenticTimings.llm.predicted_n.toLocaleString());fh(B,{class:"bg-transparent",get icon(){return Kz},get value(){return`${w(z)??""} tokens`},tooltipLabel:"Total tokens generated"})}var V=he(B,2);fh(V,{class:"bg-transparent",get icon(){return c4},get value(){return w(E)},tooltipLabel:"Total time (LLM + tools)"}),H(N,$)},P=N=>{var $=g9t(),U=ne($);fh(U,{class:"bg-transparent",get icon(){return Kz},get value(){return`${e.promptTokens??""} tokens`},tooltipLabel:"Prompt tokens"});var B=he(U,2);{let z=ee(()=>w(p)??"0s");fh(B,{class:"bg-transparent",get icon(){return c4},get value(){return w(z)},tooltipLabel:"Prompt processing time"})}var V=he(B,2);{let z=ee(()=>w(f).toFixed(2));fh(V,{class:"bg-transparent",get icon(){return Wz},get value(){return`${w(z)??""} tokens/s`},tooltipLabel:"Prompt processing speed"})}H(N,$)};Re(F,N=>{w(o)===Bu.GENERATION&&w(u)?N(O):w(o)===Bu.TOOLS&&w(_)?N(D,1):w(o)===Bu.SUMMARY&&w(_)?N(M,2):w(g)&&N(P,3)})}oe(L),oe(S),H(t,S),Ke()}var _9t=ae("<p> </p>"),v9t=ae("<!> <!>",1);function fh(t,e){We(e,!0);let r=ue(e,"class",3,"");function n(){cR(String(e.value))}var i=Ee(),a=ne(i);{var s=l=>{var u=Ee(),d=ne(u);Le(d,()=>mo,(h,f)=>{f(h,{children:(p,g)=>{var m=v9t(),_=ne(m);{const y=(b,E)=>{yZ(b,Bt(()=>E?.().props,{get class(){return r()},onclick:n,icon:C=>{var x=Ee(),A=ne(x);Le(A,()=>e.icon,(R,I)=>{I(R,{class:"h-3 w-3"})}),H(C,x)},children:(C,x)=>{Gt();var A=fr();at(()=>yt(A,e.value)),H(C,A)},$$slots:{icon:!0,default:!0}}))};Le(_,()=>po,(b,E)=>{E(b,{child:y,$$slots:{child:!0}})})}var v=he(_,2);Le(v,()=>go,(y,b)=>{b(y,{children:(E,S)=>{var T=_9t(),C=de(T,!0);oe(T),at(()=>yt(C,e.tooltipLabel)),H(E,T)},$$slots:{default:!0}})}),H(p,m)},$$slots:{default:!0}})}),H(l,u)},o=l=>{yZ(l,{get class(){return r()},onclick:n,icon:d=>{var h=Ee(),f=ne(h);Le(f,()=>e.icon,(p,g)=>{g(p,{class:"h-3 w-3"})}),H(d,h)},children:(d,h)=>{Gt();var f=fr();at(()=>yt(f,e.value)),H(d,f)},$$slots:{icon:!0,default:!0}})};Re(a,l=>{e.tooltipLabel?l(s):l(o,-1)})}H(t,i),Ke()}var y9t=ae('<div class="max-w-[80%]"><!></div>'),b9t=ae("<!> <!>",1),E9t=ae('<div aria-label="MCP Prompt message with actions" role="group"><!></div>');function S9t(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"siblingInfo",3,null);const i=x5();var a=E9t(),s=de(a);{var o=u=>{eU(u,{})},l=u=>{var d=b9t(),h=ne(d);WLe(h,{get prompt(){return e.mcpPrompt},get variant(){return sk.MESSAGE},class:"w-full max-w-[80%]"});var f=he(h,2);{var p=g=>{var m=y9t(),_=de(m);JB(_,{actionsPosition:"right",get deletionInfo(){return e.deletionInfo},justify:"end",get onConfirmDelete(){return e.onConfirmDelete},get onCopy(){return e.onCopy},get onDelete(){return e.onDelete},get onEdit(){return e.onEdit},get onNavigateToSibling(){return e.onNavigateToSibling},get onShowDeleteDialogChange(){return e.onShowDeleteDialogChange},get siblingInfo(){return n()},get showDeleteDialog(){return e.showDeleteDialog},get role(){return br.USER}}),oe(m),H(g,m)};Re(f,g=>{e.message.timestamp&&g(p)})}H(u,d)};Re(s,u=>{i.isEditing?u(o):u(l,-1)})}oe(a),at(()=>lr(a,1,`group flex flex-col items-end gap-3 md:gap-2 ${r()??""}`)),H(t,a),Ke()}var T9t=ae("<div><!></div>");function K_(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=T9t();Er(i,s=>({"data-slot":"card",class:s,...n}),[()=>an("flex flex-col gap-6 rounded-xl bg-card py-6 text-card-foreground shadow-sm",gDe,e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var C9t=ae('<img alt="" class="h-3.5 w-3.5 shrink-0 rounded-sm"/>'),w9t=ae("<span> </span>"),x9t=ae("<!> <!>",1),A9t=ae("<span> </span>"),R9t=ae('<span class="max-w-xs break-all"> </span>'),O9t=ae("<!> <!>",1),I9t=ae('<div class="flex flex-wrap justify-end gap-1"></div>'),N9t=ae("<div><span> </span></div>"),k9t=ae('<div><div class="space-y-2"><div class="h-3 w-3/4 animate-pulse rounded bg-foreground/20"></div> <div class="h-3 w-full animate-pulse rounded bg-foreground/20"></div> <div class="h-3 w-5/6 animate-pulse rounded bg-foreground/20"></div></div></div>'),D9t=ae("<span> </span>"),M9t=ae("<span> </span>"),L9t=ae("<div><span></span></div>"),P9t=ae('<div><div class="flex items-center justify-between gap-2"><div class="inline-flex flex-wrap items-center gap-1.25 text-xs text-muted-foreground"><!> <!></div> <!></div> <!></div>');function WLe(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"variant",19,()=>sk.MESSAGE),i=ue(e,"isLoading",3,!1),a=Me(null),s=ee(()=>Object.entries(e.prompt.arguments??{})),o=ee(()=>e.prompt.arguments&&Object.keys(e.prompt.arguments).length>0),l=ee(()=>e.prompt.content&&e.prompt.content.trim().length>0),u=ee(()=>{if(!e.prompt.content||!w(o))return[{text:e.prompt.content||"",argKey:null}];const L=[];let F=e.prompt.content;const O=new As;for(const[M,P]of w(s))P&&P.trim()&&O.set(P,M);const D=[...O.keys()].sort((M,P)=>P.length-M.length);for(;F.length>0;){let M=null;for(const P of D){const N=F.indexOf(P);N!==-1&&(M===null||N<M.index)&&(M={index:N,value:P,key:O.get(P)})}if(M)M.index>0&&L.push({text:F.slice(0,M.index),argKey:null}),L.push({text:M.value,argKey:M.key}),F=F.slice(M.index+M.value.length);else{L.push({text:F,argKey:null});break}}return L}),d=ee(()=>w(o)&&!i()&&!e.loadError),h=ee(()=>n()===sk.ATTACHMENT),f=ee(()=>w(h)?"text-xs":"text-md"),p=ee(()=>w(h)?"px-3 py-2":"px-3.75 py-2.5"),g=ee(()=>w(h)?"max-height: 6rem;":"max-height: var(--max-message-height);");const m=ee(()=>Br.getServerFavicon(e.prompt.serverName)),_=ee(()=>Br.getServerDisplayName(e.prompt.serverName));var v=P9t(),y=de(v),b=de(y),E=de(b);Le(E,()=>mo,(L,F)=>{F(L,{children:(O,D)=>{var M=x9t(),P=ne(M);Le(P,()=>po,($,U)=>{U($,{children:(B,V)=>{var z=Ee(),G=ne(z);{var Y=W=>{var Q=C9t();at(()=>Pr(Q,"src",w(m))),Ji("error",Q,ie=>{ie.currentTarget.style.display="none"}),Zm(Q),H(W,Q)};Re(G,W=>{w(m)&&W(Y)})}H(B,z)},$$slots:{default:!0}})});var N=he(P,2);Le(N,()=>go,($,U)=>{U($,{children:(B,V)=>{var z=w9t(),G=de(z,!0);oe(z),at(()=>yt(G,w(_))),H(B,z)},$$slots:{default:!0}})}),H(O,M)},$$slots:{default:!0}})});var S=he(E,2);aA(S,{get text(){return e.prompt.name}}),oe(b);var T=he(b,2);{var C=L=>{var F=I9t();fn(F,21,()=>w(s),([O,D])=>O,(O,D)=>{var M=ee(()=>mie(w(D),2));let P=()=>w(M)[0],N=()=>w(M)[1];var $=Ee(),U=ne($);Le(U,()=>mo,(B,V)=>{V(B,{children:(z,G)=>{var Y=O9t(),W=ne(Y);Le(W,()=>po,(ie,Z)=>{Z(ie,{children:(re,K)=>{var j=A9t(),se=de(j,!0);oe(j),at(()=>{lr(j,1,`rounded-sm bg-purple-200/60 px-1.5 py-0.5 text-[10px] leading-none text-purple-700 transition-opacity dark:bg-purple-800/40 dark:text-purple-300 ${w(a)&&w(a)!==P()?"opacity-30":""}`),yt(se,P())}),Ji("mouseenter",j,()=>J(a,P(),!0)),Ji("mouseleave",j,()=>J(a,null)),H(re,j)},$$slots:{default:!0}})});var Q=he(W,2);Le(Q,()=>go,(ie,Z)=>{Z(ie,{children:(re,K)=>{var j=R9t(),se=de(j,!0);oe(j),at(()=>yt(se,N())),H(re,j)},$$slots:{default:!0}})}),H(z,Y)},$$slots:{default:!0}})}),H(O,$)}),oe(F),H(L,F)};Re(T,L=>{w(d)&&L(C)})}oe(y);var x=he(y,2);{var A=L=>{K_(L,{class:"relative overflow-hidden rounded-[1.125rem] border border-destructive/50 bg-destructive/10 backdrop-blur-md",children:(F,O)=>{var D=N9t(),M=de(D),P=de(M,!0);oe(M),oe(D),at(()=>{lr(D,1,`overflow-y-auto ${w(p)??""}`),du(D,`${w(g)??""} overflow-wrap: anywhere; word-break: break-word;`),lr(M,1,`${w(f)??""} text-destructive`),yt(P,e.loadError)}),H(F,D)},$$slots:{default:!0}})},R=L=>{K_(L,{class:"relative overflow-hidden rounded-[1.125rem] border border-purple-200 bg-purple-500/10 px-1 py-2 backdrop-blur-md dark:border-purple-800 dark:bg-purple-500/20",children:(F,O)=>{var D=k9t();at(()=>{lr(D,1,`overflow-y-auto ${w(p)??""}`),du(D,`${w(g)??""} overflow-wrap: anywhere; word-break: break-word;`)}),H(F,D)},$$slots:{default:!0}})},I=L=>{K_(L,{class:"relative overflow-hidden rounded-[1.125rem] border border-purple-200 bg-purple-500/10 py-0 text-foreground backdrop-blur-md dark:border-purple-800 dark:bg-purple-500/20",children:(F,O)=>{var D=L9t(),M=de(D);fn(M,21,()=>w(u),Xy,(P,N)=>{var $=Ee(),U=ne($);{var B=z=>{var G=D9t(),Y=de(G,!0);oe(G),at(()=>{lr(G,1,`rounded-sm bg-purple-300/50 px-0.5 text-purple-900 transition-opacity dark:bg-purple-700/50 dark:text-purple-100 ${w(a)&&w(a)!==w(N).argKey?"opacity-30":""}`),yt(Y,w(N).text)}),Ji("mouseenter",G,()=>J(a,w(N).argKey,!0)),Ji("mouseleave",G,()=>J(a,null)),H(z,G)},V=z=>{var G=M9t(),Y=de(G,!0);oe(G),at(()=>{lr(G,1,`transition-opacity ${w(a)?"opacity-30":""}`),yt(Y,w(N).text)}),H(z,G)};Re(U,z=>{w(N).argKey?z(B):z(V,-1)})}H(P,$)}),oe(M),oe(D),at(()=>{lr(D,1,`overflow-y-auto ${w(p)??""}`),du(D,`${w(g)??""} overflow-wrap: anywhere; word-break: break-word;`),lr(M,1,`${w(f)??""} whitespace-pre-wrap`)}),H(F,D)},$$slots:{default:!0}})};Re(x,L=>{e.loadError?L(A):i()?L(R,1):w(l)&&L(I,2)})}oe(v),at(()=>lr(v,1,`flex flex-col gap-2 ${r()??""}`)),H(t,v),Ke()}function KLe(){let t=Me(!1),e=Me(null),r=Me(null);const n=ee(()=>w(t)?RLe():w(e));sr(()=>{w(n)&&w(t)&&J(e,w(n),!0)}),sr(()=>{if(w(n)?.promptProgress){const{processed:g,total:m,time_ms:_,cache:v}=w(n).promptProgress,y=g-v,b=m-v;if(y>0&&_>0){const E=y/(_/1e3);J(r,{tokensProcessed:y,totalTokens:b,timeMs:_,tokensPerSecond:E},!0)}}});function i(g,m,_){const v=_/1e3;return g===0||v<.5?void 0:v*(m/g-1)}function a(){w(t)||J(t,!0)}function s(){if(!w(t))return;J(t,!1),Vn().keepStatsVisible||(J(e,null),J(r,null))}function o(){if(!w(n))return"Processing...";switch(w(n).status){case"initializing":return"Initializing...";case"preparing":return w(n).progressPercent!==void 0?`Processing (${w(n).progressPercent}%)`:"Preparing response...";case"generating":return"";default:return"Processing..."}}function l(){const g=w(n)||w(e);if(!g)return[];const m=[];if(g.promptProgress){const{processed:_,total:v,time_ms:y,cache:b}=g.promptProgress,E=_-b,S=v-b;if(E<S&&E>0){const T=Math.round(E/S*100),C=i(E,S,y);if(C!==void 0){const x=Math.ceil(C);m.push(`Processing ${T}% (ETA: ${x}s)`)}else m.push(`Processing ${T}%`)}}if(typeof g.contextTotal=="number"&&g.contextUsed>=0&&g.contextTotal>0){const _=Math.round(g.contextUsed/g.contextTotal*100);m.push(`Context: ${g.contextUsed}/${g.contextTotal} (${_}%)`)}if(g.outputTokensUsed>0)if(g.outputTokensMax<=0)m.push(`Output: ${g.outputTokensUsed}/∞`);else{const _=Math.round(g.outputTokensUsed/g.outputTokensMax*100);m.push(`Output: ${g.outputTokensUsed}/${g.outputTokensMax} (${_}%)`)}return g.tokensPerSecond&&g.tokensPerSecond>0&&m.push(`${g.tokensPerSecond.toFixed(1)} ${Hme.TOKENS_PER_SECOND}`),g.speculative&&m.push("Speculative decoding enabled"),m}function u(){const g=w(n)||w(e);if(!g)return[];const m=[];if(typeof g.contextTotal=="number"&&g.contextUsed>=0&&g.contextTotal>0){const _=Math.round(g.contextUsed/g.contextTotal*100);m.push(`Context: ${g.contextUsed}/${g.contextTotal} (${_}%)`)}if(g.outputTokensUsed>0)if(g.outputTokensMax<=0)m.push(`Output: ${g.outputTokensUsed}/∞`);else{const _=Math.round(g.outputTokensUsed/g.outputTokensMax*100);m.push(`Output: ${g.outputTokensUsed}/${g.outputTokensMax} (${_}%)`)}return g.tokensPerSecond&&g.tokensPerSecond>0&&m.push(`${g.tokensPerSecond.toFixed(1)} ${Hme.TOKENS_PER_SECOND}`),g.speculative&&m.push("Speculative decoding enabled"),m}function d(){return w(n)!==null&&w(n).status!=="idle"}function h(){if(!w(n)?.promptProgress)return null;const{processed:g,total:m,cache:_}=w(n).promptProgress,v=g-_,y=m-_,b=Math.round(v/y*100),E=i(v,y,w(n).promptProgress.time_ms);if(E!==void 0){const S=Math.ceil(E);return`Processing ${b}% (ETA: ${S}s)`}return`Processing ${b}%`}function f(){if(w(n)?.promptProgress){const{processed:g,total:m,time_ms:_,cache:v}=w(n).promptProgress,y=g-v,b=m-v;if(y>0&&_>0){const E=y/(_/1e3);return{tokensProcessed:y,totalTokens:b,timeMs:_,tokensPerSecond:E}}}return w(r)}function p(){if(!w(n))return null;const{tokensDecoded:g,tokensPerSecond:m}=w(n);if(g<=0)return null;const _=m&&m>0?g/m*1e3:0;return{tokensGenerated:g,timeMs:_,tokensPerSecond:m||0}}return{get processingState(){return w(n)},getProcessingDetails:l,getTechnicalDetails:u,getProcessingMessage:o,getPromptProgressText:h,getLiveProcessingStats:f,getLiveGenerationStats:p,shouldShowDetails:d,startMonitoring:a,stopMonitoring:s}}var F9t=ae('<div class="mt-6 w-full max-w-[48rem]"><div class="processing-container svelte-3902tz"><span class="processing-text svelte-3902tz"> </span></div></div>'),B9t=ae('<pre class="raw-output svelte-3902tz"> </pre>'),U9t=ae('<div class="text-sm whitespace-pre-wrap"> </div>'),$9t=ae('<div class="mt-4 w-full max-w-[48rem]"><div class="processing-container svelte-3902tz"><span class="processing-text svelte-3902tz"> </span></div></div>'),G9t=ae('<div class="inline-flex flex-wrap items-start gap-2 text-xs text-muted-foreground"><!> <!></div>'),z9t=ae('<div role="group" aria-label="Assistant message with actions"><!> <!> <!> <div class="info my-6 grid gap-4 tabular-nums"><!></div> <!></div>');function q9t(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"isLastAssistantMessage",3,!1),i=ue(e,"toolMessages",19,()=>[]),a=ue(e,"siblingInfo",3,null);const s=x5(),o=ee(()=>KDe(e.message,i())),l=KLe();let u=ee(Vn),d=ee(xs),h=Me(!1),f=ee(()=>{const G=aoe(e.message,i(),[],!1),Y=[];for(const W of G)switch(W.type){case ca.REASONING:case ca.REASONING_PENDING:Y.push(`${k9.START}
${W.content}
${k9.END}`);break;case ca.TEXT:Y.push(W.content);break;case ca.TOOL_CALL:case ca.TOOL_CALL_PENDING:case ca.TOOL_CALL_STREAMING:{const Q={name:W.toolName};if(W.toolArgs)try{Q.arguments=JSON.parse(W.toolArgs)}catch{Q.arguments=W.toolArgs}Y.push(JSON.stringify(Q,null,2)),W.toolResult&&Y.push(`[Tool Result]
${W.toolResult}`);break}}return Y.join(`


`)}),p=Me(Kr(Bu.GENERATION)),g=Me(void 0);function m(G){let Y=G.parentElement;for(;Y;){const W=getComputedStyle(Y);if(/(auto|scroll)/.test(W.overflowY))return Y;Y=Y.parentElement}return null}async function _(G){const Y=w(g);if(!Y){J(p,G,!0);return}const W=m(Y);if(!W){J(p,G,!0);return}const Q=Y.getBoundingClientRect().top;J(p,G,!0),await Uh();const ie=Y.getBoundingClientRect().top-Q;ie!==0&&(W.scrollTop+=ie),requestAnimationFrame(()=>{const Z=Y.getBoundingClientRect().top-Q;Math.abs(Z)>1&&(W.scrollTop+=Z)})}let v=ee(()=>w(o)&&(w(u).alwaysShowAgenticTurns||w(p)===Bu.SUMMARY)),y=ee(()=>e.message.model??null),b=ee(ib),E=ee(bk),S=ee(()=>!e.message?.content?.trim()),T=ee(()=>w(b)||w(E)),C=ee(()=>e.message?.role===br.ASSISTANT&&w(T)&&w(S)&&!w(o)&&n()),x=ee(()=>e.message?.role===br.ASSISTANT&&w(T)&&(!w(S)||w(o))&&n());function A(){cR(w(y)??"")}sr(()=>{(w(C)||w(x))&&l.startMonitoring()});var R=z9t(),I=de(R);{var L=G=>{var Y=F9t(),W=de(Y),Q=de(W),ie=de(Q,!0);oe(Q),oe(W),oe(Y),at(Z=>yt(ie,Z),[()=>l.getPromptProgressText()??l.getProcessingMessage()??"Processing..."]),sl(1,Y,()=>Jm),H(G,Y)};Re(I,G=>{w(C)&&G(L)})}var F=he(I,2);{var O=G=>{eU(G,{})},D=G=>{var Y=Ee(),W=ne(Y);{var Q=Z=>{var re=B9t(),K=de(re,!0);oe(re),at(()=>yt(K,w(f)||"")),H(Z,re)},ie=Z=>{{let re=ee(bk);G6t(Z,{get message(){return e.message},get toolMessages(){return i()},get isStreaming(){return w(re)},get isLastAssistantMessage(){return n()},get highlightTurns(){return w(v)}})}};Re(W,Z=>{w(h)?Z(Q):Z(ie,-1)})}H(G,Y)},M=G=>{var Y=U9t(),W=de(Y,!0);oe(Y),at(()=>yt(W,e.messageContent)),H(G,Y)};Re(F,G=>{s.isEditing?G(O):e.message.role===br.ASSISTANT?G(D,1):G(M,-1)})}var P=he(F,2);{var N=G=>{var Y=$9t(),W=de(Y),Q=de(W),ie=de(Q,!0);oe(Q),oe(W),oe(Y),at(Z=>yt(ie,Z),[()=>l.getPromptProgressText()??l.getProcessingMessage()??"Processing..."]),sl(1,Y,()=>Jm),H(G,Y)};Re(P,G=>{w(x)&&G(N)})}var $=he(P,2),U=de($);{var B=G=>{var Y=G9t(),W=de(Y);{var Q=se=>{{let le=ee(ib);i7e(se,{get currentModel(){return w(y)},get disabled(){return w(le)},onModelChange:async(_e,ye)=>(Fr.getModelStatus(_e)!==Sl.LOADED&&await Fr.loadModel(_e),e.onRegenerate(ye),!0)})}},ie=se=>{{let le=ee(()=>w(y)||void 0);Enr(se,{get model(){return w(le)},onclick:A})}};Re(W,se=>{w(d)?se(Q):se(ie,-1)})}var Z=he(W,2);{var re=se=>{const le=ee(()=>e.message.timings.agentic);{let _e=ee(()=>w(le)?w(le).llm.prompt_n:e.message.timings.prompt_n),ye=ee(()=>w(le)?w(le).llm.prompt_ms:e.message.timings.prompt_ms),Ue=ee(()=>w(le)?w(le).llm.predicted_n:e.message.timings.predicted_n),Se=ee(()=>w(le)?w(le).llm.predicted_ms:e.message.timings.predicted_ms);sJ(se,{get promptTokens(){return w(_e)},get promptMs(){return w(ye)},get predictedTokens(){return w(Ue)},get predictedMs(){return w(Se)},get agenticTimings(){return w(le)},onActiveViewChange:_})}},K=se=>{const le=ee(()=>l.getLiveProcessingStats()),_e=ee(()=>l.getLiveGenerationStats()),ye=ee(()=>l.processingState?.promptProgress),Ue=ee(()=>w(ye)&&w(ye).processed<w(ye).total);var Se=Ee(),be=ne(Se);{var ke=Ae=>{{let tt=ee(()=>!!w(Ue)),Oe=ee(()=>w(le)?.tokensProcessed),je=ee(()=>w(le)?.timeMs),ct=ee(()=>w(_e)?.tokensGenerated),Fe=ee(()=>w(_e)?.timeMs);sJ(Ae,{isLive:!0,get isProcessingPrompt(){return w(tt)},get promptTokens(){return w(Oe)},get promptMs(){return w(je)},get predictedTokens(){return w(ct)},get predictedMs(){return w(Fe)}})}};Re(be,Ae=>{(w(le)||w(_e))&&Ae(ke)})}H(se,Se)},j=ee(()=>ib()&&w(u).showMessageStats);Re(Z,se=>{w(u).showMessageStats&&e.message.timings&&e.message.timings.predicted_n&&e.message.timings.predicted_ms?se(re):w(j)&&se(K,1)})}oe(Y),Qr(Y,se=>J(g,se),()=>w(g)),H(G,Y)};Re(U,G=>{w(y)&&G(B)})}oe($);var V=he($,2);{var z=G=>{{let Y=ee(()=>w(u).enableContinueGeneration?e.onContinue:void 0);JB(G,{get role(){return br.ASSISTANT},justify:"start",actionsPosition:"left",get siblingInfo(){return a()},get showDeleteDialog(){return e.showDeleteDialog},get deletionInfo(){return e.deletionInfo},get onCopy(){return e.onCopy},get onEdit(){return e.onEdit},get onRegenerate(){return e.onRegenerate},get onContinue(){return w(Y)},get onForkConversation(){return e.onForkConversation},get onDelete(){return e.onDelete},get onConfirmDelete(){return e.onConfirmDelete},get onNavigateToSibling(){return e.onNavigateToSibling},get onShowDeleteDialogChange(){return e.onShowDeleteDialogChange},get showRawOutputSwitch(){return w(u).showRawOutputSwitch},get rawOutputEnabled(){return w(h)},onRawOutputToggle:W=>J(h,W,!0)})}};Re(V,G=>{e.message.timestamp&&!s.isEditing&&G(z)})}oe(R),at(()=>lr(R,1,`text-md group w-full leading-7.5 ${r()??""}`,"svelte-3902tz")),H(t,R),Ke()}var V9t=ae('<div class="flex items-center gap-2"><!> <label for="save-only-switch" class="cursor-pointer text-xs text-muted-foreground">Update without re-sending</label></div>'),H9t=ae('<div class="flex items-center gap-2"><!> <label for="branch-after-edit" class="cursor-pointer text-xs text-muted-foreground">Branch conversation after edit</label></div>'),Y9t=ae("<div></div>"),W9t=ae("<!> Cancel",1),K9t=ae('<div class="relative w-full max-w-[80%]"><!></div> <div class="mt-2 flex w-full max-w-[80%] items-center justify-between"><!> <!></div> <!>',1);function eU(t,e){We(e,!0);const r=x5();let n=Me(!1),i=Me(!1),a=Me(!1),s=ee(()=>r.messageRole===br.USER),o=ee(()=>r.messageRole===br.ASSISTANT),l=ee(()=>!!(r.editedContent!==r.originalContent||r.editedUploadedFiles.length>0||r.editedExtras.length!==r.originalExtras.length||r.editedExtras.some((L,F)=>L!==r.originalExtras[F]))),u=ee(()=>r.editedExtras&&r.editedExtras.length>0||r.editedUploadedFiles&&r.editedUploadedFiles.length>0),d=ee(()=>r.editedContent.trim().length>0||w(u));function h(I){I.key===wi.ESCAPE&&(I.preventDefault(),f())}function f(){w(l)?J(i,!0):r.cancel()}function p(){w(d)&&(w(s)&&w(n)&&r.showSaveOnlyOption?r.saveOnly():(w(o)&&r.setShouldBranchAfterEdit&&r.setShouldBranchAfterEdit(w(a)),r.save()),J(n,!1),J(a,!1))}function g(I){const L=[...r.editedExtras];L.splice(I,1),r.setExtras(L)}function m(I){const L=r.editedUploadedFiles.filter(F=>F.id!==I);r.setUploadedFiles(L)}async function _(I){const L=await wLe(I);r.setUploadedFiles([...r.editedUploadedFiles,...L])}sr(()=>(li.setEditModeActive(_),()=>{li.clearEditMode()}));var v=K9t();Ji("keydown",_b,h);var y=ne(v),b=de(y);{let I=ee(()=>r.messageRole===br.USER),L=ee(()=>r.messageRole===br.USER);OLe(b,{get value(){return r.editedContent},get attachments(){return r.editedExtras},placeholder:"Edit your message...",showMcpPromptButton:!0,get showAddButton(){return w(I)},get showModelSelector(){return w(L)},get onValueChange(){return r.setContent},onAttachmentRemove:g,onUploadedFileRemove:m,onFilesAdd:_,onSubmit:p,get uploadedFiles(){return r.editedUploadedFiles},set uploadedFiles(F){r.editedUploadedFiles=F}})}oe(y);var E=he(y,2),S=de(E);{var T=I=>{var L=V9t(),F=de(L);xb(F,{id:"save-only-switch",class:"scale-75",get checked(){return w(n)},set checked(O){J(n,O,!0)}}),Gt(2),oe(L),H(I,L)},C=I=>{var L=H9t(),F=de(L);xb(F,{id:"branch-after-edit",class:"scale-75",get checked(){return w(a)},set checked(O){J(a,O,!0)}}),Gt(2),oe(L),H(I,L)},x=I=>{var L=Y9t();H(I,L)};Re(S,I=>{w(s)&&r.showSaveOnlyOption?I(T):w(o)?I(C,1):I(x,-1)})}var A=he(S,2);Mn(A,{class:"h-7 px-3 text-xs",onclick:f,size:"sm",variant:"ghost",children:(I,L)=>{var F=W9t(),O=ne(F);Xd(O,{class:"mr-1 h-3 w-3"}),Gt(),H(I,F)},$$slots:{default:!0}}),oe(E);var R=he(E,2);Rb(R,{title:"Discard changes?",description:"You have unsaved changes. Are you sure you want to discard them?",confirmText:"Discard",cancelText:"Keep editing",variant:"destructive",get icon(){return B1},get onConfirm(){return r.cancel},onCancel:()=>J(i,!1),get open(){return w(i)},set open(I){J(i,I,!0)}}),H(t,v),Ke()}var j9t=ae('<div class="max-w-[80%]"><!></div>'),X9t=ae("<!> <!>",1),Q9t=ae('<div aria-label="User message with actions" role="group"><!></div>');function Z9t(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"siblingInfo",3,null);const i=x5();var a=Q9t(),s=de(a);{var o=u=>{eU(u,{})},l=u=>{var d=X9t(),h=ne(d);jLe(h,{get content(){return e.message.content},get attachments(){return e.message.extra},renderMarkdown:!0});var f=he(h,2);{var p=g=>{var m=j9t(),_=de(m);JB(_,{actionsPosition:"right",get deletionInfo(){return e.deletionInfo},justify:"end",get onConfirmDelete(){return e.onConfirmDelete},get onCopy(){return e.onCopy},get onDelete(){return e.onDelete},get onEdit(){return e.onEdit},get onForkConversation(){return e.onForkConversation},get onNavigateToSibling(){return e.onNavigateToSibling},get onShowDeleteDialogChange(){return e.onShowDeleteDialogChange},get siblingInfo(){return n()},get showDeleteDialog(){return e.showDeleteDialog},get role(){return br.USER}}),oe(m),H(g,m)};Re(f,g=>{e.message.timestamp&&g(p)})}H(u,d)};Re(s,u=>{i.isEditing?u(o):u(l,-1)})}oe(a),at(()=>lr(a,1,`group flex flex-col items-end gap-3 md:gap-2 ${r()??""}`)),H(t,a),Ke()}var J9t=ae('<div class="mb-2 max-w-[80%]"><!></div>'),e7t=ae("<div><!></div>"),t7t=ae('<span class="text-md whitespace-pre-wrap"> </span>'),r7t=ae("<!> <!>",1);function jLe(t,e){We(e,!0);let r=ue(e,"attachments",19,()=>[]),n=ue(e,"renderMarkdown",3,!1),i=ue(e,"textColorClass",3,"text-foreground"),a=ue(e,"cardBgClass",3,"dark:bg-primary/15"),s=ue(e,"maxHeightStyle",3,"max-height: var(--max-message-height);"),o=Me(!1),l=Me(void 0);const u=Vn();sr(()=>{if(!w(l)||!e.content.trim())return;if(e.content.includes(`
`)){J(o,!0);return}const _=new ResizeObserver(v=>{for(const y of v){const b=y.target;J(o,b.offsetHeight>24*1.5)}});return _.observe(w(l)),()=>{_.disconnect()}});var d=r7t(),h=ne(d);{var f=_=>{var v=J9t(),y=de(v);jDe(y,{get attachments(){return r()},readonly:!0,imageHeight:"h-40"}),oe(v),H(_,v)};Re(h,_=>{r()&&r().length>0&&_(f)})}var p=he(h,2);{var g=_=>{{let v=ee(()=>w(o)?"":void 0);K_(_,{get class(){return`max-w-[80%] overflow-y-auto rounded-[1.125rem] border-none bg-primary/5 px-3.75 py-1.5 ${i()??""} backdrop-blur-md data-[multiline]:py-2.5 ${a()??""}`},get"data-multiline"(){return w(v)},get style(){return`${s()??""} overflow-wrap: anywhere; word-break: break-word;`},children:(y,b)=>{var E=Ee(),S=ne(E);{var T=x=>{var A=e7t(),R=de(A);Kle(R,{class:"markdown-user-content -my-4",get content(){return e.content}}),oe(A),Qr(A,I=>J(l,I),()=>w(l)),H(x,A)},C=x=>{var A=t7t(),R=de(A,!0);oe(A),Qr(A,I=>J(l,I),()=>w(l)),at(()=>yt(R,e.content)),H(x,A)};Re(S,x=>{n()&&u.renderUserContentAsMarkdown?x(T):x(C,-1)})}H(y,E)},$$slots:{default:!0}})}},m=ee(()=>e.content.trim());Re(p,_=>{w(m)&&_(g)})}H(t,d),Ke()}function n7t(t){let e=Me(!1),r=Me(""),n=Me(Kr([])),i=Me(Kr([]));function a(){J(r,t.getContent(),!0),J(n,[...t.getExtras()],!0),J(i,[],!0),J(e,!0)}async function s(){const l=w(r).trim();if(!l&&w(n).length===0&&w(i).length===0)return;let u=Y_(w(n));if(w(i).length>0){const d=Y_(w(i)),f=(await lle(d))?.extras||[];u=[...u,...f]}t.onSave(l,u.length>0?u:void 0),J(e,!1)}function o(){J(e,!1)}return zLe({get isEditing(){return w(e)},get editedContent(){return w(r)},get editedExtras(){return w(n)},get editedUploadedFiles(){return w(i)},get originalContent(){return t.getContent()},get originalExtras(){return t.getExtras()},get showSaveOnlyOption(){return t.showSaveOnlyOption??!1},get showBranchAfterEditOption(){return!1},get shouldBranchAfterEdit(){return!1},get messageRole(){return br.USER},setContent:l=>{J(r,l,!0)},setExtras:l=>{J(n,l,!0)},setUploadedFiles:l=>{J(i,l,!0)},save:s,saveOnly:s,cancel:o,startEdit:a}),{get isEditing(){return w(e)},handleEdit:a,handleSaveEdit:s,handleCancelEdit:o}}var i7t=ae('<!> <div class="max-w-[80%]"><div class="relative flex h-6 items-center justify-between"><div class="right-0 flex items-center gap-2 opacity-100 transition-opacity"><div class="pointer-events-auto inset-0 flex items-center gap-1 opacity-0 transition-all duration-150 group-hover:opacity-100"><!> <!> <!></div></div></div></div>',1),a7t=ae('<div aria-label="Pending user message" role="group"><!></div>');function bSe(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"extras",19,()=>[]);const i=HLe();let a=ee(()=>i.showProcessingInfo);const s=n7t({getContent:()=>e.content,getExtras:()=>n(),onSave:(h,f)=>e.onEdit(h,f)});var o=a7t(),l=de(o);{var u=h=>{eU(h,{})},d=h=>{var f=i7t(),p=ne(f);jLe(p,{get content(){return e.content},get attachments(){return n()},textColorClass:"text-muted-foreground",cardBgClass:"dark:bg-primary/8",maxHeightStyle:"overflow-wrap: anywhere; word-break: break-word;"});var g=he(p,2),m=de(g),_=de(m),v=de(_),y=de(v);as(y,{get icon(){return Kse},tooltip:"Edit",get onclick(){return s.handleEdit}});var b=he(y,2);as(b,{get icon(){return pg},tooltip:"Delete",get onclick(){return e.onDelete}});var E=he(b,2);as(E,{get icon(){return Q5e},tooltip:"Send immediately",get onclick(){return e.onSendImmediately}}),oe(v),oe(_),oe(m),oe(g),H(h,f)};Re(l,h=>{s.isEditing?h(u):h(d,-1)})}oe(o),tE(o,h=>A5?.(h)),at(()=>lr(o,1,`group flex flex-col items-end gap-3 transition-opacity hover:opacity-80 md:gap-2 ${r()??""} sticky ${w(a)?"bottom-44":"bottom-32"}`)),H(t,o),Ke()}var s7t=ae("<!> Cancel",1),o7t=ae("<!> Save",1),l7t=ae('<div class="w-full max-w-[80%]"><textarea placeholder="Edit system message..."></textarea> <div class="mt-2 flex justify-end gap-2"><!> <!></div></div>'),c7t=ae("<div><!></div>"),u7t=ae("<span> </span>"),d7t=ae('<div class="pointer-events-none absolute right-0 bottom-0 left-0 h-48 bg-gradient-to-t from-muted to-transparent"></div> <div class="pointer-events-none absolute right-0 bottom-4 left-0 flex justify-center opacity-0 transition-opacity group-hover/expand:opacity-100"><!></div>',1),h7t=ae('<div class="mb-2 flex justify-center"><!></div>'),f7t=ae("<div><!> <!></div> <!>",1),p7t=ae('<div class="relative max-w-[80%]"><button type="button"><!></button></div>'),g7t=ae('<div class="max-w-[80%]"><!></div>'),m7t=ae("<!> <!>",1),_7t=ae('<div aria-label="System message with actions" role="group"><!></div>');function v7t(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"siblingInfo",3,null),i=ue(e,"textareaElement",15);const a=x5();function s(b){b.key===wi.ENTER&&!b.shiftKey&&!qDe(b)?(b.preventDefault(),a.save()):b.key===wi.ESCAPE&&(b.preventDefault(),a.cancel())}let o=Me(!1),l=Me(void 0),u=Me(!1),d=Me(0);const h=200,f=Vn();let p=ee(()=>w(d)>h);sr(()=>{if(!w(l)||!e.message.content.trim())return;e.message.content.includes(`
`)&&J(o,!0);const b=new ResizeObserver(E=>{for(const S of E){const T=S.target;J(o,T.offsetHeight>24*1.5),J(d,T.scrollHeight,!0)}});return b.observe(w(l)),()=>{b.disconnect()}});function g(){J(u,!w(u))}var m=_7t(),_=de(m);{var v=b=>{var E=l7t(),S=de(E);UF(S),Qr(S,A=>i(A),()=>i());var T=he(S,2),C=de(T);Mn(C,{class:"h-8 px-3",get onclick(){return a.cancel},size:"sm",variant:"outline",children:(A,R)=>{var I=s7t(),L=ne(I);Xd(L,{class:"mr-1 h-3 w-3"}),Gt(),H(A,I)},$$slots:{default:!0}});var x=he(C,2);{let A=ee(()=>!a.editedContent.trim());Mn(x,{class:"h-8 px-3",get onclick(){return a.save},get disabled(){return w(A)},size:"sm",children:(R,I)=>{var L=o7t(),F=ne(L);a5(F,{class:"mr-1 h-3 w-3"}),Gt(),H(R,L)},$$slots:{default:!0}})}oe(T),oe(E),at(()=>{o3e(S,a.editedContent),lr(S,1,`min-h-[60px] w-full resize-none rounded-2xl px-3 py-2 text-sm ${mDe??""}`)}),tn("keydown",S,s),tn("input",S,A=>a.setContent(A.currentTarget.value)),H(b,E)},y=b=>{var E=m7t(),S=ne(E);{var T=R=>{var I=p7t(),L=de(I),F=de(L);{let O=ee(()=>w(o)?"":void 0);K_(F,{class:"overflow-y-auto rounded-[1.125rem] !border-2 !border-dashed !border-border/50 bg-muted px-3.75 py-1.5 data-[multiline]:py-2.5",get"data-multiline"(){return w(O)},style:"border: 2px dashed hsl(var(--border)); max-height: var(--max-message-height); overflow-wrap: anywhere; word-break: break-word;",children:(D,M)=>{var P=f7t(),N=ne(P),$=de(N);{var U=W=>{var Q=c7t(),ie=de(Q);Kle(ie,{class:"markdown-system-content -my-4",get content(){return e.message.content}}),oe(Q),Qr(Q,Z=>J(l,Z),()=>w(l)),at(()=>lr(Q,1,Fn(w(u)?"cursor-text":""))),H(W,Q)},B=W=>{var Q=u7t(),ie=de(Q,!0);oe(Q),Qr(Q,Z=>J(l,Z),()=>w(l)),at(()=>{lr(Q,1,`text-md whitespace-pre-wrap ${w(u)?"cursor-text":""}`),yt(ie,e.message.content)}),H(W,Q)};Re($,W=>{f.renderUserContentAsMarkdown?W(U):W(B,-1)})}var V=he($,2);{var z=W=>{var Q=d7t(),ie=he(ne(Q),2),Z=de(ie);Mn(Z,{class:"rounded-full px-4 py-1.5 text-xs shadow-md",size:"sm",variant:"outline",children:(re,K)=>{Gt();var j=fr("Show full system message");H(re,j)},$$slots:{default:!0}}),oe(ie),H(W,Q)};Re(V,W=>{!w(u)&&w(p)&&W(z)})}oe(N);var G=he(N,2);{var Y=W=>{var Q=h7t(),ie=de(Q);Mn(ie,{class:"rounded-full px-4 py-1.5 text-xs",onclick:Z=>{Z.stopPropagation(),g()},size:"sm",variant:"outline",children:(Z,re)=>{Gt();var K=fr("Collapse System Message");H(Z,K)},$$slots:{default:!0}}),oe(Q),H(W,Q)};Re(G,W=>{w(u)&&w(p)&&W(Y)})}at(()=>{lr(N,1,`relative transition-all duration-300 ${w(u)?"cursor-text select-text":"select-none"}`),du(N,!w(u)&&w(p)?`max-height: ${h}px;`:"max-height: none;")}),H(D,P)},$$slots:{default:!0}})}oe(L),oe(I),at(()=>lr(L,1,`group/expand w-full text-left ${!w(u)&&w(p)?"cursor-pointer":"cursor-auto"}`)),tn("click",L,function(...O){(w(p)&&!w(u)?g:void 0)?.apply(this,O)}),H(R,I)},C=ee(()=>e.message.content.trim());Re(S,R=>{w(C)&&R(T)})}var x=he(S,2);{var A=R=>{var I=g7t(),L=de(I);JB(L,{actionsPosition:"right",get deletionInfo(){return e.deletionInfo},justify:"end",get onConfirmDelete(){return e.onConfirmDelete},get onCopy(){return e.onCopy},get onDelete(){return e.onDelete},get onEdit(){return e.onEdit},get onNavigateToSibling(){return e.onNavigateToSibling},get onShowDeleteDialogChange(){return e.onShowDeleteDialogChange},get siblingInfo(){return n()},get showDeleteDialog(){return e.showDeleteDialog},get role(){return br.USER}}),oe(I),H(R,I)};Re(x,R=>{e.message.timestamp&&R(A)})}H(b,E)};Re(_,b=>{a.isEditing?b(v):b(y,-1)})}oe(m),at(()=>lr(m,1,`group flex flex-col items-end gap-3 md:gap-2 ${r()??""}`)),H(t,m),Ke()}Wi(["keydown","input","click"]);class y7t{#e=Me(!0);get _autoScrollEnabled(){return w(this.#e)}set _autoScrollEnabled(e){J(this.#e,e,!0)}#t=Me(!1);get _userScrolledUp(){return w(this.#t)}set _userScrolledUp(e){J(this.#t,e,!0)}#r=Me(0);get _lastScrollTop(){return w(this.#r)}set _lastScrollTop(e){J(this.#r,e,!0)}_scrollInterval;_container;_disabled;_mutationObserver=null;_rafPending=!1;_observerEnabled=!1;constructor(e={}){this._disabled=e.disabled??!1}get autoScrollEnabled(){return this._autoScrollEnabled}get userScrolledUp(){return this._userScrolledUp}setContainer(e){this._doStopObserving(),this._container=e,this._observerEnabled&&e&&!this._disabled&&this._doStartObserving()}setDisabled(e){this._disabled!==e&&(this._disabled=e,e?(this._autoScrollEnabled=!1,this.stopInterval(),this._doStopObserving()):this._observerEnabled&&this._container&&!this._mutationObserver&&this._doStartObserving())}handleScroll(){if(this._disabled||!this._container)return;const{scrollTop:e,scrollHeight:r,clientHeight:n}=this._container,i=r-n-e,a=e<this._lastScrollTop,s=i<b_t;a&&!s?(this._userScrolledUp=!0,this._autoScrollEnabled=!1):s&&this._userScrolledUp&&(this._userScrolledUp=!1,this._autoScrollEnabled=!0),this._lastScrollTop=e}scrollToBottom(e="smooth"){this._disabled||!this._container||this._container.scrollTo({top:this._container.scrollHeight,behavior:e})}enable(){this._disabled||(this._userScrolledUp=!1,this._autoScrollEnabled=!0)}resetScrollState(){this._userScrolledUp=!1,this._autoScrollEnabled=!0}startInterval(){this._disabled||this._scrollInterval||(this._scrollInterval=setInterval(()=>{this.scrollToBottom()},y_t))}stopInterval(){this._scrollInterval&&(clearInterval(this._scrollInterval),this._scrollInterval=void 0)}updateInterval(e){if(this._disabled){this.stopInterval();return}e&&this._autoScrollEnabled?this._scrollInterval||this.startInterval():this.stopInterval()}destroy(){this.stopInterval(),this._doStopObserving()}startObserving(){this._observerEnabled=!0,this._container&&!this._disabled&&!this._mutationObserver&&this._doStartObserving()}stopObserving(){this._observerEnabled=!1,this._doStopObserving()}_doStartObserving(){!this._container||this._mutationObserver||(this._mutationObserver=new MutationObserver(()=>{!this._autoScrollEnabled||this._rafPending||(this._rafPending=!0,requestAnimationFrame(()=>{this._rafPending=!1,this._autoScrollEnabled&&this._container&&(this._container.scrollTop=this._container.scrollHeight)}))}),this._mutationObserver.observe(this._container,{childList:!0,subtree:!0,characterData:!0}))}_doStopObserving(){this._mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=null),this._rafPending=!1}}function hle(t={}){return new y7t(t)}function fle(t){function e(r){const n=r.metaKey||r.ctrlKey;n&&r.key===wi.K_LOWER&&(r.preventDefault(),t.activateSearchMode?.(),t.onSearchActivated?.()),n&&r.shiftKey&&(r.key===wi.O_LOWER||r.key===wi.O_UPPER)&&(r.preventDefault(),Ws(ho.NEW_CHAT)),r.shiftKey&&n&&r.key===wi.E_UPPER&&(r.preventDefault(),t.editActiveConversation?.()),n&&r.shiftKey&&(r.key===wi.D_LOWER||r.key===wi.D_UPPER)&&(r.preventDefault(),t.deleteActiveConversation?.()),n&&r.shiftKey&&r.key===wi.ARROW_UP&&(r.preventDefault(),t.navigateToPrevConversation?.()),n&&r.shiftKey&&r.key===wi.ARROW_DOWN&&(r.preventDefault(),t.navigateToNextConversation?.())}return{handleKeydown:e}}var b7t=ae('<div><h1 class="mb-2 text-2xl font-semibold tracking-tight md:text-3xl">Hello there</h1> <p class="text-muted-foreground md:text-lg"> </p></div>');function E7t(t,e){We(e,!0);let r=ue(e,"isEmpty",3,!1);var n=b7t(),i=he(de(n),2),a=de(i);oe(i),oe(n),tE(n,(s,o)=>A5?.(s,o),()=>({duration:300})),at(()=>{lr(n,1,Fn(["pointer-events-none mb-4 hidden px-4 text-center",r()&&"pointer-events-auto block!"])),yt(a,`${Ya.props?.modalities?.audio?"Record audio, type a message ":"Type a message"} or upload
		files to get started`)}),H(t,n),Ke()}var S7t=ae('<div aria-label="Chat interface with file drop zone" class="flex h-full flex-col overflow-y-auto px-4 md:px-6" role="main"><div class="flex grow flex-col pt-14"><!> <div><!> <!> <!> <!> <div class="conversation-chat-form pointer-events-auto rounded-t-3xl"><!></div></div></div></div>'),T7t=ae("<!> <!> <!> <!> <!> <!>",1);function C7t(t,e){We(e,!0);let r=ue(e,"showCenteredEmpty",3,!1);const n=hle();let i=ee(()=>!!Vn().disableAutoScroll),a=Me(void 0),s=Me(0),o=Me(!1),l=Me(!1),u=Me(Kr([])),d=Me(Kr({generallyUnsupported:[],modalityUnsupported:[],modalityReasons:{},supportedTypes:[]})),h=Me(!1),f=Me(!1),p=Me(!1),g=Me(Kr([])),m=Me(""),_=ee(()=>r()&&!wc()&&W_().length===0&&!ib()),v=ee(TMt),y=ee(UT),b=ee(()=>!!uk()),E=ee(()=>ib()||bk()),S=ee(()=>w(E)||Vn().keepStatsVisible&&!!ba.params.id||RLe()!==null),T=ee(xs),C=ee(()=>li.getConversationModel(W_())),x=ee(()=>{const Se=Ef();if(!w(T))return Se.length>0?Se[0].model:null;const be=nb();if(be){const ke=Se.find(Ae=>Ae.id===be);if(ke)return ke.model}if(w(C)){const ke=Se.find(Ae=>Ae.model===w(C));if(ke)return ke.model}return null}),A=Me(0);y6t({get showProcessingInfo(){return w(S)}}),sr(()=>{w(x)&&(Fr.getModelProps(w(x))||Fr.fetchModelProps(w(x)).then(()=>{tN(A)}))});let R=ee(()=>w(x)?(w(A),Fr.modelSupportsAudio(w(x))):!1),I=ee(()=>w(x)?(w(A),Fr.modelSupportsVideo(w(x))):!1),L=ee(()=>w(x)?(w(A),Fr.modelSupportsVision(w(x))):!1);async function F(){const Se=wc();Se&&await Rt.deleteConversation(Se.id),J(h,!1)}function O(Se){J(p,Se,!0)}function D(Se){Se.preventDefault(),tN(s),Se.dataTransfer?.types.includes("Files")&&J(o,!0)}function M(Se){Se.preventDefault(),tN(s,-1),w(s)===0&&J(o,!1)}function P(Se){Se||li.dismissErrorDialog()}function N(Se){Se.preventDefault()}function $(Se){if(Se.preventDefault(),J(o,!1),J(s,0),Se.dataTransfer?.files){const be=Array.from(Se.dataTransfer.files);if(vSe()){const ke=CMt();if(ke){ke(be);return}}W(be)}}function U(Se){J(u,w(u).filter(be=>be.id!==Se),!0)}function B(Se){W(Se)}const{handleKeydown:V}=fle({deleteActiveConversation:()=>{wc()&&J(h,!0)}});async function z(Se){(Se.message||Se.files.length>0)&&li.savePendingDraft(Se.message,Se.files),await li.addSystemPrompt()}function G(){n.handleScroll()}async function Y(Se,be){const ke=be?Y_(be):void 0,Ae=ke?await lle(ke,w(x)??void 0):void 0;if(Ae?.emptyFiles&&Ae.emptyFiles.length>0){if(J(g,Ae.emptyFiles,!0),J(f,!0),be){const Oe=new Set(Ae.emptyFiles);J(u,w(u).filter(je=>!Oe.has(je.name)),!0)}return!1}const tt=Ae?.extras;return n.enable(),await li.sendMessage(Se,tt),n.scrollToBottom(),!0}async function W(Se){const be=[],ke=[];for(const Fe of Se)vTt(Fe.name,Fe.type)?be.push(Fe):ke.push(Fe);const Ae={hasVision:w(L),hasAudio:w(R),hasVideo:w(I)},{supportedFiles:tt,unsupportedFiles:Oe,modalityReasons:je}=CTt(be,Ae);if([...ke,...Oe].length>0){const Fe=["text files","PDFs"];w(L)&&Fe.push("images"),w(R)&&Fe.push("audio files"),w(I)&&Fe.push("video files"),J(d,{generallyUnsupported:ke,modalityUnsupported:Oe,modalityReasons:je,supportedTypes:Fe},!0),J(l,!0)}if(tt.length>0){const Fe=await wLe(tt,w(x)??void 0);J(u,[...w(u),...Fe],!0)}}H3(()=>{w(i)||n.enable()});function Q(){w(i)||n.userScrolledUp||requestAnimationFrame(()=>{n.scrollToBottom("instant")})}Ns(()=>{n.startObserving(),w(i)||n.enable();const Se=li.consumePendingDraft();Se&&(J(m,Se.message,!0),J(u,Se.files,!0))}),sr(()=>{n.setContainer(w(a))}),sr(()=>{n.setDisabled(w(i))});var ie=T7t();Ji("keydown",_b,V);var Z=ne(ie);{var re=Se=>{x7t(Se)};Re(Z,Se=>{w(o)&&Se(re)})}var K=he(Z,2);{var j=Se=>{Qir(Se,{})},se=Se=>{var be=S7t(),ke=de(be),Ae=de(ke);{var tt=we=>{{let ce=ee(W_);E6t(we,{get messages(){return w(ce)},onMessagesReady:Q,onUserAction:()=>{n.enable(),n.userScrolledUp||n.scrollToBottom()}})}};Re(Ae,we=>{w(_)||we(tt)})}var Oe=he(Ae,2),je=de(Oe);E7t(je,{get isEmpty(){return w(_)}});var ct=he(je,2);L7t(ct,{get container(){return w(a)},get hasProcessingInfoVisible(){return w(p)}});var Fe=he(ct,2);D7t(Fe,{onVisibilityChange:O});var Xe=he(Fe,2);U7t(Xe,{});var et=he(Xe,2),Ie=de(et);{let we=ee(()=>w(b)||vSe());I7t(Ie,{get disabled(){return w(we)},get initialMessage(){return w(m)},get isLoading(){return w(E)},onFileRemove:U,onFileUpload:B,onSend:Y,onStop:()=>li.stopGeneration(),onSystemPromptAdd:z,get uploadedFiles(){return w(u)},set uploadedFiles(ce){J(u,ce,!0)}})}oe(et),oe(Oe),oe(ke),oe(be),Qr(be,we=>J(a,we),()=>w(a)),at(()=>lr(Oe,1,Fn(["pointer-events-none sticky right-4 left-4 mt-auto transition-all duration-200",w(_)?"bottom-[calc(50dvh-7rem)]":"bottom-4 pt-24 md:pt-32"]))),Ji("dragenter",be,D),Ji("dragleave",be,M),Ji("dragover",be,N),Ji("drop",be,$),Ji("scroll",be,G),H(Se,be)};Re(K,Se=>{w(y)?Se(j):Se(se,-1)})}var le=he(K,2);ner(le,{get fileErrorData(){return w(d)},get open(){return w(l)},set open(Se){J(l,Se,!0)}});var _e=he(le,2);Rb(_e,{title:"Delete Conversation",description:"Are you sure you want to delete this conversation? This action cannot be undone and will permanently remove all messages in this conversation.",confirmText:"Delete",cancelText:"Cancel",variant:"destructive",get icon(){return pg},onConfirm:F,onCancel:()=>J(h,!1),get open(){return w(h)},set open(Se){J(h,Se,!0)}});var ye=he(_e,2);jJt(ye,{get emptyFiles(){return w(g)},onOpenChange:Se=>{Se||J(g,[],!0)},get open(){return w(f)},set open(Se){J(f,Se,!0)}});var Ue=he(ye,2);{let Se=ee(()=>w(v)?.message??""),be=ee(()=>w(v)?.contextInfo),ke=ee(()=>!!w(v)),Ae=ee(()=>w(v)?.type??Em.SERVER);VJt(Ue,{get message(){return w(Se)},get contextInfo(){return w(be)},onOpenChange:P,get open(){return w(ke)},get type(){return w(Ae)}})}H(t,ie),Ke()}var w7t=ae('<div class="pointer-events-none fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm"><div class="flex flex-col items-center justify-center rounded-2xl border-2 border-dashed border-border bg-background p-12 shadow-lg"><!> <p class="text-lg font-medium text-foreground">Attach a file</p> <p class="text-sm text-muted-foreground">Drop your files here to upload</p></div></div>');function x7t(t){var e=w7t(),r=de(e),n=de(r);rZ(n,{class:"mb-4 h-12 w-12 text-muted-foreground"}),Gt(4),oe(r),oe(e),H(t,e)}class A7t{drafts=new Map;getDraftMessage(e){const r=e??Zz;return this.drafts.get(r)??{message:"",files:[]}}saveDraftMessage(e,r,n){const i=e??Zz;r||n.length>0?this.drafts.set(i,{message:r,files:[...n]}):this.drafts.delete(i)}clearDraftMessage(e){const r=e??Zz;this.drafts.delete(r)}}const JM=new A7t;function R7t(t){Ns(()=>{const r=t.getChatId(),n=JM.getDraftMessage(r);(n.message||n.files.length>0)&&!t.getInitialMessage()&&(t.setMessage(n.message),t.setFiles(n.files))}),iae(()=>{const r=t.getChatId();JM.saveDraftMessage(r,t.getMessage(),t.getFiles())}),H3(r=>{if(r?.from!=null){const n=t.getChatId(),i=JM.getDraftMessage(n);t.setMessage(i.message),t.setFiles(i.files)}});function e(){const r=t.getChatId();JM.clearDraftMessage(r)}return{clearDraft:e}}var O7t=ae('<div class="relative mx-auto max-w-[48rem]"><!></div>');function I7t(t,e){We(e,!0);let r=ue(e,"disabled",3,!1),n=ue(e,"initialMessage",3,""),i=ue(e,"isLoading",3,!1),a=ue(e,"uploadedFiles",31,()=>Kr([])),s=Me(void 0),o=ee(()=>ba.params.id),l=ee(()=>a().some(b=>b.isLoading)),u=ee(n),d=ee(i),h=ee(n);const{clearDraft:f}=R7t({getChatId:()=>w(o),getMessage:()=>w(u),getFiles:()=>a(),setMessage:b=>J(u,b),setFiles:b=>a(b),getInitialMessage:()=>n()});function p(b){e.onFileUpload?.(b)}async function g(){if(!w(u).trim()&&a().length===0||r()||w(l)||!w(s)?.checkModelSelected())return;const b=w(u).trim(),E=[...a()];J(u,""),a([]),f(),w(s)?.resetTextareaHeight(),await e.onSend?.(b,E)||(J(u,b),a(E))}function m(){e.onSystemPromptAdd?.({message:w(u),files:a()})}function _(b){e.onFileRemove?.(b)}Ns(()=>{setTimeout(()=>w(s)?.focus(),10)}),H3(b=>{b?.from!=null&&setTimeout(()=>w(s)?.focus(),10)}),sr(()=>{n()!==w(h)&&(J(u,n()),J(h,n()))}),sr(()=>{w(d)&&!i()&&setTimeout(()=>w(s)?.focus(),10),J(d,i())});var v=O7t(),y=de(v);Qr(OLe(y,{get class(){return e.class},get disabled(){return r()},get isLoading(){return i()},showMcpPromptButton:!0,onFilesAdd:p,get onStop(){return e.onStop},onSubmit:g,onSystemPromptClick:m,onUploadedFileRemove:_,get value(){return w(u)},set value(b){J(u,b)},get uploadedFiles(){return a()},set uploadedFiles(b){a(b)}}),b=>J(s,b,!0),()=>w(s)),oe(v),H(t,v),Ke()}var N7t=ae('<span class="chat-processing-info-detail pointer-events-auto backdrop-blur-sm svelte-1ktvj8d"> </span>'),k7t=ae('<div><div class="chat-processing-info-content absolute bottom-4 left-1/2 -translate-x-1/2 svelte-1ktvj8d"></div></div>');function D7t(t,e){We(e,!0);const r=KLe(),n=HLe();let i=ee(()=>n.showProcessingInfo),a=ee(ib),s=ee(bk),o=ee(()=>r.getTechnicalDetails()),l=ee(()=>w(o).length>0);sr(()=>{e.onVisibilityChange?.(w(l))}),sr(()=>{const h=wc();Vi(()=>li.setActiveProcessingConversation(h?.id??null))}),sr(()=>{const h=Vn().keepStatsVisible;if((h||w(a)||w(s))&&r.startMonitoring(),!w(a)&&!w(s)&&!h){const p=setTimeout(()=>{!Vn().keepStatsVisible&&!bk()&&r.stopMonitoring()},rvt);return()=>clearTimeout(p)}}),sr(()=>{const h=wc(),f=W_();if(Vn().keepStatsVisible&&h){if(f.length===0){Vi(()=>li.clearProcessingState(h.id));return}!w(a)&&!w(s)&&Vi(()=>li.restoreProcessingStateFromMessages(f,h.id))}});var u=k7t(),d=de(u);fn(d,20,()=>w(o),h=>h,(h,f)=>{var p=N7t(),g=de(p,!0);oe(p),at(()=>yt(g,f)),H(h,p)}),oe(d),oe(u),at(()=>lr(u,1,Fn(["chat-processing-info-container pointer-events-none relative",ba.params.id&&w(i)&&"visible"]),"svelte-1ktvj8d")),H(t,u),Ke()}var M7t=ae('<div class="relative z-50 mx-auto mb-4 flex max-w-[48rem] justify-center"><!></div>');function L7t(t,e){We(e,!0);let r=Me(!1),n=ee(()=>e.hasProcessingInfoVisible?"2rem":"0");function i(){if(!e.container)return;const{scrollTop:l,scrollHeight:u,clientHeight:d}=e.container,h=u-d-l;J(r,h>d*.5)}function a(){e.container&&e.container.scrollTo({top:e.container.scrollHeight,behavior:"smooth"})}sr(()=>{const l=e.container;if(l)return l.addEventListener("scroll",i),i(),()=>{l.removeEventListener("scroll",i)}});var s=M7t(),o=de(s);{let l=ee(()=>!w(r)),u=ee(()=>w(n)),d=ee(()=>w(r)?"0":"2rem"),h=ee(()=>w(r)?1:0);Mn(o,{onclick:a,variant:"secondary",size:"icon",get disabled(){return w(l)},class:"pointer-events-auto absolute h-10 w-10 rounded-full bg-background/80 shadow-lg backdrop-blur-sm transition-all duration-200 hover:bg-muted/80",get style(){return`bottom: ${w(u)??""}; transform: translateY(${w(d)??""}); opacity: ${w(h)??""};`},"aria-label":"Scroll to bottom",children:(f,p)=>{$mt(f,{class:"h-4 w-4"})},$$slots:{default:!0}})}oe(s),H(t,s),Ke()}var P7t=ae('<span>Server unavailable</span> <button class="flex items-center gap-1.5 rounded-lg bg-destructive/20 px-2 py-1 text-xs font-medium hover:bg-destructive/30 disabled:opacity-50"><!> </button>',1),F7t=ae("<!> <!> <!>",1),B7t=ae('<div class="pointer-events-auto mx-auto mb-4 max-w-[48rem] px-1"><!></div>');function U7t(t,e){We(e,!0);let r=ee(()=>!!uk());var n=Ee(),i=ne(n);{var a=s=>{var o=B7t(),l=de(o);Le(l,()=>BMe,(u,d)=>{d(u,{variant:"destructive",children:(h,f)=>{var p=F7t(),g=ne(p);B1(g,{class:"h-4 w-4"});var m=he(g,2);Le(m,()=>$Me,(v,y)=>{y(v,{class:"flex items-center justify-between",children:(b,E)=>{var S=P7t(),T=he(ne(S),2),C=de(T);{let A=ee(()=>UT()?"animate-spin":"");D_(C,{get class(){return`h-3 w-3 ${w(A)??""}`}})}var x=he(C);oe(T),at((A,R)=>{T.disabled=A,yt(x,` ${R??""}`)},[()=>UT(),()=>UT()?"Retrying...":"Retry"]),tn("click",T,()=>Ya.fetch()),H(b,S)},$$slots:{default:!0}})});var _=he(m,2);Le(_,()=>UMe,(v,y)=>{y(v,{children:(b,E)=>{Gt();var S=fr();at(T=>yt(S,T),[()=>uk()]),H(b,S)},$$slots:{default:!0}})}),H(h,p)},$$slots:{default:!0}})}),oe(o),tE(o,(u,d)=>A5?.(u,d),()=>({y:10,duration:250})),H(s,o)};Re(i,s=>{w(r)&&s(a)})}H(t,n),Ke()}Wi(["click"]);const $7t={};function ple(t,e){const r=$7t,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return XLe(t,n,i)}function XLe(t,e,r){if(G7t(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return ESe(t.children,e,r)}return Array.isArray(t)?ESe(t,e,r):""}function ESe(t,e,r){const n=[];let i=-1;for(;++i<t.length;)n[i]=XLe(t[i],e,r);return n.join("")}function G7t(t){return!!(t&&typeof t=="object")}const SSe=document.createElement("i");function gle(t){const e="&"+t+";";SSe.innerHTML=e;const r=SSe.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}function Bd(t,e,r,n){const i=t.length;let a=0,s;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(e,r),t.splice(...s);else for(r&&t.splice(e,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(e,0),t.splice(...s),a+=1e4,e+=1e4}function Th(t,e){return t.length>0?(Bd(t,t.length,0,e),t):e}const TSe={}.hasOwnProperty;function QLe(t){const e={};let r=-1;for(;++r<t.length;)z7t(e,t[r]);return e}function z7t(t,e){let r;for(r in e){const i=(TSe.call(t,r)?t[r]:void 0)||(t[r]={}),a=e[r];let s;if(a)for(s in a){TSe.call(i,s)||(i[s]=[]);const o=a[s];q7t(i[s],Array.isArray(o)?o:o?[o]:[])}}}function q7t(t,e){let r=-1;const n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Bd(t,0,0,n)}function ZLe(t,e){const r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Lf(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ru=z1(/[A-Za-z]/),xc=z1(/[\dA-Za-z]/),V7t=z1(/[#-'*+\--9=?A-Z^-~]/);function a7(t){return t!==null&&(t<32||t===127)}const oJ=z1(/\d/),H7t=z1(/[\dA-Fa-f]/),Y7t=z1(/[!-/:-@[-`{-~]/);function On(t){return t!==null&&t<-2}function Qa(t){return t!==null&&(t<0||t===32)}function Qi(t){return t===-2||t===-1||t===32}const tU=z1(new RegExp("\\p{P}|\\p{S}","u")),Ab=z1(/\s/);function z1(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function pR(t){const e=[];let r=-1,n=0,i=0;for(;++r<t.length;){const a=t.charCodeAt(r);let s="";if(a===37&&xc(t.charCodeAt(r+1))&&xc(t.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=t.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(e.push(t.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return e.join("")+t.slice(n)}function Hi(t,e,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Qi(l)?(t.enter(r),o(l)):e(l)}function o(l){return Qi(l)&&a++<i?(t.consume(l),o):(t.exit(r),e(l))}}const W7t={tokenize:K7t};function K7t(t){const e=t.attempt(this.parser.constructs.contentInitial,n,i);let r;return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Hi(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),a(o)}function a(o){const l=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return On(o)?(t.consume(o),t.exit("chunkText"),a):(t.consume(o),s)}}const j7t={tokenize:X7t},CSe={tokenize:Q7t};function X7t(t){const e=this,r=[];let n=0,i,a,s;return o;function o(b){if(n<r.length){const E=r[n];return e.containerState=E[1],t.attempt(E[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&y();const E=e.events.length;let S=E,T;for(;S--;)if(e.events[S][0]==="exit"&&e.events[S][1].type==="chunkFlow"){T=e.events[S][1].end;break}v(n);let C=E;for(;C<e.events.length;)e.events[C][1].end={...T},C++;return Bd(e.events,S+1,0,e.events.slice(E)),e.events.length=C,u(b)}return o(b)}function u(b){if(n===r.length){if(!i)return f(b);if(i.currentConstruct&&i.currentConstruct.concrete)return g(b);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(CSe,d,h)(b)}function d(b){return i&&y(),v(n),f(b)}function h(b){return e.parser.lazy[e.now().line]=n!==r.length,s=e.now().offset,g(b)}function f(b){return e.containerState={},t.attempt(CSe,p,g)(b)}function p(b){return n++,r.push([e.currentConstruct,e.containerState]),f(b)}function g(b){if(b===null){i&&y(),v(0),t.consume(b);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),m(b)}function m(b){if(b===null){_(t.exit("chunkFlow"),!0),v(0),t.consume(b);return}return On(b)?(t.consume(b),_(t.exit("chunkFlow")),n=0,e.interrupt=void 0,o):(t.consume(b),m)}function _(b,E){const S=e.sliceStream(b);if(E&&S.push(null),b.previous=a,a&&(a.next=b),a=b,i.defineSkip(b.start),i.write(S),e.parser.lazy[b.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<s&&(!i.events[T][1].end||i.events[T][1].end.offset>s))return;const C=e.events.length;let x=C,A,R;for(;x--;)if(e.events[x][0]==="exit"&&e.events[x][1].type==="chunkFlow"){if(A){R=e.events[x][1].end;break}A=!0}for(v(n),T=C;T<e.events.length;)e.events[T][1].end={...R},T++;Bd(e.events,x+1,0,e.events.slice(C)),e.events.length=T}}function v(b){let E=r.length;for(;E-- >b;){const S=r[E];e.containerState=S[1],S[0].exit.call(e,t)}r.length=b}function y(){i.write([null]),a=void 0,i=void 0,e.containerState._closeFlow=void 0}}function Q7t(t,e,r){return Hi(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oA(t){if(t===null||Qa(t)||Ab(t))return 1;if(tU(t))return 2}function rU(t,e,r){const n=[];let i=-1;for(;++i<t.length;){const a=t[i].resolveAll;a&&!n.includes(a)&&(e=a(e,r),n.push(a))}return e}const lJ={name:"attention",resolveAll:Z7t,tokenize:J7t};function Z7t(t,e){let r=-1,n,i,a,s,o,l,u,d;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;l=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const h={...t[n][1].end},f={...t[r][1].start};wSe(h,-l),wSe(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...t[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},t[n][1].end={...s.start},t[r][1].start={...o.end},u=[],t[n][1].end.offset-t[n][1].start.offset&&(u=Th(u,[["enter",t[n][1],e],["exit",t[n][1],e]])),u=Th(u,[["enter",i,e],["enter",s,e],["exit",s,e],["enter",a,e]]),u=Th(u,rU(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),u=Th(u,[["exit",a,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[r][1].end.offset-t[r][1].start.offset?(d=2,u=Th(u,[["enter",t[r][1],e],["exit",t[r][1],e]])):d=0,Bd(t,n-1,r-n+3,u),r=n+u.length-d-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function J7t(t,e){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=oA(n);let a;return s;function s(l){return a=l,t.enter("attentionSequence"),o(l)}function o(l){if(l===a)return t.consume(l),o;const u=t.exit("attentionSequence"),d=oA(l),h=!d||d===2&&i||r.includes(l),f=!i||i===2&&d||r.includes(n);return u._open=!!(a===42?h:h&&(i||!f)),u._close=!!(a===42?f:f&&(d||!h)),e(l)}}function wSe(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const e8t={name:"autolink",tokenize:t8t};function t8t(t,e,r){let n=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(p){return ru(p)?(t.consume(p),s):p===64?r(p):u(p)}function s(p){return p===43||p===45||p===46||xc(p)?(n=1,o(p)):u(p)}function o(p){return p===58?(t.consume(p),n=0,l):(p===43||p===45||p===46||xc(p))&&n++<32?(t.consume(p),o):(n=0,u(p))}function l(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||a7(p)?r(p):(t.consume(p),l)}function u(p){return p===64?(t.consume(p),d):V7t(p)?(t.consume(p),u):r(p)}function d(p){return xc(p)?h(p):r(p)}function h(p){return p===46?(t.consume(p),n=0,d):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):f(p)}function f(p){if((p===45||xc(p))&&n++<63){const g=p===45?f:h;return t.consume(p),g}return r(p)}}const R5={partial:!0,tokenize:r8t};function r8t(t,e,r){return n;function n(a){return Qi(a)?Hi(t,i,"linePrefix")(a):i(a)}function i(a){return a===null||On(a)?e(a):r(a)}}const JLe={continuation:{tokenize:i8t},exit:a8t,name:"blockQuote",tokenize:n8t};function n8t(t,e,r){const n=this;return i;function i(s){if(s===62){const o=n.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),a}return r(s)}function a(s){return Qi(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function i8t(t,e,r){const n=this;return i;function i(s){return Qi(s)?Hi(t,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return t.attempt(JLe,e,r)(s)}}function a8t(t){t.exit("blockQuote")}const ePe={name:"characterEscape",tokenize:s8t};function s8t(t,e,r){return n;function n(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),i}function i(a){return Y7t(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(a)}}const tPe={name:"characterReference",tokenize:o8t};function o8t(t,e,r){const n=this;let i=0,a,s;return o;function o(h){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),l}function l(h){return h===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(h),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),a=31,s=xc,d(h))}function u(h){return h===88||h===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(h),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,s=H7t,d):(t.enter("characterReferenceValue"),a=7,s=oJ,d(h))}function d(h){if(h===59&&i){const f=t.exit("characterReferenceValue");return s===xc&&!gle(n.sliceSerialize(f))?r(h):(t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(h)&&i++<a?(t.consume(h),d):r(h)}}const xSe={partial:!0,tokenize:c8t},ASe={concrete:!0,name:"codeFenced",tokenize:l8t};function l8t(t,e,r){const n=this,i={partial:!0,tokenize:S};let a=0,s=0,o;return l;function l(T){return u(T)}function u(T){const C=n.events[n.events.length-1];return a=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,o=T,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),d(T)}function d(T){return T===o?(s++,t.consume(T),d):s<3?r(T):(t.exit("codeFencedFenceSequence"),Qi(T)?Hi(t,h,"whitespace")(T):h(T))}function h(T){return T===null||On(T)?(t.exit("codeFencedFence"),n.interrupt?e(T):t.check(xSe,m,E)(T)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),f(T))}function f(T){return T===null||On(T)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),h(T)):Qi(T)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Hi(t,p,"whitespace")(T)):T===96&&T===o?r(T):(t.consume(T),f)}function p(T){return T===null||On(T)?h(T):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||On(T)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),h(T)):T===96&&T===o?r(T):(t.consume(T),g)}function m(T){return t.attempt(i,E,_)(T)}function _(T){return t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),v}function v(T){return a>0&&Qi(T)?Hi(t,y,"linePrefix",a+1)(T):y(T)}function y(T){return T===null||On(T)?t.check(xSe,m,E)(T):(t.enter("codeFlowValue"),b(T))}function b(T){return T===null||On(T)?(t.exit("codeFlowValue"),y(T)):(t.consume(T),b)}function E(T){return t.exit("codeFenced"),e(T)}function S(T,C,x){let A=0;return R;function R(D){return T.enter("lineEnding"),T.consume(D),T.exit("lineEnding"),I}function I(D){return T.enter("codeFencedFence"),Qi(D)?Hi(T,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):L(D)}function L(D){return D===o?(T.enter("codeFencedFenceSequence"),F(D)):x(D)}function F(D){return D===o?(A++,T.consume(D),F):A>=s?(T.exit("codeFencedFenceSequence"),Qi(D)?Hi(T,O,"whitespace")(D):O(D)):x(D)}function O(D){return D===null||On(D)?(T.exit("codeFencedFence"),C(D)):x(D)}}}function c8t(t,e,r){const n=this;return i;function i(s){return s===null?r(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}const CW={name:"codeIndented",tokenize:d8t},u8t={partial:!0,tokenize:h8t};function d8t(t,e,r){const n=this;return i;function i(u){return t.enter("codeIndented"),Hi(t,a,"linePrefix",5)(u)}function a(u){const d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):On(u)?t.attempt(u8t,s,l)(u):(t.enter("codeFlowValue"),o(u))}function o(u){return u===null||On(u)?(t.exit("codeFlowValue"),s(u)):(t.consume(u),o)}function l(u){return t.exit("codeIndented"),e(u)}}function h8t(t,e,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):On(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):Hi(t,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):On(s)?i(s):r(s)}}const f8t={name:"codeText",previous:g8t,resolve:p8t,tokenize:m8t};function p8t(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function g8t(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function m8t(t,e,r){let n=0,i,a;return s;function s(h){return t.enter("codeText"),t.enter("codeTextSequence"),o(h)}function o(h){return h===96?(t.consume(h),n++,o):(t.exit("codeTextSequence"),l(h))}function l(h){return h===null?r(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),l):h===96?(a=t.enter("codeTextSequence"),i=0,d(h)):On(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),l):(t.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||On(h)?(t.exit("codeTextData"),l(h)):(t.consume(h),u)}function d(h){return h===96?(t.consume(h),i++,d):i===n?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(a.type="codeTextData",u(h))}}class _8t{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new 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,r){const n=r??Number.POSITIVE_INFINITY;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,r,n){const i=r||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&CO(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),CO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),CO(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const r=this.left.splice(e,Number.POSITIVE_INFINITY);CO(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);CO(this.left,r.reverse())}}}function CO(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}function rPe(t){const e={};let r=-1,n,i,a,s,o,l,u;const d=new _8t(t);for(;++r<d.length;){for(;r in e;)r=e[r];if(n=d.get(r),r&&n[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,v8t(d,r)),r=e[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(s=d.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...d.get(i)[1].start},o=d.slice(i,r),o.unshift(n),d.splice(i,r-i+1,o))}}return Bd(t,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function v8t(t,e){const r=t.get(e)[1],n=t.get(e)[2];let i=e-1;const a=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let d,h,f=-1,p=r,g=0,m=0;const _=[m];for(;p;){for(;t.get(++i)[1]!==p;);a.push(i),p._tokenizer||(d=n.sliceStream(p),p.next||d.push(null),h&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=r;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(m=f+1,_.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):_.pop(),f=_.length;f--;){const v=o.slice(_[f],_[f+1]),y=a.pop();l.push([y,y+v.length-1]),t.splice(y,2,v)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const y8t={resolve:E8t,tokenize:S8t},b8t={partial:!0,tokenize:T8t};function E8t(t){return rPe(t),t}function S8t(t,e){let r;return n;function n(o){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):On(o)?t.check(b8t,s,a)(o):(t.consume(o),i)}function a(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function s(o){return t.consume(o),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function T8t(t,e,r){const n=this;return i;function i(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Hi(t,a,"linePrefix")}function a(s){if(s===null||On(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):t.interrupt(n.parser.constructs.flow,r,e)(s)}}function nPe(t,e,r,n,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return v===60?(t.enter(n),t.enter(i),t.enter(a),t.consume(v),t.exit(a),f):v===null||v===32||v===41||a7(v)?r(v):(t.enter(n),t.enter(s),t.enter(o),t.enter("chunkString",{contentType:"string"}),m(v))}function f(v){return v===62?(t.enter(a),t.consume(v),t.exit(a),t.exit(i),t.exit(n),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(t.exit("chunkString"),t.exit(o),f(v)):v===null||v===60||On(v)?r(v):(t.consume(v),v===92?g:p)}function g(v){return v===60||v===62||v===92?(t.consume(v),p):p(v)}function m(v){return!d&&(v===null||v===41||Qa(v))?(t.exit("chunkString"),t.exit(o),t.exit(s),t.exit(n),e(v)):d<u&&v===40?(t.consume(v),d++,m):v===41?(t.consume(v),d--,m):v===null||v===32||v===40||a7(v)?r(v):(t.consume(v),v===92?_:m)}function _(v){return v===40||v===41||v===92?(t.consume(v),m):m(v)}}function iPe(t,e,r,n,i,a){const s=this;let o=0,l;return u;function u(p){return t.enter(n),t.enter(i),t.consume(p),t.exit(i),t.enter(a),d}function d(p){return o>999||p===null||p===91||p===93&&!l||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(p):p===93?(t.exit(a),t.enter(i),t.consume(p),t.exit(i),t.exit(n),e):On(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||On(p)||o++>999?(t.exit("chunkString"),d(p)):(t.consume(p),l||(l=!Qi(p)),p===92?f:h)}function f(p){return p===91||p===92||p===93?(t.consume(p),o++,h):h(p)}}function aPe(t,e,r,n,i,a){let s;return o;function o(f){return f===34||f===39||f===40?(t.enter(n),t.enter(i),t.consume(f),t.exit(i),s=f===40?41:f,l):r(f)}function l(f){return f===s?(t.enter(i),t.consume(f),t.exit(i),t.exit(n),e):(t.enter(a),u(f))}function u(f){return f===s?(t.exit(a),l(s)):f===null?r(f):On(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Hi(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===s||f===null||On(f)?(t.exit("chunkString"),u(f)):(t.consume(f),f===92?h:d)}function h(f){return f===s||f===92?(t.consume(f),d):d(f)}}function dN(t,e){let r;return n;function n(i){return On(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),r=!0,n):Qi(i)?Hi(t,n,r?"linePrefix":"lineSuffix")(i):e(i)}}const C8t={name:"definition",tokenize:x8t},w8t={partial:!0,tokenize:A8t};function x8t(t,e,r){const n=this;let i;return a;function a(p){return t.enter("definition"),s(p)}function s(p){return iPe.call(n,t,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=Lf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),l):r(p)}function l(p){return Qa(p)?dN(t,u)(p):u(p)}function u(p){return nPe(t,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return t.attempt(w8t,h,h)(p)}function h(p){return Qi(p)?Hi(t,f,"whitespace")(p):f(p)}function f(p){return p===null||On(p)?(t.exit("definition"),n.parser.defined.push(i),e(p)):r(p)}}function A8t(t,e,r){return n;function n(o){return Qa(o)?dN(t,i)(o):r(o)}function i(o){return aPe(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Qi(o)?Hi(t,s,"whitespace")(o):s(o)}function s(o){return o===null||On(o)?e(o):r(o)}}const R8t={name:"hardBreakEscape",tokenize:O8t};function O8t(t,e,r){return n;function n(a){return t.enter("hardBreakEscape"),t.consume(a),i}function i(a){return On(a)?(t.exit("hardBreakEscape"),e(a)):r(a)}}const I8t={name:"headingAtx",resolve:N8t,tokenize:k8t};function N8t(t,e){let r=t.length-2,n=3,i,a;return t[n][1].type==="whitespace"&&(n+=2),r-2>n&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&t[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:t[n][1].start,end:t[r][1].end},a={type:"chunkText",start:t[n][1].start,end:t[r][1].end,contentType:"text"},Bd(t,n,r-n+1,[["enter",i,e],["enter",a,e],["exit",a,e],["exit",i,e]])),t}function k8t(t,e,r){let n=0;return i;function i(d){return t.enter("atxHeading"),a(d)}function a(d){return t.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&n++<6?(t.consume(d),s):d===null||Qa(d)?(t.exit("atxHeadingSequence"),o(d)):r(d)}function o(d){return d===35?(t.enter("atxHeadingSequence"),l(d)):d===null||On(d)?(t.exit("atxHeading"),e(d)):Qi(d)?Hi(t,o,"whitespace")(d):(t.enter("atxHeadingText"),u(d))}function l(d){return d===35?(t.consume(d),l):(t.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Qa(d)?(t.exit("atxHeadingText"),o(d)):(t.consume(d),u)}}const D8t=["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"],RSe=["pre","script","style","textarea"],M8t={concrete:!0,name:"htmlFlow",resolveTo:F8t,tokenize:B8t},L8t={partial:!0,tokenize:$8t},P8t={partial:!0,tokenize:U8t};function F8t(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function B8t(t,e,r){const n=this;let i,a,s,o,l;return u;function u(z){return d(z)}function d(z){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(z),h}function h(z){return z===33?(t.consume(z),f):z===47?(t.consume(z),a=!0,m):z===63?(t.consume(z),i=3,n.interrupt?e:U):ru(z)?(t.consume(z),s=String.fromCharCode(z),_):r(z)}function f(z){return z===45?(t.consume(z),i=2,p):z===91?(t.consume(z),i=5,o=0,g):ru(z)?(t.consume(z),i=4,n.interrupt?e:U):r(z)}function p(z){return z===45?(t.consume(z),n.interrupt?e:U):r(z)}function g(z){const G="CDATA[";return z===G.charCodeAt(o++)?(t.consume(z),o===G.length?n.interrupt?e:L:g):r(z)}function m(z){return ru(z)?(t.consume(z),s=String.fromCharCode(z),_):r(z)}function _(z){if(z===null||z===47||z===62||Qa(z)){const G=z===47,Y=s.toLowerCase();return!G&&!a&&RSe.includes(Y)?(i=1,n.interrupt?e(z):L(z)):D8t.includes(s.toLowerCase())?(i=6,G?(t.consume(z),v):n.interrupt?e(z):L(z)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(z):a?y(z):b(z))}return z===45||xc(z)?(t.consume(z),s+=String.fromCharCode(z),_):r(z)}function v(z){return z===62?(t.consume(z),n.interrupt?e:L):r(z)}function y(z){return Qi(z)?(t.consume(z),y):R(z)}function b(z){return z===47?(t.consume(z),R):z===58||z===95||ru(z)?(t.consume(z),E):Qi(z)?(t.consume(z),b):R(z)}function E(z){return z===45||z===46||z===58||z===95||xc(z)?(t.consume(z),E):S(z)}function S(z){return z===61?(t.consume(z),T):Qi(z)?(t.consume(z),S):b(z)}function T(z){return z===null||z===60||z===61||z===62||z===96?r(z):z===34||z===39?(t.consume(z),l=z,C):Qi(z)?(t.consume(z),T):x(z)}function C(z){return z===l?(t.consume(z),l=null,A):z===null||On(z)?r(z):(t.consume(z),C)}function x(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Qa(z)?S(z):(t.consume(z),x)}function A(z){return z===47||z===62||Qi(z)?b(z):r(z)}function R(z){return z===62?(t.consume(z),I):r(z)}function I(z){return z===null||On(z)?L(z):Qi(z)?(t.consume(z),I):r(z)}function L(z){return z===45&&i===2?(t.consume(z),M):z===60&&i===1?(t.consume(z),P):z===62&&i===4?(t.consume(z),B):z===63&&i===3?(t.consume(z),U):z===93&&i===5?(t.consume(z),$):On(z)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(L8t,V,F)(z)):z===null||On(z)?(t.exit("htmlFlowData"),F(z)):(t.consume(z),L)}function F(z){return t.check(P8t,O,V)(z)}function O(z){return t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),D}function D(z){return z===null||On(z)?F(z):(t.enter("htmlFlowData"),L(z))}function M(z){return z===45?(t.consume(z),U):L(z)}function P(z){return z===47?(t.consume(z),s="",N):L(z)}function N(z){if(z===62){const G=s.toLowerCase();return RSe.includes(G)?(t.consume(z),B):L(z)}return ru(z)&&s.length<8?(t.consume(z),s+=String.fromCharCode(z),N):L(z)}function $(z){return z===93?(t.consume(z),U):L(z)}function U(z){return z===62?(t.consume(z),B):z===45&&i===2?(t.consume(z),U):L(z)}function B(z){return z===null||On(z)?(t.exit("htmlFlowData"),V(z)):(t.consume(z),B)}function V(z){return t.exit("htmlFlow"),e(z)}}function U8t(t,e,r){const n=this;return i;function i(s){return On(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function $8t(t,e,r){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(R5,e,r)}}const G8t={name:"htmlText",tokenize:z8t};function z8t(t,e,r){const n=this;let i,a,s;return o;function o(U){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(U),l}function l(U){return U===33?(t.consume(U),u):U===47?(t.consume(U),S):U===63?(t.consume(U),b):ru(U)?(t.consume(U),x):r(U)}function u(U){return U===45?(t.consume(U),d):U===91?(t.consume(U),a=0,g):ru(U)?(t.consume(U),y):r(U)}function d(U){return U===45?(t.consume(U),p):r(U)}function h(U){return U===null?r(U):U===45?(t.consume(U),f):On(U)?(s=h,P(U)):(t.consume(U),h)}function f(U){return U===45?(t.consume(U),p):h(U)}function p(U){return U===62?M(U):U===45?f(U):h(U)}function g(U){const B="CDATA[";return U===B.charCodeAt(a++)?(t.consume(U),a===B.length?m:g):r(U)}function m(U){return U===null?r(U):U===93?(t.consume(U),_):On(U)?(s=m,P(U)):(t.consume(U),m)}function _(U){return U===93?(t.consume(U),v):m(U)}function v(U){return U===62?M(U):U===93?(t.consume(U),v):m(U)}function y(U){return U===null||U===62?M(U):On(U)?(s=y,P(U)):(t.consume(U),y)}function b(U){return U===null?r(U):U===63?(t.consume(U),E):On(U)?(s=b,P(U)):(t.consume(U),b)}function E(U){return U===62?M(U):b(U)}function S(U){return ru(U)?(t.consume(U),T):r(U)}function T(U){return U===45||xc(U)?(t.consume(U),T):C(U)}function C(U){return On(U)?(s=C,P(U)):Qi(U)?(t.consume(U),C):M(U)}function x(U){return U===45||xc(U)?(t.consume(U),x):U===47||U===62||Qa(U)?A(U):r(U)}function A(U){return U===47?(t.consume(U),M):U===58||U===95||ru(U)?(t.consume(U),R):On(U)?(s=A,P(U)):Qi(U)?(t.consume(U),A):M(U)}function R(U){return U===45||U===46||U===58||U===95||xc(U)?(t.consume(U),R):I(U)}function I(U){return U===61?(t.consume(U),L):On(U)?(s=I,P(U)):Qi(U)?(t.consume(U),I):A(U)}function L(U){return U===null||U===60||U===61||U===62||U===96?r(U):U===34||U===39?(t.consume(U),i=U,F):On(U)?(s=L,P(U)):Qi(U)?(t.consume(U),L):(t.consume(U),O)}function F(U){return U===i?(t.consume(U),i=void 0,D):U===null?r(U):On(U)?(s=F,P(U)):(t.consume(U),F)}function O(U){return U===null||U===34||U===39||U===60||U===61||U===96?r(U):U===47||U===62||Qa(U)?A(U):(t.consume(U),O)}function D(U){return U===47||U===62||Qa(U)?A(U):r(U)}function M(U){return U===62?(t.consume(U),t.exit("htmlTextData"),t.exit("htmlText"),e):r(U)}function P(U){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(U),t.exit("lineEnding"),N}function N(U){return Qi(U)?Hi(t,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):$(U)}function $(U){return t.enter("htmlTextData"),s(U)}}const mle={name:"labelEnd",resolveAll:Y8t,resolveTo:W8t,tokenize:K8t},q8t={tokenize:j8t},V8t={tokenize:X8t},H8t={tokenize:Q8t};function Y8t(t){let e=-1;const r=[];for(;++e<t.length;){const n=t[e][1];if(r.push(t[e]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",e+=i}}return t.length!==r.length&&Bd(t,0,t.length,r),t}function W8t(t,e){let r=t.length,n=0,i,a,s,o;for(;r--;)if(i=t[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(t[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const l={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[a][1].start},end:{...t[s][1].end}},d={type:"labelText",start:{...t[a+n+2][1].end},end:{...t[s-2][1].start}};return o=[["enter",l,e],["enter",u,e]],o=Th(o,t.slice(a+1,a+n+3)),o=Th(o,[["enter",d,e]]),o=Th(o,rU(e.parser.constructs.insideSpan.null,t.slice(a+n+4,s-3),e)),o=Th(o,[["exit",d,e],t[s-2],t[s-1],["exit",u,e]]),o=Th(o,t.slice(s+1)),o=Th(o,[["exit",l,e]]),Bd(t,a,t.length,o),t}function K8t(t,e,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return o;function o(f){return a?a._inactive?h(f):(s=n.parser.defined.includes(Lf(n.sliceSerialize({start:a.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelEnd"),l):r(f)}function l(f){return f===40?t.attempt(q8t,d,s?d:h)(f):f===91?t.attempt(V8t,d,s?u:h)(f):s?d(f):h(f)}function u(f){return t.attempt(H8t,d,h)(f)}function d(f){return e(f)}function h(f){return a._balanced=!0,r(f)}}function j8t(t,e,r){return n;function n(h){return t.enter("resource"),t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),i}function i(h){return Qa(h)?dN(t,a)(h):a(h)}function a(h){return h===41?d(h):nPe(t,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return Qa(h)?dN(t,l)(h):d(h)}function o(h){return r(h)}function l(h){return h===34||h===39||h===40?aPe(t,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function u(h){return Qa(h)?dN(t,d)(h):d(h)}function d(h){return h===41?(t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),t.exit("resource"),e):r(h)}}function X8t(t,e,r){const n=this;return i;function i(o){return iPe.call(n,t,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(Lf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(o):r(o)}function s(o){return r(o)}}function Q8t(t,e,r){return n;function n(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),i}function i(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),e):r(a)}}const Z8t={name:"labelStartImage",resolveAll:mle.resolveAll,tokenize:J8t};function J8t(t,e,r){const n=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),a}function a(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):e(o)}}const eFt={name:"labelStartLink",resolveAll:mle.resolveAll,tokenize:tFt};function tFt(t,e,r){const n=this;return i;function i(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):e(s)}}const wW={name:"lineEnding",tokenize:rFt};function rFt(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Hi(t,e,"linePrefix")}}const MP={name:"thematicBreak",tokenize:nFt};function nFt(t,e,r){let n=0,i;return a;function a(u){return t.enter("thematicBreak"),s(u)}function s(u){return i=u,o(u)}function o(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||On(u))?(t.exit("thematicBreak"),e(u)):r(u)}function l(u){return u===i?(t.consume(u),n++,l):(t.exit("thematicBreakSequence"),Qi(u)?Hi(t,o,"whitespace")(u):o(u))}}const Mu={continuation:{tokenize:oFt},exit:cFt,name:"list",tokenize:sFt},iFt={partial:!0,tokenize:uFt},aFt={partial:!0,tokenize:lFt};function sFt(t,e,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const g=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:oJ(p)){if(n.containerState.type||(n.containerState.type=g,t.enter(g,{_container:!0})),g==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(MP,r,u)(p):u(p);if(!n.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(p)}return r(p)}function l(p){return oJ(p)&&++s<10?(t.consume(p),l):(!n.interrupt||s<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),u(p)):r(p)}function u(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,t.check(R5,n.interrupt?r:d,t.attempt(iFt,f,h))}function d(p){return n.containerState.initialBlankLine=!0,a++,f(p)}function h(p){return Qi(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),f):r(p)}function f(p){return n.containerState.size=a+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function oFt(t,e,r){const n=this;return n.containerState._closeFlow=void 0,t.check(R5,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Hi(t,e,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!Qi(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(aFt,e,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Hi(t,t.attempt(Mu,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function lFt(t,e,r){const n=this;return Hi(t,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?e(a):r(a)}}function cFt(t){t.exit(this.containerState.type)}function uFt(t,e,r){const n=this;return Hi(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!Qi(a)&&s&&s[1].type==="listItemPrefixWhitespace"?e(a):r(a)}}const OSe={name:"setextUnderline",resolveTo:dFt,tokenize:hFt};function dFt(t,e){let r=t.length,n,i,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){n=r;break}t[r][1].type==="paragraph"&&(i=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...t[n][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",a?(t.splice(i,0,["enter",s,e]),t.splice(a+1,0,["exit",t[n][1],e]),t[n][1].end={...t[a][1].end}):t[n][1]=s,t.push(["exit",s,e]),t}function hFt(t,e,r){const n=this;let i;return a;function a(u){let d=n.events.length,h;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){h=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(t.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return t.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(t.consume(u),o):(t.exit("setextHeadingLineSequence"),Qi(u)?Hi(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||On(u)?(t.exit("setextHeadingLine"),e(u)):r(u)}}const fFt={tokenize:pFt};function pFt(t){const e=this,r=t.attempt(R5,n,t.attempt(this.parser.constructs.flowInitial,i,Hi(t,t.attempt(this.parser.constructs.flow,i,t.attempt(y8t,i)),"linePrefix")));return r;function n(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function i(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),e.currentConstruct=void 0,r}}const gFt={resolveAll:oPe()},mFt=sPe("string"),_Ft=sPe("text");function sPe(t){return{resolveAll:oPe(t==="text"?vFt:void 0),tokenize:e};function e(r){const n=this,i=this.parser.constructs[t],a=r.attempt(i,s,o);return s;function s(d){return u(d)?a(d):o(d)}function o(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),l}function l(d){return u(d)?(r.exit("data"),a(d)):(r.consume(d),l)}function u(d){if(d===null)return!0;const h=i[d];let f=-1;if(h)for(;++f<h.length;){const p=h[f];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function oPe(t){return e;function e(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return t?t(r,n):r}}function vFt(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const n=t[r-1][1],i=e.sliceStream(n);let a=i.length,s=-1,o=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(e._contentTypeTextTrailing&&r===t.length&&(o=0),o){const u={type:r===t.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(t.splice(r,0,["enter",u,e],["exit",u,e]),r+=2)}r++}return t}const yFt={42:Mu,43:Mu,45:Mu,48:Mu,49:Mu,50:Mu,51:Mu,52:Mu,53:Mu,54:Mu,55:Mu,56:Mu,57:Mu,62:JLe},bFt={91:C8t},EFt={[-2]:CW,[-1]:CW,32:CW},SFt={35:I8t,42:MP,45:[OSe,MP],60:M8t,61:OSe,95:MP,96:ASe,126:ASe},TFt={38:tPe,92:ePe},CFt={[-5]:wW,[-4]:wW,[-3]:wW,33:Z8t,38:tPe,42:lJ,60:[e8t,G8t],91:eFt,92:[R8t,ePe],93:mle,95:lJ,96:f8t},wFt={null:[lJ,gFt]},xFt={null:[42,95]},AFt={null:[]},RFt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xFt,contentInitial:bFt,disable:AFt,document:yFt,flow:SFt,flowInitial:EFt,insideSpan:wFt,string:TFt,text:CFt},Symbol.toStringTag,{value:"Module"}));function OFt(t,e,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],o=[];const l={attempt:C(S),check:C(T),consume:y,enter:b,exit:E,interrupt:C(T,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:g,parser:t,previous:null,sliceSerialize:f,sliceStream:p,write:h};let d=e.tokenize.call(u,l);return e.resolveAll&&a.push(e),u;function h(I){return s=Th(s,I),_(),s[s.length-1]!==null?[]:(x(e,0),u.events=rU(a,u.events,u),u.events)}function f(I,L){return NFt(p(I),L)}function p(I){return IFt(s,I)}function g(){const{_bufferIndex:I,_index:L,line:F,column:O,offset:D}=n;return{_bufferIndex:I,_index:L,line:F,column:O,offset:D}}function m(I){i[I.line]=I.column,R()}function _(){let I;for(;n._index<s.length;){const L=s[n._index];if(typeof L=="string")for(I=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===I&&n._bufferIndex<L.length;)v(L.charCodeAt(n._bufferIndex));else v(L)}}function v(I){d=d(I)}function y(I){On(I)?(n.line++,n.column=1,n.offset+=I===-3?2:1,R()):I!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=I}function b(I,L){const F=L||{};return F.type=I,F.start=g(),u.events.push(["enter",F,u]),o.push(F),F}function E(I){const L=o.pop();return L.end=g(),u.events.push(["exit",L,u]),L}function S(I,L){x(I,L.from)}function T(I,L){L.restore()}function C(I,L){return F;function F(O,D,M){let P,N,$,U;return Array.isArray(O)?V(O):"tokenize"in O?V([O]):B(O);function B(W){return Q;function Q(ie){const Z=ie!==null&&W[ie],re=ie!==null&&W.null,K=[...Array.isArray(Z)?Z:Z?[Z]:[],...Array.isArray(re)?re:re?[re]:[]];return V(K)(ie)}}function V(W){return P=W,N=0,W.length===0?M:z(W[N])}function z(W){return Q;function Q(ie){return U=A(),$=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?Y():W.tokenize.call(L?Object.assign(Object.create(u),L):u,l,G,Y)(ie)}}function G(W){return I($,U),D}function Y(W){return U.restore(),++N<P.length?z(P[N]):M}}}function x(I,L){I.resolveAll&&!a.includes(I)&&a.push(I),I.resolve&&Bd(u.events,L,u.events.length-L,I.resolve(u.events.slice(L),u)),I.resolveTo&&(u.events=I.resolveTo(u.events,u))}function A(){const I=g(),L=u.previous,F=u.currentConstruct,O=u.events.length,D=Array.from(o);return{from:O,restore:M};function M(){n=I,u.previous=L,u.currentConstruct=F,u.events.length=O,o=D,R()}}function R(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function IFt(t,e){const r=e.start._index,n=e.start._bufferIndex,i=e.end._index,a=e.end._bufferIndex;let s;if(r===i)s=[t[r].slice(n,a)];else{if(s=t.slice(r,i),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(t[i].slice(0,a))}return s}function NFt(t,e){let r=-1;const n=[];let i;for(;++r<t.length;){const a=t[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=e?" ":"	";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}function kFt(t){const n={constructs:QLe([RFt,...(t||{}).extensions||[]]),content:i(W7t),defined:[],document:i(j7t),flow:i(fFt),lazy:{},string:i(mFt),text:i(_Ft)};return n;function i(a){return s;function s(o){return OFt(n,a,o)}}}function DFt(t){for(;!rPe(t););return t}const ISe=/[\0\t\n\r]/g;function MFt(){let t=1,e="",r=!0,n;return i;function i(a,s,o){const l=[];let u,d,h,f,p;for(a=e+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,e="",r&&(a.charCodeAt(0)===65279&&h++,r=void 0);h<a.length;){if(ISe.lastIndex=h,u=ISe.exec(a),f=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(f),!u){e=a.slice(h);break}if(p===10&&h===f&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),h<f&&(l.push(a.slice(h,f)),t+=f-h),p){case 0:{l.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,l.push(-2);t++<d;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:n=!0,t=1}h=f+1}return o&&(n&&l.push(-5),e&&l.push(e),l.push(null)),l}}const LFt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lPe(t){return t.replace(LFt,PFt)}function PFt(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return ZLe(r.slice(a?2:1),a?16:10)}return gle(r)||t}function LP(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?NSe(t.position):"start"in t||"end"in t?NSe(t):"line"in t||"column"in t?cJ(t):""}function cJ(t){return kSe(t&&t.line)+":"+kSe(t&&t.column)}function NSe(t){return cJ(t&&t.start)+"-"+cJ(t&&t.end)}function kSe(t){return t&&typeof t=="number"?t:1}const cPe={}.hasOwnProperty;function FFt(t,e,r){return typeof e!="string"&&(r=e,e=void 0),BFt(r)(DFt(kFt(r).document().write(MFt()(t,e,!0))))}function BFt(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(be),autolinkProtocol:A,autolinkEmail:A,atxHeading:a(_e),blockQuote:a(re),characterEscape:A,characterReference:A,codeFenced:a(K),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(K,s),codeText:a(j,s),codeTextData:A,data:A,codeFlowValue:A,definition:a(se),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(le),hardBreakEscape:a(ye),hardBreakTrailing:a(ye),htmlFlow:a(Ue,s),htmlFlowData:A,htmlText:a(Ue,s),htmlTextData:A,image:a(Se),label:s,link:a(be),listItem:a(Ae),listItemValue:f,listOrdered:a(ke,h),listUnordered:a(ke),paragraph:a(tt),reference:z,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(_e),strong:a(Oe),thematicBreak:a(ct)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:Z,autolinkProtocol:ie,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:Y,characterReferenceMarkerNumeric:Y,characterReferenceValue:W,characterReference:Q,codeFenced:l(_),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:l(v),codeText:l(D),codeTextData:R,data:R,definition:l(),definitionDestinationString:E,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(L),hardBreakTrailing:l(L),htmlFlow:l(F),htmlFlowData:R,htmlText:l(O),htmlTextData:R,image:l(P),label:$,labelText:N,lineEnding:I,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:G,resourceDestinationString:U,resourceTitleString:B,resource:V,setextHeading:l(x),setextHeadingLineSequence:C,setextHeadingText:T,strong:l(),thematicBreak:l()}};uPe(e,(t||{}).mdastExtensions||[]);const r={};return n;function n(Fe){let Xe={type:"root",children:[]};const et={stack:[Xe],tokenStack:[],config:e,enter:o,exit:u,buffer:s,resume:d,data:r},Ie=[];let we=-1;for(;++we<Fe.length;)if(Fe[we][1].type==="listOrdered"||Fe[we][1].type==="listUnordered")if(Fe[we][0]==="enter")Ie.push(we);else{const ce=Ie.pop();we=i(Fe,ce,we)}for(we=-1;++we<Fe.length;){const ce=e[Fe[we][0]];cPe.call(ce,Fe[we][1].type)&&ce[Fe[we][1].type].call(Object.assign({sliceSerialize:Fe[we][2].sliceSerialize},et),Fe[we][1])}if(et.tokenStack.length>0){const ce=et.tokenStack[et.tokenStack.length-1];(ce[1]||DSe).call(et,void 0,ce[0])}for(Xe.position={start:a_(Fe.length>0?Fe[0][1].start:{line:1,column:1,offset:0}),end:a_(Fe.length>0?Fe[Fe.length-2][1].end:{line:1,column:1,offset:0})},we=-1;++we<e.transforms.length;)Xe=e.transforms[we](Xe)||Xe;return Xe}function i(Fe,Xe,et){let Ie=Xe-1,we=-1,ce=!1,Te,fe,Be,me;for(;++Ie<=et;){const Ye=Fe[Ie];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?we++:we--,me=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(Te&&!me&&!we&&!Be&&(Be=Ie),me=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:me=void 0}if(!we&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||we===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Te){let qe=Ie;for(fe=void 0;qe--;){const lt=Fe[qe];if(lt[1].type==="lineEnding"||lt[1].type==="lineEndingBlank"){if(lt[0]==="exit")continue;fe&&(Fe[fe][1].type="lineEndingBlank",ce=!0),lt[1].type="lineEnding",fe=qe}else if(!(lt[1].type==="linePrefix"||lt[1].type==="blockQuotePrefix"||lt[1].type==="blockQuotePrefixWhitespace"||lt[1].type==="blockQuoteMarker"||lt[1].type==="listItemIndent"))break}Be&&(!fe||Be<fe)&&(Te._spread=!0),Te.end=Object.assign({},fe?Fe[fe][1].start:Ye[1].end),Fe.splice(fe||Ie,0,["exit",Te,Ye[2]]),Ie++,et++}if(Ye[1].type==="listItemPrefix"){const qe={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};Te=qe,Fe.splice(Ie,0,["enter",qe,Ye[2]]),Ie++,et++,Be=void 0,me=!0}}}return Fe[Xe][1]._spread=ce,et}function a(Fe,Xe){return et;function et(Ie){o.call(this,Fe(Ie),Ie),Xe&&Xe.call(this,Ie)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Fe,Xe,et){this.stack[this.stack.length-1].children.push(Fe),this.stack.push(Fe),this.tokenStack.push([Xe,et||void 0]),Fe.position={start:a_(Xe.start),end:void 0}}function l(Fe){return Xe;function Xe(et){Fe&&Fe.call(this,et),u.call(this,et)}}function u(Fe,Xe){const et=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==Fe.type&&(Xe?Xe.call(this,Fe,Ie[0]):(Ie[1]||DSe).call(this,Fe,Ie[0]));else throw new Error("Cannot close `"+Fe.type+"` ("+LP({start:Fe.start,end:Fe.end})+"): it’s not open");et.position.end=a_(Fe.end)}function d(){return ple(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(Fe){if(this.data.expectingFirstListItemValue){const Xe=this.stack[this.stack.length-2];Xe.start=Number.parseInt(this.sliceSerialize(Fe),10),this.data.expectingFirstListItemValue=void 0}}function p(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.lang=Fe}function g(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.meta=Fe}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.value=Fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.value=Fe.replace(/(\r?\n|\r)$/g,"")}function y(Fe){const Xe=this.resume(),et=this.stack[this.stack.length-1];et.label=Xe,et.identifier=Lf(this.sliceSerialize(Fe)).toLowerCase()}function b(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.title=Fe}function E(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.url=Fe}function S(Fe){const Xe=this.stack[this.stack.length-1];if(!Xe.depth){const et=this.sliceSerialize(Fe).length;Xe.depth=et}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function C(Fe){const Xe=this.stack[this.stack.length-1];Xe.depth=this.sliceSerialize(Fe).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function A(Fe){const et=this.stack[this.stack.length-1].children;let Ie=et[et.length-1];(!Ie||Ie.type!=="text")&&(Ie=je(),Ie.position={start:a_(Fe.start),end:void 0},et.push(Ie)),this.stack.push(Ie)}function R(Fe){const Xe=this.stack.pop();Xe.value+=this.sliceSerialize(Fe),Xe.position.end=a_(Fe.end)}function I(Fe){const Xe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const et=Xe.children[Xe.children.length-1];et.position.end=a_(Fe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(Xe.type)&&(A.call(this,Fe),R.call(this,Fe))}function L(){this.data.atHardBreak=!0}function F(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.value=Fe}function O(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.value=Fe}function D(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.value=Fe}function M(){const Fe=this.stack[this.stack.length-1];if(this.data.inReference){const Xe=this.data.referenceType||"shortcut";Fe.type+="Reference",Fe.referenceType=Xe,delete Fe.url,delete Fe.title}else delete Fe.identifier,delete Fe.label;this.data.referenceType=void 0}function P(){const Fe=this.stack[this.stack.length-1];if(this.data.inReference){const Xe=this.data.referenceType||"shortcut";Fe.type+="Reference",Fe.referenceType=Xe,delete Fe.url,delete Fe.title}else delete Fe.identifier,delete Fe.label;this.data.referenceType=void 0}function N(Fe){const Xe=this.sliceSerialize(Fe),et=this.stack[this.stack.length-2];et.label=lPe(Xe),et.identifier=Lf(Xe).toLowerCase()}function $(){const Fe=this.stack[this.stack.length-1],Xe=this.resume(),et=this.stack[this.stack.length-1];if(this.data.inReference=!0,et.type==="link"){const Ie=Fe.children;et.children=Ie}else et.alt=Xe}function U(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.url=Fe}function B(){const Fe=this.resume(),Xe=this.stack[this.stack.length-1];Xe.title=Fe}function V(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function G(Fe){const Xe=this.resume(),et=this.stack[this.stack.length-1];et.label=Xe,et.identifier=Lf(this.sliceSerialize(Fe)).toLowerCase(),this.data.referenceType="full"}function Y(Fe){this.data.characterReferenceType=Fe.type}function W(Fe){const Xe=this.sliceSerialize(Fe),et=this.data.characterReferenceType;let Ie;et?(Ie=ZLe(Xe,et==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=gle(Xe);const we=this.stack[this.stack.length-1];we.value+=Ie}function Q(Fe){const Xe=this.stack.pop();Xe.position.end=a_(Fe.end)}function ie(Fe){R.call(this,Fe);const Xe=this.stack[this.stack.length-1];Xe.url=this.sliceSerialize(Fe)}function Z(Fe){R.call(this,Fe);const Xe=this.stack[this.stack.length-1];Xe.url="mailto:"+this.sliceSerialize(Fe)}function re(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function j(){return{type:"inlineCode",value:""}}function se(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function _e(){return{type:"heading",depth:0,children:[]}}function ye(){return{type:"break"}}function Ue(){return{type:"html",value:""}}function Se(){return{type:"image",title:null,url:"",alt:null}}function be(){return{type:"link",title:null,url:"",children:[]}}function ke(Fe){return{type:"list",ordered:Fe.type==="listOrdered",start:null,spread:Fe._spread,children:[]}}function Ae(Fe){return{type:"listItem",spread:Fe._spread,checked:null,children:[]}}function tt(){return{type:"paragraph",children:[]}}function Oe(){return{type:"strong",children:[]}}function je(){return{type:"text",value:""}}function ct(){return{type:"thematicBreak"}}}function a_(t){return{line:t.line,column:t.column,offset:t.offset}}function uPe(t,e){let r=-1;for(;++r<e.length;){const n=e[r];Array.isArray(n)?uPe(t,n):UFt(t,n)}}function UFt(t,e){let r;for(r in e)if(cPe.call(e,r))switch(r){case"canContainEols":{const n=e[r];n&&t[r].push(...n);break}case"transforms":{const n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{const n=e[r];n&&Object.assign(t[r],n);break}}}function DSe(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+LP({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+LP({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+LP({start:e.start,end:e.end})+") is still open")}function $Ft(t){const e=this;e.parser=r;function r(n){return FFt(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}const MSe={}.hasOwnProperty;function dPe(t,e){const r=e||{};function n(i,...a){let s=n.invalid;const o=n.handlers;if(i&&MSe.call(i,t)){const l=String(i[t]);s=MSe.call(o,l)?o[l]:n.unknown}if(s)return s.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const GFt={}.hasOwnProperty;function hPe(t,e){let r=-1,n;if(e.extensions)for(;++r<e.extensions.length;)hPe(t,e.extensions[r]);for(n in e)if(GFt.call(e,n))switch(n){case"extensions":break;case"unsafe":{LSe(t[n],e[n]);break}case"join":{LSe(t[n],e[n]);break}case"handlers":{zFt(t[n],e[n]);break}default:t.options[n]=e[n]}return t}function LSe(t,e){e&&t.push(...e)}function zFt(t,e){e&&Object.assign(t,e)}function qFt(t,e,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(t,a.current()),VFt);return i(),s}function VFt(t,e,r){return">"+(r?"":" ")+t}function fPe(t,e){return PSe(t,e.inConstruct,!0)&&!PSe(t,e.notInConstruct,!1)}function PSe(t,e,r){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return r;let n=-1;for(;++n<e.length;)if(t.includes(e[n]))return!0;return!1}function FSe(t,e,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
`&&fPe(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
`}function pPe(t,e){const r=String(t);let n=r.indexOf(e),i=n,a=0,s=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++a>s&&(s=a):a=1,i=n+e.length,n=r.indexOf(e,i);return s}function uJ(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function HFt(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function YFt(t,e,r,n){const i=HFt(r),a=t.value||"",s=i==="`"?"GraveAccent":"Tilde";if(uJ(t,r)){const h=r.enter("codeIndented"),f=r.indentLines(a,WFt);return h(),f}const o=r.createTracker(n),l=i.repeat(Math.max(pPe(a,i)+1,3)),u=r.enter("codeFenced");let d=o.move(l);if(t.lang){const h=r.enter(`codeFencedLang${s}`);d+=o.move(r.safe(t.lang,{before:d,after:" ",encode:["`"],...o.current()})),h()}if(t.lang&&t.meta){const h=r.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(r.safe(t.meta,{before:d,after:`
`,encode:["`"],...o.current()})),h()}return d+=o.move(`
`),a&&(d+=o.move(a+`
`)),d+=o.move(l),u(),d}function WFt(t,e,r){return(r?"":"    ")+t}function _le(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function KFt(t,e,r,n){const i=_le(r),a=i==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const l=r.createTracker(n);let u=l.move("[");return u+=l.move(r.safe(r.associationId(t),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!t.url||/[\0- \u007F]/.test(t.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(t.url,{before:u,after:t.title?" ":`
`,...l.current()}))),o(),t.title&&(o=r.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(r.safe(t.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function jFt(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function u1(t){return"&#x"+t.toString(16).toUpperCase()+";"}function s7(t,e,r){const n=oA(t),i=oA(e);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}gPe.peek=XFt;function gPe(t,e,r,n){const i=jFt(r),a=r.enter("emphasis"),s=r.createTracker(n),o=s.move(i);let l=s.move(r.containerPhrasing(t,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),d=s7(n.before.charCodeAt(n.before.length-1),u,i);d.inside&&(l=u1(u)+l.slice(1));const h=l.charCodeAt(l.length-1),f=s7(n.after.charCodeAt(0),h,i);f.inside&&(l=l.slice(0,-1)+u1(h));const p=s.move(i);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},o+l+p}function XFt(t,e,r){return r.options.emphasis||"*"}const O5=(function(t){if(t==null)return eBt;if(typeof t=="function")return nU(t);if(typeof t=="object")return Array.isArray(t)?QFt(t):ZFt(t);if(typeof t=="string")return JFt(t);throw new Error("Expected function, string, or object as test")});function QFt(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=O5(t[r]);return nU(n);function n(...i){let a=-1;for(;++a<e.length;)if(e[a].apply(this,i))return!0;return!1}}function ZFt(t){const e=t;return nU(r);function r(n){const i=n;let a;for(a in t)if(i[a]!==e[a])return!1;return!0}}function JFt(t){return nU(e);function e(r){return r&&r.type===t}}function nU(t){return e;function e(r,n,i){return!!(tBt(r)&&t.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function eBt(){return!0}function tBt(t){return t!==null&&typeof t=="object"&&"type"in t}const mPe=[],rBt=!0,dJ=!1,_Pe="skip";function iU(t,e,r,n){let i;typeof e=="function"&&typeof r!="function"?(n=r,r=e):i=e;const a=O5(i),s=n?-1:1;o(t,void 0,[])();function o(l,u,d){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=mPe,g,m,_;if((!e||a(l,u,d[d.length-1]||void 0))&&(p=nBt(r(l,d)),p[0]===dJ))return p;if("children"in l&&l.children){const v=l;if(v.children&&p[0]!==_Pe)for(m=(n?v.children.length:-1)+s,_=d.concat(v);m>-1&&m<v.children.length;){const y=v.children[m];if(g=o(y,m,_)(),g[0]===dJ)return g;m=typeof g[1]=="number"?g[1]:m+s}}return p}}}function nBt(t){return Array.isArray(t)?t:typeof t=="number"?[rBt,t]:t==null?mPe:[t]}function sp(t,e,r,n){let i,a,s;typeof e=="function"&&typeof r!="function"?(a=void 0,s=e,i=r):(a=e,s=r,i=n),iU(t,a,o,i);function o(l,u){const d=u[u.length-1],h=d?d.children.indexOf(l):void 0;return s(l,h,d)}}function vPe(t,e){let r=!1;return sp(t,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,dJ}),!!((!t.depth||t.depth<3)&&ple(t)&&(e.options.setext||r))}function iBt(t,e,r,n){const i=Math.max(Math.min(6,t.depth||1),1),a=r.createTracker(n);if(vPe(t,r)){const d=r.enter("headingSetext"),h=r.enter("phrasing"),f=r.containerPhrasing(t,{...a.current(),before:`
`,after:`
`});return h(),d(),f+`
`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
`))+1))}const s="#".repeat(i),o=r.enter("headingAtx"),l=r.enter("phrasing");a.move(s+" ");let u=r.containerPhrasing(t,{before:"# ",after:`
`,...a.current()});return/^[\t ]/.test(u)&&(u=u1(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}yPe.peek=aBt;function yPe(t){return t.value||""}function aBt(){return"<"}bPe.peek=sBt;function bPe(t,e,r,n){const i=_le(r),a=i==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const l=r.createTracker(n);let u=l.move("![");return u+=l.move(r.safe(t.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(t.url,{before:u,after:t.title?" ":")",...l.current()}))),o(),t.title&&(o=r.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(r.safe(t.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function sBt(){return"!"}EPe.peek=oBt;function EPe(t,e,r,n){const i=t.referenceType,a=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(n);let l=o.move("![");const u=r.safe(t.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(t),{before:l,after:"]",...o.current()});return s(),r.stack=d,a(),i==="full"||!u||u!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function oBt(){return"!"}SPe.peek=lBt;function SPe(t,e,r){let n=t.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const s=r.unsafe[a],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return i+n+i}function lBt(){return"`"}function TPe(t,e){const r=ple(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}CPe.peek=cBt;function CPe(t,e,r,n){const i=_le(r),a=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let o,l;if(TPe(t,r)){const d=r.stack;r.stack=[],o=r.enter("autolink");let h=s.move("<");return h+=s.move(r.containerPhrasing(t,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),r.stack=d,h}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(t,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(t.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(t.url,{before:u,after:t.title?" ":")",...s.current()}))),l(),t.title&&(l=r.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(r.safe(t.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function cBt(t,e,r){return TPe(t,r)?"<":"["}wPe.peek=uBt;function wPe(t,e,r,n){const i=t.referenceType,a=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(n);let l=o.move("[");const u=r.containerPhrasing(t,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(t),{before:l,after:"]",...o.current()});return s(),r.stack=d,a(),i==="full"||!u||u!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function uBt(){return"["}function vle(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function dBt(t){const e=vle(t),r=t.options.bulletOther;if(!r)return e==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+r+"`) to be different");return r}function hBt(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function xPe(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function fBt(t,e,r,n){const i=r.enter("list"),a=r.bulletCurrent;let s=t.ordered?hBt(r):vle(r);const o=t.ordered?s==="."?")":".":dBt(r);let l=e&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!t.ordered){const d=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),xPe(r)===s&&d){let h=-1;for(;++h<t.children.length;){const f=t.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(t,n);return r.bulletLastUsed=s,r.bulletCurrent=a,i(),u}function pBt(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function gBt(t,e,r,n){const i=pBt(r);let a=r.bulletCurrent||vle(r);e&&e.type==="list"&&e.ordered&&(a=(typeof e.start=="number"&&e.start>-1?e.start:1)+(r.options.incrementListMarker===!1?0:e.children.indexOf(t))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(n);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(t,o.current()),d);return l(),u;function d(h,f,p){return f?(p?"":" ".repeat(s))+h:(p?a:a+" ".repeat(s-a.length))+h}}function mBt(t,e,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),s=r.containerPhrasing(t,n);return a(),i(),s}const _Bt=O5(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function vBt(t,e,r,n){return(t.children.some(function(s){return _Bt(s)})?r.containerPhrasing:r.containerFlow).call(r,t,n)}function yBt(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}APe.peek=bBt;function APe(t,e,r,n){const i=yBt(r),a=r.enter("strong"),s=r.createTracker(n),o=s.move(i+i);let l=s.move(r.containerPhrasing(t,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),d=s7(n.before.charCodeAt(n.before.length-1),u,i);d.inside&&(l=u1(u)+l.slice(1));const h=l.charCodeAt(l.length-1),f=s7(n.after.charCodeAt(0),h,i);f.inside&&(l=l.slice(0,-1)+u1(h));const p=s.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},o+l+p}function bBt(t,e,r){return r.options.strong||"*"}function EBt(t,e,r,n){return r.safe(t.value,n)}function SBt(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function TBt(t,e,r){const n=(xPe(r)+(r.options.ruleSpaces?" ":"")).repeat(SBt(r));return r.options.ruleSpaces?n.slice(0,-1):n}const yle={blockquote:qFt,break:FSe,code:YFt,definition:KFt,emphasis:gPe,hardBreak:FSe,heading:iBt,html:yPe,image:bPe,imageReference:EPe,inlineCode:SPe,link:CPe,linkReference:wPe,list:fBt,listItem:gBt,paragraph:mBt,root:vBt,strong:APe,text:EBt,thematicBreak:TBt},CBt=[wBt];function wBt(t,e,r,n){if(e.type==="code"&&uJ(e,n)&&(t.type==="list"||t.type===e.type&&uJ(t,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&vPe(e,n))?void 0:r.spread?1:0}const Ev=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],xBt=[{character:"	",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Ev},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Ev},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ 	\r
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Ev},{atBreak:!0,character:"+",after:`(?:[ 	\r
])`},{atBreak:!0,character:"-",after:`(?:[ 	\r
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ 	\r
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ev},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ev},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ev},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ev},{atBreak:!0,character:"~"}];function ABt(t){return t.label||!t.identifier?t.label||"":lPe(t.identifier)}function RBt(t){if(!t._compiled){const e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function OBt(t,e,r){const n=e.indexStack,i=t.children||[],a=[];let s=-1,o=r.before,l;n.push(-1);let u=e.createTracker(r);for(;++s<i.length;){const d=i[s];let h;if(n[n.length-1]=s,s+1<i.length){let g=e.handle.handlers[i[s+1].type];g&&g.peek&&(g=g.peek),h=g?g(i[s+1],t,e,{before:"",after:"",...u.current()}).charAt(0):""}else h=r.after;a.length>0&&(o==="\r"||o===`
`)&&d.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),o=" ",u=e.createTracker(r),u.move(a.join("")));let f=e.handle(d,t,e,{...u.current(),after:h,before:o});l&&l===f.slice(0,1)&&(f=u1(l.charCodeAt(0))+f.slice(1));const p=e.attentionEncodeSurroundingInfo;e.attentionEncodeSurroundingInfo=void 0,l=void 0,p&&(a.length>0&&p.before&&o===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+u1(o.charCodeAt(0))),p.after&&(l=h)),u.move(f),a.push(f),o=f.slice(-1)}return n.pop(),a.join("")}function IBt(t,e,r){const n=e.indexStack,i=t.children||[],a=e.createTracker(r),s=[];let o=-1;for(n.push(-1);++o<i.length;){const l=i[o];n[n.length-1]=o,s.push(a.move(e.handle(l,t,e,{before:`
`,after:`
`,...a.current()}))),l.type!=="list"&&(e.bulletLastUsed=void 0),o<i.length-1&&s.push(a.move(NBt(l,i[o+1],t,e)))}return n.pop(),s.join("")}function NBt(t,e,r,n){let i=n.join.length;for(;i--;){const a=n.join[i](t,e,r,n);if(a===!0||a===1)break;if(typeof a=="number")return`
`.repeat(1+a);if(a===!1)return`

<!---->

`}return`

`}const kBt=/\r?\n|\r/g;function DBt(t,e){const r=[];let n=0,i=0,a;for(;a=kBt.exec(t);)s(t.slice(n,a.index)),r.push(a[0]),n=a.index+a[0].length,i++;return s(t.slice(n)),r.join("");function s(o){r.push(e(o,i,!o))}}function MBt(t,e,r){const n=(r.before||"")+(e||"")+(r.after||""),i=[],a=[],s={};let o=-1;for(;++o<t.unsafe.length;){const d=t.unsafe[o];if(!fPe(t.stack,d))continue;const h=t.compilePattern(d);let f;for(;f=h.exec(n);){const p="before"in d||!!d.atBreak,g="after"in d,m=f.index+(p?f[1].length:0);i.includes(m)?(s[m].before&&!p&&(s[m].before=!1),s[m].after&&!g&&(s[m].after=!1)):(i.push(m),s[m]={before:p,after:g})}}i.sort(LBt);let l=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);for(o=-1;++o<i.length;){const d=i[o];d<l||d>=u||d+1<u&&i[o+1]===d+1&&s[d].after&&!s[d+1].before&&!s[d+1].after||i[o-1]===d-1&&s[d].before&&!s[d-1].before&&!s[d-1].after||(l!==d&&a.push(BSe(n.slice(l,d),"\\")),l=d,/[!-/:-@[-`{-~]/.test(n.charAt(d))&&(!r.encode||!r.encode.includes(n.charAt(d)))?a.push("\\"):(a.push(u1(n.charCodeAt(d))),l++))}return a.push(BSe(n.slice(l,u),r.after)),a.join("")}function LBt(t,e){return t-e}function BSe(t,e){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],a=t+e;let s=-1,o=0,l;for(;l=r.exec(a);)n.push(l.index);for(;++s<n.length;)o!==n[s]&&i.push(t.slice(o,n[s])),i.push("\\"),o=n[s];return i.push(t.slice(o)),i.join("")}function PBt(t){const e=t||{},r=e.now||{};let n=e.lineShift||0,i=r.line||1,a=r.column||1;return{move:l,current:s,shift:o};function s(){return{now:{line:i,column:a},lineShift:n}}function o(u){n+=u}function l(u){const d=u||"",h=d.split(/\r?\n|\r/g),f=h[h.length-1];return i+=h.length-1,a=h.length===1?a+f.length:1+f.length+n,d}}function FBt(t,e){const r=e||{},n={associationId:ABt,containerPhrasing:GBt,containerFlow:zBt,createTracker:PBt,compilePattern:RBt,enter:a,handlers:{...yle},handle:void 0,indentLines:DBt,indexStack:[],join:[...CBt],options:{},safe:qBt,stack:[],unsafe:[...xBt]};hPe(n,r),n.options.tightDefinitions&&n.join.push($Bt),n.handle=dPe("type",{invalid:BBt,unknown:UBt,handlers:n.handlers});let i=n.handle(t,void 0,n,{before:`
`,after:`
`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
`),i;function a(s){return n.stack.push(s),o;function o(){n.stack.pop()}}}function BBt(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function UBt(t){const e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}function $Bt(t,e){if(t.type==="definition"&&t.type===e.type)return 0}function GBt(t,e){return OBt(t,this,e)}function zBt(t,e){return IBt(t,this,e)}function qBt(t,e){return MBt(this,t,e)}function VBt(t){const e=this;e.compiler=r;function r(n){return FBt(n,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}}function USe(t){if(t)throw t}var xW,$Se;function HBt(){if($Se)return xW;$Se=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):e.call(u)==="[object Array]"},a=function(u){if(!u||e.call(u)!=="[object Object]")return!1;var d=t.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&t.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!h)return!1;var f;for(f in u);return typeof f>"u"||t.call(u,f)},s=function(u,d){r&&d.name==="__proto__"?r(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},o=function(u,d){if(d==="__proto__")if(t.call(u,d)){if(n)return n(u,d).value}else return;return u[d]};return xW=function l(){var u,d,h,f,p,g,m=arguments[0],_=1,v=arguments.length,y=!1;for(typeof m=="boolean"&&(y=m,m=arguments[1]||{},_=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});_<v;++_)if(u=arguments[_],u!=null)for(d in u)h=o(m,d),f=o(u,d),m!==f&&(y&&f&&(a(f)||(p=i(f)))?(p?(p=!1,g=h&&i(h)?h:[]):g=h&&a(h)?h:{},s(m,{name:d,newValue:l(y,g,f)})):typeof f<"u"&&s(m,{name:d,newValue:f}));return m},xW}var YBt=HBt();const AW=sd(YBt);function hJ(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function WBt(){const t=[],e={run:r,use:n};return e;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...u){const d=t[++a];let h=-1;if(l){s(l);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,d?KBt(d,o)(...u):s(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function KBt(t,e){let r;return n;function n(...s){const o=t.length>s.length;let l;o&&s.push(i);try{l=t.apply(this,s)}catch(u){const d=u;if(o&&r)throw d;return i(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){r||(r=!0,e(s,...o))}function a(s){i(null,s)}}function jBt(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?GSe(t.position):"start"in t||"end"in t?GSe(t):"line"in t||"column"in t?fJ(t):""}function fJ(t){return zSe(t&&t.line)+":"+zSe(t&&t.column)}function GSe(t){return fJ(t&&t.start)+"-"+fJ(t&&t.end)}function zSe(t){return t&&typeof t=="number"?t:1}class ld extends Error{constructor(e,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof e=="string"?i=e:!a.cause&&e&&(s=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.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=jBt(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&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}ld.prototype.file="";ld.prototype.name="";ld.prototype.reason="";ld.prototype.message="";ld.prototype.stack="";ld.prototype.column=void 0;ld.prototype.line=void 0;ld.prototype.ancestors=void 0;ld.prototype.cause=void 0;ld.prototype.fatal=void 0;ld.prototype.place=void 0;ld.prototype.ruleId=void 0;ld.prototype.source=void 0;const Ip={basename:XBt,dirname:QBt,extname:ZBt,join:JBt,sep:"/"};function XBt(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');I5(t);let r=0,n=-1,i=t.length,a;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let s=-1,o=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(t.codePointAt(i)===e.codePointAt(o--)?o<0&&(n=i):(o=-1,n=s));return r===n?n=s:n<0&&(n=t.length),t.slice(r,n)}function QBt(t){if(I5(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function ZBt(t){I5(t);let e=t.length,r=-1,n=0,i=-1,a=0,s;for(;e--;){const o=t.codePointAt(e);if(o===47){if(s){n=e+1;break}continue}r<0&&(s=!0,r=e+1),o===46?i<0?i=e:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":t.slice(i,r)}function JBt(...t){let e=-1,r;for(;++e<t.length;)I5(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":eUt(r)}function eUt(t){I5(t);const e=t.codePointAt(0)===47;let r=tUt(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function tUt(t,e){let r="",n=0,i=-1,a=0,s=-1,o,l;for(;++s<=t.length;){if(s<t.length)o=t.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,s):r=t.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function I5(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const rUt={cwd:nUt};function nUt(){return"/"}function pJ(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function iUt(t){if(typeof t=="string")t=new URL(t);else if(!pJ(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return aUt(t)}function aUt(t){if(t.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const e=t.pathname;let r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){const n=e.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const RW=["history","path","basename","stem","extname","dirname"];class sUt{constructor(e){let r;e?pJ(e)?r={path:e}:typeof e=="string"||oUt(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":rUt.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<RW.length;){const a=RW[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)RW.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Ip.basename(this.path):void 0}set basename(e){IW(e,"basename"),OW(e,"basename"),this.path=Ip.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Ip.dirname(this.path):void 0}set dirname(e){qSe(this.basename,"dirname"),this.path=Ip.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Ip.extname(this.path):void 0}set extname(e){if(OW(e,"extname"),qSe(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ip.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){pJ(e)&&(e=iUt(e)),IW(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Ip.basename(this.path,this.extname):void 0}set stem(e){IW(e,"stem"),OW(e,"stem"),this.path=Ip.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){const i=this.message(e,r,n);throw i.fatal=!0,i}info(e,r,n){const i=this.message(e,r,n);return i.fatal=void 0,i}message(e,r,n){const i=new ld(e,r,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 this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function OW(t,e){if(t&&t.includes(Ip.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Ip.sep+"`")}function IW(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function qSe(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function oUt(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const lUt=(function(t){const n=this.constructor.prototype,i=n[t],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),cUt={}.hasOwnProperty;class ble extends lUt{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=WBt()}copy(){const e=new ble;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];e.use(...n)}return e.data(AW(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(DW("data",this.frozen),this.namespace[e]=r,this):cUt.call(this.namespace,e)&&this.namespace[e]||void 0:e?(DW("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(e,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const r=eL(e),n=this.parser||this.Parser;return NW("parse",n),n(String(r),r)}process(e,r){const n=this;return this.freeze(),NW("process",this.parser||this.Parser),kW("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const o=eL(e),l=n.parse(o);n.run(l,o,function(d,h,f){if(d||!h||!f)return u(d);const p=h,g=n.stringify(p,f);hUt(g)?f.value=g:f.result=g,u(d,f)});function u(d,h){d||!h?s(d):a?a(h):r(void 0,h)}}}processSync(e){let r=!1,n;return this.freeze(),NW("processSync",this.parser||this.Parser),kW("processSync",this.compiler||this.Compiler),this.process(e,i),HSe("processSync","process",r),n;function i(a,s){r=!0,USe(a),n=s}}run(e,r,n){VSe(e),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,o){const l=eL(r);i.run(e,l,u);function u(d,h,f){const p=h||e;d?o(d):s?s(p):n(void 0,p,f)}}}runSync(e,r){let n=!1,i;return this.run(e,r,a),HSe("runSync","run",n),i;function a(s,o){USe(s),i=o,n=!0}}stringify(e,r){this.freeze();const n=eL(r),i=this.compiler||this.Compiler;return kW("stringify",i),VSe(e),i(e,n)}use(e,...r){const n=this.attachers,i=this.namespace;if(DW("use",this.frozen),e!=null)if(typeof e=="function")l(e,r);else if(typeof e=="object")Array.isArray(e)?o(e):s(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...h]=u;l(d,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=AW(!0,i.settings,u.settings))}function o(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const h=u[d];a(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let h=-1,f=-1;for(;++h<n.length;)if(n[h][0]===u){f=h;break}if(f===-1)n.push([u,...d]);else if(d.length>0){let[p,...g]=d;const m=n[f][1];hJ(m)&&hJ(p)&&(p=AW(!0,m,p)),n[f]=[u,p,...g]}}}}const uUt=new ble().freeze();function NW(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function kW(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function DW(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function VSe(t){if(!hJ(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function HSe(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function eL(t){return dUt(t)?t:new sUt(t)}function dUt(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function hUt(t){return typeof t=="string"||fUt(t)}function fUt(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const pUt=uUt().use($Ft).use(VBt).freeze();function gUt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function RPe(t,e,r){const i=O5((r||{}).ignore||[]),a=mUt(e);let s=-1;for(;++s<a.length;)iU(t,"text",o);function o(u,d){let h=-1,f;for(;++h<d.length;){const p=d[h],g=f?f.children:void 0;if(i(p,g?g.indexOf(p):void 0,f))return;f=p}if(f)return l(u,d)}function l(u,d){const h=d[d.length-1],f=a[s][0],p=a[s][1];let g=0;const _=h.children.indexOf(u);let v=!1,y=[];f.lastIndex=0;let b=f.exec(u.value);for(;b;){const E=b.index,S={index:b.index,input:b.input,stack:[...d,u]};let T=p(...b,S);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?f.lastIndex=E+1:(g!==E&&y.push({type:"text",value:u.value.slice(g,E)}),Array.isArray(T)?y.push(...T):T&&y.push(T),g=E+b[0].length,v=!0),!f.global)break;b=f.exec(u.value)}return v?(g<u.value.length&&y.push({type:"text",value:u.value.slice(g)}),h.children.splice(_,1,...y)):y=[u],_+y.length}}function mUt(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let n=-1;for(;++n<r.length;){const i=r[n];e.push([_Ut(i[0]),vUt(i[1])])}return e}function _Ut(t){return typeof t=="string"?new RegExp(gUt(t),"g"):t}function vUt(t){return typeof t=="function"?t:function(){return t}}function yUt(t){RPe(t,[/\r?\n|\r/g,bUt])}function bUt(){return{type:"break"}}function EUt(){return function(t){yUt(t)}}function o7(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}const MW="phrasing",LW=["autolink","link","image","label"];function SUt(){return{transforms:[OUt],enter:{literalAutolink:CUt,literalAutolinkEmail:PW,literalAutolinkHttp:PW,literalAutolinkWww:PW},exit:{literalAutolink:RUt,literalAutolinkEmail:AUt,literalAutolinkHttp:wUt,literalAutolinkWww:xUt}}}function TUt(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:MW,notInConstruct:LW},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:MW,notInConstruct:LW},{character:":",before:"[ps]",after:"\\/",inConstruct:MW,notInConstruct:LW}]}}function CUt(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function PW(t){this.config.enter.autolinkProtocol.call(this,t)}function wUt(t){this.config.exit.autolinkProtocol.call(this,t)}function xUt(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function AUt(t){this.config.exit.autolinkEmail.call(this,t)}function RUt(t){this.exit(t)}function OUt(t){RPe(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,IUt],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),NUt]],{ignore:["link","linkReference"]})}function IUt(t,e,r,n,i){let a="";if(!OPe(i)||(/^w/i.test(e)&&(r=e+r,e="",a="http://"),!kUt(r)))return!1;const s=DUt(r+n);if(!s[0])return!1;const o={type:"link",title:null,url:a+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function NUt(t,e,r,n){return!OPe(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+r,children:[{type:"text",value:e+"@"+r}]}}function kUt(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function DUt(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let r=e[0],n=r.indexOf(")");const i=o7(t,"(");let a=o7(t,")");for(;n!==-1&&i>a;)t+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[t,r]}function OPe(t,e){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Ab(r)||tU(r))&&(!e||r!==47)}IPe.peek=zUt;function MUt(){this.buffer()}function LUt(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function PUt(){this.buffer()}function FUt(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function BUt(t){const e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Lf(this.sliceSerialize(t)).toLowerCase(),r.label=e}function UUt(t){this.exit(t)}function $Ut(t){const e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Lf(this.sliceSerialize(t)).toLowerCase(),r.label=e}function GUt(t){this.exit(t)}function zUt(){return"["}function IPe(t,e,r,n){const i=r.createTracker(n);let a=i.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return a+=i.move(r.safe(r.associationId(t),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function qUt(){return{enter:{gfmFootnoteCallString:MUt,gfmFootnoteCall:LUt,gfmFootnoteDefinitionLabelString:PUt,gfmFootnoteDefinition:FUt},exit:{gfmFootnoteCallString:BUt,gfmFootnoteCall:UUt,gfmFootnoteDefinitionLabelString:$Ut,gfmFootnoteDefinition:GUt}}}function VUt(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:r,footnoteReference:IPe},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),d=a.enter("label");return l+=o.move(a.safe(a.associationId(n),{before:l,after:"]"})),d(),l+=o.move("]:"),n.children&&n.children.length>0&&(o.shift(4),l+=o.move((e?`
`:" ")+a.indentLines(a.containerFlow(n,o.current()),e?NPe:HUt))),u(),l}}function HUt(t,e,r){return e===0?t:NPe(t,e,r)}function NPe(t,e,r){return(r?"":"    ")+t}const YUt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];kPe.peek=QUt;function WUt(){return{canContainEols:["delete"],enter:{strikethrough:jUt},exit:{strikethrough:XUt}}}function KUt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:YUt}],handlers:{delete:kPe}}}function jUt(t){this.enter({type:"delete",children:[]},t)}function XUt(t){this.exit(t)}function kPe(t,e,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let s=i.move("~~");return s+=r.containerPhrasing(t,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function QUt(){return"~"}function ZUt(t){return t.length}function JUt(t,e){const r=e||{},n=(r.align||[]).concat(),i=r.stringLength||ZUt,a=[],s=[],o=[],l=[];let u=0,d=-1;for(;++d<t.length;){const m=[],_=[];let v=-1;for(t[d].length>u&&(u=t[d].length);++v<t[d].length;){const y=e$t(t[d][v]);if(r.alignDelimiters!==!1){const b=i(y);_[v]=b,(l[v]===void 0||b>l[v])&&(l[v]=b)}m.push(y)}s[d]=m,o[d]=_}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<u;)a[h]=YSe(n[h]);else{const m=YSe(n);for(;++h<u;)a[h]=m}h=-1;const f=[],p=[];for(;++h<u;){const m=a[h];let _="",v="";m===99?(_=":",v=":"):m===108?_=":":m===114&&(v=":");let y=r.alignDelimiters===!1?1:Math.max(1,l[h]-_.length-v.length);const b=_+"-".repeat(y)+v;r.alignDelimiters!==!1&&(y=_.length+y+v.length,y>l[h]&&(l[h]=y),p[h]=y),f[h]=b}s.splice(1,0,f),o.splice(1,0,p),d=-1;const g=[];for(;++d<s.length;){const m=s[d],_=o[d];h=-1;const v=[];for(;++h<u;){const y=m[h]||"";let b="",E="";if(r.alignDelimiters!==!1){const S=l[h]-(_[h]||0),T=a[h];T===114?b=" ".repeat(S):T===99?S%2?(b=" ".repeat(S/2+.5),E=" ".repeat(S/2-.5)):(b=" ".repeat(S/2),E=b):E=" ".repeat(S)}r.delimiterStart!==!1&&!h&&v.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&y==="")&&(r.delimiterStart!==!1||h)&&v.push(" "),r.alignDelimiters!==!1&&v.push(b),v.push(y),r.alignDelimiters!==!1&&v.push(E),r.padding!==!1&&v.push(" "),(r.delimiterEnd!==!1||h!==u-1)&&v.push("|")}g.push(r.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return g.join(`
`)}function e$t(t){return t==null?"":String(t)}function YSe(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function t$t(){return{enter:{table:r$t,tableData:WSe,tableHeader:WSe,tableRow:i$t},exit:{codeText:a$t,table:n$t,tableData:FW,tableHeader:FW,tableRow:FW}}}function r$t(t){const e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function n$t(t){this.exit(t),this.data.inTable=void 0}function i$t(t){this.enter({type:"tableRow",children:[]},t)}function FW(t){this.exit(t)}function WSe(t){this.enter({type:"tableCell",children:[]},t)}function a$t(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,s$t));const r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}function s$t(t,e){return e==="|"?e:t}function o$t(t){const e=t||{},r=e.tableCellPadding,n=e.tablePipeAlign,i=e.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(p,g,m,_){return u(d(p,m,_),p.align)}function o(p,g,m,_){const v=h(p,m,_),y=u([v]);return y.slice(0,y.indexOf(`
`))}function l(p,g,m,_){const v=m.enter("tableCell"),y=m.enter("phrasing"),b=m.containerPhrasing(p,{..._,before:a,after:a});return y(),v(),b}function u(p,g){return JUt(p,{align:g,alignDelimiters:n,padding:r,stringLength:i})}function d(p,g,m){const _=p.children;let v=-1;const y=[],b=g.enter("table");for(;++v<_.length;)y[v]=h(_[v],g,m);return b(),y}function h(p,g,m){const _=p.children;let v=-1;const y=[],b=g.enter("tableRow");for(;++v<_.length;)y[v]=l(_[v],p,g,m);return b(),y}function f(p,g,m){let _=yle.inlineCode(p,g,m);return m.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function l$t(){return{exit:{taskListCheckValueChecked:KSe,taskListCheckValueUnchecked:KSe,paragraph:u$t}}}function c$t(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:d$t}}}function KSe(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function u$t(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=e.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function d$t(t,e,r,n){const i=t.children[0],a=typeof t.checked=="boolean"&&i&&i.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",o=r.createTracker(n);a&&o.move(s);let l=yle.listItem(t,e,r,{...n,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+s}}function h$t(){return[SUt(),qUt(),WUt(),t$t(),l$t()]}function f$t(t){return{extensions:[TUt(),VUt(t),KUt(),o$t(t),c$t()]}}const p$t={tokenize:b$t,partial:!0},DPe={tokenize:E$t,partial:!0},MPe={tokenize:S$t,partial:!0},LPe={tokenize:T$t,partial:!0},g$t={tokenize:C$t,partial:!0},PPe={name:"wwwAutolink",tokenize:v$t,previous:BPe},FPe={name:"protocolAutolink",tokenize:y$t,previous:UPe},A0={name:"emailAutolink",tokenize:_$t,previous:$Pe},wg={};function m$t(){return{text:wg}}let Sv=48;for(;Sv<123;)wg[Sv]=A0,Sv++,Sv===58?Sv=65:Sv===91&&(Sv=97);wg[43]=A0;wg[45]=A0;wg[46]=A0;wg[95]=A0;wg[72]=[A0,FPe];wg[104]=[A0,FPe];wg[87]=[A0,PPe];wg[119]=[A0,PPe];function _$t(t,e,r){const n=this;let i,a;return s;function s(h){return!gJ(h)||!$Pe.call(n,n.previous)||Ele(n.events)?r(h):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(h))}function o(h){return gJ(h)?(t.consume(h),o):h===64?(t.consume(h),l):r(h)}function l(h){return h===46?t.check(g$t,d,u)(h):h===45||h===95||xc(h)?(a=!0,t.consume(h),l):d(h)}function u(h){return t.consume(h),i=!0,l}function d(h){return a&&i&&ru(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(h)):r(h)}}function v$t(t,e,r){const n=this;return i;function i(s){return s!==87&&s!==119||!BPe.call(n,n.previous)||Ele(n.events)?r(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(p$t,t.attempt(DPe,t.attempt(MPe,a),r),r)(s))}function a(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function y$t(t,e,r){const n=this;let i="",a=!1;return s;function s(h){return(h===72||h===104)&&UPe.call(n,n.previous)&&!Ele(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),t.consume(h),o):r(h)}function o(h){if(ru(h)&&i.length<5)return i+=String.fromCodePoint(h),t.consume(h),o;if(h===58){const f=i.toLowerCase();if(f==="http"||f==="https")return t.consume(h),l}return r(h)}function l(h){return h===47?(t.consume(h),a?u:(a=!0,l)):r(h)}function u(h){return h===null||a7(h)||Qa(h)||Ab(h)||tU(h)?r(h):t.attempt(DPe,t.attempt(MPe,d),r)(h)}function d(h){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(h)}}function b$t(t,e,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,t.consume(s),i):s===46&&n===3?(t.consume(s),a):r(s)}function a(s){return s===null?r(s):e(s)}}function E$t(t,e,r){let n,i,a;return s;function s(u){return u===46||u===95?t.check(LPe,l,o)(u):u===null||Qa(u)||Ab(u)||u!==45&&tU(u)?l(u):(a=!0,t.consume(u),s)}function o(u){return u===95?n=!0:(i=n,n=void 0),t.consume(u),s}function l(u){return i||n||!a?r(u):e(u)}}function S$t(t,e){let r=0,n=0;return i;function i(s){return s===40?(r++,t.consume(s),i):s===41&&n<r?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(LPe,e,a)(s):s===null||Qa(s)||Ab(s)?e(s):(t.consume(s),i)}function a(s){return s===41&&n++,t.consume(s),i}}function T$t(t,e,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),n):o===38?(t.consume(o),a):o===93?(t.consume(o),i):o===60||o===null||Qa(o)||Ab(o)?e(o):r(o)}function i(o){return o===null||o===40||o===91||Qa(o)||Ab(o)?e(o):n(o)}function a(o){return ru(o)?s(o):r(o)}function s(o){return o===59?(t.consume(o),n):ru(o)?(t.consume(o),s):r(o)}}function C$t(t,e,r){return n;function n(a){return t.consume(a),i}function i(a){return xc(a)?r(a):e(a)}}function BPe(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Qa(t)}function UPe(t){return!ru(t)}function $Pe(t){return!(t===47||gJ(t))}function gJ(t){return t===43||t===45||t===46||t===95||xc(t)}function Ele(t){let e=t.length,r=!1;for(;e--;){const n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const w$t={tokenize:D$t,partial:!0};function x$t(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:I$t,continuation:{tokenize:N$t},exit:k$t}},text:{91:{name:"gfmFootnoteCall",tokenize:O$t},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:A$t,resolveTo:R$t}}}}function A$t(t,e,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;i--;){const l=n.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Lf(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?r(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function R$t(t,e){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[t[r+1],t[r+2],["enter",n,e],t[r+3],t[r+4],["enter",i,e],["exit",i,e],["enter",a,e],["enter",s,e],["exit",s,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",n,e]];return t.splice(r,t.length-r+1,...o),t}function O$t(t,e,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,s;return o;function o(h){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?r(h):(t.enter("gfmFootnoteCallMarker"),t.consume(h),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",u)}function u(h){if(a>999||h===93&&!s||h===null||h===91||Qa(h))return r(h);if(h===93){t.exit("chunkString");const f=t.exit("gfmFootnoteCallString");return i.includes(Lf(n.sliceSerialize(f)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(h)}return Qa(h)||(s=!0),a++,t.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(t.consume(h),a++,u):u(h)}}function I$t(t,e,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):r(g)}function d(g){if(s>999||g===93&&!o||g===null||g===91||Qa(g))return r(g);if(g===93){t.exit("chunkString");const m=t.exit("gfmFootnoteDefinitionLabelString");return a=Lf(n.sliceSerialize(m)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),f}return Qa(g)||(o=!0),s++,t.consume(g),g===92?h:d}function h(g){return g===91||g===92||g===93?(t.consume(g),s++,d):d(g)}function f(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),i.includes(a)||i.push(a),Hi(t,p,"gfmFootnoteDefinitionWhitespace")):r(g)}function p(g){return e(g)}}function N$t(t,e,r){return t.check(R5,e,t.attempt(w$t,e,r))}function k$t(t){t.exit("gfmFootnoteDefinition")}function D$t(t,e,r){const n=this;return Hi(t,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(a):r(a)}}function M$t(t){let r=(t||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",h,o]],p=o.parser.constructs.insideSpan.null;p&&Bd(f,f.length,0,rU(p,s.slice(u+1,l),o)),Bd(f,f.length,0,[["exit",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),Bd(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,o,l){const u=this.previous,d=this.events;let h=0;return f;function f(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const m=oA(u);if(g===126)return h>1?l(g):(s.consume(g),h++,p);if(h<2&&!r)return l(g);const _=s.exit("strikethroughSequenceTemporary"),v=oA(g);return _._open=!v||v===2&&!!m,_._close=!m||m===2&&!!v,o(g)}}}class L$t{constructor(){this.map=[]}add(e,r,n){P$t(this,e,r,n)}consume(e){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push(e.slice()),e.length=0;let i=n.pop();for(;i;){for(const a of i)e.push(a);i=n.pop()}this.map.length=0}}function P$t(t,e,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=r,t.map[i][2].push(...n);return}i+=1}t.map.push([e,r,n])}}function F$t(t,e){let r=!1;const n=[];for(;e<t.length;){const i=t[e];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return n}function B$t(){return{flow:{null:{name:"table",tokenize:U$t,resolveAll:$$t}}}}function U$t(t,e,r){const n=this;let i=0,a=0,s;return o;function o(R){let I=n.events.length-1;for(;I>-1;){const O=n.events[I][1].type;if(O==="lineEnding"||O==="linePrefix")I--;else break}const L=I>-1?n.events[I][1].type:null,F=L==="tableHead"||L==="tableRow"?T:l;return F===T&&n.parser.lazy[n.now().line]?r(R):F(R)}function l(R){return t.enter("tableHead"),t.enter("tableRow"),u(R)}function u(R){return R===124||(s=!0,a+=1),d(R)}function d(R){return R===null?r(R):On(R)?a>1?(a=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),p):r(R):Qi(R)?Hi(t,d,"whitespace")(R):(a+=1,s&&(s=!1,i+=1),R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),s=!0,d):(t.enter("data"),h(R)))}function h(R){return R===null||R===124||Qa(R)?(t.exit("data"),d(R)):(t.consume(R),R===92?f:h)}function f(R){return R===92||R===124?(t.consume(R),h):h(R)}function p(R){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(R):(t.enter("tableDelimiterRow"),s=!1,Qi(R)?Hi(t,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):g(R))}function g(R){return R===45||R===58?_(R):R===124?(s=!0,t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),m):S(R)}function m(R){return Qi(R)?Hi(t,_,"whitespace")(R):_(R)}function _(R){return R===58?(a+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),v):R===45?(a+=1,v(R)):R===null||On(R)?E(R):S(R)}function v(R){return R===45?(t.enter("tableDelimiterFiller"),y(R)):S(R)}function y(R){return R===45?(t.consume(R),y):R===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),b):(t.exit("tableDelimiterFiller"),b(R))}function b(R){return Qi(R)?Hi(t,E,"whitespace")(R):E(R)}function E(R){return R===124?g(R):R===null||On(R)?!s||i!==a?S(R):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(R)):S(R)}function S(R){return r(R)}function T(R){return t.enter("tableRow"),C(R)}function C(R){return R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),C):R===null||On(R)?(t.exit("tableRow"),e(R)):Qi(R)?Hi(t,C,"whitespace")(R):(t.enter("data"),x(R))}function x(R){return R===null||R===124||Qa(R)?(t.exit("data"),C(R)):(t.consume(R),R===92?A:x)}function A(R){return R===92||R===124?(t.consume(R),x):x(R)}}function $$t(t,e){let r=-1,n=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,h;const f=new L$t;for(;++r<t.length;){const p=t[r],g=p[1];p[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(jSe(f,e,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",u,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(n=!0,h=void 0,a=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",d,e]])),i=g.type==="tableDelimiterRow"?2:d?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=tL(f,e,a,i,void 0,h),a=[0,0,0,0]),s[2]=r)):g.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],h=tL(f,e,a,i,void 0,h)),a=s,s=[a[1],r,0,0])):g.type==="tableHead"?(o=!0,l=r):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=r,a[1]!==0?(s[0]=s[1],h=tL(f,e,a,i,r,h)):s[1]!==0&&(h=tL(f,e,s,i,r,h)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&jSe(f,e,l,u,d),f.consume(e.events),r=-1;++r<e.events.length;){const p=e.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=F$t(e.events,r))}return t}function tL(t,e,r,n,i,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(a.end=Object.assign({},US(e.events,r[0])),t.add(r[0],0,[["exit",a,e]]));const l=US(e.events,r[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},t.add(r[1],0,[["enter",a,e]]),r[2]!==0){const u=US(e.events,r[2]),d=US(e.events,r[3]),h={type:o,start:Object.assign({},u),end:Object.assign({},d)};if(t.add(r[2],0,[["enter",h,e]]),n!==2){const f=e.events[r[2]],p=e.events[r[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const g=r[2]+1,m=r[3]-r[2]-1;t.add(g,m,[])}}t.add(r[3]+1,0,[["exit",h,e]])}return i!==void 0&&(a.end=Object.assign({},US(e.events,i)),t.add(i,0,[["exit",a,e]]),a=void 0),a}function jSe(t,e,r,n,i){const a=[],s=US(e.events,r);i&&(i.end=Object.assign({},s),a.push(["exit",i,e])),n.end=Object.assign({},s),a.push(["exit",n,e]),t.add(r+1,0,a)}function US(t,e){const r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}const G$t={name:"tasklistCheck",tokenize:q$t};function z$t(){return{text:{91:G$t}}}function q$t(t,e,r){const n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),a)}function a(l){return Qa(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):r(l)}function o(l){return On(l)?e(l):Qi(l)?t.check({tokenize:V$t},e,r)(l):r(l)}}function V$t(t,e,r){return Hi(t,n,"whitespace");function n(i){return i===null?r(i):e(i)}}function H$t(t){return QLe([m$t(),x$t(),M$t(t),B$t(),z$t()])}const Y$t={};function W$t(t){const e=this,r=t||Y$t,n=e.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(H$t(r)),a.push(h$t()),s.push(f$t(r))}function K$t(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function t(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function e(){this.buffer()}function r(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u;const h=d.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const u=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u,d.data.hChildren.push({type:"text",value:u})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function j$t(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,s,o,l){const u=a.value||"",d=o.createTracker(l),h="$".repeat(Math.max(pPe(u,"$")+1,2)),f=o.enter("mathFlow");let p=d.move(h);if(a.meta){const g=o.enter("mathFlowMeta");p+=d.move(o.safe(a.meta,{after:`
`,before:p,encode:["$"],...d.current()})),g()}return p+=d.move(`
`),u&&(p+=d.move(u+`
`)),p+=d.move(h),f(),p}function n(a,s,o){let l=a.value||"",u=1;for(e||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const d="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let h=-1;for(;++h<o.unsafe.length;){const f=o.unsafe[h];if(!f.atBreak)continue;const p=o.compilePattern(f);let g;for(;g=p.exec(l);){let m=g.index;l.codePointAt(m)===10&&l.codePointAt(m-1)===13&&m--,l=l.slice(0,m)+" "+l.slice(g.index+1)}}return d+l+d}function i(){return"$"}}const X$t={tokenize:Q$t,concrete:!0,name:"mathFlow"},XSe={tokenize:Z$t,partial:!0};function Q$t(t,e,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return o;function o(y){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),l(y)}function l(y){return y===36?(t.consume(y),s++,l):s<2?r(y):(t.exit("mathFlowFenceSequence"),Hi(t,u,"whitespace")(y))}function u(y){return y===null||On(y)?h(y):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||On(y)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),h(y)):y===36?r(y):(t.consume(y),d)}function h(y){return t.exit("mathFlowFence"),n.interrupt?e(y):t.attempt(XSe,f,_)(y)}function f(y){return t.attempt({tokenize:v,partial:!0},_,p)(y)}function p(y){return(a?Hi(t,g,"linePrefix",a+1):g)(y)}function g(y){return y===null?_(y):On(y)?t.attempt(XSe,f,_)(y):(t.enter("mathFlowValue"),m(y))}function m(y){return y===null||On(y)?(t.exit("mathFlowValue"),g(y)):(t.consume(y),m)}function _(y){return t.exit("mathFlow"),e(y)}function v(y,b,E){let S=0;return Hi(y,T,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function T(A){return y.enter("mathFlowFence"),y.enter("mathFlowFenceSequence"),C(A)}function C(A){return A===36?(S++,y.consume(A),C):S<s?E(A):(y.exit("mathFlowFenceSequence"),Hi(y,x,"whitespace")(A))}function x(A){return A===null||On(A)?(y.exit("mathFlowFence"),b(A)):E(A)}}}function Z$t(t,e,r){const n=this;return i;function i(s){return s===null?e(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function J$t(t){let r=(t||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:eGt,previous:tGt,name:"mathText"};function n(i,a,s){let o=0,l,u;return d;function d(m){return i.enter("mathText"),i.enter("mathTextSequence"),h(m)}function h(m){return m===36?(i.consume(m),o++,h):o<2&&!r?s(m):(i.exit("mathTextSequence"),f(m))}function f(m){return m===null?s(m):m===36?(u=i.enter("mathTextSequence"),l=0,g(m)):m===32?(i.enter("space"),i.consume(m),i.exit("space"),f):On(m)?(i.enter("lineEnding"),i.consume(m),i.exit("lineEnding"),f):(i.enter("mathTextData"),p(m))}function p(m){return m===null||m===32||m===36||On(m)?(i.exit("mathTextData"),f(m)):(i.consume(m),p)}function g(m){return m===36?(i.consume(m),l++,g):l===o?(i.exit("mathTextSequence"),i.exit("mathText"),a(m)):(u.type="mathTextData",p(m))}}}function eGt(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[r][1].type="mathTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="mathTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function tGt(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function rGt(t){return{flow:{36:X$t},text:{36:J$t(t)}}}class Ar extends Error{constructor(e,r){var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15<o.length?d=o.slice(a,a+15)+"…":d=o.slice(a),n+=u+l+d}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Ar.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=e}}var nGt=/([A-Z])/g,iGt=t=>t.replace(nGt,"-$1").toLowerCase(),aGt={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},sGt=/[&><"']/g,Ic=t=>String(t).replace(sGt,e=>aGt[e]),PP=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?PP(t.body[0]):t:t.type==="font"?PP(t.body):t,oGt=new Set(["mathord","textord","atom"]),R0=t=>oGt.has(PP(t).type),lGt=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},l7={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function cGt(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function uGt(t){if(t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return cGt(e)}function dGt(t,e,r,n){var i=r[e];t[e]=i!==void 0?n.processor?n.processor(i):i:uGt(n)}class Sle{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r of Object.keys(l7)){var n=l7[r];n&&dGt(this,r,e,n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ar("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=lGt(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class s_{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return $p[hGt[this.id]]}sub(){return $p[fGt[this.id]]}fracNum(){return $p[pGt[this.id]]}fracDen(){return $p[gGt[this.id]]}cramp(){return $p[mGt[this.id]]}text(){return $p[_Gt[this.id]]}isTight(){return this.size>=2}}var Tle=0,c7=1,YT=2,Vm=3,Ek=4,Ih=5,lA=6,iu=7,$p=[new s_(Tle,0,!1),new s_(c7,0,!0),new s_(YT,1,!1),new s_(Vm,1,!0),new s_(Ek,2,!1),new s_(Ih,2,!0),new s_(lA,3,!1),new s_(iu,3,!0)],hGt=[Ek,Ih,Ek,Ih,lA,iu,lA,iu],fGt=[Ih,Ih,Ih,Ih,iu,iu,iu,iu],pGt=[YT,Vm,Ek,Ih,lA,iu,lA,iu],gGt=[Vm,Vm,Ih,Ih,iu,iu,iu,iu],mGt=[c7,c7,Vm,Vm,Ih,Ih,iu,iu],_Gt=[Tle,c7,YT,Vm,YT,Vm,YT,Vm],fi={DISPLAY:$p[Tle],TEXT:$p[YT],SCRIPT:$p[Ek],SCRIPTSCRIPT:$p[lA]},mJ=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function vGt(t){for(var e=0;e<mJ.length;e++)for(var r=mJ[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}var FP=[];mJ.forEach(t=>t.blocks.forEach(e=>FP.push(...e)));function GPe(t){for(var e=0;e<FP.length;e+=2)if(t>=FP[e]&&t<=FP[e+1])return!0;return!1}var al=t=>t+" "+t,aS=80,yGt=function(e,r){return"M95,"+(622+e+r)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},bGt=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},EGt=function(e,r){return"M983 "+(10+e+r)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},SGt=function(e,r){return"M424,"+(2398+e+r)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+`
h400000v`+(40+e)+"h-400000z"},TGt=function(e,r){return"M473,"+(2713+e+r)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},CGt=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},wGt=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},xGt=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=yGt(r,aS);break;case"sqrtSize1":i=bGt(r,aS);break;case"sqrtSize2":i=EGt(r,aS);break;case"sqrtSize3":i=SGt(r,aS);break;case"sqrtSize4":i=TGt(r,aS);break;case"sqrtTall":i=wGt(r,aS,n)}return i},AGt=function(e,r){switch(e){case"⎜":return al("M291 0 H417 V"+r+" H291z");case"∣":return al("M145 0 H188 V"+r+" H145z");case"∥":return al("M145 0 H188 V"+r+" H145z")+al("M367 0 H410 V"+r+" H367z");case"⎟":return al("M457 0 H583 V"+r+" H457z");case"⎢":return al("M319 0 H403 V"+r+" H319z");case"⎥":return al("M263 0 H347 V"+r+" H263z");case"⎪":return al("M384 0 H504 V"+r+" H384z");case"⏐":return al("M312 0 H355 V"+r+" H312z");case"‖":return al("M257 0 H300 V"+r+" H257z")+al("M478 0 H521 V"+r+" H478z");default:return""}},QSe={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:al("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:al("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:al("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:al("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:al("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:al("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:al("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:al("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},RGt=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function OGt(t){return"toText"in t}class gR{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(OGt(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var _J={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},IGt={ex:!0,em:!0,mu:!0},zPe=function(e){return typeof e!="string"&&(e=e.unit),e in _J||e in IGt||e==="ex"},Hs=function(e,r){var n;if(e.unit in _J)n=_J[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new Ar("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},Dr=function(e){return+e.toFixed(4)+"em"},d1=function(e){return e.filter(r=>r).join(" ")},Cle=function(e){var r="";for(var n of Object.keys(e)){var i=e[n];i!==void 0&&(r+=iGt(n)+":"+i+";")}return r},qPe=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},VPe=function(e){var r=document.createElement(e);r.className=d1(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},NGt=/[\s"'>/=\x00-\x1f]/,HPe=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+Ic(d1(this.classes))+'"');var n=Cle(this.style);n&&(r+=' style="'+Ic(n)+'"');for(var i of Object.keys(this.attributes)){if(NGt.test(i))throw new Ar("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Ic(this.attributes[i])+'"'}r+=">";for(var a=0;a<this.children.length;a++)r+=this.children[a].toMarkup();return r+="</"+e+">",r};class mR{constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,qPe.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return VPe.call(this,"span")}toMarkup(){return HPe.call(this,"span")}}let aU=class{constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,qPe.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return VPe.call(this,"a")}toMarkup(){return HPe.call(this,"a")}};class kGt{constructor(e,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+Ic(this.src)+'"'+(' alt="'+Ic(this.alt)+'"'),r=Cle(this.style);return r&&(e+=' style="'+Ic(r)+'"'),e+="'/>",e}}var DGt={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class qd{constructor(e,r,n,i,a,s,o,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=l||{},this.maxFontSize=0;var u=vGt(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=DGt[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Dr(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=d1(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=Ic(d1(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Dr(this.italic)+";"),n+=Cle(this.style),n&&(e=!0,r+=' style="'+Ic(n)+'"');var i=Ic(this.text);return e?(r+=">",r+=i,r+="</span>",r):i}}class s0{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+Ic(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class h1{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",QSe[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Ic(this.alternate)+'"/>':'<path d="'+Ic(QSe[this.pathName])+'"/>'}}class vJ{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+Ic(this.attributes[r])+'"';return e+="/>",e}}function MGt(t){if(t instanceof qd)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function LGt(t){if(t instanceof mR)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var PGt=t=>t instanceof mR||t instanceof aU||t instanceof gR,Kp={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},rL={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ZSe={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function YPe(t,e){Kp[t]=e}function wle(t,e,r){if(!Kp[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Kp[e][n];if(!i&&t[0]in ZSe&&(n=ZSe[t[0]].charCodeAt(0),i=Kp[e][n]),!i&&r==="text"&&GPe(n)&&(i=Kp[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var BW={};function FGt(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!BW[e]){var r=BW[e]={cssEmPerMu:rL.quad[e]/18};for(var n in rL)rL.hasOwnProperty(n)&&(r[n]=rL[n][e])}return BW[e]}var Is={math:{},text:{}};function pe(t,e,r,n,i,a){Is[t][i]={font:e,group:r,replace:n},a&&n&&(Is[t][n]=Is[t][i])}var ve="math",_r="text",ze="main",_t="ams",Ps="accent-token",on="bin",Cu="close",_R="inner",Hn="mathord",jo="op-token",Jd="open",N5="punct",bt="rel",O0="spacing",Nt="textord";pe(ve,ze,bt,"≡","\\equiv",!0);pe(ve,ze,bt,"≺","\\prec",!0);pe(ve,ze,bt,"≻","\\succ",!0);pe(ve,ze,bt,"∼","\\sim",!0);pe(ve,ze,bt,"⊥","\\perp");pe(ve,ze,bt,"⪯","\\preceq",!0);pe(ve,ze,bt,"⪰","\\succeq",!0);pe(ve,ze,bt,"≃","\\simeq",!0);pe(ve,ze,bt,"∣","\\mid",!0);pe(ve,ze,bt,"≪","\\ll",!0);pe(ve,ze,bt,"≫","\\gg",!0);pe(ve,ze,bt,"≍","\\asymp",!0);pe(ve,ze,bt,"∥","\\parallel");pe(ve,ze,bt,"⋈","\\bowtie",!0);pe(ve,ze,bt,"⌣","\\smile",!0);pe(ve,ze,bt,"⊑","\\sqsubseteq",!0);pe(ve,ze,bt,"⊒","\\sqsupseteq",!0);pe(ve,ze,bt,"≐","\\doteq",!0);pe(ve,ze,bt,"⌢","\\frown",!0);pe(ve,ze,bt,"∋","\\ni",!0);pe(ve,ze,bt,"∝","\\propto",!0);pe(ve,ze,bt,"⊢","\\vdash",!0);pe(ve,ze,bt,"⊣","\\dashv",!0);pe(ve,ze,bt,"∋","\\owns");pe(ve,ze,N5,".","\\ldotp");pe(ve,ze,N5,"⋅","\\cdotp");pe(ve,ze,N5,"⋅","·");pe(_r,ze,Nt,"⋅","·");pe(ve,ze,Nt,"#","\\#");pe(_r,ze,Nt,"#","\\#");pe(ve,ze,Nt,"&","\\&");pe(_r,ze,Nt,"&","\\&");pe(ve,ze,Nt,"ℵ","\\aleph",!0);pe(ve,ze,Nt,"∀","\\forall",!0);pe(ve,ze,Nt,"ℏ","\\hbar",!0);pe(ve,ze,Nt,"∃","\\exists",!0);pe(ve,ze,Nt,"∇","\\nabla",!0);pe(ve,ze,Nt,"♭","\\flat",!0);pe(ve,ze,Nt,"ℓ","\\ell",!0);pe(ve,ze,Nt,"♮","\\natural",!0);pe(ve,ze,Nt,"♣","\\clubsuit",!0);pe(ve,ze,Nt,"℘","\\wp",!0);pe(ve,ze,Nt,"♯","\\sharp",!0);pe(ve,ze,Nt,"♢","\\diamondsuit",!0);pe(ve,ze,Nt,"ℜ","\\Re",!0);pe(ve,ze,Nt,"♡","\\heartsuit",!0);pe(ve,ze,Nt,"ℑ","\\Im",!0);pe(ve,ze,Nt,"♠","\\spadesuit",!0);pe(ve,ze,Nt,"§","\\S",!0);pe(_r,ze,Nt,"§","\\S");pe(ve,ze,Nt,"¶","\\P",!0);pe(_r,ze,Nt,"¶","\\P");pe(ve,ze,Nt,"†","\\dag");pe(_r,ze,Nt,"†","\\dag");pe(_r,ze,Nt,"†","\\textdagger");pe(ve,ze,Nt,"‡","\\ddag");pe(_r,ze,Nt,"‡","\\ddag");pe(_r,ze,Nt,"‡","\\textdaggerdbl");pe(ve,ze,Cu,"⎱","\\rmoustache",!0);pe(ve,ze,Jd,"⎰","\\lmoustache",!0);pe(ve,ze,Cu,"⟯","\\rgroup",!0);pe(ve,ze,Jd,"⟮","\\lgroup",!0);pe(ve,ze,on,"∓","\\mp",!0);pe(ve,ze,on,"⊖","\\ominus",!0);pe(ve,ze,on,"⊎","\\uplus",!0);pe(ve,ze,on,"⊓","\\sqcap",!0);pe(ve,ze,on,"∗","\\ast");pe(ve,ze,on,"⊔","\\sqcup",!0);pe(ve,ze,on,"◯","\\bigcirc",!0);pe(ve,ze,on,"∙","\\bullet",!0);pe(ve,ze,on,"‡","\\ddagger");pe(ve,ze,on,"≀","\\wr",!0);pe(ve,ze,on,"⨿","\\amalg");pe(ve,ze,on,"&","\\And");pe(ve,ze,bt,"⟵","\\longleftarrow",!0);pe(ve,ze,bt,"⇐","\\Leftarrow",!0);pe(ve,ze,bt,"⟸","\\Longleftarrow",!0);pe(ve,ze,bt,"⟶","\\longrightarrow",!0);pe(ve,ze,bt,"⇒","\\Rightarrow",!0);pe(ve,ze,bt,"⟹","\\Longrightarrow",!0);pe(ve,ze,bt,"↔","\\leftrightarrow",!0);pe(ve,ze,bt,"⟷","\\longleftrightarrow",!0);pe(ve,ze,bt,"⇔","\\Leftrightarrow",!0);pe(ve,ze,bt,"⟺","\\Longleftrightarrow",!0);pe(ve,ze,bt,"↦","\\mapsto",!0);pe(ve,ze,bt,"⟼","\\longmapsto",!0);pe(ve,ze,bt,"↗","\\nearrow",!0);pe(ve,ze,bt,"↩","\\hookleftarrow",!0);pe(ve,ze,bt,"↪","\\hookrightarrow",!0);pe(ve,ze,bt,"↘","\\searrow",!0);pe(ve,ze,bt,"↼","\\leftharpoonup",!0);pe(ve,ze,bt,"⇀","\\rightharpoonup",!0);pe(ve,ze,bt,"↙","\\swarrow",!0);pe(ve,ze,bt,"↽","\\leftharpoondown",!0);pe(ve,ze,bt,"⇁","\\rightharpoondown",!0);pe(ve,ze,bt,"↖","\\nwarrow",!0);pe(ve,ze,bt,"⇌","\\rightleftharpoons",!0);pe(ve,_t,bt,"≮","\\nless",!0);pe(ve,_t,bt,"","\\@nleqslant");pe(ve,_t,bt,"","\\@nleqq");pe(ve,_t,bt,"⪇","\\lneq",!0);pe(ve,_t,bt,"≨","\\lneqq",!0);pe(ve,_t,bt,"","\\@lvertneqq");pe(ve,_t,bt,"⋦","\\lnsim",!0);pe(ve,_t,bt,"⪉","\\lnapprox",!0);pe(ve,_t,bt,"⊀","\\nprec",!0);pe(ve,_t,bt,"⋠","\\npreceq",!0);pe(ve,_t,bt,"⋨","\\precnsim",!0);pe(ve,_t,bt,"⪹","\\precnapprox",!0);pe(ve,_t,bt,"≁","\\nsim",!0);pe(ve,_t,bt,"","\\@nshortmid");pe(ve,_t,bt,"∤","\\nmid",!0);pe(ve,_t,bt,"⊬","\\nvdash",!0);pe(ve,_t,bt,"⊭","\\nvDash",!0);pe(ve,_t,bt,"⋪","\\ntriangleleft");pe(ve,_t,bt,"⋬","\\ntrianglelefteq",!0);pe(ve,_t,bt,"⊊","\\subsetneq",!0);pe(ve,_t,bt,"","\\@varsubsetneq");pe(ve,_t,bt,"⫋","\\subsetneqq",!0);pe(ve,_t,bt,"","\\@varsubsetneqq");pe(ve,_t,bt,"≯","\\ngtr",!0);pe(ve,_t,bt,"","\\@ngeqslant");pe(ve,_t,bt,"","\\@ngeqq");pe(ve,_t,bt,"⪈","\\gneq",!0);pe(ve,_t,bt,"≩","\\gneqq",!0);pe(ve,_t,bt,"","\\@gvertneqq");pe(ve,_t,bt,"⋧","\\gnsim",!0);pe(ve,_t,bt,"⪊","\\gnapprox",!0);pe(ve,_t,bt,"⊁","\\nsucc",!0);pe(ve,_t,bt,"⋡","\\nsucceq",!0);pe(ve,_t,bt,"⋩","\\succnsim",!0);pe(ve,_t,bt,"⪺","\\succnapprox",!0);pe(ve,_t,bt,"≆","\\ncong",!0);pe(ve,_t,bt,"","\\@nshortparallel");pe(ve,_t,bt,"∦","\\nparallel",!0);pe(ve,_t,bt,"⊯","\\nVDash",!0);pe(ve,_t,bt,"⋫","\\ntriangleright");pe(ve,_t,bt,"⋭","\\ntrianglerighteq",!0);pe(ve,_t,bt,"","\\@nsupseteqq");pe(ve,_t,bt,"⊋","\\supsetneq",!0);pe(ve,_t,bt,"","\\@varsupsetneq");pe(ve,_t,bt,"⫌","\\supsetneqq",!0);pe(ve,_t,bt,"","\\@varsupsetneqq");pe(ve,_t,bt,"⊮","\\nVdash",!0);pe(ve,_t,bt,"⪵","\\precneqq",!0);pe(ve,_t,bt,"⪶","\\succneqq",!0);pe(ve,_t,bt,"","\\@nsubseteqq");pe(ve,_t,on,"⊴","\\unlhd");pe(ve,_t,on,"⊵","\\unrhd");pe(ve,_t,bt,"↚","\\nleftarrow",!0);pe(ve,_t,bt,"↛","\\nrightarrow",!0);pe(ve,_t,bt,"⇍","\\nLeftarrow",!0);pe(ve,_t,bt,"⇏","\\nRightarrow",!0);pe(ve,_t,bt,"↮","\\nleftrightarrow",!0);pe(ve,_t,bt,"⇎","\\nLeftrightarrow",!0);pe(ve,_t,bt,"△","\\vartriangle");pe(ve,_t,Nt,"ℏ","\\hslash");pe(ve,_t,Nt,"▽","\\triangledown");pe(ve,_t,Nt,"◊","\\lozenge");pe(ve,_t,Nt,"Ⓢ","\\circledS");pe(ve,_t,Nt,"®","\\circledR");pe(_r,_t,Nt,"®","\\circledR");pe(ve,_t,Nt,"∡","\\measuredangle",!0);pe(ve,_t,Nt,"∄","\\nexists");pe(ve,_t,Nt,"℧","\\mho");pe(ve,_t,Nt,"Ⅎ","\\Finv",!0);pe(ve,_t,Nt,"⅁","\\Game",!0);pe(ve,_t,Nt,"‵","\\backprime");pe(ve,_t,Nt,"▲","\\blacktriangle");pe(ve,_t,Nt,"▼","\\blacktriangledown");pe(ve,_t,Nt,"■","\\blacksquare");pe(ve,_t,Nt,"⧫","\\blacklozenge");pe(ve,_t,Nt,"★","\\bigstar");pe(ve,_t,Nt,"∢","\\sphericalangle",!0);pe(ve,_t,Nt,"∁","\\complement",!0);pe(ve,_t,Nt,"ð","\\eth",!0);pe(_r,ze,Nt,"ð","ð");pe(ve,_t,Nt,"╱","\\diagup");pe(ve,_t,Nt,"╲","\\diagdown");pe(ve,_t,Nt,"□","\\square");pe(ve,_t,Nt,"□","\\Box");pe(ve,_t,Nt,"◊","\\Diamond");pe(ve,_t,Nt,"¥","\\yen",!0);pe(_r,_t,Nt,"¥","\\yen",!0);pe(ve,_t,Nt,"✓","\\checkmark",!0);pe(_r,_t,Nt,"✓","\\checkmark");pe(ve,_t,Nt,"ℶ","\\beth",!0);pe(ve,_t,Nt,"ℸ","\\daleth",!0);pe(ve,_t,Nt,"ℷ","\\gimel",!0);pe(ve,_t,Nt,"ϝ","\\digamma",!0);pe(ve,_t,Nt,"ϰ","\\varkappa");pe(ve,_t,Jd,"┌","\\@ulcorner",!0);pe(ve,_t,Cu,"┐","\\@urcorner",!0);pe(ve,_t,Jd,"└","\\@llcorner",!0);pe(ve,_t,Cu,"┘","\\@lrcorner",!0);pe(ve,_t,bt,"≦","\\leqq",!0);pe(ve,_t,bt,"⩽","\\leqslant",!0);pe(ve,_t,bt,"⪕","\\eqslantless",!0);pe(ve,_t,bt,"≲","\\lesssim",!0);pe(ve,_t,bt,"⪅","\\lessapprox",!0);pe(ve,_t,bt,"≊","\\approxeq",!0);pe(ve,_t,on,"⋖","\\lessdot");pe(ve,_t,bt,"⋘","\\lll",!0);pe(ve,_t,bt,"≶","\\lessgtr",!0);pe(ve,_t,bt,"⋚","\\lesseqgtr",!0);pe(ve,_t,bt,"⪋","\\lesseqqgtr",!0);pe(ve,_t,bt,"≑","\\doteqdot");pe(ve,_t,bt,"≓","\\risingdotseq",!0);pe(ve,_t,bt,"≒","\\fallingdotseq",!0);pe(ve,_t,bt,"∽","\\backsim",!0);pe(ve,_t,bt,"⋍","\\backsimeq",!0);pe(ve,_t,bt,"⫅","\\subseteqq",!0);pe(ve,_t,bt,"⋐","\\Subset",!0);pe(ve,_t,bt,"⊏","\\sqsubset",!0);pe(ve,_t,bt,"≼","\\preccurlyeq",!0);pe(ve,_t,bt,"⋞","\\curlyeqprec",!0);pe(ve,_t,bt,"≾","\\precsim",!0);pe(ve,_t,bt,"⪷","\\precapprox",!0);pe(ve,_t,bt,"⊲","\\vartriangleleft");pe(ve,_t,bt,"⊴","\\trianglelefteq");pe(ve,_t,bt,"⊨","\\vDash",!0);pe(ve,_t,bt,"⊪","\\Vvdash",!0);pe(ve,_t,bt,"⌣","\\smallsmile");pe(ve,_t,bt,"⌢","\\smallfrown");pe(ve,_t,bt,"≏","\\bumpeq",!0);pe(ve,_t,bt,"≎","\\Bumpeq",!0);pe(ve,_t,bt,"≧","\\geqq",!0);pe(ve,_t,bt,"⩾","\\geqslant",!0);pe(ve,_t,bt,"⪖","\\eqslantgtr",!0);pe(ve,_t,bt,"≳","\\gtrsim",!0);pe(ve,_t,bt,"⪆","\\gtrapprox",!0);pe(ve,_t,on,"⋗","\\gtrdot");pe(ve,_t,bt,"⋙","\\ggg",!0);pe(ve,_t,bt,"≷","\\gtrless",!0);pe(ve,_t,bt,"⋛","\\gtreqless",!0);pe(ve,_t,bt,"⪌","\\gtreqqless",!0);pe(ve,_t,bt,"≖","\\eqcirc",!0);pe(ve,_t,bt,"≗","\\circeq",!0);pe(ve,_t,bt,"≜","\\triangleq",!0);pe(ve,_t,bt,"∼","\\thicksim");pe(ve,_t,bt,"≈","\\thickapprox");pe(ve,_t,bt,"⫆","\\supseteqq",!0);pe(ve,_t,bt,"⋑","\\Supset",!0);pe(ve,_t,bt,"⊐","\\sqsupset",!0);pe(ve,_t,bt,"≽","\\succcurlyeq",!0);pe(ve,_t,bt,"⋟","\\curlyeqsucc",!0);pe(ve,_t,bt,"≿","\\succsim",!0);pe(ve,_t,bt,"⪸","\\succapprox",!0);pe(ve,_t,bt,"⊳","\\vartriangleright");pe(ve,_t,bt,"⊵","\\trianglerighteq");pe(ve,_t,bt,"⊩","\\Vdash",!0);pe(ve,_t,bt,"∣","\\shortmid");pe(ve,_t,bt,"∥","\\shortparallel");pe(ve,_t,bt,"≬","\\between",!0);pe(ve,_t,bt,"⋔","\\pitchfork",!0);pe(ve,_t,bt,"∝","\\varpropto");pe(ve,_t,bt,"◀","\\blacktriangleleft");pe(ve,_t,bt,"∴","\\therefore",!0);pe(ve,_t,bt,"∍","\\backepsilon");pe(ve,_t,bt,"▶","\\blacktriangleright");pe(ve,_t,bt,"∵","\\because",!0);pe(ve,_t,bt,"⋘","\\llless");pe(ve,_t,bt,"⋙","\\gggtr");pe(ve,_t,on,"⊲","\\lhd");pe(ve,_t,on,"⊳","\\rhd");pe(ve,_t,bt,"≂","\\eqsim",!0);pe(ve,ze,bt,"⋈","\\Join");pe(ve,_t,bt,"≑","\\Doteq",!0);pe(ve,_t,on,"∔","\\dotplus",!0);pe(ve,_t,on,"∖","\\smallsetminus");pe(ve,_t,on,"⋒","\\Cap",!0);pe(ve,_t,on,"⋓","\\Cup",!0);pe(ve,_t,on,"⩞","\\doublebarwedge",!0);pe(ve,_t,on,"⊟","\\boxminus",!0);pe(ve,_t,on,"⊞","\\boxplus",!0);pe(ve,_t,on,"⋇","\\divideontimes",!0);pe(ve,_t,on,"⋉","\\ltimes",!0);pe(ve,_t,on,"⋊","\\rtimes",!0);pe(ve,_t,on,"⋋","\\leftthreetimes",!0);pe(ve,_t,on,"⋌","\\rightthreetimes",!0);pe(ve,_t,on,"⋏","\\curlywedge",!0);pe(ve,_t,on,"⋎","\\curlyvee",!0);pe(ve,_t,on,"⊝","\\circleddash",!0);pe(ve,_t,on,"⊛","\\circledast",!0);pe(ve,_t,on,"⋅","\\centerdot");pe(ve,_t,on,"⊺","\\intercal",!0);pe(ve,_t,on,"⋒","\\doublecap");pe(ve,_t,on,"⋓","\\doublecup");pe(ve,_t,on,"⊠","\\boxtimes",!0);pe(ve,_t,bt,"⇢","\\dashrightarrow",!0);pe(ve,_t,bt,"⇠","\\dashleftarrow",!0);pe(ve,_t,bt,"⇇","\\leftleftarrows",!0);pe(ve,_t,bt,"⇆","\\leftrightarrows",!0);pe(ve,_t,bt,"⇚","\\Lleftarrow",!0);pe(ve,_t,bt,"↞","\\twoheadleftarrow",!0);pe(ve,_t,bt,"↢","\\leftarrowtail",!0);pe(ve,_t,bt,"↫","\\looparrowleft",!0);pe(ve,_t,bt,"⇋","\\leftrightharpoons",!0);pe(ve,_t,bt,"↶","\\curvearrowleft",!0);pe(ve,_t,bt,"↺","\\circlearrowleft",!0);pe(ve,_t,bt,"↰","\\Lsh",!0);pe(ve,_t,bt,"⇈","\\upuparrows",!0);pe(ve,_t,bt,"↿","\\upharpoonleft",!0);pe(ve,_t,bt,"⇃","\\downharpoonleft",!0);pe(ve,ze,bt,"⊶","\\origof",!0);pe(ve,ze,bt,"⊷","\\imageof",!0);pe(ve,_t,bt,"⊸","\\multimap",!0);pe(ve,_t,bt,"↭","\\leftrightsquigarrow",!0);pe(ve,_t,bt,"⇉","\\rightrightarrows",!0);pe(ve,_t,bt,"⇄","\\rightleftarrows",!0);pe(ve,_t,bt,"↠","\\twoheadrightarrow",!0);pe(ve,_t,bt,"↣","\\rightarrowtail",!0);pe(ve,_t,bt,"↬","\\looparrowright",!0);pe(ve,_t,bt,"↷","\\curvearrowright",!0);pe(ve,_t,bt,"↻","\\circlearrowright",!0);pe(ve,_t,bt,"↱","\\Rsh",!0);pe(ve,_t,bt,"⇊","\\downdownarrows",!0);pe(ve,_t,bt,"↾","\\upharpoonright",!0);pe(ve,_t,bt,"⇂","\\downharpoonright",!0);pe(ve,_t,bt,"⇝","\\rightsquigarrow",!0);pe(ve,_t,bt,"⇝","\\leadsto");pe(ve,_t,bt,"⇛","\\Rrightarrow",!0);pe(ve,_t,bt,"↾","\\restriction");pe(ve,ze,Nt,"‘","`");pe(ve,ze,Nt,"$","\\$");pe(_r,ze,Nt,"$","\\$");pe(_r,ze,Nt,"$","\\textdollar");pe(ve,ze,Nt,"%","\\%");pe(_r,ze,Nt,"%","\\%");pe(ve,ze,Nt,"_","\\_");pe(_r,ze,Nt,"_","\\_");pe(_r,ze,Nt,"_","\\textunderscore");pe(ve,ze,Nt,"∠","\\angle",!0);pe(ve,ze,Nt,"∞","\\infty",!0);pe(ve,ze,Nt,"′","\\prime");pe(ve,ze,Nt,"△","\\triangle");pe(ve,ze,Nt,"Γ","\\Gamma",!0);pe(ve,ze,Nt,"Δ","\\Delta",!0);pe(ve,ze,Nt,"Θ","\\Theta",!0);pe(ve,ze,Nt,"Λ","\\Lambda",!0);pe(ve,ze,Nt,"Ξ","\\Xi",!0);pe(ve,ze,Nt,"Π","\\Pi",!0);pe(ve,ze,Nt,"Σ","\\Sigma",!0);pe(ve,ze,Nt,"Υ","\\Upsilon",!0);pe(ve,ze,Nt,"Φ","\\Phi",!0);pe(ve,ze,Nt,"Ψ","\\Psi",!0);pe(ve,ze,Nt,"Ω","\\Omega",!0);pe(ve,ze,Nt,"A","Α");pe(ve,ze,Nt,"B","Β");pe(ve,ze,Nt,"E","Ε");pe(ve,ze,Nt,"Z","Ζ");pe(ve,ze,Nt,"H","Η");pe(ve,ze,Nt,"I","Ι");pe(ve,ze,Nt,"K","Κ");pe(ve,ze,Nt,"M","Μ");pe(ve,ze,Nt,"N","Ν");pe(ve,ze,Nt,"O","Ο");pe(ve,ze,Nt,"P","Ρ");pe(ve,ze,Nt,"T","Τ");pe(ve,ze,Nt,"X","Χ");pe(ve,ze,Nt,"¬","\\neg",!0);pe(ve,ze,Nt,"¬","\\lnot");pe(ve,ze,Nt,"⊤","\\top");pe(ve,ze,Nt,"⊥","\\bot");pe(ve,ze,Nt,"∅","\\emptyset");pe(ve,_t,Nt,"∅","\\varnothing");pe(ve,ze,Hn,"α","\\alpha",!0);pe(ve,ze,Hn,"β","\\beta",!0);pe(ve,ze,Hn,"γ","\\gamma",!0);pe(ve,ze,Hn,"δ","\\delta",!0);pe(ve,ze,Hn,"ϵ","\\epsilon",!0);pe(ve,ze,Hn,"ζ","\\zeta",!0);pe(ve,ze,Hn,"η","\\eta",!0);pe(ve,ze,Hn,"θ","\\theta",!0);pe(ve,ze,Hn,"ι","\\iota",!0);pe(ve,ze,Hn,"κ","\\kappa",!0);pe(ve,ze,Hn,"λ","\\lambda",!0);pe(ve,ze,Hn,"μ","\\mu",!0);pe(ve,ze,Hn,"ν","\\nu",!0);pe(ve,ze,Hn,"ξ","\\xi",!0);pe(ve,ze,Hn,"ο","\\omicron",!0);pe(ve,ze,Hn,"π","\\pi",!0);pe(ve,ze,Hn,"ρ","\\rho",!0);pe(ve,ze,Hn,"σ","\\sigma",!0);pe(ve,ze,Hn,"τ","\\tau",!0);pe(ve,ze,Hn,"υ","\\upsilon",!0);pe(ve,ze,Hn,"ϕ","\\phi",!0);pe(ve,ze,Hn,"χ","\\chi",!0);pe(ve,ze,Hn,"ψ","\\psi",!0);pe(ve,ze,Hn,"ω","\\omega",!0);pe(ve,ze,Hn,"ε","\\varepsilon",!0);pe(ve,ze,Hn,"ϑ","\\vartheta",!0);pe(ve,ze,Hn,"ϖ","\\varpi",!0);pe(ve,ze,Hn,"ϱ","\\varrho",!0);pe(ve,ze,Hn,"ς","\\varsigma",!0);pe(ve,ze,Hn,"φ","\\varphi",!0);pe(ve,ze,on,"∗","*",!0);pe(ve,ze,on,"+","+");pe(ve,ze,on,"−","-",!0);pe(ve,ze,on,"⋅","\\cdot",!0);pe(ve,ze,on,"∘","\\circ",!0);pe(ve,ze,on,"÷","\\div",!0);pe(ve,ze,on,"±","\\pm",!0);pe(ve,ze,on,"×","\\times",!0);pe(ve,ze,on,"∩","\\cap",!0);pe(ve,ze,on,"∪","\\cup",!0);pe(ve,ze,on,"∖","\\setminus",!0);pe(ve,ze,on,"∧","\\land");pe(ve,ze,on,"∨","\\lor");pe(ve,ze,on,"∧","\\wedge",!0);pe(ve,ze,on,"∨","\\vee",!0);pe(ve,ze,Nt,"√","\\surd");pe(ve,ze,Jd,"⟨","\\langle",!0);pe(ve,ze,Jd,"∣","\\lvert");pe(ve,ze,Jd,"∥","\\lVert");pe(ve,ze,Cu,"?","?");pe(ve,ze,Cu,"!","!");pe(ve,ze,Cu,"⟩","\\rangle",!0);pe(ve,ze,Cu,"∣","\\rvert");pe(ve,ze,Cu,"∥","\\rVert");pe(ve,ze,bt,"=","=");pe(ve,ze,bt,":",":");pe(ve,ze,bt,"≈","\\approx",!0);pe(ve,ze,bt,"≅","\\cong",!0);pe(ve,ze,bt,"≥","\\ge");pe(ve,ze,bt,"≥","\\geq",!0);pe(ve,ze,bt,"←","\\gets");pe(ve,ze,bt,">","\\gt",!0);pe(ve,ze,bt,"∈","\\in",!0);pe(ve,ze,bt,"","\\@not");pe(ve,ze,bt,"⊂","\\subset",!0);pe(ve,ze,bt,"⊃","\\supset",!0);pe(ve,ze,bt,"⊆","\\subseteq",!0);pe(ve,ze,bt,"⊇","\\supseteq",!0);pe(ve,_t,bt,"⊈","\\nsubseteq",!0);pe(ve,_t,bt,"⊉","\\nsupseteq",!0);pe(ve,ze,bt,"⊨","\\models");pe(ve,ze,bt,"←","\\leftarrow",!0);pe(ve,ze,bt,"≤","\\le");pe(ve,ze,bt,"≤","\\leq",!0);pe(ve,ze,bt,"<","\\lt",!0);pe(ve,ze,bt,"→","\\rightarrow",!0);pe(ve,ze,bt,"→","\\to");pe(ve,_t,bt,"≱","\\ngeq",!0);pe(ve,_t,bt,"≰","\\nleq",!0);pe(ve,ze,O0," ","\\ ");pe(ve,ze,O0," ","\\space");pe(ve,ze,O0," ","\\nobreakspace");pe(_r,ze,O0," ","\\ ");pe(_r,ze,O0," "," ");pe(_r,ze,O0," ","\\space");pe(_r,ze,O0," ","\\nobreakspace");pe(ve,ze,O0,"","\\nobreak");pe(ve,ze,O0,"","\\allowbreak");pe(ve,ze,N5,",",",");pe(ve,ze,N5,";",";");pe(ve,_t,on,"⊼","\\barwedge",!0);pe(ve,_t,on,"⊻","\\veebar",!0);pe(ve,ze,on,"⊙","\\odot",!0);pe(ve,ze,on,"⊕","\\oplus",!0);pe(ve,ze,on,"⊗","\\otimes",!0);pe(ve,ze,Nt,"∂","\\partial",!0);pe(ve,ze,on,"⊘","\\oslash",!0);pe(ve,_t,on,"⊚","\\circledcirc",!0);pe(ve,_t,on,"⊡","\\boxdot",!0);pe(ve,ze,on,"△","\\bigtriangleup");pe(ve,ze,on,"▽","\\bigtriangledown");pe(ve,ze,on,"†","\\dagger");pe(ve,ze,on,"⋄","\\diamond");pe(ve,ze,on,"⋆","\\star");pe(ve,ze,on,"◃","\\triangleleft");pe(ve,ze,on,"▹","\\triangleright");pe(ve,ze,Jd,"{","\\{");pe(_r,ze,Nt,"{","\\{");pe(_r,ze,Nt,"{","\\textbraceleft");pe(ve,ze,Cu,"}","\\}");pe(_r,ze,Nt,"}","\\}");pe(_r,ze,Nt,"}","\\textbraceright");pe(ve,ze,Jd,"{","\\lbrace");pe(ve,ze,Cu,"}","\\rbrace");pe(ve,ze,Jd,"[","\\lbrack",!0);pe(_r,ze,Nt,"[","\\lbrack",!0);pe(ve,ze,Cu,"]","\\rbrack",!0);pe(_r,ze,Nt,"]","\\rbrack",!0);pe(ve,ze,Jd,"(","\\lparen",!0);pe(ve,ze,Cu,")","\\rparen",!0);pe(_r,ze,Nt,"<","\\textless",!0);pe(_r,ze,Nt,">","\\textgreater",!0);pe(ve,ze,Jd,"⌊","\\lfloor",!0);pe(ve,ze,Cu,"⌋","\\rfloor",!0);pe(ve,ze,Jd,"⌈","\\lceil",!0);pe(ve,ze,Cu,"⌉","\\rceil",!0);pe(ve,ze,Nt,"\\","\\backslash");pe(ve,ze,Nt,"∣","|");pe(ve,ze,Nt,"∣","\\vert");pe(_r,ze,Nt,"|","\\textbar",!0);pe(ve,ze,Nt,"∥","\\|");pe(ve,ze,Nt,"∥","\\Vert");pe(_r,ze,Nt,"∥","\\textbardbl");pe(_r,ze,Nt,"~","\\textasciitilde");pe(_r,ze,Nt,"\\","\\textbackslash");pe(_r,ze,Nt,"^","\\textasciicircum");pe(ve,ze,bt,"↑","\\uparrow",!0);pe(ve,ze,bt,"⇑","\\Uparrow",!0);pe(ve,ze,bt,"↓","\\downarrow",!0);pe(ve,ze,bt,"⇓","\\Downarrow",!0);pe(ve,ze,bt,"↕","\\updownarrow",!0);pe(ve,ze,bt,"⇕","\\Updownarrow",!0);pe(ve,ze,jo,"∐","\\coprod");pe(ve,ze,jo,"⋁","\\bigvee");pe(ve,ze,jo,"⋀","\\bigwedge");pe(ve,ze,jo,"⨄","\\biguplus");pe(ve,ze,jo,"⋂","\\bigcap");pe(ve,ze,jo,"⋃","\\bigcup");pe(ve,ze,jo,"∫","\\int");pe(ve,ze,jo,"∫","\\intop");pe(ve,ze,jo,"∬","\\iint");pe(ve,ze,jo,"∭","\\iiint");pe(ve,ze,jo,"∏","\\prod");pe(ve,ze,jo,"∑","\\sum");pe(ve,ze,jo,"⨂","\\bigotimes");pe(ve,ze,jo,"⨁","\\bigoplus");pe(ve,ze,jo,"⨀","\\bigodot");pe(ve,ze,jo,"∮","\\oint");pe(ve,ze,jo,"∯","\\oiint");pe(ve,ze,jo,"∰","\\oiiint");pe(ve,ze,jo,"⨆","\\bigsqcup");pe(ve,ze,jo,"∫","\\smallint");pe(_r,ze,_R,"…","\\textellipsis");pe(ve,ze,_R,"…","\\mathellipsis");pe(_r,ze,_R,"…","\\ldots",!0);pe(ve,ze,_R,"…","\\ldots",!0);pe(ve,ze,_R,"⋯","\\@cdots",!0);pe(ve,ze,_R,"⋱","\\ddots",!0);pe(ve,ze,Nt,"⋮","\\varvdots");pe(_r,ze,Nt,"⋮","\\varvdots");pe(ve,ze,Ps,"ˊ","\\acute");pe(ve,ze,Ps,"ˋ","\\grave");pe(ve,ze,Ps,"¨","\\ddot");pe(ve,ze,Ps,"~","\\tilde");pe(ve,ze,Ps,"ˉ","\\bar");pe(ve,ze,Ps,"˘","\\breve");pe(ve,ze,Ps,"ˇ","\\check");pe(ve,ze,Ps,"^","\\hat");pe(ve,ze,Ps,"⃗","\\vec");pe(ve,ze,Ps,"˙","\\dot");pe(ve,ze,Ps,"˚","\\mathring");pe(ve,ze,Hn,"","\\@imath");pe(ve,ze,Hn,"","\\@jmath");pe(ve,ze,Nt,"ı","ı");pe(ve,ze,Nt,"ȷ","ȷ");pe(_r,ze,Nt,"ı","\\i",!0);pe(_r,ze,Nt,"ȷ","\\j",!0);pe(_r,ze,Nt,"ß","\\ss",!0);pe(_r,ze,Nt,"æ","\\ae",!0);pe(_r,ze,Nt,"œ","\\oe",!0);pe(_r,ze,Nt,"ø","\\o",!0);pe(_r,ze,Nt,"Æ","\\AE",!0);pe(_r,ze,Nt,"Œ","\\OE",!0);pe(_r,ze,Nt,"Ø","\\O",!0);pe(_r,ze,Ps,"ˊ","\\'");pe(_r,ze,Ps,"ˋ","\\`");pe(_r,ze,Ps,"ˆ","\\^");pe(_r,ze,Ps,"˜","\\~");pe(_r,ze,Ps,"ˉ","\\=");pe(_r,ze,Ps,"˘","\\u");pe(_r,ze,Ps,"˙","\\.");pe(_r,ze,Ps,"¸","\\c");pe(_r,ze,Ps,"˚","\\r");pe(_r,ze,Ps,"ˇ","\\v");pe(_r,ze,Ps,"¨",'\\"');pe(_r,ze,Ps,"˝","\\H");pe(_r,ze,Ps,"◯","\\textcircled");var WPe={"--":!0,"---":!0,"``":!0,"''":!0};pe(_r,ze,Nt,"–","--",!0);pe(_r,ze,Nt,"–","\\textendash");pe(_r,ze,Nt,"—","---",!0);pe(_r,ze,Nt,"—","\\textemdash");pe(_r,ze,Nt,"‘","`",!0);pe(_r,ze,Nt,"‘","\\textquoteleft");pe(_r,ze,Nt,"’","'",!0);pe(_r,ze,Nt,"’","\\textquoteright");pe(_r,ze,Nt,"“","``",!0);pe(_r,ze,Nt,"“","\\textquotedblleft");pe(_r,ze,Nt,"”","''",!0);pe(_r,ze,Nt,"”","\\textquotedblright");pe(ve,ze,Nt,"°","\\degree",!0);pe(_r,ze,Nt,"°","\\degree");pe(_r,ze,Nt,"°","\\textdegree",!0);pe(ve,ze,Nt,"£","\\pounds");pe(ve,ze,Nt,"£","\\mathsterling",!0);pe(_r,ze,Nt,"£","\\pounds");pe(_r,ze,Nt,"£","\\textsterling",!0);pe(ve,_t,Nt,"✠","\\maltese");pe(_r,_t,Nt,"✠","\\maltese");var JSe='0123456789/@."';for(var UW=0;UW<JSe.length;UW++){var eTe=JSe.charAt(UW);pe(ve,ze,Nt,eTe,eTe)}var tTe='0123456789!@*()-=+";:?/.,';for(var $W=0;$W<tTe.length;$W++){var rTe=tTe.charAt($W);pe(_r,ze,Nt,rTe,rTe)}var u7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var GW=0;GW<u7.length;GW++){var nL=u7.charAt(GW);pe(ve,ze,Hn,nL,nL),pe(_r,ze,Nt,nL,nL)}pe(ve,_t,Nt,"C","ℂ");pe(_r,_t,Nt,"C","ℂ");pe(ve,_t,Nt,"H","ℍ");pe(_r,_t,Nt,"H","ℍ");pe(ve,_t,Nt,"N","ℕ");pe(_r,_t,Nt,"N","ℕ");pe(ve,_t,Nt,"P","ℙ");pe(_r,_t,Nt,"P","ℙ");pe(ve,_t,Nt,"Q","ℚ");pe(_r,_t,Nt,"Q","ℚ");pe(ve,_t,Nt,"R","ℝ");pe(_r,_t,Nt,"R","ℝ");pe(ve,_t,Nt,"Z","ℤ");pe(_r,_t,Nt,"Z","ℤ");pe(ve,ze,Hn,"h","ℎ");pe(_r,ze,Hn,"h","ℎ");var ii;for(var $c=0;$c<u7.length;$c++){var ro=u7.charAt($c);ii=String.fromCharCode(55349,56320+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56372+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56424+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56580+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56684+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56736+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56788+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56840+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56944+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),$c<26&&(ii=String.fromCharCode(55349,56632+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii),ii=String.fromCharCode(55349,56476+$c),pe(ve,ze,Hn,ro,ii),pe(_r,ze,Nt,ro,ii))}ii="𝕜";pe(ve,ze,Hn,"k",ii);pe(_r,ze,Nt,"k",ii);for(var Tv=0;Tv<10;Tv++){var o_=Tv.toString();ii=String.fromCharCode(55349,57294+Tv),pe(ve,ze,Hn,o_,ii),pe(_r,ze,Nt,o_,ii),ii=String.fromCharCode(55349,57314+Tv),pe(ve,ze,Hn,o_,ii),pe(_r,ze,Nt,o_,ii),ii=String.fromCharCode(55349,57324+Tv),pe(ve,ze,Hn,o_,ii),pe(_r,ze,Nt,o_,ii),ii=String.fromCharCode(55349,57334+Tv),pe(ve,ze,Hn,o_,ii),pe(_r,ze,Nt,o_,ii)}var yJ="ÐÞþ";for(var zW=0;zW<yJ.length;zW++){var iL=yJ.charAt(zW);pe(ve,ze,Hn,iL,iL),pe(_r,ze,Nt,iL,iL)}var bJ={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},nTe={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},iTe={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},BGt={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},sy={mathClass:"",textClass:"",font:""},aTe={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},sTe={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},oTe={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},EJ={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},SJ={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},lTe={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},TJ={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},cTe=[bJ,bJ,nTe,nTe,iTe,iTe,BGt,sy,sy,sy,aTe,aTe,sTe,sTe,oTe,oTe,EJ,EJ,SJ,SJ,lTe,lTe,sy,sy,TJ,TJ],UGt=[bJ,sy,EJ,SJ,TJ],$Gt=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return cTe[i]}else if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return UGt[a]}else{if(n===120485||n===120486)return cTe[0];if(120486<n&&n<120782)return sy;throw new Ar("Unsupported character: "+t)}},sU=function(e,r,n){if(Is[n][e]){var i=Is[n][e].replace;i&&(e=i)}return{value:e,metrics:wle(e,r,n)}},Zc=function(e,r,n,i,a){var s=sU(e,r,n),o=s.metrics;e=s.value;var l;if(o){var u=o.italic;(n==="text"||i&&i.font==="mathit")&&(u=0),l=new qd(e,o.height,o.depth,u,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),l=new qd(e,0,0,0,0,0,a);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var d=i.getColor();d&&(l.style.color=d)}return l},xle=function(e,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&sU(e,"Main-Bold",r).metrics?Zc(e,"Main-Bold",r,n,i.concat(["mathbf"])):e==="\\"||Is[r][e].font==="main"?Zc(e,"Main-Regular",r,n,i):Zc(e,"AMS-Regular",r,n,i.concat(["amsrm"]))},GGt=function(e,r,n){return n!=="textord"&&sU(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},oU=function(e,r,n){var i=e.mode,a=e.text,s=["mord"],{font:o,fontFamily:l,fontWeight:u,fontShape:d}=r,h=i==="math"||i==="text"&&!!o,f=h?o:l,p="",g="";if(a.charCodeAt(0)===55349){var m=$Gt(a);p=m.font,g=m[i+"Class"]}if(p)return Zc(a,p,i,r,s.concat(g));if(f){var _,v;if(f==="boldsymbol"){var y=GGt(a,i,n);_=y.fontName,v=[y.fontClass]}else h?(_=CJ[o].fontName,v=[o]):(_=aL(l,u,d),v=[l,u,d]);if(sU(a,_,i).metrics)return Zc(a,_,i,r,s.concat(v));if(WPe.hasOwnProperty(a)&&_.slice(0,10)==="Typewriter"){for(var b=[],E=0;E<a.length;E++)b.push(Zc(a[E],_,i,r,s.concat(v)));return I0(b)}}if(n==="mathord")return Zc(a,"Math-Italic",i,r,s.concat(["mathnormal"]));if(n==="textord"){var S=Is[i][a]&&Is[i][a].font;if(S==="ams"){var T=aL("amsrm",u,d);return Zc(a,T,i,r,s.concat("amsrm",u,d))}else if(S==="main"||!S){var C=aL("textrm",u,d);return Zc(a,C,i,r,s.concat(u,d))}else{var x=aL(S,u,d);return Zc(a,x,i,r,s.concat(x,u,d))}}else throw new Error("unexpected type: "+n+" in makeOrd")},zGt=(t,e)=>{if(d1(t.classes)!==d1(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var i of Object.keys(e.style))if(t.style[i]!==e.style[i])return!1;return!0},KPe=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof qd&&n instanceof qd&&zGt(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},Ale=function(e){for(var r=0,n=0,i=0,a=0;a<e.children.length;a++){var s=e.children[a];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},Tr=function(e,r,n,i){var a=new mR(e,r,n,i);return Ale(a),a},f1=(t,e,r,n)=>new mR(t,e,r,n),cA=function(e,r,n){var i=Tr([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Dr(i.height),i.maxFontSize=1,i},qGt=function(e,r,n,i){var a=new aU(e,r,n,i);return Ale(a),a},I0=function(e){var r=new gR(e);return Ale(r),r},uA=function(e,r){return e instanceof gR?Tr([],[e],r):e},VGt=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s<r.length;s++){var o=-r[s].shift-a-r[s].elem.depth,l=o-(r[s-1].elem.height+r[s-1].elem.depth);a=a+o,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:i}}var u;if(e.positionType==="top"){for(var d=e.positionData,h=0;h<e.children.length;h++){var f=e.children[h];d-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=d}else if(e.positionType==="bottom")u=-e.positionData;else{var p=e.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")u=-p.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")u=-p.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:u}},Aa=function(e,r){for(var{children:n,depth:i}=VGt(e),a=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var l=o.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var u=Tr(["pstrut"],[]);u.style.height=Dr(a);for(var d=[],h=i,f=i,p=i,g=0;g<n.length;g++){var m=n[g];if(m.type==="kern")p+=m.size;else{var _=m.elem,v=m.wrapperClasses||[],y=m.wrapperStyle||{},b=Tr(v,[u,_],void 0,y);b.style.top=Dr(-a-p-_.depth),m.marginLeft&&(b.style.marginLeft=m.marginLeft),m.marginRight&&(b.style.marginRight=m.marginRight),d.push(b),p+=_.height+_.depth}h=Math.min(h,p),f=Math.max(f,p)}var E=Tr(["vlist"],d);E.style.height=Dr(f);var S;if(h<0){var T=Tr([],[]),C=Tr(["vlist"],[T]);C.style.height=Dr(-h);var x=Tr(["vlist-s"],[new qd("​")]);S=[Tr(["vlist-r"],[E,x]),Tr(["vlist-r"],[C])]}else S=[Tr(["vlist-r"],[E])];var A=Tr(["vlist-t"],S);return S.length===2&&A.classes.push("vlist-t2"),A.height=f,A.depth=-h,A},jPe=(t,e)=>{var r=Tr(["mspace"],[],e),n=Hs(t,e);return r.style.marginRight=Dr(n),r},aL=(t,e,r)=>{var n,i;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?i="BoldItalic":e==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},CJ={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},XPe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},QPe=function(e,r){var[n,i,a]=XPe[e],s=new h1(n),o=new s0([s],{width:Dr(i),height:Dr(a),style:"width:"+Dr(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=f1(["overlay"],[o],r);return l.height=a,l.style.height=Dr(a),l.style.width=Dr(i),l},zs={number:3,unit:"mu"},Cv={number:4,unit:"mu"},tm={number:5,unit:"mu"},HGt={mord:{mop:zs,mbin:Cv,mrel:tm,minner:zs},mop:{mord:zs,mop:zs,mrel:tm,minner:zs},mbin:{mord:Cv,mop:Cv,mopen:Cv,minner:Cv},mrel:{mord:tm,mop:tm,mopen:tm,minner:tm},mopen:{},mclose:{mop:zs,mbin:Cv,mrel:tm,minner:zs},mpunct:{mord:zs,mop:zs,mrel:tm,mopen:zs,mclose:zs,mpunct:zs,minner:zs},minner:{mord:zs,mop:zs,mbin:Cv,mrel:tm,mopen:zs,mpunct:zs,minner:zs}},YGt={mord:{mop:zs},mop:{mord:zs,mop:zs},mbin:{},mrel:{},mopen:{},mclose:{mop:zs},mpunct:{},minner:{mop:zs}},ZPe={},d7={},h7={};function rn(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},l=0;l<r.length;++l)ZPe[r[l]]=o;e&&(a&&(d7[e]=a),s&&(h7[e]=s))}function lE(t){var{type:e,htmlBuilder:r,mathmlBuilder:n}=t;rn({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var f7=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},qo=function(e){return e.type==="ordgroup"?e.body:[e]},WGt=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),KGt=new Set(["rightmost","mrel","mclose","mpunct"]),jGt={display:fi.DISPLAY,text:fi.TEXT,script:fi.SCRIPT,scriptscript:fi.SCRIPTSCRIPT},XGt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},gl=function(e,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s<e.length;s++){var o=Ra(e[s],r);if(o instanceof gR){var l=o.children;a.push(...l)}else a.push(o)}if(KPe(a),!n)return a;var u=r;if(e.length===1){var d=e[0];d.type==="sizing"?u=r.havingSize(d.size):d.type==="styling"&&(u=r.havingStyle(jGt[d.style]))}var h=Tr([i[0]||"leftmost"],[],r),f=Tr([i[1]||"rightmost"],[],r),p=n==="root";return wJ(a,(g,m)=>{var _=m.classes[0],v=g.classes[0];_==="mbin"&&KGt.has(v)?m.classes[0]="mord":v==="mbin"&&WGt.has(_)&&(g.classes[0]="mord")},{node:h},f,p),wJ(a,(g,m)=>{var _,v,y=AJ(m),b=AJ(g),E=y&&b?g.hasClass("mtight")?(_=YGt[y])==null?void 0:_[b]:(v=HGt[y])==null?void 0:v[b]:null;if(E)return jPe(E,u)},{node:h},f,p),a},wJ=function(e,r,n,i,a){i&&e.push(i);for(var s=0;s<e.length;s++){var o=e[s],l=JPe(o);if(l){wJ(l.children,r,n,null,a);continue}var u=!o.hasClass("mspace");if(u){var d=r(o,n.node);d&&(n.insertAfter?n.insertAfter(d):(e.unshift(d),s++))}u?n.node=o:a&&o.hasClass("newline")&&(n.node=Tr(["leftmost"])),n.insertAfter=(h=>f=>{e.splice(h+1,0,f),s++})(s)}i&&e.pop()},JPe=function(e){return e instanceof gR||e instanceof aU||e instanceof mR&&e.hasClass("enclosing")?e:null},xJ=function(e,r){var n=JPe(e);if(n){var i=n.children;if(i.length){if(r==="right")return xJ(i[i.length-1],"right");if(r==="left")return xJ(i[0],"left")}}return e},AJ=function(e,r){if(!e)return null;r&&(e=xJ(e,r));var n=e.classes[0];return XGt[n]||null},Sk=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Tr(r.concat(n))},Ra=function(e,r,n){if(!e)return Tr();if(d7[e.type]){var i=d7[e.type](e,r);if(n&&r.size!==n.size){i=Tr(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Ar("Got group of unknown type: '"+e.type+"'")};function sL(t,e){var r=Tr(["base"],t,e),n=Tr(["strut"]);return n.style.height=Dr(r.height+r.depth),r.depth&&(n.style.verticalAlign=Dr(-r.depth)),r.children.unshift(n),r}function RJ(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=gl(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var l=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(l=!0);l||(a.push(sL(s,e)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(sL(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(sL(s,e));var u;r?(u=sL(gl(r,e,!0),e),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=Tr(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=Dr(d.height+d.depth),d.depth&&(h.style.verticalAlign=Dr(-d.depth))}return d}function e6e(t){return new gR(t)}class Rr{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=d1(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Vo&&this.children[n+1]instanceof Vo){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Vo;)i+=this.children[++n].toText();e.appendChild(new Vo(i).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="',e+=Ic(this.attributes[r]),e+='"');this.classes.length>0&&(e+=' class ="'+Ic(d1(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Vo{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ic(this.toText())}toText(){return this.text}}class t6e{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Dr(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Dr(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var QGt=new Set(["\\imath","\\jmath"]),ZGt=new Set(["mrow","mtable"]),zh=function(e,r,n){return Is[r][e]&&Is[r][e].replace&&e.charCodeAt(0)!==55349&&!(WPe.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=Is[r][e].replace),new Vo(e)},Rle=function(e){return e.length===1?e[0]:new Rr("mrow",e)},JGt={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},Ole=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,i=JGt[r];if(i)return typeof i=="function"?i(t):i;var a=t.text;if(QGt.has(a))return null;if(Is[n][a]){var s=Is[n][a].replace;s&&(a=s)}var o=CJ[r].fontName;return wle(a,o,n)?CJ[r].variant:null};function qW(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Vo&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof Vo&&r.text===","}else return!1}var eh=function(e,r,n){if(e.length===1){var i=Za(e[0],r);return n&&i instanceof Rr&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o<e.length;o++){var l=Za(e[o],r);if(l instanceof Rr&&s instanceof Rr){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(qW(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&qW(s))l.children=[...s.children,...l.children],a.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||qW(s))){var u=l.children[0];u instanceof Rr&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof Vo&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof Vo&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},p1=function(e,r,n){return Rle(eh(e,r,n))},Za=function(e,r){if(!e)return new Rr("mrow");if(h7[e.type])return h7[e.type](e,r);throw new Ar("Got group of unknown type: '"+e.type+"'")};function uTe(t,e,r,n,i){var a=eh(t,r),s;a.length===1&&a[0]instanceof Rr&&ZGt.has(a[0].type)?s=a[0]:s=new Rr("mrow",a);var o=new Rr("annotation",[new Vo(e)]);o.setAttribute("encoding","application/x-tex");var l=new Rr("semantics",[s,o]),u=new Rr("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Tr([d],[u])}var ezt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],dTe=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],hTe=function(e,r){return r.size<2?e:ezt[e-1][r.size-1]};class Tm{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Tm.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=dTe[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,e),new Tm(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:hTe(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:dTe[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=hTe(Tm.BASESIZE,e);return this.size===r&&this.textSize===Tm.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Tm.BASESIZE?["sizing","reset-size"+this.size,"size"+Tm.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=FGt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Tm.BASESIZE=6;var r6e=function(e){return new Tm({style:e.displayMode?fi.DISPLAY:fi.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},n6e=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=Tr(n,[e])}return e},tzt=function(e,r,n){var i=r6e(n),a;if(n.output==="mathml")return uTe(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=RJ(e,i);a=Tr(["katex"],[s])}else{var o=uTe(e,r,i,n.displayMode,!1),l=RJ(e,i);a=Tr(["katex"],[o,l])}return n6e(a,n)},rzt=function(e,r,n){var i=r6e(n),a=RJ(e,i),s=Tr(["katex"],[a]);return n6e(s,n)},nzt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},lU=function(e){var r=new Rr("mo",[new Vo(nzt[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},izt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},azt=new Set(["widehat","widecheck","widetilde","utilde"]),cU=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(azt.has(l)&&"base"in e){var u=e.base.type==="ordgroup"?e.base.body.length:1,d,h,f;if(u>5)l==="widehat"||l==="widecheck"?(d=420,o=2364,f=.42,h=l+"4"):(d=312,o=2340,f=.34,h="tilde4");else{var p=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][p],d=[0,239,300,360,420][p],f=[0,.24,.3,.3,.36,.42][p],h=l+p):(o=[0,600,1033,2339,2340][p],d=[0,260,286,306,312][p],f=[0,.26,.286,.3,.306,.34][p],h="tilde"+p)}var g=new h1(h),m=new s0([g],{width:"100%",height:Dr(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:f1([],[m],r),minWidth:0,height:f}}else{var _=[],v=izt[l];if(!v)throw new Error('No SVG data for "'+l+'".');var[y,b,E]=v,S=E/1e3,T=y.length,C,x;if(T===1){if(v.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+l+'".');C=["hide-tail"],x=[v[3]]}else if(T===2)C=["halfarrow-left","halfarrow-right"],x=["xMinYMin","xMaxYMin"];else if(T===3)C=["brace-left","brace-center","brace-right"],x=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+T+" children.");for(var A=0;A<T;A++){var R=new h1(y[A]),I=new s0([R],{width:"400em",height:Dr(S),viewBox:"0 0 "+o+" "+E,preserveAspectRatio:x[A]+" slice"}),L=f1([C[A]],[I],r);if(T===1)return{span:L,minWidth:b,height:S};L.style.height=Dr(S),_.push(L)}return{span:Tr(["stretchy"],_,r),minWidth:b,height:S}}}var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=Dr(s),a>0&&(i.style.minWidth=Dr(a)),i},szt=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Tr(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new vJ({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new vJ({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new s0(u,{width:"100%",height:Dr(o)});s=f1([],[d],a)}return s.height=o,s.style.height=Dr(o),s},ozt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},lzt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function czt(t){return t in ozt}function Ri(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function uU(t){var e=dU(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function dU(t){return t&&(t.type==="atom"||lzt.hasOwnProperty(t.type))?t:null}var i6e=t=>{if(t instanceof qd)return t;if(PGt(t)&&t.children.length===1)return i6e(t.children[0])},Ile=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=Ri(t.base,"accent"),r=n.base,t.base=r,i=LGt(Ra(t,e)),t.base=n):(n=Ri(t,"accent"),r=n.base);var a=Ra(r,e.havingCrampedStyle()),s=n.isShifty&&R0(r),o=0;if(s){var l,u;o=(l=(u=i6e(a))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=cU(n,e),f=Aa({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Dr(2*o)+")",marginLeft:Dr(2*o)}:void 0}]});else{var p,g;n.label==="\\vec"?(p=QPe("vec",e),g=XPe.vec[1]):(p=oU({mode:n.mode,text:n.label},e,"textord"),p=MGt(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=Tr(["accent-body"],[p]);var m=n.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var _=o;m||(_-=g/2),f.style.left=Dr(_),n.label==="\\textcircled"&&(f.style.top=".2em"),f=Aa({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var v=Tr(["mord","accent"],[f],e);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},a6e=(t,e)=>{var r=t.isStretchy?lU(t.label):new Rr("mo",[zh(t.label,t.mode)]),n=new Rr("mover",[Za(t.base,e),r]);return n.setAttribute("accent","true"),n},uzt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));rn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var r=f7(e[0]),n=!uzt.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Ile,mathmlBuilder:a6e});rn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Ile,mathmlBuilder:a6e});rn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=Ra(t.base,e),n=cU(t,e),i=t.label==="\\utilde"?.12:0,a=Aa({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Tr(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=lU(t.label),n=new Rr("munder",[Za(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var oL=t=>{var e=new Rr("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};rn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=uA(Ra(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=uA(Ra(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=cU(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Aa({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:h}]})}else d=Aa({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return Tr(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=lU(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=oL(Za(t.body,e));if(t.below){var a=oL(Za(t.below,e));n=new Rr("munderover",[r,a,i])}else n=new Rr("mover",[r,i])}else if(t.below){var s=oL(Za(t.below,e));n=new Rr("munder",[r,s])}else n=oL(),n=new Rr("mover",[r,n]);return n}});function s6e(t,e){var r=gl(t.body,e,!0);return Tr([t.mclass],r,e)}function o6e(t,e){var r,n=eh(t.body,e);return t.mclass==="minner"?r=new Rr("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new Rr("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new Rr("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}rn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:qo(i),isCharacterBox:R0(i)}},htmlBuilder:s6e,mathmlBuilder:o6e});var hU=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};rn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:hU(e[0]),body:qo(e[1]),isCharacterBox:R0(e[1])}}});rn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=hU(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:qo(i)},l={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:R0(l)}},htmlBuilder:s6e,mathmlBuilder:o6e});rn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:hU(e[0]),body:qo(e[0])}},htmlBuilder(t,e){var r=gl(t.body,e,!0),n=Tr([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=eh(t.body,e),n=new Rr("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var dzt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},fTe=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),pTe=t=>t.type==="textord"&&t.text==="@",hzt=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function fzt(t,e,r){var n=dzt[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function pzt(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Ar("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;a<e.length;a++){for(var s=e[a],o=fTe(),l=0;l<s.length;l++)if(!pTe(s[l]))o.body.push(s[l]);else{n.push(o),l+=1;var u=uU(s[l]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;p<s.length;p++){if(hzt(s[p],u)){f=!1,l=p;break}if(pTe(s[p]))throw new Ar("Missing a "+u+" character to complete a CD arrow.",s[p]);d[h].body.push(s[p])}if(f)throw new Ar("Missing a "+u+" character to complete a CD arrow.",s[l])}else throw new Ar('Expected one of "<>AV=|." after @',s[l]);var g=fzt(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display",resetFont:!0};n.push(m),o=fTe()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var _=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}rn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=uA(Ra(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=Dr(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new Rr("mrow",[Za(t.label,e)]);return r=new Rr("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Rr("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});rn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=uA(Ra(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Rr("mrow",[Za(t.fragment,e)])}});rn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=Ri(e[0],"ordgroup"),i=n.body,a="",s=0;s<i.length;s++){var o=Ri(i[s],"textord");a+=o.text}var l=parseInt(a),u;if(isNaN(l))throw new Ar("\\@char has non-numeric argument "+a);if(l<0||l>=1114111)throw new Ar("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var l6e=(t,e)=>{var r=gl(t.body,e.withColor(t.color),!1);return I0(r)},c6e=(t,e)=>{var r=eh(t.body,e.withColor(t.color)),n=new Rr("mstyle",r);return n.setAttribute("mathcolor",t.color),n};rn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=Ri(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:qo(i)}},htmlBuilder:l6e,mathmlBuilder:c6e});rn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=Ri(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:l6e,mathmlBuilder:c6e});rn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Ri(i,"size").value}},htmlBuilder(t,e){var r=Tr(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=Dr(Hs(t.size,e)))),r},mathmlBuilder(t,e){var r=new Rr("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",Dr(Hs(t.size,e)))),r}});var OJ={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},u6e=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Ar("Expected a control sequence",t);return e},gzt=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},d6e=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};rn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(OJ[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=OJ[n.text]),Ri(e.parseFunction(),"internal");throw new Ar("Invalid token after macro prefix",n)}});rn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ar("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Ar('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new Ar('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new Ar("Expected a macro definition");o[a].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},r===OJ[r]),{type:"internal",mode:e.mode}}});rn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=u6e(e.gullet.popToken());e.gullet.consumeSpaces();var i=gzt(e);return d6e(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});rn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=u6e(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return d6e(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var EI=function(e,r,n){var i=Is.math[e]&&Is.math[e].replace,a=wle(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},Nle=function(e,r,n,i){var a=n.havingBaseStyle(r),s=Tr(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},h6e=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Dr(a),e.height-=a,e.depth+=a},mzt=function(e,r,n,i,a,s){var o=Zc(e,"Main-Regular",a,i),l=Nle(o,r,i,s);return h6e(l,i,r),l},_zt=function(e,r,n,i){return Zc(e,"Size"+r+"-Regular",n,i)},f6e=function(e,r,n,i,a,s){var o=_zt(e,r,a,i),l=Nle(Tr(["delimsizing","size"+r],[o],i),fi.TEXT,i,s);return n&&h6e(l,i,fi.TEXT),l},VW=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Tr(["delimsizinginner",i],[Tr([],[Zc(e,r,n)])]);return{type:"elem",elem:a}},HW=function(e,r,n){var i=Kp["Size4-Regular"][e.charCodeAt(0)]?Kp["Size4-Regular"][e.charCodeAt(0)][4]:Kp["Size1-Regular"][e.charCodeAt(0)][4],a=new h1("inner",AGt(e,Math.round(1e3*r))),s=new s0([a],{width:Dr(i),height:Dr(r),style:"width:"+Dr(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=f1([],[s],n);return o.height=r,o.style.height=Dr(r),o.style.width=Dr(i),{type:"elem",elem:o}},IJ=.008,lL={type:"kern",size:-1*IJ},vzt=new Set(["|","\\lvert","\\rvert","\\vert"]),yzt=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),p6e=function(e,r,n,i,a,s){var o,l,u,d,h="",f=0;o=u=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):vzt.has(e)?(u="∣",h="vert",f=333):yzt.has(e)?(u="∥",h="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",p="Size4-Regular",h="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",p="Size4-Regular",h="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",p="Size4-Regular");var g=EI(o,p,a),m=g.height+g.depth,_=EI(u,p,a),v=_.height+_.depth,y=EI(d,p,a),b=y.height+y.depth,E=0,S=1;if(l!==null){var T=EI(l,p,a);E=T.height+T.depth,S=2}var C=m+b+E,x=Math.max(0,Math.ceil((r-C)/(S*v))),A=C+x*S*v,R=i.fontMetrics().axisHeight;n&&(R*=i.sizeMultiplier);var I=A/2-R,L=[];if(h.length>0){var F=A-m-b,O=Math.round(A*1e3),D=RGt(h,Math.round(F*1e3)),M=new h1(h,D),P=Dr(f/1e3),N=Dr(O/1e3),$=new s0([M],{width:P,height:N,viewBox:"0 0 "+f+" "+O}),U=f1([],[$],i);U.height=O/1e3,U.style.width=P,U.style.height=N,L.push({type:"elem",elem:U})}else{if(L.push(VW(d,p,a)),L.push(lL),l===null){var B=A-m-b+2*IJ;L.push(HW(u,B,i))}else{var V=(A-m-b-E)/2+2*IJ;L.push(HW(u,V,i)),L.push(lL),L.push(VW(l,p,a)),L.push(lL),L.push(HW(u,V,i))}L.push(lL),L.push(VW(o,p,a))}var z=i.havingBaseStyle(fi.TEXT),G=Aa({positionType:"bottom",positionData:I,children:L});return Nle(Tr(["delimsizing","mult"],[G],z),fi.TEXT,i,s)},YW=80,WW=.08,KW=function(e,r,n,i,a){var s=xGt(e,i,n),o=new h1(e,s),l=new s0([o],{width:"400em",height:Dr(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return f1(["hide-tail"],[l],a)},bzt=function(e,r){var n=r.havingBaseSizing(),i=y6e("\\surd",e*n.sizeMultiplier,v6e,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,u,d,h;return i.type==="small"?(d=1e3+1e3*s+YW,e<1?a=1:e<1.4&&(a=.7),l=(1+s+WW)/a,u=(1+s)/a,o=KW("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(d=(1e3+YW)*hN[i.size],u=(hN[i.size]+s)/a,l=(hN[i.size]+s+WW)/a,o=KW("sqrtSize"+i.size,l,d,s,r),o.style.minWidth="1.02em",h=1/a):(l=e+s+WW,u=e+s,d=Math.floor(1e3*e+s)+YW,o=KW("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=Dr(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},g6e=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Ezt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),m6e=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),hN=[0,1.2,1.8,2.4,3],_6e=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),g6e.has(e)||m6e.has(e))return f6e(e,r,!1,n,i,a);if(Ezt.has(e))return p6e(e,hN[r],!1,n,i,a);throw new Ar("Illegal delimiter: '"+e+"'")},Szt=[{type:"small",style:fi.SCRIPTSCRIPT},{type:"small",style:fi.SCRIPT},{type:"small",style:fi.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Tzt=[{type:"small",style:fi.SCRIPTSCRIPT},{type:"small",style:fi.SCRIPT},{type:"small",style:fi.TEXT},{type:"stack"}],v6e=[{type:"small",style:fi.SCRIPTSCRIPT},{type:"small",style:fi.SCRIPT},{type:"small",style:fi.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Czt=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},y6e=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var l=EI(e,Czt(o),"math"),u=l.height+l.depth;if(o.type==="small"){var d=i.havingBaseStyle(o.style);u*=d.sizeMultiplier}if(u>r)return o}return n[n.length-1]},NJ=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;m6e.has(e)?o=Szt:g6e.has(e)?o=v6e:o=Tzt;var l=y6e(e,r,o,i);return l.type==="small"?mzt(e,l.style,n,i,a,s):l.type==="large"?f6e(e,l.size,n,i,a,s):p6e(e,r,n,i,a,s)},jW=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return NJ(e,h,!0,i,a,s)},gTe={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},wzt=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function mTe(t){return"isMiddle"in t}function fU(t,e){var r=dU(t);if(r&&wzt.has(r.text))return r;throw r?new Ar("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new Ar("Invalid delimiter type '"+t.type+"'",t)}rn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var r=fU(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:gTe[t.funcName].size,mclass:gTe[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Tr([t.mclass]):_6e(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(zh(t.delim,t.mode));var r=new Rr("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Dr(hN[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function _Te(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}rn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Ar("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:fU(e[0],t).text,color:r}}});rn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=fU(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Ri(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{_Te(t);for(var r=gl(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s<r.length;s++){var o=r[s];mTe(o)?a=!0:(n=Math.max(r[s].height,n),i=Math.max(r[s].depth,i))}n*=e.sizeMultiplier,i*=e.sizeMultiplier;var l;if(t.left==="."?l=Sk(e,["mopen"]):l=jW(t.left,n,i,e,t.mode,["mopen"]),r.unshift(l),a)for(var u=1;u<r.length;u++){var d=r[u];if(mTe(d)){var h=d.isMiddle;r[u]=jW(h.delim,n,i,h.options,t.mode,[])}}var f;if(t.right===".")f=Sk(e,["mclose"]);else{var p=t.rightColor?e.withColor(t.rightColor):e;f=jW(t.right,n,i,p,t.mode,["mclose"])}return r.push(f),Tr(["minner"],r,e)},mathmlBuilder:(t,e)=>{_Te(t);var r=eh(t.body,e);if(t.left!=="."){var n=new Rr("mo",[zh(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new Rr("mo",[zh(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return Rle(r)}});rn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=fU(e[0],t);if(!t.parser.leftrightDepth)throw new Ar("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=Sk(e,[]):(r=_6e(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?zh("|","text"):zh(t.delim,t.mode),n=new Rr("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var pU=(t,e)=>{var r=uA(Ra(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s,o=R0(t.body);if(n==="sout")a=Tr(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=Hs({number:.6,unit:"pt"},e),u=Hs({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=Dr(h/2+l);var f=Math.floor(1e3*h*i),p=CGt(f),g=new s0([new h1("phase",p)],{width:"400em",height:Dr(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=f1(["hide-tail"],[g],e),a.style.height=Dr(h),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m,_,v=0;/box/.test(n)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:v),_=m):n==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,_=Math.max(0,.25-r.depth)):(m=o?.2:0,_=m),a=szt(r,n,m,_,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=Dr(v)):n==="angl"&&v!==.049&&(a.style.borderTopWidth=Dr(v),a.style.borderRightWidth=Dr(v)),s=r.depth+_,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var y;if(t.backgroundColor)y=Aa({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var b=/cancel|phase/.test(n)?["svg-align"]:[];y=Aa({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:b}]})}return/cancel/.test(n)&&(y.height=r.height,y.depth=r.depth),/cancel/.test(n)&&!o?Tr(["mord","cancel-lap"],[y],e):Tr(["mord"],[y],e)},gU=(t,e)=>{var r,n=new Rr(t.label.includes("colorbox")?"mpadded":"menclose",[Za(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+Dr(i)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};rn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=Ri(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:pU,mathmlBuilder:gU});rn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=Ri(e[0],"color-token").color,s=Ri(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:pU,mathmlBuilder:gU});rn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});rn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:pU,mathmlBuilder:gU});rn({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:pU,mathmlBuilder:gU});rn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var b6e={};function xg(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<r.length;++l)b6e[r[l]]=o;a&&(d7[e]=a),s&&(h7[e]=s)}var E6e={};function nt(t,e){E6e[t]=e}class Vu{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new Vu(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Ud{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Ud(r,Vu.range(this,e))}}function vTe(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var mU=t=>{var e=t.parser.settings;if(!e.displayMode)throw new Ar("{"+t.envName+"} can be used only in display mode.")},xzt=new Set(["gather","gather*"]);function kle(t){if(!t.includes("ed"))return!t.includes("*")}function q1(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new Ar("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],m=[g],_=[],v=[],y=l!=null?[]:void 0;function b(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function E(){y&&(t.gullet.macros.get("\\df@tag")?(y.push(t.subparse([new Ud("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(b(),v.push(vTe(t));;){var S=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var T={type:"ordgroup",mode:t.mode,body:S};r&&(T={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[T]}),g.push(T);var C=t.fetch().text;if(C==="&"){if(h&&g.length===h){if(u||o)throw new Ar("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(C==="\\end"){E(),g.length===1&&T.type==="styling"&&T.body.length===1&&T.body[0].type==="ordgroup"&&T.body[0].body.length===0&&(m.length>1||!d)&&m.pop(),v.length<m.length+1&&v.push([]);break}else if(C==="\\\\"){t.consume();var x=void 0;t.gullet.future().text!==" "&&(x=t.parseSizeGroup(!0)),_.push(x?x.value:null),E(),v.push(vTe(t)),g=[],m.push(g),b()}else throw new Ar("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:i,arraystretch:s,body:m,cols:a,rowGaps:_,hskipBeforeAndAfter:n,hLinesBeforeRow:v,colSeparationType:o,tags:y,leqno:f}}function Dle(t){return t.slice(0,1)==="d"?"display":"text"}var Ag=function(e,r){var n,i,a=e.body.length,s=e.hLinesBeforeRow,o=0,l=new Array(a),u=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),h=1/r.fontMetrics().ptPerEm,f=5*h;if(e.colSeparationType&&e.colSeparationType==="small"){var p=r.havingStyle(fi.SCRIPT).sizeMultiplier;f=.2778*(p/r.sizeMultiplier)}var g=e.colSeparationType==="CD"?Hs({number:3,unit:"ex"},r):12*h,m=3*h,_=e.arraystretch*g,v=.7*_,y=.3*_,b=0;function E(et){for(var Ie=0;Ie<et.length;++Ie)Ie>0&&(b+=.25),u.push({pos:b,isDashed:et[Ie]})}for(E(s[0]),n=0;n<e.body.length;++n){var S=e.body[n],T=v,C=y;o<S.length&&(o=S.length);var x={cells:new Array(S.length),height:0,depth:0,pos:0};for(i=0;i<S.length;++i){var A=Ra(S[i],r);C<A.depth&&(C=A.depth),T<A.height&&(T=A.height),x.cells[i]=A}var R=e.rowGaps[n],I=0;R&&(I=Hs(R,r),I>0&&(I+=y,C<I&&(C=I),I=0)),e.addJot&&n<e.body.length-1&&(C+=m),x.height=T,x.depth=C,b+=T,x.pos=b,b+=C+I,l[n]=x,E(s[n+1])}var L=b/2+r.fontMetrics().axisHeight,F=e.cols||[],O=[],D,M,P=[];if(e.tags&&e.tags.some(et=>et))for(n=0;n<a;++n){var N=l[n],$=N.pos-L,U=e.tags[n],B=void 0;U===!0?B=Tr(["eqn-num"],[],r):U===!1?B=Tr([],[],r):B=Tr([],gl(U,r,!0),r),B.depth=N.depth,B.height=N.height,P.push({type:"elem",elem:B,shift:$})}for(i=0,M=0;i<o||M<F.length;++i,++M){for(var V,z=F[M],G=!0;((Y=z)==null?void 0:Y.type)==="separator";){var Y;if(G||(D=Tr(["arraycolsep"],[]),D.style.width=Dr(r.fontMetrics().doubleRuleSep),O.push(D)),z.separator==="|"||z.separator===":"){var W=z.separator==="|"?"solid":"dashed",Q=Tr(["vertical-separator"],[],r);Q.style.height=Dr(b),Q.style.borderRightWidth=Dr(d),Q.style.borderRightStyle=W,Q.style.margin="0 "+Dr(-d/2);var ie=b-L;ie&&(Q.style.verticalAlign=Dr(-ie)),O.push(Q)}else throw new Ar("Invalid separator type: "+z.separator);M++,z=F[M],G=!1}if(!(i>=o)){var Z=void 0;if(i>0||e.hskipBeforeAndAfter){var re,K;Z=(re=(K=z)==null?void 0:K.pregap)!=null?re:f,Z!==0&&(D=Tr(["arraycolsep"],[]),D.style.width=Dr(Z),O.push(D))}var j=[];for(n=0;n<a;++n){var se=l[n],le=se.cells[i];if(le){var _e=se.pos-L;le.depth=se.depth,le.height=se.height,j.push({type:"elem",elem:le,shift:_e})}}var ye=Aa({positionType:"individualShift",children:j}),Ue=Tr(["col-align-"+(((V=z)==null?void 0:V.align)||"c")],[ye]);if(O.push(Ue),i<o-1||e.hskipBeforeAndAfter){var Se,be;Z=(Se=(be=z)==null?void 0:be.postgap)!=null?Se:f,Z!==0&&(D=Tr(["arraycolsep"],[]),D.style.width=Dr(Z),O.push(D))}}}var ke=Tr(["mtable"],O);if(u.length>0){for(var Ae=cA("hline",r,d),tt=cA("hdashline",r,d),Oe=[{type:"elem",elem:ke,shift:0}];u.length>0;){var je=u.pop(),ct=je.pos-L;je.isDashed?Oe.push({type:"elem",elem:tt,shift:ct}):Oe.push({type:"elem",elem:Ae,shift:ct})}ke=Aa({positionType:"individualShift",children:Oe})}if(P.length===0)return Tr(["mord"],[ke],r);var Fe=Aa({positionType:"individualShift",children:P}),Xe=Tr(["tag"],[Fe],r);return I0([ke,Xe])},Azt={c:"center ",l:"left ",r:"right "},Rg=function(e,r){for(var n=[],i=new Rr("mtd",[],["mtr-glue"]),a=new Rr("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],l=[],u=0;u<o.length;u++)l.push(new Rr("mtd",[Za(o[u],r)]));e.tags&&e.tags[s]&&(l.unshift(i),l.push(i),e.leqno?l.unshift(a):l.push(a)),n.push(new Rr("mtr",l))}var d=new Rr("mtable",n),h=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);d.setAttribute("rowspacing",Dr(h));var f="",p="";if(e.cols&&e.cols.length>0){var g=e.cols,m="",_=!1,v=0,y=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",y-=1);for(var b=v;b<y;b++){var E=g[b];E.type==="align"?(p+=Azt[E.align],_&&(m+="none "),_=!0):E.type==="separator"&&_&&(m+=E.separator==="|"?"solid ":"dashed ",_=!1)}d.setAttribute("columnalign",p.trim()),/[sd]/.test(m)&&d.setAttribute("columnlines",m.trim())}if(e.colSeparationType==="align"){for(var S=e.cols||[],T="",C=1;C<S.length;C++)T+=C%2?"0em ":"1em ";d.setAttribute("columnspacing",T.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var x="",A=e.hLinesBeforeRow;f+=A[0].length>0?"left ":"",f+=A[A.length-1].length>0?"right ":"";for(var R=1;R<A.length-1;R++)x+=A[R].length===0?"none ":A[R][0]?"dashed ":"solid ";return/[sd]/.test(x)&&d.setAttribute("rowlines",x.trim()),f!==""&&(d=new Rr("menclose",[d]),d.setAttribute("notation",f.trim())),e.arraystretch&&e.arraystretch<1&&(d=new Rr("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},S6e=function(e,r){e.envName.includes("ed")||mU(e);var n=[],i=e.envName.includes("at")?"alignat":"align",a=e.envName==="split",s=q1(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:kle(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,l=0,u={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var d="",h=0;h<r[0].body.length;h++){var f=Ri(r[0].body[h],"textord");d+=f.text}o=Number(d),l=o*2}var p=!l;s.body.forEach(function(v){for(var y=1;y<v.length;y+=2){var b=Ri(v[y],"styling"),E=Ri(b.body[0],"ordgroup");E.body.unshift(u)}if(p)l<v.length&&(l=v.length);else{var S=v.length/2;if(o<S)throw new Ar("Too many math in a row: "+("expected "+o+", but got "+S),v[0])}});for(var g=0;g<l;++g){var m="r",_=0;g%2===1?m="l":g>0&&p&&(_=1),n[g]={type:"align",align:m,pregap:_,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};xg({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=dU(e[0]),n=r?[e[0]]:Ri(e[0],"ordgroup").body,i=n.map(function(s){var o=uU(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ar("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return q1(t.parser,a,Dle(t.envName))},htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Ar("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=q1(t.parser,n,Dle(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=q1(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=dU(e[0]),n=r?[e[0]]:Ri(e[0],"ordgroup").body,i=n.map(function(o){var l=uU(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Ar("Unknown column alignment: "+u,o)});if(i.length>1)throw new Ar("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=q1(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new Ar("{subarray} can contain only one column");return s},htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=q1(t.parser,e,Dle(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:S6e,htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){xzt.has(t.envName)&&mU(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:kle(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return q1(t.parser,e,"display")},htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:S6e,htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){mU(t);var e={autoTag:kle(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return q1(t.parser,e,"display")},htmlBuilder:Ag,mathmlBuilder:Rg});xg({type:"array",names:["CD"],props:{numArgs:0},handler(t){return mU(t),pzt(t.parser)},htmlBuilder:Ag,mathmlBuilder:Rg});nt("\\nonumber","\\gdef\\@eqnsw{0}");nt("\\notag","\\nonumber");rn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Ar(t.funcName+" valid only within array environment")}});var yTe=b6e;rn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new Ar("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=Ri(i.body[s],"textord").text;if(n==="\\begin"){if(!yTe.hasOwnProperty(a))throw new Ar("No such environment: "+a,i);var o=yTe[a],{args:l,optArgs:u}=r.parseArguments("\\begin{"+a+"}",o),d={mode:r.mode,envName:a,parser:r},h=o.handler(d,l,u);r.expect("\\end",!1);var f=r.nextToken,p=Ri(r.parseFunction(),"environment");if(p.name!==a)throw new Ar("Mismatch: \\begin{"+a+"} matched by \\end{"+p.name+"}",f);return h}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var T6e=(t,e)=>{var r=t.font,n=e.withFont(r);return Ra(t.body,n)},C6e=(t,e)=>{var r=t.font,n=e.withFont(r);return Za(t.body,n)},bTe={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};rn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=f7(e[0]),a=n;return a in bTe&&(a=bTe[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:T6e,mathmlBuilder:C6e});rn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:hU(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:R0(n)}}});rn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:T6e,mathmlBuilder:C6e});var Rzt=(t,e)=>{var r=e.style,n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=Ra(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<l?l:s.depth}a=e.havingStyle(i);var u=Ra(t.denom,a,e),d,h,f;t.hasBarLine?(t.barSize?(h=Hs(t.barSize,e),d=cA("frac-line",e,h)):d=cA("frac-line",e),h=d.height,f=d.height):(d=null,h=0,f=e.fontMetrics().defaultRuleThickness);var p,g,m;r.size===fi.DISPLAY.size?(p=e.fontMetrics().num1,h>0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var _;if(d){var y=e.fontMetrics().axisHeight;p-s.depth-(y+.5*h)<g&&(p+=g-(p-s.depth-(y+.5*h))),y-.5*h-(u.height-m)<g&&(m+=g-(y-.5*h-(u.height-m)));var b=-(y-.5*h);_=Aa({positionType:"individualShift",children:[{type:"elem",elem:u,shift:m},{type:"elem",elem:d,shift:b},{type:"elem",elem:s,shift:-p}]})}else{var v=p-s.depth-(u.height-m);v<g&&(p+=.5*(g-v),m+=.5*(g-v)),_=Aa({positionType:"individualShift",children:[{type:"elem",elem:u,shift:m},{type:"elem",elem:s,shift:-p}]})}a=e.havingStyle(r),_.height*=a.sizeMultiplier/e.sizeMultiplier,_.depth*=a.sizeMultiplier/e.sizeMultiplier;var E;r.size===fi.DISPLAY.size?E=e.fontMetrics().delim1:r.size===fi.SCRIPTSCRIPT.size?E=e.havingStyle(fi.SCRIPT).fontMetrics().delim2:E=e.fontMetrics().delim2;var S,T;return t.leftDelim==null?S=Sk(e,["mopen"]):S=NJ(t.leftDelim,E,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?T=Tr([]):t.rightDelim==null?T=Sk(e,["mclose"]):T=NJ(t.rightDelim,E,!0,e.havingStyle(r),t.mode,["mclose"]),Tr(["mord"].concat(a.sizingClasses(e)),[S,Tr(["mfrac"],[_]),T],e)},Ozt=(t,e)=>{var r=new Rr("mfrac",[Za(t.numer,e),Za(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Hs(t.barSize,e);r.setAttribute("linethickness",Dr(n))}if(t.leftDelim!=null||t.rightDelim!=null){var i=[];if(t.leftDelim!=null){var a=new Rr("mo",[new Vo(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),t.rightDelim!=null){var s=new Rr("mo",[new Vo(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return Rle(i)}return r},w6e=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};rn({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),w6e({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:Rzt,mathmlBuilder:Ozt});rn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var ETe=["display","text","script","scriptscript"],STe=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};rn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=f7(e[0]),s=a.type==="atom"&&a.family==="open"?STe(a.text):null,o=f7(e[1]),l=o.type==="atom"&&o.family==="close"?STe(o.text):null,u=Ri(e[2],"size"),d,h=null;u.isBlank?d=!0:(h=u.value,d=h.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=Ri(p.body[0],"textord");f=ETe[Number(g.text)]}}else p=Ri(p,"textord"),f=ETe[Number(p.text)];return w6e({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});rn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ri(e[0],"size").value,token:i}}});rn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=Ri(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var x6e=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?Ra(t.sup,e.havingStyle(r.sup()),e):Ra(t.sub,e.havingStyle(r.sub()),e),i=Ri(t.base,"horizBrace")):i=Ri(t,"horizBrace");var a=Ra(i.base,e.havingBaseStyle(fi.DISPLAY)),s=cU(i,e),o;if(i.isOver?o=Aa({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=Aa({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:a}]}),n){var l=Tr(["minner",i.isOver?"mover":"munder"],[o],e);i.isOver?o=Aa({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=Aa({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Tr(["minner",i.isOver?"mover":"munder"],[o],e)},Izt=(t,e)=>{var r=lU(t.label);return new Rr(t.isOver?"mover":"munder",[Za(t.base,e),r])};rn({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:x6e,mathmlBuilder:Izt});rn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],i=Ri(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:qo(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=gl(t.body,e,!1);return qGt(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=p1(t.body,e);return r instanceof Rr||(r=new Rr("mrow",[r])),r.setAttribute("href",t.href),r}});rn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=Ri(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var s=n[a];s==="~"&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:qo(o)}}});rn({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(t,e){var{parser:r}=t;return{type:"hbox",mode:r.mode,body:qo(e[0])}},htmlBuilder(t,e){var r=gl(t.body,e.withFont(""),!1);return I0(r)},mathmlBuilder(t,e){return new Rr("mrow",eh(t.body,e.withFont("")))}});rn({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,token:i}=t,a=Ri(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d<u.length;d++){var h=u[d],f=h.indexOf("=");if(f<0)throw new Ar("\\htmlData key/value '"+h+"' missing equals sign");var p=h.slice(0,f),g=h.slice(f+1);l["data-"+p.trim()]=g}o={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:l,body:qo(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=gl(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=Tr(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>p1(t.body,e)});rn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:qo(e[0]),mathml:qo(e[1])}},htmlBuilder:(t,e)=>{var r=gl(t.html,e,!1);return I0(r)},mathmlBuilder:(t,e)=>p1(t.mathml,e)});var XW=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new Ar("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!zPe(n))throw new Ar("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};rn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=Ri(r[0],"raw").string,u=l.split(","),d=0;d<u.length;d++){var h=u[d].split("=");if(h.length===2){var f=h[1].trim();switch(h[0].trim()){case"alt":o=f;break;case"width":i=XW(f);break;case"height":a=XW(f);break;case"totalheight":s=XW(f);break;default:throw new Ar("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var p=Ri(e[0],"url").url;return o===""&&(o=p,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:n.mode,alt:o,width:i,height:a,totalheight:s,src:p}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=Hs(t.height,e),n=0;t.totalheight.number>0&&(n=Hs(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=Hs(t.width,e));var a={height:Dr(r+n)};i>0&&(a.width=Dr(i)),n>0&&(a.verticalAlign=Dr(-n));var s=new kGt(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Rr("mglyph",[]);r.setAttribute("alt",t.alt);var n=Hs(t.height,e),i=0;if(t.totalheight.number>0&&(i=Hs(t.totalheight,e)-n,r.setAttribute("valign",Dr(-i))),r.setAttribute("height",Dr(n+i)),t.width.number>0){var a=Hs(t.width,e);r.setAttribute("width",Dr(a))}return r.setAttribute("src",t.src),r}});rn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=Ri(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return jPe(t.dimension,e)},mathmlBuilder(t,e){var r=Hs(t.dimension,e);return new t6e(r)}});rn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Tr([],[Ra(t.body,e)]),r=Tr(["inner"],[r],e)):r=Tr(["inner"],[Ra(t.body,e)]);var n=Tr(["fix"],[]),i=Tr([t.alignment],[r,n],e),a=Tr(["strut"]);return a.style.height=Dr(i.height+i.depth),i.depth&&(a.style.verticalAlign=Dr(-i.depth)),i.children.unshift(a),i=Tr(["thinbox"],[i],e),Tr(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Rr("mpadded",[Za(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});rn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});rn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Ar("Mismatched "+t.funcName)}});var TTe=(t,e)=>{switch(e.style.size){case fi.DISPLAY.size:return t.display;case fi.TEXT.size:return t.text;case fi.SCRIPT.size:return t.script;case fi.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};rn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:qo(e[0]),text:qo(e[1]),script:qo(e[2]),scriptscript:qo(e[3])}},htmlBuilder:(t,e)=>{var r=TTe(t,e),n=gl(r,e,!1);return I0(n)},mathmlBuilder:(t,e)=>{var r=TTe(t,e);return p1(r,e)}});var A6e=(t,e,r,n,i,a,s)=>{t=Tr([],[t]);var o=r&&R0(r),l,u;if(e){var d=Ra(e,n.havingStyle(i.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Ra(r,n.havingStyle(i.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=Aa({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Dr(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Dr(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=Aa({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Dr(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=Aa({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Dr(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var _=[f];if(l&&a!==0&&!o){var v=Tr(["mspace"],[],n);v.style.marginRight=Dr(a),_.unshift(v)}return Tr(["mop","op-limits"],_,n)},R6e=new Set(["\\smallint"]),vR=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Ri(t.base,"op"),i=!0):a=Ri(t,"op");var s=e.style,o=!1;s.size===fi.DISPLAY.size&&a.symbol&&!R6e.has(a.name)&&(o=!0);var l,u;if(a.symbol){var d=o?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),l=Zc(a.name,d,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),u=l.italic,h.length>0){var f=QPe(h+"Size"+(o?"2":"1"),e);l=Aa({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+h,l.classes.unshift("mop"),l.italic=u}}else if(a.body){var p=gl(a.body,e,!0);p.length===1&&p[0]instanceof qd?(l=p[0],l.classes[0]="mop"):l=Tr(["mop"],p,e)}else{for(var g=[],m=1;m<a.name.length;m++)g.push(xle(a.name[m],a.mode,e));l=Tr(["mop"],g,e)}var _=0,v=0;if((l instanceof qd||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift){var y;_=(l.height-l.depth)/2-e.fontMetrics().axisHeight,v=(y=l.italic)!=null?y:0}return i?A6e(l,r,n,e,s,v,_):(_&&(l.style.position="relative",l.style.top=Dr(_)),l)},k5=(t,e)=>{var r;if(t.symbol)r=new Rr("mo",[zh(t.name,t.mode)]),R6e.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Rr("mo",eh(t.body,e));else{r=new Rr("mi",[new Vo(t.name.slice(1))]);var n=new Rr("mo",[zh("⁡","text")]);t.parentIsSupSub?r=new Rr("mrow",[r,n]):r=e6e([r,n])}return r},Nzt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};rn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=Nzt[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:vR,mathmlBuilder:k5});rn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:qo(n)}},htmlBuilder:vR,mathmlBuilder:k5});var kzt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};rn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:vR,mathmlBuilder:k5});rn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:vR,mathmlBuilder:k5});rn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=kzt[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:vR,mathmlBuilder:k5});var O6e=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=Ri(t.base,"operatorname"),i=!0):a=Ri(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=gl(o,e.withFont("mathrm"),!0),u=0;u<l.length;u++){var d=l[u];d instanceof qd&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=Tr(["mop"],l,e)}else s=Tr(["mop"],[],e);return i?A6e(s,r,n,e,e.style,0,0):s},Dzt=(t,e)=>{for(var r=eh(t.body,e.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof t6e))if(a instanceof Rr)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof Vo?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(d=>d.toText()).join("");r=[new Vo(o)]}var l=new Rr("mi",r);l.setAttribute("mathvariant","normal");var u=new Rr("mo",[zh("⁡","text")]);return t.parentIsSupSub?new Rr("mrow",[l,u]):e6e([l,u])};rn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:qo(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:O6e,mathmlBuilder:Dzt});nt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");lE({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?I0(gl(t.body,e,!1)):Tr(["mord"],gl(t.body,e,!0),e)},mathmlBuilder(t,e){return p1(t.body,e,!0)}});rn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=Ra(t.body,e.havingCrampedStyle()),n=cA("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Aa({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Tr(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new Rr("mo",[new Vo("‾")]);r.setAttribute("stretchy","true");var n=new Rr("mover",[Za(t.body,e),r]);return n.setAttribute("accent","true"),n}});rn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:qo(n)}},htmlBuilder:(t,e)=>{var r=gl(t.body,e.withPhantom(),!1);return I0(r)},mathmlBuilder:(t,e)=>{var r=eh(t.body,e);return new Rr("mphantom",r)}});nt("\\hphantom","\\smash{\\phantom{#1}}");rn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=Tr(["inner"],[Ra(t.body,e.withPhantom())]),n=Tr(["fix"],[]);return Tr(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=eh(qo(t.body),e),n=new Rr("mphantom",r),i=new Rr("mpadded",[n]);return i.setAttribute("width","0px"),i}});rn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=Ri(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=Ra(t.body,e),n=Hs(t.dy,e);return Aa({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Rr("mpadded",[Za(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});rn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});rn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=Ri(e[0],"size"),s=Ri(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&Ri(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=Tr(["mord","rule"],[],e),n=Hs(t.width,e),i=Hs(t.height,e),a=t.shift?Hs(t.shift,e):0;return r.style.borderRightWidth=Dr(n),r.style.borderTopWidth=Dr(i),r.style.bottom=Dr(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Hs(t.width,e),n=Hs(t.height,e),i=t.shift?Hs(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new Rr("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Dr(r)),s.setAttribute("height",Dr(n));var o=new Rr("mpadded",[s]);return i>=0?o.setAttribute("height",Dr(i)):(o.setAttribute("height",Dr(i)),o.setAttribute("depth",Dr(-i))),o.setAttribute("voffset",Dr(i)),o}});function I6e(t,e,r){for(var n=gl(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var s=n[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[a].classes,e.sizingClasses(r)):n[a].classes[s+1]==="reset-size"+e.size&&(n[a].classes[s+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return I0(n)}var CTe=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Mzt=(t,e)=>{var r=e.havingSize(t.size);return I6e(t.body,r,e)};rn({type:"sizing",names:CTe,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:CTe.indexOf(n)+1,body:a}},htmlBuilder:Mzt,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=eh(t.body,r),i=new Rr("mstyle",n);return i.setAttribute("mathsize",Dr(r.sizeMultiplier)),i}});rn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&Ri(r[0],"ordgroup");if(s)for(var o,l=0;l<s.body.length;++l){var u=s.body[l];if(o=uU(u).text,o==="t")i=!0;else if(o==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var d=e[0];return{type:"smash",mode:n.mode,body:d,smashHeight:i,smashDepth:a}},htmlBuilder:(t,e)=>{var r=Tr([],[Ra(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return Tr(["mord","smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var i=Aa({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Tr(["mord"],[i],e)},mathmlBuilder:(t,e)=>{var r=new Rr("mpadded",[Za(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});rn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=Ra(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=uA(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.id<fi.TEXT.id&&(a=e.fontMetrics().xHeight);var s=i+a/4,o=r.height+r.depth+s+i,{span:l,ruleWidth:u,advanceWidth:d}=bzt(o,e),h=l.height-u;h>r.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=Dr(d);var p=Aa({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(fi.SCRIPTSCRIPT),m=Ra(t.index,g,e),_=.6*(p.height-p.depth),v=Aa({positionType:"shift",positionData:-_,children:[{type:"elem",elem:m}]}),y=Tr(["root"],[v]);return Tr(["mord","sqrt"],[y,p],e)}else return Tr(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new Rr("mroot",[Za(r,e),Za(n,e)]):new Rr("msqrt",[Za(r,e)])}});var kJ={display:fi.DISPLAY,text:fi.TEXT,script:fi.SCRIPT,scriptscript:fi.SCRIPTSCRIPT};function Lzt(t){return t in kJ}rn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!Lzt(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=kJ[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),I6e(t.body,n,e)},mathmlBuilder(t,e){var r=kJ[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var i=eh(t.body,n),a=new Rr("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Pzt=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===fi.DISPLAY.size||n.alwaysHandleSupSub);return i?vR:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===fi.DISPLAY.size||n.limits);return a?O6e:null}else{if(n.type==="accent")return R0(n.base)?Ile:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?x6e:null}else return null}else return null};lE({type:"supsub",htmlBuilder(t,e){var r=Pzt(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=Ra(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&R0(n);if(i){var p=e.havingStyle(e.style.sup());o=Ra(i,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=Ra(a,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===fi.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var _=e.sizeMultiplier,v=Dr(.5/u.ptPerEm/_),y=null;if(l){var b=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof qd||b){var E;y=Dr(-((E=s.italic)!=null?E:0))}}var S;if(o&&l){d=Math.max(d,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var T=u.defaultRuleThickness,C=4*T;if(d-o.depth-(l.height-h)<C){h=C-(d-o.depth)+l.height;var x=.8*u.xHeight-(d-o.depth);x>0&&(d+=x,h-=x)}var A=[{type:"elem",elem:l,shift:h,marginRight:v,marginLeft:y},{type:"elem",elem:o,shift:-d,marginRight:v}];S=Aa({positionType:"individualShift",children:A})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var R=[{type:"elem",elem:l,marginLeft:y,marginRight:v}];S=Aa({positionType:"shift",positionData:h,children:R})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),S=Aa({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var I=AJ(s,"right")||"mord";return Tr([I],[s,Tr(["msupsub"],[S])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[Za(t.base,e)];t.sub&&a.push(Za(t.sub,e)),t.sup&&a.push(Za(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===fi.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===fi.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===fi.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===fi.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===fi.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===fi.DISPLAY)?s="mover":s="msup"}return new Rr(s,a)}});lE({type:"atom",htmlBuilder(t,e){return xle(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Rr("mo",[zh(t.text,t.mode)]);if(t.family==="bin"){var n=Ole(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var N6e={mi:"italic",mn:"normal",mtext:"normal"};lE({type:"mathord",htmlBuilder(t,e){return oU(t,e,"mathord")},mathmlBuilder(t,e){var r=new Rr("mi",[zh(t.text,t.mode,e)]),n=Ole(t,e)||"italic";return n!==N6e[r.type]&&r.setAttribute("mathvariant",n),r}});lE({type:"textord",htmlBuilder(t,e){return oU(t,e,"textord")},mathmlBuilder(t,e){var r=zh(t.text,t.mode,e),n=Ole(t,e)||"normal",i;return t.mode==="text"?i=new Rr("mtext",[r]):/[0-9]/.test(t.text)?i=new Rr("mn",[r]):t.text==="\\prime"?i=new Rr("mo",[r]):i=new Rr("mi",[r]),n!==N6e[i.type]&&i.setAttribute("mathvariant",n),i}});var QW={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ZW={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};lE({type:"spacing",htmlBuilder(t,e){if(ZW.hasOwnProperty(t.text)){var r=ZW[t.text].className||"";if(t.mode==="text"){var n=oU(t,e,"textord");return n.classes.push(r),n}else return Tr(["mspace",r],[xle(t.text,t.mode,e)],e)}else{if(QW.hasOwnProperty(t.text))return Tr(["mspace",QW[t.text]],[],e);throw new Ar('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(ZW.hasOwnProperty(t.text))r=new Rr("mtext",[new Vo(" ")]);else{if(QW.hasOwnProperty(t.text))return new Rr("mspace");throw new Ar('Unknown type of space "'+t.text+'"')}return r}});var wTe=()=>{var t=new Rr("mtd",[]);return t.setAttribute("width","50%"),t};lE({type:"tag",mathmlBuilder(t,e){var r=new Rr("mtable",[new Rr("mtr",[wTe(),new Rr("mtd",[p1(t.body,e)]),wTe(),new Rr("mtd",[p1(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var xTe={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ATe={"\\textbf":"textbf","\\textmd":"textmd"},Fzt={"\\textit":"textit","\\textup":"textup"},RTe=(t,e)=>{var r=t.font;if(r){if(xTe[r])return e.withTextFontFamily(xTe[r]);if(ATe[r])return e.withTextFontWeight(ATe[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Fzt[r])};rn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:qo(i),font:n}},htmlBuilder(t,e){var r=RTe(t,e),n=gl(t.body,r,!0);return Tr(["mord","text"],n,r)},mathmlBuilder(t,e){var r=RTe(t,e);return p1(t.body,r)}});rn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ra(t.body,e),n=cA("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Aa({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Tr(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new Rr("mo",[new Vo("‾")]);r.setAttribute("stretchy","true");var n=new Rr("munder",[Za(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});rn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ra(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Aa({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Rr("mpadded",[Za(t.body,e)],["vcenter"]);return new Rr("mrow",[r])}});rn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new Ar("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=OTe(t),n=[],i=e.havingStyle(e.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),n.push(Zc(s,"Typewriter-Regular",t.mode,i,["mord","texttt"]))}return Tr(["mord","text"].concat(i.sizingClasses(e)),KPe(n),i)},mathmlBuilder(t,e){var r=new Vo(OTe(t)),n=new Rr("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var OTe=t=>t.body.replace(/ /g,t.star?"␣":" "),L_=ZPe,k6e=`[ \r
	]`,Bzt="\\\\[a-zA-Z@]+",Uzt="\\\\[^\uD800-\uDFFF]",$zt="("+Bzt+")"+k6e+"*",Gzt=`\\\\(
|[ \r	]+
?)[ \r	]*`,DJ="[̀-ͯ]",zzt=new RegExp(DJ+"+$"),qzt="("+k6e+"+)|"+(Gzt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(DJ+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(DJ+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+$zt)+("|"+Uzt+")");let ITe=class{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(qzt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Ud("EOF",new Vu(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Ar("Unexpected character: '"+e[r]+"'",new Ud(e[r],new Vu(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(`
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Ud(i,new Vu(this,r,this.tokenRegex.lastIndex))}};class Vzt{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ar("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var Hzt=E6e;nt("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});nt("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});nt("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});nt("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});nt("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});nt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");nt("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var NTe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};nt("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Ar("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=NTe[e.text],n==null||n>=r)throw new Ar("Invalid base-"+r+" digit "+e.text);for(var i;(i=NTe[t.future().text])!=null&&i<r;)n*=r,n+=i,t.popToken()}return"\\@char{"+n+"}"});var Mle=(t,e,r,n)=>{var i=t.consumeArg().tokens;if(i.length!==1)throw new Ar("\\newcommand's first argument must be a macro name");var a=i[0].text,s=t.isDefined(a);if(s&&!e)throw new Ar("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new Ar("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Ar("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return s&&n||t.macros.set(a,{tokens:i,numArgs:o}),""};nt("\\newcommand",t=>Mle(t,!1,!0,!1));nt("\\renewcommand",t=>Mle(t,!0,!1,!1));nt("\\providecommand",t=>Mle(t,!0,!0,!0));nt("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});nt("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});nt("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),L_[r],Is.math[r],Is.text[r]),""});nt("\\bgroup","{");nt("\\egroup","}");nt("~","\\nobreakspace");nt("\\lq","`");nt("\\rq","'");nt("\\aa","\\r a");nt("\\AA","\\r A");nt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");nt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");nt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");nt("ℬ","\\mathscr{B}");nt("ℰ","\\mathscr{E}");nt("ℱ","\\mathscr{F}");nt("ℋ","\\mathscr{H}");nt("ℐ","\\mathscr{I}");nt("ℒ","\\mathscr{L}");nt("ℳ","\\mathscr{M}");nt("ℛ","\\mathscr{R}");nt("ℭ","\\mathfrak{C}");nt("ℌ","\\mathfrak{H}");nt("ℨ","\\mathfrak{Z}");nt("\\Bbbk","\\Bbb{k}");nt("\\llap","\\mathllap{\\textrm{#1}}");nt("\\rlap","\\mathrlap{\\textrm{#1}}");nt("\\clap","\\mathclap{\\textrm{#1}}");nt("\\mathstrut","\\vphantom{(}");nt("\\underbar","\\underline{\\text{#1}}");nt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');nt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");nt("\\ne","\\neq");nt("≠","\\neq");nt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");nt("∉","\\notin");nt("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");nt("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");nt("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");nt("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");nt("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");nt("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");nt("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");nt("⟂","\\perp");nt("‼","\\mathclose{!\\mkern-0.8mu!}");nt("∌","\\notni");nt("⌜","\\ulcorner");nt("⌝","\\urcorner");nt("⌞","\\llcorner");nt("⌟","\\lrcorner");nt("©","\\copyright");nt("®","\\textregistered");nt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');nt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');nt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');nt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');nt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");nt("⋮","\\vdots");nt("\\varGamma","\\mathit{\\Gamma}");nt("\\varDelta","\\mathit{\\Delta}");nt("\\varTheta","\\mathit{\\Theta}");nt("\\varLambda","\\mathit{\\Lambda}");nt("\\varXi","\\mathit{\\Xi}");nt("\\varPi","\\mathit{\\Pi}");nt("\\varSigma","\\mathit{\\Sigma}");nt("\\varUpsilon","\\mathit{\\Upsilon}");nt("\\varPhi","\\mathit{\\Phi}");nt("\\varPsi","\\mathit{\\Psi}");nt("\\varOmega","\\mathit{\\Omega}");nt("\\substack","\\begin{subarray}{c}#1\\end{subarray}");nt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");nt("\\boxed","\\fbox{$\\displaystyle{#1}$}");nt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");nt("\\implies","\\DOTSB\\;\\Longrightarrow\\;");nt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");nt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");nt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var kTe={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},Yzt=new Set(["bin","rel"]);nt("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in kTe?e=kTe[r]:(r.slice(0,4)==="\\not"||r in Is.math&&Yzt.has(Is.math[r].group))&&(e="\\dotsb"),e});var Lle={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};nt("\\dotso",function(t){var e=t.future().text;return e in Lle?"\\ldots\\,":"\\ldots"});nt("\\dotsc",function(t){var e=t.future().text;return e in Lle&&e!==","?"\\ldots\\,":"\\ldots"});nt("\\cdots",function(t){var e=t.future().text;return e in Lle?"\\@cdots\\,":"\\@cdots"});nt("\\dotsb","\\cdots");nt("\\dotsm","\\cdots");nt("\\dotsi","\\!\\cdots");nt("\\dotsx","\\ldots\\,");nt("\\DOTSI","\\relax");nt("\\DOTSB","\\relax");nt("\\DOTSX","\\relax");nt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");nt("\\,","\\tmspace+{3mu}{.1667em}");nt("\\thinspace","\\,");nt("\\>","\\mskip{4mu}");nt("\\:","\\tmspace+{4mu}{.2222em}");nt("\\medspace","\\:");nt("\\;","\\tmspace+{5mu}{.2777em}");nt("\\thickspace","\\;");nt("\\!","\\tmspace-{3mu}{.1667em}");nt("\\negthinspace","\\!");nt("\\negmedspace","\\tmspace-{4mu}{.2222em}");nt("\\negthickspace","\\tmspace-{5mu}{.277em}");nt("\\enspace","\\kern.5em ");nt("\\enskip","\\hskip.5em\\relax");nt("\\quad","\\hskip1em\\relax");nt("\\qquad","\\hskip2em\\relax");nt("\\tag","\\@ifstar\\tag@literal\\tag@paren");nt("\\tag@paren","\\tag@literal{({#1})}");nt("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Ar("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});nt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");nt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");nt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");nt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");nt("\\newline","\\\\\\relax");nt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var D6e=Dr(Kp["Main-Regular"][84][1]-.7*Kp["Main-Regular"][65][1]);nt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+D6e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");nt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+D6e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");nt("\\hspace","\\@ifstar\\@hspacer\\@hspace");nt("\\@hspace","\\hskip #1\\relax");nt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");nt("\\ordinarycolon",":");nt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");nt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');nt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');nt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');nt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');nt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');nt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');nt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');nt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');nt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');nt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');nt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');nt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');nt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');nt("∷","\\dblcolon");nt("∹","\\eqcolon");nt("≔","\\coloneqq");nt("≕","\\eqqcolon");nt("⩴","\\Coloneqq");nt("\\ratio","\\vcentcolon");nt("\\coloncolon","\\dblcolon");nt("\\colonequals","\\coloneqq");nt("\\coloncolonequals","\\Coloneqq");nt("\\equalscolon","\\eqqcolon");nt("\\equalscoloncolon","\\Eqqcolon");nt("\\colonminus","\\coloneq");nt("\\coloncolonminus","\\Coloneq");nt("\\minuscolon","\\eqcolon");nt("\\minuscoloncolon","\\Eqcolon");nt("\\coloncolonapprox","\\Colonapprox");nt("\\coloncolonsim","\\Colonsim");nt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");nt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");nt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");nt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");nt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");nt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");nt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");nt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");nt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");nt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");nt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");nt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");nt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");nt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");nt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");nt("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");nt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");nt("\\nleqq","\\html@mathml{\\@nleqq}{≰}");nt("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");nt("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");nt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");nt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");nt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");nt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");nt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");nt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");nt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");nt("\\imath","\\html@mathml{\\@imath}{ı}");nt("\\jmath","\\html@mathml{\\@jmath}{ȷ}");nt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");nt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");nt("⟦","\\llbracket");nt("⟧","\\rrbracket");nt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");nt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");nt("⦃","\\lBrace");nt("⦄","\\rBrace");nt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");nt("⦵","\\minuso");nt("\\darr","\\downarrow");nt("\\dArr","\\Downarrow");nt("\\Darr","\\Downarrow");nt("\\lang","\\langle");nt("\\rang","\\rangle");nt("\\uarr","\\uparrow");nt("\\uArr","\\Uparrow");nt("\\Uarr","\\Uparrow");nt("\\N","\\mathbb{N}");nt("\\R","\\mathbb{R}");nt("\\Z","\\mathbb{Z}");nt("\\alef","\\aleph");nt("\\alefsym","\\aleph");nt("\\Alpha","\\mathrm{A}");nt("\\Beta","\\mathrm{B}");nt("\\bull","\\bullet");nt("\\Chi","\\mathrm{X}");nt("\\clubs","\\clubsuit");nt("\\cnums","\\mathbb{C}");nt("\\Complex","\\mathbb{C}");nt("\\Dagger","\\ddagger");nt("\\diamonds","\\diamondsuit");nt("\\empty","\\emptyset");nt("\\Epsilon","\\mathrm{E}");nt("\\Eta","\\mathrm{H}");nt("\\exist","\\exists");nt("\\harr","\\leftrightarrow");nt("\\hArr","\\Leftrightarrow");nt("\\Harr","\\Leftrightarrow");nt("\\hearts","\\heartsuit");nt("\\image","\\Im");nt("\\infin","\\infty");nt("\\Iota","\\mathrm{I}");nt("\\isin","\\in");nt("\\Kappa","\\mathrm{K}");nt("\\larr","\\leftarrow");nt("\\lArr","\\Leftarrow");nt("\\Larr","\\Leftarrow");nt("\\lrarr","\\leftrightarrow");nt("\\lrArr","\\Leftrightarrow");nt("\\Lrarr","\\Leftrightarrow");nt("\\Mu","\\mathrm{M}");nt("\\natnums","\\mathbb{N}");nt("\\Nu","\\mathrm{N}");nt("\\Omicron","\\mathrm{O}");nt("\\plusmn","\\pm");nt("\\rarr","\\rightarrow");nt("\\rArr","\\Rightarrow");nt("\\Rarr","\\Rightarrow");nt("\\real","\\Re");nt("\\reals","\\mathbb{R}");nt("\\Reals","\\mathbb{R}");nt("\\Rho","\\mathrm{P}");nt("\\sdot","\\cdot");nt("\\sect","\\S");nt("\\spades","\\spadesuit");nt("\\sub","\\subset");nt("\\sube","\\subseteq");nt("\\supe","\\supseteq");nt("\\Tau","\\mathrm{T}");nt("\\thetasym","\\vartheta");nt("\\weierp","\\wp");nt("\\Zeta","\\mathrm{Z}");nt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");nt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");nt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");nt("\\bra","\\mathinner{\\langle{#1}|}");nt("\\ket","\\mathinner{|{#1}\\rangle}");nt("\\braket","\\mathinner{\\langle{#1}\\rangle}");nt("\\Bra","\\left\\langle#1\\right|");nt("\\Ket","\\left|#1\\right\\rangle");var M6e=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};nt("\\bra@ket",M6e(!1));nt("\\bra@set",M6e(!0));nt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");nt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");nt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");nt("\\angln","{\\angl n}");nt("\\blue","\\textcolor{##6495ed}{#1}");nt("\\orange","\\textcolor{##ffa500}{#1}");nt("\\pink","\\textcolor{##ff00af}{#1}");nt("\\red","\\textcolor{##df0030}{#1}");nt("\\green","\\textcolor{##28ae7b}{#1}");nt("\\gray","\\textcolor{gray}{#1}");nt("\\purple","\\textcolor{##9d38bd}{#1}");nt("\\blueA","\\textcolor{##ccfaff}{#1}");nt("\\blueB","\\textcolor{##80f6ff}{#1}");nt("\\blueC","\\textcolor{##63d9ea}{#1}");nt("\\blueD","\\textcolor{##11accd}{#1}");nt("\\blueE","\\textcolor{##0c7f99}{#1}");nt("\\tealA","\\textcolor{##94fff5}{#1}");nt("\\tealB","\\textcolor{##26edd5}{#1}");nt("\\tealC","\\textcolor{##01d1c1}{#1}");nt("\\tealD","\\textcolor{##01a995}{#1}");nt("\\tealE","\\textcolor{##208170}{#1}");nt("\\greenA","\\textcolor{##b6ffb0}{#1}");nt("\\greenB","\\textcolor{##8af281}{#1}");nt("\\greenC","\\textcolor{##74cf70}{#1}");nt("\\greenD","\\textcolor{##1fab54}{#1}");nt("\\greenE","\\textcolor{##0d923f}{#1}");nt("\\goldA","\\textcolor{##ffd0a9}{#1}");nt("\\goldB","\\textcolor{##ffbb71}{#1}");nt("\\goldC","\\textcolor{##ff9c39}{#1}");nt("\\goldD","\\textcolor{##e07d10}{#1}");nt("\\goldE","\\textcolor{##a75a05}{#1}");nt("\\redA","\\textcolor{##fca9a9}{#1}");nt("\\redB","\\textcolor{##ff8482}{#1}");nt("\\redC","\\textcolor{##f9685d}{#1}");nt("\\redD","\\textcolor{##e84d39}{#1}");nt("\\redE","\\textcolor{##bc2612}{#1}");nt("\\maroonA","\\textcolor{##ffbde0}{#1}");nt("\\maroonB","\\textcolor{##ff92c6}{#1}");nt("\\maroonC","\\textcolor{##ed5fa6}{#1}");nt("\\maroonD","\\textcolor{##ca337c}{#1}");nt("\\maroonE","\\textcolor{##9e034e}{#1}");nt("\\purpleA","\\textcolor{##ddd7ff}{#1}");nt("\\purpleB","\\textcolor{##c6b9fc}{#1}");nt("\\purpleC","\\textcolor{##aa87ff}{#1}");nt("\\purpleD","\\textcolor{##7854ab}{#1}");nt("\\purpleE","\\textcolor{##543b78}{#1}");nt("\\mintA","\\textcolor{##f5f9e8}{#1}");nt("\\mintB","\\textcolor{##edf2df}{#1}");nt("\\mintC","\\textcolor{##e0e5cc}{#1}");nt("\\grayA","\\textcolor{##f6f7f7}{#1}");nt("\\grayB","\\textcolor{##f0f1f2}{#1}");nt("\\grayC","\\textcolor{##e3e5e6}{#1}");nt("\\grayD","\\textcolor{##d6d8da}{#1}");nt("\\grayE","\\textcolor{##babec2}{#1}");nt("\\grayF","\\textcolor{##888d93}{#1}");nt("\\grayG","\\textcolor{##626569}{#1}");nt("\\grayH","\\textcolor{##3b3e40}{#1}");nt("\\grayI","\\textcolor{##21242c}{#1}");nt("\\kaBlue","\\textcolor{##314453}{#1}");nt("\\kaGreen","\\textcolor{##71B307}{#1}");var L6e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Wzt{constructor(e,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Vzt(Hzt,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new ITe(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Ud("EOF",n.loc)),this.pushTokens(i),new Ud("",Vu.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Ar("Extra }",a)}else if(a.text==="EOF")throw new Ar("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new Ar("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new Ar("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Ar("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new Ar("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Ar("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Ar("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ud(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new ITe(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||L_.hasOwnProperty(e)||Is.math.hasOwnProperty(e)||Is.text.hasOwnProperty(e)||L6e.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:L_.hasOwnProperty(e)&&!L_[e].primitive}}var DTe=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,cL=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),JW={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},MTe={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let P6e=class F6e{constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Wzt(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new Ar("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Ud("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(F6e.endOfExpression.has(i.text)||r&&i.text===r||e&&L_[i.text]&&L_[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i<e.length;i++){var a=e[i];if(a.type==="infix"){if(r!==-1)throw new Ar("only one infix operator per group",a.token);r=i,n=a.replaceWith}}if(r!==-1&&n){var s,o,l=e.slice(0,r),u=e.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?o=u[0]:o={type:"ordgroup",mode:this.mode,body:u};var d;return n==="\\\\abovefrac"?d=this.callFunction(n,[s,e[r],o],[]):d=this.callFunction(n,[s,o],[]),[d]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(e)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new Ar("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(e){var r=this.parseGroup("atom",e);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new Ar("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new Ar("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new Ar("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new Ar("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},l=[o];for(this.consume();this.fetch().text==="'";)l.push(o),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:l}}else if(cL[a.text]){var u=DTe.test(a.text),d=[];for(d.push(new Ud(cL[a.text])),this.consume();;){var h=this.fetch().text;if(!cL[h]||DTe.test(h)!==u)break;d.unshift(new Ud(cL[h])),this.consume()}var f=this.subparse(d);u?i={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(e,r){var n=this.fetch(),i=n.text,a=L_[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new Ar("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new Ar("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new Ar("Can't use function '"+i+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(i,a);return this.callFunction(i,s,o,n,e)}callFunction(e,r,n,i,a){var s={funcName:e,parser:this,token:i,breakOnTokenText:a},o=L_[e];if(o&&o.handler)return o.handler(s,r,n);throw new Ar("No function handler for "+e)}parseArguments(e,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<n;s++){var o=r.argTypes&&r.argTypes[s],l=s<r.numOptionalArgs;("primitive"in r&&r.primitive&&o==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var u=this.parseGroupOfType("argument to '"+e+"'",o,l);if(l)a.push(u);else if(u!=null)i.push(u);else throw new Ar("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(e,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text",resetFont:!0}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new Ar("A primitive argument cannot be optional");var s=this.parseGroup(e);if(s==null)throw new Ar("Expected group as "+e,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Ar("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(e,r){for(var n=this.fetch(),i=n,a="",s;(s=this.fetch()).text!=="EOF"&&e.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new Ar("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(e){var r=this.parseStringGroup("color",e);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new Ar("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new Ar("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!zPe(a))throw new Ar("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),s}parseGroup(e,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:Vu.range(n,l),body:o,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,e)||this.parseSymbol(),a==null&&i[0]==="\\"&&!L6e.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Ar("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var i=e[n];if(i.type==="textord"){var a=i.text,s=e[n+1];if(!(!s||s.type!=="textord")){if(a==="-"&&s.text==="-"){var o=e[n+2];n+1<r&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:Vu.range(i,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Vu.range(i,s),text:"--"}),r-=1)}(a==="'"||a==="`")&&s.text===a&&(e.splice(n,2,{type:"textord",mode:"text",loc:Vu.range(i,s),text:a+a}),r-=1)}}}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Ar(`\\verb assertion failed --
                    please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}MTe.hasOwnProperty(r[0])&&!Is[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=MTe[r[0]]+r.slice(1));var a=zzt.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Is[this.mode][r]){this.settings.strict&&this.mode==="math"&&yJ.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=Is[this.mode][r].group,l=Vu.range(e),u;czt(o)?u={type:"atom",mode:this.mode,family:o,loc:l,text:r}:u={type:o,mode:this.mode,loc:l,text:r},s=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(GPe(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Vu.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d<a[0].length;d++){var h=a[0][d];if(!JW[h])throw new Ar("Unknown accent ' "+h+"'",e);var f=JW[h][this.mode]||JW[h].text;if(!f)throw new Ar("Accent "+h+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:Vu.range(e),label:f,isStretchy:!1,isShifty:!0,base:s}}return s}};P6e.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Ple=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new P6e(e,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new Ar("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Ud("\\df@tag")])}]}return i},Fle=function(e,r,n){r.textContent="";var i=_U(e,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Fle=function(){throw new Ar("KaTeX doesn't work in quirks mode.")});var B6e=function(e,r){var n=_U(e,r).toMarkup();return n},U6e=function(e,r){var n=new Sle(r);return Ple(e,n)},$6e=function(e,r,n){if(n.throwOnError||!(e instanceof Ar))throw e;var i=Tr(["katex-error"],[new qd(r)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},_U=function(e,r){var n=new Sle(r);try{var i=Ple(e,n);return tzt(i,e,n)}catch(a){return $6e(a,e,n)}},G6e=function(e,r){var n=new Sle(r);try{var i=Ple(e,n);return rzt(i,e,n)}catch(a){return $6e(a,e,n)}},z6e="0.16.47",q6e={Span:mR,Anchor:aU,SymbolNode:qd,SvgNode:s0,PathNode:h1,LineNode:vJ},MJ={version:z6e,render:Fle,renderToString:B6e,ParseError:Ar,SETTINGS_SCHEMA:l7,__parse:U6e,__renderToDomTree:_U,__renderToHTMLTree:G6e,__setFontMetrics:YPe,__defineSymbol:pe,__defineFunction:rn,__defineMacro:nt,__domTree:q6e};const Kzt=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Ar,SETTINGS_SCHEMA:l7,__defineFunction:rn,__defineMacro:nt,__defineSymbol:pe,__domTree:q6e,__parse:U6e,__renderToDomTree:_U,__renderToHTMLTree:G6e,__setFontMetrics:YPe,default:MJ,get render(){return Fle},renderToString:B6e,version:z6e},Symbol.toStringTag,{value:"Module"})),jzt={};function Xzt(t){const e=this,r=t||jzt,n=e.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(rGt(r)),a.push(K$t()),s.push(j$t(r))}const LTe=(function(t,e,r){const n=O5(r);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(n(t.children[e],e,t))return t.children[e]}),cE=(function(t){if(t==null)return Jzt;if(typeof t=="string")return Zzt(t);if(typeof t=="object")return Qzt(t);if(typeof t=="function")return Ble(t);throw new Error("Expected function, string, or array as `test`")});function Qzt(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=cE(t[r]);return Ble(n);function n(...i){let a=-1;for(;++a<e.length;)if(e[a].apply(this,i))return!0;return!1}}function Zzt(t){return Ble(e);function e(r){return r.tagName===t}}function Ble(t){return e;function e(r,n,i){return!!(eqt(r)&&t.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Jzt(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function eqt(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const PTe=/\n/g,FTe=/[\t ]+/g,LJ=cE("br"),BTe=cE(oqt),tqt=cE("p"),UTe=cE("tr"),rqt=cE(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",sqt,lqt]),V6e=cE(["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 H6e(t,e){const r=e||{},n="children"in t?t.children:[],i=V6e(t),a=K6e(t,{whitespace:r.whitespace||"normal"}),s=[];(t.type==="text"||t.type==="comment")&&s.push(...W6e(t,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)s.push(...Y6e(n[o],t,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<n.length-1?LJ(n[o+1]):i}));const l=[];let u;for(o=-1;++o<s.length;){const d=s[o];typeof d=="number"?u!==void 0&&d>u&&(u=d):d&&(u!==void 0&&u>-1&&l.push(`
`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function Y6e(t,e,r){return t.type==="element"?nqt(t,e,r):t.type==="text"?r.whitespace==="normal"?W6e(t,r):iqt(t):[]}function nqt(t,e,r){const n=K6e(t,r),i=t.children||[];let a=-1,s=[];if(rqt(t))return s;let o,l;for(LJ(t)||UTe(t)&&LTe(e,t,UTe)?l=`
`:tqt(t)?(o=2,l=2):V6e(t)&&(o=1,l=1);++a<i.length;)s=s.concat(Y6e(i[a],t,{whitespace:n,breakBefore:a?void 0:o,breakAfter:a<i.length-1?LJ(i[a+1]):l}));return BTe(t)&&LTe(e,t,BTe)&&s.push("	"),o&&s.unshift(o),l&&s.push(l),s}function W6e(t,e){const r=String(t.value),n=[],i=[];let a=0;for(;a<=r.length;){PTe.lastIndex=a;const l=PTe.exec(r),u=l&&"index"in l?l.index:r.length;n.push(aqt(r.slice(a,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?e.breakBefore:!0,u===r.length?e.breakAfter:!0)),a=u+1}let s=-1,o;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(i.push(n[s]),o=void 0):n[s]?(typeof o=="number"&&i.push(o),i.push(n[s]),o=0):(s===0||s===n.length-1)&&i.push(0);return i}function iqt(t){return[String(t.value)]}function aqt(t,e,r){const n=[];let i=0,a;for(;i<t.length;){FTe.lastIndex=i;const s=FTe.exec(t);a=s?s.index:t.length,!i&&!a&&s&&!e&&n.push(""),i!==a&&n.push(t.slice(i,a)),i=s?a+s[0].length:a}return i!==a&&!r&&n.push(""),n.join(" ")}function K6e(t,e){if(t.type==="element"){const r=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}function sqt(t){return!!(t.properties||{}).hidden}function oqt(t){return t.tagName==="td"||t.tagName==="th"}function lqt(t){return t.tagName==="dialog"&&!(t.properties||{}).open}function cqt(t){const e="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",f="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",$="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",V="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",z="null истина ложь неопределено",G=t.inherit(t.NUMBER_MODE),Y={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},W={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},Q={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},ie=t.inherit(t.C_LINE_COMMENT_MODE),Z={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:e,keyword:i+o},contains:[ie]},re={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},K={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:e,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:e,keyword:"знач",literal:z},contains:[G,Y,W]},ie]},t.inherit(t.TITLE_MODE,{begin:e})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:e,keyword:i,built_in:f,class:$,type:V,literal:z},contains:[Z,K,ie,re,G,Y,W,Q]}}function uqt(t){const e=t.regex,r=/^[a-zA-Z][a-zA-Z0-9-]*/,n=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=t.COMMENT(/;/,/$/),a={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},s={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},o={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},l={scope:"symbol",match:/%[si](?=".*")/},u={scope:"attribute",match:e.concat(r,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:n,contains:[{scope:"operator",match:/=\/?/},u,i,a,s,o,l,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}function dqt(t){const e=t.regex,r=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:e.concat(/"/,e.either(...r)),end:/"/,keywords:r,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}function hqt(t){const e=t.regex,r=/[a-zA-Z_$][a-zA-Z0-9_$]*/,n=e.concat(r,e.concat("(\\.",r,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,a={className:"rest_arg",begin:/[.]{3}/,end:r,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[t.inherit(t.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a]},{begin:e.concat(/:\s*/,i)}]},t.METHOD_GUARD],illegal:/#/}}function fqt(t){const e="\\d(_|\\d)*",r="[eE][-+]?"+e,n=e+"(\\."+e+")?("+r+")?",i="\\w+",s="\\b("+(e+"#"+i+"(\\."+i+")?#("+r+")?")+"|"+n+")",o="[A-Za-z](_?[A-Za-z0-9.])*",l=`[]\\{\\}%#'"`,u=t.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:l,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:o,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[u,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:s,relevance:0},{className:"symbol",begin:"'"+o},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:l},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[u,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:l},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:l}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:l},d]}}function pqt(t){const e={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},r={className:"symbol",begin:"[a-zA-Z0-9_]+@"},n={className:"keyword",begin:"<",end:">",contains:[e,r]};return e.contains=[n],r.contains=[n],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},e,r,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}function gqt(t){const e={className:"number",begin:/[$%]\d+/},r={className:"number",begin:/\b\d+/},n={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[n,i,t.inherit(t.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",e]},n,r,t.QUOTE_STRING_MODE]}}],illegal:/\S/}}function mqt(t){const e=t.regex,r=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),n={className:"params",begin:/\(/,end:/\)/,contains:["self",t.C_NUMBER_MODE,r]},i=t.COMMENT(/--/,/$/),a=t.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),s=[i,a,t.HASH_COMMENT_MODE],o=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],l=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[r,t.C_NUMBER_MODE,{className:"built_in",begin:e.concat(/\b/,e.either(...l),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:e.concat(/\b/,e.either(...o),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[t.UNDERSCORE_TITLE_MODE,n]},...s],illegal:/\/\/|->|=>|\[\[/}}function _qt(t){const e=t.regex,r="[A-Za-z_][0-9A-Za-z_]*",n={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],a={className:"symbol",begin:"\\$"+e.either(...i)},s={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},l={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,o]};o.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,s,t.REGEXP_MODE];const u=o.contains.concat([t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:n,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,s,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:u}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{className:"title.function",begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:u}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}function vqt(t){const e={variants:[t.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),t.COMMENT("[;@]","$",{relevance:0}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},e,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}function yqt(t){const e=t.regex,r={begin:"^'{3,}[ \\t]*$",relevance:10},n=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:e.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:e.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],s={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},o={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[t.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),t.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ 	].+?([ 	]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},o,s,...n,...i,...a,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},r,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}function bqt(t){const e=t.regex,r=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],n=["get","set","args","call"];return{name:"AspectJ",keywords:r,illegal:/<\/|#/,contains:[t.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},t.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:r.concat(n),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[t.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:r,illegal:/["\[\]]/,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:r.concat(n),relevance:0},t.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:r,excludeEnd:!0,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:r,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}function Eqt(t){const e={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[e,t.inherit(t.QUOTE_STRING_MODE,{contains:[e]}),t.COMMENT(";","$",{relevance:0}),t.C_BLOCK_COMMENT_MODE,{className:"number",begin:t.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}function Sqt(t){const e="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",r=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],n="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",a={variants:[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#cs","#ce"),t.COMMENT("#comments-start","#comments-end")]},s={begin:"\\$[A-z0-9_]+"},o={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},l={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},u={className:"meta",begin:"#",end:"$",keywords:{keyword:r},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[o,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},o,a]},d={className:"symbol",begin:"@[A-z0-9_]+"},h={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[s,o,l]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:e,built_in:i,literal:n},contains:[a,s,o,l,u,d,h]}}function Tqt(t){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+t.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),t.C_NUMBER_MODE,t.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}function Cqt(t){const e={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",n={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:r},contains:[e,n,t.REGEXP_MODE,t.HASH_COMMENT_MODE,t.NUMBER_MODE]}}function wqt(t){const e=t.UNDERSCORE_IDENT_RE,a={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},s={variants:[{match:[/(class|interface)\s+/,e,/\s+(extends|implements)\s+/,e]},{match:[/class\s+/,e]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a};return{name:"X++",aliases:["x++"],keywords:a,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},s]}}function xqt(t){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[t.BACKSLASH_ESCAPE]},t.COMMENT("REM","$",{relevance:10}),t.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}function Aqt(t){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}]}}function Rqt(t){const e={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[t.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[e]},e]}}function Oqt(t){const e=t.regex,r=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],n="false true",i=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},o={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},l={className:"string",begin:'"',end:'"'},u={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,s,t.NUMBER_MODE]},...i]},d=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],h={match:[/OBJECT/,/\s+/,e.either(...d),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:n},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},a,s,o,l,t.NUMBER_MODE,h,u]}}function Iqt(t){const e=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],r=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],n=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,t.IDENT_RE]},{match:[/extends/,/\s*\(/,t.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:e,type:r,literal:n},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}function Nqt(t){const e=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],r=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],n=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:e,relevance:10},a=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=a,{name:"Ceylon",keywords:{keyword:e.concat(r),meta:n},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(a)}}function kqt(t){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}function Dqt(t){const e="a-zA-Z_\\-!.?+*=<>&'",r="[#]?["+e+"]["+e+"0-9/;:$#]*",n="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:r,built_in:n+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},a={begin:r,relevance:0},s={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},o={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},u=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),d={scope:"punctuation",match:/,/,relevance:0},h=t.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b(true|false|nil)\b/},p={begin:"\\[|(#::?"+r+")?\\{",end:"[\\]\\}]",relevance:0},g={className:"symbol",begin:"[:]{1,2}"+r},m={begin:"\\(",end:"\\)"},_={endsWithParent:!0,relevance:0},v={keywords:i,className:"name",begin:r,relevance:0,starts:_},y=[d,m,o,l,u,h,g,p,s,f,a],b={beginKeywords:n,keywords:{$pattern:r,keyword:n},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:r,relevance:0,excludeEnd:!0,endsParent:!0}].concat(y)};return m.contains=[b,v,_],_.contains=y,p.contains=y,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[d,m,o,l,u,h,g,p,s,f]}}function Mqt(t){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}function Lqt(t){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},t.COMMENT(/#\[\[/,/]]/),t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}const Pqt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Fqt=["true","false","null","undefined","NaN","Infinity"],Bqt=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Uqt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$qt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gqt=[].concat($qt,Bqt,Uqt);function zqt(t){const e=["npm","print"],r=["yes","no","on","off"],n=["then","unless","until","loop","by","when","and","or","is","isnt","not"],i=["var","const","let","function","static"],a=g=>m=>!g.includes(m),s={keyword:Pqt.concat(n).filter(a(i)),literal:Fqt.concat(r),built_in:Gqt.concat(e)},o="[A-Za-z$_][0-9A-Za-z$_]*",l={className:"subst",begin:/#\{/,end:/\}/,keywords:s},u=[t.BINARY_NUMBER_MODE,t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,l]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[l,t.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+o},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];l.contains=u;const d=t.inherit(t.TITLE_MODE,{begin:o}),h="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(u)}]},p={variants:[{match:[/class\s+/,o,/\s+extends\s+/,o]},{match:[/class\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:s,illegal:/\/\*/,contains:[...u,t.COMMENT("###","###"),t.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+o+"\\s*=\\s*"+h,end:"[-=]>",returnBegin:!0,contains:[d,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:h,end:"[-=]>",returnBegin:!0,contains:[f]}]},p,{begin:o+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}function qqt(t){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[t.QUOTE_STRING_MODE,t.COMMENT("\\(\\*","\\*\\)"),t.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}function Vqt(t){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}function Hqt(t){const e="primitive rsc_template",r="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[t.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:e,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+r.split(" ").join("|")+")\\s+",keywords:r,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},t.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}function Yqt(t){const e="(_?[ui](8|16|32|64|128))?",r="(_?f(32|64))?",n="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",s={$pattern:n,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},o={className:"subst",begin:/#\{/,end:/\}/,keywords:s},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},u={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:s};function d(v,y){const b=[{begin:v,end:y}];return b[0].contains=b,b}const h={className:"string",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:d("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},f={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%q<",end:">",contains:d("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},p={begin:"(?!%\\})("+t.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},g={className:"regexp",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:"%r\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%r<",end:">",contains:d("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},m={className:"meta",begin:"@\\[",end:"\\]",contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"string"})]},_=[u,h,f,g,p,m,l,t.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:a}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:a})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:a})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[h,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+e},{begin:"\\b0o([0-7_]+)"+e},{begin:"\\b0x([A-Fa-f0-9_]+)"+e},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+r+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+e}],relevance:0}];return o.contains=_,u.contains=_.slice(1),{name:"Crystal",aliases:["cr"],keywords:s,contains:_}}function Wqt(t){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}function Kqt(t){const e={$pattern:t.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},r="(0|[1-9][\\d_]*)",n="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",a="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",s="0[xX]"+a,o="([eE][+-]?"+n+")",l="("+n+"(\\.\\d*|"+o+")|\\d+\\."+n+"|\\."+r+o+"?)",u="(0[xX]("+a+"\\."+a+"|\\.?"+a+")[pP][+-]?"+n+")",d="("+r+"|"+i+"|"+s+")",h="("+u+"|"+l+")",f=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,p={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},g={className:"number",begin:"\\b("+h+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},m={className:"string",begin:"'("+f+"|.)",end:"'",illegal:"."},v={className:"string",begin:'"',contains:[{begin:f,relevance:0}],end:'"[cwd]?'},y={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},b={className:"string",begin:"`",end:"`[cwd]?"},E={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},S={className:"string",begin:'q"\\{',end:'\\}"'},T={className:"meta",begin:"^#!",end:"$",relevance:5},C={className:"meta",begin:"#(line)",end:"$",relevance:5},x={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},A=t.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:e,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,A,E,v,y,b,S,g,p,m,T,C,x]}}function jqt(t){const e={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},r={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},n={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[t.BACKSLASH_ESCAPE,e,r]},{begin:'"""',end:'"""',contains:[t.BACKSLASH_ESCAPE,e,r]},{begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,r]},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,r]}]};r.contains=[n,i];const a=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],s=a.map(u=>`${u}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:a.concat(s).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),t.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},n,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}function Xqt(t){const e=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],r=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],n={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},s={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},o={begin:t.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[t.TITLE_MODE]},l={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:e,contains:[i,s,n].concat(r)},n].concat(r)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:e,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,s,a,o,l,n].concat(r)}}function Qqt(t){const e={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[e],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[e]}]}}function Zqt(t){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},t.inherit(t.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}function Jqt(t){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function eVt(t){const e=t.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"}.begin,end:"goto:eof",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),e]},{className:"number",begin:"\\b\\d+",relevance:0},e]}}function tVt(t){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},t.HASH_COMMENT_MODE]}}function rVt(t){const e={className:"string",variants:[t.inherit(t.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},r={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:t.C_NUMBER_RE}],relevance:0},n={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[t.inherit(e,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},a={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},s={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},o={className:"params",relevance:0,begin:"<",end:">",contains:[r,i]},l={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},u={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},d={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},h={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},f={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[u,i,a,s,l,h,d,o,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,e,n,f,{begin:t.IDENT_RE+"::",keywords:""}]}}function nVt(t){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[t.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}function iVt(t){const e=t.COMMENT(/\(\*/,/\*\)/),r={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[e,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[e,r,i]}}function aVt(t){const e=t.regex,r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",s={$pattern:r,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},o={className:"subst",begin:/#\{/,end:/\}/,keywords:s},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},d={match:/\\[\s\S]/,scope:"char.escape",relevance:0},h=`[/|([{<"']`,f=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],p=S=>({scope:"char.escape",begin:e.concat(/\\/,S),relevance:0}),g={className:"string",begin:"~[a-z](?="+h+")",contains:f.map(S=>t.inherit(S,{contains:[p(S.end),d,o]}))},m={className:"string",begin:"~[A-Z](?="+h+")",contains:f.map(S=>t.inherit(S,{contains:[p(S.end)]}))},_={className:"regex",variants:[{begin:"~r(?="+h+")",contains:f.map(S=>t.inherit(S,{end:e.concat(S.end,/[uismxfU]{0,7}/),contains:[p(S.end),d,o]}))},{begin:"~R(?="+h+")",contains:f.map(S=>t.inherit(S,{end:e.concat(S.end,/[uismxfU]{0,7}/),contains:[p(S.end)]}))}]},v={className:"string",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},y={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:r,endsParent:!0})]},b=t.inherit(y,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),E=[v,_,m,g,t.HASH_COMMENT_MODE,b,y,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[v,{begin:n}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return o.contains=E,{name:"Elixir",aliases:["ex","exs"],keywords:s,contains:E}}function sVt(t){const e={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},n={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e]},i={begin:/\{/,end:/\}/,contains:n.contains},a={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[n,e],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[n,e],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[r,n,i,e]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,e]},{begin:"port",end:"$",keywords:"port",contains:[e]},a,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,r,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),e,{begin:"->|<-"}],illegal:/;/}}function oVt(t){return{name:"ERB",subLanguage:"xml",contains:[t.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function lVt(t){const e="[a-z'][a-zA-Z0-9_']*",r="("+e+":"+e+"|"+e+")",n={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},i=t.COMMENT("%","$"),a={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},s={begin:"fun\\s+"+e+"/\\d+"},o={begin:r+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:r,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},u={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},h={begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},f={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},p={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},g={scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?</,end:/>/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},m={beginKeywords:"fun receive if try case maybe",end:"end",keywords:n};m.contains=[i,s,t.inherit(t.APOS_STRING_MODE,{className:""}),m,o,g,p,t.QUOTE_STRING_MODE,a,l,u,d,h,f];const _=[i,s,m,o,g,p,t.QUOTE_STRING_MODE,a,l,u,d,h,f];o.contains[1].contains=_,l.contains=_,h.contains[1].contains=_;const v=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],y={className:"params",begin:"\\(",end:"\\)",contains:_};return{name:"Erlang",aliases:["erl"],keywords:n,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+e+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[y,t.inherit(t.TITLE_MODE,{begin:e})],starts:{end:";|\\.",keywords:n,contains:_}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+t.IDENT_RE,keyword:v.map(b=>`${b}|1.5`).join(" ")},contains:[y,g,p,t.QUOTE_STRING_MODE]},a,g,p,t.QUOTE_STRING_MODE,h,u,d,l,f,{begin:/\.$/}]}}function cVt(t){const e=t.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},t.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:e.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}function uVt(t){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},t.BACKSLASH_ESCAPE,t.QUOTE_STRING_MODE,{className:"number",begin:t.NUMBER_RE+"(%)?",relevance:0},t.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}function dVt(t){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}function hVt(t){const e={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},r={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e,r,i,t.C_NUMBER_MODE]}}function fVt(t){const e=t.regex,r={className:"params",begin:"\\(",end:"\\)"},n={variants:[t.COMMENT("!","$",{relevance:0}),t.COMMENT("^C[ ]","$",{relevance:0}),t.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:e.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:e.concat(/\b\d+/,a,i)},{begin:e.concat(/\.\d+/,a,i)}],relevance:0},o={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[t.UNDERSCORE_TITLE_MODE,r]},l={className:"string",relevance:0,variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[l,o,{begin:/^C\s*=(?!=)/,relevance:0},n,s]}}function pVt(t){return new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function j6e(t){return t?typeof t=="string"?t:t.source:null}function wO(t){return sf("(?=",t,")")}function sf(...t){return t.map(r=>j6e(r)).join("")}function gVt(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function wv(...t){return"("+(gVt(t).capture?"":"?:")+t.map(n=>j6e(n)).join("|")+")"}function mVt(t){const e=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],r={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},n=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],i=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],a=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],s=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],l={keyword:e,literal:i,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":a},d={variants:[t.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),t.C_LINE_COMMENT_MODE]},h=/[a-zA-Z_](\w|')*/,f={scope:"variable",begin:/``/,end:/``/},p=/\B('|\^)/,g={scope:"symbol",variants:[{match:sf(p,/``.*?``/)},{match:sf(p,t.UNDERSCORE_IDENT_RE)}],relevance:0},m=function({includeEqual:N}){let $;N?$="!%&*+-/<=>@^|~?":$="!%&*+-/<>@^|~?";const U=Array.from($),B=sf("[",...U.map(pVt),"]"),V=wv(B,/\./),z=sf(V,wO(V)),G=wv(sf(z,V,"*"),sf(B,"+"));return{scope:"operator",match:wv(G,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},_=m({includeEqual:!0}),v=m({includeEqual:!1}),y=function(N,$){return{begin:sf(N,wO(sf(/\s*/,wv(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:$,end:wO(wv(/\n/,/=/)),relevance:0,keywords:t.inherit(l,{type:s}),contains:[d,g,t.inherit(f,{scope:null}),v]}},b=y(/:/,"operator"),E=y(/\bof\b/,"keyword"),S={begin:[/(^|\s+)/,/type/,/\s+/,h],beginScope:{2:"keyword",4:"title.class"},end:wO(/\(|=|$/),keywords:l,contains:[d,t.inherit(f,{scope:null}),g,{scope:"operator",match:/<|>/},b]},T={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},C={begin:[/^\s*/,sf(/#/,wv(...n)),/\b/],beginScope:{2:"meta"},end:wO(/\s|$/)},x={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},A={scope:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},R={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},t.BACKSLASH_ESCAPE]},I={scope:"string",begin:/"""/,end:/"""/,relevance:2},L={scope:"subst",begin:/\{/,end:/\}/,keywords:l},F={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},t.BACKSLASH_ESCAPE,L]},O={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},t.BACKSLASH_ESCAPE,L]},D={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},L],relevance:2},M={scope:"string",match:sf(/'/,wv(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return L.contains=[O,F,R,A,M,r,d,f,b,T,C,x,g,_],{name:"F#",aliases:["fs","f#"],keywords:l,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[r,{variants:[D,O,F,I,R,A,M]},d,f,S,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[f,I,R,A,M,x]},E,b,T,C,x,g,_]}}function _Vt(t){const e=t.regex,r={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},n={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},a={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},s={begin:"/",end:"/",keywords:r,contains:[a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE]},o=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[a,s,{className:"comment",begin:e.concat(o,e.anyNumberOfTimes(e.concat(/[ ]+/,o))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:r,contains:[t.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,s,l]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[l]},t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},n,i]},t.C_NUMBER_MODE,i]}}function vVt(t){const e={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},r=t.COMMENT("@","@"),n={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},a=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,i]}],s={className:"title",begin:t.UNDERSCORE_IDENT_RE,relevance:0},o=function(f,p,g){const m=t.inherit({className:"function",beginKeywords:f,end:p,excludeEnd:!0,contains:[].concat(a)},{});return m.contains.push(s),m.contains.push(t.C_NUMBER_MODE),m.contains.push(t.C_BLOCK_COMMENT_MODE),m.contains.push(r),m},l={className:"built_in",begin:"\\b("+e.built_in.split(" ").join("|")+")\\b"},u={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE],relevance:0},d={begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:e,relevance:0,contains:[{beginKeywords:e.keyword},l,{className:"built_in",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},h={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:e.built_in,literal:e.literal},contains:[t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,l,d,u,"self"]};return d.contains.push(h),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:e,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,u,n,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},o("proc keyword",";"),o("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE,r,h]},{variants:[{begin:t.UNDERSCORE_IDENT_RE+"\\."+t.UNDERSCORE_IDENT_RE},{begin:t.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,i]}}function yVt(t){const e=t.regex,r={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},n=/\b/;function i(p,g){if(p.index===0)return;const m=p.input[p.index-1];m>="0"&&m<="9"||m!=="_"&&g.ignoreMatch()}const a=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,s=/[GM]\s*\d+(\.\d+)?/,o=/T\s*\d+/,l=/O\s*\d+/,u=/O<.+>/,d=/[ABCUVWXYZ]\s*/,h=/[FHIJKPQRS]\s*/,f=[t.COMMENT(/\(/,/\)/),t.COMMENT(/;/,/$/),t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{scope:"title.function",variants:[{match:e.concat(n,s)},{begin:s,"on:begin":i},{match:e.concat(n,o)},{begin:o,"on:begin":i}]},{scope:"symbol",variants:[{match:e.concat(n,l)},{begin:l,"on:begin":i},{match:e.concat(n,u)},{begin:u,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:e.concat(n,d,a)},{begin:e.concat(d,a),"on:begin":i}]},{scope:"params",variants:[{match:e.concat(n,h,a)},{begin:e.concat(h,a),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:r,contains:f}}function bVt(t){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},t.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},t.QUOTE_STRING_MODE]}}function EVt(t){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}function SVt(t){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function TVt(t){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}function CVt(t){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.REGEXP_MODE]}}function eK(t,e={}){return e.variants=t,e}function wVt(t){const e=t.regex,r="[A-Za-z0-9_$]+",n=eK([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),i={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},a=eK([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),s=eK([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),o={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),n,s,i,a,o,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:r+"[ 	]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[n,s,i,a,"self"]},{className:"symbol",begin:"^[ 	]*"+e.lookahead(r+":"),excludeBegin:!0,end:r+":",relevance:0}],illegal:/#|<\//}}function xVt(t){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},t.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function AVt(t){const e=t.regex,r={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},n={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,a=/''|'[^']+'/,s=/\[\]|\[[^\]]+\]/,o=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,u=e.either(i,a,s,o),d=e.concat(e.optional(/\.|\.\/|\//),u,e.anyNumberOfTimes(e.concat(l,u))),h=e.concat("(",s,"|",o,")(?==)"),f={begin:d},p=t.inherit(f,{keywords:n}),g={begin:/\(/,end:/\)/},m={className:"attr",begin:h,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[t.NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,p,g]}}},_={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},v={contains:[t.NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,_,m,p,g],returnEnd:!0},y=t.inherit(f,{className:"name",keywords:r,starts:t.inherit(v,{end:/\)/})});g.contains=[y];const b=t.inherit(f,{keywords:r,className:"name",starts:t.inherit(v,{end:/\}\}/})}),E=t.inherit(f,{keywords:r,className:"name"}),S=t.inherit(f,{className:"name",keywords:r,starts:t.inherit(v,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},t.COMMENT(/\{\{!--/,/--\}\}/),t.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[b],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[E]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[b]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[E]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[S]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[S]}]}}function RVt(t){const e="([0-9]_*)+",r="([0-9a-fA-F]_*)+",n="([01]_*)+",i="([0-7]_*)+",l="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",u={variants:[t.COMMENT("--+","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},d={className:"meta",begin:/\{-#/,end:/#-\}/},h={className:"meta",begin:"^#",end:"$"},f={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},p={begin:"\\(",end:"\\)",illegal:'"',contains:[d,h,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t.inherit(t.TITLE_MODE,{begin:"[_a-z][\\w']*"}),u]},g={begin:/\{/,end:/\}/,contains:p.contains},m={className:"number",relevance:0,variants:[{match:`\\b(${e})(\\.(${e}))?([eE][+-]?(${e}))?\\b`},{match:`\\b0[xX]_*(${r})(\\.(${r}))?([pP][+-]?(${e}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${n})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[p,u],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[p,u],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[f,p,u]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[d,f,p,g,u]},{beginKeywords:"default",end:"$",contains:[f,p,u]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,u]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[f,t.QUOTE_STRING_MODE,u]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},d,h,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},t.QUOTE_STRING_MODE,m,f,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${l}--+|--+(?!-)${l}`},u,{begin:"->|<-"}]}}function OVt(t){const e="[a-zA-Z_$][a-zA-Z0-9_$]*",r=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"number",begin:r,relevance:0},{className:"variable",begin:"\\$"+e},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[t.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+t.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},t.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:t.IDENT_RE,relevance:0}]},t.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[t.TITLE_MODE]}],illegal:/<\//}}function IVt(t){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[t.BACKSLASH_ESCAPE]},t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),t.NUMBER_MODE,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},t.NUMBER_MODE,t.C_NUMBER_MODE]}}function NVt(t){const e=t.regex,r="HTTP/([32]|1\\.[01])",n=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:e.concat("^",n,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},a=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},t.inherit(i,{relevance:0})]}}function kVt(t){const e="a-zA-Z_\\-!.?+*=<>&#'",r="["+e+"]["+e+"0-9/;:]*",n={$pattern:r,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",a={begin:r,relevance:0},s={className:"number",begin:i,relevance:0},o=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),l=t.COMMENT(";","$",{relevance:0}),u={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},h={className:"comment",begin:"\\^"+r},f=t.COMMENT("\\^\\{","\\}"),p={className:"symbol",begin:"[:]{1,2}"+r},g={begin:"\\(",end:"\\)"},m={endsWithParent:!0,relevance:0},_={className:"name",relevance:0,keywords:n,begin:r,starts:m},v=[g,o,h,f,l,p,d,s,u,a];return g.contains=[t.COMMENT("comment",""),_,m],m.contains=v,d.contains=v,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[t.SHEBANG(),g,o,h,f,l,p,d,s,u]}}function DVt(t){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}function MVt(t){const e=t.regex,r={className:"params",begin:"\\(",end:"\\)"},n=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:e.concat(/\b\d+/,/\.(\d*)/,i,n)},{begin:e.concat(/\b\d+/,i,n)},{begin:e.concat(/\.\d+/,i,n)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[t.UNDERSCORE_TITLE_MODE,r]},t.COMMENT("!","$",{relevance:0}),t.COMMENT("begin_doc","end_doc",{relevance:10}),a]}}function LVt(t){const e="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",n="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",G="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING  SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",fc="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",pd="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",eo="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",hp="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",ch=G+fc,wr=eo,bl="null true false nil ",Ki={className:"number",begin:t.NUMBER_RE,relevance:0},Pi={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Ca={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Es={className:"comment",begin:"//",end:"$",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Ca]},to={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Ca]},Do={variants:[Es,to]},kr={$pattern:e,keyword:n,built_in:ch,class:wr,literal:bl},en={begin:"\\.\\s*"+t.UNDERSCORE_IDENT_RE,keywords:kr,relevance:0},zr={className:"type",begin:":[ \\t]*("+hp.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},oi={className:"variable",keywords:kr,begin:e,relevance:0,contains:[zr,en]},za=r+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:kr,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:za,end:"\\)$",returnBegin:!0,keywords:kr,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:e,built_in:pd},begin:za,end:"\\(",returnBegin:!0,excludeEnd:!0},en,oi,Pi,Ki,Do]},zr,en,oi,Pi,Ki,Do]}}function PVt(t){const r={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},n={className:"function",begin:/:[\w\-.]+/,relevance:0},i={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},a={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,a,n,i,r]}}function FVt(t){const e="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",a={$pattern:e,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},s={keywords:a,illegal:/<\//},o={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},l={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},u={className:"subst",begin:/\$\(/,end:/\)/,keywords:a},d={className:"variable",begin:"\\$"+e},h={className:"string",contains:[t.BACKSLASH_ESCAPE,u,d],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},f={className:"string",contains:[t.BACKSLASH_ESCAPE,u,d],begin:"`",end:"`"},p={className:"meta",begin:"@"+e},g={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return s.name="Julia",s.contains=[o,l,h,f,p,g,t.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],u.contains=s.contains,s}function BVt(t){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}function UVt(t){const e="[a-zA-Z_][\\w.]*",r="<\\?(lasso(script)?|=)",n="\\]|\\?>",i={$pattern:e+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},a=t.COMMENT("<!--","-->",{relevance:0}),s={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[a]}},o={className:"meta",begin:"\\[/noprocess|"+r},l={className:"symbol",begin:"'"+e+"'"},u=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+e},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:e,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+e,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[t.inherit(t.TITLE_MODE,{begin:e+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:n,relevance:0,starts:{end:"\\[|"+r,returnEnd:!0,relevance:0,contains:[a]}},s,o,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:n,relevance:0,starts:{end:"\\[noprocess\\]|"+r,returnEnd:!0,contains:[a]}},s,o].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}function $Vt(t){const r=t.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(R=>R+"(?![a-zA-Z@:_])")),n=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(R=>R+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],a=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],s={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:r},{endsParent:!0,begin:n},{endsParent:!0,variants:a},{endsParent:!0,relevance:0,variants:i}]},o={className:"params",relevance:0,begin:/#+\d?/},l={variants:a},u={className:"built_in",relevance:0,begin:/[$&^_]/},d={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},h=t.COMMENT("%","$",{relevance:0}),f=[s,o,l,u,d,h],p={begin:/\{/,end:/\}/,relevance:0,contains:["self",...f]},g=t.inherit(p,{relevance:0,endsParent:!0,contains:[p,...f]}),m={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[p,...f]},_={begin:/\s+/,relevance:0},v=[g],y=[m],b=function(R,I){return{contains:[_],starts:{relevance:0,contains:R,starts:I}}},E=function(R,I){return{begin:"\\\\"+R+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+R},relevance:0,contains:[_],starts:I}},S=function(R,I){return t.inherit({begin:"\\\\begin(?=[ 	]*(\\r?\\n[ 	]*)?\\{"+R+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},b(v,I))},T=(R="string")=>t.END_SAME_AS_BEGIN({className:R,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),C=function(R){return{className:"string",end:"(?=\\\\end\\{"+R+"\\})"}},x=(R="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:R,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),A=[...["verb","lstinline"].map(R=>E(R,{contains:[T()]})),E("mint",b(v,{contains:[T()]})),E("mintinline",b(v,{contains:[x(),T()]})),E("url",{contains:[x("link"),x("link")]}),E("hyperref",{contains:[x("link")]}),E("href",b(y,{contains:[x("link")]})),...[].concat(...["","\\*"].map(R=>[S("verbatim"+R,C("verbatim"+R)),S("filecontents"+R,b(v,C("filecontents"+R))),...["","B","L"].map(I=>S(I+"Verbatim"+R,b(y,C(I+"Verbatim"+R))))])),S("minted",b(y,b(v,C("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...A,...f]}}function GVt(t){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},t.HASH_COMMENT_MODE]}}function zVt(t){const e=/([A-Za-z_][A-Za-z_0-9]*)?/,n={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[e,/(?=\()/],scope:{1:"keyword"},contains:[n]};return n.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,e,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[n]},{match:[/#+/,e,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}function qVt(t){const e="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",r="\\|[^]*?\\|",n="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},a={className:"number",variants:[{begin:n,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+n+" +"+n,end:"\\)"}]},s=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),o=t.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},u={className:"symbol",begin:"[:&]"+e},d={begin:e,relevance:0},h={begin:r},p={contains:[a,s,l,u,{begin:"\\(",end:"\\)",contains:["self",i,s,a,d]},d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+r}]},g={variants:[{begin:"'"+e},{begin:"#'"+e+"(::"+e+")*"}]},m={begin:"\\(\\s*",end:"\\)"},_={endsWithParent:!0,relevance:0};return m.contains=[{className:"name",variants:[{begin:e,relevance:0},{begin:r}]},_],_.contains=[p,g,m,i,a,s,o,l,u,h,d],{name:"Lisp",illegal:/\S/,contains:[a,t.SHEBANG(),i,s,o,p,g,m,d]}}function VVt(t){const e={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},r=[t.C_BLOCK_COMMENT_MODE,t.HASH_COMMENT_MODE,t.COMMENT("--","$"),t.COMMENT("[^:]//","$")],n=t.inherit(t.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=t.inherit(t.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[e,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[e,i,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,n]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,n],relevance:0},{beginKeywords:"command on",end:"$",contains:[e,i,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,n]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,n].concat(r),illegal:";$|^\\[|^=|&|\\{"}}const HVt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],YVt=["true","false","null","undefined","NaN","Infinity"],WVt=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],KVt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],jVt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],XVt=[].concat(jVt,WVt,KVt);function QVt(t){const e=["npm","print"],r=["yes","no","on","off","it","that","void"],n=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],i={keyword:HVt.concat(n),literal:YVt.concat(r),built_in:XVt.concat(e)},a="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",s=t.inherit(t.TITLE_MODE,{begin:a}),o={className:"subst",begin:/#\{/,end:/\}/,keywords:i},l={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:i},u=[t.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,o,l]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,o,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[o,t.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+a},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];o.contains=u;const d={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(u)}]},h={begin:"(#=>|=>|\\|>>|-?->|!->)"},f={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i};return{name:"LiveScript",aliases:["ls"],keywords:i,illegal:/\/\*/,contains:u.concat([t.COMMENT("\\/\\*","\\*\\/"),t.HASH_COMMENT_MODE,h,{className:"function",contains:[s,d],returnBegin:!0,variants:[{begin:"("+a+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+a+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+a+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},f,{begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function ZVt(t){const e=t.regex,r=/([-a-zA-Z$._][\w$.-]*)/,n={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},a={className:"punctuation",relevance:0,begin:/,/},s={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},o={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:"variable",variants:[{begin:e.concat(/%/,r)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:"title",variants:[{begin:e.concat(/@/,r)},{begin:/@\d+/},{begin:e.concat(/!/,r)},{begin:e.concat(/!\d+/,r)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[n,t.COMMENT(/;\s*$/,null,{relevance:0}),t.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},u,a,i,l,o,s]}}function JVt(t){const r={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},n={className:"number",relevance:0,begin:t.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},a={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[r,{className:"comment",variants:[t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/")],relevance:0},n,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},a,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}const eHt=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function tHt(t){const e=t.regex,r=/([2-9]|[1-2]\d|[3][0-5])\^\^/,n=/(\w*\.\w+|\w+\.\w*|\w+)/,i=/(\d*\.\d+|\d+\.\d*|\d+)/,a=e.either(e.concat(r,n),i),s=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,o=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,l=e.either(s,o),u=/\*\^[+-]?\d+/,h={className:"number",relevance:0,begin:e.concat(a,e.optional(l),e.optional(u))},f=/[a-zA-Z$][a-zA-Z0-9$]*/,p=new Set(eHt),g={variants:[{className:"builtin-symbol",begin:f,"on:begin":(S,T)=>{p.has(S[0])||T.ignoreMatch()}},{className:"symbol",relevance:0,begin:f}]},m={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},_={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},v={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},y={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},b={className:"brace",relevance:0,begin:/[[\](){}]/},E={className:"message-name",relevance:0,begin:e.concat("::",f)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),v,y,E,g,m,t.QUOTE_STRING_MODE,h,_,b]}}function rHt(t){const e="('|\\.')+",r={relevance:0,contains:[{begin:e}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:r},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+e,relevance:0},{className:"number",begin:t.C_NUMBER_RE,relevance:0,starts:r},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:r},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:r},t.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),t.COMMENT("%","$")]}}function nHt(t){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},t.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}function iHt(t){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function aHt(t){const e={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},r=t.COMMENT("%","$"),n={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},i=t.inherit(t.APOS_STRING_MODE,{relevance:0}),a=t.inherit(t.QUOTE_STRING_MODE,{relevance:0}),s={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return a.contains=a.contains.slice(),a.contains.push(s),{name:"Mercury",aliases:["m","moo"],keywords:e,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},r,t.C_BLOCK_COMMENT_MODE,n,t.NUMBER_MODE,i,a,{begin:/:-/},{begin:/\.$/}]}}function sHt(t){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},t.COMMENT("[;#](?!\\s*$)","$"),t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}function oHt(t){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[t.COMMENT("::","$")]}}function lHt(t){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}function cHt(t){const e={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},t.NUMBER_MODE]},r={variants:[{match:[/(function|method)/,/\s+/,t.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},n={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[t.COMMENT("#rem","#end"),t.COMMENT("'","$",{relevance:0}),r,n,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[t.UNDERSCORE_TITLE_MODE]},t.QUOTE_STRING_MODE,e]}}function uHt(t){const e={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},r="[A-Za-z$_][0-9A-Za-z$_]*",n={className:"subst",begin:/#\{/,end:/\}/,keywords:e},i=[t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n]}]},{className:"built_in",begin:"@__"+t.IDENT_RE},{begin:"@"+t.IDENT_RE},{begin:t.IDENT_RE+"\\\\"+t.IDENT_RE}];n.contains=i;const a=t.inherit(t.TITLE_MODE,{begin:r}),s="(\\(.*\\)\\s*)?\\B[-=]>",o={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:e,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:e,illegal:/\/\*/,contains:i.concat([t.COMMENT("--","$"),{className:"function",begin:"^\\s*"+r+"\\s*=\\s*"+s,end:"[-=]>",returnBegin:!0,contains:[a,o]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:s,end:"[-=]>",returnBegin:!0,contains:[o]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:"name",begin:r+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function dHt(t){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE]}}function hHt(t){const e={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},r={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},n={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[t.inherit(t.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,n,e,r]}}function fHt(t){const e=t.regex,r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:e.concat(/[$@]/,t.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:e.concat(t.UNDERSCORE_IDENT_RE+e.lookahead(/\s+\{/)),relevance:0},{begin:e.lookahead(t.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function pHt(t){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},t.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},t.HASH_COMMENT_MODE]}}function gHt(t){const e=t.regex,r={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},n={scope:"built_in",match:e.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(T=>`builtins\\.${T}`)),relevance:10},i="[A-Za-z_][A-Za-z0-9_'-]*",a={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},s="[A-Za-z0-9_\\+\\.-]+",o={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${s})?(/${s})*(?=[\\s;])`)},l=e.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),u={scope:"operator",match:e.concat(l,/(?!-)/),relevance:0},d={scope:"number",match:new RegExp(`${t.NUMBER_RE}(?!-)`),relevance:0},h={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${t.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[l,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},f={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},p={scope:"char.escape",match:/\\\$/},g={scope:"char.escape",match:/''\$/},m={scope:"subst",begin:/\$\{/,end:/\}/,keywords:r},_={scope:"char.escape",match:/'''/},v={scope:"char.escape",match:/\\(?!\$)./},y={scope:"string",variants:[{begin:"''",end:"''",contains:[g,m,_,v]},{begin:'"',end:'"',contains:[p,m,v]}]},b={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},E=[d,t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),n,y,a,o,b,f,h,u];m.contains=E;const S=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:r,contains:E.concat(S)}}function mHt(t){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function _Ht(t){const e=t.regex,r=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],n=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],a={className:"variable.constant",begin:e.concat(/\$/,e.either(...r))},s={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},o={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:"variable",begin:/\$+\([\w^.:!-]+\)/},u={className:"params",begin:e.either(...n)},d={className:"keyword",begin:e.concat(/!/,e.either(...i))},h={className:"char.escape",begin:/\$(\\[nrt]|\$)/},f={className:"title.function",begin:/\w+::\w+/},p={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[h,a,s,o,l]},g=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],m=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],_={match:[/Function/,/\s+/,e.concat(/(\.)?/,t.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},y={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:g,literal:m},contains:[t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),y,_,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},p,d,s,o,l,u,f,t.NUMBER_MODE]}}function vHt(t){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}function yHt(t){const e={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},r={className:"literal",begin:"false|true|PI|undef"},n={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),a={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},s={className:"params",begin:"\\(",end:"\\)",contains:["self",n,i,e,r]},o={begin:"[*!#%]",relevance:0},l={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[s,t.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n,a,i,e,o,l]}}function bHt(t){const e={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},r=t.COMMENT(/\{/,/\}/,{relevance:0}),n=t.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},a={className:"string",begin:"(#\\d+)+"},s={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[t.inherit(t.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:e,contains:[i,a]},r,n]},o={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:e,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[r,n,t.C_LINE_COMMENT_MODE,i,a,t.NUMBER_MODE,s,o]}}function EHt(t){const e=t.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[t.COMMENT("^#","$"),t.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[e]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},t.C_NUMBER_MODE]}}function SHt(t){const e={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},r={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[t.HASH_COMMENT_MODE,t.NUMBER_MODE,t.QUOTE_STRING_MODE,e,r]}}function THt(t){const e=t.COMMENT("--","$"),r="[a-zA-Z_][a-zA-Z_0-9$]*",n="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+r+"\\s*>>",a="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",s="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",o="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",u=l.trim().split(" ").map(function(m){return m.split("|")[0]}).join("|"),d="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",h="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",f="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",g="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(m){return m.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:a+o+s,built_in:d+h+f},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:t.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+g+")\\s*\\("},{begin:"\\.("+u+")\\b"},{begin:"\\b("+u+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+u+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},t.END_SAME_AS_BEGIN({begin:n,end:n,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,e,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}function CHt(t){const e={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},r={className:"string",begin:'"""',end:'"""',relevance:10},n={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},i={className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE],relevance:0},a={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},s={begin:t.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:e,contains:[a,r,n,i,s,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function wHt(t){const e=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],r="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",n="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a=/\w[\w\d]*((-)[\w\d]+)*/,s={begin:"`[\\s\\S]",relevance:0},o={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},u={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[s,o,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},d={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},h={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},f=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[h]}),p={className:"built_in",variants:[{begin:"(".concat(r,")+(-)[\\w\\d]+")}]},g={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},m={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[o]}]},_={begin:/using\s/,end:/$/,returnBegin:!0,contains:[u,d,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},v={variants:[{className:"operator",begin:"(".concat(n,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},y={className:"selector-tag",begin:/@\B/,relevance:0},b={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},E=[b,f,s,t.NUMBER_MODE,u,d,p,o,l,y],S={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",E,{begin:"("+e.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return b.contains.unshift(S),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:E.concat(g,m,_,v,S)}}function xHt(t){const e=t.regex,r=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],n=t.IDENT_RE,i={variants:[{match:e.concat(e.either(...r),e.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:e.concat(/\b(?!for|if|while)/,n,e.lookahead(/\s*\(/)),className:"title.function"}]},a={match:[/new\s+/,n],className:{1:"keyword",2:"class.title"}},s={relevance:0,match:[/\./,n],className:{2:"property"}},o={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,n]},{match:[/class/,/\s+/,n]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},l=["boolean","byte","char","color","double","float","int","long","short"],u=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...r,...u],type:l},contains:[o,a,i,s,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function AHt(t){return{name:"Python profiler",contains:[t.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[t.C_NUMBER_MODE],relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}function RHt(t){const e={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},r={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},n={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},a={className:"comment",begin:/%/,end:/$/,contains:[t.PHRASAL_WORDS_MODE]},s={className:"string",begin:/`/,end:/`/,contains:[t.BACKSLASH_ESCAPE]},o={className:"string",begin:/0'(\\'|.)/},l={className:"string",begin:/0'\\s/},d=[e,r,n,{begin:/:-/},i,a,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,s,o,l,t.C_NUMBER_MODE];return n.contains=d,i.contains=d,{name:"Prolog",contains:d.concat([{begin:/\.$/}])}}function OHt(t){const e="[ \\t\\f]*",r="[ \\t\\f]+",n=e+"[:=]"+e,i=r,a="("+n+"|"+i+")",s="([^\\\\:= \\t\\f\\n]|\\\\.)+",o={end:a,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[t.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:s+n},{begin:s+i}],contains:[{className:"attr",begin:s,endsParent:!0}],starts:o},{className:"attr",begin:s+e+"$"}]}}function IHt(t){const e=["package","import","option","optional","required","repeated","group","oneof"],r=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],n={match:[/(message|enum|service)\s+/,t.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:e,type:r,literal:["true","false"]},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function NHt(t){const e={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},r=t.COMMENT("#","$"),n="([A-Za-z_]|::)(\\w|::)*",i=t.inherit(t.TITLE_MODE,{begin:n}),a={className:"variable",begin:"\\$"+n},s={className:"string",contains:[t.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[r,a,s,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,r]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:t.IDENT_RE,endsParent:!0}]},{begin:t.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:t.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:e,relevance:0,contains:[s,r,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:t.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},a]}],relevance:0}]}}function kHt(t){const e={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},r={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until  UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[t.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},t.UNDERSCORE_TITLE_MODE]},e,r]}}function DHt(t){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function MHt(t){const e=t.regex,r={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},n="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:n,returnEnd:!1}},o={begin:n+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:n,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},l={begin:e.concat(n,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[t.inherit(t.TITLE_MODE,{begin:n})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:r,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},a,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+t.IDENT_RE,relevance:0},s,o,l],illegal:/#/}}function LHt(t){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},t.inherit(t.APOS_STRING_MODE,{scope:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}function PHt(t){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[t.HASH_COMMENT_MODE,t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}}function FHt(t){const e="[a-zA-Z-_][^\\n{]+\\{",r={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+e,end:/\}/,keywords:"facet",contains:[r,t.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+e,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",r,t.HASH_COMMENT_MODE]},{begin:"^"+e,end:/\}/,contains:[r,t.HASH_COMMENT_MODE]},t.HASH_COMMENT_MODE]}}function BHt(t){const e="foreach do while for if from to step else on-error and or not in",r="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",n="add remove enable disable set get print export edit find run debug error info warning",i="true false yes no nothing nil null",a="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",s={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,s,{className:"variable",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]}]},l={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:i,keyword:e+" :"+e.split(" ").join(" :")+" :"+r.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},t.COMMENT("^#","$"),o,l,s,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[o,l,s,{className:"literal",begin:"\\b("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+n.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+a.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}function UHt(t){const e=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],r=["matrix","float","color","point","normal","vector"],n=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,t.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:n,built_in:e,type:r},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},i,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}function $Ht(t){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}function GHt(t){const e=t.regex,r=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],n=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],i=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:r},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+e.either(...i)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:e.either(...n)+"(?=\\()"},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},t.COMMENT("\\*",";"),t.C_BLOCK_COMMENT_MODE]}}function zHt(t){const e=t.regex,r={className:"meta",begin:"@[A-Za-z]+"},n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,n]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[n],relevance:10}]},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},s={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},o={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},s]},l={className:"function",beginKeywords:"def",end:e.lookahead(/[:={\[(\n;]/),contains:[s]},u={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},d={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},h=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],f={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i,a,l,o,t.C_NUMBER_MODE,u,d,...h,f,r]}}function qHt(t){const e="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",r="(-|\\+)?\\d+([./]\\d+)?",n=r+"[+\\-]"+r+"i",i={$pattern:e,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},a={className:"literal",begin:"(#t|#f|#\\\\"+e+"|#\\\\.)"},s={className:"number",variants:[{begin:r,relevance:0},{begin:n,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},o=t.QUOTE_STRING_MODE,l=[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#\\|","\\|#")],u={begin:e,relevance:0},d={className:"symbol",begin:"'"+e},h={endsWithParent:!0,relevance:0},f={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",a,o,s,u,d]}]},p={className:"name",relevance:0,begin:e,keywords:i},m={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[p,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[u]}]},p,h]};return h.contains=[a,s,o,u,d,f,m].concat(l),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[t.SHEBANG(),s,o,d,f,m].concat(l)}}function VHt(t){const e=[t.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:e},t.COMMENT("//","$")].concat(e)}}function HHt(t){const e=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],r=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],n=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},t.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+n.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+e.join("|")+")\\s"},{begin:"\\s("+e.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}function YHt(t){const e="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},n={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:e+":",relevance:0},t.C_NUMBER_MODE,n,r,{begin:"\\|[ ]*"+e+"([ ]+"+e+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+e}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,r,t.C_NUMBER_MODE,n]}]}}function WHt(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}function KHt(t){const e={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},n={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],a=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],s=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},t.inherit(n,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:i,built_in:s,literal:a},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.NUMBER_MODE,e,r,n,o],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}function jHt(t){const e=t.regex,r=["functions","model","data","parameters","quantities","transformed","generated"],n=["for","in","if","else","while","break","continue","return"],i=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],a=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],s=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],o=t.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),l={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},t.C_LINE_COMMENT_MODE]},u=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:t.IDENT_RE,title:r,type:i,keyword:n,built_in:a},contains:[t.C_LINE_COMMENT_MODE,l,t.HASH_COMMENT_MODE,o,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:e.concat(/[<,]\s*/,e.either(...u),/\s*=/),keywords:u},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,e.either(...s),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:s,begin:e.concat(/\w*/,e.either(...s),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,e.concat(e.either(...s),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+e.either(...s)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:e.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}function XHt(t){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ 	]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function QHt(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}const ZHt=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),JHt=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],eYt=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],tYt=[...JHt,...eYt],rYt=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),nYt=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),iYt=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),aYt=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function sYt(t){const e=ZHt(t),r="and or not only",n={className:"variable",begin:"\\$"+t.IDENT_RE},i=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],a="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+a,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+a,className:"selector-id"},{begin:"\\b("+tYt.join("|")+")"+a,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+nYt.join("|")+")"+a},{className:"selector-pseudo",begin:"&?:(:)?("+iYt.join("|")+")"+a},e.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:rYt.join(" ")},contains:[e.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+i.join("|")+"))\\b"},n,e.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[e.HEXCOLOR,n,t.APOS_STRING_MODE,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE]}]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+aYt.join("|")+")\\b",starts:{end:/;|$/,contains:[e.HEXCOLOR,n,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},e.FUNCTION_DISPATCH]}}function oYt(t){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}function lYt(t){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}function cYt(t){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}function uYt(t){const e=t.regex,r=/[a-zA-Z_][a-zA-Z0-9_]*/,n={className:"number",variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[t.COMMENT(";[ \\t]*#","$"),t.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:e.concat(/\$/,e.optional(/::/),r,"(::",r,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[n]}]},{className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},n]}}function dYt(t){const e=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:e,literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...e,"set","list","map"]},end:">",contains:["self"]}]}}function hYt(t){const e={className:"number",begin:"[1-9][0-9]*",relevance:0},r={className:"symbol",begin:":[^\\]]+"},n={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",e,r]},i={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",e,t.QUOTE_STRING_MODE,r]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[n,i,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},t.COMMENT("//","[;$]"),t.COMMENT("!","[;$]"),t.COMMENT("--eg:","$"),t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},t.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}function fYt(t){const e=t.regex,r=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],n=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let i=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];i=i.concat(i.map(g=>`end${g}`));const a={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},s={scope:"number",match:/\d+/},o={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a,s]},l={beginKeywords:r.join(" "),keywords:{name:r},relevance:0,contains:[o]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:n}]},d=(g,{relevance:m})=>({beginScope:{1:"template-tag",3:"name"},relevance:m||2,endScope:"template-tag",begin:[/\{%/,/\s*/,e.either(...g)],end:/%\}/,keywords:"in",contains:[u,l,a,s]}),h=/[a-z_]+/,f=d(i,{relevance:2}),p=d([h],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{#/,/#\}/),f,p,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",u,l,a,s]}]}}function pYt(t){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[t.UNDERSCORE_TITLE_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}function gYt(t){const e=t.regex,r=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],n=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={begin:e.concat(e.either(...r),"\\s*\\("),relevance:0,keywords:{built_in:r}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:n,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[i,t.inherit(t.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),t.COMMENT(/'/,/$/,{relevance:0}),t.C_NUMBER_MODE]}}function mYt(t){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}function _Yt(t){const e=t.regex,r={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},n=["__FILE__","__LINE__"],i=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:r,contains:[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,{scope:"number",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:e.concat(/`/,e.either(...n))},{scope:"meta",begin:e.concat(/`/,e.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}function vYt(t){const e="\\d(_|\\d)*",r="[eE][-+]?"+e,n=e+"(\\."+e+")?("+r+")?",i="\\w+",s="\\b("+(e+"#"+i+"(\\."+i+")?#("+r+")?")+"|"+n+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT("--","$"),t.QUOTE_STRING_MODE,{className:"number",begin:s,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[t.BACKSLASH_ESCAPE]}]}}function yYt(t){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[t.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},t.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,t.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}function bYt(t){const e=t.regex,r=/[a-zA-Z]\w*/,n=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],i=["true","false","null"],a=["this","super"],s=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],o=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],l={relevance:0,match:e.concat(/\b(?!(if|while|for|else|super)\b)/,r,/(?=\s*[({])/),className:"title.function"},u={match:e.concat(e.either(e.concat(/\b(?!(if|while|for|else|super)\b)/,r),e.either(...o)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:r}]}]}},d={variants:[{match:[/class\s+/,r,/\s+is\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:n},h={relevance:0,match:e.either(...o),className:"operator"},f={className:"string",begin:/"""/,end:/"""/},p={className:"property",begin:e.concat(/\./,e.lookahead(r)),end:r,excludeBegin:!0,relevance:0},g={relevance:0,match:e.concat(/\b_/,r),scope:"variable"},m={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:s}},_=t.C_NUMBER_MODE,v={match:[r,/\s*/,/=/,/\s*/,/\(/,r,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},y=t.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),b={scope:"subst",begin:/%\(/,end:/\)/,contains:[_,m,l,g,h]},E={scope:"string",begin:/"/,end:/"/,contains:[b,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};b.contains.push(E);const S=[...n,...a,...i],T={relevance:0,match:e.concat("\\b(?!",S.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:n,"variable.language":a,literal:i},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},_,E,f,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,m,d,v,u,l,h,g,p,T]}}function EYt(t){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+t.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0  xmm1  xmm2  xmm3  xmm4  xmm5  xmm6  xmm7  xmm8  xmm9 xmm10  xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0  ymm1  ymm2  ymm3  ymm4  ymm5  ymm6  ymm7  ymm8  ymm9 ymm10  ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0  zmm1  zmm2  zmm3  zmm4  zmm5  zmm6  zmm7  zmm8  zmm9 zmm10  zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__  __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__  __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},t.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}function SYt(t){const e=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],r=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],n=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],a={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:e,literal:["true","false","nil"],built_in:r.concat(n)},s={className:"string",begin:'"',end:'"',illegal:"\\n"},o={className:"string",begin:"'",end:"'",illegal:"\\n"},l={className:"string",begin:"<<",end:">>"},u={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},d={beginKeywords:"import",end:"$",keywords:a,contains:[s]},h={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,keywords:a}})]};return{name:"XL",aliases:["tao"],keywords:a,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,o,l,h,d,u,t.NUMBER_MODE]}}function TYt(t){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}function CYt(t){const e={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},r=t.UNDERSCORE_TITLE_MODE,n={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},i="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:i,contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[t.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[r,{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:["self",t.C_BLOCK_COMMENT_MODE,e,n]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},r]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[r]},{beginKeywords:"use",end:/;/,contains:[r]},{begin:/=>/},e,n]}}function wYt(t){const e=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+n+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],_=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],E={type:m,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:_},S={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},T=[S,h,o,r,t.C_BLOCK_COMMENT_MODE,d,u],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:T.concat([{begin:/\(/,end:/\)/,keywords:E,contains:T.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+s+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:E,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,u,d,o,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,u,d,o]}]},o,r,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:E,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(C,x,S,T,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:E,contains:["self",o]},{begin:t.IDENT_RE+"::",keywords:E},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function xYt(t){const e={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=wYt(t),n=r.keywords;return n.type=[...n.type,...e.type],n.literal=[...n.literal,...e.literal],n.built_in=[...n.built_in,...e.built_in],n._hints=e._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function AYt(t){const e=t.regex,r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},a=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,i]};i.contains.push(o);const l={match:/\\"/},u={className:"string",begin:/'/,end:/'/},d={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=t.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],_=["true","false"],v={match:/(\/[a-z._-]+)+/},y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],b=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],E=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],S=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:_,built_in:[...y,...b,"set","shopt",...E,...S]},contains:[p,t.SHEBANG(),g,h,a,s,v,o,l,u,d,r]}}function RYt(t){const e=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="("+n+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",o={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",_={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},v=[h,o,r,t.C_BLOCK_COMMENT_MODE,d,u],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:v.concat([{begin:/\(/,end:/\)/,keywords:_,contains:v.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+s+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:_,relevance:0},{begin:p,returnBegin:!0,contains:[t.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,u,d,o,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,u,d,o]}]},o,r,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C",aliases:["h"],keywords:_,disableAutodetect:!0,illegal:"</",contains:[].concat(y,b,v,[h,{begin:t.IDENT_RE+"::",keywords:_},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:h,strings:u,keywords:_}}}function OYt(t){const e=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+n+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],_=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],E={type:m,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:_},S={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},T=[S,h,o,r,t.C_BLOCK_COMMENT_MODE,d,u],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:T.concat([{begin:/\(/,end:/\)/,keywords:E,contains:T.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+s+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:E,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,u,d,o,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,u,d,o]}]},o,r,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:E,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(C,x,S,T,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:E,contains:["self",o]},{begin:t.IDENT_RE+"::",keywords:E},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function IYt(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(a),built_in:e,literal:n},o=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},h=t.inherit(d,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:s},p=t.inherit(f,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,p]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},_=t.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[m,g,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,t.C_BLOCK_COMMENT_MODE],p.contains=[_,g,h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const v={variants:[u,m,g,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},o]},b=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",E={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},v,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},o,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[v,l,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},E]}}const NYt=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),kYt=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],DYt=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],MYt=[...kYt,...DYt],LYt=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),PYt=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),FYt=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),BYt=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function UYt(t){const e=t.regex,r=NYt(t),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",o=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,n,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+PYt.join("|")+")"},{begin:":(:)?("+FYt.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+BYt.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:LYt.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+MYt.join("|")+")\\b"}]}}function $Yt(t){const e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function GYt(t){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function zYt(t){const e=t.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:e.concat(r,e.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function qYt(t){const e=t.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},n=t.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},o={begin:/\[/,end:/\]/,contains:[n,a,i,s,r,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,d=/'[^']*'/,h=e.either(l,u,d),f=e.concat(h,"(\\s*\\.\\s*",h,")*",e.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[n,o,a,i,s,r]}}]}}var $S="[0-9](_*[0-9])*",uL=`\\.(${$S})`,dL="[0-9a-fA-F](_*[0-9a-fA-F])*",$Te={className:"number",variants:[{begin:`(\\b(${$S})((${uL})|\\.)?|(${uL}))[eE][+-]?(${$S})[fFdD]?\\b`},{begin:`\\b(${$S})((${uL})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${uL})[fFdD]?\\b`},{begin:`\\b(${$S})[fFdD]\\b`},{begin:`\\b0[xX]((${dL})\\.?|(${dL})?\\.(${dL}))[pP][+-]?(${$S})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${dL})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function X6e(t,e,r){return r===-1?"":t.replace(e,n=>X6e(t,e,r-1))}function VYt(t){const e=t.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=r+X6e("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[d,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[u,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,$Te,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},$Te,u]}}const GTe="[A-Za-z$_][0-9A-Za-z$_]*",HYt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],YYt=["true","false","null","undefined","NaN","Infinity"],Q6e=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Z6e=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],J6e=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],WYt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],KYt=[].concat(J6e,Q6e,Z6e);function jYt(t){const e=t.regex,r=(N,{after:$})=>{const U="</"+N[0].slice(1);return N.input.indexOf(U,$)!==-1},n=GTe,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,$)=>{const U=N[0].length+N.index,B=N.input[U];if(B==="<"||B===","){$.ignoreMatch();return}B===">"&&(r(N,{after:U})||$.ignoreMatch());let V;const z=N.input.substring(U);if(V=z.match(/^\s*=/)){$.ignoreMatch();return}if((V=z.match(/^\s+extends\s+/))&&V.index===0){$.ignoreMatch();return}}},o={$pattern:GTe,keyword:HYt,literal:YYt,built_in:KYt,"variable.language":WYt},l="[0-9](_?[0-9])*",u=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},_={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},y={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},b=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,g,m,_,{match:/\$\d+/},h];f.contains=b.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(b)});const E=[].concat(y,f.contains),S=E.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(E)}]),T={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:S},C={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},x={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Q6e,...Z6e]}},A={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return e.concat("(?!",N.join("|"),")")}const F={match:e.concat(/\b/,L([...J6e,"super","import"].map(N=>`${N}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},O={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},M="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(M)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),A,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,g,m,_,y,{match:/\$\d+/},h,x,{scope:"attr",match:n+e.lookahead(":"),relevance:0},P,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,t.REGEXP_MODE,{className:"function",begin:M,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:S}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},O,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},F,I,C,D,{match:/\$[(.]/}]}}function XYt(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],i={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[e,r,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var GS="[0-9](_*[0-9])*",hL=`\\.(${GS})`,fL="[0-9a-fA-F](_*[0-9a-fA-F])*",QYt={className:"number",variants:[{begin:`(\\b(${GS})((${hL})|\\.)?|(${hL}))[eE][+-]?(${GS})[fFdD]?\\b`},{begin:`\\b(${GS})((${hL})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${hL})[fFdD]?\\b`},{begin:`\\b(${GS})[fFdD]\\b`},{begin:`\\b0[xX]((${fL})\\.?|(${fL})?\\.(${fL}))[pP][+-]?(${GS})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${fL})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ZYt(t){const e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(s);const o={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(s,{className:"string"}),"self"]}]},u=QYt,d=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=h;return f.variants[1].contains=[h],h.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,d,r,n,o,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,t.C_LINE_COMMENT_MODE,d],relevance:0},t.C_LINE_COMMENT_MODE,d,o,l,s,t.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},o,l]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},u]}}const JYt=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),eWt=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],tWt=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],rWt=[...eWt,...tWt],nWt=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),e9e=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),t9e=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),iWt=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),aWt=e9e.concat(t9e).sort().reverse();function sWt(t){const e=JYt(t),r=aWt,n="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",s=[],o=[],l=function(b){return{className:"string",begin:"~?"+b+".*?"+b}},u=function(b,E,S){return{className:b,begin:E,relevance:S}},d={$pattern:/[a-z-]+/,keyword:n,attribute:nWt.join(" ")},h={begin:"\\(",end:"\\)",contains:o,keywords:d,relevance:0};o.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,l("'"),l('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.HEXCOLOR,h,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);const f=o.concat({begin:/\{/,end:/\}/,contains:s}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(o)},g={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+iWt.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:o}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:o,relevance:0}},_={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},v={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,p,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+rWt.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,u("selector-tag",a,0),u("selector-id","#"+a),u("selector-class","\\."+a,0),u("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+e9e.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+t9e.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},e.FUNCTION_DISPATCH]},y={begin:i+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[v]};return s.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,m,_,y,g,v,p,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}function oWt(t){const e="\\[=*\\[",r="\\]=*\\]",n={begin:e,end:r,contains:["self"]},i=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,r,{contains:[n],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:r,contains:[n],relevance:5}])}}function lWt(t){const e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e,r]},i={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,e,r,n,i,a,s]}}function cWt(t){const e=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},o=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,o,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},h=t.inherit(u,{contains:[]}),f=t.inherit(d,{contains:[]});u.contains.push(f),d.contains.push(h);let p=[r,l];return[u,d,h,f].forEach(v=>{v.contains=v.contains.concat(p)}),p=p.concat(u,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},r,a,u,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,n,l,s,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function uWt(t){const e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,o={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:o,illegal:"</",contains:[e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function dWt(t){const e=t.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:r.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},s={begin:/->\{/,end:/\}/},o={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[o]},u={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[t.BACKSLASH_ESCAPE,a,l],h=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(m,_,v="\\1")=>{const y=v==="\\1"?v:e.concat(v,_);return e.concat(e.concat("(?:",m,")"),_,/(?:\\.|[^\\\/])*?/,y,/(?:\\.|[^\\\/])*?/,v,n)},p=(m,_,v)=>e.concat(e.concat("(?:",m,")"),_,/(?:\\.|[^\\\/])*?/,v,n),g=[l,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},u,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:f("s|tr|y",e.either(...h,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",e.either(...h,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,o]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,o,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=g,s.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}function hWt(t){const e=t.regex,r=/(?![A-Za-z0-9])(?![$])/,n=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),a=e.concat(/[A-Z]+/,r),s={scope:"variable",match:"\\$+"+n},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=t.inherit(t.APOS_STRING_MODE,{illegal:null}),d=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(l)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(O,D)=>{D.data._beginMatch=O[1]||O[2]},"on:end":(O,D)=>{D.data._beginMatch!==O[1]&&D.ignoreMatch()}},f=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[ 	
]`,g={scope:"string",variants:[d,u,h,f]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},_=["false","null","true"],v=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],E={keyword:v,literal:(O=>{const D=[];return O.forEach(M=>{D.push(M),M.toLowerCase()===M?D.push(M.toUpperCase()):D.push(M.toLowerCase())}),D})(_),built_in:y},S=O=>O.map(D=>D.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,e.concat(p,"+"),e.concat("(?!",S(y).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},C=e.concat(n,"\\b(?!\\()"),x={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),C],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,e.concat(/::/,e.lookahead(/(?!class\b)/)),C],scope:{1:"title.class",3:"variable.constant"}},{match:[i,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},A={scope:"attr",match:e.concat(n,e.lookahead(":"),e.lookahead(/(?!::)/))},R={relevance:0,begin:/\(/,end:/\)/,keywords:E,contains:[A,s,x,t.C_BLOCK_COMMENT_MODE,g,m,T]},I={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",S(v).join("\\b|"),"|",S(y).join("\\b|"),"\\b)"),n,e.concat(p,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[R]};R.contains.push(I);const L=[A,x,t.C_BLOCK_COMMENT_MODE,g,m,T],F={begin:e.concat(/#\[\s*\\?/,e.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:_,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:_,keyword:["new","array"]},contains:["self",...L]},...L,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:E,contains:[F,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,I,x,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},T,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:E,contains:["self",F,s,x,t.C_BLOCK_COMMENT_MODE,g,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},g,m]}}function fWt(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function pWt(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function gWt(t){const e=t.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},d={begin:/\{\{/,relevance:0},h={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l,d,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l,d,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,d,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,d,u]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,g=`\\b|${n.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${g})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${f})[jJ](?=${g})`}]},_={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",l,m,h,t.HASH_COMMENT_MODE]}]};return u.contains=[h,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[l,m,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},h,_,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,v,h]}]}}function mWt(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function _Wt(t){const e=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[a,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function vWt(t){const e=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=e.concat(n,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[t.COMMENT("#","$",{contains:[o]}),t.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:s},h={className:"string",contains:[t.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,d]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},T=[h,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:s},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[h,{begin:r}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,u),relevance:0}].concat(l,u);d.contains=T,m.contains=T;const R=[{begin:/^\s*=>/,starts:{end:"$",contains:T}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:s,contains:T}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(R).concat(u).concat(T)}}function yWt(t){const e=t.regex,r=/(r#)?/,n=e.concat(r,t.UNDERSCORE_IDENT_RE),i=e.concat(r,t.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,e.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",o=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],u=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:d,keyword:o,literal:l,built_in:u},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,n],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:d}},{className:"punctuation",begin:"->"},a]}}const bWt=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),EWt=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],SWt=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],TWt=[...EWt,...SWt],CWt=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),wWt=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),xWt=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),AWt=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function RWt(t){const e=bWt(t),r=xWt,n=wWt,i="@[a-z-]+",a="and or not only",o={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+TWt.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},o,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+AWt.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,o,e.HEXCOLOR,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:CWt.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},o,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}function OWt(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function IWt(t){const e=t.regex,r=t.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,g=[...u,...l].filter(S=>!d.includes(S)),m={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},_={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:e.concat(/\b/,e.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function y(S){return e.concat(/\b/,e.either(...S.map(T=>T.replace(/\s+/,"\\s+"))),/\b/)}const b={scope:"keyword",match:y(f),relevance:0};function E(S,{exceptions:T,when:C}={}){const x=C;return T=T||[],S.map(A=>A.match(/\|\d+$/)||T.includes(A)?A:x(A)?`${A}|0`:A)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:E(g,{when:S=>S.length<3}),literal:a,type:o,built_in:h},contains:[{scope:"type",match:y(s)},b,v,m,n,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,_]}}function r9e(t){return t?typeof t=="string"?t:t.source:null}function xO(t){return Va("(?=",t,")")}function Va(...t){return t.map(r=>r9e(r)).join("")}function NWt(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Xc(...t){return"("+(NWt(t).capture?"":"?:")+t.map(n=>r9e(n)).join("|")+")"}const Ule=t=>Va(/\b/,t,/\w$/.test(t)?/\b/:/\B/),kWt=["Protocol","Type"].map(Ule),zTe=["init","self"].map(Ule),DWt=["Any","Self"],tK=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],qTe=["false","nil","true"],MWt=["assignment","associativity","higherThan","left","lowerThan","none","right"],LWt=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],VTe=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],n9e=Xc(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),i9e=Xc(n9e,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),rK=Va(n9e,i9e,"*"),a9e=Xc(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),p7=Xc(a9e,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Tp=Va(a9e,p7,"*"),pL=Va(/[A-Z]/,p7,"*"),PWt=["attached","autoclosure",Va(/convention\(/,Xc("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Va(/objc\(/,Tp,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],FWt=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function BWt(t){const e={match:/\s+/,relevance:0},r=t.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[t.C_LINE_COMMENT_MODE,r],i={match:[/\./,Xc(...kWt,...zTe)],className:{2:"keyword"}},a={match:Va(/\./,Xc(...tK)),relevance:0},s=tK.filter(ye=>typeof ye=="string").concat(["_|0"]),o=tK.filter(ye=>typeof ye!="string").concat(DWt).map(Ule),l={variants:[{className:"keyword",match:Xc(...o,...zTe)}]},u={$pattern:Xc(/\b\w+/,/#\w+/),keyword:s.concat(LWt),literal:qTe},d=[i,a,l],h={match:Va(/\./,Xc(...VTe)),relevance:0},f={className:"built_in",match:Va(/\b/,Xc(...VTe),/(?=\()/)},p=[h,f],g={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:rK},{match:`\\.(\\.|${i9e})+`}]},_=[g,m],v="([0-9]_*)+",y="([0-9a-fA-F]_*)+",b={className:"number",relevance:0,variants:[{match:`\\b(${v})(\\.(${v}))?([eE][+-]?(${v}))?\\b`},{match:`\\b0x(${y})(\\.(${y}))?([pP][+-]?(${v}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},E=(ye="")=>({className:"subst",variants:[{match:Va(/\\/,ye,/[0\\tnr"']/)},{match:Va(/\\/,ye,/u\{[0-9a-fA-F]{1,8}\}/)}]}),S=(ye="")=>({className:"subst",match:Va(/\\/,ye,/[\t ]*(?:[\r\n]|\r\n)/)}),T=(ye="")=>({className:"subst",label:"interpol",begin:Va(/\\/,ye,/\(/),end:/\)/}),C=(ye="")=>({begin:Va(ye,/"""/),end:Va(/"""/,ye),contains:[E(ye),S(ye),T(ye)]}),x=(ye="")=>({begin:Va(ye,/"/),end:Va(/"/,ye),contains:[E(ye),T(ye)]}),A={className:"string",variants:[C(),C("#"),C("##"),C("###"),x(),x("#"),x("##"),x("###")]},R=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],I={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:R},L=ye=>{const Ue=Va(ye,/\//),Se=Va(/\//,ye);return{begin:Ue,end:Se,contains:[...R,{scope:"comment",begin:`#(?!.*${Se})`,end:/$/}]}},F={scope:"regexp",variants:[L("###"),L("##"),L("#"),I]},O={match:Va(/`/,Tp,/`/)},D={className:"variable",match:/\$\d+/},M={className:"variable",match:`\\$${p7}+`},P=[O,D,M],N={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:FWt,contains:[..._,b,A]}]}},$={scope:"keyword",match:Va(/@/,Xc(...PWt),xO(Xc(/\(/,/\s+/)))},U={scope:"meta",match:Va(/@/,Tp)},B=[N,$,U],V={match:xO(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Va(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,p7,"+")},{className:"type",match:pL,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Va(/\s+&\s+/,xO(pL)),relevance:0}]},z={begin:/</,end:/>/,keywords:u,contains:[...n,...d,...B,g,V]};V.contains.push(z);const G={match:Va(Tp,/\s*:/),keywords:"_|0",relevance:0},Y={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",G,...n,F,...d,...p,..._,b,A,...P,...B,V]},W={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,V]},Q={begin:Xc(xO(Va(Tp,/\s*:/)),xO(Va(Tp,/\s+/,Tp,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Tp}]},ie={begin:/\(/,end:/\)/,keywords:u,contains:[Q,...n,...d,..._,b,A,...B,V,Y],endsParent:!0,illegal:/["']/},Z={match:[/(func|macro)/,/\s+/,Xc(O.match,Tp,rK)],className:{1:"keyword",3:"title.function"},contains:[W,ie,e],illegal:[/\[/,/%/]},re={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[W,ie,e],illegal:/\[|%/},K={match:[/operator/,/\s+/,rK],className:{1:"keyword",3:"title"}},j={begin:[/precedencegroup/,/\s+/,pL],className:{1:"keyword",3:"title"},contains:[V],keywords:[...MWt,...qTe],end:/}/},se={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},le={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},_e={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Tp,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[W,...d,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:pL},...d],relevance:0}]};for(const ye of A.variants){const Ue=ye.contains.find(be=>be.label==="interpol");Ue.keywords=u;const Se=[...d,...p,..._,b,A,...P];Ue.contains=[...Se,{begin:/\(/,end:/\)/,contains:["self",...Se]}]}return{name:"Swift",keywords:u,contains:[...n,Z,re,se,le,_e,K,j,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},F,...d,...p,..._,b,A,...P,...B,V,Y]}}const g7="[A-Za-z$_][0-9A-Za-z$_]*",s9e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],o9e=["true","false","null","undefined","NaN","Infinity"],l9e=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],c9e=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],u9e=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],d9e=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],h9e=[].concat(u9e,l9e,c9e);function UWt(t){const e=t.regex,r=(N,{after:$})=>{const U="</"+N[0].slice(1);return N.input.indexOf(U,$)!==-1},n=g7,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,$)=>{const U=N[0].length+N.index,B=N.input[U];if(B==="<"||B===","){$.ignoreMatch();return}B===">"&&(r(N,{after:U})||$.ignoreMatch());let V;const z=N.input.substring(U);if(V=z.match(/^\s*=/)){$.ignoreMatch();return}if((V=z.match(/^\s+extends\s+/))&&V.index===0){$.ignoreMatch();return}}},o={$pattern:g7,keyword:s9e,literal:o9e,built_in:h9e,"variable.language":d9e},l="[0-9](_?[0-9])*",u=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},_={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},y={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},b=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,g,m,_,{match:/\$\d+/},h];f.contains=b.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(b)});const E=[].concat(y,f.contains),S=E.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(E)}]),T={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:S},C={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},x={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l9e,...c9e]}},A={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return e.concat("(?!",N.join("|"),")")}const F={match:e.concat(/\b/,L([...u9e,"super","import"].map(N=>`${N}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},O={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},M="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(M)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),A,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,g,m,_,y,{match:/\$\d+/},h,x,{scope:"attr",match:n+e.lookahead(":"),relevance:0},P,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,t.REGEXP_MODE,{className:"function",begin:M,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:S}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},O,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},F,I,C,D,{match:/\$[(.]/}]}}function $Wt(t){const e=t.regex,r=UWt(t),n=g7,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[r.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:g7,keyword:s9e.concat(l),literal:o9e,built_in:h9e.concat(i),"variable.language":d9e},d={className:"meta",begin:"@"+n},h=(m,_,v)=>{const y=m.contains.findIndex(b=>b.label===_);if(y===-1)throw new Error("can not find mode to replace");m.contains.splice(y,1,v)};Object.assign(r.keywords,u),r.exports.PARAMS_CONTAINS.push(d);const f=r.contains.find(m=>m.scope==="attr"),p=Object.assign({},f,{match:e.concat(n,e.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,f,p]),r.contains=r.contains.concat([d,a,s,p]),h(r,"shebang",t.SHEBANG()),h(r,"use_strict",o);const g=r.contains.find(m=>m.label==="func.def");return g.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function GWt(t){const e=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,o=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:e.concat(/# */,e.either(a,i),/ *#/)},{begin:e.concat(/# */,o,/ *#/)},{begin:e.concat(/# */,s,/ *#/)},{begin:e.concat(/# */,e.either(a,i),/ +/,e.either(s,o),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},h=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,n,l,u,d,h,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function zWt(t){t.regex;const e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");const r=t.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},s={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},o={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[r,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,s,i,t.QUOTE_STRING_MODE,l,u,o]}}function qWt(t){const e=t.regex,r=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=t.inherit(a,{begin:/\(/,end:/\)/}),o=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,o,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,s,l,o]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(r,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function VWt(t){const e="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},o=t.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},g={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},_=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},f,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},g,m,a,s],v=[..._];return v.pop(),v.push(o),p.contains=v,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:_}}const f9e={arduino:xYt,bash:AYt,c:RYt,cpp:OYt,csharp:IYt,css:UYt,diff:$Yt,go:GYt,graphql:zYt,ini:qYt,java:VYt,javascript:jYt,json:XYt,kotlin:ZYt,less:sWt,lua:oWt,makefile:lWt,markdown:cWt,objectivec:uWt,perl:dWt,php:hWt,"php-template":fWt,plaintext:pWt,python:gWt,"python-repl":mWt,r:_Wt,ruby:vWt,rust:yWt,scss:RWt,shell:OWt,sql:IWt,swift:BWt,typescript:$Wt,vbnet:GWt,wasm:zWt,xml:qWt,yaml:VWt},HWt={...f9e,"1c":cqt,abnf:uqt,accesslog:dqt,actionscript:hqt,ada:fqt,angelscript:pqt,apache:gqt,applescript:mqt,arcade:_qt,armasm:vqt,asciidoc:yqt,aspectj:bqt,autohotkey:Eqt,autoit:Sqt,avrasm:Tqt,awk:Cqt,axapta:wqt,basic:xqt,bnf:Aqt,brainfuck:Rqt,cal:Oqt,capnproto:Iqt,ceylon:Nqt,clean:kqt,clojure:Dqt,"clojure-repl":Mqt,cmake:Lqt,coffeescript:zqt,coq:qqt,cos:Vqt,crmsh:Hqt,crystal:Yqt,csp:Wqt,d:Kqt,dart:jqt,delphi:Xqt,django:Qqt,dns:Zqt,dockerfile:Jqt,dos:eVt,dsconfig:tVt,dts:rVt,dust:nVt,ebnf:iVt,elixir:aVt,elm:sVt,erb:oVt,erlang:lVt,"erlang-repl":cVt,excel:uVt,fix:dVt,flix:hVt,fortran:fVt,fsharp:mVt,gams:_Vt,gauss:vVt,gcode:yVt,gherkin:bVt,glsl:EVt,gml:SVt,golo:TVt,gradle:CVt,groovy:wVt,haml:xVt,handlebars:AVt,haskell:RVt,haxe:OVt,hsp:IVt,http:NVt,hy:kVt,inform7:DVt,irpf90:MVt,isbl:LVt,"jboss-cli":PVt,julia:FVt,"julia-repl":BVt,lasso:UVt,latex:$Vt,ldif:GVt,leaf:zVt,lisp:qVt,livecodeserver:VVt,livescript:QVt,llvm:ZVt,lsl:JVt,mathematica:tHt,matlab:rHt,maxima:nHt,mel:iHt,mercury:aHt,mipsasm:sHt,mizar:oHt,mojolicious:lHt,monkey:cHt,moonscript:uHt,n1ql:dHt,nestedtext:hHt,nginx:fHt,nim:pHt,nix:gHt,"node-repl":mHt,nsis:_Ht,ocaml:vHt,openscad:yHt,oxygene:bHt,parser3:EHt,pf:SHt,pgsql:THt,pony:CHt,powershell:wHt,processing:xHt,profile:AHt,prolog:RHt,properties:OHt,protobuf:IHt,puppet:NHt,purebasic:kHt,q:DHt,qml:MHt,reasonml:LHt,rib:PHt,roboconf:FHt,routeros:BHt,rsl:UHt,ruleslanguage:$Ht,sas:GHt,scala:zHt,scheme:qHt,scilab:VHt,smali:HHt,smalltalk:YHt,sml:WHt,sqf:KHt,stan:jHt,stata:XHt,step21:QHt,stylus:sYt,subunit:oYt,taggerscript:lYt,tap:cYt,tcl:uYt,thrift:dYt,tp:hYt,twig:fYt,vala:pYt,vbscript:gYt,"vbscript-html":mYt,verilog:_Yt,vhdl:vYt,vim:yYt,wren:bYt,x86asm:EYt,xl:SYt,xquery:TYt,zephir:CYt};var YWt=UDe();const WWt=sd(YWt),HTe={},KWt="hljs-";function jWt(t){const e=WWt.newInstance();return t&&a(t),{highlight:r,highlightAuto:n,listLanguages:i,register:a,registerAlias:s,registered:o};function r(l,u,d){const h=d||HTe,f=typeof h.prefix=="string"?h.prefix:KWt;if(!e.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");e.configure({__emitter:XWt,classPrefix:f});const p=e.highlight(u,{ignoreIllegals:!0,language:l});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const g=p._emitter.root,m=g.data;return m.language=p.language,m.relevance=p.relevance,g}function n(l,u){const h=(u||HTe).subset||i();let f=-1,p=0,g;for(;++f<h.length;){const m=h[f];if(!e.getLanguage(m))continue;const _=r(m,l,u);_.data&&_.data.relevance!==void 0&&_.data.relevance>p&&(p=_.data.relevance,g=_)}return g||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return e.listLanguages()}function a(l,u){if(typeof l=="string")e.registerLanguage(l,u);else{let d;for(d in l)Object.hasOwn(l,d)&&e.registerLanguage(d,l[d])}}function s(l,u){if(typeof l=="string")e.registerAliases(typeof u=="string"?u:[...u],{languageName:l});else{let d;for(d in l)if(Object.hasOwn(l,d)){const h=l[d];e.registerAliases(typeof h=="string"?h:[...h],{languageName:d})}}}function o(l){return!!e.getLanguage(l)}}class XWt{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;const r=this.stack[this.stack.length-1],n=r.children[r.children.length-1];n&&n.type==="text"?n.value+=e:r.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,r){const n=this.stack[this.stack.length-1],i=e.root.children;r?n.children.push({type:"element",tagName:"span",properties:{className:[r]},children:i}):n.children.push(...i)}openNode(e){const r=this,n=e.split(".").map(function(s,o){return o?s+"_".repeat(o):r.options.classPrefix+s}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:n},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const QWt={};function ZWt(t){const e=t||QWt,r=e.aliases,n=e.detect||!1,i=e.languages||f9e,a=e.plainText,s=e.prefix,o=e.subset;let l="hljs";const u=jWt(i);if(r&&u.registerAlias(r),s){const d=s.indexOf("-");l=d===-1?s:s.slice(0,d)}return function(d,h){sp(d,"element",function(f,p,g){if(f.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const m=JWt(f);if(m===!1||!m&&!n||m&&a&&a.includes(m))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(l)||f.properties.className.unshift(l);const _=H6e(f,{whitespace:"pre"});let v;try{v=m?u.highlight(m,_,{prefix:s}):u.highlightAuto(_,{prefix:s,subset:o})}catch(y){const b=y;if(m&&/Unknown language/.test(b.message)){h.message("Cannot highlight as `"+m+"`, it’s not registered",{ancestors:[g,f],cause:b,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw b}!m&&v.data&&v.data.language&&f.properties.className.push("language-"+v.data.language),v.children.length>0&&(f.children=v.children)})}}function JWt(t){const e=t.properties.className;let r=-1;if(!Array.isArray(e))return;let n;for(;++r<e.length;){const i=String(e[r]);if(i==="no-highlight"||i==="nohighlight")return!1;!n&&i.slice(0,5)==="lang-"&&(n=i.slice(5)),!n&&i.slice(0,9)==="language-"&&(n=i.slice(9))}return n}function eKt(t,e){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,r),t.applyData(e,r)}function tKt(t,e){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
`}]}function rKt(t,e){const r=e.value?e.value+`
`:"",n={},i=e.lang?e.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return e.meta&&(a.data={meta:e.meta}),t.patch(e,a),a=t.applyData(e,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(e,a),a}function nKt(t,e){const r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function iKt(t,e){const r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function aKt(t,e){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),i=pR(n.toLowerCase()),a=t.footnoteOrder.indexOf(n);let s,o=t.footnoteCounts.get(n);o===void 0?(o=0,t.footnoteOrder.push(n),s=t.footnoteOrder.length):s=a+1,o+=1,t.footnoteCounts.set(n,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,u),t.applyData(e,u)}function sKt(t,e){const r={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function oKt(t,e){if(t.options.allowDangerousHtml){const r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}function p9e(t,e){const r=e.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+n}];const i=t.all(e),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function lKt(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return p9e(t,e);const i={src:pR(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,a),t.applyData(e,a)}function cKt(t,e){const r={src:pR(e.url)};e.alt!==null&&e.alt!==void 0&&(r.alt=e.alt),e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,n),t.applyData(e,n)}function uKt(t,e){const r={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(e,n),t.applyData(e,n)}function dKt(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return p9e(t,e);const i={href:pR(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,a),t.applyData(e,a)}function hKt(t,e){const r={href:pR(e.url)};e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function fKt(t,e,r){const n=t.all(e),i=r?pKt(r):g9e(e),a={},s=[];if(typeof e.checked=="boolean"){const d=n[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},n.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const d=n[o];(i||o!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
`}),d.type==="element"&&d.tagName==="p"&&!i?s.push(...d.children):s.push(d)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:a,children:s};return t.patch(e,u),t.applyData(e,u)}function pKt(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const r=t.children;let n=-1;for(;!e&&++n<r.length;)e=g9e(r[n])}return e}function g9e(t){const e=t.spread;return e??t.children.length>1}function gKt(t,e){const r={},n=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(r.start=e.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:e.ordered?"ol":"ul",properties:r,children:t.wrap(n,!0)};return t.patch(e,a),t.applyData(e,a)}function mKt(t,e){const r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function _Kt(t,e){const r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}function vKt(t,e){const r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}const m9e=v9e("end"),_9e=v9e("start");function v9e(t){return e;function e(r){const n=r&&r.position&&r.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function yKt(t){const e=_9e(t),r=m9e(t);if(e&&r)return{start:e,end:r}}function bKt(t,e){const r=t.all(e),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([n],!0)};t.patch(e.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},o=_9e(e.children[1]),l=m9e(e.children[e.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,a),t.applyData(e,a)}function EKt(t,e,r){const n=r?r.children:void 0,a=(n?n.indexOf(e):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:e.children.length;let l=-1;const u=[];for(;++l<o;){const h=e.children[l],f={},p=s?s[l]:void 0;p&&(f.align=p);let g={type:"element",tagName:a,properties:f,children:[]};h&&(g.children=t.all(h),t.patch(h,g),g=t.applyData(h,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:t.wrap(u,!0)};return t.patch(e,d),t.applyData(e,d)}function SKt(t,e){const r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}const YTe=9,WTe=32;function TKt(t){const e=String(t),r=/\r?\n|\r/g;let n=r.exec(e),i=0;const a=[];for(;n;)a.push(KTe(e.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(e);return a.push(KTe(e.slice(i),i>0,!1)),a.join("")}function KTe(t,e,r){let n=0,i=t.length;if(e){let a=t.codePointAt(n);for(;a===YTe||a===WTe;)n++,a=t.codePointAt(n)}if(r){let a=t.codePointAt(i-1);for(;a===YTe||a===WTe;)i--,a=t.codePointAt(i-1)}return i>n?t.slice(n,i):""}function CKt(t,e){const r={type:"text",value:TKt(String(e.value))};return t.patch(e,r),t.applyData(e,r)}function wKt(t,e){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}const xKt={blockquote:eKt,break:tKt,code:rKt,delete:nKt,emphasis:iKt,footnoteReference:aKt,heading:sKt,html:oKt,imageReference:lKt,image:cKt,inlineCode:uKt,linkReference:dKt,link:hKt,listItem:fKt,list:gKt,paragraph:mKt,root:_Kt,strong:vKt,table:bKt,tableCell:SKt,tableRow:EKt,text:CKt,thematicBreak:wKt,toml:gL,yaml:gL,definition:gL,footnoteDefinition:gL};function gL(){}const y9e=-1,vU=0,fN=1,m7=2,$le=3,Gle=4,zle=5,qle=6,b9e=7,E9e=8,jTe=typeof self=="object"?self:globalThis,AKt=(t,e)=>{const r=(i,a)=>(t.set(a,i),i),n=i=>{if(t.has(i))return t.get(i);const[a,s]=e[i];switch(a){case vU:case y9e:return r(s,i);case fN:{const o=r([],i);for(const l of s)o.push(n(l));return o}case m7:{const o=r({},i);for(const[l,u]of s)o[n(l)]=n(u);return o}case $le:return r(new Date(s),i);case Gle:{const{source:o,flags:l}=s;return r(new RegExp(o,l),i)}case zle:{const o=r(new Map,i);for(const[l,u]of s)o.set(n(l),n(u));return o}case qle:{const o=r(new Set,i);for(const l of s)o.add(n(l));return o}case b9e:{const{name:o,message:l}=s;return r(new jTe[o](l),i)}case E9e:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new jTe[a](s),i)};return n},XTe=t=>AKt(new Map,t)(0),sS="",{toString:RKt}={},{keys:OKt}=Object,AO=t=>{const e=typeof t;if(e!=="object"||!t)return[vU,e];const r=RKt.call(t).slice(8,-1);switch(r){case"Array":return[fN,sS];case"Object":return[m7,sS];case"Date":return[$le,sS];case"RegExp":return[Gle,sS];case"Map":return[zle,sS];case"Set":return[qle,sS];case"DataView":return[fN,r]}return r.includes("Array")?[fN,r]:r.includes("Error")?[b9e,r]:[m7,r]},mL=([t,e])=>t===vU&&(e==="function"||e==="symbol"),IKt=(t,e,r,n)=>{const i=(s,o)=>{const l=n.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=AO(s);switch(o){case vU:{let d=s;switch(l){case"bigint":o=E9e,d=s.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([y9e],s)}return i([o,d],s)}case fN:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),i([l,[...f]],s)}const d=[],h=i([o,d],s);for(const f of s)d.push(a(f));return h}case m7:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(e&&"toJSON"in s)return a(s.toJSON());const d=[],h=i([o,d],s);for(const f of OKt(s))(t||!mL(AO(s[f])))&&d.push([a(f),a(s[f])]);return h}case $le:return i([o,s.toISOString()],s);case Gle:{const{source:d,flags:h}=s;return i([o,{source:d,flags:h}],s)}case zle:{const d=[],h=i([o,d],s);for(const[f,p]of s)(t||!(mL(AO(f))||mL(AO(p))))&&d.push([a(f),a(p)]);return h}case qle:{const d=[],h=i([o,d],s);for(const f of s)(t||!mL(AO(f)))&&d.push(a(f));return h}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},QTe=(t,{json:e,lossy:r}={})=>{const n=[];return IKt(!(e||r),!!e,new Map,n)(t),n},_7=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?XTe(QTe(t,e)):structuredClone(t):(t,e)=>XTe(QTe(t,e));function NKt(t,e){const r=[{type:"text",value:"↩"}];return e>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),r}function kKt(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function DKt(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||NKt,n=t.options.footnoteBackLabel||kKt,i=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<t.footnoteOrder.length;){const u=t.footnoteById.get(t.footnoteOrder[l]);if(!u)continue;const d=t.all(u),h=String(u.identifier).toUpperCase(),f=pR(h.toLowerCase());let p=0;const g=[],m=t.footnoteCounts.get(h);for(;m!==void 0&&++p<=m;){g.length>0&&g.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,p);typeof y=="string"&&(y={type:"text",value:y}),g.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const _=d[d.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const y=_.children[_.children.length-1];y&&y.type==="text"?y.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...g)}else d.push(...g);const v={type:"element",tagName:"li",properties:{id:e+"fn-"+f},children:t.wrap(d,!0)};t.patch(u,v),o.push(v)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{..._7(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:`
`}]}}const PJ={}.hasOwnProperty,MKt={};function LKt(t,e){const r=e||MKt,n=new Map,i=new Map,a=new Map,s={...xKt,...r.handlers},o={all:u,applyData:FKt,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:r,patch:PKt,wrap:UKt};return sp(t,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?n:i,f=String(d.identifier).toUpperCase();h.has(f)||h.set(f,d)}}),o;function l(d,h){const f=d.type,p=o.handlers[f];if(PJ.call(o.handlers,f)&&p)return p(o,d,h);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in d){const{children:m,..._}=d,v=_7(_);return v.children=o.all(d),v}return _7(d)}return(o.options.unknownHandler||BKt)(o,d,h)}function u(d){const h=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const g=o.one(f[p],d);if(g){if(p&&f[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=ZTe(g.value)),!Array.isArray(g)&&g.type==="element")){const m=g.children[0];m&&m.type==="text"&&(m.value=ZTe(m.value))}Array.isArray(g)?h.push(...g):h.push(g)}}}return h}}function PKt(t,e){t.position&&(e.position=yKt(t))}function FKt(t,e){let r=e;if(t&&t.data){const n=t.data.hName,i=t.data.hChildren,a=t.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,_7(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function BKt(t,e){const r=e.data||{},n="value"in e&&!(PJ.call(r,"hProperties")||PJ.call(r,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function UKt(t,e){const r=[];let n=-1;for(e&&r.push({type:"text",value:`
`});++n<t.length;)n&&r.push({type:"text",value:`
`}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
`}),r}function ZTe(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}function JTe(t,e){const r=LKt(t,e),n=r.one(t,void 0),i=DKt(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function $Kt(t,e){return t&&"run"in t?async function(r,n){const i=JTe(r,{file:n,...e});await t.run(i,n)}:function(r,n){return JTe(r,{file:n,...t||e})}}class D5{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}D5.prototype.normal={};D5.prototype.property={};D5.prototype.space=void 0;function S9e(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new D5(r,n,e)}function Tk(t){return t.toLowerCase()}let cd=class{constructor(e,r){this.attribute=r,this.property=e}};cd.prototype.attribute="";cd.prototype.booleanish=!1;cd.prototype.boolean=!1;cd.prototype.commaOrSpaceSeparated=!1;cd.prototype.commaSeparated=!1;cd.prototype.defined=!1;cd.prototype.mustUseProperty=!1;cd.prototype.number=!1;cd.prototype.overloadedBoolean=!1;cd.prototype.property="";cd.prototype.spaceSeparated=!1;cd.prototype.space=void 0;let GKt=0;const Ti=uE(),Po=uE(),FJ=uE(),Nr=uE(),is=uE(),WT=uE(),bd=uE();function uE(){return 2**++GKt}const BJ=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ti,booleanish:Po,commaOrSpaceSeparated:bd,commaSeparated:WT,number:Nr,overloadedBoolean:FJ,spaceSeparated:is},Symbol.toStringTag,{value:"Module"})),nK=Object.keys(BJ);class Vle extends cd{constructor(e,r,n,i){let a=-1;if(super(e,r),eCe(this,"space",i),typeof n=="number")for(;++a<nK.length;){const s=nK[a];eCe(this,nK[a],(n&BJ[s])===BJ[s])}}}Vle.prototype.defined=!0;function eCe(t,e,r){r&&(t[e]=r)}function yR(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const a=new Vle(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),e[n]=a,r[Tk(n)]=n,r[Tk(a.attribute)]=n}return new D5(e,r,t.space)}const T9e=yR({properties:{ariaActiveDescendant:null,ariaAtomic:Po,ariaAutoComplete:null,ariaBusy:Po,ariaChecked:Po,ariaColCount:Nr,ariaColIndex:Nr,ariaColSpan:Nr,ariaControls:is,ariaCurrent:null,ariaDescribedBy:is,ariaDetails:null,ariaDisabled:Po,ariaDropEffect:is,ariaErrorMessage:null,ariaExpanded:Po,ariaFlowTo:is,ariaGrabbed:Po,ariaHasPopup:null,ariaHidden:Po,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:is,ariaLevel:Nr,ariaLive:null,ariaModal:Po,ariaMultiLine:Po,ariaMultiSelectable:Po,ariaOrientation:null,ariaOwns:is,ariaPlaceholder:null,ariaPosInSet:Nr,ariaPressed:Po,ariaReadOnly:Po,ariaRelevant:null,ariaRequired:Po,ariaRoleDescription:is,ariaRowCount:Nr,ariaRowIndex:Nr,ariaRowSpan:Nr,ariaSelected:Po,ariaSetSize:Nr,ariaSort:null,ariaValueMax:Nr,ariaValueMin:Nr,ariaValueNow:Nr,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function C9e(t,e){return e in t?t[e]:e}function w9e(t,e){return C9e(t,e.toLowerCase())}const zKt=yR({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:WT,acceptCharset:is,accessKey:is,action:null,allow:null,allowFullScreen:Ti,allowPaymentRequest:Ti,allowUserMedia:Ti,alt:null,as:null,async:Ti,autoCapitalize:null,autoComplete:is,autoFocus:Ti,autoPlay:Ti,blocking:is,capture:null,charSet:null,checked:Ti,cite:null,className:is,cols:Nr,colSpan:null,content:null,contentEditable:Po,controls:Ti,controlsList:is,coords:Nr|WT,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ti,defer:Ti,dir:null,dirName:null,disabled:Ti,download:FJ,draggable:Po,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ti,formTarget:null,headers:is,height:Nr,hidden:FJ,high:Nr,href:null,hrefLang:null,htmlFor:is,httpEquiv:is,id:null,imageSizes:null,imageSrcSet:null,inert:Ti,inputMode:null,integrity:null,is:null,isMap:Ti,itemId:null,itemProp:is,itemRef:is,itemScope:Ti,itemType:is,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ti,low:Nr,manifest:null,max:null,maxLength:Nr,media:null,method:null,min:null,minLength:Nr,multiple:Ti,muted:Ti,name:null,nonce:null,noModule:Ti,noValidate:Ti,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:Ti,optimum:Nr,pattern:null,ping:is,placeholder:null,playsInline:Ti,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ti,referrerPolicy:null,rel:is,required:Ti,reversed:Ti,rows:Nr,rowSpan:Nr,sandbox:is,scope:null,scoped:Ti,seamless:Ti,selected:Ti,shadowRootClonable:Ti,shadowRootDelegatesFocus:Ti,shadowRootMode:null,shape:null,size:Nr,sizes:null,slot:null,span:Nr,spellCheck:Po,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Nr,step:null,style:null,tabIndex:Nr,target:null,title:null,translate:null,type:null,typeMustMatch:Ti,useMap:null,value:Po,width:Nr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:is,axis:null,background:null,bgColor:null,border:Nr,borderColor:null,bottomMargin:Nr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ti,declare:Ti,event:null,face:null,frame:null,frameBorder:null,hSpace:Nr,leftMargin:Nr,link:null,longDesc:null,lowSrc:null,marginHeight:Nr,marginWidth:Nr,noResize:Ti,noHref:Ti,noShade:Ti,noWrap:Ti,object:null,profile:null,prompt:null,rev:null,rightMargin:Nr,rules:null,scheme:null,scrolling:Po,standby:null,summary:null,text:null,topMargin:Nr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Nr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ti,disableRemotePlayback:Ti,prefix:null,property:null,results:Nr,security:null,unselectable:null},space:"html",transform:w9e}),qKt=yR({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:bd,accentHeight:Nr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Nr,amplitude:Nr,arabicForm:null,ascent:Nr,attributeName:null,attributeType:null,azimuth:Nr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Nr,by:null,calcMode:null,capHeight:Nr,className:is,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:Nr,diffuseConstant:Nr,direction:null,display:null,dur:null,divisor:Nr,dominantBaseline:null,download:Ti,dx:null,dy:null,edgeMode:null,editable:null,elevation:Nr,enableBackground:null,end:null,event:null,exponent:Nr,externalResourcesRequired:null,fill:null,fillOpacity:Nr,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:WT,g2:WT,glyphName:WT,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Nr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Nr,horizOriginX:Nr,horizOriginY:Nr,id:null,ideographic:Nr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Nr,k:Nr,k1:Nr,k2:Nr,k3:Nr,k4:Nr,kernelMatrix:bd,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Nr,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:Nr,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:Nr,overlineThickness:Nr,paintOrder:null,panose1:null,path:null,pathLength:Nr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:is,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Nr,pointsAtY:Nr,pointsAtZ:Nr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bd,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bd,rev:bd,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bd,requiredFeatures:bd,requiredFonts:bd,requiredFormats:bd,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:Nr,specularExponent:Nr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Nr,strikethroughThickness:Nr,string:null,stroke:null,strokeDashArray:bd,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Nr,strokeOpacity:Nr,strokeWidth:null,style:null,surfaceScale:Nr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bd,tabIndex:Nr,tableValues:null,target:null,targetX:Nr,targetY:Nr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bd,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Nr,underlineThickness:Nr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Nr,values:null,vAlphabetic:Nr,vMathematical:Nr,vectorEffect:null,vHanging:Nr,vIdeographic:Nr,version:null,vertAdvY:Nr,vertOriginX:Nr,vertOriginY:Nr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Nr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C9e}),x9e=yR({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),A9e=yR({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:w9e}),R9e=yR({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),VKt=/[A-Z]/g,tCe=/-[a-z]/g,HKt=/^data[-\w.:]+$/i;function O9e(t,e){const r=Tk(e);let n=e,i=cd;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&HKt.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(tCe,WKt);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!tCe.test(a)){let s=a.replace(VKt,YKt);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=Vle}return new i(n,e)}function YKt(t){return"-"+t.toLowerCase()}function WKt(t){return t.charAt(1).toUpperCase()}const I9e=S9e([T9e,zKt,x9e,A9e,R9e],"html"),Hle=S9e([T9e,qKt,x9e,A9e,R9e],"svg");function rCe(t){const e=[],r=String(t||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const s=r.slice(i,n).trim();(s||!a)&&e.push(s),i=n+1,n=r.indexOf(",",i)}return e}function KKt(t,e){const r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const nCe=/[#.]/g;function jKt(t,e){const r=t||"",n={};let i=0,a,s;for(;i<r.length;){nCe.lastIndex=i;const o=nCe.exec(r),l=r.slice(i,o?o.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||e||"div",properties:n,children:[]}}function iCe(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function XKt(t){return t.join(" ").trim()}function N9e(t,e,r){const n=r?ejt(r):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=jKt(a,e);const u=l.tagName.toLowerCase(),d=n?n.get(u):void 0;if(l.tagName=d||u,QKt(s))o.unshift(s);else for(const[h,f]of Object.entries(s))ZKt(t,l.properties,h,f)}for(const u of o)UJ(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function QKt(t){if(t===null||typeof t!="object"||Array.isArray(t))return!0;if(typeof t.type!="string")return!1;const e=t,r=Object.keys(t);for(const n of r){const i=e[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in t&&Array.isArray(t.children))}function ZKt(t,e,r,n){const i=O9e(t,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=iCe(n):i.commaSeparated?a=rCe(n):i.commaOrSpaceSeparated?a=iCe(rCe(n).join(" ")):a=aCe(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?JKt(n):String(n);if(Array.isArray(a)){const s=[];for(const o of a)s.push(aCe(i,i.property,o));a=s}i.property==="className"&&Array.isArray(e.className)&&(a=e.className.concat(a)),e[i.property]=a}}function UJ(t,e){if(e!=null)if(typeof e=="number"||typeof e=="string")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const r of e)UJ(t,r);else if(typeof e=="object"&&"type"in e)e.type==="root"?UJ(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function aCe(t,e,r){if(typeof r=="string"){if(t.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((t.boolean||t.overloadedBoolean)&&(r===""||Tk(r)===Tk(e)))return!0}return r}function JKt(t){const e=[];for(const[r,n]of Object.entries(t))e.push([r,n].join(": "));return e.join("; ")}function ejt(t){const e=new Map;for(const r of t)e.set(r.toLowerCase(),r);return e}const tjt=["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"],rjt=N9e(I9e,"div"),njt=N9e(Hle,"g",tjt),iK={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function ijt(t,e){return k9e(t,{})||{type:"root",children:[]}}function k9e(t,e){const r=ajt(t,e);return r&&e.afterTransform&&e.afterTransform(t,r),r}function ajt(t,e){switch(t.nodeType){case 1:return cjt(t,e);case 3:return ojt(t);case 8:return ljt(t);case 9:return sCe(t,e);case 10:return sjt();case 11:return sCe(t,e);default:return}}function sCe(t,e){return{type:"root",children:D9e(t,e)}}function sjt(){return{type:"doctype"}}function ojt(t){return{type:"text",value:t.nodeValue||""}}function ljt(t){return{type:"comment",value:t.nodeValue||""}}function cjt(t,e){const r=t.namespaceURI,n=r===iK.svg?njt:rjt,i=r===iK.html?t.tagName.toLowerCase():t.tagName,a=r===iK.html&&i==="template"?t.content:t,s=t.getAttributeNames(),o={};let l=-1;for(;++l<s.length;)o[s[l]]=t.getAttribute(s[l])||"";return n(i,o,D9e(a,e))}function D9e(t,e){const r=t.childNodes,n=[];let i=-1;for(;++i<r.length;){const a=k9e(r[i],e);a!==void 0&&n.push(a)}return n}new DOMParser;function ujt(t,e){const r=djt(t);return ijt(r)}function djt(t){const e=document.createElement("template");return e.innerHTML=t,e.content}const hjt={},fjt=[];function pjt(t){const e=t||hjt;return function(r,n){iU(r,"element",function(i,a){const s=Array.isArray(i.properties.className)?i.properties.className:fjt,o=s.includes("language-math"),l=s.includes("math-display"),u=s.includes("math-inline");let d=l;if(!o&&!l&&!u)return;let h=a[a.length-1],f=i;if(i.tagName==="code"&&o&&h&&h.type==="element"&&h.tagName==="pre"&&(f=h,h=a[a.length-2],d=!0),!h)return;const p=H6e(f,{whitespace:"pre"});let g;try{g=MJ.renderToString(p,{...e,displayMode:d,throwOnError:!0})}catch(_){const v=_,y=v.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...a,i],cause:v,place:i.position,ruleId:y,source:"rehype-katex"});try{g=MJ.renderToString(p,{...e,displayMode:d,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(e.errorColor||"#cc0000"),title:String(_)},children:[{type:"text",value:p}]}]}}typeof g=="string"&&(g=ujt(g).children);const m=h.children.indexOf(f);return h.children.splice(m,1,...g),_Pe})}}const gjt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],mjt=/["&'<>`]/g,_jt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vjt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,yjt=/[|\\{}()[\]^$+*?.]/g,oCe=new WeakMap;function bjt(t,e){if(t=t.replace(e.subset?Ejt(e.subset):mjt,n),e.subset||e.escapeOnly)return t;return t.replace(_jt,r).replace(vjt,n);function r(i,a,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),e)}function n(i,a,s){return e.format(i.charCodeAt(0),s.charCodeAt(a+1),e)}}function Ejt(t){let e=oCe.get(t);return e||(e=Sjt(t),oCe.set(t,e)),e}function Sjt(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(yjt,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Tjt=/[\dA-Fa-f]/;function Cjt(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!Tjt.test(String.fromCharCode(e))?n:n+";"}const wjt=/\d/;function xjt(t,e,r){const n="&#"+String(t);return r&&e&&!wjt.test(String.fromCharCode(e))?n:n+";"}const Ajt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],aK={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Rjt=["cent","copy","divide","gt","lt","not","para","times"],M9e={}.hasOwnProperty,$J={};let _L;for(_L in aK)M9e.call(aK,_L)&&($J[aK[_L]]=_L);const Ojt=/[^\dA-Za-z]/;function Ijt(t,e,r,n){const i=String.fromCharCode(t);if(M9e.call($J,i)){const a=$J[i],s="&"+a;return r&&Ajt.includes(a)&&!Rjt.includes(a)&&(!n||e&&e!==61&&Ojt.test(String.fromCharCode(e)))?s:s+";"}return""}function Njt(t,e,r){let n=Cjt(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Ijt(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=xjt(t,e,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function KT(t,e){return bjt(t,Object.assign({format:Njt},e))}const kjt=/^>|^->|<!--|-->|--!>|<!-$/g,Djt=[">"],Mjt=["<",">"];function Ljt(t,e,r,n){return n.settings.bogusComments?"<?"+KT(t.value,Object.assign({},n.settings.characterReferences,{subset:Djt}))+">":"<!--"+t.value.replace(kjt,i)+"-->";function i(a){return KT(a,Object.assign({},n.settings.characterReferences,{subset:Mjt}))}}function Pjt(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const Fjt=/[ \t\n\f\r]/g;function Yle(t){return typeof t=="object"?t.type==="text"?lCe(t.value):!1:lCe(t)}function lCe(t){return t.replace(Fjt,"")===""}const _l=P9e(1),L9e=P9e(-1),Bjt=[];function P9e(t){return e;function e(r,n,i){const a=r?r.children:Bjt;let s=(n||0)+t,o=a[s];if(!i)for(;o&&Yle(o);)s+=t,o=a[s];return o}}const Ujt={}.hasOwnProperty;function F9e(t){return e;function e(r,n,i){return Ujt.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const Wle=F9e({body:Gjt,caption:sK,colgroup:sK,dd:Hjt,dt:Vjt,head:sK,html:$jt,li:qjt,optgroup:Yjt,option:Wjt,p:zjt,rp:cCe,rt:cCe,tbody:jjt,td:uCe,tfoot:Xjt,th:uCe,thead:Kjt,tr:Qjt});function sK(t,e,r){const n=_l(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Yle(n.value.charAt(0)))}function $jt(t,e,r){const n=_l(r,e);return!n||n.type!=="comment"}function Gjt(t,e,r){const n=_l(r,e);return!n||n.type!=="comment"}function zjt(t,e,r){const n=_l(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function qjt(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&n.tagName==="li"}function Vjt(t,e,r){const n=_l(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Hjt(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function cCe(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Yjt(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function Wjt(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function Kjt(t,e,r){const n=_l(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function jjt(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Xjt(t,e,r){return!_l(r,e)}function Qjt(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function uCe(t,e,r){const n=_l(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Zjt=F9e({body:tXt,colgroup:rXt,head:eXt,html:Jjt,tbody:nXt});function Jjt(t){const e=_l(t,-1);return!e||e.type!=="comment"}function eXt(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function tXt(t){const e=_l(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Yle(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function rXt(t,e,r){const n=L9e(r,e),i=_l(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Wle(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function nXt(t,e,r){const n=L9e(r,e),i=_l(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Wle(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const vL={name:[[`	
\f\r &/=>`.split(""),`	
\f\r "&'/=>\``.split("")],[`\0	
\f\r "&'/<=>`.split(""),`\0	
\f\r "&'/<=>\``.split("")]],unquoted:[[`	
\f\r &>`.split(""),`\0	
\f\r "&'<=>\``.split("")],[`\0	
\f\r "&'<=>\``.split(""),`\0	
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function iXt(t,e,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const o=[];let l;i.space==="html"&&t.tagName==="svg"&&(n.schema=Hle);const u=aXt(n,t.properties),d=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,d&&(s=!1),(u||!a||!Zjt(t,e,r))&&(o.push("<",t.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(d),!s&&(!a||!Wle(t,e,r))&&o.push("</"+t.tagName+">"),o.join("")}function aXt(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const a=sXt(t,i,e[i]);a&&r.push(a)}}for(;++n<r.length;){const a=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function sXt(t,e,r){const n=O9e(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,a=t.settings.allowDangerousCharacters?0:1;let s=t.quote,o;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=KT(n.attribute,Object.assign({},t.settings.characterReferences,{subset:vL.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?KKt:XKt)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?l:(t.settings.preferUnquoted&&(o=KT(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:vL.unquoted[i][a]}))),o!==r&&(t.settings.quoteSmart&&o7(r,s)>o7(r,t.alternative)&&(s=t.alternative),o=s+KT(r,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?vL.single:vL.double)[i][a],attribute:!0}))+s),l+(o&&"="+o))}const oXt=["<","&"];function B9e(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:KT(t.value,Object.assign({},n.settings.characterReferences,{subset:oXt}))}function lXt(t,e,r,n){return n.settings.allowDangerousHtml?t.value:B9e(t,e,r,n)}function cXt(t,e,r,n){return n.all(t)}const uXt=dPe("type",{invalid:dXt,unknown:hXt,handlers:{comment:Ljt,doctype:Pjt,element:iXt,raw:lXt,root:cXt,text:B9e}});function dXt(t){throw new Error("Expected node, not `"+t+"`")}function hXt(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const fXt={},pXt={},gXt=[];function mXt(t,e){const r=e||fXt,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:_Xt,all:vXt,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||gjt,characterReferences:r.characterReferences||pXt,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Hle:I9e,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function _Xt(t,e,r){return uXt(t,e,r,this)}function vXt(t){const e=[],r=t&&t.children||gXt;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}function yXt(t){const e=this,r={...e.data("settings"),...t};e.compiler=n;function n(i){return mXt(i,r)}}function U9e(t){const e=[...t.matchAll(hvt)];if(!e.length)return[{type:"text",value:t}];const r=[];let n=0;for(const i of e)i.index>n&&r.push({type:"text",value:t.slice(n,i.index)}),r.push({type:"element",tagName:"br",properties:{},children:[]}),n=i.index+i[0].length;return n<t.length&&r.push({type:"text",value:t.slice(n)}),r}function bXt(t){const e=t.trim().match(fvt);if(!e)return null;const r=e[1],n=[];let i=0;for(const a of r.matchAll(pvt)){if(r.slice(i,a.index).trim())return null;n.push({type:"element",tagName:"li",properties:{},children:U9e(a[1]??"")}),i=a.index+a[0].length}return!n.length||r.slice(i).trim()?null:{type:"element",tagName:"ul",properties:{},children:n}}function EXt(t){iU(t,"text",(e,r)=>{const n=r[r.length-1];if(!n||n.type!=="element")return;const a=n.children,s=a.indexOf(e);if(s===-1)return;let o="",l=s;for(let h=s;h<a.length;h++){const f=a[h];if(f.type==="text")o+=f.value,l=h;else if(f.type==="element"&&f.tagName==="br")o+=`
`,l=h;else break}const u=bXt(o);if(u){a.splice(s,l-s+1,u);return}const d=U9e(e.value);(d.length!==1||d[0]!==e)&&a.splice(s,1,...d)})}const SXt=()=>t=>{sp(t,"element",e=>{(e.tagName==="td"||e.tagName==="th")&&EXt(e)})},TXt=()=>t=>{sp(t,"element",e=>{if(e.tagName!=="a")return;const r=e.properties??{};r.href&&(r.target="_blank",r.rel="noopener noreferrer",e.properties=r)})};function CXt(t){return{type:"element",tagName:"span",properties:{},children:[{type:"raw",value:t}]}}function $9e(t,e,r,n,i){return{type:"element",tagName:"button",properties:{className:[t],[i]:n,title:e,type:"button"},children:[CXt(r)]}}function G9e(t,e,r="Copy"){return $9e(F_t,r,__t,t,e)}function z9e(t,e,r="Preview"){return $9e(B_t,r,v_t,t,e)}function q9e(t,e,r,n,i=P_t){return{type:"element",tagName:"div",properties:{className:[M_t]},children:[{type:"element",tagName:"span",properties:{className:[i]},children:[{type:"text",value:t}]},{type:"element",tagName:"div",properties:{className:[L_t]},children:n}]}}function wXt(t,e){return{type:"element",tagName:"div",properties:{className:[e]},children:[t]}}function V9e(t,e,r,n,i){return{type:"element",tagName:"div",properties:{className:[r,U_t],...i},children:[t,wXt(e,n)]}}function H9e(t,e){if(typeof window<"u"){const n=(window[e]??0)+1;return window[e]=n,`${t}-${n}`}return`${t}-${Date.now()}-${Math.random().toString(36).slice(2,7)}`}function xXt(t){const e=t.properties?.className;if(!Array.isArray(e))return"text";for(const r of e)if(typeof r=="string"&&r.startsWith("language-"))return r.replace("language-","");return"text"}const AXt=()=>t=>{sp(t,"element",(e,r,n)=>{if(e.tagName!=="pre"||!n||r===void 0)return;const i=e.children.find(d=>d.type==="element"&&d.tagName==="code");if(!i)return;const a=xXt(i),s=H9e("code","idxCodeBlock");i.properties={...i.properties,"data-code-id":s};const o=[G9e(s,"data-code-id","Copy code")];a.toLowerCase()==="html"&&o.push(z9e(s,"data-code-id","Preview code"));const l=q9e(a,s,"data-code-id",o),u=V9e(l,e,D_t,k_t);n.children[r]=u})},RXt=()=>t=>{sp(t,"element",(e,r,n)=>{if(e.tagName!=="pre"||!n||r===void 0)return;const i=e.properties?.className;if(!Array.isArray(i)||!i.some(h=>typeof h=="string"&&h==="mermaid"))return;const s=H9e("mermaid","idxMermaidBlock"),o=e.children.map(h=>h.type==="text"?h.value:"").join("");e.properties={...e.properties,"data-mermaid-syntax":o,"data-mermaid-id":s};const l=[G9e(s,"data-mermaid-id","Copy mermaid syntax"),z9e(s,"data-mermaid-id","Preview diagram")],u=q9e("mermaid",s,"data-mermaid-id",l),d=V9e(u,e,f1t,p1t,{"data-mermaid-id":s});n.children[r]=d})};function Y9e(t){return t.type==="text"?t.value:t.type==="element"?(t.children??[]).map(Y9e).join(""):""}const OXt=()=>t=>{sp(t,"element",(e,r,n)=>{if(e.tagName!=="pre"||!n||r===void 0)return;const i=e.children.find(u=>u.type==="element"&&u.tagName==="code");if(!i)return;const a=i.properties?.className;if(!Array.isArray(a)||!a.some(u=>typeof u=="string"&&u==="language-mermaid"))return;const o=i.children.map(Y9e).join("").trim();if(!o)return;const l={type:"element",tagName:"pre",properties:{className:["mermaid"]},children:[{type:"text",value:o}]};n.children[r]=l})};function IXt(t){return e=>{sp(e,"element",r=>{if(r.tagName==="img"&&r.properties?.src){const n=String(r.properties.src);if(n.startsWith(_u.DATA)||n.startsWith(_u.HTTP))return;const i=t.attachments?.find(a=>a.type===hi.IMAGE&&a.name===n);i?.base64Url&&(r.properties.src=i.base64Url)}})}}const NXt=()=>t=>{sp(t,"element",e=>{e.children&&e.children.length>0&&(e.properties={...e.properties,dir:"auto"})})};function kXt(t){let e=0,r="";for(;e<t.length;){const n=t[e];if(n===" "){r+=yDe,e+=1;continue}if(n==="	"){r+=u1t,e+=1;continue}break}return r+t.slice(e)}function DXt(t){const e=t.split(l1t),r=[];for(const[n,i]of e.entries())n>0&&r.push({type:"break"}),r.push({type:"text",value:kXt(i)});return r.length||r.push({type:"text",value:""}),r}const MXt=()=>t=>{sp(t,"html",(e,r,n)=>{if(!n||typeof r!="number")return;const i=DXt(e.value);if(!c1t.has(n.type)){const a={type:"paragraph",children:i,data:{literalHtml:!0}},s=n.children;if(s.splice(r,1,a),r>0){const o=s[r-1];if(o?.type==="paragraph"&&o.data?.literalHtml){const l=o.children;return l.length&&l[l.length-1].type!=="break"&&l.push({type:"break"}),l.push(...a.children),s.splice(r,1),r}}return r+1}return n.children.splice(r,1,...i),r+i.length})};function dCe(t,e){const r=t.position;return r?.start?.offset!=null&&r?.end?.offset!=null?`hast-${r.start.offset}-${r.end.offset}`:`${t.type}-${e}`}function oK(t,e){const r=t;return r.position?.start?.offset!=null&&r.position?.end?.offset!=null?`${r.type}-${r.position.start.offset}-${r.position.end.offset}`:`${r.type}-idx${e}`}function hCe(t,e){return e.length>0&&t.startsWith(e)}function fCe(t){const e=t.closest(".code-block-wrapper");if(!e)return console.error("No wrapper found"),null;const r=e.querySelector("code[data-code-id]");if(!r)return console.error("No code element found in wrapper"),null;const n=r.textContent??"",a=e.querySelector(".code-language")?.textContent?.trim()||"text";return{rawCode:n,language:a}}const W9e="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}",K9e="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";var LXt=ae('<div class="markdown-block"></div>'),PXt=ae('<div class="markdown-block markdown-block--unstable svelte-wjdxdt" data-block-id="unstable"></div>'),FXt=ae('<div class="mermaid-block-wrapper streaming-mermaid-block"><div class="code-block-header"><span class="code-language">mermaid</span> <div class="code-block-actions"><!></div></div> <div class="mermaid-loading-placeholder svelte-wjdxdt"><span class="mermaid-loading-text svelte-wjdxdt">Generating diagram...</span></div></div>'),BXt=ae('<div class="code-block-wrapper streaming-code-block relative svelte-wjdxdt"><div class="code-block-header"><span class="code-language"> </span> <!></div> <div class="streaming-code-scroll-container svelte-wjdxdt"><pre class="streaming-code-pre svelte-wjdxdt"><code></code></pre></div></div>'),UXt=ae("<div><!> <!> <!></div> <!> <!>",1);function Kle(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"disableMath",3,!1),i=Me(void 0),a=Me(Kr([])),s=Me(""),o=Me(null),l=Me(!1),u=Me(""),d=Me("text"),h=Me(!1),f=Me(""),p=Me(void 0);const g=hle();let m=null,_=!1;const v=new As;let y="";const b=`highlight-theme-${window.idxThemeStyle=(window.idxThemeStyle??0)+1}`;let E=ee(()=>()=>{e.attachments;let Z=pUt().use(W$t);return n()||(Z=Z.use(Xzt)),Z=Z.use(EUt).use(MXt).use($Kt),n()||(Z=Z.use(pjt)),Z.use(ZWt,{languages:HWt,aliases:{[pi.XML]:[pi.SVELTE,pi.VUE]}}).use(SXt).use(TXt).use(OXt).use(AXt).use(RXt).use(IXt,{attachments:e.attachments}).use(NXt).use(yXt,{allowDangerousHtml:!0})});function S(){if(!w(i))return;const Z=w(i).querySelectorAll(".copy-code-btn"),re=w(i).querySelectorAll(".preview-code-btn");for(const K of Z)K.removeEventListener("click",A);for(const K of re)K.removeEventListener("click",I)}function T(){document.getElementById(b)?.remove()}function C(Z){document.getElementById(b)?.remove();const K=document.createElement("style");K.id=b,K.textContent=Z?W9e:K9e,document.head.appendChild(K)}async function x(Z,re,K){const j=oK(re,K),se=v.get(j);if(se)return{html:se,hash:j};const le={type:"root",children:[re]},_e=await Z.run(le),ye=Z.stringify(_e);return v.set(j,ye),{html:ye,hash:j}}async function A(Z){Z.preventDefault(),Z.stopPropagation();const re=Z.currentTarget;if(!re)return;const K=fCe(re);if(K)try{await hTt(K.rawCode)}catch(j){console.error("Failed to copy code:",j)}}function R(Z){J(l,Z,!0),Z||(J(u,""),J(d,"text"))}function I(Z){Z.preventDefault(),Z.stopPropagation();const re=Z.currentTarget;if(!re)return;const K=fCe(re);K&&(J(u,K.rawCode,!0),J(d,K.language,!0),J(l,!0))}async function L(Z){if(Z===y)return;if(!Z){J(a,[],!0),J(s,""),J(o,null),y="";return}const re=dSt(Z);if(re){const ke=Z.slice(0,re.openingIndex);if(ke.trim()){const Ae=Mve(ke),tt=w(E)(),je=tt.parse(Ae).children??[],ct=[],Fe=hCe(ke,y),Xe=Fe?w(a).length:0;for(let et=0;et<je.length;et++){const Ie=je[et];if(Fe&&et<Xe){const fe=w(a)[et],Be=oK(Ie,et);if(fe?.contentHash===Be){ct.push(fe);continue}}const{html:we,hash:ce}=await x(tt,Ie,et),Te=dCe({position:Ie.position},et);ct.push({id:Te,html:we,contentHash:ce})}J(a,ct,!0)}else J(a,[],!0);y=ke,J(s,""),J(o,re,!0);return}J(o,null);const K=Mve(Z),j=w(E)(),le=j.parse(K).children??[],_e=Math.max(le.length-1,0),ye=[],Ue=hCe(Z,y),Se=Ue?w(a).length:0;for(let ke=0;ke<_e;ke++){const Ae=le[ke];if(Ue&&ke<Se){const ct=w(a)[ke],Fe=oK(Ae,ke);if(ct?.contentHash===Fe){ye.push(ct);continue}}const{html:tt,hash:Oe}=await x(j,Ae,ke),je=dCe({position:Ae.position},ke);ye.push({id:je,html:tt,contentHash:Oe})}let be="";if(le.length>_e){const Ae={type:"root",children:[le[_e]]},tt=await j.run(Ae);be=j.stringify(tt)}J(a,ye,!0),y=Z,await Uh(),J(s,be,!0)}function F(){if(!w(i))return;const Z=w(i).querySelectorAll(".code-block-wrapper");for(const re of Z){const K=re.querySelector(".copy-code-btn"),j=re.querySelector(".preview-code-btn");K&&K.dataset.listenerBound!=="true"&&(K.dataset.listenerBound="true",K.addEventListener("click",A)),j&&j.dataset.listenerBound!=="true"&&(j.dataset.listenerBound="true",j.addEventListener("click",I))}}function O(){if(!w(i))return;const Z=w(i).querySelectorAll(d1t);for(const re of Z)re.dataset[h1t]=eq,re.addEventListener("error",N)}async function D(Z){const re=Z.target,K=re.closest(".mermaid-block-wrapper .copy-code-btn"),j=re.closest(".mermaid-block-wrapper .preview-code-btn");if(K||j){const _e=re.closest(".mermaid-block-wrapper");if(!_e)return;const ye=_e.querySelector("pre.mermaid[data-mermaid-syntax]");if(!ye)return;const Ue=ye.dataset.mermaidSyntax??"";if(K){Z.preventDefault(),Z.stopPropagation();try{await cR(Ue)}catch(Se){console.error("Failed to copy mermaid syntax:",Se)}return}if(j){Z.preventDefault(),Z.stopPropagation();const Se=ye.querySelector("svg");if(!Se)return;J(f,Se.outerHTML,!0),J(h,!0);return}}const se=re.closest(".mermaid");if(!se)return;const le=se.querySelector("svg");le&&(J(f,le.outerHTML,!0),J(h,!0))}function M(Z){J(h,Z,!0),Z||J(f,"")}async function P(){if(!w(i))return;const Z=w(i).querySelectorAll("pre.mermaid:not([data-mermaid-rendered])");if(Z.length===0)return;Z.forEach(j=>j.setAttribute("data-mermaid-rendered","true"));const re=ck.current===Nf.DARK,{default:K}=await Pn(async()=>{const{default:j}=await Promise.resolve().then(()=>wyr);return{default:j}},void 0,import.meta.url);K.initialize({startOnLoad:!1,theme:re?"dark":"default",securityLevel:"strict",flowchart:{useMaxWidth:!1,htmlLabels:!0},sequence:{useMaxWidth:!1},gantt:{useMaxWidth:!1}});try{await K.run({nodes:Array.from(Z)})}catch(j){console.error("Failed to render mermaid diagram:",j)}}function N(Z){const re=Z.target;if(!re||!re.src||re.src.startsWith(_u.DATA)||re.dataset[Fme]===eq)return;re.dataset[Fme]=eq;const K=re.src,j=document.createElement("div");j.className="image-load-error",j.innerHTML=ITt(K),re.parentNode?.replaceChild(j,re)}async function $(Z){if(m=Z,!_){_=!0;try{for(;m!==null;){const re=m;m=null,await L(re),m!==null&&await new Promise(K=>requestAnimationFrame(K))}}catch(re){console.error("Failed to process markdown:",re),J(a,[],!0),J(s,Z.replace(/\n/g,"<br>"),!0)}finally{_=!1}}}sr(()=>{const re=ck.current===Nf.DARK;C(re)}),sr(()=>{$(e.content)}),sr(()=>{const Z=w(a).length>0,re=!!w(s);(Z||re)&&w(i)&&(F(),O(),P())}),sr(()=>{g.setContainer(w(p))}),sr(()=>{g.updateInterval(w(o)!==null)}),Vie(()=>{S(),T(),g.destroy()});var U=UXt(),B=ne(U),V=de(B);fn(V,17,()=>w(a),Z=>Z.id,(Z,re)=>{var K=LXt();Qy(K,()=>w(re).html,!0),oe(K),tE(K,(j,se)=>A5?.(j,se),()=>({skipIfVisible:!0})),at(()=>Pr(K,"data-block-id",w(re).id)),H(Z,K)});var z=he(V,2);{var G=Z=>{var re=PXt();Qy(re,()=>w(s),!0),oe(re),H(Z,re)};Re(z,Z=>{w(s)&&Z(G)})}var Y=he(z,2);{var W=Z=>{var re=Ee(),K=ne(re);{var j=le=>{var _e=FXt(),ye=de(_e),Ue=he(de(ye),2),Se=de(Ue);Tb(Se,{get text(){return w(o).code},canCopy:!1,ariaLabel:"Diagram incomplete"}),oe(Ue),oe(ye),Gt(2),oe(_e),H(le,_e)},se=le=>{var _e=BXt(),ye=de(_e),Ue=de(ye),Se=de(Ue,!0);oe(Ue);var be=he(Ue,2);{let Oe=ee(()=>w(o).language||"text");T5t(be,{get code(){return w(o).code},get language(){return w(Oe)},disabled:!0,onPreview:(je,ct)=>{J(u,je,!0),J(d,ct,!0),J(l,!0)}})}oe(ye);var ke=he(ye,2),Ae=de(ke),tt=de(Ae);Qy(tt,()=>uSt(w(o).code,w(o).language||"text"),!0),oe(tt),oe(Ae),oe(ke),Qr(ke,Oe=>J(p,Oe),()=>w(p)),oe(_e),at(()=>{yt(Se,w(o).language||"text"),lr(tt,1,`hljs language-${(w(o).language||"text")??""}`,"svelte-wjdxdt")}),Ji("scroll",ke,()=>g.handleScroll()),H(le,_e)};Re(K,le=>{w(o).language==="mermaid"?le(j):le(se,-1)})}H(Z,re)};Re(Y,Z=>{w(o)&&Z(W)})}oe(B),Qr(B,Z=>J(i,Z),()=>w(i));var Q=he(B,2);LJt(Q,{get open(){return w(l)},get code(){return w(u)},get language(){return w(d)},onOpenChange:R});var ie=he(Q,2);gtr(ie,{get open(){return w(h)},get svgHtml(){return w(f)},onOpenChange:M}),at(Z=>lr(B,1,`markdown-content ${r()??""}${Z??""}`,"svelte-wjdxdt"),[()=>Vn()[ar.FULL_HEIGHT_CODE_BLOCKS]?" full-height-code-blocks":""]),tn("click",B,D),H(t,U),Ke()}Wi(["click"]);var $Xt=ae('<div><pre class="m-0 svelte-hp0zxr"><code class="hljs text-sm leading-relaxed svelte-hp0zxr"></code></pre></div>');function Ck(t,e){We(e,!0);let r=ue(e,"language",3,"text"),n=ue(e,"class",3,""),i=ue(e,"maxHeight",3,"60vh"),a=ue(e,"maxWidth",3,""),s=Me("");function o(h){document.querySelectorAll("style[data-highlight-theme-preview]").forEach(g=>g.remove());const p=document.createElement("style");p.setAttribute("data-highlight-theme-preview","true"),p.textContent=h?W9e:K9e,document.head.appendChild(p)}sr(()=>{const f=ck.current===Nf.DARK;o(f)}),sr(()=>{if(!e.code){J(s,"");return}try{const h=r().toLowerCase();if($T.getLanguage(h)){const p=$T.highlight(e.code,{language:h});J(s,p.value,!0)}else{const p=$T.highlightAuto(e.code);J(s,p.value,!0)}}catch{J(s,e.code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),!0)}});var l=$Xt(),u=de(l),d=de(u);Qy(d,()=>w(s),!0),oe(d),oe(u),oe(l),at(()=>{lr(l,1,`code-preview-wrapper rounded-lg border border-border bg-muted ${n()??""}`,"svelte-hp0zxr"),du(l,`max-height: ${i()??""}; max-width: ${a()??""};`)}),H(t,l),Ke()}function GXt(t,e){let r=Me(0),n=Me(0),i=t();return sr(()=>{const a=t();if(a===i)return;const s=Date.now();s>=w(n)&&(i=a,tN(r),J(n,s+e))}),{get key(){return w(r)}}}var zXt=ae('<span class="text-xs italic"> </span>'),qXt=ae('<span class="shrink-0 text-xs text-muted-foreground/60"> </span>'),VXt=ae('<div class="flex min-w-0 items-baseline justify-between gap-2"><div class="w-3/4 truncate text-xs text-muted-foreground/80"> </div> <!></div>'),HXt=ae('<div class="flex min-w-0 items-center gap-2"><div class="flex items-center gap-2 text-muted-foreground"><!> <span class="font-mono text-sm font-medium"> </span> <!></div> <!></div> <div><!> <span class="sr-only">Toggle content</span></div>',1),YXt=ae('<div class="overflow-y-auto border-t border-muted px-3 pb-3" style="min-height: var(--min-message-height); max-height: var(--max-message-height);"><!></div>'),WXt=ae("<!> <!>",1);function yL(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"class",3,""),i=ue(e,"iconClass",3,"h-4 w-4"),a=ue(e,"isStreaming",3,!1),s=Me(void 0);const o=ee(()=>Vn().showThoughtInProgress);let l=GXt(()=>e.rawContent??e.preview??"",500),u=Me(""),d=Me(0);sr(()=>{l.key;const m=e.rawContent??e.preview??"",_=ETt(m);J(u,_.preview,!0),J(d,_.overflow,!0)});const h=hle();sr(()=>{h.setContainer(w(s))}),sr(()=>{h.updateInterval(r()&&a())});function f(){h.handleScroll()}var p=Ee(),g=ne(p);Le(g,()=>kf,(m,_)=>{_(m,{get open(){return r()},onOpenChange:v=>{r(v),e.onToggle?.()},get class(){return n()},children:(v,y)=>{K_(v,{class:"gap-0 border-muted bg-muted/30 py-0",children:(b,E)=>{var S=WXt(),T=ne(S);Le(T,()=>Df,(x,A)=>{A(x,{class:"flex w-full cursor-pointer items-start justify-between gap-2 p-3",children:(R,I)=>{var L=HXt(),F=ne(L),O=de(F),D=de(O);{var M=Y=>{var W=Ee(),Q=ne(W);Le(Q,()=>e.icon,(ie,Z)=>{Z(ie,{get class(){return i()}})}),H(Y,W)};Re(D,Y=>{e.icon&&Y(M)})}var P=he(D,2),N=de(P,!0);oe(P);var $=he(P,2);{var U=Y=>{var W=zXt(),Q=de(W,!0);oe(W),at(()=>yt(Q,e.subtitle)),H(Y,W)};Re($,Y=>{e.subtitle&&Y(U)})}oe(O);var B=he(O,2);{var V=Y=>{var W=VXt(),Q=de(W),ie=de(Q,!0);oe(Q);var Z=he(Q,2);{var re=K=>{var j=qXt(),se=de(j);oe(j),at(()=>yt(se,`${w(d)??""}+ chars`)),H(K,j)};Re(Z,K=>{w(d)>0&&K(re)})}oe(W),at(()=>yt(ie,w(u))),H(Y,W)};Re(B,Y=>{w(u)&&!w(o)&&Y(V)})}oe(F);var z=he(F,2),G=de(z);qmt(G,{class:"h-4 w-4"}),Gt(2),oe(z),at(Y=>{yt(N,e.title),lr(z,1,Y)},[()=>Fn(Wx({variant:"ghost",size:"sm",class:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground"}))]),H(R,L)},$$slots:{default:!0}})});var C=he(T,2);Le(C,()=>Mf,(x,A)=>{A(x,{children:(R,I)=>{var L=YXt(),F=de(L);ft(F,()=>e.children),oe(L),Qr(L,O=>J(s,O),()=>w(s)),Ji("scroll",L,f),H(R,L)},$$slots:{default:!0}})}),H(b,S)},$$slots:{default:!0}})},$$slots:{default:!0}})}),H(t,p),Ke()}var KXt=ae('<div class="mermaid-preview-controls absolute bottom-8 flex shrink-0 items-center justify-center p-3"><div class="mermaid-preview-controls-inner flex items-center gap-1 rounded-lg bg-muted p-1"><button class="mermaid-preview-btn flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent text-foreground transition-colors hover:bg-muted-foreground/15 active:bg-muted-foreground/25" title="Zoom out" aria-label="Zoom out"><!></button> <span class="mermaid-preview-zoom-label min-w-[3.5rem] px-0.5 text-center text-xs font-medium text-muted-foreground tabular-nums select-none"> </span> <button class="mermaid-preview-btn flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent text-foreground transition-colors hover:bg-muted-foreground/15 active:bg-muted-foreground/25" title="Zoom in" aria-label="Zoom in"><!></button> <div class="mermaid-preview-controls-separator mx-1 h-5 w-px bg-border/50"></div> <button class="mermaid-preview-btn flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent text-foreground transition-colors hover:bg-muted-foreground/15 active:bg-muted-foreground/25" title="Reset view" aria-label="Reset view"><!></button> <div class="mermaid-preview-controls-separator mx-1 h-5 w-px bg-border/50"></div> <button class="mermaid-preview-btn flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent text-foreground transition-colors hover:bg-muted-foreground/15 active:bg-muted-foreground/25" title="Download SVG" aria-label="Download SVG"><!></button></div></div>');function jXt(t,e){We(e,!0);function r(){if(!e.svgHtml)return;const m=new Blob([e.svgHtml],{type:"image/svg+xml"}),_=URL.createObjectURL(m),v=document.createElement("a");v.href=_,v.download="diagram.svg",v.click(),URL.revokeObjectURL(_)}var n=KXt(),i=de(n),a=de(i),s=de(a);v0t(s,{class:"mermaid-preview-btn-icon h-4 w-4"}),oe(a);var o=he(a,2),l=de(o);oe(o);var u=he(o,2),d=de(u);_0t(d,{class:"mermaid-preview-btn-icon h-4 w-4"}),oe(u);var h=he(u,4),f=de(h);O9(f,{class:"mermaid-preview-btn-icon h-4 w-4"}),oe(h);var p=he(h,4),g=de(p);eA(g,{class:"mermaid-preview-btn-icon h-4 w-4"}),oe(p),oe(i),oe(n),at(m=>yt(l,`${m??""}%`),[()=>Math.round(e.scale*100)]),tn("click",a,function(...m){e.onZoomOut?.apply(this,m)}),tn("click",u,function(...m){e.onZoomIn?.apply(this,m)}),tn("click",h,function(...m){e.onResetView?.apply(this,m)}),tn("click",p,r),H(t,n),Ke()}Wi(["click"]);var XXt=ae('<div class="mermaid-preview relative flex items-center justify-center overflow-hidden bg-muted/20"><div></div> <!></div>');function QXt(t,e){We(e,!0);let r=Me(1),n=Me(0),i=Me(0),a=Me(!1);const s={current:null};let o=0,l=0,u=0,d=0;const h=.1,f=10,p=.15;function g(){J(r,1),J(n,0),J(i,0)}function m(){J(r,Math.min(w(r)+p,f),!0)}function _(){J(r,Math.max(w(r)-p,h),!0)}function v(x){x.preventDefault();const A=x.deltaY>0?-p:p;J(r,Math.min(Math.max(w(r)+A,h),f),!0)}sr(()=>{const x=s.current;if(!x)return;function A(R){v(R)}return x.addEventListener("wheel",A,{passive:!1}),()=>x.removeEventListener("wheel",A)});function y(x){x.button!==0&&x.pointerType==="mouse"||(J(a,!0),o=x.clientX,l=x.clientY,u=w(n),d=w(i),x.currentTarget.setPointerCapture(x.pointerId))}function b(x){w(a)&&(J(n,u+(x.clientX-o)),J(i,d+(x.clientY-l)))}function E(){J(a,!1)}var S=XXt(),T=de(S);Qy(T,()=>e.svgHtml,!0),oe(T);var C=he(T,2);jXt(C,{get scale(){return w(r)},get svgHtml(){return e.svgHtml},onZoomIn:m,onZoomOut:_,onResetView:g}),oe(S),Qr(S,x=>s.current=x,()=>s?.current),at(()=>{lr(T,1,`mermaid-preview-diagram transform-origin-center inline-block min-h-fit min-w-fit will-change-transform ${(w(a)&&"select-none")??""}`,"svelte-7kd1m9"),du(T,`transform: translate(${w(n)??""}px, ${w(i)??""}px) scale(${w(r)??""}); cursor: ${w(a)?"grabbing":"grab"};`)}),tn("pointerdown",T,y),tn("pointermove",T,b),tn("pointerup",T,E),Ji("pointerleave",T,E),H(t,S),Ke()}Wi(["pointerdown","pointermove","pointerup"]);function M5(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("text-lg leading-none font-semibold",e.class));Le(a,()=>Eae,(o,l)=>{l(o,Bt({"data-slot":"dialog-title",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}var ZXt=ae("<div><!></div>");function j9e(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ZXt();Er(i,s=>({"data-slot":"dialog-footer",class:s,...n}),[()=>an("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var JXt=ae("<div><!></div>");function L5(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=JXt();Er(i,s=>({"data-slot":"dialog-header",class:s,...n}),[()=>an("flex flex-col gap-2 text-center sm:text-left",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}function jle(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0",e.class));Le(a,()=>aB,(o,l)=>{l(o,Bt({"data-slot":"dialog-overlay",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}var eQt=ae('<!> <span class="sr-only">Close</span>',1),tQt=ae("<!> <!>",1),rQt=ae("<!> <!>",1);function bR(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"showCloseButton",3,!0),i=xt(e,["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]);var a=Ee(),s=ne(a);Le(s,()=>X9e,(o,l)=>{l(o,Bt(()=>e.portalProps,{children:(u,d)=>{var h=rQt(),f=ne(h);Le(f,()=>jle,(g,m)=>{m(g,{})});var p=he(f,2);{let g=ee(()=>an("fixed top-[50%] left-[50%] z-50 grid max-h-[100dvh] w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 overflow-y-auto rounded-lg border border-border/30 bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg md:max-h-[100vh]",e.class));Le(p,()=>fB,(m,_)=>{_(m,Bt({"data-slot":"dialog-content",get class(){return w(g)}},()=>i,{get ref(){return r()},set ref(v){r(v)},children:(v,y)=>{var b=tQt(),E=ne(b);ft(E,()=>e.children??Tt);var S=he(E,2);{var T=C=>{var x=Ee(),A=ne(x);Le(A,()=>hB,(R,I)=>{I(R,{class:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:(L,F)=>{var O=eQt(),D=ne(O);Xd(D,{}),Gt(2),H(L,O)},$$slots:{default:!0}})}),H(C,x)};Re(S,C=>{n()&&C(T)})}H(v,b)},$$slots:{default:!0}}))})}H(u,h)},$$slots:{default:!0}}))}),H(t,a),Ke()}function yU(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("text-sm text-muted-foreground",e.class));Le(a,()=>Uae,(o,l)=>{l(o,Bt({"data-slot":"dialog-description",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}const ER=dB,X9e=Tg;var nQt=ae("<!> Add New Server",1),iQt=ae('<div class="rounded-md border border-dashed p-4 text-sm text-muted-foreground">No MCP Servers configured yet. Add one to enable agentic features.</div>'),aQt=ae('<div class="grid gap-3" style="grid-template-columns: repeat(auto-fill, minmax(min(32rem, calc(100dvw - 2rem)), 1fr));"></div>'),sQt=ae('<div class="h-full max-h-[100dvh] overflow-y-auto"><div class="flex items-center gap-2 p-4 md:absolute md:top-8 md:left-8 md:px-0 md:py-2"><!> <h1 class="text-xl font-semibold md:text-2xl">MCP Servers</h1></div> <div class="sticky top-0 z-10 mt-4 flex items-start gap-4 p-4 md:justify-end md:px-8"><!></div> <!> <div><!> <!></div></div>');function oQt(t,e){We(e,!0);let r=ee(()=>Br.getServersSorted()),n=Me(!1),i=Me(!1);Ns(()=>{if(ba.url.searchParams.has("add")){J(i,!0);const _=new URL(ba.url);_.searchParams.delete("add"),WF(_,{})}}),sr(()=>{if(w(n))return;w(r).length>0&&w(r).every(v=>{const y=Br.getHealthCheckState(v.id);return y.status===oa.SUCCESS||y.status===oa.ERROR})&&J(n,!0)});var a=sQt(),s=de(a),o=de(s);l5(o,{class:"h-5 w-5 md:h-6 md:w-6"}),Gt(2),oe(s);var l=he(s,2),u=de(l);Mn(u,{variant:"outline",size:"sm",class:"shrink-0",onclick:()=>J(i,!0),children:(_,v)=>{var y=nQt(),b=ne(y);Eb(b,{class:"h-4 w-4"}),Gt(),H(_,y)},$$slots:{default:!0}}),oe(l);var d=he(l,2);pJt(d,{get open(){return w(i)},set open(_){J(i,_,!0)}});var h=he(d,2),f=de(h);{var p=_=>{var v=iQt();H(_,v)};Re(f,_=>{w(r).length===0&&!w(i)&&_(p)})}var g=he(f,2);{var m=_=>{var v=aQt();fn(v,21,()=>w(r),y=>y.id,(y,b)=>{var E=Ee(),S=ne(E);{var T=x=>{sZt(x)},C=x=>{{let A=ee(()=>Rt.isMcpServerEnabledForChat(w(b).id));LQt(x,{get server(){return w(b)},get enabled(){return w(A)},onToggle:async()=>{const R=Rt.isMcpServerEnabledForChat(w(b).id);await Rt.toggleMcpServerForChat(w(b).id),R||ua.enableAllToolsForServer(w(b).id)},onUpdate:R=>Br.updateServer(w(b).id,R),onDelete:()=>Br.removeServer(w(b).id)})}};Re(S,x=>{w(n)?x(C,-1):x(T)})}H(y,E)}),oe(v),H(_,v)};Re(g,_=>{w(r).length>0&&_(m)})}oe(h),oe(a),at(()=>lr(h,1,`grid gap-5 md:space-y-4 ${e.class??""}`)),sl(1,a,()=>Jm,()=>({duration:150})),H(t,a),Ke()}Wi(["click"]);var lQt=ae("<!> Tools",1),cQt=ae("<!> Resources",1),uQt=ae("<!> Prompts",1),dQt=ae("<!> Logging",1),hQt=ae("<!> Completions",1),fQt=ae("<!> Tasks",1),pQt=ae("<!> <!> <!> <!> <!> <!>",1);function gQt(t,e){We(e,!0);var r=Ee(),n=ne(r);{var i=a=>{var s=pQt(),o=ne(s);{var l=b=>{Hu(b,{variant:"outline",class:"h-5 gap-1 bg-green-50 px-1.5 text-[10px] dark:bg-green-950",children:(E,S)=>{var T=lQt(),C=ne(T);ok(C,{class:"h-3 w-3 text-green-600 dark:text-green-400"}),Gt(),H(E,T)},$$slots:{default:!0}})};Re(o,b=>{e.capabilities.server.tools&&b(l)})}var u=he(o,2);{var d=b=>{Hu(b,{variant:"outline",class:"h-5 gap-1 bg-blue-50 px-1.5 text-[10px] dark:bg-blue-950",children:(E,S)=>{var T=cQt(),C=ne(T);zse(C,{class:"h-3 w-3 text-blue-600 dark:text-blue-400"}),Gt(),H(E,T)},$$slots:{default:!0}})};Re(u,b=>{e.capabilities.server.resources&&b(d)})}var h=he(u,2);{var f=b=>{Hu(b,{variant:"outline",class:"h-5 gap-1 bg-purple-50 px-1.5 text-[10px] dark:bg-purple-950",children:(E,S)=>{var T=uQt(),C=ne(T);bB(C,{class:"h-3 w-3 text-purple-600 dark:text-purple-400"}),Gt(),H(E,T)},$$slots:{default:!0}})};Re(h,b=>{e.capabilities.server.prompts&&b(f)})}var p=he(h,2);{var g=b=>{Hu(b,{variant:"outline",class:"h-5 gap-1 bg-orange-50 px-1.5 text-[10px] dark:bg-orange-950",children:(E,S)=>{var T=dQt(),C=ne(T);ng(C,{class:"h-3 w-3 text-orange-600 dark:text-orange-400"}),Gt(),H(E,T)},$$slots:{default:!0}})};Re(p,b=>{e.capabilities.server.logging&&b(g)})}var m=he(p,2);{var _=b=>{Hu(b,{variant:"outline",class:"h-5 gap-1 bg-cyan-50 px-1.5 text-[10px] dark:bg-cyan-950",children:(E,S)=>{var T=hQt(),C=ne(T);oDe(C,{class:"h-3 w-3 text-cyan-600 dark:text-cyan-400"}),Gt(),H(E,T)},$$slots:{default:!0}})};Re(m,b=>{e.capabilities.server.completions&&b(_)})}var v=he(m,2);{var y=b=>{Hu(b,{variant:"outline",class:"h-5 gap-1 bg-pink-50 px-1.5 text-[10px] dark:bg-pink-950",children:(E,S)=>{var T=fQt(),C=ne(T);t0t(C,{class:"h-3 w-3 text-pink-600 dark:text-pink-400"}),Gt(),H(E,T)},$$slots:{default:!0}})};Re(v,b=>{e.capabilities.server.tasks&&b(y)})}H(a,s)};Re(n,a=>{e.capabilities&&a(i)})}H(t,r),Ke()}var mQt=ae('<span class="ml-1"> </span>'),_Qt=ae("<!> <span> </span> <!>",1),vQt=ae('<details class="ml-11"><summary class="cursor-pointer text-[10px] text-muted-foreground">details</summary> <pre class="mt-1 overflow-x-auto rounded bg-background/70 p-2 text-[10px] break-all whitespace-pre-wrap text-foreground/80"> </pre></details>'),yQt=ae('<div><span class="shrink-0 text-muted-foreground"> </span> <!> <span class="break-all"> </span></div> <!>',1),bQt=ae('<div class="max-h-64 space-y-0.5 overflow-y-auto rounded bg-muted/50 p-2 font-mono text-[10px]"></div>'),EQt=ae('<div class="space-y-2"><!></div> <!>',1);function SQt(t,e){We(e,!0);let r=ue(e,"defaultExpanded",3,!1),n=ee(r);function i(l){if(l==null)return"";try{return JSON.stringify(l,null,2)}catch{return String(l)}}var a=Ee(),s=ne(a);{var o=l=>{var u=Ee(),d=ne(u);Le(d,()=>kf,(h,f)=>{f(h,{get class(){return e.class},get open(){return w(n)},set open(p){J(n,p)},children:(p,g)=>{var m=EQt(),_=ne(m),v=de(_);Le(v,()=>Df,(b,E)=>{E(b,{class:"flex w-full items-center gap-1 text-xs text-muted-foreground hover:text-foreground",children:(S,T)=>{var C=_Qt(),x=ne(C);{var A=D=>{hu(D,{class:"h-3.5 w-3.5"})},R=D=>{fu(D,{class:"h-3.5 w-3.5"})};Re(x,D=>{w(n)?D(A):D(R,-1)})}var I=he(x,2),L=de(I);oe(I);var F=he(I,2);{var O=D=>{var M=mQt(),P=de(M);oe(M),at(()=>yt(P,`· Connected in ${e.connectionTimeMs??""}ms`)),H(D,M)};Re(F,D=>{e.connectionTimeMs!==void 0&&D(O)})}at(()=>yt(L,`Connection Log (${e.logs.length??""})`)),H(S,C)},$$slots:{default:!0}})}),oe(_);var y=he(_,2);Le(y,()=>Mf,(b,E)=>{E(b,{class:"mt-2",children:(S,T)=>{var C=bQt();fn(C,21,()=>e.logs,x=>x.timestamp.getTime()+x.message,(x,A)=>{const R=ee(()=>NTt(w(A).level));var I=yQt(),L=ne(I),F=de(L),O=de(F,!0);oe(F);var D=he(F,2);Le(D,()=>w(R),(U,B)=>{B(U,{class:"mt-0.5 h-3 w-3 shrink-0"})});var M=he(D,2),P=de(M,!0);oe(M),oe(L);var N=he(L,2);{var $=U=>{var B=vQt(),V=he(de(B),2),z=de(V,!0);oe(V),oe(B),at(G=>yt(z,G),[()=>i(w(A).details)]),H(U,B)};Re(N,U=>{w(A).details!==void 0&&U($)})}at((U,B)=>{lr(L,1,U),yt(O,B),yt(P,w(A).message)},[()=>Fn(["flex items-start gap-1.5",kTt(w(A).level)]),()=>bTt(w(A).timestamp)]),H(x,I)}),oe(C),H(S,C)},$$slots:{default:!0}})}),H(p,m)},$$slots:{default:!0}})}),H(l,u)};Re(s,l=>{e.logs.length>0&&l(o)})}H(t,a),Ke()}var TQt=ae('<p class="mt-1.5 text-xs text-destructive"> </p>'),CQt=ae('<span class="inline-flex gap-0.75 text-xs text-muted-foreground/60">(Run <pre>llama-server</pre> with <pre> </pre> flag)</span>'),wQt=ae('<label><!> <span><span class="text-xs text-muted-foreground">Use llama-server proxy</span> <br/> <!></span></label>'),xQt=ae('<div class="grid gap-3"><div><label class="mb-2 block text-xs font-medium">Server URL <span class="text-destructive">*</span></label> <!> <!> <!></div> <!></div>');function Q9e(t,e){We(e,!0);let r=ue(e,"useProxy",3,!1),n=ue(e,"urlError",3,null),i=ue(e,"id",3,"server"),a=ee(()=>e.url.toLowerCase().startsWith(_u.WEBSOCKET)||e.url.toLowerCase().startsWith(_u.WEBSOCKET_SECURE)),s=ee(()=>$Tt(e.headers));function o(v){J(s,v),e.onHeadersChange(GTt(v))}var l=xQt(),u=de(l),d=de(u),h=he(d,2);{let v=ee(()=>n()?"border-destructive":"");x0(h,{get id(){return`server-url-${i()??""}`},type:"url",get placeholder(){return R1t},get value(){return e.url},oninput:y=>e.onUrlChange(y.currentTarget.value),get class(){return w(v)}})}var f=he(h,2);{var p=v=>{var y=TQt(),b=de(y,!0);oe(y),at(()=>yt(b,n())),H(v,y)};Re(f,v=>{n()&&v(p)})}var g=he(f,2);{var m=v=>{var y=wQt(),b=de(y);{let C=ee(()=>!Br.isProxyAvailable);xb(b,{class:"mt-1",get id(){return`use-proxy-${i()??""}`},get checked(){return r()},get disabled(){return w(C)},onCheckedChange:x=>e.onUseProxyChange?.(x)})}var E=he(b,2),S=he(de(E),4);{var T=C=>{var x=CQt(),A=he(de(x),3),R=de(A,!0);oe(A),Gt(),oe(x),at(()=>yt(R,Iy.MCP_PROXY)),H(C,x)};Re(S,C=>{Br.isProxyAvailable||C(T)})}oe(E),oe(y),at(()=>lr(y,1,Fn(["mt-3 flex items-start gap-2",Br.isProxyAvailable&&"cursor-pointer",!Br.isProxyAvailable&&"opacity-80"]))),H(v,y)};Re(g,v=>{!w(a)&&e.onUseProxyChange&&v(m)})}oe(u);var _=he(u,2);xZt(_,{class:"mt-2",get pairs(){return w(s)},onPairsChange:o,keyPlaceholder:"Header name",valuePlaceholder:"Value",addButtonLabel:"Add",emptyMessage:"No custom headers configured.",sectionLabel:"Custom Headers",sectionLabelOptional:!0}),oe(l),at(()=>Pr(d,"for",`server-url-${i()??""}`)),H(t,l),Ke()}var AQt=ae("<div></div>");function To(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=AQt();Er(i,a=>({"data-slot":"skeleton",class:a,...n}),[()=>an("animate-pulse rounded-md bg-accent",e.class)]),Qr(i,a=>r(a),()=>r()),H(t,i),Ke()}var RQt=ae('<p class="text-xs text-destructive"> </p>'),OQt=ae('<p class="line-clamp-2 text-xs text-muted-foreground"> </p>'),IQt=ae('<div class="space-y-2"><div class="flex items-center gap-2"><!> <!></div> <div class="flex flex-wrap gap-1.5"><!> <!> <!></div></div> <div class="space-y-1.5"><div class="flex items-center gap-2"><!> <!></div></div>',1),NQt=ae("<!> <!> <!>",1),kQt=ae('<div class="flex flex-wrap items-center gap-1"><span class="text-[10px] text-muted-foreground"> </span></div>'),DQt=ae('<!> <!> <!> <div class="grid gap-3"><!></div> <div class="flex justify-between gap-4"><!> <!></div>',1),MQt=ae("<!> <!>",1);function LQt(t,e){We(e,!0);let r=ee(()=>Br.getHealthCheckState(e.server.id)),n=ee(()=>Br.getServerLabel(e.server)),i=ee(()=>Br.getServerFavicon(e.server.id)),a=ee(()=>w(r).status===oa.IDLE),s=ee(()=>w(r).status===oa.CONNECTING),o=ee(()=>w(r).status===oa.SUCCESS),l=ee(()=>w(r).status===oa.ERROR),u=ee(()=>w(a)||w(s)),d=ee(()=>w(r).status===oa.ERROR?w(r).message:void 0),h=ee(()=>w(r).status===oa.SUCCESS?w(r).tools:[]),f=ee(()=>w(r).status===oa.CONNECTING||w(r).status===oa.SUCCESS||w(r).status===oa.ERROR?w(r).logs:[]),p=ee(()=>w(r).status===oa.SUCCESS?w(r):null),g=ee(()=>w(p)?.serverInfo),m=ee(()=>w(p)?.capabilities),_=ee(()=>w(p)?.transportType),v=ee(()=>w(p)?.protocolVersion),y=ee(()=>w(p)?.connectionTimeMs),b=ee(()=>w(p)?.instructions),E=ee(()=>!e.server.url.trim()),S=Me(!1),T=Me(null);function C(){Br.runHealthCheck(e.server)}async function x(){J(E,!0),await Uh(),w(T)?.setInitialValues(e.server.url,e.server.headers||"",e.server.useProxy||!1)}function A(){e.server.url.trim()?J(E,!1):e.onDelete()}function R(D,M,P){e.onUpdate({url:D,headers:M||void 0,useProxy:P}),J(E,!1),e.server.enabled&&D&&setTimeout(()=>Br.runHealthCheck({...e.server,url:D,useProxy:P}),100)}function I(){J(S,!0)}var L=MQt(),F=ne(L);Le(F,()=>K_,(D,M)=>{M(D,{class:"!gap-3 bg-muted/30 p-4",children:(P,N)=>{var $=Ee(),U=ne($);{var B=z=>{Qr(jQt(z,{get serverId(){return e.server.id},get serverUrl(){return e.server.url},get serverUseProxy(){return e.server.useProxy},onSave:R,onCancel:A}),G=>J(T,G,!0),()=>w(T))},V=z=>{var G=DQt(),Y=ne(G);{let be=ee(()=>e.enabled??e.server.enabled);UQt(Y,{get displayName(){return w(n)},get faviconUrl(){return w(i)},get enabled(){return w(be)},get disabled(){return w(l)},get onToggle(){return e.onToggle},get serverInfo(){return w(g)},get capabilities(){return w(m)},get transportType(){return w(_)}})}var W=he(Y,2);{var Q=be=>{var ke=RQt(),Ae=de(ke,!0);oe(ke),at(()=>yt(Ae,w(d))),H(be,ke)};Re(W,be=>{w(l)&&w(d)&&be(Q)})}var ie=he(W,2);{var Z=be=>{var ke=OQt(),Ae=de(ke,!0);oe(ke),at(()=>yt(Ae,w(g).description)),H(be,ke)};Re(ie,be=>{w(o)&&w(g)?.description&&be(Z)})}var re=he(ie,2),K=de(re);{var j=be=>{var ke=IQt(),Ae=ne(ke),tt=de(Ae),Oe=de(tt);To(Oe,{class:"h-4 w-4 rounded"});var je=he(Oe,2);To(je,{class:"h-3 w-24"}),oe(tt);var ct=he(tt,2),Fe=de(ct);To(Fe,{class:"h-5 w-16 rounded-full"});var Xe=he(Fe,2);To(Xe,{class:"h-5 w-20 rounded-full"});var et=he(Xe,2);To(et,{class:"h-5 w-14 rounded-full"}),oe(ct),oe(Ae);var Ie=he(Ae,2),we=de(Ie),ce=de(we);To(ce,{class:"h-4 w-4 rounded"});var Te=he(ce,2);To(Te,{class:"h-3 w-32"}),oe(we),oe(Ie),H(be,ke)},se=be=>{var ke=NQt(),Ae=ne(ke);{var tt=Xe=>{fZt(Xe,{get instructions(){return w(b)}})};Re(Ae,Xe=>{w(o)&&w(b)&&Xe(tt)})}var Oe=he(Ae,2);{var je=Xe=>{WQt(Xe,{get tools(){return w(h)}})};Re(Oe,Xe=>{w(h).length>0&&Xe(je)})}var ct=he(Oe,2);{var Fe=Xe=>{SQt(Xe,{get logs(){return w(f)},get connectionTimeMs(){return w(y)}})};Re(ct,Xe=>{w(f).length>0&&Xe(Fe)})}H(be,ke)};Re(K,be=>{w(u)?be(j):be(se,-1)})}oe(re);var le=he(re,2),_e=de(le);{var ye=be=>{To(be,{class:"h-3 w-28"})},Ue=be=>{var ke=kQt(),Ae=de(ke),tt=de(Ae);oe(Ae),oe(ke),at(()=>yt(tt,`Protocol version: ${w(v)??""}`)),H(be,ke)};Re(_e,be=>{w(u)?be(ye):w(v)&&be(Ue,1)})}var Se=he(_e,2);GQt(Se,{get isHealthChecking(){return w(s)},onEdit:x,onRefresh:C,onDelete:I}),oe(le),H(z,G)};Re(U,z=>{w(E)?z(B):z(V,-1)})}H(P,$)},$$slots:{default:!0}})});var O=he(F,2);iZt(O,{get displayName(){return w(n)},onOpenChange:D=>J(S,D,!0),get onConfirm(){return e.onDelete},get open(){return w(S)},set open(D){J(S,D,!0)}}),H(t,L),Ke()}var PQt=ae("<!> ",1),FQt=ae('<div class="flex flex-wrap items-center gap-1.5"><!> <!></div>'),BQt=ae('<div class="space-y-3"><div class="flex items-start justify-between gap-3"><div class="flex min-w-0 flex-col gap-3"><div class="inline-flex items-center gap-2"><!></div> <!></div> <div class="flex shrink-0 items-center pl-2"><!></div></div></div>');function UQt(t,e){We(e,!0);let r=ue(e,"disabled",3,!1);var n=BQt(),i=de(n),a=de(i),s=de(a),o=de(s);EU(o,{get displayName(){return e.displayName},get faviconUrl(){return e.faviconUrl},get serverInfo(){return e.serverInfo},iconClass:"h-5 w-5",iconRounded:"rounded",nameClass:"leading-6 font-medium"}),oe(s);var l=he(s,2);{var u=f=>{var p=FQt(),g=de(p);{var m=y=>{const b=ee(()=>A1t[e.transportType]);Hu(y,{variant:"outline",class:"h-5 gap-1 px-1.5 text-[10px]",children:(E,S)=>{var T=PQt(),C=ne(T);{var x=R=>{var I=Ee(),L=ne(I);Le(L,()=>w(b),(F,O)=>{O(F,{class:"h-3 w-3"})}),H(R,I)};Re(C,R=>{w(b)&&R(x)})}var A=he(C);at(()=>yt(A,` ${(x1t[e.transportType]||e.transportType)??""}`)),H(E,T)},$$slots:{default:!0}})};Re(g,y=>{e.transportType&&y(m)})}var _=he(g,2);{var v=y=>{gQt(y,{get capabilities(){return e.capabilities}})};Re(_,y=>{e.capabilities&&y(v)})}oe(p),H(f,p)};Re(l,f=>{(e.capabilities||e.transportType)&&f(u)})}oe(a);var d=he(a,2),h=de(d);xb(h,{get checked(){return e.enabled},get disabled(){return r()},get onCheckedChange(){return e.onToggle}}),oe(d),oe(i),oe(n),H(t,n),Ke()}var $Qt=ae('<div class="flex shrink-0 items-center gap-1"><!> <!> <!></div>');function GQt(t,e){var r=$Qt(),n=de(r);Mn(n,{variant:"ghost",size:"icon",class:"h-7 w-7",get onclick(){return e.onEdit},"aria-label":"Edit",children:(s,o)=>{Wse(s,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}});var i=he(n,2);Mn(i,{variant:"ghost",size:"icon",class:"h-7 w-7",get onclick(){return e.onRefresh},get disabled(){return e.isHealthChecking},"aria-label":"Refresh",children:(s,o)=>{D_(s,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}});var a=he(i,2);Mn(a,{variant:"ghost",size:"icon",class:"hover:text-destructive-foreground h-7 w-7 text-destructive hover:bg-destructive/10",get onclick(){return e.onDelete},"aria-label":"Delete",children:(s,o)=>{pg(s,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}}),oe(r),H(t,r)}var zQt=ae("<!> <span> </span>",1),qQt=ae('<p class="mt-1 text-xs text-muted-foreground"> </p>'),VQt=ae("<div><!> <!></div>"),HQt=ae('<div class="max-h-64 space-y-3 overflow-y-auto"></div>'),YQt=ae("<!> <!>",1);function WQt(t,e){We(e,!0);let r=Me(!1),n=ee(()=>e.tools.length);var i=Ee(),a=ne(i);Le(a,()=>kf,(s,o)=>{o(s,{get open(){return w(r)},set open(l){J(r,l,!0)},children:(l,u)=>{var d=YQt(),h=ne(d);Le(h,()=>Df,(p,g)=>{g(p,{class:"flex w-full items-center gap-1 text-xs text-muted-foreground hover:text-foreground",children:(m,_)=>{var v=zQt(),y=ne(v);{var b=C=>{hu(C,{class:"h-3.5 w-3.5"})},E=C=>{fu(C,{class:"h-3.5 w-3.5"})};Re(y,C=>{w(r)?C(b):C(E,-1)})}var S=he(y,2),T=de(S);oe(S),at(()=>yt(T,`${w(n)??""} tools available · Show details`)),H(m,v)},$$slots:{default:!0}})});var f=he(h,2);Le(f,()=>Mf,(p,g)=>{g(p,{class:"mt-2",children:(m,_)=>{var v=HQt();fn(v,21,()=>e.tools,y=>y.name,(y,b)=>{var E=VQt(),S=de(E);Hu(S,{variant:"secondary",children:(x,A)=>{Gt();var R=fr();at(()=>yt(R,w(b).name)),H(x,R)},$$slots:{default:!0}});var T=he(S,2);{var C=x=>{var A=qQt(),R=de(A,!0);oe(A),at(()=>yt(R,w(b).description)),H(x,A)};Re(T,x=>{w(b).description&&x(C)})}oe(E),H(y,E)}),oe(v),H(m,v)},$$slots:{default:!0}})}),H(l,d)},$$slots:{default:!0}})}),H(t,i),Ke()}var KQt=ae('<div class="space-y-4"><p class="font-medium">Configure Server</p> <!> <div class="flex items-center justify-end gap-2"><!> <!></div></div>');function jQt(t,e){We(e,!0);let r=ue(e,"serverUseProxy",3,!1),n=ee(()=>e.serverUrl),i=Me(""),a=ee(r),s=ee(()=>{if(!w(n).trim())return"URL is required";try{return new URL(w(n)),null}catch{return"Invalid URL format"}}),o=ee(()=>!w(s));function l(){w(o)&&e.onSave(w(n).trim(),w(i).trim(),w(a))}function u(_,v,y){J(n,_),J(i,v,!0),J(a,y)}var d={setInitialValues:u},h=KQt(),f=he(de(h),2);{let _=ee(()=>w(n)?w(s):null);Q9e(f,{get url(){return w(n)},get headers(){return w(i)},get useProxy(){return w(a)},onUrlChange:v=>J(n,v),onHeadersChange:v=>J(i,v,!0),onUseProxyChange:v=>J(a,v),get urlError(){return w(_)},get id(){return e.serverId}})}var p=he(f,2),g=de(p);Mn(g,{variant:"secondary",size:"sm",get onclick(){return e.onCancel},children:(_,v)=>{Gt();var y=fr("Cancel");H(_,y)},$$slots:{default:!0}});var m=he(g,2);{let _=ee(()=>!w(o));Mn(m,{size:"sm",onclick:l,get disabled(){return w(_)},children:(v,y)=>{Gt();var b=fr();at(E=>yt(b,E),[()=>e.serverUrl.trim()?"Update":"Add"]),H(v,b)},$$slots:{default:!0}})}return oe(p),oe(h),H(t,h),Ke(d)}function N0(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("text-lg font-semibold",e.class));Le(a,()=>Eae,(o,l)=>{l(o,Bt({"data-slot":"alert-dialog-title",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}function V1(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an(Wx(),e.class));Le(a,()=>uht,(o,l)=>{l(o,Bt({"data-slot":"alert-dialog-action",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}function bU(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an(Wx({variant:"outline"}),e.class));Le(a,()=>hht,(o,l)=>{l(o,Bt({"data-slot":"alert-dialog-cancel",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}var XQt=ae("<div><!></div>");function k0(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=XQt();Er(i,s=>({"data-slot":"alert-dialog-footer",class:s,...n}),[()=>an("mt-6 flex flex-row gap-2 sm:mt-0 sm:justify-end [&>*]:flex-1 sm:[&>*]:flex-none",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var QQt=ae("<div><!></div>");function D0(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=QQt();Er(i,s=>({"data-slot":"alert-dialog-header",class:s,...n}),[()=>an("flex flex-col gap-2 text-center sm:text-left",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}function Z9e(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0",e.class));Le(a,()=>aB,(o,l)=>{l(o,Bt({"data-slot":"alert-dialog-overlay",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}var ZQt=ae("<!> <!>",1);function M0(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","portalProps"]);var i=Ee(),a=ne(i);Le(a,()=>Tg,(s,o)=>{o(s,Bt(()=>e.portalProps,{children:(l,u)=>{var d=ZQt(),h=ne(d);Z9e(h,{});var f=he(h,2);{let p=ee(()=>an("fixed z-[999999] grid w-full gap-4 border bg-background p-6 shadow-lg duration-200","right-0 bottom-0 left-0 max-h-[100dvh] translate-x-0 translate-y-0 overflow-y-auto rounded-t-lg","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:slide-out-to-bottom-full","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-bottom-full","sm:top-[50%] sm:right-auto sm:bottom-auto sm:left-[50%] sm:max-h-[100vh] sm:max-w-lg sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rounded-lg","sm:data-[state=closed]:slide-out-to-bottom-0 sm:data-[state=closed]:zoom-out-95","sm:data-[state=open]:slide-in-from-bottom-0 sm:data-[state=open]:zoom-in-95",e.class));Le(f,()=>_ft,(g,m)=>{m(g,Bt({"data-slot":"alert-dialog-content",get class(){return w(p)}},()=>n,{get ref(){return r()},set ref(_){r(_)}}))})}H(l,d)},$$slots:{default:!0}}))}),H(t,i),Ke()}function L0(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("text-sm text-muted-foreground",e.class));Le(a,()=>Uae,(o,l)=>{l(o,Bt({"data-slot":"alert-dialog-description",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}H(t,i),Ke()}const P0=oht,JQt=Tg;var eZt=ae(`Are you sure you want to delete <strong> </strong>? This action cannot be
				undone.`,1),tZt=ae("<!> <!>",1),rZt=ae("<!> <!>",1),nZt=ae("<!> <!>",1);function iZt(t,e){We(e,!0);let r=ue(e,"open",15);var n=Ee(),i=ne(n);Le(i,()=>P0,(a,s)=>{s(a,{get onOpenChange(){return e.onOpenChange},get open(){return r()},set open(o){r(o)},children:(o,l)=>{var u=Ee(),d=ne(u);Le(d,()=>M0,(h,f)=>{f(h,{children:(p,g)=>{var m=nZt(),_=ne(m);Le(_,()=>D0,(y,b)=>{b(y,{children:(E,S)=>{var T=tZt(),C=ne(T);Le(C,()=>N0,(A,R)=>{R(A,{children:(I,L)=>{Gt();var F=fr("Delete Server");H(I,F)},$$slots:{default:!0}})});var x=he(C,2);Le(x,()=>L0,(A,R)=>{R(A,{children:(I,L)=>{Gt();var F=eZt(),O=he(ne(F)),D=de(O,!0);oe(O),Gt(),at(()=>yt(D,e.displayName)),H(I,F)},$$slots:{default:!0}})}),H(E,T)},$$slots:{default:!0}})});var v=he(_,2);Le(v,()=>k0,(y,b)=>{b(y,{children:(E,S)=>{var T=rZt(),C=ne(T);Le(C,()=>bU,(A,R)=>{R(A,{children:(I,L)=>{Gt();var F=fr("Cancel");H(I,F)},$$slots:{default:!0}})});var x=he(C,2);Le(x,()=>V1,(A,R)=>{R(A,{class:"text-destructive-foreground bg-destructive hover:bg-destructive/90",get onclick(){return e.onConfirm},children:(I,L)=>{Gt();var F=fr("Delete");H(I,F)},$$slots:{default:!0}})}),H(E,T)},$$slots:{default:!0}})}),H(p,m)},$$slots:{default:!0}})}),H(o,u)},$$slots:{default:!0}})}),H(t,n),Ke()}var aZt=ae('<div class="flex items-center justify-between gap-4"><div class="flex items-center gap-2"><!> <!> <!></div> <!></div> <div class="flex flex-wrap gap-1.5"><!> <!> <!></div> <div class="space-y-1.5"><!> <!></div> <!> <div class="flex justify-end gap-2"><!> <!> <!></div>',1);function sZt(t){K_(t,{class:"grid gap-3 p-4",children:(e,r)=>{var n=aZt(),i=ne(n),a=de(i),s=de(a);To(s,{class:"h-5 w-5 rounded"});var o=he(s,2);To(o,{class:"h-5 w-28"});var l=he(o,2);To(l,{class:"h-5 w-12 rounded-full"}),oe(a);var u=he(a,2);To(u,{class:"h-6 w-11 rounded-full"}),oe(i);var d=he(i,2),h=de(d);To(h,{class:"h-5 w-14 rounded-full"});var f=he(h,2);To(f,{class:"h-5 w-12 rounded-full"});var p=he(f,2);To(p,{class:"h-5 w-16 rounded-full"}),oe(d);var g=he(d,2),m=de(g);To(m,{class:"h-4 w-40"});var _=he(m,2);To(_,{class:"h-4 w-52"}),oe(g);var v=he(g,2);To(v,{class:"h-3.5 w-36"});var y=he(v,2),b=de(y);To(b,{class:"h-8 w-8 rounded"});var E=he(b,2);To(E,{class:"h-8 w-8 rounded"});var S=he(E,2);To(S,{class:"h-8 w-8 rounded"}),oe(y),H(e,n)},$$slots:{default:!0}})}var oZt=ae('<img alt=""/>'),lZt=ae('<a target="_blank" rel="noopener noreferrer" class="shrink-0 text-muted-foreground hover:text-foreground" aria-label="Open website"><!></a>'),cZt=ae('<span class="flex min-w-0 items-center gap-1.5"><!> <!> <!> <!></span>');function EU(t,e){We(e,!0);let r=ue(e,"faviconUrl",3,null),n=ue(e,"iconClass",3,"h-5 w-5"),i=ue(e,"iconRounded",3,"rounded-sm"),a=ue(e,"showVersion",3,!0),s=ue(e,"showWebsite",3,!0),o=ee(()=>e.serverInfo?.websiteUrl?mSt(e.serverInfo.websiteUrl):null);var l=cZt(),u=de(l);{var d=_=>{var v=oZt();at(()=>{Pr(v,"src",r()),lr(v,1,Fn(["shrink-0",i(),n()]))}),Ji("error",v,y=>{y.currentTarget.style.display="none"}),Zm(v),H(_,v)};Re(u,_=>{r()&&_(d)})}var h=he(u,2);{let _=ee(()=>e.displayName??""),v=ee(()=>e.nameClass??"");aA(h,{get text(){return w(_)},get class(){return w(v)}})}var f=he(h,2);{var p=_=>{Hu(_,{variant:"secondary",class:"h-4 min-w-0 shrink px-1 text-[10px]",children:(v,y)=>{{let b=ee(()=>`v${e.serverInfo.version}`);aA(v,{get text(){return w(b)}})}},$$slots:{default:!0}})};Re(f,_=>{a()&&e.serverInfo?.version&&_(p)})}var g=he(f,2);{var m=_=>{var v=lZt(),y=de(v);Ymt(y,{class:"h-3 w-3"}),oe(v),at(()=>Pr(v,"href",w(o))),tn("click",v,b=>b.stopPropagation()),H(_,v)};Re(g,_=>{s()&&w(o)&&_(m)})}oe(l),H(t,l),Ke()}Wi(["click"]);var uZt=ae("<!> <span>Server instructions</span>",1),dZt=ae('<p class="rounded bg-muted/50 p-2 text-xs text-muted-foreground"> </p>'),hZt=ae("<!> <!>",1);function fZt(t,e){let r=Me(!1);var n=Ee(),i=ne(n);{var a=s=>{var o=Ee(),l=ne(o);Le(l,()=>kf,(u,d)=>{d(u,{get class(){return e.class},get open(){return w(r)},set open(h){J(r,h,!0)},children:(h,f)=>{var p=hZt(),g=ne(p);Le(g,()=>Df,(_,v)=>{v(_,{class:"flex w-full items-center gap-1 text-xs text-muted-foreground hover:text-foreground",children:(y,b)=>{var E=uZt(),S=ne(E);{var T=x=>{hu(x,{class:"h-3.5 w-3.5"})},C=x=>{fu(x,{class:"h-3.5 w-3.5"})};Re(S,x=>{w(r)?x(T):x(C,-1)})}Gt(2),H(y,E)},$$slots:{default:!0}})});var m=he(g,2);Le(m,()=>Mf,(_,v)=>{v(_,{class:"mt-2",children:(y,b)=>{var E=dZt(),S=de(E,!0);oe(E),at(()=>yt(S,e.instructions)),H(y,E)},$$slots:{default:!0}})}),H(h,p)},$$slots:{default:!0}})}),H(s,o)};Re(i,s=>{e.instructions&&s(a)})}H(t,n)}var pZt=ae('<span class="text-xs text-muted-foreground/50">...</span>'),gZt=ae('<span> <span class="text-destructive">*</span></span> <!>',1),mZt=ae('<button type="button"> </button>'),_Zt=ae('<div class="absolute top-full right-0 left-0 z-10 mt-1 max-h-32 overflow-y-auto rounded-lg border border-border/50 bg-background shadow-lg"></div>'),vZt=ae('<div class="relative grid gap-1"><!> <!> <!></div>');function yZt(t,e){We(e,!0);let r=ue(e,"value",3,""),n=ue(e,"suggestions",19,()=>[]),i=ue(e,"isLoadingSuggestions",3,!1),a=ue(e,"isAutocompleteActive",3,!1),s=ue(e,"autocompleteIndex",3,0);var o=vZt(),l=de(o);Af(l,{get for(){return`tpl-arg-${e.name??""}`},class:"mb-1 text-muted-foreground",children:(f,p)=>{var g=gZt(),m=ne(g),_=de(m);Gt(),oe(m);var v=he(m,2);{var y=b=>{var E=pZt();H(b,E)};Re(v,b=>{i()&&b(y)})}at(()=>yt(_,`${e.name??""} `)),H(f,g)},$$slots:{default:!0}});var u=he(l,2);x0(u,{get id(){return`tpl-arg-${e.name??""}`},type:"text",get value(){return r()},oninput:f=>e.onInput(f.currentTarget.value),get onkeydown(){return e.onKeydown},get onblur(){return e.onBlur},get onfocus(){return e.onFocus},get placeholder(){return`Enter ${e.name??""}`},autocomplete:"off"});var d=he(u,2);{var h=f=>{var p=_Zt();fn(p,22,n,g=>g,(g,m,_)=>{var v=mZt(),y=de(v,!0);oe(v),at(()=>{lr(v,1,`w-full px-3 py-1.5 text-left text-sm hover:bg-accent ${w(_)===s()?"bg-accent":""}`),yt(y,m)}),tn("mousedown",v,()=>e.onSelectSuggestion(m)),H(g,v)}),oe(p),sl(3,p,()=>p_,()=>({y:-5,duration:100})),H(f,p)};Re(d,f=>{a()&&n().length>0&&f(h)})}oe(o),H(t,o),Ke()}Wi(["mousedown"]);var bZt=ae('<span class="text-muted-foreground">(optional)</span>'),EZt=ae('<span class="text-xs font-medium"> <!></span>'),SZt=ae('<div class="flex items-start gap-2"><!> <textarea class="flex-1 resize-none rounded-md border border-input bg-transparent px-3 py-2 text-sm leading-5 placeholder:text-muted-foreground focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none" rows="1"></textarea> <button type="button" class="mt-1.5 shrink-0 cursor-pointer rounded-md p-1 text-muted-foreground hover:bg-destructive/10 hover:text-destructive" aria-label="Remove item"><!></button></div>'),TZt=ae('<div class="space-y-3"></div>'),CZt=ae('<p class="text-xs text-muted-foreground"> </p>'),wZt=ae('<div><div class="mb-2 flex items-center justify-between"><!> <button type="button" class="inline-flex cursor-pointer items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground"><!> </button></div> <!></div>');function xZt(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"keyPlaceholder",3,"Key"),i=ue(e,"valuePlaceholder",3,"Value"),a=ue(e,"addButtonLabel",3,"Add"),s=ue(e,"emptyMessage",3,"No items configured."),o=ue(e,"sectionLabelOptional",3,!0);function l(){e.onPairsChange([...e.pairs,{key:"",value:""}])}function u(x){e.onPairsChange(e.pairs.filter((A,R)=>R!==x))}function d(x,A){const R=RTt(A),I=[...e.pairs];I[x]={...I[x],key:R},e.onPairsChange(I)}function h(x,A){const R=A.trim();if(R===A)return;const I=[...e.pairs];I[x]={...I[x],key:R},e.onPairsChange(I)}function f(x,A){const R=OTt(A),I=[...e.pairs];I[x]={...I[x],value:R},e.onPairsChange(I)}function p(x,A){const R=A.trim();if(R===A)return;const I=[...e.pairs];I[x]={...I[x],value:R},e.onPairsChange(I)}var g=wZt(),m=de(g),_=de(m);{var v=x=>{var A=EZt(),R=de(A),I=he(R);{var L=F=>{var O=bZt();H(F,O)};Re(I,F=>{o()&&F(L)})}oe(A),at(()=>yt(R,`${e.sectionLabel??""} `)),H(x,A)};Re(_,x=>{e.sectionLabel&&x(v)})}var y=he(_,2),b=de(y);Eb(b,{class:"h-3 w-3"});var E=he(b);oe(y),oe(m);var S=he(m,2);{var T=x=>{var A=TZt();fn(A,21,()=>e.pairs,Xy,(R,I,L)=>{var F=SZt(),O=de(F);x0(O,{type:"text",get placeholder(){return n()},get value(){return w(I).key},get maxlength(){return _De},oninput:N=>d(L,N.currentTarget.value),onblur:N=>h(L,N.currentTarget.value),class:"flex-1"});var D=he(O,2);UF(D),tE(D,N=>L9?.(N));var M=he(D,2),P=de(M);pg(P,{class:"h-3.5 w-3.5"}),oe(M),oe(F),at(()=>{Pr(D,"placeholder",i()),o3e(D,w(I).value),Pr(D,"maxlength",vDe)}),tn("input",D,N=>{f(L,N.currentTarget.value),L9(N.currentTarget)}),Ji("blur",D,N=>p(L,N.currentTarget.value)),tn("click",M,()=>u(L)),H(R,F)}),oe(A),H(x,A)},C=x=>{var A=CZt(),R=de(A,!0);oe(A),at(()=>yt(R,s())),H(x,A)};Re(S,x=>{e.pairs.length>0?x(T):x(C,-1)})}oe(g),at(()=>{lr(g,1,Fn(r())),yt(E,` ${a()??""}`)}),tn("click",y,l),H(t,g),Ke()}Wi(["click","input"]);var AZt=ae('<div class="flex flex-col gap-2"><div class="mb-2 flex items-center gap-4"><!> <!></div> <h3 class="text-sm font-medium">Available resources</h3></div>');function RZt(t,e){We(e,!0);let r=ue(e,"searchQuery",3,"");var n=AZt(),i=de(n),a=de(i);hR(a,{placeholder:"Search resources...",get value(){return r()},onInput:o=>e.onSearch?.(o)});var s=he(a,2);Mn(s,{variant:"ghost",size:"sm",class:"h-8 w-8 p-0",get onclick(){return e.onRefresh},get disabled(){return e.isLoading},title:"Refresh resources",children:(o,l)=>{var u=Ee(),d=ne(u);{var h=p=>{Ao(p,{class:"h-4 w-4 animate-spin"})},f=p=>{D_(p,{class:"h-4 w-4"})};Re(d,p=>{e.isLoading?p(h):p(f,-1)})}H(o,u)},$$slots:{default:!0}}),oe(i),Gt(2),oe(n),H(t,n),Ke()}var OZt=ae('<div class="py-4 text-center text-sm text-muted-foreground"><!></div>');function IZt(t,e){var r=OZt(),n=de(r);{var i=s=>{var o=fr("Loading resources...");H(s,o)},a=s=>{var o=fr("No resources available");H(s,o)};Re(n,s=>{e.isLoading?s(i):s(a,-1)})}oe(r),H(t,r)}function NZt(t,e){return t.title?.toLowerCase().includes(e)||t.uri.toLowerCase().includes(e)}function kZt(t,e,r){const n={name:"root",children:new Map};if(!r||!r.trim()){for(const s of t){const o=B9(s.uri);let l=n;for(let d=0;d<o.length-1;d++){const h=o[d];l.children.has(h)||l.children.set(h,{name:h,children:new Map}),l=l.children.get(h)}const u=o[o.length-1]||s.name;l.children.set(s.uri,{name:u,resource:{...s,serverName:e},children:new Map})}return n}const i=r.toLowerCase();for(const s of t){if(!NZt(s,i))continue;const o=B9(s.uri);let l=n;for(let d=0;d<o.length-1;d++){const h=o[d];l.children.has(h)||l.children.set(h,{name:h,children:new Map,isFiltered:!0}),l=l.children.get(h)}const u=o[o.length-1]||s.name;l.children.set(s.uri,{name:u,resource:{...s,serverName:e},children:new Map,isFiltered:!0})}function a(s){if(s.resource)return!0;const o=[];for(const[l,u]of s.children.entries())a(u)||o.push(l);for(const l of o)s.children.delete(l);return s.children.size>0}return a(n),n}function J9e(t){if(t.resource)return 1;let e=0;for(const r of t.children.values())e+=J9e(r);return e}function pCe(t){return t.sort((e,r)=>{const n=!e.resource&&e.children.size>0,i=!r.resource&&r.children.size>0;return n&&!i?-1:!n&&i?1:e.name.localeCompare(r.name)})}var DZt=ae('<!> <!> <span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span>',1),MZt=ae('<div class="ml-4 flex flex-col gap-0.5 border-l border-border/50 pl-2"></div>'),LZt=ae("<!> <!>",1),PZt=ae('<div class="group flex w-full items-center gap-2"><!> <button><!> <span class="min-w-0 flex-1 truncate text-left"> </span></button></div>'),FZt=ae('<!> <span class="inline-flex flex-col items-start gap-1 text-left"><div class="inline-flex min-w-0 items-center gap-1.5"><!></div> <span class="text-xs text-muted-foreground"> <!>)</span></span> <!>',1),BZt=ae('<div class="py-1 text-xs text-red-500"> </div>'),UZt=ae('<div class="py-1 text-xs text-muted-foreground">No resources</div>'),$Zt=ae('<div class="my-1 border-t border-border/30"></div>'),GZt=ae('<button><!> <span class="min-w-0 flex-1 truncate text-left"> </span></button>'),zZt=ae('<!> <div class="py-0.5 text-[11px] font-medium tracking-wide text-muted-foreground/70 uppercase">Templates</div> <!>',1),qZt=ae("<!> <!>",1),VZt=ae('<div class="ml-4 flex flex-col gap-0.5 border-l border-border/50 pl-2"><!></div>'),HZt=ae("<!> <!>",1);function YZt(t,e){We(e,!0);const r=(_,v=Tt,y=Tt,b=Tt)=>{const E=ee(()=>!v().resource&&v().children.size>0),S=ee(()=>`${e.serverName}:${b()}/${v().name}`),T=ee(()=>e.expandedFolders.has(w(S)));var C=Ee(),x=ne(C);{var A=I=>{const L=ee(()=>J9e(v()));var F=Ee(),O=ne(F);Le(O,()=>kf,(D,M)=>{M(D,{get open(){return w(T)},onOpenChange:()=>e.onToggleFolder(w(S)),children:(P,N)=>{var $=LZt(),U=ne($);Le(U,()=>Df,(V,z)=>{z(V,{class:"flex w-full items-center gap-2 rounded px-2 py-1 text-sm hover:bg-muted/50",children:(G,Y)=>{var W=DZt(),Q=ne(W);{var ie=_e=>{hu(_e,{class:"h-3 w-3"})},Z=_e=>{fu(_e,{class:"h-3 w-3"})};Re(Q,_e=>{w(T)?_e(ie):_e(Z,-1)})}var re=he(Q,2);sR(re,{class:"h-3.5 w-3.5 text-muted-foreground"});var K=he(re,2),j=de(K,!0);oe(K);var se=he(K,2),le=de(se);oe(se),at(()=>{yt(j,v().name),yt(le,`(${w(L)??""})`)}),H(G,W)},$$slots:{default:!0}})});var B=he(U,2);Le(B,()=>Mf,(V,z)=>{z(V,{children:(G,Y)=>{var W=MZt();fn(W,21,()=>pCe([...v().children.values()]),Q=>Q.resource?.uri||`${e.serverName}:${b()}/${v().name}/${Q.name}`,(Q,ie)=>{r(Q,()=>w(ie),()=>y()+1,()=>`${b()}/${v().name}`)}),oe(W),H(G,W)},$$slots:{default:!0}})}),H(P,$)},$$slots:{default:!0}})}),H(I,F)},R=I=>{const L=ee(()=>v().resource),F=ee(()=>HDe(w(L).mimeType,w(L).uri)),O=ee(()=>p(w(L))),D=ee(()=>w(L).title||MTt(v().name));var M=PZt(),P=de(M);{var N=z=>{$h(z,{get checked(){return w(O)},onCheckedChange:G=>f(w(L),G===!0),class:"h-4 w-4"})};Re(P,z=>{e.onToggle&&z(N)})}var $=he(P,2),U=de($);Le(U,()=>w(F),(z,G)=>{G(z,{class:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})});var B=he(U,2),V=de(B,!0);oe(B),oe($),oe(M),at(()=>{lr($,1,Fn(["flex flex-1 items-center gap-2 rounded px-2 py-1 text-left text-sm transition-colors","hover:bg-muted/50",w(O)&&"bg-muted"])),Pr($,"title",w(D)),yt(V,w(D))}),tn("click",$,z=>h(w(L),z)),H(I,M)};Re(x,I=>{w(E)?I(A):v().resource&&I(R,1)})}H(_,C)};let n=ue(e,"searchQuery",3,""),i=ee(()=>Br.getServerDisplayName(e.serverName)),a=ee(()=>Br.getServerFavicon(e.serverName));const s=ee(()=>e.serverRes.resources.length>0),o=ee(()=>e.serverRes.templates.length>0),l=ee(()=>w(s)||w(o)),u=ee(()=>kZt(e.serverRes.resources,e.serverName,n())),d=ee(()=>e.serverRes.templates.map(_=>({uriTemplate:_.uriTemplate,name:_.name,title:_.title,description:_.description,mimeType:_.mimeType,serverName:e.serverName,annotations:_.annotations,icons:_.icons})));function h(_,v){e.onSelect?.(_,v.shiftKey)}function f(_,v){e.onToggle?.(_,v)}function p(_){return e.selectedUris.has(_.uri)}var g=Ee(),m=ne(g);Le(m,()=>kf,(_,v)=>{v(_,{get open(){return e.isExpanded},get onOpenChange(){return e.onToggleServer},children:(y,b)=>{var E=HZt(),S=ne(E);Le(S,()=>Df,(C,x)=>{x(C,{class:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-muted/50",children:(A,R)=>{var I=FZt(),L=ne(I);{var F=G=>{hu(G,{class:"h-3.5 w-3.5"})},O=G=>{fu(G,{class:"h-3.5 w-3.5"})};Re(L,G=>{e.isExpanded?G(F):G(O,-1)})}var D=he(L,2),M=de(D),P=de(M);EU(P,{get displayName(){return w(i)},get faviconUrl(){return w(a)},iconClass:"h-4 w-4",showVersion:!1}),oe(M);var N=he(M,2),$=de(N),U=he($);{var B=G=>{var Y=fr();at(()=>yt(Y,`, ${e.serverRes.templates.length??""} template${e.serverRes.templates.length!==1?"s":""}`)),H(G,Y)};Re(U,G=>{w(o)&&G(B)})}Gt(),oe(N),oe(D);var V=he(D,2);{var z=G=>{Ao(G,{class:"ml-auto h-3 w-3 animate-spin text-muted-foreground"})};Re(V,G=>{e.serverRes.loading&&G(z)})}at(()=>yt($,`(${e.serverRes.resources.length??""} resource${e.serverRes.resources.length!==1?"s":""}`)),H(A,I)},$$slots:{default:!0}})});var T=he(S,2);Le(T,()=>Mf,(C,x)=>{x(C,{children:(A,R)=>{var I=VZt(),L=de(I);{var F=M=>{var P=BZt(),N=de(P);oe(P),at(()=>yt(N,`Error: ${e.serverRes.error??""}`)),H(M,P)},O=M=>{var P=UZt();H(M,P)},D=M=>{var P=qZt(),N=ne(P);{var $=V=>{var z=Ee(),G=ne(z);fn(G,17,()=>pCe([...w(u).children.values()]),Y=>Y.resource?.uri||`${e.serverName}:${Y.name}`,(Y,W)=>{r(Y,()=>w(W),()=>1,()=>"")}),H(V,z)};Re(N,V=>{w(s)&&V($)})}var U=he(N,2);{var B=V=>{var z=zZt(),G=ne(z);{var Y=Q=>{var ie=$Zt();H(Q,ie)};Re(G,Q=>{w(s)&&Q(Y)})}var W=he(G,4);fn(W,17,()=>w(d),Q=>Q.uriTemplate,(Q,ie)=>{var Z=GZt(),re=de(Z);Z5e(re,{class:"h-3.5 w-3.5 shrink-0 text-muted-foreground"});var K=he(re,2),j=de(K,!0);oe(K),oe(Z),at(()=>{lr(Z,1,Fn(["flex w-full items-center gap-2 rounded px-2 py-1 text-left text-sm transition-colors","hover:bg-muted/50",e.selectedTemplateUri===w(ie).uriTemplate&&"bg-muted"])),Pr(Z,"title",w(ie).uriTemplate),yt(j,w(ie).title||w(ie).name)}),tn("click",Z,()=>e.onTemplateSelect(w(ie))),H(Q,Z)}),H(V,z)};Re(U,V=>{w(o)&&e.onTemplateSelect&&V(B)})}H(M,P)};Re(L,M=>{e.serverRes.error?M(F):w(l)?M(D,-1):M(O,1)})}oe(I),H(A,I)},$$slots:{default:!0}})}),H(y,E)},$$slots:{default:!0}})}),H(t,g),Ke()}Wi(["click"]);var WZt=ae('<div><!> <div class="flex flex-col gap-1"><!></div></div>');function KZt(t,e){We(e,!0);let r=ue(e,"selectedUris",19,()=>new Set),n=new uo,i=new uo,a=Me("");const s=ee(AMe),o=ee(Zkt),l=ee(()=>{if(!w(a).trim())return w(s);const b=w(a).toLowerCase(),E=new As;for(const[S,T]of w(s).entries()){const C=T.resources.filter(A=>A.title?.toLowerCase().includes(b)||A.uri.toLowerCase().includes(b)||S.toLowerCase().includes(b)),x=T.templates.filter(A=>A.name?.toLowerCase().includes(b)||A.title?.toLowerCase().includes(b)||A.uriTemplate.toLowerCase().includes(b)||S.toLowerCase().includes(b));(C.length>0||x.length>0||b.trim())&&E.set(S,{...T,resources:C,templates:x})}return E});sr(()=>{e.expandToUri&&w(s).size>0&&u(e.expandToUri)});function u(b){for(const[E,S]of w(s).entries())if(S.resources.find(C=>C.uri===b)){n.add(E);const C=B9(b);if(C.length>1){let x="";for(let A=0;A<C.length-1;A++){x=`${x}/${C[A]}`;const R=`${E}:${x}`;i.add(R)}}break}}function d(b){n.has(b)?n.delete(b):n.add(b)}function h(b){i.has(b)?i.delete(b):i.add(b)}function f(){Br.fetchAllResources()}var p=WZt(),g=de(p);RZt(g,{get isLoading(){return w(o)},onRefresh:f,onSearch:b=>J(a,b,!0),get searchQuery(){return w(a)}});var m=he(g,2),_=de(m);{var v=b=>{IZt(b,{get isLoading(){return w(o)}})},y=b=>{var E=Ee(),S=ne(E);fn(S,17,()=>[...w(l).entries()],([T,C])=>T,(T,C)=>{var x=ee(()=>mie(w(C),2));let A=()=>w(x)[0],R=()=>w(x)[1];{let I=ee(()=>n.has(A()));YZt(T,{get serverName(){return A()},get serverRes(){return R()},get isExpanded(){return w(I)},get selectedUris(){return r()},get selectedTemplateUri(){return e.selectedTemplateUri},get expandedFolders(){return i},onToggleServer:()=>d(A()),onToggleFolder:h,get onSelect(){return e.onSelect},get onToggle(){return e.onToggle},get onTemplateSelect(){return e.onTemplateSelect},get searchQuery(){return w(a)}})}}),H(b,E)};Re(_,b=>{w(l).size===0?b(v):b(y,-1)})}oe(m),oe(p),at(()=>lr(p,1,Fn(["flex flex-col gap-2",e.class]))),H(t,p),Ke()}var jZt=ae('<div class="flex flex-col items-center justify-center gap-2 py-8 text-muted-foreground"><!> <span class="text-sm">Select a resource to preview</span></div>'),XZt=ae('<p class="mt-1 text-sm text-muted-foreground"> </p>'),QZt=ae('<div class="flex items-center justify-center py-8"><!></div>'),ZZt=ae('<div class="flex flex-col items-center justify-center gap-2 py-8 text-red-500"><!> <span class="text-sm"> </span></div>'),JZt=ae('<pre class="font-mono text-xs break-words whitespace-pre-wrap"> </pre>'),eJt=ae('<img alt="Resource content" class="max-w-full rounded"/>'),tJt=ae('<div class="flex items-center gap-2 rounded bg-muted p-2 text-sm text-muted-foreground"><!> <span> </span></div>'),rJt=ae('<div class="py-4 text-center text-sm text-muted-foreground">No content available</div>'),nJt=ae("<!> <!> <!>",1),iJt=ae('<span class="rounded bg-muted px-1.5 py-0.5"> </span>'),aJt=ae('<span class="rounded bg-muted px-1.5 py-0.5"> </span>'),sJt=ae('<div class="flex flex-wrap gap-2 text-xs text-muted-foreground"><!> <!> <span class="rounded bg-muted px-1.5 py-0.5"> </span></div>'),oJt=ae('<div class="flex items-start justify-between gap-2"><div class="min-w-0 flex-1"><h3 class="truncate font-medium"> </h3> <p class="truncate text-xs text-muted-foreground"> </p> <!></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="min-h-[200px] overflow-auto rounded-md border bg-muted/30 p-3 break-all"><!></div> <!>',1),lJt=ae("<div><!></div>");function lK(t,e){We(e,!0);let r=Me(null),n=Me(!1),i=Me(null);sr(()=>{e.resource?e.preloadedContent?(J(r,e.preloadedContent,!0),J(n,!1),J(i,null)):a(e.resource.uri):(J(r,null),J(i,null))});async function a(h){J(n,!0),J(i,null);try{const f=await Br.readResource(h);f?J(r,f,!0):J(i,"Failed to load resource content")}catch(f){J(i,f instanceof Error?f.message:"Unknown error",!0)}finally{J(n,!1)}}function s(){const h=fO(w(r));!h||!e.resource||YDe(h,e.resource.mimeType||yr.PLAIN,e.resource.name||"resource.txt")}var o=lJt(),l=de(o);{var u=h=>{var f=jZt(),p=de(f);ng(p,{class:"h-8 w-8 opacity-50"}),Gt(2),oe(f),H(h,f)},d=h=>{var f=oJt(),p=ne(f),g=de(p),m=de(g),_=de(m,!0);oe(m);var v=he(m,2),y=de(v,!0);oe(v);var b=he(v,2);{var E=D=>{var M=XZt(),P=de(M,!0);oe(M),at(()=>yt(P,e.resource.description)),H(D,M)};Re(b,D=>{e.resource.description&&D(E)})}oe(g);var S=he(g,2),T=de(S);{let D=ee(()=>fO(w(r))),M=ee(()=>!w(n)&&!!fO(w(r)));Tb(T,{get text(){return w(D)},get canCopy(){return w(M)},ariaLabel:"Copy content"})}var C=he(T,2);{let D=ee(()=>w(n)||!fO(w(r)));Mn(C,{variant:"ghost",size:"sm",class:"h-7 w-7 p-0",onclick:s,get disabled(){return w(D)},title:"Download content",children:(M,P)=>{eA(M,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}})}oe(S),oe(p);var x=he(p,2),A=de(x);{var R=D=>{var M=QZt(),P=de(M);Ao(P,{class:"h-6 w-6 animate-spin text-muted-foreground"}),oe(M),H(D,M)},I=D=>{var M=ZZt(),P=de(M);Gse(P,{class:"h-6 w-6"});var N=he(P,2),$=de(N,!0);oe(N),oe(M),at(()=>yt($,w(i))),H(D,M)},L=D=>{const M=ee(()=>fO(w(r))),P=ee(()=>FTt(w(r)));var N=nJt(),$=ne(N);{var U=G=>{var Y=JZt(),W=de(Y,!0);oe(Y),at(()=>yt(W,w(M))),H(G,Y)};Re($,G=>{w(M)&&G(U)})}var B=he($,2);fn(B,17,()=>w(P),G=>G.uri,(G,Y)=>{var W=Ee(),Q=ne(W);{var ie=K=>{var j=eJt();at(se=>Pr(j,"src",se),[()=>hk(w(Y).mimeType??ik.OCTET_STREAM,w(Y).blob)]),H(K,j)},Z=ee(()=>DTt(w(Y).mimeType??ik.OCTET_STREAM)),re=K=>{var j=tJt(),se=de(j);ng(se,{class:"h-4 w-4"});var le=he(se,2),_e=de(le);oe(le),oe(j),at(()=>yt(_e,`Binary content (${(w(Y).mimeType||"unknown type")??""})`)),H(K,j)};Re(Q,K=>{w(Z)?K(ie):K(re,-1)})}H(G,W)});var V=he(B,2);{var z=G=>{var Y=rJt();H(G,Y)};Re(V,G=>{!w(M)&&w(P).length===0&&G(z)})}H(D,N)};Re(A,D=>{w(n)?D(R):w(i)?D(I,1):w(r)&&D(L,2)})}oe(x);var F=he(x,2);{var O=D=>{var M=sJt(),P=de(M);{var N=z=>{var G=iJt(),Y=de(G,!0);oe(G),at(()=>yt(Y,e.resource.mimeType)),H(z,G)};Re(P,z=>{e.resource.mimeType&&z(N)})}var $=he(P,2);{var U=z=>{var G=aJt(),Y=de(G);oe(G),at(()=>yt(Y,`Priority: ${e.resource.annotations.priority??""}`)),H(z,G)};Re($,z=>{e.resource.annotations?.priority!==void 0&&z(U)})}var B=he($,2),V=de(B);oe(B),oe(M),at(()=>yt(V,`Server: ${e.resource.serverName??""}`)),H(D,M)};Re(F,D=>{(e.resource.mimeType||e.resource.annotations)&&D(O)})}at(()=>{yt(_,e.resource.title||e.resource.name),yt(y,e.resource.uri)}),H(h,f)};Re(l,h=>{e.resource?h(d,-1):h(u)})}oe(o),at(()=>lr(o,1,Fn(["flex flex-col gap-3",e.class]))),H(t,o),Ke()}var cJt=ae('<div class="rounded-md bg-muted/50 px-3 py-2"><p class="text-xs text-muted-foreground">Resolved URI:</p> <p class="mt-0.5 font-mono text-xs break-all"> </p></div>'),uJt=ae('<form class="space-y-3"><!> <!> <div class="flex justify-end gap-2 pt-1"><!> <!></div></form>');function dJt(t,e){We(e,!0);const r=ee(()=>WDe(e.template.uriTemplate));let n=Kr({}),i=Kr({}),a=Kr({}),s=Me(null),o=Me(0);const l=ee(()=>BTt(e.template.uriTemplate,n)),u=ee(()=>UTt(e.template.uriTemplate,n)),d=VDe(async(x,A)=>{if(A.length<1){i[x]=[];return}a[x]=!0;try{const R=await Br.getResourceCompletions(e.template.serverName,e.template.uriTemplate,x,A);if(R&&R.values.length>0){const I=R.values.filter(L=>L.trim()!=="");I.length>0?(i[x]=I,J(s,x,!0),J(o,0)):i[x]=[]}else i[x]=[]}catch(R){console.error("[McpResourceTemplateForm] Failed to fetch completions:",R),i[x]=[]}finally{a[x]=!1}},200);function h(x,A){n[x]=A,d(x,A)}function f(x,A){n[x]=A,i[x]=[],J(s,null)}function p(x,A){const R=i[A]??[];if(x.key===wi.ESCAPE){x.preventDefault(),x.stopPropagation(),R.length>0&&w(s)===A?(i[A]=[],J(s,null)):e.onCancel();return}R.length===0||w(s)!==A||(x.key===wi.ARROW_DOWN?(x.preventDefault(),J(o,Math.min(w(o)+1,R.length-1),!0)):x.key===wi.ARROW_UP?(x.preventDefault(),J(o,Math.max(w(o)-1,0),!0)):x.key===wi.ENTER&&R[w(o)]&&(x.preventDefault(),x.stopPropagation(),f(A,R[w(o)])))}function g(x){setTimeout(()=>{w(s)===x&&(i[x]=[],J(s,null))},150)}function m(x){const A=n[x]??"";A.length>=O1t&&d(x,A)}function _(x){x.preventDefault(),w(u)&&e.onResolve(w(l),e.template.serverName)}var v=uJt(),y=de(v);fn(y,17,()=>w(r),x=>x.name,(x,A)=>{{let R=ee(()=>n[w(A).name]??""),I=ee(()=>i[w(A).name]??[]),L=ee(()=>a[w(A).name]??!1),F=ee(()=>w(s)===w(A).name),O=ee(()=>w(s)===w(A).name?w(o):0);yZt(x,{get name(){return w(A).name},get value(){return w(R)},get suggestions(){return w(I)},get isLoadingSuggestions(){return w(L)},get isAutocompleteActive(){return w(F)},get autocompleteIndex(){return w(O)},onInput:D=>h(w(A).name,D),onKeydown:D=>p(D,w(A).name),onBlur:()=>g(w(A).name),onFocus:()=>m(w(A).name),onSelectSuggestion:D=>f(w(A).name,D)})}});var b=he(y,2);{var E=x=>{var A=cJt(),R=he(de(A),2),I=de(R,!0);oe(R),oe(A),at(()=>yt(I,w(l))),H(x,A)};Re(b,x=>{w(u)&&x(E)})}var S=he(b,2),T=de(S);Mn(T,{type:"button",size:"sm",variant:"secondary",get onclick(){return e.onCancel},children:(x,A)=>{Gt();var R=fr("Cancel");H(x,R)},$$slots:{default:!0}});var C=he(T,2);{let x=ee(()=>!w(u));Mn(C,{size:"sm",type:"submit",get disabled(){return w(x)},children:(A,R)=>{Gt();var I=fr("Read Resource");H(A,I)},$$slots:{default:!0}})}oe(S),oe(v),Ji("submit",v,_),H(t,v),Ke()}var hJt=ae("<!> <!>",1),fJt=ae('<!> <div class="space-y-4 py-4"><!></div> <!>',1);function pJt(t,e){We(e,!0);let r=ue(e,"open",15),n=Me(""),i=Me(""),a=ee(()=>{if(!w(n).trim())return"URL is required";try{return new URL(w(n)),null}catch{return"Invalid URL format"}});function s(d){d||(J(n,""),J(i,"")),r(d),e.onOpenChange?.(d)}function o(){if(w(a))return;const d=Up()??`${Zse}-${Date.now()}`;Br.addServer({id:d,enabled:!0,url:w(n).trim(),headers:w(i).trim()||void 0}),Rt.setMcpServerOverride(d,!0),s(!1)}var l=Ee(),u=ne(l);Le(u,()=>ER,(d,h)=>{h(d,{get open(){return r()},onOpenChange:s,children:(f,p)=>{var g=Ee(),m=ne(g);Le(m,()=>bR,(_,v)=>{v(_,{class:"sm:max-w-md",children:(y,b)=>{var E=fJt(),S=ne(E);Le(S,()=>L5,(A,R)=>{R(A,{children:(I,L)=>{var F=Ee(),O=ne(F);Le(O,()=>M5,(D,M)=>{M(D,{children:(P,N)=>{Gt();var $=fr("Add New Server");H(P,$)},$$slots:{default:!0}})}),H(I,F)},$$slots:{default:!0}})});var T=he(S,2),C=de(T);{let A=ee(()=>w(n)?w(a):null);Q9e(C,{get url(){return w(n)},get headers(){return w(i)},onUrlChange:R=>J(n,R,!0),onHeadersChange:R=>J(i,R,!0),get urlError(){return w(A)},id:"new-server"})}oe(T);var x=he(T,2);Le(x,()=>j9e,(A,R)=>{R(A,{children:(I,L)=>{var F=hJt(),O=ne(F);Mn(O,{variant:"secondary",size:"sm",onclick:()=>s(!1),children:(M,P)=>{Gt();var N=fr("Cancel");H(M,N)},$$slots:{default:!0}});var D=he(O,2);{let M=ee(()=>!!w(a));Mn(D,{variant:"default",size:"sm",onclick:o,get disabled(){return w(M)},"aria-label":"Save",children:(P,N)=>{Gt();var $=fr("Add");H(P,$)},$$slots:{default:!0}})}H(I,F)},$$slots:{default:!0}})}),H(y,E)},$$slots:{default:!0}})}),H(f,g)},$$slots:{default:!0}})}),H(t,l),Ke()}var gJt=ae("<!> Export Settings",1),mJt=ae(`<p class="text-amber-500">Warning: This export will include sensitive data such as API keys and MCP server custom
						headers (e.g., authorization tokens). Do not share this file with anyone you don't
						trust.</p>`),_Jt=ae(`<p>Sensitive data (API keys, MCP server custom headers) will not be included in the export
						to protect your credentials.</p>`),vJt=ae("<!> <!>",1),yJt=ae('<span class="text-destructive">Include sensitive data (not recommended)</span>'),bJt=ae("<span>Include sensitive data</span>"),EJt=ae("<!> <!>",1),SJt=ae('<!> <div class="flex items-center gap-2 py-2"><!> <!></div> <!>',1);function TJt(t,e){We(e,!0);let r=ue(e,"includeSensitiveData",15,!1);function n(s){s||e.onCancel()}var i=Ee(),a=ne(i);Le(a,()=>P0,(s,o)=>{o(s,{get open(){return e.open},onOpenChange:n,children:(l,u)=>{var d=Ee(),h=ne(d);Le(h,()=>M0,(f,p)=>{p(f,{children:(g,m)=>{var _=SJt(),v=ne(_);Le(v,()=>D0,(T,C)=>{C(T,{children:(x,A)=>{var R=vJt(),I=ne(R);Le(I,()=>N0,(F,O)=>{O(F,{class:"flex items-center gap-2",children:(D,M)=>{var P=gJt(),N=ne(P);{var $=B=>{u0t(B,{class:"h-5 w-5 text-destructive"})},U=B=>{h0t(B,{class:"h-5 w-5 text-destructive"})};Re(N,B=>{r()?B($):B(U,-1)})}Gt(),H(D,P)},$$slots:{default:!0}})});var L=he(I,2);Le(L,()=>L0,(F,O)=>{O(F,{children:(D,M)=>{var P=Ee(),N=ne(P);{var $=B=>{var V=mJt();H(B,V)},U=B=>{var V=_Jt();H(B,V)};Re(N,B=>{r()?B($):B(U,-1)})}H(D,P)},$$slots:{default:!0}})}),H(x,R)},$$slots:{default:!0}})});var y=he(v,2),b=de(y);$h(b,{id:"include-sensitive",get checked(){return r()},set checked(T){r(T)}});var E=he(b,2);Af(E,{for:"include-sensitive",class:"text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:(T,C)=>{var x=Ee(),A=ne(x);{var R=L=>{var F=yJt();H(L,F)},I=L=>{var F=bJt();H(L,F)};Re(A,L=>{r()?L(R):L(I,-1)})}H(T,x)},$$slots:{default:!0}}),oe(y);var S=he(y,2);Le(S,()=>k0,(T,C)=>{C(T,{children:(x,A)=>{var R=EJt(),I=ne(R);Le(I,()=>bU,(F,O)=>{O(F,{get onclick(){return e.onCancel},children:(D,M)=>{Gt();var P=fr("Cancel");H(D,P)},$$slots:{default:!0}})});var L=he(I,2);Le(L,()=>V1,(F,O)=>{O(F,{get onclick(){return e.onConfirm},class:"bg-destructive text-white hover:bg-destructive/80",children:(D,M)=>{var P=Ee(),N=ne(P);{var $=B=>{var V=fr("Export Anyway");H(B,V)},U=B=>{var V=fr("Export Without Sensitive Data");H(B,V)};Re(N,B=>{r()?B($):B(U,-1)})}H(D,P)},$$slots:{default:!0}})}),H(x,R)},$$slots:{default:!0}})}),H(g,_)},$$slots:{default:!0}})}),H(l,d)},$$slots:{default:!0}})}),H(t,i),Ke()}var CJt=ae("<!> ",1),wJt=ae("<!> <!>",1),xJt=ae("<!> <!>",1),AJt=ae("<!> <!> <!>",1);function Rb(t,e){We(e,!0);let r=ue(e,"confirmText",3,"Confirm"),n=ue(e,"cancelText",3,"Cancel"),i=ue(e,"variant",3,"default");function a(u){u.key===wi.ENTER&&(u.preventDefault(),e.onConfirm()),e.onKeydown?.(u)}function s(u){u||e.onCancel()}var o=Ee(),l=ne(o);Le(l,()=>P0,(u,d)=>{d(u,{get open(){return e.open},onOpenChange:s,children:(h,f)=>{var p=Ee(),g=ne(p);Le(g,()=>M0,(m,_)=>{_(m,{onkeydown:a,children:(v,y)=>{var b=AJt(),E=ne(b);Le(E,()=>D0,(x,A)=>{A(x,{children:(R,I)=>{var L=wJt(),F=ne(L);Le(F,()=>N0,(D,M)=>{M(D,{class:"flex items-center gap-2",children:(P,N)=>{var $=CJt(),U=ne($);{var B=z=>{const G=ee(()=>e.icon);var Y=Ee(),W=ne(Y);{let Q=ee(()=>i()==="destructive"?"text-destructive":"");Le(W,()=>w(G),(ie,Z)=>{Z(ie,{get class(){return`h-5 w-5 ${w(Q)??""}`}})})}H(z,Y)};Re(U,z=>{e.icon&&z(B)})}var V=he(U);at(()=>yt(V,` ${e.title??""}`)),H(P,$)},$$slots:{default:!0}})});var O=he(F,2);Le(O,()=>L0,(D,M)=>{M(D,{children:(P,N)=>{Gt();var $=fr();at(()=>yt($,e.description)),H(P,$)},$$slots:{default:!0}})}),H(R,L)},$$slots:{default:!0}})});var S=he(E,2);{var T=x=>{var A=Ee(),R=ne(A);ft(R,()=>e.children),H(x,A)};Re(S,x=>{e.children&&x(T)})}var C=he(S,2);Le(C,()=>k0,(x,A)=>{A(x,{children:(R,I)=>{var L=xJt(),F=ne(L);Le(F,()=>bU,(D,M)=>{M(D,{get onclick(){return e.onCancel},children:(P,N)=>{Gt();var $=fr();at(()=>yt($,n())),H(P,$)},$$slots:{default:!0}})});var O=he(F,2);{let D=ee(()=>i()==="destructive"?"bg-destructive text-white hover:bg-destructive/80":"");Le(O,()=>V1,(M,P)=>{P(M,{get onclick(){return e.onConfirm},get class(){return w(D)},children:(N,$)=>{Gt();var U=fr();at(()=>yt(U,r())),H(N,U)},$$slots:{default:!0}})})}H(R,L)},$$slots:{default:!0}})}),H(v,b)},$$slots:{default:!0}})}),H(h,p)},$$slots:{default:!0}})}),H(t,o),Ke()}var RJt=ae("<!> <!>",1),OJt=ae("<!> <!>",1),IJt=ae('<!> <div class="space-y-4 pt-2 pb-6"><div class="space-y-2"><p class="text-sm font-medium text-muted-foreground">Current title:</p> <p class="rounded-md bg-muted/50 p-3 text-sm font-medium"> </p></div> <div class="space-y-2"><p class="text-sm font-medium text-muted-foreground">New title would be:</p> <p class="rounded-md bg-muted/50 p-3 text-sm font-medium"> </p></div></div> <!>',1);function NJt(t,e){We(e,!0);let r=ue(e,"open",15);var n=Ee(),i=ne(n);Le(i,()=>P0,(a,s)=>{s(a,{get open(){return r()},set open(o){r(o)},children:(o,l)=>{var u=Ee(),d=ne(u);Le(d,()=>M0,(h,f)=>{f(h,{children:(p,g)=>{var m=IJt(),_=ne(m);Le(_,()=>D0,(A,R)=>{R(A,{children:(I,L)=>{var F=RJt(),O=ne(F);Le(O,()=>N0,(M,P)=>{P(M,{children:(N,$)=>{Gt();var U=fr("Update Conversation Title?");H(N,U)},$$slots:{default:!0}})});var D=he(O,2);Le(D,()=>L0,(M,P)=>{P(M,{children:(N,$)=>{Gt();var U=fr("Do you want to update the conversation title to match the first message content?");H(N,U)},$$slots:{default:!0}})}),H(I,F)},$$slots:{default:!0}})});var v=he(_,2),y=de(v),b=he(de(y),2),E=de(b,!0);oe(b),oe(y);var S=he(y,2),T=he(de(S),2),C=de(T,!0);oe(T),oe(S),oe(v);var x=he(v,2);Le(x,()=>k0,(A,R)=>{R(A,{children:(I,L)=>{var F=OJt(),O=ne(F);Mn(O,{variant:"outline",get onclick(){return e.onCancel},children:(M,P)=>{Gt();var N=fr("Keep Current Title");H(M,N)},$$slots:{default:!0}});var D=he(O,2);Mn(D,{get onclick(){return e.onConfirm},children:(M,P)=>{Gt();var N=fr("Update Title");H(M,N)},$$slots:{default:!0}}),H(I,F)},$$slots:{default:!0}})}),at(()=>{yt(E,e.currentTitle),yt(C,e.newTitle)}),H(p,m)},$$slots:{default:!0}})}),H(o,u)},$$slots:{default:!0}})}),H(t,n),Ke()}var kJt=ae('<!> <span class="sr-only">Close preview</span>',1),DJt=ae('<iframe sandbox="allow-scripts" class="code-preview-iframe"></iframe> <!>',1),MJt=ae("<!> <!>",1);function LJt(t,e){We(e,!0);let r=ue(e,"open",15),n=Me(null);sr(()=>{w(n)&&(r()?w(n).srcdoc=e.code:w(n).srcdoc="")});function i(o){r(o),e.onOpenChange?.(o)}var a=Ee(),s=ne(a);Le(s,()=>dB,(o,l)=>{l(o,{get open(){return r()},onOpenChange:i,children:(u,d)=>{var h=Ee(),f=ne(h);Le(f,()=>Tg,(p,g)=>{g(p,{children:(m,_)=>{var v=MJt(),y=ne(v);Le(y,()=>aB,(E,S)=>{S(E,{class:"code-preview-overlay"})});var b=he(y,2);Le(b,()=>fB,(E,S)=>{S(E,{class:"code-preview-content",children:(T,C)=>{var x=DJt(),A=ne(x);Qr(A,I=>J(n,I),()=>w(n));var R=he(A,2);Le(R,()=>hB,(I,L)=>{L(I,{class:"code-preview-close absolute top-4 right-4 border-none bg-transparent text-white opacity-70 mix-blend-difference transition-opacity hover:opacity-100 focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-8","aria-label":"Close preview",children:(F,O)=>{var D=kJt(),M=ne(D);Xd(M,{}),Gt(2),H(F,D)},$$slots:{default:!0}})}),at(()=>Pr(A,"title",`Preview ${e.language??""}`)),H(T,x)},$$slots:{default:!0}})}),H(m,v)},$$slots:{default:!0}})}),H(u,h)},$$slots:{default:!0}})}),H(t,a),Ke()}var PJt=ae("<!> <!>",1),FJt=ae("<!> <!>",1);function BJt(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=ue(e,"uploadedFiles",19,()=>[]),i=ue(e,"attachments",19,()=>[]),a=ue(e,"previewFocusIndex",3,0);function s(){r(!1)}sr(()=>{if(!r())return;function u(d){const h=d.target;if(!(h.tagName==="INPUT"||h.tagName==="TEXTAREA"))switch(d.key){case wi.ARROW_LEFT:d.preventDefault(),d.stopPropagation(),document.dispatchEvent(new CustomEvent("chat-attachments-nav",{detail:-1}));break;case wi.ARROW_RIGHT:d.preventDefault(),d.stopPropagation(),document.dispatchEvent(new CustomEvent("chat-attachments-nav",{detail:1}));break;case wi.SPACE:d.preventDefault(),d.stopPropagation(),document.dispatchEvent(new CustomEvent("chat-attachments-nav",{detail:1}));break}}return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)});var o=Ee(),l=ne(o);Le(l,()=>dB,(u,d)=>{d(u,{get open(){return r()},set open(h){r(h)},children:(h,f)=>{var p=Ee(),g=ne(p);Le(g,()=>Tg,(m,_)=>{_(m,{children:(v,y)=>{var b=FJt(),E=ne(b);Le(E,()=>jle,(T,C)=>{C(T,{class:"bg-black/85",style:"z-index: 1000"})});var S=he(E,2);Le(S,()=>fB,(T,C)=>{C(T,{class:"fixed inset-0 z-[1000] flex flex-col bg-transparent outline-none",children:(x,A)=>{var R=PJt(),I=ne(R);Le(I,()=>hB,(F,O)=>{O(F,{class:"absolute top-4 right-4 z-10 cursor-pointer text-white hover:text-gray-400",onclick:s,"aria-label":"Close",children:(D,M)=>{Xd(D,{class:"size-4"})},$$slots:{default:!0}})});var L=he(I,2);j3t(L,{get uploadedFiles(){return n()},get attachments(){return i()},get activeModelId(){return e.activeModelId},get previewFocusIndex(){return a()},class:"min-h-0 flex-1"}),H(x,R)},$$slots:{default:!0}})}),H(v,b)},$$slots:{default:!0}})}),H(h,p)},$$slots:{default:!0}})}),H(t,o),Ke()}var UJt=ae("<!> ",1),$Jt=ae("<!> <!>",1),GJt=ae('<p><span class="font-medium">Context size:</span> </p>'),zJt=ae('<div class="mt-2 space-y-1 text-xs opacity-80"><p><span class="font-medium">Prompt tokens:</span> </p> <!></div>'),qJt=ae('<!> <div><p class="font-medium"> </p> <!></div> <!>',1);function VJt(t,e){We(e,!0);let r=ue(e,"open",15);const n=ee(()=>e.type===Em.TIMEOUT),i=ee(()=>w(n)?"TCP Timeout":"Server Error"),a=ee(()=>w(n)?"The request did not receive a response from the server before timing out.":"The server responded with an error message. Review the details below."),s=ee(()=>w(n)?"text-destructive":"text-amber-500"),o=ee(()=>w(n)?"border-destructive/40 bg-destructive/10 text-destructive":"border-amber-500/40 bg-amber-500/10 text-amber-600 dark:text-amber-400");function l(h){r(h),e.onOpenChange?.(h)}var u=Ee(),d=ne(u);Le(d,()=>P0,(h,f)=>{f(h,{get open(){return r()},onOpenChange:l,children:(p,g)=>{var m=Ee(),_=ne(m);Le(_,()=>M0,(v,y)=>{y(v,{children:(b,E)=>{var S=qJt(),T=ne(S);Le(T,()=>D0,(F,O)=>{O(F,{children:(D,M)=>{var P=$Jt(),N=ne(P);Le(N,()=>N0,(U,B)=>{B(U,{class:"flex items-center gap-2",children:(V,z)=>{var G=UJt(),Y=ne(G);{var W=Z=>{{let re=ee(()=>`h-5 w-5 ${w(s)}`);m0t(Z,{get class(){return w(re)}})}},Q=Z=>{{let re=ee(()=>`h-5 w-5 ${w(s)}`);B1(Z,{get class(){return w(re)}})}};Re(Y,Z=>{w(n)?Z(W):Z(Q,-1)})}var ie=he(Y);at(()=>yt(ie,` ${w(i)??""}`)),H(V,G)},$$slots:{default:!0}})});var $=he(N,2);Le($,()=>L0,(U,B)=>{B(U,{children:(V,z)=>{Gt();var G=fr();at(()=>yt(G,w(a))),H(V,G)},$$slots:{default:!0}})}),H(D,P)},$$slots:{default:!0}})});var C=he(T,2),x=de(C),A=de(x,!0);oe(x);var R=he(x,2);{var I=F=>{var O=zJt(),D=de(O),M=he(de(D));oe(D);var P=he(D,2);{var N=$=>{var U=GJt(),B=he(de(U));oe(U),at(V=>yt(B,` ${V??""}`),[()=>e.contextInfo.n_ctx.toLocaleString()]),H($,U)};Re(P,$=>{e.contextInfo.n_ctx&&$(N)})}oe(O),at($=>yt(M,` ${$??""}`),[()=>e.contextInfo.n_prompt_tokens.toLocaleString()]),H(F,O)};Re(R,F=>{e.contextInfo&&F(I)})}oe(C);var L=he(C,2);Le(L,()=>k0,(F,O)=>{O(F,{children:(D,M)=>{var P=Ee(),N=ne(P);Le(N,()=>V1,($,U)=>{U($,{onclick:()=>l(!1),children:(B,V)=>{Gt();var z=fr("Close");H(B,z)},$$slots:{default:!0}})}),H(D,P)},$$slots:{default:!0}})}),at(()=>{lr(C,1,`rounded-lg border px-4 py-3 text-sm ${w(o)}`),yt(A,e.message)}),H(b,S)},$$slots:{default:!0}})}),H(p,m)},$$slots:{default:!0}})}),H(t,u),Ke()}var HJt=ae("<!> Empty Files Detected",1),YJt=ae("<!> <!>",1),WJt=ae('<li class="font-mono text-sm"> </li>'),KJt=ae('<!> <div class="space-y-3 text-sm"><div class="rounded-lg bg-muted p-3"><div class="mb-2 font-medium">Empty Files:</div> <ul class="list-inside list-disc space-y-1 text-muted-foreground"></ul></div> <div><div class="mb-2 font-medium">What happened:</div> <ul class="list-inside list-disc space-y-1 text-muted-foreground"><li>Empty files cannot be processed or sent to the AI model</li> <li>These files have been automatically removed from your attachments</li> <li>You can try uploading files with content instead</li></ul></div></div> <!>',1);function jJt(t,e){We(e,!0);let r=ue(e,"open",15);function n(s){r(s),e.onOpenChange?.(s)}var i=Ee(),a=ne(i);Le(a,()=>P0,(s,o)=>{o(s,{get open(){return r()},onOpenChange:n,children:(l,u)=>{var d=Ee(),h=ne(d);Le(h,()=>M0,(f,p)=>{p(f,{children:(g,m)=>{var _=KJt(),v=ne(_);Le(v,()=>D0,(T,C)=>{C(T,{children:(x,A)=>{var R=YJt(),I=ne(R);Le(I,()=>N0,(F,O)=>{O(F,{class:"flex items-center gap-2",children:(D,M)=>{var P=HJt(),N=ne(P);Wmt(N,{class:"h-5 w-5 text-destructive"}),Gt(),H(D,P)},$$slots:{default:!0}})});var L=he(I,2);Le(L,()=>L0,(F,O)=>{O(F,{children:(D,M)=>{Gt();var P=fr("The following files are empty and have been removed from your attachments:");H(D,P)},$$slots:{default:!0}})}),H(x,R)},$$slots:{default:!0}})});var y=he(v,2),b=de(y),E=he(de(b),2);fn(E,20,()=>e.emptyFiles,T=>T,(T,C)=>{var x=WJt(),A=de(x,!0);oe(x),at(()=>yt(A,C)),H(T,x)}),oe(E),oe(b),Gt(2),oe(y);var S=he(y,2);Le(S,()=>k0,(T,C)=>{C(T,{children:(x,A)=>{var R=Ee(),I=ne(R);Le(I,()=>V1,(L,F)=>{F(L,{onclick:()=>n(!1),children:(O,D)=>{Gt();var M=fr("Got it");H(O,M)},$$slots:{default:!0}})}),H(x,R)},$$slots:{default:!0}})}),H(g,_)},$$slots:{default:!0}})}),H(l,d)},$$slots:{default:!0}})}),H(t,i),Ke()}var XJt=ae("<!> <!>",1),QJt=ae('<div class="rounded-md bg-destructive/10 px-3 py-2"><p class="font-mono text-sm break-all text-destructive"> </p> <p class="mt-1 text-xs text-muted-foreground">File type not supported</p></div>'),ZJt=ae('<div class="space-y-2"><h4 class="text-sm font-medium text-destructive">Unsupported File Types</h4> <div class="space-y-1"></div></div>'),JJt=ae('<div class="rounded-md bg-destructive/10 px-3 py-2"><p class="font-mono text-sm break-all text-destructive"> </p> <p class="mt-1 text-xs text-muted-foreground"> </p></div>'),eer=ae('<div class="space-y-2"><div class="space-y-1"></div></div>'),ter=ae('<!> <div class="!max-h-[50vh] min-h-0 flex-1 space-y-4 overflow-y-auto"><!> <!></div> <div class="rounded-md bg-muted/50 p-3"><h4 class="mb-2 text-sm font-medium">This model supports:</h4> <p class="text-sm text-muted-foreground"> </p></div> <!>',1),rer=ae("<!> <!>",1);function ner(t,e){We(e,!0);let r=ue(e,"open",15);function n(s){r(s),e.onOpenChange?.(s)}var i=Ee(),a=ne(i);Le(a,()=>P0,(s,o)=>{o(s,{get open(){return r()},onOpenChange:n,children:(l,u)=>{var d=Ee(),h=ne(d);Le(h,()=>JQt,(f,p)=>{p(f,{children:(g,m)=>{var _=rer(),v=ne(_);Le(v,()=>Z9e,(b,E)=>{E(b,{})});var y=he(v,2);Le(y,()=>M0,(b,E)=>{E(b,{class:"flex max-w-md flex-col",children:(S,T)=>{var C=ter(),x=ne(C);Le(x,()=>D0,(N,$)=>{$(N,{children:(U,B)=>{var V=XJt(),z=ne(V);Le(z,()=>N0,(Y,W)=>{W(Y,{children:(Q,ie)=>{Gt();var Z=fr("File Upload Error");H(Q,Z)},$$slots:{default:!0}})});var G=he(z,2);Le(G,()=>L0,(Y,W)=>{W(Y,{class:"text-sm text-muted-foreground",children:(Q,ie)=>{Gt();var Z=fr("Some files cannot be uploaded with the current model.");H(Q,Z)},$$slots:{default:!0}})}),H(U,V)},$$slots:{default:!0}})});var A=he(x,2),R=de(A);{var I=N=>{var $=ZJt(),U=he(de($),2);fn(U,21,()=>e.fileErrorData.generallyUnsupported,B=>B.name,(B,V)=>{var z=QJt(),G=de(z),Y=de(G,!0);oe(G),Gt(2),oe(z),at(()=>yt(Y,w(V).name)),H(B,z)}),oe(U),oe($),H(N,$)};Re(R,N=>{e.fileErrorData.generallyUnsupported.length>0&&N(I)})}var L=he(R,2);{var F=N=>{var $=eer(),U=de($);fn(U,21,()=>e.fileErrorData.modalityUnsupported,B=>B.name,(B,V)=>{var z=JJt(),G=de(z),Y=de(G,!0);oe(G);var W=he(G,2),Q=de(W,!0);oe(W),oe(z),at(()=>{yt(Y,w(V).name),yt(Q,e.fileErrorData.modalityReasons[w(V).name]||"Not supported by current model")}),H(B,z)}),oe(U),oe($),H(N,$)};Re(L,N=>{e.fileErrorData.modalityUnsupported.length>0&&N(F)})}oe(A);var O=he(A,2),D=he(de(O),2),M=de(D,!0);oe(D),oe(O);var P=he(O,2);Le(P,()=>k0,(N,$)=>{$(N,{children:(U,B)=>{var V=Ee(),z=ne(V);Le(z,()=>V1,(G,Y)=>{Y(G,{onclick:()=>n(!1),children:(W,Q)=>{Gt();var ie=fr("Got it");H(W,ie)},$$slots:{default:!0}})}),H(U,V)},$$slots:{default:!0}})}),at(N=>yt(M,N),[()=>e.fileErrorData.supportedTypes.join(", ")]),H(S,C)},$$slots:{default:!0}})}),H(g,_)},$$slots:{default:!0}})}),H(l,d)},$$slots:{default:!0}})}),H(t,i),Ke()}var ier=ae("<!> Model Not Available",1),aer=ae("<!> <!>",1),ser=ae('<button type="button" class="group flex w-full items-center justify-between gap-2 rounded-sm px-3 py-2 text-left text-sm transition-colors hover:bg-accent hover:text-accent-foreground"><span class="min-w-0 truncate font-mono text-xs"> </span> <!></button>'),oer=ae('<div class="text-sm"><p class="mb-2 font-medium text-muted-foreground">Select an available model:</p> <div class="max-h-48 space-y-1 overflow-y-auto rounded-md border p-1"></div></div>'),ler=ae('<!> <div class="space-y-3"><div class="rounded-lg border border-amber-500/40 bg-amber-500/10 px-4 py-3 text-sm"><p class="font-medium text-amber-600 dark:text-amber-400">Requested: <code class="rounded bg-amber-500/20 px-1.5 py-0.5"> </code></p></div> <!></div> <!>',1);function e7e(t,e){We(e,!0);let r=ue(e,"open",15),n=ue(e,"availableModels",19,()=>[]);function i(l){r(l),e.onOpenChange?.(l)}function a(l){const u=new URL(ba.url);u.searchParams.set("model",l),i(!1),Ws(u.toString())}var s=Ee(),o=ne(s);Le(o,()=>P0,(l,u)=>{u(l,{get open(){return r()},onOpenChange:i,children:(d,h)=>{var f=Ee(),p=ne(f);Le(p,()=>M0,(g,m)=>{m(g,{class:"max-w-lg",children:(_,v)=>{var y=ler(),b=ne(y);Le(b,()=>D0,(L,F)=>{F(L,{children:(O,D)=>{var M=aer(),P=ne(M);Le(P,()=>N0,($,U)=>{U($,{class:"flex items-center gap-2",children:(B,V)=>{var z=ier(),G=ne(z);B1(G,{class:"h-5 w-5 text-amber-500"}),Gt(),H(B,z)},$$slots:{default:!0}})});var N=he(P,2);Le(N,()=>L0,($,U)=>{U($,{children:(B,V)=>{Gt();var z=fr("The requested model could not be found. Select an available model to continue.");H(B,z)},$$slots:{default:!0}})}),H(O,M)},$$slots:{default:!0}})});var E=he(b,2),S=de(E),T=de(S),C=he(de(T)),x=de(C,!0);oe(C),oe(T),oe(S);var A=he(S,2);{var R=L=>{var F=oer(),O=he(de(F),2);fn(O,20,n,D=>D,(D,M)=>{var P=ser(),N=de(P),$=de(N,!0);oe(N);var U=he(N,2);X5e(U,{class:"h-4 w-4 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100"}),oe(P),at(()=>yt($,M)),tn("click",P,()=>a(M)),H(D,P)}),oe(O),oe(F),H(L,F)};Re(A,L=>{n().length>0&&L(R)})}oe(E);var I=he(E,2);Le(I,()=>k0,(L,F)=>{F(L,{children:(O,D)=>{var M=Ee(),P=ne(M);Le(P,()=>V1,(N,$)=>{$(N,{onclick:()=>i(!1),children:(U,B)=>{Gt();var V=fr("Cancel");H(U,V)},$$slots:{default:!0}})}),H(O,M)},$$slots:{default:!0}})}),at(()=>yt(x,e.modelName)),H(_,y)},$$slots:{default:!0}})}),H(d,f)},$$slots:{default:!0}})}),H(t,s),Ke()}Wi(["click"]);var cer=ae("<!> <!>",1),uer=ae("<!> <!>",1),der=ae("<!> <!>",1);function gCe(t,e){We(e,!0);let r=ue(e,"messageCountMap",19,()=>new Map),n=ue(e,"open",15,!1),i=Me(void 0),a=Me(!1);sr(()=>{n()&&!w(a)&&w(i)?w(i).reset():!n()&&w(a)&&e.onCancel(),J(a,n(),!0)});var s=Ee(),o=ne(s);Le(o,()=>ER,(l,u)=>{u(l,{get open(){return n()},set open(d){n(d)},children:(d,h)=>{var f=Ee(),p=ne(f);Le(p,()=>X9e,(g,m)=>{m(g,{children:(_,v)=>{var y=der(),b=ne(y);Le(b,()=>jle,(S,T)=>{T(S,{class:"z-[1000000]"})});var E=he(b,2);Le(E,()=>bR,(S,T)=>{T(S,{class:"z-[1000001] max-w-2xl",children:(C,x)=>{var A=uer(),R=ne(A);Le(R,()=>L5,(L,F)=>{F(L,{children:(O,D)=>{var M=cer(),P=ne(M);Le(P,()=>M5,($,U)=>{U($,{children:(B,V)=>{Gt();var z=fr();at(()=>yt(z,`Select Conversations to ${e.mode==="export"?"Export":"Import"}`)),H(B,z)},$$slots:{default:!0}})});var N=he(P,2);Le(N,()=>yU,($,U)=>{U($,{children:(B,V)=>{var z=Ee(),G=ne(z);{var Y=Q=>{var ie=fr(`Choose which conversations you want to export. Selected conversations will be downloaded
						as a JSON file.`);H(Q,ie)},W=Q=>{var ie=fr(`Choose which conversations you want to import. Selected conversations will be merged
						with your existing conversations.`);H(Q,ie)};Re(G,Q=>{e.mode==="export"?Q(Y):Q(W,-1)})}H(B,z)},$$slots:{default:!0}})}),H(O,M)},$$slots:{default:!0}})});var I=he(R,2);Qr(h5t(I,{get conversations(){return e.conversations},get messageCountMap(){return r()},get mode(){return e.mode},get onCancel(){return e.onCancel},get onConfirm(){return e.onConfirm}}),L=>J(i,L,!0),()=>w(i)),H(C,A)},$$slots:{default:!0}})}),H(_,y)},$$slots:{default:!0}})}),H(d,f)},$$slots:{default:!0}})}),H(t,s),Ke()}var her=ae('<div data-slot="table-container" class="relative w-full overflow-x-auto"><table><!></table></div>');function fer(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=her(),a=de(i);Er(a,o=>({"data-slot":"table",class:o,...n}),[()=>an("w-full caption-bottom text-sm",e.class)]);var s=de(a);ft(s,()=>e.children??Tt),oe(a),Qr(a,o=>r(o),()=>r()),oe(i),H(t,i),Ke()}var per=ae("<tbody><!></tbody>");function ger(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=per();Er(i,s=>({"data-slot":"table-body",class:s,...n}),[()=>an("[&_tr:last-child]:border-0",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var mer=ae("<td><!></td>");function Ja(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=mer();Er(i,s=>({"data-slot":"table-cell",class:s,...n}),[()=>an("bg-clip-padding p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var _er=ae("<th><!></th>");function mCe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=_er();Er(i,s=>({"data-slot":"table-head",class:s,...n}),[()=>an("h-10 bg-clip-padding px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var ver=ae("<thead><!></thead>");function yer(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ver();Er(i,s=>({"data-slot":"table-header",class:s,...n}),[()=>an("[&_tr]:border-b",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var ber=ae("<tr><!></tr>");function Nu(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ber();Er(i,s=>({"data-slot":"table-row",class:s,...n}),[()=>an("border-b transition-colors data-[state=selected]:bg-muted hover:[&,&>svelte-css-wrapper]:[&>th,td]:bg-muted/50",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var Eer=ae("<!> <!>",1),Ser=ae('<div class="flex items-center justify-center py-8"><div class="text-sm text-muted-foreground">Loading model information...</div></div>'),Ter=ae('<div class="inline-flex items-center gap-2"><span class="resizable-text-container min-w-0 flex-1 truncate"> </span> <!></div>'),Cer=ae("<!> <!>",1),wer=ae('<span class="resizable-text-container min-w-0 flex-1 truncate"> </span> <!>',1),xer=ae("<!> <!>",1),Aer=ae("<!> <!>",1),Rer=ae("<!> <!>",1),Oer=ae("<!> <!>",1),Ier=ae("<!> <!>",1),Ner=ae("<!> <!>",1),ker=ae("<!> <!>",1),Der=ae("<!> <!>",1),Mer=ae("<!> <!>",1),Ler=ae("<!> <!>",1),Per=ae('<div class="flex flex-wrap gap-1"><!></div>'),Fer=ae("<!> <!>",1),Ber=ae("<!> <!>",1),Uer=ae('<div class="rounded-md bg-muted p-4"><pre class="font-mono text-xs whitespace-pre-wrap"> </pre></div>'),$er=ae("<!> <!>",1),Ger=ae("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),zer=ae("<!> <!>",1),qer=ae('<div class="flex items-center justify-center py-8"><div class="text-sm text-muted-foreground">No model information available</div></div>'),Ver=ae(`<style>@container (max-width: 56rem) {
				.resizable-text-container {
					max-width: calc(100vw - var(--threshold));
				}
			}</style> <!> <div class="space-y-6 py-4"><!></div>`,1);function t7e(t,e){We(e,!0);let r=ue(e,"open",15),n=ue(e,"modelId",3,null),i=ee(()=>Ya.isRouterMode),a=Me(null),s=Me(!1),o=ee(()=>w(i)&&n()?w(a):Ya.props),l=ee(()=>w(i)&&n()?n():Fr.singleModelName),u=ee(Ef),d=ee(LMe),h=ee(()=>w(i)&&n()?w(u).find(m=>m.model===n())??null:w(u)[0]??null),f=ee(()=>w(h)?.id?Fr.getModelModalitiesArray(w(h).id):[]);sr(()=>{r()&&w(u).length===0&&Fr.fetch()}),sr(()=>{r()&&w(i)&&n()&&(J(s,!0),Fr.fetchModelProps(n()).then(m=>{J(a,m,!0)}).catch(()=>{J(a,null)}).finally(()=>{J(s,!1)})),r()||J(a,null)});var p=Ee(),g=ne(p);Le(g,()=>ER,(m,_)=>{_(m,{get onOpenChange(){return e.onOpenChange},get open(){return r()},set open(v){r(v)},children:(v,y)=>{var b=Ee(),E=ne(b);Le(E,()=>bR,(S,T)=>{T(S,{class:"@container z-9999 !max-h-[80dvh] !max-w-[60rem] max-w-full",children:(C,x)=>{var A=Ver(),R=he(ne(A),2);Le(R,()=>L5,(M,P)=>{P(M,{children:(N,$)=>{var U=Eer(),B=ne(U);Le(B,()=>M5,(z,G)=>{G(z,{children:(Y,W)=>{Gt();var Q=fr("Model Information");H(Y,Q)},$$slots:{default:!0}})});var V=he(B,2);Le(V,()=>yU,(z,G)=>{G(z,{children:(Y,W)=>{Gt();var Q=fr("Current model details and capabilities");H(Y,Q)},$$slots:{default:!0}})}),H(N,U)},$$slots:{default:!0}})});var I=he(R,2),L=de(I);{var F=M=>{var P=Ser();H(M,P)},O=M=>{const P=ee(()=>w(h).meta);var N=Ee(),$=ne(N);{var U=B=>{var V=Ee(),z=ne(V);Le(z,()=>fer,(G,Y)=>{Y(G,{children:(W,Q)=>{var ie=zer(),Z=ne(ie);Le(Z,()=>yer,(K,j)=>{j(K,{children:(se,le)=>{var _e=Ee(),ye=ne(_e);Le(ye,()=>Nu,(Ue,Se)=>{Se(Ue,{children:(be,ke)=>{var Ae=Cer(),tt=ne(Ae);Le(tt,()=>mCe,(je,ct)=>{ct(je,{class:"w-[10rem]",children:(Fe,Xe)=>{Gt();var et=fr("Model");H(Fe,et)},$$slots:{default:!0}})});var Oe=he(tt,2);Le(Oe,()=>mCe,(je,ct)=>{ct(je,{children:(Fe,Xe)=>{var et=Ter(),Ie=de(et);du(Ie,"",{},{"--threshold":"12rem"});var we=de(Ie,!0);oe(Ie);var ce=he(Ie,2);{let Te=ee(()=>w(l)||""),fe=ee(()=>!!w(l));Tb(ce,{get text(){return w(Te)},get canCopy(){return w(fe)},ariaLabel:"Copy model name to clipboard"})}oe(et),at(()=>yt(we,w(l))),H(Fe,et)},$$slots:{default:!0}})}),H(be,Ae)},$$slots:{default:!0}})}),H(se,_e)},$$slots:{default:!0}})});var re=he(Z,2);Le(re,()=>ger,(K,j)=>{j(K,{children:(se,le)=>{var _e=Ger(),ye=ne(_e);Le(ye,()=>Nu,(lt,it)=>{it(lt,{children:(He,Je)=>{var ht=xer(),rt=ne(ht);Le(rt,()=>Ja,(xe,pt)=>{pt(xe,{class:"h-10 align-middle font-medium",children:(Ve,Ut)=>{Gt();var kt=fr("File Path");H(Ve,kt)},$$slots:{default:!0}})});var $e=he(rt,2);Le($e,()=>Ja,(xe,pt)=>{pt(xe,{class:"inline-flex h-10 items-center gap-2 align-middle font-mono text-xs",children:(Ve,Ut)=>{var kt=wer(),gt=ne(kt);du(gt,"",{},{"--threshold":"14rem"});var Ct=de(gt,!0);oe(gt);var mt=he(gt,2);Tb(mt,{get text(){return w(o).model_path},ariaLabel:"Copy model path to clipboard"}),at(()=>yt(Ct,w(o).model_path)),H(Ve,kt)},$$slots:{default:!0}})}),H(He,ht)},$$slots:{default:!0}})});var Ue=he(ye,2);{var Se=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Aer(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"h-10 align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Context Size");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{children:(gt,Ct)=>{Gt();var mt=fr();at(qt=>yt(mt,`${qt??""} tokens`),[()=>m4(w(o).default_generation_settings.n_ctx)]),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)},be=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Rer(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"h-10 align-middle font-medium text-red-500",children:(gt,Ct)=>{Gt();var mt=fr("Context Size");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"text-red-500",children:(gt,Ct)=>{Gt();var mt=fr("Not available");H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(Ue,lt=>{w(o)?.default_generation_settings?.n_ctx?lt(Se):lt(be,-1)})}var ke=he(Ue,2);{var Ae=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Oer(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"h-10 align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Training Context");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{children:(gt,Ct)=>{Gt();var mt=fr();at(qt=>yt(mt,`${qt??""} tokens`),[()=>m4(w(P).n_ctx_train)]),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(ke,lt=>{w(P)?.n_ctx_train&&lt(Ae)})}var tt=he(ke,2);{var Oe=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Ier(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"h-10 align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Model Size");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{children:(gt,Ct)=>{Gt();var mt=fr();at(qt=>yt(mt,qt),[()=>F9(w(P).size)]),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(tt,lt=>{w(P)?.size&&lt(Oe)})}var je=he(tt,2);{var ct=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Ner(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"h-10 align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Parameters");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{children:(gt,Ct)=>{Gt();var mt=fr();at(qt=>yt(mt,qt),[()=>yTt(w(P).n_params)]),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(je,lt=>{w(P)?.n_params&&lt(ct)})}var Fe=he(je,2);{var Xe=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=ker(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Embedding Size");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{children:(gt,Ct)=>{Gt();var mt=fr();at(qt=>yt(mt,qt),[()=>m4(w(P).n_embd)]),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(Fe,lt=>{w(P)?.n_embd&&lt(Xe)})}var et=he(Fe,2);{var Ie=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Der(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Vocabulary Size");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{children:(gt,Ct)=>{Gt();var mt=fr();at(qt=>yt(mt,`${qt??""} tokens`),[()=>m4(w(P).n_vocab)]),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(et,lt=>{w(P)?.n_vocab&&lt(Ie)})}var we=he(et,2);{var ce=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Mer(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Vocabulary Type");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"align-middle capitalize",children:(gt,Ct)=>{Gt();var mt=fr();at(()=>yt(mt,w(P).vocab_type)),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(we,lt=>{w(P)?.vocab_type&&lt(ce)})}var Te=he(we,2);Le(Te,()=>Nu,(lt,it)=>{it(lt,{children:(He,Je)=>{var ht=Ler(),rt=ne(ht);Le(rt,()=>Ja,(xe,pt)=>{pt(xe,{class:"align-middle font-medium",children:(Ve,Ut)=>{Gt();var kt=fr("Parallel Slots");H(Ve,kt)},$$slots:{default:!0}})});var $e=he(rt,2);Le($e,()=>Ja,(xe,pt)=>{pt(xe,{children:(Ve,Ut)=>{Gt();var kt=fr();at(()=>yt(kt,w(o).total_slots)),H(Ve,kt)},$$slots:{default:!0}})}),H(He,ht)},$$slots:{default:!0}})});var fe=he(Te,2);{var Be=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=Fer(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Modalities");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{children:(gt,Ct)=>{var mt=Per(),qt=de(mt);nCt(qt,{get modalities(){return w(f)}}),oe(mt),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(fe,lt=>{w(f).length>0&&lt(Be)})}var me=he(fe,2);Le(me,()=>Nu,(lt,it)=>{it(lt,{children:(He,Je)=>{var ht=Ber(),rt=ne(ht);Le(rt,()=>Ja,(xe,pt)=>{pt(xe,{class:"align-middle font-medium",children:(Ve,Ut)=>{Gt();var kt=fr("Build Info");H(Ve,kt)},$$slots:{default:!0}})});var $e=he(rt,2);Le($e,()=>Ja,(xe,pt)=>{pt(xe,{class:"align-middle font-mono text-xs",children:(Ve,Ut)=>{Gt();var kt=fr();at(()=>yt(kt,w(o).build_info)),H(Ve,kt)},$$slots:{default:!0}})}),H(He,ht)},$$slots:{default:!0}})});var Ye=he(me,2);{var qe=lt=>{var it=Ee(),He=ne(it);Le(He,()=>Nu,(Je,ht)=>{ht(Je,{children:(rt,$e)=>{var xe=$er(),pt=ne(xe);Le(pt,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"align-middle font-medium",children:(gt,Ct)=>{Gt();var mt=fr("Chat Template");H(gt,mt)},$$slots:{default:!0}})});var Ve=he(pt,2);Le(Ve,()=>Ja,(Ut,kt)=>{kt(Ut,{class:"py-10",children:(gt,Ct)=>{var mt=Uer(),qt=de(mt),De=de(qt,!0);oe(qt),oe(mt),at(()=>yt(De,w(o).chat_template)),H(gt,mt)},$$slots:{default:!0}})}),H(rt,xe)},$$slots:{default:!0}})}),H(lt,it)};Re(Ye,lt=>{w(o).chat_template&&lt(qe)})}H(se,_e)},$$slots:{default:!0}})}),H(W,ie)},$$slots:{default:!0}})}),H(B,V)};Re($,B=>{w(o)&&B(U)})}H(M,N)},D=M=>{var P=qer();H(M,P)};Re(L,M=>{w(d)||w(s)?M(F):w(h)?M(O,1):w(d)||M(D,2)})}oe(I),H(C,A)},$$slots:{default:!0}})}),H(v,b)},$$slots:{default:!0}})}),H(t,p),Ke()}var Her=ae('<span class="text-sm font-normal text-muted-foreground"> </span>'),Yer=ae("<!> <span>MCP Resources</span> <!>",1),Wer=ae("<!> <!>",1),Ker=ae('<p class="mb-4 text-xs text-muted-foreground"> </p>'),jer=ae('<div class="flex flex-1 items-center justify-center"><!></div>'),Xer=ae('<div class="flex flex-1 flex-col items-center justify-center gap-2 text-red-500"><span class="text-sm"> </span> <!></div>'),Qer=ae('<div class="flex h-full flex-col"><div class="mb-3 flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!> <div class="mb-4 rounded-md border border-border/50 bg-muted/30 px-3 py-2"><p class="font-mono text-xs break-all text-muted-foreground"> </p></div> <!></div>'),Zer=ae('<div class="flex flex-col gap-10"></div>'),Jer=ae('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">Select a resource to preview</div>'),etr=ae("<!> Attach Resource",1),ttr=ae("<!> ",1),rtr=ae("<!> <!>",1),ntr=ae('<!> <div class="flex h-[500px] min-w-0"><div class="w-72 shrink-0 overflow-y-auto border-r border-border/30 p-4"><!></div> <div class="min-w-0 flex-1 overflow-auto p-4"><!></div></div> <!>',1);function itr(t,e){We(e,!0);let r=ue(e,"open",15,!1),n=new uo,i=Me(null),a=Me(!1),s=Me(null),o=Me(null),l=Me(null),u=Me(!1),d=Me(null);const h=ee(Qkt);sr(()=>{r()&&(f(),e.preSelectedUri&&(n.clear(),n.add(e.preSelectedUri),J(i,e.preSelectedUri,!0)))});async function f(){const I=Rt.getAllMcpServerOverrides();await Br.ensureInitialized(I)&&await Br.fetchAllResources()}function p(I){r(I),e.onOpenChange?.(I),I||(n.clear(),J(i,null),g())}function g(){J(s,null),J(o,null),J(l,null),J(u,!1),J(d,null)}function m(I){if(n.clear(),J(i,null),w(s)?.uriTemplate===I.uriTemplate&&w(s)?.serverName===I.serverName){g();return}J(s,I,!0),J(o,null),J(l,null),J(u,!1),J(d,null)}async function _(I,L){J(o,I,!0),J(l,null),J(u,!0),J(d,null);try{const F=await Br.readResourceByUri(L,I);F?J(l,F,!0):J(d,"Failed to read resource")}catch(F){J(d,F instanceof Error?F.message:"Unknown error",!0)}finally{J(u,!1)}}function v(){g()}async function y(){if(!(!w(o)||!w(s)||!w(l))){J(a,!0);try{const I=$i.findResourceByUri(w(o));if(I)$i.isAttached(I.uri)||await Br.attachResource(I.uri),ha.success(`Resource attached: ${I.title||I.name}`);else{if($i.isAttached(w(o))){ha.info("Resource already attached"),p(!1);return}const L={uri:w(o),name:w(o).split("/").pop()||w(o),serverName:w(s).serverName},F=$i.addAttachment(L);$i.updateAttachmentContent(F.id,w(l)),ha.success(`Resource attached: ${L.name}`)}p(!1)}catch(I){console.error("Failed to attach template resource:",I)}finally{J(a,!1)}}}function b(I,L=!1){if(g(),L&&w(i)){const F=S(),O=F.findIndex(M=>M.uri===w(i)),D=F.findIndex(M=>M.uri===I.uri);if(O!==-1&&D!==-1){const M=Math.min(O,D),P=Math.max(O,D);for(let N=M;N<=P;N++)n.add(F[N].uri)}}else n.clear(),n.add(I.uri),J(i,I.uri,!0)}function E(I,L){g(),L?n.add(I.uri):n.delete(I.uri),J(i,I.uri,!0)}function S(){const I=[],L=AMe();for(const[F,O]of L.entries())for(const D of O.resources)I.push({...D,serverName:F});return I.sort((F,O)=>{const D=vZ(F),M=vZ(O);return D.localeCompare(M)})}async function T(){if(n.size!==0){J(a,!0);try{const L=S().filter(O=>n.has(O.uri));for(const O of L)await Br.attachResource(O.uri),e.onAttach?.(O);const F=L.length;ha.success(F===1?`Resource attached: ${L[0].name}`:`${F} resources attached`),p(!1)}catch(I){console.error("Failed to attach resources:",I)}finally{J(a,!1)}}}const C=ee(()=>w(s)?.uriTemplate??null),x=ee(()=>!!w(s)&&!!w(l)&&!!w(o));var A=Ee(),R=ne(A);Le(R,()=>ER,(I,L)=>{L(I,{get open(){return r()},onOpenChange:p,children:(F,O)=>{var D=Ee(),M=ne(D);Le(M,()=>bR,(P,N)=>{N(P,{class:"max-h-[80vh] !max-w-4xl overflow-hidden p-0",children:($,U)=>{var B=ntr(),V=ne(B);Le(V,()=>L5,(le,_e)=>{_e(le,{class:"border-b border-border/30 px-6 py-4",children:(ye,Ue)=>{var Se=Wer(),be=ne(Se);Le(be,()=>M5,(Ae,tt)=>{tt(Ae,{class:"flex items-center gap-2",children:(Oe,je)=>{var ct=Yer(),Fe=ne(ct);sR(Fe,{class:"h-5 w-5"});var Xe=he(Fe,4);{var et=Ie=>{var we=Her(),ce=de(we);oe(we),at(()=>yt(ce,`(${w(h)??""})`)),H(Ie,we)};Re(Xe,Ie=>{w(h)>0&&Ie(et)})}H(Oe,ct)},$$slots:{default:!0}})});var ke=he(be,2);Le(ke,()=>yU,(Ae,tt)=>{tt(Ae,{children:(Oe,je)=>{Gt();var ct=fr("Browse and attach resources from connected MCP servers to your chat context.");H(Oe,ct)},$$slots:{default:!0}})}),H(ye,Se)},$$slots:{default:!0}})});var z=he(V,2),G=de(z),Y=de(G);KZt(Y,{onSelect:b,onToggle:E,onTemplateSelect:m,get selectedUris(){return n},get selectedTemplateUri(){return w(C)},get expandToUri(){return e.preSelectedUri}}),oe(G);var W=he(G,2),Q=de(W);{var ie=le=>{var _e=Qer(),ye=de(_e),Ue=de(ye);Z5e(Ue,{class:"h-4 w-4 text-muted-foreground"});var Se=he(Ue,2),be=de(Se,!0);oe(Se),oe(ye);var ke=he(ye,2);{var Ae=Ie=>{var we=Ker(),ce=de(we,!0);oe(we),at(()=>yt(ce,w(s).description)),H(Ie,we)};Re(ke,Ie=>{w(s).description&&Ie(Ae)})}var tt=he(ke,2),Oe=de(tt),je=de(Oe,!0);oe(Oe),oe(tt);var ct=he(tt,2);{var Fe=Ie=>{var we=jer(),ce=de(we);Ao(ce,{class:"h-6 w-6 animate-spin text-muted-foreground"}),oe(we),H(Ie,we)},Xe=Ie=>{var we=Xer(),ce=de(we),Te=de(ce,!0);oe(ce);var fe=he(ce,2);Mn(fe,{size:"sm",variant:"outline",onclick:()=>{J(d,null)},children:(Be,me)=>{Gt();var Ye=fr("Try again");H(Be,Ye)},$$slots:{default:!0}}),oe(we),at(()=>yt(Te,w(d))),H(Ie,we)},et=Ie=>{dJt(Ie,{get template(){return w(s)},onResolve:_,onCancel:v})};Re(ct,Ie=>{w(u)?Ie(Fe):w(d)?Ie(Xe,1):Ie(et,-1)})}oe(_e),at(()=>{yt(be,w(s).title||w(s).name),yt(je,w(s).uriTemplate)}),H(le,_e)},Z=le=>{{let _e=ee(()=>({uri:w(o)??"",name:w(o)?.split("/").pop()||(w(o)??""),serverName:w(s)?.serverName||""}));lK(le,{get resource(){return w(_e)},get preloadedContent(){return w(l)}})}},re=le=>{const _e=ee(S),ye=ee(()=>w(_e).find(Ue=>n.has(Ue.uri)));{let Ue=ee(()=>w(ye)??null);lK(le,{get resource(){return w(Ue)}})}},K=le=>{var _e=Zer();fn(_e,21,S,ye=>ye.uri,(ye,Ue)=>{var Se=Ee(),be=ne(Se);{var ke=tt=>{lK(tt,{get resource(){return w(Ue)}})},Ae=ee(()=>n.has(w(Ue).uri));Re(be,tt=>{w(Ae)&&tt(ke)})}H(ye,Se)}),oe(_e),H(le,_e)},j=le=>{var _e=Jer();H(le,_e)};Re(Q,le=>{w(s)&&!w(l)?le(ie):w(x)?le(Z,1):n.size===1?le(re,2):n.size>1?le(K,3):le(j,-1)})}oe(W),oe(z);var se=he(z,2);Le(se,()=>j9e,(le,_e)=>{_e(le,{class:"border-t border-border/30 px-6 py-4",children:(ye,Ue)=>{var Se=rtr(),be=ne(Se);Mn(be,{variant:"outline",onclick:()=>p(!1),children:(Oe,je)=>{Gt();var ct=fr("Cancel");H(Oe,ct)},$$slots:{default:!0}});var ke=he(be,2);{var Ae=Oe=>{Mn(Oe,{onclick:y,get disabled(){return w(a)},children:(je,ct)=>{var Fe=etr(),Xe=ne(Fe);{var et=we=>{Ao(we,{class:"mr-2 h-4 w-4 animate-spin"})},Ie=we=>{Eb(we,{class:"mr-2 h-4 w-4"})};Re(Xe,we=>{w(a)?we(et):we(Ie,-1)})}Gt(),H(je,Fe)},$$slots:{default:!0}})},tt=Oe=>{{let je=ee(()=>n.size===0||w(a));Mn(Oe,{onclick:T,get disabled(){return w(je)},children:(ct,Fe)=>{var Xe=ttr(),et=ne(Xe);{var Ie=Te=>{Ao(Te,{class:"mr-2 h-4 w-4 animate-spin"})},we=Te=>{Eb(Te,{class:"mr-2 h-4 w-4"})};Re(et,Te=>{w(a)?Te(Ie):Te(we,-1)})}var ce=he(et);at(()=>yt(ce,` Attach ${n.size>0?`(${n.size})`:"Resource"}`)),H(ct,Xe)},$$slots:{default:!0}})}};Re(ke,Oe=>{w(x)?Oe(Ae):Oe(tt,-1)})}H(ye,Se)},$$slots:{default:!0}})}),H($,B)},$$slots:{default:!0}})}),H(F,D)},$$slots:{default:!0}})}),H(t,A),Ke()}var atr=ae('<img alt="" class="h-3 w-3 shrink-0 rounded-sm"/>'),str=ae('<span class="flex items-center gap-1 text-xs text-muted-foreground">· <!> </span>'),otr=ae('<span class="rounded bg-muted px-1.5 py-0.5 text-xs"> </span>'),ltr=ae('<div class="flex items-center gap-2"><span class="text-xs text-muted-foreground"> </span> <!> <!></div>'),ctr=ae("<!> <!>",1),utr=ae('<div class="flex items-center justify-center"><img class="max-h-[70vh] max-w-full rounded object-contain"/></div>'),dtr=ae('<pre class="max-h-[70vh] overflow-auto rounded-md border bg-muted/30 p-4 font-mono text-sm break-words whitespace-pre-wrap"> </pre>'),htr=ae('<div class="py-8 text-center text-sm text-muted-foreground">No content available</div>'),ftr=ae('<!> <div class="flex items-center justify-end gap-1"><!> <!></div> <div class="overflow-auto"><!></div>',1);function ptr(t,e){We(e,!0);let r=ue(e,"open",15);const n=ee(()=>Br.getServerDisplayName(e.extra.serverName)),i=ee(()=>Br.getServerFavicon(e.extra.serverName));function a(){if(e.extra.mimeType?.includes(Od.JSON))return Od.JSON;if(e.extra.mimeType?.includes(Od.JAVASCRIPT))return Od.JAVASCRIPT;if(e.extra.mimeType?.includes(Od.TYPESCRIPT))return Od.TYPESCRIPT;const u=e.extra.name||e.extra.uri||"";return ioe(u)||"plaintext"}function s(){e.extra.content&&YDe(e.extra.content,e.extra.mimeType||yr.PLAIN,e.extra.name||TDe)}var o=Ee(),l=ne(o);Le(l,()=>ER,(u,d)=>{d(u,{get onOpenChange(){return e.onOpenChange},get open(){return r()},set open(h){r(h)},children:(h,f)=>{var p=Ee(),g=ne(p);Le(g,()=>bR,(m,_)=>{_(m,{class:"grid max-h-[90vh] max-w-5xl overflow-hidden sm:w-auto sm:max-w-6xl",children:(v,y)=>{var b=ftr(),E=ne(b);Le(E,()=>L5,(M,P)=>{P(M,{children:(N,$)=>{var U=ctr(),B=ne(U);Le(B,()=>M5,(z,G)=>{G(z,{class:"pr-8",children:(Y,W)=>{Gt();var Q=fr();at(()=>yt(Q,e.extra.name)),H(Y,Q)},$$slots:{default:!0}})});var V=he(B,2);Le(V,()=>yU,(z,G)=>{G(z,{children:(Y,W)=>{var Q=ltr(),ie=de(Q),Z=de(ie,!0);oe(ie);var re=he(ie,2);{var K=le=>{var _e=str(),ye=he(de(_e));{var Ue=be=>{var ke=atr();at(()=>Pr(ke,"src",w(i))),Ji("error",ke,Ae=>{Ae.currentTarget.style.display="none"}),Zm(ke),H(be,ke)};Re(ye,be=>{w(i)&&be(Ue)})}var Se=he(ye);oe(_e),at(()=>yt(Se,` ${w(n)??""}`)),H(le,_e)};Re(re,le=>{w(n)&&le(K)})}var j=he(re,2);{var se=le=>{var _e=otr(),ye=de(_e,!0);oe(_e),at(()=>yt(ye,e.extra.mimeType)),H(le,_e)};Re(j,le=>{e.extra.mimeType&&le(se)})}oe(Q),at(()=>yt(Z,e.extra.uri)),H(Y,Q)},$$slots:{default:!0}})}),H(N,U)},$$slots:{default:!0}})});var S=he(E,2),T=de(S);{let M=ee(()=>!!e.extra.content);Tb(T,{get text(){return e.extra.content},get canCopy(){return w(M)},ariaLabel:"Copy content"})}var C=he(T,2);{let M=ee(()=>!e.extra.content);Mn(C,{variant:"ghost",size:"sm",class:"h-7 w-7 p-0",onclick:s,get disabled(){return w(M)},title:"Download content",children:(P,N)=>{eA(P,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}})}oe(S);var x=he(S,2),A=de(x);{var R=M=>{var P=utr(),N=de(P);oe(P),at($=>{Pr(N,"src",$),Pr(N,"alt",e.extra.name)},[()=>e.extra.content.startsWith("data:")?e.extra.content:`data:${e.extra.mimeType||"image/png"};base64,${e.extra.content}`]),H(M,P)},I=ee(()=>PTt(e.extra.mimeType,e.extra.uri)&&e.extra.content),L=M=>{{let P=ee(a);Ck(M,{get code(){return e.extra.content},get language(){return w(P)},maxHeight:"70vh"})}},F=ee(()=>LTt(e.extra.mimeType,e.extra.uri)&&e.extra.content),O=M=>{var P=dtr(),N=de(P,!0);oe(P),at(()=>yt(N,e.extra.content)),H(M,P)},D=M=>{var P=htr();H(M,P)};Re(A,M=>{w(I)?M(R):w(F)?M(L,1):e.extra.content?M(O,2):M(D,-1)})}oe(x),H(v,b)},$$slots:{default:!0}})}),H(h,p)},$$slots:{default:!0}})}),H(t,o),Ke()}function gtr(t,e){We(e,!0);let r=ue(e,"open",15);var n=Ee(),i=ne(n);Le(i,()=>ER,(a,s)=>{s(a,{get onOpenChange(){return e.onOpenChange},get open(){return r()},set open(o){r(o)},children:(o,l)=>{var u=Ee(),d=ne(u);Le(d,()=>bR,(h,f)=>{f(h,{class:"z-999999 grid max-h-full max-w-full! grid-rows-[1fr_auto] overflow-hidden p-0 md:h-[90vh] md:max-w-[90vw]!",children:(p,g)=>{QXt(p,{get svgHtml(){return e.svgHtml}})},$$slots:{default:!0}})}),H(o,u)},$$slots:{default:!0}})}),H(t,n),Ke()}let _Ce=Me(Kr(RDe));const r7e={get url(){return w(_Ce)},set url(t){J(_Ce,t,!0)}};var mtr=ae('<div class="space-y-6"><!></div>'),_tr=ae(`<div class="mx-auto flex h-full max-h-[100dvh] w-full flex-col overflow-y-auto md:pl-8"><div class="flex flex-1 flex-col gap-4 md:flex-row"><!> <!> <div class="mx-auto max-w-3xl flex-1"><div class="space-y-6 p-4 md:p-6 md:pt-28"><div class="grid"><div class="mb-6 flex items-center gap-2 border-b border-border/30 pb-6 md:flex"><!> <h3 class="text-lg font-semibold"> </h3></div> <!></div> <div class="mt-8 border-t border-border/30 pt-6"><p class="text-xs text-muted-foreground">Settings are saved in browser's localStorage</p></div></div> <!></div></div></div>`);function vtr(t,e){We(e,!0);let r=ee(()=>e.initialSection??ba.params.section??"general"),n=ee(()=>h4.find(F=>F.slug===w(r))||h4[0]),i=Me(Kr({...Vn()})),a,s=!1;sr(()=>{xs()&&w(n).fields&&!s&&(s=!0,Fr.fetch().then(()=>Fr.fetchRouterModels()).then(()=>Fr.fetchModalitiesForLoadedModels()).then(()=>Fr.ensureFirstModelSelected()))});function o(F){w(i).theme=F,Sm(F)}function l(F,O){w(i)[F]=O}function u(){J(i,{...Vn()},!0),Sm(w(i).theme),a?.updateCarousel()}function d(){if(w(i).customJson&&typeof w(i).customJson=="string"&&w(i).customJson.trim())try{JSON.parse(w(i).customJson)}catch(O){alert("Invalid JSON in custom parameters. Please check the format and try again."),console.error(O);return}const F={...w(i)};for(const O of uvt)if(F[O]!==void 0&&F[O]!==""){const D=Number(F[O]);if(!isNaN(D))dvt.includes(O)?F[O]=Math.max(1,Math.round(D)):F[O]=D;else{alert(`Invalid numeric value for ${O}. Please enter a valid number.`);return}}Oc.updateMultipleConfig(F),Ws(r7e.url)}function h(){J(i,{...Vn()},!0)}v6t({get localConfig(){return w(i)},handleConfigChange:l,handleThemeChange:o});var f={reset:h},p=_tr(),g=de(p),m=de(g);{let F=ee(()=>e.getSectionHref??(O=>a0.settings(O.slug)));Str(m,{get sections(){return h4},isActive:O=>O.slug===w(r),get getHref(){return w(F)}})}var _=he(m,2);{let F=ee(()=>e.getSectionHref??(O=>a0.settings(O.slug)));Qr(Atr(_,{get sections(){return h4},isActive:O=>O.slug===w(r),get getHref(){return w(F)}}),O=>a=O,()=>a)}var v=he(_,2),y=de(v),b=de(y),E=de(b),S=de(E);Le(S,()=>w(n).icon,(F,O)=>{O(F,{class:"h-5 w-5"})});var T=he(S,2),C=de(T,!0);oe(T),oe(E);var x=he(E,2);{var A=F=>{Arr(F,{})},R=F=>{Vtr(F,{})},I=F=>{var O=mtr(),D=de(O);brr(D,{get fields(){return w(n).fields},get localConfig(){return w(i)},onConfigChange:l,onThemeChange:o}),oe(O),H(F,O)};Re(x,F=>{w(n).title===pf.TOOLS?F(A):w(n).title===pf.IMPORT_EXPORT?F(R,1):w(n).fields&&F(I,2)})}oe(b),Gt(2),oe(y);var L=he(y,2);return Ltr(L,{onReset:u,onSave:d}),oe(v),oe(g),oe(p),at(()=>yt(C,w(n).title)),sl(1,p,()=>Jm,()=>({duration:150})),H(t,p),Ke(f)}var ytr=ae('<a><!> <span class="ml-2"> </span></a>'),btr=ae('<button><!> <span class="ml-2"> </span></button>'),Etr=ae('<div class="sticky top-0 hidden w-64 flex-col self-start bg-background pt-10 pb-4 md:flex"><div class="flex items-center gap-2 pb-10"><!> <h1 class="text-2xl font-semibold">Settings</h1></div> <nav class="space-y-1"></nav></div>');function Str(t,e){We(e,!0);var r=Etr(),n=de(r),i=de(n);SB(i,{class:"h-6 w-6"}),Gt(2),oe(n);var a=he(n,2);fn(a,21,()=>e.sections,s=>s.title,(s,o)=>{var l=Ee(),u=ne(l);{var d=f=>{var p=ytr(),g=de(p);Le(g,()=>w(o).icon,(v,y)=>{y(v,{class:"h-4 w-4"})});var m=he(g,2),_=de(m,!0);oe(m),oe(p),at((v,y)=>{lr(p,1,`flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-left text-sm no-underline transition-colors hover:bg-accent ${v??""}`),Pr(p,"href",y),yt(_,w(o).title)},[()=>e.isActive(w(o))?"bg-accent text-accent-foreground":"text-muted-foreground",()=>e.getHref(w(o))]),H(f,p)},h=f=>{var p=btr(),g=de(p);Le(g,()=>w(o).icon,(v,y)=>{y(v,{class:"h-4 w-4"})});var m=he(g,2),_=de(m,!0);oe(m),oe(p),at(v=>{lr(p,1,`flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-left text-sm transition-colors hover:bg-accent ${v??""}`),yt(_,w(o).title)},[()=>e.isActive(w(o))?"bg-accent text-accent-foreground":"text-muted-foreground"]),tn("click",p,()=>e.onSectionChange?.(w(o).title)),H(f,p)};Re(u,f=>{e.getHref?f(d):f(h,-1)})}H(s,l)}),oe(a),oe(r),H(t,r),Ke()}Wi(["click"]);function Ttr(){let t=Me(!1),e=Me(!1),r=Me(void 0);function n(o){if(!w(r))return;const l=w(r).getBoundingClientRect(),u=o.getBoundingClientRect(),d=u.left+u.width/2,h=l.left+l.width/2,f=d-h;w(r).scrollBy({left:f,behavior:"smooth"})}function i(){w(r)&&w(r).scrollBy({left:-250,behavior:"smooth"})}function a(){w(r)&&w(r).scrollBy({left:250,behavior:"smooth"})}function s(){if(!w(r))return;const{scrollLeft:o,scrollWidth:l,clientWidth:u}=w(r);J(t,o>0),J(e,o<l-u-1)}return sr(()=>{w(r)&&s()}),{get canScrollLeft(){return w(t)},get canScrollRight(){return w(e)},get scrollContainer(){return w(r)},set scrollContainer(o){J(r,o,!0)},scrollToCenter:n,scrollLeft:i,scrollRight:a,updateScrollButtons:s}}var Ctr=ae("<a><!> <span> </span></a>"),wtr=ae("<button><!> <span> </span></button>"),xtr=ae('<div class="sticky top-0 z-10 flex flex-col bg-background md:hidden"><div class="flex items-center gap-2 px-4 pt-4 pb-2 md:pt-6"><!> <h1 class="text-xl font-semibold md:text-2xl">Settings</h1></div> <div class="border-b border-border/30 py-2"><div class="relative flex items-center" style="scroll-padding: 1rem;"><button aria-label="Scroll left"><!></button> <div class="scrollbar-hide overflow-x-auto py-2"><div class="flex min-w-max gap-2"></div></div> <button aria-label="Scroll right"><!></button></div></div></div>');function Atr(t,e){We(e,!0);const r=Ttr();Ns(async()=>{if(await Uh(),r.scrollContainer){const _=r.scrollContainer.querySelector('[data-active="true"]');_ instanceof HTMLElement&&r.scrollToCenter(_)}});function n(){setTimeout(r.updateScrollButtons,100)}var i={updateCarousel:n},a=xtr(),s=de(a),o=de(s);SB(o,{class:"h-5 w-5 md:h-6 md:w-6"}),Gt(2),oe(s);var l=he(s,2),u=de(l),d=de(u),h=de(d);yB(h,{class:"h-4 w-4"}),oe(d);var f=he(d,2),p=de(f);fn(p,21,()=>e.sections,_=>_.title,(_,v)=>{var y=Ee(),b=ne(y);{var E=T=>{var C=Ctr(),x=de(C);Le(x,()=>w(v).icon,(I,L)=>{L(I,{class:"h-4 w-4 flex-shrink-0"})});var A=he(x,2),R=de(A,!0);oe(A),oe(C),at((I,L,F)=>{lr(C,1,`flex cursor-pointer items-center gap-2 rounded-lg px-3 py-2 text-sm whitespace-nowrap no-underline transition-colors first:ml-4 last:mr-4 hover:bg-accent ${I??""}`),Pr(C,"data-active",L),Pr(C,"href",F),yt(R,w(v).title)},[()=>e.isActive(w(v))?"bg-accent text-accent-foreground":"text-muted-foreground",()=>e.isActive(w(v)),()=>e.getHref(w(v))]),tn("click",C,I=>{r.scrollToCenter(I.currentTarget)}),H(T,C)},S=T=>{var C=wtr(),x=de(C);Le(x,()=>w(v).icon,(I,L)=>{L(I,{class:"h-4 w-4 flex-shrink-0"})});var A=he(x,2),R=de(A,!0);oe(A),oe(C),at((I,L)=>{lr(C,1,`flex cursor-pointer items-center gap-2 rounded-lg px-3 py-2 text-sm whitespace-nowrap transition-colors first:ml-4 last:mr-4 hover:bg-accent ${I??""}`),Pr(C,"data-active",L),yt(R,w(v).title)},[()=>e.isActive(w(v))?"bg-accent text-accent-foreground":"text-muted-foreground",()=>e.isActive(w(v))]),tn("click",C,I=>{e.onSectionChange?.(w(v).title),r.scrollToCenter(I.currentTarget)}),H(T,C)};Re(b,T=>{e.getHref?T(E):T(S,-1)})}H(_,y)}),oe(p),oe(f),Qr(f,_=>r.scrollContainer=_,()=>r?.scrollContainer);var g=he(f,2),m=de(g);return fu(m,{class:"h-4 w-4"}),oe(g),oe(u),oe(l),oe(a),at(()=>{lr(d,1,`absolute left-2 z-10 flex h-6 w-6 items-center justify-center rounded-full bg-muted shadow-md backdrop-blur-sm transition-opacity hover:bg-accent ${r.canScrollLeft?"opacity-100":"pointer-events-none opacity-0"}`),lr(g,1,`absolute right-2 z-10 flex h-6 w-6 items-center justify-center rounded-full bg-muted shadow-md backdrop-blur-sm transition-opacity hover:bg-accent ${r.canScrollRight?"opacity-100":"pointer-events-none opacity-0"}`)}),tn("click",d,function(..._){r.scrollLeft?.apply(this,_)}),Ji("scroll",f,function(..._){r.updateScrollButtons?.apply(this,_)}),tn("click",g,function(..._){r.scrollRight?.apply(this,_)}),H(t,a),Ke(i)}Wi(["click"]);var Rtr=ae("<!> Custom",1);function vCe(t,e){let r=ue(e,"class",3,"");Hu(t,{variant:"secondary",get class(){return`h-5 bg-orange-100 px-1.5 py-0.5 text-xs text-orange-800 dark:bg-orange-900 dark:text-orange-200 ${r()??""}`},children:(n,i)=>{var a=Rtr(),s=ne(a);ok(s,{class:"mr-1 h-3 w-3"}),Gt(),H(n,a)},$$slots:{default:!0}})}var Otr=ae('<div><h3 class="mb-6 text-base font-semibold"> </h3> <div class="space-y-8"><!></div></div>');function yCe(t,e){var r=Otr(),n=de(r),i=de(n,!0);oe(n);var a=he(n,2),s=de(a);ft(s,()=>e.children),oe(a),oe(r),at(()=>yt(i,e.title)),H(t,r)}var Itr=ae("<!> Reset to default",1),Ntr=ae("<!> <!>",1),ktr=ae("<!> <!>",1),Dtr=ae("<!> <!>",1),Mtr=ae('<div class="sticky bottom-0 mx-auto mt-4 flex w-full justify-between p-6"><div class="flex gap-2"><!></div> <!></div> <!>',1);function Ltr(t,e){We(e,!0);let r=Me(!1);function n(){J(r,!0)}function i(){Oc.forceSyncWithServerDefaults(),e.onReset?.(),J(r,!1)}function a(){e.onSave?.()}var s=Mtr(),o=ne(s),l=de(o),u=de(l);Mn(u,{variant:"outline",onclick:n,children:(f,p)=>{var g=Itr(),m=ne(g);O9(m,{class:"h-3 w-3"}),Gt(),H(f,g)},$$slots:{default:!0}}),oe(l);var d=he(l,2);Mn(d,{onclick:a,children:(f,p)=>{Gt();var g=fr("Save settings");H(f,g)},$$slots:{default:!0}}),oe(o);var h=he(o,2);Le(h,()=>P0,(f,p)=>{p(f,{get open(){return w(r)},set open(g){J(r,g,!0)},children:(g,m)=>{var _=Ee(),v=ne(_);Le(v,()=>M0,(y,b)=>{b(y,{children:(E,S)=>{var T=Dtr(),C=ne(T);Le(C,()=>D0,(A,R)=>{R(A,{children:(I,L)=>{var F=Ntr(),O=ne(F);Le(O,()=>N0,(M,P)=>{P(M,{children:(N,$)=>{Gt();var U=fr("Reset Settings to Default");H(N,U)},$$slots:{default:!0}})});var D=he(O,2);Le(D,()=>L0,(M,P)=>{P(M,{children:(N,$)=>{Gt();var U=fr(`Are you sure you want to reset all settings to their default values? This will reset all
				parameters to the values provided by the server's /props endpoint and remove all your custom
				configurations.`);H(N,U)},$$slots:{default:!0}})}),H(I,F)},$$slots:{default:!0}})});var x=he(C,2);Le(x,()=>k0,(A,R)=>{R(A,{children:(I,L)=>{var F=ktr(),O=ne(F);Le(O,()=>bU,(M,P)=>{P(M,{children:(N,$)=>{Gt();var U=fr("Cancel");H(N,U)},$$slots:{default:!0}})});var D=he(O,2);Le(D,()=>V1,(M,P)=>{P(M,{onclick:i,children:(N,$)=>{Gt();var U=fr("Reset to Default");H(N,U)},$$slots:{default:!0}})}),H(I,F)},$$slots:{default:!0}})}),H(E,T)},$$slots:{default:!0}})}),H(g,_)},$$slots:{default:!0}})}),H(t,s),Ke()}var Ptr=ae("<!> ",1),Ftr=ae('<li class="truncate"> </li>'),Btr=ae('<li class="italic"> </li>'),Utr=ae('<div class="mt-4 grid overflow-x-auto rounded-lg border border-border/50 bg-muted/30 p-4"><h5 class="mb-2 text-sm font-medium"> </h5> <ul class="space-y-1 text-sm text-muted-foreground"><!> <!></ul></div>'),$tr=ae('<div><h4> </h4> <p class="mb-4 text-sm text-muted-foreground"> </p> <!> <!></div>');function RO(t,e){We(e,!0);let r=ee(()=>e.buttonClass??"justify-start justify-self-start md:w-auto"),n=ee(()=>e.buttonVariant??"outline");var i=$tr(),a=de(i),s=de(a,!0);oe(a);var o=he(a,2),l=de(o,!0);oe(o);var u=he(o,2);Mn(u,{get class(){return w(r)},get onclick(){return e.onclick},get variant(){return w(n)},children:(f,p)=>{var g=Ptr(),m=ne(g);Le(m,()=>e.IconComponent,(v,y)=>{y(v,{class:"mr-2 h-4 w-4"})});var _=he(m);at(()=>yt(_,` ${e.buttonText??""}`)),H(f,g)},$$slots:{default:!0}});var d=he(u,2);{var h=f=>{var p=Utr(),g=de(p),m=de(g);oe(g);var _=he(g,2),v=de(_);fn(v,17,()=>e.summary.items.slice(0,10),E=>E.id,(E,S)=>{var T=Ftr(),C=de(T);oe(T),at(()=>yt(C,`• ${(w(S).name||"Untitled conversation")??""}`)),H(E,T)});var y=he(v,2);{var b=E=>{var S=Btr(),T=de(S);oe(S),at(()=>yt(T,`... and ${e.summary.items.length-10} more`)),H(E,S)};Re(y,E=>{e.summary.items.length>10&&E(b)})}oe(_),oe(p),at(()=>yt(m,`${e.summary.verb??""}
				${e.summary.items.length??""} conversation${e.summary.items.length===1?"":"s"}`)),H(f,p)};Re(d,f=>{e.summary&&e.summary.show&&e.summary.items.length>0&&f(h)})}oe(i),at(()=>{lr(i,1,`grid gap-1 ${e.wrapperClass??""??""}`),lr(a,1,`mt-0 mb-2 text-sm font-medium ${e.titleClass??""??""}`),yt(s,e.title),yt(l,e.description)}),H(t,i),Ke()}var Gtr=ae("<!> <!> <!>",1),ztr=ae("<!> <!>",1),qtr=ae('<div class="space-y-12"><!> <!></div> <!> <!> <!> <!>',1);function Vtr(t,e){We(e,!0);let r=Me(Kr([])),n=Me(Kr([])),i=Me(!1),a=Me(!1),s=Me(!1),o=Me(!1),l=Me(Kr([])),u=Me(Kr(new Map)),d=Me(Kr([])),h=Me(!1),f=Me(!1),p=Me(!1),g=Me(!1),m=Me(!1);function _(){J(g,!0),J(m,!1)}function v(){J(g,!1);try{const $=Oc.exportSettings(w(m)),U=new Blob([JSON.stringify($,null,2)],{type:"application/json"}),B=URL.createObjectURL(U),V=document.createElement("a");V.href=B,V.download=`llama_settings_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(V),V.click(),document.body.removeChild(V),URL.revokeObjectURL(B),J(f,!0),J(p,!1),ha.success("Settings exported")}catch($){console.error("Failed to export settings:",$),ha.error("Failed to export settings")}}function y(){J(g,!1)}function b(){try{const $=document.createElement("input");$.type=R9.FILE,$.accept=xr.JSON,$.onchange=async U=>{const B=U.target?.files?.[0];if(B)try{const V=await B.text(),z=JSON.parse(V);if(!z||typeof z!="object"||!z.config){ha.error("Invalid settings file: missing config");return}Oc.importSettings(z),J(p,!0),J(f,!1),ha.success("Settings imported successfully")}catch(V){console.error("Failed to import settings:",V),ha.error("Failed to import settings")}},$.click()}catch($){console.error("Failed to open file picker:",$),ha.error("Failed to open file picker")}}async function E(){try{const $=R_();if($.length===0){ha.info("No conversations to export");return}const U=await Promise.all($.map(async B=>{const V=await Rt.getConversationMessages(B.id);return{conv:B,messages:V}}));J(u,Ove(U),!0),J(l,$,!0),J(s,!0)}catch($){console.error("Failed to load conversations:",$),alert("Failed to load conversations")}}async function S($){try{const U=await Promise.all($.map(async B=>{const V=await Rt.getConversationMessages(B.id);return{conv:Y_(B),messages:Y_(V)}}));Rt.downloadConversationFile(U),J(r,$,!0),J(i,!0),J(a,!1),J(s,!1)}catch(U){console.error("Export failed:",U),alert("Failed to export conversations")}}async function T(){try{const $=document.createElement("input");$.type=R9.FILE,$.accept=xr.JSON,$.onchange=async U=>{const B=U.target?.files?.[0];if(B)try{const V=await B.text(),z=JSON.parse(V);let G;if(Array.isArray(z))G=z;else if(z&&typeof z=="object"&&"conv"in z&&"messages"in z)G=[z];else throw new Error("Invalid file format: expected array of conversations or single conversation object");J(d,G,!0),J(l,G.map(Y=>Y.conv),!0),J(u,Ove(G),!0),J(o,!0)}catch(V){const z=V instanceof Error?V.message:"Unknown error";console.error("Failed to parse file:",V),alert(`Failed to parse file: ${z}`)}},$.click()}catch($){console.error("Import failed:",$),alert("Failed to import conversations")}}async function C($){try{const U=new Set($.map(V=>V.id)),B=Y_(w(d)).filter(V=>U.has(V.conv.id));await Rt.importConversationsData(B),J(n,$,!0),J(a,!0),J(i,!1),J(o,!1)}catch(U){console.error("Import failed:",U),alert("Failed to import conversations. Please check the file format.")}}async function x(){try{if(R_().length===0){ha.info("No conversations to delete");return}J(h,!0)}catch($){console.error("Failed to load conversations for deletion:",$),ha.error("Failed to load conversations")}}async function A(){try{await Rt.deleteAll(),J(h,!1)}catch($){console.error("Failed to delete conversations:",$)}}function R(){J(h,!1)}var I=qtr(),L=ne(I),F=de(L);yCe(F,{title:"Conversations",children:($,U)=>{var B=Gtr(),V=ne(B);{let Y=ee(()=>({show:w(i),verb:"Exported",items:w(r)}));RO(V,{title:"Export",description:"Download your conversations as a JSON file. This includes all messages, attachments, and conversation history.",get IconComponent(){return eA},buttonText:"Export conversations",onclick:E,get summary(){return w(Y)}})}var z=he(V,2);{let Y=ee(()=>({show:w(a),verb:"Imported",items:w(n)}));RO(z,{title:"Import",description:"Import one or more conversations from a previously exported JSON file. This will merge with your existing conversations.",get IconComponent(){return rZ},buttonText:"Import conversations",onclick:T,get summary(){return w(Y)}})}var G=he(z,2);RO(G,{title:"Delete All",description:"Permanently delete all conversations and their messages. This action cannot be undone. Consider exporting your conversations first if you want to keep a backup.",get IconComponent(){return pg},buttonText:"Delete all conversations",onclick:x,titleClass:"text-destructive",buttonVariant:"destructive",buttonClass:"text-destructive-foreground justify-start justify-self-start bg-destructive hover:bg-destructive/80 md:w-auto"}),H($,B)}});var O=he(F,2);yCe(O,{title:"Settings",children:($,U)=>{var B=ztr(),V=ne(B);{let G=ee(()=>({show:w(f),verb:"Exported",items:[]}));RO(V,{title:"Export",description:"Export your chat settings and preferences as a JSON file.",get IconComponent(){return eA},buttonText:"Export settings",onclick:_,get summary(){return w(G)}})}var z=he(V,2);{let G=ee(()=>({show:w(p),verb:"Imported",items:[]}));RO(z,{title:"Import",description:"Import chat settings from a previously exported JSON file. This will merge with your existing settings.",get IconComponent(){return rZ},buttonText:"Import settings",onclick:b,get summary(){return w(G)}})}H($,B)}}),oe(L);var D=he(L,2);TJt(D,{onConfirm:v,onCancel:y,get open(){return w(g)},set open($){J(g,$,!0)},get includeSensitiveData(){return w(m)},set includeSensitiveData($){J(m,$,!0)}});var M=he(D,2);gCe(M,{get conversations(){return w(l)},get messageCountMap(){return w(u)},get mode(){return jQ.EXPORT},onCancel:()=>J(s,!1),onConfirm:S,get open(){return w(s)},set open($){J(s,$,!0)}});var P=he(M,2);gCe(P,{get conversations(){return w(l)},get messageCountMap(){return w(u)},get mode(){return jQ.IMPORT},onCancel:()=>J(o,!1),onConfirm:C,get open(){return w(o)},set open($){J(o,$,!0)}});var N=he(P,2);Rb(N,{title:"Delete all conversations",description:"Are you sure you want to delete all conversations? This action cannot be undone and will permanently remove all your conversations and messages.",confirmText:"Delete All",cancelText:"Cancel",variant:"destructive",get icon(){return pg},onConfirm:A,onCancel:R,get open(){return w(h)},set open($){J(h,$,!0)}}),sl(1,L,()=>Jm,()=>({duration:150})),H(t,I),Ke()}var Htr=ae('<span class="absolute right-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function Ytr(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var i=Ee(),a=ne(i);{const s=(l,u)=>{let d=()=>u?.().selected,h=()=>u?.().highlighted;var f=Htr(),p=ne(f),g=de(p);{var m=b=>{a5(b,{class:"size-4"})};Re(g,b=>{d()&&b(m)})}oe(p);var _=he(p,2);{var v=b=>{var E=Ee(),S=ne(E);ft(S,()=>e.children,()=>({selected:d(),highlighted:h()})),H(b,E)},y=b=>{var E=fr();at(()=>yt(E,e.label||e.value)),H(b,E)};Re(_,b=>{e.children?b(v):b(y,-1)})}H(l,f)};let o=ee(()=>an("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e.class));Le(a,()=>lgt,(l,u)=>{u(l,Bt({get value(){return e.value},"data-slot":"select-item",get class(){return w(o)}},()=>n,{get ref(){return r()},set ref(d){r(d)},children:s,$$slots:{default:!0}}))})}H(t,i),Ke()}function Wtr(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("flex cursor-default items-center justify-center py-1",e.class));Le(a,()=>mgt,(o,l)=>{l(o,Bt({"data-slot":"select-scroll-up-button",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)},children:(u,d)=>{zmt(u,{class:"size-4"})},$$slots:{default:!0}}))})}H(t,i),Ke()}function Ktr(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class"]);var i=Ee(),a=ne(i);{let s=ee(()=>an("flex cursor-default items-center justify-center py-1",e.class));Le(a,()=>fgt,(o,l)=>{l(o,Bt({"data-slot":"select-scroll-down-button",get class(){return w(s)}},()=>n,{get ref(){return r()},set ref(u){r(u)},children:(u,d)=>{hu(u,{class:"size-4"})},$$slots:{default:!0}}))})}H(t,i),Ke()}var jtr=ae("<!> <!> <!>",1);function Xtr(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"sideOffset",3,4),i=xt(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children"]),a;Ns(()=>{const l={passive:!1},u=h=>{if(!r())return;const f=h.target;(!f||!r().contains(f))&&(h.preventDefault(),h.stopPropagation())},d=h=>{if(!r())return;const f=h.target;(!f||!r().contains(f))&&(h.preventDefault(),h.stopPropagation())};return document.addEventListener("wheel",u,l),document.addEventListener("touchmove",d,l),()=>{document.removeEventListener("wheel",u,l),document.removeEventListener("touchmove",d,l)}}),sr(()=>{const l=r();if(a?.(),!l)return;const u=h=>{h.stopPropagation()},d=h=>{h.stopPropagation()};l.addEventListener("wheel",u),l.addEventListener("touchmove",d),a=()=>{l.removeEventListener("wheel",u),l.removeEventListener("touchmove",d)}}),Vie(()=>{a?.()});var s=Ee(),o=ne(s);Le(o,()=>Tg,(l,u)=>{u(l,Bt(()=>e.portalProps,{children:(d,h)=>{var f=Ee(),p=ne(f);{let g=ee(()=>an("relative z-[var(--layer-popover,1000000)] max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-left-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));Le(p,()=>agt,(m,_)=>{_(m,Bt({get sideOffset(){return n()},"data-slot":"select-content",get class(){return w(g)}},()=>i,{get ref(){return r()},set ref(v){r(v)},children:(v,y)=>{var b=jtr(),E=ne(b);Wtr(E,{});var S=he(E,2);{let C=ee(()=>an("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));Le(S,()=>ugt,(x,A)=>{A(x,{get class(){return w(C)},children:(R,I)=>{var L=Ee(),F=ne(L);ft(F,()=>e.children??Tt),H(R,L)},$$slots:{default:!0}})})}var T=he(S,2);Ktr(T,{}),H(v,b)},$$slots:{default:!0}}))})}H(d,f)},$$slots:{default:!0}}))}),H(t,s),Ke()}var Qtr=ae("<!> <!>",1);function Ztr(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"size",3,"default"),i=ue(e,"variant",3,"default"),a=xt(e,["$$slots","$$events","$$legacy","ref","class","children","size","variant"]);const s=ee(()=>i()==="plain"?"group inline-flex w-full items-center justify-end gap-2 whitespace-nowrap px-0 py-0 text-sm font-medium text-muted-foreground transition-colors focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3 [&_svg:not([class*='text-'])]:text-muted-foreground":"flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground"),o=ee(()=>i()==="plain"?"size-3 opacity-60 transition-transform group-data-[state=open]:-rotate-180":"size-4 opacity-50");var l=Ee(),u=ne(l);{let d=ee(()=>an(w(s),e.class));Le(u,()=>mmt,(h,f)=>{f(h,Bt({"data-slot":"select-trigger",get"data-size"(){return n()},get class(){return w(d)}},()=>a,{get ref(){return r()},set ref(p){r(p)},children:(p,g)=>{var m=Qtr(),_=ne(m);ft(_,()=>e.children??Tt);var v=he(_,2);hu(v,{get class(){return w(o)}}),H(p,m)},$$slots:{default:!0}}))})}H(t,l),Ke()}const Jtr=pmt;var err=ae("<textarea></textarea>");function trr(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"value",15),i=xt(e,["$$slots","$$events","$$legacy","ref","value","class"]);var a=err();UF(a),Er(a,s=>({"data-slot":"textarea",class:s,...i}),[()=>an("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e.class)]),Qr(a,s=>r(s),()=>r()),WN(a,n),H(t,a),Ke()}var rrr=ae(" <!>",1),nrr=ae('<button type="button" class="absolute top-1/2 right-2 inline-flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded transition-colors hover:bg-muted" aria-label="Reset to default" title="Reset to default"><!></button>'),irr=ae('<p class="mt-1 text-xs text-muted-foreground"></p>'),arr=ae('<div class="flex items-center gap-2"><!> <!></div> <div class="relative w-full"><!> <!></div> <!>',1),srr=ae(" <!>",1),orr=ae('<p class="mt-1 text-xs text-muted-foreground"> </p>'),lrr=ae('<div class="mt-3 flex items-center gap-2"><!> <!></div>'),crr=ae("<!> <!> <!> <!>",1),urr=ae(" <!>",1),drr=ae('<div class="flex items-center gap-2"><!> </div>'),hrr=ae('<button type="button" class="absolute top-1/2 right-8 inline-flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded transition-colors hover:bg-muted" aria-label="Reset to default" title="Reset to default"><!></button>'),frr=ae('<div class="flex items-center gap-2"><!> </div>'),prr=ae('<div class="relative w-full md:w-auto"><!> <!></div> <!>',1),grr=ae('<p class="mt-1 text-xs text-muted-foreground"> </p>'),mrr=ae('<div class="flex items-center gap-2"><!> <!></div> <!> <!>',1),_rr=ae('<p class="text-xs text-muted-foreground"> </p>'),vrr=ae('<div class="flex items-start space-x-3"><!> <div class="space-y-1"><label class="flex cursor-pointer items-center gap-1.5 pt-1 pb-0.5 text-sm leading-none font-medium"> <!></label> <!></div></div>'),yrr=ae('<div class="space-y-2"><!></div>');function brr(t,e){We(e,!0);let r=ee(()=>{if(PMe(),Ya.isRouterMode){const a=hT();if(a)return Fr.getModelProps(a)?.default_generation_settings?.params??{}}return Ya.defaultParams??{}});var n=Ee(),i=ne(n);fn(i,17,()=>e.fields,a=>a.key,(a,s)=>{var o=yrr(),l=de(o);{var u=p=>{const g=ee(()=>String(e.localConfig[w(s).key]??"")),m=ee(()=>w(r)[w(s).key]),_=ee(()=>(()=>{if(w(m)==null||w(g)==="")return!1;const L=parseFloat(w(g)),F=isNaN(L)?w(g):Math.round(L*1e6)/1e6,O=typeof w(m)=="number"?Math.round(w(m)*1e6)/1e6:w(m);return F!==O})());var v=arr(),y=ne(v),b=de(y);Af(b,{get for(){return w(s).key},class:"flex items-center gap-1.5 text-sm font-medium",children:(L,F)=>{Gt();var O=rrr(),D=ne(O),M=he(D);{var P=N=>{u4(N,{class:"h-3.5 w-3.5 text-muted-foreground"})};Re(M,N=>{w(s).isExperimental&&N(P)})}at(()=>yt(D,`${w(s).label??""} `)),H(L,O)},$$slots:{default:!0}});var E=he(b,2);{var S=L=>{vCe(L,{})};Re(E,L=>{w(_)&&L(S)})}oe(y);var T=he(y,2),C=de(T);{let L=ee(()=>w(s).isPositiveInteger?"number":"text"),F=ee(()=>w(r)[w(s).key]!=null?`Default: ${m_(w(r)[w(s).key])}`:""),O=ee(()=>w(_)?"pr-8":"");x0(C,Bt({get id(){return w(s).key},get type(){return w(L)}},()=>w(s).isPositiveInteger?{min:"1",step:"1"}:{},{get value(){return w(g)},oninput:D=>{e.onConfigChange(w(s).key,D.currentTarget.value)},get placeholder(){return w(F)},get class(){return`w-full ${w(O)??""}`}}))}var x=he(C,2);{var A=L=>{var F=nrr(),O=de(F);O9(O,{class:"h-3 w-3"}),oe(F),tn("click",F,()=>{Oc.resetParameterToServerDefault(w(s).key),e.onConfigChange(w(s).key,"")}),H(L,F)};Re(x,L=>{w(_)&&L(A)})}oe(T);var R=he(T,2);{var I=L=>{var F=irr();Qy(F,()=>w(s).help||J0[w(s).key],!0),oe(F),H(L,F)};Re(R,L=>{(w(s).help||J0[w(s).key])&&L(I)})}H(p,v)},d=p=>{var g=crr(),m=ne(g);{var _=T=>{Af(T,{get for(){return w(s).key},class:"block flex items-center gap-1.5 text-sm font-medium",children:(C,x)=>{Gt();var A=srr(),R=ne(A),I=he(R);{var L=F=>{u4(F,{class:"h-3.5 w-3.5 text-muted-foreground"})};Re(I,F=>{w(s).isExperimental&&F(L)})}at(()=>yt(R,`${w(s).label??""} `)),H(C,A)},$$slots:{default:!0}})};Re(m,T=>{w(s).label&&T(_)})}var v=he(m,2);{let T=ee(()=>String(e.localConfig[w(s).key]??""));trr(v,{get id(){return w(s).key},get value(){return w(T)},onchange:C=>e.onConfigChange(w(s).key,C.currentTarget.value),placeholder:"",class:"min-h-[10rem] w-full md:max-w-3xl"})}var y=he(v,2);{var b=T=>{var C=orr(),x=de(C,!0);oe(C),at(()=>yt(x,w(s).help||J0[w(s).key])),H(T,C)};Re(y,T=>{(w(s).help||J0[w(s).key])&&T(b)})}var E=he(y,2);{var S=T=>{var C=lrr(),x=de(C);{let R=ee(()=>!!(e.localConfig.showSystemMessage??!0));$h(x,{id:"showSystemMessage",get checked(){return w(R)},onCheckedChange:I=>e.onConfigChange(ar.SHOW_SYSTEM_MESSAGE,!!I)})}var A=he(x,2);Af(A,{for:"showSystemMessage",class:"cursor-pointer text-sm font-normal",children:(R,I)=>{Gt();var L=fr("Show system message in conversations");H(R,L)},$$slots:{default:!0}}),oe(C),H(T,C)};Re(E,T=>{w(s).key===ar.SYSTEM_MESSAGE&&T(S)})}H(p,g)},h=p=>{const g=ee(()=>w(s).options?.find(R=>R.value===e.localConfig[w(s).key])),m=ee(()=>e.localConfig[w(s).key]),_=ee(()=>w(r)[w(s).key]),v=ee(()=>w(_)==null||w(m)===""||w(m)===void 0?!1:w(m)!==w(_));var y=mrr(),b=ne(y),E=de(b);Af(E,{get for(){return w(s).key},class:"flex items-center gap-1.5 text-sm font-medium",children:(R,I)=>{Gt();var L=urr(),F=ne(L),O=he(F);{var D=M=>{u4(M,{class:"h-3.5 w-3.5 text-muted-foreground"})};Re(O,M=>{w(s).isExperimental&&M(D)})}at(()=>yt(F,`${w(s).label??""} `)),H(R,L)},$$slots:{default:!0}});var S=he(E,2);{var T=R=>{vCe(R,{})};Re(S,R=>{w(v)&&R(T)})}oe(b);var C=he(b,2);Le(C,()=>Jtr,(R,I)=>{I(R,{type:"single",get value(){return w(m)},onValueChange:L=>{w(s).key===ar.THEME&&L&&e.onThemeChange?e.onThemeChange(L):e.onConfigChange(w(s).key,L)},children:(L,F)=>{var O=prr(),D=ne(O),M=de(D);Le(M,()=>Ztr,(U,B)=>{B(U,{class:"w-full",children:(V,z)=>{var G=drr(),Y=de(G);{var W=ie=>{const Z=ee(()=>w(g).icon);var re=Ee(),K=ne(re);Le(K,()=>w(Z),(j,se)=>{se(j,{class:"h-4 w-4"})}),H(ie,re)};Re(Y,ie=>{w(g)?.icon&&ie(W)})}var Q=he(Y);oe(G),at(ie=>yt(Q,` ${ie??""}`),[()=>w(g)?.label||`Select ${w(s).label.toLowerCase()}`]),H(V,G)},$$slots:{default:!0}})});var P=he(M,2);{var N=U=>{var B=hrr(),V=de(B);O9(V,{class:"h-3 w-3"}),oe(B),tn("click",B,()=>{Oc.resetParameterToServerDefault(w(s).key),e.onConfigChange(w(s).key,"")}),H(U,B)};Re(P,U=>{w(v)&&U(N)})}oe(D);var $=he(D,2);Le($,()=>Xtr,(U,B)=>{B(U,{children:(V,z)=>{var G=Ee(),Y=ne(G);{var W=Q=>{var ie=Ee(),Z=ne(ie);fn(Z,17,()=>w(s).options,re=>re.value,(re,K)=>{var j=Ee(),se=ne(j);Le(se,()=>Ytr,(le,_e)=>{_e(le,{get value(){return w(K).value},get label(){return w(K).label},children:(ye,Ue)=>{var Se=frr(),be=de(Se);{var ke=tt=>{const Oe=ee(()=>w(K).icon);var je=Ee(),ct=ne(je);Le(ct,()=>w(Oe),(Fe,Xe)=>{Xe(Fe,{class:"h-4 w-4"})}),H(tt,je)};Re(be,tt=>{w(K).icon&&tt(ke)})}var Ae=he(be);oe(Se),at(()=>yt(Ae,` ${w(K).label??""}`)),H(ye,Se)},$$slots:{default:!0}})}),H(re,j)}),H(Q,ie)};Re(Y,Q=>{w(s).options&&Q(W)})}H(V,G)},$$slots:{default:!0}})}),H(L,O)},$$slots:{default:!0}})});var x=he(C,2);{var A=R=>{var I=grr(),L=de(I,!0);oe(I),at(()=>yt(L,w(s).help||J0[w(s).key])),H(R,I)};Re(x,R=>{(w(s).help||J0[w(s).key])&&R(A)})}H(p,y)},f=p=>{var g=vrr(),m=de(g);{let C=ee(()=>!!e.localConfig[w(s).key]);$h(m,{get id(){return w(s).key},get checked(){return w(C)},onCheckedChange:x=>e.onConfigChange(w(s).key,x),class:"mt-1"})}var _=he(m,2),v=de(_),y=de(v),b=he(y);{var E=C=>{u4(C,{class:"h-3.5 w-3.5 text-muted-foreground"})};Re(b,C=>{w(s).isExperimental&&C(E)})}oe(v);var S=he(v,2);{var T=C=>{var x=_rr(),A=de(x,!0);oe(x),at(()=>yt(A,w(s).help||J0[w(s).key])),H(C,x)};Re(S,C=>{(w(s).help||J0[w(s).key])&&C(T)})}oe(_),oe(g),at(()=>{Pr(v,"for",w(s).key),yt(y,`${w(s).label??""} `)}),H(p,g)};Re(l,p=>{w(s).type===_n.INPUT?p(u):w(s).type===_n.TEXTAREA?p(d,1):w(s).type===_n.SELECT?p(h,2):w(s).type===_n.CHECKBOX&&p(f,3)})}oe(o),H(a,o)}),H(t,n),Ke()}Wi(["click"]);var Err=ae('<div class="py-8 text-center text-sm text-muted-foreground">No tools available</div>'),Srr=ae('<!> <span class="inline-flex min-w-0 items-center gap-1.5 font-medium"><!></span> <span class="ml-auto shrink-0 text-xs text-muted-foreground"> </span>',1),Trr=ae('<div class="flex items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-muted/50"><!> <div class="flex w-16 shrink-0 justify-center"><!></div> <div class="flex w-20 shrink-0 justify-center"><!></div></div>'),Crr=ae('<div class="ml-4 border-l border-border/50 pl-2"><div class="flex items-center gap-2 px-2 py-1 text-xs text-muted-foreground"><span class="min-w-0 flex-1">Tool</span> <span class="w-16 shrink-0 text-center">Enabled</span> <span class="w-20 shrink-0 text-center">Always allow</span></div> <!></div>'),wrr=ae("<!> <!>",1),xrr=ae('<div class="space-y-2"></div>');function Arr(t,e){We(e,!0);let r=new uo,n=ee(()=>ua.toolGroups);function i(u){r.has(u)?r.delete(u):r.add(u)}var a=Ee(),s=ne(a);{var o=u=>{var d=Err();H(u,d)},l=u=>{var d=xrr();fn(d,21,()=>w(n),h=>h.label,(h,f)=>{const p=ee(()=>r.has(w(f).label));var g=Ee(),m=ne(g);Le(m,()=>kf,(_,v)=>{v(_,{get open(){return w(p)},onOpenChange:()=>i(w(f).label),children:(y,b)=>{var E=wrr(),S=ne(E);Le(S,()=>Df,(C,x)=>{x(C,{class:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm hover:bg-muted/50",children:(A,R)=>{const I=ee(()=>w(f).serverId?Br.getServerFavicon(w(f).serverId):null);var L=Srr(),F=ne(L);{var O=U=>{hu(U,{class:"h-3.5 w-3.5 shrink-0"})},D=U=>{fu(U,{class:"h-3.5 w-3.5 shrink-0"})};Re(F,U=>{w(p)?U(O):U(D,-1)})}var M=he(F,2),P=de(M);EU(P,{iconClass:"h-4 w-4",iconRounded:"rounded-sm",showVersion:!1,get displayName(){return w(f).label},get faviconUrl(){return w(I)}}),oe(M);var N=he(M,2),$=de(N);oe(N),at(()=>yt($,`${w(f).tools.length??""} tool${w(f).tools.length!==1?"s":""}`)),H(A,L)},$$slots:{default:!0}})});var T=he(S,2);Le(T,()=>Mf,(C,x)=>{x(C,{children:(A,R)=>{var I=Crr(),L=he(de(I),2);fn(L,17,()=>w(f).tools,F=>F.key,(F,O)=>{const D=ee(()=>w(O).definition.function.name),M=ee(()=>ua.isToolEnabled(w(O).key)),P=ee(()=>w(O).key),N=ee(()=>HT.hasTool(w(P)));var $=Trr(),U=de($);aA(U,{get text(){return w(D)},class:"flex-1",showTooltip:!0});var B=he(U,2),V=de(B);$h(V,{get checked(){return w(M)},onCheckedChange:()=>ua.toggleTool(w(O).key),class:"h-4 w-4"}),oe(B);var z=he(B,2),G=de(z);$h(G,{get checked(){return w(N)},onCheckedChange:()=>{w(N)?HT.revokeTool(w(P)):HT.allowTool(w(P))},class:"h-4 w-4"}),oe(z),oe($),H(F,$)}),oe(I),H(A,I)},$$slots:{default:!0}})}),H(y,E)},$$slots:{default:!0}})}),H(h,g)}),oe(d),H(u,d)};Re(s,u=>{w(n).length===0?u(o):u(l,-1)})}H(t,a),Ke()}function Rrr(t,e){const r=e.trim().toLowerCase();return r?t.filter(n=>n.model.toLowerCase().includes(r)||n.name?.toLowerCase().includes(r)||n.aliases?.some(i=>i.toLowerCase().includes(r))||n.tags?.some(i=>i.toLowerCase().includes(r))):t}function Orr(t,e,r){const n=[];for(let l=0;l<t.length;l++)r(t[l].model)&&n.push({option:t[l],flatIndex:l});const i=new Set(n.map(l=>l.option.model)),a=[];for(let l=0;l<t.length;l++)e.has(t[l].model)&&!i.has(t[l].model)&&a.push({option:t[l],flatIndex:l});const s=[],o=new As;for(let l=0;l<t.length;l++){const u=t[l];if(i.has(u.model)||e.has(u.model))continue;const d=u.parsedId?.orgName??"";o.has(d)||o.set(d,[]),o.get(d).push({option:u,flatIndex:l})}for(const[l,u]of o)s.push({orgName:l||null,items:u});return{loaded:n,favorites:a,available:s}}function n7e(t){const e=ee(()=>Ef().filter(S=>Fr.getModelProps(S.model)?.ui!==!1)),r=ee(LMe),n=ee(z3t),i=ee(nb),a=ee(xs),s=ee(FMe),o=ee(()=>t.currentModel()),l=ee(()=>t.onModelChange?.()),u=ee(()=>{if(!w(a)||!w(o))return!1;const S=w(e).find(T=>T.model===w(o));return S?S.id===w(i):!1}),d=ee(()=>!w(a)||!w(o)?!0:w(e).some(S=>S.model===w(o)));let h=Me(!1),f=Me(""),p=Me(!1),g=Me(null);const m=ee(()=>Rrr(w(e),w(f))),_=ee(()=>Orr(w(m),Fr.favoriteModelIds,S=>Fr.isModelLoaded(S)));function v(S){J(g,S,!0),J(p,!0)}Ns(()=>{Fr.fetch().catch(S=>{console.error("Unable to load models:",S)})});function y(S){w(r)||w(n)||(w(a)?(J(f,""),S&&Fr.fetchRouterModels().then(()=>{Fr.fetchModalitiesForLoadedModels()}),t.onOpenChange?.(S)):J(p,S,!0))}async function b(S){const T=w(e).find(x=>x.id===S);if(!T)return;let C=!0;w(l)?await w(l)(T.id,T.model)===!1&&(C=!1):await Fr.selectModelById(T.id),C&&(y(!1),requestAnimationFrame(()=>{document.querySelector('[data-slot="chat-form"] textarea')?.focus()})),!w(l)&&w(a)&&!Fr.isModelLoaded(T.model)&&(J(h,!0),Fr.loadModel(T.model).catch(x=>console.error("Failed to load model:",x)).finally(()=>J(h,!1)))}function E(){if(!w(a)){const S=w(s)||w(o);return S?{id:w(s)?"current":"offline-current",model:S,name:S.split("/").pop()||S,capabilities:[]}:void 0}if(w(o))return w(d)?w(e).find(S=>S.model===w(o)):{id:"not-in-cache",model:w(o),name:w(o).split("/").pop()||w(o),capabilities:[]};if(w(i))return w(e).find(S=>S.id===w(i))}return{get options(){return w(e)},get loading(){return w(r)},get updating(){return w(n)},get activeId(){return w(i)},get isRouter(){return w(a)},get serverModel(){return w(s)},get isHighlightedCurrentModelActive(){return w(u)},get isCurrentModelInCache(){return w(d)},get filteredOptions(){return w(m)},get groupedFilteredOptions(){return w(_)},get isLoadingModel(){return w(h)},get searchTerm(){return w(f)},get showModelDialog(){return w(p)},get infoModelId(){return w(g)},setSearchTerm(S){J(f,S,!0)},setShowModelDialog(S){J(p,S,!0)},handleInfoClick:v,handleSelect:b,handleOpenChange:y,isFavorite(S){return Fr.favoriteModelIds.has(S)},getDisplayOption:E}}var Irr=ae('<div class="flex items-center gap-2 text-xs text-muted-foreground"><!> Loading models…</div>'),Nrr=ae('<span style="max-width: min(calc(100cqw - 10rem), 20rem)"><!></span>'),krr=ae('<p class="text-xs text-muted-foreground">No models available.</p>'),Drr=ae('<span class="min-w-0 font-medium">Select model</span>'),Mrr=ae("<!> <!> <!>",1),Lrr=ae('<p class="font-mono"> </p>'),Prr=ae("<!> <!>",1),Frr=ae('<button type="button" class="flex w-full cursor-not-allowed items-center bg-red-400/10 p-2 text-left text-sm text-red-400" role="option" aria-selected="true" aria-disabled="true" disabled=""><!> <span class="ml-2 text-xs whitespace-nowrap opacity-70">(not available)</span></button>'),Brr=ae('<p class="px-4 py-3 text-sm text-muted-foreground">No models found.</p>'),Urr=ae('<div class="models-list"><!> <!> <!></div>'),$rr=ae("<!> <!>",1),Grr=ae("<button><!> <!> <!></button>"),zrr=ae('<p class="font-mono"> </p>'),qrr=ae("<!> <!>",1),Vrr=ae("<div><!></div> <!>",1);function i7e(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"currentModel",3,null),i=ue(e,"disabled",3,!1),a=ue(e,"forceForegroundText",3,!1),s=ue(e,"useGlobalSelection",3,!1),o=Me(!1),l=Me(-1);const u=n7e({currentModel:()=>n(),useGlobalSelection:()=>s(),onModelChange:()=>e.onModelChange,onOpenChange:S=>{J(o,S,!0),J(l,-1)}});sr(()=>{u.searchTerm,J(l,-1)});function d(){u.handleOpenChange(!0)}function h(S){if(!S.isComposing){if(S.key===wi.ARROW_DOWN){if(S.preventDefault(),u.filteredOptions.length===0)return;w(l)===-1||w(l)===u.filteredOptions.length-1?J(l,0):J(l,w(l)+1)}else if(S.key===wi.ARROW_UP){if(S.preventDefault(),u.filteredOptions.length===0)return;w(l)===-1||w(l)===0?J(l,u.filteredOptions.length-1):J(l,w(l)-1)}else if(S.key===wi.ENTER)if(S.preventDefault(),w(l)>=0&&w(l)<u.filteredOptions.length){const T=u.filteredOptions[w(l)];u.handleSelect(T.id)}else u.filteredOptions.length>0&&J(l,0)}}var f={open:d},p=Vrr(),g=ne(p),m=de(g);{var _=S=>{var T=Irr(),C=de(T);Ao(C,{class:"h-3.5 w-3.5 animate-spin"}),Gt(),oe(T),H(S,T)},v=S=>{var T=Ee(),C=ne(T);{var x=R=>{var I=Nrr(),L=de(I);BT(L,{class:"h-3.5 w-3.5 shrink-0"}),oe(I),at(()=>lr(I,1,Fn(["inline-flex items-center gap-1.5 rounded-sm bg-muted-foreground/10 px-1.5 py-1 text-xs text-muted-foreground",r()]))),H(R,I)},A=R=>{var I=krr();H(R,I)};Re(C,R=>{n()?R(x):R(A,-1)})}H(S,T)},y=S=>{const T=ee(()=>u.getDisplayOption());var C=Ee(),x=ne(C);{var A=I=>{var L=Ee(),F=ne(L);Le(F,()=>fR,(O,D)=>{D(O,{get onOpenChange(){return u.handleOpenChange},get open(){return w(o)},set open(M){J(o,M,!0)},children:(M,P)=>{var N=$rr(),$=ne(N);Le($,()=>mo,(B,V)=>{V(B,{children:(z,G)=>{var Y=Prr(),W=ne(Y);{const Z=(re,K)=>{let j=()=>K?.().props;var se=Ee(),le=ne(se);{let _e=ee(()=>["inline-grid cursor-pointer grid-cols-[1fr_auto_1fr] items-center gap-1.5 rounded-sm bg-background px-1.5 py-1 text-xs shadow-sm transition hover:bg-muted-foreground/20 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-muted-foreground/15 dark:text-secondary-foreground",u.isCurrentModelInCache?(a()||u.isHighlightedCurrentModelActive,"text-foreground"):"bg-red-400/10 !text-red-400 hover:bg-red-400/20 hover:text-red-400",w(o)&&"text-foreground","max-w-[min(calc(100vw-4rem) md:max-w-[min(calc(100cqw-9rem),25rem)]"]),ye=ee(()=>i()||u.updating);Le(le,()=>w5,(Ue,Se)=>{Se(Ue,Bt(j,{get class(){return w(_e)},get disabled(){return w(ye)},children:(be,ke)=>{var Ae=Mrr(),tt=ne(Ae);BT(tt,{class:"h-3.5 w-3.5 shrink-0"});var Oe=he(tt,2);{var je=Ie=>{ab(Ie,{get modelId(){return w(T).model},class:"min-w-0 overflow-hidden",hideOrgName:!1,hideQuantization:!0})},ct=Ie=>{var we=Drr();H(Ie,we)};Re(Oe,Ie=>{w(T)?Ie(je):Ie(ct,-1)})}var Fe=he(Oe,2);{var Xe=Ie=>{Ao(Ie,{class:"h-3 w-3.5 shrink-0 animate-spin"})},et=Ie=>{hu(Ie,{class:"h-3 w-3.5 shrink-0"})};Re(Fe,Ie=>{u.updating||u.isLoadingModel?Ie(Xe):Ie(et,-1)})}H(be,Ae)},$$slots:{default:!0}}))})}H(re,se)};Le(W,()=>po,(re,K)=>{K(re,{child:Z,$$slots:{child:!0}})})}var Q=he(W,2);{var ie=Z=>{var re=Ee(),K=ne(re);Le(K,()=>go,(j,se)=>{se(j,{children:(le,_e)=>{var ye=Lrr(),Ue=de(ye,!0);oe(ye),at(()=>yt(Ue,w(T).model)),H(le,ye)},$$slots:{default:!0}})}),H(Z,re)};Re(Q,Z=>{w(T)&&Z(ie)})}H(z,Y)},$$slots:{default:!0}})});var U=he($,2);Le(U,()=>C5,(B,V)=>{V(B,{align:"end",class:"w-full max-w-[100vw] pt-0 sm:w-max sm:max-w-[calc(100vw-2rem)]",children:(z,G)=>{{let Y=ee(()=>u.filteredOptions.length===0&&u.isCurrentModelInCache);o7e(z,{get searchValue(){return u.searchTerm},onSearchChange:W=>u.setSearchTerm(W),placeholder:"Search models...",onSearchKeyDown:h,emptyMessage:"No models found.",get isEmpty(){return w(Y)},children:(W,Q)=>{var ie=Urr();{const le=(_e,ye=Tt,Ue=Tt)=>{const Se=ee(()=>{const{option:tt,flatIndex:Oe}=ye();return{option:tt,flatIndex:Oe}}),be=ee(()=>n()===w(Se).option.model||u.activeId===w(Se).option.id),ke=ee(()=>w(Se).flatIndex===w(l)),Ae=ee(()=>u.isFavorite(w(Se).option.model));s7e(_e,{get option(){return w(Se).option},get isSelected(){return w(be)},get isHighlighted(){return w(ke)},get isFav(){return w(Ae)},get hideOrgName(){return Ue()},get onSelect(){return u.handleSelect},get onInfoClick(){return u.handleInfoClick},onMouseEnter:()=>J(l,w(Se).flatIndex,!0),onKeyDown:tt=>{(tt.key===wi.ENTER||tt.key===wi.SPACE)&&(tt.preventDefault(),u.handleSelect(w(Se).option.id))}})};var Z=de(ie);{var re=_e=>{var ye=Frr(),Ue=de(ye);ab(Ue,{get modelId(){return n()},class:"flex-1",hideQuantization:!0}),Gt(2),oe(ye),H(_e,ye)};Re(Z,_e=>{!u.isCurrentModelInCache&&n()&&_e(re)})}var K=he(Z,2);{var j=_e=>{var ye=Brr();H(_e,ye)};Re(K,_e=>{u.filteredOptions.length===0&&_e(j)})}var se=he(K,2);a7e(se,{get groups(){return u.groupedFilteredOptions},get currentModel(){return n()},get activeId(){return u.activeId},sectionHeaderClass:"my-1.5 px-2 py-2 text-[13px] font-semibold text-muted-foreground/70 select-none",get onSelect(){return u.handleSelect},get onInfoClick(){return u.handleInfoClick},get renderOption(){return le}}),oe(ie)}H(W,ie)},$$slots:{default:!0}})}},$$slots:{default:!0}})}),H(M,N)},$$slots:{default:!0}})}),H(I,L)},R=I=>{var L=Ee(),F=ne(L);Le(F,()=>mo,(O,D)=>{D(O,{children:(M,P)=>{var N=qrr(),$=ne(N);{const V=(z,G)=>{let Y=()=>G?.().props;var W=Grr(),Q=()=>u.handleOpenChange(!0);Er(W,()=>({...Y(),class:["inline-flex cursor-pointer items-center gap-1.5 rounded-sm bg-background px-1.5 py-1 text-xs shadow-sm transition hover:bg-muted-foreground/20 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-muted-foreground/15 dark:text-secondary-foreground",u.isCurrentModelInCache?(a()||u.isHighlightedCurrentModelActive,"text-foreground"):"bg-red-400/10 !text-red-400 hover:bg-red-400/20 hover:text-red-400",w(o)&&"text-foreground"],style:"max-width: min(calc(100cqw - 6.5rem), 32rem)",onclick:Q,disabled:i()||u.updating}));var ie=de(W);BT(ie,{class:"h-3.5 w-3.5 shrink-0"});var Z=he(ie,2);{var re=se=>{ab(se,{get modelId(){return w(T).model},class:"min-w-0 overflow-hidden",hideOrgName:!1,hideQuantization:!0})};Re(Z,se=>{w(T)&&se(re)})}var K=he(Z,2);{var j=se=>{Ao(se,{class:"h-3 w-3.5 shrink-0 animate-spin"})};Re(K,se=>{u.updating&&se(j)})}oe(W),H(z,W)};Le($,()=>po,(z,G)=>{G(z,{child:V,$$slots:{child:!0}})})}var U=he($,2);{var B=V=>{var z=Ee(),G=ne(z);Le(G,()=>go,(Y,W)=>{W(Y,{children:(Q,ie)=>{var Z=zrr(),re=de(Z,!0);oe(Z),at(()=>yt(re,w(T).model)),H(Q,Z)},$$slots:{default:!0}})}),H(V,z)};Re(U,V=>{w(T)&&V(B)})}H(M,N)},$$slots:{default:!0}})}),H(I,L)};Re(x,I=>{u.isRouter?I(A):I(R,-1)})}H(S,C)};Re(m,S=>{u.loading&&u.options.length===0&&u.isRouter?S(_):u.options.length===0&&u.isRouter?S(v,1):S(y,-1)})}oe(g);var b=he(g,2);{var E=S=>{t7e(S,{get open(){return u.showModelDialog},onOpenChange:T=>u.setShowModelDialog(T),get modelId(){return u.infoModelId}})};Re(b,S=>{u.showModelDialog&&S(E)})}return at(()=>lr(g,1,Fn(["relative inline-flex flex-col items-end gap-1",r()]))),H(t,p),Ke(f)}var Hrr=ae("<p>Loaded models</p> <!>",1),Yrr=ae("<p>Favorite models</p> <!>",1),Wrr=ae("<p> </p>"),Krr=ae("<!> <!>",1),jrr=ae("<p>Available models</p> <!>",1),Xrr=ae("<!> <!> <!>",1);function a7e(t,e){We(e,!0);const r=(p,g=Tt,m=Tt)=>{const _=ee(()=>{const{option:b}=g();return{option:b}}),v=ee(()=>e.currentModel===w(_).option.model||e.activeId===w(_).option.id),y=ee(()=>Fr.favoriteModelIds.has(w(_).option.model));s7e(p,{get option(){return w(_).option},get isSelected(){return w(v)},isHighlighted:!1,get isFav(){return w(y)},get hideOrgName(){return m()},get onSelect(){return e.onSelect},get onInfoClick(){return e.onInfoClick},onMouseEnter:()=>{},onKeyDown:()=>{}})};let n=ue(e,"sectionHeaderClass",3,"my-1 px-2 py-2 text-[13px] font-semibold text-muted-foreground/70 select-none"),i=ue(e,"orgHeaderClass",3,"px-2 py-2 text-[11px] font-semibold text-muted-foreground/50 select-none [&:not(:first-child)]:mt-1"),a=ee(()=>e.renderOption??r);var s=Xrr(),o=ne(s);{var l=p=>{var g=Hrr(),m=ne(g),_=he(m,2);fn(_,17,()=>e.groups.loaded,v=>`loaded-${v.option.id}`,(v,y)=>{var b=Ee(),E=ne(b);ft(E,()=>w(a),()=>w(y),()=>!1),H(v,b)}),at(()=>lr(m,1,Fn(n()))),H(p,g)};Re(o,p=>{e.groups.loaded.length>0&&p(l)})}var u=he(o,2);{var d=p=>{var g=Yrr(),m=ne(g),_=he(m,2);fn(_,17,()=>e.groups.favorites,v=>`fav-${v.option.id}`,(v,y)=>{var b=Ee(),E=ne(b);ft(E,()=>w(a),()=>w(y),()=>!0),H(v,b)}),at(()=>lr(m,1,Fn(n()))),H(p,g)};Re(u,p=>{e.groups.favorites.length>0&&p(d)})}var h=he(u,2);{var f=p=>{var g=jrr(),m=ne(g),_=he(m,2);fn(_,17,()=>e.groups.available,v=>v.orgName,(v,y)=>{var b=Krr(),E=ne(b);{var S=C=>{var x=Wrr(),A=de(x,!0);oe(x),at(()=>{lr(x,1,Fn(i())),yt(A,w(y).orgName)}),H(C,x)};Re(E,C=>{w(y).orgName&&C(S)})}var T=he(E,2);fn(T,17,()=>w(y).items,C=>C.option.id,(C,x)=>{var A=Ee(),R=ne(A);ft(R,()=>w(a),()=>w(x),()=>!0),H(C,A)}),H(v,b)}),at(()=>lr(m,1,Fn(n()))),H(p,g)};Re(h,p=>{e.groups.available.length>0&&p(f)})}H(t,s),Ke()}var Qrr=ae('<div class="flex w-4 items-center justify-center"><!> <div class="hidden group-hover:flex"><!></div></div>'),Zrr=ae('<div class="flex w-4 items-center justify-center"><span class="h-2 w-2 rounded-full bg-orange-400 group-hover:hidden"></span> <div class="hidden group-hover:flex"><!></div></div>'),Jrr=ae('<div class="flex w-4 items-center justify-center"><span class="h-2 w-2 rounded-full bg-green-500 group-hover:hidden"></span> <div class="hidden group-hover:flex"><!></div></div>'),enr=ae('<div class="flex w-4 items-center justify-center"><span class="h-2 w-2 rounded-full bg-muted-foreground/50 group-hover:hidden"></span> <div class="hidden group-hover:flex"><!></div></div>'),tnr=ae('<div role="option" tabindex="0"><!> <div class="flex shrink-0 items-center gap-1"><div class="pointer-events-none flex items-center justify-center gap-0.75 pl-2 opacity-0 group-hover:pointer-events-auto group-hover:opacity-100"><!> <!></div> <!></div></div>');function s7e(t,e){We(e,!0);let r=ue(e,"hideOrgName",3,!1),n=ee(G3t),i=ee(()=>w(n).find(R=>R.id===e.option.model)?.status?.value??null),a=ee(()=>Fr.isModelOperationInProgress(e.option.model)),s=ee(()=>w(i)===Sl.FAILED),o=ee(()=>w(i)===Sl.SLEEPING),l=ee(()=>(w(i)===Sl.LOADED||w(o))&&!w(a)),u=ee(()=>w(i)===Sl.LOADING||w(a));var d=tnr(),h=de(d);ab(h,{get modelId(){return e.option.model},get hideOrgName(){return r()},get aliases(){return e.option.aliases},get tags(){return e.option.tags},class:"flex-1"});var f=he(h,2),p=de(f),g=de(p);{var m=A=>{as(A,{iconSize:"h-2.5 w-2.5",get icon(){return Xmt},tooltip:"Remove from favorites",class:"h-3 w-3 hover:text-foreground",onclick:()=>Fr.toggleFavorite(e.option.model)})},_=A=>{as(A,{iconSize:"h-2.5 w-2.5",get icon(){return Qmt},tooltip:"Add to favorites",class:"h-3 w-3 hover:text-foreground",onclick:()=>Fr.toggleFavorite(e.option.model)})};Re(g,A=>{e.isFav?A(m):A(_,-1)})}var v=he(g,2);{var y=A=>{as(A,{iconSize:"h-2.5 w-2.5",get icon(){return eb},tooltip:"Model information",class:"h-3 w-3 hover:text-foreground",onclick:()=>e.onInfoClick(e.option.model)})};Re(v,A=>{w(l)&&e.onInfoClick&&A(y)})}oe(p);var b=he(p,2);{var E=A=>{Ao(A,{class:"h-4 w-4 animate-spin text-muted-foreground"})},S=A=>{var R=Qrr(),I=de(R);Gse(I,{class:"h-3.5 w-3.5 text-red-500 group-hover:hidden"});var L=he(I,2),F=de(L);as(F,{iconSize:"h-2.5 w-2.5",get icon(){return iDe},tooltip:"Retry loading model",class:"h-3 w-3 text-red-500 hover:text-foreground",onclick:()=>Fr.loadModel(e.option.model),stopPropagationOnClick:!0}),oe(L),oe(R),H(A,R)},T=A=>{var R=Zrr(),I=he(de(R),2),L=de(I);as(L,{iconSize:"h-2.5 w-2.5",get icon(){return bme},tooltip:"Unload model",class:"h-3 w-3 text-red-500 hover:text-red-600",onclick:F=>{F?.stopPropagation(),Fr.unloadModel(e.option.model)}}),oe(I),oe(R),H(A,R)},C=A=>{var R=Jrr(),I=he(de(R),2),L=de(I);as(L,{iconSize:"h-2.5 w-2.5",get icon(){return bme},tooltip:"Unload model",class:"h-3 w-3 text-red-500 hover:text-red-600",onclick:()=>Fr.unloadModel(e.option.model),stopPropagationOnClick:!0}),oe(I),oe(R),H(A,R)},x=A=>{var R=enr(),I=he(de(R),2),L=de(I);as(L,{iconSize:"h-2.5 w-2.5",get icon(){return l0t},tooltip:"Load model",class:"h-3 w-3",onclick:()=>Fr.loadModel(e.option.model),stopPropagationOnClick:!0}),oe(I),oe(R),H(A,R)};Re(b,A=>{w(u)?A(E):w(s)?A(S,1):w(o)?A(T,2):w(l)?A(C,3):A(x,-1)})}oe(f),oe(d),at(()=>{lr(d,1,Fn(["group flex w-full items-center gap-2 rounded-sm p-2 text-left text-sm transition focus:outline-none","cursor-pointer hover:bg-muted focus:bg-muted",(e.isSelected||e.isHighlighted)&&"bg-accent text-accent-foreground",!(e.isSelected||e.isHighlighted)&&"hover:bg-accent hover:text-accent-foreground",w(l)?"text-popover-foreground":"text-muted-foreground"])),Pr(d,"aria-selected",e.isSelected||e.isHighlighted)}),tn("click",d,()=>e.onSelect(e.option.id)),Ji("mouseenter",d,function(...A){e.onMouseEnter?.apply(this,A)}),tn("keydown",d,function(...A){e.onKeyDown?.apply(this,A)}),tn("click",p,A=>A.stopPropagation()),H(t,d),Ke()}Wi(["click","keydown"]);var rnr=ae('<div class="flex items-center gap-2 text-xs text-muted-foreground"><!> Loading models…</div>'),nnr=ae('<p class="text-xs text-muted-foreground">No models available.</p>'),inr=ae('<span class="min-w-0 font-medium">Select model</span>'),anr=ae("<!> <!>",1),snr=ae('<button type="button" class="flex w-full cursor-not-allowed items-center rounded-md bg-red-400/10 px-3 py-2.5 text-left text-sm text-red-400" disabled=""><span class="min-w-0 flex-1 truncate"> </span> <span class="ml-2 text-xs whitespace-nowrap opacity-70">(not available)</span></button> <div class="my-1 h-px bg-border"></div>',1),onr=ae('<p class="px-3 py-3 text-center text-sm text-muted-foreground">No models found.</p>'),lnr=ae('<!> <div class="flex flex-col gap-1 pb-4"><div class="mb-3 px-4"><!></div> <div class="max-h-[60vh] overflow-y-auto px-2"><!> <!> <!></div></div>',1),cnr=ae('<button type="button" style="max-width: min(calc(100cqw - 9rem), 20rem)"><!> <!> <!></button> <!>',1),unr=ae('<button style="max-width: min(calc(100cqw - 6.5rem), 32rem)"><!> <!> <!></button>'),dnr=ae("<div><!></div> <!>",1);function hnr(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"currentModel",3,null),i=ue(e,"disabled",3,!1),a=ue(e,"forceForegroundText",3,!1),s=ue(e,"useGlobalSelection",3,!1),o=Me(!1);const l=n7e({currentModel:()=>n(),useGlobalSelection:()=>s(),onModelChange:()=>e.onModelChange,onOpenChange:E=>{J(o,E,!0)}});function u(){l.handleOpenChange(!0)}function d(E){E||l.handleOpenChange(!1)}var h={open:u},f=dnr(),p=ne(f),g=de(p);{var m=E=>{var S=rnr(),T=de(S);Ao(T,{class:"h-3.5 w-3.5 animate-spin"}),Gt(),oe(S),H(E,S)},_=E=>{var S=nnr();H(E,S)},v=E=>{const S=ee(()=>l.getDisplayOption());var T=Ee(),C=ne(T);{var x=R=>{var I=cnr(),L=ne(I),F=de(L);BT(F,{class:"h-3.5 w-3.5 shrink-0"});var O=he(F,2);{var D=B=>{var V=inr();H(B,V)},M=B=>{{let V=ee(()=>w(S)?.model||"");ab(B,{class:"text-xs",get modelId(){return w(V)},hideQuantization:!0,hideTags:!0,hideOrgName:!0})}};Re(O,B=>{w(S)?B(M,-1):B(D)})}var P=he(O,2);{var N=B=>{Ao(B,{class:"h-3 w-3.5 shrink-0 animate-spin"})},$=B=>{hu(B,{class:"h-3 w-3.5 shrink-0"})};Re(P,B=>{l.updating||l.isLoadingModel?B(N):B($,-1)})}oe(L);var U=he(L,2);Le(U,()=>LLe,(B,V)=>{V(B,{onOpenChange:d,get open(){return w(o)},set open(z){J(o,z,!0)},children:(z,G)=>{var Y=Ee(),W=ne(Y);Le(W,()=>NLe,(Q,ie)=>{ie(Q,{side:"bottom",class:"max-h-[85vh] gap-1",children:(Z,re)=>{var K=lnr(),j=ne(K);Le(j,()=>kLe,(tt,Oe)=>{Oe(tt,{children:(je,ct)=>{var Fe=anr(),Xe=ne(Fe);Le(Xe,()=>DLe,(Ie,we)=>{we(Ie,{children:(ce,Te)=>{Gt();var fe=fr("Select Model");H(ce,fe)},$$slots:{default:!0}})});var et=he(Xe,2);Le(et,()=>MLe,(Ie,we)=>{we(Ie,{class:"sr-only",children:(ce,Te)=>{Gt();var fe=fr("Choose a model to use for the conversation");H(ce,fe)},$$slots:{default:!0}})}),H(je,Fe)},$$slots:{default:!0}})});var se=he(j,2),le=de(se),_e=de(le);hR(_e,{placeholder:"Search models...",get value(){return l.searchTerm},onInput:tt=>l.setSearchTerm(tt)}),oe(le);var ye=he(le,2),Ue=de(ye);{var Se=tt=>{var Oe=snr(),je=ne(Oe),ct=de(je),Fe=de(ct,!0);oe(ct),Gt(2),oe(je),Gt(2),at(()=>yt(Fe,w(S)?.name||n())),H(tt,Oe)};Re(Ue,tt=>{!l.isCurrentModelInCache&&n()&&tt(Se)})}var be=he(Ue,2);{var ke=tt=>{var Oe=onr();H(tt,Oe)};Re(be,tt=>{l.filteredOptions.length===0&&tt(ke)})}var Ae=he(be,2);a7e(Ae,{get groups(){return l.groupedFilteredOptions},get currentModel(){return n()},get activeId(){return l.activeId},sectionHeaderClass:"px-2 py-2 text-xs font-semibold text-muted-foreground/60 select-none",orgHeaderClass:"px-2 py-2 text-xs font-semibold text-muted-foreground/60 select-none [&:not(:first-child)]:mt-2",get onSelect(){return l.handleSelect},get onInfoClick(){return l.handleInfoClick}}),oe(ye),oe(se),H(Z,K)},$$slots:{default:!0}})}),H(z,Y)},$$slots:{default:!0}})}),at(()=>{lr(L,1,Fn(["inline-flex cursor-pointer items-center gap-1.5 rounded-sm bg-background px-1.5 py-1 text-xs shadow-sm transition hover:bg-muted-foreground/20 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-muted-foreground/15 dark:text-secondary-foreground",l.isCurrentModelInCache?(a()||l.isHighlightedCurrentModelActive,"text-foreground"):"bg-red-400/10 !text-red-400 hover:bg-red-400/20 hover:text-red-400",w(o)&&"text-foreground"])),L.disabled=i()||l.updating}),tn("click",L,()=>l.handleOpenChange(!0)),H(R,I)},A=R=>{var I=unr(),L=de(I);BT(L,{class:"h-3.5 w-3.5 shrink-0"});var F=he(L,2);{let M=ee(()=>w(S)?.model||"");ab(F,{get modelId(){return w(M)},class:"font-medium",hideQuantization:!0})}var O=he(F,2);{var D=M=>{Ao(M,{class:"h-3 w-3.5 shrink-0 animate-spin"})};Re(O,M=>{l.updating&&M(D)})}oe(I),at(()=>{lr(I,1,Fn(["inline-flex cursor-pointer items-center gap-1.5 rounded-sm bg-background px-1.5 py-1 text-xs shadow-sm transition hover:bg-muted-foreground/20 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-muted-foreground/15 dark:text-secondary-foreground",l.isCurrentModelInCache?(a()||l.isHighlightedCurrentModelActive,"text-foreground"):"bg-red-400/10 !text-red-400 hover:bg-red-400/20 hover:text-red-400"])),I.disabled=i()||l.updating}),tn("click",I,()=>l.handleOpenChange(!0)),H(R,I)};Re(C,R=>{l.isRouter?R(x):R(A,-1)})}H(E,T)};Re(g,E=>{l.loading&&l.options.length===0&&l.isRouter?E(m):l.options.length===0&&l.isRouter?E(_,1):E(v,-1)})}oe(p);var y=he(p,2);{var b=E=>{t7e(E,{get open(){return l.showModelDialog},onOpenChange:S=>l.setShowModelDialog(S),get modelId(){return l.infoModelId}})};Re(y,E=>{l.showModelDialog&&E(b)})}return at(()=>lr(p,1,Fn(["relative inline-flex flex-col items-end gap-1",r()]))),H(t,f),Ke(h)}Wi(["click"]);var fnr=ae("<span> </span>"),pnr=ae("<span> </span>"),gnr=ae("<span> </span>"),mnr=ae("<span> </span>"),_nr=ae("<span> </span>"),vnr=ae('<span><span class="min-w-0 truncate font-medium"><!> </span> <!> <!> <!> <!></span>');function ab(t,e){We(e,!0);let r=ue(e,"hideOrgName",3,!1),n=ue(e,"showRaw",3,void 0),i=ue(e,"class",3,""),a=xt(e,["$$slots","$$events","$$legacy","modelId","hideOrgName","showRaw","hideQuantization","hideTags","aliases","tags","class"]);const s="inline-flex w-fit shrink-0 items-center justify-center whitespace-nowrap rounded-md border border-border/50 px-1 py-0 text-[10px] font-mono bg-foreground/15 dark:bg-foreground/10 text-foreground [a&]:hover:bg-foreground/25",o="inline-flex w-fit shrink-0 items-center justify-center whitespace-nowrap rounded-md border border-border/50 px-1 py-0 text-[10px] font-mono text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground";let l=ee(()=>qv.parseModelId(e.modelId)),u=ee(()=>n()??Vn().showRawModelNames??!1),d=ee(()=>e.hideQuantization??!Vn().showModelQuantization),h=ee(()=>e.hideTags??!Vn().showModelTags),f=ee(()=>[...new Set(e.aliases??[])]),p=ee(()=>[...new Set([...w(l).tags??[],...e.tags??[]])]),g=ee(()=>w(f).length===1?w(f)[0]:null),m=ee(()=>w(g)??w(l).modelName??e.modelId);var _=Ee(),v=ne(_);{var y=E=>{aA(E,Bt({get class(){return`font-medium ${i()??""}`},showTooltip:!1,get text(){return e.modelId}},()=>a))},b=E=>{var S=vnr();Er(S,()=>({class:`flex min-w-0 flex-wrap items-center gap-1 ${i()??""}`,...a}));var T=de(S),C=de(T);{var x=$=>{var U=fr();at(()=>yt(U,`${w(l).orgName??""}/`)),H($,U)};Re(C,$=>{!r()&&w(l).orgName&&$(x)})}var A=he(C,1,!0);oe(T);var R=he(T,2);{var I=$=>{var U=fnr();lr(U,1,Fn(s));var B=de(U);oe(U),at(()=>yt(B,`${w(l).params??""}${w(l).activatedParams?`-${w(l).activatedParams}`:""}`)),H($,U)};Re(R,$=>{w(l).params&&$(I)})}var L=he(R,2);{var F=$=>{var U=pnr();lr(U,1,Fn(s));var B=de(U,!0);oe(U),at(()=>yt(B,w(l).quantization)),H($,U)};Re(L,$=>{w(l).quantization&&!w(d)&&$(F)})}var O=he(L,2);{var D=$=>{var U=Ee(),B=ne(U);{var V=z=>{var G=gnr();lr(G,1,Fn(s));var Y=de(G,!0);oe(G),at(()=>yt(Y,w(l).modelName??e.modelId)),H(z,G)};Re(B,z=>{w(g)!==w(l).modelName&&z(V)})}H($,U)},M=$=>{var U=Ee(),B=ne(U);fn(B,16,()=>w(f),V=>V,(V,z)=>{var G=mnr();lr(G,1,Fn(s));var Y=de(G,!0);oe(G),at(()=>yt(Y,z)),H(V,G)}),H($,U)};Re(O,$=>{w(g)?$(D):w(f).length>1&&$(M,1)})}var P=he(O,2);{var N=$=>{var U=Ee(),B=ne(U);fn(B,16,()=>w(p),V=>V,(V,z)=>{var G=_nr();lr(G,1,Fn(o));var Y=de(G,!0);oe(G),at(()=>yt(Y,z)),H(V,G)}),H($,U)};Re(P,$=>{w(p).length>0&&!w(h)&&$(N)})}oe(S),at(()=>yt(A,w(m))),H(E,S)};Re(v,E=>{w(u)?E(y):E(b,-1)})}H(t,_),Ke()}var ynr=ae("<!> <!>",1),bnr=ae("<!> <!>",1);function Enr(t,e){We(e,!0);const r=(f,p=Tt)=>{yZ(f,Bt(()=>p()??{},{get class(){return n()},get onclick(){return e.onclick},icon:m=>{BT(m,{class:"h-3 w-3"})},children:(m,_)=>{var v=ynr(),y=ne(v);{var b=T=>{ab(T,{get modelId(){return w(s)}})};Re(y,T=>{w(s)&&T(b)})}var E=he(y,2);{var S=T=>{{let C=ee(()=>w(s)||"");Tb(T,{get text(){return w(C)},ariaLabel:"Copy model name"})}};Re(E,T=>{i()&&T(S)})}H(m,v)},$$slots:{icon:!0,default:!0}}))};let n=ue(e,"class",3,""),i=ue(e,"showCopyIcon",3,!1),a=ue(e,"showTooltip",3,!1),s=ee(()=>e.model||Fr.singleModelName),o=ee(()=>Ya.isModelMode),l=ee(()=>w(s)&&(e.model!==void 0||w(o)));var u=Ee(),d=ne(u);{var h=f=>{var p=Ee(),g=ne(p);{var m=v=>{var y=Ee(),b=ne(y);Le(b,()=>mo,(E,S)=>{S(E,{children:(T,C)=>{var x=bnr(),A=ne(x);{const I=(L,F)=>{r(L,()=>F?.().props)};Le(A,()=>po,(L,F)=>{F(L,{child:I,$$slots:{child:!0}})})}var R=he(A,2);Le(R,()=>go,(I,L)=>{L(I,{children:(F,O)=>{Gt();var D=fr();at(()=>yt(D,e.onclick?"Click for model details":w(s))),H(F,D)},$$slots:{default:!0}})}),H(T,x)},$$slots:{default:!0}})}),H(v,y)},_=v=>{r(v)};Re(g,v=>{a()?v(m):v(_,-1)})}H(f,p)};Re(d,f=>{w(l)&&f(h)})}H(t,u),Ke()}var Snr=ae('<div class="px-2 py-3 text-center text-sm text-muted-foreground"> </div>'),Tnr=ae("<!> <!>",1),Cnr=ae('<div class="sticky top-0 z-10 mb-2 bg-popover p-1 pt-2"><!></div> <div class="overflow-y-auto"><!> <!></div> <!>',1);function o7e(t,e){We(e,!0);let r=ue(e,"placeholder",3,"Search..."),n=ue(e,"searchValue",15,""),i=ue(e,"emptyMessage",3,"No items found"),a=ue(e,"isEmpty",3,!1);var s=Cnr(),o=ne(s),l=de(o);hR(l,{get placeholder(){return r()},get onInput(){return e.onSearchChange},get onKeyDown(){return e.onSearchKeyDown},get value(){return n()},set value(m){n(m)}}),oe(o);var u=he(o,2),d=de(u);ft(d,()=>e.children);var h=he(d,2);{var f=m=>{var _=Snr(),v=de(_,!0);oe(_),at(()=>yt(v,i())),H(m,_)};Re(h,m=>{a()&&m(f)})}oe(u);var p=he(u,2);{var g=m=>{var _=Tnr(),v=ne(_);Le(v,()=>ZB,(b,E)=>{E(b,{})});var y=he(v,2);ft(y,()=>e.footer),H(m,_)};Re(p,m=>{e.footer&&m(g)})}H(t,s),Ke()}const bCe=(t,e=Tt,r=Tt)=>{var n=Ee(),i=ne(n);Le(i,e,(a,s)=>{s(a,{get class(){return r()}})}),H(t,n)};var wnr=ae('<span class="sr-only"> </span>'),xnr=ae("<!> <!>",1),Anr=ae("<p> </p>"),Rnr=ae("<!> <!>",1),Onr=ae('<div class="flex items-center gap-2"><!> </div> <!>',1),Inr=ae("<!> <!>",1),Nnr=ae("<!> <!>",1);function knr(t,e){We(e,!0);let r=ue(e,"triggerClass",3,""),n=ue(e,"align",3,"end"),i=ue(e,"open",15,!1);var a=Ee(),s=ne(a);Le(s,()=>fR,(o,l)=>{l(o,{get open(){return i()},set open(u){i(u)},children:(u,d)=>{var h=Nnr(),f=ne(h);Le(f,()=>mo,(g,m)=>{m(g,{children:(_,v)=>{var y=Rnr(),b=ne(y);{const T=(C,x)=>{let A=()=>x?.().props;var R=Ee(),I=ne(R);Le(I,()=>w5,(L,F)=>{F(L,Bt(A,{get class(){return`flex h-6 w-6 cursor-pointer items-center justify-center rounded-md p-0 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground ${r()??""}`},onclick:O=>O.stopPropagation(),children:(O,D)=>{var M=xnr(),P=ne(M);bCe(P,()=>e.triggerIcon,()=>"h-3 w-3");var N=he(P,2);{var $=U=>{var B=wnr(),V=de(B,!0);oe(B),at(()=>yt(V,e.triggerTooltip)),H(U,B)};Re(N,U=>{e.triggerTooltip&&U($)})}H(O,M)},$$slots:{default:!0}}))}),H(C,R)};Le(b,()=>po,(C,x)=>{x(C,{child:T,$$slots:{child:!0}})})}var E=he(b,2);{var S=T=>{var C=Ee(),x=ne(C);Le(x,()=>go,(A,R)=>{R(A,{children:(I,L)=>{var F=Anr(),O=de(F,!0);oe(F),at(()=>yt(O,e.triggerTooltip)),H(I,F)},$$slots:{default:!0}})}),H(T,C)};Re(E,T=>{e.triggerTooltip&&T(S)})}H(_,y)},$$slots:{default:!0}})});var p=he(f,2);Le(p,()=>C5,(g,m)=>{m(g,{get align(){return n()},class:"z-[999999] w-48",children:(_,v)=>{var y=Ee(),b=ne(y);fn(b,19,()=>e.actions,E=>E.label,(E,S,T)=>{var C=Inr(),x=ne(C);{var A=I=>{var L=Ee(),F=ne(L);Le(F,()=>ZB,(O,D)=>{D(O,{})}),H(I,L)};Re(x,I=>{w(S).separator&&w(T)>0&&I(A)})}var R=he(x,2);Le(R,()=>Sf,(I,L)=>{L(I,{get onclick(){return w(S).onclick},get variant(){return w(S).variant},get disabled(){return w(S).disabled},class:"flex items-center justify-between hover:[&>kbd]:opacity-100",children:(F,O)=>{var D=Onr(),M=ne(D),P=de(M);bCe(P,()=>w(S).icon,()=>`h-4 w-4 ${w(S).variant==="destructive"?"text-destructive":""}`);var N=he(P);oe(M);var $=he(M,2);{var U=B=>{YZ(B,{get keys(){return w(S).shortcut},get variant(){return w(S).variant}})};Re($,B=>{w(S).shortcut&&B(U)})}at(()=>yt(N,` ${w(S).label??""}`)),H(F,D)},$$slots:{default:!0}})}),H(E,C)}),H(_,y)},$$slots:{default:!0}})}),H(u,h)},$$slots:{default:!0}})}),H(t,a),Ke()}function Dnr(t){return 1-Math.sqrt(1-t*t)}var Mnr=ae("<div><!></div>"),Lnr=ae('<div></div> <aside><div class="mt-12 flex flex-col items-center gap-1"></div></aside>',1);function Pnr(t,e){We(e,!0);let r=ue(e,"sidebarOpen",3,!1);const{handleKeydown:n}=fle({activateSearchMode:()=>e.onSearchClick()});let i=Me(!1),a=ee(()=>!r());J(a,!1),Ns(()=>{J(a,!r()),setTimeout(()=>{J(i,!0)},nq*pZ.length)});var s=Lnr();Ji("keydown",_b,n);var o=ne(s),l=he(o,2),u=de(l);fn(u,23,()=>pZ,d=>d.tooltip,(d,h,f)=>{const p=ee(()=>w(h).route?()=>Ws(w(h).route):e.onSearchClick),g=ee(()=>w(h).activeRouteId?ba.route.id===w(h).activeRouteId:w(h).activeRoutePrefix?!!ba.route.id?.startsWith(w(h).activeRoutePrefix):!1);var m=Ee(),_=ne(m);{var v=y=>{var b=Mnr(),E=de(b);{let S=ee(()=>w(g)?"bg-accent text-accent-foreground":"");as(E,{get icon(){return w(h).icon},get tooltip(){return w(h).tooltip},get tooltipSide(){return $se.RIGHT},size:"lg",iconSize:"h-4 w-4",get class(){return`h-9 w-9 rounded-full hover:bg-accent! ${w(S)??""}`},get onclick(){return w(p)}})}oe(b),sl(1,b,()=>Jm,()=>({duration:mvt,delay:w(i)?0:nq+w(f)*nq,easing:Dnr})),H(y,b)};Re(_,y=>{w(a)&&y(v)})}H(d,m)}),oe(u),oe(l),at(()=>{lr(o,1,`hidden shrink-0 transition-[width] duration-200 ease-linear md:block ${r()?"w-0":"w-[calc(var(--sidebar-width-icon)+1.5rem)]"}`),lr(l,1,`fixed top-0 bottom-0 left-0 z-10 hidden w-[calc(var(--sidebar-width-icon)+1.5rem)] flex-col items-center justify-between py-3 transition-opacity duration-200 ease-linear md:flex ${r()?"pointer-events-none opacity-0":"opacity-100"}`)}),H(t,s),Ke()}const ECe=(t,e=Tt)=>{var r=Ee(),n=ne(r);Le(n,e,(i,a)=>{a(i,{class:"h-4 w-4"})}),H(t,r)};var Fnr=ae('<div class="flex items-center gap-2"><!> </div> <!>',1),Bnr=ae('<div class="flex items-center gap-2"><!> </div> <!>',1),Unr=ae('<div class="my-1 space-y-1"><!></div>');function $nr(t,e){We(e,!0);let r=ue(e,"isSearchModeActive",15),n=ue(e,"searchQuery",15),i=ue(e,"isCancelAlwaysVisible",3,!1),a=Me(null);function s(){r(!1),n(""),e.onSearchDeactivated?.()}function o(){r(!0),queueMicrotask(()=>w(a)?.focus())}var l={activateSearch:o},u=Unr(),d=de(u);{var h=p=>{hR(p,{onClose:s,onKeyDown:g=>g.key==="Escape"&&s(),placeholder:"Search conversations...",get isCancelAlwaysVisible(){return i()},get value(){return n()},set value(g){n(g)},get ref(){return w(a)},set ref(g){J(a,g,!0)}})},f=p=>{var g=Ee(),m=ne(g);fn(m,17,()=>pZ,_=>_.route,(_,v)=>{var y=Ee(),b=ne(y);{var E=T=>{Mn(T,{class:"w-full justify-between px-2 backdrop-blur-none! hover:[&>kbd]:opacity-100",onclick:o,variant:"ghost",children:(C,x)=>{var A=Fnr(),R=ne(A),I=de(R);ECe(I,()=>w(v).icon);var L=he(I);oe(R);var F=he(R,2);{var O=D=>{YZ(D,{get keys(){return w(v).keys}})};Re(F,D=>{w(v).keys&&D(O)})}at(()=>yt(L,` ${w(v).tooltip??""}`)),H(C,A)},$$slots:{default:!0}})},S=T=>{{let C=ee(()=>w(v).activeRouteId&&ba.route.id===w(v).activeRouteId||w(v).activeRoutePrefix&&ba.route.id?.startsWith(w(v).activeRoutePrefix)?"bg-accent text-accent-foreground":"");Mn(T,{get class(){return`w-full justify-between px-2 backdrop-blur-none! hover:[&>kbd]:opacity-100 ${w(C)??""}`},get href(){return w(v).route},get onclick(){return e.handleMobileSidebarItemClick},variant:"ghost",children:(x,A)=>{var R=Bnr(),I=ne(R),L=de(I);ECe(L,()=>w(v).icon);var F=he(L);oe(I);var O=he(I,2);{var D=M=>{YZ(M,{get keys(){return w(v).keys}})};Re(O,M=>{w(v).keys&&M(D)})}at(()=>yt(F,` ${w(v).tooltip??""}`)),H(x,R)},$$slots:{default:!0}})}};Re(b,T=>{w(v).route?T(S,-1):T(E)})}H(_,y)}),H(p,g)};Re(d,p=>{r()?p(h):p(f,-1)})}return oe(u),H(t,u),Ke(l)}var Gnr=ae("<a><!></a>"),znr=ae("<p>See parent conversation</p>"),qnr=ae("<!> <!>",1),Vnr=ae('<div class="stop-button flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:text-foreground svelte-19ekn76" role="button" tabindex="0" aria-label="Stop generation"><!> <!></div>'),Hnr=ae("<p>Stop generation</p>"),Ynr=ae("<!> <!>",1),Wnr=ae('<div class="actions flex items-center"><!></div>'),Knr=ae('<button><div class="flex min-w-0 flex-1 items-center gap-2"><!> <!> <!></div> <!></button>');function SCe(t,e){We(e,!0);let r=ue(e,"isActive",3,!1),n=ue(e,"depth",3,0),i=Me(!1),a=Me(!1),s=ee(()=>wMt().includes(e.conversation.id));function o(A){A.stopPropagation(),e.onEdit?.(e.conversation.id)}function l(A){A.stopPropagation(),e.onDelete?.(e.conversation.id)}function u(A){A.stopPropagation(),e.onStop?.(e.conversation.id)}function d(){Rt.toggleConversationPin(e.conversation.id)}function h(A){A.detail.conversationId===e.conversation.id&&r()&&o(A)}function f(){w(a)||J(i,!1)}function p(){J(i,!0)}function g(){e.onSelect?.(e.conversation.id)}sr(()=>{w(a)||J(i,!1)}),Ns(()=>(document.addEventListener("edit-active-conversation",h),()=>{document.removeEventListener("edit-active-conversation",h)}));var m=Knr(),_=de(m);let v;var y=de(_);{var b=A=>{var R=Ee(),I=ne(R);Le(I,()=>mo,(L,F)=>{F(L,{children:(O,D)=>{var M=qnr(),P=ne(M);{const $=(U,B)=>{let V=()=>B?.().props;var z=Gnr();Er(z,Y=>({...V(),href:Y,class:"flex shrink-0 items-center text-muted-foreground transition-colors hover:text-foreground"}),[()=>a0.chat(e.conversation.forkedFromConversationId)],void 0,void 0,"svelte-19ekn76");var G=de(z);tZ(G,{class:"h-3.5 w-3.5"}),oe(z),H(U,z)};Le(P,()=>po,(U,B)=>{B(U,{child:$,$$slots:{child:!0}})})}var N=he(P,2);Le(N,()=>go,($,U)=>{U($,{children:(B,V)=>{var z=znr();H(B,z)},$$slots:{default:!0}})}),H(O,M)},$$slots:{default:!0}})}),H(A,R)};Re(y,A=>{n()>0&&A(b)})}var E=he(y,2);{var S=A=>{var R=Ee(),I=ne(R);Le(I,()=>mo,(L,F)=>{F(L,{children:(O,D)=>{var M=Ynr(),P=ne(M);Le(P,()=>po,($,U)=>{U($,{children:(B,V)=>{var z=Vnr(),G=de(z);Ao(G,{class:"loading-icon h-3.5 w-3.5 animate-spin"});var Y=he(G,2);jse(Y,{class:"stop-icon hidden h-3 w-3 fill-current text-destructive"}),oe(z),tn("click",z,u),tn("keydown",z,W=>W.key==="Enter"&&u(W)),H(B,z)},$$slots:{default:!0}})});var N=he(P,2);Le(N,()=>go,($,U)=>{U($,{children:(B,V)=>{var z=Hnr();H(B,z)},$$slots:{default:!0}})}),H(O,M)},$$slots:{default:!0}})}),H(A,R)};Re(E,A=>{w(s)&&A(S)})}var T=he(E,2);aA(T,{get text(){return e.conversation.name},class:"text-sm font-medium",showTooltip:!1}),oe(_);var C=he(_,2);{var x=A=>{var R=Wnr(),I=de(R);{let L=ee(()=>[{icon:e.conversation.pinned?o0t:nDe,label:e.conversation.pinned?"Unpin":"Pin",onclick:F=>{F.stopPropagation(),d()}},{icon:Wse,label:"Edit",onclick:o,shortcut:["shift","cmd","e"]},{icon:eA,label:"Export",onclick:F=>{F.stopPropagation(),Rt.downloadConversation(e.conversation.id)},shortcut:["shift","cmd","s"]},{icon:pg,label:"Delete",onclick:l,variant:"destructive",shortcut:["shift","cmd","d"],separator:!0}]);knr(I,{get triggerIcon(){return Hmt},triggerTooltip:"More actions",get actions(){return w(L)},get open(){return w(a)},set open(F){J(a,F,!0)}})}oe(R),H(A,R)};Re(C,A=>{w(i)&&A(x)})}oe(m),at(()=>{lr(m,1,`group flex min-h-9 w-full cursor-pointer items-center justify-between space-x-3 rounded-lg py-1.5 text-left transition-colors hover:bg-foreground/10 ${r()?"bg-foreground/5 text-accent-foreground":""} px-3`,"svelte-19ekn76"),v=du(_,"",v,{"padding-left":`${n()*gvt}px`})}),tn("click",m,g),tn("mouseover",m,p),Ji("mouseleave",m,f),tn("focusin",m,p),tn("focusout",m,A=>{A.currentTarget.contains(A.relatedTarget)||f()}),H(t,m),Ke()}Wi(["click","mouseover","focusin","focusout","keydown"]);const jnr="sidebar:state",Xnr=3600*24*7,Xle="18rem",l7e="32rem",Qnr="3rem",Znr="b";class Jnr{props;#e=ee(()=>this.props.open());get open(){return w(this.#e)}set open(e){J(this.#e,e)}#t=Me(!1);get openMobile(){return w(this.#t)}set openMobile(e){J(this.#t,e,!0)}#r=Me(Kr(Xle));get sidebarWidth(){return w(this.#r)}set sidebarWidth(e){J(this.#r,e,!0)}#n=Me(!1);get isResizing(){return w(this.#n)}set isResizing(e){J(this.#n,e,!0)}setOpen;#i=ee(()=>this.open?"expanded":"collapsed");get state(){return w(this.#i)}set state(e){J(this.#i,e)}constructor(e){this.setOpen=e.setOpen,this.props=e}get isMobile(){return u5.current}handleShortcutKeydown=e=>{e.key===Znr&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.toggle())};setOpenMobile=e=>{this.openMobile=e};toggle=()=>{this.setOpen(!this.open)}}const c7e="scn-sidebar";function eir(t){return M1(Symbol.for(c7e),new Jnr(t))}function Qle(){return jm(Symbol.for(c7e))}var tir=ae("<div><!></div>");function TCe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=tir();Er(i,s=>({"data-slot":"sidebar-group-content","data-sidebar":"group-content",class:s,...n}),[()=>an("w-full text-sm",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var rir=ae("<div><!></div>");function CCe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","children","child","class"]);const i=ee(()=>({class:an("text-sidebar-foreground/70 ring-sidebar-ring outline-hidden flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e.class),"data-slot":"sidebar-group-label","data-sidebar":"group-label",...n}));var a=Ee(),s=ne(a);{var o=u=>{var d=Ee(),h=ne(d);ft(h,()=>e.child,()=>({props:w(i)})),H(u,d)},l=u=>{var d=rir();Er(d,()=>({...w(i)}));var h=de(d);ft(h,()=>e.children??Tt),oe(d),Qr(d,f=>r(f),()=>r()),H(u,d)};Re(s,u=>{e.child?u(o):u(l,-1)})}H(t,a),Ke()}var nir=ae("<div><!></div>");function wCe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=nir();Er(i,s=>({"data-slot":"sidebar-group","data-sidebar":"group",class:s,...n}),[()=>an("relative flex w-full min-w-0 flex-col p-2",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var iir=ae("<div><!></div>");function air(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=iir();Er(i,s=>({"data-slot":"sidebar-header","data-sidebar":"header",class:s,...n}),[()=>an("flex flex-col gap-2 p-2",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var sir=ae("<main><!></main>");function oir(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=sir();Er(i,s=>({"data-slot":"sidebar-inset",class:s,...n}),[()=>an("relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}Y3({base:"peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! flex w-full items-center gap-2 overflow-hidden rounded-md py-2 px-1 text-left text-sm transition-[width,height,padding] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"group-data-[collapsible=icon]:p-0! h-12 text-sm"}},defaultVariants:{variant:"default",size:"default"}});var lir=ae("<li><!></li>");function xCe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=lir();Er(i,s=>({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",class:s,...n}),[()=>an("group/menu-item relative",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var cir=ae("<ul><!></ul>");function ACe(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=xt(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=cir();Er(i,s=>({"data-slot":"sidebar-menu","data-sidebar":"menu",class:s,...n}),[()=>an("flex w-full min-w-0 flex-col gap-1",e.class)]);var a=de(i);ft(a,()=>e.children??Tt),oe(i),Qr(i,s=>r(s),()=>r()),H(t,i),Ke()}var uir=ae("<div><!></div>");function dir(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"open",15,!0),i=ue(e,"onOpenChange",3,()=>{}),a=xt(e,["$$slots","$$events","$$legacy","ref","open","onOpenChange","class","style","children"]);const s=eir({open:()=>n(),setOpen:u=>{n(u),i()(u),document.cookie=`${jnr}=${n()}; path=/; max-age=${Xnr}`}});var o=uir();Ji("keydown",_b,function(...u){s.handleShortcutKeydown?.apply(this,u)}),Er(o,u=>({"data-slot":"sidebar-wrapper",style:`--sidebar-width: ${s.sidebarWidth??""}; --sidebar-min-width: ${Xle}; --sidebar-max-width: ${l7e}; --sidebar-width-icon: ${Qnr}; ${e.style??""}`,class:u,...a}),[()=>an("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",e.class)]);var l=de(o);ft(l,()=>e.children??Tt),oe(o),Qr(o,u=>r(u),()=>r()),H(t,o),Ke()}var hir=ae('<!> <span class="sr-only">Toggle Sidebar</span>',1);function fir(t,e){We(e,!0),ue(e,"ref",11,null);let r=xt(e,["$$slots","$$events","$$legacy","ref","class","onclick"]);const n=Qle();{let i=ee(()=>e.class),a=ee(()=>n.open?"top-1.5":"top-0"),s=ee(()=>n.isResizing?"!duration-0":"");Mn(t,Bt({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-lg",get class(){return`rounded-full backdrop-blur-lg ${w(i)??""} ${w(a)??""} md:left-[calc(var(--sidebar-width)-3.25rem)] ${w(s)??""}`},type:"button",onclick:o=>{e.onclick?.(o),n.toggle()}},()=>r,{children:(o,l)=>{var u=hir(),d=ne(u);{var h=p=>{a0t(p,{})},f=p=>{s0t(p,{})};Re(d,p=>{n.open?p(h):p(f,-1)})}Gt(2),H(o,u)},$$slots:{default:!0}}))}Ke()}var pir=ae("<div><!></div>"),gir=ae('<div data-slot="sidebar-resize-handle"></div>'),mir=ae('<div data-slot="sidebar-resize-handle"></div>'),_ir=ae('<div class="group peer block text-sidebar-foreground" data-slot="sidebar"><div data-slot="sidebar-gap"></div> <div><div data-sidebar="sidebar" data-slot="sidebar-inner" class="flex h-full w-full flex-col bg-sidebar"><!></div> <!></div></div>');function vir(t,e){We(e,!0);let r=ue(e,"ref",15,null),n=ue(e,"side",3,"left"),i=ue(e,"variant",3,"sidebar"),a=ue(e,"collapsible",3,"offcanvas"),s=xt(e,["$$slots","$$events","$$legacy","ref","side","variant","collapsible","class","children"]);const o=Qle();function l(p){if(o.isMobile)return;p.preventDefault();const g=p.currentTarget;g.setPointerCapture(p.pointerId);const m=Bve(Xle),_=Bve(l7e);o.isResizing=!0;function v(b){const E=n()==="left"?b.clientX:window.innerWidth-b.clientX,S=Math.min(_,Math.max(m,E));o.sidebarWidth=`${S}px`}function y(){o.isResizing=!1,g.removeEventListener("pointermove",v),g.removeEventListener("pointerup",y)}g.addEventListener("pointermove",v),g.addEventListener("pointerup",y)}var u=Ee(),d=ne(u);{var h=p=>{var g=pir();Er(g,_=>({class:_,...s}),[()=>an("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",e.class)]);var m=de(g);ft(m,()=>e.children??Tt),oe(g),Qr(g,_=>r(_),()=>r()),H(p,g)},f=p=>{var g=_ir(),m=de(g),_=he(m,2);Er(_,T=>({"data-slot":"sidebar-container",class:T,style:i()==="floating"?"height: calc(100dvh - 1.5rem);":void 0,...s}),[()=>an("fixed inset-y-0 z-[900] flex w-[calc(100dvw-1.5rem)] duration-200 ease-linear md:z-0 md:w-(--sidebar-width)","group-data-[collapsible=offcanvas]:pointer-events-none md:group-data-[collapsible=offcanvas]:pointer-events-auto",o.isResizing&&"!duration-0",i()==="floating"?["transition-[left,right,width,opacity]",n()==="left"?"left-3 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-0.775)] group-data-[collapsible=offcanvas]:opacity-0":"right-3 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-0.775)] group-data-[collapsible=offcanvas]:opacity-0","my-3 overflow-hidden rounded-3xl border border-sidebar-border shadow-md"]:["h-svh transition-[left,right,width]",n()==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]"],i()==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":i()==="floating"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)",e.class)]);var v=de(_),y=de(v);ft(y,()=>e.children??Tt),oe(v);var b=he(v,2);{var E=T=>{var C=gir();let x;at(()=>x=lr(C,1,"absolute inset-y-0 right-0 z-50 hidden w-1.5 cursor-ew-resize touch-none select-none hover:bg-sidebar-border/50 active:bg-sidebar-border md:block",null,x,{"bg-sidebar-border":o.isResizing})),tn("pointerdown",C,l),H(T,C)},S=T=>{var C=mir();let x;at(()=>x=lr(C,1,"absolute inset-y-0 left-0 z-50 hidden w-1.5 cursor-ew-resize touch-none select-none hover:bg-sidebar-border/50 active:bg-sidebar-border md:block",null,x,{"bg-sidebar-border":o.isResizing})),tn("pointerdown",C,l),H(T,C)};Re(b,T=>{n()==="left"?T(E):T(S,-1)})}oe(_),oe(g),Qr(g,T=>r(T),()=>r()),at(T=>{Pr(g,"data-state",o.state),Pr(g,"data-collapsible",o.state==="collapsed"?a():""),Pr(g,"data-variant",i()),Pr(g,"data-side",n()),lr(m,1,T)},[()=>Fn(an("relative bg-transparent transition-[width] duration-200 ease-linear",o.isResizing&&"!duration-0","w-0",i()==="floating"?"md:w-[calc(var(--sidebar-width)+0.75rem)]":"md:w-(--sidebar-width)","md:group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",i()==="floating"||i()==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"))]),H(p,g)};Re(d,p=>{a()==="none"?p(h):p(f,-1)})}H(t,u),Ke()}Wi(["pointerdown"]);var yir=ae('<!> <span class="sr-only">Close sidebar</span>',1),bir=ae('<div class="flex items-center justify-between"><a><h1 class="inline-flex items-center gap-1 px-2 text-xl font-semibold"> </h1></a> <!></div> <!>',1),Eir=ae('<div class="flex items-center gap-1"><!> <span>Pinned</span></div>'),Sir=ae("<!> <!>",1),Tir=ae('<div class="px-2 py-4 text-center"><p class="mb-4 p-4 text-sm text-muted-foreground"> </p></div>'),Cir=ae("<!> <!>",1),wir=ae("<!> <!>",1),xir=ae("<!> <!> <!>",1),Air=ae('<div class="flex items-center gap-2 py-2"><!> <!></div>'),Rir=ae('<div class="flex h-full flex-col"><!></div> <!> <!>',1);function Oir(t,e){We(e,!0);const r=Qle();let n=ee(()=>ba.params.id),i=Me(!1),a=Me(""),s=Me(!1),o=Me(!1),l=Me(!1),u=Me(null),d=Me(""),h=ee(()=>w(u)?zDe(w(u).name):""),f=ee(()=>w(i)?w(a).trim().length>0?R_().filter($=>$.name.toLowerCase().includes(w(a).toLowerCase())):[]:R_()),p=ee(()=>$3t(w(f))),g=ee(()=>w(p).filter(({conversation:$})=>$.pinned)),m=ee(()=>w(p).filter(({conversation:$})=>!$.pinned)),_=ee(()=>{if(!w(u))return!1;const $=R_(),U=[w(u).id];for(;U.length>0;){const B=U.pop();for(const V of $)if(V.forkedFromConversationId===B)return!0}return!1});async function v($){const U=R_().find(B=>B.id===$);U&&(J(u,U,!0),J(o,!1),J(s,!0))}async function y($){const U=R_().find(B=>B.id===$);U&&(J(u,U,!0),J(d,U.name,!0),J(l,!0))}function b(){if(w(u)){const $=w(u).id,U=w(o);J(s,!1),setTimeout(()=>{Rt.deleteConversation($,{deleteWithForks:U})},100)}}function E(){!w(d).trim()||!w(u)||(J(l,!1),Rt.updateConversationName(w(u).id,w(d)),J(u,null))}function S(){r.isMobile&&r.toggle()}let T=Me(void 0),C=Me(!1);function x(){r.open||J(C,!0),w(T)?.activateSearch?.()}function A(){w(C)&&(J(C,!1),r.toggle())}sr(()=>{r.open||(J(i,!1),J(a,""),J(C,!1))});function R(){if(w(n)&&w(f).find(U=>U.id===w(n))){const U=new CustomEvent("edit-active-conversation",{detail:{conversationId:w(n)}});document.dispatchEvent(U)}}async function I($){w(i)&&(J(i,!1),J(a,"")),S(),await Ws(a0.chat($))}function L($){li.stopGenerationForChat($)}var F={handleMobileSidebarItemClick:S,activateSearchMode:x,editActiveConversation:R},O=Rir(),D=ne(O),M=de(D);qoe(M,{class:"h-full flex-1",children:($,U)=>{var B=xir(),V=ne(B);Le(V,()=>air,(W,Q)=>{Q(W,{class:"gap-4 bg-sidebar/50 p-3 backdrop-blur-lg md:pt-4 md:pb-2",children:(ie,Z)=>{var re=bir(),K=ne(re),j=de(K),se=de(j),le=de(se,!0);oe(se),oe(j);var _e=he(j,2);Mn(_e,{class:"rounded-full md:hidden",variant:"ghost",size:"icon",onclick:()=>r.toggle(),children:(Ue,Se)=>{var be=yir(),ke=ne(be);Xd(ke,{class:"h-4 w-4"}),Gt(2),H(Ue,be)},$$slots:{default:!0}}),oe(K);var ye=he(K,2);Qr($nr(ye,{handleMobileSidebarItemClick:S,onSearchDeactivated:A,get isSearchModeActive(){return w(i)},set isSearchModeActive(Ue){J(i,Ue,!0)},get searchQuery(){return w(a)},set searchQuery(Ue){J(a,Ue,!0)}}),Ue=>J(T,Ue,!0),()=>w(T)),at(()=>{Pr(j,"href",ho.START),yt(le,CB)}),tn("click",j,S),H(ie,re)},$$slots:{default:!0}})});var z=he(V,2);{var G=W=>{var Q=Ee(),ie=ne(Q);Le(ie,()=>wCe,(Z,re)=>{re(Z,{class:"p-0 px-4",children:(K,j)=>{var se=Sir(),le=ne(se);Le(le,()=>CCe,(ye,Ue)=>{Ue(ye,{children:(Se,be)=>{var ke=Eir(),Ae=de(ke);nDe(Ae,{class:"h-3.5 w-3.5"}),Gt(2),oe(ke),H(Se,ke)},$$slots:{default:!0}})});var _e=he(le,2);Le(_e,()=>TCe,(ye,Ue)=>{Ue(ye,{children:(Se,be)=>{var ke=Ee(),Ae=ne(ke);Le(Ae,()=>ACe,(tt,Oe)=>{Oe(tt,{children:(je,ct)=>{var Fe=Ee(),Xe=ne(Fe);fn(Xe,17,()=>w(g),({conversation:et,depth:Ie})=>et.id,(et,Ie)=>{let we=()=>w(Ie).conversation,ce=()=>w(Ie).depth;var Te=Ee(),fe=ne(Te);Le(fe,()=>xCe,(Be,me)=>{me(Be,{class:"mb-1 p-0",children:(Ye,qe)=>{{let lt=ee(()=>({id:we().id,name:we().name,lastModified:we().lastModified,currNode:we().currNode,forkedFromConversationId:we().forkedFromConversationId,pinned:we().pinned})),it=ee(()=>w(n)===we().id);SCe(Ye,{get conversation(){return w(lt)},get depth(){return ce()},get isActive(){return w(it)},onSelect:I,onEdit:y,onDelete:v,onStop:L})}},$$slots:{default:!0}})}),H(et,Te)}),H(je,Fe)},$$slots:{default:!0}})}),H(Se,ke)},$$slots:{default:!0}})}),H(K,se)},$$slots:{default:!0}})}),H(W,Q)};Re(z,W=>{!w(i)&&w(g).length>0&&W(G)})}var Y=he(z,2);Le(Y,()=>wCe,(W,Q)=>{Q(W,{class:"mt-2 h-[calc(100vh-21rem)] space-y-2 p-0 px-3",children:(ie,Z)=>{var re=wir(),K=ne(re);{var j=le=>{var _e=Ee(),ye=ne(_e);Le(ye,()=>CCe,(Ue,Se)=>{Se(Ue,{children:(be,ke)=>{Gt();var Ae=fr();at(()=>yt(Ae,w(i)?"Search results":"Recent conversations")),H(be,Ae)},$$slots:{default:!0}})}),H(le,_e)};Re(K,le=>{(w(f).length>0&&w(i)||!w(i))&&le(j)})}var se=he(K,2);Le(se,()=>TCe,(le,_e)=>{_e(le,{children:(ye,Ue)=>{var Se=Ee(),be=ne(Se);Le(be,()=>ACe,(ke,Ae)=>{Ae(ke,{children:(tt,Oe)=>{var je=Cir(),ct=ne(je);fn(ct,17,()=>w(i)?w(p):w(m),({conversation:et,depth:Ie})=>et.id,(et,Ie)=>{let we=()=>w(Ie).conversation,ce=()=>w(Ie).depth;var Te=Ee(),fe=ne(Te);Le(fe,()=>xCe,(Be,me)=>{me(Be,{class:"mb-1 p-0",children:(Ye,qe)=>{{let lt=ee(()=>({id:we().id,name:we().name,lastModified:we().lastModified,currNode:we().currNode,forkedFromConversationId:we().forkedFromConversationId,pinned:we().pinned})),it=ee(()=>w(n)===we().id);SCe(Ye,{get conversation(){return w(lt)},get depth(){return ce()},get isActive(){return w(it)},onSelect:I,onEdit:y,onDelete:v,onStop:L})}},$$slots:{default:!0}})}),H(et,Te)});var Fe=he(ct,2);{var Xe=et=>{var Ie=Tir(),we=de(Ie),ce=de(we,!0);oe(we),oe(Ie),at(()=>yt(ce,w(a).length>0?"No results found":w(i)?"Start typing to see results":"No conversations yet")),H(et,Ie)};Re(Fe,et=>{(w(i)?w(p):w(m)).length===0&&et(Xe)})}H(tt,je)},$$slots:{default:!0}})}),H(ye,Se)},$$slots:{default:!0}})}),H(ie,re)},$$slots:{default:!0}})}),H($,B)},$$slots:{default:!0}}),oe(D);var P=he(D,2);{let $=ee(()=>w(u)?`Are you sure you want to delete "${w(h)}"? This action cannot be undone and will permanently remove all messages in this conversation.`:"");Rb(P,{title:"Delete Conversation",get description(){return w($)},confirmText:"Delete",cancelText:"Cancel",variant:"destructive",get icon(){return pg},onConfirm:b,onCancel:()=>{J(s,!1),J(u,null)},get open(){return w(s)},set open(U){J(s,U,!0)},children:(U,B)=>{var V=Ee(),z=ne(V);{var G=Y=>{var W=Air(),Q=de(W);$h(Q,{id:"delete-with-forks",get checked(){return w(o)},set checked(Z){J(o,Z,!0)}});var ie=he(Q,2);Af(ie,{for:"delete-with-forks",class:"text-sm",children:(Z,re)=>{Gt();var K=fr("Also delete all forked conversations");H(Z,K)},$$slots:{default:!0}}),oe(W),H(Y,W)};Re(z,Y=>{w(_)&&Y(G)})}H(U,V)},$$slots:{default:!0}})}var N=he(P,2);return Rb(N,{title:"Edit Conversation Name",description:"",confirmText:"Save",cancelText:"Cancel",get icon(){return Wse},onConfirm:E,onCancel:()=>{J(l,!1),J(u,null)},onKeydown:$=>{$.key==="Enter"&&($.preventDefault(),$.stopImmediatePropagation(),E())},get open(){return w(l)},set open($){J(l,$,!0)},children:($,U)=>{x0($,{class:"text-foreground",placeholder:"Enter a new name",type:"text",get value(){return w(d)},set value(B){J(d,B,!0)}})},$$slots:{default:!0}}),H(t,O),Ke(F)}Wi(["click"]);var Iir=ae("<!> ",1),Nir=ae("<!> <!>",1),kir=ae("<!> ",1),Dir=ae('<div><div class="flex items-center space-x-2"><div></div> <span class="text-sm text-muted-foreground"> </span></div> <!> <!></div>');function Mir(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"showActions",3,!1),i=ee(uk),a=ee(UT),s=ee(FMe),o=ee(wvt);function l(){return w(a)?"bg-yellow-500":w(i)?"bg-red-500":w(o)?"bg-green-500":"bg-gray-500"}function u(){return w(a)?"Connecting...":w(i)?"Connection Error":w(o)?"Connected":"Unknown"}var d=Dir(),h=de(d),f=de(h),p=he(f,2),g=de(p,!0);oe(p),oe(h);var m=he(h,2);{var _=b=>{var E=Nir(),S=ne(E);Hu(S,{variant:"outline",class:"text-xs",children:(x,A)=>{var R=Iir(),I=ne(R);sDe(I,{class:"mr-1 h-3 w-3"});var L=he(I);at(()=>yt(L,` ${(w(s)||"Unknown Model")??""}`)),H(x,R)},$$slots:{default:!0}});var T=he(S,2);{var C=x=>{Hu(x,{variant:"secondary",class:"text-xs",children:(A,R)=>{Gt();var I=fr();at(L=>yt(I,`ctx: ${L??""}`),[()=>w(o).default_generation_settings.n_ctx.toLocaleString()]),H(A,I)},$$slots:{default:!0}})};Re(T,x=>{w(o)?.default_generation_settings?.n_ctx&&x(C)})}H(b,E)};Re(m,b=>{w(o)&&!w(i)&&b(_)})}var v=he(m,2);{var y=b=>{Mn(b,{variant:"outline",size:"sm",class:"text-destructive",children:(E,S)=>{var T=kir(),C=ne(T);B1(C,{class:"h-4 w-4"});var x=he(C);at(()=>yt(x,` ${w(i)??""}`)),H(E,T)},$$slots:{default:!0}})};Re(v,b=>{n()&&w(i)&&b(y)})}oe(d),at((b,E)=>{lr(d,1,`flex items-center space-x-3 ${r()??""}`),lr(f,1,`h-2 w-2 rounded-full ${b??""}`),yt(g,E)},[()=>l(),()=>u()]),H(t,d),Ke()}var Lir=ae("<!> Enter API Key",1),Pir=ae('<div class="mb-4"><!></div>'),Fir=ae('<div class="absolute top-1/2 right-3 -translate-y-1/2"><!></div>'),Bir=ae('<div class="absolute top-1/2 right-3 -translate-y-1/2"><!></div>'),Uir=ae('<div class="absolute top-1/2 right-3 -translate-y-1/2"><!></div>'),$ir=ae('<p class="text-sm text-destructive"> </p>'),Gir=ae('<p class="text-sm text-green-600">✓ API key validated successfully! Connecting...</p>'),zir=ae("<!> Validating...",1),qir=ae('<div class="mb-4 space-y-3 text-left"><div class="space-y-2"><!> <div class="relative"><!> <!></div> <!> <!></div> <div class="flex gap-2"><!> <!></div></div>'),Vir=ae("<!> Connecting...",1),Hir=ae("<!> Retry Connection",1),Yir=ae("<div><!></div>"),Wir=ae('<div class="mt-4 text-left"><details class="text-sm"><summary class="cursor-pointer text-muted-foreground hover:text-foreground">Troubleshooting</summary> <div class="mt-2 space-y-3 text-xs text-muted-foreground"><div class="space-y-2"><p class="mb-4 font-medium">Start the llama-server:</p> <div class="rounded bg-muted/50 px-2 py-1 font-mono text-xs"><p>llama-server -hf ggml-org/gemma-3-4b-it-GGUF</p></div> <p>or</p> <div class="rounded bg-muted/50 px-2 py-1 font-mono text-xs"><p class="mt-1">llama-server -m locally-stored-model.gguf</p></div></div> <ul class="list-disc space-y-1 pl-4"><li>Check that the server is accessible at the correct URL</li> <li>Verify your network connection</li> <li>Check server logs for any error messages</li></ul></div></details></div>'),Kir=ae('<div><div class="w-full max-w-md px-4 text-center"><div class="mb-6"><div class="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10"><!></div> <h2 class="mb-2 text-xl font-semibold">Server Connection Error</h2> <p class="mb-4 text-sm text-muted-foreground"> </p></div> <!> <!> <!> <!></div></div>');function jir(t,e){We(e,!0);let r=ue(e,"class",3,""),n=ue(e,"showRetry",3,!0),i=ue(e,"showTroubleshooting",3,!1),a=ee(UT),s=ee(()=>e.error.toLowerCase().includes("access denied")||e.error.toLowerCase().includes("invalid api key")||e.error.toLowerCase().includes("unauthorized")||e.error.toLowerCase().includes("401")||e.error.toLowerCase().includes("403")),o=Me(""),l=Me(!1),u=Me("idle"),d=Me("");function h(){e.onRetry?e.onRetry():Ya.fetch()}function f(){J(l,!0);const O=Vn();J(o,O.apiKey?.toString()||"",!0)}async function p(){if(w(o).trim()){J(u,"validating"),J(d,"");try{Oc.updateConfig(ar.API_KEY,w(o).trim());const O=await fetch(`${Jl}/props`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${w(o).trim()}`}});O.ok?(J(u,"success"),setTimeout(()=>{Ws(ho.START)},1e3)):(J(u,"error"),O.status===401||O.status===403?J(d,"Invalid API key - please check and try again"):J(d,`Authentication failed (${O.status})`),setTimeout(()=>{J(u,"idle")},3e3))}catch(O){J(u,"error"),O instanceof Error?O.message.includes("fetch")?J(d,"Cannot connect to server - check if server is running"):J(d,O.message,!0):J(d,"Connection error - please try again"),setTimeout(()=>{J(u,"idle")},3e3)}}}function g(O){O.key===wi.ENTER&&p()}var m=Kir(),_=de(m),v=de(_),y=de(v),b=de(y);B1(b,{class:"h-8 w-8 text-destructive"}),oe(y);var E=he(y,4),S=de(E,!0);oe(E),oe(v);var T=he(v,2);{var C=O=>{var D=Pir(),M=de(D);Mn(M,{onclick:f,variant:"outline",class:"w-full",children:(P,N)=>{var $=Lir(),U=ne($);Zmt(U,{class:"h-4 w-4"}),Gt(),H(P,$)},$$slots:{default:!0}}),oe(D),sl(1,D,()=>p_,()=>({y:10,duration:300,delay:200})),H(O,D)};Re(T,O=>{w(s)&&!w(l)&&O(C)})}var x=he(T,2);{var A=O=>{var D=qir(),M=de(D),P=de(M);Af(P,{for:"api-key-input",class:"text-sm font-medium",children:(K,j)=>{Gt();var se=fr("API Key");H(K,se)},$$slots:{default:!0}});var N=he(P,2),$=de(N);{let K=ee(()=>w(u)==="error"?"border-destructive":w(u)==="success"?"border-green-500":""),j=ee(()=>w(u)==="validating");x0($,{id:"api-key-input",placeholder:"Enter your API key...",onkeydown:g,get class(){return`w-full pr-10 ${w(K)??""}`},get disabled(){return w(j)},get value(){return w(o)},set value(se){J(o,se,!0)}})}var U=he($,2);{var B=K=>{var j=Fir(),se=de(j);D_(se,{class:"h-4 w-4 animate-spin text-muted-foreground"}),oe(j),H(K,j)},V=K=>{var j=Bir(),se=de(j);Vmt(se,{class:"h-4 w-4 text-green-500"}),oe(j),sl(1,j,()=>Gge,()=>({duration:200,start:.8})),H(K,j)},z=K=>{var j=Uir(),se=de(j);J5e(se,{class:"h-4 w-4 text-destructive"}),oe(j),sl(1,j,()=>Gge,()=>({duration:200,start:.8})),H(K,j)};Re(U,K=>{w(u)==="validating"?K(B):w(u)==="success"?K(V,1):w(u)==="error"&&K(z,2)})}oe(N);var G=he(N,2);{var Y=K=>{var j=$ir(),se=de(j,!0);oe(j),at(()=>yt(se,w(d))),sl(1,j,()=>p_,()=>({y:-10,duration:200})),H(K,j)};Re(G,K=>{w(d)&&K(Y)})}var W=he(G,2);{var Q=K=>{var j=Gir();sl(1,j,()=>p_,()=>({y:-10,duration:200})),H(K,j)};Re(W,K=>{w(u)==="success"&&K(Q)})}oe(M);var ie=he(M,2),Z=de(ie);{let K=ee(()=>!w(o).trim()||w(u)==="validating"||w(u)==="success");Mn(Z,{onclick:p,get disabled(){return w(K)},class:"flex-1",children:(j,se)=>{var le=Ee(),_e=ne(le);{var ye=be=>{var ke=zir(),Ae=ne(ke);D_(Ae,{class:"h-4 w-4 animate-spin"}),Gt(),H(be,ke)},Ue=be=>{var ke=fr("Success!");H(be,ke)},Se=be=>{var ke=fr("Save & Retry");H(be,ke)};Re(_e,be=>{w(u)==="validating"?be(ye):w(u)==="success"?be(Ue,1):be(Se,-1)})}H(j,le)},$$slots:{default:!0}})}var re=he(Z,2);{let K=ee(()=>w(u)==="validating");Mn(re,{onclick:()=>{J(l,!1),J(u,"idle"),J(d,"")},variant:"outline",class:"flex-1",get disabled(){return w(K)},children:(j,se)=>{Gt();var le=fr("Cancel");H(j,le)},$$slots:{default:!0}})}oe(ie),oe(D),sl(1,D,()=>p_,()=>({y:10,duration:300,delay:200})),H(O,D)};Re(x,O=>{w(l)&&O(A)})}var R=he(x,2);{var I=O=>{var D=Yir(),M=de(D);Mn(M,{onclick:h,get disabled(){return w(a)},class:"w-full",children:(P,N)=>{var $=Ee(),U=ne($);{var B=z=>{var G=Vir(),Y=ne(G);D_(Y,{class:"h-4 w-4 animate-spin"}),Gt(),H(z,G)},V=z=>{var G=Hir(),Y=ne(G);D_(Y,{class:"h-4 w-4"}),Gt(),H(z,G)};Re(U,z=>{w(a)?z(B):z(V,-1)})}H(P,$)},$$slots:{default:!0}}),oe(D),sl(1,D,()=>p_,()=>({y:10,duration:300,delay:200})),H(O,D)};Re(R,O=>{n()&&O(I)})}var L=he(R,2);{var F=O=>{var D=Wir();sl(1,D,()=>p_,()=>({y:10,duration:300,delay:400})),H(O,D)};Re(L,O=>{i()&&O(F)})}oe(_),oe(m),at(()=>{lr(m,1,`flex h-full items-center justify-center ${r()??""}`),yt(S,e.error)}),sl(1,v,()=>Jm,()=>({duration:300})),H(t,m),Ke()}var Xir=ae('<div><div class="text-center"><div class="mb-4"><div class="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-muted"><!></div> <h2 class="mb-2 text-xl font-semibold">Connecting to Server</h2> <p class="text-sm text-muted-foreground"> </p></div> <div class="mt-4"><!></div></div></div>');function Qir(t,e){let r=ue(e,"class",3,""),n=ue(e,"message",3,"Initializing connection to server...");var i=Xir(),a=de(i),s=de(a),o=de(s),l=de(o);sDe(l,{class:"h-8 w-8 animate-pulse text-muted-foreground"}),oe(o);var u=he(o,4),d=de(u,!0);oe(u),oe(s);var h=he(s,2),f=de(h);Mir(f,{class:"justify-center"}),oe(h),oe(a),oe(i),at(()=>{lr(i,1,`flex h-full items-center justify-center ${r()??""}`),yt(d,n())}),sl(1,s,()=>Jm,()=>({duration:300})),H(t,i)}function Zir(){const t=Kr({activePanel:"chat",chatSettingsRef:void 0}),e=ee(()=>!!ba.route.id?.startsWith("/settings"));return iae(({to:r,from:n})=>{r?.route?.id?.startsWith("/settings")&&!n?.route?.id?.startsWith("/settings")&&(r7e.url=window.location.hash||ho.START)}),sr(()=>{t.activePanel==="settings"&&t.chatSettingsRef&&t.chatSettingsRef.reset()}),sr(()=>{ba.url,t.activePanel="chat"}),{get panel(){return t},get isSettingsRoute(){return w(e)}}}var Jir=ae("<style></style>"),ear=ae("<div><!></div>"),tar=ae('<div class="flex h-dvh w-full"><!> <!> <!> <!></div>'),rar=ae("<!> <!> <!> <!>",1);function nar(t,e){We(e,!0);let r=ee(()=>Vn().alwaysShowSidebarOnDesktop),n=ee(()=>!u5.current),i=Me(!1),a=Me(!1),s=Me(void 0),o=Me(Kr(window.innerWidth)),l=Me(void 0),u=Me(!1),d=Me(""),h=Me(""),f=null;const p=Zir();function g(C){const x=R_();if(x.length===0)return;const A=ba.params.id;if(!A){Ws(a0.chat(x[C===1?0:x.length-1].id));return}const R=x.findIndex(L=>L.id===A);if(R===-1)return;const I=R+C;I>=0&&I<x.length?Ws(a0.chat(x[I].id)):Ws(ho.NEW_CHAT)}const{handleKeydown:m}=fle({editActiveConversation:()=>w(l)?.editActiveConversation?.(),navigateToPrevConversation:()=>g(-1),navigateToNextConversation:()=>g(1)});function _(){const C=Vn().apiKey;!C||C.trim()===""||Vi(()=>{if((ba.route.id==="/(chat)"||ba.route.id==="/(chat)/chat/[id]")&&ba.status!==401&&ba.status!==403){const x={"Content-Type":"application/json",Authorization:`Bearer ${C.trim()}`};fetch(`${Jl}/props`,{headers:x}).then(A=>{(A.status===401||A.status===403)&&window.location.reload()}).catch(A=>{console.error("Error checking API key:",A)})}})}function v(){J(u,!1),f&&(f(!1),f=null)}function y(){J(u,!1),f&&(f(!0),f=null)}Ns(()=>{J(a,!0)}),sr(()=>{if(w(r)&&w(n)){J(i,!0);return}}),sr(()=>{Ya.props||Vi(()=>{Ya.fetch()})}),sr(()=>{Ya.props&&Vi(()=>{Oc.syncWithServerDefaults()})});function b(C){sr(()=>{C.textContent=Vn().customCss??""})}let E=!1;sr(()=>{const C=xs(),x=Fr.models.length;C&&x>0&&!E&&(E=!0,Vi(()=>{Fr.fetchRouterModels()}))}),sr(()=>{const x=Br.getServers().filter(A=>A.enabled&&A.url.trim());x.length>0&&Vi(()=>{Br.runHealthChecksForServers(x,!1).catch(A=>{console.warn("[layout] MCP health checks failed:",A)})})}),sr(()=>{_()}),sr(()=>{Rt.setTitleUpdateConfirmationCallback(async(C,x)=>new Promise(A=>{J(d,C,!0),J(h,x,!0),f=A,J(u,!0)}))});var S=Ee();V3("12qhfyh",C=>{var x=Ee(),A=ne(x);{var R=L=>{var F=Jir();tE(F,O=>b?.(O)),Zm(F),H(L,F)},I=ee(()=>Vn().customCss);Re(A,L=>{w(I)&&L(R)})}H(C,x)}),Ji("keydown",_b,m);var T=ne(S);Le(T,()=>Mmt,(C,x)=>{x(C,{get delayDuration(){return Jse},children:(A,R)=>{var I=rar(),L=ne(I);t_t(L,{});var F=he(L,2);dTt(F,{richColors:!0});var O=he(F,2);NJt(O,{get currentTitle(){return w(d)},get newTitle(){return w(h)},onConfirm:y,onCancel:v,get open(){return w(u)},set open(M){J(u,M,!0)}});var D=he(O,2);Le(D,()=>dir,(M,P)=>{P(M,{get open(){return w(i)},set open(N){J(i,N,!0)},children:(N,$)=>{var U=tar(),B=de(U);Le(B,()=>vir,(Q,ie)=>{ie(Q,{variant:"floating",class:"h-full",children:(Z,re)=>{Qr(Oir(Z,{}),K=>J(l,K,!0),()=>w(l))},$$slots:{default:!0}})});var V=he(B,2);{var z=Q=>{var ie=Ee(),Z=ne(ie);{var re=K=>{var j=ear(),se=de(j);{let le=ee(()=>w(i)?"left-[calc(var(--sidebar-width)+0.75rem)] max-md:hidden":"left-0!");Le(se,()=>fir,(_e,ye)=>{ye(_e,{get class(){return`transition-left absolute left-0 z-[900] duration-200 ease-linear ${w(le)??""}`},style:"translate: 1rem 1rem;"})})}oe(j),sl(1,j,()=>Jm,()=>({duration:200})),H(K,j)};Re(Z,K=>{w(a)&&K(re)})}H(Q,ie)};Re(V,Q=>{!(w(r)&&w(n))&&!(p.isSettingsRoute&&!w(n))&&Q(z)})}var G=he(V,2);{var Y=Q=>{Pnr(Q,{get sidebarOpen(){return w(i)},onSearchClick:()=>{w(l)?.activateSearchMode&&w(l).activateSearchMode(),J(i,!0)}})};Re(G,Q=>{w(n)&&!w(r)&&Q(Y)})}var W=he(G,2);Le(W,()=>oir,(Q,ie)=>{ie(Q,{class:"flex flex-1 flex-col overflow-hidden",children:(Z,re)=>{var K=Ee(),j=ne(K);ft(j,()=>e.children??Tt),H(Z,K)},$$slots:{default:!0}})}),oe(U),H(N,U)},$$slots:{default:!0}})}),H(A,I)},$$slots:{default:!0}})}),Rge("innerHeight",C=>J(s,C,!0)),Rge("innerWidth",C=>J(o,C,!0)),H(t,S),Ke()}const iar=Object.freeze(Object.defineProperty({__proto__:null,component:nar},Symbol.toStringTag,{value:"Module"})),aar=()=>{const t=tg;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},sar={subscribe(t){return aar().page.subscribe(t)}};var oar=ae('<div class="flex h-full items-center justify-center"><div class="w-full max-w-md px-4 text-center"><div class="mb-6"><div class="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10"><svg class="h-8 w-8 text-destructive" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"></path></svg></div> <h1 class="mb-2 text-2xl font-bold"> </h1> <p class="text-muted-foreground"> </p></div> <button class="rounded-md bg-primary px-4 py-2 text-primary-foreground hover:bg-primary/90">Go Home</button></div></div>');function lar(t,e){We(e,!0);const r=()=>elt(sar,"$page",n),[n,i]=tlt();let a=ee(()=>r().error),s=ee(()=>r().status),o=ee(()=>w(s)===401||w(s)===403||w(a)?.message?.toLowerCase().includes("access denied")||w(a)?.message?.toLowerCase().includes("unauthorized")||w(a)?.message?.toLowerCase().includes("invalid api key"));function l(){Ws(ho.START)}var u=Ee();V3("1j96wlh",p=>{Fie(()=>{FF.title=`Error ${w(s)??""} - ${CB}`})});var d=ne(u);{var h=p=>{{let g=ee(()=>w(a)?.message||"Access denied - check server permissions");jir(p,{get error(){return w(g)},onRetry:l,showRetry:!1,showTroubleshooting:!1})}},f=p=>{var g=oar(),m=de(g),_=de(m),v=he(de(_),2),y=de(v);oe(v);var b=he(v,2),E=de(b,!0);oe(b),oe(_);var S=he(_,2);oe(m),oe(g),at(()=>{yt(y,`Error ${w(s)??""}`),yt(E,w(a)?.message||"Something went wrong")}),tn("click",S,()=>Ws(ho.START)),H(p,g)};Re(d,p=>{w(o)?p(h):p(f,-1)})}H(t,u),Ke(),i()}Wi(["click"]);const car=Object.freeze(Object.defineProperty({__proto__:null,component:lar},Symbol.toStringTag,{value:"Module"}));var uar=ae("<!> <!>",1);function dar(t,e){We(e,!0);let r=ee(()=>!ba.params.id);var n=uar(),i=ne(n);C7t(i,{get showCenteredEmpty(){return w(r)}});var a=he(i,2);ft(a,()=>e.children??Tt),H(t,n),Ke()}const har=Object.freeze(Object.defineProperty({__proto__:null,component:dar},Symbol.toStringTag,{value:"Module"}));var far=ae('<div class="relative h-full"><div class="fixed top-4.5 right-4 z-50 md:hidden"><!></div> <div class="min-h-full"><!></div></div>');function par(t,e){We(e,!0);let r=Me(null);sr(()=>{const u=ba.route.id;return()=>{J(r,u,!0)}});function n(){const u=w(r)?.startsWith("/settings");window.history.length>1&&!u?history.back():Ws(RDe)}var i=far(),a=de(i),s=de(a);as(s,{get icon(){return Xd},tooltip:"Close",onclick:n}),oe(a);var o=he(a,2),l=de(o);ft(l,()=>e.children??Tt),oe(o),oe(i),H(t,i),Ke()}const gar=Object.freeze(Object.defineProperty({__proto__:null,component:par},Symbol.toStringTag,{value:"Module"})),mar=async({fetch:t})=>{await LDe(t)},_ar=Object.freeze(Object.defineProperty({__proto__:null,load:mar},Symbol.toStringTag,{value:"Module"}));function yar(t,e){We(e,!0);let r=ee(()=>ba.url.searchParams.get("q")),n=ee(()=>ba.url.searchParams.get("model")),i=ee(()=>ba.url.searchParams.get(hZ)),a=Me(!1),s=Me(""),o=ee(()=>Ef().map(d=>d.model));function l(){const d=new URL(ba.url);d.searchParams.delete("q"),d.searchParams.delete("model"),d.searchParams.delete(hZ),WF(d.toString(),{})}async function u(){if(await Fr.fetch(),w(n)){const d=Fr.findModelByName(w(n));if(d)try{await Fr.selectModelById(d.id)}catch(h){console.error("Failed to select model:",h),J(s,w(n),!0),J(a,!0);return}else{J(s,w(n),!0),J(a,!0);return}}w(r)!==null?(await Rt.createConversation(),l()):(w(n)||w(i)==="true")&&l()}Ns(async()=>{U3t()||await Rt.initialize(),Rt.clearActiveConversation(),li.clearUIState(),await Fr.fetch(),(w(r)!==null||w(n)!==null||w(i)==="true")&&await u(),await Fr.ensureFirstModelSelected()}),V3("ku01nm",d=>{Fie(()=>{FF.title=CB})}),e7e(t,{get modelName(){return w(s)},get availableModels(){return w(o)},get open(){return w(a)},set open(d){J(a,d,!0)}}),Ke()}const bar=Object.freeze(Object.defineProperty({__proto__:null,component:yar,universal:_ar},Symbol.toStringTag,{value:"Module"})),Ear=async({fetch:t})=>{await LDe(t)},Sar=Object.freeze(Object.defineProperty({__proto__:null,load:Ear},Symbol.toStringTag,{value:"Module"}));function Tar(t,e){We(e,!0);let r=ee(()=>ba.params.id),n,i=ee(()=>ba.url.searchParams.get("q")),a=ee(()=>ba.url.searchParams.get("model")),s=Me(!1),o=Me(""),l=ee(()=>Ef().map(f=>f.model)),u=Me(!1);function d(){const f=new URL(ba.url);f.searchParams.delete("q"),f.searchParams.delete("model"),WF(f.toString(),{})}async function h(){if(await Fr.fetch(),w(a)){const f=Fr.findModelByName(w(a));if(f)try{await Fr.selectModelById(f.id)}catch(p){console.error("Failed to select model:",p),J(o,w(a),!0),J(s,!0);return}else{J(o,w(a),!0),J(s,!0);return}}w(i)!==null?(await li.sendMessage(w(i)),d()):w(a)&&d(),J(u,!0)}H3(()=>{setTimeout(()=>{Fr.selectModelFromLastAssistantResponse()},100)}),sr(()=>{if(w(r)&&w(r)!==n){if(n=w(r),J(u,!1),wc()?.id===w(r)){(w(i)!==null||w(a)!==null)&&!w(u)&&h();return}(async()=>await Rt.loadConversation(w(r))?(li.syncLoadingStateForChat(w(r)),(w(i)!==null||w(a)!==null)&&!w(u)&&await h()):await Ws(ho.START))()}}),sr(()=>{if(typeof window<"u"){const f=()=>{ib()&&(console.log("Page unload detected while streaming - aborting stream"),li.stopGeneration())};return window.addEventListener("beforeunload",f),()=>{window.removeEventListener("beforeunload",f)}}}),V3("jib4ir",f=>{Fie(p=>{FF.title=`${p??""} - ${CB}`},[()=>wc()?.name||"Chat"])}),e7e(t,{get modelName(){return w(o)},get availableModels(){return w(l)},get open(){return w(s)},set open(f){J(s,f,!0)}}),Ke()}const Car=Object.freeze(Object.defineProperty({__proto__:null,component:Tar,universal:Sar},Symbol.toStringTag,{value:"Module"}));function war(t){oQt(t,{class:"mx-auto w-full p-4 md:p-8 md:py-8"})}const xar=Object.freeze(Object.defineProperty({__proto__:null,component:war},Symbol.toStringTag,{value:"Module"}));function Aar(t,e){We(e,!1),Ns(()=>{ba.params.section||WF(a0.settings(Xr.GENERAL),{})}),GF(),vtr(t,{get initialSection(){return ba.params.section}}),Ke()}const Rar=Object.freeze(Object.defineProperty({__proto__:null,component:Aar},Symbol.toStringTag,{value:"Module"})),Oar='/**\n * @licstart The following is the entire license notice for the\n * JavaScript code in this page\n *\n * Copyright 2024 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @licend The above is the entire license notice for the\n * JavaScript code in this page\n */\n/**\n * pdfjsVersion = 5.4.54\n * pdfjsBuild = 295fb3ec4\n */\nconst e=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),t=[.001,0,0,.001,0,0],a=1.35,r=.35,i=.25925925925925924,n=1,s=2,o=4,c=8,l=16,h=64,u=128,d=256,f="pdfjs_internal_editor_",g=3,p=9,m=13,b=15,y=101,w={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},x=0,S=4,k=1,C=2,v=3,F=1,T=2,O=3,M=4,D=5,R=6,N=7,E=8,L=9,j=10,_=11,U=12,X=13,q=14,H=15,W=16,z=17,$=20,G="Group",V="R",K=1,J=2,Y=4,Z=16,Q=32,ee=128,te=512,ae=1,re=2,ie=4096,ne=8192,se=32768,oe=65536,ce=131072,le=1048576,he=2097152,ue=8388608,de=16777216,fe=1,ge=2,pe=3,me=4,be=5,ye={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},we={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},xe={O:"PageOpen",C:"PageClose"},Se=1,Ae=5,ke=1,Ce=2,ve=3,Fe=4,Ie=5,Te=6,Oe=7,Me=8,De=9,Be=10,Re=11,Ne=12,Ee=13,Pe=14,Le=15,je=16,_e=17,Ue=18,Xe=19,qe=20,He=21,We=22,ze=23,$e=24,Ge=25,Ve=26,Ke=27,Je=28,Ye=29,Ze=30,Qe=31,et=32,tt=33,at=34,rt=35,it=36,nt=37,st=38,ot=39,ct=40,lt=41,ht=42,ut=43,dt=44,ft=45,gt=46,pt=47,mt=48,bt=49,yt=50,wt=51,xt=52,St=53,At=54,kt=55,Ct=56,vt=57,Ft=58,It=59,Tt=60,Ot=61,Mt=62,Dt=63,Bt=64,Rt=65,Nt=66,Et=67,Pt=68,Lt=69,jt=70,_t=71,Ut=72,Xt=73,qt=74,Ht=75,Wt=76,zt=77,$t=80,Gt=81,Vt=83,Kt=84,Jt=85,Yt=86,Zt=87,Qt=88,ea=89,ta=90,aa=91,ra=92,ia=93,na=94,sa=0,oa=1,ca=2,la=3,ha=1,ua=2;let da=Se;function getVerbosityLevel(){return da}function info(e){da>=Ae&&console.log(`Info: ${e}`)}function warn(e){da>=Se&&console.log(`Warning: ${e}`)}function unreachable(e){throw new Error(e)}function assert(e,t){e||unreachable(t)}function createValidAbsoluteUrl(e,t=null,a=null){if(!e)return null;if(a&&"string"==typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\\./g);t?.length>=2&&(e=`http://${e}`)}if(a.tryConvertEncoding)try{e=stringToUTF8String(e)}catch{}}const r=t?URL.parse(e,t):URL.parse(e);return function _isValidProtocol(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r)?r:null}function shadow(e,t,a,r=!1){Object.defineProperty(e,t,{value:a,enumerable:!r,configurable:!0,writable:!1});return a}const fa=function BaseExceptionClosure(){function BaseException(e,t){this.message=e;this.name=t}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();class PasswordException extends fa{constructor(e,t){super(e,"PasswordException");this.code=t}}class UnknownErrorException extends fa{constructor(e,t){super(e,"UnknownErrorException");this.details=t}}class InvalidPDFException extends fa{constructor(e){super(e,"InvalidPDFException")}}class ResponseException extends fa{constructor(e,t,a){super(e,"ResponseException");this.status=t;this.missing=a}}class FormatError extends fa{constructor(e){super(e,"FormatError")}}class AbortException extends fa{constructor(e){super(e,"AbortException")}}function bytesToString(e){"object"==typeof e&&void 0!==e?.length||unreachable("Invalid argument for bytesToString");const t=e.length,a=8192;if(t<a)return String.fromCharCode.apply(null,e);const r=[];for(let i=0;i<t;i+=a){const n=Math.min(i+a,t),s=e.subarray(i,n);r.push(String.fromCharCode.apply(null,s))}return r.join("")}function stringToBytes(e){"string"!=typeof e&&unreachable("Invalid argument for stringToBytes");const t=e.length,a=new Uint8Array(t);for(let r=0;r<t;++r)a[r]=255&e.charCodeAt(r);return a}function string32(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function objectSize(e){return Object.keys(e).length}class FeatureTest{static get isLittleEndian(){return shadow(this,"isLittleEndian",function isLittleEndian(){const e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get isImageDecoderSupported(){return shadow(this,"isImageDecoderSupported","undefined"!=typeof ImageDecoder)}static get platform(){const{platform:e,userAgent:t}=navigator;return shadow(this,"platform",{isAndroid:t.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:t.includes("Firefox")})}static get isCSSRoundSupported(){return shadow(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const ga=Array.from(Array(256).keys(),(e=>e.toString(16).padStart(2,"0")));class Util{static makeHexColor(e,t,a){return`#${ga[e]}${ga[t]}${ga[a]}`}static scaleMinMax(e,t){let a;if(e[0]){if(e[0]<0){a=t[0];t[0]=t[2];t[2]=a}t[0]*=e[0];t[2]*=e[0];if(e[3]<0){a=t[1];t[1]=t[3];t[3]=a}t[1]*=e[3];t[3]*=e[3]}else{a=t[0];t[0]=t[1];t[1]=a;a=t[2];t[2]=t[3];t[3]=a;if(e[1]<0){a=t[1];t[1]=t[3];t[3]=a}t[1]*=e[1];t[3]*=e[1];if(e[2]<0){a=t[0];t[0]=t[2];t[2]=a}t[0]*=e[2];t[2]*=e[2]}t[0]+=e[4];t[1]+=e[5];t[2]+=e[4];t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t,a=0){const r=e[a],i=e[a+1];e[a]=r*t[0]+i*t[2]+t[4];e[a+1]=r*t[1]+i*t[3]+t[5]}static applyTransformToBezier(e,t,a=0){const r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],c=t[5];for(let t=0;t<6;t+=2){const l=e[a+t],h=e[a+t+1];e[a+t]=l*r+h*n+o;e[a+t+1]=l*i+h*s+c}}static applyInverseTransform(e,t){const a=e[0],r=e[1],i=t[0]*t[3]-t[1]*t[2];e[0]=(a*t[3]-r*t[2]+t[2]*t[5]-t[4]*t[3])/i;e[1]=(-a*t[1]+r*t[0]+t[4]*t[1]-t[5]*t[0])/i}static axialAlignedBoundingBox(e,t,a){const r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],c=t[5],l=e[0],h=e[1],u=e[2],d=e[3];let f=r*l+o,g=f,p=r*u+o,m=p,b=s*h+c,y=b,w=s*d+c,x=w;if(0!==i||0!==n){const e=i*l,t=i*u,a=n*h,r=n*d;f+=a;m+=a;p+=r;g+=r;b+=e;x+=e;w+=t;y+=t}a[0]=Math.min(a[0],f,p,g,m);a[1]=Math.min(a[1],b,w,y,x);a[2]=Math.max(a[2],f,p,g,m);a[3]=Math.max(a[3],b,w,y,x)}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){const a=e[0],r=e[1],i=e[2],n=e[3],s=a**2+r**2,o=a*i+r*n,c=i**2+n**2,l=(s+c)/2,h=Math.sqrt(l**2-(s*c-o**2));t[0]=Math.sqrt(l+h||1);t[1]=Math.sqrt(l-h||1)}static normalizeRect(e){const t=e.slice(0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}return t}static intersect(e,t){const a=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(a>r)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),n=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>n?null:[a,i,r,n]}static pointBoundingBox(e,t,a){a[0]=Math.min(a[0],e);a[1]=Math.min(a[1],t);a[2]=Math.max(a[2],e);a[3]=Math.max(a[3],t)}static rectBoundingBox(e,t,a,r,i){i[0]=Math.min(i[0],e,a);i[1]=Math.min(i[1],t,r);i[2]=Math.max(i[2],e,a);i[3]=Math.max(i[3],t,r)}static#e(e,t,a,r,i,n,s,o,c,l){if(c<=0||c>=1)return;const h=1-c,u=c*c,d=u*c,f=h*(h*(h*e+3*c*t)+3*u*a)+d*r,g=h*(h*(h*i+3*c*n)+3*u*s)+d*o;l[0]=Math.min(l[0],f);l[1]=Math.min(l[1],g);l[2]=Math.max(l[2],f);l[3]=Math.max(l[3],g)}static#t(e,t,a,r,i,n,s,o,c,l,h,u){if(Math.abs(c)<1e-12){Math.abs(l)>=1e-12&&this.#e(e,t,a,r,i,n,s,o,-h/l,u);return}const d=l**2-4*h*c;if(d<0)return;const f=Math.sqrt(d),g=2*c;this.#e(e,t,a,r,i,n,s,o,(-l+f)/g,u);this.#e(e,t,a,r,i,n,s,o,(-l-f)/g,u)}static bezierBoundingBox(e,t,a,r,i,n,s,o,c){c[0]=Math.min(c[0],e,s);c[1]=Math.min(c[1],t,o);c[2]=Math.max(c[2],e,s);c[3]=Math.max(c[3],t,o);this.#t(e,a,i,s,t,r,n,o,3*(3*(a-i)-e+s),6*(e-2*a+i),3*(a-e),c);this.#t(e,a,i,s,t,r,n,o,3*(3*(r-n)-t+o),6*(t-2*r+n),3*(r-t),c)}}const pa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToPDFString(e,t=!1){if(e[0]>="ï"){let a;if("þ"===e[0]&&"ÿ"===e[1]){a="utf-16be";e.length%2==1&&(e=e.slice(0,-1))}else if("ÿ"===e[0]&&"þ"===e[1]){a="utf-16le";e.length%2==1&&(e=e.slice(0,-1))}else"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(a="utf-8");if(a)try{const r=new TextDecoder(a,{fatal:!0}),i=stringToBytes(e),n=r.decode(i);return t||!n.includes("\x1B")?n:n.replaceAll(/\\x1b[^\\x1b]*(?:\\x1b|$)/g,"")}catch(e){warn(`stringToPDFString: "${e}".`)}}const a=[];for(let r=0,i=e.length;r<i;r++){const n=e.charCodeAt(r);if(!t&&27===n){for(;++r<i&&27!==e.charCodeAt(r););continue}const s=pa[n];a.push(s?String.fromCharCode(s):e.charAt(r))}return a.join("")}function stringToUTF8String(e){return decodeURIComponent(escape(e))}function utf8StringToString(e){return unescape(encodeURIComponent(e))}function isArrayEqual(e,t){if(e.length!==t.length)return!1;for(let a=0,r=e.length;a<r;a++)if(e[a]!==t[a])return!1;return!0}function getModificationDate(e=new Date){e instanceof Date||(e=new Date(e));return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")}let ma=null,ba=null;function MathClamp(e,t,a){return Math.min(Math.max(e,t),a)}function toHexUtil(e){return Uint8Array.prototype.toHex?e.toHex():Array.from(e,(e=>ga[e])).join("")}"function"!=typeof Promise.try&&(Promise.try=function(e,...t){return new Promise((a=>{a(e(...t))}))});"function"!=typeof Math.sumPrecise&&(Math.sumPrecise=function(e){return e.reduce(((e,t)=>e+t),0)});const ya=Symbol("CIRCULAR_REF"),wa=Symbol("EOF");let xa=Object.create(null),Sa=Object.create(null),Aa=Object.create(null);class Name{constructor(e){this.name=e}static get(e){return Sa[e]||=new Name(e)}}class Cmd{constructor(e){this.cmd=e}static get(e){return xa[e]||=new Cmd(e)}}const ka=function nonSerializableClosure(){return ka};class Dict{constructor(e=null){this._map=new Map;this.xref=e;this.objId=null;this.suppressEncryption=!1;this.__nonSerializable__=ka}assignXref(e){this.xref=e}get size(){return this._map.size}get(e,t,a){let r=this._map.get(e);if(void 0===r&&void 0!==t){r=this._map.get(t);void 0===r&&void 0!==a&&(r=this._map.get(a))}return r instanceof Ref&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(e,t,a){let r=this._map.get(e);if(void 0===r&&void 0!==t){r=this._map.get(t);void 0===r&&void 0!==a&&(r=this._map.get(a))}return r instanceof Ref&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(e,t,a){let r=this._map.get(e);if(void 0===r&&void 0!==t){r=this._map.get(t);void 0===r&&void 0!==a&&(r=this._map.get(a))}r instanceof Ref&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption));if(Array.isArray(r)){r=r.slice();for(let e=0,t=r.length;e<t;e++)r[e]instanceof Ref&&this.xref&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption))}return r}getRaw(e){return this._map.get(e)}getKeys(){return[...this._map.keys()]}getRawValues(){return[...this._map.values()]}set(e,t){this._map.set(e,t)}setIfNotExists(e,t){this.has(e)||this.set(e,t)}setIfNumber(e,t){"number"==typeof t&&this.set(e,t)}setIfArray(e,t){(Array.isArray(t)||ArrayBuffer.isView(t))&&this.set(e,t)}setIfDefined(e,t){null!=t&&this.set(e,t)}setIfName(e,t){"string"==typeof t?this.set(e,Name.get(t)):t instanceof Name&&this.set(e,t)}has(e){return this._map.has(e)}*[Symbol.iterator](){for(const[e,t]of this._map)yield[e,t instanceof Ref&&this.xref?this.xref.fetch(t,this.suppressEncryption):t]}static get empty(){const e=new Dict(null);e.set=(e,t)=>{unreachable("Should not call `set` on the empty dictionary.")};return shadow(this,"empty",e)}static merge({xref:e,dictArray:t,mergeSubDicts:a=!1}){const r=new Dict(e),i=new Map;for(const e of t)if(e instanceof Dict)for(const[t,r]of e._map){let e=i.get(t);if(void 0===e){e=[];i.set(t,e)}else if(!(a&&r instanceof Dict))continue;e.push(r)}for(const[t,a]of i){if(1===a.length||!(a[0]instanceof Dict)){r._map.set(t,a[0]);continue}const i=new Dict(e);for(const e of a)for(const[t,a]of e._map)i._map.has(t)||i._map.set(t,a);i.size>0&&r._map.set(t,i)}i.clear();return r.size>0?r:Dict.empty}clone(){const e=new Dict(this.xref);for(const t of this.getKeys())e.set(t,this.getRaw(t));return e}delete(e){delete this._map[e]}}class Ref{constructor(e,t){this.num=e;this.gen=t}toString(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(e){const t=Aa[e];if(t)return t;const a=/^(\\d+)R(\\d*)$/.exec(e);return a&&"0"!==a[1]?Aa[e]=new Ref(parseInt(a[1]),a[2]?parseInt(a[2]):0):null}static get(e,t){const a=0===t?`${e}R`:`${e}R${t}`;return Aa[a]||=new Ref(e,t)}}class RefSet{constructor(e=null){this._set=new Set(e?._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}class RefSetCache{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}*values(){yield*this._map.values()}*items(){for(const[e,t]of this._map)yield[Ref.fromString(e),t]}}function isName(e,t){return e instanceof Name&&(void 0===t||e.name===t)}function isCmd(e,t){return e instanceof Cmd&&(void 0===t||e.cmd===t)}function isDict(e,t){return e instanceof Dict&&(void 0===t||isName(e.get("Type"),t))}function isRefsEqual(e,t){return e.num===t.num&&e.gen===t.gen}class BaseStream{get length(){unreachable("Abstract getter `length` accessed")}get isEmpty(){unreachable("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return shadow(this,"isDataLoaded",!0)}getByte(){unreachable("Abstract method `getByte` called")}getBytes(e){unreachable("Abstract method `getBytes` called")}async getImageData(e,t){return this.getBytes(e,t)}async asyncGetBytes(){unreachable("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(){return null}peekByte(){const e=this.getByte();-1!==e&&this.pos--;return e}peekBytes(e){const t=this.getBytes(e);this.pos-=t.length;return t}getUint16(){const e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){unreachable("Abstract method `getByteRange` called")}getString(e){return bytesToString(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){unreachable("Abstract method `reset` called")}moveStart(){unreachable("Abstract method `moveStart` called")}makeSubStream(e,t,a=null){unreachable("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}const Ca=/^[1-9]\\.\\d$/,va=2**31-1,Fa=[1,0,0,1,0,0],Ia=["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"],Ta=["ExtGState","Font","Properties","XObject"];function getLookupTableFactory(e){let t;return function(){if(e){t=Object.create(null);e(t);e=null}return t}}class MissingDataException extends fa{constructor(e,t){super(`Missing data [${e}, ${t})`,"MissingDataException");this.begin=e;this.end=t}}class ParserEOFException extends fa{constructor(e){super(e,"ParserEOFException")}}class XRefEntryException extends fa{constructor(e){super(e,"XRefEntryException")}}class XRefParseException extends fa{constructor(e){super(e,"XRefParseException")}}function arrayBuffersToBytes(e){const t=e.length;if(0===t)return new Uint8Array(0);if(1===t)return new Uint8Array(e[0]);let a=0;for(let r=0;r<t;r++)a+=e[r].byteLength;const r=new Uint8Array(a);let i=0;for(let a=0;a<t;a++){const t=new Uint8Array(e[a]);r.set(t,i);i+=t.byteLength}return r}async function fetchBinaryData(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch file "${e}" with "${t.statusText}".`);return new Uint8Array(await t.arrayBuffer())}function getInheritableProperty({dict:e,key:t,getArray:a=!1,stopWhenFound:r=!0}){let i;const n=new RefSet;for(;e instanceof Dict&&(!e.objId||!n.has(e.objId));){e.objId&&n.put(e.objId);const s=a?e.getArray(t):e.get(t);if(void 0!==s){if(r)return s;(i||=[]).push(s)}e=e.get("Parent")}return i}const Oa=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function toRomanNumerals(e,t=!1){assert(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const a="M".repeat(e/1e3|0)+Oa[e%1e3/100|0]+Oa[10+(e%100/10|0)]+Oa[20+e%10];return t?a.toLowerCase():a}function log2(e){return e>0?Math.ceil(Math.log2(e)):0}function readInt8(e,t){return e[t]<<24>>24}function readInt16(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function readUint16(e,t){return e[t]<<8|e[t+1]}function readUint32(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function isWhiteSpace(e){return 32===e||9===e||13===e||10===e}function isNumberArray(e,t){return Array.isArray(e)?(null===t||e.length===t)&&e.every((e=>"number"==typeof e)):ArrayBuffer.isView(e)&&!(e instanceof BigInt64Array||e instanceof BigUint64Array)&&(null===t||e.length===t)}function lookupMatrix(e,t){return isNumberArray(e,6)?e:t}function lookupRect(e,t){return isNumberArray(e,4)?e:t}function lookupNormalRect(e,t){return isNumberArray(e,4)?Util.normalizeRect(e):t}function parseXFAPath(e){const t=/(.+)\\[(\\d+)\\]$/;return e.split(".").map((e=>{const a=e.match(t);return a?{name:a[1],pos:parseInt(a[2],10)}:{name:e,pos:0}}))}function escapePDFName(e){const t=[];let a=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);if(i<33||i>126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i){a<r&&t.push(e.substring(a,r));t.push(`#${i.toString(16)}`);a=r+1}}if(0===t.length)return e;a<e.length&&t.push(e.substring(a,e.length));return t.join("")}function escapeString(e){return e.replaceAll(/([()\\\\\\n\\r])/g,(e=>"\\n"===e?"\\\\n":"\\r"===e?"\\\\r":`\\\\${e}`))}function _collectJS(e,t,a,r){if(!e)return;let i=null;if(e instanceof Ref){if(r.has(e))return;i=e;r.put(i);e=t.fetch(e)}if(Array.isArray(e))for(const i of e)_collectJS(i,t,a,r);else if(e instanceof Dict){if(isName(e.get("S"),"JavaScript")){const t=e.get("JS");let r;t instanceof BaseStream?r=t.getString():"string"==typeof t&&(r=t);r&&=stringToPDFString(r,!0).replaceAll("\\0","");r&&a.push(r.trim())}_collectJS(e.getRaw("Next"),t,a,r)}i&&r.remove(i)}function collectActions(e,t,a){const r=Object.create(null),i=getInheritableProperty({dict:t,key:"AA",stopWhenFound:!1});if(i)for(let t=i.length-1;t>=0;t--){const n=i[t];if(n instanceof Dict)for(const t of n.getKeys()){const i=a[t];if(!i)continue;const s=[];_collectJS(n.getRaw(t),e,s,new RefSet);s.length>0&&(r[i]=s)}}if(t.has("A")){const a=[];_collectJS(t.get("A"),e,a,new RefSet);a.length>0&&(r.Action=a)}return objectSize(r)>0?r:null}const Ma={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function*codePointIter(e){for(let t=0,a=e.length;t<a;t++){const a=e.codePointAt(t);a>55295&&(a<57344||a>65533)&&t++;yield a}}function encodeToXmlString(e){const t=[];let a=0;for(let r=0,i=e.length;r<i;r++){const i=e.codePointAt(r);if(32<=i&&i<=126){const n=Ma[i];if(n){a<r&&t.push(e.substring(a,r));t.push(n);a=r+1}}else{a<r&&t.push(e.substring(a,r));t.push(`&#x${i.toString(16).toUpperCase()};`);i>55295&&(i<57344||i>65533)&&r++;a=r+1}}if(0===t.length)return e;a<e.length&&t.push(e.substring(a,e.length));return t.join("")}function validateFontName(e,t=!1){const a=/^("|\').*("|\')$/.exec(e);if(a&&a[1]===a[2]){if(new RegExp(`[^\\\\\\\\]${a[1]}`).test(e.slice(1,-1))){t&&warn(`FontFamily contains unescaped ${a[1]}: ${e}.`);return!1}}else for(const a of e.split(/[ \\t]+/))if(/^(\\d|(-(\\d|-)))/.test(a)||!/^[\\w-\\\\]+$/.test(a)){t&&warn(`FontFamily contains invalid <custom-ident>: ${e}.`);return!1}return!0}function validateCSSFont(e){const t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:a,fontWeight:r,italicAngle:i}=e;if(!validateFontName(a,!0))return!1;const n=r?r.toString():"";e.fontWeight=t.has(n)?n:"400";const s=parseFloat(i);e.italicAngle=isNaN(s)||s<-90||s>90?"14":i.toString();return!0}function recoverJsURL(e){const t=new RegExp("^\\\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\\\.")+")\\\\((?:\'|\\")([^\'\\"]*)(?:\'|\\")(?:,\\\\s*(\\\\w+)\\\\)|\\\\))","i").exec(e);return t?.[2]?{url:t[2],newWindow:"app.launchURL"===t[1]&&"true"===t[3]}:null}function numberToString(e){if(Number.isInteger(e))return e.toString();const t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function getNewAnnotationsMap(e){if(!e)return null;const t=new Map;for(const[a,r]of e){if(!a.startsWith(f))continue;let e=t.get(r.pageIndex);if(!e){e=[];t.set(r.pageIndex,e)}e.push(r)}return t.size>0?t:null}function stringToAsciiOrUTF16BE(e){return null==e||function isAscii(e){if("string"!=typeof e)return!1;return!e||/^[\\x00-\\x7F]*$/.test(e)}(e)?e:stringToUTF16String(e,!0)}function stringToUTF16HexString(e){const t=[];for(let a=0,r=e.length;a<r;a++){const r=e.charCodeAt(a);t.push(ga[r>>8&255],ga[255&r])}return t.join("")}function stringToUTF16String(e,t=!1){const a=[];t&&a.push("þÿ");for(let t=0,r=e.length;t<r;t++){const r=e.charCodeAt(t);a.push(String.fromCharCode(r>>8&255),String.fromCharCode(255&r))}return a.join("")}function getRotationMatrix(e,t,a){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,a];case 270:return[0,-1,1,0,0,a];default:throw new Error("Invalid rotation")}}function getSizeInBytes(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}class QCMS{static#a=null;static _memory=null;static _mustAddAlpha=!1;static _destBuffer=null;static _destOffset=0;static _destLength=0;static _cssColor="";static _makeHexColor=null;static get _memoryArray(){const e=this.#a;return e?.byteLength?e:this.#a=new Uint8Array(this._memory.buffer)}}let Da;const Ba="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&Ba.decode();let Ra=null;function getUint8ArrayMemory0(){null!==Ra&&0!==Ra.byteLength||(Ra=new Uint8Array(Da.memory.buffer));return Ra}let Na=0;function passArray8ToWasm0(e,t){const a=t(1*e.length,1)>>>0;getUint8ArrayMemory0().set(e,a/1);Na=e.length;return a}const Ea=Object.freeze({RGB8:0,0:"RGB8",RGBA8:1,1:"RGBA8",BGRA8:2,2:"BGRA8",Gray8:3,3:"Gray8",GrayA8:4,4:"GrayA8",CMYK:5,5:"CMYK"}),Pa=Object.freeze({Perceptual:0,0:"Perceptual",RelativeColorimetric:1,1:"RelativeColorimetric",Saturation:2,2:"Saturation",AbsoluteColorimetric:3,3:"AbsoluteColorimetric"});function __wbg_get_imports(){const e={wbg:{}};e.wbg.__wbg_copyresult_b08ee7d273f295dd=function(e,t){!function copy_result(e,t){const{_mustAddAlpha:a,_destBuffer:r,_destOffset:i,_destLength:n,_memoryArray:s}=QCMS;if(t!==n)if(a)for(let a=e,n=e+t,o=i;a<n;a+=3,o+=4){r[o]=s[a];r[o+1]=s[a+1];r[o+2]=s[a+2];r[o+3]=255}else for(let a=e,n=e+t,o=i;a<n;a+=3,o+=4){r[o]=s[a];r[o+1]=s[a+1];r[o+2]=s[a+2]}else r.set(s.subarray(e,e+t),i)}(e>>>0,t>>>0)};e.wbg.__wbg_copyrgb_d60ce17bb05d9b67=function(e){!function copy_rgb(e){const{_destBuffer:t,_destOffset:a,_memoryArray:r}=QCMS;t[a]=r[e];t[a+1]=r[e+1];t[a+2]=r[e+2]}(e>>>0)};e.wbg.__wbg_makecssRGB_893bf0cd9fdb302d=function(e){!function make_cssRGB(e){const{_memoryArray:t}=QCMS;QCMS._cssColor=QCMS._makeHexColor(t[e],t[e+1],t[e+2])}(e>>>0)};e.wbg.__wbindgen_init_externref_table=function(){const e=Da.__wbindgen_export_0,t=e.grow(4);e.set(0,void 0);e.set(t+0,void 0);e.set(t+1,null);e.set(t+2,!0);e.set(t+3,!1)};e.wbg.__wbindgen_throw=function(e,t){throw new Error(function getStringFromWasm0(e,t){e>>>=0;return Ba.decode(getUint8ArrayMemory0().subarray(e,e+t))}(e,t))};return e}function __wbg_finalize_init(e,t){Da=e.exports;__wbg_init.__wbindgen_wasm_module=t;Ra=null;Da.__wbindgen_start();return Da}async function __wbg_init(e){if(void 0!==Da)return Da;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=__wbg_get_imports();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:a,module:r}=await async function __wbg_load(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n",t)}const a=await e.arrayBuffer();return await WebAssembly.instantiate(a,t)}{const a=await WebAssembly.instantiate(e,t);return a instanceof WebAssembly.Instance?{instance:a,module:e}:a}}(await e,t);return __wbg_finalize_init(a,r)}class ColorSpace{static#r=new Uint8ClampedArray(3);constructor(e,t){this.name=e;this.numComps=t}getRgb(e,t,a=new Uint8ClampedArray(3)){this.getRgbItem(e,t,a,0);return a}getRgbHex(e,t){const a=this.getRgb(e,t,ColorSpace.#r);return Util.makeHexColor(a[0],a[1],a[2])}getRgbItem(e,t,a,r){unreachable("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,a,r,i,n,s){unreachable("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){unreachable("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return ColorSpace.isDefaultDecode(e,this.numComps)}fillRgb(e,t,a,r,i,n,s,o,c){const l=t*a;let h=null;const u=1<<s,d=a!==i||t!==r;if(this.isPassthrough(s))h=o;else if(1===this.numComps&&l>u&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=s<=8?new Uint8Array(u):new Uint16Array(u);for(let e=0;e<u;e++)t[e]=e;const a=new Uint8ClampedArray(3*u);this.getRgbBuffer(t,0,u,a,0,s,0);if(d){h=new Uint8Array(3*l);let e=0;for(let t=0;t<l;++t){const r=3*o[t];h[e++]=a[r];h[e++]=a[r+1];h[e++]=a[r+2]}}else{let t=0;for(let r=0;r<l;++r){const i=3*o[r];e[t++]=a[i];e[t++]=a[i+1];e[t++]=a[i+2];t+=c}}}else if(d){h=new Uint8ClampedArray(3*l);this.getRgbBuffer(o,0,l,h,0,s,0)}else this.getRgbBuffer(o,0,r*n,e,0,s,c);if(h)if(d)!function resizeRgbImage(e,t,a,r,i,n,s){s=1!==s?0:s;const o=a/i,c=r/n;let l,h=0;const u=new Uint16Array(i),d=3*a;for(let e=0;e<i;e++)u[e]=3*Math.floor(e*o);for(let a=0;a<n;a++){const r=Math.floor(a*c)*d;for(let a=0;a<i;a++){l=r+u[a];t[h++]=e[l++];t[h++]=e[l++];t[h++]=e[l++];h+=s}}}(h,e,t,a,r,i,c);else{let t=0,a=0;for(let i=0,s=r*n;i<s;i++){e[t++]=h[a++];e[t++]=h[a++];e[t++]=h[a++];t+=c}}}get usesZeroToOneRange(){return shadow(this,"usesZeroToOneRange",!0)}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length){warn("The decode map is not the correct length");return!0}for(let t=0,a=e.length;t<a;t+=2)if(0!==e[t]||1!==e[t+1])return!1;return!0}}class AlternateCS extends ColorSpace{constructor(e,t,a){super("Alternate",e);this.base=t;this.tintFn=a;this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,a,r){const i=this.tmpBuf;this.tintFn(e,t,i,0);this.base.getRgbItem(i,0,a,r)}getRgbBuffer(e,t,a,r,i,n,s){const o=this.tintFn,c=this.base,l=1/((1<<n)-1),h=c.numComps,u=c.usesZeroToOneRange,d=(c.isPassthrough(8)||!u)&&0===s;let f=d?i:0;const g=d?r:new Uint8ClampedArray(h*a),p=this.numComps,m=new Float32Array(p),b=new Float32Array(h);let y,w;for(y=0;y<a;y++){for(w=0;w<p;w++)m[w]=e[t++]*l;o(m,0,b,0);if(u)for(w=0;w<h;w++)g[f++]=255*b[w];else{c.getRgbItem(b,0,g,f);f+=h}}d||c.getRgbBuffer(g,0,a,r,i,8,s)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}class PatternCS extends ColorSpace{constructor(e){super("Pattern",null);this.base=e}isDefaultDecode(e,t){unreachable("Should not call PatternCS.isDefaultDecode")}}class IndexedCS extends ColorSpace{constructor(e,t,a){super("Indexed",1);this.base=e;this.highVal=t;const r=e.numComps*(t+1);this.lookup=new Uint8Array(r);if(a instanceof BaseStream){const e=a.getBytes(r);this.lookup.set(e)}else{if("string"!=typeof a)throw new FormatError(`IndexedCS - unrecognized lookup table: ${a}`);for(let e=0;e<r;++e)this.lookup[e]=255&a.charCodeAt(e)}}getRgbItem(e,t,a,r){const{base:i,highVal:n,lookup:s}=this,o=MathClamp(Math.round(e[t]),0,n)*i.numComps;i.getRgbBuffer(s,o,1,a,r,8,0)}getRgbBuffer(e,t,a,r,i,n,s){const{base:o,highVal:c,lookup:l}=this,{numComps:h}=o,u=o.getOutputLength(h,s);for(let n=0;n<a;++n){const a=MathClamp(Math.round(e[t++]),0,c)*h;o.getRgbBuffer(l,a,1,r,i,8,s);i+=u}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2!==e.length){warn("Decode map length is not correct");return!0}if(!Number.isInteger(t)||t<1){warn("Bits per component is not correct");return!0}return 0===e[0]&&e[1]===(1<<t)-1}}class DeviceGrayCS extends ColorSpace{constructor(){super("DeviceGray",1)}getRgbItem(e,t,a,r){const i=255*e[t];a[r]=a[r+1]=a[r+2]=i}getRgbBuffer(e,t,a,r,i,n,s){const o=255/((1<<n)-1);let c=t,l=i;for(let t=0;t<a;++t){const t=o*e[c++];r[l++]=t;r[l++]=t;r[l++]=t;l+=s}}getOutputLength(e,t){return e*(3+t)}}class DeviceRgbCS extends ColorSpace{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,a,r){a[r]=255*e[t];a[r+1]=255*e[t+1];a[r+2]=255*e[t+2]}getRgbBuffer(e,t,a,r,i,n,s){if(8===n&&0===s){r.set(e.subarray(t,t+3*a),i);return}const o=255/((1<<n)-1);let c=t,l=i;for(let t=0;t<a;++t){r[l++]=o*e[c++];r[l++]=o*e[c++];r[l++]=o*e[c++];l+=s}}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return 8===e}}class DeviceRgbaCS extends ColorSpace{constructor(){super("DeviceRGBA",4)}getOutputLength(e,t){return 4*e}isPassthrough(e){return 8===e}fillRgb(e,t,a,r,i,n,s,o,c){a!==i||t!==r?function resizeRgbaImage(e,t,a,r,i,n,s){const o=a/i,c=r/n;let l=0;const h=new Uint16Array(i);if(1===s){for(let e=0;e<i;e++)h[e]=Math.floor(e*o);const r=new Uint32Array(e.buffer),s=new Uint32Array(t.buffer),u=FeatureTest.isLittleEndian?16777215:4294967040;for(let e=0;e<n;e++){const t=r.subarray(Math.floor(e*c)*a);for(let e=0;e<i;e++)s[l++]|=t[h[e]]&u}}else{const r=4,s=a*r;for(let e=0;e<i;e++)h[e]=Math.floor(e*o)*r;for(let a=0;a<n;a++){const r=e.subarray(Math.floor(a*c)*s);for(let e=0;e<i;e++){const a=h[e];t[l++]=r[a];t[l++]=r[a+1];t[l++]=r[a+2]}}}}(o,e,t,a,r,i,c):function copyRgbaImage(e,t,a){if(1===a){const a=new Uint32Array(e.buffer),r=new Uint32Array(t.buffer),i=FeatureTest.isLittleEndian?16777215:4294967040;for(let e=0,t=a.length;e<t;e++)r[e]|=a[e]&i}else{let a=0;for(let r=0,i=e.length;r<i;r+=4){t[a++]=e[r];t[a++]=e[r+1];t[a++]=e[r+2]}}}(o,e,c)}}class DeviceCmykCS extends ColorSpace{constructor(){super("DeviceCMYK",4)}#i(e,t,a,r,i){const n=e[t]*a,s=e[t+1]*a,o=e[t+2]*a,c=e[t+3]*a;r[i]=255+n*(-4.387332384609988*n+54.48615194189176*s+18.82290502165302*o+212.25662451639585*c-285.2331026137004)+s*(1.7149763477362134*s-5.6096736904047315*o+-17.873870861415444*c-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747);r[i+1]=255+n*(8.841041422036149*n+60.118027045597366*s+6.871425592049007*o+31.159100130055922*c-79.2970844816548)+s*(-15.310361306967817*s+17.575251261109482*o+131.35250912493976*c-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578);r[i+2]=255+n*(.8842522430003296*n+8.078677503112928*s+30.89978309703729*o-.23883238689178934*c-14.183576799673286)+s*(10.49593273432072*s+63.02378494754052*o+50.606957656360734*c-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}getRgbItem(e,t,a,r){this.#i(e,t,1,a,r)}getRgbBuffer(e,t,a,r,i,n,s){const o=1/((1<<n)-1);for(let n=0;n<a;n++){this.#i(e,t,o,r,i);t+=4;i+=3+s}}getOutputLength(e,t){return e/4*(3+t)|0}}class CalGrayCS extends ColorSpace{constructor(e,t,a){super("CalGray",1);if(!e)throw new FormatError("WhitePoint missing - required for color space CalGray");[this.XW,this.YW,this.ZW]=e;[this.XB,this.YB,this.ZB]=t||[0,0,0];this.G=a||1;if(this.XW<0||this.ZW<0||1!==this.YW)throw new FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);if(this.XB<0||this.YB<0||this.ZB<0){info(`Invalid BlackPoint for ${this.name}, falling back to default.`);this.XB=this.YB=this.ZB=0}0===this.XB&&0===this.YB&&0===this.ZB||warn(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`);if(this.G<1){info(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`);this.G=1}}#i(e,t,a,r,i){const n=(e[t]*i)**this.G,s=this.YW*n,o=Math.max(295.8*s**.3333333333333333-40.8,0);a[r]=o;a[r+1]=o;a[r+2]=o}getRgbItem(e,t,a,r){this.#i(e,t,a,r,1)}getRgbBuffer(e,t,a,r,i,n,s){const o=1/((1<<n)-1);for(let n=0;n<a;++n){this.#i(e,t,r,i,o);t+=1;i+=3+s}}getOutputLength(e,t){return e*(3+t)}}class CalRGBCS extends ColorSpace{static#n=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static#s=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static#o=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static#c=new Float32Array([1,1,1]);static#l=new Float32Array(3);static#h=new Float32Array(3);static#u=new Float32Array(3);static#d=(24/116)**3/8;constructor(e,t,a,r){super("CalRGB",3);if(!e)throw new FormatError("WhitePoint missing - required for color space CalRGB");const[i,n,s]=this.whitePoint=e,[o,c,l]=this.blackPoint=t||new Float32Array(3);[this.GR,this.GG,this.GB]=a||new Float32Array([1,1,1]);[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=r||new Float32Array([1,0,0,0,1,0,0,0,1]);if(i<0||s<0||1!==n)throw new FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);if(o<0||c<0||l<0){info(`Invalid BlackPoint for ${this.name} [${o}, ${c}, ${l}], falling back to default.`);this.blackPoint=new Float32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){info(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`);this.GR=this.GG=this.GB=1}}#f(e,t,a){a[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];a[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2];a[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}#g(e,t,a){a[0]=1*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1*t[2]/e[2]}#p(e,t,a){a[0]=.95047*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1.08883*t[2]/e[2]}#m(e){return e<=.0031308?MathClamp(12.92*e,0,1):e>=.99554525?1:MathClamp(1.055*e**(1/2.4)-.055,0,1)}#b(e){return e<0?-this.#b(-e):e>8?((e+16)/116)**3:e*CalRGBCS.#d}#y(e,t,a){if(0===e[0]&&0===e[1]&&0===e[2]){a[0]=t[0];a[1]=t[1];a[2]=t[2];return}const r=this.#b(0),i=(1-r)/(1-this.#b(e[0])),n=1-i,s=(1-r)/(1-this.#b(e[1])),o=1-s,c=(1-r)/(1-this.#b(e[2])),l=1-c;a[0]=t[0]*i+n;a[1]=t[1]*s+o;a[2]=t[2]*c+l}#w(e,t,a){if(1===e[0]&&1===e[2]){a[0]=t[0];a[1]=t[1];a[2]=t[2];return}const r=a;this.#f(CalRGBCS.#n,t,r);const i=CalRGBCS.#l;this.#g(e,r,i);this.#f(CalRGBCS.#s,i,a)}#x(e,t,a){const r=a;this.#f(CalRGBCS.#n,t,r);const i=CalRGBCS.#l;this.#p(e,r,i);this.#f(CalRGBCS.#s,i,a)}#i(e,t,a,r,i){const n=MathClamp(e[t]*i,0,1),s=MathClamp(e[t+1]*i,0,1),o=MathClamp(e[t+2]*i,0,1),c=1===n?1:n**this.GR,l=1===s?1:s**this.GG,h=1===o?1:o**this.GB,u=this.MXA*c+this.MXB*l+this.MXC*h,d=this.MYA*c+this.MYB*l+this.MYC*h,f=this.MZA*c+this.MZB*l+this.MZC*h,g=CalRGBCS.#h;g[0]=u;g[1]=d;g[2]=f;const p=CalRGBCS.#u;this.#w(this.whitePoint,g,p);const m=CalRGBCS.#h;this.#y(this.blackPoint,p,m);const b=CalRGBCS.#u;this.#x(CalRGBCS.#c,m,b);const y=CalRGBCS.#h;this.#f(CalRGBCS.#o,b,y);a[r]=255*this.#m(y[0]);a[r+1]=255*this.#m(y[1]);a[r+2]=255*this.#m(y[2])}getRgbItem(e,t,a,r){this.#i(e,t,a,r,1)}getRgbBuffer(e,t,a,r,i,n,s){const o=1/((1<<n)-1);for(let n=0;n<a;++n){this.#i(e,t,r,i,o);t+=3;i+=3+s}}getOutputLength(e,t){return e*(3+t)/3|0}}class LabCS extends ColorSpace{constructor(e,t,a){super("Lab",3);if(!e)throw new FormatError("WhitePoint missing - required for color space Lab");[this.XW,this.YW,this.ZW]=e;[this.amin,this.amax,this.bmin,this.bmax]=a||[-100,100,-100,100];[this.XB,this.YB,this.ZB]=t||[0,0,0];if(this.XW<0||this.ZW<0||1!==this.YW)throw new FormatError("Invalid WhitePoint components, no fallback available");if(this.XB<0||this.YB<0||this.ZB<0){info("Invalid BlackPoint, falling back to default");this.XB=this.YB=this.ZB=0}if(this.amin>this.amax||this.bmin>this.bmax){info("Invalid Range, falling back to defaults");this.amin=-100;this.amax=100;this.bmin=-100;this.bmax=100}}#S(e){return e>=6/29?e**3:108/841*(e-4/29)}#A(e,t,a,r){return a+e*(r-a)/t}#i(e,t,a,r,i){let n=e[t],s=e[t+1],o=e[t+2];if(!1!==a){n=this.#A(n,a,0,100);s=this.#A(s,a,this.amin,this.amax);o=this.#A(o,a,this.bmin,this.bmax)}s>this.amax?s=this.amax:s<this.amin&&(s=this.amin);o>this.bmax?o=this.bmax:o<this.bmin&&(o=this.bmin);const c=(n+16)/116,l=c+s/500,h=c-o/200,u=this.XW*this.#S(l),d=this.YW*this.#S(c),f=this.ZW*this.#S(h);let g,p,m;if(this.ZW<1){g=3.1339*u+-1.617*d+-.4906*f;p=-.9785*u+1.916*d+.0333*f;m=.072*u+-.229*d+1.4057*f}else{g=3.2406*u+-1.5372*d+-.4986*f;p=-.9689*u+1.8758*d+.0415*f;m=.0557*u+-.204*d+1.057*f}r[i]=255*Math.sqrt(g);r[i+1]=255*Math.sqrt(p);r[i+2]=255*Math.sqrt(m)}getRgbItem(e,t,a,r){this.#i(e,t,!1,a,r)}getRgbBuffer(e,t,a,r,i,n,s){const o=(1<<n)-1;for(let n=0;n<a;n++){this.#i(e,t,o,r,i);t+=3;i+=3+s}}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return shadow(this,"usesZeroToOneRange",!1)}}function fetchSync(e){const t=new XMLHttpRequest;t.open("GET",e,!1);t.responseType="arraybuffer";t.send(null);return t.response}class IccColorSpace extends ColorSpace{#k;#C;static#v=!0;static#F=null;static#I=new FinalizationRegistry((e=>{!function qcms_drop_transformer(e){Da.qcms_drop_transformer(e)}(e)}));constructor(e,t,a){if(!IccColorSpace.isUsable)throw new Error("No ICC color space support");super(t,a);let r;switch(a){case 1:r=Ea.Gray8;this.#C=(e,t,a)=>function qcms_convert_one(e,t,a){Da.qcms_convert_one(e,t,a)}(this.#k,255*e[t],a);break;case 3:r=Ea.RGB8;this.#C=(e,t,a)=>function qcms_convert_three(e,t,a,r,i){Da.qcms_convert_three(e,t,a,r,i)}(this.#k,255*e[t],255*e[t+1],255*e[t+2],a);break;case 4:r=Ea.CMYK;this.#C=(e,t,a)=>function qcms_convert_four(e,t,a,r,i,n){Da.qcms_convert_four(e,t,a,r,i,n)}(this.#k,255*e[t],255*e[t+1],255*e[t+2],255*e[t+3],a);break;default:throw new Error(`Unsupported number of components: ${a}`)}this.#k=function qcms_transformer_from_memory(e,t,a){const r=passArray8ToWasm0(e,Da.__wbindgen_malloc),i=Na;return Da.qcms_transformer_from_memory(r,i,t,a)>>>0}(e,r,Pa.Perceptual);if(!this.#k)throw new Error("Failed to create ICC color space");IccColorSpace.#I.register(this,this.#k)}getRgbHex(e,t){this.#C(e,t,!0);return QCMS._cssColor}getRgbItem(e,t,a,r){QCMS._destBuffer=a;QCMS._destOffset=r;QCMS._destLength=3;this.#C(e,t,!1);QCMS._destBuffer=null}getRgbBuffer(e,t,a,r,i,n,s){e=e.subarray(t,t+a*this.numComps);if(8!==n){const t=255/((1<<n)-1);for(let a=0,r=e.length;a<r;a++)e[a]*=t}QCMS._mustAddAlpha=s&&r.buffer===e.buffer;QCMS._destBuffer=r;QCMS._destOffset=i;QCMS._destLength=a*(3+s);!function qcms_convert_array(e,t){const a=passArray8ToWasm0(t,Da.__wbindgen_malloc),r=Na;Da.qcms_convert_array(e,a,r)}(this.#k,e);QCMS._mustAddAlpha=!1;QCMS._destBuffer=null}getOutputLength(e,t){return e/this.numComps*(3+t)|0}static setOptions({useWasm:e,useWorkerFetch:t,wasmUrl:a}){if(t){this.#v=e;this.#F=a}else this.#v=!1}static get isUsable(){let e=!1;if(this.#v)if(this.#F)try{this._module=function initSync(e){if(void 0!==Da)return Da;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=__wbg_get_imports();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return __wbg_finalize_init(new WebAssembly.Instance(e,t),e)}({module:fetchSync(`${this.#F}qcms_bg.wasm`)});e=!!this._module;QCMS._memory=this._module.memory;QCMS._makeHexColor=Util.makeHexColor}catch(e){warn(`ICCBased color space: "${e}".`)}else warn("No ICC color space support due to missing `wasmUrl` API option");return shadow(this,"isUsable",e)}}class CmykICCBasedCS extends IccColorSpace{static#T;constructor(){super(new Uint8Array(fetchSync(`${CmykICCBasedCS.#T}CGATS001Compat-v2-micro.icc`)),"DeviceCMYK",4)}static setOptions({iccUrl:e}){this.#T=e}static get isUsable(){let e=!1;IccColorSpace.isUsable&&(this.#T?e=!0:warn("No CMYK ICC profile support due to missing `iccUrl` API option"));return shadow(this,"isUsable",e)}}class Stream extends BaseStream{constructor(e,t,a,r){super();this.bytes=e instanceof Uint8Array?e:new Uint8Array(e);this.start=t||0;this.pos=this.start;this.end=t+a||this.bytes.length;this.dict=r}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){const t=this.bytes,a=this.pos,r=this.end;if(!e)return t.subarray(a,r);let i=a+e;i>r&&(i=r);this.pos=i;return t.subarray(a,i)}getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);return this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t,a=null){return new Stream(this.bytes.buffer,e,t,a)}}class StringStream extends Stream{constructor(e){super(stringToBytes(e))}}class NullStream extends Stream{constructor(){super(new Uint8Array(0))}}class ChunkedStream extends Stream{constructor(e,t,a){super(new Uint8Array(e),0,e,null);this.chunkSize=t;this._loadedChunks=new Set;this.numChunks=Math.ceil(e/t);this.manager=a;this.progressiveDataLength=0;this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[];for(let t=0,a=this.numChunks;t<a;++t)this._loadedChunks.has(t)||e.push(t);return e}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){const a=this.chunkSize;if(e%a!=0)throw new Error(`Bad begin offset: ${e}`);const r=e+t.byteLength;if(r%a!=0&&r!==this.bytes.length)throw new Error(`Bad end offset: ${r}`);this.bytes.set(new Uint8Array(t),e);const i=Math.floor(e/a),n=Math.floor((r-1)/a)+1;for(let e=i;e<n;++e)this._loadedChunks.add(e)}onReceiveProgressiveData(e){let t=this.progressiveDataLength;const a=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t);t+=e.byteLength;this.progressiveDataLength=t;const r=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=a;e<r;++e)this._loadedChunks.add(e)}ensureByte(e){if(e<this.progressiveDataLength)return;const t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;const a=Math.floor(e/this.chunkSize);if(a>this.numChunks)return;const r=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let i=a;i<r;++i)if(!this._loadedChunks.has(i))throw new MissingDataException(e,t)}nextEmptyChunk(e){const t=this.numChunks;for(let a=0;a<t;++a){const r=(e+a)%t;if(!this._loadedChunks.has(r))return r}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){const e=this.pos;if(e>=this.end)return-1;e>=this.progressiveDataLength&&this.ensureByte(e);return this.bytes[this.pos++]}getBytes(e){const t=this.bytes,a=this.pos,r=this.end;if(!e){r>this.progressiveDataLength&&this.ensureRange(a,r);return t.subarray(a,r)}let i=a+e;i>r&&(i=r);i>this.progressiveDataLength&&this.ensureRange(a,i);this.pos=i;return t.subarray(a,i)}getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);t>this.progressiveDataLength&&this.ensureRange(e,t);return this.bytes.subarray(e,t)}makeSubStream(e,t,a=null){t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e);function ChunkedStreamSubstream(){}ChunkedStreamSubstream.prototype=Object.create(this);ChunkedStreamSubstream.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),a=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<a;++e)this._loadedChunks.has(e)||r.push(e);return r};Object.defineProperty(ChunkedStreamSubstream.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});const r=new ChunkedStreamSubstream;r.pos=r.start=e;r.end=e+t||this.end;r.dict=a;return r}getBaseStreams(){return[this]}}class ChunkedStreamManager{constructor(e,t){this.length=t.length;this.chunkSize=t.rangeChunkSize;this.stream=new ChunkedStream(this.length,this.chunkSize,this);this.pdfNetworkStream=e;this.disableAutoFetch=t.disableAutoFetch;this.msgHandler=t.msgHandler;this.currRequestId=0;this._chunksNeededByRequest=new Map;this._requestsByChunk=new Map;this._promisesByRequest=new Map;this.progressiveDataLength=0;this.aborted=!1;this._loadedStreamCapability=Promise.withResolvers()}sendRequest(e,t){const a=this.pdfNetworkStream.getRangeReader(e,t);a.isStreamingSupported||(a.onProgress=this.onProgress.bind(this));let r=[],i=0;return new Promise(((e,t)=>{const readChunk=({value:n,done:s})=>{try{if(s){const t=arrayBuffersToBytes(r);r=null;e(t);return}i+=n.byteLength;a.isStreamingSupported&&this.onProgress({loaded:i});r.push(n);a.read().then(readChunk,t)}catch(e){t(e)}};a.read().then(readChunk,t)})).then((t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})}))}requestAllChunks(e=!1){if(!e){const e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,a=new Set;this._chunksNeededByRequest.set(t,a);for(const t of e)this.stream.hasChunk(t)||a.add(t);if(0===a.size)return Promise.resolve();const r=Promise.withResolvers();this._promisesByRequest.set(t,r);const i=[];for(const e of a){let a=this._requestsByChunk.get(e);if(!a){a=[];this._requestsByChunk.set(e,a);i.push(e)}a.push(t)}if(i.length>0){const e=this.groupChunks(i);for(const t of e){const e=t.beginChunk*this.chunkSize,a=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,a).catch(r.reject)}}return r.promise.catch((e=>{if(!this.aborted)throw e}))}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const a=this.getBeginChunk(e),r=this.getEndChunk(t),i=[];for(let e=a;e<r;++e)i.push(e);return this._requestChunks(i)}requestRanges(e=[]){const t=[];for(const a of e){const e=this.getBeginChunk(a.begin),r=this.getEndChunk(a.end);for(let a=e;a<r;++a)t.includes(a)||t.push(a)}t.sort(((e,t)=>e-t));return this._requestChunks(t)}groupChunks(e){const t=[];let a=-1,r=-1;for(let i=0,n=e.length;i<n;++i){const n=e[i];a<0&&(a=n);if(r>=0&&r+1!==n){t.push({beginChunk:a,endChunk:r+1});a=n}i+1===e.length&&t.push({beginChunk:a,endChunk:n+1});r=n}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,a=void 0===e.begin,r=a?this.progressiveDataLength:e.begin,i=r+t.byteLength,n=Math.floor(r/this.chunkSize),s=i<this.length?Math.floor(i/this.chunkSize):Math.ceil(i/this.chunkSize);if(a){this.stream.onReceiveProgressiveData(t);this.progressiveDataLength=i}else this.stream.onReceiveData(r,t);this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);const o=[];for(let e=n;e<s;++e){const t=this._requestsByChunk.get(e);if(t){this._requestsByChunk.delete(e);for(const a of t){const t=this._chunksNeededByRequest.get(a);t.has(e)&&t.delete(e);t.size>0||o.push(a)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(s);Number.isInteger(e)&&this._requestChunks([e])}for(const e of o){const t=this._promisesByRequest.get(e);this._promisesByRequest.delete(e);t.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0;this.pdfNetworkStream?.cancelAllRequests(e);for(const t of this._promisesByRequest.values())t.reject(e)}}function convertToRGBA(e){switch(e.kind){case k:return convertBlackAndWhiteToRGBA(e);case C:return function convertRGBToRGBA({src:e,srcPos:t=0,dest:a,destPos:r=0,width:i,height:n}){let s=0;const o=i*n*3,c=o>>2,l=new Uint32Array(e.buffer,t,c);if(FeatureTest.isLittleEndian){for(;s<c-2;s+=3,r+=4){const e=l[s],t=l[s+1],i=l[s+2];a[r]=4278190080|e;a[r+1]=e>>>24|t<<8|4278190080;a[r+2]=t>>>16|i<<16|4278190080;a[r+3]=i>>>8|4278190080}for(let i=4*s,n=t+o;i<n;i+=3)a[r++]=e[i]|e[i+1]<<8|e[i+2]<<16|4278190080}else{for(;s<c-2;s+=3,r+=4){const e=l[s],t=l[s+1],i=l[s+2];a[r]=255|e;a[r+1]=e<<24|t>>>8|255;a[r+2]=t<<16|i>>>16|255;a[r+3]=i<<8|255}for(let i=4*s,n=t+o;i<n;i+=3)a[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|255}return{srcPos:t+o,destPos:r}}(e)}return null}function convertBlackAndWhiteToRGBA({src:e,srcPos:t=0,dest:a,width:r,height:i,nonBlackColor:n=4294967295,inverseDecode:s=!1}){const o=FeatureTest.isLittleEndian?4278190080:255,[c,l]=s?[n,o]:[o,n],h=r>>3,u=7&r,d=e.length;a=new Uint32Array(a.buffer);let f=0;for(let r=0;r<i;r++){for(const r=t+h;t<r;t++){const r=t<d?e[t]:255;a[f++]=128&r?l:c;a[f++]=64&r?l:c;a[f++]=32&r?l:c;a[f++]=16&r?l:c;a[f++]=8&r?l:c;a[f++]=4&r?l:c;a[f++]=2&r?l:c;a[f++]=1&r?l:c}if(0===u)continue;const r=t<d?e[t++]:255;for(let e=0;e<u;e++)a[f++]=r&1<<7-e?l:c}return{srcPos:t,destPos:f}}class ImageResizer{static#O=2048;static#M=FeatureTest.isImageDecoderSupported;constructor(e,t){this._imgData=e;this._isMask=t}static get canUseImageDecoder(){return shadow(this,"canUseImageDecoder",this.#M?ImageDecoder.isTypeSupported("image/bmp"):Promise.resolve(!1))}static needsToBeResized(e,t){if(e<=this.#O&&t<=this.#O)return!1;const{MAX_DIM:a}=this;if(e>a||t>a)return!0;const r=e*t;if(this._hasMaxArea)return r>this.MAX_AREA;if(r<this.#O**2)return!1;if(this._areGoodDims(e,t)){this.#O=Math.max(this.#O,Math.floor(Math.sqrt(e*t)));return!1}this.#O=this._guessMax(this.#O,a,128,0);return r>(this.MAX_AREA=this.#O**2)}static getReducePowerForJPX(e,t,a){const r=e*t,i=2**30/(4*a);if(!this.needsToBeResized(e,t))return r>i?Math.ceil(Math.log2(r/i)):0;const{MAX_DIM:n,MAX_AREA:s}=this,o=Math.max(e/n,t/n,Math.sqrt(r/Math.min(i,s)));return Math.ceil(Math.log2(o))}static get MAX_DIM(){return shadow(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){this._hasMaxArea=!0;return shadow(this,"MAX_AREA",this._guessMax(this.#O,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){if(e>=0){this._hasMaxArea=!0;shadow(this,"MAX_AREA",e)}}static setOptions({canvasMaxAreaInBytes:e=-1,isImageDecoderSupported:t=!1}){this._hasMaxArea||(this.MAX_AREA=e>>2);this.#M=t}static _areGoodDims(e,t){try{const a=new OffscreenCanvas(e,t),r=a.getContext("2d");r.fillRect(0,0,1,1);const i=r.getImageData(0,0,1,1).data[3];a.width=a.height=1;return 0!==i}catch{return!1}}static _guessMax(e,t,a,r){for(;e+a+1<t;){const a=Math.floor((e+t)/2),i=r||a;this._areGoodDims(a,i)?e=a:t=a}return e}static async createImage(e,t=!1){return new ImageResizer(e,t)._createImage()}async _createImage(){const{_imgData:e}=this,{width:t,height:a}=e;if(t*a*4>va){const e=this.#D();if(e)return e}const r=this._encodeBMP();let i,n;if(await ImageResizer.canUseImageDecoder){i=new ImageDecoder({data:r,type:"image/bmp",preferAnimation:!1,transfer:[r.buffer]});n=i.decode().catch((e=>{warn(`BMP image decoding failed: ${e}`);return createImageBitmap(new Blob([this._encodeBMP().buffer],{type:"image/bmp"}))})).finally((()=>{i.close()}))}else n=createImageBitmap(new Blob([r.buffer],{type:"image/bmp"}));const{MAX_AREA:s,MAX_DIM:o}=ImageResizer,c=Math.max(t/o,a/o,Math.sqrt(t*a/s)),l=Math.max(c,2),h=Math.round(10*(c+1.25))/10/l,u=Math.floor(Math.log2(h)),d=new Array(u+2).fill(2);d[0]=l;d.splice(-1,1,h/(1<<u));let f=t,g=a;const p=await n;let m=p.image||p;for(const e of d){const t=f,a=g;f=Math.floor(f/e)-1;g=Math.floor(g/e)-1;const r=new OffscreenCanvas(f,g);r.getContext("2d").drawImage(m,0,0,t,a,0,0,f,g);m.close();m=r.transferToImageBitmap()}e.data=null;e.bitmap=m;e.width=f;e.height=g;return e}#D(){const{_imgData:e}=this,{data:t,width:a,height:r,kind:i}=e,n=a*r*4,s=Math.ceil(Math.log2(n/va)),o=a>>s,c=r>>s;let l,h=r;try{l=new Uint8Array(n)}catch{let e=Math.floor(Math.log2(n+1));for(;;)try{l=new Uint8Array(2**e-1);break}catch{e-=1}h=Math.floor((2**e-1)/(4*a));const t=a*h*4;t<l.length&&(l=new Uint8Array(t))}const u=new Uint32Array(l.buffer),d=new Uint32Array(o*c);let f=0,g=0;const p=Math.ceil(r/h),m=r%h==0?r:r%h;for(let e=0;e<p;e++){const r=e<p-1?h:m;({srcPos:f}=convertToRGBA({kind:i,src:t,dest:u,width:a,height:r,inverseDecode:this._isMask,srcPos:f}));for(let e=0,t=r>>s;e<t;e++){const t=u.subarray((e<<s)*a);for(let e=0;e<o;e++)d[g++]=t[e<<s]}}if(ImageResizer.needsToBeResized(o,c)){e.data=d;e.width=o;e.height=c;e.kind=v;return null}const b=new OffscreenCanvas(o,c);b.getContext("2d",{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(d.buffer),o,c),0,0);e.data=null;e.bitmap=b.transferToImageBitmap();e.width=o;e.height=c;return e}_encodeBMP(){const{width:e,height:t,kind:a}=this._imgData;let r,i=this._imgData.data,n=new Uint8Array(0),s=n,o=0;switch(a){case k:{r=1;n=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);const a=e+7>>3,s=a+3&-4;if(a!==s){const e=new Uint8Array(s*t);let r=0;for(let n=0,o=t*a;n<o;n+=a,r+=s)e.set(i.subarray(n,n+a),r);i=e}break}case C:r=24;if(3&e){const a=3*e,r=a+3&-4,n=r-a,s=new Uint8Array(r*t);let o=0;for(let e=0,r=t*a;e<r;e+=a){const t=i.subarray(e,e+a);for(let e=0;e<a;e+=3){s[o++]=t[e+2];s[o++]=t[e+1];s[o++]=t[e]}o+=n}i=s}else for(let e=0,t=i.length;e<t;e+=3){const t=i[e];i[e]=i[e+2];i[e+2]=t}break;case v:r=32;o=3;s=new Uint8Array(68);const a=new DataView(s.buffer);if(FeatureTest.isLittleEndian){a.setUint32(0,255,!0);a.setUint32(4,65280,!0);a.setUint32(8,16711680,!0);a.setUint32(12,4278190080,!0)}else{a.setUint32(0,4278190080,!0);a.setUint32(4,16711680,!0);a.setUint32(8,65280,!0);a.setUint32(12,255,!0)}break;default:throw new Error("invalid format")}let c=0;const l=40+s.length,h=14+l+n.length+i.length,u=new Uint8Array(h),d=new DataView(u.buffer);d.setUint16(c,19778,!0);c+=2;d.setUint32(c,h,!0);c+=4;d.setUint32(c,0,!0);c+=4;d.setUint32(c,14+l+n.length,!0);c+=4;d.setUint32(c,l,!0);c+=4;d.setInt32(c,e,!0);c+=4;d.setInt32(c,-t,!0);c+=4;d.setUint16(c,1,!0);c+=2;d.setUint16(c,r,!0);c+=2;d.setUint32(c,o,!0);c+=4;d.setUint32(c,0,!0);c+=4;d.setInt32(c,0,!0);c+=4;d.setInt32(c,0,!0);c+=4;d.setUint32(c,n.length/4,!0);c+=4;d.setUint32(c,0,!0);c+=4;u.set(s,c);c+=s.length;u.set(n,c);c+=n.length;u.set(i,c);return u}}const La=new Uint8Array(0);class DecodeStream extends BaseStream{constructor(e){super();this._rawMinBufferLength=e||0;this.pos=0;this.bufferLength=0;this.eof=!1;this.buffer=La;this.minBufferLength=512;if(e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}ensureBuffer(e){const t=this.buffer;if(e<=t.byteLength)return t;let a=this.minBufferLength;for(;a<e;)a*=2;const r=new Uint8Array(a);r.set(t);return this.buffer=r}getByte(){const e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e,t=null){const a=this.pos;let r;if(e){this.ensureBuffer(a+e);r=a+e;for(;!this.eof&&this.bufferLength<r;)this.readBlock(t);const i=this.bufferLength;r>i&&(r=i)}else{for(;!this.eof;)this.readBlock(t);r=this.bufferLength}this.pos=r;return this.buffer.subarray(a,r)}async getImageData(e,t){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,t):this.getBytes(e,t);const a=await this.stream.asyncGetBytes();return this.decodeImage(a,t)}reset(){this.pos=0}makeSubStream(e,t,a=null){if(void 0===t)for(;!this.eof;)this.readBlock();else{const a=e+t;for(;this.bufferLength<=a&&!this.eof;)this.readBlock()}return new Stream(this.buffer,e,t,a)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}class StreamsSequenceStream extends DecodeStream{constructor(e,t=null){e=e.filter((e=>e instanceof BaseStream));let a=0;for(const t of e)a+=t instanceof DecodeStream?t._rawMinBufferLength:t.length;super(a);this.streams=e;this._onError=t}readBlock(){const e=this.streams;if(0===e.length){this.eof=!0;return}const t=e.shift();let a;try{a=t.getBytes()}catch(e){if(this._onError){this._onError(e,t.dict?.objId);return}throw e}const r=this.bufferLength,i=r+a.length;this.ensureBuffer(i).set(a,r);this.bufferLength=i}getBaseStreams(){const e=[];for(const t of this.streams){const a=t.getBaseStreams();a&&e.push(...a)}return e.length>0?e:null}}class ColorSpaceUtils{static parse({cs:e,xref:t,resources:a=null,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:n,asyncIfNotCached:s=!1}){const o={xref:t,resources:a,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:n};let c,l,h;if(e instanceof Ref){l=e;const a=i.getByRef(l)||n.getByRef(l);if(a)return a;e=t.fetch(e)}if(e instanceof Name){c=e.name;const t=n.getByName(c);if(t)return t}try{h=this.#B(e,o)}catch(e){if(s&&!(e instanceof MissingDataException))return Promise.reject(e);throw e}if(c||l){n.set(c,l,h);l&&i.set(null,l,h)}return s?Promise.resolve(h):h}static#R(e,t){const{globalColorSpaceCache:a}=t;let r;if(e instanceof Ref){r=e;const t=a.getByRef(r);if(t)return t}const i=this.#B(e,t);r&&a.set(null,r,i);return i}static#B(e,t){const{xref:a,resources:r,pdfFunctionFactory:i,globalColorSpaceCache:n}=t;if((e=a.fetchIfRef(e))instanceof Name)switch(e.name){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"DeviceRGBA":return this.rgba;case"CMYK":case"DeviceCMYK":return this.cmyk;case"Pattern":return new PatternCS(null);default:if(r instanceof Dict){const a=r.get("ColorSpace");if(a instanceof Dict){const r=a.get(e.name);if(r){if(r instanceof Name)return this.#B(r,t);e=r;break}}}warn(`Unrecognized ColorSpace: ${e.name}`);return this.gray}if(Array.isArray(e)){const r=a.fetchIfRef(e[0]).name;let s,o,c,l,h,u;switch(r){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"CMYK":case"DeviceCMYK":return this.cmyk;case"CalGray":s=a.fetchIfRef(e[1]);l=s.getArray("WhitePoint");h=s.getArray("BlackPoint");u=s.get("Gamma");return new CalGrayCS(l,h,u);case"CalRGB":s=a.fetchIfRef(e[1]);l=s.getArray("WhitePoint");h=s.getArray("BlackPoint");u=s.getArray("Gamma");const d=s.getArray("Matrix");return new CalRGBCS(l,h,u,d);case"ICCBased":const f=e[1]instanceof Ref;if(f){const t=n.getByRef(e[1]);if(t)return t}const g=a.fetchIfRef(e[1]),p=g.dict;o=p.get("N");if(IccColorSpace.isUsable)try{const t=new IccColorSpace(g.getBytes(),"ICCBased",o);f&&n.set(null,e[1],t);return t}catch(t){if(t instanceof MissingDataException)throw t;warn(`ICCBased color space (${e[1]}): "${t}".`)}const m=p.getRaw("Alternate");if(m){const e=this.#R(m,t);if(e.numComps===o)return e;warn("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===o)return this.gray;if(3===o)return this.rgb;if(4===o)return this.cmyk;break;case"Pattern":c=e[1]||null;c&&(c=this.#R(c,t));return new PatternCS(c);case"I":case"Indexed":c=this.#R(e[1],t);const b=MathClamp(a.fetchIfRef(e[2]),0,255),y=a.fetchIfRef(e[3]);return new IndexedCS(c,b,y);case"Separation":case"DeviceN":const w=a.fetchIfRef(e[1]);o=Array.isArray(w)?w.length:1;c=this.#R(e[2],t);const x=i.create(e[3]);return new AlternateCS(o,c,x);case"Lab":s=a.fetchIfRef(e[1]);l=s.getArray("WhitePoint");h=s.getArray("BlackPoint");const S=s.getArray("Range");return new LabCS(l,h,S);default:warn(`Unimplemented ColorSpace object: ${r}`);return this.gray}}warn(`Unrecognized ColorSpace object: ${e}`);return this.gray}static get gray(){return shadow(this,"gray",new DeviceGrayCS)}static get rgb(){return shadow(this,"rgb",new DeviceRgbCS)}static get rgba(){return shadow(this,"rgba",new DeviceRgbaCS)}static get cmyk(){if(CmykICCBasedCS.isUsable)try{return shadow(this,"cmyk",new CmykICCBasedCS)}catch{warn("CMYK fallback: DeviceCMYK")}return shadow(this,"cmyk",new DeviceCmykCS)}}class JpegError extends fa{constructor(e){super(e,"JpegError")}}class DNLMarkerError extends fa{constructor(e,t){super(e,"DNLMarkerError");this.scanLines=t}}class EOIMarkerError extends fa{constructor(e){super(e,"EOIMarkerError")}}const ja=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),_a=4017,Ua=799,Xa=3406,qa=2276,Ha=1567,Wa=3784,za=5793,$a=2896;function buildHuffmanTable(e,t){let a,r,i=0,n=16;for(;n>0&&!e[n-1];)n--;const s=[{children:[],index:0}];let o,c=s[0];for(a=0;a<n;a++){for(r=0;r<e[a];r++){c=s.pop();c.children[c.index]=t[i];for(;c.index>0;)c=s.pop();c.index++;s.push(c);for(;s.length<=a;){s.push(o={children:[],index:0});c.children[c.index]=o.children;c=o}i++}if(a+1<n){s.push(o={children:[],index:0});c.children[c.index]=o.children;c=o}}return s[0].children}function getBlockBufferOffset(e,t,a){return 64*((e.blocksPerLine+1)*t+a)}function decodeScan(e,t,a,r,i,n,s,o,c,l=!1){const h=a.mcusPerLine,u=a.progressive,d=t;let f=0,g=0;function readBit(){if(g>0){g--;return f>>g&1}f=e[t++];if(255===f){const r=e[t++];if(r){if(220===r&&l){const r=readUint16(e,t+=2);t+=2;if(r>0&&r!==a.scanLines)throw new DNLMarkerError("Found DNL marker (0xFFDC) while parsing scan data",r)}else if(217===r){if(l){const e=y*(8===a.precision?8:0);if(e>0&&Math.round(a.scanLines/e)>=5)throw new DNLMarkerError("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new EOIMarkerError("Found EOI marker (0xFFD9) while parsing scan data")}throw new JpegError(`unexpected marker ${(f<<8|r).toString(16)}`)}}g=7;return f>>>7}function decodeHuffman(e){let t=e;for(;;){t=t[readBit()];switch(typeof t){case"number":return t;case"object":continue}throw new JpegError("invalid huffman sequence")}}function receive(e){let t=0;for(;e>0;){t=t<<1|readBit();e--}return t}function receiveAndExtend(e){if(1===e)return 1===readBit()?1:-1;const t=receive(e);return t>=1<<e-1?t:t+(-1<<e)+1}let p=0;let m,b=0;let y=0;function decodeMcu(e,t,a,r,i){const n=a%h;y=(a/h|0)*e.v+r;const s=n*e.h+i;t(e,getBlockBufferOffset(e,y,s))}function decodeBlock(e,t,a){y=a/e.blocksPerLine|0;const r=a%e.blocksPerLine;t(e,getBlockBufferOffset(e,y,r))}const w=r.length;let x,S,k,C,v,F;F=u?0===n?0===o?function decodeDCFirst(e,t){const a=decodeHuffman(e.huffmanTableDC),r=0===a?0:receiveAndExtend(a)<<c;e.blockData[t]=e.pred+=r}:function decodeDCSuccessive(e,t){e.blockData[t]|=readBit()<<c}:0===o?function decodeACFirst(e,t){if(p>0){p--;return}let a=n;const r=s;for(;a<=r;){const r=decodeHuffman(e.huffmanTableAC),i=15&r,n=r>>4;if(0===i){if(n<15){p=receive(n)+(1<<n)-1;break}a+=16;continue}a+=n;const s=ja[a];e.blockData[t+s]=receiveAndExtend(i)*(1<<c);a++}}:function decodeACSuccessive(e,t){let a=n;const r=s;let i,o,l=0;for(;a<=r;){const r=t+ja[a],n=e.blockData[r]<0?-1:1;switch(b){case 0:o=decodeHuffman(e.huffmanTableAC);i=15&o;l=o>>4;if(0===i)if(l<15){p=receive(l)+(1<<l);b=4}else{l=16;b=1}else{if(1!==i)throw new JpegError("invalid ACn encoding");m=receiveAndExtend(i);b=l?2:3}continue;case 1:case 2:if(e.blockData[r])e.blockData[r]+=n*(readBit()<<c);else{l--;0===l&&(b=2===b?3:0)}break;case 3:if(e.blockData[r])e.blockData[r]+=n*(readBit()<<c);else{e.blockData[r]=m<<c;b=0}break;case 4:e.blockData[r]&&(e.blockData[r]+=n*(readBit()<<c))}a++}if(4===b){p--;0===p&&(b=0)}}:function decodeBaseline(e,t){const a=decodeHuffman(e.huffmanTableDC),r=0===a?0:receiveAndExtend(a);e.blockData[t]=e.pred+=r;let i=1;for(;i<64;){const a=decodeHuffman(e.huffmanTableAC),r=15&a,n=a>>4;if(0===r){if(n<15)break;i+=16;continue}i+=n;const s=ja[i];e.blockData[t+s]=receiveAndExtend(r);i++}};let T,O=0;const M=1===w?r[0].blocksPerLine*r[0].blocksPerColumn:h*a.mcusPerColumn;let D,R;for(;O<=M;){const a=i?Math.min(M-O,i):M;if(a>0){for(S=0;S<w;S++)r[S].pred=0;p=0;if(1===w){x=r[0];for(v=0;v<a;v++){decodeBlock(x,F,O);O++}}else for(v=0;v<a;v++){for(S=0;S<w;S++){x=r[S];D=x.h;R=x.v;for(k=0;k<R;k++)for(C=0;C<D;C++)decodeMcu(x,F,O,k,C)}O++}}g=0;T=findNextFileMarker(e,t);if(!T)break;if(T.invalid){warn(`decodeScan - ${a>0?"unexpected":"excessive"} MCU data, current marker is: ${T.invalid}`);t=T.offset}if(!(T.marker>=65488&&T.marker<=65495))break;t+=2}return t-d}function quantizeAndInverse(e,t,a){const r=e.quantizationTable,i=e.blockData;let n,s,o,c,l,h,u,d,f,g,p,m,b,y,w,x,S;if(!r)throw new JpegError("missing required Quantization Table.");for(let e=0;e<64;e+=8){f=i[t+e];g=i[t+e+1];p=i[t+e+2];m=i[t+e+3];b=i[t+e+4];y=i[t+e+5];w=i[t+e+6];x=i[t+e+7];f*=r[e];if(g|p|m|b|y|w|x){g*=r[e+1];p*=r[e+2];m*=r[e+3];b*=r[e+4];y*=r[e+5];w*=r[e+6];x*=r[e+7];n=za*f+128>>8;s=za*b+128>>8;o=p;c=w;l=$a*(g-x)+128>>8;d=$a*(g+x)+128>>8;h=m<<4;u=y<<4;n=n+s+1>>1;s=n-s;S=o*Wa+c*Ha+128>>8;o=o*Ha-c*Wa+128>>8;c=S;l=l+u+1>>1;u=l-u;d=d+h+1>>1;h=d-h;n=n+c+1>>1;c=n-c;s=s+o+1>>1;o=s-o;S=l*qa+d*Xa+2048>>12;l=l*Xa-d*qa+2048>>12;d=S;S=h*Ua+u*_a+2048>>12;h=h*_a-u*Ua+2048>>12;u=S;a[e]=n+d;a[e+7]=n-d;a[e+1]=s+u;a[e+6]=s-u;a[e+2]=o+h;a[e+5]=o-h;a[e+3]=c+l;a[e+4]=c-l}else{S=za*f+512>>10;a[e]=S;a[e+1]=S;a[e+2]=S;a[e+3]=S;a[e+4]=S;a[e+5]=S;a[e+6]=S;a[e+7]=S}}for(let e=0;e<8;++e){f=a[e];g=a[e+8];p=a[e+16];m=a[e+24];b=a[e+32];y=a[e+40];w=a[e+48];x=a[e+56];if(g|p|m|b|y|w|x){n=za*f+2048>>12;s=za*b+2048>>12;o=p;c=w;l=$a*(g-x)+2048>>12;d=$a*(g+x)+2048>>12;h=m;u=y;n=4112+(n+s+1>>1);s=n-s;S=o*Wa+c*Ha+2048>>12;o=o*Ha-c*Wa+2048>>12;c=S;l=l+u+1>>1;u=l-u;d=d+h+1>>1;h=d-h;n=n+c+1>>1;c=n-c;s=s+o+1>>1;o=s-o;S=l*qa+d*Xa+2048>>12;l=l*Xa-d*qa+2048>>12;d=S;S=h*Ua+u*_a+2048>>12;h=h*_a-u*Ua+2048>>12;u=S;f=n+d;x=n-d;g=s+u;w=s-u;p=o+h;y=o-h;m=c+l;b=c-l;f<16?f=0:f>=4080?f=255:f>>=4;g<16?g=0:g>=4080?g=255:g>>=4;p<16?p=0:p>=4080?p=255:p>>=4;m<16?m=0:m>=4080?m=255:m>>=4;b<16?b=0:b>=4080?b=255:b>>=4;y<16?y=0:y>=4080?y=255:y>>=4;w<16?w=0:w>=4080?w=255:w>>=4;x<16?x=0:x>=4080?x=255:x>>=4;i[t+e]=f;i[t+e+8]=g;i[t+e+16]=p;i[t+e+24]=m;i[t+e+32]=b;i[t+e+40]=y;i[t+e+48]=w;i[t+e+56]=x}else{S=za*f+8192>>14;S=S<-2040?0:S>=2024?255:S+2056>>4;i[t+e]=S;i[t+e+8]=S;i[t+e+16]=S;i[t+e+24]=S;i[t+e+32]=S;i[t+e+40]=S;i[t+e+48]=S;i[t+e+56]=S}}}function buildComponentData(e,t){const a=t.blocksPerLine,r=t.blocksPerColumn,i=new Int16Array(64);for(let e=0;e<r;e++)for(let r=0;r<a;r++){quantizeAndInverse(t,getBlockBufferOffset(t,e,r),i)}return t.blockData}function findNextFileMarker(e,t,a=t){const r=e.length-1;let i=a<t?a:t;if(t>=r)return null;const n=readUint16(e,t);if(n>=65472&&n<=65534)return{invalid:null,marker:n,offset:t};let s=readUint16(e,i);for(;!(s>=65472&&s<=65534);){if(++i>=r)return null;s=readUint16(e,i)}return{invalid:n.toString(16),marker:s,offset:i}}function prepareComponents(e){const t=Math.ceil(e.samplesPerLine/8/e.maxH),a=Math.ceil(e.scanLines/8/e.maxV);for(const r of e.components){const i=Math.ceil(Math.ceil(e.samplesPerLine/8)*r.h/e.maxH),n=Math.ceil(Math.ceil(e.scanLines/8)*r.v/e.maxV),s=t*r.h,o=64*(a*r.v)*(s+1);r.blockData=new Int16Array(o);r.blocksPerLine=i;r.blocksPerColumn=n}e.mcusPerLine=t;e.mcusPerColumn=a}function readDataBlock(e,t){const a=readUint16(e,t);let r=(t+=2)+a-2;const i=findNextFileMarker(e,r,t);if(i?.invalid){warn("readDataBlock - incorrect length, current marker is: "+i.invalid);r=i.offset}const n=e.subarray(t,r);return{appData:n,oldOffset:t,newOffset:t+n.length}}function skipData(e,t){const a=readUint16(e,t),r=(t+=2)+a-2,i=findNextFileMarker(e,r,t);return i?.invalid?i.offset:r}class JpegImage{constructor({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e;this._colorTransform=t}static canUseImageDecoder(e,t=-1){let a=null,r=0,i=null,n=readUint16(e,r);r+=2;if(65496!==n)throw new JpegError("SOI not found");n=readUint16(e,r);r+=2;e:for(;65497!==n;){switch(n){case 65505:const{appData:t,oldOffset:s,newOffset:o}=readDataBlock(e,r);r=o;if(69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]&&0===t[4]&&0===t[5]){if(a)throw new JpegError("Duplicate EXIF-blocks found.");a={exifStart:s+6,exifEnd:o}}n=readUint16(e,r);r+=2;continue;case 65472:case 65473:case 65474:i=e[r+7];break e;case 65535:255!==e[r]&&r--}r=skipData(e,r);n=readUint16(e,r);r+=2}return 4===i||3===i&&0===t?null:a||{}}parse(e,{dnlScanLines:t=null}={}){let a,r,i=0,n=null,s=null,o=0;const c=[],l=[],h=[];let u=readUint16(e,i);i+=2;if(65496!==u)throw new JpegError("SOI not found");u=readUint16(e,i);i+=2;e:for(;65497!==u;){let d,f,g;switch(u){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const{appData:p,newOffset:m}=readDataBlock(e,i);i=m;65504===u&&74===p[0]&&70===p[1]&&73===p[2]&&70===p[3]&&0===p[4]&&(n={version:{major:p[5],minor:p[6]},densityUnits:p[7],xDensity:p[8]<<8|p[9],yDensity:p[10]<<8|p[11],thumbWidth:p[12],thumbHeight:p[13],thumbData:p.subarray(14,14+3*p[12]*p[13])});65518===u&&65===p[0]&&100===p[1]&&111===p[2]&&98===p[3]&&101===p[4]&&(s={version:p[5]<<8|p[6],flags0:p[7]<<8|p[8],flags1:p[9]<<8|p[10],transformCode:p[11]});break;case 65499:const b=readUint16(e,i);i+=2;const y=b+i-2;let w;for(;i<y;){const t=e[i++],a=new Uint16Array(64);if(t>>4){if(t>>4!=1)throw new JpegError("DQT - invalid table spec");for(f=0;f<64;f++){w=ja[f];a[w]=readUint16(e,i);i+=2}}else for(f=0;f<64;f++){w=ja[f];a[w]=e[i++]}c[15&t]=a}break;case 65472:case 65473:case 65474:if(a)throw new JpegError("Only single frame JPEGs supported");i+=2;a={};a.extended=65473===u;a.progressive=65474===u;a.precision=e[i++];const x=readUint16(e,i);i+=2;a.scanLines=t||x;a.samplesPerLine=readUint16(e,i);i+=2;a.components=[];a.componentIds={};const S=e[i++];let k=0,C=0;for(d=0;d<S;d++){const t=e[i],r=e[i+1]>>4,n=15&e[i+1];k<r&&(k=r);C<n&&(C=n);const s=e[i+2];g=a.components.push({h:r,v:n,quantizationId:s,quantizationTable:null});a.componentIds[t]=g-1;i+=3}a.maxH=k;a.maxV=C;prepareComponents(a);break;case 65476:const v=readUint16(e,i);i+=2;for(d=2;d<v;){const t=e[i++],a=new Uint8Array(16);let r=0;for(f=0;f<16;f++,i++)r+=a[f]=e[i];const n=new Uint8Array(r);for(f=0;f<r;f++,i++)n[f]=e[i];d+=17+r;(t>>4?l:h)[15&t]=buildHuffmanTable(a,n)}break;case 65501:i+=2;r=readUint16(e,i);i+=2;break;case 65498:const F=1==++o&&!t;i+=2;const T=e[i++],O=[];for(d=0;d<T;d++){const t=e[i++],r=a.componentIds[t],n=a.components[r];n.index=t;const s=e[i++];n.huffmanTableDC=h[s>>4];n.huffmanTableAC=l[15&s];O.push(n)}const M=e[i++],D=e[i++],R=e[i++];try{i+=decodeScan(e,i,a,O,r,M,D,R>>4,15&R,F)}catch(t){if(t instanceof DNLMarkerError){warn(`${t.message} -- attempting to re-parse the JPEG image.`);return this.parse(e,{dnlScanLines:t.scanLines})}if(t instanceof EOIMarkerError){warn(`${t.message} -- ignoring the rest of the image data.`);break e}throw t}break;case 65500:i+=4;break;case 65535:255!==e[i]&&i--;break;default:const N=findNextFileMarker(e,i-2,i-3);if(N?.invalid){warn("JpegImage.parse - unexpected data, current marker is: "+N.invalid);i=N.offset;break}if(!N||i>=e.length-1){warn("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new JpegError("JpegImage.parse - unknown marker: "+u.toString(16))}u=readUint16(e,i);i+=2}if(!a)throw new JpegError("JpegImage.parse - no frame data found.");this.width=a.samplesPerLine;this.height=a.scanLines;this.jfif=n;this.adobe=s;this.components=[];for(const e of a.components){const t=c[e.quantizationId];t&&(e.quantizationTable=t);this.components.push({index:e.index,output:buildComponentData(0,e),scaleX:e.h/a.maxH,scaleY:e.v/a.maxV,blocksPerLine:e.blocksPerLine,blocksPerColumn:e.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t,a=!1){const r=this.width/e,i=this.height/t;let n,s,o,c,l,h,u,d,f,g,p,m=0;const b=this.components.length,y=e*t*b,w=new Uint8ClampedArray(y),x=new Uint32Array(e),S=4294967288;let k;for(u=0;u<b;u++){n=this.components[u];s=n.scaleX*r;o=n.scaleY*i;m=u;p=n.output;c=n.blocksPerLine+1<<3;if(s!==k){for(l=0;l<e;l++){d=0|l*s;x[l]=(d&S)<<3|7&d}k=s}for(h=0;h<t;h++){d=0|h*o;g=c*(d&S)|(7&d)<<3;for(l=0;l<e;l++){w[m]=p[g+x[l]];m+=b}}}let C=this._decodeTransform;a||4!==b||C||(C=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(C)for(u=0;u<y;)for(d=0,f=0;d<b;d++,u++,f+=2)w[u]=(w[u]*C[f]>>8)+C[f+1];return w}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(e){let t,a,r;for(let i=0,n=e.length;i<n;i+=3){t=e[i];a=e[i+1];r=e[i+2];e[i]=t-179.456+1.402*r;e[i+1]=t+135.459-.344*a-.714*r;e[i+2]=t-226.816+1.772*a}return e}_convertYccToRgba(e,t){for(let a=0,r=0,i=e.length;a<i;a+=3,r+=4){const i=e[a],n=e[a+1],s=e[a+2];t[r]=i-179.456+1.402*s;t[r+1]=i+135.459-.344*n-.714*s;t[r+2]=i-226.816+1.772*n;t[r+3]=255}return t}_convertYcckToRgb(e){this._convertYcckToCmyk(e);return this._convertCmykToRgb(e)}_convertYcckToRgba(e){this._convertYcckToCmyk(e);return this._convertCmykToRgba(e)}_convertYcckToCmyk(e){let t,a,r;for(let i=0,n=e.length;i<n;i+=4){t=e[i];a=e[i+1];r=e[i+2];e[i]=434.456-t-1.402*r;e[i+1]=119.541-t+.344*a+.714*r;e[i+2]=481.816-t-1.772*a}return e}_convertCmykToRgb(e){const t=e.length/4;ColorSpaceUtils.cmyk.getRgbBuffer(e,0,t,e,0,8,0);return e.subarray(0,3*t)}_convertCmykToRgba(e){ColorSpaceUtils.cmyk.getRgbBuffer(e,0,e.length/4,e,0,8,1);if(ColorSpaceUtils.cmyk instanceof DeviceCmykCS)for(let t=3,a=e.length;t<a;t+=4)e[t]=255;return e}getData({width:e,height:t,forceRGBA:a=!1,forceRGB:r=!1,isSourcePDF:i=!1}){if(this.numComponents>4)throw new JpegError("Unsupported color mode");const n=this._getLinearizedBlockData(e,t,i);if(1===this.numComponents&&(a||r)){const e=n.length*(a?4:3),t=new Uint8ClampedArray(e);let r=0;if(a)!function grayToRGBA(e,t){if(FeatureTest.isLittleEndian)for(let a=0,r=e.length;a<r;a++)t[a]=65793*e[a]|4278190080;else for(let a=0,r=e.length;a<r;a++)t[a]=16843008*e[a]|255}(n,new Uint32Array(t.buffer));else for(const e of n){t[r++]=e;t[r++]=e;t[r++]=e}return t}if(3===this.numComponents&&this._isColorConversionNeeded){if(a){const e=new Uint8ClampedArray(n.length/3*4);return this._convertYccToRgba(n,e)}return this._convertYccToRgb(n)}if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgba(n):r?this._convertYcckToRgb(n):this._convertYcckToCmyk(n);if(a)return this._convertCmykToRgba(n);if(r)return this._convertCmykToRgb(n)}return n}}class JpegStream extends DecodeStream{static#M=FeatureTest.isImageDecoderSupported;constructor(e,t,a){super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}static get canUseImageDecoder(){return shadow(this,"canUseImageDecoder",this.#M?ImageDecoder.isTypeSupported("image/jpeg"):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:e=!1}){this.#M=e}get bytes(){return shadow(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}get jpegOptions(){const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){const a=this.dict.get("BPC","BitsPerComponent")||8,r=t.length,i=new Int32Array(r);let n=!1;const s=(1<<a)-1;for(let e=0;e<r;e+=2){i[e]=256*(t[e+1]-t[e])|0;i[e+1]=t[e]*s|0;256===i[e]&&0===i[e+1]||(n=!0)}n&&(e.decodeTransform=i)}if(this.params instanceof Dict){const t=this.params.get("ColorTransform");Number.isInteger(t)&&(e.colorTransform=t)}return shadow(this,"jpegOptions",e)}#N(e){for(let t=0,a=e.length-1;t<a;t++)if(255===e[t]&&216===e[t+1]){t>0&&(e=e.subarray(t));break}return e}decodeImage(e){if(this.eof)return this.buffer;e=this.#N(e||this.bytes);const t=new JpegImage(this.jpegOptions);t.parse(e);const a=t.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=a;this.bufferLength=a.length;this.eof=!0;return this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(){if(!await JpegStream.canUseImageDecoder)return null;const e=this.jpegOptions;if(e.decodeTransform)return null;let t;try{const a=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!a)return null;let r=this.#N(a);const i=JpegImage.canUseImageDecoder(r,e.colorTransform);if(!i)return null;if(i.exifStart){r=r.slice();r.fill(0,i.exifStart,i.exifEnd)}t=new ImageDecoder({data:r,type:"image/jpeg",preferAnimation:!1});return(await t.decode()).image}catch(e){warn(`getTransferableImage - failed: "${e}".`);return null}finally{t?.close()}}}var OpenJPEG=async function(e={}){var t,a,r=e,i=new Promise(((e,r)=>{t=e;a=r})),n="./this.program",quit_=(e,t)=>{throw t},s=import.meta.url;try{new URL(".",s).href}catch{}var o,c,l,h,u,d,f=console.log.bind(console),g=console.error.bind(console),p=!1;function updateMemoryViews(){var e=o.buffer;l=new Int8Array(e);new Int16Array(e);h=new Uint8Array(e);new Uint16Array(e);u=new Int32Array(e);d=new Uint32Array(e);new Float32Array(e);new Float64Array(e);new BigInt64Array(e);new BigUint64Array(e)}var m=0,b=null;class ExitStatus{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`;this.status=e}}var callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(r)},y=[],addOnPostRun=e=>y.push(e),w=[],addOnPreRun=e=>w.push(e),x=!0,S=0,k={},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return c;quit_(0,e)},keepRuntimeAlive=()=>x||S>0,_proc_exit=e=>{c=e;if(!keepRuntimeAlive()){r.onExit?.(e);p=!0}quit_(0,new ExitStatus(e))},_exit=(e,t)=>{c=e;_proc_exit(e)},callUserCallback=e=>{if(!p)try{e();(()=>{if(!keepRuntimeAlive())try{_exit(c)}catch(e){handleException(e)}})()}catch(e){handleException(e)}},growMemory=e=>{var t=(e-o.buffer.byteLength+65535)/65536|0;try{o.grow(t);updateMemoryViews();return 1}catch(e){}},C={},getEnvStrings=()=>{if(!getEnvStrings.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(var t in C)void 0===C[t]?delete e[t]:e[t]=C[t];var a=[];for(var t in e)a.push(`${t}=${e[t]}`);getEnvStrings.strings=a}return getEnvStrings.strings},lengthBytesUTF8=e=>{for(var t=0,a=0;a<e.length;++a){var r=e.charCodeAt(a);if(r<=127)t++;else if(r<=2047)t+=2;else if(r>=55296&&r<=57343){t+=4;++a}else t+=3}return t},v=[null,[],[]],F="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t=0,a=NaN)=>{for(var r=t+a,i=t;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&F)return F.decode(e.subarray(t,i));for(var n="";t<i;){var s=e[t++];if(128&s){var o=63&e[t++];if(192!=(224&s)){var c=63&e[t++];if((s=224==(240&s)?(15&s)<<12|o<<6|c:(7&s)<<18|o<<12|c<<6|63&e[t++])<65536)n+=String.fromCharCode(s);else{var l=s-65536;n+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else n+=String.fromCharCode((31&s)<<6|o)}else n+=String.fromCharCode(s)}return n},printChar=(e,t)=>{var a=v[e];if(0===t||10===t){(1===e?f:g)(UTF8ArrayToString(a));a.length=0}else a.push(t)},UTF8ToString=(e,t)=>e?UTF8ArrayToString(h,e,t):"";r.noExitRuntime&&(x=r.noExitRuntime);r.print&&(f=r.print);r.printErr&&(g=r.printErr);r.wasmBinary&&r.wasmBinary;r.arguments&&r.arguments;r.thisProgram&&(n=r.thisProgram);r.writeArrayToMemory=(e,t)=>{l.set(e,t)};var T={l:()=>function abort(e){r.onAbort?.(e);g(e="Aborted("+e+")");p=!0;e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);a(t);throw t}(""),k:()=>{x=!1;S=0},m:(e,t)=>{if(k[e]){clearTimeout(k[e].id);delete k[e]}if(!t)return 0;var a=setTimeout((()=>{delete k[e];callUserCallback((()=>M(e,performance.now())))}),t);k[e]={id:a,timeout_ms:t};return 0},g:function _copy_pixels_1(e,t){e>>=2;const a=r.imageData=new Uint8ClampedArray(t),i=u.subarray(e,e+t);a.set(i)},f:function _copy_pixels_3(e,t,a,i){e>>=2;t>>=2;a>>=2;const n=r.imageData=new Uint8ClampedArray(3*i),s=u.subarray(e,e+i),o=u.subarray(t,t+i),c=u.subarray(a,a+i);for(let e=0;e<i;e++){n[3*e]=s[e];n[3*e+1]=o[e];n[3*e+2]=c[e]}},e:function _copy_pixels_4(e,t,a,i,n){e>>=2;t>>=2;a>>=2;i>>=2;const s=r.imageData=new Uint8ClampedArray(4*n),o=u.subarray(e,e+n),c=u.subarray(t,t+n),l=u.subarray(a,a+n),h=u.subarray(i,i+n);for(let e=0;e<n;e++){s[4*e]=o[e];s[4*e+1]=c[e];s[4*e+2]=l[e];s[4*e+3]=h[e]}},n:e=>{var t,a,r=h.length,i=2147483648;if((e>>>=0)>i)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);s=Math.min(s,e+100663296);var o=Math.min(i,(t=Math.max(e,s),a=65536,Math.ceil(t/a)*a));if(growMemory(o))return!0}return!1},p:(e,t)=>{var a=0,r=0;for(var i of getEnvStrings()){var n=t+a;d[e+r>>2]=n;a+=((e,t,a,r)=>{if(!(r>0))return 0;for(var i=a,n=a+r-1,s=0;s<e.length;++s){var o=e.charCodeAt(s);o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s));if(o<=127){if(a>=n)break;t[a++]=o}else if(o<=2047){if(a+1>=n)break;t[a++]=192|o>>6;t[a++]=128|63&o}else if(o<=65535){if(a+2>=n)break;t[a++]=224|o>>12;t[a++]=128|o>>6&63;t[a++]=128|63&o}else{if(a+3>=n)break;t[a++]=240|o>>18;t[a++]=128|o>>12&63;t[a++]=128|o>>6&63;t[a++]=128|63&o}}t[a]=0;return a-i})(i,h,n,1/0)+1;r+=4}return 0},q:(e,t)=>{var a=getEnvStrings();d[e>>2]=a.length;var r=0;for(var i of a)r+=lengthBytesUTF8(i)+1;d[t>>2]=r;return 0},b:e=>52,o:function _fd_seek(e,t,a,r){t=(i=t)<-9007199254740992||i>9007199254740992?NaN:Number(i);var i;return 70},c:(e,t,a,r)=>{for(var i=0,n=0;n<a;n++){var s=d[t>>2],o=d[t+4>>2];t+=8;for(var c=0;c<o;c++)printChar(e,h[s+c]);i+=o}d[r>>2]=i;return 0},r:function _gray_to_rgba(e,t){e>>=2;const a=r.imageData=new Uint8ClampedArray(4*t),i=u.subarray(e,e+t);for(let e=0;e<t;e++){a[4*e]=a[4*e+1]=a[4*e+2]=i[e];a[4*e+3]=255}},i:function _graya_to_rgba(e,t,a){e>>=2;t>>=2;const i=r.imageData=new Uint8ClampedArray(4*a),n=u.subarray(e,e+a),s=u.subarray(t,t+a);for(let e=0;e<a;e++){i[4*e]=i[4*e+1]=i[4*e+2]=n[e];i[4*e+3]=s[e]}},d:function _jsPrintWarning(e){const t=UTF8ToString(e);(r.warn||console.warn)(`OpenJPEG: ${t}`)},j:_proc_exit,h:function _rgb_to_rgba(e,t,a,i){e>>=2;t>>=2;a>>=2;const n=r.imageData=new Uint8ClampedArray(4*i),s=u.subarray(e,e+i),o=u.subarray(t,t+i),c=u.subarray(a,a+i);for(let e=0;e<i;e++){n[4*e]=s[e];n[4*e+1]=o[e];n[4*e+2]=c[e];n[4*e+3]=255}},a:function _storeErrorMessage(e){const t=UTF8ToString(e);r.errorMessages?r.errorMessages+="\\n"+t:r.errorMessages=t}},O=await async function createWasm(){function receiveInstance(e,t){O=e.exports;o=O.s;updateMemoryViews();!function removeRunDependency(e){m--;r.monitorRunDependencies?.(m);if(0==m&&b){var t=b;b=null;t()}}();return O}!function addRunDependency(e){m++;r.monitorRunDependencies?.(m)}();var e=function getWasmImports(){return{a:T}}();return new Promise(((t,a)=>{r.instantiateWasm(e,((e,a)=>{t(receiveInstance(e))}))}))}(),M=(O.t,r._malloc=O.u,r._free=O.v,r._jp2_decode=O.w,O.x);!function preInit(){if(r.preInit){"function"==typeof r.preInit&&(r.preInit=[r.preInit]);for(;r.preInit.length>0;)r.preInit.shift()()}}();!function run(){if(m>0)b=run;else{!function preRun(){if(r.preRun){"function"==typeof r.preRun&&(r.preRun=[r.preRun]);for(;r.preRun.length;)addOnPreRun(r.preRun.shift())}callRuntimeCallbacks(w)}();if(m>0)b=run;else if(r.setStatus){r.setStatus("Running...");setTimeout((()=>{setTimeout((()=>r.setStatus("")),1);doRun()}),1)}else doRun()}function doRun(){r.calledRun=!0;if(!p){!function initRuntime(){O.t()}();t(r);r.onRuntimeInitialized?.();!function postRun(){if(r.postRun){"function"==typeof r.postRun&&(r.postRun=[r.postRun]);for(;r.postRun.length;)addOnPostRun(r.postRun.shift())}callRuntimeCallbacks(y)}()}}}();return i};const Ga=OpenJPEG;class JpxError extends fa{constructor(e){super(e,"JpxError")}}class JpxImage{static#E=null;static#P=null;static#L=null;static#v=!0;static#j=!0;static#F=null;static setOptions({handler:e,useWasm:t,useWorkerFetch:a,wasmUrl:r}){this.#v=t;this.#j=a;this.#F=r;a||(this.#P=e)}static async#_(e){const t=`${this.#F}openjpeg_nowasm_fallback.js`;let a=null;try{a=(await import(\n/*webpackIgnore: true*/\n/*@vite-ignore*/\nt)).default()}catch(e){warn(`JpxImage#getJsModule: ${e}`)}e(a)}static async#U(e,t,a){const r="openjpeg.wasm";try{this.#E||(this.#j?this.#E=await fetchBinaryData(`${this.#F}${r}`):this.#E=await this.#P.sendWithPromise("FetchBinaryData",{type:"wasmFactory",filename:r}));return a((await WebAssembly.instantiate(this.#E,t)).instance)}catch(t){warn(`JpxImage#instantiateWasm: ${t}`);this.#_(e);return null}finally{this.#P=null}}static async decode(e,{numComponents:t=4,isIndexedColormap:a=!1,smaskInData:r=!1,reducePower:i=0}={}){if(!this.#L){const{promise:e,resolve:t}=Promise.withResolvers(),a=[e];this.#v?a.push(Ga({warn,instantiateWasm:this.#U.bind(this,t)})):this.#_(t);this.#L=Promise.race(a)}const n=await this.#L;if(!n)throw new JpxError("OpenJPEG failed to initialize");let s;try{const o=e.length;s=n._malloc(o);n.writeArrayToMemory(e,s);if(n._jp2_decode(s,o,t>0?t:0,!!a,!!r,i)){const{errorMessages:e}=n;if(e){delete n.errorMessages;throw new JpxError(e)}throw new JpxError("Unknown error")}const{imageData:c}=n;n.imageData=null;return c}finally{s&&n._free(s)}}static cleanup(){this.#L=null}static parseImageProperties(e){let t=e.getByte();for(;t>=0;){const a=t;t=e.getByte();if(65361===(a<<8|t)){e.skip(4);const t=e.getInt32()>>>0,a=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);return{width:t-r,height:a-i,bitsPerComponent:8,componentsCount:e.getUint16()}}}throw new JpxError("No size marker found in JPX stream")}}function addState(e,t,a,r,i){let n=e;for(let e=0,a=t.length-1;e<a;e++){const a=t[e];n=n[a]||=[]}n[t.at(-1)]={checkFn:a,iterateFn:r,processFn:i}}const Va=[];addState(Va,[Be,Ne,Yt,Re],null,(function iterateInlineImageGroup(e,t){const a=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return a[t]===Be;case 1:return a[t]===Ne;case 2:return a[t]===Yt;case 3:return a[t]===Re}throw new Error(`iterateInlineImageGroup - invalid pos: ${r}`)}),(function foundInlineImageGroup(e,t){const a=e.fnArray,r=e.argsArray,i=e.iCurr,n=i-3,s=i-2,o=i-1,c=Math.min(Math.floor((t-n)/4),200);if(c<10)return t-(t-n)%4;let l=0;const h=[];let u=0,d=1,f=1;for(let e=0;e<c;e++){const t=r[s+(e<<2)],a=r[o+(e<<2)][0];if(d+a.width>1e3){l=Math.max(l,d);f+=u+2;d=0;u=0}h.push({transform:t,x:d,y:f,w:a.width,h:a.height});d+=a.width+2;u=Math.max(u,a.height)}const g=Math.max(l,d)+1,p=f+u+1,m=new Uint8Array(g*p*4),b=g<<2;for(let e=0;e<c;e++){const t=r[o+(e<<2)][0].data,a=h[e].w<<2;let i=0,n=h[e].x+h[e].y*g<<2;m.set(t.subarray(0,a),n-b);for(let r=0,s=h[e].h;r<s;r++){m.set(t.subarray(i,i+a),n);i+=a;n+=b}m.set(t.subarray(i-a,i),n);for(;n>=0;){t[n-4]=t[n];t[n-3]=t[n+1];t[n-2]=t[n+2];t[n-1]=t[n+3];t[n+a]=t[n+a-4];t[n+a+1]=t[n+a-3];t[n+a+2]=t[n+a-2];t[n+a+3]=t[n+a-1];n-=b}}const y={width:g,height:p};if(e.isOffscreenCanvasSupported){const e=new OffscreenCanvas(g,p);e.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(m.buffer),g,p),0,0);y.bitmap=e.transferToImageBitmap();y.data=null}else{y.kind=v;y.data=m}a.splice(n,4*c,Zt);r.splice(n,4*c,[y,h]);return n+1}));addState(Va,[Be,Ne,Vt,Re],null,(function iterateImageMaskGroup(e,t){const a=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return a[t]===Be;case 1:return a[t]===Ne;case 2:return a[t]===Vt;case 3:return a[t]===Re}throw new Error(`iterateImageMaskGroup - invalid pos: ${r}`)}),(function foundImageMaskGroup(e,t){const a=e.fnArray,r=e.argsArray,i=e.iCurr,n=i-3,s=i-2,o=i-1;let c=Math.floor((t-n)/4);if(c<10)return t-(t-n)%4;let l,h,u=!1;const d=r[o][0],f=r[s][0],g=r[s][1],p=r[s][2],m=r[s][3];if(g===p){u=!0;l=s+4;let e=o+4;for(let t=1;t<c;t++,l+=4,e+=4){h=r[l];if(r[e][0]!==d||h[0]!==f||h[1]!==g||h[2]!==p||h[3]!==m){t<10?u=!1:c=t;break}}}if(u){c=Math.min(c,1e3);const e=new Float32Array(2*c);l=s;for(let t=0;t<c;t++,l+=4){h=r[l];e[t<<1]=h[4];e[1+(t<<1)]=h[5]}a.splice(n,4*c,ea);r.splice(n,4*c,[d,f,g,p,m,e])}else{c=Math.min(c,100);const e=[];for(let t=0;t<c;t++){h=r[s+(t<<2)];const a=r[o+(t<<2)][0];e.push({data:a.data,width:a.width,height:a.height,interpolate:a.interpolate,count:a.count,transform:h})}a.splice(n,4*c,Kt);r.splice(n,4*c,[e])}return n+1}));addState(Va,[Be,Ne,Jt,Re],(function(e){const t=e.argsArray,a=e.iCurr-2;return 0===t[a][1]&&0===t[a][2]}),(function iterateImageGroup(e,t){const a=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return a[t]===Be;case 1:if(a[t]!==Ne)return!1;const i=e.iCurr-2,n=r[i][0],s=r[i][3];return r[t][0]===n&&0===r[t][1]&&0===r[t][2]&&r[t][3]===s;case 2:if(a[t]!==Jt)return!1;const o=r[e.iCurr-1][0];return r[t][0]===o;case 3:return a[t]===Re}throw new Error(`iterateImageGroup - invalid pos: ${i}`)}),(function(e,t){const a=e.fnArray,r=e.argsArray,i=e.iCurr,n=i-3,s=i-2,o=r[i-1][0],c=r[s][0],l=r[s][3],h=Math.min(Math.floor((t-n)/4),1e3);if(h<3)return t-(t-n)%4;const u=new Float32Array(2*h);let d=s;for(let e=0;e<h;e++,d+=4){const t=r[d];u[e<<1]=t[4];u[1+(e<<1)]=t[5]}const f=[o,c,l,u];a.splice(n,4*h,Qt);r.splice(n,4*h,f);return n+1}));addState(Va,[Qe,nt,ht,dt,et],null,(function iterateShowTextGroup(e,t){const a=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return a[t]===Qe;case 1:return a[t]===nt;case 2:return a[t]===ht;case 3:if(a[t]!==dt)return!1;const i=e.iCurr-3,n=r[i][0],s=r[i][1];return r[t][0]===n&&r[t][1]===s;case 4:return a[t]===et}throw new Error(`iterateShowTextGroup - invalid pos: ${i}`)}),(function(e,t){const a=e.fnArray,r=e.argsArray,i=e.iCurr,n=i-4,s=i-3,o=i-2,c=i-1,l=i,h=r[s][0],u=r[s][1];let d=Math.min(Math.floor((t-n)/5),1e3);if(d<3)return t-(t-n)%5;let f=n;if(n>=4&&a[n-4]===a[s]&&a[n-3]===a[o]&&a[n-2]===a[c]&&a[n-1]===a[l]&&r[n-4][0]===h&&r[n-4][1]===u){d++;f-=5}let g=f+4;for(let e=1;e<d;e++){a.splice(g,3);r.splice(g,3);g+=2}return g+1}));addState(Va,[Be,Ne,aa,Re],(e=>{const t=e.argsArray,a=t[e.iCurr-1][0];if(a!==qe&&a!==He&&a!==$e&&a!==Ge&&a!==Ve&&a!==Ke)return!0;const r=t[e.iCurr-2];return 1===r[0]&&0===r[1]&&0===r[2]&&1===r[3]}),(()=>!1),((e,t)=>{const{fnArray:a,argsArray:r}=e,i=e.iCurr,n=i-3,s=i-2,o=r[i-1],c=r[s],[,[l],h]=o;if(h){Util.scaleMinMax(c,h);for(let e=0,t=l.length;e<t;)switch(l[e++]){case sa:case oa:Util.applyTransform(l,c,e);e+=2;break;case ca:Util.applyTransformToBezier(l,c,e);e+=6}}a.splice(n,4,aa);r.splice(n,4,o);return n+1}));class NullOptimizer{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e);this.queue.argsArray.push(t);this._optimize()}flush(){}reset(){}}class QueueOptimizer extends NullOptimizer{constructor(e){super(e);this.state=null;this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:OperatorList.isOffscreenCanvasSupported};this.match=null;this.lastProcessed=0}_optimize(){const e=this.queue.fnArray;let t=this.lastProcessed,a=e.length,r=this.state,i=this.match;if(!r&&!i&&t+1===a&&!Va[e[t]]){this.lastProcessed=a;return}const n=this.context;for(;t<a;){if(i){if((0,i.iterateFn)(n,t)){t++;continue}t=(0,i.processFn)(n,t+1);a=e.length;i=null;r=null;if(t>=a)break}r=(r||Va)[e[t]];if(r&&!Array.isArray(r)){n.iCurr=t;t++;if(!r.checkFn||(0,r.checkFn)(n)){i=r;r=null}else r=null}else t++}this.state=r;this.match=i;this.lastProcessed=t}flush(){for(;this.match;){const e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e);this.match=null;this.state=null;this._optimize()}}reset(){this.state=null;this.match=null;this.lastProcessed=0}}class OperatorList{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(e=0,t){this._streamSink=t;this.fnArray=[];this.argsArray=[];this.optimizer=!t||e&d?new NullOptimizer(this):new QueueOptimizer(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=t?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:e}){this.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(e,t){this.optimizer.push(e,t);this.weight++;this._streamSink&&(this.weight>=OperatorList.CHUNK_SIZE||this.weight>=OperatorList.CHUNK_SIZE_ABOUT&&(e===Re||e===et))&&this.flush()}addImageOps(e,t,a,r=!1){if(r){this.addOp(Be);this.addOp(De,[[["SMask",!1]]])}void 0!==a&&this.addOp(jt,["OC",a]);this.addOp(e,t);void 0!==a&&this.addOp(_t,[]);r&&this.addOp(Re)}addDependency(e){if(!this.dependencies.has(e)){this.dependencies.add(e);this.addOp(ke,[e])}}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(e){if(e instanceof OperatorList){for(const t of e.dependencies)this.dependencies.add(t);for(let t=0,a=e.length;t<a;t++)this.addOp(e.fnArray[t],e.argsArray[t])}else warn(\'addOpList - ignoring invalid "opList" parameter.\')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const e=[],{fnArray:t,argsArray:a,length:r}=this;for(let i=0;i<r;i++)switch(t[i]){case Yt:case Zt:case Vt:{const{bitmap:t,data:r}=a[i][0];(t||r?.buffer)&&e.push(t||r.buffer);break}case aa:{const[,[t],r]=a[i];t&&e.push(t.buffer,r.buffer);break}case qt:const[t,r]=a[i];t&&e.push(t.buffer);r&&e.push(r.buffer);break;case ht:e.push(a[i][0].buffer)}return e}flush(e=!1,t=null){this.optimizer.flush();const a=this.length;this._totalLength+=a;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:a},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}}function hexToInt(e,t){let a=0;for(let r=0;r<=t;r++)a=a<<8|e[r];return a>>>0}function hexToStr(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode(...e.subarray(0,t+1))}function addHex(e,t,a){let r=0;for(let i=a;i>=0;i--){r+=e[i]+t[i];e[i]=255&r;r>>=8}}function incHex(e,t){let a=1;for(let r=t;r>=0&&a>0;r--){a+=e[r];e[r]=255&a;a>>=8}}const Ka=16;class BinaryCMapStream{constructor(e){this.buffer=e;this.pos=0;this.end=e.length;this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{const a=this.readByte();if(a<0)throw new FormatError("unexpected EOF in bcmap");e=!(128&a);t=t<<7|127&a}while(!e);return t}readSigned(){const e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1));this.pos+=t+1}readHexNumber(e,t){let a;const r=this.tmpBuf;let i=0;do{const e=this.readByte();if(e<0)throw new FormatError("unexpected EOF in bcmap");a=!(128&e);r[i++]=127&e}while(!a);let n=t,s=0,o=0;for(;n>=0;){for(;o<8&&r.length>0;){s|=r[--i]<<o;o+=7}e[n]=255&s;n--;s>>=8;o-=8}}readHexSigned(e,t){this.readHexNumber(e,t);const a=1&e[t]?255:0;let r=0;for(let i=0;i<=t;i++){r=(1&r)<<8|e[i];e[i]=r>>1^a}}readString(){const e=this.readNumber(),t=new Array(e);for(let a=0;a<e;a++)t[a]=this.readNumber();return String.fromCharCode(...t)}}class BinaryCMapReader{async process(e,t,a){const r=new BinaryCMapStream(e),i=r.readByte();t.vertical=!!(1&i);let n=null;const s=new Uint8Array(Ka),o=new Uint8Array(Ka),c=new Uint8Array(Ka),l=new Uint8Array(Ka),h=new Uint8Array(Ka);let u,d;for(;(d=r.readByte())>=0;){const e=d>>5;if(7===e){switch(31&d){case 0:r.readString();break;case 1:n=r.readString()}continue}const a=!!(16&d),i=15&d;if(i+1>Ka)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const f=1,g=r.readNumber();switch(e){case 0:r.readHex(s,i);r.readHexNumber(o,i);addHex(o,s,i);t.addCodespaceRange(i+1,hexToInt(s,i),hexToInt(o,i));for(let e=1;e<g;e++){incHex(o,i);r.readHexNumber(s,i);addHex(s,o,i);r.readHexNumber(o,i);addHex(o,s,i);t.addCodespaceRange(i+1,hexToInt(s,i),hexToInt(o,i))}break;case 1:r.readHex(s,i);r.readHexNumber(o,i);addHex(o,s,i);r.readNumber();for(let e=1;e<g;e++){incHex(o,i);r.readHexNumber(s,i);addHex(s,o,i);r.readHexNumber(o,i);addHex(o,s,i);r.readNumber()}break;case 2:r.readHex(c,i);u=r.readNumber();t.mapOne(hexToInt(c,i),u);for(let e=1;e<g;e++){incHex(c,i);if(!a){r.readHexNumber(h,i);addHex(c,h,i)}u=r.readSigned()+(u+1);t.mapOne(hexToInt(c,i),u)}break;case 3:r.readHex(s,i);r.readHexNumber(o,i);addHex(o,s,i);u=r.readNumber();t.mapCidRange(hexToInt(s,i),hexToInt(o,i),u);for(let e=1;e<g;e++){incHex(o,i);if(a)s.set(o);else{r.readHexNumber(s,i);addHex(s,o,i)}r.readHexNumber(o,i);addHex(o,s,i);u=r.readNumber();t.mapCidRange(hexToInt(s,i),hexToInt(o,i),u)}break;case 4:r.readHex(c,f);r.readHex(l,i);t.mapOne(hexToInt(c,f),hexToStr(l,i));for(let e=1;e<g;e++){incHex(c,f);if(!a){r.readHexNumber(h,f);addHex(c,h,f)}incHex(l,i);r.readHexSigned(h,i);addHex(l,h,i);t.mapOne(hexToInt(c,f),hexToStr(l,i))}break;case 5:r.readHex(s,f);r.readHexNumber(o,f);addHex(o,s,f);r.readHex(l,i);t.mapBfRange(hexToInt(s,f),hexToInt(o,f),hexToStr(l,i));for(let e=1;e<g;e++){incHex(o,f);if(a)s.set(o);else{r.readHexNumber(s,f);addHex(s,o,f)}r.readHexNumber(o,f);addHex(o,s,f);r.readHex(l,i);t.mapBfRange(hexToInt(s,f),hexToInt(o,f),hexToStr(l,i))}break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${e}`)}}return n?a(n):t}}class Ascii85Stream extends DecodeStream{constructor(e,t){t&&(t*=.8);super(t);this.str=e;this.dict=e.dict;this.input=new Uint8Array(5)}readBlock(){const e=this.str;let t=e.getByte();for(;isWhiteSpace(t);)t=e.getByte();if(-1===t||126===t){this.eof=!0;return}const a=this.bufferLength;let r,i;if(122===t){r=this.ensureBuffer(a+4);for(i=0;i<4;++i)r[a+i]=0;this.bufferLength+=4}else{const n=this.input;n[0]=t;for(i=1;i<5;++i){t=e.getByte();for(;isWhiteSpace(t);)t=e.getByte();n[i]=t;if(-1===t||126===t)break}r=this.ensureBuffer(a+i-1);this.bufferLength+=i-1;if(i<5){for(;i<5;++i)n[i]=117;this.eof=!0}let s=0;for(i=0;i<5;++i)s=85*s+(n[i]-33);for(i=3;i>=0;--i){r[a+i]=255&s;s>>=8}}}}class AsciiHexStream extends DecodeStream{constructor(e,t){t&&(t*=.5);super(t);this.str=e;this.dict=e.dict;this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length){this.eof=!0;return}const t=e.length+1>>1,a=this.ensureBuffer(this.bufferLength+t);let r=this.bufferLength,i=this.firstDigit;for(const t of e){let e;if(t>=48&&t<=57)e=15&t;else{if(!(t>=65&&t<=70||t>=97&&t<=102)){if(62===t){this.eof=!0;break}continue}e=9+(15&t)}if(i<0)i=e;else{a[r++]=i<<4|e;i=-1}}if(i>=0&&this.eof){a[r++]=i<<4;i=-1}this.firstDigit=i;this.bufferLength=r}}const Ja=-1,Ya=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],Za=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],Qa=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],er=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],tr=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],ar=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];class CCITTFaxDecoder{constructor(e,t={}){if("function"!=typeof e?.next)throw new Error(\'CCITTFaxDecoder - invalid "source" parameter.\');this.source=e;this.eof=!1;this.encoding=t.K||0;this.eoline=t.EndOfLine||!1;this.byteAlign=t.EncodedByteAlign||!1;this.columns=t.Columns||1728;this.rows=t.Rows||0;this.eoblock=t.EndOfBlock??!0;this.black=t.BlackIs1||!1;this.codingLine=new Uint32Array(this.columns+1);this.refLine=new Uint32Array(this.columns+2);this.codingLine[0]=this.columns;this.codingPos=0;this.row=0;this.nextLine2D=this.encoding<0;this.inputBits=0;this.inputBuf=0;this.outputBits=0;this.rowsDone=!1;let a;for(;0===(a=this._lookBits(12));)this._eatBits(1);1===a&&this._eatBits(12);if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}readNextChar(){if(this.eof)return-1;const e=this.refLine,t=this.codingLine,a=this.columns;let r,i,n,s,o;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;let n,o,c;if(this.nextLine2D){for(s=0;t[s]<a;++s)e[s]=t[s];e[s++]=a;e[s]=a;t[0]=0;this.codingPos=0;r=0;i=0;for(;t[this.codingPos]<a;){n=this._getTwoDimCode();switch(n){case 0:this._addPixels(e[r+1],i);e[r+1]<a&&(r+=2);break;case 1:n=o=0;if(i){do{n+=c=this._getBlackCode()}while(c>=64);do{o+=c=this._getWhiteCode()}while(c>=64)}else{do{n+=c=this._getWhiteCode()}while(c>=64);do{o+=c=this._getBlackCode()}while(c>=64)}this._addPixels(t[this.codingPos]+n,i);t[this.codingPos]<a&&this._addPixels(t[this.codingPos]+o,1^i);for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2;break;case 7:this._addPixels(e[r]+3,i);i^=1;if(t[this.codingPos]<a){++r;for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2}break;case 5:this._addPixels(e[r]+2,i);i^=1;if(t[this.codingPos]<a){++r;for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2}break;case 3:this._addPixels(e[r]+1,i);i^=1;if(t[this.codingPos]<a){++r;for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2}break;case 2:this._addPixels(e[r],i);i^=1;if(t[this.codingPos]<a){++r;for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2}break;case 8:this._addPixelsNeg(e[r]-3,i);i^=1;if(t[this.codingPos]<a){r>0?--r:++r;for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2}break;case 6:this._addPixelsNeg(e[r]-2,i);i^=1;if(t[this.codingPos]<a){r>0?--r:++r;for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2}break;case 4:this._addPixelsNeg(e[r]-1,i);i^=1;if(t[this.codingPos]<a){r>0?--r:++r;for(;e[r]<=t[this.codingPos]&&e[r]<a;)r+=2}break;case Ja:this._addPixels(a,0);this.eof=!0;break;default:info("bad 2d code");this._addPixels(a,0);this.err=!0}}}else{t[0]=0;this.codingPos=0;i=0;for(;t[this.codingPos]<a;){n=0;if(i)do{n+=c=this._getBlackCode()}while(c>=64);else do{n+=c=this._getWhiteCode()}while(c>=64);this._addPixels(t[this.codingPos]+n,i);i^=1}}let l=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){n=this._lookBits(12);if(this.eoline)for(;n!==Ja&&1!==n;){this._eatBits(1);n=this._lookBits(12)}else for(;0===n;){this._eatBits(1);n=this._lookBits(12)}if(1===n){this._eatBits(12);l=!0}else n===Ja&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}if(this.eoblock&&l&&this.byteAlign){n=this._lookBits(12);if(1===n){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0)for(s=0;s<4;++s){n=this._lookBits(12);1!==n&&info("bad rtc code: "+n);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){n=this._lookBits(13);if(n===Ja){this.eof=!0;return-1}if(n>>1==1)break;this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&n)}}this.outputBits=t[0]>0?t[this.codingPos=0]:t[this.codingPos=1];this.row++}if(this.outputBits>=8){o=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&t[this.codingPos]<a){this.codingPos++;this.outputBits=t[this.codingPos]-t[this.codingPos-1]}}else{n=8;o=0;do{if("number"!=typeof this.outputBits)throw new FormatError(\'Invalid /CCITTFaxDecode data, "outputBits" must be a number.\');if(this.outputBits>n){o<<=n;1&this.codingPos||(o|=255>>8-n);this.outputBits-=n;n=0}else{o<<=this.outputBits;1&this.codingPos||(o|=255>>8-this.outputBits);n-=this.outputBits;this.outputBits=0;if(t[this.codingPos]<a){this.codingPos++;this.outputBits=t[this.codingPos]-t[this.codingPos-1]}else if(n>0){o<<=n;n=0}}}while(n)}this.black&&(o^=255);return o}_addPixels(e,t){const a=this.codingLine;let r=this.codingPos;if(e>a[r]){if(e>this.columns){info("row is wrong length");this.err=!0;e=this.columns}1&r^t&&++r;a[r]=e}this.codingPos=r}_addPixelsNeg(e,t){const a=this.codingLine;let r=this.codingPos;if(e>a[r]){if(e>this.columns){info("row is wrong length");this.err=!0;e=this.columns}1&r^t&&++r;a[r]=e}else if(e<a[r]){if(e<0){info("invalid code");this.err=!0;e=0}for(;r>0&&e<a[r-1];)--r;a[r]=e}this.codingPos=r}_findTableCode(e,t,a,r){const i=r||0;for(let r=e;r<=t;++r){let e=this._lookBits(r);if(e===Ja)return[!0,1,!1];r<t&&(e<<=t-r);if(!i||e>=i){const t=a[e-i];if(t[0]===r){this._eatBits(r);return[!0,t[1],!0]}}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0;if(this.eoblock){t=this._lookBits(7);e=Ya[t];if(e?.[0]>0){this._eatBits(e[0]);return e[1]}}else{const e=this._findTableCode(1,7,Ya);if(e[0]&&e[2])return e[1]}info("Bad two dim code");return Ja}_getWhiteCode(){let e,t=0;if(this.eoblock){t=this._lookBits(12);if(t===Ja)return 1;e=t>>5?Qa[t>>3]:Za[t];if(e[0]>0){this._eatBits(e[0]);return e[1]}}else{let e=this._findTableCode(1,9,Qa);if(e[0])return e[1];e=this._findTableCode(11,12,Za);if(e[0])return e[1]}info("bad white code");this._eatBits(1);return 1}_getBlackCode(){let e,t;if(this.eoblock){e=this._lookBits(13);if(e===Ja)return 1;t=e>>7?!(e>>9)&&e>>7?tr[(e>>1)-64]:ar[e>>7]:er[e];if(t[0]>0){this._eatBits(t[0]);return t[1]}}else{let e=this._findTableCode(2,6,ar);if(e[0])return e[1];e=this._findTableCode(7,12,tr,64);if(e[0])return e[1];e=this._findTableCode(10,13,er);if(e[0])return e[1]}info("bad black code");this._eatBits(1);return 1}_lookBits(e){let t;for(;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?Ja:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t;this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}class CCITTFaxStream extends DecodeStream{constructor(e,t,a){super(t);this.str=e;this.dict=e.dict;a instanceof Dict||(a=Dict.empty);const r={next:()=>e.getByte()};this.ccittFaxDecoder=new CCITTFaxDecoder(r,{K:a.get("K"),EndOfLine:a.get("EndOfLine"),EncodedByteAlign:a.get("EncodedByteAlign"),Columns:a.get("Columns"),Rows:a.get("Rows"),EndOfBlock:a.get("EndOfBlock"),BlackIs1:a.get("BlackIs1")})}readBlock(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar();if(-1===e){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=e}}}const rr=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ir=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),nr=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),sr=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],or=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class FlateStream extends DecodeStream{constructor(e,t){super(t);this.str=e;this.dict=e.dict;const a=e.getByte(),r=e.getByte();if(-1===a||-1===r)throw new FormatError(`Invalid header in flate stream: ${a}, ${r}`);if(8!=(15&a))throw new FormatError(`Unknown compression method in flate stream: ${a}, ${r}`);if(((a<<8)+r)%31!=0)throw new FormatError(`Bad FCHECK in flate stream: ${a}, ${r}`);if(32&r)throw new FormatError(`FDICT bit set in flate stream: ${a}, ${r}`);this.codeSize=0;this.codeBuf=0}async getImageData(e,t){const a=await this.asyncGetBytes();return a?a.length<=e?a:a.subarray(0,e):this.getBytes(e)}async asyncGetBytes(){this.str.reset();const e=this.str.getBytes();try{const{readable:t,writable:a}=new DecompressionStream("deflate"),r=a.getWriter();await r.ready;r.write(e).then((async()=>{await r.ready;await r.close()})).catch((()=>{}));const i=[];let n=0;for await(const e of t){i.push(e);n+=e.byteLength}const s=new Uint8Array(n);let o=0;for(const e of i){s.set(e,o);o+=e.byteLength}return s}catch{this.str=new Stream(e,2,e.length,this.str.dict);this.reset();return null}}get isAsync(){return!0}getBits(e){const t=this.str;let a,r=this.codeSize,i=this.codeBuf;for(;r<e;){if(-1===(a=t.getByte()))throw new FormatError("Bad encoding in flate stream");i|=a<<r;r+=8}a=i&(1<<e)-1;this.codeBuf=i>>e;this.codeSize=r-=e;return a}getCode(e){const t=this.str,a=e[0],r=e[1];let i,n=this.codeSize,s=this.codeBuf;for(;n<r&&-1!==(i=t.getByte());){s|=i<<n;n+=8}const o=a[s&(1<<r)-1],c=o>>16,l=65535&o;if(c<1||n<c)throw new FormatError("Bad encoding in flate stream");this.codeBuf=s>>c;this.codeSize=n-c;return l}generateHuffmanTable(e){const t=e.length;let a,r=0;for(a=0;a<t;++a)e[a]>r&&(r=e[a]);const i=1<<r,n=new Int32Array(i);for(let s=1,o=0,c=2;s<=r;++s,o<<=1,c<<=1)for(let r=0;r<t;++r)if(e[r]===s){let e=0,t=o;for(a=0;a<s;++a){e=e<<1|1&t;t>>=1}for(a=e;a<i;a+=c)n[a]=s<<16|r;++o}return[n,r]}#X(e){info(e);this.eof=!0}readBlock(){let e,t,a;const r=this.str;try{t=this.getBits(3)}catch(e){this.#X(e.message);return}1&t&&(this.eof=!0);t>>=1;if(0===t){let t;if(-1===(t=r.getByte())){this.#X("Bad block header in flate stream");return}let a=t;if(-1===(t=r.getByte())){this.#X("Bad block header in flate stream");return}a|=t<<8;if(-1===(t=r.getByte())){this.#X("Bad block header in flate stream");return}let i=t;if(-1===(t=r.getByte())){this.#X("Bad block header in flate stream");return}i|=t<<8;if(i!==(65535&~a)&&(0!==a||0!==i))throw new FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;const n=this.bufferLength,s=n+a;e=this.ensureBuffer(s);this.bufferLength=s;if(0===a)-1===r.peekByte()&&(this.eof=!0);else{const t=r.getBytes(a);e.set(t,n);t.length<a&&(this.eof=!0)}return}let i,n;if(1===t){i=sr;n=or}else{if(2!==t)throw new FormatError("Unknown block type in flate stream");{const e=this.getBits(5)+257,t=this.getBits(5)+1,r=this.getBits(4)+4,s=new Uint8Array(rr.length);let o;for(o=0;o<r;++o)s[rr[o]]=this.getBits(3);const c=this.generateHuffmanTable(s);a=0;o=0;const l=e+t,h=new Uint8Array(l);let u,d,f;for(;o<l;){const e=this.getCode(c);if(16===e){u=2;d=3;f=a}else if(17===e){u=3;d=3;f=a=0}else{if(18!==e){h[o++]=a=e;continue}u=7;d=11;f=a=0}let t=this.getBits(u)+d;for(;t-- >0;)h[o++]=f}i=this.generateHuffmanTable(h.subarray(0,e));n=this.generateHuffmanTable(h.subarray(e,l))}}e=this.buffer;let s=e?e.length:0,o=this.bufferLength;for(;;){let t=this.getCode(i);if(t<256){if(o+1>=s){e=this.ensureBuffer(o+1);s=e.length}e[o++]=t;continue}if(256===t){this.bufferLength=o;return}t-=257;t=ir[t];let r=t>>16;r>0&&(r=this.getBits(r));a=(65535&t)+r;t=this.getCode(n);t=nr[t];r=t>>16;r>0&&(r=this.getBits(r));const c=(65535&t)+r;if(o+a>=s){e=this.ensureBuffer(o+a);s=e.length}for(let t=0;t<a;++t,++o)e[o]=e[o-c]}}}const cr=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];class ArithmeticDecoder{constructor(e,t,a){this.data=e;this.bp=t;this.dataEnd=a;this.chigh=e[t];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}byteIn(){const e=this.data;let t=this.bp;if(255===e[t])if(e[t+1]>143){this.clow+=65280;this.ct=8}else{t++;this.clow+=e[t]<<9;this.ct=7;this.bp=t}else{t++;this.clow+=t<this.dataEnd?e[t]<<8:65280;this.ct=8;this.bp=t}if(this.clow>65535){this.chigh+=this.clow>>16;this.clow&=65535}}readBit(e,t){let a=e[t]>>1,r=1&e[t];const i=cr[a],n=i.qe;let s,o=this.a-n;if(this.chigh<n)if(o<n){o=n;s=r;a=i.nmps}else{o=n;s=1^r;1===i.switchFlag&&(r=s);a=i.nlps}else{this.chigh-=n;if(32768&o){this.a=o;return r}if(o<n){s=1^r;1===i.switchFlag&&(r=s);a=i.nlps}else{s=r;a=i.nmps}}do{0===this.ct&&this.byteIn();o<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while(!(32768&o));this.a=o;e[t]=a<<1|r;return s}}class Jbig2Error extends fa{constructor(e){super(e,"Jbig2Error")}}class ContextCache{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class DecodingContext{constructor(e,t,a){this.data=e;this.start=t;this.end=a}get decoder(){return shadow(this,"decoder",new ArithmeticDecoder(this.data,this.start,this.end))}get contextCache(){return shadow(this,"contextCache",new ContextCache)}}function decodeInteger(e,t,a){const r=e.getContexts(t);let i=1;function readBits(e){let t=0;for(let n=0;n<e;n++){const e=a.readBit(r,i);i=i<256?i<<1|e:511&(i<<1|e)|256;t=t<<1|e}return t>>>0}const n=readBits(1),s=readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(32)+4436:readBits(12)+340:readBits(8)+84:readBits(6)+20:readBits(4)+4:readBits(2);let o;0===n?o=s:s>0&&(o=-s);return o>=-2147483648&&o<=va?o:null}function decodeIAID(e,t,a){const r=e.getContexts("IAID");let i=1;for(let e=0;e<a;e++){i=i<<1|t.readBit(r,i)}return a<31?i&(1<<a)-1:2147483647&i}const lr=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],hr=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],ur=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],dr=[39717,1941,229,405],fr=[32,8];function decodeBitmap(e,t,a,r,i,n,s,o){if(e){return decodeMMRBitmap(new Reader(o.data,o.start,o.end),t,a,!1)}if(0===r&&!n&&!i&&4===s.length&&3===s[0].x&&-1===s[0].y&&-3===s[1].x&&-1===s[1].y&&2===s[2].x&&-2===s[2].y&&-2===s[3].x&&-2===s[3].y)return function decodeBitmapTemplate0(e,t,a){const r=a.decoder,i=a.contextCache.getContexts("GB"),n=[];let s,o,c,l,h,u,d;for(o=0;o<t;o++){h=n[o]=new Uint8Array(e);u=o<1?h:n[o-1];d=o<2?h:n[o-2];s=d[0]<<13|d[1]<<12|d[2]<<11|u[0]<<7|u[1]<<6|u[2]<<5|u[3]<<4;for(c=0;c<e;c++){h[c]=l=r.readBit(i,s);s=(31735&s)<<1|(c+3<e?d[c+3]<<11:0)|(c+4<e?u[c+4]<<4:0)|l}}return n}(t,a,o);const c=!!n,l=hr[r].concat(s);l.sort(((e,t)=>e.y-t.y||e.x-t.x));const h=l.length,u=new Int8Array(h),d=new Int8Array(h),f=[];let g,p,m=0,b=0,y=0,w=0;for(p=0;p<h;p++){u[p]=l[p].x;d[p]=l[p].y;b=Math.min(b,l[p].x);y=Math.max(y,l[p].x);w=Math.min(w,l[p].y);p<h-1&&l[p].y===l[p+1].y&&l[p].x===l[p+1].x-1?m|=1<<h-1-p:f.push(p)}const x=f.length,S=new Int8Array(x),k=new Int8Array(x),C=new Uint16Array(x);for(g=0;g<x;g++){p=f[g];S[g]=l[p].x;k[g]=l[p].y;C[g]=1<<h-1-p}const v=-b,F=-w,T=t-y,O=dr[r];let M=new Uint8Array(t);const D=[],R=o.decoder,N=o.contextCache.getContexts("GB");let E,L,j,_,U,X=0,q=0;for(let e=0;e<a;e++){if(i){X^=R.readBit(N,O);if(X){D.push(M);continue}}M=new Uint8Array(M);D.push(M);for(E=0;E<t;E++){if(c&&n[e][E]){M[E]=0;continue}if(E>=v&&E<T&&e>=F){q=q<<1&m;for(p=0;p<x;p++){L=e+k[p];j=E+S[p];_=D[L][j];if(_){_=C[p];q|=_}}}else{q=0;U=h-1;for(p=0;p<h;p++,U--){j=E+u[p];if(j>=0&&j<t){L=e+d[p];if(L>=0){_=D[L][j];_&&(q|=_<<U)}}}}const a=R.readBit(N,q);M[E]=a}}return D}function decodeRefinement(e,t,a,r,i,n,s,o,c){let l=ur[a].coding;0===a&&(l=l.concat([o[0]]));const h=l.length,u=new Int32Array(h),d=new Int32Array(h);let f;for(f=0;f<h;f++){u[f]=l[f].x;d[f]=l[f].y}let g=ur[a].reference;0===a&&(g=g.concat([o[1]]));const p=g.length,m=new Int32Array(p),b=new Int32Array(p);for(f=0;f<p;f++){m[f]=g[f].x;b[f]=g[f].y}const y=r[0].length,w=r.length,x=fr[a],S=[],k=c.decoder,C=c.contextCache.getContexts("GR");let v=0;for(let a=0;a<t;a++){if(s){v^=k.readBit(C,x);if(v)throw new Jbig2Error("prediction is not supported")}const t=new Uint8Array(e);S.push(t);for(let s=0;s<e;s++){let o,c,l=0;for(f=0;f<h;f++){o=a+d[f];c=s+u[f];o<0||c<0||c>=e?l<<=1:l=l<<1|S[o][c]}for(f=0;f<p;f++){o=a+b[f]-n;c=s+m[f]-i;o<0||o>=w||c<0||c>=y?l<<=1:l=l<<1|r[o][c]}const g=k.readBit(C,l);t[s]=g}}return S}function decodeTextRegion(e,t,a,r,i,n,s,o,c,l,h,u,d,f,g,p,m,b,y){if(e&&t)throw new Jbig2Error("refinement with Huffman is not supported");const w=[];let x,S;for(x=0;x<r;x++){S=new Uint8Array(a);i&&S.fill(i);w.push(S)}const k=m.decoder,C=m.contextCache;let v=e?-f.tableDeltaT.decode(y):-decodeInteger(C,"IADT",k),F=0;x=0;for(;x<n;){v+=e?f.tableDeltaT.decode(y):decodeInteger(C,"IADT",k);F+=e?f.tableFirstS.decode(y):decodeInteger(C,"IAFS",k);let r=F;for(;;){let i=0;s>1&&(i=e?y.readBits(b):decodeInteger(C,"IAIT",k));const n=s*v+i,F=e?f.symbolIDTable.decode(y):decodeIAID(C,k,c),T=t&&(e?y.readBit():decodeInteger(C,"IARI",k));let O=o[F],M=O[0].length,D=O.length;if(T){const e=decodeInteger(C,"IARDW",k),t=decodeInteger(C,"IARDH",k);M+=e;D+=t;O=decodeRefinement(M,D,g,O,(e>>1)+decodeInteger(C,"IARDX",k),(t>>1)+decodeInteger(C,"IARDY",k),!1,p,m)}let R=0;l?1&u?R=D-1:r+=D-1:u>1?r+=M-1:R=M-1;const N=n-(1&u?0:D-1),E=r-(2&u?M-1:0);let L,j,_;if(l)for(L=0;L<D;L++){S=w[E+L];if(!S)continue;_=O[L];const e=Math.min(a-N,M);switch(d){case 0:for(j=0;j<e;j++)S[N+j]|=_[j];break;case 2:for(j=0;j<e;j++)S[N+j]^=_[j];break;default:throw new Jbig2Error(`operator ${d} is not supported`)}}else for(j=0;j<D;j++){S=w[N+j];if(S){_=O[j];switch(d){case 0:for(L=0;L<M;L++)S[E+L]|=_[L];break;case 2:for(L=0;L<M;L++)S[E+L]^=_[L];break;default:throw new Jbig2Error(`operator ${d} is not supported`)}}}x++;const U=e?f.tableDeltaS.decode(y):decodeInteger(C,"IADS",k);if(null===U)break;r+=R+U+h}}return w}function readSegmentHeader(e,t){const a={};a.number=readUint32(e,t);const r=e[t+4],i=63&r;if(!lr[i])throw new Jbig2Error("invalid segment type: "+i);a.type=i;a.typeName=lr[i];a.deferredNonRetain=!!(128&r);const n=!!(64&r),s=e[t+5];let o=s>>5&7;const c=[31&s];let l=t+6;if(7===s){o=536870911&readUint32(e,l-1);l+=3;let t=o+7>>3;c[0]=e[l++];for(;--t>0;)c.push(e[l++])}else if(5===s||6===s)throw new Jbig2Error("invalid referred-to flags");a.retainBits=c;let h=4;a.number<=256?h=1:a.number<=65536&&(h=2);const u=[];let d,f;for(d=0;d<o;d++){let t;t=1===h?e[l]:2===h?readUint16(e,l):readUint32(e,l);u.push(t);l+=h}a.referredTo=u;if(n){a.pageAssociation=readUint32(e,l);l+=4}else a.pageAssociation=e[l++];a.length=readUint32(e,l);l+=4;if(4294967295===a.length){if(38!==i)throw new Jbig2Error("invalid unknown segment length");{const t=readRegionSegmentInformation(e,l),r=!!(1&e[l+gr]),i=6,n=new Uint8Array(i);if(!r){n[0]=255;n[1]=172}n[2]=t.height>>>24&255;n[3]=t.height>>16&255;n[4]=t.height>>8&255;n[5]=255&t.height;for(d=l,f=e.length;d<f;d++){let t=0;for(;t<i&&n[t]===e[d+t];)t++;if(t===i){a.length=d+i;break}}if(4294967295===a.length)throw new Jbig2Error("segment end was not found")}}a.headerEnd=l;return a}function readSegments(e,t,a,r){const i=[];let n=a;for(;n<r;){const a=readSegmentHeader(t,n);n=a.headerEnd;const r={header:a,data:t};if(!e.randomAccess){r.start=n;n+=a.length;r.end=n}i.push(r);if(51===a.type)break}if(e.randomAccess)for(let e=0,t=i.length;e<t;e++){i[e].start=n;n+=i[e].header.length;i[e].end=n}return i}function readRegionSegmentInformation(e,t){return{width:readUint32(e,t),height:readUint32(e,t+4),x:readUint32(e,t+8),y:readUint32(e,t+12),combinationOperator:7&e[t+16]}}const gr=17;function processSegment(e,t){const a=e.header,r=e.data,i=e.end;let n,s,o,c,l=e.start;switch(a.type){case 0:const e={},t=readUint16(r,l);e.huffman=!!(1&t);e.refinement=!!(2&t);e.huffmanDHSelector=t>>2&3;e.huffmanDWSelector=t>>4&3;e.bitmapSizeSelector=t>>6&1;e.aggregationInstancesSelector=t>>7&1;e.bitmapCodingContextUsed=!!(256&t);e.bitmapCodingContextRetained=!!(512&t);e.template=t>>10&3;e.refinementTemplate=t>>12&1;l+=2;if(!e.huffman){c=0===e.template?4:1;s=[];for(o=0;o<c;o++){s.push({x:readInt8(r,l),y:readInt8(r,l+1)});l+=2}e.at=s}if(e.refinement&&!e.refinementTemplate){s=[];for(o=0;o<2;o++){s.push({x:readInt8(r,l),y:readInt8(r,l+1)});l+=2}e.refinementAt=s}e.numberOfExportedSymbols=readUint32(r,l);l+=4;e.numberOfNewSymbols=readUint32(r,l);l+=4;n=[e,a.number,a.referredTo,r,l,i];break;case 6:case 7:const h={};h.info=readRegionSegmentInformation(r,l);l+=gr;const u=readUint16(r,l);l+=2;h.huffman=!!(1&u);h.refinement=!!(2&u);h.logStripSize=u>>2&3;h.stripSize=1<<h.logStripSize;h.referenceCorner=u>>4&3;h.transposed=!!(64&u);h.combinationOperator=u>>7&3;h.defaultPixelValue=u>>9&1;h.dsOffset=u<<17>>27;h.refinementTemplate=u>>15&1;if(h.huffman){const e=readUint16(r,l);l+=2;h.huffmanFS=3&e;h.huffmanDS=e>>2&3;h.huffmanDT=e>>4&3;h.huffmanRefinementDW=e>>6&3;h.huffmanRefinementDH=e>>8&3;h.huffmanRefinementDX=e>>10&3;h.huffmanRefinementDY=e>>12&3;h.huffmanRefinementSizeSelector=!!(16384&e)}if(h.refinement&&!h.refinementTemplate){s=[];for(o=0;o<2;o++){s.push({x:readInt8(r,l),y:readInt8(r,l+1)});l+=2}h.refinementAt=s}h.numberOfSymbolInstances=readUint32(r,l);l+=4;n=[h,a.referredTo,r,l,i];break;case 16:const d={},f=r[l++];d.mmr=!!(1&f);d.template=f>>1&3;d.patternWidth=r[l++];d.patternHeight=r[l++];d.maxPatternIndex=readUint32(r,l);l+=4;n=[d,a.number,r,l,i];break;case 22:case 23:const g={};g.info=readRegionSegmentInformation(r,l);l+=gr;const p=r[l++];g.mmr=!!(1&p);g.template=p>>1&3;g.enableSkip=!!(8&p);g.combinationOperator=p>>4&7;g.defaultPixelValue=p>>7&1;g.gridWidth=readUint32(r,l);l+=4;g.gridHeight=readUint32(r,l);l+=4;g.gridOffsetX=4294967295&readUint32(r,l);l+=4;g.gridOffsetY=4294967295&readUint32(r,l);l+=4;g.gridVectorX=readUint16(r,l);l+=2;g.gridVectorY=readUint16(r,l);l+=2;n=[g,a.referredTo,r,l,i];break;case 38:case 39:const m={};m.info=readRegionSegmentInformation(r,l);l+=gr;const b=r[l++];m.mmr=!!(1&b);m.template=b>>1&3;m.prediction=!!(8&b);if(!m.mmr){c=0===m.template?4:1;s=[];for(o=0;o<c;o++){s.push({x:readInt8(r,l),y:readInt8(r,l+1)});l+=2}m.at=s}n=[m,r,l,i];break;case 48:const y={width:readUint32(r,l),height:readUint32(r,l+4),resolutionX:readUint32(r,l+8),resolutionY:readUint32(r,l+12)};4294967295===y.height&&delete y.height;const w=r[l+16];readUint16(r,l+17);y.lossless=!!(1&w);y.refinement=!!(2&w);y.defaultPixelValue=w>>2&1;y.combinationOperator=w>>3&3;y.requiresBuffer=!!(32&w);y.combinationOperatorOverride=!!(64&w);n=[y];break;case 49:case 50:case 51:case 62:break;case 53:n=[a.number,r,l,i];break;default:throw new Jbig2Error(`segment type ${a.typeName}(${a.type}) is not implemented`)}const h="on"+a.typeName;h in t&&t[h].apply(t,n)}function processSegments(e,t){for(let a=0,r=e.length;a<r;a++)processSegment(e[a],t)}class SimpleSegmentVisitor{onPageInformation(e){this.currentPageInfo=e;const t=e.width+7>>3,a=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&a.fill(255);this.buffer=a}drawBitmap(e,t){const a=this.currentPageInfo,r=e.width,i=e.height,n=a.width+7>>3,s=a.combinationOperatorOverride?e.combinationOperator:a.combinationOperator,o=this.buffer,c=128>>(7&e.x);let l,h,u,d,f=e.y*n+(e.x>>3);switch(s){case 0:for(l=0;l<i;l++){u=c;d=f;for(h=0;h<r;h++){t[l][h]&&(o[d]|=u);u>>=1;if(!u){u=128;d++}}f+=n}break;case 2:for(l=0;l<i;l++){u=c;d=f;for(h=0;h<r;h++){t[l][h]&&(o[d]^=u);u>>=1;if(!u){u=128;d++}}f+=n}break;default:throw new Jbig2Error(`operator ${s} is not supported`)}}onImmediateGenericRegion(e,t,a,r){const i=e.info,n=new DecodingContext(t,a,r),s=decodeBitmap(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,n);this.drawBitmap(i,s)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,a,r,i,n){let s,o;if(e.huffman){s=function getSymbolDictionaryHuffmanTables(e,t,a){let r,i,n,s,o=0;switch(e.huffmanDHSelector){case 0:case 1:r=getStandardTable(e.huffmanDHSelector+4);break;case 3:r=getCustomHuffmanTable(o,t,a);o++;break;default:throw new Jbig2Error("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:i=getStandardTable(e.huffmanDWSelector+2);break;case 3:i=getCustomHuffmanTable(o,t,a);o++;break;default:throw new Jbig2Error("invalid Huffman DW selector")}if(e.bitmapSizeSelector){n=getCustomHuffmanTable(o,t,a);o++}else n=getStandardTable(1);s=e.aggregationInstancesSelector?getCustomHuffmanTable(o,t,a):getStandardTable(1);return{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:n,tableAggregateInstances:s}}(e,a,this.customTables);o=new Reader(r,i,n)}let c=this.symbols;c||(this.symbols=c={});const l=[];for(const e of a){const t=c[e];t&&l.push(...t)}const h=new DecodingContext(r,i,n);c[t]=function decodeSymbolDictionary(e,t,a,r,i,n,s,o,c,l,h,u){if(e&&t)throw new Jbig2Error("symbol refinement with Huffman is not supported");const d=[];let f=0,g=log2(a.length+r);const p=h.decoder,m=h.contextCache;let b,y;if(e){b=getStandardTable(1);y=[];g=Math.max(g,1)}for(;d.length<r;){f+=e?n.tableDeltaHeight.decode(u):decodeInteger(m,"IADH",p);let r=0,i=0;const b=e?y.length:0;for(;;){const b=e?n.tableDeltaWidth.decode(u):decodeInteger(m,"IADW",p);if(null===b)break;r+=b;i+=r;let w;if(t){const i=decodeInteger(m,"IAAI",p);if(i>1)w=decodeTextRegion(e,t,r,f,0,i,1,a.concat(d),g,0,0,1,0,n,c,l,h,0,u);else{const e=decodeIAID(m,p,g),t=decodeInteger(m,"IARDX",p),i=decodeInteger(m,"IARDY",p);w=decodeRefinement(r,f,c,e<a.length?a[e]:d[e-a.length],t,i,!1,l,h)}d.push(w)}else if(e)y.push(r);else{w=decodeBitmap(!1,r,f,s,!1,null,o,h);d.push(w)}}if(e&&!t){const e=n.tableBitmapSize.decode(u);u.byteAlign();let t;if(0===e)t=readUncompressedBitmap(u,i,f);else{const a=u.end,r=u.position+e;u.end=r;t=decodeMMRBitmap(u,i,f,!1);u.end=a;u.position=r}const a=y.length;if(b===a-1)d.push(t);else{let e,r,i,n,s,o=0;for(e=b;e<a;e++){n=y[e];i=o+n;s=[];for(r=0;r<f;r++)s.push(t[r].subarray(o,i));d.push(s);o=i}}}}const w=[],x=[];let S,k,C=!1;const v=a.length+r;for(;x.length<v;){let t=e?b.decode(u):decodeInteger(m,"IAEX",p);for(;t--;)x.push(C);C=!C}for(S=0,k=a.length;S<k;S++)x[S]&&w.push(a[S]);for(let e=0;e<r;S++,e++)x[S]&&w.push(d[e]);return w}(e.huffman,e.refinement,l,e.numberOfNewSymbols,e.numberOfExportedSymbols,s,e.template,e.at,e.refinementTemplate,e.refinementAt,h,o)}onImmediateTextRegion(e,t,a,r,i){const n=e.info;let s,o;const c=this.symbols,l=[];for(const e of t){const t=c[e];t&&l.push(...t)}const h=log2(l.length);if(e.huffman){o=new Reader(a,r,i);s=function getTextRegionHuffmanTables(e,t,a,r,i){const n=[];for(let e=0;e<=34;e++){const t=i.readBits(4);n.push(new HuffmanLine([e,t,0,0]))}const s=new HuffmanTable(n,!1);n.length=0;for(let e=0;e<r;){const t=s.decode(i);if(t>=32){let a,r,s;switch(t){case 32:if(0===e)throw new Jbig2Error("no previous value in symbol ID table");r=i.readBits(2)+3;a=n[e-1].prefixLength;break;case 33:r=i.readBits(3)+3;a=0;break;case 34:r=i.readBits(7)+11;a=0;break;default:throw new Jbig2Error("invalid code length in symbol ID table")}for(s=0;s<r;s++){n.push(new HuffmanLine([e,a,0,0]));e++}}else{n.push(new HuffmanLine([e,t,0,0]));e++}}i.byteAlign();const o=new HuffmanTable(n,!1);let c,l,h,u=0;switch(e.huffmanFS){case 0:case 1:c=getStandardTable(e.huffmanFS+6);break;case 3:c=getCustomHuffmanTable(u,t,a);u++;break;default:throw new Jbig2Error("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:l=getStandardTable(e.huffmanDS+8);break;case 3:l=getCustomHuffmanTable(u,t,a);u++;break;default:throw new Jbig2Error("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:h=getStandardTable(e.huffmanDT+11);break;case 3:h=getCustomHuffmanTable(u,t,a);u++;break;default:throw new Jbig2Error("invalid Huffman DT selector")}if(e.refinement)throw new Jbig2Error("refinement with Huffman is not supported");return{symbolIDTable:o,tableFirstS:c,tableDeltaS:l,tableDeltaT:h}}(e,t,this.customTables,l.length,o)}const u=new DecodingContext(a,r,i),d=decodeTextRegion(e.huffman,e.refinement,n.width,n.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,l,h,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,s,e.refinementTemplate,e.refinementAt,u,e.logStripSize,o);this.drawBitmap(n,d)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(e,t,a,r,i){let n=this.patterns;n||(this.patterns=n={});const s=new DecodingContext(a,r,i);n[t]=function decodePatternDictionary(e,t,a,r,i,n){const s=[];if(!e){s.push({x:-t,y:0});0===i&&s.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}const o=decodeBitmap(e,(r+1)*t,a,i,!1,null,s,n),c=[];for(let e=0;e<=r;e++){const r=[],i=t*e,n=i+t;for(let e=0;e<a;e++)r.push(o[e].subarray(i,n));c.push(r)}return c}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,s)}onImmediateHalftoneRegion(e,t,a,r,i){const n=this.patterns[t[0]],s=e.info,o=new DecodingContext(a,r,i),c=function decodeHalftoneRegion(e,t,a,r,i,n,s,o,c,l,h,u,d,f,g){if(s)throw new Jbig2Error("skip is not supported");if(0!==o)throw new Jbig2Error(`operator "${o}" is not supported in halftone region`);const p=[];let m,b,y;for(m=0;m<i;m++){y=new Uint8Array(r);n&&y.fill(n);p.push(y)}const w=t.length,x=t[0],S=x[0].length,k=x.length,C=log2(w),v=[];if(!e){v.push({x:a<=1?3:2,y:-1});0===a&&v.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}const F=[];let T,O,M,D,R,N,E,L,j,_,U;e&&(T=new Reader(g.data,g.start,g.end));for(m=C-1;m>=0;m--){O=e?decodeMMRBitmap(T,c,l,!0):decodeBitmap(!1,c,l,a,!1,null,v,g);F[m]=O}for(M=0;M<l;M++)for(D=0;D<c;D++){R=0;N=0;for(b=C-1;b>=0;b--){R^=F[b][M][D];N|=R<<b}E=t[N];L=h+M*f+D*d>>8;j=u+M*d-D*f>>8;if(L>=0&&L+S<=r&&j>=0&&j+k<=i)for(m=0;m<k;m++){U=p[j+m];_=E[m];for(b=0;b<S;b++)U[L+b]|=_[b]}else{let e,t;for(m=0;m<k;m++){t=j+m;if(!(t<0||t>=i)){U=p[t];_=E[m];for(b=0;b<S;b++){e=L+b;e>=0&&e<r&&(U[e]|=_[b])}}}}}return p}(e.mmr,n,e.template,s.width,s.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,o);this.drawBitmap(s,c)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(e,t,a,r){let i=this.customTables;i||(this.customTables=i={});i[e]=function decodeTablesSegment(e,t,a){const r=e[t],i=4294967295&readUint32(e,t+1),n=4294967295&readUint32(e,t+5),s=new Reader(e,t+9,a),o=1+(r>>1&7),c=1+(r>>4&7),l=[];let h,u,d=i;do{h=s.readBits(o);u=s.readBits(c);l.push(new HuffmanLine([d,h,u,0]));d+=1<<u}while(d<n);h=s.readBits(o);l.push(new HuffmanLine([i-1,h,32,0,"lower"]));h=s.readBits(o);l.push(new HuffmanLine([n,h,32,0]));if(1&r){h=s.readBits(o);l.push(new HuffmanLine([h,0]))}return new HuffmanTable(l,!1)}(t,a,r)}}class HuffmanLine{constructor(e){if(2===e.length){this.isOOB=!0;this.rangeLow=0;this.prefixLength=e[0];this.rangeLength=0;this.prefixCode=e[1];this.isLowerRange=!1}else{this.isOOB=!1;this.rangeLow=e[0];this.prefixLength=e[1];this.rangeLength=e[2];this.prefixCode=e[3];this.isLowerRange="lower"===e[4]}}}class HuffmanTreeNode{constructor(e){this.children=[];if(e){this.isLeaf=!0;this.rangeLength=e.rangeLength;this.rangeLow=e.rangeLow;this.isLowerRange=e.isLowerRange;this.isOOB=e.isOOB}else this.isLeaf=!1}buildTree(e,t){const a=e.prefixCode>>t&1;if(t<=0)this.children[a]=new HuffmanTreeNode(e);else{let r=this.children[a];r||(this.children[a]=r=new HuffmanTreeNode(null));r.buildTree(e,t-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(!t)throw new Jbig2Error("invalid Huffman data");return t.decodeNode(e)}}class HuffmanTable{constructor(e,t){t||this.assignPrefixCodes(e);this.rootNode=new HuffmanTreeNode(null);for(let t=0,a=e.length;t<a;t++){const a=e[t];a.prefixLength>0&&this.rootNode.buildTree(a,a.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){const t=e.length;let a=0;for(let r=0;r<t;r++)a=Math.max(a,e[r].prefixLength);const r=new Uint32Array(a+1);for(let a=0;a<t;a++)r[e[a].prefixLength]++;let i,n,s,o=1,c=0;r[0]=0;for(;o<=a;){c=c+r[o-1]<<1;i=c;n=0;for(;n<t;){s=e[n];if(s.prefixLength===o){s.prefixCode=i;i++}n++}o++}}}const pr={};function getStandardTable(e){let t,a=pr[e];if(a)return a;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new Jbig2Error(`standard table B.${e} does not exist`)}for(let e=0,a=t.length;e<a;e++)t[e]=new HuffmanLine(t[e]);a=new HuffmanTable(t,!0);pr[e]=a;return a}class Reader{constructor(e,t,a){this.data=e;this.start=t;this.end=a;this.position=t;this.shift=-1;this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new Jbig2Error("end of data while reading bit");this.currentByte=this.data[this.position++];this.shift=7}const e=this.currentByte>>this.shift&1;this.shift--;return e}readBits(e){let t,a=0;for(t=e-1;t>=0;t--)a|=this.readBit()<<t;return a}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function getCustomHuffmanTable(e,t,a){let r=0;for(let i=0,n=t.length;i<n;i++){const n=a[t[i]];if(n){if(e===r)return n;r++}}throw new Jbig2Error("can\'t find custom Huffman table")}function readUncompressedBitmap(e,t,a){const r=[];for(let i=0;i<a;i++){const a=new Uint8Array(t);r.push(a);for(let r=0;r<t;r++)a[r]=e.readBit();e.byteAlign()}return r}function decodeMMRBitmap(e,t,a,r){const i=new CCITTFaxDecoder(e,{K:-1,Columns:t,Rows:a,BlackIs1:!0,EndOfBlock:r}),n=[];let s,o=!1;for(let e=0;e<a;e++){const e=new Uint8Array(t);n.push(e);let a=-1;for(let r=0;r<t;r++){if(a<0){s=i.readNextChar();if(-1===s){s=0;o=!0}a=7}e[r]=s>>a&1;a--}}if(r&&!o){const e=5;for(let t=0;t<e&&-1!==i.readNextChar();t++);}return n}class Jbig2Image{parseChunks(e){return function parseJbig2Chunks(e){const t=new SimpleSegmentVisitor;for(let a=0,r=e.length;a<r;a++){const r=e[a];processSegments(readSegments({},r.data,r.start,r.end),t)}return t.buffer}(e)}parse(e){throw new Error("Not implemented: Jbig2Image.parse")}}class Jbig2Stream extends DecodeStream{constructor(e,t,a){super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}get bytes(){return shadow(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}decodeImage(e){if(this.eof)return this.buffer;e||=this.bytes;const t=new Jbig2Image,a=[];if(this.params instanceof Dict){const e=this.params.get("JBIG2Globals");if(e instanceof BaseStream){const t=e.getBytes();a.push({data:t,start:0,end:t.length})}}a.push({data:e,start:0,end:e.length});const r=t.parseChunks(a),i=r.length;for(let e=0;e<i;e++)r[e]^=255;this.buffer=r;this.bufferLength=i;this.eof=!0;return this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}}class JpxStream extends DecodeStream{constructor(e,t,a){super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}get bytes(){return shadow(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(e){unreachable("JpxStream.readBlock")}get isAsyncDecoder(){return!0}async decodeImage(e,t){if(this.eof)return this.buffer;e||=this.bytes;this.buffer=await JpxImage.decode(e,t);this.bufferLength=this.buffer.length;this.eof=!0;return this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}}class LZWStream extends DecodeStream{constructor(e,t,a){super(t);this.str=e;this.dict=e.dict;this.cachedData=0;this.bitsCached=0;const r=4096,i={earlyChange:a,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let e=0;e<256;++e){i.dictionaryValues[e]=e;i.dictionaryLengths[e]=1}this.lzwState=i}readBits(e){let t=this.bitsCached,a=this.cachedData;for(;t<e;){const e=this.str.getByte();if(-1===e){this.eof=!0;return null}a=a<<8|e;t+=8}this.bitsCached=t-=e;this.cachedData=a;this.lastCode=null;return a>>>t&(1<<e)-1}readBlock(){let e,t,a,r=1024;const i=this.lzwState;if(!i)return;const n=i.earlyChange;let s=i.nextCode;const o=i.dictionaryValues,c=i.dictionaryLengths,l=i.dictionaryPrevCodes;let h=i.codeLength,u=i.prevCode;const d=i.currentSequence;let f=i.currentSequenceLength,g=0,p=this.bufferLength,m=this.ensureBuffer(this.bufferLength+r);for(e=0;e<512;e++){const e=this.readBits(h),i=f>0;if(e<256){d[0]=e;f=1}else{if(!(e>=258)){if(256===e){h=9;s=258;f=0;continue}this.eof=!0;delete this.lzwState;break}if(e<s){f=c[e];for(t=f-1,a=e;t>=0;t--){d[t]=o[a];a=l[a]}}else d[f++]=d[0]}if(i){l[s]=u;c[s]=c[u]+1;o[s]=d[0];s++;h=s+n&s+n-1?h:0|Math.min(Math.log(s+n)/.6931471805599453+1,12)}u=e;g+=f;if(r<g){do{r+=512}while(r<g);m=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<f;t++)m[p++]=d[t]}i.nextCode=s;i.codeLength=h;i.prevCode=u;i.currentSequenceLength=f;this.bufferLength=p}}class PredictorStream extends DecodeStream{constructor(e,t,a){super(t);if(!(a instanceof Dict))return e;const r=this.predictor=a.get("Predictor")||1;if(r<=1)return e;if(2!==r&&(r<10||r>15))throw new FormatError(`Unsupported predictor: ${r}`);this.readBlock=2===r?this.readBlockTiff:this.readBlockPng;this.str=e;this.dict=e.dict;const i=this.colors=a.get("Colors")||1,n=this.bits=a.get("BPC","BitsPerComponent")||8,s=this.columns=a.get("Columns")||1;this.pixBytes=i*n+7>>3;this.rowBytes=s*i*n+7>>3;return this}readBlockTiff(){const e=this.rowBytes,t=this.bufferLength,a=this.ensureBuffer(t+e),r=this.bits,i=this.colors,n=this.str.getBytes(e);this.eof=!n.length;if(this.eof)return;let s,o=0,c=0,l=0,h=0,u=t;if(1===r&&1===i)for(s=0;s<e;++s){let e=n[s]^o;e^=e>>1;e^=e>>2;e^=e>>4;o=(1&e)<<7;a[u++]=e}else if(8===r){for(s=0;s<i;++s)a[u++]=n[s];for(;s<e;++s){a[u]=a[u-i]+n[s];u++}}else if(16===r){const t=2*i;for(s=0;s<t;++s)a[u++]=n[s];for(;s<e;s+=2){const e=((255&n[s])<<8)+(255&n[s+1])+((255&a[u-t])<<8)+(255&a[u-t+1]);a[u++]=e>>8&255;a[u++]=255&e}}else{const e=new Uint8Array(i+1),u=(1<<r)-1;let d=0,f=t;const g=this.columns;for(s=0;s<g;++s)for(let t=0;t<i;++t){if(l<r){o=o<<8|255&n[d++];l+=8}e[t]=e[t]+(o>>l-r)&u;l-=r;c=c<<r|e[t];h+=r;if(h>=8){a[f++]=c>>h-8&255;h-=8}}h>0&&(a[f++]=(c<<8-h)+(o&(1<<8-h)-1))}this.bufferLength+=e}readBlockPng(){const e=this.rowBytes,t=this.pixBytes,a=this.str.getByte(),r=this.str.getBytes(e);this.eof=!r.length;if(this.eof)return;const i=this.bufferLength,n=this.ensureBuffer(i+e);let s=n.subarray(i-e,i);0===s.length&&(s=new Uint8Array(e));let o,c,l,h=i;switch(a){case 0:for(o=0;o<e;++o)n[h++]=r[o];break;case 1:for(o=0;o<t;++o)n[h++]=r[o];for(;o<e;++o){n[h]=n[h-t]+r[o]&255;h++}break;case 2:for(o=0;o<e;++o)n[h++]=s[o]+r[o]&255;break;case 3:for(o=0;o<t;++o)n[h++]=(s[o]>>1)+r[o];for(;o<e;++o){n[h]=(s[o]+n[h-t]>>1)+r[o]&255;h++}break;case 4:for(o=0;o<t;++o){c=s[o];l=r[o];n[h++]=c+l}for(;o<e;++o){c=s[o];const e=s[o-t],a=n[h-t],i=a+c-e;let u=i-a;u<0&&(u=-u);let d=i-c;d<0&&(d=-d);let f=i-e;f<0&&(f=-f);l=r[o];n[h++]=u<=d&&u<=f?a+l:d<=f?c+l:e+l}break;default:throw new FormatError(`Unsupported predictor: ${a}`)}this.bufferLength+=e}}class RunLengthStream extends DecodeStream{constructor(e,t){super(t);this.str=e;this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||128===e[0]){this.eof=!0;return}let t,a=this.bufferLength,r=e[0];if(r<128){t=this.ensureBuffer(a+r+1);t[a++]=e[1];if(r>0){const e=this.str.getBytes(r);t.set(e,a);a+=r}}else{r=257-r;t=this.ensureBuffer(a+r+1);t.fill(e[1],a,a+r);a+=r}this.bufferLength=a}}class Parser{constructor({lexer:e,xref:t,allowStreams:a=!1,recoveryMode:r=!1}){this.lexer=e;this.xref=t;this.allowStreams=a;this.recoveryMode=r;this.imageCache=Object.create(null);this._imageId=0;this.refill()}refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}shift(){if(this.buf2 instanceof Cmd&&"ID"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}tryShift(){try{this.shift();return!0}catch(e){if(e instanceof MissingDataException)throw e;return!1}}getObj(e=null){const t=this.buf1;this.shift();if(t instanceof Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const a=[];for(;!isCmd(this.buf1,"]")&&this.buf1!==wa;)a.push(this.getObj(e));if(this.buf1===wa){if(this.recoveryMode)return a;throw new ParserEOFException("End of file inside array.")}this.shift();return a;case"<<":const r=new Dict(this.xref);for(;!isCmd(this.buf1,">>")&&this.buf1!==wa;){if(!(this.buf1 instanceof Name)){info("Malformed dictionary: key must be a name object");this.shift();continue}const t=this.buf1.name;this.shift();if(this.buf1===wa)break;r.set(t,this.getObj(e))}if(this.buf1===wa){if(this.recoveryMode)return r;throw new ParserEOFException("End of file inside dictionary.")}if(isCmd(this.buf2,"stream"))return this.allowStreams?this.makeStream(r,e):r;this.shift();return r;default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&isCmd(this.buf2,"R")){const e=Ref.get(t,this.buf1);this.shift();this.shift();return e}return t}return"string"==typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const{knownCommands:t}=this.lexer,a=e.pos;let r,i,n=0;for(;-1!==(r=e.getByte());)if(0===n)n=69===r?1:0;else if(1===n)n=73===r?2:0;else if(32===r||10===r||13===r){i=e.pos;const a=e.peekBytes(15),s=a.length;if(0===s)break;for(let e=0;e<s;e++){r=a[e];if((0!==r||0===a[e+1])&&(10!==r&&13!==r&&(r<32||r>127))){n=0;break}}if(2!==n)continue;if(!t){warn("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const o=new Lexer(new Stream(e.peekBytes(75)),t);o._hexStringWarn=()=>{};let c=0;for(;;){const e=o.getObj();if(e===wa){n=0;break}if(e instanceof Cmd){const a=t[e.cmd];if(!a){n=0;break}if(a.variableArgs?c<=a.numArgs:c===a.numArgs)break;c=0}else c++}if(2===n)break}else n=0;if(-1===r){warn("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(i){warn(\'... trying to recover by using the last "EI" occurrence.\');e.skip(-(e.pos-i))}}let s=4;e.skip(-s);r=e.peekByte();e.skip(s);isWhiteSpace(r)||s--;return e.pos-s-a}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let a,r,i=!1;for(;-1!==(a=e.getByte());)if(255===a){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:r=e.getUint16();r>2?e.skip(r-2):e.skip(-2)}if(i)break}const n=e.pos-t;if(-1===a){warn("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");e.skip(-n);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return n}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let a;for(;-1!==(a=e.getByte());)if(126===a){const t=e.pos;a=e.peekByte();for(;isWhiteSpace(a);){e.skip();a=e.peekByte()}if(62===a){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}const r=e.pos-t;if(-1===a){warn("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-r);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return r}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let a;for(;-1!==(a=e.getByte())&&62!==a;);const r=e.pos-t;if(-1===a){warn("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-r);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return r}inlineStreamSkipEI(e){let t,a=0;for(;-1!==(t=e.getByte());)if(0===a)a=69===t?1:0;else if(1===a)a=73===t?2:0;else if(2===a)break}makeInlineImage(e){const t=this.lexer,a=t.stream,r=Object.create(null);let i;for(;!isCmd(this.buf1,"ID")&&this.buf1!==wa;){if(!(this.buf1 instanceof Name))throw new FormatError("Dictionary key must be a name object");const t=this.buf1.name;this.shift();if(this.buf1===wa)break;r[t]=this.getObj(e)}-1!==t.beginInlineImagePos&&(i=a.pos-t.beginInlineImagePos);const n=this.xref.fetchIfRef(r.F||r.Filter);let s;if(n instanceof Name)s=n.name;else if(Array.isArray(n)){const e=this.xref.fetchIfRef(n[0]);e instanceof Name&&(s=e.name)}const o=a.pos;let c,l;switch(s){case"DCT":case"DCTDecode":c=this.findDCTDecodeInlineStreamEnd(a);break;case"A85":case"ASCII85Decode":c=this.findASCII85DecodeInlineStreamEnd(a);break;case"AHx":case"ASCIIHexDecode":c=this.findASCIIHexDecodeInlineStreamEnd(a);break;default:c=this.findDefaultInlineStreamEnd(a)}if(c<1e3&&i>0){const e=a.pos;a.pos=t.beginInlineImagePos;l=function getInlineImageCacheKey(e){const t=[],a=e.length;let r=0;for(;r<a-1;)t.push(e[r++]<<8|e[r++]);r<a&&t.push(e[r]);return a+"_"+String.fromCharCode.apply(null,t)}(a.getBytes(i+c));a.pos=e;const r=this.imageCache[l];if(void 0!==r){this.buf2=Cmd.get("EI");this.shift();r.reset();return r}}const h=new Dict(this.xref);for(const e in r)h.set(e,r[e]);let u=a.makeSubStream(o,c,h);e&&(u=e.createStream(u,c));u=this.filter(u,h,c);u.dict=h;if(void 0!==l){u.cacheKey="inline_img_"+ ++this._imageId;this.imageCache[l]=u}this.buf2=Cmd.get("EI");this.shift();return u}#q(e){const{stream:t}=this.lexer;t.pos=e;const a=new Uint8Array([101,110,100]),r=a.length,i=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],n=9-r;for(;t.pos<t.end;){const s=t.peekBytes(2048),o=s.length-9;if(o<=0)break;let c=0;for(;c<o;){let o=0;for(;o<r&&s[c+o]===a[o];)o++;if(o>=r){let r=!1;for(const e of i){const t=e.length;let i=0;for(;i<t&&s[c+o+i]===e[i];)i++;if(i>=n){r=!0;break}if(i>=t){if(isWhiteSpace(s[c+o+i])){info(`Found "${bytesToString([...a,...e])}" when searching for endstream command.`);r=!0}break}}if(r){t.pos+=c;return t.pos-e}}c++}t.pos+=o}return-1}makeStream(e,t){const a=this.lexer;let r=a.stream;a.skipToNextLine();const i=r.pos-1;let n=e.get("Length");if(!Number.isInteger(n)){info(`Bad length "${n&&n.toString()}" in stream.`);n=0}r.pos=i+n;a.nextChar();if(this.tryShift()&&isCmd(this.buf2,"endstream"))this.shift();else{n=this.#q(i);if(n<0)throw new FormatError("Missing endstream command.");a.nextChar();this.shift();this.shift()}this.shift();r=r.makeSubStream(i,n,e);t&&(r=t.createStream(r,n));r=this.filter(r,e,n);r.dict=e;return r}filter(e,t,a){let r=t.get("F","Filter"),i=t.get("DP","DecodeParms");if(r instanceof Name){Array.isArray(i)&&warn("/DecodeParms should not be an Array, when /Filter is a Name.");return this.makeFilter(e,r.name,a,i)}let n=a;if(Array.isArray(r)){const t=r,a=i;for(let s=0,o=t.length;s<o;++s){r=this.xref.fetchIfRef(t[s]);if(!(r instanceof Name))throw new FormatError(`Bad filter name "${r}"`);i=null;Array.isArray(a)&&s in a&&(i=this.xref.fetchIfRef(a[s]));e=this.makeFilter(e,r.name,n,i);n=null}}return e}makeFilter(e,t,a,r){if(0===a){warn(`Empty "${t}" stream.`);return new NullStream}try{switch(t){case"Fl":case"FlateDecode":return r?new PredictorStream(new FlateStream(e,a),a,r):new FlateStream(e,a);case"LZW":case"LZWDecode":let t=1;if(r){r.has("EarlyChange")&&(t=r.get("EarlyChange"));return new PredictorStream(new LZWStream(e,a,t),a,r)}return new LZWStream(e,a,t);case"DCT":case"DCTDecode":return new JpegStream(e,a,r);case"JPX":case"JPXDecode":return new JpxStream(e,a,r);case"A85":case"ASCII85Decode":return new Ascii85Stream(e,a);case"AHx":case"ASCIIHexDecode":return new AsciiHexStream(e,a);case"CCF":case"CCITTFaxDecode":return new CCITTFaxStream(e,a,r);case"RL":case"RunLengthDecode":return new RunLengthStream(e,a);case"JBIG2Decode":return new Jbig2Stream(e,a,r)}warn(`Filter "${t}" is not supported.`);return e}catch(e){if(e instanceof MissingDataException)throw e;warn(`Invalid stream: "${e}"`);return new NullStream}}}const mr=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function toHexDigit(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class Lexer{constructor(e,t=null){this.stream=e;this.nextChar();this.strBuf=[];this.knownCommands=t;this._hexStringNumWarn=0;this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,a=0,r=1;if(45===e){r=-1;e=this.nextChar();45===e&&(e=this.nextChar())}else 43===e&&(e=this.nextChar());if(10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e){a=10;e=this.nextChar()}if(e<48||e>57){const t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if(isWhiteSpace(e)||40===e||60===e||-1===e){info(`Lexer.getNumber - "${t}".`);return 0}throw new FormatError(t)}let i=e-48,n=0,s=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const r=e-48;if(t)n=10*n+r;else{0!==a&&(a*=10);i=10*i+r}}else if(46===e){if(0!==a)break;a=1}else if(45===e)warn("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;e=this.peekChar();if(43===e||45===e){s=45===e?-1:1;this.nextChar()}else if(e<48||e>57)break;t=!0}0!==a&&(i/=a);t&&(i*=10**(s*n));return r*i}getString(){let e=1,t=!1;const a=this.strBuf;a.length=0;let r=this.nextChar();for(;;){let i=!1;switch(0|r){case-1:warn("Unterminated string");t=!0;break;case 40:++e;a.push("(");break;case 41:if(0==--e){this.nextChar();t=!0}else a.push(")");break;case 92:r=this.nextChar();switch(r){case-1:warn("Unterminated string");t=!0;break;case 110:a.push("\\n");break;case 114:a.push("\\r");break;case 116:a.push("\\t");break;case 98:a.push("\\b");break;case 102:a.push("\\f");break;case 92:case 40:case 41:a.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&r;r=this.nextChar();i=!0;if(r>=48&&r<=55){e=(e<<3)+(15&r);r=this.nextChar();if(r>=48&&r<=55){i=!1;e=(e<<3)+(15&r)}}a.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:a.push(String.fromCharCode(r))}break;default:a.push(String.fromCharCode(r))}if(t)break;i||(r=this.nextChar())}return a.join("")}getName(){let e,t;const a=this.strBuf;a.length=0;for(;(e=this.nextChar())>=0&&!mr[e];)if(35===e){e=this.nextChar();if(mr[e]){warn("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");a.push("#");break}const r=toHexDigit(e);if(-1!==r){t=e;e=this.nextChar();const i=toHexDigit(e);if(-1===i){warn(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`);a.push("#",String.fromCharCode(t));if(mr[e])break;a.push(String.fromCharCode(e));continue}a.push(String.fromCharCode(r<<4|i))}else a.push("#",String.fromCharCode(e))}else a.push(String.fromCharCode(e));a.length>127&&warn(`Name token is longer than allowed by the spec: ${a.length}`);return Name.get(a.join(""))}_hexStringWarn(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||warn(`getHexString - ignoring invalid character: ${e}`):warn("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t=this.currentChar,a=-1,r=-1;this._hexStringNumWarn=0;for(;;){if(t<0){warn("Unterminated hex string");break}if(62===t){this.nextChar();break}if(1!==mr[t]){r=toHexDigit(t);if(-1===r)this._hexStringWarn(t);else if(-1===a)a=r;else{e.push(String.fromCharCode(a<<4|r));a=-1}t=this.nextChar()}else t=this.nextChar()}-1!==a&&e.push(String.fromCharCode(a<<4));return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return wa;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==mr[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return Cmd.get("[");case 93:this.nextChar();return Cmd.get("]");case 60:t=this.nextChar();if(60===t){this.nextChar();return Cmd.get("<<")}return this.getHexString();case 62:t=this.nextChar();if(62===t){this.nextChar();return Cmd.get(">>")}return Cmd.get(">");case 123:this.nextChar();return Cmd.get("{");case 125:this.nextChar();return Cmd.get("}");case 41:this.nextChar();throw new FormatError(`Illegal character: ${t}`)}let a=String.fromCharCode(t);if(t<32||t>127){const e=this.peekChar();if(e>=32&&e<=127){this.nextChar();return Cmd.get(a)}}const r=this.knownCommands;let i=void 0!==r?.[a];for(;(t=this.nextChar())>=0&&!mr[t];){const e=a+String.fromCharCode(t);if(i&&void 0===r[e])break;if(128===a.length)throw new FormatError(`Command token too long: ${a.length}`);a=e;i=void 0!==r?.[a]}if("true"===a)return!0;if("false"===a)return!1;if("null"===a)return null;"BI"===a&&(this.beginInlineImagePos=this.stream.pos);return Cmd.get(a)}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}class Linearization{static create(e){function getInt(e,t,a=!1){const r=e.get(t);if(Number.isInteger(r)&&(a?r>=0:r>0))return r;throw new Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}const t=new Parser({lexer:new Lexer(e),xref:null}),a=t.getObj(),r=t.getObj(),i=t.getObj(),n=t.getObj();let s,o;if(!(Number.isInteger(a)&&Number.isInteger(r)&&isCmd(i,"obj")&&n instanceof Dict&&"number"==typeof(s=n.get("Linearized"))&&s>0))return null;if((o=getInt(n,"L"))!==e.length)throw new Error(\'The "L" parameter in the linearization dictionary does not equal the stream length.\');return{length:o,hints:function getHints(e){const t=e.get("H");let a;if(Array.isArray(t)&&(2===(a=t.length)||4===a)){for(let e=0;e<a;e++){const a=t[e];if(!(Number.isInteger(a)&&a>0))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(n),objectNumberFirst:getInt(n,"O"),endFirst:getInt(n,"E"),numPages:getInt(n,"N"),mainXRefEntriesOffset:getInt(n,"T"),pageFirst:n.has("P")?getInt(n,"P",!0):0}}}const br=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],yr=2**24-1;class CMap{constructor(e=!1){this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=!1;this.useCMap=null;this.builtInCMap=e}addCodespaceRange(e,t,a){this.codespaceRanges[e-1].push(t,a);this.numCodespaceRanges++}mapCidRange(e,t,a){if(t-e>yr)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=a++}mapBfRange(e,t,a){if(t-e>yr)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const r=a.length-1;for(;e<=t;){this._map[e++]=a;const t=a.charCodeAt(r)+1;t>255?a=a.substring(0,r-1)+String.fromCharCode(a.charCodeAt(r-1)+1)+"\\0":a=a.substring(0,r)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,a){if(t-e>yr)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const r=a.length;let i=0;for(;e<=t&&i<r;){this._map[e]=a[i++];++e}}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return void 0!==this._map[e]}forEach(e){const t=this._map,a=t.length;if(a<=65536)for(let r=0;r<a;r++)void 0!==t[r]&&e(r,t[r]);else for(const a in t)e(a,t[a])}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const a in t)if(t[a]===e)return 0|a;return-1}getMap(){return this._map}readCharCode(e,t,a){let r=0;const i=this.codespaceRanges;for(let n=0,s=i.length;n<s;n++){r=(r<<8|e.charCodeAt(t+n))>>>0;const s=i[n];for(let e=0,t=s.length;e<t;){const t=s[e++],i=s[e++];if(r>=t&&r<=i){a.charcode=r;a.length=n+1;return}}}a.charcode=0;a.length=1}getCharCodeLength(e){const t=this.codespaceRanges;for(let a=0,r=t.length;a<r;a++){const r=t[a];for(let t=0,i=r.length;t<i;){const i=r[t++],n=r[t++];if(e>=i&&e<=n)return a+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}class IdentityCMap extends CMap{constructor(e,t){super();this.vertical=e;this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,a){unreachable("should not call mapCidRange")}mapBfRange(e,t,a){unreachable("should not call mapBfRange")}mapBfRangeToArray(e,t,a){unreachable("should not call mapBfRangeToArray")}mapOne(e,t){unreachable("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){unreachable("should not access .isIdentityCMap")}}function strToInt(e){let t=0;for(let a=0;a<e.length;a++)t=t<<8|e.charCodeAt(a);return t>>>0}function expectString(e){if("string"!=typeof e)throw new FormatError("Malformed CMap: expected string.")}function expectInt(e){if(!Number.isInteger(e))throw new FormatError("Malformed CMap: expected int.")}function parseBfChar(e,t){for(;;){let a=t.getObj();if(a===wa)break;if(isCmd(a,"endbfchar"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectString(a);const i=a;e.mapOne(r,i)}}function parseBfRange(e,t){for(;;){let a=t.getObj();if(a===wa)break;if(isCmd(a,"endbfrange"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectString(a);const i=strToInt(a);a=t.getObj();if(Number.isInteger(a)||"string"==typeof a){const t=Number.isInteger(a)?String.fromCharCode(a):a;e.mapBfRange(r,i,t)}else{if(!isCmd(a,"["))break;{a=t.getObj();const n=[];for(;!isCmd(a,"]")&&a!==wa;){n.push(a);a=t.getObj()}e.mapBfRangeToArray(r,i,n)}}}throw new FormatError("Invalid bf range.")}function parseCidChar(e,t){for(;;){let a=t.getObj();if(a===wa)break;if(isCmd(a,"endcidchar"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectInt(a);const i=a;e.mapOne(r,i)}}function parseCidRange(e,t){for(;;){let a=t.getObj();if(a===wa)break;if(isCmd(a,"endcidrange"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectString(a);const i=strToInt(a);a=t.getObj();expectInt(a);const n=a;e.mapCidRange(r,i,n)}}function parseCodespaceRange(e,t){for(;;){let a=t.getObj();if(a===wa)break;if(isCmd(a,"endcodespacerange"))return;if("string"!=typeof a)break;const r=strToInt(a);a=t.getObj();if("string"!=typeof a)break;const i=strToInt(a);e.addCodespaceRange(a.length,r,i)}throw new FormatError("Invalid codespace range.")}function parseWMode(e,t){const a=t.getObj();Number.isInteger(a)&&(e.vertical=!!a)}function parseCMapName(e,t){const a=t.getObj();a instanceof Name&&(e.name=a.name)}async function parseCMap(e,t,a,r){let i,n;e:for(;;)try{const a=t.getObj();if(a===wa)break;if(a instanceof Name){"WMode"===a.name?parseWMode(e,t):"CMapName"===a.name&&parseCMapName(e,t);i=a}else if(a instanceof Cmd)switch(a.cmd){case"endcmap":break e;case"usecmap":i instanceof Name&&(n=i.name);break;case"begincodespacerange":parseCodespaceRange(e,t);break;case"beginbfchar":parseBfChar(e,t);break;case"begincidchar":parseCidChar(e,t);break;case"beginbfrange":parseBfRange(e,t);break;case"begincidrange":parseCidRange(e,t)}}catch(e){if(e instanceof MissingDataException)throw e;warn("Invalid cMap data: "+e);continue}!r&&n&&(r=n);return r?extendCMap(e,a,r):e}async function extendCMap(e,t,a){e.useCMap=await createBuiltInCMap(a,t);if(0===e.numCodespaceRanges){const t=e.useCMap.codespaceRanges;for(let a=0;a<t.length;a++)e.codespaceRanges[a]=t[a].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}e.useCMap.forEach((function(t,a){e.contains(t)||e.mapOne(t,a)}));return e}async function createBuiltInCMap(e,t){if("Identity-H"===e)return new IdentityCMap(!1,2);if("Identity-V"===e)return new IdentityCMap(!0,2);if(!br.includes(e))throw new Error("Unknown CMap name: "+e);if(!t)throw new Error("Built-in CMap parameters are not provided.");const{cMapData:a,isCompressed:r}=await t(e),i=new CMap(!0);if(r)return(new BinaryCMapReader).process(a,i,(e=>extendCMap(i,t,e)));const n=new Lexer(new Stream(a));return parseCMap(i,n,t,null)}class CMapFactory{static async create({encoding:e,fetchBuiltInCMap:t,useCMap:a}){if(e instanceof Name)return createBuiltInCMap(e.name,t);if(e instanceof BaseStream){const r=await parseCMap(new CMap,new Lexer(e),t,a);return r.isIdentityCMap?createBuiltInCMap(r.name,t):r}throw new Error("Encoding required.")}}const wr=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],xr=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],Sr=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"],Ar=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""],kr=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"],Cr=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""],vr=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];function getEncoding(e){switch(e){case"WinAnsiEncoding":return kr;case"StandardEncoding":return Ar;case"MacRomanEncoding":return Sr;case"SymbolSetEncoding":return Cr;case"ZapfDingbatsEncoding":return vr;case"ExpertEncoding":return wr;case"MacExpertEncoding":return xr;default:return null}}const Fr=getLookupTableFactory((function(e){e.A=65;e.AE=198;e.AEacute=508;e.AEmacron=482;e.AEsmall=63462;e.Aacute=193;e.Aacutesmall=63457;e.Abreve=258;e.Abreveacute=7854;e.Abrevecyrillic=1232;e.Abrevedotbelow=7862;e.Abrevegrave=7856;e.Abrevehookabove=7858;e.Abrevetilde=7860;e.Acaron=461;e.Acircle=9398;e.Acircumflex=194;e.Acircumflexacute=7844;e.Acircumflexdotbelow=7852;e.Acircumflexgrave=7846;e.Acircumflexhookabove=7848;e.Acircumflexsmall=63458;e.Acircumflextilde=7850;e.Acute=63177;e.Acutesmall=63412;e.Acyrillic=1040;e.Adblgrave=512;e.Adieresis=196;e.Adieresiscyrillic=1234;e.Adieresismacron=478;e.Adieresissmall=63460;e.Adotbelow=7840;e.Adotmacron=480;e.Agrave=192;e.Agravesmall=63456;e.Ahookabove=7842;e.Aiecyrillic=1236;e.Ainvertedbreve=514;e.Alpha=913;e.Alphatonos=902;e.Amacron=256;e.Amonospace=65313;e.Aogonek=260;e.Aring=197;e.Aringacute=506;e.Aringbelow=7680;e.Aringsmall=63461;e.Asmall=63329;e.Atilde=195;e.Atildesmall=63459;e.Aybarmenian=1329;e.B=66;e.Bcircle=9399;e.Bdotaccent=7682;e.Bdotbelow=7684;e.Becyrillic=1041;e.Benarmenian=1330;e.Beta=914;e.Bhook=385;e.Blinebelow=7686;e.Bmonospace=65314;e.Brevesmall=63220;e.Bsmall=63330;e.Btopbar=386;e.C=67;e.Caarmenian=1342;e.Cacute=262;e.Caron=63178;e.Caronsmall=63221;e.Ccaron=268;e.Ccedilla=199;e.Ccedillaacute=7688;e.Ccedillasmall=63463;e.Ccircle=9400;e.Ccircumflex=264;e.Cdot=266;e.Cdotaccent=266;e.Cedillasmall=63416;e.Chaarmenian=1353;e.Cheabkhasiancyrillic=1212;e.Checyrillic=1063;e.Chedescenderabkhasiancyrillic=1214;e.Chedescendercyrillic=1206;e.Chedieresiscyrillic=1268;e.Cheharmenian=1347;e.Chekhakassiancyrillic=1227;e.Cheverticalstrokecyrillic=1208;e.Chi=935;e.Chook=391;e.Circumflexsmall=63222;e.Cmonospace=65315;e.Coarmenian=1361;e.Csmall=63331;e.D=68;e.DZ=497;e.DZcaron=452;e.Daarmenian=1332;e.Dafrican=393;e.Dcaron=270;e.Dcedilla=7696;e.Dcircle=9401;e.Dcircumflexbelow=7698;e.Dcroat=272;e.Ddotaccent=7690;e.Ddotbelow=7692;e.Decyrillic=1044;e.Deicoptic=1006;e.Delta=8710;e.Deltagreek=916;e.Dhook=394;e.Dieresis=63179;e.DieresisAcute=63180;e.DieresisGrave=63181;e.Dieresissmall=63400;e.Digammagreek=988;e.Djecyrillic=1026;e.Dlinebelow=7694;e.Dmonospace=65316;e.Dotaccentsmall=63223;e.Dslash=272;e.Dsmall=63332;e.Dtopbar=395;e.Dz=498;e.Dzcaron=453;e.Dzeabkhasiancyrillic=1248;e.Dzecyrillic=1029;e.Dzhecyrillic=1039;e.E=69;e.Eacute=201;e.Eacutesmall=63465;e.Ebreve=276;e.Ecaron=282;e.Ecedillabreve=7708;e.Echarmenian=1333;e.Ecircle=9402;e.Ecircumflex=202;e.Ecircumflexacute=7870;e.Ecircumflexbelow=7704;e.Ecircumflexdotbelow=7878;e.Ecircumflexgrave=7872;e.Ecircumflexhookabove=7874;e.Ecircumflexsmall=63466;e.Ecircumflextilde=7876;e.Ecyrillic=1028;e.Edblgrave=516;e.Edieresis=203;e.Edieresissmall=63467;e.Edot=278;e.Edotaccent=278;e.Edotbelow=7864;e.Efcyrillic=1060;e.Egrave=200;e.Egravesmall=63464;e.Eharmenian=1335;e.Ehookabove=7866;e.Eightroman=8551;e.Einvertedbreve=518;e.Eiotifiedcyrillic=1124;e.Elcyrillic=1051;e.Elevenroman=8554;e.Emacron=274;e.Emacronacute=7702;e.Emacrongrave=7700;e.Emcyrillic=1052;e.Emonospace=65317;e.Encyrillic=1053;e.Endescendercyrillic=1186;e.Eng=330;e.Enghecyrillic=1188;e.Enhookcyrillic=1223;e.Eogonek=280;e.Eopen=400;e.Epsilon=917;e.Epsilontonos=904;e.Ercyrillic=1056;e.Ereversed=398;e.Ereversedcyrillic=1069;e.Escyrillic=1057;e.Esdescendercyrillic=1194;e.Esh=425;e.Esmall=63333;e.Eta=919;e.Etarmenian=1336;e.Etatonos=905;e.Eth=208;e.Ethsmall=63472;e.Etilde=7868;e.Etildebelow=7706;e.Euro=8364;e.Ezh=439;e.Ezhcaron=494;e.Ezhreversed=440;e.F=70;e.Fcircle=9403;e.Fdotaccent=7710;e.Feharmenian=1366;e.Feicoptic=996;e.Fhook=401;e.Fitacyrillic=1138;e.Fiveroman=8548;e.Fmonospace=65318;e.Fourroman=8547;e.Fsmall=63334;e.G=71;e.GBsquare=13191;e.Gacute=500;e.Gamma=915;e.Gammaafrican=404;e.Gangiacoptic=1002;e.Gbreve=286;e.Gcaron=486;e.Gcedilla=290;e.Gcircle=9404;e.Gcircumflex=284;e.Gcommaaccent=290;e.Gdot=288;e.Gdotaccent=288;e.Gecyrillic=1043;e.Ghadarmenian=1346;e.Ghemiddlehookcyrillic=1172;e.Ghestrokecyrillic=1170;e.Gheupturncyrillic=1168;e.Ghook=403;e.Gimarmenian=1331;e.Gjecyrillic=1027;e.Gmacron=7712;e.Gmonospace=65319;e.Grave=63182;e.Gravesmall=63328;e.Gsmall=63335;e.Gsmallhook=667;e.Gstroke=484;e.H=72;e.H18533=9679;e.H18543=9642;e.H18551=9643;e.H22073=9633;e.HPsquare=13259;e.Haabkhasiancyrillic=1192;e.Hadescendercyrillic=1202;e.Hardsigncyrillic=1066;e.Hbar=294;e.Hbrevebelow=7722;e.Hcedilla=7720;e.Hcircle=9405;e.Hcircumflex=292;e.Hdieresis=7718;e.Hdotaccent=7714;e.Hdotbelow=7716;e.Hmonospace=65320;e.Hoarmenian=1344;e.Horicoptic=1e3;e.Hsmall=63336;e.Hungarumlaut=63183;e.Hungarumlautsmall=63224;e.Hzsquare=13200;e.I=73;e.IAcyrillic=1071;e.IJ=306;e.IUcyrillic=1070;e.Iacute=205;e.Iacutesmall=63469;e.Ibreve=300;e.Icaron=463;e.Icircle=9406;e.Icircumflex=206;e.Icircumflexsmall=63470;e.Icyrillic=1030;e.Idblgrave=520;e.Idieresis=207;e.Idieresisacute=7726;e.Idieresiscyrillic=1252;e.Idieresissmall=63471;e.Idot=304;e.Idotaccent=304;e.Idotbelow=7882;e.Iebrevecyrillic=1238;e.Iecyrillic=1045;e.Ifraktur=8465;e.Igrave=204;e.Igravesmall=63468;e.Ihookabove=7880;e.Iicyrillic=1048;e.Iinvertedbreve=522;e.Iishortcyrillic=1049;e.Imacron=298;e.Imacroncyrillic=1250;e.Imonospace=65321;e.Iniarmenian=1339;e.Iocyrillic=1025;e.Iogonek=302;e.Iota=921;e.Iotaafrican=406;e.Iotadieresis=938;e.Iotatonos=906;e.Ismall=63337;e.Istroke=407;e.Itilde=296;e.Itildebelow=7724;e.Izhitsacyrillic=1140;e.Izhitsadblgravecyrillic=1142;e.J=74;e.Jaarmenian=1345;e.Jcircle=9407;e.Jcircumflex=308;e.Jecyrillic=1032;e.Jheharmenian=1355;e.Jmonospace=65322;e.Jsmall=63338;e.K=75;e.KBsquare=13189;e.KKsquare=13261;e.Kabashkircyrillic=1184;e.Kacute=7728;e.Kacyrillic=1050;e.Kadescendercyrillic=1178;e.Kahookcyrillic=1219;e.Kappa=922;e.Kastrokecyrillic=1182;e.Kaverticalstrokecyrillic=1180;e.Kcaron=488;e.Kcedilla=310;e.Kcircle=9408;e.Kcommaaccent=310;e.Kdotbelow=7730;e.Keharmenian=1364;e.Kenarmenian=1343;e.Khacyrillic=1061;e.Kheicoptic=998;e.Khook=408;e.Kjecyrillic=1036;e.Klinebelow=7732;e.Kmonospace=65323;e.Koppacyrillic=1152;e.Koppagreek=990;e.Ksicyrillic=1134;e.Ksmall=63339;e.L=76;e.LJ=455;e.LL=63167;e.Lacute=313;e.Lambda=923;e.Lcaron=317;e.Lcedilla=315;e.Lcircle=9409;e.Lcircumflexbelow=7740;e.Lcommaaccent=315;e.Ldot=319;e.Ldotaccent=319;e.Ldotbelow=7734;e.Ldotbelowmacron=7736;e.Liwnarmenian=1340;e.Lj=456;e.Ljecyrillic=1033;e.Llinebelow=7738;e.Lmonospace=65324;e.Lslash=321;e.Lslashsmall=63225;e.Lsmall=63340;e.M=77;e.MBsquare=13190;e.Macron=63184;e.Macronsmall=63407;e.Macute=7742;e.Mcircle=9410;e.Mdotaccent=7744;e.Mdotbelow=7746;e.Menarmenian=1348;e.Mmonospace=65325;e.Msmall=63341;e.Mturned=412;e.Mu=924;e.N=78;e.NJ=458;e.Nacute=323;e.Ncaron=327;e.Ncedilla=325;e.Ncircle=9411;e.Ncircumflexbelow=7754;e.Ncommaaccent=325;e.Ndotaccent=7748;e.Ndotbelow=7750;e.Nhookleft=413;e.Nineroman=8552;e.Nj=459;e.Njecyrillic=1034;e.Nlinebelow=7752;e.Nmonospace=65326;e.Nowarmenian=1350;e.Nsmall=63342;e.Ntilde=209;e.Ntildesmall=63473;e.Nu=925;e.O=79;e.OE=338;e.OEsmall=63226;e.Oacute=211;e.Oacutesmall=63475;e.Obarredcyrillic=1256;e.Obarreddieresiscyrillic=1258;e.Obreve=334;e.Ocaron=465;e.Ocenteredtilde=415;e.Ocircle=9412;e.Ocircumflex=212;e.Ocircumflexacute=7888;e.Ocircumflexdotbelow=7896;e.Ocircumflexgrave=7890;e.Ocircumflexhookabove=7892;e.Ocircumflexsmall=63476;e.Ocircumflextilde=7894;e.Ocyrillic=1054;e.Odblacute=336;e.Odblgrave=524;e.Odieresis=214;e.Odieresiscyrillic=1254;e.Odieresissmall=63478;e.Odotbelow=7884;e.Ogoneksmall=63227;e.Ograve=210;e.Ogravesmall=63474;e.Oharmenian=1365;e.Ohm=8486;e.Ohookabove=7886;e.Ohorn=416;e.Ohornacute=7898;e.Ohorndotbelow=7906;e.Ohorngrave=7900;e.Ohornhookabove=7902;e.Ohorntilde=7904;e.Ohungarumlaut=336;e.Oi=418;e.Oinvertedbreve=526;e.Omacron=332;e.Omacronacute=7762;e.Omacrongrave=7760;e.Omega=8486;e.Omegacyrillic=1120;e.Omegagreek=937;e.Omegaroundcyrillic=1146;e.Omegatitlocyrillic=1148;e.Omegatonos=911;e.Omicron=927;e.Omicrontonos=908;e.Omonospace=65327;e.Oneroman=8544;e.Oogonek=490;e.Oogonekmacron=492;e.Oopen=390;e.Oslash=216;e.Oslashacute=510;e.Oslashsmall=63480;e.Osmall=63343;e.Ostrokeacute=510;e.Otcyrillic=1150;e.Otilde=213;e.Otildeacute=7756;e.Otildedieresis=7758;e.Otildesmall=63477;e.P=80;e.Pacute=7764;e.Pcircle=9413;e.Pdotaccent=7766;e.Pecyrillic=1055;e.Peharmenian=1354;e.Pemiddlehookcyrillic=1190;e.Phi=934;e.Phook=420;e.Pi=928;e.Piwrarmenian=1363;e.Pmonospace=65328;e.Psi=936;e.Psicyrillic=1136;e.Psmall=63344;e.Q=81;e.Qcircle=9414;e.Qmonospace=65329;e.Qsmall=63345;e.R=82;e.Raarmenian=1356;e.Racute=340;e.Rcaron=344;e.Rcedilla=342;e.Rcircle=9415;e.Rcommaaccent=342;e.Rdblgrave=528;e.Rdotaccent=7768;e.Rdotbelow=7770;e.Rdotbelowmacron=7772;e.Reharmenian=1360;e.Rfraktur=8476;e.Rho=929;e.Ringsmall=63228;e.Rinvertedbreve=530;e.Rlinebelow=7774;e.Rmonospace=65330;e.Rsmall=63346;e.Rsmallinverted=641;e.Rsmallinvertedsuperior=694;e.S=83;e.SF010000=9484;e.SF020000=9492;e.SF030000=9488;e.SF040000=9496;e.SF050000=9532;e.SF060000=9516;e.SF070000=9524;e.SF080000=9500;e.SF090000=9508;e.SF100000=9472;e.SF110000=9474;e.SF190000=9569;e.SF200000=9570;e.SF210000=9558;e.SF220000=9557;e.SF230000=9571;e.SF240000=9553;e.SF250000=9559;e.SF260000=9565;e.SF270000=9564;e.SF280000=9563;e.SF360000=9566;e.SF370000=9567;e.SF380000=9562;e.SF390000=9556;e.SF400000=9577;e.SF410000=9574;e.SF420000=9568;e.SF430000=9552;e.SF440000=9580;e.SF450000=9575;e.SF460000=9576;e.SF470000=9572;e.SF480000=9573;e.SF490000=9561;e.SF500000=9560;e.SF510000=9554;e.SF520000=9555;e.SF530000=9579;e.SF540000=9578;e.Sacute=346;e.Sacutedotaccent=7780;e.Sampigreek=992;e.Scaron=352;e.Scarondotaccent=7782;e.Scaronsmall=63229;e.Scedilla=350;e.Schwa=399;e.Schwacyrillic=1240;e.Schwadieresiscyrillic=1242;e.Scircle=9416;e.Scircumflex=348;e.Scommaaccent=536;e.Sdotaccent=7776;e.Sdotbelow=7778;e.Sdotbelowdotaccent=7784;e.Seharmenian=1357;e.Sevenroman=8550;e.Shaarmenian=1351;e.Shacyrillic=1064;e.Shchacyrillic=1065;e.Sheicoptic=994;e.Shhacyrillic=1210;e.Shimacoptic=1004;e.Sigma=931;e.Sixroman=8549;e.Smonospace=65331;e.Softsigncyrillic=1068;e.Ssmall=63347;e.Stigmagreek=986;e.T=84;e.Tau=932;e.Tbar=358;e.Tcaron=356;e.Tcedilla=354;e.Tcircle=9417;e.Tcircumflexbelow=7792;e.Tcommaaccent=354;e.Tdotaccent=7786;e.Tdotbelow=7788;e.Tecyrillic=1058;e.Tedescendercyrillic=1196;e.Tenroman=8553;e.Tetsecyrillic=1204;e.Theta=920;e.Thook=428;e.Thorn=222;e.Thornsmall=63486;e.Threeroman=8546;e.Tildesmall=63230;e.Tiwnarmenian=1359;e.Tlinebelow=7790;e.Tmonospace=65332;e.Toarmenian=1337;e.Tonefive=444;e.Tonesix=388;e.Tonetwo=423;e.Tretroflexhook=430;e.Tsecyrillic=1062;e.Tshecyrillic=1035;e.Tsmall=63348;e.Twelveroman=8555;e.Tworoman=8545;e.U=85;e.Uacute=218;e.Uacutesmall=63482;e.Ubreve=364;e.Ucaron=467;e.Ucircle=9418;e.Ucircumflex=219;e.Ucircumflexbelow=7798;e.Ucircumflexsmall=63483;e.Ucyrillic=1059;e.Udblacute=368;e.Udblgrave=532;e.Udieresis=220;e.Udieresisacute=471;e.Udieresisbelow=7794;e.Udieresiscaron=473;e.Udieresiscyrillic=1264;e.Udieresisgrave=475;e.Udieresismacron=469;e.Udieresissmall=63484;e.Udotbelow=7908;e.Ugrave=217;e.Ugravesmall=63481;e.Uhookabove=7910;e.Uhorn=431;e.Uhornacute=7912;e.Uhorndotbelow=7920;e.Uhorngrave=7914;e.Uhornhookabove=7916;e.Uhorntilde=7918;e.Uhungarumlaut=368;e.Uhungarumlautcyrillic=1266;e.Uinvertedbreve=534;e.Ukcyrillic=1144;e.Umacron=362;e.Umacroncyrillic=1262;e.Umacrondieresis=7802;e.Umonospace=65333;e.Uogonek=370;e.Upsilon=933;e.Upsilon1=978;e.Upsilonacutehooksymbolgreek=979;e.Upsilonafrican=433;e.Upsilondieresis=939;e.Upsilondieresishooksymbolgreek=980;e.Upsilonhooksymbol=978;e.Upsilontonos=910;e.Uring=366;e.Ushortcyrillic=1038;e.Usmall=63349;e.Ustraightcyrillic=1198;e.Ustraightstrokecyrillic=1200;e.Utilde=360;e.Utildeacute=7800;e.Utildebelow=7796;e.V=86;e.Vcircle=9419;e.Vdotbelow=7806;e.Vecyrillic=1042;e.Vewarmenian=1358;e.Vhook=434;e.Vmonospace=65334;e.Voarmenian=1352;e.Vsmall=63350;e.Vtilde=7804;e.W=87;e.Wacute=7810;e.Wcircle=9420;e.Wcircumflex=372;e.Wdieresis=7812;e.Wdotaccent=7814;e.Wdotbelow=7816;e.Wgrave=7808;e.Wmonospace=65335;e.Wsmall=63351;e.X=88;e.Xcircle=9421;e.Xdieresis=7820;e.Xdotaccent=7818;e.Xeharmenian=1341;e.Xi=926;e.Xmonospace=65336;e.Xsmall=63352;e.Y=89;e.Yacute=221;e.Yacutesmall=63485;e.Yatcyrillic=1122;e.Ycircle=9422;e.Ycircumflex=374;e.Ydieresis=376;e.Ydieresissmall=63487;e.Ydotaccent=7822;e.Ydotbelow=7924;e.Yericyrillic=1067;e.Yerudieresiscyrillic=1272;e.Ygrave=7922;e.Yhook=435;e.Yhookabove=7926;e.Yiarmenian=1349;e.Yicyrillic=1031;e.Yiwnarmenian=1362;e.Ymonospace=65337;e.Ysmall=63353;e.Ytilde=7928;e.Yusbigcyrillic=1130;e.Yusbigiotifiedcyrillic=1132;e.Yuslittlecyrillic=1126;e.Yuslittleiotifiedcyrillic=1128;e.Z=90;e.Zaarmenian=1334;e.Zacute=377;e.Zcaron=381;e.Zcaronsmall=63231;e.Zcircle=9423;e.Zcircumflex=7824;e.Zdot=379;e.Zdotaccent=379;e.Zdotbelow=7826;e.Zecyrillic=1047;e.Zedescendercyrillic=1176;e.Zedieresiscyrillic=1246;e.Zeta=918;e.Zhearmenian=1338;e.Zhebrevecyrillic=1217;e.Zhecyrillic=1046;e.Zhedescendercyrillic=1174;e.Zhedieresiscyrillic=1244;e.Zlinebelow=7828;e.Zmonospace=65338;e.Zsmall=63354;e.Zstroke=437;e.a=97;e.aabengali=2438;e.aacute=225;e.aadeva=2310;e.aagujarati=2694;e.aagurmukhi=2566;e.aamatragurmukhi=2622;e.aarusquare=13059;e.aavowelsignbengali=2494;e.aavowelsigndeva=2366;e.aavowelsigngujarati=2750;e.abbreviationmarkarmenian=1375;e.abbreviationsigndeva=2416;e.abengali=2437;e.abopomofo=12570;e.abreve=259;e.abreveacute=7855;e.abrevecyrillic=1233;e.abrevedotbelow=7863;e.abrevegrave=7857;e.abrevehookabove=7859;e.abrevetilde=7861;e.acaron=462;e.acircle=9424;e.acircumflex=226;e.acircumflexacute=7845;e.acircumflexdotbelow=7853;e.acircumflexgrave=7847;e.acircumflexhookabove=7849;e.acircumflextilde=7851;e.acute=180;e.acutebelowcmb=791;e.acutecmb=769;e.acutecomb=769;e.acutedeva=2388;e.acutelowmod=719;e.acutetonecmb=833;e.acyrillic=1072;e.adblgrave=513;e.addakgurmukhi=2673;e.adeva=2309;e.adieresis=228;e.adieresiscyrillic=1235;e.adieresismacron=479;e.adotbelow=7841;e.adotmacron=481;e.ae=230;e.aeacute=509;e.aekorean=12624;e.aemacron=483;e.afii00208=8213;e.afii08941=8356;e.afii10017=1040;e.afii10018=1041;e.afii10019=1042;e.afii10020=1043;e.afii10021=1044;e.afii10022=1045;e.afii10023=1025;e.afii10024=1046;e.afii10025=1047;e.afii10026=1048;e.afii10027=1049;e.afii10028=1050;e.afii10029=1051;e.afii10030=1052;e.afii10031=1053;e.afii10032=1054;e.afii10033=1055;e.afii10034=1056;e.afii10035=1057;e.afii10036=1058;e.afii10037=1059;e.afii10038=1060;e.afii10039=1061;e.afii10040=1062;e.afii10041=1063;e.afii10042=1064;e.afii10043=1065;e.afii10044=1066;e.afii10045=1067;e.afii10046=1068;e.afii10047=1069;e.afii10048=1070;e.afii10049=1071;e.afii10050=1168;e.afii10051=1026;e.afii10052=1027;e.afii10053=1028;e.afii10054=1029;e.afii10055=1030;e.afii10056=1031;e.afii10057=1032;e.afii10058=1033;e.afii10059=1034;e.afii10060=1035;e.afii10061=1036;e.afii10062=1038;e.afii10063=63172;e.afii10064=63173;e.afii10065=1072;e.afii10066=1073;e.afii10067=1074;e.afii10068=1075;e.afii10069=1076;e.afii10070=1077;e.afii10071=1105;e.afii10072=1078;e.afii10073=1079;e.afii10074=1080;e.afii10075=1081;e.afii10076=1082;e.afii10077=1083;e.afii10078=1084;e.afii10079=1085;e.afii10080=1086;e.afii10081=1087;e.afii10082=1088;e.afii10083=1089;e.afii10084=1090;e.afii10085=1091;e.afii10086=1092;e.afii10087=1093;e.afii10088=1094;e.afii10089=1095;e.afii10090=1096;e.afii10091=1097;e.afii10092=1098;e.afii10093=1099;e.afii10094=1100;e.afii10095=1101;e.afii10096=1102;e.afii10097=1103;e.afii10098=1169;e.afii10099=1106;e.afii10100=1107;e.afii10101=1108;e.afii10102=1109;e.afii10103=1110;e.afii10104=1111;e.afii10105=1112;e.afii10106=1113;e.afii10107=1114;e.afii10108=1115;e.afii10109=1116;e.afii10110=1118;e.afii10145=1039;e.afii10146=1122;e.afii10147=1138;e.afii10148=1140;e.afii10192=63174;e.afii10193=1119;e.afii10194=1123;e.afii10195=1139;e.afii10196=1141;e.afii10831=63175;e.afii10832=63176;e.afii10846=1241;e.afii299=8206;e.afii300=8207;e.afii301=8205;e.afii57381=1642;e.afii57388=1548;e.afii57392=1632;e.afii57393=1633;e.afii57394=1634;e.afii57395=1635;e.afii57396=1636;e.afii57397=1637;e.afii57398=1638;e.afii57399=1639;e.afii57400=1640;e.afii57401=1641;e.afii57403=1563;e.afii57407=1567;e.afii57409=1569;e.afii57410=1570;e.afii57411=1571;e.afii57412=1572;e.afii57413=1573;e.afii57414=1574;e.afii57415=1575;e.afii57416=1576;e.afii57417=1577;e.afii57418=1578;e.afii57419=1579;e.afii57420=1580;e.afii57421=1581;e.afii57422=1582;e.afii57423=1583;e.afii57424=1584;e.afii57425=1585;e.afii57426=1586;e.afii57427=1587;e.afii57428=1588;e.afii57429=1589;e.afii57430=1590;e.afii57431=1591;e.afii57432=1592;e.afii57433=1593;e.afii57434=1594;e.afii57440=1600;e.afii57441=1601;e.afii57442=1602;e.afii57443=1603;e.afii57444=1604;e.afii57445=1605;e.afii57446=1606;e.afii57448=1608;e.afii57449=1609;e.afii57450=1610;e.afii57451=1611;e.afii57452=1612;e.afii57453=1613;e.afii57454=1614;e.afii57455=1615;e.afii57456=1616;e.afii57457=1617;e.afii57458=1618;e.afii57470=1607;e.afii57505=1700;e.afii57506=1662;e.afii57507=1670;e.afii57508=1688;e.afii57509=1711;e.afii57511=1657;e.afii57512=1672;e.afii57513=1681;e.afii57514=1722;e.afii57519=1746;e.afii57534=1749;e.afii57636=8362;e.afii57645=1470;e.afii57658=1475;e.afii57664=1488;e.afii57665=1489;e.afii57666=1490;e.afii57667=1491;e.afii57668=1492;e.afii57669=1493;e.afii57670=1494;e.afii57671=1495;e.afii57672=1496;e.afii57673=1497;e.afii57674=1498;e.afii57675=1499;e.afii57676=1500;e.afii57677=1501;e.afii57678=1502;e.afii57679=1503;e.afii57680=1504;e.afii57681=1505;e.afii57682=1506;e.afii57683=1507;e.afii57684=1508;e.afii57685=1509;e.afii57686=1510;e.afii57687=1511;e.afii57688=1512;e.afii57689=1513;e.afii57690=1514;e.afii57694=64298;e.afii57695=64299;e.afii57700=64331;e.afii57705=64287;e.afii57716=1520;e.afii57717=1521;e.afii57718=1522;e.afii57723=64309;e.afii57793=1460;e.afii57794=1461;e.afii57795=1462;e.afii57796=1467;e.afii57797=1464;e.afii57798=1463;e.afii57799=1456;e.afii57800=1458;e.afii57801=1457;e.afii57802=1459;e.afii57803=1474;e.afii57804=1473;e.afii57806=1465;e.afii57807=1468;e.afii57839=1469;e.afii57841=1471;e.afii57842=1472;e.afii57929=700;e.afii61248=8453;e.afii61289=8467;e.afii61352=8470;e.afii61573=8236;e.afii61574=8237;e.afii61575=8238;e.afii61664=8204;e.afii63167=1645;e.afii64937=701;e.agrave=224;e.agujarati=2693;e.agurmukhi=2565;e.ahiragana=12354;e.ahookabove=7843;e.aibengali=2448;e.aibopomofo=12574;e.aideva=2320;e.aiecyrillic=1237;e.aigujarati=2704;e.aigurmukhi=2576;e.aimatragurmukhi=2632;e.ainarabic=1593;e.ainfinalarabic=65226;e.aininitialarabic=65227;e.ainmedialarabic=65228;e.ainvertedbreve=515;e.aivowelsignbengali=2504;e.aivowelsigndeva=2376;e.aivowelsigngujarati=2760;e.akatakana=12450;e.akatakanahalfwidth=65393;e.akorean=12623;e.alef=1488;e.alefarabic=1575;e.alefdageshhebrew=64304;e.aleffinalarabic=65166;e.alefhamzaabovearabic=1571;e.alefhamzaabovefinalarabic=65156;e.alefhamzabelowarabic=1573;e.alefhamzabelowfinalarabic=65160;e.alefhebrew=1488;e.aleflamedhebrew=64335;e.alefmaddaabovearabic=1570;e.alefmaddaabovefinalarabic=65154;e.alefmaksuraarabic=1609;e.alefmaksurafinalarabic=65264;e.alefmaksurainitialarabic=65267;e.alefmaksuramedialarabic=65268;e.alefpatahhebrew=64302;e.alefqamatshebrew=64303;e.aleph=8501;e.allequal=8780;e.alpha=945;e.alphatonos=940;e.amacron=257;e.amonospace=65345;e.ampersand=38;e.ampersandmonospace=65286;e.ampersandsmall=63270;e.amsquare=13250;e.anbopomofo=12578;e.angbopomofo=12580;e.angbracketleft=12296;e.angbracketright=12297;e.angkhankhuthai=3674;e.angle=8736;e.anglebracketleft=12296;e.anglebracketleftvertical=65087;e.anglebracketright=12297;e.anglebracketrightvertical=65088;e.angleleft=9001;e.angleright=9002;e.angstrom=8491;e.anoteleia=903;e.anudattadeva=2386;e.anusvarabengali=2434;e.anusvaradeva=2306;e.anusvaragujarati=2690;e.aogonek=261;e.apaatosquare=13056;e.aparen=9372;e.apostrophearmenian=1370;e.apostrophemod=700;e.apple=63743;e.approaches=8784;e.approxequal=8776;e.approxequalorimage=8786;e.approximatelyequal=8773;e.araeaekorean=12686;e.araeakorean=12685;e.arc=8978;e.arighthalfring=7834;e.aring=229;e.aringacute=507;e.aringbelow=7681;e.arrowboth=8596;e.arrowdashdown=8675;e.arrowdashleft=8672;e.arrowdashright=8674;e.arrowdashup=8673;e.arrowdblboth=8660;e.arrowdbldown=8659;e.arrowdblleft=8656;e.arrowdblright=8658;e.arrowdblup=8657;e.arrowdown=8595;e.arrowdownleft=8601;e.arrowdownright=8600;e.arrowdownwhite=8681;e.arrowheaddownmod=709;e.arrowheadleftmod=706;e.arrowheadrightmod=707;e.arrowheadupmod=708;e.arrowhorizex=63719;e.arrowleft=8592;e.arrowleftdbl=8656;e.arrowleftdblstroke=8653;e.arrowleftoverright=8646;e.arrowleftwhite=8678;e.arrowright=8594;e.arrowrightdblstroke=8655;e.arrowrightheavy=10142;e.arrowrightoverleft=8644;e.arrowrightwhite=8680;e.arrowtableft=8676;e.arrowtabright=8677;e.arrowup=8593;e.arrowupdn=8597;e.arrowupdnbse=8616;e.arrowupdownbase=8616;e.arrowupleft=8598;e.arrowupleftofdown=8645;e.arrowupright=8599;e.arrowupwhite=8679;e.arrowvertex=63718;e.asciicircum=94;e.asciicircummonospace=65342;e.asciitilde=126;e.asciitildemonospace=65374;e.ascript=593;e.ascriptturned=594;e.asmallhiragana=12353;e.asmallkatakana=12449;e.asmallkatakanahalfwidth=65383;e.asterisk=42;e.asteriskaltonearabic=1645;e.asteriskarabic=1645;e.asteriskmath=8727;e.asteriskmonospace=65290;e.asterisksmall=65121;e.asterism=8258;e.asuperior=63209;e.asymptoticallyequal=8771;e.at=64;e.atilde=227;e.atmonospace=65312;e.atsmall=65131;e.aturned=592;e.aubengali=2452;e.aubopomofo=12576;e.audeva=2324;e.augujarati=2708;e.augurmukhi=2580;e.aulengthmarkbengali=2519;e.aumatragurmukhi=2636;e.auvowelsignbengali=2508;e.auvowelsigndeva=2380;e.auvowelsigngujarati=2764;e.avagrahadeva=2365;e.aybarmenian=1377;e.ayin=1506;e.ayinaltonehebrew=64288;e.ayinhebrew=1506;e.b=98;e.babengali=2476;e.backslash=92;e.backslashmonospace=65340;e.badeva=2348;e.bagujarati=2732;e.bagurmukhi=2604;e.bahiragana=12400;e.bahtthai=3647;e.bakatakana=12496;e.bar=124;e.barmonospace=65372;e.bbopomofo=12549;e.bcircle=9425;e.bdotaccent=7683;e.bdotbelow=7685;e.beamedsixteenthnotes=9836;e.because=8757;e.becyrillic=1073;e.beharabic=1576;e.behfinalarabic=65168;e.behinitialarabic=65169;e.behiragana=12409;e.behmedialarabic=65170;e.behmeeminitialarabic=64671;e.behmeemisolatedarabic=64520;e.behnoonfinalarabic=64621;e.bekatakana=12505;e.benarmenian=1378;e.bet=1489;e.beta=946;e.betasymbolgreek=976;e.betdagesh=64305;e.betdageshhebrew=64305;e.bethebrew=1489;e.betrafehebrew=64332;e.bhabengali=2477;e.bhadeva=2349;e.bhagujarati=2733;e.bhagurmukhi=2605;e.bhook=595;e.bihiragana=12403;e.bikatakana=12499;e.bilabialclick=664;e.bindigurmukhi=2562;e.birusquare=13105;e.blackcircle=9679;e.blackdiamond=9670;e.blackdownpointingtriangle=9660;e.blackleftpointingpointer=9668;e.blackleftpointingtriangle=9664;e.blacklenticularbracketleft=12304;e.blacklenticularbracketleftvertical=65083;e.blacklenticularbracketright=12305;e.blacklenticularbracketrightvertical=65084;e.blacklowerlefttriangle=9699;e.blacklowerrighttriangle=9698;e.blackrectangle=9644;e.blackrightpointingpointer=9658;e.blackrightpointingtriangle=9654;e.blacksmallsquare=9642;e.blacksmilingface=9787;e.blacksquare=9632;e.blackstar=9733;e.blackupperlefttriangle=9700;e.blackupperrighttriangle=9701;e.blackuppointingsmalltriangle=9652;e.blackuppointingtriangle=9650;e.blank=9251;e.blinebelow=7687;e.block=9608;e.bmonospace=65346;e.bobaimaithai=3610;e.bohiragana=12412;e.bokatakana=12508;e.bparen=9373;e.bqsquare=13251;e.braceex=63732;e.braceleft=123;e.braceleftbt=63731;e.braceleftmid=63730;e.braceleftmonospace=65371;e.braceleftsmall=65115;e.bracelefttp=63729;e.braceleftvertical=65079;e.braceright=125;e.bracerightbt=63742;e.bracerightmid=63741;e.bracerightmonospace=65373;e.bracerightsmall=65116;e.bracerighttp=63740;e.bracerightvertical=65080;e.bracketleft=91;e.bracketleftbt=63728;e.bracketleftex=63727;e.bracketleftmonospace=65339;e.bracketlefttp=63726;e.bracketright=93;e.bracketrightbt=63739;e.bracketrightex=63738;e.bracketrightmonospace=65341;e.bracketrighttp=63737;e.breve=728;e.brevebelowcmb=814;e.brevecmb=774;e.breveinvertedbelowcmb=815;e.breveinvertedcmb=785;e.breveinverteddoublecmb=865;e.bridgebelowcmb=810;e.bridgeinvertedbelowcmb=826;e.brokenbar=166;e.bstroke=384;e.bsuperior=63210;e.btopbar=387;e.buhiragana=12406;e.bukatakana=12502;e.bullet=8226;e.bulletinverse=9688;e.bulletoperator=8729;e.bullseye=9678;e.c=99;e.caarmenian=1390;e.cabengali=2458;e.cacute=263;e.cadeva=2330;e.cagujarati=2714;e.cagurmukhi=2586;e.calsquare=13192;e.candrabindubengali=2433;e.candrabinducmb=784;e.candrabindudeva=2305;e.candrabindugujarati=2689;e.capslock=8682;e.careof=8453;e.caron=711;e.caronbelowcmb=812;e.caroncmb=780;e.carriagereturn=8629;e.cbopomofo=12568;e.ccaron=269;e.ccedilla=231;e.ccedillaacute=7689;e.ccircle=9426;e.ccircumflex=265;e.ccurl=597;e.cdot=267;e.cdotaccent=267;e.cdsquare=13253;e.cedilla=184;e.cedillacmb=807;e.cent=162;e.centigrade=8451;e.centinferior=63199;e.centmonospace=65504;e.centoldstyle=63394;e.centsuperior=63200;e.chaarmenian=1401;e.chabengali=2459;e.chadeva=2331;e.chagujarati=2715;e.chagurmukhi=2587;e.chbopomofo=12564;e.cheabkhasiancyrillic=1213;e.checkmark=10003;e.checyrillic=1095;e.chedescenderabkhasiancyrillic=1215;e.chedescendercyrillic=1207;e.chedieresiscyrillic=1269;e.cheharmenian=1395;e.chekhakassiancyrillic=1228;e.cheverticalstrokecyrillic=1209;e.chi=967;e.chieuchacirclekorean=12919;e.chieuchaparenkorean=12823;e.chieuchcirclekorean=12905;e.chieuchkorean=12618;e.chieuchparenkorean=12809;e.chochangthai=3594;e.chochanthai=3592;e.chochingthai=3593;e.chochoethai=3596;e.chook=392;e.cieucacirclekorean=12918;e.cieucaparenkorean=12822;e.cieuccirclekorean=12904;e.cieuckorean=12616;e.cieucparenkorean=12808;e.cieucuparenkorean=12828;e.circle=9675;e.circlecopyrt=169;e.circlemultiply=8855;e.circleot=8857;e.circleplus=8853;e.circlepostalmark=12342;e.circlewithlefthalfblack=9680;e.circlewithrighthalfblack=9681;e.circumflex=710;e.circumflexbelowcmb=813;e.circumflexcmb=770;e.clear=8999;e.clickalveolar=450;e.clickdental=448;e.clicklateral=449;e.clickretroflex=451;e.club=9827;e.clubsuitblack=9827;e.clubsuitwhite=9831;e.cmcubedsquare=13220;e.cmonospace=65347;e.cmsquaredsquare=13216;e.coarmenian=1409;e.colon=58;e.colonmonetary=8353;e.colonmonospace=65306;e.colonsign=8353;e.colonsmall=65109;e.colontriangularhalfmod=721;e.colontriangularmod=720;e.comma=44;e.commaabovecmb=787;e.commaaboverightcmb=789;e.commaaccent=63171;e.commaarabic=1548;e.commaarmenian=1373;e.commainferior=63201;e.commamonospace=65292;e.commareversedabovecmb=788;e.commareversedmod=701;e.commasmall=65104;e.commasuperior=63202;e.commaturnedabovecmb=786;e.commaturnedmod=699;e.compass=9788;e.congruent=8773;e.contourintegral=8750;e.control=8963;e.controlACK=6;e.controlBEL=7;e.controlBS=8;e.controlCAN=24;e.controlCR=13;e.controlDC1=17;e.controlDC2=18;e.controlDC3=19;e.controlDC4=20;e.controlDEL=127;e.controlDLE=16;e.controlEM=25;e.controlENQ=5;e.controlEOT=4;e.controlESC=27;e.controlETB=23;e.controlETX=3;e.controlFF=12;e.controlFS=28;e.controlGS=29;e.controlHT=9;e.controlLF=10;e.controlNAK=21;e.controlNULL=0;e.controlRS=30;e.controlSI=15;e.controlSO=14;e.controlSOT=2;e.controlSTX=1;e.controlSUB=26;e.controlSYN=22;e.controlUS=31;e.controlVT=11;e.copyright=169;e.copyrightsans=63721;e.copyrightserif=63193;e.cornerbracketleft=12300;e.cornerbracketlefthalfwidth=65378;e.cornerbracketleftvertical=65089;e.cornerbracketright=12301;e.cornerbracketrighthalfwidth=65379;e.cornerbracketrightvertical=65090;e.corporationsquare=13183;e.cosquare=13255;e.coverkgsquare=13254;e.cparen=9374;e.cruzeiro=8354;e.cstretched=663;e.curlyand=8911;e.curlyor=8910;e.currency=164;e.cyrBreve=63185;e.cyrFlex=63186;e.cyrbreve=63188;e.cyrflex=63189;e.d=100;e.daarmenian=1380;e.dabengali=2470;e.dadarabic=1590;e.dadeva=2342;e.dadfinalarabic=65214;e.dadinitialarabic=65215;e.dadmedialarabic=65216;e.dagesh=1468;e.dageshhebrew=1468;e.dagger=8224;e.daggerdbl=8225;e.dagujarati=2726;e.dagurmukhi=2598;e.dahiragana=12384;e.dakatakana=12480;e.dalarabic=1583;e.dalet=1491;e.daletdagesh=64307;e.daletdageshhebrew=64307;e.dalethebrew=1491;e.dalfinalarabic=65194;e.dammaarabic=1615;e.dammalowarabic=1615;e.dammatanaltonearabic=1612;e.dammatanarabic=1612;e.danda=2404;e.dargahebrew=1447;e.dargalefthebrew=1447;e.dasiapneumatacyrilliccmb=1157;e.dblGrave=63187;e.dblanglebracketleft=12298;e.dblanglebracketleftvertical=65085;e.dblanglebracketright=12299;e.dblanglebracketrightvertical=65086;e.dblarchinvertedbelowcmb=811;e.dblarrowleft=8660;e.dblarrowright=8658;e.dbldanda=2405;e.dblgrave=63190;e.dblgravecmb=783;e.dblintegral=8748;e.dbllowline=8215;e.dbllowlinecmb=819;e.dbloverlinecmb=831;e.dblprimemod=698;e.dblverticalbar=8214;e.dblverticallineabovecmb=782;e.dbopomofo=12553;e.dbsquare=13256;e.dcaron=271;e.dcedilla=7697;e.dcircle=9427;e.dcircumflexbelow=7699;e.dcroat=273;e.ddabengali=2465;e.ddadeva=2337;e.ddagujarati=2721;e.ddagurmukhi=2593;e.ddalarabic=1672;e.ddalfinalarabic=64393;e.dddhadeva=2396;e.ddhabengali=2466;e.ddhadeva=2338;e.ddhagujarati=2722;e.ddhagurmukhi=2594;e.ddotaccent=7691;e.ddotbelow=7693;e.decimalseparatorarabic=1643;e.decimalseparatorpersian=1643;e.decyrillic=1076;e.degree=176;e.dehihebrew=1453;e.dehiragana=12391;e.deicoptic=1007;e.dekatakana=12487;e.deleteleft=9003;e.deleteright=8998;e.delta=948;e.deltaturned=397;e.denominatorminusonenumeratorbengali=2552;e.dezh=676;e.dhabengali=2471;e.dhadeva=2343;e.dhagujarati=2727;e.dhagurmukhi=2599;e.dhook=599;e.dialytikatonos=901;e.dialytikatonoscmb=836;e.diamond=9830;e.diamondsuitwhite=9826;e.dieresis=168;e.dieresisacute=63191;e.dieresisbelowcmb=804;e.dieresiscmb=776;e.dieresisgrave=63192;e.dieresistonos=901;e.dihiragana=12386;e.dikatakana=12482;e.dittomark=12291;e.divide=247;e.divides=8739;e.divisionslash=8725;e.djecyrillic=1106;e.dkshade=9619;e.dlinebelow=7695;e.dlsquare=13207;e.dmacron=273;e.dmonospace=65348;e.dnblock=9604;e.dochadathai=3598;e.dodekthai=3604;e.dohiragana=12393;e.dokatakana=12489;e.dollar=36;e.dollarinferior=63203;e.dollarmonospace=65284;e.dollaroldstyle=63268;e.dollarsmall=65129;e.dollarsuperior=63204;e.dong=8363;e.dorusquare=13094;e.dotaccent=729;e.dotaccentcmb=775;e.dotbelowcmb=803;e.dotbelowcomb=803;e.dotkatakana=12539;e.dotlessi=305;e.dotlessj=63166;e.dotlessjstrokehook=644;e.dotmath=8901;e.dottedcircle=9676;e.doubleyodpatah=64287;e.doubleyodpatahhebrew=64287;e.downtackbelowcmb=798;e.downtackmod=725;e.dparen=9375;e.dsuperior=63211;e.dtail=598;e.dtopbar=396;e.duhiragana=12389;e.dukatakana=12485;e.dz=499;e.dzaltone=675;e.dzcaron=454;e.dzcurl=677;e.dzeabkhasiancyrillic=1249;e.dzecyrillic=1109;e.dzhecyrillic=1119;e.e=101;e.eacute=233;e.earth=9793;e.ebengali=2447;e.ebopomofo=12572;e.ebreve=277;e.ecandradeva=2317;e.ecandragujarati=2701;e.ecandravowelsigndeva=2373;e.ecandravowelsigngujarati=2757;e.ecaron=283;e.ecedillabreve=7709;e.echarmenian=1381;e.echyiwnarmenian=1415;e.ecircle=9428;e.ecircumflex=234;e.ecircumflexacute=7871;e.ecircumflexbelow=7705;e.ecircumflexdotbelow=7879;e.ecircumflexgrave=7873;e.ecircumflexhookabove=7875;e.ecircumflextilde=7877;e.ecyrillic=1108;e.edblgrave=517;e.edeva=2319;e.edieresis=235;e.edot=279;e.edotaccent=279;e.edotbelow=7865;e.eegurmukhi=2575;e.eematragurmukhi=2631;e.efcyrillic=1092;e.egrave=232;e.egujarati=2703;e.eharmenian=1383;e.ehbopomofo=12573;e.ehiragana=12360;e.ehookabove=7867;e.eibopomofo=12575;e.eight=56;e.eightarabic=1640;e.eightbengali=2542;e.eightcircle=9319;e.eightcircleinversesansserif=10129;e.eightdeva=2414;e.eighteencircle=9329;e.eighteenparen=9349;e.eighteenperiod=9369;e.eightgujarati=2798;e.eightgurmukhi=2670;e.eighthackarabic=1640;e.eighthangzhou=12328;e.eighthnotebeamed=9835;e.eightideographicparen=12839;e.eightinferior=8328;e.eightmonospace=65304;e.eightoldstyle=63288;e.eightparen=9339;e.eightperiod=9359;e.eightpersian=1784;e.eightroman=8567;e.eightsuperior=8312;e.eightthai=3672;e.einvertedbreve=519;e.eiotifiedcyrillic=1125;e.ekatakana=12456;e.ekatakanahalfwidth=65396;e.ekonkargurmukhi=2676;e.ekorean=12628;e.elcyrillic=1083;e.element=8712;e.elevencircle=9322;e.elevenparen=9342;e.elevenperiod=9362;e.elevenroman=8570;e.ellipsis=8230;e.ellipsisvertical=8942;e.emacron=275;e.emacronacute=7703;e.emacrongrave=7701;e.emcyrillic=1084;e.emdash=8212;e.emdashvertical=65073;e.emonospace=65349;e.emphasismarkarmenian=1371;e.emptyset=8709;e.enbopomofo=12579;e.encyrillic=1085;e.endash=8211;e.endashvertical=65074;e.endescendercyrillic=1187;e.eng=331;e.engbopomofo=12581;e.enghecyrillic=1189;e.enhookcyrillic=1224;e.enspace=8194;e.eogonek=281;e.eokorean=12627;e.eopen=603;e.eopenclosed=666;e.eopenreversed=604;e.eopenreversedclosed=606;e.eopenreversedhook=605;e.eparen=9376;e.epsilon=949;e.epsilontonos=941;e.equal=61;e.equalmonospace=65309;e.equalsmall=65126;e.equalsuperior=8316;e.equivalence=8801;e.erbopomofo=12582;e.ercyrillic=1088;e.ereversed=600;e.ereversedcyrillic=1101;e.escyrillic=1089;e.esdescendercyrillic=1195;e.esh=643;e.eshcurl=646;e.eshortdeva=2318;e.eshortvowelsigndeva=2374;e.eshreversedloop=426;e.eshsquatreversed=645;e.esmallhiragana=12359;e.esmallkatakana=12455;e.esmallkatakanahalfwidth=65386;e.estimated=8494;e.esuperior=63212;e.eta=951;e.etarmenian=1384;e.etatonos=942;e.eth=240;e.etilde=7869;e.etildebelow=7707;e.etnahtafoukhhebrew=1425;e.etnahtafoukhlefthebrew=1425;e.etnahtahebrew=1425;e.etnahtalefthebrew=1425;e.eturned=477;e.eukorean=12641;e.euro=8364;e.evowelsignbengali=2503;e.evowelsigndeva=2375;e.evowelsigngujarati=2759;e.exclam=33;e.exclamarmenian=1372;e.exclamdbl=8252;e.exclamdown=161;e.exclamdownsmall=63393;e.exclammonospace=65281;e.exclamsmall=63265;e.existential=8707;e.ezh=658;e.ezhcaron=495;e.ezhcurl=659;e.ezhreversed=441;e.ezhtail=442;e.f=102;e.fadeva=2398;e.fagurmukhi=2654;e.fahrenheit=8457;e.fathaarabic=1614;e.fathalowarabic=1614;e.fathatanarabic=1611;e.fbopomofo=12552;e.fcircle=9429;e.fdotaccent=7711;e.feharabic=1601;e.feharmenian=1414;e.fehfinalarabic=65234;e.fehinitialarabic=65235;e.fehmedialarabic=65236;e.feicoptic=997;e.female=9792;e.ff=64256;e.f_f=64256;e.ffi=64259;e.f_f_i=64259;e.ffl=64260;e.f_f_l=64260;e.fi=64257;e.f_i=64257;e.fifteencircle=9326;e.fifteenparen=9346;e.fifteenperiod=9366;e.figuredash=8210;e.filledbox=9632;e.filledrect=9644;e.finalkaf=1498;e.finalkafdagesh=64314;e.finalkafdageshhebrew=64314;e.finalkafhebrew=1498;e.finalmem=1501;e.finalmemhebrew=1501;e.finalnun=1503;e.finalnunhebrew=1503;e.finalpe=1507;e.finalpehebrew=1507;e.finaltsadi=1509;e.finaltsadihebrew=1509;e.firsttonechinese=713;e.fisheye=9673;e.fitacyrillic=1139;e.five=53;e.fivearabic=1637;e.fivebengali=2539;e.fivecircle=9316;e.fivecircleinversesansserif=10126;e.fivedeva=2411;e.fiveeighths=8541;e.fivegujarati=2795;e.fivegurmukhi=2667;e.fivehackarabic=1637;e.fivehangzhou=12325;e.fiveideographicparen=12836;e.fiveinferior=8325;e.fivemonospace=65301;e.fiveoldstyle=63285;e.fiveparen=9336;e.fiveperiod=9356;e.fivepersian=1781;e.fiveroman=8564;e.fivesuperior=8309;e.fivethai=3669;e.fl=64258;e.f_l=64258;e.florin=402;e.fmonospace=65350;e.fmsquare=13209;e.fofanthai=3615;e.fofathai=3613;e.fongmanthai=3663;e.forall=8704;e.four=52;e.fourarabic=1636;e.fourbengali=2538;e.fourcircle=9315;e.fourcircleinversesansserif=10125;e.fourdeva=2410;e.fourgujarati=2794;e.fourgurmukhi=2666;e.fourhackarabic=1636;e.fourhangzhou=12324;e.fourideographicparen=12835;e.fourinferior=8324;e.fourmonospace=65300;e.fournumeratorbengali=2551;e.fouroldstyle=63284;e.fourparen=9335;e.fourperiod=9355;e.fourpersian=1780;e.fourroman=8563;e.foursuperior=8308;e.fourteencircle=9325;e.fourteenparen=9345;e.fourteenperiod=9365;e.fourthai=3668;e.fourthtonechinese=715;e.fparen=9377;e.fraction=8260;e.franc=8355;e.g=103;e.gabengali=2455;e.gacute=501;e.gadeva=2327;e.gafarabic=1711;e.gaffinalarabic=64403;e.gafinitialarabic=64404;e.gafmedialarabic=64405;e.gagujarati=2711;e.gagurmukhi=2583;e.gahiragana=12364;e.gakatakana=12460;e.gamma=947;e.gammalatinsmall=611;e.gammasuperior=736;e.gangiacoptic=1003;e.gbopomofo=12557;e.gbreve=287;e.gcaron=487;e.gcedilla=291;e.gcircle=9430;e.gcircumflex=285;e.gcommaaccent=291;e.gdot=289;e.gdotaccent=289;e.gecyrillic=1075;e.gehiragana=12370;e.gekatakana=12466;e.geometricallyequal=8785;e.gereshaccenthebrew=1436;e.gereshhebrew=1523;e.gereshmuqdamhebrew=1437;e.germandbls=223;e.gershayimaccenthebrew=1438;e.gershayimhebrew=1524;e.getamark=12307;e.ghabengali=2456;e.ghadarmenian=1394;e.ghadeva=2328;e.ghagujarati=2712;e.ghagurmukhi=2584;e.ghainarabic=1594;e.ghainfinalarabic=65230;e.ghaininitialarabic=65231;e.ghainmedialarabic=65232;e.ghemiddlehookcyrillic=1173;e.ghestrokecyrillic=1171;e.gheupturncyrillic=1169;e.ghhadeva=2394;e.ghhagurmukhi=2650;e.ghook=608;e.ghzsquare=13203;e.gihiragana=12366;e.gikatakana=12462;e.gimarmenian=1379;e.gimel=1490;e.gimeldagesh=64306;e.gimeldageshhebrew=64306;e.gimelhebrew=1490;e.gjecyrillic=1107;e.glottalinvertedstroke=446;e.glottalstop=660;e.glottalstopinverted=662;e.glottalstopmod=704;e.glottalstopreversed=661;e.glottalstopreversedmod=705;e.glottalstopreversedsuperior=740;e.glottalstopstroke=673;e.glottalstopstrokereversed=674;e.gmacron=7713;e.gmonospace=65351;e.gohiragana=12372;e.gokatakana=12468;e.gparen=9378;e.gpasquare=13228;e.gradient=8711;e.grave=96;e.gravebelowcmb=790;e.gravecmb=768;e.gravecomb=768;e.gravedeva=2387;e.gravelowmod=718;e.gravemonospace=65344;e.gravetonecmb=832;e.greater=62;e.greaterequal=8805;e.greaterequalorless=8923;e.greatermonospace=65310;e.greaterorequivalent=8819;e.greaterorless=8823;e.greateroverequal=8807;e.greatersmall=65125;e.gscript=609;e.gstroke=485;e.guhiragana=12368;e.guillemotleft=171;e.guillemotright=187;e.guilsinglleft=8249;e.guilsinglright=8250;e.gukatakana=12464;e.guramusquare=13080;e.gysquare=13257;e.h=104;e.haabkhasiancyrillic=1193;e.haaltonearabic=1729;e.habengali=2489;e.hadescendercyrillic=1203;e.hadeva=2361;e.hagujarati=2745;e.hagurmukhi=2617;e.haharabic=1581;e.hahfinalarabic=65186;e.hahinitialarabic=65187;e.hahiragana=12399;e.hahmedialarabic=65188;e.haitusquare=13098;e.hakatakana=12495;e.hakatakanahalfwidth=65418;e.halantgurmukhi=2637;e.hamzaarabic=1569;e.hamzalowarabic=1569;e.hangulfiller=12644;e.hardsigncyrillic=1098;e.harpoonleftbarbup=8636;e.harpoonrightbarbup=8640;e.hasquare=13258;e.hatafpatah=1458;e.hatafpatah16=1458;e.hatafpatah23=1458;e.hatafpatah2f=1458;e.hatafpatahhebrew=1458;e.hatafpatahnarrowhebrew=1458;e.hatafpatahquarterhebrew=1458;e.hatafpatahwidehebrew=1458;e.hatafqamats=1459;e.hatafqamats1b=1459;e.hatafqamats28=1459;e.hatafqamats34=1459;e.hatafqamatshebrew=1459;e.hatafqamatsnarrowhebrew=1459;e.hatafqamatsquarterhebrew=1459;e.hatafqamatswidehebrew=1459;e.hatafsegol=1457;e.hatafsegol17=1457;e.hatafsegol24=1457;e.hatafsegol30=1457;e.hatafsegolhebrew=1457;e.hatafsegolnarrowhebrew=1457;e.hatafsegolquarterhebrew=1457;e.hatafsegolwidehebrew=1457;e.hbar=295;e.hbopomofo=12559;e.hbrevebelow=7723;e.hcedilla=7721;e.hcircle=9431;e.hcircumflex=293;e.hdieresis=7719;e.hdotaccent=7715;e.hdotbelow=7717;e.he=1492;e.heart=9829;e.heartsuitblack=9829;e.heartsuitwhite=9825;e.hedagesh=64308;e.hedageshhebrew=64308;e.hehaltonearabic=1729;e.heharabic=1607;e.hehebrew=1492;e.hehfinalaltonearabic=64423;e.hehfinalalttwoarabic=65258;e.hehfinalarabic=65258;e.hehhamzaabovefinalarabic=64421;e.hehhamzaaboveisolatedarabic=64420;e.hehinitialaltonearabic=64424;e.hehinitialarabic=65259;e.hehiragana=12408;e.hehmedialaltonearabic=64425;e.hehmedialarabic=65260;e.heiseierasquare=13179;e.hekatakana=12504;e.hekatakanahalfwidth=65421;e.hekutaarusquare=13110;e.henghook=615;e.herutusquare=13113;e.het=1495;e.hethebrew=1495;e.hhook=614;e.hhooksuperior=689;e.hieuhacirclekorean=12923;e.hieuhaparenkorean=12827;e.hieuhcirclekorean=12909;e.hieuhkorean=12622;e.hieuhparenkorean=12813;e.hihiragana=12402;e.hikatakana=12498;e.hikatakanahalfwidth=65419;e.hiriq=1460;e.hiriq14=1460;e.hiriq21=1460;e.hiriq2d=1460;e.hiriqhebrew=1460;e.hiriqnarrowhebrew=1460;e.hiriqquarterhebrew=1460;e.hiriqwidehebrew=1460;e.hlinebelow=7830;e.hmonospace=65352;e.hoarmenian=1392;e.hohipthai=3627;e.hohiragana=12411;e.hokatakana=12507;e.hokatakanahalfwidth=65422;e.holam=1465;e.holam19=1465;e.holam26=1465;e.holam32=1465;e.holamhebrew=1465;e.holamnarrowhebrew=1465;e.holamquarterhebrew=1465;e.holamwidehebrew=1465;e.honokhukthai=3630;e.hookabovecomb=777;e.hookcmb=777;e.hookpalatalizedbelowcmb=801;e.hookretroflexbelowcmb=802;e.hoonsquare=13122;e.horicoptic=1001;e.horizontalbar=8213;e.horncmb=795;e.hotsprings=9832;e.house=8962;e.hparen=9379;e.hsuperior=688;e.hturned=613;e.huhiragana=12405;e.huiitosquare=13107;e.hukatakana=12501;e.hukatakanahalfwidth=65420;e.hungarumlaut=733;e.hungarumlautcmb=779;e.hv=405;e.hyphen=45;e.hypheninferior=63205;e.hyphenmonospace=65293;e.hyphensmall=65123;e.hyphensuperior=63206;e.hyphentwo=8208;e.i=105;e.iacute=237;e.iacyrillic=1103;e.ibengali=2439;e.ibopomofo=12583;e.ibreve=301;e.icaron=464;e.icircle=9432;e.icircumflex=238;e.icyrillic=1110;e.idblgrave=521;e.ideographearthcircle=12943;e.ideographfirecircle=12939;e.ideographicallianceparen=12863;e.ideographiccallparen=12858;e.ideographiccentrecircle=12965;e.ideographicclose=12294;e.ideographiccomma=12289;e.ideographiccommaleft=65380;e.ideographiccongratulationparen=12855;e.ideographiccorrectcircle=12963;e.ideographicearthparen=12847;e.ideographicenterpriseparen=12861;e.ideographicexcellentcircle=12957;e.ideographicfestivalparen=12864;e.ideographicfinancialcircle=12950;e.ideographicfinancialparen=12854;e.ideographicfireparen=12843;e.ideographichaveparen=12850;e.ideographichighcircle=12964;e.ideographiciterationmark=12293;e.ideographiclaborcircle=12952;e.ideographiclaborparen=12856;e.ideographicleftcircle=12967;e.ideographiclowcircle=12966;e.ideographicmedicinecircle=12969;e.ideographicmetalparen=12846;e.ideographicmoonparen=12842;e.ideographicnameparen=12852;e.ideographicperiod=12290;e.ideographicprintcircle=12958;e.ideographicreachparen=12867;e.ideographicrepresentparen=12857;e.ideographicresourceparen=12862;e.ideographicrightcircle=12968;e.ideographicsecretcircle=12953;e.ideographicselfparen=12866;e.ideographicsocietyparen=12851;e.ideographicspace=12288;e.ideographicspecialparen=12853;e.ideographicstockparen=12849;e.ideographicstudyparen=12859;e.ideographicsunparen=12848;e.ideographicsuperviseparen=12860;e.ideographicwaterparen=12844;e.ideographicwoodparen=12845;e.ideographiczero=12295;e.ideographmetalcircle=12942;e.ideographmooncircle=12938;e.ideographnamecircle=12948;e.ideographsuncircle=12944;e.ideographwatercircle=12940;e.ideographwoodcircle=12941;e.ideva=2311;e.idieresis=239;e.idieresisacute=7727;e.idieresiscyrillic=1253;e.idotbelow=7883;e.iebrevecyrillic=1239;e.iecyrillic=1077;e.ieungacirclekorean=12917;e.ieungaparenkorean=12821;e.ieungcirclekorean=12903;e.ieungkorean=12615;e.ieungparenkorean=12807;e.igrave=236;e.igujarati=2695;e.igurmukhi=2567;e.ihiragana=12356;e.ihookabove=7881;e.iibengali=2440;e.iicyrillic=1080;e.iideva=2312;e.iigujarati=2696;e.iigurmukhi=2568;e.iimatragurmukhi=2624;e.iinvertedbreve=523;e.iishortcyrillic=1081;e.iivowelsignbengali=2496;e.iivowelsigndeva=2368;e.iivowelsigngujarati=2752;e.ij=307;e.ikatakana=12452;e.ikatakanahalfwidth=65394;e.ikorean=12643;e.ilde=732;e.iluyhebrew=1452;e.imacron=299;e.imacroncyrillic=1251;e.imageorapproximatelyequal=8787;e.imatragurmukhi=2623;e.imonospace=65353;e.increment=8710;e.infinity=8734;e.iniarmenian=1387;e.integral=8747;e.integralbottom=8993;e.integralbt=8993;e.integralex=63733;e.integraltop=8992;e.integraltp=8992;e.intersection=8745;e.intisquare=13061;e.invbullet=9688;e.invcircle=9689;e.invsmileface=9787;e.iocyrillic=1105;e.iogonek=303;e.iota=953;e.iotadieresis=970;e.iotadieresistonos=912;e.iotalatin=617;e.iotatonos=943;e.iparen=9380;e.irigurmukhi=2674;e.ismallhiragana=12355;e.ismallkatakana=12451;e.ismallkatakanahalfwidth=65384;e.issharbengali=2554;e.istroke=616;e.isuperior=63213;e.iterationhiragana=12445;e.iterationkatakana=12541;e.itilde=297;e.itildebelow=7725;e.iubopomofo=12585;e.iucyrillic=1102;e.ivowelsignbengali=2495;e.ivowelsigndeva=2367;e.ivowelsigngujarati=2751;e.izhitsacyrillic=1141;e.izhitsadblgravecyrillic=1143;e.j=106;e.jaarmenian=1393;e.jabengali=2460;e.jadeva=2332;e.jagujarati=2716;e.jagurmukhi=2588;e.jbopomofo=12560;e.jcaron=496;e.jcircle=9433;e.jcircumflex=309;e.jcrossedtail=669;e.jdotlessstroke=607;e.jecyrillic=1112;e.jeemarabic=1580;e.jeemfinalarabic=65182;e.jeeminitialarabic=65183;e.jeemmedialarabic=65184;e.jeharabic=1688;e.jehfinalarabic=64395;e.jhabengali=2461;e.jhadeva=2333;e.jhagujarati=2717;e.jhagurmukhi=2589;e.jheharmenian=1403;e.jis=12292;e.jmonospace=65354;e.jparen=9381;e.jsuperior=690;e.k=107;e.kabashkircyrillic=1185;e.kabengali=2453;e.kacute=7729;e.kacyrillic=1082;e.kadescendercyrillic=1179;e.kadeva=2325;e.kaf=1499;e.kafarabic=1603;e.kafdagesh=64315;e.kafdageshhebrew=64315;e.kaffinalarabic=65242;e.kafhebrew=1499;e.kafinitialarabic=65243;e.kafmedialarabic=65244;e.kafrafehebrew=64333;e.kagujarati=2709;e.kagurmukhi=2581;e.kahiragana=12363;e.kahookcyrillic=1220;e.kakatakana=12459;e.kakatakanahalfwidth=65398;e.kappa=954;e.kappasymbolgreek=1008;e.kapyeounmieumkorean=12657;e.kapyeounphieuphkorean=12676;e.kapyeounpieupkorean=12664;e.kapyeounssangpieupkorean=12665;e.karoriisquare=13069;e.kashidaautoarabic=1600;e.kashidaautonosidebearingarabic=1600;e.kasmallkatakana=12533;e.kasquare=13188;e.kasraarabic=1616;e.kasratanarabic=1613;e.kastrokecyrillic=1183;e.katahiraprolongmarkhalfwidth=65392;e.kaverticalstrokecyrillic=1181;e.kbopomofo=12558;e.kcalsquare=13193;e.kcaron=489;e.kcedilla=311;e.kcircle=9434;e.kcommaaccent=311;e.kdotbelow=7731;e.keharmenian=1412;e.kehiragana=12369;e.kekatakana=12465;e.kekatakanahalfwidth=65401;e.kenarmenian=1391;e.kesmallkatakana=12534;e.kgreenlandic=312;e.khabengali=2454;e.khacyrillic=1093;e.khadeva=2326;e.khagujarati=2710;e.khagurmukhi=2582;e.khaharabic=1582;e.khahfinalarabic=65190;e.khahinitialarabic=65191;e.khahmedialarabic=65192;e.kheicoptic=999;e.khhadeva=2393;e.khhagurmukhi=2649;e.khieukhacirclekorean=12920;e.khieukhaparenkorean=12824;e.khieukhcirclekorean=12906;e.khieukhkorean=12619;e.khieukhparenkorean=12810;e.khokhaithai=3586;e.khokhonthai=3589;e.khokhuatthai=3587;e.khokhwaithai=3588;e.khomutthai=3675;e.khook=409;e.khorakhangthai=3590;e.khzsquare=13201;e.kihiragana=12365;e.kikatakana=12461;e.kikatakanahalfwidth=65399;e.kiroguramusquare=13077;e.kiromeetorusquare=13078;e.kirosquare=13076;e.kiyeokacirclekorean=12910;e.kiyeokaparenkorean=12814;e.kiyeokcirclekorean=12896;e.kiyeokkorean=12593;e.kiyeokparenkorean=12800;e.kiyeoksioskorean=12595;e.kjecyrillic=1116;e.klinebelow=7733;e.klsquare=13208;e.kmcubedsquare=13222;e.kmonospace=65355;e.kmsquaredsquare=13218;e.kohiragana=12371;e.kohmsquare=13248;e.kokaithai=3585;e.kokatakana=12467;e.kokatakanahalfwidth=65402;e.kooposquare=13086;e.koppacyrillic=1153;e.koreanstandardsymbol=12927;e.koroniscmb=835;e.kparen=9382;e.kpasquare=13226;e.ksicyrillic=1135;e.ktsquare=13263;e.kturned=670;e.kuhiragana=12367;e.kukatakana=12463;e.kukatakanahalfwidth=65400;e.kvsquare=13240;e.kwsquare=13246;e.l=108;e.labengali=2482;e.lacute=314;e.ladeva=2354;e.lagujarati=2738;e.lagurmukhi=2610;e.lakkhangyaothai=3653;e.lamaleffinalarabic=65276;e.lamalefhamzaabovefinalarabic=65272;e.lamalefhamzaaboveisolatedarabic=65271;e.lamalefhamzabelowfinalarabic=65274;e.lamalefhamzabelowisolatedarabic=65273;e.lamalefisolatedarabic=65275;e.lamalefmaddaabovefinalarabic=65270;e.lamalefmaddaaboveisolatedarabic=65269;e.lamarabic=1604;e.lambda=955;e.lambdastroke=411;e.lamed=1500;e.lameddagesh=64316;e.lameddageshhebrew=64316;e.lamedhebrew=1500;e.lamfinalarabic=65246;e.lamhahinitialarabic=64714;e.laminitialarabic=65247;e.lamjeeminitialarabic=64713;e.lamkhahinitialarabic=64715;e.lamlamhehisolatedarabic=65010;e.lammedialarabic=65248;e.lammeemhahinitialarabic=64904;e.lammeeminitialarabic=64716;e.largecircle=9711;e.lbar=410;e.lbelt=620;e.lbopomofo=12556;e.lcaron=318;e.lcedilla=316;e.lcircle=9435;e.lcircumflexbelow=7741;e.lcommaaccent=316;e.ldot=320;e.ldotaccent=320;e.ldotbelow=7735;e.ldotbelowmacron=7737;e.leftangleabovecmb=794;e.lefttackbelowcmb=792;e.less=60;e.lessequal=8804;e.lessequalorgreater=8922;e.lessmonospace=65308;e.lessorequivalent=8818;e.lessorgreater=8822;e.lessoverequal=8806;e.lesssmall=65124;e.lezh=622;e.lfblock=9612;e.lhookretroflex=621;e.lira=8356;e.liwnarmenian=1388;e.lj=457;e.ljecyrillic=1113;e.ll=63168;e.lladeva=2355;e.llagujarati=2739;e.llinebelow=7739;e.llladeva=2356;e.llvocalicbengali=2529;e.llvocalicdeva=2401;e.llvocalicvowelsignbengali=2531;e.llvocalicvowelsigndeva=2403;e.lmiddletilde=619;e.lmonospace=65356;e.lmsquare=13264;e.lochulathai=3628;e.logicaland=8743;e.logicalnot=172;e.logicalnotreversed=8976;e.logicalor=8744;e.lolingthai=3621;e.longs=383;e.lowlinecenterline=65102;e.lowlinecmb=818;e.lowlinedashed=65101;e.lozenge=9674;e.lparen=9383;e.lslash=322;e.lsquare=8467;e.lsuperior=63214;e.ltshade=9617;e.luthai=3622;e.lvocalicbengali=2444;e.lvocalicdeva=2316;e.lvocalicvowelsignbengali=2530;e.lvocalicvowelsigndeva=2402;e.lxsquare=13267;e.m=109;e.mabengali=2478;e.macron=175;e.macronbelowcmb=817;e.macroncmb=772;e.macronlowmod=717;e.macronmonospace=65507;e.macute=7743;e.madeva=2350;e.magujarati=2734;e.magurmukhi=2606;e.mahapakhhebrew=1444;e.mahapakhlefthebrew=1444;e.mahiragana=12414;e.maichattawalowleftthai=63637;e.maichattawalowrightthai=63636;e.maichattawathai=3659;e.maichattawaupperleftthai=63635;e.maieklowleftthai=63628;e.maieklowrightthai=63627;e.maiekthai=3656;e.maiekupperleftthai=63626;e.maihanakatleftthai=63620;e.maihanakatthai=3633;e.maitaikhuleftthai=63625;e.maitaikhuthai=3655;e.maitholowleftthai=63631;e.maitholowrightthai=63630;e.maithothai=3657;e.maithoupperleftthai=63629;e.maitrilowleftthai=63634;e.maitrilowrightthai=63633;e.maitrithai=3658;e.maitriupperleftthai=63632;e.maiyamokthai=3654;e.makatakana=12510;e.makatakanahalfwidth=65423;e.male=9794;e.mansyonsquare=13127;e.maqafhebrew=1470;e.mars=9794;e.masoracirclehebrew=1455;e.masquare=13187;e.mbopomofo=12551;e.mbsquare=13268;e.mcircle=9436;e.mcubedsquare=13221;e.mdotaccent=7745;e.mdotbelow=7747;e.meemarabic=1605;e.meemfinalarabic=65250;e.meeminitialarabic=65251;e.meemmedialarabic=65252;e.meemmeeminitialarabic=64721;e.meemmeemisolatedarabic=64584;e.meetorusquare=13133;e.mehiragana=12417;e.meizierasquare=13182;e.mekatakana=12513;e.mekatakanahalfwidth=65426;e.mem=1502;e.memdagesh=64318;e.memdageshhebrew=64318;e.memhebrew=1502;e.menarmenian=1396;e.merkhahebrew=1445;e.merkhakefulahebrew=1446;e.merkhakefulalefthebrew=1446;e.merkhalefthebrew=1445;e.mhook=625;e.mhzsquare=13202;e.middledotkatakanahalfwidth=65381;e.middot=183;e.mieumacirclekorean=12914;e.mieumaparenkorean=12818;e.mieumcirclekorean=12900;e.mieumkorean=12609;e.mieumpansioskorean=12656;e.mieumparenkorean=12804;e.mieumpieupkorean=12654;e.mieumsioskorean=12655;e.mihiragana=12415;e.mikatakana=12511;e.mikatakanahalfwidth=65424;e.minus=8722;e.minusbelowcmb=800;e.minuscircle=8854;e.minusmod=727;e.minusplus=8723;e.minute=8242;e.miribaarusquare=13130;e.mirisquare=13129;e.mlonglegturned=624;e.mlsquare=13206;e.mmcubedsquare=13219;e.mmonospace=65357;e.mmsquaredsquare=13215;e.mohiragana=12418;e.mohmsquare=13249;e.mokatakana=12514;e.mokatakanahalfwidth=65427;e.molsquare=13270;e.momathai=3617;e.moverssquare=13223;e.moverssquaredsquare=13224;e.mparen=9384;e.mpasquare=13227;e.mssquare=13235;e.msuperior=63215;e.mturned=623;e.mu=181;e.mu1=181;e.muasquare=13186;e.muchgreater=8811;e.muchless=8810;e.mufsquare=13196;e.mugreek=956;e.mugsquare=13197;e.muhiragana=12416;e.mukatakana=12512;e.mukatakanahalfwidth=65425;e.mulsquare=13205;e.multiply=215;e.mumsquare=13211;e.munahhebrew=1443;e.munahlefthebrew=1443;e.musicalnote=9834;e.musicalnotedbl=9835;e.musicflatsign=9837;e.musicsharpsign=9839;e.mussquare=13234;e.muvsquare=13238;e.muwsquare=13244;e.mvmegasquare=13241;e.mvsquare=13239;e.mwmegasquare=13247;e.mwsquare=13245;e.n=110;e.nabengali=2472;e.nabla=8711;e.nacute=324;e.nadeva=2344;e.nagujarati=2728;e.nagurmukhi=2600;e.nahiragana=12394;e.nakatakana=12490;e.nakatakanahalfwidth=65413;e.napostrophe=329;e.nasquare=13185;e.nbopomofo=12555;e.nbspace=160;e.ncaron=328;e.ncedilla=326;e.ncircle=9437;e.ncircumflexbelow=7755;e.ncommaaccent=326;e.ndotaccent=7749;e.ndotbelow=7751;e.nehiragana=12397;e.nekatakana=12493;e.nekatakanahalfwidth=65416;e.newsheqelsign=8362;e.nfsquare=13195;e.ngabengali=2457;e.ngadeva=2329;e.ngagujarati=2713;e.ngagurmukhi=2585;e.ngonguthai=3591;e.nhiragana=12435;e.nhookleft=626;e.nhookretroflex=627;e.nieunacirclekorean=12911;e.nieunaparenkorean=12815;e.nieuncieuckorean=12597;e.nieuncirclekorean=12897;e.nieunhieuhkorean=12598;e.nieunkorean=12596;e.nieunpansioskorean=12648;e.nieunparenkorean=12801;e.nieunsioskorean=12647;e.nieuntikeutkorean=12646;e.nihiragana=12395;e.nikatakana=12491;e.nikatakanahalfwidth=65414;e.nikhahitleftthai=63641;e.nikhahitthai=3661;e.nine=57;e.ninearabic=1641;e.ninebengali=2543;e.ninecircle=9320;e.ninecircleinversesansserif=10130;e.ninedeva=2415;e.ninegujarati=2799;e.ninegurmukhi=2671;e.ninehackarabic=1641;e.ninehangzhou=12329;e.nineideographicparen=12840;e.nineinferior=8329;e.ninemonospace=65305;e.nineoldstyle=63289;e.nineparen=9340;e.nineperiod=9360;e.ninepersian=1785;e.nineroman=8568;e.ninesuperior=8313;e.nineteencircle=9330;e.nineteenparen=9350;e.nineteenperiod=9370;e.ninethai=3673;e.nj=460;e.njecyrillic=1114;e.nkatakana=12531;e.nkatakanahalfwidth=65437;e.nlegrightlong=414;e.nlinebelow=7753;e.nmonospace=65358;e.nmsquare=13210;e.nnabengali=2467;e.nnadeva=2339;e.nnagujarati=2723;e.nnagurmukhi=2595;e.nnnadeva=2345;e.nohiragana=12398;e.nokatakana=12494;e.nokatakanahalfwidth=65417;e.nonbreakingspace=160;e.nonenthai=3603;e.nonuthai=3609;e.noonarabic=1606;e.noonfinalarabic=65254;e.noonghunnaarabic=1722;e.noonghunnafinalarabic=64415;e.nooninitialarabic=65255;e.noonjeeminitialarabic=64722;e.noonjeemisolatedarabic=64587;e.noonmedialarabic=65256;e.noonmeeminitialarabic=64725;e.noonmeemisolatedarabic=64590;e.noonnoonfinalarabic=64653;e.notcontains=8716;e.notelement=8713;e.notelementof=8713;e.notequal=8800;e.notgreater=8815;e.notgreaternorequal=8817;e.notgreaternorless=8825;e.notidentical=8802;e.notless=8814;e.notlessnorequal=8816;e.notparallel=8742;e.notprecedes=8832;e.notsubset=8836;e.notsucceeds=8833;e.notsuperset=8837;e.nowarmenian=1398;e.nparen=9385;e.nssquare=13233;e.nsuperior=8319;e.ntilde=241;e.nu=957;e.nuhiragana=12396;e.nukatakana=12492;e.nukatakanahalfwidth=65415;e.nuktabengali=2492;e.nuktadeva=2364;e.nuktagujarati=2748;e.nuktagurmukhi=2620;e.numbersign=35;e.numbersignmonospace=65283;e.numbersignsmall=65119;e.numeralsigngreek=884;e.numeralsignlowergreek=885;e.numero=8470;e.nun=1504;e.nundagesh=64320;e.nundageshhebrew=64320;e.nunhebrew=1504;e.nvsquare=13237;e.nwsquare=13243;e.nyabengali=2462;e.nyadeva=2334;e.nyagujarati=2718;e.nyagurmukhi=2590;e.o=111;e.oacute=243;e.oangthai=3629;e.obarred=629;e.obarredcyrillic=1257;e.obarreddieresiscyrillic=1259;e.obengali=2451;e.obopomofo=12571;e.obreve=335;e.ocandradeva=2321;e.ocandragujarati=2705;e.ocandravowelsigndeva=2377;e.ocandravowelsigngujarati=2761;e.ocaron=466;e.ocircle=9438;e.ocircumflex=244;e.ocircumflexacute=7889;e.ocircumflexdotbelow=7897;e.ocircumflexgrave=7891;e.ocircumflexhookabove=7893;e.ocircumflextilde=7895;e.ocyrillic=1086;e.odblacute=337;e.odblgrave=525;e.odeva=2323;e.odieresis=246;e.odieresiscyrillic=1255;e.odotbelow=7885;e.oe=339;e.oekorean=12634;e.ogonek=731;e.ogonekcmb=808;e.ograve=242;e.ogujarati=2707;e.oharmenian=1413;e.ohiragana=12362;e.ohookabove=7887;e.ohorn=417;e.ohornacute=7899;e.ohorndotbelow=7907;e.ohorngrave=7901;e.ohornhookabove=7903;e.ohorntilde=7905;e.ohungarumlaut=337;e.oi=419;e.oinvertedbreve=527;e.okatakana=12458;e.okatakanahalfwidth=65397;e.okorean=12631;e.olehebrew=1451;e.omacron=333;e.omacronacute=7763;e.omacrongrave=7761;e.omdeva=2384;e.omega=969;e.omega1=982;e.omegacyrillic=1121;e.omegalatinclosed=631;e.omegaroundcyrillic=1147;e.omegatitlocyrillic=1149;e.omegatonos=974;e.omgujarati=2768;e.omicron=959;e.omicrontonos=972;e.omonospace=65359;e.one=49;e.onearabic=1633;e.onebengali=2535;e.onecircle=9312;e.onecircleinversesansserif=10122;e.onedeva=2407;e.onedotenleader=8228;e.oneeighth=8539;e.onefitted=63196;e.onegujarati=2791;e.onegurmukhi=2663;e.onehackarabic=1633;e.onehalf=189;e.onehangzhou=12321;e.oneideographicparen=12832;e.oneinferior=8321;e.onemonospace=65297;e.onenumeratorbengali=2548;e.oneoldstyle=63281;e.oneparen=9332;e.oneperiod=9352;e.onepersian=1777;e.onequarter=188;e.oneroman=8560;e.onesuperior=185;e.onethai=3665;e.onethird=8531;e.oogonek=491;e.oogonekmacron=493;e.oogurmukhi=2579;e.oomatragurmukhi=2635;e.oopen=596;e.oparen=9386;e.openbullet=9702;e.option=8997;e.ordfeminine=170;e.ordmasculine=186;e.orthogonal=8735;e.oshortdeva=2322;e.oshortvowelsigndeva=2378;e.oslash=248;e.oslashacute=511;e.osmallhiragana=12361;e.osmallkatakana=12457;e.osmallkatakanahalfwidth=65387;e.ostrokeacute=511;e.osuperior=63216;e.otcyrillic=1151;e.otilde=245;e.otildeacute=7757;e.otildedieresis=7759;e.oubopomofo=12577;e.overline=8254;e.overlinecenterline=65098;e.overlinecmb=773;e.overlinedashed=65097;e.overlinedblwavy=65100;e.overlinewavy=65099;e.overscore=175;e.ovowelsignbengali=2507;e.ovowelsigndeva=2379;e.ovowelsigngujarati=2763;e.p=112;e.paampssquare=13184;e.paasentosquare=13099;e.pabengali=2474;e.pacute=7765;e.padeva=2346;e.pagedown=8671;e.pageup=8670;e.pagujarati=2730;e.pagurmukhi=2602;e.pahiragana=12401;e.paiyannoithai=3631;e.pakatakana=12497;e.palatalizationcyrilliccmb=1156;e.palochkacyrillic=1216;e.pansioskorean=12671;e.paragraph=182;e.parallel=8741;e.parenleft=40;e.parenleftaltonearabic=64830;e.parenleftbt=63725;e.parenleftex=63724;e.parenleftinferior=8333;e.parenleftmonospace=65288;e.parenleftsmall=65113;e.parenleftsuperior=8317;e.parenlefttp=63723;e.parenleftvertical=65077;e.parenright=41;e.parenrightaltonearabic=64831;e.parenrightbt=63736;e.parenrightex=63735;e.parenrightinferior=8334;e.parenrightmonospace=65289;e.parenrightsmall=65114;e.parenrightsuperior=8318;e.parenrighttp=63734;e.parenrightvertical=65078;e.partialdiff=8706;e.paseqhebrew=1472;e.pashtahebrew=1433;e.pasquare=13225;e.patah=1463;e.patah11=1463;e.patah1d=1463;e.patah2a=1463;e.patahhebrew=1463;e.patahnarrowhebrew=1463;e.patahquarterhebrew=1463;e.patahwidehebrew=1463;e.pazerhebrew=1441;e.pbopomofo=12550;e.pcircle=9439;e.pdotaccent=7767;e.pe=1508;e.pecyrillic=1087;e.pedagesh=64324;e.pedageshhebrew=64324;e.peezisquare=13115;e.pefinaldageshhebrew=64323;e.peharabic=1662;e.peharmenian=1402;e.pehebrew=1508;e.pehfinalarabic=64343;e.pehinitialarabic=64344;e.pehiragana=12410;e.pehmedialarabic=64345;e.pekatakana=12506;e.pemiddlehookcyrillic=1191;e.perafehebrew=64334;e.percent=37;e.percentarabic=1642;e.percentmonospace=65285;e.percentsmall=65130;e.period=46;e.periodarmenian=1417;e.periodcentered=183;e.periodhalfwidth=65377;e.periodinferior=63207;e.periodmonospace=65294;e.periodsmall=65106;e.periodsuperior=63208;e.perispomenigreekcmb=834;e.perpendicular=8869;e.perthousand=8240;e.peseta=8359;e.pfsquare=13194;e.phabengali=2475;e.phadeva=2347;e.phagujarati=2731;e.phagurmukhi=2603;e.phi=966;e.phi1=981;e.phieuphacirclekorean=12922;e.phieuphaparenkorean=12826;e.phieuphcirclekorean=12908;e.phieuphkorean=12621;e.phieuphparenkorean=12812;e.philatin=632;e.phinthuthai=3642;e.phisymbolgreek=981;e.phook=421;e.phophanthai=3614;e.phophungthai=3612;e.phosamphaothai=3616;e.pi=960;e.pieupacirclekorean=12915;e.pieupaparenkorean=12819;e.pieupcieuckorean=12662;e.pieupcirclekorean=12901;e.pieupkiyeokkorean=12658;e.pieupkorean=12610;e.pieupparenkorean=12805;e.pieupsioskiyeokkorean=12660;e.pieupsioskorean=12612;e.pieupsiostikeutkorean=12661;e.pieupthieuthkorean=12663;e.pieuptikeutkorean=12659;e.pihiragana=12404;e.pikatakana=12500;e.pisymbolgreek=982;e.piwrarmenian=1411;e.planckover2pi=8463;e.planckover2pi1=8463;e.plus=43;e.plusbelowcmb=799;e.pluscircle=8853;e.plusminus=177;e.plusmod=726;e.plusmonospace=65291;e.plussmall=65122;e.plussuperior=8314;e.pmonospace=65360;e.pmsquare=13272;e.pohiragana=12413;e.pointingindexdownwhite=9759;e.pointingindexleftwhite=9756;e.pointingindexrightwhite=9758;e.pointingindexupwhite=9757;e.pokatakana=12509;e.poplathai=3611;e.postalmark=12306;e.postalmarkface=12320;e.pparen=9387;e.precedes=8826;e.prescription=8478;e.primemod=697;e.primereversed=8245;e.product=8719;e.projective=8965;e.prolongedkana=12540;e.propellor=8984;e.propersubset=8834;e.propersuperset=8835;e.proportion=8759;e.proportional=8733;e.psi=968;e.psicyrillic=1137;e.psilipneumatacyrilliccmb=1158;e.pssquare=13232;e.puhiragana=12407;e.pukatakana=12503;e.pvsquare=13236;e.pwsquare=13242;e.q=113;e.qadeva=2392;e.qadmahebrew=1448;e.qafarabic=1602;e.qaffinalarabic=65238;e.qafinitialarabic=65239;e.qafmedialarabic=65240;e.qamats=1464;e.qamats10=1464;e.qamats1a=1464;e.qamats1c=1464;e.qamats27=1464;e.qamats29=1464;e.qamats33=1464;e.qamatsde=1464;e.qamatshebrew=1464;e.qamatsnarrowhebrew=1464;e.qamatsqatanhebrew=1464;e.qamatsqatannarrowhebrew=1464;e.qamatsqatanquarterhebrew=1464;e.qamatsqatanwidehebrew=1464;e.qamatsquarterhebrew=1464;e.qamatswidehebrew=1464;e.qarneyparahebrew=1439;e.qbopomofo=12561;e.qcircle=9440;e.qhook=672;e.qmonospace=65361;e.qof=1511;e.qofdagesh=64327;e.qofdageshhebrew=64327;e.qofhebrew=1511;e.qparen=9388;e.quarternote=9833;e.qubuts=1467;e.qubuts18=1467;e.qubuts25=1467;e.qubuts31=1467;e.qubutshebrew=1467;e.qubutsnarrowhebrew=1467;e.qubutsquarterhebrew=1467;e.qubutswidehebrew=1467;e.question=63;e.questionarabic=1567;e.questionarmenian=1374;e.questiondown=191;e.questiondownsmall=63423;e.questiongreek=894;e.questionmonospace=65311;e.questionsmall=63295;e.quotedbl=34;e.quotedblbase=8222;e.quotedblleft=8220;e.quotedblmonospace=65282;e.quotedblprime=12318;e.quotedblprimereversed=12317;e.quotedblright=8221;e.quoteleft=8216;e.quoteleftreversed=8219;e.quotereversed=8219;e.quoteright=8217;e.quoterightn=329;e.quotesinglbase=8218;e.quotesingle=39;e.quotesinglemonospace=65287;e.r=114;e.raarmenian=1404;e.rabengali=2480;e.racute=341;e.radeva=2352;e.radical=8730;e.radicalex=63717;e.radoverssquare=13230;e.radoverssquaredsquare=13231;e.radsquare=13229;e.rafe=1471;e.rafehebrew=1471;e.ragujarati=2736;e.ragurmukhi=2608;e.rahiragana=12425;e.rakatakana=12521;e.rakatakanahalfwidth=65431;e.ralowerdiagonalbengali=2545;e.ramiddlediagonalbengali=2544;e.ramshorn=612;e.ratio=8758;e.rbopomofo=12566;e.rcaron=345;e.rcedilla=343;e.rcircle=9441;e.rcommaaccent=343;e.rdblgrave=529;e.rdotaccent=7769;e.rdotbelow=7771;e.rdotbelowmacron=7773;e.referencemark=8251;e.reflexsubset=8838;e.reflexsuperset=8839;e.registered=174;e.registersans=63720;e.registerserif=63194;e.reharabic=1585;e.reharmenian=1408;e.rehfinalarabic=65198;e.rehiragana=12428;e.rekatakana=12524;e.rekatakanahalfwidth=65434;e.resh=1512;e.reshdageshhebrew=64328;e.reshhebrew=1512;e.reversedtilde=8765;e.reviahebrew=1431;e.reviamugrashhebrew=1431;e.revlogicalnot=8976;e.rfishhook=638;e.rfishhookreversed=639;e.rhabengali=2525;e.rhadeva=2397;e.rho=961;e.rhook=637;e.rhookturned=635;e.rhookturnedsuperior=693;e.rhosymbolgreek=1009;e.rhotichookmod=734;e.rieulacirclekorean=12913;e.rieulaparenkorean=12817;e.rieulcirclekorean=12899;e.rieulhieuhkorean=12608;e.rieulkiyeokkorean=12602;e.rieulkiyeoksioskorean=12649;e.rieulkorean=12601;e.rieulmieumkorean=12603;e.rieulpansioskorean=12652;e.rieulparenkorean=12803;e.rieulphieuphkorean=12607;e.rieulpieupkorean=12604;e.rieulpieupsioskorean=12651;e.rieulsioskorean=12605;e.rieulthieuthkorean=12606;e.rieultikeutkorean=12650;e.rieulyeorinhieuhkorean=12653;e.rightangle=8735;e.righttackbelowcmb=793;e.righttriangle=8895;e.rihiragana=12426;e.rikatakana=12522;e.rikatakanahalfwidth=65432;e.ring=730;e.ringbelowcmb=805;e.ringcmb=778;e.ringhalfleft=703;e.ringhalfleftarmenian=1369;e.ringhalfleftbelowcmb=796;e.ringhalfleftcentered=723;e.ringhalfright=702;e.ringhalfrightbelowcmb=825;e.ringhalfrightcentered=722;e.rinvertedbreve=531;e.rittorusquare=13137;e.rlinebelow=7775;e.rlongleg=636;e.rlonglegturned=634;e.rmonospace=65362;e.rohiragana=12429;e.rokatakana=12525;e.rokatakanahalfwidth=65435;e.roruathai=3619;e.rparen=9389;e.rrabengali=2524;e.rradeva=2353;e.rragurmukhi=2652;e.rreharabic=1681;e.rrehfinalarabic=64397;e.rrvocalicbengali=2528;e.rrvocalicdeva=2400;e.rrvocalicgujarati=2784;e.rrvocalicvowelsignbengali=2500;e.rrvocalicvowelsigndeva=2372;e.rrvocalicvowelsigngujarati=2756;e.rsuperior=63217;e.rtblock=9616;e.rturned=633;e.rturnedsuperior=692;e.ruhiragana=12427;e.rukatakana=12523;e.rukatakanahalfwidth=65433;e.rupeemarkbengali=2546;e.rupeesignbengali=2547;e.rupiah=63197;e.ruthai=3620;e.rvocalicbengali=2443;e.rvocalicdeva=2315;e.rvocalicgujarati=2699;e.rvocalicvowelsignbengali=2499;e.rvocalicvowelsigndeva=2371;e.rvocalicvowelsigngujarati=2755;e.s=115;e.sabengali=2488;e.sacute=347;e.sacutedotaccent=7781;e.sadarabic=1589;e.sadeva=2360;e.sadfinalarabic=65210;e.sadinitialarabic=65211;e.sadmedialarabic=65212;e.sagujarati=2744;e.sagurmukhi=2616;e.sahiragana=12373;e.sakatakana=12469;e.sakatakanahalfwidth=65403;e.sallallahoualayhewasallamarabic=65018;e.samekh=1505;e.samekhdagesh=64321;e.samekhdageshhebrew=64321;e.samekhhebrew=1505;e.saraaathai=3634;e.saraaethai=3649;e.saraaimaimalaithai=3652;e.saraaimaimuanthai=3651;e.saraamthai=3635;e.saraathai=3632;e.saraethai=3648;e.saraiileftthai=63622;e.saraiithai=3637;e.saraileftthai=63621;e.saraithai=3636;e.saraothai=3650;e.saraueeleftthai=63624;e.saraueethai=3639;e.saraueleftthai=63623;e.sarauethai=3638;e.sarauthai=3640;e.sarauuthai=3641;e.sbopomofo=12569;e.scaron=353;e.scarondotaccent=7783;e.scedilla=351;e.schwa=601;e.schwacyrillic=1241;e.schwadieresiscyrillic=1243;e.schwahook=602;e.scircle=9442;e.scircumflex=349;e.scommaaccent=537;e.sdotaccent=7777;e.sdotbelow=7779;e.sdotbelowdotaccent=7785;e.seagullbelowcmb=828;e.second=8243;e.secondtonechinese=714;e.section=167;e.seenarabic=1587;e.seenfinalarabic=65202;e.seeninitialarabic=65203;e.seenmedialarabic=65204;e.segol=1462;e.segol13=1462;e.segol1f=1462;e.segol2c=1462;e.segolhebrew=1462;e.segolnarrowhebrew=1462;e.segolquarterhebrew=1462;e.segoltahebrew=1426;e.segolwidehebrew=1462;e.seharmenian=1405;e.sehiragana=12379;e.sekatakana=12475;e.sekatakanahalfwidth=65406;e.semicolon=59;e.semicolonarabic=1563;e.semicolonmonospace=65307;e.semicolonsmall=65108;e.semivoicedmarkkana=12444;e.semivoicedmarkkanahalfwidth=65439;e.sentisquare=13090;e.sentosquare=13091;e.seven=55;e.sevenarabic=1639;e.sevenbengali=2541;e.sevencircle=9318;e.sevencircleinversesansserif=10128;e.sevendeva=2413;e.seveneighths=8542;e.sevengujarati=2797;e.sevengurmukhi=2669;e.sevenhackarabic=1639;e.sevenhangzhou=12327;e.sevenideographicparen=12838;e.seveninferior=8327;e.sevenmonospace=65303;e.sevenoldstyle=63287;e.sevenparen=9338;e.sevenperiod=9358;e.sevenpersian=1783;e.sevenroman=8566;e.sevensuperior=8311;e.seventeencircle=9328;e.seventeenparen=9348;e.seventeenperiod=9368;e.seventhai=3671;e.sfthyphen=173;e.shaarmenian=1399;e.shabengali=2486;e.shacyrillic=1096;e.shaddaarabic=1617;e.shaddadammaarabic=64609;e.shaddadammatanarabic=64606;e.shaddafathaarabic=64608;e.shaddakasraarabic=64610;e.shaddakasratanarabic=64607;e.shade=9618;e.shadedark=9619;e.shadelight=9617;e.shademedium=9618;e.shadeva=2358;e.shagujarati=2742;e.shagurmukhi=2614;e.shalshelethebrew=1427;e.shbopomofo=12565;e.shchacyrillic=1097;e.sheenarabic=1588;e.sheenfinalarabic=65206;e.sheeninitialarabic=65207;e.sheenmedialarabic=65208;e.sheicoptic=995;e.sheqel=8362;e.sheqelhebrew=8362;e.sheva=1456;e.sheva115=1456;e.sheva15=1456;e.sheva22=1456;e.sheva2e=1456;e.shevahebrew=1456;e.shevanarrowhebrew=1456;e.shevaquarterhebrew=1456;e.shevawidehebrew=1456;e.shhacyrillic=1211;e.shimacoptic=1005;e.shin=1513;e.shindagesh=64329;e.shindageshhebrew=64329;e.shindageshshindot=64300;e.shindageshshindothebrew=64300;e.shindageshsindot=64301;e.shindageshsindothebrew=64301;e.shindothebrew=1473;e.shinhebrew=1513;e.shinshindot=64298;e.shinshindothebrew=64298;e.shinsindot=64299;e.shinsindothebrew=64299;e.shook=642;e.sigma=963;e.sigma1=962;e.sigmafinal=962;e.sigmalunatesymbolgreek=1010;e.sihiragana=12375;e.sikatakana=12471;e.sikatakanahalfwidth=65404;e.siluqhebrew=1469;e.siluqlefthebrew=1469;e.similar=8764;e.sindothebrew=1474;e.siosacirclekorean=12916;e.siosaparenkorean=12820;e.sioscieuckorean=12670;e.sioscirclekorean=12902;e.sioskiyeokkorean=12666;e.sioskorean=12613;e.siosnieunkorean=12667;e.siosparenkorean=12806;e.siospieupkorean=12669;e.siostikeutkorean=12668;e.six=54;e.sixarabic=1638;e.sixbengali=2540;e.sixcircle=9317;e.sixcircleinversesansserif=10127;e.sixdeva=2412;e.sixgujarati=2796;e.sixgurmukhi=2668;e.sixhackarabic=1638;e.sixhangzhou=12326;e.sixideographicparen=12837;e.sixinferior=8326;e.sixmonospace=65302;e.sixoldstyle=63286;e.sixparen=9337;e.sixperiod=9357;e.sixpersian=1782;e.sixroman=8565;e.sixsuperior=8310;e.sixteencircle=9327;e.sixteencurrencydenominatorbengali=2553;e.sixteenparen=9347;e.sixteenperiod=9367;e.sixthai=3670;e.slash=47;e.slashmonospace=65295;e.slong=383;e.slongdotaccent=7835;e.smileface=9786;e.smonospace=65363;e.sofpasuqhebrew=1475;e.softhyphen=173;e.softsigncyrillic=1100;e.sohiragana=12381;e.sokatakana=12477;e.sokatakanahalfwidth=65407;e.soliduslongoverlaycmb=824;e.solidusshortoverlaycmb=823;e.sorusithai=3625;e.sosalathai=3624;e.sosothai=3595;e.sosuathai=3626;e.space=32;e.spacehackarabic=32;e.spade=9824;e.spadesuitblack=9824;e.spadesuitwhite=9828;e.sparen=9390;e.squarebelowcmb=827;e.squarecc=13252;e.squarecm=13213;e.squarediagonalcrosshatchfill=9641;e.squarehorizontalfill=9636;e.squarekg=13199;e.squarekm=13214;e.squarekmcapital=13262;e.squareln=13265;e.squarelog=13266;e.squaremg=13198;e.squaremil=13269;e.squaremm=13212;e.squaremsquared=13217;e.squareorthogonalcrosshatchfill=9638;e.squareupperlefttolowerrightfill=9639;e.squareupperrighttolowerleftfill=9640;e.squareverticalfill=9637;e.squarewhitewithsmallblack=9635;e.srsquare=13275;e.ssabengali=2487;e.ssadeva=2359;e.ssagujarati=2743;e.ssangcieuckorean=12617;e.ssanghieuhkorean=12677;e.ssangieungkorean=12672;e.ssangkiyeokkorean=12594;e.ssangnieunkorean=12645;e.ssangpieupkorean=12611;e.ssangsioskorean=12614;e.ssangtikeutkorean=12600;e.ssuperior=63218;e.sterling=163;e.sterlingmonospace=65505;e.strokelongoverlaycmb=822;e.strokeshortoverlaycmb=821;e.subset=8834;e.subsetnotequal=8842;e.subsetorequal=8838;e.succeeds=8827;e.suchthat=8715;e.suhiragana=12377;e.sukatakana=12473;e.sukatakanahalfwidth=65405;e.sukunarabic=1618;e.summation=8721;e.sun=9788;e.superset=8835;e.supersetnotequal=8843;e.supersetorequal=8839;e.svsquare=13276;e.syouwaerasquare=13180;e.t=116;e.tabengali=2468;e.tackdown=8868;e.tackleft=8867;e.tadeva=2340;e.tagujarati=2724;e.tagurmukhi=2596;e.taharabic=1591;e.tahfinalarabic=65218;e.tahinitialarabic=65219;e.tahiragana=12383;e.tahmedialarabic=65220;e.taisyouerasquare=13181;e.takatakana=12479;e.takatakanahalfwidth=65408;e.tatweelarabic=1600;e.tau=964;e.tav=1514;e.tavdages=64330;e.tavdagesh=64330;e.tavdageshhebrew=64330;e.tavhebrew=1514;e.tbar=359;e.tbopomofo=12554;e.tcaron=357;e.tccurl=680;e.tcedilla=355;e.tcheharabic=1670;e.tchehfinalarabic=64379;e.tchehinitialarabic=64380;e.tchehmedialarabic=64381;e.tcircle=9443;e.tcircumflexbelow=7793;e.tcommaaccent=355;e.tdieresis=7831;e.tdotaccent=7787;e.tdotbelow=7789;e.tecyrillic=1090;e.tedescendercyrillic=1197;e.teharabic=1578;e.tehfinalarabic=65174;e.tehhahinitialarabic=64674;e.tehhahisolatedarabic=64524;e.tehinitialarabic=65175;e.tehiragana=12390;e.tehjeeminitialarabic=64673;e.tehjeemisolatedarabic=64523;e.tehmarbutaarabic=1577;e.tehmarbutafinalarabic=65172;e.tehmedialarabic=65176;e.tehmeeminitialarabic=64676;e.tehmeemisolatedarabic=64526;e.tehnoonfinalarabic=64627;e.tekatakana=12486;e.tekatakanahalfwidth=65411;e.telephone=8481;e.telephoneblack=9742;e.telishagedolahebrew=1440;e.telishaqetanahebrew=1449;e.tencircle=9321;e.tenideographicparen=12841;e.tenparen=9341;e.tenperiod=9361;e.tenroman=8569;e.tesh=679;e.tet=1496;e.tetdagesh=64312;e.tetdageshhebrew=64312;e.tethebrew=1496;e.tetsecyrillic=1205;e.tevirhebrew=1435;e.tevirlefthebrew=1435;e.thabengali=2469;e.thadeva=2341;e.thagujarati=2725;e.thagurmukhi=2597;e.thalarabic=1584;e.thalfinalarabic=65196;e.thanthakhatlowleftthai=63640;e.thanthakhatlowrightthai=63639;e.thanthakhatthai=3660;e.thanthakhatupperleftthai=63638;e.theharabic=1579;e.thehfinalarabic=65178;e.thehinitialarabic=65179;e.thehmedialarabic=65180;e.thereexists=8707;e.therefore=8756;e.theta=952;e.theta1=977;e.thetasymbolgreek=977;e.thieuthacirclekorean=12921;e.thieuthaparenkorean=12825;e.thieuthcirclekorean=12907;e.thieuthkorean=12620;e.thieuthparenkorean=12811;e.thirteencircle=9324;e.thirteenparen=9344;e.thirteenperiod=9364;e.thonangmonthothai=3601;e.thook=429;e.thophuthaothai=3602;e.thorn=254;e.thothahanthai=3607;e.thothanthai=3600;e.thothongthai=3608;e.thothungthai=3606;e.thousandcyrillic=1154;e.thousandsseparatorarabic=1644;e.thousandsseparatorpersian=1644;e.three=51;e.threearabic=1635;e.threebengali=2537;e.threecircle=9314;e.threecircleinversesansserif=10124;e.threedeva=2409;e.threeeighths=8540;e.threegujarati=2793;e.threegurmukhi=2665;e.threehackarabic=1635;e.threehangzhou=12323;e.threeideographicparen=12834;e.threeinferior=8323;e.threemonospace=65299;e.threenumeratorbengali=2550;e.threeoldstyle=63283;e.threeparen=9334;e.threeperiod=9354;e.threepersian=1779;e.threequarters=190;e.threequartersemdash=63198;e.threeroman=8562;e.threesuperior=179;e.threethai=3667;e.thzsquare=13204;e.tihiragana=12385;e.tikatakana=12481;e.tikatakanahalfwidth=65409;e.tikeutacirclekorean=12912;e.tikeutaparenkorean=12816;e.tikeutcirclekorean=12898;e.tikeutkorean=12599;e.tikeutparenkorean=12802;e.tilde=732;e.tildebelowcmb=816;e.tildecmb=771;e.tildecomb=771;e.tildedoublecmb=864;e.tildeoperator=8764;e.tildeoverlaycmb=820;e.tildeverticalcmb=830;e.timescircle=8855;e.tipehahebrew=1430;e.tipehalefthebrew=1430;e.tippigurmukhi=2672;e.titlocyrilliccmb=1155;e.tiwnarmenian=1407;e.tlinebelow=7791;e.tmonospace=65364;e.toarmenian=1385;e.tohiragana=12392;e.tokatakana=12488;e.tokatakanahalfwidth=65412;e.tonebarextrahighmod=741;e.tonebarextralowmod=745;e.tonebarhighmod=742;e.tonebarlowmod=744;e.tonebarmidmod=743;e.tonefive=445;e.tonesix=389;e.tonetwo=424;e.tonos=900;e.tonsquare=13095;e.topatakthai=3599;e.tortoiseshellbracketleft=12308;e.tortoiseshellbracketleftsmall=65117;e.tortoiseshellbracketleftvertical=65081;e.tortoiseshellbracketright=12309;e.tortoiseshellbracketrightsmall=65118;e.tortoiseshellbracketrightvertical=65082;e.totaothai=3605;e.tpalatalhook=427;e.tparen=9391;e.trademark=8482;e.trademarksans=63722;e.trademarkserif=63195;e.tretroflexhook=648;e.triagdn=9660;e.triaglf=9668;e.triagrt=9658;e.triagup=9650;e.ts=678;e.tsadi=1510;e.tsadidagesh=64326;e.tsadidageshhebrew=64326;e.tsadihebrew=1510;e.tsecyrillic=1094;e.tsere=1461;e.tsere12=1461;e.tsere1e=1461;e.tsere2b=1461;e.tserehebrew=1461;e.tserenarrowhebrew=1461;e.tserequarterhebrew=1461;e.tserewidehebrew=1461;e.tshecyrillic=1115;e.tsuperior=63219;e.ttabengali=2463;e.ttadeva=2335;e.ttagujarati=2719;e.ttagurmukhi=2591;e.tteharabic=1657;e.ttehfinalarabic=64359;e.ttehinitialarabic=64360;e.ttehmedialarabic=64361;e.tthabengali=2464;e.tthadeva=2336;e.tthagujarati=2720;e.tthagurmukhi=2592;e.tturned=647;e.tuhiragana=12388;e.tukatakana=12484;e.tukatakanahalfwidth=65410;e.tusmallhiragana=12387;e.tusmallkatakana=12483;e.tusmallkatakanahalfwidth=65391;e.twelvecircle=9323;e.twelveparen=9343;e.twelveperiod=9363;e.twelveroman=8571;e.twentycircle=9331;e.twentyhangzhou=21316;e.twentyparen=9351;e.twentyperiod=9371;e.two=50;e.twoarabic=1634;e.twobengali=2536;e.twocircle=9313;e.twocircleinversesansserif=10123;e.twodeva=2408;e.twodotenleader=8229;e.twodotleader=8229;e.twodotleadervertical=65072;e.twogujarati=2792;e.twogurmukhi=2664;e.twohackarabic=1634;e.twohangzhou=12322;e.twoideographicparen=12833;e.twoinferior=8322;e.twomonospace=65298;e.twonumeratorbengali=2549;e.twooldstyle=63282;e.twoparen=9333;e.twoperiod=9353;e.twopersian=1778;e.tworoman=8561;e.twostroke=443;e.twosuperior=178;e.twothai=3666;e.twothirds=8532;e.u=117;e.uacute=250;e.ubar=649;e.ubengali=2441;e.ubopomofo=12584;e.ubreve=365;e.ucaron=468;e.ucircle=9444;e.ucircumflex=251;e.ucircumflexbelow=7799;e.ucyrillic=1091;e.udattadeva=2385;e.udblacute=369;e.udblgrave=533;e.udeva=2313;e.udieresis=252;e.udieresisacute=472;e.udieresisbelow=7795;e.udieresiscaron=474;e.udieresiscyrillic=1265;e.udieresisgrave=476;e.udieresismacron=470;e.udotbelow=7909;e.ugrave=249;e.ugujarati=2697;e.ugurmukhi=2569;e.uhiragana=12358;e.uhookabove=7911;e.uhorn=432;e.uhornacute=7913;e.uhorndotbelow=7921;e.uhorngrave=7915;e.uhornhookabove=7917;e.uhorntilde=7919;e.uhungarumlaut=369;e.uhungarumlautcyrillic=1267;e.uinvertedbreve=535;e.ukatakana=12454;e.ukatakanahalfwidth=65395;e.ukcyrillic=1145;e.ukorean=12636;e.umacron=363;e.umacroncyrillic=1263;e.umacrondieresis=7803;e.umatragurmukhi=2625;e.umonospace=65365;e.underscore=95;e.underscoredbl=8215;e.underscoremonospace=65343;e.underscorevertical=65075;e.underscorewavy=65103;e.union=8746;e.universal=8704;e.uogonek=371;e.uparen=9392;e.upblock=9600;e.upperdothebrew=1476;e.upsilon=965;e.upsilondieresis=971;e.upsilondieresistonos=944;e.upsilonlatin=650;e.upsilontonos=973;e.uptackbelowcmb=797;e.uptackmod=724;e.uragurmukhi=2675;e.uring=367;e.ushortcyrillic=1118;e.usmallhiragana=12357;e.usmallkatakana=12453;e.usmallkatakanahalfwidth=65385;e.ustraightcyrillic=1199;e.ustraightstrokecyrillic=1201;e.utilde=361;e.utildeacute=7801;e.utildebelow=7797;e.uubengali=2442;e.uudeva=2314;e.uugujarati=2698;e.uugurmukhi=2570;e.uumatragurmukhi=2626;e.uuvowelsignbengali=2498;e.uuvowelsigndeva=2370;e.uuvowelsigngujarati=2754;e.uvowelsignbengali=2497;e.uvowelsigndeva=2369;e.uvowelsigngujarati=2753;e.v=118;e.vadeva=2357;e.vagujarati=2741;e.vagurmukhi=2613;e.vakatakana=12535;e.vav=1493;e.vavdagesh=64309;e.vavdagesh65=64309;e.vavdageshhebrew=64309;e.vavhebrew=1493;e.vavholam=64331;e.vavholamhebrew=64331;e.vavvavhebrew=1520;e.vavyodhebrew=1521;e.vcircle=9445;e.vdotbelow=7807;e.vecyrillic=1074;e.veharabic=1700;e.vehfinalarabic=64363;e.vehinitialarabic=64364;e.vehmedialarabic=64365;e.vekatakana=12537;e.venus=9792;e.verticalbar=124;e.verticallineabovecmb=781;e.verticallinebelowcmb=809;e.verticallinelowmod=716;e.verticallinemod=712;e.vewarmenian=1406;e.vhook=651;e.vikatakana=12536;e.viramabengali=2509;e.viramadeva=2381;e.viramagujarati=2765;e.visargabengali=2435;e.visargadeva=2307;e.visargagujarati=2691;e.vmonospace=65366;e.voarmenian=1400;e.voicediterationhiragana=12446;e.voicediterationkatakana=12542;e.voicedmarkkana=12443;e.voicedmarkkanahalfwidth=65438;e.vokatakana=12538;e.vparen=9393;e.vtilde=7805;e.vturned=652;e.vuhiragana=12436;e.vukatakana=12532;e.w=119;e.wacute=7811;e.waekorean=12633;e.wahiragana=12431;e.wakatakana=12527;e.wakatakanahalfwidth=65436;e.wakorean=12632;e.wasmallhiragana=12430;e.wasmallkatakana=12526;e.wattosquare=13143;e.wavedash=12316;e.wavyunderscorevertical=65076;e.wawarabic=1608;e.wawfinalarabic=65262;e.wawhamzaabovearabic=1572;e.wawhamzaabovefinalarabic=65158;e.wbsquare=13277;e.wcircle=9446;e.wcircumflex=373;e.wdieresis=7813;e.wdotaccent=7815;e.wdotbelow=7817;e.wehiragana=12433;e.weierstrass=8472;e.wekatakana=12529;e.wekorean=12638;e.weokorean=12637;e.wgrave=7809;e.whitebullet=9702;e.whitecircle=9675;e.whitecircleinverse=9689;e.whitecornerbracketleft=12302;e.whitecornerbracketleftvertical=65091;e.whitecornerbracketright=12303;e.whitecornerbracketrightvertical=65092;e.whitediamond=9671;e.whitediamondcontainingblacksmalldiamond=9672;e.whitedownpointingsmalltriangle=9663;e.whitedownpointingtriangle=9661;e.whiteleftpointingsmalltriangle=9667;e.whiteleftpointingtriangle=9665;e.whitelenticularbracketleft=12310;e.whitelenticularbracketright=12311;e.whiterightpointingsmalltriangle=9657;e.whiterightpointingtriangle=9655;e.whitesmallsquare=9643;e.whitesmilingface=9786;e.whitesquare=9633;e.whitestar=9734;e.whitetelephone=9743;e.whitetortoiseshellbracketleft=12312;e.whitetortoiseshellbracketright=12313;e.whiteuppointingsmalltriangle=9653;e.whiteuppointingtriangle=9651;e.wihiragana=12432;e.wikatakana=12528;e.wikorean=12639;e.wmonospace=65367;e.wohiragana=12434;e.wokatakana=12530;e.wokatakanahalfwidth=65382;e.won=8361;e.wonmonospace=65510;e.wowaenthai=3623;e.wparen=9394;e.wring=7832;e.wsuperior=695;e.wturned=653;e.wynn=447;e.x=120;e.xabovecmb=829;e.xbopomofo=12562;e.xcircle=9447;e.xdieresis=7821;e.xdotaccent=7819;e.xeharmenian=1389;e.xi=958;e.xmonospace=65368;e.xparen=9395;e.xsuperior=739;e.y=121;e.yaadosquare=13134;e.yabengali=2479;e.yacute=253;e.yadeva=2351;e.yaekorean=12626;e.yagujarati=2735;e.yagurmukhi=2607;e.yahiragana=12420;e.yakatakana=12516;e.yakatakanahalfwidth=65428;e.yakorean=12625;e.yamakkanthai=3662;e.yasmallhiragana=12419;e.yasmallkatakana=12515;e.yasmallkatakanahalfwidth=65388;e.yatcyrillic=1123;e.ycircle=9448;e.ycircumflex=375;e.ydieresis=255;e.ydotaccent=7823;e.ydotbelow=7925;e.yeharabic=1610;e.yehbarreearabic=1746;e.yehbarreefinalarabic=64431;e.yehfinalarabic=65266;e.yehhamzaabovearabic=1574;e.yehhamzaabovefinalarabic=65162;e.yehhamzaaboveinitialarabic=65163;e.yehhamzaabovemedialarabic=65164;e.yehinitialarabic=65267;e.yehmedialarabic=65268;e.yehmeeminitialarabic=64733;e.yehmeemisolatedarabic=64600;e.yehnoonfinalarabic=64660;e.yehthreedotsbelowarabic=1745;e.yekorean=12630;e.yen=165;e.yenmonospace=65509;e.yeokorean=12629;e.yeorinhieuhkorean=12678;e.yerahbenyomohebrew=1450;e.yerahbenyomolefthebrew=1450;e.yericyrillic=1099;e.yerudieresiscyrillic=1273;e.yesieungkorean=12673;e.yesieungpansioskorean=12675;e.yesieungsioskorean=12674;e.yetivhebrew=1434;e.ygrave=7923;e.yhook=436;e.yhookabove=7927;e.yiarmenian=1397;e.yicyrillic=1111;e.yikorean=12642;e.yinyang=9775;e.yiwnarmenian=1410;e.ymonospace=65369;e.yod=1497;e.yoddagesh=64313;e.yoddageshhebrew=64313;e.yodhebrew=1497;e.yodyodhebrew=1522;e.yodyodpatahhebrew=64287;e.yohiragana=12424;e.yoikorean=12681;e.yokatakana=12520;e.yokatakanahalfwidth=65430;e.yokorean=12635;e.yosmallhiragana=12423;e.yosmallkatakana=12519;e.yosmallkatakanahalfwidth=65390;e.yotgreek=1011;e.yoyaekorean=12680;e.yoyakorean=12679;e.yoyakthai=3618;e.yoyingthai=3597;e.yparen=9396;e.ypogegrammeni=890;e.ypogegrammenigreekcmb=837;e.yr=422;e.yring=7833;e.ysuperior=696;e.ytilde=7929;e.yturned=654;e.yuhiragana=12422;e.yuikorean=12684;e.yukatakana=12518;e.yukatakanahalfwidth=65429;e.yukorean=12640;e.yusbigcyrillic=1131;e.yusbigiotifiedcyrillic=1133;e.yuslittlecyrillic=1127;e.yuslittleiotifiedcyrillic=1129;e.yusmallhiragana=12421;e.yusmallkatakana=12517;e.yusmallkatakanahalfwidth=65389;e.yuyekorean=12683;e.yuyeokorean=12682;e.yyabengali=2527;e.yyadeva=2399;e.z=122;e.zaarmenian=1382;e.zacute=378;e.zadeva=2395;e.zagurmukhi=2651;e.zaharabic=1592;e.zahfinalarabic=65222;e.zahinitialarabic=65223;e.zahiragana=12374;e.zahmedialarabic=65224;e.zainarabic=1586;e.zainfinalarabic=65200;e.zakatakana=12470;e.zaqefgadolhebrew=1429;e.zaqefqatanhebrew=1428;e.zarqahebrew=1432;e.zayin=1494;e.zayindagesh=64310;e.zayindageshhebrew=64310;e.zayinhebrew=1494;e.zbopomofo=12567;e.zcaron=382;e.zcircle=9449;e.zcircumflex=7825;e.zcurl=657;e.zdot=380;e.zdotaccent=380;e.zdotbelow=7827;e.zecyrillic=1079;e.zedescendercyrillic=1177;e.zedieresiscyrillic=1247;e.zehiragana=12380;e.zekatakana=12476;e.zero=48;e.zeroarabic=1632;e.zerobengali=2534;e.zerodeva=2406;e.zerogujarati=2790;e.zerogurmukhi=2662;e.zerohackarabic=1632;e.zeroinferior=8320;e.zeromonospace=65296;e.zerooldstyle=63280;e.zeropersian=1776;e.zerosuperior=8304;e.zerothai=3664;e.zerowidthjoiner=65279;e.zerowidthnonjoiner=8204;e.zerowidthspace=8203;e.zeta=950;e.zhbopomofo=12563;e.zhearmenian=1386;e.zhebrevecyrillic=1218;e.zhecyrillic=1078;e.zhedescendercyrillic=1175;e.zhedieresiscyrillic=1245;e.zihiragana=12376;e.zikatakana=12472;e.zinorhebrew=1454;e.zlinebelow=7829;e.zmonospace=65370;e.zohiragana=12382;e.zokatakana=12478;e.zparen=9397;e.zretroflexhook=656;e.zstroke=438;e.zuhiragana=12378;e.zukatakana=12474;e[".notdef"]=0;e.angbracketleftbig=9001;e.angbracketleftBig=9001;e.angbracketleftbigg=9001;e.angbracketleftBigg=9001;e.angbracketrightBig=9002;e.angbracketrightbig=9002;e.angbracketrightBigg=9002;e.angbracketrightbigg=9002;e.arrowhookleft=8618;e.arrowhookright=8617;e.arrowlefttophalf=8636;e.arrowleftbothalf=8637;e.arrownortheast=8599;e.arrownorthwest=8598;e.arrowrighttophalf=8640;e.arrowrightbothalf=8641;e.arrowsoutheast=8600;e.arrowsouthwest=8601;e.backslashbig=8726;e.backslashBig=8726;e.backslashBigg=8726;e.backslashbigg=8726;e.bardbl=8214;e.bracehtipdownleft=65079;e.bracehtipdownright=65079;e.bracehtipupleft=65080;e.bracehtipupright=65080;e.braceleftBig=123;e.braceleftbig=123;e.braceleftbigg=123;e.braceleftBigg=123;e.bracerightBig=125;e.bracerightbig=125;e.bracerightbigg=125;e.bracerightBigg=125;e.bracketleftbig=91;e.bracketleftBig=91;e.bracketleftbigg=91;e.bracketleftBigg=91;e.bracketrightBig=93;e.bracketrightbig=93;e.bracketrightbigg=93;e.bracketrightBigg=93;e.ceilingleftbig=8968;e.ceilingleftBig=8968;e.ceilingleftBigg=8968;e.ceilingleftbigg=8968;e.ceilingrightbig=8969;e.ceilingrightBig=8969;e.ceilingrightbigg=8969;e.ceilingrightBigg=8969;e.circledotdisplay=8857;e.circledottext=8857;e.circlemultiplydisplay=8855;e.circlemultiplytext=8855;e.circleplusdisplay=8853;e.circleplustext=8853;e.contintegraldisplay=8750;e.contintegraltext=8750;e.coproductdisplay=8720;e.coproducttext=8720;e.floorleftBig=8970;e.floorleftbig=8970;e.floorleftbigg=8970;e.floorleftBigg=8970;e.floorrightbig=8971;e.floorrightBig=8971;e.floorrightBigg=8971;e.floorrightbigg=8971;e.hatwide=770;e.hatwider=770;e.hatwidest=770;e.intercal=7488;e.integraldisplay=8747;e.integraltext=8747;e.intersectiondisplay=8898;e.intersectiontext=8898;e.logicalanddisplay=8743;e.logicalandtext=8743;e.logicalordisplay=8744;e.logicalortext=8744;e.parenleftBig=40;e.parenleftbig=40;e.parenleftBigg=40;e.parenleftbigg=40;e.parenrightBig=41;e.parenrightbig=41;e.parenrightBigg=41;e.parenrightbigg=41;e.prime=8242;e.productdisplay=8719;e.producttext=8719;e.radicalbig=8730;e.radicalBig=8730;e.radicalBigg=8730;e.radicalbigg=8730;e.radicalbt=8730;e.radicaltp=8730;e.radicalvertex=8730;e.slashbig=47;e.slashBig=47;e.slashBigg=47;e.slashbigg=47;e.summationdisplay=8721;e.summationtext=8721;e.tildewide=732;e.tildewider=732;e.tildewidest=732;e.uniondisplay=8899;e.unionmultidisplay=8846;e.unionmultitext=8846;e.unionsqdisplay=8852;e.unionsqtext=8852;e.uniontext=8899;e.vextenddouble=8741;e.vextendsingle=8739})),Ir=getLookupTableFactory((function(e){e.space=32;e.a1=9985;e.a2=9986;e.a202=9987;e.a3=9988;e.a4=9742;e.a5=9990;e.a119=9991;e.a118=9992;e.a117=9993;e.a11=9755;e.a12=9758;e.a13=9996;e.a14=9997;e.a15=9998;e.a16=9999;e.a105=1e4;e.a17=10001;e.a18=10002;e.a19=10003;e.a20=10004;e.a21=10005;e.a22=10006;e.a23=10007;e.a24=10008;e.a25=10009;e.a26=10010;e.a27=10011;e.a28=10012;e.a6=10013;e.a7=10014;e.a8=10015;e.a9=10016;e.a10=10017;e.a29=10018;e.a30=10019;e.a31=10020;e.a32=10021;e.a33=10022;e.a34=10023;e.a35=9733;e.a36=10025;e.a37=10026;e.a38=10027;e.a39=10028;e.a40=10029;e.a41=10030;e.a42=10031;e.a43=10032;e.a44=10033;e.a45=10034;e.a46=10035;e.a47=10036;e.a48=10037;e.a49=10038;e.a50=10039;e.a51=10040;e.a52=10041;e.a53=10042;e.a54=10043;e.a55=10044;e.a56=10045;e.a57=10046;e.a58=10047;e.a59=10048;e.a60=10049;e.a61=10050;e.a62=10051;e.a63=10052;e.a64=10053;e.a65=10054;e.a66=10055;e.a67=10056;e.a68=10057;e.a69=10058;e.a70=10059;e.a71=9679;e.a72=10061;e.a73=9632;e.a74=10063;e.a203=10064;e.a75=10065;e.a204=10066;e.a76=9650;e.a77=9660;e.a78=9670;e.a79=10070;e.a81=9687;e.a82=10072;e.a83=10073;e.a84=10074;e.a97=10075;e.a98=10076;e.a99=10077;e.a100=10078;e.a101=10081;e.a102=10082;e.a103=10083;e.a104=10084;e.a106=10085;e.a107=10086;e.a108=10087;e.a112=9827;e.a111=9830;e.a110=9829;e.a109=9824;e.a120=9312;e.a121=9313;e.a122=9314;e.a123=9315;e.a124=9316;e.a125=9317;e.a126=9318;e.a127=9319;e.a128=9320;e.a129=9321;e.a130=10102;e.a131=10103;e.a132=10104;e.a133=10105;e.a134=10106;e.a135=10107;e.a136=10108;e.a137=10109;e.a138=10110;e.a139=10111;e.a140=10112;e.a141=10113;e.a142=10114;e.a143=10115;e.a144=10116;e.a145=10117;e.a146=10118;e.a147=10119;e.a148=10120;e.a149=10121;e.a150=10122;e.a151=10123;e.a152=10124;e.a153=10125;e.a154=10126;e.a155=10127;e.a156=10128;e.a157=10129;e.a158=10130;e.a159=10131;e.a160=10132;e.a161=8594;e.a163=8596;e.a164=8597;e.a196=10136;e.a165=10137;e.a192=10138;e.a166=10139;e.a167=10140;e.a168=10141;e.a169=10142;e.a170=10143;e.a171=10144;e.a172=10145;e.a173=10146;e.a162=10147;e.a174=10148;e.a175=10149;e.a176=10150;e.a177=10151;e.a178=10152;e.a179=10153;e.a193=10154;e.a180=10155;e.a199=10156;e.a181=10157;e.a200=10158;e.a182=10159;e.a201=10161;e.a183=10162;e.a184=10163;e.a197=10164;e.a185=10165;e.a194=10166;e.a198=10167;e.a186=10168;e.a195=10169;e.a187=10170;e.a188=10171;e.a189=10172;e.a190=10173;e.a191=10174;e.a89=10088;e.a90=10089;e.a93=10090;e.a94=10091;e.a91=10092;e.a92=10093;e.a205=10094;e.a85=10095;e.a206=10096;e.a86=10097;e.a87=10098;e.a88=10099;e.a95=10100;e.a96=10101;e[".notdef"]=0})),Tr=getLookupTableFactory((function(e){e[63721]=169;e[63193]=169;e[63720]=174;e[63194]=174;e[63722]=8482;e[63195]=8482;e[63729]=9127;e[63730]=9128;e[63731]=9129;e[63740]=9131;e[63741]=9132;e[63742]=9133;e[63726]=9121;e[63727]=9122;e[63728]=9123;e[63737]=9124;e[63738]=9125;e[63739]=9126;e[63723]=9115;e[63724]=9116;e[63725]=9117;e[63734]=9118;e[63735]=9119;e[63736]=9120}));function getUnicodeForGlyph(e,t){let a=t[e];if(void 0!==a)return a;if(!e)return-1;if("u"===e[0]){const t=e.length;let r;if(7===t&&"n"===e[1]&&"i"===e[2])r=e.substring(3);else{if(!(t>=5&&t<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()){a=parseInt(r,16);if(a>=0)return a}}return-1}const Or=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function getUnicodeRangeFor(e,t=-1){if(-1!==t){const a=Or[t];for(let r=0,i=a.length;r<i;r+=2)if(e>=a[r]&&e<=a[r+1])return t}for(let t=0,a=Or.length;t<a;t++){const a=Or[t];for(let r=0,i=a.length;r<i;r+=2)if(e>=a[r]&&e<=a[r+1])return t}return-1}const Mr=new RegExp("^(\\\\s)|(\\\\p{Mn})|(\\\\p{Cf})$","u"),Dr=new Map;const Rr=!0,Nr=1,Er=2,Pr=4,Lr=32,jr=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function recoverGlyphName(e,t){if(void 0!==t[e])return e;const a=getUnicodeForGlyph(e,t);if(-1!==a)for(const e in t)if(t[e]===a)return e;info("Unable to recover a standard glyph name for: "+e);return e}function type1FontGlyphMapping(e,t,a){const r=Object.create(null);let i,n,s;const o=!!(e.flags&Pr);if(e.isInternalFont){s=t;for(n=0;n<s.length;n++){i=a.indexOf(s[n]);r[n]=i>=0?i:0}}else if(e.baseEncodingName){s=getEncoding(e.baseEncodingName);for(n=0;n<s.length;n++){i=a.indexOf(s[n]);r[n]=i>=0?i:0}}else if(o)for(n in t)r[n]=t[n];else{s=Ar;for(n=0;n<s.length;n++){i=a.indexOf(s[n]);r[n]=i>=0?i:0}}const c=e.differences;let l;if(c)for(n in c){const e=c[n];i=a.indexOf(e);if(-1===i){l||(l=Fr());const t=recoverGlyphName(e,l);t!==e&&(i=a.indexOf(t))}r[n]=i>=0?i:0}return r}function normalizeFontName(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\\s/g,"")}const _r=getLookupTableFactory((e=>{e[8211]=65074;e[8212]=65073;e[8229]=65072;e[8230]=65049;e[12289]=65041;e[12290]=65042;e[12296]=65087;e[12297]=65088;e[12298]=65085;e[12299]=65086;e[12300]=65089;e[12301]=65090;e[12302]=65091;e[12303]=65092;e[12304]=65083;e[12305]=65084;e[12308]=65081;e[12309]=65082;e[12310]=65047;e[12311]=65048;e[65103]=65076;e[65281]=65045;e[65288]=65077;e[65289]=65078;e[65292]=65040;e[65306]=65043;e[65307]=65044;e[65311]=65046;e[65339]=65095;e[65341]=65096;e[65343]=65075;e[65371]=65079;e[65373]=65080}));const Ur=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],Xr=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],qr=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"],Hr=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],Wr=391,zr=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],$r=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];class CFFParser{constructor(e,t,a){this.bytes=e.getBytes();this.properties=t;this.seacAnalysisEnabled=!!a}parse(){const e=this.properties,t=new CFF;this.cff=t;const a=this.parseHeader(),r=this.parseIndex(a.endPos),i=this.parseIndex(r.endPos),n=this.parseIndex(i.endPos),s=this.parseIndex(n.endPos),o=this.parseDict(i.obj.get(0)),c=this.createDict(CFFTopDict,o,t.strings);t.header=a.obj;t.names=this.parseNameIndex(r.obj);t.strings=this.parseStringIndex(n.obj);t.topDict=c;t.globalSubrIndex=s.obj;this.parsePrivateDict(t.topDict);t.isCIDFont=c.hasName("ROS");const l=c.getByName("CharStrings"),h=this.parseIndex(l).obj,u=c.getByName("FontMatrix");u&&(e.fontMatrix=u);const d=c.getByName("FontBBox");if(d){e.ascent=Math.max(d[3],d[1]);e.descent=Math.min(d[1],d[3]);e.ascentScaled=!0}let f,g;if(t.isCIDFont){const e=this.parseIndex(c.getByName("FDArray")).obj;for(let a=0,r=e.count;a<r;++a){const r=e.get(a),i=this.createDict(CFFTopDict,this.parseDict(r),t.strings);this.parsePrivateDict(i);t.fdArray.push(i)}g=null;f=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!0);t.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),h.count)}else{f=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!1);g=this.parseEncoding(c.getByName("Encoding"),e,t.strings,f.charset)}t.charset=f;t.encoding=g;const p=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:s.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});t.charStrings=p.charStrings;t.seacs=p.seacs;t.widths=p.widths;return t}parseHeader(){let e=this.bytes;const t=e.length;let a=0;for(;a<t&&1!==e[a];)++a;if(a>=t)throw new FormatError("Invalid CFF header");if(0!==a){info("cff data is shifted");e=e.subarray(a);this.bytes=e}const r=e[0],i=e[1],n=e[2],s=e[3];return{obj:new CFFHeader(r,i,n,s),endPos:n}}parseDict(e){let t=0;function parseOperand(){let a=e[t++];if(30===a)return function parseFloatOperand(){let a="";const r=15,i=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],n=e.length;for(;t<n;){const n=e[t++],s=n>>4,o=15&n;if(s===r)break;a+=i[s];if(o===r)break;a+=i[o]}return parseFloat(a)}();if(28===a){a=readInt16(e,t);t+=2;return a}if(29===a){a=e[t++];a=a<<8|e[t++];a=a<<8|e[t++];a=a<<8|e[t++];return a}if(a>=32&&a<=246)return a-139;if(a>=247&&a<=250)return 256*(a-247)+e[t++]+108;if(a>=251&&a<=254)return-256*(a-251)-e[t++]-108;warn(\'CFFParser_parseDict: "\'+a+\'" is a reserved command.\');return NaN}let a=[];const r=[];t=0;const i=e.length;for(;t<i;){let i=e[t];if(i<=21){12===i&&(i=i<<8|e[++t]);r.push([i,a]);a=[];++t}else a.push(parseOperand())}return r}parseIndex(e){const t=new CFFIndex,a=this.bytes,r=a[e++]<<8|a[e++],i=[];let n,s,o=e;if(0!==r){const t=a[e++],c=e+(r+1)*t-1;for(n=0,s=r+1;n<s;++n){let r=0;for(let i=0;i<t;++i){r<<=8;r+=a[e++]}i.push(c+r)}o=i[r]}for(n=0,s=i.length-1;n<s;++n){const e=i[n],r=i[n+1];t.add(a.subarray(e,r))}return{obj:t,endPos:o}}parseNameIndex(e){const t=[];for(let a=0,r=e.count;a<r;++a){const r=e.get(a);t.push(bytesToString(r))}return t}parseStringIndex(e){const t=new CFFStrings;for(let a=0,r=e.count;a<r;++a){const r=e.get(a);t.add(bytesToString(r))}return t}createDict(e,t,a){const r=new e(a);for(const[e,a]of t)r.setByKey(e,a);return r}parseCharString(e,t,a,r){if(!t||e.callDepth>10)return!1;let i=e.stackSize;const n=e.stack;let s=t.length;for(let o=0;o<s;){const c=t[o++];let l=null;if(12===c){const e=t[o++];if(0===e){t[o-2]=139;t[o-1]=22;i=0}else l=$r[e]}else if(28===c){n[i]=readInt16(t,o);o+=2;i++}else if(14===c){if(i>=4){i-=4;if(this.seacAnalysisEnabled){e.seac=n.slice(i,i+4);return!1}}l=zr[c]}else if(c>=32&&c<=246){n[i]=c-139;i++}else if(c>=247&&c<=254){n[i]=c<251?(c-247<<8)+t[o]+108:-(c-251<<8)-t[o]-108;o++;i++}else if(255===c){n[i]=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])/65536;o+=4;i++}else if(19===c||20===c){e.hints+=i>>1;if(0===e.hints){t.copyWithin(o-1,o,-1);o-=1;s-=1;continue}o+=e.hints+7>>3;i%=2;l=zr[c]}else{if(10===c||29===c){const t=10===c?a:r;if(!t){l=zr[c];warn("Missing subrsIndex for "+l.id);return!1}let s=32768;t.count<1240?s=107:t.count<33900&&(s=1131);const o=n[--i]+s;if(o<0||o>=t.count||isNaN(o)){l=zr[c];warn("Out of bounds subrIndex for "+l.id);return!1}e.stackSize=i;e.callDepth++;if(!this.parseCharString(e,t.get(o),a,r))return!1;e.callDepth--;i=e.stackSize;continue}if(11===c){e.stackSize=i;return!0}if(0===c&&o===t.length){t[o-1]=14;l=zr[14]}else{if(9===c){t.copyWithin(o-1,o,-1);o-=1;s-=1;continue}l=zr[c]}}if(l){if(l.stem){e.hints+=i>>1;if(3===c||23===c)e.hasVStems=!0;else if(e.hasVStems&&(1===c||18===c)){warn("CFF stem hints are in wrong order");t[o-1]=1===c?3:23}}if("min"in l&&!e.undefStack&&i<l.min){warn("Not enough parameters for "+l.id+"; actual: "+i+", expected: "+l.min);if(0===i){t[o-1]=14;return!0}return!1}if(e.firstStackClearing&&l.stackClearing){e.firstStackClearing=!1;i-=l.min;i>=2&&l.stem?i%=2:i>1&&warn("Found too many parameters for stack-clearing command");i>0&&(e.width=n[i-1])}if("stackDelta"in l){"stackFn"in l&&l.stackFn(n,i);i+=l.stackDelta}else if(l.stackClearing)i=0;else if(l.resetStack){i=0;e.undefStack=!1}else if(l.undefStack){i=0;e.undefStack=!0;e.firstStackClearing=!1}}}s<t.length&&t.fill(14,s);e.stackSize=i;return!0}parseCharStrings({charStrings:e,localSubrIndex:t,globalSubrIndex:a,fdSelect:r,fdArray:i,privateDict:n}){const s=[],o=[],c=e.count;for(let l=0;l<c;l++){const c=e.get(l),h={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let u=!0,d=null,f=n;if(r&&i.length){const e=r.getFDIndex(l);if(-1===e){warn("Glyph index is not in fd select.");u=!1}if(e>=i.length){warn("Invalid fd index for glyph index.");u=!1}if(u){f=i[e].privateDict;d=f.subrsIndex}}else t&&(d=t);u&&(u=this.parseCharString(h,c,d,a));if(null!==h.width){const e=f.getByName("nominalWidthX");o[l]=e+h.width}else{const e=f.getByName("defaultWidthX");o[l]=e}null!==h.seac&&(s[l]=h.seac);u||e.set(l,new Uint8Array([14]))}return{charStrings:e,seacs:s,widths:o}}emptyPrivateDictionary(e){const t=this.createDict(CFFPrivateDict,[],e.strings);e.setByKey(18,[0,0]);e.privateDict=t}parsePrivateDict(e){if(!e.hasName("Private")){this.emptyPrivateDictionary(e);return}const t=e.getByName("Private");if(!Array.isArray(t)||2!==t.length){e.removeByName("Private");return}const a=t[0],r=t[1];if(0===a||r>=this.bytes.length){this.emptyPrivateDictionary(e);return}const i=r+a,n=this.bytes.subarray(r,i),s=this.parseDict(n),o=this.createDict(CFFPrivateDict,s,e.strings);e.privateDict=o;0===o.getByName("ExpansionFactor")&&o.setByName("ExpansionFactor",.06);if(!o.getByName("Subrs"))return;const c=o.getByName("Subrs"),l=r+c;if(0===c||l>=this.bytes.length){this.emptyPrivateDictionary(e);return}const h=this.parseIndex(l);o.subrsIndex=h.obj}parseCharsets(e,t,a,r){if(0===e)return new CFFCharset(!0,Kr.ISO_ADOBE,Ur);if(1===e)return new CFFCharset(!0,Kr.EXPERT,Xr);if(2===e)return new CFFCharset(!0,Kr.EXPERT_SUBSET,qr);const i=this.bytes,n=e,s=i[e++],o=[r?0:".notdef"];let c,l,h;t-=1;switch(s){case 0:for(h=0;h<t;h++){c=i[e++]<<8|i[e++];o.push(r?c:a.get(c))}break;case 1:for(;o.length<=t;){c=i[e++]<<8|i[e++];l=i[e++];for(h=0;h<=l;h++)o.push(r?c++:a.get(c++))}break;case 2:for(;o.length<=t;){c=i[e++]<<8|i[e++];l=i[e++]<<8|i[e++];for(h=0;h<=l;h++)o.push(r?c++:a.get(c++))}break;default:throw new FormatError("Unknown charset format")}const u=e,d=i.subarray(n,u);return new CFFCharset(!1,s,o,d)}parseEncoding(e,t,a,r){const i=Object.create(null),n=this.bytes;let s,o,c,l=!1,h=null;if(0===e||1===e){l=!0;s=e;const t=e?wr:Ar;for(o=0,c=r.length;o<c;o++){const e=t.indexOf(r[o]);-1!==e&&(i[e]=o)}}else{const t=e;s=n[e++];switch(127&s){case 0:const t=n[e++];for(o=1;o<=t;o++)i[n[e++]]=o;break;case 1:const a=n[e++];let r=1;for(o=0;o<a;o++){const t=n[e++],a=n[e++];for(let e=t;e<=t+a;e++)i[e]=r++}break;default:throw new FormatError(`Unknown encoding format: ${s} in CFF`)}const c=e;if(128&s){n[t]&=127;!function readSupplement(){const t=n[e++];for(o=0;o<t;o++){const t=n[e++],s=(n[e++]<<8)+(255&n[e++]);i[t]=r.indexOf(a.get(s))}}()}h=n.subarray(t,c)}s&=127;return new CFFEncoding(l,s,i,h)}parseFDSelect(e,t){const a=this.bytes,r=a[e++],i=[];let n;switch(r){case 0:for(n=0;n<t;++n){const t=a[e++];i.push(t)}break;case 3:const s=a[e++]<<8|a[e++];for(n=0;n<s;++n){let t=a[e++]<<8|a[e++];if(0===n&&0!==t){warn("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");t=0}const r=a[e++],s=a[e]<<8|a[e+1];for(let e=t;e<s;++e)i.push(r)}e+=2;break;default:throw new FormatError(`parseFDSelect: Unknown format "${r}".`)}if(i.length!==t)throw new FormatError("parseFDSelect: Invalid font data.");return new CFFFDSelect(r,i)}}class CFF{constructor(){this.header=null;this.names=[];this.topDict=null;this.strings=new CFFStrings;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}duplicateFirstGlyph(){if(this.charStrings.count>=65535){warn("Not enough space in charstrings to duplicate first glyph.");return}const e=this.charStrings.get(0);this.charStrings.add(e);this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){if(e<0||e>=this.charStrings.count)return!1;return this.charStrings.get(e).length>0}}class CFFHeader{constructor(e,t,a,r){this.major=e;this.minor=t;this.hdrSize=a;this.offSize=r}}class CFFStrings{constructor(){this.strings=[]}get(e){return e>=0&&e<=390?Hr[e]:e-Wr<=this.strings.length?this.strings[e-Wr]:Hr[0]}getSID(e){let t=Hr.indexOf(e);if(-1!==t)return t;t=this.strings.indexOf(e);return-1!==t?t+Wr:-1}add(e){this.strings.push(e)}get count(){return this.strings.length}}class CFFIndex{constructor(){this.objects=[];this.length=0}add(e){this.length+=e.length;this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length;this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}class CFFDict{constructor(e,t){this.keyToNameMap=e.keyToNameMap;this.nameToKeyMap=e.nameToKeyMap;this.defaults=e.defaults;this.types=e.types;this.opcodes=e.opcodes;this.order=e.order;this.strings=t;this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(0===t.length)return!0;for(const a of t)if(isNaN(a)){warn(`Invalid CFFDict value: "${t}" for key "${e}".`);return!0}const a=this.types[e];"num"!==a&&"sid"!==a&&"offset"!==a||(t=t[0]);this.values[e]=t;return!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new FormatError(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){if(!(e in this.nameToKeyMap))throw new FormatError(`Invalid dictionary name ${e}"`);const t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){const t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const a of e){const e=Array.isArray(a[0])?(a[0][0]<<8)+a[0][1]:a[0];t.keyToNameMap[e]=a[1];t.nameToKeyMap[a[1]]=e;t.types[e]=a[2];t.defaults[e]=a[3];t.opcodes[e]=Array.isArray(a[0])?a[0]:[a[0]];t.order.push(e)}return t}}const Gr=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class CFFTopDict extends CFFDict{static get tables(){return shadow(this,"tables",this.createTables(Gr))}constructor(e){super(CFFTopDict.tables,e);this.privateDict=null}}const Vr=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class CFFPrivateDict extends CFFDict{static get tables(){return shadow(this,"tables",this.createTables(Vr))}constructor(e){super(CFFPrivateDict.tables,e);this.subrsIndex=null}}const Kr={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class CFFCharset{constructor(e,t,a,r){this.predefined=e;this.format=t;this.charset=a;this.raw=r}}class CFFEncoding{constructor(e,t,a,r){this.predefined=e;this.format=t;this.encoding=a;this.raw=r}}class CFFFDSelect{constructor(e,t){this.format=e;this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}class CFFOffsetTracker{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new FormatError(`Already tracking location of ${e}`);this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,a){if(!(e in this.offsets))throw new FormatError(`Not tracking location of ${e}`);const r=a.data,i=this.offsets[e];for(let e=0,a=t.length;e<a;++e){const a=5*e+i,n=a+1,s=a+2,o=a+3,c=a+4;if(29!==r[a]||0!==r[n]||0!==r[s]||0!==r[o]||0!==r[c])throw new FormatError("writing to an offset that is not empty");const l=t[e];r[a]=29;r[n]=l>>24&255;r[s]=l>>16&255;r[o]=l>>8&255;r[c]=255&l}}}class CFFCompiler{constructor(e){this.cff=e}compile(){const e=this.cff,t={data:[],length:0,add(e){try{this.data.push(...e)}catch{this.data=this.data.concat(e)}this.length=this.data.length}},a=this.compileHeader(e.header);t.add(a);const r=this.compileNameIndex(e.names);t.add(r);if(e.isCIDFont&&e.topDict.hasName("FontMatrix")){const t=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(const a of e.fdArray){let e=t.slice(0);a.hasName("FontMatrix")&&(e=Util.transform(e,a.getByName("FontMatrix")));a.setByName("FontMatrix",e)}}const i=e.topDict.getByName("XUID");i?.length>16&&e.topDict.removeByName("XUID");e.topDict.setByName("charset",0);let n=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(n.output);const s=n.trackers[0],o=this.compileStringIndex(e.strings.strings);t.add(o);const c=this.compileIndex(e.globalSubrIndex);t.add(c);if(e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)s.setEntryLocation("Encoding",[e.encoding.format],t);else{const a=this.compileEncoding(e.encoding);s.setEntryLocation("Encoding",[t.length],t);t.add(a)}const l=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);s.setEntryLocation("charset",[t.length],t);t.add(l);const h=this.compileCharStrings(e.charStrings);s.setEntryLocation("CharStrings",[t.length],t);t.add(h);if(e.isCIDFont){s.setEntryLocation("FDSelect",[t.length],t);const a=this.compileFDSelect(e.fdSelect);t.add(a);n=this.compileTopDicts(e.fdArray,t.length,!0);s.setEntryLocation("FDArray",[t.length],t);t.add(n.output);const r=n.trackers;this.compilePrivateDicts(e.fdArray,r,t)}this.compilePrivateDicts([e.topDict],[s],t);t.add([0]);return t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return shadow(this,"EncodeFloatRegExp",/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();const a=CFFCompiler.EncodeFloatRegExp.exec(t);if(a){const r=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length));t=(Math.round(e*r)/r).toString()}let r,i,n="";for(r=0,i=t.length;r<i;++r){const e=t[r];n+="e"===e?"-"===t[++r]?"c":"b":"."===e?"a":"-"===e?"e":e}n+=1&n.length?"f":"ff";const s=[30];for(r=0,i=n.length;r<i;r+=2)s.push(parseInt(n.substring(r,r+2),16));return s}encodeInteger(e){let t;t=e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e];return t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){const t=new CFFIndex;for(const a of e){const e=Math.min(a.length,127);let r=new Array(e);for(let t=0;t<e;t++){let e=a[t];(e<"!"||e>"~"||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_");r[t]=e}r=r.join("");""===r&&(r="Bad_Font_Name");t.add(stringToBytes(r))}return this.compileIndex(t)}compileTopDicts(e,t,a){const r=[];let i=new CFFIndex;for(const n of e){if(a){n.removeByName("CIDFontVersion");n.removeByName("CIDFontRevision");n.removeByName("CIDFontType");n.removeByName("CIDCount");n.removeByName("UIDBase")}const e=new CFFOffsetTracker,s=this.compileDict(n,e);r.push(e);i.add(s);e.offset(t)}i=this.compileIndex(i,r);return{trackers:r,output:i}}compilePrivateDicts(e,t,a){for(let r=0,i=e.length;r<i;++r){const i=e[r],n=i.privateDict;if(!n||!i.hasName("Private"))throw new FormatError("There must be a private dictionary.");const s=new CFFOffsetTracker,o=this.compileDict(n,s);let c=a.length;s.offset(c);o.length||(c=0);t[r].setEntryLocation("Private",[o.length,c],a);a.add(o);if(n.subrsIndex&&n.hasName("Subrs")){const e=this.compileIndex(n.subrsIndex);s.setEntryLocation("Subrs",[o.length],a);a.add(e)}}}compileDict(e,t){const a=[];for(const r of e.order){if(!(r in e.values))continue;let i=e.values[r],n=e.types[r];Array.isArray(n)||(n=[n]);Array.isArray(i)||(i=[i]);if(0!==i.length){for(let s=0,o=n.length;s<o;++s){const o=n[s],c=i[s];switch(o){case"num":case"sid":a.push(...this.encodeNumber(c));break;case"offset":const n=e.keyToNameMap[r];t.isTracking(n)||t.track(n,a.length);a.push(29,0,0,0,0);break;case"array":case"delta":a.push(...this.encodeNumber(c));for(let e=1,t=i.length;e<t;++e)a.push(...this.encodeNumber(i[e]));break;default:throw new FormatError(`Unknown data type of ${o}`)}}a.push(...e.opcodes[r])}}return a}compileStringIndex(e){const t=new CFFIndex;for(const a of e)t.add(stringToBytes(a));return this.compileIndex(t)}compileCharStrings(e){const t=new CFFIndex;for(let a=0;a<e.count;a++){const r=e.get(a);0!==r.length?t.add(r):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}compileCharset(e,t,a,r){let i;const n=t-1;if(r){const e=n-1;i=new Uint8Array([2,0,1,e>>8&255,255&e])}else{i=new Uint8Array(1+2*n);i[0]=0;let t=0;const r=e.charset.length;let s=!1;for(let n=1;n<i.length;n+=2){let o=0;if(t<r){const r=e.charset[t++];o=a.getSID(r);if(-1===o){o=0;if(!s){s=!0;warn(`Couldn\'t find ${r} in CFF strings`)}}}i[n]=o>>8&255;i[n+1]=255&o}}return this.compileTypedArray(i)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(e){const t=e.format;let a,r;switch(t){case 0:a=new Uint8Array(1+e.fdSelect.length);a[0]=t;for(r=0;r<e.fdSelect.length;r++)a[r+1]=e.fdSelect[r];break;case 3:const i=0;let n=e.fdSelect[0];const s=[t,0,0,i>>8&255,255&i,n];for(r=1;r<e.fdSelect.length;r++){const t=e.fdSelect[r];if(t!==n){s.push(r>>8&255,255&r,t);n=t}}const o=(s.length-3)/3;s[1]=o>>8&255;s[2]=255&o;s.push(r>>8&255,255&r);a=new Uint8Array(s)}return this.compileTypedArray(a)}compileTypedArray(e){return Array.from(e)}compileIndex(e,t=[]){const a=e.objects,r=a.length;if(0===r)return[0,0];const i=[r>>8&255,255&r];let n,s,o=1;for(n=0;n<r;++n)o+=a[n].length;s=o<256?1:o<65536?2:o<16777216?3:4;i.push(s);let c=1;for(n=0;n<r+1;n++){1===s?i.push(255&c):2===s?i.push(c>>8&255,255&c):3===s?i.push(c>>16&255,c>>8&255,255&c):i.push(c>>>24&255,c>>16&255,c>>8&255,255&c);a[n]&&(c+=a[n].length)}for(n=0;n<r;n++){t[n]&&t[n].offset(i.length);i.push(...a[n])}return i}}const Jr=getLookupTableFactory((function(e){e["Times-Roman"]="Times-Roman";e.Helvetica="Helvetica";e.Courier="Courier";e.Symbol="Symbol";e["Times-Bold"]="Times-Bold";e["Helvetica-Bold"]="Helvetica-Bold";e["Courier-Bold"]="Courier-Bold";e.ZapfDingbats="ZapfDingbats";e["Times-Italic"]="Times-Italic";e["Helvetica-Oblique"]="Helvetica-Oblique";e["Courier-Oblique"]="Courier-Oblique";e["Times-BoldItalic"]="Times-BoldItalic";e["Helvetica-BoldOblique"]="Helvetica-BoldOblique";e["Courier-BoldOblique"]="Courier-BoldOblique";e.ArialNarrow="Helvetica";e["ArialNarrow-Bold"]="Helvetica-Bold";e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique";e["ArialNarrow-Italic"]="Helvetica-Oblique";e.ArialBlack="Helvetica";e["ArialBlack-Bold"]="Helvetica-Bold";e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique";e["ArialBlack-Italic"]="Helvetica-Oblique";e["Arial-Black"]="Helvetica";e["Arial-Black-Bold"]="Helvetica-Bold";e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique";e["Arial-Black-Italic"]="Helvetica-Oblique";e.Arial="Helvetica";e["Arial-Bold"]="Helvetica-Bold";e["Arial-BoldItalic"]="Helvetica-BoldOblique";e["Arial-Italic"]="Helvetica-Oblique";e.ArialMT="Helvetica";e["Arial-BoldItalicMT"]="Helvetica-BoldOblique";e["Arial-BoldMT"]="Helvetica-Bold";e["Arial-ItalicMT"]="Helvetica-Oblique";e["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique";e["Arial-BoldMT-Bold"]="Helvetica-Bold";e["Arial-ItalicMT-Italic"]="Helvetica-Oblique";e.ArialUnicodeMS="Helvetica";e["ArialUnicodeMS-Bold"]="Helvetica-Bold";e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique";e["ArialUnicodeMS-Italic"]="Helvetica-Oblique";e["Courier-BoldItalic"]="Courier-BoldOblique";e["Courier-Italic"]="Courier-Oblique";e.CourierNew="Courier";e["CourierNew-Bold"]="Courier-Bold";e["CourierNew-BoldItalic"]="Courier-BoldOblique";e["CourierNew-Italic"]="Courier-Oblique";e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique";e["CourierNewPS-BoldMT"]="Courier-Bold";e["CourierNewPS-ItalicMT"]="Courier-Oblique";e.CourierNewPSMT="Courier";e["Helvetica-BoldItalic"]="Helvetica-BoldOblique";e["Helvetica-Italic"]="Helvetica-Oblique";e["HelveticaLTStd-Bold"]="Helvetica-Bold";e["Symbol-Bold"]="Symbol";e["Symbol-BoldItalic"]="Symbol";e["Symbol-Italic"]="Symbol";e.TimesNewRoman="Times-Roman";e["TimesNewRoman-Bold"]="Times-Bold";e["TimesNewRoman-BoldItalic"]="Times-BoldItalic";e["TimesNewRoman-Italic"]="Times-Italic";e.TimesNewRomanPS="Times-Roman";e["TimesNewRomanPS-Bold"]="Times-Bold";e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic";e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic";e["TimesNewRomanPS-BoldMT"]="Times-Bold";e["TimesNewRomanPS-Italic"]="Times-Italic";e["TimesNewRomanPS-ItalicMT"]="Times-Italic";e.TimesNewRomanPSMT="Times-Roman";e["TimesNewRomanPSMT-Bold"]="Times-Bold";e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic";e["TimesNewRomanPSMT-Italic"]="Times-Italic"})),Yr=getLookupTableFactory((function(e){e.Courier="FoxitFixed.pfb";e["Courier-Bold"]="FoxitFixedBold.pfb";e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb";e["Courier-Oblique"]="FoxitFixedItalic.pfb";e.Helvetica="LiberationSans-Regular.ttf";e["Helvetica-Bold"]="LiberationSans-Bold.ttf";e["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf";e["Helvetica-Oblique"]="LiberationSans-Italic.ttf";e["Times-Roman"]="FoxitSerif.pfb";e["Times-Bold"]="FoxitSerifBold.pfb";e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb";e["Times-Italic"]="FoxitSerifItalic.pfb";e.Symbol="FoxitSymbol.pfb";e.ZapfDingbats="FoxitDingbats.pfb";e["LiberationSans-Regular"]="LiberationSans-Regular.ttf";e["LiberationSans-Bold"]="LiberationSans-Bold.ttf";e["LiberationSans-Italic"]="LiberationSans-Italic.ttf";e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"})),Zr=getLookupTableFactory((function(e){e.Calibri="Helvetica";e["Calibri-Bold"]="Helvetica-Bold";e["Calibri-BoldItalic"]="Helvetica-BoldOblique";e["Calibri-Italic"]="Helvetica-Oblique";e.CenturyGothic="Helvetica";e["CenturyGothic-Bold"]="Helvetica-Bold";e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique";e["CenturyGothic-Italic"]="Helvetica-Oblique";e.ComicSansMS="Comic Sans MS";e["ComicSansMS-Bold"]="Comic Sans MS-Bold";e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic";e["ComicSansMS-Italic"]="Comic Sans MS-Italic";e.GillSansMT="Helvetica";e["GillSansMT-Bold"]="Helvetica-Bold";e["GillSansMT-BoldItalic"]="Helvetica-BoldOblique";e["GillSansMT-Italic"]="Helvetica-Oblique";e.Impact="Helvetica";e["ItcSymbol-Bold"]="Helvetica-Bold";e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique";e["ItcSymbol-Book"]="Helvetica";e["ItcSymbol-BookItalic"]="Helvetica-Oblique";e["ItcSymbol-Medium"]="Helvetica";e["ItcSymbol-MediumItalic"]="Helvetica-Oblique";e.LucidaConsole="Courier";e["LucidaConsole-Bold"]="Courier-Bold";e["LucidaConsole-BoldItalic"]="Courier-BoldOblique";e["LucidaConsole-Italic"]="Courier-Oblique";e["LucidaSans-Demi"]="Helvetica-Bold";e["MS-Gothic"]="MS Gothic";e["MS-Gothic-Bold"]="MS Gothic-Bold";e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic";e["MS-Gothic-Italic"]="MS Gothic-Italic";e["MS-Mincho"]="MS Mincho";e["MS-Mincho-Bold"]="MS Mincho-Bold";e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic";e["MS-Mincho-Italic"]="MS Mincho-Italic";e["MS-PGothic"]="MS PGothic";e["MS-PGothic-Bold"]="MS PGothic-Bold";e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic";e["MS-PGothic-Italic"]="MS PGothic-Italic";e["MS-PMincho"]="MS PMincho";e["MS-PMincho-Bold"]="MS PMincho-Bold";e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic";e["MS-PMincho-Italic"]="MS PMincho-Italic";e.NuptialScript="Times-Italic";e.SegoeUISymbol="Helvetica"})),Qr=getLookupTableFactory((function(e){e["Adobe Jenson"]=!0;e["Adobe Text"]=!0;e.Albertus=!0;e.Aldus=!0;e.Alexandria=!0;e.Algerian=!0;e["American Typewriter"]=!0;e.Antiqua=!0;e.Apex=!0;e.Arno=!0;e.Aster=!0;e.Aurora=!0;e.Baskerville=!0;e.Bell=!0;e.Bembo=!0;e["Bembo Schoolbook"]=!0;e.Benguiat=!0;e["Berkeley Old Style"]=!0;e["Bernhard Modern"]=!0;e["Berthold City"]=!0;e.Bodoni=!0;e["Bauer Bodoni"]=!0;e["Book Antiqua"]=!0;e.Bookman=!0;e["Bordeaux Roman"]=!0;e["Californian FB"]=!0;e.Calisto=!0;e.Calvert=!0;e.Capitals=!0;e.Cambria=!0;e.Cartier=!0;e.Caslon=!0;e.Catull=!0;e.Centaur=!0;e["Century Old Style"]=!0;e["Century Schoolbook"]=!0;e.Chaparral=!0;e["Charis SIL"]=!0;e.Cheltenham=!0;e["Cholla Slab"]=!0;e.Clarendon=!0;e.Clearface=!0;e.Cochin=!0;e.Colonna=!0;e["Computer Modern"]=!0;e["Concrete Roman"]=!0;e.Constantia=!0;e["Cooper Black"]=!0;e.Corona=!0;e.Ecotype=!0;e.Egyptienne=!0;e.Elephant=!0;e.Excelsior=!0;e.Fairfield=!0;e["FF Scala"]=!0;e.Folkard=!0;e.Footlight=!0;e.FreeSerif=!0;e["Friz Quadrata"]=!0;e.Garamond=!0;e.Gentium=!0;e.Georgia=!0;e.Gloucester=!0;e["Goudy Old Style"]=!0;e["Goudy Schoolbook"]=!0;e["Goudy Pro Font"]=!0;e.Granjon=!0;e["Guardian Egyptian"]=!0;e.Heather=!0;e.Hercules=!0;e["High Tower Text"]=!0;e.Hiroshige=!0;e["Hoefler Text"]=!0;e["Humana Serif"]=!0;e.Imprint=!0;e["Ionic No. 5"]=!0;e.Janson=!0;e.Joanna=!0;e.Korinna=!0;e.Lexicon=!0;e.LiberationSerif=!0;e["Liberation Serif"]=!0;e["Linux Libertine"]=!0;e.Literaturnaya=!0;e.Lucida=!0;e["Lucida Bright"]=!0;e.Melior=!0;e.Memphis=!0;e.Miller=!0;e.Minion=!0;e.Modern=!0;e["Mona Lisa"]=!0;e["Mrs Eaves"]=!0;e["MS Serif"]=!0;e["Museo Slab"]=!0;e["New York"]=!0;e["Nimbus Roman"]=!0;e["NPS Rawlinson Roadway"]=!0;e.NuptialScript=!0;e.Palatino=!0;e.Perpetua=!0;e.Plantin=!0;e["Plantin Schoolbook"]=!0;e.Playbill=!0;e["Poor Richard"]=!0;e["Rawlinson Roadway"]=!0;e.Renault=!0;e.Requiem=!0;e.Rockwell=!0;e.Roman=!0;e["Rotis Serif"]=!0;e.Sabon=!0;e.Scala=!0;e.Seagull=!0;e.Sistina=!0;e.Souvenir=!0;e.STIX=!0;e["Stone Informal"]=!0;e["Stone Serif"]=!0;e.Sylfaen=!0;e.Times=!0;e.Trajan=!0;e["Trinité"]=!0;e["Trump Mediaeval"]=!0;e.Utopia=!0;e["Vale Type"]=!0;e["Bitstream Vera"]=!0;e["Vera Serif"]=!0;e.Versailles=!0;e.Wanted=!0;e.Weiss=!0;e["Wide Latin"]=!0;e.Windsor=!0;e.XITS=!0})),ei=getLookupTableFactory((function(e){e.Dingbats=!0;e.Symbol=!0;e.ZapfDingbats=!0;e.Wingdings=!0;e["Wingdings-Bold"]=!0;e["Wingdings-Regular"]=!0})),ti=getLookupTableFactory((function(e){e[2]=10;e[3]=32;e[4]=33;e[5]=34;e[6]=35;e[7]=36;e[8]=37;e[9]=38;e[10]=39;e[11]=40;e[12]=41;e[13]=42;e[14]=43;e[15]=44;e[16]=45;e[17]=46;e[18]=47;e[19]=48;e[20]=49;e[21]=50;e[22]=51;e[23]=52;e[24]=53;e[25]=54;e[26]=55;e[27]=56;e[28]=57;e[29]=58;e[30]=894;e[31]=60;e[32]=61;e[33]=62;e[34]=63;e[35]=64;e[36]=65;e[37]=66;e[38]=67;e[39]=68;e[40]=69;e[41]=70;e[42]=71;e[43]=72;e[44]=73;e[45]=74;e[46]=75;e[47]=76;e[48]=77;e[49]=78;e[50]=79;e[51]=80;e[52]=81;e[53]=82;e[54]=83;e[55]=84;e[56]=85;e[57]=86;e[58]=87;e[59]=88;e[60]=89;e[61]=90;e[62]=91;e[63]=92;e[64]=93;e[65]=94;e[66]=95;e[67]=96;e[68]=97;e[69]=98;e[70]=99;e[71]=100;e[72]=101;e[73]=102;e[74]=103;e[75]=104;e[76]=105;e[77]=106;e[78]=107;e[79]=108;e[80]=109;e[81]=110;e[82]=111;e[83]=112;e[84]=113;e[85]=114;e[86]=115;e[87]=116;e[88]=117;e[89]=118;e[90]=119;e[91]=120;e[92]=121;e[93]=122;e[94]=123;e[95]=124;e[96]=125;e[97]=126;e[98]=196;e[99]=197;e[100]=199;e[101]=201;e[102]=209;e[103]=214;e[104]=220;e[105]=225;e[106]=224;e[107]=226;e[108]=228;e[109]=227;e[110]=229;e[111]=231;e[112]=233;e[113]=232;e[114]=234;e[115]=235;e[116]=237;e[117]=236;e[118]=238;e[119]=239;e[120]=241;e[121]=243;e[122]=242;e[123]=244;e[124]=246;e[125]=245;e[126]=250;e[127]=249;e[128]=251;e[129]=252;e[130]=8224;e[131]=176;e[132]=162;e[133]=163;e[134]=167;e[135]=8226;e[136]=182;e[137]=223;e[138]=174;e[139]=169;e[140]=8482;e[141]=180;e[142]=168;e[143]=8800;e[144]=198;e[145]=216;e[146]=8734;e[147]=177;e[148]=8804;e[149]=8805;e[150]=165;e[151]=181;e[152]=8706;e[153]=8721;e[154]=8719;e[156]=8747;e[157]=170;e[158]=186;e[159]=8486;e[160]=230;e[161]=248;e[162]=191;e[163]=161;e[164]=172;e[165]=8730;e[166]=402;e[167]=8776;e[168]=8710;e[169]=171;e[170]=187;e[171]=8230;e[179]=8220;e[180]=8221;e[181]=8216;e[182]=8217;e[200]=193;e[203]=205;e[207]=211;e[210]=218;e[223]=711;e[224]=321;e[225]=322;e[226]=352;e[227]=353;e[228]=381;e[229]=382;e[233]=221;e[234]=253;e[252]=263;e[253]=268;e[254]=269;e[258]=258;e[260]=260;e[261]=261;e[265]=280;e[266]=281;e[267]=282;e[268]=283;e[269]=313;e[275]=323;e[276]=324;e[278]=328;e[283]=344;e[284]=345;e[285]=346;e[286]=347;e[292]=367;e[295]=377;e[296]=378;e[298]=380;e[305]=963;e[306]=964;e[307]=966;e[308]=8215;e[309]=8252;e[310]=8319;e[311]=8359;e[312]=8592;e[313]=8593;e[337]=9552;e[493]=1039;e[494]=1040;e[570]=1040;e[571]=1041;e[572]=1042;e[573]=1043;e[574]=1044;e[575]=1045;e[576]=1046;e[577]=1047;e[578]=1048;e[579]=1049;e[580]=1050;e[581]=1051;e[582]=1052;e[583]=1053;e[584]=1054;e[585]=1055;e[586]=1056;e[587]=1057;e[588]=1058;e[589]=1059;e[590]=1060;e[591]=1061;e[592]=1062;e[593]=1063;e[594]=1064;e[595]=1065;e[596]=1066;e[597]=1067;e[598]=1068;e[599]=1069;e[600]=1070;e[672]=1488;e[673]=1489;e[674]=1490;e[675]=1491;e[676]=1492;e[677]=1493;e[678]=1494;e[679]=1495;e[680]=1496;e[681]=1497;e[682]=1498;e[683]=1499;e[684]=1500;e[685]=1501;e[686]=1502;e[687]=1503;e[688]=1504;e[689]=1505;e[690]=1506;e[691]=1507;e[692]=1508;e[693]=1509;e[694]=1510;e[695]=1511;e[696]=1512;e[697]=1513;e[698]=1514;e[705]=1524;e[706]=8362;e[710]=64288;e[711]=64298;e[759]=1617;e[761]=1776;e[763]=1778;e[775]=1652;e[777]=1764;e[778]=1780;e[779]=1781;e[780]=1782;e[782]=771;e[783]=64726;e[786]=8363;e[788]=8532;e[790]=768;e[791]=769;e[792]=768;e[795]=803;e[797]=64336;e[798]=64337;e[799]=64342;e[800]=64343;e[801]=64344;e[802]=64345;e[803]=64362;e[804]=64363;e[805]=64364;e[2424]=7821;e[2425]=7822;e[2426]=7823;e[2427]=7824;e[2428]=7825;e[2429]=7826;e[2430]=7827;e[2433]=7682;e[2678]=8045;e[2679]=8046;e[2830]=1552;e[2838]=686;e[2840]=751;e[2842]=753;e[2843]=754;e[2844]=755;e[2846]=757;e[2856]=767;e[2857]=848;e[2858]=849;e[2862]=853;e[2863]=854;e[2864]=855;e[2865]=861;e[2866]=862;e[2906]=7460;e[2908]=7462;e[2909]=7463;e[2910]=7464;e[2912]=7466;e[2913]=7467;e[2914]=7468;e[2916]=7470;e[2917]=7471;e[2918]=7472;e[2920]=7474;e[2921]=7475;e[2922]=7476;e[2924]=7478;e[2925]=7479;e[2926]=7480;e[2928]=7482;e[2929]=7483;e[2930]=7484;e[2932]=7486;e[2933]=7487;e[2934]=7488;e[2936]=7490;e[2937]=7491;e[2938]=7492;e[2940]=7494;e[2941]=7495;e[2942]=7496;e[2944]=7498;e[2946]=7500;e[2948]=7502;e[2950]=7504;e[2951]=7505;e[2952]=7506;e[2954]=7508;e[2955]=7509;e[2956]=7510;e[2958]=7512;e[2959]=7513;e[2960]=7514;e[2962]=7516;e[2963]=7517;e[2964]=7518;e[2966]=7520;e[2967]=7521;e[2968]=7522;e[2970]=7524;e[2971]=7525;e[2972]=7526;e[2974]=7528;e[2975]=7529;e[2976]=7530;e[2978]=1537;e[2979]=1538;e[2980]=1539;e[2982]=1549;e[2983]=1551;e[2984]=1552;e[2986]=1554;e[2987]=1555;e[2988]=1556;e[2990]=1623;e[2991]=1624;e[2995]=1775;e[2999]=1791;e[3002]=64290;e[3003]=64291;e[3004]=64292;e[3006]=64294;e[3007]=64295;e[3008]=64296;e[3011]=1900;e[3014]=8223;e[3015]=8244;e[3017]=7532;e[3018]=7533;e[3019]=7534;e[3075]=7590;e[3076]=7591;e[3079]=7594;e[3080]=7595;e[3083]=7598;e[3084]=7599;e[3087]=7602;e[3088]=7603;e[3091]=7606;e[3092]=7607;e[3095]=7610;e[3096]=7611;e[3099]=7614;e[3100]=7615;e[3103]=7618;e[3104]=7619;e[3107]=8337;e[3108]=8338;e[3116]=1884;e[3119]=1885;e[3120]=1885;e[3123]=1886;e[3124]=1886;e[3127]=1887;e[3128]=1887;e[3131]=1888;e[3132]=1888;e[3135]=1889;e[3136]=1889;e[3139]=1890;e[3140]=1890;e[3143]=1891;e[3144]=1891;e[3147]=1892;e[3148]=1892;e[3153]=580;e[3154]=581;e[3157]=584;e[3158]=585;e[3161]=588;e[3162]=589;e[3165]=891;e[3166]=892;e[3169]=1274;e[3170]=1275;e[3173]=1278;e[3174]=1279;e[3181]=7622;e[3182]=7623;e[3282]=11799;e[3316]=578;e[3379]=42785;e[3393]=1159;e[3416]=8377})),ai=getLookupTableFactory((function(e){e[227]=322;e[264]=261;e[291]=346})),ri=getLookupTableFactory((function(e){e[1]=32;e[4]=65;e[5]=192;e[6]=193;e[9]=196;e[17]=66;e[18]=67;e[21]=268;e[24]=68;e[28]=69;e[29]=200;e[30]=201;e[32]=282;e[38]=70;e[39]=71;e[44]=72;e[47]=73;e[48]=204;e[49]=205;e[58]=74;e[60]=75;e[62]=76;e[68]=77;e[69]=78;e[75]=79;e[76]=210;e[80]=214;e[87]=80;e[89]=81;e[90]=82;e[92]=344;e[94]=83;e[97]=352;e[100]=84;e[104]=85;e[109]=220;e[115]=86;e[116]=87;e[121]=88;e[122]=89;e[124]=221;e[127]=90;e[129]=381;e[258]=97;e[259]=224;e[260]=225;e[263]=228;e[268]=261;e[271]=98;e[272]=99;e[273]=263;e[275]=269;e[282]=100;e[286]=101;e[287]=232;e[288]=233;e[290]=283;e[295]=281;e[296]=102;e[336]=103;e[346]=104;e[349]=105;e[350]=236;e[351]=237;e[361]=106;e[364]=107;e[367]=108;e[371]=322;e[373]=109;e[374]=110;e[381]=111;e[382]=242;e[383]=243;e[386]=246;e[393]=112;e[395]=113;e[396]=114;e[398]=345;e[400]=115;e[401]=347;e[403]=353;e[410]=116;e[437]=117;e[442]=252;e[448]=118;e[449]=119;e[454]=120;e[455]=121;e[457]=253;e[460]=122;e[462]=382;e[463]=380;e[853]=44;e[855]=58;e[856]=46;e[876]=47;e[878]=45;e[882]=45;e[894]=40;e[895]=41;e[896]=91;e[897]=93;e[923]=64;e[940]=163;e[1004]=48;e[1005]=49;e[1006]=50;e[1007]=51;e[1008]=52;e[1009]=53;e[1010]=54;e[1011]=55;e[1012]=56;e[1013]=57;e[1081]=37;e[1085]=43;e[1086]=45}));function getStandardFontName(e){const t=normalizeFontName(e);return Jr()[t]}function isKnownFontName(e){const t=normalizeFontName(e);return!!(Jr()[t]||Zr()[t]||Qr()[t]||ei()[t])}class ToUnicodeMap{constructor(e=[]){this._map=e}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].codePointAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const a in t)if(t[a]===e)return 0|a;return-1}amend(e){for(const t in e)this._map[t]=e[t]}}class IdentityToUnicodeMap{constructor(e,t){this.firstChar=e;this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,a=this.lastChar;t<=a;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){unreachable("Should not call amend()")}}class CFFFont{constructor(e,t){this.properties=t;const a=new CFFParser(e,t,Rr);this.cff=a.parse();this.cff.duplicateFirstGlyph();const r=new CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=r.compile()}catch{warn("Failed to compile font "+t.loadedName);this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,t=this.properties,{cidToGidMap:a,cMap:r}=t,i=e.charset.charset;let n,s;if(t.composite){let t,o;if(a?.length>0){t=Object.create(null);for(let e=0,r=a.length;e<r;e++){const r=a[e];void 0!==r&&(t[r]=e)}}n=Object.create(null);if(e.isCIDFont)for(s=0;s<i.length;s++){const e=i[s];o=r.charCodeOf(e);void 0!==t?.[o]&&(o=t[o]);n[o]=s}else for(s=0;s<e.charStrings.count;s++){o=r.charCodeOf(s);n[o]=s}return n}let o=e.encoding?e.encoding.encoding:null;t.isInternalFont&&(o=t.defaultEncoding);n=type1FontGlyphMapping(t,o,i);return n}hasGlyphId(e){return this.cff.hasGlyphId(e)}_createBuiltInEncoding(){const{charset:e,encoding:t}=this.cff;if(!e||!t)return;const a=e.charset,r=t.encoding,i=[];for(const e in r){const t=r[e];if(t>=0){const r=a[t];r&&(i[e]=r)}}i.length>0&&(this.properties.builtInEncoding=i)}}function getFloat214(e,t){return readInt16(e,t)/16384}function getSubroutineBias(e){const t=e.length;let a=32768;t<1240?a=107:t<33900&&(a=1131);return a}function parseCmap(e,t,a){const r=1===readUint16(e,t+2)?readUint32(e,t+8):readUint32(e,t+16),i=readUint16(e,t+r);let n,s,o;if(4===i){readUint16(e,t+r+2);const a=readUint16(e,t+r+6)>>1;s=t+r+14;n=[];for(o=0;o<a;o++,s+=2)n[o]={end:readUint16(e,s)};s+=2;for(o=0;o<a;o++,s+=2)n[o].start=readUint16(e,s);for(o=0;o<a;o++,s+=2)n[o].idDelta=readUint16(e,s);for(o=0;o<a;o++,s+=2){let t=readUint16(e,s);if(0!==t){n[o].ids=[];for(let a=0,r=n[o].end-n[o].start+1;a<r;a++){n[o].ids[a]=readUint16(e,s+t);t+=2}}}return n}if(12===i){const a=readUint32(e,t+r+12);s=t+r+16;n=[];for(o=0;o<a;o++){t=readUint32(e,s);n.push({start:t,end:readUint32(e,s+4),idDelta:readUint32(e,s+8)-t});s+=12}return n}throw new FormatError(`unsupported cmap: ${i}`)}function parseCff(e,t,a,r){const i=new CFFParser(new Stream(e,t,a-t),{},r).parse();return{glyphs:i.charStrings.objects,subrs:i.topDict.privateDict?.subrsIndex?.objects,gsubrs:i.globalSubrIndex?.objects,isCFFCIDFont:i.isCIDFont,fdSelect:i.fdSelect,fdArray:i.fdArray}}function lookupCmap(e,t){const a=t.codePointAt(0);let r=0,i=0,n=e.length-1;for(;i<n;){const t=i+n+1>>1;a<e[t].start?n=t-1:i=t}e[i].start<=a&&a<=e[i].end&&(r=e[i].idDelta+(e[i].ids?e[i].ids[a-e[i].start]:a)&65535);return{charCode:a,glyphId:r}}function compileGlyf(e,t,a){function moveTo(e,a){s&&t.add("L",s);s=[e,a];t.add("M",[e,a])}function lineTo(e,a){t.add("L",[e,a])}function quadraticCurveTo(e,a,r,i){t.add("Q",[e,a,r,i])}let r=0;const i=readInt16(e,r);let n,s=null,o=0,c=0;r+=10;if(i<0)do{n=readUint16(e,r);const i=readUint16(e,r+2);r+=4;let s,l;if(1&n){if(2&n){s=readInt16(e,r);l=readInt16(e,r+2)}else{s=readUint16(e,r);l=readUint16(e,r+2)}r+=4}else if(2&n){s=readInt8(e,r++);l=readInt8(e,r++)}else{s=e[r++];l=e[r++]}if(2&n){o=s;c=l}else{o=0;c=0}let h=1,u=1,d=0,f=0;if(8&n){h=u=getFloat214(e,r);r+=2}else if(64&n){h=getFloat214(e,r);u=getFloat214(e,r+2);r+=4}else if(128&n){h=getFloat214(e,r);d=getFloat214(e,r+2);f=getFloat214(e,r+4);u=getFloat214(e,r+6);r+=8}const g=a.glyphs[i];if(g){t.save();t.transform([h,d,f,u,o,c]);compileGlyf(g,t,a);t.restore()}}while(32&n);else{const t=[];let a,s;for(a=0;a<i;a++){t.push(readUint16(e,r));r+=2}r+=2+readUint16(e,r);const l=t.at(-1)+1,h=[];for(;h.length<l;){n=e[r++];let t=1;8&n&&(t+=e[r++]);for(;t-- >0;)h.push({flags:n})}for(a=0;a<l;a++){switch(18&h[a].flags){case 0:o+=readInt16(e,r);r+=2;break;case 2:o-=e[r++];break;case 18:o+=e[r++]}h[a].x=o}for(a=0;a<l;a++){switch(36&h[a].flags){case 0:c+=readInt16(e,r);r+=2;break;case 4:c-=e[r++];break;case 36:c+=e[r++]}h[a].y=c}let u=0;for(r=0;r<i;r++){const e=t[r],i=h.slice(u,e+1);if(1&i[0].flags)i.push(i[0]);else if(1&i.at(-1).flags)i.unshift(i.at(-1));else{const e={flags:1,x:(i[0].x+i.at(-1).x)/2,y:(i[0].y+i.at(-1).y)/2};i.unshift(e);i.push(e)}moveTo(i[0].x,i[0].y);for(a=1,s=i.length;a<s;a++)if(1&i[a].flags)lineTo(i[a].x,i[a].y);else if(1&i[a+1].flags){quadraticCurveTo(i[a].x,i[a].y,i[a+1].x,i[a+1].y);a++}else quadraticCurveTo(i[a].x,i[a].y,(i[a].x+i[a+1].x)/2,(i[a].y+i[a+1].y)/2);u=e+1}}}function compileCharString(e,t,a,r){function moveTo(e,a){c&&t.add("L",c);c=[e,a];t.add("M",[e,a])}function lineTo(e,a){t.add("L",[e,a])}function bezierCurveTo(e,a,r,i,n,s){t.add("C",[e,a,r,i,n,s])}const i=[];let n=0,s=0,o=0,c=null;!function parse(e){let c=0;for(;c<e.length;){let l,h,u,d,f,g,p,m,b,y=!1,w=e[c++];switch(w){case 1:case 3:case 18:case 23:o+=i.length>>1;y=!0;break;case 4:s+=i.pop();moveTo(n,s);y=!0;break;case 5:for(;i.length>0;){n+=i.shift();s+=i.shift();lineTo(n,s)}break;case 6:for(;i.length>0;){n+=i.shift();lineTo(n,s);if(0===i.length)break;s+=i.shift();lineTo(n,s)}break;case 7:for(;i.length>0;){s+=i.shift();lineTo(n,s);if(0===i.length)break;n+=i.shift();lineTo(n,s)}break;case 8:for(;i.length>0;){l=n+i.shift();u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+i.shift();bezierCurveTo(l,u,h,d,n,s)}break;case 10:m=i.pop();b=null;if(a.isCFFCIDFont){const e=a.fdSelect.getFDIndex(r);if(e>=0&&e<a.fdArray.length){const t=a.fdArray[e];let r;t.privateDict?.subrsIndex&&(r=t.privateDict.subrsIndex.objects);if(r){m+=getSubroutineBias(r);b=r[m]}}else warn("Invalid fd index for glyph index.")}else b=a.subrs[m+a.subrsBias];b&&parse(b);break;case 11:return;case 12:w=e[c++];switch(w){case 34:l=n+i.shift();h=l+i.shift();f=s+i.shift();n=h+i.shift();bezierCurveTo(l,s,h,f,n,f);l=n+i.shift();h=l+i.shift();n=h+i.shift();bezierCurveTo(l,f,h,s,n,s);break;case 35:l=n+i.shift();u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+i.shift();bezierCurveTo(l,u,h,d,n,s);l=n+i.shift();u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+i.shift();bezierCurveTo(l,u,h,d,n,s);i.pop();break;case 36:l=n+i.shift();f=s+i.shift();h=l+i.shift();g=f+i.shift();n=h+i.shift();bezierCurveTo(l,f,h,g,n,g);l=n+i.shift();h=l+i.shift();p=g+i.shift();n=h+i.shift();bezierCurveTo(l,g,h,p,n,s);break;case 37:const e=n,t=s;l=n+i.shift();u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+i.shift();bezierCurveTo(l,u,h,d,n,s);l=n+i.shift();u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h;s=d;Math.abs(n-e)>Math.abs(s-t)?n+=i.shift():s+=i.shift();bezierCurveTo(l,u,h,d,n,s);break;default:throw new FormatError(`unknown operator: 12 ${w}`)}break;case 14:if(i.length>=4){const e=i.pop(),r=i.pop();s=i.pop();n=i.pop();t.save();t.translate(n,s);let o=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[Ar[e]]));compileCharString(a.glyphs[o.glyphId],t,a,o.glyphId);t.restore();o=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[Ar[r]]));compileCharString(a.glyphs[o.glyphId],t,a,o.glyphId)}return;case 19:case 20:o+=i.length>>1;c+=o+7>>3;y=!0;break;case 21:s+=i.pop();n+=i.pop();moveTo(n,s);y=!0;break;case 22:n+=i.pop();moveTo(n,s);y=!0;break;case 24:for(;i.length>2;){l=n+i.shift();u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+i.shift();bezierCurveTo(l,u,h,d,n,s)}n+=i.shift();s+=i.shift();lineTo(n,s);break;case 25:for(;i.length>6;){n+=i.shift();s+=i.shift();lineTo(n,s)}l=n+i.shift();u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+i.shift();bezierCurveTo(l,u,h,d,n,s);break;case 26:i.length%2&&(n+=i.shift());for(;i.length>0;){l=n;u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h;s=d+i.shift();bezierCurveTo(l,u,h,d,n,s)}break;case 27:i.length%2&&(s+=i.shift());for(;i.length>0;){l=n+i.shift();u=s;h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d;bezierCurveTo(l,u,h,d,n,s)}break;case 28:i.push(readInt16(e,c));c+=2;break;case 29:m=i.pop()+a.gsubrsBias;b=a.gsubrs[m];b&&parse(b);break;case 30:for(;i.length>0;){l=n;u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+(1===i.length?i.shift():0);bezierCurveTo(l,u,h,d,n,s);if(0===i.length)break;l=n+i.shift();u=s;h=l+i.shift();d=u+i.shift();s=d+i.shift();n=h+(1===i.length?i.shift():0);bezierCurveTo(l,u,h,d,n,s)}break;case 31:for(;i.length>0;){l=n+i.shift();u=s;h=l+i.shift();d=u+i.shift();s=d+i.shift();n=h+(1===i.length?i.shift():0);bezierCurveTo(l,u,h,d,n,s);if(0===i.length)break;l=n;u=s+i.shift();h=l+i.shift();d=u+i.shift();n=h+i.shift();s=d+(1===i.length?i.shift():0);bezierCurveTo(l,u,h,d,n,s)}break;default:if(w<32)throw new FormatError(`unknown operator: ${w}`);if(w<247)i.push(w-139);else if(w<251)i.push(256*(w-247)+e[c++]+108);else if(w<255)i.push(256*-(w-251)-e[c++]-108);else{i.push((e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3])/65536);c+=4}}y&&(i.length=0)}}(e)}class Commands{cmds=[];transformStack=[];currentTransform=[1,0,0,1,0,0];add(e,t){if(t){const{currentTransform:a}=this;for(let e=0,r=t.length;e<r;e+=2)Util.applyTransform(t,a,e);this.cmds.push(`${e}${t.join(" ")}`)}else this.cmds.push(e)}transform(e){this.currentTransform=Util.transform(this.currentTransform,e)}translate(e,t){this.transform([1,0,0,1,e,t])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getSVG(){return this.cmds.join("")}}class CompiledFont{constructor(e){this.fontMatrix=e;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const{charCode:t,glyphId:a}=lookupCmap(this.cmap,e);let r,i=this.compiledGlyphs[a];if(void 0===i){try{i=this.compileGlyph(this.glyphs[a],a)}catch(e){i="";r=e}this.compiledGlyphs[a]=i}this.compiledCharCodeToGlyphId[t]??=a;if(r)throw r;return i}compileGlyph(e,a){if(!e?.length||14===e[0])return"";let r=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(a);if(e>=0&&e<this.fdArray.length){r=this.fdArray[e].getByName("FontMatrix")||t}else warn("Invalid fd index for glyph index.")}assert(isNumberArray(r,6),"Expected a valid fontMatrix.");const i=new Commands;i.transform(r.slice());this.compileGlyphImpl(e,i,a);i.add("Z");return i.getSVG()}compileGlyphImpl(){unreachable("Children classes should implement this.")}hasBuiltPath(e){const{charCode:t,glyphId:a}=lookupCmap(this.cmap,e);return void 0!==this.compiledGlyphs[a]&&void 0!==this.compiledCharCodeToGlyphId[t]}}class TrueTypeCompiled extends CompiledFont{constructor(e,t,a){super(a||[488e-6,0,0,488e-6,0,0]);this.glyphs=e;this.cmap=t}compileGlyphImpl(e,t){compileGlyf(e,t,this)}}class Type2Compiled extends CompiledFont{constructor(e,t,a){super(a||[.001,0,0,.001,0,0]);this.glyphs=e.glyphs;this.gsubrs=e.gsubrs||[];this.subrs=e.subrs||[];this.cmap=t;this.glyphNameMap=Fr();this.gsubrsBias=getSubroutineBias(this.gsubrs);this.subrsBias=getSubroutineBias(this.subrs);this.isCFFCIDFont=e.isCFFCIDFont;this.fdSelect=e.fdSelect;this.fdArray=e.fdArray}compileGlyphImpl(e,t,a){compileCharString(e,t,this,a)}}class FontRendererFactory{static create(e,t){const a=new Uint8Array(e.data);let r,i,n,s,o,c;const l=readUint16(a,4);for(let e=0,h=12;e<l;e++,h+=16){const e=bytesToString(a.subarray(h,h+4)),l=readUint32(a,h+8),u=readUint32(a,h+12);switch(e){case"cmap":r=parseCmap(a,l);break;case"glyf":i=a.subarray(l,l+u);break;case"loca":n=a.subarray(l,l+u);break;case"head":c=readUint16(a,l+18);o=readUint16(a,l+50);break;case"CFF ":s=parseCff(a,l,l+u,t)}}if(i){const t=c?[1/c,0,0,1/c,0,0]:e.fontMatrix;return new TrueTypeCompiled(function parseGlyfTable(e,t,a){let r,i;if(a){r=4;i=readUint32}else{r=2;i=(e,t)=>2*readUint16(e,t)}const n=[];let s=i(t,0);for(let a=r;a<t.length;a+=r){const r=i(t,a);n.push(e.subarray(s,r));s=r}return n}(i,n,o),r,t)}return new Type2Compiled(s,r,e.fontMatrix)}}const ii=getLookupTableFactory((function(e){e.Courier=600;e["Courier-Bold"]=600;e["Courier-BoldOblique"]=600;e["Courier-Oblique"]=600;e.Helvetica=getLookupTableFactory((function(e){e.space=278;e.exclam=278;e.quotedbl=355;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=667;e.quoteright=222;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=278;e.semicolon=278;e.less=584;e.equal=584;e.greater=584;e.question=556;e.at=1015;e.A=667;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=500;e.K=667;e.L=556;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=278;e.backslash=278;e.bracketright=278;e.asciicircum=469;e.underscore=556;e.quoteleft=222;e.a=556;e.b=556;e.c=500;e.d=556;e.e=556;e.f=278;e.g=556;e.h=556;e.i=222;e.j=222;e.k=500;e.l=222;e.m=833;e.n=556;e.o=556;e.p=556;e.q=556;e.r=333;e.s=500;e.t=278;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=500;e.braceleft=334;e.bar=260;e.braceright=334;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=191;e.quotedblleft=333;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=537;e.bullet=350;e.quotesinglbase=222;e.quotedblbase=333;e.quotedblright=333;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=556;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=222;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=556;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=667;e.aacute=556;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=500;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=500;e.aring=556;e.Ncommaaccent=722;e.lacute=222;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=500;e.scedilla=500;e.iacute=278;e.lozenge=471;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=556;e.Amacron=667;e.rcaron=333;e.ccedilla=500;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=643;e.Umacron=722;e.uring=556;e.threesuperior=333;e.Ograve=778;e.Agrave=667;e.Abreve=667;e.multiply=584;e.uacute=556;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=500;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=260;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=333;e.omacron=556;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=222;e.tcaron=317;e.eogonek=556;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=556;e.zacute=500;e.iogonek=222;e.Oacute=778;e.oacute=556;e.amacron=556;e.sacute=500;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=333;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=556;e.Eogonek=667;e.dcroat=556;e.threequarters=834;e.Scedilla=667;e.lcaron=299;e.Kcommaaccent=667;e.Lacute=556;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=556;e.onehalf=834;e.lessequal=549;e.ocircumflex=556;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=556;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=556;e.Ccaron=722;e.ugrave=556;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=556;e.Rcommaaccent=722;e.Lcommaaccent=556;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=500;e.minus=584;e.Icircumflex=278;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=584;e.odieresis=556;e.udieresis=556;e.notequal=549;e.gcommaaccent=556;e.eth=556;e.zcaron=500;e.ncommaaccent=556;e.onesuperior=333;e.imacron=278;e.Euro=556}));e["Helvetica-Bold"]=getLookupTableFactory((function(e){e.space=278;e.exclam=333;e.quotedbl=474;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=722;e.quoteright=278;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=333;e.semicolon=333;e.less=584;e.equal=584;e.greater=584;e.question=611;e.at=975;e.A=722;e.B=722;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=556;e.K=722;e.L=611;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=584;e.underscore=556;e.quoteleft=278;e.a=556;e.b=611;e.c=556;e.d=611;e.e=556;e.f=333;e.g=611;e.h=611;e.i=278;e.j=278;e.k=556;e.l=278;e.m=889;e.n=611;e.o=611;e.p=611;e.q=611;e.r=389;e.s=556;e.t=333;e.u=611;e.v=556;e.w=778;e.x=556;e.y=556;e.z=500;e.braceleft=389;e.bar=280;e.braceright=389;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=238;e.quotedblleft=500;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=611;e.fl=611;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=556;e.bullet=350;e.quotesinglbase=278;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=611;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=278;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=611;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=722;e.aacute=556;e.Ucircumflex=722;e.yacute=556;e.scommaaccent=556;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=611;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=556;e.aring=556;e.Ncommaaccent=722;e.lacute=278;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=556;e.scedilla=556;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=611;e.acircumflex=556;e.Amacron=722;e.rcaron=389;e.ccedilla=556;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=743;e.Umacron=722;e.uring=611;e.threesuperior=333;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=584;e.uacute=611;e.Tcaron=611;e.partialdiff=494;e.ydieresis=556;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=556;e.nacute=611;e.umacron=611;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=280;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=611;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=389;e.eogonek=556;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=556;e.zacute=500;e.iogonek=278;e.Oacute=778;e.oacute=611;e.amacron=556;e.sacute=556;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=611;e.twosuperior=333;e.Odieresis=778;e.mu=611;e.igrave=278;e.ohungarumlaut=611;e.Eogonek=667;e.dcroat=611;e.threequarters=834;e.Scedilla=667;e.lcaron=400;e.Kcommaaccent=722;e.Lacute=611;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=611;e.onehalf=834;e.lessequal=549;e.ocircumflex=611;e.ntilde=611;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=611;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=611;e.Ccaron=722;e.ugrave=611;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=611;e.Rcommaaccent=722;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=556;e.minus=584;e.Icircumflex=278;e.ncaron=611;e.tcommaaccent=333;e.logicalnot=584;e.odieresis=611;e.udieresis=611;e.notequal=549;e.gcommaaccent=611;e.eth=611;e.zcaron=500;e.ncommaaccent=611;e.onesuperior=333;e.imacron=278;e.Euro=556}));e["Helvetica-BoldOblique"]=getLookupTableFactory((function(e){e.space=278;e.exclam=333;e.quotedbl=474;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=722;e.quoteright=278;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=333;e.semicolon=333;e.less=584;e.equal=584;e.greater=584;e.question=611;e.at=975;e.A=722;e.B=722;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=556;e.K=722;e.L=611;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=584;e.underscore=556;e.quoteleft=278;e.a=556;e.b=611;e.c=556;e.d=611;e.e=556;e.f=333;e.g=611;e.h=611;e.i=278;e.j=278;e.k=556;e.l=278;e.m=889;e.n=611;e.o=611;e.p=611;e.q=611;e.r=389;e.s=556;e.t=333;e.u=611;e.v=556;e.w=778;e.x=556;e.y=556;e.z=500;e.braceleft=389;e.bar=280;e.braceright=389;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=238;e.quotedblleft=500;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=611;e.fl=611;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=556;e.bullet=350;e.quotesinglbase=278;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=611;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=278;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=611;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=722;e.aacute=556;e.Ucircumflex=722;e.yacute=556;e.scommaaccent=556;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=611;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=556;e.aring=556;e.Ncommaaccent=722;e.lacute=278;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=556;e.scedilla=556;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=611;e.acircumflex=556;e.Amacron=722;e.rcaron=389;e.ccedilla=556;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=743;e.Umacron=722;e.uring=611;e.threesuperior=333;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=584;e.uacute=611;e.Tcaron=611;e.partialdiff=494;e.ydieresis=556;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=556;e.nacute=611;e.umacron=611;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=280;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=611;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=389;e.eogonek=556;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=556;e.zacute=500;e.iogonek=278;e.Oacute=778;e.oacute=611;e.amacron=556;e.sacute=556;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=611;e.twosuperior=333;e.Odieresis=778;e.mu=611;e.igrave=278;e.ohungarumlaut=611;e.Eogonek=667;e.dcroat=611;e.threequarters=834;e.Scedilla=667;e.lcaron=400;e.Kcommaaccent=722;e.Lacute=611;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=611;e.onehalf=834;e.lessequal=549;e.ocircumflex=611;e.ntilde=611;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=611;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=611;e.Ccaron=722;e.ugrave=611;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=611;e.Rcommaaccent=722;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=556;e.minus=584;e.Icircumflex=278;e.ncaron=611;e.tcommaaccent=333;e.logicalnot=584;e.odieresis=611;e.udieresis=611;e.notequal=549;e.gcommaaccent=611;e.eth=611;e.zcaron=500;e.ncommaaccent=611;e.onesuperior=333;e.imacron=278;e.Euro=556}));e["Helvetica-Oblique"]=getLookupTableFactory((function(e){e.space=278;e.exclam=278;e.quotedbl=355;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=667;e.quoteright=222;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=278;e.semicolon=278;e.less=584;e.equal=584;e.greater=584;e.question=556;e.at=1015;e.A=667;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=500;e.K=667;e.L=556;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=278;e.backslash=278;e.bracketright=278;e.asciicircum=469;e.underscore=556;e.quoteleft=222;e.a=556;e.b=556;e.c=500;e.d=556;e.e=556;e.f=278;e.g=556;e.h=556;e.i=222;e.j=222;e.k=500;e.l=222;e.m=833;e.n=556;e.o=556;e.p=556;e.q=556;e.r=333;e.s=500;e.t=278;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=500;e.braceleft=334;e.bar=260;e.braceright=334;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=191;e.quotedblleft=333;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=537;e.bullet=350;e.quotesinglbase=222;e.quotedblbase=333;e.quotedblright=333;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=556;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=222;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=556;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=667;e.aacute=556;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=500;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=500;e.aring=556;e.Ncommaaccent=722;e.lacute=222;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=500;e.scedilla=500;e.iacute=278;e.lozenge=471;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=556;e.Amacron=667;e.rcaron=333;e.ccedilla=500;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=643;e.Umacron=722;e.uring=556;e.threesuperior=333;e.Ograve=778;e.Agrave=667;e.Abreve=667;e.multiply=584;e.uacute=556;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=500;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=260;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=333;e.omacron=556;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=222;e.tcaron=317;e.eogonek=556;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=556;e.zacute=500;e.iogonek=222;e.Oacute=778;e.oacute=556;e.amacron=556;e.sacute=500;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=333;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=556;e.Eogonek=667;e.dcroat=556;e.threequarters=834;e.Scedilla=667;e.lcaron=299;e.Kcommaaccent=667;e.Lacute=556;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=556;e.onehalf=834;e.lessequal=549;e.ocircumflex=556;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=556;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=556;e.Ccaron=722;e.ugrave=556;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=556;e.Rcommaaccent=722;e.Lcommaaccent=556;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=500;e.minus=584;e.Icircumflex=278;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=584;e.odieresis=556;e.udieresis=556;e.notequal=549;e.gcommaaccent=556;e.eth=556;e.zcaron=500;e.ncommaaccent=556;e.onesuperior=333;e.imacron=278;e.Euro=556}));e.Symbol=getLookupTableFactory((function(e){e.space=250;e.exclam=333;e.universal=713;e.numbersign=500;e.existential=549;e.percent=833;e.ampersand=778;e.suchthat=439;e.parenleft=333;e.parenright=333;e.asteriskmath=500;e.plus=549;e.comma=250;e.minus=549;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=278;e.semicolon=278;e.less=549;e.equal=549;e.greater=549;e.question=444;e.congruent=549;e.Alpha=722;e.Beta=667;e.Chi=722;e.Delta=612;e.Epsilon=611;e.Phi=763;e.Gamma=603;e.Eta=722;e.Iota=333;e.theta1=631;e.Kappa=722;e.Lambda=686;e.Mu=889;e.Nu=722;e.Omicron=722;e.Pi=768;e.Theta=741;e.Rho=556;e.Sigma=592;e.Tau=611;e.Upsilon=690;e.sigma1=439;e.Omega=768;e.Xi=645;e.Psi=795;e.Zeta=611;e.bracketleft=333;e.therefore=863;e.bracketright=333;e.perpendicular=658;e.underscore=500;e.radicalex=500;e.alpha=631;e.beta=549;e.chi=549;e.delta=494;e.epsilon=439;e.phi=521;e.gamma=411;e.eta=603;e.iota=329;e.phi1=603;e.kappa=549;e.lambda=549;e.mu=576;e.nu=521;e.omicron=549;e.pi=549;e.theta=521;e.rho=549;e.sigma=603;e.tau=439;e.upsilon=576;e.omega1=713;e.omega=686;e.xi=493;e.psi=686;e.zeta=494;e.braceleft=480;e.bar=200;e.braceright=480;e.similar=549;e.Euro=750;e.Upsilon1=620;e.minute=247;e.lessequal=549;e.fraction=167;e.infinity=713;e.florin=500;e.club=753;e.diamond=753;e.heart=753;e.spade=753;e.arrowboth=1042;e.arrowleft=987;e.arrowup=603;e.arrowright=987;e.arrowdown=603;e.degree=400;e.plusminus=549;e.second=411;e.greaterequal=549;e.multiply=549;e.proportional=713;e.partialdiff=494;e.bullet=460;e.divide=549;e.notequal=549;e.equivalence=549;e.approxequal=549;e.ellipsis=1e3;e.arrowvertex=603;e.arrowhorizex=1e3;e.carriagereturn=658;e.aleph=823;e.Ifraktur=686;e.Rfraktur=795;e.weierstrass=987;e.circlemultiply=768;e.circleplus=768;e.emptyset=823;e.intersection=768;e.union=768;e.propersuperset=713;e.reflexsuperset=713;e.notsubset=713;e.propersubset=713;e.reflexsubset=713;e.element=713;e.notelement=713;e.angle=768;e.gradient=713;e.registerserif=790;e.copyrightserif=790;e.trademarkserif=890;e.product=823;e.radical=549;e.dotmath=250;e.logicalnot=713;e.logicaland=603;e.logicalor=603;e.arrowdblboth=1042;e.arrowdblleft=987;e.arrowdblup=603;e.arrowdblright=987;e.arrowdbldown=603;e.lozenge=494;e.angleleft=329;e.registersans=790;e.copyrightsans=790;e.trademarksans=786;e.summation=713;e.parenlefttp=384;e.parenleftex=384;e.parenleftbt=384;e.bracketlefttp=384;e.bracketleftex=384;e.bracketleftbt=384;e.bracelefttp=494;e.braceleftmid=494;e.braceleftbt=494;e.braceex=494;e.angleright=329;e.integral=274;e.integraltp=686;e.integralex=686;e.integralbt=686;e.parenrighttp=384;e.parenrightex=384;e.parenrightbt=384;e.bracketrighttp=384;e.bracketrightex=384;e.bracketrightbt=384;e.bracerighttp=494;e.bracerightmid=494;e.bracerightbt=494;e.apple=790}));e["Times-Roman"]=getLookupTableFactory((function(e){e.space=250;e.exclam=333;e.quotedbl=408;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=564;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=278;e.semicolon=278;e.less=564;e.equal=564;e.greater=564;e.question=444;e.at=921;e.A=722;e.B=667;e.C=667;e.D=722;e.E=611;e.F=556;e.G=722;e.H=722;e.I=333;e.J=389;e.K=722;e.L=611;e.M=889;e.N=722;e.O=722;e.P=556;e.Q=722;e.R=667;e.S=556;e.T=611;e.U=722;e.V=722;e.W=944;e.X=722;e.Y=722;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=469;e.underscore=500;e.quoteleft=333;e.a=444;e.b=500;e.c=444;e.d=500;e.e=444;e.f=333;e.g=500;e.h=500;e.i=278;e.j=278;e.k=500;e.l=278;e.m=778;e.n=500;e.o=500;e.p=500;e.q=500;e.r=333;e.s=389;e.t=278;e.u=500;e.v=500;e.w=722;e.x=500;e.y=500;e.z=444;e.braceleft=480;e.bar=200;e.braceright=480;e.asciitilde=541;e.exclamdown=333;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=180;e.quotedblleft=444;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=453;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=444;e.quotedblright=444;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=444;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=889;e.ordfeminine=276;e.Lslash=611;e.Oslash=722;e.OE=889;e.ordmasculine=310;e.ae=667;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=500;e.Idieresis=333;e.eacute=444;e.abreve=444;e.uhungarumlaut=500;e.ecaron=444;e.Ydieresis=722;e.divide=564;e.Yacute=722;e.Acircumflex=722;e.aacute=444;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=444;e.Uacute=722;e.uogonek=500;e.Edieresis=611;e.Dcroat=722;e.commaaccent=250;e.copyright=760;e.Emacron=611;e.ccaron=444;e.aring=444;e.Ncommaaccent=722;e.lacute=278;e.agrave=444;e.Tcommaaccent=611;e.Cacute=667;e.atilde=444;e.Edotaccent=611;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=471;e.Rcaron=667;e.Gcommaaccent=722;e.ucircumflex=500;e.acircumflex=444;e.Amacron=722;e.rcaron=333;e.ccedilla=444;e.Zdotaccent=611;e.Thorn=556;e.Omacron=722;e.Racute=667;e.Sacute=556;e.dcaron=588;e.Umacron=722;e.uring=500;e.threesuperior=300;e.Ograve=722;e.Agrave=722;e.Abreve=722;e.multiply=564;e.uacute=500;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=611;e.adieresis=444;e.edieresis=444;e.cacute=444;e.nacute=500;e.umacron=500;e.Ncaron=722;e.Iacute=333;e.plusminus=564;e.brokenbar=200;e.registered=760;e.Gbreve=722;e.Idotaccent=333;e.summation=600;e.Egrave=611;e.racute=333;e.omacron=500;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=326;e.eogonek=444;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=444;e.zacute=444;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=444;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=500;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=611;e.dcroat=500;e.threequarters=750;e.Scedilla=556;e.lcaron=344;e.Kcommaaccent=722;e.Lacute=611;e.trademark=980;e.edotaccent=444;e.Igrave=333;e.Imacron=333;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=500;e.Uhungarumlaut=722;e.Eacute=611;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=500;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=667;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=722;e.zdotaccent=444;e.Ecaron=611;e.Iogonek=333;e.kcommaaccent=500;e.minus=564;e.Icircumflex=333;e.ncaron=500;e.tcommaaccent=278;e.logicalnot=564;e.odieresis=500;e.udieresis=500;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=444;e.ncommaaccent=500;e.onesuperior=300;e.imacron=278;e.Euro=500}));e["Times-Bold"]=getLookupTableFactory((function(e){e.space=250;e.exclam=333;e.quotedbl=555;e.numbersign=500;e.dollar=500;e.percent=1e3;e.ampersand=833;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=570;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=570;e.equal=570;e.greater=570;e.question=500;e.at=930;e.A=722;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=778;e.I=389;e.J=500;e.K=778;e.L=667;e.M=944;e.N=722;e.O=778;e.P=611;e.Q=778;e.R=722;e.S=556;e.T=667;e.U=722;e.V=722;e.W=1e3;e.X=722;e.Y=722;e.Z=667;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=581;e.underscore=500;e.quoteleft=333;e.a=500;e.b=556;e.c=444;e.d=556;e.e=444;e.f=333;e.g=500;e.h=556;e.i=278;e.j=333;e.k=556;e.l=278;e.m=833;e.n=556;e.o=500;e.p=556;e.q=556;e.r=444;e.s=389;e.t=333;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=444;e.braceleft=394;e.bar=220;e.braceright=394;e.asciitilde=520;e.exclamdown=333;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=278;e.quotedblleft=500;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=540;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=300;e.Lslash=667;e.Oslash=778;e.OE=1e3;e.ordmasculine=330;e.ae=722;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=556;e.Idieresis=389;e.eacute=444;e.abreve=500;e.uhungarumlaut=556;e.ecaron=444;e.Ydieresis=722;e.divide=570;e.Yacute=722;e.Acircumflex=722;e.aacute=500;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=747;e.Emacron=667;e.ccaron=444;e.aring=500;e.Ncommaaccent=722;e.lacute=278;e.agrave=500;e.Tcommaaccent=667;e.Cacute=722;e.atilde=500;e.Edotaccent=667;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=500;e.Amacron=722;e.rcaron=444;e.ccedilla=444;e.Zdotaccent=667;e.Thorn=611;e.Omacron=778;e.Racute=722;e.Sacute=556;e.dcaron=672;e.Umacron=722;e.uring=556;e.threesuperior=300;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=570;e.uacute=556;e.Tcaron=667;e.partialdiff=494;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=389;e.plusminus=570;e.brokenbar=220;e.registered=747;e.Gbreve=778;e.Idotaccent=389;e.summation=600;e.Egrave=667;e.racute=444;e.omacron=500;e.Zacute=667;e.Zcaron=667;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=416;e.eogonek=444;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=444;e.zacute=444;e.iogonek=278;e.Oacute=778;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=300;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=667;e.dcroat=556;e.threequarters=750;e.Scedilla=556;e.lcaron=394;e.Kcommaaccent=778;e.Lacute=667;e.trademark=1e3;e.edotaccent=444;e.Igrave=389;e.Imacron=389;e.Lcaron=667;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=778;e.degree=400;e.ograve=500;e.Ccaron=722;e.ugrave=556;e.radical=549;e.Dcaron=722;e.rcommaaccent=444;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=722;e.Lcommaaccent=667;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=444;e.Ecaron=667;e.Iogonek=389;e.kcommaaccent=556;e.minus=570;e.Icircumflex=389;e.ncaron=556;e.tcommaaccent=333;e.logicalnot=570;e.odieresis=500;e.udieresis=556;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=444;e.ncommaaccent=556;e.onesuperior=300;e.imacron=278;e.Euro=500}));e["Times-BoldItalic"]=getLookupTableFactory((function(e){e.space=250;e.exclam=389;e.quotedbl=555;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=570;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=570;e.equal=570;e.greater=570;e.question=500;e.at=832;e.A=667;e.B=667;e.C=667;e.D=722;e.E=667;e.F=667;e.G=722;e.H=778;e.I=389;e.J=500;e.K=667;e.L=611;e.M=889;e.N=722;e.O=722;e.P=611;e.Q=722;e.R=667;e.S=556;e.T=611;e.U=722;e.V=667;e.W=889;e.X=667;e.Y=611;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=570;e.underscore=500;e.quoteleft=333;e.a=500;e.b=500;e.c=444;e.d=500;e.e=444;e.f=333;e.g=500;e.h=556;e.i=278;e.j=278;e.k=500;e.l=278;e.m=778;e.n=556;e.o=500;e.p=500;e.q=500;e.r=389;e.s=389;e.t=278;e.u=556;e.v=444;e.w=667;e.x=500;e.y=444;e.z=389;e.braceleft=348;e.bar=220;e.braceright=348;e.asciitilde=570;e.exclamdown=389;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=278;e.quotedblleft=500;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=500;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=944;e.ordfeminine=266;e.Lslash=611;e.Oslash=722;e.OE=944;e.ordmasculine=300;e.ae=722;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=500;e.Idieresis=389;e.eacute=444;e.abreve=500;e.uhungarumlaut=556;e.ecaron=444;e.Ydieresis=611;e.divide=570;e.Yacute=611;e.Acircumflex=667;e.aacute=500;e.Ucircumflex=722;e.yacute=444;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=747;e.Emacron=667;e.ccaron=444;e.aring=500;e.Ncommaaccent=722;e.lacute=278;e.agrave=500;e.Tcommaaccent=611;e.Cacute=667;e.atilde=500;e.Edotaccent=667;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=494;e.Rcaron=667;e.Gcommaaccent=722;e.ucircumflex=556;e.acircumflex=500;e.Amacron=667;e.rcaron=389;e.ccedilla=444;e.Zdotaccent=611;e.Thorn=611;e.Omacron=722;e.Racute=667;e.Sacute=556;e.dcaron=608;e.Umacron=722;e.uring=556;e.threesuperior=300;e.Ograve=722;e.Agrave=667;e.Abreve=667;e.multiply=570;e.uacute=556;e.Tcaron=611;e.partialdiff=494;e.ydieresis=444;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=389;e.plusminus=570;e.brokenbar=220;e.registered=747;e.Gbreve=722;e.Idotaccent=389;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=500;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=366;e.eogonek=444;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=444;e.zacute=389;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=576;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=667;e.dcroat=500;e.threequarters=750;e.Scedilla=556;e.lcaron=382;e.Kcommaaccent=667;e.Lacute=611;e.trademark=1e3;e.edotaccent=444;e.Igrave=389;e.Imacron=389;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=556;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=667;e.Lcommaaccent=611;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=722;e.zdotaccent=389;e.Ecaron=667;e.Iogonek=389;e.kcommaaccent=500;e.minus=606;e.Icircumflex=389;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=606;e.odieresis=500;e.udieresis=556;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=389;e.ncommaaccent=556;e.onesuperior=300;e.imacron=278;e.Euro=500}));e["Times-Italic"]=getLookupTableFactory((function(e){e.space=250;e.exclam=333;e.quotedbl=420;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=675;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=675;e.equal=675;e.greater=675;e.question=500;e.at=920;e.A=611;e.B=611;e.C=667;e.D=722;e.E=611;e.F=611;e.G=722;e.H=722;e.I=333;e.J=444;e.K=667;e.L=556;e.M=833;e.N=667;e.O=722;e.P=611;e.Q=722;e.R=611;e.S=500;e.T=556;e.U=722;e.V=611;e.W=833;e.X=611;e.Y=556;e.Z=556;e.bracketleft=389;e.backslash=278;e.bracketright=389;e.asciicircum=422;e.underscore=500;e.quoteleft=333;e.a=500;e.b=500;e.c=444;e.d=500;e.e=444;e.f=278;e.g=500;e.h=500;e.i=278;e.j=278;e.k=444;e.l=278;e.m=722;e.n=500;e.o=500;e.p=500;e.q=500;e.r=389;e.s=389;e.t=278;e.u=500;e.v=444;e.w=667;e.x=444;e.y=444;e.z=389;e.braceleft=400;e.bar=275;e.braceright=400;e.asciitilde=541;e.exclamdown=389;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=214;e.quotedblleft=556;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=523;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=556;e.quotedblright=556;e.guillemotright=500;e.ellipsis=889;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=889;e.AE=889;e.ordfeminine=276;e.Lslash=556;e.Oslash=722;e.OE=944;e.ordmasculine=310;e.ae=667;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=667;e.germandbls=500;e.Idieresis=333;e.eacute=444;e.abreve=500;e.uhungarumlaut=500;e.ecaron=444;e.Ydieresis=556;e.divide=675;e.Yacute=556;e.Acircumflex=611;e.aacute=500;e.Ucircumflex=722;e.yacute=444;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=500;e.Edieresis=611;e.Dcroat=722;e.commaaccent=250;e.copyright=760;e.Emacron=611;e.ccaron=444;e.aring=500;e.Ncommaaccent=667;e.lacute=278;e.agrave=500;e.Tcommaaccent=556;e.Cacute=667;e.atilde=500;e.Edotaccent=611;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=471;e.Rcaron=611;e.Gcommaaccent=722;e.ucircumflex=500;e.acircumflex=500;e.Amacron=611;e.rcaron=389;e.ccedilla=444;e.Zdotaccent=556;e.Thorn=611;e.Omacron=722;e.Racute=611;e.Sacute=500;e.dcaron=544;e.Umacron=722;e.uring=500;e.threesuperior=300;e.Ograve=722;e.Agrave=611;e.Abreve=611;e.multiply=675;e.uacute=500;e.Tcaron=556;e.partialdiff=476;e.ydieresis=444;e.Nacute=667;e.icircumflex=278;e.Ecircumflex=611;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=500;e.umacron=500;e.Ncaron=667;e.Iacute=333;e.plusminus=675;e.brokenbar=275;e.registered=760;e.Gbreve=722;e.Idotaccent=333;e.summation=600;e.Egrave=611;e.racute=389;e.omacron=500;e.Zacute=556;e.Zcaron=556;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=300;e.eogonek=444;e.Uogonek=722;e.Aacute=611;e.Adieresis=611;e.egrave=444;e.zacute=389;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=500;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=611;e.dcroat=500;e.threequarters=750;e.Scedilla=500;e.lcaron=300;e.Kcommaaccent=667;e.Lacute=556;e.trademark=980;e.edotaccent=444;e.Igrave=333;e.Imacron=333;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=500;e.Uhungarumlaut=722;e.Eacute=611;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=500;e.Scommaaccent=500;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=500;e.radical=453;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=667;e.otilde=500;e.Rcommaaccent=611;e.Lcommaaccent=556;e.Atilde=611;e.Aogonek=611;e.Aring=611;e.Otilde=722;e.zdotaccent=389;e.Ecaron=611;e.Iogonek=333;e.kcommaaccent=444;e.minus=675;e.Icircumflex=333;e.ncaron=500;e.tcommaaccent=278;e.logicalnot=675;e.odieresis=500;e.udieresis=500;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=389;e.ncommaaccent=500;e.onesuperior=300;e.imacron=278;e.Euro=500}));e.ZapfDingbats=getLookupTableFactory((function(e){e.space=278;e.a1=974;e.a2=961;e.a202=974;e.a3=980;e.a4=719;e.a5=789;e.a119=790;e.a118=791;e.a117=690;e.a11=960;e.a12=939;e.a13=549;e.a14=855;e.a15=911;e.a16=933;e.a105=911;e.a17=945;e.a18=974;e.a19=755;e.a20=846;e.a21=762;e.a22=761;e.a23=571;e.a24=677;e.a25=763;e.a26=760;e.a27=759;e.a28=754;e.a6=494;e.a7=552;e.a8=537;e.a9=577;e.a10=692;e.a29=786;e.a30=788;e.a31=788;e.a32=790;e.a33=793;e.a34=794;e.a35=816;e.a36=823;e.a37=789;e.a38=841;e.a39=823;e.a40=833;e.a41=816;e.a42=831;e.a43=923;e.a44=744;e.a45=723;e.a46=749;e.a47=790;e.a48=792;e.a49=695;e.a50=776;e.a51=768;e.a52=792;e.a53=759;e.a54=707;e.a55=708;e.a56=682;e.a57=701;e.a58=826;e.a59=815;e.a60=789;e.a61=789;e.a62=707;e.a63=687;e.a64=696;e.a65=689;e.a66=786;e.a67=787;e.a68=713;e.a69=791;e.a70=785;e.a71=791;e.a72=873;e.a73=761;e.a74=762;e.a203=762;e.a75=759;e.a204=759;e.a76=892;e.a77=892;e.a78=788;e.a79=784;e.a81=438;e.a82=138;e.a83=277;e.a84=415;e.a97=392;e.a98=392;e.a99=668;e.a100=668;e.a89=390;e.a90=390;e.a93=317;e.a94=317;e.a91=276;e.a92=276;e.a205=509;e.a85=509;e.a206=410;e.a86=410;e.a87=234;e.a88=234;e.a95=334;e.a96=334;e.a101=732;e.a102=544;e.a103=544;e.a104=910;e.a106=667;e.a107=760;e.a108=760;e.a112=776;e.a111=595;e.a110=694;e.a109=626;e.a120=788;e.a121=788;e.a122=788;e.a123=788;e.a124=788;e.a125=788;e.a126=788;e.a127=788;e.a128=788;e.a129=788;e.a130=788;e.a131=788;e.a132=788;e.a133=788;e.a134=788;e.a135=788;e.a136=788;e.a137=788;e.a138=788;e.a139=788;e.a140=788;e.a141=788;e.a142=788;e.a143=788;e.a144=788;e.a145=788;e.a146=788;e.a147=788;e.a148=788;e.a149=788;e.a150=788;e.a151=788;e.a152=788;e.a153=788;e.a154=788;e.a155=788;e.a156=788;e.a157=788;e.a158=788;e.a159=788;e.a160=894;e.a161=838;e.a163=1016;e.a164=458;e.a196=748;e.a165=924;e.a192=748;e.a166=918;e.a167=927;e.a168=928;e.a169=928;e.a170=834;e.a171=873;e.a172=828;e.a173=924;e.a162=924;e.a174=917;e.a175=930;e.a176=931;e.a177=463;e.a178=883;e.a179=836;e.a193=836;e.a180=867;e.a199=867;e.a181=696;e.a200=696;e.a182=874;e.a201=874;e.a183=760;e.a184=946;e.a197=771;e.a185=865;e.a194=771;e.a198=888;e.a186=967;e.a195=888;e.a187=831;e.a188=873;e.a189=927;e.a190=970;e.a191=918}))})),ni=getLookupTableFactory((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426};e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439};e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523};e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532};e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523};e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532};e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450};e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461};e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441};e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462};e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));class GlyfTable{constructor({glyfTable:e,isGlyphLocationsLong:t,locaTable:a,numGlyphs:r}){this.glyphs=[];const i=new DataView(a.buffer,a.byteOffset,a.byteLength),n=new DataView(e.buffer,e.byteOffset,e.byteLength),s=t?4:2;let o=t?i.getUint32(0):2*i.getUint16(0),c=0;for(let e=0;e<r;e++){c+=s;const e=t?i.getUint32(c):2*i.getUint16(c);if(e===o){this.glyphs.push(new Glyph({}));continue}const a=Glyph.parse(o,n);this.glyphs.push(a);o=e}}getSize(){return Math.sumPrecise(this.glyphs.map((e=>e.getSize()+3&-4)))}write(){const e=this.getSize(),t=new DataView(new ArrayBuffer(e)),a=e>131070,r=a?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));a?i.setUint32(0,0):i.setUint16(0,0);let n=0,s=0;for(const e of this.glyphs){n+=e.write(n,t);n=n+3&-4;s+=r;a?i.setUint32(s,n):i.setUint16(s,n>>1)}return{isLocationLong:a,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,a=this.glyphs.length;t<a;t++)this.glyphs[t].scale(e[t])}}class Glyph{constructor({header:e=null,simple:t=null,composites:a=null}){this.header=e;this.simple=t;this.composites=a}static parse(e,t){const[a,r]=GlyphHeader.parse(e,t);e+=a;if(r.numberOfContours<0){const a=[];for(;;){const[r,i]=CompositeGlyph.parse(e,t);e+=r;a.push(i);if(!(32&i.flags))break}return new Glyph({header:r,composites:a})}const i=SimpleGlyph.parse(e,t,r.numberOfContours);return new Glyph({header:r,simple:i})}getSize(){if(!this.header)return 0;const e=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map((e=>e.getSize())));return this.header.getSize()+e}write(e,t){if(!this.header)return 0;const a=e;e+=this.header.write(e,t);if(this.simple)e+=this.simple.write(e,t);else for(const a of this.composites)e+=a.write(e,t);return e-a}scale(e){if(!this.header)return;const t=(this.header.xMin+this.header.xMax)/2;this.header.scale(t,e);if(this.simple)this.simple.scale(t,e);else for(const a of this.composites)a.scale(t,e)}}class GlyphHeader{constructor({numberOfContours:e,xMin:t,yMin:a,xMax:r,yMax:i}){this.numberOfContours=e;this.xMin=t;this.yMin=a;this.xMax=r;this.yMax=i}static parse(e,t){return[10,new GlyphHeader({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){t.setInt16(e,this.numberOfContours);t.setInt16(e+2,this.xMin);t.setInt16(e+4,this.yMin);t.setInt16(e+6,this.xMax);t.setInt16(e+8,this.yMax);return 10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t);this.xMax=Math.round(e+(this.xMax-e)*t)}}class Contour{constructor({flags:e,xCoordinates:t,yCoordinates:a}){this.xCoordinates=t;this.yCoordinates=a;this.flags=e}}class SimpleGlyph{constructor({contours:e,instructions:t}){this.contours=e;this.instructions=t}static parse(e,t,a){const r=[];for(let i=0;i<a;i++){const a=t.getUint16(e);e+=2;r.push(a)}const i=r[a-1]+1,n=t.getUint16(e);e+=2;const s=new Uint8Array(t).slice(e,e+n);e+=n;const o=[];for(let a=0;a<i;e++,a++){let r=t.getUint8(e);o.push(r);if(8&r){const i=t.getUint8(++e);r^=8;for(let e=0;e<i;e++)o.push(r);a+=i}}const c=[];let l=[],h=[],u=[];const d=[];let f=0,g=0;for(let a=0;a<i;a++){const i=o[a];if(2&i){const a=t.getUint8(e++);g+=16&i?a:-a;l.push(g)}else if(16&i)l.push(g);else{g+=t.getInt16(e);e+=2;l.push(g)}if(r[f]===a){f++;c.push(l);l=[]}}g=0;f=0;for(let a=0;a<i;a++){const i=o[a];if(4&i){const a=t.getUint8(e++);g+=32&i?a:-a;h.push(g)}else if(32&i)h.push(g);else{g+=t.getInt16(e);e+=2;h.push(g)}u.push(1&i|64&i);if(r[f]===a){l=c[f];f++;d.push(new Contour({flags:u,xCoordinates:l,yCoordinates:h}));h=[];u=[]}}return new SimpleGlyph({contours:d,instructions:s})}getSize(){let e=2*this.contours.length+2+this.instructions.length,t=0,a=0;for(const r of this.contours){e+=r.flags.length;for(let i=0,n=r.xCoordinates.length;i<n;i++){const n=r.xCoordinates[i],s=r.yCoordinates[i];let o=Math.abs(n-t);o>255?e+=2:o>0&&(e+=1);t=n;o=Math.abs(s-a);o>255?e+=2:o>0&&(e+=1);a=s}}return e}write(e,t){const a=e,r=[],i=[],n=[];let s=0,o=0;for(const a of this.contours){for(let e=0,t=a.xCoordinates.length;e<t;e++){let t=a.flags[e];const c=a.xCoordinates[e];let l=c-s;if(0===l){t|=16;r.push(0)}else{const e=Math.abs(l);if(e<=255){t|=l>=0?18:2;r.push(e)}else r.push(l)}s=c;const h=a.yCoordinates[e];l=h-o;if(0===l){t|=32;i.push(0)}else{const e=Math.abs(l);if(e<=255){t|=l>=0?36:4;i.push(e)}else i.push(l)}o=h;n.push(t)}t.setUint16(e,r.length-1);e+=2}t.setUint16(e,this.instructions.length);e+=2;if(this.instructions.length){new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e);e+=this.instructions.length}for(const a of n)t.setUint8(e++,a);for(let a=0,i=r.length;a<i;a++){const i=r[a],s=n[a];if(2&s)t.setUint8(e++,i);else if(!(16&s)){t.setInt16(e,i);e+=2}}for(let a=0,r=i.length;a<r;a++){const r=i[a],s=n[a];if(4&s)t.setUint8(e++,r);else if(!(32&s)){t.setInt16(e,r);e+=2}}return e-a}scale(e,t){for(const a of this.contours)if(0!==a.xCoordinates.length)for(let r=0,i=a.xCoordinates.length;r<i;r++)a.xCoordinates[r]=Math.round(e+(a.xCoordinates[r]-e)*t)}}class CompositeGlyph{constructor({flags:e,glyphIndex:t,argument1:a,argument2:r,transf:i,instructions:n}){this.flags=e;this.glyphIndex=t;this.argument1=a;this.argument2=r;this.transf=i;this.instructions=n}static parse(e,t){const a=e,r=[];let i=t.getUint16(e);const n=t.getUint16(e+2);e+=4;let s,o;if(1&i){if(2&i){s=t.getInt16(e);o=t.getInt16(e+2)}else{s=t.getUint16(e);o=t.getUint16(e+2)}e+=4;i^=1}else{if(2&i){s=t.getInt8(e);o=t.getInt8(e+1)}else{s=t.getUint8(e);o=t.getUint8(e+1)}e+=2}if(8&i){r.push(t.getUint16(e));e+=2}else if(64&i){r.push(t.getUint16(e),t.getUint16(e+2));e+=4}else if(128&i){r.push(t.getUint16(e),t.getUint16(e+2),t.getUint16(e+4),t.getUint16(e+6));e+=8}let c=null;if(256&i){const a=t.getUint16(e);e+=2;c=new Uint8Array(t).slice(e,e+a);e+=a}return[e-a,new CompositeGlyph({flags:i,glyphIndex:n,argument1:s,argument2:o,transf:r,instructions:c})]}getSize(){let e=4+2*this.transf.length;256&this.flags&&(e+=2+this.instructions.length);e+=2;2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2);return e}write(e,t){const a=e;2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1);t.setUint16(e,this.flags);t.setUint16(e+2,this.glyphIndex);e+=4;if(1&this.flags){if(2&this.flags){t.setInt16(e,this.argument1);t.setInt16(e+2,this.argument2)}else{t.setUint16(e,this.argument1);t.setUint16(e+2,this.argument2)}e+=4}else{t.setUint8(e,this.argument1);t.setUint8(e+1,this.argument2);e+=2}if(256&this.flags){t.setUint16(e,this.instructions.length);e+=2;if(this.instructions.length){new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e);e+=this.instructions.length}}return e-a}scale(e,t){}}function writeInt16(e,t,a){e[t]=a>>8&255;e[t+1]=255&a}function writeInt32(e,t,a){e[t]=a>>24&255;e[t+1]=a>>16&255;e[t+2]=a>>8&255;e[t+3]=255&a}function writeData(e,t,a){if(a instanceof Uint8Array)e.set(a,t);else if("string"==typeof a)for(let r=0,i=a.length;r<i;r++)e[t++]=255&a.charCodeAt(r);else for(const r of a)e[t++]=255&r}class OpenTypeFileBuilder{constructor(e){this.sfnt=e;this.tables=Object.create(null)}static getSearchParams(e,t){let a=1,r=0;for(;(a^e)>a;){a<<=1;r++}const i=a*t;return{range:i,entry:r,rangeShift:t*e-i}}toArray(){let e=this.sfnt;const t=this.tables,a=Object.keys(t);a.sort();const r=a.length;let i,n,s,o,c,l=12+16*r;const h=[l];for(i=0;i<r;i++){o=t[a[i]];l+=(o.length+3&-4)>>>0;h.push(l)}const u=new Uint8Array(l);for(i=0;i<r;i++){o=t[a[i]];writeData(u,h[i],o)}"true"===e&&(e=string32(65536));u[0]=255&e.charCodeAt(0);u[1]=255&e.charCodeAt(1);u[2]=255&e.charCodeAt(2);u[3]=255&e.charCodeAt(3);writeInt16(u,4,r);const d=OpenTypeFileBuilder.getSearchParams(r,16);writeInt16(u,6,d.range);writeInt16(u,8,d.entry);writeInt16(u,10,d.rangeShift);l=12;for(i=0;i<r;i++){c=a[i];u[l]=255&c.charCodeAt(0);u[l+1]=255&c.charCodeAt(1);u[l+2]=255&c.charCodeAt(2);u[l+3]=255&c.charCodeAt(3);let e=0;for(n=h[i],s=h[i+1];n<s;n+=4){e=e+readUint32(u,n)>>>0}writeInt32(u,l+4,e);writeInt32(u,l+8,h[i]);writeInt32(u,l+12,t[c].length);l+=16}return u}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}const si=[4],oi=[5],ci=[6],li=[7],hi=[8],ui=[12,35],di=[14],fi=[21],gi=[22],pi=[30],mi=[31];class Type1CharString{constructor(){this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}convert(e,t,a){const r=e.length;let i,n,s,o=!1;for(let c=0;c<r;c++){let r=e[c];if(r<32){12===r&&(r=(r<<8)+e[++c]);switch(r){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){o=!0;break}const e=this.stack.pop();this.stack.push(0,e);break}o=this.executeCommand(1,si);break;case 5:o=this.executeCommand(2,oi);break;case 6:o=this.executeCommand(1,ci);break;case 7:o=this.executeCommand(1,li);break;case 8:o=this.executeCommand(6,hi);break;case 10:if(this.stack.length<1){o=!0;break}s=this.stack.pop();if(!t[s]){o=!0;break}o=this.convert(t[s],t,a);break;case 11:return o;case 13:if(this.stack.length<2){o=!0;break}i=this.stack.pop();n=this.stack.pop();this.lsb=n;this.width=i;this.stack.push(i,n);o=this.executeCommand(2,gi);break;case 14:this.output.push(di[0]);break;case 21:if(this.flexing)break;o=this.executeCommand(2,fi);break;case 22:if(this.flexing){this.stack.push(0);break}o=this.executeCommand(1,gi);break;case 30:o=this.executeCommand(4,pi);break;case 31:o=this.executeCommand(4,mi);break;case 3078:if(a){const e=this.stack.at(-5);this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-e;o=this.executeCommand(0,di)}else o=this.executeCommand(4,di);break;case 3079:if(this.stack.length<4){o=!0;break}this.stack.pop();i=this.stack.pop();const e=this.stack.pop();n=this.stack.pop();this.lsb=n;this.width=i;this.stack.push(i,n,e);o=this.executeCommand(3,fi);break;case 3084:if(this.stack.length<2){o=!0;break}const c=this.stack.pop(),l=this.stack.pop();this.stack.push(l/c);break;case 3088:if(this.stack.length<2){o=!0;break}s=this.stack.pop();const h=this.stack.pop();if(0===s&&3===h){const e=this.stack.splice(-17,17);this.stack.push(e[2]+e[0],e[3]+e[1],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14]);o=this.executeCommand(13,ui,!0);this.flexing=!1;this.stack.push(e[15],e[16])}else 1===s&&0===h&&(this.flexing=!0);break;case 3089:break;default:warn(\'Unknown type 1 charstring command of "\'+r+\'"\')}if(o)break}else{r<=246?r-=139:r=r<=250?256*(r-247)+e[++c]+108:r<=254?-256*(r-251)-e[++c]-108:(255&e[++c])<<24|(255&e[++c])<<16|(255&e[++c])<<8|255&e[++c];this.stack.push(r)}}return o}executeCommand(e,t,a){const r=this.stack.length;if(e>r)return!0;const i=r-e;for(let e=i;e<r;e++){let t=this.stack[e];if(Number.isInteger(t))this.output.push(28,t>>8&255,255&t);else{t=65536*t|0;this.output.push(255,t>>24&255,t>>16&255,t>>8&255,255&t)}}this.output.push(...t);a?this.stack.splice(i,e):this.stack.length=0;return!1}}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function decrypt(e,t,a){if(a>=e.length)return new Uint8Array(0);let r,i,n=0|t;for(r=0;r<a;r++)n=52845*(e[r]+n)+22719&65535;const s=e.length-a,o=new Uint8Array(s);for(r=a,i=0;i<s;r++,i++){const t=e[r];o[i]=t^n>>8;n=52845*(t+n)+22719&65535}return o}function isSpecial(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}class Type1Parser{constructor(e,t,a){if(t){const t=e.getBytes(),a=!((isHexDigit(t[0])||isWhiteSpace(t[0]))&&isHexDigit(t[1])&&isHexDigit(t[2])&&isHexDigit(t[3])&&isHexDigit(t[4])&&isHexDigit(t[5])&&isHexDigit(t[6])&&isHexDigit(t[7]));e=new Stream(a?decrypt(t,55665,4):function decryptAscii(e,t,a){let r=0|t;const i=e.length,n=new Uint8Array(i>>>1);let s,o;for(s=0,o=0;s<i;s++){const t=e[s];if(!isHexDigit(t))continue;s++;let a;for(;s<i&&!isHexDigit(a=e[s]);)s++;if(s<i){const e=parseInt(String.fromCharCode(t,a),16);n[o++]=e^r>>8;r=52845*(e+r)+22719&65535}}return n.slice(a,o)}(t,55665,4))}this.seacAnalysisEnabled=!!a;this.stream=e;this.nextChar()}readNumberArray(){this.getToken();const e=[];for(;;){const t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){const e=this.getToken();return parseFloat(e||0)}readInt(){const e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){this.stream.skip(-2);return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!isWhiteSpace(t))break;t=this.nextChar()}if(isSpecial(t)){this.nextChar();return String.fromCharCode(t)}let a="";do{a+=String.fromCharCode(t);t=this.nextChar()}while(t>=0&&!isWhiteSpace(t)&&!isSpecial(t));return a}readCharStrings(e,t){return-1===t?e:decrypt(e,4330,t)}extractFontProgram(e){const t=this.stream,a=[],r=[],i=Object.create(null);i.lenIV=4;const n={subrs:[],charstrings:[],properties:{privateData:i}};let s,o,c,l;for(;null!==(s=this.getToken());)if("/"===s){s=this.getToken();switch(s){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();for(;;){s=this.getToken();if(null===s||"end"===s)break;if("/"!==s)continue;const e=this.getToken();o=this.readInt();this.getToken();c=o>0?t.getBytes(o):new Uint8Array(0);l=n.properties.privateData.lenIV;const a=this.readCharStrings(c,l);this.nextChar();s=this.getToken();"noaccess"===s?this.getToken():"/"===s&&this.prevChar();r.push({glyph:e,encoded:a})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){const e=this.readInt();o=this.readInt();this.getToken();c=o>0?t.getBytes(o):new Uint8Array(0);l=n.properties.privateData.lenIV;const r=this.readCharStrings(c,l);this.nextChar();s=this.getToken();"noaccess"===s&&this.getToken();a[e]=r}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const e=this.readNumberArray();e.length>0&&e.length,0;break;case"StemSnapH":case"StemSnapV":n.properties.privateData[s]=this.readNumberArray();break;case"StdHW":case"StdVW":n.properties.privateData[s]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":n.properties.privateData[s]=this.readNumber();break;case"ExpansionFactor":n.properties.privateData[s]=this.readNumber()||.06;break;case"ForceBold":n.properties.privateData[s]=this.readBoolean()}}for(const{encoded:t,glyph:i}of r){const r=new Type1CharString,s=r.convert(t,a,this.seacAnalysisEnabled);let o=r.output;s&&(o=[14]);const c={glyphName:i,charstring:o,width:r.width,lsb:r.lsb,seac:r.seac};".notdef"===i?n.charstrings.unshift(c):n.charstrings.push(c);if(e.builtInEncoding){const t=e.builtInEncoding.indexOf(i);t>-1&&void 0===e.widths[t]&&t>=e.firstChar&&t<=e.lastChar&&(e.widths[t]=r.width)}}return n}extractFontHeader(e){let t;for(;null!==(t=this.getToken());)if("/"===t){t=this.getToken();switch(t){case"FontMatrix":const a=this.readNumberArray();e.fontMatrix=a;break;case"Encoding":const r=this.getToken();let i;if(/^\\d+$/.test(r)){i=[];const e=0|parseInt(r,10);this.getToken();for(let a=0;a<e;a++){t=this.getToken();for(;"dup"!==t&&"def"!==t;){t=this.getToken();if(null===t)return}if("def"===t)break;const e=this.readInt();this.getToken();const a=this.getToken();i[e]=a;this.getToken()}}else i=getEncoding(r);e.builtInEncoding=i;break;case"FontBBox":const n=this.readNumberArray();e.ascent=Math.max(n[3],n[1]);e.descent=Math.min(n[1],n[3]);e.ascentScaled=!0}}}}function findBlock(e,t,a){const r=e.length,i=t.length,n=r-i;let s=a,o=!1;for(;s<n;){let a=0;for(;a<i&&e[s+a]===t[a];)a++;if(a>=i){s+=a;for(;s<r&&isWhiteSpace(e[s]);)s++;o=!0;break}s++}return{found:o,length:s}}class Type1Font{constructor(e,t,a){let r=a.length1,i=a.length2,n=t.peekBytes(6);const s=128===n[0]&&1===n[1];if(s){t.skip(6);r=n[5]<<24|n[4]<<16|n[3]<<8|n[2]}const o=function getHeaderBlock(e,t){const a=[101,101,120,101,99],r=e.pos;let i,n,s,o;try{i=e.getBytes(t);n=i.length}catch{}if(n===t){s=findBlock(i,a,t-2*a.length);if(s.found&&s.length===t)return{stream:new Stream(i),length:t}}warn(\'Invalid "Length1" property in Type1 font -- trying to recover.\');e.pos=r;for(;;){s=findBlock(e.peekBytes(2048),a,0);if(0===s.length)break;e.pos+=s.length;if(s.found){o=e.pos-r;break}}e.pos=r;if(o)return{stream:new Stream(e.getBytes(o)),length:o};warn(\'Unable to recover "Length1" property in Type1 font -- using as is.\');return{stream:new Stream(e.getBytes(t)),length:t}}(t,r);new Type1Parser(o.stream,!1,Rr).extractFontHeader(a);if(s){n=t.getBytes(6);i=n[5]<<24|n[4]<<16|n[3]<<8|n[2]}const c=function getEexecBlock(e,t){const a=e.getBytes();if(0===a.length)throw new FormatError("getEexecBlock - no font program found.");return{stream:new Stream(a),length:a.length}}(t),l=new Type1Parser(c.stream,!0,Rr).extractFontProgram(a);for(const e in l.properties)a[e]=l.properties[e];const h=l.charstrings,u=this.getType2Charstrings(h),d=this.getType2Subrs(l.subrs);this.charstrings=h;this.data=this.wrap(e,u,this.charstrings,d,a);this.seacs=this.getSeacs(l.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const e=[".notdef"];for(const{glyphName:t}of this.charstrings)e.push(t);return e}getGlyphMapping(e){const t=this.charstrings;if(e.composite){const a=Object.create(null);for(let r=0,i=t.length;r<i;r++){a[e.cMap.charCodeOf(r)]=r+1}return a}const a=[".notdef"];let r,i;for(i=0;i<t.length;i++)a.push(t[i].glyphName);const n=e.builtInEncoding;if(n){r=Object.create(null);for(const e in n){i=a.indexOf(n[e]);i>=0&&(r[e]=i)}}return type1FontGlyphMapping(e,r,a)}hasGlyphId(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;return this.charstrings[e-1].charstring.length>0}getSeacs(e){const t=[];for(let a=0,r=e.length;a<r;a++){const r=e[a];r.seac&&(t[a+1]=r.seac)}return t}getType2Charstrings(e){const t=[];for(const a of e)t.push(a.charstring);return t}getType2Subrs(e){let t=0;const a=e.length;t=a<1133?107:a<33769?1131:32768;const r=[];let i;for(i=0;i<t;i++)r.push([11]);for(i=0;i<a;i++)r.push(e[i]);return r}wrap(e,t,a,r,i){const n=new CFF;n.header=new CFFHeader(1,0,4,4);n.names=[e];const s=new CFFTopDict;s.setByName("version",391);s.setByName("Notice",392);s.setByName("FullName",393);s.setByName("FamilyName",394);s.setByName("Weight",395);s.setByName("Encoding",null);s.setByName("FontMatrix",i.fontMatrix);s.setByName("FontBBox",i.bbox);s.setByName("charset",null);s.setByName("CharStrings",null);s.setByName("Private",null);n.topDict=s;const o=new CFFStrings;o.add("Version 0.11");o.add("See original notice");o.add(e);o.add(e);o.add("Medium");n.strings=o;n.globalSubrIndex=new CFFIndex;const c=t.length,l=[".notdef"];let h,u;for(h=0;h<c;h++){const e=a[h].glyphName;-1===Hr.indexOf(e)&&o.add(e);l.push(e)}n.charset=new CFFCharset(!1,0,l);const d=new CFFIndex;d.add([139,14]);for(h=0;h<c;h++)d.add(t[h]);n.charStrings=d;const f=new CFFPrivateDict;f.setByName("Subrs",null);const g=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(h=0,u=g.length;h<u;h++){const e=g[h];if(!(e in i.privateData))continue;const t=i.privateData[e];if(Array.isArray(t))for(let e=t.length-1;e>0;e--)t[e]-=t[e-1];f.setByName(e,t)}n.topDict.privateDict=f;const p=new CFFIndex;for(h=0,u=r.length;h<u;h++)p.add(r[h]);f.subrsIndex=p;return new CFFCompiler(n).compile()}}const bi=[[57344,63743],[1048576,1114109]],yi=1e3,wi=["ascent","bbox","black","bold","charProcOperatorList","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","disableFontFace","fallbackName","fontExtraProperties","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","systemFontInfo","vertical"],xi=["cMap","composite","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","subtype","toFontChar","toUnicode","type","vmetrics","widths"];function adjustWidths(e){if(!e.fontMatrix)return;if(e.fontMatrix[0]===t[0])return;const a=.001/e.fontMatrix[0],r=e.widths;for(const e in r)r[e]*=a;e.defaultWidth*=a}function amendFallbackToUnicode(e){if(!e.fallbackToUnicode)return;if(e.toUnicode instanceof IdentityToUnicodeMap)return;const t=[];for(const a in e.fallbackToUnicode)e.toUnicode.has(a)||(t[a]=e.fallbackToUnicode[a]);t.length>0&&e.toUnicode.amend(t)}class fonts_Glyph{constructor(e,t,a,r,i,n,s,o,c){this.originalCharCode=e;this.fontChar=t;this.unicode=a;this.accent=r;this.width=i;this.vmetric=n;this.operatorListId=s;this.isSpace=o;this.isInFont=c}get category(){return shadow(this,"category",function getCharUnicodeCategory(e){const t=Dr.get(e);if(t)return t;const a=e.match(Mr),r={isWhitespace:!!a?.[1],isZeroWidthDiacritic:!!a?.[2],isInvisibleFormatMark:!!a?.[3]};Dr.set(e,r);return r}(this.unicode),!0)}}function int16(e,t){return(e<<8)+t}function writeSignedInt16(e,t,a){e[t+1]=a;e[t]=a>>>8}function signedInt16(e,t){const a=(e<<8)+t;return 32768&a?a-65536:a}function string16(e){return String.fromCharCode(e>>8&255,255&e)}function safeString16(e){e>32767?e=32767:e<-32768&&(e=-32768);return String.fromCharCode(e>>8&255,255&e)}function isTrueTypeCollectionFile(e){return"ttcf"===bytesToString(e.peekBytes(4))}function getFontFileType(e,{type:t,subtype:a,composite:r}){let i,n;if(function isTrueTypeFile(e){const t=e.peekBytes(4);return 65536===readUint32(t,0)||"true"===bytesToString(t)}(e)||isTrueTypeCollectionFile(e))i=r?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(e){return"OTTO"===bytesToString(e.peekBytes(4))}(e))i=r?"CIDFontType2":"OpenType";else if(function isType1File(e){const t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e))i=r?"CIDFontType0":"MMType1"===t?"MMType1":"Type1";else if(function isCFFFile(e){const t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e))if(r){i="CIDFontType0";n="CIDFontType0C"}else{i="MMType1"===t?"MMType1":"Type1";n="Type1C"}else{warn("getFontFileType: Unable to detect correct font file Type/Subtype.");i=t;n=a}return[i,n]}function applyStandardFontGlyphMap(e,t){for(const a in t)e[+a]=t[a]}function buildToFontChar(e,t,a){const r=[];let i;for(let a=0,n=e.length;a<n;a++){i=getUnicodeForGlyph(e[a],t);-1!==i&&(r[a]=i)}for(const e in a){i=getUnicodeForGlyph(a[e],t);-1!==i&&(r[+e]=i)}return r}function isMacNameRecord(e){return 1===e.platform&&0===e.encoding&&0===e.language}function isWinNameRecord(e){return 3===e.platform&&1===e.encoding&&1033===e.language}function convertCidString(e,t,a=!1){switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}const r=`Unsupported CID string (charCode ${e}): "${t}".`;if(a)throw new FormatError(r);warn(r);return t}function adjustMapping(e,t,a,r){const i=Object.create(null),n=new Map,s=[],o=new Set;let c=0;let l=bi[c][0],h=bi[c][1];let u=null;for(const f in e){let g=e[f];if(!t(g))continue;if(l>h){c++;if(c>=bi.length){warn("Ran out of space in font private use area.");break}l=bi[c][0];h=bi[c][1]}const p=l++;0===g&&(g=a);let m=r.get(f);if("string"==typeof m)if(1===m.length)m=m.codePointAt(0);else{if(!u){u=new Map;for(let e=64256;e<=64335;e++){const t=String.fromCharCode(e).normalize("NFKD");t.length>1&&u.set(t,e)}}m=u.get(m)||m.codePointAt(0)}if(m&&!(d=m,bi[0][0]<=d&&d<=bi[0][1]||bi[1][0]<=d&&d<=bi[1][1])&&!o.has(g)){n.set(m,g);o.add(g)}i[p]=g;s[f]=p}var d;return{toFontChar:s,charCodeToGlyphId:i,toUnicodeExtraMap:n,nextAvailableFontCharCode:l}}function createCmapTable(e,t,a){const r=function getRanges(e,t,a){const r=[];for(const t in e)e[t]>=a||r.push({fontCharCode:0|t,glyphId:e[t]});if(t)for(const[e,i]of t)i>=a||r.push({fontCharCode:e,glyphId:i});0===r.length&&r.push({fontCharCode:0,glyphId:0});r.sort(((e,t)=>e.fontCharCode-t.fontCharCode));const i=[],n=r.length;for(let e=0;e<n;){const t=r[e].fontCharCode,a=[r[e].glyphId];++e;let s=t;for(;e<n&&s+1===r[e].fontCharCode;){a.push(r[e].glyphId);++s;++e;if(65535===s)break}i.push([t,s,a])}return i}(e,t,a),i=r.at(-1)[1]>65535?2:1;let n,s,o,c,l="\\0\\0"+string16(i)+"\\0\\0"+string32(4+8*i);for(n=r.length-1;n>=0&&!(r[n][0]<=65535);--n);const h=n+1;r[n][0]<65535&&65535===r[n][1]&&(r[n][1]=65534);const u=r[n][1]<65535?1:0,d=h+u,f=OpenTypeFileBuilder.getSearchParams(d,2);let g,p,m,b,y="",w="",x="",S="",k="",C=0;for(n=0,s=h;n<s;n++){g=r[n];p=g[0];m=g[1];y+=string16(p);w+=string16(m);b=g[2];let e=!0;for(o=1,c=b.length;o<c;++o)if(b[o]!==b[o-1]+1){e=!1;break}if(e){x+=string16(b[0]-p&65535);S+=string16(0)}else{const e=2*(d-n)+2*C;C+=m-p+1;x+=string16(0);S+=string16(e);for(o=0,c=b.length;o<c;++o)k+=string16(b[o])}}if(u>0){w+="ÿÿ";y+="ÿÿ";x+="\\0";S+="\\0\\0"}const v="\\0\\0"+string16(2*d)+string16(f.range)+string16(f.entry)+string16(f.rangeShift)+w+"\\0\\0"+y+x+S+k;let F="",T="";if(i>1){l+="\\0\\0\\n"+string32(4+8*i+4+v.length);F="";for(n=0,s=r.length;n<s;n++){g=r[n];p=g[0];b=g[2];let e=b[0];for(o=1,c=b.length;o<c;++o)if(b[o]!==b[o-1]+1){m=g[0]+o-1;F+=string32(p)+string32(m)+string32(e);p=m+1;e=b[o]}F+=string32(p)+string32(g[1])+string32(e)}T="\\0\\f\\0\\0"+string32(F.length+16)+"\\0\\0\\0\\0"+string32(F.length/12)}return l+"\\0"+string16(v.length+4)+v+T+F}function createOS2Table(e,t,a){a||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let r=0,i=0,n=0,s=0,o=null,c=0,l=-1;if(t){for(let e in t){e|=0;(o>e||!o)&&(o=e);c<e&&(c=e);l=getUnicodeRangeFor(e,l);if(l<32)r|=1<<l;else if(l<64)i|=1<<l-32;else if(l<96)n|=1<<l-64;else{if(!(l<123))throw new FormatError("Unicode ranges Bits > 123 are reserved for internal usage");s|=1<<l-96}}c>65535&&(c=65535)}else{o=0;c=255}const h=e.bbox||[0,0,0,0],u=a.unitsPerEm||(e.fontMatrix?1/Math.max(...e.fontMatrix.slice(0,4).map(Math.abs)):1e3),d=e.ascentScaled?1:u/yi,f=a.ascent||Math.round(d*(e.ascent||h[3]));let g=a.descent||Math.round(d*(e.descent||h[1]));g>0&&e.descent>0&&h[1]<0&&(g=-g);const p=a.yMax||f,m=-a.yMin||-g;return"\\0$ô\\0\\0\\0»\\0\\0\\0»\\0\\0ß\\x001\\0\\0\\0\\0"+String.fromCharCode(e.fixedPitch?9:0)+"\\0\\0\\0\\0\\0\\0"+string32(r)+string32(i)+string32(n)+string32(s)+"*21*"+string16(e.italicAngle?1:0)+string16(o||e.firstChar)+string16(c||e.lastChar)+string16(f)+string16(g)+"\\0d"+string16(p)+string16(m)+"\\0\\0\\0\\0\\0\\0\\0\\0"+string16(e.xHeight)+string16(e.capHeight)+string16(0)+string16(o||e.firstChar)+"\\0"}function createPostTable(e){return"\\0\\0\\0"+string32(Math.floor(65536*e.italicAngle))+"\\0\\0\\0\\0"+string32(e.fixedPitch?1:0)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"}function createPostscriptName(e){return e.replaceAll(/[^\\x21-\\x7E]|[[\\](){}<>/%]/g,"").slice(0,63)}function createNameTable(e,t){t||(t=[[],[]]);const a=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||createPostscriptName(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],r=[];let i,n,s,o,c;for(i=0,n=a.length;i<n;i++){c=t[1][i]||a[i];const e=[];for(s=0,o=c.length;s<o;s++)e.push(string16(c.charCodeAt(s)));r.push(e.join(""))}const l=[a,r],h=["\\0","\\0"],u=["\\0\\0","\\0"],d=["\\0\\0","\\t"],f=a.length*h.length;let g="\\0\\0"+string16(f)+string16(12*f+6),p=0;for(i=0,n=h.length;i<n;i++){const e=l[i];for(s=0,o=e.length;s<o;s++){c=e[s];g+=h[i]+u[i]+d[i]+string16(s)+string16(c.length)+string16(p);p+=c.length}}g+=a.join("")+r.join("");return g}class Font{constructor(e,t,a,r){this.name=e;this.psName=null;this.mimetype=null;this.disableFontFace=r.disableFontFace;this.fontExtraProperties=r.fontExtraProperties;this.loadedName=a.loadedName;this.isType3Font=a.isType3Font;this.missingFile=!1;this.cssFontInfo=a.cssFontInfo;this._charsCache=Object.create(null);this._glyphCache=Object.create(null);let i=!!(a.flags&Er);if(!i&&!a.isSimulatedFlags){const t=e.replaceAll(/[,_]/g,"-").split("-",1)[0],a=Qr();for(const e of t.split("+"))if(a[e]){i=!0;break}}this.isSerifFont=i;this.isSymbolicFont=!!(a.flags&Pr);this.isMonospace=!!(a.flags&Nr);let{type:n,subtype:s}=a;this.type=n;this.subtype=s;this.systemFontInfo=a.systemFontInfo;const o=e.match(/^InvalidPDFjsFont_(.*)_\\d+$/);this.isInvalidPDFjsFont=!!o;this.isInvalidPDFjsFont?this.fallbackName=o[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif";if(this.systemFontInfo?.guessFallback){this.systemFontInfo.guessFallback=!1;this.systemFontInfo.css+=`,${this.fallbackName}`}this.differences=a.differences;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.composite=a.composite;this.cMap=a.cMap;this.capHeight=a.capHeight/yi;this.ascent=a.ascent/yi;this.descent=a.descent/yi;this.lineHeight=this.ascent-this.descent;this.fontMatrix=a.fontMatrix;this.bbox=a.bbox;this.defaultEncoding=a.defaultEncoding;this.toUnicode=a.toUnicode;this.toFontChar=[];if("Type3"===a.type){for(let e=0;e<256;e++)this.toFontChar[e]=this.differences[e]||a.defaultEncoding[e];return}this.cidEncoding=a.cidEncoding||"";this.vertical=!!a.vertical;if(this.vertical){this.vmetrics=a.vmetrics;this.defaultVMetrics=a.defaultVMetrics}if(!t||t.isEmpty){t&&warn(\'Font file is empty in "\'+e+\'" (\'+this.loadedName+")");this.fallbackToSystemFont(a);return}[n,s]=getFontFileType(t,a);n===this.type&&s===this.subtype||info(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${n}/${s}.`);let c;try{switch(n){case"MMType1":info("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const r="Type1C"===s||"CIDFontType0C"===s?new CFFFont(t,a):new Type1Font(e,t,a);adjustWidths(a);c=this.convert(e,r,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";c=this.checkAndRepair(e,t,a);adjustWidths(a);this.isOpenType&&(n="OpenType");break;default:throw new FormatError(`Font ${n} is not supported`)}}catch(e){warn(e);this.fallbackToSystemFont(a);return}amendFallbackToUnicode(a);this.data=c;this.type=n;this.subtype=s;this.fontMatrix=a.fontMatrix;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.toUnicode=a.toUnicode;this.seacMap=a.seacMap}get renderer(){return shadow(this,"renderer",FontRendererFactory.create(this,Rr))}exportData(){const e=this.fontExtraProperties?[...wi,...xi]:wi,t=Object.create(null);for(const a of e){const e=this[a];void 0!==e&&(t[a]=e)}return t}fallbackToSystemFont(e){this.missingFile=!0;const{name:t,type:a}=this;let r=normalizeFontName(t);const i=Jr(),n=Zr(),s=!!i[r],o=!(!n[r]||!i[n[r]]);r=i[r]||n[r]||r;const c=ni()[r];if(c){isNaN(this.ascent)&&(this.ascent=c.ascent/yi);isNaN(this.descent)&&(this.descent=c.descent/yi);isNaN(this.capHeight)&&(this.capHeight=c.capHeight/yi)}this.bold=/bold/gi.test(r);this.italic=/oblique|italic/gi.test(r);this.black=/Black/g.test(t);const l=/Narrow/g.test(t);this.remeasure=(!s||l)&&Object.keys(this.widths).length>0;if((s||o)&&"CIDFontType2"===a&&this.cidEncoding.startsWith("Identity-")){const a=e.cidToGidMap,r=[];applyStandardFontGlyphMap(r,ti());/Arial-?Black/i.test(t)?applyStandardFontGlyphMap(r,ai()):/Calibri/i.test(t)&&applyStandardFontGlyphMap(r,ri());if(a){for(const e in r){const t=r[e];void 0!==a[t]&&(r[+e]=a[t])}a.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){const i=r[e];void 0===a[i]&&(r[+e]=t)}))}this.toUnicode instanceof IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){r[+e]=t}));this.toFontChar=r;this.toUnicode=new ToUnicodeMap(r)}else if(/Symbol/i.test(r))this.toFontChar=buildToFontChar(Cr,Fr(),this.differences);else if(/Dingbats/i.test(r))this.toFontChar=buildToFontChar(vr,Ir(),this.differences);else if(s||o){const e=buildToFontChar(this.defaultEncoding,Fr(),this.differences);"CIDFontType2"!==a||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof IdentityToUnicodeMap||this.toUnicode.forEach((function(t,a){e[+t]=a}));this.toFontChar=e}else{const e=Fr(),a=[];this.toUnicode.forEach(((t,r)=>{if(!this.composite){const a=getUnicodeForGlyph(this.differences[t]||this.defaultEncoding[t],e);-1!==a&&(r=a)}a[+t]=r}));this.composite&&this.toUnicode instanceof IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(t)&&applyStandardFontGlyphMap(a,ti());this.toFontChar=a}amendFallbackToUnicode(e);this.loadedName=r.split("-",1)[0]}checkAndRepair(e,t,a){const r=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function readTables(e,t){const a=Object.create(null);a["OS/2"]=null;a.cmap=null;a.head=null;a.hhea=null;a.hmtx=null;a.maxp=null;a.name=null;a.post=null;for(let i=0;i<t;i++){const t=readTableEntry(e);r.includes(t.tag)&&(0!==t.length&&(a[t.tag]=t))}return a}function readTableEntry(e){const t=e.getString(4),a=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.pos;e.pos=e.start||0;e.skip(r);const s=e.getBytes(i);e.pos=n;if("head"===t){s[8]=s[9]=s[10]=s[11]=0;s[17]|=32}return{tag:t,checksum:a,length:i,offset:r,data:s}}function readOpenTypeHeader(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function sanitizeGlyph(e,t,a,r,i,n){const s={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||a>e.length||a-t<=12)return s;const o=e.subarray(t,a),c=signedInt16(o[2],o[3]),l=signedInt16(o[4],o[5]),h=signedInt16(o[6],o[7]),u=signedInt16(o[8],o[9]);if(c>h){writeSignedInt16(o,2,h);writeSignedInt16(o,6,c)}if(l>u){writeSignedInt16(o,4,u);writeSignedInt16(o,8,l)}const d=signedInt16(o[0],o[1]);if(d<0){if(d<-1)return s;r.set(o,i);s.length=o.length;return s}let f,g=10,p=0;for(f=0;f<d;f++){p=(o[g]<<8|o[g+1])+1;g+=2}const m=g,b=o[g]<<8|o[g+1];s.sizeOfInstructions=b;g+=2+b;const y=g;let w=0;for(f=0;f<p;f++){const e=o[g++];192&e&&(o[g-1]=63&e);let t=2;2&e?t=1:16&e&&(t=0);let a=2;4&e?a=1:32&e&&(a=0);const r=t+a;w+=r;if(8&e){const e=o[g++];0===e&&(o[g-1]^=8);f+=e;w+=e*r}}if(0===w)return s;let x=g+w;if(x>o.length)return s;if(!n&&b>0){r.set(o.subarray(0,m),i);r.set([0,0],i+m);r.set(o.subarray(y,x),i+m+2);x-=b;o.length-x>3&&(x=x+3&-4);s.length=x;return s}if(o.length-x>3){x=x+3&-4;r.set(o.subarray(0,x),i);s.length=x;return s}r.set(o,i);s.length=o.length;return s}function readNameTable(e){const a=(t.start||0)+e.offset;t.pos=a;const r=[[],[]],i=[],n=e.length,s=a+n;if(0!==t.getUint16()||n<6)return[r,i];const o=t.getUint16(),c=t.getUint16();let l,h;for(l=0;l<o&&t.pos+12<=s;l++){const e={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(isMacNameRecord(e)||isWinNameRecord(e))&&i.push(e)}for(l=0,h=i.length;l<h;l++){const e=i[l];if(e.length<=0)continue;const n=a+c+e.offset;if(n+e.length>s)continue;t.pos=n;const o=e.name;if(e.encoding){let a="";for(let r=0,i=e.length;r<i;r+=2)a+=String.fromCharCode(t.getUint16());r[1][o]=a}else r[0][o]=t.getString(e.length)}return[r,i]}const i=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function sanitizeTTProgram(e,t){let a,r,n,s,o,c=e.data,l=0,h=0,u=0;const d=[],f=[],g=[];let p=t.tooComplexToFollowFunctions,m=!1,b=0,y=0;for(let e=c.length;l<e;){const e=c[l++];if(64===e){r=c[l++];if(m||y)l+=r;else for(a=0;a<r;a++)d.push(c[l++])}else if(65===e){r=c[l++];if(m||y)l+=2*r;else for(a=0;a<r;a++){n=c[l++];d.push(n<<8|c[l++])}}else if(176==(248&e)){r=e-176+1;if(m||y)l+=r;else for(a=0;a<r;a++)d.push(c[l++])}else if(184==(248&e)){r=e-184+1;if(m||y)l+=2*r;else for(a=0;a<r;a++){n=c[l++];d.push(signedInt16(n,c[l++]))}}else if(43!==e||p)if(44!==e||p){if(45===e)if(m){m=!1;h=l}else{o=f.pop();if(!o){warn("TT: ENDF bad stack");t.hintsValid=!1;return}s=g.pop();c=o.data;l=o.i;t.functionsStackDeltas[s]=d.length-o.stackTop}else if(137===e){if(m||y){warn("TT: nested IDEFs not allowed");p=!0}m=!0;u=l}else if(88===e)++b;else if(27===e)y=b;else if(89===e){y===b&&(y=0);--b}else if(28===e&&!m&&!y){const e=d.at(-1);e>0&&(l+=e-1)}}else{if(m||y){warn("TT: nested FDEFs not allowed");p=!0}m=!0;u=l;s=d.pop();t.functionsDefined[s]={data:c,i:l}}else if(!m&&!y){s=d.at(-1);if(isNaN(s))info("TT: CALL empty stack (or invalid entry).");else{t.functionsUsed[s]=!0;if(s in t.functionsStackDeltas){const e=d.length+t.functionsStackDeltas[s];if(e<0){warn("TT: CALL invalid functions stack delta.");t.hintsValid=!1;return}d.length=e}else if(s in t.functionsDefined&&!g.includes(s)){f.push({data:c,i:l,stackTop:d.length-1});g.push(s);o=t.functionsDefined[s];if(!o){warn("TT: CALL non-existent function");t.hintsValid=!1;return}c=o.data;l=o.i}}}if(!m&&!y){let t=0;e<=142?t=i[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2);if(e>=113&&e<=117){r=d.pop();isNaN(r)||(t=2*-r)}for(;t<0&&d.length>0;){d.pop();t++}for(;t>0;){d.push(NaN);t--}}}t.tooComplexToFollowFunctions=p;const w=[c];l>c.length&&w.push(new Uint8Array(l-c.length));if(u>h){warn("TT: complementing a missing function tail");w.push(new Uint8Array([34,45]))}!function foldTTTable(e,t){if(t.length>1){let a,r,i=0;for(a=0,r=t.length;a<r;a++)i+=t[a].length;i=i+3&-4;const n=new Uint8Array(i);let s=0;for(a=0,r=t.length;a<r;a++){n.set(t[a],s);s+=t[a].length}e.data=n;e.length=i}}(e,w)}let n,s,o,c;if(isTrueTypeCollectionFile(t=new Stream(new Uint8Array(t.getBytes())))){const e=function readTrueTypeCollectionData(e,t){const{numFonts:a,offsetTable:r}=function readTrueTypeCollectionHeader(e){const t=e.getString(4);assert("ttcf"===t,"Must be a TrueType Collection font.");const a=e.getUint16(),r=e.getUint16(),i=e.getInt32()>>>0,n=[];for(let t=0;t<i;t++)n.push(e.getInt32()>>>0);const s={ttcTag:t,majorVersion:a,minorVersion:r,numFonts:i,offsetTable:n};switch(a){case 1:return s;case 2:s.dsigTag=e.getInt32()>>>0;s.dsigLength=e.getInt32()>>>0;s.dsigOffset=e.getInt32()>>>0;return s}throw new FormatError(`Invalid TrueType Collection majorVersion: ${a}.`)}(e),i=t.split("+");let n;for(let s=0;s<a;s++){e.pos=(e.start||0)+r[s];const a=readOpenTypeHeader(e),o=readTables(e,a.numTables);if(!o.name)throw new FormatError(\'TrueType Collection font must contain a "name" table.\');const[c]=readNameTable(o.name);for(let e=0,r=c.length;e<r;e++)for(let r=0,s=c[e].length;r<s;r++){const s=c[e][r]?.replaceAll(/\\s/g,"");if(s){if(s===t)return{header:a,tables:o};if(!(i.length<2))for(const e of i)s===e&&(n={name:e,header:a,tables:o})}}}if(n){warn(`TrueType Collection does not contain "${t}" font, falling back to "${n.name}" font instead.`);return{header:n.header,tables:n.tables}}throw new FormatError(`TrueType Collection does not contain "${t}" font.`)}(t,this.name);n=e.header;s=e.tables}else{n=readOpenTypeHeader(t);s=readTables(t,n.numTables)}const l=!s["CFF "];if(l){if(!s.loca)throw new FormatError(\'Required "loca" table is not found\');if(!s.glyf){warn(\'Required "glyf" table is not found -- trying to recover.\');s.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{const t=a.composite&&(a.cidToGidMap?.length>0||!(a.cMap instanceof IdentityCMap));if("OTTO"===n.version&&!t||!s.head||!s.hhea||!s.maxp||!s.post){c=new Stream(s["CFF "].data);o=new CFFFont(c,a);return this.convert(e,o,a)}delete s.glyf;delete s.loca;delete s.fpgm;delete s.prep;delete s["cvt "];this.isOpenType=!0}if(!s.maxp)throw new FormatError(\'Required "maxp" table is not found\');t.pos=(t.start||0)+s.maxp.offset;let h=t.getInt32();const u=t.getUint16();if(65536!==h&&20480!==h){if(6===s.maxp.length)h=20480;else{if(!(s.maxp.length>=32))throw new FormatError(\'"maxp" table has a wrong version number\');h=65536}!function writeUint32(e,t,a){e[t+3]=255&a;e[t+2]=a>>>8;e[t+1]=a>>>16;e[t]=a>>>24}(s.maxp.data,0,h)}if(a.scaleFactors?.length===u&&l){const{scaleFactors:e}=a,t=int16(s.head.data[50],s.head.data[51]),r=new GlyfTable({glyfTable:s.glyf.data,isGlyphLocationsLong:t,locaTable:s.loca.data,numGlyphs:u});r.scale(e);const{glyf:i,loca:n,isLocationLong:o}=r.write();s.glyf.data=i;s.loca.data=n;if(o!==!!t){s.head.data[50]=0;s.head.data[51]=o?1:0}const c=s.hmtx.data;for(let t=0;t<u;t++){const a=4*t,r=Math.round(e[t]*int16(c[a],c[a+1]));c[a]=r>>8&255;c[a+1]=255&r;writeSignedInt16(c,a+2,Math.round(e[t]*signedInt16(c[a+2],c[a+3])))}}let d=u+1,f=!0;if(d>65535){f=!1;d=u;warn("Not enough space in glyfs to duplicate first glyph.")}let g=0,p=0;if(h>=65536&&s.maxp.length>=32){t.pos+=8;if(t.getUint16()>2){s.maxp.data[14]=0;s.maxp.data[15]=2}t.pos+=4;g=t.getUint16();t.pos+=4;p=t.getUint16()}s.maxp.data[4]=d>>8;s.maxp.data[5]=255&d;const m=function sanitizeTTPrograms(e,t,a,r){const i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};e&&sanitizeTTProgram(e,i);t&&sanitizeTTProgram(t,i);e&&function checkInvalidFunctions(e,t){if(!e.tooComplexToFollowFunctions)if(e.functionsDefined.length>t){warn("TT: more functions defined than expected");e.hintsValid=!1}else for(let a=0,r=e.functionsUsed.length;a<r;a++){if(a>t){warn("TT: invalid function id: "+a);e.hintsValid=!1;return}if(e.functionsUsed[a]&&!e.functionsDefined[a]){warn("TT: undefined function: "+a);e.hintsValid=!1;return}}}(i,r);if(a&&1&a.length){const e=new Uint8Array(a.length+1);e.set(a.data);a.data=e}return i.hintsValid}(s.fpgm,s.prep,s["cvt "],g);if(!m){delete s.fpgm;delete s.prep;delete s["cvt "]}!function sanitizeMetrics(e,t,a,r,i,n){if(!t){a&&(a.data=null);return}e.pos=(e.start||0)+t.offset;e.pos+=4;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;const s=e.getUint16();e.pos+=8;e.pos+=2;let o=e.getUint16();if(0!==s){if(!(2&int16(r.data[44],r.data[45]))){t.data[22]=0;t.data[23]=0}}if(o>i){info(`The numOfMetrics (${o}) should not be greater than the numGlyphs (${i}).`);o=i;t.data[34]=(65280&o)>>8;t.data[35]=255&o}const c=i-o-(a.length-4*o>>1);if(c>0){const e=new Uint8Array(a.length+2*c);e.set(a.data);if(n){e[a.length]=a.data[2];e[a.length+1]=a.data[3]}a.data=e}}(t,s.hhea,s.hmtx,s.head,d,f);if(!s.head)throw new FormatError(\'Required "head" table is not found\');!function sanitizeHead(e,t,a){const r=e.data,i=function int32(e,t,a,r){return(e<<24)+(t<<16)+(a<<8)+r}(r[0],r[1],r[2],r[3]);if(i>>16!=1){info("Attempting to fix invalid version in head table: "+i);r[0]=0;r[1]=1;r[2]=0;r[3]=0}const n=int16(r[50],r[51]);if(n<0||n>1){info("Attempting to fix invalid indexToLocFormat in head table: "+n);const e=t+1;if(a===e<<1){r[50]=0;r[51]=0}else{if(a!==e<<2)throw new FormatError("Could not fix indexToLocFormat: "+n);r[50]=0;r[51]=1}}}(s.head,u,l?s.loca.length:0);let b=Object.create(null);if(l){const e=int16(s.head.data[50],s.head.data[51]),t=function sanitizeGlyphLocations(e,t,a,r,i,n,s){let o,c,l;if(r){o=4;c=function fontItemDecodeLong(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};l=function fontItemEncodeLong(e,t,a){e[t]=a>>>24&255;e[t+1]=a>>16&255;e[t+2]=a>>8&255;e[t+3]=255&a}}else{o=2;c=function fontItemDecode(e,t){return e[t]<<9|e[t+1]<<1};l=function fontItemEncode(e,t,a){e[t]=a>>9&255;e[t+1]=a>>1&255}}const h=n?a+1:a,u=o*(1+h),d=new Uint8Array(u);d.set(e.data.subarray(0,u));e.data=d;const f=t.data,g=f.length,p=new Uint8Array(g);let m,b;const y=[];for(m=0,b=0;m<a+1;m++,b+=o){let e=c(d,b);e>g&&(e=g);y.push({index:m,offset:e,endOffset:0})}y.sort(((e,t)=>e.offset-t.offset));for(m=0;m<a;m++)y[m].endOffset=y[m+1].offset;y.sort(((e,t)=>e.index-t.index));for(m=0;m<a;m++){const{offset:e,endOffset:t}=y[m];if(0!==e||0!==t)break;const a=y[m+1].offset;if(0!==a){y[m].endOffset=a;break}}const w=y.at(-2);0!==w.offset&&0===w.endOffset&&(w.endOffset=g);const x=Object.create(null);let S=0;l(d,0,S);for(m=0,b=o;m<a;m++,b+=o){const e=sanitizeGlyph(f,y[m].offset,y[m].endOffset,p,S,i),t=e.length;0===t&&(x[m]=!0);e.sizeOfInstructions>s&&(s=e.sizeOfInstructions);S+=t;l(d,b,S)}if(0===S){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(m=0,b=o;m<h;m++,b+=o)l(d,b,e.length);t.data=e}else if(n){const a=c(d,o);if(p.length>a+S)t.data=p.subarray(0,a+S);else{t.data=new Uint8Array(a+S);t.data.set(p.subarray(0,S))}t.data.set(p.subarray(0,a),S);l(e.data,d.length-o,S+a)}else t.data=p.subarray(0,S);return{missingGlyphs:x,maxSizeOfInstructions:s}}(s.loca,s.glyf,u,e,m,f,p);b=t.missingGlyphs;if(h>=65536&&s.maxp.length>=32){s.maxp.data[26]=t.maxSizeOfInstructions>>8;s.maxp.data[27]=255&t.maxSizeOfInstructions}}if(!s.hhea)throw new FormatError(\'Required "hhea" table is not found\');if(0===s.hhea.data[10]&&0===s.hhea.data[11]){s.hhea.data[10]=255;s.hhea.data[11]=255}const y={unitsPerEm:int16(s.head.data[18],s.head.data[19]),yMax:signedInt16(s.head.data[42],s.head.data[43]),yMin:signedInt16(s.head.data[38],s.head.data[39]),ascent:signedInt16(s.hhea.data[4],s.hhea.data[5]),descent:signedInt16(s.hhea.data[6],s.hhea.data[7]),lineGap:signedInt16(s.hhea.data[8],s.hhea.data[9])};this.ascent=y.ascent/y.unitsPerEm;this.descent=y.descent/y.unitsPerEm;this.lineGap=y.lineGap/y.unitsPerEm;if(this.cssFontInfo?.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else this.lineHeight=this.ascent-this.descent+this.lineGap;s.post&&function readPostScriptTable(e,a,r){const i=(t.start||0)+e.offset;t.pos=i;const n=i+e.length,s=t.getInt32();t.skip(28);let o,c,l=!0;switch(s){case 65536:o=jr;break;case 131072:const e=t.getUint16();if(e!==r){l=!1;break}const i=[];for(c=0;c<e;++c){const e=t.getUint16();if(e>=32768){l=!1;break}i.push(e)}if(!l)break;const h=[],u=[];for(;t.pos<n;){const e=t.getByte();u.length=e;for(c=0;c<e;++c)u[c]=String.fromCharCode(t.getByte());h.push(u.join(""))}o=[];for(c=0;c<e;++c){const e=i[c];e<258?o.push(jr[e]):o.push(h[e-258])}break;case 196608:break;default:warn("Unknown/unsupported post table version "+s);l=!1;a.defaultEncoding&&(o=a.defaultEncoding)}a.glyphNames=o;return l}(s.post,a,u);s.post={tag:"post",data:createPostTable(a)};const w=Object.create(null);function hasGlyph(e){return!b[e]}if(a.composite){const e=a.cidToGidMap||[],t=0===e.length;a.cMap.forEach((function(a,r){"string"==typeof r&&(r=convertCidString(a,r,!0));if(r>65535)throw new FormatError("Max size of CID is 65,535");let i=-1;t?i=r:void 0!==e[r]&&(i=e[r]);i>=0&&i<u&&hasGlyph(i)&&(w[a]=i)}))}else{const e=function readCmapTable(e,t,a,r){if(!e){warn("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}let i,n=(t.start||0)+e.offset;t.pos=n;t.skip(2);const s=t.getUint16();let o,c=!1;for(let e=0;e<s;e++){const i=t.getUint16(),n=t.getUint16(),l=t.getInt32()>>>0;let h=!1;if(o?.platformId!==i||o?.encodingId!==n){if(0!==i||0!==n&&1!==n&&3!==n)if(1===i&&0===n)h=!0;else if(3!==i||1!==n||!r&&o){if(a&&3===i&&0===n){h=!0;let a=!0;if(e<s-1){const e=t.peekBytes(2);int16(e[0],e[1])<i&&(a=!1)}a&&(c=!0)}}else{h=!0;a||(c=!0)}else h=!0;h&&(o={platformId:i,encodingId:n,offset:l});if(c)break}}o&&(t.pos=n+o.offset);if(!o||-1===t.peekByte()){warn("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}const l=t.getUint16();let h=!1;const u=[];let d,f;if(0===l){t.skip(4);for(d=0;d<256;d++){const e=t.getByte();e&&u.push({charCode:d,glyphId:e})}h=!0}else if(2===l){t.skip(4);const e=[];let a=0;for(let r=0;r<256;r++){const r=t.getUint16()>>3;e.push(r);a=Math.max(r,a)}const r=[];for(let e=0;e<=a;e++)r.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:signedInt16(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let a=0;a<256;a++)if(0===e[a]){t.pos=r[0].idRangePos+2*a;f=t.getUint16();u.push({charCode:a,glyphId:f})}else{const i=r[e[a]];for(d=0;d<i.entryCount;d++){const e=(a<<8)+d+i.firstCode;t.pos=i.idRangePos+2*d;f=t.getUint16();0!==f&&(f=(f+i.idDelta)%65536);u.push({charCode:e,glyphId:f})}}}else if(4===l){t.skip(4);const e=t.getUint16()>>1;t.skip(6);const a=[];let r;for(r=0;r<e;r++)a.push({end:t.getUint16()});t.skip(2);for(r=0;r<e;r++)a[r].start=t.getUint16();for(r=0;r<e;r++)a[r].delta=t.getUint16();let s,o=0;for(r=0;r<e;r++){i=a[r];const n=t.getUint16();if(n){s=(n>>1)-(e-r);i.offsetIndex=s;o=Math.max(o,s+i.end-i.start+1)}else i.offsetIndex=-1}const c=[];for(d=0;d<o;d++)c.push(t.getUint16());for(r=0;r<e;r++){i=a[r];n=i.start;const e=i.end,t=i.delta;s=i.offsetIndex;for(d=n;d<=e;d++)if(65535!==d){f=s<0?d:c[s+d-n];f=f+t&65535;u.push({charCode:d,glyphId:f})}}}else if(6===l){t.skip(4);const e=t.getUint16(),a=t.getUint16();for(d=0;d<a;d++){f=t.getUint16();const a=e+d;u.push({charCode:a,glyphId:f})}}else{if(12!==l){warn("cmap table has unsupported format: "+l);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}{t.skip(10);const e=t.getInt32()>>>0;for(d=0;d<e;d++){const e=t.getInt32()>>>0,a=t.getInt32()>>>0;let r=t.getInt32()>>>0;for(let t=e;t<=a;t++)u.push({charCode:t,glyphId:r++})}}}u.sort(((e,t)=>e.charCode-t.charCode));const g=[],p=new Set;for(const e of u){const{charCode:t}=e;if(!p.has(t)){p.add(t);g.push(e)}}return{platformId:o.platformId,encodingId:o.encodingId,mappings:g,hasShortCmap:h}}(s.cmap,t,this.isSymbolicFont,a.hasEncoding),r=e.platformId,i=e.encodingId,n=e.mappings;let o=[],c=!1;!a.hasEncoding||"MacRomanEncoding"!==a.baseEncodingName&&"WinAnsiEncoding"!==a.baseEncodingName||(o=getEncoding(a.baseEncodingName));if(a.hasEncoding&&!this.isSymbolicFont&&(3===r&&1===i||1===r&&0===i)){const e=Fr();for(let t=0;t<256;t++){let s;s=void 0!==this.differences[t]?this.differences[t]:o.length&&""!==o[t]?o[t]:Ar[t];if(!s)continue;const c=recoverGlyphName(s,e);let l;3===r&&1===i?l=e[c]:1===r&&0===i&&(l=Sr.indexOf(c));if(void 0===l){if(!a.glyphNames&&a.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof IdentityToUnicodeMap)){const e=this.toUnicode.get(t);e&&(l=e.codePointAt(0))}if(void 0===l)continue}for(const e of n)if(e.charCode===l){w[t]=e.glyphId;break}}}else if(0===r){for(const e of n)w[e.charCode]=e.glyphId;c=!0}else if(3===r&&0===i)for(const e of n){let t=e.charCode;t>=61440&&t<=61695&&(t&=255);w[t]=e.glyphId}else for(const e of n)w[e.charCode]=e.glyphId;if(a.glyphNames&&(o.length||this.differences.length))for(let e=0;e<256;++e){if(!c&&void 0!==w[e])continue;const t=this.differences[e]||o[e];if(!t)continue;const r=a.glyphNames.indexOf(t);r>0&&hasGlyph(r)&&(w[e]=r)}}0===w.length&&(w[0]=0);let x=d-1;f||(x=0);if(!a.cssFontInfo){const e=adjustMapping(w,hasGlyph,x,this.toUnicode);this.toFontChar=e.toFontChar;s.cmap={tag:"cmap",data:createCmapTable(e.charCodeToGlyphId,e.toUnicodeExtraMap,d)};s["OS/2"]&&function validateOS2Table(e,t){t.pos=(t.start||0)+e.offset;const a=t.getUint16();t.skip(60);const r=t.getUint16();if(a<4&&768&r)return!1;if(t.getUint16()>t.getUint16())return!1;t.skip(6);if(0===t.getUint16())return!1;e.data[8]=e.data[9]=0;return!0}(s["OS/2"],t)||(s["OS/2"]={tag:"OS/2",data:createOS2Table(a,e.charCodeToGlyphId,y)})}if(!l)try{c=new Stream(s["CFF "].data);o=new CFFParser(c,a,Rr).parse();o.duplicateFirstGlyph();const e=new CFFCompiler(o);s["CFF "].data=e.compile()}catch{warn("Failed to compile font "+a.loadedName)}if(s.name){const[t,r]=readNameTable(s.name);s.name.data=createNameTable(e,t);this.psName=t[0][6]||null;a.composite||function adjustTrueTypeToUnicode(e,t,a){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(e.hasEncoding)return;if(e.toUnicode instanceof IdentityToUnicodeMap)return;if(!t)return;if(0===a.length)return;if(e.defaultEncoding===kr)return;for(const e of a)if(!isWinNameRecord(e))return;const r=kr,i=[],n=Fr();for(const e in r){const t=r[e];if(""===t)continue;const a=n[t];void 0!==a&&(i[e]=String.fromCharCode(a))}i.length>0&&e.toUnicode.amend(i)}(a,this.isSymbolicFont,r)}else s.name={tag:"name",data:createNameTable(this.name)};const S=new OpenTypeFileBuilder(n.version);for(const e in s)S.addTable(e,s[e].data);return S.toArray()}convert(e,a,r){r.fixedPitch=!1;r.builtInEncoding&&function adjustType1ToUnicode(e,t){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(t===e.defaultEncoding)return;if(e.toUnicode instanceof IdentityToUnicodeMap)return;const a=[],r=Fr();for(const i in t){if(e.hasEncoding&&(e.baseEncodingName||void 0!==e.differences[i]))continue;const n=getUnicodeForGlyph(t[i],r);-1!==n&&(a[i]=String.fromCharCode(n))}a.length>0&&e.toUnicode.amend(a)}(r,r.builtInEncoding);let i=1;a instanceof CFFFont&&(i=a.numGlyphs-1);const n=a.getGlyphMapping(r);let s=null,o=n,c=null;if(!r.cssFontInfo){s=adjustMapping(n,a.hasGlyphId.bind(a),i,this.toUnicode);this.toFontChar=s.toFontChar;o=s.charCodeToGlyphId;c=s.toUnicodeExtraMap}const l=a.numGlyphs;function getCharCodes(e,t){let a=null;for(const r in e)t===e[r]&&(a||=[]).push(0|r);return a}function createCharCode(e,t){for(const a in e)if(t===e[a])return 0|a;s.charCodeToGlyphId[s.nextAvailableFontCharCode]=t;return s.nextAvailableFontCharCode++}const h=a.seacs;if(s&&h?.length){const e=r.fontMatrix||t,i=a.getCharset(),o=Object.create(null);for(let t in h){t|=0;const a=h[t],r=Ar[a[2]],c=Ar[a[3]],l=i.indexOf(r),u=i.indexOf(c);if(l<0||u<0)continue;const d={x:a[0]*e[0]+a[1]*e[2]+e[4],y:a[0]*e[1]+a[1]*e[3]+e[5]},f=getCharCodes(n,t);if(f)for(const e of f){const t=s.charCodeToGlyphId,a=createCharCode(t,l),r=createCharCode(t,u);o[e]={baseFontCharCode:a,accentFontCharCode:r,accentOffset:d}}}r.seacMap=o}const u=r.fontMatrix?1/Math.max(...r.fontMatrix.slice(0,4).map(Math.abs)):1e3,d=new OpenTypeFileBuilder("OTTO");d.addTable("CFF ",a.data);d.addTable("OS/2",createOS2Table(r,o));d.addTable("cmap",createCmapTable(o,c,l));d.addTable("head","\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0_<õ\\0\\0"+safeString16(u)+"\\0\\0\\0\\0\\v~\'\\0\\0\\0\\0\\v~\'\\0\\0"+safeString16(r.descent)+"ÿ"+safeString16(r.ascent)+string16(r.italicAngle?2:0)+"\\0\\0\\0\\0\\0\\0\\0");d.addTable("hhea","\\0\\0\\0"+safeString16(r.ascent)+safeString16(r.descent)+"\\0\\0ÿÿ\\0\\0\\0\\0\\0\\0"+safeString16(r.capHeight)+safeString16(Math.tan(r.italicAngle)*r.xHeight)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"+string16(l));d.addTable("hmtx",function fontFieldsHmtx(){const e=a.charstrings,t=a.cff?a.cff.widths:null;let r="\\0\\0\\0\\0";for(let a=1,i=l;a<i;a++){let i=0;if(e){const t=e[a-1];i="width"in t?t.width:0}else t&&(i=Math.ceil(t[a]||0));r+=string16(i)+string16(0)}return r}());d.addTable("maxp","\\0\\0P\\0"+string16(l));d.addTable("name",createNameTable(e));d.addTable("post",createPostTable(r));return d.toArray()}get _spaceWidth(){const e=["space","minus","one","i","I"];let t;for(const a of e){if(a in this.widths){t=this.widths[a];break}const e=Fr()[a];let r=0;if(this.composite&&this.cMap.contains(e)){r=this.cMap.lookup(e);"string"==typeof r&&(r=convertCidString(e,r))}!r&&this.toUnicode&&(r=this.toUnicode.charCodeOf(e));r<=0&&(r=e);t=this.widths[r];if(t)break}return shadow(this,"_spaceWidth",t||this.defaultWidth)}_charToGlyph(e,t=!1){let a,r,i,n=this._glyphCache[e];if(n?.isSpace===t)return n;let s=e;if(this.cMap?.contains(e)){s=this.cMap.lookup(e);"string"==typeof s&&(s=convertCidString(e,s))}r=this.widths[s];"number"!=typeof r&&(r=this.defaultWidth);const o=this.vmetrics?.[s];let c=this.toUnicode.get(e)||e;"number"==typeof c&&(c=String.fromCharCode(c));let l=void 0!==this.toFontChar[e];a=this.toFontChar[e]||e;if(this.missingFile){const t=this.differences[e]||this.defaultEncoding[e];if((".notdef"===t||""===t)&&"Type1"===this.type){a=32;if(""===t){r||=this._spaceWidth;c=String.fromCharCode(a)}}a=function mapSpecialUnicodeValues(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?Tr()[e]||e:173===e?45:e}(a)}this.isType3Font&&(i=a);let h=null;if(this.seacMap?.[e]){l=!0;const t=this.seacMap[e];a=t.baseFontCharCode;h={fontChar:String.fromCodePoint(t.accentFontCharCode),offset:t.accentOffset}}let u="";"number"==typeof a&&(a<=1114111?u=String.fromCodePoint(a):warn(`charToGlyph - invalid fontCharCode: ${a}`));if(this.missingFile&&this.vertical&&1===u.length){const e=_r()[u.charCodeAt(0)];e&&(u=c=String.fromCharCode(e))}n=new fonts_Glyph(e,u,c,h,r,o,i,t,l);return this._glyphCache[e]=n}charsToGlyphs(e){let t=this._charsCache[e];if(t)return t;t=[];if(this.cMap){const a=Object.create(null),r=e.length;let i=0;for(;i<r;){this.cMap.readCharCode(e,i,a);const{charcode:r,length:n}=a;i+=n;const s=this._charToGlyph(r,1===n&&32===e.charCodeAt(i-1));t.push(s)}}else for(let a=0,r=e.length;a<r;++a){const r=e.charCodeAt(a),i=this._charToGlyph(r,32===r);t.push(i)}return this._charsCache[e]=t}getCharPositions(e){const t=[];if(this.cMap){const a=Object.create(null);let r=0;for(;r<e.length;){this.cMap.readCharCode(e,r,a);const i=a.length;t.push([r,r+i]);r+=i}}else for(let a=0,r=e.length;a<r;++a)t.push([a,a+1]);return t}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(e){const t=[],a=[],hasCurrentBufErrors=()=>t.length%2==1,r=this.toUnicode instanceof IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let i=0,n=e.length;i<n;i++){const n=e.codePointAt(i);n>55295&&(n<57344||n>65533)&&i++;if(this.toUnicode){const e=r(n);if(-1!==e){if(hasCurrentBufErrors()){t.push(a.join(""));a.length=0}for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)a.push(String.fromCharCode(e>>8*t&255));continue}}if(!hasCurrentBufErrors()){t.push(a.join(""));a.length=0}a.push(String.fromCodePoint(n))}t.push(a.join(""));return t}}class ErrorFont{constructor(e){this.error=e;this.loadedName="g_font_error";this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}}const Si=2,Ai=3,ki=4,Ci=5,vi=6,Fi=7;class Pattern{constructor(){unreachable("Cannot initialize Pattern.")}static parseShading(e,t,a,r,i,n){const s=e instanceof BaseStream?e.dict:e,o=s.get("ShadingType");try{switch(o){case Si:case Ai:return new RadialAxialShading(s,t,a,r,i,n);case ki:case Ci:case vi:case Fi:return new MeshShading(e,t,a,r,i,n);default:throw new FormatError("Unsupported ShadingType: "+o)}}catch(e){if(e instanceof MissingDataException)throw e;warn(e);return new DummyShading}}}class BaseShading{static SMALL_NUMBER=1e-6;getIR(){unreachable("Abstract method `getIR` called.")}}class RadialAxialShading extends BaseShading{constructor(e,t,a,r,i,n){super();this.shadingType=e.get("ShadingType");let s=0;this.shadingType===Si?s=4:this.shadingType===Ai&&(s=6);this.coordsArr=e.getArray("Coords");if(!isNumberArray(this.coordsArr,s))throw new FormatError("RadialAxialShading: Invalid /Coords array.");const o=ColorSpaceUtils.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:t,resources:a,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:n});this.bbox=lookupNormalRect(e.getArray("BBox"),null);let c=0,l=1;const h=e.getArray("Domain");isNumberArray(h,2)&&([c,l]=h);let u=!1,d=!1;const f=e.getArray("Extend");(function isBooleanArray(e,t){return Array.isArray(e)&&(null===t||e.length===t)&&e.every((e=>"boolean"==typeof e))})(f,2)&&([u,d]=f);if(!(this.shadingType!==Ai||u&&d)){const[e,t,a,r,i,n]=this.coordsArr,s=Math.hypot(e-r,t-i);a<=n+s&&n<=a+s&&warn("Unsupported radial gradient.")}this.extendStart=u;this.extendEnd=d;const g=e.getRaw("Function"),p=r.create(g,!0),m=(l-c)/840,b=this.colorStops=[];if(c>=l||m<=0){info("Bad shading domain.");return}const y=new Float32Array(o.numComps),w=new Float32Array(1);let x=0;w[0]=c;p(w,0,y,0);const S=new Uint8ClampedArray(3);o.getRgb(y,0,S);let[k,C,v]=S;b.push([0,Util.makeHexColor(k,C,v)]);let F=1;w[0]=c+m;p(w,0,y,0);o.getRgb(y,0,S);let[T,O,M]=S,D=T-k+1,R=O-C+1,N=M-v+1,E=T-k-1,L=O-C-1,j=M-v-1;for(let e=2;e<840;e++){w[0]=c+e*m;p(w,0,y,0);o.getRgb(y,0,S);const[t,a,r]=S,i=e-x;D=Math.min(D,(t-k+1)/i);R=Math.min(R,(a-C+1)/i);N=Math.min(N,(r-v+1)/i);E=Math.max(E,(t-k-1)/i);L=Math.max(L,(a-C-1)/i);j=Math.max(j,(r-v-1)/i);if(!(E<=D&&L<=R&&j<=N)){const e=Util.makeHexColor(T,O,M);b.push([F/840,e]);D=t-T+1;R=a-O+1;N=r-M+1;E=t-T-1;L=a-O-1;j=r-M-1;x=F;k=T;C=O;v=M}F=e;T=t;O=a;M=r}b.push([1,Util.makeHexColor(T,O,M)]);let _="transparent";e.has("Background")&&(_=o.getRgbHex(e.get("Background"),0));if(!u){b.unshift([0,_]);b[1][0]+=BaseShading.SMALL_NUMBER}if(!d){b.at(-1)[0]-=BaseShading.SMALL_NUMBER;b.push([1,_])}this.colorStops=b}getIR(){const{coordsArr:e,shadingType:t}=this;let a,r,i,n,s;if(t===Si){r=[e[0],e[1]];i=[e[2],e[3]];n=null;s=null;a="axial"}else if(t===Ai){r=[e[0],e[1]];i=[e[3],e[4]];n=e[2];s=e[5];a="radial"}else unreachable(`getPattern type unknown: ${t}`);return["RadialAxial",a,this.bbox,this.colorStops,r,i,n,s]}}class MeshStreamReader{constructor(e,t){this.stream=e;this.context=t;this.buffer=0;this.bufferLength=0;const a=t.numComps;this.tmpCompsBuf=new Float32Array(a);const r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;const e=this.stream.getByte();if(e<0)return!1;this.buffer=e;this.bufferLength=8;return!0}readBits(e){const{stream:t}=this;let{buffer:a,bufferLength:r}=this;if(32===e){if(0===r)return t.getInt32()>>>0;a=a<<24|t.getByte()<<16|t.getByte()<<8|t.getByte();const e=t.getByte();this.buffer=e&(1<<r)-1;return(a<<8-r|(255&e)>>r)>>>0}if(8===e&&0===r)return t.getByte();for(;r<e;){a=a<<8|t.getByte();r+=8}r-=e;this.bufferLength=r;this.buffer=a&(1<<r)-1;return a>>r}align(){this.buffer=0;this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const{bitsPerCoordinate:e,decode:t}=this.context,a=this.readBits(e),r=this.readBits(e),i=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[a*i*(t[1]-t[0])+t[0],r*i*(t[3]-t[2])+t[2]]}readComponents(){const{bitsPerComponent:e,colorFn:t,colorSpace:a,decode:r,numComps:i}=this.context,n=e<32?1/((1<<e)-1):2.3283064365386963e-10,s=this.tmpCompsBuf;for(let t=0,a=4;t<i;t++,a+=2){const i=this.readBits(e);s[t]=i*n*(r[a+1]-r[a])+r[a]}const o=this.tmpCsCompsBuf;t?.(s,0,o,0);return a.getRgb(o,0)}}let Ii=Object.create(null);function getB(e){return Ii[e]||=function buildB(e){const t=[];for(let a=0;a<=e;a++){const r=a/e,i=1-r;t.push(new Float32Array([i**3,3*r*i**2,3*r**2*i,r**3]))}return t}(e)}class MeshShading extends BaseShading{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(e,t,a,r,i,n){super();if(!(e instanceof BaseStream))throw new FormatError("Mesh data is not a stream");const s=e.dict;this.shadingType=s.get("ShadingType");this.bbox=lookupNormalRect(s.getArray("BBox"),null);const o=ColorSpaceUtils.parse({cs:s.getRaw("CS")||s.getRaw("ColorSpace"),xref:t,resources:a,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:n});this.background=s.has("Background")?o.getRgb(s.get("Background"),0):null;const c=s.getRaw("Function"),l=c?r.create(c,!0):null;this.coords=[];this.colors=[];this.figures=[];const h={bitsPerCoordinate:s.get("BitsPerCoordinate"),bitsPerComponent:s.get("BitsPerComponent"),bitsPerFlag:s.get("BitsPerFlag"),decode:s.getArray("Decode"),colorFn:l,colorSpace:o,numComps:l?1:o.numComps},u=new MeshStreamReader(e,h);let d=!1;switch(this.shadingType){case ki:this._decodeType4Shading(u);break;case Ci:const e=0|s.get("VerticesPerRow");if(e<2)throw new FormatError("Invalid VerticesPerRow");this._decodeType5Shading(u,e);break;case vi:this._decodeType6Shading(u);d=!0;break;case Fi:this._decodeType7Shading(u);d=!0;break;default:unreachable("Unsupported mesh type.")}if(d){this._updateBounds();for(let e=0,t=this.figures.length;e<t;e++)this._buildFigureFromPatch(e)}this._updateBounds();this._packData()}_decodeType4Shading(e){const t=this.coords,a=this.colors,r=[],i=[];let n=0;for(;e.hasData;){const s=e.readFlag(),o=e.readCoordinate(),c=e.readComponents();if(0===n){if(!(0<=s&&s<=2))throw new FormatError("Unknown type4 flag");switch(s){case 0:n=3;break;case 1:i.push(i.at(-2),i.at(-1));n=1;break;case 2:i.push(i.at(-3),i.at(-1));n=1}r.push(s)}i.push(t.length);t.push(o);a.push(c);n--;e.align()}this.figures.push({type:"triangles",coords:new Int32Array(i),colors:new Int32Array(i)})}_decodeType5Shading(e,t){const a=this.coords,r=this.colors,i=[];for(;e.hasData;){const t=e.readCoordinate(),n=e.readComponents();i.push(a.length);a.push(t);r.push(n)}this.figures.push({type:"lattice",coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:t})}_decodeType6Shading(e){const t=this.coords,a=this.colors,r=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){const n=e.readFlag();if(!(0<=n&&n<=3))throw new FormatError("Unknown type6 flag");const s=t.length;for(let a=0,r=0!==n?8:12;a<r;a++)t.push(e.readCoordinate());const o=a.length;for(let t=0,r=0!==n?2:4;t<r;t++)a.push(e.readComponents());let c,l,h,u;switch(n){case 0:r[12]=s+3;r[13]=s+4;r[14]=s+5;r[15]=s+6;r[8]=s+2;r[11]=s+7;r[4]=s+1;r[7]=s+8;r[0]=s;r[1]=s+11;r[2]=s+10;r[3]=s+9;i[2]=o+1;i[3]=o+2;i[0]=o;i[1]=o+3;break;case 1:c=r[12];l=r[13];h=r[14];u=r[15];r[12]=u;r[13]=s+0;r[14]=s+1;r[15]=s+2;r[8]=h;r[11]=s+3;r[4]=l;r[7]=s+4;r[0]=c;r[1]=s+7;r[2]=s+6;r[3]=s+5;c=i[2];l=i[3];i[2]=l;i[3]=o;i[0]=c;i[1]=o+1;break;case 2:c=r[15];l=r[11];r[12]=r[3];r[13]=s+0;r[14]=s+1;r[15]=s+2;r[8]=r[7];r[11]=s+3;r[4]=l;r[7]=s+4;r[0]=c;r[1]=s+7;r[2]=s+6;r[3]=s+5;c=i[3];i[2]=i[1];i[3]=o;i[0]=c;i[1]=o+1;break;case 3:r[12]=r[0];r[13]=s+0;r[14]=s+1;r[15]=s+2;r[8]=r[1];r[11]=s+3;r[4]=r[2];r[7]=s+4;r[0]=r[3];r[1]=s+7;r[2]=s+6;r[3]=s+5;i[2]=i[0];i[3]=o;i[0]=i[1];i[1]=o+1}r[5]=t.length;t.push([(-4*t[r[0]][0]-t[r[15]][0]+6*(t[r[4]][0]+t[r[1]][0])-2*(t[r[12]][0]+t[r[3]][0])+3*(t[r[13]][0]+t[r[7]][0]))/9,(-4*t[r[0]][1]-t[r[15]][1]+6*(t[r[4]][1]+t[r[1]][1])-2*(t[r[12]][1]+t[r[3]][1])+3*(t[r[13]][1]+t[r[7]][1]))/9]);r[6]=t.length;t.push([(-4*t[r[3]][0]-t[r[12]][0]+6*(t[r[2]][0]+t[r[7]][0])-2*(t[r[0]][0]+t[r[15]][0])+3*(t[r[4]][0]+t[r[14]][0]))/9,(-4*t[r[3]][1]-t[r[12]][1]+6*(t[r[2]][1]+t[r[7]][1])-2*(t[r[0]][1]+t[r[15]][1])+3*(t[r[4]][1]+t[r[14]][1]))/9]);r[9]=t.length;t.push([(-4*t[r[12]][0]-t[r[3]][0]+6*(t[r[8]][0]+t[r[13]][0])-2*(t[r[0]][0]+t[r[15]][0])+3*(t[r[11]][0]+t[r[1]][0]))/9,(-4*t[r[12]][1]-t[r[3]][1]+6*(t[r[8]][1]+t[r[13]][1])-2*(t[r[0]][1]+t[r[15]][1])+3*(t[r[11]][1]+t[r[1]][1]))/9]);r[10]=t.length;t.push([(-4*t[r[15]][0]-t[r[0]][0]+6*(t[r[11]][0]+t[r[14]][0])-2*(t[r[12]][0]+t[r[3]][0])+3*(t[r[2]][0]+t[r[8]][0]))/9,(-4*t[r[15]][1]-t[r[0]][1]+6*(t[r[11]][1]+t[r[14]][1])-2*(t[r[12]][1]+t[r[3]][1])+3*(t[r[2]][1]+t[r[8]][1]))/9]);this.figures.push({type:"patch",coords:new Int32Array(r),colors:new Int32Array(i)})}}_decodeType7Shading(e){const t=this.coords,a=this.colors,r=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){const n=e.readFlag();if(!(0<=n&&n<=3))throw new FormatError("Unknown type7 flag");const s=t.length;for(let a=0,r=0!==n?12:16;a<r;a++)t.push(e.readCoordinate());const o=a.length;for(let t=0,r=0!==n?2:4;t<r;t++)a.push(e.readComponents());let c,l,h,u;switch(n){case 0:r[12]=s+3;r[13]=s+4;r[14]=s+5;r[15]=s+6;r[8]=s+2;r[9]=s+13;r[10]=s+14;r[11]=s+7;r[4]=s+1;r[5]=s+12;r[6]=s+15;r[7]=s+8;r[0]=s;r[1]=s+11;r[2]=s+10;r[3]=s+9;i[2]=o+1;i[3]=o+2;i[0]=o;i[1]=o+3;break;case 1:c=r[12];l=r[13];h=r[14];u=r[15];r[12]=u;r[13]=s+0;r[14]=s+1;r[15]=s+2;r[8]=h;r[9]=s+9;r[10]=s+10;r[11]=s+3;r[4]=l;r[5]=s+8;r[6]=s+11;r[7]=s+4;r[0]=c;r[1]=s+7;r[2]=s+6;r[3]=s+5;c=i[2];l=i[3];i[2]=l;i[3]=o;i[0]=c;i[1]=o+1;break;case 2:c=r[15];l=r[11];r[12]=r[3];r[13]=s+0;r[14]=s+1;r[15]=s+2;r[8]=r[7];r[9]=s+9;r[10]=s+10;r[11]=s+3;r[4]=l;r[5]=s+8;r[6]=s+11;r[7]=s+4;r[0]=c;r[1]=s+7;r[2]=s+6;r[3]=s+5;c=i[3];i[2]=i[1];i[3]=o;i[0]=c;i[1]=o+1;break;case 3:r[12]=r[0];r[13]=s+0;r[14]=s+1;r[15]=s+2;r[8]=r[1];r[9]=s+9;r[10]=s+10;r[11]=s+3;r[4]=r[2];r[5]=s+8;r[6]=s+11;r[7]=s+4;r[0]=r[3];r[1]=s+7;r[2]=s+6;r[3]=s+5;i[2]=i[0];i[3]=o;i[0]=i[1];i[1]=o+1}this.figures.push({type:"patch",coords:new Int32Array(r),colors:new Int32Array(i)})}}_buildFigureFromPatch(e){const t=this.figures[e];assert("patch"===t.type,"Unexpected patch mesh figure");const a=this.coords,r=this.colors,i=t.coords,n=t.colors,s=Math.min(a[i[0]][0],a[i[3]][0],a[i[12]][0],a[i[15]][0]),o=Math.min(a[i[0]][1],a[i[3]][1],a[i[12]][1],a[i[15]][1]),c=Math.max(a[i[0]][0],a[i[3]][0],a[i[12]][0],a[i[15]][0]),l=Math.max(a[i[0]][1],a[i[3]][1],a[i[12]][1],a[i[15]][1]);let h=Math.ceil((c-s)*MeshShading.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));h=MathClamp(h,MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let u=Math.ceil((l-o)*MeshShading.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));u=MathClamp(u,MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);const d=h+1,f=new Int32Array((u+1)*d),g=new Int32Array((u+1)*d);let p=0;const m=new Uint8Array(3),b=new Uint8Array(3),y=r[n[0]],w=r[n[1]],x=r[n[2]],S=r[n[3]],k=getB(u),C=getB(h);for(let e=0;e<=u;e++){m[0]=(y[0]*(u-e)+x[0]*e)/u|0;m[1]=(y[1]*(u-e)+x[1]*e)/u|0;m[2]=(y[2]*(u-e)+x[2]*e)/u|0;b[0]=(w[0]*(u-e)+S[0]*e)/u|0;b[1]=(w[1]*(u-e)+S[1]*e)/u|0;b[2]=(w[2]*(u-e)+S[2]*e)/u|0;for(let t=0;t<=h;t++,p++){if(!(0!==e&&e!==u||0!==t&&t!==h))continue;let n=0,s=0,o=0;for(let r=0;r<=3;r++)for(let c=0;c<=3;c++,o++){const l=k[e][r]*C[t][c];n+=a[i[o]][0]*l;s+=a[i[o]][1]*l}f[p]=a.length;a.push([n,s]);g[p]=r.length;const c=new Uint8Array(3);c[0]=(m[0]*(h-t)+b[0]*t)/h|0;c[1]=(m[1]*(h-t)+b[1]*t)/h|0;c[2]=(m[2]*(h-t)+b[2]*t)/h|0;r.push(c)}}f[0]=i[0];g[0]=n[0];f[h]=i[3];g[h]=n[1];f[d*u]=i[12];g[d*u]=n[2];f[d*u+h]=i[15];g[d*u+h]=n[3];this.figures[e]={type:"lattice",coords:f,colors:g,verticesPerRow:d}}_updateBounds(){let e=this.coords[0][0],t=this.coords[0][1],a=e,r=t;for(let i=1,n=this.coords.length;i<n;i++){const n=this.coords[i][0],s=this.coords[i][1];e=e>n?n:e;t=t>s?s:t;a=a<n?n:a;r=r<s?s:r}this.bounds=[e,t,a,r]}_packData(){let e,t,a,r;const i=this.coords,n=new Float32Array(2*i.length);for(e=0,a=0,t=i.length;e<t;e++){const t=i[e];n[a++]=t[0];n[a++]=t[1]}this.coords=n;const s=this.colors,o=new Uint8Array(3*s.length);for(e=0,a=0,t=s.length;e<t;e++){const t=s[e];o[a++]=t[0];o[a++]=t[1];o[a++]=t[2]}this.colors=o;const c=this.figures;for(e=0,t=c.length;e<t;e++){const t=c[e],i=t.coords,n=t.colors;for(a=0,r=i.length;a<r;a++){i[a]*=2;n[a]*=3}}}getIR(){const{bounds:e}=this;if(e[2]-e[0]==0||e[3]-e[1]==0)throw new FormatError(`Invalid MeshShading bounds: [${e}].`);return["Mesh",this.shadingType,this.coords,this.colors,this.figures,e,this.bbox,this.background]}}class DummyShading extends BaseShading{getIR(){return["Dummy"]}}function getTilingPatternIR(e,t,a){const r=lookupMatrix(t.getArray("Matrix"),Fa),i=lookupNormalRect(t.getArray("BBox"),null);if(!i||i[2]-i[0]==0||i[3]-i[1]==0)throw new FormatError("Invalid getTilingPatternIR /BBox array.");const n=t.get("XStep");if("number"!=typeof n)throw new FormatError("Invalid getTilingPatternIR /XStep value.");const s=t.get("YStep");if("number"!=typeof s)throw new FormatError("Invalid getTilingPatternIR /YStep value.");const o=t.get("PaintType");if(!Number.isInteger(o))throw new FormatError("Invalid getTilingPatternIR /PaintType value.");const c=t.get("TilingType");if(!Number.isInteger(c))throw new FormatError("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",a,e,r,i,n,s,o,c]}const Ti=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Oi={lineHeight:1.2207,lineGap:.2207},Mi=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Di={lineHeight:1.2207,lineGap:.2207},Bi=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Ri={lineHeight:1.2207,lineGap:.2207},Ni=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],Ei={lineHeight:1.2207,lineGap:.2207},Pi=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],ji={lineHeight:1.2,lineGap:.2},_i=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],Xi={lineHeight:1.35,lineGap:.2},qi=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],Hi={lineHeight:1.35,lineGap:.2},Wi=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],zi={lineHeight:1.2,lineGap:.2},$i=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Gi=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Vi=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Ki=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Ji=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Yi=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Zi=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Qi=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],en=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],tn={lineHeight:1.2,lineGap:.2},an=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],rn={lineHeight:1.2,lineGap:.2},nn=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],sn={lineHeight:1.2,lineGap:.2},on=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],cn={lineHeight:1.2,lineGap:.2},ln=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],hn={lineHeight:1.33008,lineGap:0},un=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],dn={lineHeight:1.33008,lineGap:0},fn=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],gn={lineHeight:1.33008,lineGap:0},pn=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],mn={lineHeight:1.33008,lineGap:0},bn=getLookupTableFactory((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:on,baseWidths:Zi,baseMapping:Qi,metrics:cn};e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:en,baseWidths:$i,baseMapping:Gi,metrics:tn};e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:nn,baseWidths:Ji,baseMapping:Yi,metrics:sn};e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:an,baseWidths:Vi,baseMapping:Ki,metrics:rn};e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:Zi,baseMapping:Qi};e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:$i,baseMapping:Gi};e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:Ji,baseMapping:Yi};e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:Vi,baseMapping:Ki};e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:Ni,baseWidths:Zi,baseMapping:Qi,metrics:Ei};e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:Ti,baseWidths:$i,baseMapping:Gi,metrics:Oi};e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:Bi,baseWidths:Ji,baseMapping:Yi,metrics:Ri};e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:Mi,baseWidths:Vi,baseMapping:Ki,metrics:Di};e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:pn,baseWidths:Zi,baseMapping:Qi,metrics:mn};e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:ln,baseWidths:$i,baseMapping:Gi,metrics:hn};e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:fn,baseWidths:Ji,baseMapping:Yi,metrics:gn};e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:un,baseWidths:Vi,baseMapping:Ki,metrics:dn};e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:Wi,baseWidths:Zi,baseMapping:Qi,metrics:zi};e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:Pi,baseWidths:$i,baseMapping:Gi,metrics:ji};e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:qi,baseWidths:Ji,baseMapping:Yi,metrics:Hi};e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:_i,baseWidths:Vi,baseMapping:Ki,metrics:Xi}}));function getXfaFontName(e){const t=normalizeFontName(e);return bn()[t]}function getXfaFontDict(e){const t=function getXfaFontWidths(e){const t=getXfaFontName(e);if(!t)return null;const{baseWidths:a,baseMapping:r,factors:i}=t,n=i?a.map(((e,t)=>e*i[t])):a;let s,o=-2;const c=[];for(const[e,t]of r.map(((e,t)=>[e,t])).sort((([e],[t])=>e-t)))if(-1!==e)if(e===o+1){s.push(n[t]);o+=1}else{o=e;s=[n[t]];c.push(e,s)}return c}(e),a=new Dict(null);a.set("BaseFont",Name.get(e));a.set("Type",Name.get("Font"));a.set("Subtype",Name.get("CIDFontType2"));a.set("Encoding",Name.get("Identity-H"));a.set("CIDToGIDMap",Name.get("Identity"));a.set("W",t);a.set("FirstChar",t[0]);a.set("LastChar",t.at(-2)+t.at(-1).length-1);const r=new Dict(null);a.set("FontDescriptor",r);const i=new Dict(null);i.set("Ordering","Identity");i.set("Registry","Adobe");i.set("Supplement",0);a.set("CIDSystemInfo",i);return a}class PostScriptParser{constructor(e){this.lexer=e;this.operators=[];this.token=null;this.prev=null}nextToken(){this.prev=this.token;this.token=this.lexer.getToken()}accept(e){if(this.token.type===e){this.nextToken();return!0}return!1}expect(e){if(this.accept(e))return!0;throw new FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){this.nextToken();this.expect(yn.LBRACE);this.parseBlock();this.expect(yn.RBRACE);return this.operators}parseBlock(){for(;;)if(this.accept(yn.NUMBER))this.operators.push(this.prev.value);else if(this.accept(yn.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(yn.LBRACE))return;this.parseCondition()}}parseCondition(){const e=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(yn.RBRACE);if(this.accept(yn.IF)){this.operators[e]=this.operators.length;this.operators[e+1]="jz"}else{if(!this.accept(yn.LBRACE))throw new FormatError("PS Function: error parsing conditional.");{const t=this.operators.length;this.operators.push(null,null);const a=this.operators.length;this.parseBlock();this.expect(yn.RBRACE);this.expect(yn.IFELSE);this.operators[t]=this.operators.length;this.operators[t+1]="j";this.operators[e]=a;this.operators[e+1]="jz"}}}}const yn={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class PostScriptToken{static get opCache(){return shadow(this,"opCache",Object.create(null))}constructor(e,t){this.type=e;this.value=t}static getOperator(e){return PostScriptToken.opCache[e]||=new PostScriptToken(yn.OPERATOR,e)}static get LBRACE(){return shadow(this,"LBRACE",new PostScriptToken(yn.LBRACE,"{"))}static get RBRACE(){return shadow(this,"RBRACE",new PostScriptToken(yn.RBRACE,"}"))}static get IF(){return shadow(this,"IF",new PostScriptToken(yn.IF,"IF"))}static get IFELSE(){return shadow(this,"IFELSE",new PostScriptToken(yn.IFELSE,"IFELSE"))}}class PostScriptLexer{constructor(e){this.stream=e;this.nextChar();this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return wa;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!isWhiteSpace(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new PostScriptToken(yn.NUMBER,this.getNumber());case 123:this.nextChar();return PostScriptToken.LBRACE;case 125:this.nextChar();return PostScriptToken.RBRACE}const a=this.strBuf;a.length=0;a[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)a.push(String.fromCharCode(t));const r=a.join("");switch(r.toLowerCase()){case"if":return PostScriptToken.IF;case"ifelse":return PostScriptToken.IFELSE;default:return PostScriptToken.getOperator(r)}}getNumber(){let e=this.currentChar;const t=this.strBuf;t.length=0;t[0]=String.fromCharCode(e);for(;(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));const a=parseFloat(t.join(""));if(isNaN(a))throw new FormatError(`Invalid floating point number: ${a}`);return a}}class BaseLocalCache{constructor(e){this._onlyRefs=!0===e?.onlyRefs;if(!this._onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new RefSetCache}getByName(e){this._onlyRefs&&unreachable("Should not call `getByName` method.");const t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,a){unreachable("Abstract method `set` called.")}}class LocalImageCache extends BaseLocalCache{set(e,t=null,a){if("string"!=typeof e)throw new Error(\'LocalImageCache.set - expected "name" argument.\');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}}class LocalColorSpaceCache extends BaseLocalCache{set(e=null,t=null,a){if("string"!=typeof e&&!t)throw new Error(\'LocalColorSpaceCache.set - expected "name" and/or "ref" argument.\');if(t){if(this._imageCache.has(t))return;null!==e&&this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}}class LocalFunctionCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error(\'LocalFunctionCache.set - expected "ref" argument.\');this._imageCache.has(t)||this._imageCache.put(t,a)}}class LocalGStateCache extends BaseLocalCache{set(e,t=null,a){if("string"!=typeof e)throw new Error(\'LocalGStateCache.set - expected "name" argument.\');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}}class LocalTilingPatternCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error(\'LocalTilingPatternCache.set - expected "ref" argument.\');this._imageCache.has(t)||this._imageCache.put(t,a)}}class RegionalImageCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error(\'RegionalImageCache.set - expected "ref" argument.\');this._imageCache.has(t)||this._imageCache.put(t,a)}}class GlobalColorSpaceCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error(\'GlobalColorSpaceCache.set - expected "ref" argument.\');this._imageCache.has(t)||this._imageCache.put(t,a)}clear(){this._imageCache.clear()}}class GlobalImageCache{static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5e7;#H=new RefSet;constructor(){this._refCache=new RefSetCache;this._imageCache=new RefSetCache}get#W(){let e=0;for(const t of this._imageCache)e+=t.byteSize;return e}get#z(){return!(this._imageCache.size<GlobalImageCache.MIN_IMAGES_TO_CACHE)&&!(this.#W<GlobalImageCache.MAX_BYTE_SIZE)}shouldCache(e,t){let a=this._refCache.get(e);if(!a){a=new Set;this._refCache.put(e,a)}a.add(t);return!(a.size<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(e)&&this.#z)}addDecodeFailed(e){this.#H.put(e)}hasDecodeFailed(e){return this.#H.has(e)}addByteSize(e,t){const a=this._imageCache.get(e);a&&(a.byteSize||(a.byteSize=t))}getData(e,t){const a=this._refCache.get(e);if(!a)return null;if(a.size<GlobalImageCache.NUM_PAGES_THRESHOLD)return null;const r=this._imageCache.get(e);if(!r)return null;a.add(t);return r}setData(e,t){if(!this._refCache.has(e))throw new Error(\'GlobalImageCache.setData - expected "shouldCache" to have been called.\');this._imageCache.has(e)||(this.#z?warn("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}clear(e=!1){if(!e){this.#H.clear();this._refCache.clear()}this._imageCache.clear()}}class PDFFunctionFactory{constructor({xref:e,isEvalSupported:t=!0}){this.xref=e;this.isEvalSupported=!1!==t}create(e,t=!1){let a,r;e instanceof Ref?a=e:e instanceof Dict?a=e.objId:e instanceof BaseStream&&(a=e.dict?.objId);if(a){const e=this._localFunctionCache.getByRef(a);if(e)return e}const i=this.xref.fetchIfRef(e);if(Array.isArray(i)){if(!t)throw new Error(\'PDFFunctionFactory.create - expected "parseArray" argument.\');r=PDFFunction.parseArray(this,i)}else r=PDFFunction.parse(this,i);a&&this._localFunctionCache.set(null,a,r);return r}get _localFunctionCache(){return shadow(this,"_localFunctionCache",new LocalFunctionCache)}}function toNumberArray(e){return Array.isArray(e)?isNumberArray(e,null)?e:e.map((e=>+e)):null}class PDFFunction{static getSampleArray(e,t,a,r){let i,n,s=1;for(i=0,n=e.length;i<n;i++)s*=e[i];s*=t;const o=new Array(s);let c=0,l=0;const h=1/(2**a-1),u=r.getBytes((s*a+7)/8);let d=0;for(i=0;i<s;i++){for(;c<a;){l<<=8;l|=u[d++];c+=8}c-=a;o[i]=(l>>c)*h;l&=(1<<c)-1}return o}static parse(e,t){const a=t.dict||t;switch(a.get("FunctionType")){case 0:return this.constructSampled(e,t,a);case 1:break;case 2:return this.constructInterpolated(e,a);case 3:return this.constructStiched(e,a);case 4:return this.constructPostScript(e,t,a)}throw new FormatError("Unknown type of function")}static parseArray(e,t){const{xref:a}=e,r=[];for(const i of t)r.push(this.parse(e,a.fetchIfRef(i)));return function(e,t,a,i){for(let n=0,s=r.length;n<s;n++)r[n](e,t,a,i+n)}}static constructSampled(e,t,a){function toMultiArray(e){const t=e.length,a=[];let r=0;for(let i=0;i<t;i+=2)a[r++]=[e[i],e[i+1]];return a}function interpolate(e,t,a,r,i){return r+(i-r)/(a-t)*(e-t)}let r=toNumberArray(a.getArray("Domain")),i=toNumberArray(a.getArray("Range"));if(!r||!i)throw new FormatError("No domain or range");const n=r.length/2,s=i.length/2;r=toMultiArray(r);i=toMultiArray(i);const o=toNumberArray(a.getArray("Size")),c=a.get("BitsPerSample"),l=a.get("Order")||1;1!==l&&info("No support for cubic spline interpolation: "+l);let h=toNumberArray(a.getArray("Encode"));if(h)h=toMultiArray(h);else{h=[];for(let e=0;e<n;++e)h.push([0,o[e]-1])}let u=toNumberArray(a.getArray("Decode"));u=u?toMultiArray(u):i;const d=this.getSampleArray(o,s,c,t);return function constructSampledFn(e,t,a,c){const l=1<<n,f=new Float64Array(l).fill(1),g=new Uint32Array(l);let p,m,b=s,y=1;for(p=0;p<n;++p){const a=r[p][0],i=r[p][1];let n=interpolate(MathClamp(e[t+p],a,i),a,i,h[p][0],h[p][1]);const s=o[p];n=MathClamp(n,0,s-1);const c=n<s-1?Math.floor(n):n-1,u=c+1-n,d=n-c,w=c*b,x=w+b;for(m=0;m<l;m++)if(m&y){f[m]*=d;g[m]+=x}else{f[m]*=u;g[m]+=w}b*=s;y<<=1}for(m=0;m<s;++m){let e=0;for(p=0;p<l;p++)e+=d[g[p]+m]*f[p];e=interpolate(e,0,1,u[m][0],u[m][1]);a[c+m]=MathClamp(e,i[m][0],i[m][1])}}}static constructInterpolated(e,t){const a=toNumberArray(t.getArray("C0"))||[0],r=toNumberArray(t.getArray("C1"))||[1],i=t.get("N"),n=[];for(let e=0,t=a.length;e<t;++e)n.push(r[e]-a[e]);const s=n.length;return function constructInterpolatedFn(e,t,r,o){const c=1===i?e[t]:e[t]**i;for(let e=0;e<s;++e)r[o+e]=a[e]+c*n[e]}}static constructStiched(e,t){const a=toNumberArray(t.getArray("Domain"));if(!a)throw new FormatError("No domain");if(1!==a.length/2)throw new FormatError("Bad domain for stiched function");const{xref:r}=e,i=[];for(const a of t.get("Functions"))i.push(this.parse(e,r.fetchIfRef(a)));const n=toNumberArray(t.getArray("Bounds")),s=toNumberArray(t.getArray("Encode")),o=new Float32Array(1);return function constructStichedFn(e,t,r,c){const l=MathClamp(e[t],a[0],a[1]),h=n.length;let u;for(u=0;u<h&&!(l<n[u]);++u);let d=a[0];u>0&&(d=n[u-1]);let f=a[1];u<n.length&&(f=n[u]);const g=s[2*u],p=s[2*u+1];o[0]=d===f?g:g+(l-d)*(p-g)/(f-d);i[u](o,0,r,c)}}static constructPostScript(e,t,a){const r=toNumberArray(a.getArray("Domain")),i=toNumberArray(a.getArray("Range"));if(!r)throw new FormatError("No domain.");if(!i)throw new FormatError("No range.");const n=new PostScriptLexer(t),s=new PostScriptParser(n).parse();if(e.isEvalSupported&&FeatureTest.isEvalSupported){const e=(new PostScriptCompiler).compile(s,r,i);if(e)return new Function("src","srcOffset","dest","destOffset",e)}info("Unable to compile PS function");const o=i.length>>1,c=r.length>>1,l=new PostScriptEvaluator(s),h=Object.create(null);let u=8192;const d=new Float32Array(c);return function constructPostScriptFn(e,t,a,r){let n,s,f="";const g=d;for(n=0;n<c;n++){s=e[t+n];g[n]=s;f+=s+"_"}const p=h[f];if(void 0!==p){a.set(p,r);return}const m=new Float32Array(o),b=l.execute(g),y=b.length-o;for(n=0;n<o;n++){s=b[y+n];let e=i[2*n];if(s<e)s=e;else{e=i[2*n+1];s>e&&(s=e)}m[n]=s}if(u>0){u--;h[f]=m}a.set(m,r)}}}function isPDFFunction(e){let t;if(e instanceof Dict)t=e;else{if(!(e instanceof BaseStream))return!1;t=e.dict}return t.has("FunctionType")}class PostScriptStack{static MAX_STACK_SIZE=100;constructor(e){this.stack=e?Array.from(e):[]}push(e){if(this.stack.length>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(e){if(this.stack.length+e>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const t=this.stack;for(let a=t.length-e,r=e-1;r>=0;r--,a++)t.push(t[a])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){const a=this.stack,r=a.length-e,i=a.length-1,n=r+(t-Math.floor(t/e)*e);for(let e=r,t=i;e<t;e++,t--){const r=a[e];a[e]=a[t];a[t]=r}for(let e=r,t=n-1;e<t;e++,t--){const r=a[e];a[e]=a[t];a[t]=r}for(let e=n,t=i;e<t;e++,t--){const r=a[e];a[e]=a[t];a[t]=r}}}class PostScriptEvaluator{constructor(e){this.operators=e}execute(e){const t=new PostScriptStack(e);let a=0;const r=this.operators,i=r.length;let n,s,o;for(;a<i;){n=r[a++];if("number"!=typeof n)switch(n){case"jz":o=t.pop();s=t.pop();s||(a=o);break;case"j":s=t.pop();a=s;break;case"abs":s=t.pop();t.push(Math.abs(s));break;case"add":o=t.pop();s=t.pop();t.push(s+o);break;case"and":o=t.pop();s=t.pop();"boolean"==typeof s&&"boolean"==typeof o?t.push(s&&o):t.push(s&o);break;case"atan":o=t.pop();s=t.pop();s=Math.atan2(s,o)/Math.PI*180;s<0&&(s+=360);t.push(s);break;case"bitshift":o=t.pop();s=t.pop();s>0?t.push(s<<o):t.push(s>>o);break;case"ceiling":s=t.pop();t.push(Math.ceil(s));break;case"copy":s=t.pop();t.copy(s);break;case"cos":s=t.pop();t.push(Math.cos(s%360/180*Math.PI));break;case"cvi":s=0|t.pop();t.push(s);break;case"cvr":break;case"div":o=t.pop();s=t.pop();t.push(s/o);break;case"dup":t.copy(1);break;case"eq":o=t.pop();s=t.pop();t.push(s===o);break;case"exch":t.roll(2,1);break;case"exp":o=t.pop();s=t.pop();t.push(s**o);break;case"false":t.push(!1);break;case"floor":s=t.pop();t.push(Math.floor(s));break;case"ge":o=t.pop();s=t.pop();t.push(s>=o);break;case"gt":o=t.pop();s=t.pop();t.push(s>o);break;case"idiv":o=t.pop();s=t.pop();t.push(s/o|0);break;case"index":s=t.pop();t.index(s);break;case"le":o=t.pop();s=t.pop();t.push(s<=o);break;case"ln":s=t.pop();t.push(Math.log(s));break;case"log":s=t.pop();t.push(Math.log10(s));break;case"lt":o=t.pop();s=t.pop();t.push(s<o);break;case"mod":o=t.pop();s=t.pop();t.push(s%o);break;case"mul":o=t.pop();s=t.pop();t.push(s*o);break;case"ne":o=t.pop();s=t.pop();t.push(s!==o);break;case"neg":s=t.pop();t.push(-s);break;case"not":s=t.pop();"boolean"==typeof s?t.push(!s):t.push(~s);break;case"or":o=t.pop();s=t.pop();"boolean"==typeof s&&"boolean"==typeof o?t.push(s||o):t.push(s|o);break;case"pop":t.pop();break;case"roll":o=t.pop();s=t.pop();t.roll(s,o);break;case"round":s=t.pop();t.push(Math.round(s));break;case"sin":s=t.pop();t.push(Math.sin(s%360/180*Math.PI));break;case"sqrt":s=t.pop();t.push(Math.sqrt(s));break;case"sub":o=t.pop();s=t.pop();t.push(s-o);break;case"true":t.push(!0);break;case"truncate":s=t.pop();s=s<0?Math.ceil(s):Math.floor(s);t.push(s);break;case"xor":o=t.pop();s=t.pop();"boolean"==typeof s&&"boolean"==typeof o?t.push(s!==o):t.push(s^o);break;default:throw new FormatError(`Unknown operator ${n}`)}else t.push(n)}return t.stack}}class AstNode{constructor(e){this.type=e}visit(e){unreachable("abstract method")}}class AstArgument extends AstNode{constructor(e,t,a){super("args");this.index=e;this.min=t;this.max=a}visit(e){e.visitArgument(this)}}class AstLiteral extends AstNode{constructor(e){super("literal");this.number=e;this.min=e;this.max=e}visit(e){e.visitLiteral(this)}}class AstBinaryOperation extends AstNode{constructor(e,t,a,r,i){super("binary");this.op=e;this.arg1=t;this.arg2=a;this.min=r;this.max=i}visit(e){e.visitBinaryOperation(this)}}class AstMin extends AstNode{constructor(e,t){super("max");this.arg=e;this.min=e.min;this.max=t}visit(e){e.visitMin(this)}}class AstVariable extends AstNode{constructor(e,t,a){super("var");this.index=e;this.min=t;this.max=a}visit(e){e.visitVariable(this)}}class AstVariableDefinition extends AstNode{constructor(e,t){super("definition");this.variable=e;this.arg=t}visit(e){e.visitVariableDefinition(this)}}class ExpressionBuilderVisitor{constructor(){this.parts=[]}visitArgument(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}visitVariable(e){this.parts.push("v",e.index)}visitLiteral(e){this.parts.push(e.number)}visitBinaryOperation(e){this.parts.push("(");e.arg1.visit(this);this.parts.push(" ",e.op," ");e.arg2.visit(this);this.parts.push(")")}visitVariableDefinition(e){this.parts.push("var ");e.variable.visit(this);this.parts.push(" = ");e.arg.visit(this);this.parts.push(";")}visitMin(e){this.parts.push("Math.min(");e.arg.visit(this);this.parts.push(", ",e.max,")")}toString(){return this.parts.join("")}}function buildAddOperation(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new AstLiteral(e.number+t.number):new AstBinaryOperation("+",e,t,e.min+t.min,e.max+t.max)}function buildMulOperation(e,t){if("literal"===t.type){if(0===t.number)return new AstLiteral(0);if(1===t.number)return e;if("literal"===e.type)return new AstLiteral(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new AstLiteral(0);if(1===e.number)return t}const a=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),r=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new AstBinaryOperation("*",e,t,a,r)}function buildSubOperation(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new AstLiteral(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new AstBinaryOperation("-",e,t,e.min-t.max,e.max-t.min)}function buildMinOperation(e,t){return e.min>=t?new AstLiteral(t):e.max<=t?e:new AstMin(e,t)}class PostScriptCompiler{compile(e,t,a){const r=[],i=[],n=t.length>>1,s=a.length>>1;let o,c,l,h,u,d,f,g,p=0;for(let e=0;e<n;e++)r.push(new AstArgument(e,t[2*e],t[2*e+1]));for(let t=0,a=e.length;t<a;t++){g=e[t];if("number"!=typeof g)switch(g){case"add":if(r.length<2)return null;h=r.pop();l=r.pop();r.push(buildAddOperation(l,h));break;case"cvr":if(r.length<1)return null;break;case"mul":if(r.length<2)return null;h=r.pop();l=r.pop();r.push(buildMulOperation(l,h));break;case"sub":if(r.length<2)return null;h=r.pop();l=r.pop();r.push(buildSubOperation(l,h));break;case"exch":if(r.length<2)return null;u=r.pop();d=r.pop();r.push(u,d);break;case"pop":if(r.length<1)return null;r.pop();break;case"index":if(r.length<1)return null;l=r.pop();if("literal"!==l.type)return null;o=l.number;if(o<0||!Number.isInteger(o)||r.length<o)return null;u=r[r.length-o-1];if("literal"===u.type||"var"===u.type){r.push(u);break}f=new AstVariable(p++,u.min,u.max);r[r.length-o-1]=f;r.push(f);i.push(new AstVariableDefinition(f,u));break;case"dup":if(r.length<1)return null;if("number"==typeof e[t+1]&&"gt"===e[t+2]&&e[t+3]===t+7&&"jz"===e[t+4]&&"pop"===e[t+5]&&e[t+6]===e[t+1]){l=r.pop();r.push(buildMinOperation(l,e[t+1]));t+=6;break}u=r.at(-1);if("literal"===u.type||"var"===u.type){r.push(u);break}f=new AstVariable(p++,u.min,u.max);r[r.length-1]=f;r.push(f);i.push(new AstVariableDefinition(f,u));break;case"roll":if(r.length<2)return null;h=r.pop();l=r.pop();if("literal"!==h.type||"literal"!==l.type)return null;c=h.number;o=l.number;if(o<=0||!Number.isInteger(o)||!Number.isInteger(c)||r.length<o)return null;c=(c%o+o)%o;if(0===c)break;r.push(...r.splice(r.length-o,o-c));break;default:return null}else r.push(new AstLiteral(g))}if(r.length!==s)return null;const m=[];for(const e of i){const t=new ExpressionBuilderVisitor;e.visit(t);m.push(t.toString())}for(let e=0,t=r.length;e<t;e++){const t=r[e],i=new ExpressionBuilderVisitor;t.visit(i);const n=a[2*e],s=a[2*e+1],o=[i.toString()];if(n>t.min){o.unshift("Math.max(",n,", ");o.push(")")}if(s<t.max){o.unshift("Math.min(",s,", ");o.push(")")}o.unshift("dest[destOffset + ",e,"] = ");o.push(";");m.push(o.join(""))}return m.join("\\n")}}const wn=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],xn=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function isOdd(e){return!!(1&e)}function isEven(e){return!(1&e)}function findUnequal(e,t,a){let r,i;for(r=t,i=e.length;r<i;++r)if(e[r]!==a)return r;return r}function reverseValues(e,t,a){for(let r=t,i=a-1;r<i;++r,--i){const t=e[r];e[r]=e[i];e[i]=t}}function createBidiText(e,t,a=!1){let r="ltr";a?r="ttb":t||(r="rtl");return{str:e,dir:r}}const Sn=[],An=[];function bidi(e,t=-1,a=!1){let r=!0;const i=e.length;if(0===i||a)return createBidiText(e,r,a);Sn.length=i;An.length=i;let n,s,o=0;for(n=0;n<i;++n){Sn[n]=e.charAt(n);const t=e.charCodeAt(n);let a="L";if(t<=255)a=wn[t];else if(1424<=t&&t<=1524)a="R";else if(1536<=t&&t<=1791){a=xn[255&t];a||warn("Bidi: invalid Unicode character "+t.toString(16))}else(1792<=t&&t<=2220||64336<=t&&t<=65023||65136<=t&&t<=65279)&&(a="AL");"R"!==a&&"AL"!==a&&"AN"!==a||o++;An[n]=a}if(0===o){r=!0;return createBidiText(e,r)}if(-1===t)if(o/i<.3&&i>4){r=!0;t=0}else{r=!1;t=1}const c=[];for(n=0;n<i;++n)c[n]=t;const l=isOdd(t)?"R":"L",h=l,u=h;let d,f=h;for(n=0;n<i;++n)"NSM"===An[n]?An[n]=f:f=An[n];f=h;for(n=0;n<i;++n){d=An[n];"EN"===d?An[n]="AL"===f?"AN":"EN":"R"!==d&&"L"!==d&&"AL"!==d||(f=d)}for(n=0;n<i;++n){d=An[n];"AL"===d&&(An[n]="R")}for(n=1;n<i-1;++n){"ES"===An[n]&&"EN"===An[n-1]&&"EN"===An[n+1]&&(An[n]="EN");"CS"!==An[n]||"EN"!==An[n-1]&&"AN"!==An[n-1]||An[n+1]!==An[n-1]||(An[n]=An[n-1])}for(n=0;n<i;++n)if("EN"===An[n]){for(let e=n-1;e>=0&&"ET"===An[e];--e)An[e]="EN";for(let e=n+1;e<i&&"ET"===An[e];++e)An[e]="EN"}for(n=0;n<i;++n){d=An[n];"WS"!==d&&"ES"!==d&&"ET"!==d&&"CS"!==d||(An[n]="ON")}f=h;for(n=0;n<i;++n){d=An[n];"EN"===d?An[n]="L"===f?"L":"EN":"R"!==d&&"L"!==d||(f=d)}for(n=0;n<i;++n)if("ON"===An[n]){const e=findUnequal(An,n+1,"ON");let t=h;n>0&&(t=An[n-1]);let a=u;e+1<i&&(a=An[e+1]);"L"!==t&&(t="R");"L"!==a&&(a="R");t===a&&An.fill(t,n,e);n=e-1}for(n=0;n<i;++n)"ON"===An[n]&&(An[n]=l);for(n=0;n<i;++n){d=An[n];isEven(c[n])?"R"===d?c[n]+=1:"AN"!==d&&"EN"!==d||(c[n]+=2):"L"!==d&&"AN"!==d&&"EN"!==d||(c[n]+=1)}let g,p=-1,m=99;for(n=0,s=c.length;n<s;++n){g=c[n];p<g&&(p=g);m>g&&isOdd(g)&&(m=g)}for(g=p;g>=m;--g){let e=-1;for(n=0,s=c.length;n<s;++n)if(c[n]<g){if(e>=0){reverseValues(Sn,e,n);e=-1}}else e<0&&(e=n);e>=0&&reverseValues(Sn,e,c.length)}for(n=0,s=Sn.length;n<s;++n){const e=Sn[n];"<"!==e&&">"!==e||(Sn[n]="")}return createBidiText(Sn.join(""),r)}const kn={style:"normal",weight:"normal"},Cn={style:"normal",weight:"bold"},vn={style:"italic",weight:"normal"},Fn={style:"italic",weight:"bold"},In=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","Linux Libertine O","Libertinus Serif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:kn,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:Cn,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:vn,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:Fn,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:kn,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:Cn,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:vn,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:Fn,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono","Linux Libertine Mono O","Libertinus Mono"],style:kn,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:Cn,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:vn,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:Fn,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:kn,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:Cn,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:vn,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:Fn,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:kn,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:Cn,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:vn,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:Fn,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:kn}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),Tn=new Map([["Arial-Black","ArialBlack"]]);function getFamilyName(e){const t=new Set(["thin","extralight","ultralight","demilight","semilight","light","book","regular","normal","medium","demibold","semibold","bold","extrabold","ultrabold","black","heavy","extrablack","ultrablack","roman","italic","oblique","ultracondensed","extracondensed","condensed","semicondensed","normal","semiexpanded","expanded","extraexpanded","ultraexpanded","bolditalic"]);return e.split(/[- ,+]+/g).filter((e=>!t.has(e.toLowerCase()))).join(" ")}function generateFont({alias:e,local:t,path:a,fallback:r,style:i,ultimate:n},s,o,c=!0,l=!0,h=""){const u={style:null,ultimate:null};if(t){const e=h?` ${h}`:"";for(const a of t)s.push(`local(${a}${e})`)}if(e){const t=In.get(e),n=h||function getStyleToAppend(e){switch(e){case Cn:return"Bold";case vn:return"Italic";case Fn:return"Bold Italic";default:if("bold"===e?.weight)return"Bold";if("italic"===e?.style)return"Italic"}return""}(i);Object.assign(u,generateFont(t,s,o,c&&!r,l&&!a,n))}i&&(u.style=i);n&&(u.ultimate=n);if(c&&r){const e=In.get(r),{ultimate:t}=generateFont(e,s,o,c,l&&!a,h);u.ultimate||=t}l&&a&&o&&s.push(`url(${o}${a})`);return u}function getFontSubstitution(e,t,a,r,i,n){if(r.startsWith("InvalidPDFjsFont_"))return null;"TrueType"!==n&&"Type1"!==n||!/^[A-Z]{6}\\+/.test(r)||(r=r.slice(7));const s=r=normalizeFontName(r);let o=e.get(s);if(o)return o;let c=In.get(r);if(!c)for(const[e,t]of Tn)if(r.startsWith(e)){r=`${t}${r.substring(e.length)}`;c=In.get(r);break}let l=!1;if(!c){c=In.get(i);l=!0}const h=`${t.getDocId()}_s${t.createFontId()}`;if(!c){if(!validateFontName(r)){warn(`Cannot substitute the font because of its name: ${r}`);e.set(s,null);return null}const t=/bold/gi.test(r),a=/oblique|italic/gi.test(r),i=t&&a&&Fn||t&&Cn||a&&vn||kn;o={css:`"${getFamilyName(r)}",${h}`,guessFallback:!0,loadedName:h,baseFontName:r,src:`local(${r})`,style:i};e.set(s,o);return o}const u=[];l&&validateFontName(r)&&u.push(`local(${r})`);const{style:d,ultimate:f}=generateFont(c,u,a),g=null===f,p=g?"":`,${f}`;o={css:`"${getFamilyName(r)}",${h}${p}`,guessFallback:g,loadedName:h,baseFontName:r,src:u.join(","),style:d};e.set(s,o);return o}const On=3285377520,Mn=4294901760,Dn=65535;class MurmurHash3_64{constructor(e){this.h1=e?4294967295&e:On;this.h2=e?4294967295&e:On}update(e){let t,a;if("string"==typeof e){t=new Uint8Array(2*e.length);a=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);if(i<=255)t[a++]=i;else{t[a++]=i>>>8;t[a++]=255&i}}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");t=e.slice();a=t.byteLength}const r=a>>2,i=a-4*r,n=new Uint32Array(t.buffer,0,r);let s=0,o=0,c=this.h1,l=this.h2;const h=3432918353,u=461845907,d=11601,f=13715;for(let e=0;e<r;e++)if(1&e){s=n[e];s=s*h&Mn|s*d&Dn;s=s<<15|s>>>17;s=s*u&Mn|s*f&Dn;c^=s;c=c<<13|c>>>19;c=5*c+3864292196}else{o=n[e];o=o*h&Mn|o*d&Dn;o=o<<15|o>>>17;o=o*u&Mn|o*f&Dn;l^=o;l=l<<13|l>>>19;l=5*l+3864292196}s=0;switch(i){case 3:s^=t[4*r+2]<<16;case 2:s^=t[4*r+1]<<8;case 1:s^=t[4*r];s=s*h&Mn|s*d&Dn;s=s<<15|s>>>17;s=s*u&Mn|s*f&Dn;1&r?c^=s:l^=s}this.h1=c;this.h2=l}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1;e=3981806797*e&Mn|36045*e&Dn;t=4283543511*t&Mn|(2950163797*(t<<16|e>>>16)&Mn)>>>16;e^=t>>>1;e=444984403*e&Mn|60499*e&Dn;t=3301882366*t&Mn|(3120437893*(t<<16|e>>>16)&Mn)>>>16;e^=t>>>1;return(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}function resizeImageMask(e,t,a,r,i,n){const s=i*n;let o;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);const c=a/i,l=r/n;let h,u,d,f,g=0;const p=new Uint16Array(i),m=a;for(h=0;h<i;h++)p[h]=Math.floor(h*c);for(h=0;h<n;h++){d=Math.floor(h*l)*m;for(u=0;u<i;u++){f=d+p[u];o[g++]=e[f]}}return o}class PDFImage{constructor({xref:e,res:t,image:a,isInline:r=!1,smask:i=null,mask:n=null,isMask:s=!1,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:l}){this.image=a;const h=a.dict,u=h.get("F","Filter");let d;if(u instanceof Name)d=u.name;else if(Array.isArray(u)){const t=e.fetchIfRef(u[0]);t instanceof Name&&(d=t.name)}switch(d){case"JPXDecode":({width:a.width,height:a.height,componentsCount:a.numComps,bitsPerComponent:a.bitsPerComponent}=JpxImage.parseImageProperties(a.stream));a.stream.reset();const e=ImageResizer.getReducePowerForJPX(a.width,a.height,a.numComps);this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:h.has("SMaskInData"),reducePower:e};if(e){const t=2**e;a.width=Math.ceil(a.width/t);a.height=Math.ceil(a.height/t)}break;case"JBIG2Decode":a.bitsPerComponent=1;a.numComps=1}let f=h.get("W","Width"),g=h.get("H","Height");if(Number.isInteger(a.width)&&a.width>0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==f||a.height!==g)){warn("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");f=a.width;g=a.height}else{const e="number"==typeof f&&f>0,t="number"==typeof g&&g>0;if(!e||!t){if(!a.fallbackDims)throw new FormatError(`Invalid image width: ${f} or height: ${g}`);warn("PDFImage - using the Width/Height of the parent image, for SMask/Mask data.");e||(f=a.fallbackDims.width);t||(g=a.fallbackDims.height)}}this.width=f;this.height=g;this.interpolate=h.get("I","Interpolate");this.imageMask=h.get("IM","ImageMask")||!1;this.matte=h.get("Matte")||!1;let p=a.bitsPerComponent;if(!p){p=h.get("BPC","BitsPerComponent");if(!p){if(!this.imageMask)throw new FormatError(`Bits per component missing in image: ${this.imageMask}`);p=1}}this.bpc=p;if(!this.imageMask){let i=h.getRaw("CS")||h.getRaw("ColorSpace");const n=!!i;if(n)this.jpxDecoderOptions?.smaskInData&&(i=Name.get("DeviceRGBA"));else if(this.jpxDecoderOptions)i=Name.get("DeviceRGBA");else switch(a.numComps){case 1:i=Name.get("DeviceGray");break;case 3:i=Name.get("DeviceRGB");break;case 4:i=Name.get("DeviceCMYK");break;default:throw new Error(`Images with ${a.numComps} color components not supported.`)}this.colorSpace=ColorSpaceUtils.parse({cs:i,xref:e,resources:r?t:null,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:l});this.numComps=this.colorSpace.numComps;if(this.jpxDecoderOptions){this.jpxDecoderOptions.numComponents=n?this.numComps:0;this.jpxDecoderOptions.isIndexedColormap="Indexed"===this.colorSpace.name}}this.decode=h.getArray("D","Decode");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,p)||s&&!ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const e=(1<<p)-1;this.decodeCoefficients=[];this.decodeAddends=[];const t="Indexed"===this.colorSpace?.name;for(let a=0,r=0;a<this.decode.length;a+=2,++r){const i=this.decode[a],n=this.decode[a+1];this.decodeCoefficients[r]=t?(n-i)/e:n-i;this.decodeAddends[r]=t?i:e*i}}if(i){i.fallbackDims??={width:f,height:g};this.smask=new PDFImage({xref:e,res:t,image:i,isInline:r,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:l})}else if(n)if(n instanceof BaseStream){if(n.dict.get("IM","ImageMask")){n.fallbackDims??={width:f,height:g};this.mask=new PDFImage({xref:e,res:t,image:n,isInline:r,isMask:!0,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:l})}else warn("Ignoring /Mask in image without /ImageMask.")}else this.mask=n}static async buildImage({xref:e,res:t,image:a,isInline:r=!1,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:s}){const o=a;let c=null,l=null;const h=a.dict.get("SMask"),u=a.dict.get("Mask");h?h instanceof BaseStream?c=h:warn("Unsupported /SMask format."):u&&(u instanceof BaseStream||Array.isArray(u)?l=u:warn("Unsupported /Mask format."));return new PDFImage({xref:e,res:t,image:o,isInline:r,smask:c,mask:l,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:s})}static async createMask({image:e,isOffscreenCanvasSupported:t=!1}){const{dict:a}=e,r=a.get("W","Width"),i=a.get("H","Height"),n=a.get("I","Interpolate"),s=a.getArray("D","Decode"),o=s?.[0]>0,c=(r+7>>3)*i,l=e.getBytes(c),h=1===r&&1===i&&o===(0===l.length||!!(128&l[0]));if(h)return{isSingleOpaquePixel:h};if(t){if(ImageResizer.needsToBeResized(r,i)){const e=new Uint8ClampedArray(r*i*4);convertBlackAndWhiteToRGBA({src:l,dest:e,width:r,height:i,nonBlackColor:0,inverseDecode:o});return ImageResizer.createImage({kind:v,data:e,width:r,height:i,interpolate:n})}const e=new OffscreenCanvas(r,i),t=e.getContext("2d"),a=t.createImageData(r,i);convertBlackAndWhiteToRGBA({src:l,dest:a.data,width:r,height:i,nonBlackColor:0,inverseDecode:o});t.putImageData(a,0,0);return{data:null,width:r,height:i,interpolate:n,bitmap:e.transferToImageBitmap()}}const u=l.byteLength;let d;if(e instanceof DecodeStream&&(!o||c===u))d=l;else if(o){d=new Uint8Array(c);d.set(l);d.fill(255,u)}else d=new Uint8Array(l);if(o)for(let e=0;e<u;e++)d[e]^=255;return{data:d,width:r,height:i,interpolate:n}}get drawWidth(){return Math.max(this.width,this.smask?.width||0,this.mask?.width||0)}get drawHeight(){return Math.max(this.height,this.smask?.height||0,this.mask?.height||0)}decodeBuffer(e){const t=this.bpc,a=this.numComps,r=this.decodeAddends,i=this.decodeCoefficients,n=(1<<t)-1;let s,o;if(1===t){for(s=0,o=e.length;s<o;s++)e[s]=+!e[s];return}let c=0;for(s=0,o=this.width*this.height;s<o;s++)for(let t=0;t<a;t++){e[c]=MathClamp(r[t]+e[c]*i[t],0,n);c++}}getComponents(e){const t=this.bpc;if(8===t)return e;const a=this.width,r=this.height,i=this.numComps,n=a*r*i;let s,o=0;s=t<=8?new Uint8Array(n):t<=16?new Uint16Array(n):new Uint32Array(n);const c=a*i,l=(1<<t)-1;let h,u,d=0;if(1===t){let t,a,i;for(let n=0;n<r;n++){a=d+(-8&c);i=d+c;for(;d<a;){u=e[o++];s[d]=u>>7&1;s[d+1]=u>>6&1;s[d+2]=u>>5&1;s[d+3]=u>>4&1;s[d+4]=u>>3&1;s[d+5]=u>>2&1;s[d+6]=u>>1&1;s[d+7]=1&u;d+=8}if(d<i){u=e[o++];t=128;for(;d<i;){s[d++]=+!!(u&t);t>>=1}}}}else{let a=0;u=0;for(d=0,h=n;d<h;++d){if(d%c==0){u=0;a=0}for(;a<t;){u=u<<8|e[o++];a+=8}const r=a-t;let i=u>>r;i<0?i=0:i>l&&(i=l);s[d]=i;u&=(1<<r)-1;a=r}}return s}async fillOpacity(e,t,a,r,i){const n=this.smask,s=this.mask;let o,c,l,h,u,d;if(n){c=n.width;l=n.height;o=new Uint8ClampedArray(c*l);await n.fillGrayBuffer(o);c===t&&l===a||(o=resizeImageMask(o,n.bpc,c,l,t,a))}else if(s)if(s instanceof PDFImage){c=s.width;l=s.height;o=new Uint8ClampedArray(c*l);s.numComps=1;await s.fillGrayBuffer(o);for(h=0,u=c*l;h<u;++h)o[h]=255-o[h];c===t&&l===a||(o=resizeImageMask(o,s.bpc,c,l,t,a))}else{if(!Array.isArray(s))throw new FormatError("Unknown mask format.");{o=new Uint8ClampedArray(t*a);const e=this.numComps;for(h=0,u=t*a;h<u;++h){let t=0;const a=h*e;for(d=0;d<e;++d){const e=i[a+d],r=2*d;if(e<s[r]||e>s[r+1]){t=255;break}}o[h]=t}}}if(o)for(h=0,d=3,u=t*r;h<u;++h,d+=4)e[d]=o[h];else for(h=0,d=3,u=t*r;h<u;++h,d+=4)e[d]=255}undoPreblend(e,t,a){const r=this.smask?.matte;if(!r)return;const i=this.colorSpace.getRgb(r,0),n=i[0],s=i[1],o=i[2],c=t*a*4;for(let t=0;t<c;t+=4){const a=e[t+3];if(0===a){e[t]=255;e[t+1]=255;e[t+2]=255;continue}const r=255/a;e[t]=(e[t]-n)*r+n;e[t+1]=(e[t+1]-s)*r+s;e[t+2]=(e[t+2]-o)*r+o}}async createImageData(e=!1,t=!1){const a=this.drawWidth,r=this.drawHeight,i={width:a,height:r,interpolate:this.interpolate,kind:0,data:null},n=this.numComps,s=this.width,o=this.height,c=this.bpc,l=s*n*c+7>>3,h=t&&ImageResizer.needsToBeResized(a,r);if(!this.smask&&!this.mask&&"DeviceRGBA"===this.colorSpace.name){i.kind=v;const e=i.data=await this.getImageBytes(o*s*4,{});return t?h?ImageResizer.createImage(i,!1):this.createBitmap(v,a,r,e):i}if(!e){let e;"DeviceGray"===this.colorSpace.name&&1===c?e=k:"DeviceRGB"!==this.colorSpace.name||8!==c||this.needsDecode||(e=C);if(e&&!this.smask&&!this.mask&&a===s&&r===o){const n=await this.#$(s,o);if(n)return n;const c=await this.getImageBytes(o*l,{});if(t)return h?ImageResizer.createImage({data:c,kind:e,width:a,height:r,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,s,o,c);i.kind=e;i.data=c;if(this.needsDecode){assert(e===k,"PDFImage.createImageData: The image must be grayscale.");const t=i.data;for(let e=0,a=t.length;e<a;e++)t[e]^=255}return i}if(this.image instanceof JpegStream&&!this.smask&&!this.mask&&!this.needsDecode){let e=o*l;if(t&&!h){let t=!1;switch(this.colorSpace.name){case"DeviceGray":e*=4;t=!0;break;case"DeviceRGB":e=e/3*4;t=!0;break;case"DeviceCMYK":t=!0}if(t){const t=await this.#$(a,r);if(t)return t;const i=await this.getImageBytes(e,{drawWidth:a,drawHeight:r,forceRGBA:!0});return this.createBitmap(v,a,r,i)}}else switch(this.colorSpace.name){case"DeviceGray":e*=3;case"DeviceRGB":case"DeviceCMYK":i.kind=C;i.data=await this.getImageBytes(e,{drawWidth:a,drawHeight:r,forceRGB:!0});return h?ImageResizer.createImage(i):i}}}const u=await this.getImageBytes(o*l,{internal:!0}),d=0|u.length/l*r/o,f=this.getComponents(u);let g,p,m,b,y,w;if(t&&!h){m=new OffscreenCanvas(a,r);b=m.getContext("2d");y=b.createImageData(a,r);w=y.data}i.kind=v;if(e||this.smask||this.mask){t&&!h||(w=new Uint8ClampedArray(a*r*4));g=1;p=!0;await this.fillOpacity(w,a,r,d,f)}else{if(!t||h){i.kind=C;w=new Uint8ClampedArray(a*r*3);g=0}else{new Uint32Array(w.buffer).fill(FeatureTest.isLittleEndian?4278190080:255);g=1}p=!1}this.needsDecode&&this.decodeBuffer(f);this.colorSpace.fillRgb(w,s,o,a,r,d,c,f,g);p&&this.undoPreblend(w,a,d);if(t&&!h){b.putImageData(y,0,0);return{data:null,width:a,height:r,bitmap:m.transferToImageBitmap(),interpolate:this.interpolate}}i.data=w;return h?ImageResizer.createImage(i):i}async fillGrayBuffer(e){const t=this.numComps;if(1!==t)throw new FormatError(`Reading gray scale from a color image: ${t}`);const a=this.width,r=this.height,i=this.bpc,n=a*t*i+7>>3,s=await this.getImageBytes(r*n,{internal:!0}),o=this.getComponents(s);let c,l;if(1===i){l=a*r;if(this.needsDecode)for(c=0;c<l;++c)e[c]=o[c]-1&255;else for(c=0;c<l;++c)e[c]=255&-o[c];return}this.needsDecode&&this.decodeBuffer(o);l=a*r;const h=255/((1<<i)-1);for(c=0;c<l;++c)e[c]=h*o[c]}createBitmap(e,t,a,r){const i=new OffscreenCanvas(t,a),n=i.getContext("2d");let s;if(e===v)s=new ImageData(r,t,a);else{s=n.createImageData(t,a);convertToRGBA({kind:e,src:r,dest:new Uint32Array(s.data.buffer),width:t,height:a,inverseDecode:this.needsDecode})}n.putImageData(s,0,0);return{data:null,width:t,height:a,bitmap:i.transferToImageBitmap(),interpolate:this.interpolate}}async#$(e,t){const a=await this.image.getTransferableImage();return a?{data:null,width:e,height:t,bitmap:a,interpolate:this.interpolate}:null}async getImageBytes(e,{drawWidth:t,drawHeight:a,forceRGBA:r=!1,forceRGB:i=!1,internal:n=!1}){this.image.reset();this.image.drawWidth=t||this.width;this.image.drawHeight=a||this.height;this.image.forceRGBA=!!r;this.image.forceRGB=!!i;const s=await this.image.getImageData(e,this.jpxDecoderOptions);if(n||this.image instanceof DecodeStream)return s;assert(s instanceof Uint8Array,\'PDFImage.getImageBytes: Unsupported "imageBytes" type.\');return new Uint8Array(s)}}const Bn=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,iccUrl:null,standardFontDataUrl:null,wasmUrl:null}),Rn=1,Nn=2,En=Promise.resolve();function normalizeBlendMode(e,t=!1){if(Array.isArray(e)){for(const t of e){const e=normalizeBlendMode(t,!0);if(e)return e}warn(`Unsupported blend mode Array: ${e}`);return"source-over"}if(!(e instanceof Name))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(t)return null;warn(`Unsupported blend mode: ${e.name}`);return"source-over"}function addCachedImageOps(e,{objId:t,fn:a,args:r,optionalContent:i,hasMask:n}){t&&e.addDependency(t);e.addImageOps(a,r,i,n);a===Vt&&r[0]?.count>0&&r[0].count++}class TimeSlotManager{static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){if(++this.checked<TimeSlotManager.CHECK_TIME_EVERY)return!1;this.checked=0;return this.endTime<=Date.now()}reset(){this.endTime=Date.now()+TimeSlotManager.TIME_SLOT_DURATION_MS;this.checked=0}}class PartialEvaluator{constructor({xref:e,handler:t,pageIndex:a,idFactory:r,fontCache:i,builtInCMapCache:n,standardFontDataCache:s,globalColorSpaceCache:o,globalImageCache:c,systemFontCache:l,options:h=null}){this.xref=e;this.handler=t;this.pageIndex=a;this.idFactory=r;this.fontCache=i;this.builtInCMapCache=n;this.standardFontDataCache=s;this.globalColorSpaceCache=o;this.globalImageCache=c;this.systemFontCache=l;this.options=h||Bn;this.type3FontRefs=null;this._regionalImageCache=new RegionalImageCache;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){return shadow(this,"_pdfFunctionFactory",new PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported}))}get parsingType3Font(){return!!this.type3FontRefs}clone(e=null){const t=Object.create(this);t.options=Object.assign(Object.create(null),this.options,e);return t}hasBlendModes(e,t){if(!(e instanceof Dict))return!1;if(e.objId&&t.has(e.objId))return!1;const a=new RefSet(t);e.objId&&a.put(e.objId);const r=[e],i=this.xref;for(;r.length;){const e=r.shift(),t=e.get("ExtGState");if(t instanceof Dict)for(let e of t.getRawValues()){if(e instanceof Ref){if(a.has(e))continue;try{e=i.fetch(e)}catch(t){a.put(e);info(`hasBlendModes - ignoring ExtGState: "${t}".`);continue}}if(!(e instanceof Dict))continue;e.objId&&a.put(e.objId);const t=e.get("BM");if(t instanceof Name){if("Normal"!==t.name)return!0}else if(void 0!==t&&Array.isArray(t))for(const e of t)if(e instanceof Name&&"Normal"!==e.name)return!0}const n=e.get("XObject");if(n instanceof Dict)for(let e of n.getRawValues()){if(e instanceof Ref){if(a.has(e))continue;try{e=i.fetch(e)}catch(t){a.put(e);info(`hasBlendModes - ignoring XObject: "${t}".`);continue}}if(!(e instanceof BaseStream))continue;e.dict.objId&&a.put(e.dict.objId);const t=e.dict.get("Resources");if(t instanceof Dict&&(!t.objId||!a.has(t.objId))){r.push(t);t.objId&&a.put(t.objId)}}}for(const e of a)t.put(e);return!1}async fetchBuiltInCMap(e){const t=this.builtInCMapCache.get(e);if(t)return t;let a;a=this.options.useWorkerFetch?{cMapData:await fetchBinaryData(`${this.options.cMapUrl}${e}.bcmap`),isCompressed:!0}:await this.handler.sendWithPromise("FetchBinaryData",{type:"cMapReaderFactory",name:e});this.builtInCMapCache.set(e,a);return a}async fetchStandardFontData(e){const t=this.standardFontDataCache.get(e);if(t)return new Stream(t);if(this.options.useSystemFonts&&"Symbol"!==e&&"ZapfDingbats"!==e)return null;const a=Yr()[e];let r;try{r=this.options.useWorkerFetch?await fetchBinaryData(`${this.options.standardFontDataUrl}${a}`):await this.handler.sendWithPromise("FetchBinaryData",{type:"standardFontDataFactory",filename:a})}catch(e){warn(e);return null}this.standardFontDataCache.set(e,r);return new Stream(r)}async buildFormXObject(e,t,a,r,i,n,s,o){const{dict:c}=t,l=lookupMatrix(c.getArray("Matrix"),null),h=lookupNormalRect(c.getArray("BBox"),null);let u,d;c.has("OC")&&(u=await this.parseMarkedContentProps(c.get("OC"),e));void 0!==u&&r.addOp(jt,["OC",u]);const f=c.get("Group");if(f){d={matrix:l,bbox:h,smask:a,isolated:!1,knockout:!1};let t=null;if(isName(f.get("S"),"Transparency")){d.isolated=f.get("I")||!1;d.knockout=f.get("K")||!1;if(f.has("CS")){const a=this._getColorSpace(f.getRaw("CS"),e,s);t=a instanceof ColorSpace?a:await this._handleColorSpace(a)}}if(a?.backdrop){t||=ColorSpaceUtils.rgb;a.backdrop=t.getRgbHex(a.backdrop,0)}r.addOp(Wt,[d])}const g=[l&&new Float32Array(l),!f&&h&&new Float32Array(h)||null];r.addOp(qt,g);const p=c.get("Resources");await this.getOperatorList({stream:t,task:i,resources:p instanceof Dict?p:e,operatorList:r,initialState:n,prevRefs:o});r.addOp(Ht,[]);f&&r.addOp(zt,[d]);void 0!==u&&r.addOp(_t,[])}_sendImgData(e,t,a=!1){const r=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||a?this.handler.send("commonobj",[e,"Image",t],r):this.handler.send("obj",[e,this.pageIndex,"Image",t],r)}async buildPaintImageXObject({resources:e,image:t,isInline:a=!1,operatorList:r,cacheKey:i,localImageCache:n,localColorSpaceCache:s}){const{maxImageSize:o,ignoreErrors:c,isOffscreenCanvasSupported:l}=this.options,{dict:h}=t,u=h.objId,d=h.get("W","Width"),f=h.get("H","Height");if(!d||"number"!=typeof d||!f||"number"!=typeof f){warn("Image dimensions are missing, or not numbers.");return}if(-1!==o&&d*f>o){const e="Image exceeded maximum allowed size and was removed.";if(!c)throw new Error(e);warn(e);return}let g;h.has("OC")&&(g=await this.parseMarkedContentProps(h.get("OC"),e));let p,m,b;if(h.get("IM","ImageMask")||!1){p=await PDFImage.createMask({image:t,isOffscreenCanvasSupported:l&&!this.parsingType3Font});if(p.isSingleOpaquePixel){m=ta;b=[];r.addImageOps(m,b,g);if(i){const e={fn:m,args:b,optionalContent:g};n.set(i,u,e);u&&this._regionalImageCache.set(null,u,e)}return}if(this.parsingType3Font){b=function compileType3Glyph({data:e,width:t,height:a}){if(t>1e3||a>1e3)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1,n=new Uint8Array(i*(a+1));let s,o,c;const l=t+7&-8,h=new Uint8Array(l*a);let u=0;for(const t of e){let e=128;for(;e>0;){h[u++]=t&e?0:255;e>>=1}}let d=0;u=0;if(0!==h[u]){n[0]=1;++d}for(o=1;o<t;o++){if(h[u]!==h[u+1]){n[o]=h[u]?2:1;++d}u++}if(0!==h[u]){n[o]=2;++d}for(s=1;s<a;s++){u=s*l;c=s*i;if(h[u-l]!==h[u]){n[c]=h[u]?1:8;++d}let e=(h[u]?4:0)+(h[u-l]?8:0);for(o=1;o<t;o++){e=(e>>2)+(h[u+1]?4:0)+(h[u-l+1]?8:0);if(r[e]){n[c+o]=r[e];++d}u++}if(h[u-l]!==h[u]){n[c+o]=h[u]?2:4;++d}if(d>1e3)return null}u=l*(a-1);c=s*i;if(0!==h[u]){n[c]=8;++d}for(o=1;o<t;o++){if(h[u]!==h[u+1]){n[c+o]=h[u]?4:8;++d}u++}if(0!==h[u]){n[c+o]=4;++d}if(d>1e3)return null;const f=new Int32Array([0,i,-1,0,-i,0,0,0,1]),g=[],{a:p,b:m,c:b,d:y,e:w,f:x}=(new DOMMatrix).scaleSelf(1/t,-1/a).translateSelf(0,-a);for(s=0;d&&s<=a;s++){let e=s*i;const a=e+t;for(;e<a&&!n[e];)e++;if(e===a)continue;let r=e%i,o=s;g.push(sa,p*r+b*o+w,m*r+y*o+x);const c=e;let l=n[e];do{const t=f[l];do{e+=t}while(!n[e]);const a=n[e];if(5!==a&&10!==a){l=a;n[e]=0}else{l=a&51*l>>4;n[e]&=l>>2|l<<2}r=e%i;o=e/i|0;g.push(oa,p*r+b*o+w,m*r+y*o+x);n[e]||--d}while(c!==e);--s}return[na,[new Float32Array(g)],new Float32Array([0,0,t,a])]}(p);if(b){r.addImageOps(aa,b,g);return}warn("Cannot compile Type3 glyph.");r.addImageOps(Vt,[p],g);return}const e=`mask_${this.idFactory.createObjId()}`;r.addDependency(e);p.dataLen=p.bitmap?p.width*p.height*4:p.data.length;this._sendImgData(e,p);m=Vt;b=[{data:e,width:p.width,height:p.height,interpolate:p.interpolate,count:1}];r.addImageOps(m,b,g);if(i){const t={objId:e,fn:m,args:b,optionalContent:g};n.set(i,u,t);u&&this._regionalImageCache.set(null,u,t)}return}const y=h.has("SMask")||h.has("Mask");if(a&&d+f<200&&!y){try{const i=new PDFImage({xref:this.xref,res:e,image:t,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:s});p=await i.createImageData(!0,!1);r.addImageOps(Yt,[p],g)}catch(e){const t=`Unable to decode inline image: "${e}".`;if(!c)throw new Error(t);warn(t)}return}let w=`img_${this.idFactory.createObjId()}`,x=!1,S=null;if(this.parsingType3Font)w=`${this.idFactory.getDocId()}_type3_${w}`;else if(i&&u){x=this.globalImageCache.shouldCache(u,this.pageIndex);if(x){assert(!a,"Cannot cache an inline image globally.");w=`${this.idFactory.getDocId()}_${w}`}}r.addDependency(w);m=Jt;b=[w,d,f];r.addImageOps(m,b,g,y);if(x){S={objId:w,fn:m,args:b,optionalContent:g,hasMask:y,byteSize:0};if(this.globalImageCache.hasDecodeFailed(u)){this.globalImageCache.setData(u,S);this._sendImgData(w,null,x);return}if(d*f>25e4||y){const e=await this.handler.sendWithPromise("commonobj",[w,"CopyLocalImage",{imageRef:u}]);if(e){this.globalImageCache.setData(u,S);this.globalImageCache.addByteSize(u,e);return}}}PDFImage.buildImage({xref:this.xref,res:e,image:t,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:s}).then((async e=>{p=await e.createImageData(!1,l);p.dataLen=p.bitmap?p.width*p.height*4:p.data.length;p.ref=u;x&&this.globalImageCache.addByteSize(u,p.dataLen);return this._sendImgData(w,p,x)})).catch((e=>{warn(`Unable to decode image "${w}": "${e}".`);u&&this.globalImageCache.addDecodeFailed(u);return this._sendImgData(w,null,x)}));if(i){const e={objId:w,fn:m,args:b,optionalContent:g,hasMask:y};n.set(i,u,e);if(u){this._regionalImageCache.set(null,u,e);if(x){assert(S,"The global cache-data must be available.");this.globalImageCache.setData(u,S)}}}}handleSMask(e,t,a,r,i,n,s){const o=e.get("G"),c={subtype:e.get("S").name,backdrop:e.get("BC")},l=e.get("TR");if(isPDFFunction(l)){const e=this._pdfFunctionFactory.create(l),t=new Uint8Array(256),a=new Float32Array(1);for(let r=0;r<256;r++){a[0]=r/255;e(a,0,a,0);t[r]=255*a[0]|0}c.transferMap=t}return this.buildFormXObject(t,o,c,a,r,i.state.clone({newPath:!0}),n,s)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!isPDFFunction(e))return null;t=[e]}const a=[];let r=0,i=0;for(const e of t){const t=this.xref.fetchIfRef(e);r++;if(isName(t,"Identity")){a.push(null);continue}if(!isPDFFunction(t))return null;const n=this._pdfFunctionFactory.create(t),s=new Uint8Array(256),o=new Float32Array(1);for(let e=0;e<256;e++){o[0]=e/255;n(o,0,o,0);s[e]=255*o[0]|0}a.push(s);i++}return 1!==r&&4!==r||0===i?null:a}handleTilingType(e,t,a,r,i,n,s,o){const c=new OperatorList,l=Dict.merge({xref:this.xref,dictArray:[i.get("Resources"),a]});return this.getOperatorList({stream:r,task:s,resources:l,operatorList:c}).then((function(){const a=c.getIR(),r=getTilingPatternIR(a,i,t);n.addDependencies(c.dependencies);n.addOp(e,r);i.objId&&o.set(null,i.objId,{operatorListIR:a,dict:i})})).catch((e=>{if(!(e instanceof AbortException)){if(!this.options.ignoreErrors)throw e;warn(`handleTilingType - ignoring pattern: "${e}".`)}}))}async handleSetFont(e,t,a,r,i,n,s=null,o=null){const c=t?.[0]instanceof Name?t[0].name:null,l=await this.loadFont(c,a,e,i,s,o);l.font.isType3Font&&r.addDependencies(l.type3Dependencies);n.font=l.font;l.send(this.handler);return l.loadedName}handleText(e,t){const a=t.font,r=a.charsToGlyphs(e);if(a.data){(!!(t.textRenderingMode&S)||"Pattern"===t.fillColorSpace.name||a.disableFontFace)&&PartialEvaluator.buildFontPaths(a,r,this.handler,this.options)}return r}ensureStateFont(e){if(e.font)return;const t=new FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw t;warn(`ensureStateFont: "${t}".`)}async setGState({resources:e,gState:t,operatorList:a,cacheKey:r,task:i,stateManager:n,localGStateCache:s,localColorSpaceCache:o,seenRefs:c}){const l=t.objId;let h=!0;const u=[];let d=Promise.resolve();for(const[r,s]of t)switch(r){case"Type":break;case"LW":if("number"!=typeof s){warn(`Invalid LW (line width): ${s}`);break}u.push([r,Math.abs(s)]);break;case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":u.push([r,s]);break;case"Font":h=!1;d=d.then((()=>this.handleSetFont(e,null,s[0],a,i,n.state).then((function(e){a.addDependency(e);u.push([r,[e,s[1]]])}))));break;case"BM":u.push([r,normalizeBlendMode(s)]);break;case"SMask":if(isName(s,"None")){u.push([r,!1]);break}if(s instanceof Dict){h=!1;d=d.then((()=>this.handleSMask(s,e,a,i,n,o,c)));u.push([r,!0])}else warn("Unsupported SMask type");break;case"TR":const t=this.handleTransferFunction(s);u.push([r,t]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":info("graphic state operator "+r);break;default:info("Unknown graphic state operator "+r)}await d;u.length>0&&a.addOp(De,[u]);h&&s.set(r,l,u)}loadFont(e,t,a,r,i=null,n=null){const errorFont=async()=>new TranslatedFont({loadedName:"g_font_error",font:new ErrorFont(`Font "${e}" is not available.`),dict:t});let s;if(t)t instanceof Ref&&(s=t);else{const t=a.get("Font");t&&(s=t.getRaw(e))}if(s){if(this.type3FontRefs?.has(s))return errorFont();if(this.fontCache.has(s))return this.fontCache.get(s);try{t=this.xref.fetchIfRef(s)}catch(e){warn(`loadFont - lookup failed: "${e}".`)}}if(!(t instanceof Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font){warn(`Font "${e}" is not available.`);return errorFont()}warn(`Font "${e}" is not available -- attempting to fallback to a default font.`);t=i||PartialEvaluator.fallbackFontDict}if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);const{promise:o,resolve:c}=Promise.withResolvers();let l;try{l=this.preEvaluateFont(t);l.cssFontInfo=n}catch(e){warn(`loadFont - preEvaluateFont failed: "${e}".`);return errorFont()}const{descriptor:h,hash:u}=l,d=s instanceof Ref;let f;if(u&&h instanceof Dict){const e=h.fontAliases||=Object.create(null);if(e[u]){const t=e[u].aliasRef;if(d&&t&&this.fontCache.has(t)){this.fontCache.putAlias(s,t);return this.fontCache.get(s)}}else e[u]={fontID:this.idFactory.createFontId()};d&&(e[u].aliasRef=s);f=e[u].fontID}else f=this.idFactory.createFontId();assert(f?.startsWith("f"),\'The "fontID" must be (correctly) defined.\');if(d)this.fontCache.put(s,o);else{t.cacheKey=`cacheKey_${f}`;this.fontCache.put(t.cacheKey,o)}t.loadedName=`${this.idFactory.getDocId()}_${f}`;this.translateFont(l).then((async e=>{const i=new TranslatedFont({loadedName:t.loadedName,font:e,dict:t});if(e.isType3Font)try{await i.loadType3Data(this,a,r)}catch(e){throw new Error(`Type3 font load error: ${e}`)}c(i)})).catch((e=>{warn(`loadFont - translateFont failed: "${e}".`);c(new TranslatedFont({loadedName:t.loadedName,font:new ErrorFont(e?.message),dict:t}))}));return o}buildPath(e,t,a){const{pathMinMax:r,pathBuffer:i}=a;switch(0|e){case Xe:{const e=a.currentPointX=t[0],n=a.currentPointY=t[1],s=t[2],o=t[3],c=e+s,l=n+o;0===s||0===o?i.push(sa,e,n,oa,c,l,la):i.push(sa,e,n,oa,c,n,oa,c,l,oa,e,l,la);Util.rectBoundingBox(e,n,c,l,r);break}case Ee:{const e=a.currentPointX=t[0],n=a.currentPointY=t[1];i.push(sa,e,n);Util.pointBoundingBox(e,n,r);break}case Pe:{const e=a.currentPointX=t[0],n=a.currentPointY=t[1];i.push(oa,e,n);Util.pointBoundingBox(e,n,r);break}case Le:{const e=a.currentPointX,n=a.currentPointY,[s,o,c,l,h,u]=t;a.currentPointX=h;a.currentPointY=u;i.push(ca,s,o,c,l,h,u);Util.bezierBoundingBox(e,n,s,o,c,l,h,u,r);break}case je:{const e=a.currentPointX,n=a.currentPointY,[s,o,c,l]=t;a.currentPointX=c;a.currentPointY=l;i.push(ca,e,n,s,o,c,l);Util.bezierBoundingBox(e,n,e,n,s,o,c,l,r);break}case _e:{const e=a.currentPointX,n=a.currentPointY,[s,o,c,l]=t;a.currentPointX=c;a.currentPointY=l;i.push(ca,s,o,c,l,c,l);Util.bezierBoundingBox(e,n,s,o,c,l,c,l,r);break}case Ue:i.push(la)}}_getColorSpace(e,t,a){return ColorSpaceUtils.parse({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:a,asyncIfNotCached:!0})}async _handleColorSpace(e){try{return await e}catch(e){if(e instanceof AbortException)return null;if(this.options.ignoreErrors){warn(`_handleColorSpace - ignoring ColorSpace: "${e}".`);return null}throw e}}parseShading({shading:e,resources:t,localColorSpaceCache:a,localShadingPatternCache:r}){let i,n=r.get(e);if(n)return n;try{i=Pattern.parseShading(e,this.xref,t,this._pdfFunctionFactory,this.globalColorSpaceCache,a).getIR()}catch(t){if(t instanceof AbortException)return null;if(this.options.ignoreErrors){warn(`parseShading - ignoring shading: "${t}".`);r.set(e,null);return null}throw t}n=`pattern_${this.idFactory.createObjId()}`;this.parsingType3Font&&(n=`${this.idFactory.getDocId()}_type3_${n}`);r.set(e,n);this.parsingType3Font?this.handler.send("commonobj",[n,"Pattern",i]):this.handler.send("obj",[n,this.pageIndex,"Pattern",i]);return n}handleColorN(e,t,a,r,i,n,s,o,c,l){const h=a.pop();if(h instanceof Name){const u=i.getRaw(h.name),d=u instanceof Ref&&c.getByRef(u);if(d)try{const i=r.base?r.base.getRgbHex(a,0):null,n=getTilingPatternIR(d.operatorListIR,d.dict,i);e.addOp(t,n);return}catch{}const f=this.xref.fetchIfRef(u);if(f){const i=f instanceof BaseStream?f.dict:f,h=i.get("PatternType");if(h===Rn){const o=r.base?r.base.getRgbHex(a,0):null;return this.handleTilingType(t,o,n,f,i,e,s,c)}if(h===Nn){const a=i.get("Shading"),r=this.parseShading({shading:a,resources:n,localColorSpaceCache:o,localShadingPatternCache:l});if(r){const a=lookupMatrix(i.getArray("Matrix"),null);e.addOp(t,["Shading",r,a])}return}throw new FormatError(`Unknown PatternType: ${h}`)}}throw new FormatError(`Unknown PatternName: ${h}`)}_parseVisibilityExpression(e,t,a){if(++t>10){warn("Visibility expression is too deeply nested");return}const r=e.length,i=this.xref.fetchIfRef(e[0]);if(!(r<2)&&i instanceof Name){switch(i.name){case"And":case"Or":case"Not":a.push(i.name);break;default:warn(`Invalid operator ${i.name} in visibility expression`);return}for(let i=1;i<r;i++){const r=e[i],n=this.xref.fetchIfRef(r);if(Array.isArray(n)){const e=[];a.push(e);this._parseVisibilityExpression(n,t,e)}else r instanceof Ref&&a.push(r.toString())}}else warn("Invalid visibility expression")}async parseMarkedContentProps(e,t){let a;if(e instanceof Name){a=t.get("Properties").get(e.name)}else{if(!(e instanceof Dict))throw new FormatError("Optional content properties malformed.");a=e}const r=a.get("Type")?.name;if("OCG"===r)return{type:r,id:a.objId};if("OCMD"===r){const e=a.get("VE");if(Array.isArray(e)){const t=[];this._parseVisibilityExpression(e,0,t);if(t.length>0)return{type:"OCMD",expression:t}}const t=a.get("OCGs");if(Array.isArray(t)||t instanceof Dict){const e=[];if(Array.isArray(t))for(const a of t)e.push(a.toString());else e.push(t.objId);return{type:r,ids:e,policy:a.get("P")instanceof Name?a.get("P").name:null,expression:null}}if(t instanceof Ref)return{type:r,id:t.toString()}}return null}getOperatorList({stream:e,task:t,resources:a,operatorList:r,initialState:i=null,fallbackFontDict:n=null,prevRefs:s=null}){const o=e.dict?.objId,c=new RefSet(s);if(o){if(s?.has(o))throw new Error(`getOperatorList - ignoring circular reference: ${o}`);c.put(o)}a||=Dict.empty;i||=new EvalState;if(!r)throw new Error(\'getOperatorList: missing "operatorList" parameter\');const l=this,h=this.xref,u=new LocalImageCache,d=new LocalColorSpaceCache,f=new LocalGStateCache,g=new LocalTilingPatternCache,p=new Map,m=a.get("XObject")||Dict.empty,b=a.get("Pattern")||Dict.empty,y=new StateManager(i),w=new EvaluatorPreprocessor(e,h,y),x=new TimeSlotManager;function closePendingRestoreOPS(e){for(let e=0,t=w.savedStatesDepth;e<t;e++)r.addOp(Re,[])}return new Promise((function promiseBody(e,i){const next=function(t){Promise.all([t,r.ready]).then((function(){try{promiseBody(e,i)}catch(e){i(e)}}),i)};t.ensureNotTerminated();x.reset();const s={};let o,S,k,C,v,F;for(;!(o=x.check());){s.args=null;if(!w.read(s))break;let e=s.args,i=s.fn;switch(0|i){case Nt:F=e[0]instanceof Name;v=e[0].name;if(F){const t=u.getByName(v);if(t){addCachedImageOps(r,t);e=null;continue}}next(new Promise((function(e,i){if(!F)throw new FormatError("XObject must be referred to by name.");let n=m.getRaw(v);if(n instanceof Ref){const t=u.getByRef(n)||l._regionalImageCache.getByRef(n)||l.globalImageCache.getData(n,l.pageIndex);if(t){addCachedImageOps(r,t);e();return}n=h.fetch(n)}if(!(n instanceof BaseStream))throw new FormatError("XObject should be a stream");const s=n.dict.get("Subtype");if(!(s instanceof Name))throw new FormatError("XObject should have a Name subtype");if("Form"!==s.name)if("Image"!==s.name){if("PS"!==s.name)throw new FormatError(`Unhandled XObject subtype ${s.name}`);info("Ignored XObject subtype PS");e()}else l.buildPaintImageXObject({resources:a,image:n,operatorList:r,cacheKey:v,localImageCache:u,localColorSpaceCache:d}).then(e,i);else{y.save();l.buildFormXObject(a,n,null,r,t,y.state.clone({newPath:!0}),d,c).then((function(){y.restore();e()}),i)}})).catch((function(e){if(!(e instanceof AbortException)){if(!l.options.ignoreErrors)throw e;warn(`getOperatorList - ignoring XObject: "${e}".`)}})));return;case nt:const s=e[1];next(l.handleSetFont(a,e,null,r,t,y.state,n).then((function(e){r.addDependency(e);r.addOp(nt,[e,s])})));return;case Rt:const o=e[0].cacheKey;if(o){const t=u.getByName(o);if(t){addCachedImageOps(r,t);e=null;continue}}next(l.buildPaintImageXObject({resources:a,image:e[0],isInline:!0,operatorList:r,cacheKey:o,localImageCache:u,localColorSpaceCache:d}));return;case dt:if(!y.state.font){l.ensureStateFont(y.state);continue}e[0]=l.handleText(e[0],y.state);break;case ft:if(!y.state.font){l.ensureStateFont(y.state);continue}const w=[],x=y.state;for(const t of e[0])"string"==typeof t?w.push(...l.handleText(t,x)):"number"==typeof t&&w.push(t);e[0]=w;i=dt;break;case gt:if(!y.state.font){l.ensureStateFont(y.state);continue}r.addOp(ut);e[0]=l.handleText(e[0],y.state);i=dt;break;case pt:if(!y.state.font){l.ensureStateFont(y.state);continue}r.addOp(ut);r.addOp(at,[e.shift()]);r.addOp(tt,[e.shift()]);e[0]=l.handleText(e[0],y.state);i=dt;break;case st:y.state.textRenderingMode=e[0];break;case wt:{const t=l._getColorSpace(e[0],a,d);if(t instanceof ColorSpace){y.state.fillColorSpace=t;continue}next(l._handleColorSpace(t).then((e=>{y.state.fillColorSpace=e||ColorSpaceUtils.gray})));return}case yt:{const t=l._getColorSpace(e[0],a,d);if(t instanceof ColorSpace){y.state.strokeColorSpace=t;continue}next(l._handleColorSpace(t).then((e=>{y.state.strokeColorSpace=e||ColorSpaceUtils.gray})));return}case At:C=y.state.fillColorSpace;e=[C.getRgbHex(e,0)];i=It;break;case xt:C=y.state.strokeColorSpace;e=[C.getRgbHex(e,0)];i=Ft;break;case vt:y.state.fillColorSpace=ColorSpaceUtils.gray;e=[ColorSpaceUtils.gray.getRgbHex(e,0)];i=It;break;case Ct:y.state.strokeColorSpace=ColorSpaceUtils.gray;e=[ColorSpaceUtils.gray.getRgbHex(e,0)];i=Ft;break;case Ot:y.state.fillColorSpace=ColorSpaceUtils.cmyk;e=[ColorSpaceUtils.cmyk.getRgbHex(e,0)];i=It;break;case Tt:y.state.strokeColorSpace=ColorSpaceUtils.cmyk;e=[ColorSpaceUtils.cmyk.getRgbHex(e,0)];i=Ft;break;case It:y.state.fillColorSpace=ColorSpaceUtils.rgb;e=[ColorSpaceUtils.rgb.getRgbHex(e,0)];break;case Ft:y.state.strokeColorSpace=ColorSpaceUtils.rgb;e=[ColorSpaceUtils.rgb.getRgbHex(e,0)];break;case kt:C=y.state.patternFillColorSpace;if(!C){if(isNumberArray(e,null)){e=[ColorSpaceUtils.gray.getRgbHex(e,0)];i=It;break}e=[];i=ia;break}if("Pattern"===C.name){next(l.handleColorN(r,kt,e,C,b,a,t,d,g,p));return}e=[C.getRgbHex(e,0)];i=It;break;case St:C=y.state.patternStrokeColorSpace;if(!C){if(isNumberArray(e,null)){e=[ColorSpaceUtils.gray.getRgbHex(e,0)];i=Ft;break}e=[];i=ra;break}if("Pattern"===C.name){next(l.handleColorN(r,St,e,C,b,a,t,d,g,p));return}e=[C.getRgbHex(e,0)];i=Ft;break;case Mt:let T;try{const t=a.get("Shading");if(!t)throw new FormatError("No shading resource found");T=t.get(e[0].name);if(!T)throw new FormatError("No shading object found")}catch(e){if(e instanceof AbortException)continue;if(l.options.ignoreErrors){warn(`getOperatorList - ignoring Shading: "${e}".`);continue}throw e}const O=l.parseShading({shading:T,resources:a,localColorSpaceCache:d,localShadingPatternCache:p});if(!O)continue;e=[O];i=Mt;break;case De:F=e[0]instanceof Name;v=e[0].name;if(F){const t=f.getByName(v);if(t){t.length>0&&r.addOp(De,[t]);e=null;continue}}next(new Promise((function(e,i){if(!F)throw new FormatError("GState must be referred to by name.");const n=a.get("ExtGState");if(!(n instanceof Dict))throw new FormatError("ExtGState should be a dictionary.");const s=n.get(v);if(!(s instanceof Dict))throw new FormatError("GState should be a dictionary.");l.setGState({resources:a,gState:s,operatorList:r,cacheKey:v,task:t,stateManager:y,localGStateCache:f,localColorSpaceCache:d,seenRefs:c}).then(e,i)})).catch((function(e){if(!(e instanceof AbortException)){if(!l.options.ignoreErrors)throw e;warn(`getOperatorList - ignoring ExtGState: "${e}".`)}})));return;case Ce:{const[t]=e;if("number"!=typeof t){warn(`Invalid setLineWidth: ${t}`);continue}e[0]=Math.abs(t);break}case Ee:case Pe:case Le:case je:case _e:case Ue:case Xe:l.buildPath(i,e,y.state);continue;case qe:case He:case We:case ze:case $e:case Ge:case Ve:case Ke:case Je:{const{state:{pathBuffer:e,pathMinMax:t}}=y;i!==He&&i!==Ve&&i!==Ke||e.push(la);if(0===e.length)r.addOp(aa,[i,[null],null]);else{r.addOp(aa,[i,[new Float32Array(e)],t.slice()]);e.length=0;t.set([1/0,1/0,-1/0,-1/0],0)}continue}case ht:r.addOp(i,[new Float32Array(e)]);continue;case Et:case Pt:case Ut:case Xt:continue;case jt:if(!(e[0]instanceof Name)){warn(`Expected name for beginMarkedContentProps arg0=${e[0]}`);r.addOp(jt,["OC",null]);continue}if("OC"===e[0].name){next(l.parseMarkedContentProps(e[1],a).then((e=>{r.addOp(jt,["OC",e])})).catch((e=>{if(!(e instanceof AbortException)){if(!l.options.ignoreErrors)throw e;warn(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`);r.addOp(jt,["OC",null])}})));return}e=[e[0].name,e[1]instanceof Dict?e[1].get("MCID"):null];break;default:if(null!==e){for(S=0,k=e.length;S<k&&!(e[S]instanceof Dict);S++);if(S<k){warn("getOperatorList - ignoring operator: "+i);continue}}}r.addOp(i,e)}if(o)next(En);else{closePendingRestoreOPS();e()}})).catch((e=>{if(!(e instanceof AbortException)){if(!this.options.ignoreErrors)throw e;warn(`getOperatorList - ignoring errors during "${t.name}" task: "${e}".`);closePendingRestoreOPS()}}))}getTextContent({stream:e,task:a,resources:r,stateManager:i=null,includeMarkedContent:n=!1,sink:s,seenStyles:o=new Set,viewBox:c,lang:l=null,markedContentData:h=null,disableNormalization:u=!1,keepWhiteSpace:d=!1,prevRefs:f=null,intersector:g=null}){const p=e.dict?.objId,m=new RefSet(f);if(p){if(f?.has(p))throw new Error(`getTextContent - ignoring circular reference: ${p}`);m.put(p)}r||=Dict.empty;i||=new StateManager(new TextState);n&&(h||={level:0});const b={items:[],styles:Object.create(null),lang:l},y={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},w=[" "," "];let x=0;function saveLastChar(e){const t=(x+1)%2,a=" "!==w[x]&&" "===w[t];w[x]=e;x=t;return!d&&a}function shouldAddWhitepsace(){return!d&&" "!==w[x]&&" "===w[(x+1)%2]}function resetLastChars(){w[0]=w[1]=" ";x=0}const S=this,k=this.xref,C=[];let v=null;const F=new LocalImageCache,T=new LocalGStateCache,O=new EvaluatorPreprocessor(e,k,i);let M;function pushWhitespace({width:e=0,height:t=0,transform:a=y.prevTransform,fontName:r=y.fontName}){g?.addExtraChar(" ");b.items.push({str:" ",dir:"ltr",width:e,height:t,transform:a,fontName:r,hasEOL:!1})}function getCurrentTextTransform(){const e=M.font,a=[M.fontSize*M.textHScale,0,0,M.fontSize,0,M.textRise];if(e.isType3Font&&(M.fontSize<=1||e.isCharBBox)&&!isArrayEqual(M.fontMatrix,t)){const t=e.bbox[3]-e.bbox[1];t>0&&(a[3]*=t*M.fontMatrix[3])}return Util.transform(M.ctm,Util.transform(M.textMatrix,a))}function ensureTextContentItem(){if(y.initialized)return y;const{font:e,loadedName:t}=M;if(!o.has(t)){o.add(t);b.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical};if(S.options.fontExtraProperties&&e.systemFontInfo){const a=b.styles[t];a.fontSubstitution=e.systemFontInfo.css;a.fontSubstitutionLoadedName=e.systemFontInfo.loadedName}}y.fontName=t;const a=y.transform=getCurrentTextTransform();if(e.vertical){y.width=y.totalWidth=Math.hypot(a[0],a[1]);y.height=y.totalHeight=0;y.vertical=!0}else{y.width=y.totalWidth=0;y.height=y.totalHeight=Math.hypot(a[2],a[3]);y.vertical=!1}const r=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),i=Math.hypot(M.ctm[0],M.ctm[1]);y.textAdvanceScale=i*r;const{fontSize:n}=M;y.trackingSpaceMin=.102*n;y.notASpace=.03*n;y.negativeSpaceMax=-.2*n;y.spaceInFlowMin=.102*n;y.spaceInFlowMax=.6*n;y.hasEOL=!1;y.initialized=!0;return y}function updateAdvanceScale(){if(!y.initialized)return;const e=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),t=Math.hypot(M.ctm[0],M.ctm[1])*e;if(t!==y.textAdvanceScale){if(y.vertical){y.totalHeight+=y.height*y.textAdvanceScale;y.height=0}else{y.totalWidth+=y.width*y.textAdvanceScale;y.width=0}y.textAdvanceScale=t}}function runBidiTransform(e){let t=e.str.join("");u||(t=function normalizeUnicode(e){if(!ma){ma=/([\\u00a0\\u00b5\\u037e\\u0eb3\\u2000-\\u200a\\u202f\\u2126\\ufb00-\\ufb04\\ufb06\\ufb20-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40-\\ufb41\\ufb43-\\ufb44\\ufb46-\\ufba1\\ufba4-\\ufba9\\ufbae-\\ufbb1\\ufbd3-\\ufbdc\\ufbde-\\ufbe7\\ufbea-\\ufbf8\\ufbfc-\\ufbfd\\ufc00-\\ufc5d\\ufc64-\\ufcf1\\ufcf5-\\ufd3d\\ufd88\\ufdf4\\ufdfa-\\ufdfb\\ufe71\\ufe77\\ufe79\\ufe7b\\ufe7d]+)|(\\ufb05+)/gu;ba=new Map([["ﬅ","ſt"]])}return e.replaceAll(ma,((e,t,a)=>t?t.normalize("NFKC"):ba.get(a)))}(t));const a=bidi(t,-1,e.vertical);return{str:a.str,dir:a.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}async function handleSetFont(e,i){const n=await S.loadFont(e,i,r,a);M.loadedName=n.loadedName;M.font=n.font;M.fontMatrix=n.font.fontMatrix||t}function applyInverseRotation(e,t,a){const r=Math.hypot(a[0],a[1]);return[(a[0]*e+a[1]*t)/r,(a[2]*e+a[3]*t)/r]}function compareWithLastPosition(e){const t=getCurrentTextTransform();let a=t[4],r=t[5];if(M.font?.vertical){if(a<c[0]||a>c[2]||r+e<c[1]||r>c[3])return!1}else if(a+e<c[0]||a>c[2]||r<c[1]||r>c[3])return!1;if(!M.font||!y.prevTransform)return!0;let i=y.prevTransform[4],n=y.prevTransform[5];if(i===a&&n===r)return!0;let s=-1;t[0]&&0===t[1]&&0===t[2]?s=t[0]>0?0:180:t[1]&&0===t[0]&&0===t[3]&&(s=t[1]>0?90:270);switch(s){case 0:break;case 90:[a,r]=[r,a];[i,n]=[n,i];break;case 180:[a,r,i,n]=[-a,-r,-i,-n];break;case 270:[a,r]=[-r,-a];[i,n]=[-n,-i];break;default:[a,r]=applyInverseRotation(a,r,t);[i,n]=applyInverseRotation(i,n,y.prevTransform)}if(M.font.vertical){const e=(n-r)/y.textAdvanceScale,t=a-i,s=Math.sign(y.height);if(e<s*y.negativeSpaceMax){if(Math.abs(t)>.5*y.width){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(t)>y.width){appendEOL();return!0}e<=s*y.notASpace&&resetLastChars();if(e<=s*y.trackingSpaceMin)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({height:Math.abs(e)})}else y.height+=e;else if(!addFakeSpaces(e,y.prevTransform,s))if(0===y.str.length){resetLastChars();pushWhitespace({height:Math.abs(e)})}else y.height+=e;Math.abs(t)>.25*y.width&&flushTextContentItem();return!0}const o=(a-i)/y.textAdvanceScale,l=r-n,h=Math.sign(y.width);if(o<h*y.negativeSpaceMax){if(Math.abs(l)>.5*y.height){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(l)>y.height){appendEOL();return!0}o<=h*y.notASpace&&resetLastChars();if(o<=h*y.trackingSpaceMin)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({width:Math.abs(o)})}else y.width+=o;else if(!addFakeSpaces(o,y.prevTransform,h))if(0===y.str.length){resetLastChars();pushWhitespace({width:Math.abs(o)})}else y.width+=o;Math.abs(l)>.25*y.height&&flushTextContentItem();return!0}function buildTextContentItem({chars:e,extraSpacing:t}){const a=M.font;if(!e){const e=M.charSpacing+t;e&&(a.vertical?M.translateTextMatrix(0,-e):M.translateTextMatrix(e*M.textHScale,0));d&&compareWithLastPosition(0);return}const r=a.charsToGlyphs(e),i=M.fontMatrix[0]*M.fontSize;for(let e=0,n=r.length;e<n;e++){const s=r[e],{category:o}=s;if(o.isInvisibleFormatMark)continue;let c=M.charSpacing+(e+1===n?t:0),l=s.width;a.vertical&&(l=s.vmetric?s.vmetric[0]:-l);let h=l*i;if(!d&&o.isWhitespace){if(a.vertical){c+=-h+M.wordSpacing;M.translateTextMatrix(0,-c)}else{c+=h+M.wordSpacing;M.translateTextMatrix(c*M.textHScale,0)}saveLastChar(" ");continue}if(!o.isZeroWidthDiacritic&&!compareWithLastPosition(h)){a.vertical?M.translateTextMatrix(0,h):M.translateTextMatrix(h*M.textHScale,0);continue}const u=ensureTextContentItem();o.isZeroWidthDiacritic&&(h=0);if(a.vertical){g?.addGlyph(getCurrentTextTransform(),0,h,s.unicode);M.translateTextMatrix(0,h);h=Math.abs(h);u.height+=h}else{h*=M.textHScale;g?.addGlyph(getCurrentTextTransform(),h,0,s.unicode);M.translateTextMatrix(h,0);u.width+=h}h&&(u.prevTransform=getCurrentTextTransform());const f=s.unicode;if(saveLastChar(f)){u.str.push(" ");g?.addExtraChar(" ")}g||u.str.push(f);c&&(a.vertical?M.translateTextMatrix(0,-c):M.translateTextMatrix(c*M.textHScale,0))}}function appendEOL(){g?.addExtraChar("\\n");resetLastChars();if(y.initialized){y.hasEOL=!0;flushTextContentItem()}else b.items.push({str:"",dir:"ltr",width:0,height:0,transform:getCurrentTextTransform(),fontName:M.loadedName,hasEOL:!0})}function addFakeSpaces(e,t,a){if(a*y.spaceInFlowMin<=e&&e<=a*y.spaceInFlowMax){if(y.initialized){resetLastChars();y.str.push(" ");g?.addExtraChar(" ")}return!1}const r=y.fontName;let i=0;if(y.vertical){i=e;e=0}flushTextContentItem();resetLastChars();pushWhitespace({width:Math.abs(e),height:Math.abs(i),transform:t||getCurrentTextTransform(),fontName:r});return!0}function flushTextContentItem(){if(y.initialized&&y.str){y.vertical?y.totalHeight+=y.height*y.textAdvanceScale:y.totalWidth+=y.width*y.textAdvanceScale;b.items.push(runBidiTransform(y));y.initialized=!1;y.str.length=0}}function enqueueChunk(e=!1){const t=b.items.length;if(0!==t&&!(e&&t<10)){s?.enqueue(b,t);b.items=[];b.styles=Object.create(null)}}const D=new TimeSlotManager;return new Promise((function promiseBody(e,t){const next=function(a){enqueueChunk(!0);Promise.all([a,s?.ready]).then((function(){try{promiseBody(e,t)}catch(e){t(e)}}),t)};a.ensureNotTerminated();D.reset();const f={};let g,p,y,w=[];for(;!(g=D.check());){w.length=0;f.args=w;if(!O.read(f))break;const e=M;M=i.state;const t=f.fn;w=f.args;switch(0|t){case nt:const t=w[0].name,f=w[1];if(M.font&&t===M.fontName&&f===M.fontSize)break;flushTextContentItem();M.fontName=t;M.fontSize=f;next(handleSetFont(t,null));return;case ot:M.textRise=w[0];break;case rt:M.textHScale=w[0]/100;break;case it:M.leading=w[0];break;case ct:M.translateTextLineMatrix(w[0],w[1]);M.textMatrix=M.textLineMatrix.slice();break;case lt:M.leading=-w[1];M.translateTextLineMatrix(w[0],w[1]);M.textMatrix=M.textLineMatrix.slice();break;case ut:M.carriageReturn();break;case ht:M.setTextMatrix(w[0],w[1],w[2],w[3],w[4],w[5]);M.setTextLineMatrix(w[0],w[1],w[2],w[3],w[4],w[5]);updateAdvanceScale();break;case tt:M.charSpacing=w[0];break;case at:M.wordSpacing=w[0];break;case Qe:M.textMatrix=Fa.slice();M.textLineMatrix=Fa.slice();break;case ft:if(!i.state.font){S.ensureStateFont(i.state);continue}const g=(M.font.vertical?1:-1)*M.fontSize/1e3,x=w[0];for(let e=0,t=x.length;e<t;e++){const t=x[e];if("string"==typeof t)C.push(t);else if("number"==typeof t&&0!==t){const e=C.join("");C.length=0;buildTextContentItem({chars:e,extraSpacing:t*g})}}if(C.length>0){const e=C.join("");C.length=0;buildTextContentItem({chars:e,extraSpacing:0})}break;case dt:if(!i.state.font){S.ensureStateFont(i.state);continue}buildTextContentItem({chars:w[0],extraSpacing:0});break;case gt:if(!i.state.font){S.ensureStateFont(i.state);continue}M.carriageReturn();buildTextContentItem({chars:w[0],extraSpacing:0});break;case pt:if(!i.state.font){S.ensureStateFont(i.state);continue}M.wordSpacing=w[0];M.charSpacing=w[1];M.carriageReturn();buildTextContentItem({chars:w[2],extraSpacing:0});break;case Nt:flushTextContentItem();v??=r.get("XObject")||Dict.empty;y=w[0]instanceof Name;p=w[0].name;if(y&&F.getByName(p))break;next(new Promise((function(e,t){if(!y)throw new FormatError("XObject must be referred to by name.");let f=v.getRaw(p);if(f instanceof Ref){if(F.getByRef(f)){e();return}if(S.globalImageCache.getData(f,S.pageIndex)){e();return}f=k.fetch(f)}if(!(f instanceof BaseStream))throw new FormatError("XObject should be a stream");const{dict:g}=f,b=g.get("Subtype");if(!(b instanceof Name))throw new FormatError("XObject should have a Name subtype");if("Form"!==b.name){F.set(p,g.objId,!0);e();return}const w=i.state.clone(),x=new StateManager(w),C=lookupMatrix(g.getArray("Matrix"),null);C&&x.transform(C);const T=g.get("Resources");enqueueChunk();const O={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0;s.enqueue(e,t)},get desiredSize(){return s.desiredSize??0},get ready(){return s.ready}};S.getTextContent({stream:f,task:a,resources:T instanceof Dict?T:r,stateManager:x,includeMarkedContent:n,sink:s&&O,seenStyles:o,viewBox:c,lang:l,markedContentData:h,disableNormalization:u,keepWhiteSpace:d,prevRefs:m}).then((function(){O.enqueueInvoked||F.set(p,g.objId,!0);e()}),t)})).catch((function(e){if(!(e instanceof AbortException)){if(!S.options.ignoreErrors)throw e;warn(`getTextContent - ignoring XObject: "${e}".`)}})));return;case De:y=w[0]instanceof Name;p=w[0].name;if(y&&T.getByName(p))break;next(new Promise((function(e,t){if(!y)throw new FormatError("GState must be referred to by name.");const a=r.get("ExtGState");if(!(a instanceof Dict))throw new FormatError("ExtGState should be a dictionary.");const i=a.get(p);if(!(i instanceof Dict))throw new FormatError("GState should be a dictionary.");const n=i.get("Font");if(n){flushTextContentItem();M.fontName=null;M.fontSize=n[1];handleSetFont(null,n[0]).then(e,t)}else{T.set(p,i.objId,!0);e()}})).catch((function(e){if(!(e instanceof AbortException)){if(!S.options.ignoreErrors)throw e;warn(`getTextContent - ignoring ExtGState: "${e}".`)}})));return;case Lt:flushTextContentItem();if(n){h.level++;b.items.push({type:"beginMarkedContent",tag:w[0]instanceof Name?w[0].name:null})}break;case jt:flushTextContentItem();if(n){h.level++;let e=null;w[1]instanceof Dict&&(e=w[1].get("MCID"));b.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?`${S.idFactory.getPageObjId()}_mc${e}`:null,tag:w[0]instanceof Name?w[0].name:null})}break;case _t:flushTextContentItem();if(n){if(0===h.level)break;h.level--;b.items.push({type:"endMarkedContent"})}break;case Re:!e||e.font===M.font&&e.fontSize===M.fontSize&&e.fontName===M.fontName||flushTextContentItem()}if(b.items.length>=(s?.desiredSize??1)){g=!0;break}}if(g)next(En);else{flushTextContentItem();enqueueChunk();e()}})).catch((e=>{if(!(e instanceof AbortException)){if(!this.options.ignoreErrors)throw e;warn(`getTextContent - ignoring errors during "${a.name}" task: "${e}".`);flushTextContentItem();enqueueChunk()}}))}async extractDataStructures(e,t){const a=this.xref;let r;const i=this.readToUnicode(t.toUnicode);if(t.composite){const a=e.get("CIDSystemInfo");a instanceof Dict&&(t.cidSystemInfo={registry:stringToPDFString(a.get("Registry")),ordering:stringToPDFString(a.get("Ordering")),supplement:a.get("Supplement")});try{const t=e.get("CIDToGIDMap");t instanceof BaseStream&&(r=t.getBytes())}catch(e){if(!this.options.ignoreErrors)throw e;warn(`extractDataStructures - ignoring CIDToGIDMap data: "${e}".`)}}const n=[];let s,o=null;if(e.has("Encoding")){s=e.get("Encoding");if(s instanceof Dict){o=s.get("BaseEncoding");o=o instanceof Name?o.name:null;if(s.has("Differences")){const e=s.get("Differences");let t=0;for(const r of e){const e=a.fetchIfRef(r);if("number"==typeof e)t=e;else{if(!(e instanceof Name))throw new FormatError(`Invalid entry in \'Differences\' array: ${e}`);n[t++]=e.name}}}}else if(s instanceof Name)o=s.name;else{const e="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new FormatError(e);warn(e)}"MacRomanEncoding"!==o&&"MacExpertEncoding"!==o&&"WinAnsiEncoding"!==o&&(o=null)}const c=!t.file||t.isInternalFont,l=ei()[t.name];o&&c&&l&&(o=null);if(o)t.defaultEncoding=getEncoding(o);else{const e=!!(t.flags&Pr),a=!!(t.flags&Lr);s=Ar;"TrueType"!==t.type||a||(s=kr);if(e||l){s=Sr;c&&(/Symbol/i.test(t.name)?s=Cr:/Dingbats/i.test(t.name)?s=vr:/Wingdings/i.test(t.name)&&(s=kr))}t.defaultEncoding=s}t.differences=n;t.baseEncodingName=o;t.hasEncoding=!!o||n.length>0;t.dict=e;t.toUnicode=await i;const h=await this.buildToUnicode(t);t.toUnicode=h;r&&(t.cidToGidMap=this.readCidToGidMap(r,h));return t}_simpleFontToUnicode(e,t=!1){assert(!e.composite,"Must be a simple font.");const a=[],r=e.defaultEncoding.slice(),i=e.baseEncodingName,n=e.differences;for(const e in n){const t=n[e];".notdef"!==t&&(r[e]=t)}const s=Fr();for(const n in r){let o=r[n];if(""===o)continue;let c=s[o];if(void 0!==c){a[n]=String.fromCharCode(c);continue}let l=0;switch(o[0]){case"G":3===o.length&&(l=parseInt(o.substring(1),16));break;case"g":5===o.length&&(l=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){const a=o.substring(1);if(t){l=parseInt(a,16);break}l=+a;if(Number.isNaN(l)&&Number.isInteger(parseInt(a,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":c=getUnicodeForGlyph(o,s);-1!==c&&(l=c);break;default:switch(o){case"f_h":case"f_t":case"T_h":a[n]=o.replaceAll("_","");continue}}if(l>0&&l<=1114111&&Number.isInteger(l)){if(i&&l===+n){const e=getEncoding(i);if(e&&(o=e[n])){a[n]=String.fromCharCode(s[o]);continue}}a[n]=String.fromCodePoint(l)}}return a}async buildToUnicode(e){e.hasIncludedToUnicodeMap=e.toUnicode?.length>0;if(e.hasIncludedToUnicodeMap){!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e));return e.toUnicode}if(!e.composite)return new ToUnicodeMap(this._simpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof IdentityCMap)||"Adobe"===e.cidSystemInfo?.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const{registry:t,ordering:a}=e.cidSystemInfo,r=Name.get(`${t}-${a}-UCS2`),i=await CMapFactory.create({encoding:r,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),n=[],s=[];e.cMap.forEach((function(e,t){if(t>65535)throw new FormatError("Max size of CID is 65,535");const a=i.lookup(t);if(a){s.length=0;for(let e=0,t=a.length;e<t;e+=2)s.push((a.charCodeAt(e)<<8)+a.charCodeAt(e+1));n[e]=String.fromCharCode(...s)}}));return new ToUnicodeMap(n)}return new IdentityToUnicodeMap(e.firstChar,e.lastChar)}async readToUnicode(e){if(!e)return null;if(e instanceof Name){const t=await CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return t instanceof IdentityCMap?new IdentityToUnicodeMap(0,65535):new ToUnicodeMap(t.getMap())}if(e instanceof BaseStream)try{const t=await CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(t instanceof IdentityCMap)return new IdentityToUnicodeMap(0,65535);const a=new Array(t.length);t.forEach((function(e,t){if("number"==typeof t){a[e]=String.fromCodePoint(t);return}t.length%2!=0&&(t="\\0"+t);const r=[];for(let e=0;e<t.length;e+=2){const a=t.charCodeAt(e)<<8|t.charCodeAt(e+1);if(55296!=(63488&a)){r.push(a);continue}e+=2;const i=t.charCodeAt(e)<<8|t.charCodeAt(e+1);r.push(((1023&a)<<10)+(1023&i)+65536)}a[e]=String.fromCodePoint(...r)}));return new ToUnicodeMap(a)}catch(e){if(e instanceof AbortException)return null;if(this.options.ignoreErrors){warn(`readToUnicode - ignoring ToUnicode data: "${e}".`);return null}throw e}return null}readCidToGidMap(e,t){const a=[];for(let r=0,i=e.length;r<i;r++){const i=e[r++]<<8|e[r],n=r>>1;(0!==i||t.has(n))&&(a[n]=i)}return a}extractWidths(e,t,a){const r=this.xref;let i=[],n=0;const s=[];let o;if(a.composite){const t=e.get("DW");n="number"==typeof t?Math.ceil(t):1e3;const c=e.get("W");if(Array.isArray(c))for(let e=0,t=c.length;e<t;e++){let t=r.fetchIfRef(c[e++]);if(!Number.isInteger(t))break;const a=r.fetchIfRef(c[e]);if(Array.isArray(a))for(const e of a){const a=r.fetchIfRef(e);"number"==typeof a&&(i[t]=a);t++}else{if(!Number.isInteger(a))break;{const n=r.fetchIfRef(c[++e]);if("number"!=typeof n)continue;for(let e=t;e<=a;e++)i[e]=n}}}if(a.vertical){const t=e.getArray("DW2");let a=isNumberArray(t,2)?t:[880,-1e3];o=[a[1],.5*n,a[0]];a=e.get("W2");if(Array.isArray(a))for(let e=0,t=a.length;e<t;e++){let t=r.fetchIfRef(a[e++]);if(!Number.isInteger(t))break;const i=r.fetchIfRef(a[e]);if(Array.isArray(i))for(let e=0,a=i.length;e<a;e++){const a=[r.fetchIfRef(i[e++]),r.fetchIfRef(i[e++]),r.fetchIfRef(i[e])];isNumberArray(a,null)&&(s[t]=a);t++}else{if(!Number.isInteger(i))break;{const n=[r.fetchIfRef(a[++e]),r.fetchIfRef(a[++e]),r.fetchIfRef(a[++e])];if(!isNumberArray(n,null))continue;for(let e=t;e<=i;e++)s[e]=n}}}}}else{const s=e.get("Widths");if(Array.isArray(s)){let e=a.firstChar;for(const t of s){const a=r.fetchIfRef(t);"number"==typeof a&&(i[e]=a);e++}const o=t.get("MissingWidth");n="number"==typeof o?o:0}else{const t=e.get("BaseFont");if(t instanceof Name){const e=this.getBaseFontMetrics(t.name);i=this.buildCharCodeToWidth(e.widths,a);n=e.defaultWidth}}}let c=!0,l=n;for(const e in i){const t=i[e];if(t)if(l){if(l!==t){c=!1;break}}else l=t}c?a.flags|=Nr:a.flags&=~Nr;a.defaultWidth=n;a.widths=i;a.defaultVMetrics=o;a.vmetrics=s}isSerifFont(e){const t=e.split("-",1)[0];return t in Qr()||/serif/gi.test(t)}getBaseFontMetrics(e){let t=0,a=Object.create(null),r=!1;let i=Jr()[e]||e;const n=ii();i in n||(i=this.isSerifFont(e)?"Times-Roman":"Helvetica");const s=n[i];if("number"==typeof s){t=s;r=!0}else a=s();return{defaultWidth:t,monospace:r,widths:a}}buildCharCodeToWidth(e,t){const a=Object.create(null),r=t.differences,i=t.defaultEncoding;for(let t=0;t<256;t++)t in r&&e[r[t]]?a[t]=e[r[t]]:t in i&&e[i[t]]&&(a[t]=e[i[t]]);return a}preEvaluateFont(e){const t=e;let a=e.get("Subtype");if(!(a instanceof Name))throw new FormatError("invalid font Subtype");let r,i=!1;if("Type0"===a.name){const t=e.get("DescendantFonts");if(!t)throw new FormatError("Descendant fonts are not specified");if(!((e=Array.isArray(t)?this.xref.fetchIfRef(t[0]):t)instanceof Dict))throw new FormatError("Descendant font is not a dictionary.");a=e.get("Subtype");if(!(a instanceof Name))throw new FormatError("invalid font Subtype");i=!0}let n=e.get("FirstChar");Number.isInteger(n)||(n=0);let s=e.get("LastChar");Number.isInteger(s)||(s=i?65535:255);const o=e.get("FontDescriptor"),c=e.get("ToUnicode")||t.get("ToUnicode");if(o){r=new MurmurHash3_64;const a=t.getRaw("Encoding");if(a instanceof Name)r.update(a.name);else if(a instanceof Ref)r.update(a.toString());else if(a instanceof Dict)for(const e of a.getRawValues())if(e instanceof Name)r.update(e.name);else if(e instanceof Ref)r.update(e.toString());else if(Array.isArray(e)){const t=e.length,a=new Array(t);for(let r=0;r<t;r++){const t=e[r];t instanceof Name?a[r]=t.name:("number"==typeof t||t instanceof Ref)&&(a[r]=t.toString())}r.update(a.join())}r.update(`${n}-${s}`);if(c instanceof BaseStream){const e=c.str||c,t=e.buffer?new Uint8Array(e.buffer.buffer,0,e.bufferLength):new Uint8Array(e.bytes.buffer,e.start,e.end-e.start);r.update(t)}else c instanceof Name&&r.update(c.name);const o=e.get("Widths")||t.get("Widths");if(Array.isArray(o)){const e=[];for(const t of o)("number"==typeof t||t instanceof Ref)&&e.push(t.toString());r.update(e.join())}if(i){r.update("compositeFont");const a=e.get("W")||t.get("W");if(Array.isArray(a)){const e=[];for(const t of a)if("number"==typeof t||t instanceof Ref)e.push(t.toString());else if(Array.isArray(t)){const a=[];for(const e of t)("number"==typeof e||e instanceof Ref)&&a.push(e.toString());e.push(`[${a.join()}]`)}r.update(e.join())}const i=e.getRaw("CIDToGIDMap")||t.getRaw("CIDToGIDMap");i instanceof Name?r.update(i.name):i instanceof Ref?r.update(i.toString()):i instanceof BaseStream&&r.update(i.peekBytes())}}return{descriptor:o,dict:e,baseDict:t,composite:i,type:a.name,firstChar:n,lastChar:s,toUnicode:c,hash:r?r.hexdigest():""}}async translateFont({descriptor:e,dict:a,baseDict:r,composite:i,type:n,firstChar:s,lastChar:o,toUnicode:c,cssFontInfo:l}){const h="Type3"===n;if(!e){if(!h){let e=a.get("BaseFont");if(!(e instanceof Name))throw new FormatError("Base font is not specified");e=e.name.replaceAll(/[,_]/g,"-");const t=this.getBaseFontMetrics(e),i=e.split("-",1)[0],l=(this.isSerifFont(i)?Er:0)|(t.monospace?Nr:0)|(ei()[i]?Pr:Lr),u={type:n,name:e,loadedName:r.loadedName,systemFontInfo:null,widths:t.widths,defaultWidth:t.defaultWidth,isSimulatedFlags:!0,flags:l,firstChar:s,lastChar:o,toUnicode:c,xHeight:0,capHeight:0,italicAngle:0,isType3Font:h},d=a.get("Widths"),f=getStandardFontName(e);let g=null;if(f){g=await this.fetchStandardFontData(f);u.isInternalFont=!!g}!u.isInternalFont&&this.options.useSystemFonts&&(u.systemFontInfo=getFontSubstitution(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,e,f,n));const p=await this.extractDataStructures(a,u);if(Array.isArray(d)){const e=[];let t=s;for(const a of d){const r=this.xref.fetchIfRef(a);"number"==typeof r&&(e[t]=r);t++}p.widths=e}else p.widths=this.buildCharCodeToWidth(t.widths,p);return new Font(e,g,p,this.options)}e=Dict.empty}let u=e.get("FontName"),d=a.get("BaseFont");"string"==typeof u&&(u=Name.get(u));"string"==typeof d&&(d=Name.get(d));const f=u?.name,g=d?.name;if(h)f||(u=Name.get(n));else if(f!==g){info(`The FontDescriptor\'s FontName is "${f}" but should be the same as the Font\'s BaseFont "${g}".`);f&&g&&(g.startsWith(f)||!isKnownFontName(f)&&isKnownFontName(g))&&(u=null);u||=d}if(!(u instanceof Name))throw new FormatError("invalid font name");let p,m,b,y,w;try{p=e.get("FontFile","FontFile2","FontFile3");if(p){if(!(p instanceof BaseStream))throw new FormatError("FontFile should be a stream");if(p.isEmpty)throw new FormatError("FontFile is empty")}}catch(e){if(!this.options.ignoreErrors)throw e;warn(`translateFont - fetching "${u.name}" font file: "${e}".`);p=null}let x=!1,S=null,k=null;if(p){if(p.dict){const e=p.dict.get("Subtype");e instanceof Name&&(m=e.name);b=p.dict.get("Length1");y=p.dict.get("Length2");w=p.dict.get("Length3")}}else if(l){const e=getXfaFontName(u.name);if(e){l.fontFamily=`${l.fontFamily}-PdfJS-XFA`;l.metrics=e.metrics||null;S=e.factors||null;p=await this.fetchStandardFontData(e.name);x=!!p;r=a=getXfaFontDict(u.name);i=!0}}else if(!h){const e=getStandardFontName(u.name);if(e){p=await this.fetchStandardFontData(e);x=!!p}!x&&this.options.useSystemFonts&&(k=getFontSubstitution(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,u.name,e,n))}const C=lookupMatrix(a.getArray("FontMatrix"),t),v=lookupNormalRect(e.getArray("FontBBox")||a.getArray("FontBBox"),h?[0,0,0,0]:void 0);let F=e.get("Ascent");"number"!=typeof F&&(F=void 0);let T=e.get("Descent");"number"!=typeof T&&(T=void 0);let O=e.get("XHeight");"number"!=typeof O&&(O=0);let M=e.get("CapHeight");"number"!=typeof M&&(M=0);let D=e.get("Flags");Number.isInteger(D)||(D=0);let R=e.get("ItalicAngle");"number"!=typeof R&&(R=0);const N={type:n,name:u.name,subtype:m,file:p,length1:b,length2:y,length3:w,isInternalFont:x,loadedName:r.loadedName,composite:i,fixedPitch:!1,fontMatrix:C,firstChar:s,lastChar:o,toUnicode:c,bbox:v,ascent:F,descent:T,xHeight:O,capHeight:M,flags:D,italicAngle:R,isType3Font:h,cssFontInfo:l,scaleFactors:S,systemFontInfo:k};if(i){const e=r.get("Encoding");e instanceof Name&&(N.cidEncoding=e.name);const t=await CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});N.cMap=t;N.vertical=N.cMap.vertical}const E=await this.extractDataStructures(a,N);this.extractWidths(a,e,E);return new Font(u.name,p,E,this.options)}static buildFontPaths(e,t,a,r){function buildPath(t){const i=`${e.loadedName}_path_${t}`;try{if(e.renderer.hasBuiltPath(t))return;a.send("commonobj",[i,"FontPath",e.renderer.getPathJs(t)])}catch(e){if(r.ignoreErrors){warn(`buildFontPaths - ignoring ${i} glyph: "${e}".`);return}throw e}}for(const e of t){buildPath(e.fontChar);const t=e.accent;t?.fontChar&&buildPath(t.fontChar)}}static get fallbackFontDict(){const e=new Dict;e.set("BaseFont",Name.get("Helvetica"));e.set("Type",Name.get("FallbackType"));e.set("Subtype",Name.get("FallbackType"));e.set("Encoding",Name.get("WinAnsiEncoding"));return shadow(this,"fallbackFontDict",e)}}class TranslatedFont{#G=!1;#V=null;constructor({loadedName:e,font:t,dict:a}){this.loadedName=e;this.font=t;this.dict=a;this.type3Dependencies=t.isType3Font?new Set:null}send(e){if(!this.#G){this.#G=!0;e.send("commonobj",[this.loadedName,"Font",this.font.exportData()])}}fallback(e,t){if(this.font.data){this.font.disableFontFace=!0;PartialEvaluator.buildFontPaths(this.font,this.font.glyphCacheValues,e,t)}}loadType3Data(e,t,a){if(this.#V)return this.#V;const{font:r,type3Dependencies:i}=this;assert(r.isType3Font,"Must be a Type3 font.");const n=e.clone({ignoreErrors:!1}),s=new RefSet(e.type3FontRefs);this.dict.objId&&!s.has(this.dict.objId)&&s.put(this.dict.objId);n.type3FontRefs=s;let o=Promise.resolve();const c=this.dict.get("CharProcs"),l=this.dict.get("Resources")||t,h=Object.create(null),[u,d,f,g]=r.bbox,p=f-u,m=g-d,b=Math.hypot(p,m);for(const e of c.getKeys())o=o.then((()=>{const t=c.get(e),r=new OperatorList;return n.getOperatorList({stream:t,task:a,resources:l,operatorList:r}).then((()=>{switch(r.fnArray[0]){case bt:this.#K(r,b);break;case mt:b||this.#J(r)}h[e]=r.getIR();for(const e of r.dependencies)i.add(e)})).catch((function(t){warn(`Type3 font resource "${e}" is not available.`);const a=new OperatorList;h[e]=a.getIR()}))}));this.#V=o.then((()=>{r.charProcOperatorList=h;if(this._bbox){r.isCharBBox=!0;r.bbox=this._bbox}}));return this.#V}#K(e,t=NaN){const a=Util.normalizeRect(e.argsArray[0].slice(2)),r=a[2]-a[0],i=a[3]-a[1],n=Math.hypot(r,i);if(0===r||0===i){e.fnArray.splice(0,1);e.argsArray.splice(0,1)}else if(0===t||Math.round(n/t)>=10){this._bbox??=[1/0,1/0,-1/0,-1/0];Util.rectBoundingBox(...a,this._bbox)}let s=0,o=e.length;for(;s<o;){switch(e.fnArray[s]){case bt:break;case yt:case wt:case xt:case St:case At:case kt:case Ct:case vt:case Ft:case It:case Tt:case Ot:case Mt:case Oe:e.fnArray.splice(s,1);e.argsArray.splice(s,1);o--;continue;case De:const[t]=e.argsArray[s];let a=0,r=t.length;for(;a<r;){const[e]=t[a];switch(e){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":t.splice(a,1);r--;continue}a++}}s++}}#J(e){let t=1;const a=e.length;for(;t<a;){if(e.fnArray[t]===aa){const a=e.argsArray[t][2];this._bbox??=[1/0,1/0,-1/0,-1/0];Util.rectBoundingBox(...a,this._bbox)}t++}}}class StateManager{constructor(e=new EvalState){this.state=e;this.stateStack=[]}save(){const e=this.state;this.stateStack.push(this.state);this.state=e.clone()}restore(){const e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=Util.transform(this.state.ctm,e)}}class TextState{constructor(){this.ctm=new Float32Array(Fa);this.fontName=null;this.fontSize=0;this.loadedName=null;this.font=null;this.fontMatrix=t;this.textMatrix=Fa.slice();this.textLineMatrix=Fa.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}setTextMatrix(e,t,a,r,i,n){const s=this.textMatrix;s[0]=e;s[1]=t;s[2]=a;s[3]=r;s[4]=i;s[5]=n}setTextLineMatrix(e,t,a,r,i,n){const s=this.textLineMatrix;s[0]=e;s[1]=t;s[2]=a;s[3]=r;s[4]=i;s[5]=n}translateTextMatrix(e,t){const a=this.textMatrix;a[4]=a[0]*e+a[2]*t+a[4];a[5]=a[1]*e+a[3]*t+a[5]}translateTextLineMatrix(e,t){const a=this.textLineMatrix;a[4]=a[0]*e+a[2]*t+a[4];a[5]=a[1]*e+a[3]*t+a[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading);this.textMatrix=this.textLineMatrix.slice()}clone(){const e=Object.create(this);e.textMatrix=this.textMatrix.slice();e.textLineMatrix=this.textLineMatrix.slice();e.fontMatrix=this.fontMatrix.slice();return e}}class EvalState{constructor(){this.ctm=new Float32Array(Fa);this.font=null;this.textRenderingMode=x;this._fillColorSpace=this._strokeColorSpace=ColorSpaceUtils.gray;this.patternFillColorSpace=null;this.patternStrokeColorSpace=null;this.currentPointX=this.currentPointY=0;this.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0]);this.pathBuffer=[]}get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(e){this._fillColorSpace=this.patternFillColorSpace=e}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(e){this._strokeColorSpace=this.patternStrokeColorSpace=e}clone({newPath:e=!1}={}){const t=Object.create(this);if(e){t.pathBuffer=[];t.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0])}return t}}class EvaluatorPreprocessor{static get opMap(){return shadow(this,"opMap",Object.assign(Object.create(null),{w:{id:Ce,numArgs:1,variableArgs:!1},J:{id:ve,numArgs:1,variableArgs:!1},j:{id:Fe,numArgs:1,variableArgs:!1},M:{id:Ie,numArgs:1,variableArgs:!1},d:{id:Te,numArgs:2,variableArgs:!1},ri:{id:Oe,numArgs:1,variableArgs:!1},i:{id:Me,numArgs:1,variableArgs:!1},gs:{id:De,numArgs:1,variableArgs:!1},q:{id:Be,numArgs:0,variableArgs:!1},Q:{id:Re,numArgs:0,variableArgs:!1},cm:{id:Ne,numArgs:6,variableArgs:!1},m:{id:Ee,numArgs:2,variableArgs:!1},l:{id:Pe,numArgs:2,variableArgs:!1},c:{id:Le,numArgs:6,variableArgs:!1},v:{id:je,numArgs:4,variableArgs:!1},y:{id:_e,numArgs:4,variableArgs:!1},h:{id:Ue,numArgs:0,variableArgs:!1},re:{id:Xe,numArgs:4,variableArgs:!1},S:{id:qe,numArgs:0,variableArgs:!1},s:{id:He,numArgs:0,variableArgs:!1},f:{id:We,numArgs:0,variableArgs:!1},F:{id:We,numArgs:0,variableArgs:!1},"f*":{id:ze,numArgs:0,variableArgs:!1},B:{id:$e,numArgs:0,variableArgs:!1},"B*":{id:Ge,numArgs:0,variableArgs:!1},b:{id:Ve,numArgs:0,variableArgs:!1},"b*":{id:Ke,numArgs:0,variableArgs:!1},n:{id:Je,numArgs:0,variableArgs:!1},W:{id:Ye,numArgs:0,variableArgs:!1},"W*":{id:Ze,numArgs:0,variableArgs:!1},BT:{id:Qe,numArgs:0,variableArgs:!1},ET:{id:et,numArgs:0,variableArgs:!1},Tc:{id:tt,numArgs:1,variableArgs:!1},Tw:{id:at,numArgs:1,variableArgs:!1},Tz:{id:rt,numArgs:1,variableArgs:!1},TL:{id:it,numArgs:1,variableArgs:!1},Tf:{id:nt,numArgs:2,variableArgs:!1},Tr:{id:st,numArgs:1,variableArgs:!1},Ts:{id:ot,numArgs:1,variableArgs:!1},Td:{id:ct,numArgs:2,variableArgs:!1},TD:{id:lt,numArgs:2,variableArgs:!1},Tm:{id:ht,numArgs:6,variableArgs:!1},"T*":{id:ut,numArgs:0,variableArgs:!1},Tj:{id:dt,numArgs:1,variableArgs:!1},TJ:{id:ft,numArgs:1,variableArgs:!1},"\'":{id:gt,numArgs:1,variableArgs:!1},\'"\':{id:pt,numArgs:3,variableArgs:!1},d0:{id:mt,numArgs:2,variableArgs:!1},d1:{id:bt,numArgs:6,variableArgs:!1},CS:{id:yt,numArgs:1,variableArgs:!1},cs:{id:wt,numArgs:1,variableArgs:!1},SC:{id:xt,numArgs:4,variableArgs:!0},SCN:{id:St,numArgs:33,variableArgs:!0},sc:{id:At,numArgs:4,variableArgs:!0},scn:{id:kt,numArgs:33,variableArgs:!0},G:{id:Ct,numArgs:1,variableArgs:!1},g:{id:vt,numArgs:1,variableArgs:!1},RG:{id:Ft,numArgs:3,variableArgs:!1},rg:{id:It,numArgs:3,variableArgs:!1},K:{id:Tt,numArgs:4,variableArgs:!1},k:{id:Ot,numArgs:4,variableArgs:!1},sh:{id:Mt,numArgs:1,variableArgs:!1},BI:{id:Dt,numArgs:0,variableArgs:!1},ID:{id:Bt,numArgs:0,variableArgs:!1},EI:{id:Rt,numArgs:1,variableArgs:!1},Do:{id:Nt,numArgs:1,variableArgs:!1},MP:{id:Et,numArgs:1,variableArgs:!1},DP:{id:Pt,numArgs:2,variableArgs:!1},BMC:{id:Lt,numArgs:1,variableArgs:!1},BDC:{id:jt,numArgs:2,variableArgs:!1},EMC:{id:_t,numArgs:0,variableArgs:!1},BX:{id:Ut,numArgs:0,variableArgs:!1},EX:{id:Xt,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}static MAX_INVALID_PATH_OPS=10;constructor(e,t,a=new StateManager){this.parser=new Parser({lexer:new Lexer(e,EvaluatorPreprocessor.opMap),xref:t});this.stateManager=a;this.nonProcessedArgs=[];this._isPathOp=!1;this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(e){let t=e.args;for(;;){const a=this.parser.getObj();if(a instanceof Cmd){const r=a.cmd,i=EvaluatorPreprocessor.opMap[r];if(!i){warn(`Unknown command "${r}".`);continue}const n=i.id,s=i.numArgs;let o=null!==t?t.length:0;this._isPathOp||(this._numInvalidPathOPS=0);this._isPathOp=n>=Ee&&n<=Je;if(i.variableArgs)o>s&&info(`Command ${r}: expected [0, ${s}] args, but received ${o} args.`);else{if(o!==s){const e=this.nonProcessedArgs;for(;o>s;){e.push(t.shift());o--}for(;o<s&&0!==e.length;){null===t&&(t=[]);t.unshift(e.pop());o++}}if(o<s){const e=`command ${r}: expected ${s} args, but received ${o} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new FormatError(`Invalid ${e}`);warn(`Skipping ${e}`);null!==t&&(t.length=0);continue}}this.preprocessCommand(n,t);e.fn=n;e.args=t;return!0}if(a===wa)return!1;if(null!==a){null===t&&(t=[]);t.push(a);if(t.length>33)throw new FormatError("Too many arguments")}}}preprocessCommand(e,t){switch(0|e){case Be:this.stateManager.save();break;case Re:this.stateManager.restore();break;case Ne:this.stateManager.transform(t)}}}class DefaultAppearanceEvaluator extends EvaluatorPreprocessor{constructor(e){super(new StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;;){e.args.length=0;if(!this.read(e))break;if(0!==this.savedStatesDepth)continue;const{fn:a,args:r}=e;switch(0|a){case nt:const[e,a]=r;e instanceof Name&&(t.fontName=e.name);"number"==typeof a&&a>0&&(t.fontSize=a);break;case It:ColorSpaceUtils.rgb.getRgbItem(r,0,t.fontColor,0);break;case vt:ColorSpaceUtils.gray.getRgbItem(r,0,t.fontColor,0);break;case Ot:ColorSpaceUtils.cmyk.getRgbItem(r,0,t.fontColor,0)}}}catch(e){warn(`parseDefaultAppearance - ignoring errors: "${e}".`)}return t}}function parseDefaultAppearance(e){return new DefaultAppearanceEvaluator(e).parse()}class AppearanceStreamEvaluator extends EvaluatorPreprocessor{constructor(e,t,a,r){super(e);this.stream=e;this.evaluatorOptions=t;this.xref=a;this.globalColorSpaceCache=r;this.resources=e.dict?.get("Resources")}parse(){const e={fn:0,args:[]};let t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:ColorSpaceUtils.gray},a=!1;const r=[];try{for(;;){e.args.length=0;if(a||!this.read(e))break;const{fn:i,args:n}=e;switch(0|i){case Be:r.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case Re:t=r.pop()||t;break;case ht:t.scaleFactor*=Math.hypot(n[0],n[1]);break;case nt:const[e,i]=n;e instanceof Name&&(t.fontName=e.name);"number"==typeof i&&i>0&&(t.fontSize=i*t.scaleFactor);break;case wt:t.fillColorSpace=ColorSpaceUtils.parse({cs:n[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case At:t.fillColorSpace.getRgbItem(n,0,t.fontColor,0);break;case It:ColorSpaceUtils.rgb.getRgbItem(n,0,t.fontColor,0);break;case vt:ColorSpaceUtils.gray.getRgbItem(n,0,t.fontColor,0);break;case Ot:ColorSpaceUtils.cmyk.getRgbItem(n,0,t.fontColor,0);break;case dt:case ft:case gt:case pt:a=!0}}}catch(e){warn(`parseAppearanceStream - ignoring errors: "${e}".`)}this.stream.reset();delete t.scaleFactor;delete t.fillColorSpace;return t}get _localColorSpaceCache(){return shadow(this,"_localColorSpaceCache",new LocalColorSpaceCache)}get _pdfFunctionFactory(){return shadow(this,"_pdfFunctionFactory",new PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported}))}}function getPdfColor(e,t){if(e[0]===e[1]&&e[1]===e[2]){return`${numberToString(e[0]/255)} ${t?"g":"G"}`}return Array.from(e,(e=>numberToString(e/255))).join(" ")+" "+(t?"rg":"RG")}class FakeUnicodeFont{constructor(e,t){this.xref=e;this.widths=null;this.firstChar=1/0;this.lastChar=-1/0;this.fontFamily=t;const a=new OffscreenCanvas(1,1);this.ctxMeasure=a.getContext("2d",{willReadFrequently:!0});FakeUnicodeFont._fontNameId||(FakeUnicodeFont._fontNameId=1);this.fontName=Name.get(`InvalidPDFjsFont_${t}_${FakeUnicodeFont._fontNameId++}`)}get fontDescriptorRef(){if(!FakeUnicodeFont._fontDescriptorRef){const e=new Dict(this.xref);e.setIfName("Type","FontDescriptor");e.set("FontName",this.fontName);e.set("FontFamily","MyriadPro Regular");e.set("FontBBox",[0,0,0,0]);e.setIfName("FontStretch","Normal");e.set("FontWeight",400);e.set("ItalicAngle",0);FakeUnicodeFont._fontDescriptorRef=this.xref.getNewPersistentRef(e)}return FakeUnicodeFont._fontDescriptorRef}get descendantFontRef(){const e=new Dict(this.xref);e.set("BaseFont",this.fontName);e.setIfName("Type","Font");e.setIfName("Subtype","CIDFontType0");e.setIfName("CIDToGIDMap","Identity");e.set("FirstChar",this.firstChar);e.set("LastChar",this.lastChar);e.set("FontDescriptor",this.fontDescriptorRef);e.set("DW",1e3);const t=[],a=[...this.widths.entries()].sort();let r=null,i=null;for(const[e,n]of a)if(r)if(e===r+i.length)i.push(n);else{t.push(r,i);r=e;i=[n]}else{r=e;i=[n]}r&&t.push(r,i);e.set("W",t);const n=new Dict(this.xref);n.set("Ordering","Identity");n.set("Registry","Adobe");n.set("Supplement",0);e.set("CIDSystemInfo",n);return this.xref.getNewPersistentRef(e)}get baseFontRef(){const e=new Dict(this.xref);e.set("BaseFont",this.fontName);e.setIfName("Type","Font");e.setIfName("Subtype","Type0");e.setIfName("Encoding","Identity-H");e.set("DescendantFonts",[this.descendantFontRef]);e.setIfName("ToUnicode","Identity-H");return this.xref.getNewPersistentRef(e)}get resources(){const e=new Dict(this.xref),t=new Dict(this.xref);t.set(this.fontName.name,this.baseFontRef);e.set("Font",t);return e}_createContext(){this.widths=new Map;this.ctxMeasure.font=`1000px ${this.fontFamily}`;return this.ctxMeasure}createFontResources(e){const t=this._createContext();for(const a of e.split(/\\r\\n?|\\n/))for(const e of a.split("")){const a=e.charCodeAt(0);if(this.widths.has(a))continue;const r=t.measureText(e),i=Math.ceil(r.width);this.widths.set(a,i);this.firstChar=Math.min(a,this.firstChar);this.lastChar=Math.max(a,this.lastChar)}return this.resources}static getFirstPositionInfo(e,t,i){const[n,s,o,c]=e;let l=o-n,h=c-s;t%180!=0&&([l,h]=[h,l]);const u=a*i;return{coords:[0,h+r*i-u],bbox:[0,0,l,h],matrix:0!==t?getRotationMatrix(t,h,u):void 0}}createAppearance(e,t,i,n,s,o){const c=this._createContext(),l=[];let h=-1/0;for(const t of e.split(/\\r\\n?|\\n/)){l.push(t);const e=c.measureText(t).width;h=Math.max(h,e);for(const e of codePointIter(t)){const t=String.fromCodePoint(e);let a=this.widths.get(e);if(void 0===a){const r=c.measureText(t);a=Math.ceil(r.width);this.widths.set(e,a);this.firstChar=Math.min(e,this.firstChar);this.lastChar=Math.max(e,this.lastChar)}}}h*=n/1e3;const[u,d,f,g]=t;let p=f-u,m=g-d;i%180!=0&&([p,m]=[m,p]);let b=1;h>p&&(b=p/h);let y=1;const w=a*n,x=r*n,S=w*l.length;S>m&&(y=m/S);const k=n*Math.min(b,y),C=["q",`0 0 ${numberToString(p)} ${numberToString(m)} re W n`,"BT",`1 0 0 1 0 ${numberToString(m+x)} Tm 0 Tc ${getPdfColor(s,!0)}`,`/${this.fontName.name} ${numberToString(k)} Tf`],{resources:v}=this;if(1!==(o="number"==typeof o&&o>=0&&o<=1?o:1)){C.push("/R0 gs");const e=new Dict(this.xref),t=new Dict(this.xref);t.set("ca",o);t.set("CA",o);t.setIfName("Type","ExtGState");e.set("R0",t);v.set("ExtGState",e)}const F=numberToString(w);for(const e of l)C.push(`0 -${F} Td <${stringToUTF16HexString(e)}> Tj`);C.push("ET","Q");const T=C.join("\\n"),O=new Dict(this.xref);O.setIfName("Subtype","Form");O.setIfName("Type","XObject");O.set("BBox",[0,0,p,m]);O.set("Length",T.length);O.set("Resources",v);if(i){const e=getRotationMatrix(i,p,m);O.set("Matrix",e)}const M=new StringStream(T);M.dict=O;return M}}const Pn=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],Ln=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];class NameOrNumberTree{constructor(e,t,a){this.root=e;this.xref=t;this._type=a}getAll(){const e=new Map;if(!this.root)return e;const t=this.xref,a=new RefSet;a.put(this.root);const r=[this.root];for(;r.length>0;){const i=t.fetchIfRef(r.shift());if(!(i instanceof Dict))continue;if(i.has("Kids")){const e=i.get("Kids");if(!Array.isArray(e))continue;for(const t of e){if(a.has(t))throw new FormatError(`Duplicate entry in "${this._type}" tree.`);r.push(t);a.put(t)}continue}const n=i.get(this._type);if(Array.isArray(n))for(let a=0,r=n.length;a<r;a+=2)e.set(t.fetchIfRef(n[a]),t.fetchIfRef(n[a+1]))}return e}getRaw(e){if(!this.root)return null;const t=this.xref;let a=t.fetchIfRef(this.root),r=0;for(;a.has("Kids");){if(++r>10){warn(`Search depth limit reached for "${this._type}" tree.`);return null}const i=a.get("Kids");if(!Array.isArray(i))return null;let n=0,s=i.length-1;for(;n<=s;){const r=n+s>>1,o=t.fetchIfRef(i[r]),c=o.get("Limits");if(e<t.fetchIfRef(c[0]))s=r-1;else{if(!(e>t.fetchIfRef(c[1]))){a=o;break}n=r+1}}if(n>s)return null}const i=a.get(this._type);if(Array.isArray(i)){let a=0,r=i.length-2;for(;a<=r;){const n=a+r>>1,s=n+(1&n),o=t.fetchIfRef(i[s]);if(e<o)r=s-2;else{if(!(e>o))return i[s+1];a=s+2}}}return null}get(e){return this.xref.fetchIfRef(this.getRaw(e))}}class NameTree extends NameOrNumberTree{constructor(e,t){super(e,t,"Names")}}class NumberTree extends NameOrNumberTree{constructor(e,t){super(e,t,"Nums")}}function clearGlobalCaches(){!function clearPatternCaches(){Ii=Object.create(null)}();!function clearPrimitiveCaches(){xa=Object.create(null);Sa=Object.create(null);Aa=Object.create(null)}();!function clearUnicodeCaches(){Dr.clear()}();JpxImage.cleanup()}function pickPlatformItem(e){return e instanceof Dict?e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null:null}class FileSpec{#Y=!1;constructor(e,t,a=!1){if(e instanceof Dict){this.xref=t;this.root=e;e.has("FS")&&(this.fs=e.get("FS"));e.has("RF")&&warn("Related file specifications are not supported");a||(e.has("EF")?this.#Y=!0:warn("Non-embedded file specifications are not supported"))}}get filename(){let e="";const t=pickPlatformItem(this.root);t&&"string"==typeof t&&(e=stringToPDFString(t,!0).replaceAll("\\\\\\\\","\\\\").replaceAll("\\\\/","/").replaceAll("\\\\","/"));return shadow(this,"filename",e||"unnamed")}get content(){if(!this.#Y)return null;this._contentRef||=pickPlatformItem(this.root?.get("EF"));let e=null;if(this._contentRef){const t=this.xref.fetchIfRef(this._contentRef);t instanceof BaseStream?e=t.getBytes():warn("Embedded file specification points to non-existing/invalid content")}else warn("Embedded file specification does not have any content");return e}get description(){let e="";const t=this.root?.get("Desc");t&&"string"==typeof t&&(e=stringToPDFString(t));return shadow(this,"description",e)}get serializable(){return{rawFilename:this.filename,filename:(e=this.filename,e.substring(e.lastIndexOf("/")+1)),content:this.content,description:this.description};var e}}const jn=0,_n=-2,Un=-3,Xn=-4,qn=-5,Hn=-6,Wn=-9;function isWhitespace(e,t){const a=e[t];return" "===a||"\\n"===a||"\\r"===a||"\\t"===a}class XMLParserBase{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,((e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return\'"\';case"apos":return"\'"}return this.onResolveEntity(t)}))}_parseContent(e,t){const a=[];let r=t;function skipWs(){for(;r<e.length&&isWhitespace(e,r);)++r}for(;r<e.length&&!isWhitespace(e,r)&&">"!==e[r]&&"/"!==e[r];)++r;const i=e.substring(t,r);skipWs();for(;r<e.length&&">"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){skipWs();let t="",i="";for(;r<e.length&&!isWhitespace(e,r)&&"="!==e[r];){t+=e[r];++r}skipWs();if("="!==e[r])return null;++r;skipWs();const n=e[r];if(\'"\'!==n&&"\'"!==n)return null;const s=e.indexOf(n,++r);if(s<0)return null;i=e.substring(r,s);a.push({name:t,value:this._resolveEntities(i)});r=s+1;skipWs()}return{name:i,attributes:a,parsed:r-t}}_parseProcessingInstruction(e,t){let a=t;for(;a<e.length&&!isWhitespace(e,a)&&">"!==e[a]&&"?"!==e[a]&&"/"!==e[a];)++a;const r=e.substring(t,a);!function skipWs(){for(;a<e.length&&isWhitespace(e,a);)++a}();const i=a;for(;a<e.length&&("?"!==e[a]||">"!==e[a+1]);)++a;return{name:r,value:e.substring(i,a),parsed:a-t}}parseXml(e){let t=0;for(;t<e.length;){let a=t;if("<"===e[t]){++a;let t;switch(e[a]){case"/":++a;t=e.indexOf(">",a);if(t<0){this.onError(Wn);return}this.onEndElement(e.substring(a,t));a=t+1;break;case"?":++a;const r=this._parseProcessingInstruction(e,a);if("?>"!==e.substring(a+r.parsed,a+r.parsed+2)){this.onError(Un);return}this.onPi(r.name,r.value);a+=r.parsed+2;break;case"!":if("--"===e.substring(a+1,a+3)){t=e.indexOf("--\\x3e",a+3);if(t<0){this.onError(qn);return}this.onComment(e.substring(a+3,t));a=t+3}else if("[CDATA["===e.substring(a+1,a+8)){t=e.indexOf("]]>",a+8);if(t<0){this.onError(_n);return}this.onCdata(e.substring(a+8,t));a=t+3}else{if("DOCTYPE"!==e.substring(a+1,a+8)){this.onError(Hn);return}{const r=e.indexOf("[",a+8);let i=!1;t=e.indexOf(">",a+8);if(t<0){this.onError(Xn);return}if(r>0&&t>r){t=e.indexOf("]>",a+8);if(t<0){this.onError(Xn);return}i=!0}const n=e.substring(a+8,t+(i?1:0));this.onDoctype(n);a=t+(i?2:1)}}break;default:const i=this._parseContent(e,a);if(null===i){this.onError(Hn);return}let n=!1;if("/>"===e.substring(a+i.parsed,a+i.parsed+2))n=!0;else if(">"!==e.substring(a+i.parsed,a+i.parsed+1)){this.onError(Wn);return}this.onBeginElement(i.name,i.attributes,n);a+=i.parsed+(n?2:1)}}else{for(;a<e.length&&"<"!==e[a];)a++;const r=e.substring(t,a);this.onText(this._resolveEntities(r))}t=a}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,a){}onEndElement(e){}onError(e){}}class SimpleDOMNode{constructor(e,t){this.nodeName=e;this.nodeValue=t;Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){const e=this.parentNode.childNodes;if(!e)return;const t=e.indexOf(this);return-1!==t?e[t+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map((e=>e.textContent)).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(e,t){if(t>=e.length)return this;const a=e[t];if(a.name.startsWith("#")&&t<e.length-1)return this.searchNode(e,t+1);const r=[];let i=this;for(;;){if(a.name===i.nodeName){if(0!==a.pos){if(0===r.length)return null;{const[n]=r.pop();let s=0;for(const r of n.childNodes)if(a.name===r.nodeName){if(s===a.pos)return r.searchNode(e,t+1);s++}return i.searchNode(e,t+1)}}{const a=i.searchNode(e,t+1);if(null!==a)return a}}if(i.childNodes?.length>0){r.push([i,0]);i=i.childNodes[0]}else{if(0===r.length)return null;for(;0!==r.length;){const[e,t]=r.pop(),a=t+1;if(a<e.childNodes.length){r.push([e,a]);i=e.childNodes[a];break}}if(0===r.length)return null}}}dump(e){if("#text"!==this.nodeName){e.push(`<${this.nodeName}`);if(this.attributes)for(const t of this.attributes)e.push(` ${t.name}="${encodeToXmlString(t.value)}"`);if(this.hasChildNodes()){e.push(">");for(const t of this.childNodes)t.dump(e);e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${encodeToXmlString(this.nodeValue)}</${this.nodeName}>`):e.push("/>")}else e.push(encodeToXmlString(this.nodeValue))}}class SimpleXMLParser extends XMLParserBase{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super();this._currentFragment=null;this._stack=null;this._errorCode=jn;this._hasAttributes=e;this._lowerCaseName=t}parseFromString(e){this._currentFragment=[];this._stack=[];this._errorCode=jn;this.parseXml(e);if(this._errorCode!==jn)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function isWhitespaceString(e){for(let t=0,a=e.length;t<a;t++)if(!isWhitespace(e,t))return!1;return!0}(e))return;const t=new SimpleDOMNode("#text",e);this._currentFragment.push(t)}onCdata(e){const t=new SimpleDOMNode("#text",e);this._currentFragment.push(t)}onBeginElement(e,t,a){this._lowerCaseName&&(e=e.toLowerCase());const r=new SimpleDOMNode(e);r.childNodes=[];this._hasAttributes&&(r.attributes=t);this._currentFragment.push(r);if(!a){this._stack.push(this._currentFragment);this._currentFragment=r.childNodes}}onEndElement(e){this._currentFragment=this._stack.pop()||[];const t=this._currentFragment.at(-1);if(!t)return null;for(const e of t.childNodes)e.parentNode=t;return t}onError(e){this._errorCode=e}}class MetadataParser{constructor(e){e=this._repair(e);const t=new SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map;this._data=e;t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\\\376\\\\377([^<]+)/g,(function(e,t){const a=t.replaceAll(/\\\\([0-3])([0-7])([0-7])/g,(function(e,t,a,r){return String.fromCharCode(64*t+8*a+1*r)})).replaceAll(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"\'";case"gt":return">";case"lt":return"<";case"quot":return\'"\'}throw new Error(`_repair: ${t} isn\'t defined.`)})),r=[">"];for(let e=0,t=a.length;e<t;e+=2){const t=256*a.charCodeAt(e)+a.charCodeAt(e+1);t>=32&&t<127&&60!==t&&62!==t&&38!==t?r.push(String.fromCharCode(t)):r.push("&#x"+(65536+t).toString(16).substring(1)+";")}return r.join("")}))}_getSequence(e){const t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((e=>"rdf:li"===e.nodeName))}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,a=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,a.map((e=>e.textContent.trim())))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName){t=t.firstChild;for(;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling}if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const e of t.childNodes)if("rdf:description"===e.nodeName)for(const t of e.childNodes){const e=t.nodeName;switch(e){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(t);continue}this._metadataMap.set(e,t.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}const zn=1,$n=2,Gn=3,Vn=4,Kn=5;class StructTreeRoot{constructor(e,t,a){this.xref=e;this.dict=t;this.ref=a instanceof Ref?a:null;this.roleMap=new Map;this.structParentIds=null}init(){this.readRoleMap()}#Z(e,t,a){if(!(e instanceof Ref)||t<0)return;this.structParentIds||=new RefSetCache;let r=this.structParentIds.get(e);if(!r){r=[];this.structParentIds.put(e,r)}r.push([t,a])}addAnnotationIdToPage(e,t){this.#Z(e,t,Vn)}readRoleMap(){const e=this.dict.get("RoleMap");if(e instanceof Dict)for(const[t,a]of e)a instanceof Name&&this.roleMap.set(t,a.name)}static async canCreateStructureTree({catalogRef:e,pdfManager:t,newAnnotationsByPage:a}){if(!(e instanceof Ref)){warn("Cannot save the struct tree: no catalog reference.");return!1}let r=0,i=!0;for(const[e,n]of a){const{ref:a}=await t.getPage(e);if(!(a instanceof Ref)){warn(`Cannot save the struct tree: page ${e} has no ref.`);i=!0;break}for(const e of n)if(e.accessibilityData?.type){e.parentTreeId=r++;i=!1}}if(i){for(const e of a.values())for(const t of e)delete t.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:e,xref:t,catalogRef:a,pdfManager:r,changes:i}){const n=await r.ensureCatalog("cloneDict"),s=new RefSetCache;s.put(a,n);const o=t.getNewTemporaryRef();n.set("StructTreeRoot",o);const c=new Dict(t);c.set("Type",Name.get("StructTreeRoot"));const l=t.getNewTemporaryRef();c.set("ParentTree",l);const h=[];c.set("K",h);s.put(o,c);const u=new Dict(t),d=[];u.set("Nums",d);const f=await this.#Q({newAnnotationsByPage:e,structTreeRootRef:o,structTreeRoot:null,kids:h,nums:d,xref:t,pdfManager:r,changes:i,cache:s});c.set("ParentTreeNextKey",f);s.put(l,u);for(const[e,t]of s.items())i.put(e,{data:t})}async canUpdateStructTree({pdfManager:e,newAnnotationsByPage:t}){if(!this.ref){warn("Cannot update the struct tree: no root reference.");return!1}let a=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(a)||a<0){warn("Cannot update the struct tree: invalid next key.");return!1}const r=this.dict.get("ParentTree");if(!(r instanceof Dict)){warn("Cannot update the struct tree: ParentTree isn\'t a dict.");return!1}const i=r.get("Nums");if(!Array.isArray(i)){warn("Cannot update the struct tree: nums isn\'t an array.");return!1}const n=new NumberTree(r,this.xref);for(const a of t.keys()){const{pageDict:t}=await e.getPage(a);if(!t.has("StructParents"))continue;const r=t.get("StructParents");if(!Number.isInteger(r)||!Array.isArray(n.get(r))){warn(`Cannot save the struct tree: page ${a} has a wrong id.`);return!1}}let s=!0;for(const[r,i]of t){const{pageDict:t}=await e.getPage(r);StructTreeRoot.#ee({elements:i,xref:this.xref,pageDict:t,numberTree:n});for(const e of i)if(e.accessibilityData?.type){e.accessibilityData.structParent>=0||(e.parentTreeId=a++);s=!1}}if(s){for(const e of t.values())for(const t of e){delete t.parentTreeId;delete t.structTreeParent}return!1}return!0}async updateStructureTree({newAnnotationsByPage:e,pdfManager:t,changes:a}){const{ref:r,xref:i}=this,n=this.dict.clone(),s=new RefSetCache;s.put(r,n);let o,c=n.getRaw("ParentTree");if(c instanceof Ref)o=i.fetch(c);else{o=c;c=i.getNewTemporaryRef();n.set("ParentTree",c)}o=o.clone();s.put(c,o);let l=o.getRaw("Nums"),h=null;if(l instanceof Ref){h=l;l=i.fetch(h)}l=l.slice();h||o.set("Nums",l);const u=await StructTreeRoot.#Q({newAnnotationsByPage:e,structTreeRootRef:r,structTreeRoot:this,kids:null,nums:l,xref:i,pdfManager:t,changes:a,cache:s});if(-1!==u){n.set("ParentTreeNextKey",u);h&&s.put(h,l);for(const[e,t]of s.items())a.put(e,{data:t})}}static async#Q({newAnnotationsByPage:e,structTreeRootRef:t,structTreeRoot:a,kids:r,nums:i,xref:n,pdfManager:s,changes:o,cache:c}){const l=Name.get("OBJR");let h,u=-1;for(const[d,f]of e){const e=await s.getPage(d),{ref:g}=e,p=g instanceof Ref;for(const{accessibilityData:s,ref:m,parentTreeId:b,structTreeParent:y}of f){if(!s?.type)continue;const{structParent:f}=s;if(a&&Number.isInteger(f)&&f>=0){let t=(h||=new Map).get(d);if(void 0===t){t=new StructTreePage(a,e.pageDict).collectObjects(g);h.set(d,t)}const r=t?.get(f);if(r){const e=n.fetch(r).clone();StructTreeRoot.#te(e,s);o.put(r,{data:e});continue}}u=Math.max(u,b);const w=n.getNewTemporaryRef(),x=new Dict(n);StructTreeRoot.#te(x,s);await this.#ae({structTreeParent:y,tagDict:x,newTagRef:w,structTreeRootRef:t,fallbackKids:r,xref:n,cache:c});const S=new Dict(n);x.set("K",S);S.set("Type",l);p&&S.set("Pg",g);S.set("Obj",m);c.put(w,x);i.push(b,w)}}return u+1}static#te(e,{type:t,title:a,lang:r,alt:i,expanded:n,actualText:s}){e.set("S",Name.get(t));a&&e.set("T",stringToAsciiOrUTF16BE(a));r&&e.set("Lang",stringToAsciiOrUTF16BE(r));i&&e.set("Alt",stringToAsciiOrUTF16BE(i));n&&e.set("E",stringToAsciiOrUTF16BE(n));s&&e.set("ActualText",stringToAsciiOrUTF16BE(s))}static#ee({elements:e,xref:t,pageDict:a,numberTree:r}){const i=new Map;for(const t of e)if(t.structTreeParentId){const e=parseInt(t.structTreeParentId.split("_mc")[1],10);let a=i.get(e);if(!a){a=[];i.set(e,a)}a.push(t)}const n=a.get("StructParents");if(!Number.isInteger(n))return;const s=r.get(n),updateElement=(e,a,r)=>{const n=i.get(e);if(n){const e=a.getRaw("P"),i=t.fetchIfRef(e);if(e instanceof Ref&&i instanceof Dict){const e={ref:r,dict:a};for(const t of n)t.structTreeParent=e}return!0}return!1};for(const e of s){if(!(e instanceof Ref))continue;const a=t.fetch(e),r=a.get("K");if(Number.isInteger(r))updateElement(r,a,e);else if(Array.isArray(r))for(let i of r){i=t.fetchIfRef(i);if(Number.isInteger(i)&&updateElement(i,a,e))break;if(!(i instanceof Dict))continue;if(!isName(i.get("Type"),"MCR"))break;const r=i.get("MCID");if(Number.isInteger(r)&&updateElement(r,a,e))break}}}static async#ae({structTreeParent:e,tagDict:t,newTagRef:a,structTreeRootRef:r,fallbackKids:i,xref:n,cache:s}){let o,c=null;if(e){({ref:c}=e);o=e.dict.getRaw("P")||r}else o=r;t.set("P",o);const l=n.fetchIfRef(o);if(!l){i.push(a);return}let h=s.get(o);if(!h){h=l.clone();s.put(o,h)}const u=h.getRaw("K");let d=u instanceof Ref?s.get(u):null;if(!d){d=n.fetchIfRef(u);d=Array.isArray(d)?d.slice():[u];const e=n.getNewTemporaryRef();h.set("K",e);s.put(e,d)}const f=d.indexOf(c);d.splice(f>=0?f+1:d.length,0,a)}}class StructElementNode{constructor(e,t){this.tree=e;this.xref=e.xref;this.dict=t;this.kids=[];this.parseKids()}get role(){const e=this.dict.get("S"),t=e instanceof Name?e.name:"",{root:a}=this.tree;return a.roleMap.get(t)??t}parseKids(){let e=null;const t=this.dict.getRaw("Pg");t instanceof Ref&&(e=t.toString());const a=this.dict.get("K");if(Array.isArray(a))for(const t of a){const a=this.parseKid(e,this.xref.fetchIfRef(t));a&&this.kids.push(a)}else{const t=this.parseKid(e,a);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new StructElement({type:zn,mcid:t,pageObjId:e});if(!(t instanceof Dict))return null;const a=t.getRaw("Pg");a instanceof Ref&&(e=a.toString());const r=t.get("Type")instanceof Name?t.get("Type").name:null;if("MCR"===r){if(this.tree.pageDict.objId!==e)return null;const a=t.getRaw("Stm");return new StructElement({type:$n,refObjId:a instanceof Ref?a.toString():null,pageObjId:e,mcid:t.get("MCID")})}if("OBJR"===r){if(this.tree.pageDict.objId!==e)return null;const a=t.getRaw("Obj");return new StructElement({type:Gn,refObjId:a instanceof Ref?a.toString():null,pageObjId:e})}return new StructElement({type:Kn,dict:t})}}class StructElement{constructor({type:e,dict:t=null,mcid:a=null,pageObjId:r=null,refObjId:i=null}){this.type=e;this.dict=t;this.mcid=a;this.pageObjId=r;this.refObjId=i;this.parentNode=null}}class StructTreePage{constructor(e,t){this.root=e;this.xref=e?.xref??null;this.rootDict=e?.dict??null;this.pageDict=t;this.nodes=[]}collectObjects(e){if(!(this.root&&this.rootDict&&e instanceof Ref))return null;const t=this.rootDict.get("ParentTree");if(!t)return null;const a=this.root.structParentIds?.get(e);if(!a)return null;const r=new Map,i=new NumberTree(t,this.xref);for(const[e]of a){const t=i.getRaw(e);t instanceof Ref&&r.set(e,t)}return r}parse(e){if(!(this.root&&this.rootDict&&e instanceof Ref))return;const t=this.rootDict.get("ParentTree");if(!t)return;const a=this.pageDict.get("StructParents"),r=this.root.structParentIds?.get(e);if(!Number.isInteger(a)&&!r)return;const i=new Map,n=new NumberTree(t,this.xref);if(Number.isInteger(a)){const e=n.get(a);if(Array.isArray(e))for(const t of e)t instanceof Ref&&this.addNode(this.xref.fetch(t),i)}if(r)for(const[e,t]of r){const a=n.get(e);if(a){const e=this.addNode(this.xref.fetchIfRef(a),i);1===e?.kids?.length&&e.kids[0].type===Gn&&(e.kids[0].type=t)}}}addNode(e,t,a=0){if(a>40){warn("StructTree MAX_DEPTH reached.");return null}if(!(e instanceof Dict))return null;if(t.has(e))return t.get(e);const r=new StructElementNode(this,e);t.set(e,r);const i=e.get("P");if(!(i instanceof Dict)||isName(i.get("Type"),"StructTreeRoot")){this.addTopLevelNode(e,r)||t.delete(e);return r}const n=this.addNode(i,t,a+1);if(!n)return r;let s=!1;for(const t of n.kids)if(t.type===Kn&&t.dict===e){t.parentNode=r;s=!0}s||t.delete(e);return r}addTopLevelNode(e,t){const a=this.rootDict.get("K");if(!a)return!1;if(a instanceof Dict){if(a.objId!==e.objId)return!1;this.nodes[0]=t;return!0}if(!Array.isArray(a))return!0;let r=!1;for(let i=0;i<a.length;i++){const n=a[i];if(n?.toString()===e.objId){this.nodes[i]=t;r=!0}}return r}get serializable(){function nodeToSerializable(e,t,a=0){if(a>40){warn("StructTree too deep to be fully serialized.");return}const r=Object.create(null);r.role=e.role;r.children=[];t.children.push(r);let i=e.dict.get("Alt");"string"!=typeof i&&(i=e.dict.get("ActualText"));"string"==typeof i&&(r.alt=stringToPDFString(i));const n=e.dict.get("A");if(n instanceof Dict){const e=lookupNormalRect(n.getArray("BBox"),null);if(e)r.bbox=e;else{const e=n.get("Width"),t=n.get("Height");"number"==typeof e&&e>0&&"number"==typeof t&&t>0&&(r.bbox=[0,0,e,t])}}const s=e.dict.get("Lang");"string"==typeof s&&(r.lang=stringToPDFString(s));for(const t of e.kids){const e=t.type===Kn?t.parentNode:null;e?nodeToSerializable(e,r,a+1):t.type===zn||t.type===$n?r.children.push({type:"content",id:`p${t.pageObjId}_mc${t.mcid}`}):t.type===Gn?r.children.push({type:"object",id:t.refObjId}):t.type===Vn&&r.children.push({type:"annotation",id:`pdfjs_internal_id_${t.refObjId}`})}}const e=Object.create(null);e.children=[];e.role="Root";for(const t of this.nodes)t&&nodeToSerializable(t,e);return e}}const Jn=function _isValidExplicitDest(e,t,a){if(!Array.isArray(a)||a.length<2)return!1;const[r,i,...n]=a;if(!e(r)&&!Number.isInteger(r))return!1;if(!t(i))return!1;const s=n.length;let o=!0;switch(i.name){case"XYZ":if(s<2||s>3)return!1;break;case"Fit":case"FitB":return 0===s;case"FitH":case"FitBH":case"FitV":case"FitBV":if(s>1)return!1;break;case"FitR":if(4!==s)return!1;o=!1;break;default:return!1}for(const e of n)if(!("number"==typeof e||o&&null===e))return!1;return!0}.bind(null,(e=>e instanceof Ref),isName);function fetchDest(e){e instanceof Dict&&(e=e.get("D"));return Jn(e)?e:null}function fetchRemoteDest(e){let t=e.get("D");if(t){t instanceof Name&&(t=t.name);if("string"==typeof t)return stringToPDFString(t,!0);if(Jn(t))return JSON.stringify(t)}return null}class Catalog{#re=null;#ie=null;builtInCMapCache=new Map;fontCache=new RefSetCache;globalColorSpaceCache=new GlobalColorSpaceCache;globalImageCache=new GlobalImageCache;nonBlendModesSet=new RefSet;pageDictCache=new RefSetCache;pageIndexCache=new RefSetCache;pageKidsCountCache=new RefSetCache;standardFontDataCache=new Map;systemFontCache=new Map;constructor(e,t){this.pdfManager=e;this.xref=t;this.#ie=t.getCatalogObj();if(!(this.#ie instanceof Dict))throw new FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict}cloneDict(){return this.#ie.clone()}get version(){const e=this.#ie.get("Version");if(e instanceof Name){if(Ca.test(e.name))return shadow(this,"version",e.name);warn(`Invalid PDF catalog version: ${e.name}`)}return shadow(this,"version",null)}get lang(){const e=this.#ie.get("Lang");return shadow(this,"lang",e&&"string"==typeof e?stringToPDFString(e):null)}get needsRendering(){const e=this.#ie.get("NeedsRendering");return shadow(this,"needsRendering","boolean"==typeof e&&e)}get collection(){let e=null;try{const t=this.#ie.get("Collection");t instanceof Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof MissingDataException)throw e;info("Cannot fetch Collection entry; assuming no collection is present.")}return shadow(this,"collection",e)}get acroForm(){let e=null;try{const t=this.#ie.get("AcroForm");t instanceof Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof MissingDataException)throw e;info("Cannot fetch AcroForm entry; assuming no forms are present.")}return shadow(this,"acroForm",e)}get acroFormRef(){const e=this.#ie.getRaw("AcroForm");return shadow(this,"acroFormRef",e instanceof Ref?e:null)}get metadata(){const e=this.#ie.getRaw("Metadata");if(!(e instanceof Ref))return shadow(this,"metadata",null);let t=null;try{const a=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata);if(a instanceof BaseStream&&a.dict instanceof Dict){const e=a.dict.get("Type"),r=a.dict.get("Subtype");if(isName(e,"Metadata")&&isName(r,"XML")){const e=stringToUTF8String(a.getString());e&&(t=new MetadataParser(e).serializable)}}}catch(e){if(e instanceof MissingDataException)throw e;info(`Skipping invalid Metadata: "${e}".`)}return shadow(this,"metadata",t)}get markInfo(){let e=null;try{e=this.#ne()}catch(e){if(e instanceof MissingDataException)throw e;warn("Unable to read mark info.")}return shadow(this,"markInfo",e)}#ne(){const e=this.#ie.get("MarkInfo");if(!(e instanceof Dict))return null;const t={Marked:!1,UserProperties:!1,Suspects:!1};for(const a in t){const r=e.get(a);"boolean"==typeof r&&(t[a]=r)}return t}get structTreeRoot(){let e=null;try{e=this.#se()}catch(e){if(e instanceof MissingDataException)throw e;warn("Unable read to structTreeRoot info.")}return shadow(this,"structTreeRoot",e)}#se(){const e=this.#ie.getRaw("StructTreeRoot"),t=this.xref.fetchIfRef(e);if(!(t instanceof Dict))return null;const a=new StructTreeRoot(this.xref,t,e);a.init();return a}get toplevelPagesDict(){const e=this.#ie.get("Pages");if(!(e instanceof Dict))throw new FormatError("Invalid top-level pages dictionary.");return shadow(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this.#oe()}catch(e){if(e instanceof MissingDataException)throw e;warn("Unable to read document outline.")}return shadow(this,"documentOutline",e)}#oe(){let e=this.#ie.get("Outlines");if(!(e instanceof Dict))return null;e=e.getRaw("First");if(!(e instanceof Ref))return null;const t={items:[]},a=[{obj:e,parent:t}],r=new RefSet;r.put(e);const i=this.xref,n=new Uint8ClampedArray(3);for(;a.length>0;){const t=a.shift(),s=i.fetchIfRef(t.obj);if(null===s)continue;s.has("Title")||warn("Invalid outline item encountered.");const o={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:s,resultObj:o,docBaseUrl:this.baseUrl,docAttachments:this.attachments});const c=s.get("Title"),l=s.get("F")||0,h=s.getArray("C"),u=s.get("Count");let d=n;!isNumberArray(h,3)||0===h[0]&&0===h[1]&&0===h[2]||(d=ColorSpaceUtils.rgb.getRgb(h,0));const f={action:o.action,attachment:o.attachment,dest:o.dest,url:o.url,unsafeUrl:o.unsafeUrl,newWindow:o.newWindow,setOCGState:o.setOCGState,title:"string"==typeof c?stringToPDFString(c):"",color:d,count:Number.isInteger(u)?u:void 0,bold:!!(2&l),italic:!!(1&l),items:[]};t.parent.items.push(f);e=s.getRaw("First");if(e instanceof Ref&&!r.has(e)){a.push({obj:e,parent:f});r.put(e)}e=s.getRaw("Next");if(e instanceof Ref&&!r.has(e)){a.push({obj:e,parent:t.parent});r.put(e)}}return t.items.length>0?t.items:null}get permissions(){let e=null;try{e=this.#ce()}catch(e){if(e instanceof MissingDataException)throw e;warn("Unable to read permissions.")}return shadow(this,"permissions",e)}#ce(){const e=this.xref.trailer.get("Encrypt");if(!(e instanceof Dict))return null;let t=e.get("P");if("number"!=typeof t)return null;t+=2**32;const a=[];for(const e in w){const r=w[e];t&r&&a.push(r)}return a}get optionalContentConfig(){let e=null;try{const t=this.#ie.get("OCProperties");if(!t)return shadow(this,"optionalContentConfig",null);const a=t.get("D");if(!a)return shadow(this,"optionalContentConfig",null);const r=t.get("OCGs");if(!Array.isArray(r))return shadow(this,"optionalContentConfig",null);const i=new RefSetCache;for(const e of r)e instanceof Ref&&!i.has(e)&&i.put(e,this.#le(e));e=this.#he(a,i)}catch(e){if(e instanceof MissingDataException)throw e;warn(`Unable to read optional content config: ${e}`)}return shadow(this,"optionalContentConfig",e)}#le(e){const t=this.xref.fetch(e),a={id:e.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},r=t.get("Name");"string"==typeof r&&(a.name=stringToPDFString(r));let i=t.getArray("Intent");Array.isArray(i)||(i=[i]);i.every((e=>e instanceof Name))&&(a.intent=i.map((e=>e.name)));const n=t.get("Usage");if(!(n instanceof Dict))return a;const s=a.usage,o=n.get("Print");if(o instanceof Dict){const e=o.get("PrintState");if(e instanceof Name)switch(e.name){case"ON":case"OFF":s.print={printState:e.name}}}const c=n.get("View");if(c instanceof Dict){const e=c.get("ViewState");if(e instanceof Name)switch(e.name){case"ON":case"OFF":s.view={viewState:e.name}}}return a}#he(e,t){function parseOnOff(e){const a=[];if(Array.isArray(e))for(const r of e)r instanceof Ref&&t.has(r)&&a.push(r.toString());return a}function parseOrder(e,a=0){if(!Array.isArray(e))return null;const i=[];for(const n of e){if(n instanceof Ref&&t.has(n)){r.put(n);i.push(n.toString());continue}const e=parseNestedOrder(n,a);e&&i.push(e)}if(a>0)return i;const n=[];for(const[e]of t.items())r.has(e)||n.push(e.toString());n.length&&i.push({name:null,order:n});return i}function parseNestedOrder(e,t){if(++t>i){warn("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}const r=a.fetchIfRef(e);if(!Array.isArray(r))return null;const n=a.fetchIfRef(r[0]);if("string"!=typeof n)return null;const s=parseOrder(r.slice(1),t);return s?.length?{name:stringToPDFString(n),order:s}:null}const a=this.xref,r=new RefSet,i=10;!function parseRBGroups(e){if(Array.isArray(e))for(const r of e){const e=a.fetchIfRef(r);if(!Array.isArray(e)||!e.length)continue;const i=new Set;for(const a of e)if(a instanceof Ref&&t.has(a)&&!i.has(a.toString())){i.add(a.toString());t.get(a).rbGroups.push(i)}}}(e.get("RBGroups"));return{name:"string"==typeof e.get("Name")?stringToPDFString(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?stringToPDFString(e.get("Creator")):null,baseState:e.get("BaseState")instanceof Name?e.get("BaseState").name:null,on:parseOnOff(e.get("ON")),off:parseOnOff(e.get("OFF")),order:parseOrder(e.get("Order")),groups:[...t]}}setActualNumPages(e=null){this.#re=e}get hasActualNumPages(){return null!==this.#re}get _pagesCount(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new FormatError("Page count in top-level pages dictionary is not an integer.");return shadow(this,"_pagesCount",e)}get numPages(){return this.#re??this._pagesCount}get destinations(){const e=this.#ue(),t=Object.create(null);for(const a of e)if(a instanceof NameTree)for(const[e,r]of a.getAll()){const a=fetchDest(r);a&&(t[stringToPDFString(e,!0)]=a)}else if(a instanceof Dict)for(const[e,r]of a){const a=fetchDest(r);a&&(t[stringToPDFString(e,!0)]||=a)}return shadow(this,"destinations",t)}getDestination(e){if(this.hasOwnProperty("destinations"))return this.destinations[e]??null;const t=this.#ue();for(const a of t)if(a instanceof NameTree||a instanceof Dict){const t=fetchDest(a.get(e));if(t)return t}if(t.length){const t=this.destinations[e];if(t)return t}return null}#ue(){const e=this.#ie.get("Names"),t=[];e?.has("Dests")&&t.push(new NameTree(e.getRaw("Dests"),this.xref));this.#ie.has("Dests")&&t.push(this.#ie.get("Dests"));return t}get pageLabels(){let e=null;try{e=this.#de()}catch(e){if(e instanceof MissingDataException)throw e;warn("Unable to read page labels.")}return shadow(this,"pageLabels",e)}#de(){const e=this.#ie.getRaw("PageLabels");if(!e)return null;const t=new Array(this.numPages);let a=null,r="";const i=new NumberTree(e,this.xref).getAll();let n="",s=1;for(let e=0,o=this.numPages;e<o;e++){const o=i.get(e);if(void 0!==o){if(!(o instanceof Dict))throw new FormatError("PageLabel is not a dictionary.");if(o.has("Type")&&!isName(o.get("Type"),"PageLabel"))throw new FormatError("Invalid type in PageLabel dictionary.");if(o.has("S")){const e=o.get("S");if(!(e instanceof Name))throw new FormatError("Invalid style in PageLabel dictionary.");a=e.name}else a=null;if(o.has("P")){const e=o.get("P");if("string"!=typeof e)throw new FormatError("Invalid prefix in PageLabel dictionary.");r=stringToPDFString(e)}else r="";if(o.has("St")){const e=o.get("St");if(!(Number.isInteger(e)&&e>=1))throw new FormatError("Invalid start in PageLabel dictionary.");s=e}else s=1}switch(a){case"D":n=s;break;case"R":case"r":n=toRomanNumerals(s,"r"===a);break;case"A":case"a":const e=26,t="a"===a?97:65,r=s-1;n=String.fromCharCode(t+r%e).repeat(Math.floor(r/e)+1);break;default:if(a)throw new FormatError(`Invalid style "${a}" in PageLabel dictionary.`);n=""}t[e]=r+n;s++}return t}get pageLayout(){const e=this.#ie.get("PageLayout");let t="";if(e instanceof Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return shadow(this,"pageLayout",t)}get pageMode(){const e=this.#ie.get("PageMode");let t="UseNone";if(e instanceof Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return shadow(this,"pageMode",t)}get viewerPreferences(){const e=this.#ie.get("ViewerPreferences");if(!(e instanceof Dict))return shadow(this,"viewerPreferences",null);let t=null;for(const[a,r]of e){let e;switch(a){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof r&&(e=r);break;case"NonFullScreenPageMode":if(r instanceof Name)switch(r.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":e=r.name;break;default:e="UseNone"}break;case"Direction":if(r instanceof Name)switch(r.name){case"L2R":case"R2L":e=r.name;break;default:e="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(r instanceof Name)switch(r.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":e=r.name;break;default:e="CropBox"}break;case"PrintScaling":if(r instanceof Name)switch(r.name){case"None":case"AppDefault":e=r.name;break;default:e="AppDefault"}break;case"Duplex":if(r instanceof Name)switch(r.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":e=r.name;break;default:e="None"}break;case"PrintPageRange":if(Array.isArray(r)&&r.length%2==0){r.every(((e,t,a)=>Number.isInteger(e)&&e>0&&(0===t||e>=a[t-1])&&e<=this.numPages))&&(e=r)}break;case"NumCopies":Number.isInteger(r)&&r>0&&(e=r);break;default:warn(`Ignoring non-standard key in ViewerPreferences: ${a}.`);continue}if(void 0!==e){t??=Object.create(null);t[a]=e}else warn(`Bad value, for key "${a}", in ViewerPreferences: ${r}.`)}return shadow(this,"viewerPreferences",t)}get openAction(){const e=this.#ie.get("OpenAction"),t=Object.create(null);if(e instanceof Dict){const a=new Dict(this.xref);a.set("A",e);const r={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:a,resultObj:r});Array.isArray(r.dest)?t.dest=r.dest:r.action&&(t.action=r.action)}else Jn(e)&&(t.dest=e);return shadow(this,"openAction",objectSize(t)>0?t:null)}get attachments(){const e=this.#ie.get("Names");let t=null;if(e instanceof Dict&&e.has("EmbeddedFiles")){const a=new NameTree(e.getRaw("EmbeddedFiles"),this.xref);for(const[e,r]of a.getAll()){const a=new FileSpec(r,this.xref);t??=Object.create(null);t[stringToPDFString(e,!0)]=a.serializable}}return shadow(this,"attachments",t)}get xfaImages(){const e=this.#ie.get("Names");let t=null;if(e instanceof Dict&&e.has("XFAImages")){const a=new NameTree(e.getRaw("XFAImages"),this.xref);for(const[e,r]of a.getAll())if(r instanceof BaseStream){t??=new Map;t.set(stringToPDFString(e,!0),r.getBytes())}}return shadow(this,"xfaImages",t)}#fe(){const e=this.#ie.get("Names");let t=null;function appendIfJavaScriptDict(e,a){if(!(a instanceof Dict))return;if(!isName(a.get("S"),"JavaScript"))return;let r=a.get("JS");if(r instanceof BaseStream)r=r.getString();else if("string"!=typeof r)return;r=stringToPDFString(r,!0).replaceAll("\\0","");r&&(t||=new Map).set(e,r)}if(e instanceof Dict&&e.has("JavaScript")){const t=new NameTree(e.getRaw("JavaScript"),this.xref);for(const[e,a]of t.getAll())appendIfJavaScriptDict(stringToPDFString(e,!0),a)}const a=this.#ie.get("OpenAction");a&&appendIfJavaScriptDict("OpenAction",a);return t}get jsActions(){const e=this.#fe();let t=collectActions(this.xref,this.#ie,we);if(e){t||=Object.create(null);for(const[a,r]of e)a in t?t[a].push(r):t[a]=[r]}return shadow(this,"jsActions",t)}async cleanup(e=!1){clearGlobalCaches();this.globalColorSpaceCache.clear();this.globalImageCache.clear(e);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.pageDictCache.clear();this.nonBlendModesSet.clear();for(const{dict:e}of await Promise.all(this.fontCache))delete e.cacheKey;this.fontCache.clear();this.builtInCMapCache.clear();this.standardFontDataCache.clear();this.systemFontCache.clear()}async getPageDict(e){const t=[this.toplevelPagesDict],a=new RefSet,r=this.#ie.getRaw("Pages");r instanceof Ref&&a.put(r);const i=this.xref,n=this.pageKidsCountCache,s=this.pageIndexCache,o=this.pageDictCache;let c=0;for(;t.length;){const r=t.pop();if(r instanceof Ref){const l=n.get(r);if(l>=0&&c+l<=e){c+=l;continue}if(a.has(r))throw new FormatError("Pages tree contains circular reference.");a.put(r);const h=await(o.get(r)||i.fetchAsync(r));if(h instanceof Dict){let t=h.getRaw("Type");t instanceof Ref&&(t=await i.fetchAsync(t));if(isName(t,"Page")||!h.has("Kids")){n.has(r)||n.put(r,1);s.has(r)||s.put(r,c);if(c===e)return[h,r];c++;continue}}t.push(h);continue}if(!(r instanceof Dict))throw new FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:l}=r;let h=r.getRaw("Count");h instanceof Ref&&(h=await i.fetchAsync(h));if(Number.isInteger(h)&&h>=0){l&&!n.has(l)&&n.put(l,h);if(c+h<=e){c+=h;continue}}let u=r.getRaw("Kids");u instanceof Ref&&(u=await i.fetchAsync(u));if(!Array.isArray(u)){let t=r.getRaw("Type");t instanceof Ref&&(t=await i.fetchAsync(t));if(isName(t,"Page")||!r.has("Kids")){if(c===e)return[r,null];c++;continue}throw new FormatError("Page dictionary kids object is not an array.")}for(let e=u.length-1;e>=0;e--){const a=u[e];t.push(a);r===this.toplevelPagesDict&&a instanceof Ref&&!o.has(a)&&o.put(a,i.fetchAsync(a))}}throw new Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){const{ignoreErrors:t}=this.pdfManager.evaluatorOptions,a=[{currentNode:this.toplevelPagesDict,posInKids:0}],r=new RefSet,i=this.#ie.getRaw("Pages");i instanceof Ref&&r.put(i);const n=new Map,s=this.xref,o=this.pageIndexCache;let c=0;function addPageDict(e,t){t&&!o.has(t)&&o.put(t,c);n.set(c++,[e,t])}function addPageError(a){if(a instanceof XRefEntryException&&!e)throw a;if(e&&t&&0===c){warn(`getAllPageDicts - Skipping invalid first page: "${a}".`);a=Dict.empty}n.set(c++,[a,null])}for(;a.length>0;){const e=a.at(-1),{currentNode:t,posInKids:i}=e;let n=t.getRaw("Kids");if(n instanceof Ref)try{n=await s.fetchAsync(n)}catch(e){addPageError(e);break}if(!Array.isArray(n)){addPageError(new FormatError("Page dictionary kids object is not an array."));break}if(i>=n.length){a.pop();continue}const o=n[i];let c;if(o instanceof Ref){if(r.has(o)){addPageError(new FormatError("Pages tree contains circular reference."));break}r.put(o);try{c=await s.fetchAsync(o)}catch(e){addPageError(e);break}}else c=o;if(!(c instanceof Dict)){addPageError(new FormatError("Page dictionary kid reference points to wrong type of object."));break}let l=c.getRaw("Type");if(l instanceof Ref)try{l=await s.fetchAsync(l)}catch(e){addPageError(e);break}isName(l,"Page")||!c.has("Kids")?addPageDict(c,o instanceof Ref?o:null):a.push({currentNode:c,posInKids:0});e.posInKids++}return n}getPageIndex(e){const t=this.pageIndexCache.get(e);if(void 0!==t)return Promise.resolve(t);const a=this.xref;let r=0;const next=t=>function pagesBeforeRef(t){let r,i=0;return a.fetchAsync(t).then((function(a){if(isRefsEqual(t,e)&&!isDict(a,"Page")&&!(a instanceof Dict&&!a.has("Type")&&a.has("Contents")))throw new FormatError("The reference does not point to a /Page dictionary.");if(!a)return null;if(!(a instanceof Dict))throw new FormatError("Node must be a dictionary.");r=a.getRaw("Parent");return a.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof Dict))throw new FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;const n=[];let s=!1;for(const r of e){if(!(r instanceof Ref))throw new FormatError("Kid must be a reference.");if(isRefsEqual(r,t)){s=!0;break}n.push(a.fetchAsync(r).then((function(e){if(!(e instanceof Dict))throw new FormatError("Kid node must be a dictionary.");e.has("Count")?i+=e.get("Count"):i++})))}if(!s)throw new FormatError("Kid reference not found in parent\'s kids.");return Promise.all(n).then((()=>[i,r]))}))}(t).then((t=>{if(!t){this.pageIndexCache.put(e,r);return r}const[a,i]=t;r+=a;return next(i)}));return next(e)}get baseUrl(){const e=this.#ie.get("URI");if(e instanceof Dict){const t=e.get("Base");if("string"==typeof t){const e=createValidAbsoluteUrl(t,null,{tryConvertEncoding:!0});if(e)return shadow(this,"baseUrl",e.href)}}return shadow(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:e,resultObj:t,docBaseUrl:a=null,docAttachments:r=null}){if(!(e instanceof Dict)){warn("parseDestDictionary: `destDict` must be a dictionary.");return}let i,n,s=e.get("A");if(!(s instanceof Dict))if(e.has("Dest"))s=e.get("Dest");else{s=e.get("AA");s instanceof Dict&&(s.has("D")?s=s.get("D"):s.has("U")&&(s=s.get("U")))}if(s instanceof Dict){const e=s.get("S");if(!(e instanceof Name)){warn("parseDestDictionary: Invalid type in Action dictionary.");return}const a=e.name;switch(a){case"ResetForm":const e=s.get("Flags"),o=!(1&("number"==typeof e?e:0)),c=[],l=[];for(const e of s.get("Fields")||[])e instanceof Ref?l.push(e.toString()):"string"==typeof e&&c.push(stringToPDFString(e));t.resetForm={fields:c,refs:l,include:o};break;case"URI":i=s.get("URI");i instanceof Name&&(i="/"+i.name);break;case"GoTo":n=s.get("D");break;case"Launch":case"GoToR":const h=s.get("F");if(h instanceof Dict){const e=new FileSpec(h,null,!0),{rawFilename:t}=e.serializable;i=t}else"string"==typeof h&&(i=h);const u=fetchRemoteDest(s);u&&"string"==typeof i&&(i=i.split("#",1)[0]+"#"+u);const d=s.get("NewWindow");"boolean"==typeof d&&(t.newWindow=d);break;case"GoToE":const f=s.get("T");let g;if(r&&f instanceof Dict){const e=f.get("R"),t=f.get("N");isName(e,"C")&&"string"==typeof t&&(g=r[stringToPDFString(t,!0)])}if(g){t.attachment=g;const e=fetchRemoteDest(s);e&&(t.attachmentDest=e)}else warn(\'parseDestDictionary - unimplemented "GoToE" action.\');break;case"Named":const p=s.get("N");p instanceof Name&&(t.action=p.name);break;case"SetOCGState":const m=s.get("State"),b=s.get("PreserveRB");if(!Array.isArray(m)||0===m.length)break;const y=[];for(const e of m)if(e instanceof Name)switch(e.name){case"ON":case"OFF":case"Toggle":y.push(e.name)}else e instanceof Ref&&y.push(e.toString());if(y.length!==m.length)break;t.setOCGState={state:y,preserveRB:"boolean"!=typeof b||b};break;case"JavaScript":const w=s.get("JS");let x;w instanceof BaseStream?x=w.getString():"string"==typeof w&&(x=w);const S=x&&recoverJsURL(stringToPDFString(x,!0));if(S){i=S.url;t.newWindow=S.newWindow;break}default:if("JavaScript"===a||"SubmitForm"===a)break;warn(`parseDestDictionary - unsupported action: "${a}".`)}}else e.has("Dest")&&(n=e.get("Dest"));if("string"==typeof i){const e=createValidAbsoluteUrl(i,a,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(t.url=e.href);t.unsafeUrl=i}if(n){n instanceof Name&&(n=n.name);"string"==typeof n?t.dest=stringToPDFString(n,!0):Jn(n)&&(t.dest=n)}}}function addChildren(e,t){if(e instanceof Dict)e=e.getRawValues();else if(e instanceof BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(const r of e)((a=r)instanceof Ref||a instanceof Dict||a instanceof BaseStream||Array.isArray(a))&&t.push(r);var a}class ObjectLoader{refSet=new RefSet;constructor(e,t,a){this.dict=e;this.keys=t;this.xref=a}async load(){const{keys:e,dict:t}=this,a=[];for(const r of e){const e=t.getRaw(r);void 0!==e&&a.push(e)}await this.#ge(a);this.refSet=null}async#ge(e){const t=[],a=[];for(;e.length;){let r=e.pop();if(r instanceof Ref){if(this.refSet.has(r))continue;try{this.refSet.put(r);r=this.xref.fetch(r)}catch(e){if(!(e instanceof MissingDataException)){warn(`ObjectLoader.#walk - requesting all data: "${e}".`);await this.xref.stream.manager.requestAllChunks();return}t.push(r);a.push({begin:e.begin,end:e.end})}}if(r instanceof BaseStream){const e=r.getBaseStreams();if(e){let i=!1;for(const t of e)if(!t.isDataLoaded){i=!0;a.push({begin:t.start,end:t.end})}i&&t.push(r)}}addChildren(r,e)}if(a.length){await this.xref.stream.manager.requestRanges(a);for(const e of t)e instanceof Ref&&this.refSet.remove(e);await this.#ge(t)}}static async load(e,t,a){if(a.stream.isDataLoaded)return;const r=new ObjectLoader(e,t,a);await r.load()}}const Yn=Symbol(),Zn=Symbol(),Qn=Symbol(),es=Symbol(),ts=Symbol(),as=Symbol(),rs=Symbol(),is=Symbol(),ns=Symbol(),ss=Symbol("content"),os=Symbol("data"),cs=Symbol(),ls=Symbol("extra"),hs=Symbol(),us=Symbol(),ds=Symbol(),fs=Symbol(),gs=Symbol(),ps=Symbol(),ms=Symbol(),bs=Symbol(),ys=Symbol(),ws=Symbol(),xs=Symbol(),Ss=Symbol(),As=Symbol(),ks=Symbol(),Cs=Symbol(),vs=Symbol(),Fs=Symbol(),Is=Symbol(),Ts=Symbol(),Os=Symbol(),Ms=Symbol(),Ds=Symbol(),Bs=Symbol(),Rs=Symbol(),Ns=Symbol(),Es=Symbol(),Ls=Symbol(),js=Symbol(),_s=Symbol(),Us=Symbol(),Xs=Symbol(),qs=Symbol(),Hs=Symbol("namespaceId"),Ws=Symbol("nodeName"),zs=Symbol(),$s=Symbol(),Gs=Symbol(),Vs=Symbol(),Ks=Symbol(),Js=Symbol(),Ys=Symbol(),Zs=Symbol(),Qs=Symbol("root"),eo=Symbol(),to=Symbol(),ao=Symbol(),ro=Symbol(),io=Symbol(),no=Symbol(),so=Symbol(),oo=Symbol(),co=Symbol(),lo=Symbol(),ho=Symbol(),uo=Symbol("uid"),fo=Symbol(),go={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}},po={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},mo=/([+-]?\\d+\\.?\\d*)(.*)/;function stripQuotes(e){return e.startsWith("\'")||e.startsWith(\'"\')?e.slice(1,-1):e}function getInteger({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();const r=parseInt(e,10);return!isNaN(r)&&a(r)?r:t}function getFloat({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();const r=parseFloat(e);return!isNaN(r)&&a(r)?r:t}function getKeyword({data:e,defaultValue:t,validate:a}){return e&&a(e=e.trim())?e:t}function getStringOption(e,t){return getKeyword({data:e,defaultValue:t[0],validate:e=>t.includes(e)})}function getMeasurement(e,t="0"){t||="0";if(!e)return getMeasurement(t);const a=e.trim().match(mo);if(!a)return getMeasurement(t);const[,r,i]=a,n=parseFloat(r);if(isNaN(n))return getMeasurement(t);if(0===n)return 0;const s=po[i];return s?s(n):n}function getRatio(e){if(!e)return{num:1,den:1};const t=e.split(":",2).map((e=>parseFloat(e.trim()))).filter((e=>!isNaN(e)));1===t.length&&t.push(1);if(0===t.length)return{num:1,den:1};const[a,r]=t;return{num:a,den:r}}function getRelevant(e){return e?e.trim().split(/\\s+/).map((e=>({excluded:"-"===e[0],viewname:e.substring(1)}))):[]}class HTMLResult{static get FAILURE(){return shadow(this,"FAILURE",new HTMLResult(!1,null,null,null))}static get EMPTY(){return shadow(this,"EMPTY",new HTMLResult(!0,null,null,null))}constructor(e,t,a,r){this.success=e;this.html=t;this.bbox=a;this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(e){return new HTMLResult(!1,null,null,e)}static success(e,t=null){return new HTMLResult(!0,e,t,null)}}class FontFinder{constructor(e){this.fonts=new Map;this.cache=new Map;this.warned=new Set;this.defaultFont=null;this.add(e)}add(e,t=null){for(const t of e)this.addPdfFont(t);for(const e of this.fonts.values())e.regular||(e.regular=e.italic||e.bold||e.bolditalic);if(!t||0===t.size)return;const a=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const e of t)this.fonts.set(e,a)}addPdfFont(e){const t=e.cssFontInfo,a=t.fontFamily;let r=this.fonts.get(a);if(!r){r=Object.create(null);this.fonts.set(a,r);this.defaultFont||(this.defaultFont=r)}let i="";const n=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?i=n>=700?"bolditalic":"italic":n>=700&&(i="bold");if(!i){(e.name.includes("Bold")||e.psName?.includes("Bold"))&&(i="bold");(e.name.includes("Italic")||e.name.endsWith("It")||e.psName?.includes("Italic")||e.psName?.endsWith("It"))&&(i+="italic")}i||(i="regular");r[i]=e}getDefault(){return this.defaultFont}find(e,t=!0){let a=this.fonts.get(e)||this.cache.get(e);if(a)return a;const r=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let i=e.replaceAll(r,"");a=this.fonts.get(i);if(a){this.cache.set(e,a);return a}i=i.toLowerCase();const n=[];for(const[e,t]of this.fonts.entries())e.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(t);if(0===n.length)for(const[,e]of this.fonts.entries())e.regular.name?.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(e);if(0===n.length){i=i.replaceAll(/psmt|mt/gi,"");for(const[e,t]of this.fonts.entries())e.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(t)}if(0===n.length)for(const e of this.fonts.values())e.regular.name?.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(e);if(n.length>=1){1!==n.length&&t&&warn(`XFA - Too many choices to guess the correct font: ${e}`);this.cache.set(e,n[0]);return n[0]}if(t&&!this.warned.has(e)){this.warned.add(e);warn(`XFA - Cannot find the font: ${e}`)}return null}}function selectFont(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}class FontInfo{constructor(e,t,a,r){this.lineHeight=a;this.paraMargin=t||{top:0,bottom:0,left:0,right:0};if(!e){[this.pdfFont,this.xfaFont]=this.defaultFont(r);return}this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};const i=r.find(e.typeface);if(i){this.pdfFont=selectFont(e,i);this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(r))}else[this.pdfFont,this.xfaFont]=this.defaultFont(r)}defaultFont(e){const t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(t?.regular){const e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class FontSelector{constructor(e,t,a,r){this.fontFinder=r;this.stack=[new FontInfo(e,t,a,r)]}pushData(e,t,a){const r=this.stack.at(-1);for(const t of["typeface","posture","weight","size","letterSpacing"])e[t]||(e[t]=r.xfaFont[t]);for(const e of["top","bottom","left","right"])isNaN(t[e])&&(t[e]=r.paraMargin[e]);const i=new FontInfo(e,t,a||r.lineHeight,this.fontFinder);i.pdfFont||(i.pdfFont=r.pdfFont);this.stack.push(i)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class TextMeasure{constructor(e,t,a,r){this.glyphs=[];this.fontSelector=new FontSelector(e,t,a,r);this.extraHeight=0}pushData(e,t,a){this.fontSelector.pushData(e,t,a)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;const t=this.fontSelector.topFont(),a=t.xfaFont.size;if(t.pdfFont){const r=t.xfaFont.letterSpacing,i=t.pdfFont,n=i.lineHeight||1.2,s=t.lineHeight||Math.max(1.2,n)*a,o=n-(void 0===i.lineGap?.2:i.lineGap),c=Math.max(1,o)*a,l=a/1e3,h=i.defaultWidth||i.charsToGlyphs(" ")[0].width;for(const t of e.split(/[\\u2029\\n]/)){const e=i.encodeString(t).join(""),a=i.charsToGlyphs(e);for(const e of a){const t=e.width||h;this.glyphs.push([t*l+r,s,c,e.unicode,!1])}this.glyphs.push([0,0,0,"\\n",!0])}this.glyphs.pop()}else{for(const t of e.split(/[\\u2029\\n]/)){for(const e of t.split(""))this.glyphs.push([a,1.2*a,a,e,!1]);this.glyphs.push([0,0,0,"\\n",!0])}this.glyphs.pop()}}compute(e){let t=-1,a=0,r=0,i=0,n=0,s=0,o=!1,c=!0;for(let l=0,h=this.glyphs.length;l<h;l++){const[h,u,d,f,g]=this.glyphs[l],p=" "===f,m=c?d:u;if(g){r=Math.max(r,n);n=0;i+=s;s=m;t=-1;a=0;c=!1}else if(p)if(n+h>e){r=Math.max(r,n);n=0;i+=s;s=m;t=-1;a=0;o=!0;c=!1}else{s=Math.max(m,s);a=n;n+=h;t=l}else if(n+h>e){i+=s;s=m;if(-1!==t){l=t;r=Math.max(r,a);n=0;t=-1;a=0}else{r=Math.max(r,n);n=h}o=!0;c=!1}else{n+=h;s=Math.max(m,s)}}r=Math.max(r,n);i+=s+this.extraHeight;return{width:1.02*r,height:i,isBroken:o}}}const bo=/^[^.[]+/,yo=/^[^\\]]+/,wo=0,xo=1,So=2,Ao=3,ko=4,Co=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[Ss]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),vo=new WeakMap;function parseExpression(e,t,a=!0){let r=e.match(bo);if(!r)return null;let[i]=r;const n=[{name:i,cacheName:"."+i,index:0,js:null,formCalc:null,operator:wo}];let s=i.length;for(;s<e.length;){const c=s;if("["===e.charAt(s++)){r=e.slice(s).match(yo);if(!r){warn("XFA - Invalid index in SOM expression");return null}n.at(-1).index="*"===(o=(o=r[0]).trim())?1/0:parseInt(o,10)||0;s+=r[0].length+1;continue}let l;switch(e.charAt(s)){case".":if(!t)return null;s++;l=xo;break;case"#":s++;l=So;break;case"[":if(a){warn("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}l=Ao;break;case"(":if(a){warn("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}l=ko;break;default:l=wo}r=e.slice(s).match(bo);if(!r)break;[i]=r;s+=i.length;n.push({name:i,cacheName:e.slice(c,s),operator:l,index:0,js:null,formCalc:null})}var o;return n}function searchNode(e,t,a,r=!0,i=!0){const n=parseExpression(a,r);if(!n)return null;const s=Co.get(n[0].name);let o,c=0;if(s){o=!0;e=[s(e,t)];c=1}else{o=null===t;e=[t||e]}for(let a=n.length;c<a;c++){const{name:a,cacheName:r,operator:s,index:l}=n[c],h=[];for(const t of e){if(!t.isXFAObject)continue;let e,n;if(i){n=vo.get(t);if(!n){n=new Map;vo.set(t,n)}e=n.get(r)}if(!e){switch(s){case wo:e=t[ms](a,!1);break;case xo:e=t[ms](a,!0);break;case So:e=t[ps](a);e=e.isXFAObjectArray?e.children:[e]}i&&n.set(r,e)}e.length>0&&h.push(e)}if(0!==h.length||o||0!==c)e=isFinite(l)?h.filter((e=>l<e.length)).map((e=>e[l])):h.flat();else{const a=t[vs]();if(!(t=a))return null;c=-1;e=[t]}}return 0===e.length?null:e}function createDataNode(e,t,a){const r=parseExpression(a);if(!r)return null;if(r.some((e=>e.operator===xo)))return null;const i=Co.get(r[0].name);let n=0;if(i){e=i(e,t);n=1}else e=t||e;for(let t=r.length;n<t;n++){const{name:t,operator:a,index:i}=r[n];if(!isFinite(i)){r[n].index=0;return e.createNodes(r.slice(n))}let s;switch(a){case wo:s=e[ms](t,!1);break;case xo:s=e[ms](t,!0);break;case So:s=e[ps](t);s=s.isXFAObjectArray?s.children:[s]}if(0===s.length)return e.createNodes(r.slice(n));if(!(i<s.length)){r[n].index=i-s.length;return e.createNodes(r.slice(n))}{const t=s[i];if(!t.isXFAObject){warn("XFA - Cannot create a node.");return null}e=t}}return null}const Fo=Symbol(),Io=Symbol(),Oo=Symbol(),Mo=Symbol("_children"),Do=Symbol(),Bo=Symbol(),Ro=Symbol(),No=Symbol(),Eo=Symbol(),Po=Symbol(),Lo=Symbol(),jo=Symbol(),_o=Symbol(),Uo=Symbol("parent"),Xo=Symbol(),qo=Symbol(),Ho=Symbol();let Wo=0;const zo=go.datasets.id;class XFAObject{constructor(e,t,a=!1){this[Hs]=e;this[Ws]=t;this[Lo]=a;this[Uo]=null;this[Mo]=[];this[uo]=`${t}${Wo++}`;this[Is]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(e){let t=this,a=null;for(const{name:r,index:i}of e){for(let e=0,n=isFinite(i)?i:0;e<=n;e++){const e=t[Hs]===zo?-1:t[Hs];a=new XmlObject(e,r);t[Qn](a)}t=a}return a}[$s](e){if(!this[Lo]||!this[Gs](e))return!1;const t=e[Ws],a=this[t];if(!(a instanceof XFAObjectArray)){null!==a&&this[Zs](a);this[t]=e;this[Qn](e);return!0}if(a.push(e)){this[Qn](e);return!0}let r="";this.id?r=` (id: ${this.id})`:this.name&&(r=` (name: ${this.name} ${this.h.value})`);warn(`XFA - node "${this[Ws]}"${r} has already enough "${t}"!`);return!1}[Gs](e){return this.hasOwnProperty(e[Ws])&&e[Hs]===this[Hs]}[Ls](){return!1}[Yn](){return!1}[Bs](){return!1}[Rs](){return!1}[Js](){this.para&&this[Fs]()[ls].paraStack.pop()}[Ys](){this[Fs]()[ls].paraStack.push(this.para)}[ao](e){this.id&&this[Hs]===go.template.id&&e.set(this.id,this)}[Fs](){return this[Is].template}[js](){return!1}[_s](){return!1}[Qn](e){e[Uo]=this;this[Mo].push(e);!e[Is]&&this[Is]&&(e[Is]=this[Is])}[Zs](e){const t=this[Mo].indexOf(e);this[Mo].splice(t,1)}[Ts](){return this.hasOwnProperty("value")}[io](e){}[Vs](e){}[hs](){}[ts](e){delete this[Lo];if(this[rs]){e.clean(this[rs]);delete this[rs]}}[Ms](e){return this[Mo].indexOf(e)}[Ds](e,t){t[Uo]=this;this[Mo].splice(e,0,t);!t[Is]&&this[Is]&&(t[Is]=this[Is])}[Us](){return!this.name}[qs](){return""}[so](){return 0===this[Mo].length?this[ss]:this[Mo].map((e=>e[so]())).join("")}get[Oo](){const e=Object.getPrototypeOf(this);if(!e._attributes){const t=e._attributes=new Set;for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof XFAObject||this[e]instanceof XFAObjectArray)break;t.add(e)}}return shadow(this,Oo,e._attributes)}[Es](e){let t=this;for(;t;){if(t===e)return!0;t=t[vs]()}return!1}[vs](){return this[Uo]}[Cs](){return this[vs]()}[Ss](e=null){return e?this[e]:this[Mo]}[cs](){const e=Object.create(null);this[ss]&&(e.$content=this[ss]);for(const t of Object.getOwnPropertyNames(this)){const a=this[t];null!==a&&(a instanceof XFAObject?e[t]=a[cs]():a instanceof XFAObjectArray?a.isEmpty()||(e[t]=a.dump()):e[t]=a)}return e}[ho](){return null}[co](){return HTMLResult.EMPTY}*[As](){for(const e of this[Ss]())yield e}*[No](e,t){for(const a of this[As]())if(!e||t===e.has(a[Ws])){const e=this[gs](),t=a[co](e);t.success||(this[ls].failingNode=a);yield t}}[us](){return null}[Zn](e,t){this[ls].children.push(e)}[gs](){}[es]({filter:e=null,include:t=!0}){if(this[ls].generator){const e=this[gs](),t=this[ls].failingNode[co](e);if(!t.success)return t;t.html&&this[Zn](t.html,t.bbox);delete this[ls].failingNode}else this[ls].generator=this[No](e,t);for(;;){const e=this[ls].generator.next();if(e.done)break;const t=e.value;if(!t.success)return t;t.html&&this[Zn](t.html,t.bbox)}this[ls].generator=null;return HTMLResult.EMPTY}[ro](e){this[qo]=new Set(Object.keys(e))}[Po](e){const t=this[Oo],a=this[qo];return[...e].filter((e=>t.has(e)&&!a.has(e)))}[eo](e,t=new Set){for(const a of this[Mo])a[Xo](e,t)}[Xo](e,t){const a=this[Eo](e,t);a?this[Fo](a,e,t):this[eo](e,t)}[Eo](e,t){const{use:a,usehref:r}=this;if(!a&&!r)return null;let i=null,n=null,s=null,o=a;if(r){o=r;r.startsWith("#som(")&&r.endsWith(")")?n=r.slice(5,-1):r.startsWith(".#som(")&&r.endsWith(")")?n=r.slice(6,-1):r.startsWith("#")?s=r.slice(1):r.startsWith(".#")&&(s=r.slice(2))}else a.startsWith("#")?s=a.slice(1):n=a;this.use=this.usehref="";if(s)i=e.get(s);else{i=searchNode(e.get(Qs),this,n,!0,!1);i&&(i=i[0])}if(!i){warn(`XFA - Invalid prototype reference: ${o}.`);return null}if(i[Ws]!==this[Ws]){warn(`XFA - Incompatible prototype: ${i[Ws]} !== ${this[Ws]}.`);return null}if(t.has(i)){warn("XFA - Cycle detected in prototypes use.");return null}t.add(i);const c=i[Eo](e,t);c&&i[Fo](c,e,t);i[eo](e,t);t.delete(i);return i}[Fo](e,t,a){if(a.has(e)){warn("XFA - Cycle detected in prototypes use.");return}!this[ss]&&e[ss]&&(this[ss]=e[ss]);new Set(a).add(e);for(const t of this[Po](e[qo])){this[t]=e[t];this[qo]&&this[qo].add(t)}for(const r of Object.getOwnPropertyNames(this)){if(this[Oo].has(r))continue;const i=this[r],n=e[r];if(i instanceof XFAObjectArray){for(const e of i[Mo])e[Xo](t,a);for(let r=i[Mo].length,s=n[Mo].length;r<s;r++){const n=e[Mo][r][is]();if(!i.push(n))break;n[Uo]=this;this[Mo].push(n);n[Xo](t,a)}}else if(null===i){if(null!==n){const e=n[is]();e[Uo]=this;this[r]=e;this[Mo].push(e);e[Xo](t,a)}}else{i[eo](t,a);n&&i[Fo](n,t,a)}}}static[Do](e){return Array.isArray(e)?e.map((e=>XFAObject[Do](e))):"object"==typeof e&&null!==e?Object.assign({},e):e}[is](){const e=Object.create(Object.getPrototypeOf(this));for(const t of Object.getOwnPropertySymbols(this))try{e[t]=this[t]}catch{shadow(e,t,this[t])}e[uo]=`${e[Ws]}${Wo++}`;e[Mo]=[];for(const t of Object.getOwnPropertyNames(this)){if(this[Oo].has(t)){e[t]=XFAObject[Do](this[t]);continue}const a=this[t];e[t]=a instanceof XFAObjectArray?new XFAObjectArray(a[jo]):null}for(const t of this[Mo]){const a=t[Ws],r=t[is]();e[Mo].push(r);r[Uo]=e;null===e[a]?e[a]=r:e[a][Mo].push(r)}return e}[Ss](e=null){return e?this[Mo].filter((t=>t[Ws]===e)):this[Mo]}[ps](e){return this[e]}[ms](e,t,a=!0){return Array.from(this[bs](e,t,a))}*[bs](e,t,a=!0){if("parent"!==e){for(const a of this[Mo]){a[Ws]===e&&(yield a);a.name===e&&(yield a);(t||a[Us]())&&(yield*a[bs](e,t,!1))}a&&this[Oo].has(e)&&(yield new XFAAttribute(this,e,this[e]))}else yield this[Uo]}}class XFAObjectArray{constructor(e=1/0){this[jo]=e;this[Mo]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){if(this[Mo].length<=this[jo]){this[Mo].push(e);return!0}warn(`XFA - node "${e[Ws]}" accepts no more than ${this[jo]} children`);return!1}isEmpty(){return 0===this[Mo].length}dump(){return 1===this[Mo].length?this[Mo][0][cs]():this[Mo].map((e=>e[cs]()))}[is](){const e=new XFAObjectArray(this[jo]);e[Mo]=this[Mo].map((e=>e[is]()));return e}get children(){return this[Mo]}clear(){this[Mo].length=0}}class XFAAttribute{constructor(e,t,a){this[Uo]=e;this[Ws]=t;this[ss]=a;this[ns]=!1;this[uo]="attribute"+Wo++}[vs](){return this[Uo]}[Ns](){return!0}[ys](){return this[ss].trim()}[io](e){e=e.value||"";this[ss]=e.toString()}[so](){return this[ss]}[Es](e){return this[Uo]===e||this[Uo][Es](e)}}class XmlObject extends XFAObject{constructor(e,t,a={}){super(e,t);this[ss]="";this[Bo]=null;if("#text"!==t){const e=new Map;this[Io]=e;for(const[t,r]of Object.entries(a))e.set(t,new XFAAttribute(this,t,r));if(a.hasOwnProperty(zs)){const e=a[zs].xfa.dataNode;void 0!==e&&("dataGroup"===e?this[Bo]=!1:"dataValue"===e&&(this[Bo]=!0))}}this[ns]=!1}[lo](e){const t=this[Ws];if("#text"===t){e.push(encodeToXmlString(this[ss]));return}const a=utf8StringToString(t),r=this[Hs]===zo?"xfa:":"";e.push(`<${r}${a}`);for(const[t,a]of this[Io].entries()){const r=utf8StringToString(t);e.push(` ${r}="${encodeToXmlString(a[ss])}"`)}null!==this[Bo]&&(this[Bo]?e.push(\' xfa:dataNode="dataValue"\'):e.push(\' xfa:dataNode="dataGroup"\'));if(this[ss]||0!==this[Mo].length){e.push(">");if(this[ss])"string"==typeof this[ss]?e.push(encodeToXmlString(this[ss])):this[ss][lo](e);else for(const t of this[Mo])t[lo](e);e.push(`</${r}${a}>`)}else e.push("/>")}[$s](e){if(this[ss]){const e=new XmlObject(this[Hs],"#text");this[Qn](e);e[ss]=this[ss];this[ss]=""}this[Qn](e);return!0}[Vs](e){this[ss]+=e}[hs](){if(this[ss]&&this[Mo].length>0){const e=new XmlObject(this[Hs],"#text");this[Qn](e);e[ss]=this[ss];delete this[ss]}}[co](){return"#text"===this[Ws]?HTMLResult.success({name:"#text",value:this[ss]}):HTMLResult.EMPTY}[Ss](e=null){return e?this[Mo].filter((t=>t[Ws]===e)):this[Mo]}[fs](){return this[Io]}[ps](e){const t=this[Io].get(e);return void 0!==t?t:this[Ss](e)}*[bs](e,t){const a=this[Io].get(e);a&&(yield a);for(const a of this[Mo]){a[Ws]===e&&(yield a);t&&(yield*a[bs](e,t))}}*[ds](e,t){const a=this[Io].get(e);!a||t&&a[ns]||(yield a);for(const a of this[Mo])yield*a[ds](e,t)}*[xs](e,t,a){for(const r of this[Mo]){r[Ws]!==e||a&&r[ns]||(yield r);t&&(yield*r[xs](e,t,a))}}[Ns](){return null===this[Bo]?0===this[Mo].length||this[Mo][0][Hs]===go.xhtml.id:this[Bo]}[ys](){return null===this[Bo]?0===this[Mo].length?this[ss].trim():this[Mo][0][Hs]===go.xhtml.id?this[Mo][0][so]().trim():null:this[ss].trim()}[io](e){e=e.value||"";this[ss]=e.toString()}[cs](e=!1){const t=Object.create(null);e&&(t.$ns=this[Hs]);this[ss]&&(t.$content=this[ss]);t.$name=this[Ws];t.children=[];for(const a of this[Mo])t.children.push(a[cs](e));t.attributes=Object.create(null);for(const[e,a]of this[Io])t.attributes[e]=a[ss];return t}}class ContentObject extends XFAObject{constructor(e,t){super(e,t);this[ss]=""}[Vs](e){this[ss]+=e}[hs](){}}class OptionObject extends ContentObject{constructor(e,t,a){super(e,t);this[_o]=a}[hs](){this[ss]=getKeyword({data:this[ss],defaultValue:this[_o][0],validate:e=>this[_o].includes(e)})}[ts](e){super[ts](e);delete this[_o]}}class StringObject extends ContentObject{[hs](){this[ss]=this[ss].trim()}}class IntegerObject extends ContentObject{constructor(e,t,a,r){super(e,t);this[Ro]=a;this[Ho]=r}[hs](){this[ss]=getInteger({data:this[ss],defaultValue:this[Ro],validate:this[Ho]})}[ts](e){super[ts](e);delete this[Ro];delete this[Ho]}}class Option01 extends IntegerObject{constructor(e,t){super(e,t,0,(e=>1===e))}}class Option10 extends IntegerObject{constructor(e,t){super(e,t,1,(e=>0===e))}}function measureToString(e){return"string"==typeof e?"0px":Number.isInteger(e)?`${e}px`:`${e.toFixed(2)}px`}const $o={anchorType(e,t){const a=e[Cs]();if(a&&(!a.layout||"position"===a.layout)){"transform"in t||(t.transform="");switch(e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}}},dimensions(e,t){const a=e[Cs]();let r=e.w;const i=e.h;if(a.layout?.includes("row")){const t=a[ls],i=e.colSpan;let n;if(-1===i){n=Math.sumPrecise(t.columnWidths.slice(t.currentColumn));t.currentColumn=0}else{n=Math.sumPrecise(t.columnWidths.slice(t.currentColumn,t.currentColumn+i));t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length}isNaN(n)||(r=e.w=n)}t.width=""!==r?measureToString(r):"auto";t.height=""!==i?measureToString(i):"auto"},position(e,t){const a=e[Cs]();if(!a?.layout||"position"===a.layout){t.position="absolute";t.left=measureToString(e.x);t.top=measureToString(e.y)}},rotate(e,t){if(e.rotate){"transform"in t||(t.transform="");t.transform+=`rotate(-${e.rotate}deg)`;t.transformOrigin="top left"}},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[Ws])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[ho]().margin)}};function setMinMaxDimensions(e,t){if("position"===e[Cs]().layout){e.minW>0&&(t.minWidth=measureToString(e.minW));e.maxW>0&&(t.maxWidth=measureToString(e.maxW));e.minH>0&&(t.minHeight=measureToString(e.minH));e.maxH>0&&(t.maxHeight=measureToString(e.maxH))}}function layoutText(e,t,a,r,i,n){const s=new TextMeasure(t,a,r,i);"string"==typeof e?s.addString(e):e[Ks](s);return s.compute(n)}function layoutNode(e,t){let a=null,r=null,i=!1;if((!e.w||!e.h)&&e.value){let n=0,s=0;if(e.margin){n=e.margin.leftInset+e.margin.rightInset;s=e.margin.topInset+e.margin.bottomInset}let o=null,c=null;if(e.para){c=Object.create(null);o=""===e.para.lineHeight?null:e.para.lineHeight;c.top=""===e.para.spaceAbove?0:e.para.spaceAbove;c.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow;c.left=""===e.para.marginLeft?0:e.para.marginLeft;c.right=""===e.para.marginRight?0:e.para.marginRight}let l=e.font;if(!l){const t=e[Fs]();let a=e[vs]();for(;a&&a!==t;){if(a.font){l=a.font;break}a=a[vs]()}}const h=(e.w||t.width)-n,u=e[Is].fontFinder;if(e.value.exData&&e.value.exData[ss]&&"text/html"===e.value.exData.contentType){const t=layoutText(e.value.exData[ss],l,c,o,u,h);r=t.width;a=t.height;i=t.isBroken}else{const t=e.value[so]();if(t){const e=layoutText(t,l,c,o,u,h);r=e.width;a=e.height;i=e.isBroken}}null===r||e.w||(r+=n);null===a||e.h||(a+=s)}return{w:r,h:a,isBroken:i}}function computeBbox(e,t,a){let r;if(""!==e.w&&""!==e.h)r=[e.x,e.y,e.w,e.h];else{if(!a)return null;let i=e.w;if(""===i){if(0===e.maxW){const t=e[Cs]();i="position"===t.layout&&""!==t.w?0:e.minW}else i=Math.min(e.maxW,a.width);t.attributes.style.width=measureToString(i)}let n=e.h;if(""===n){if(0===e.maxH){const t=e[Cs]();n="position"===t.layout&&""!==t.h?0:e.minH}else n=Math.min(e.maxH,a.height);t.attributes.style.height=measureToString(n)}r=[e.x,e.y,i,n]}return r}function fixDimensions(e){const t=e[Cs]();if(t.layout?.includes("row")){const a=t[ls],r=e.colSpan;let i;i=-1===r?Math.sumPrecise(a.columnWidths.slice(a.currentColumn)):Math.sumPrecise(a.columnWidths.slice(a.currentColumn,a.currentColumn+r));isNaN(i)||(e.w=i)}t.layout&&"position"!==t.layout&&(e.x=e.y=0);"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=Math.sumPrecise(e.columnWidths))}function layoutClass(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}}function toStyle(e,...t){const a=Object.create(null);for(const r of t){const t=e[r];if(null!==t)if($o.hasOwnProperty(r))$o[r](e,a);else if(t instanceof XFAObject){const e=t[ho]();e?Object.assign(a,e):warn(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}return a}function createWrapper(e,t){const{attributes:a}=t,{style:r}=a,i={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};a.class.push("xfaWrapped");if(e.border){const{widths:a,insets:n}=e.border[ls];let s,o,c=n[0],l=n[3];const h=n[0]+n[2],u=n[1]+n[3];switch(e.border.hand){case"even":c-=a[0]/2;l-=a[3]/2;s=`calc(100% + ${(a[1]+a[3])/2-u}px)`;o=`calc(100% + ${(a[0]+a[2])/2-h}px)`;break;case"left":c-=a[0];l-=a[3];s=`calc(100% + ${a[1]+a[3]-u}px)`;o=`calc(100% + ${a[0]+a[2]-h}px)`;break;case"right":s=u?`calc(100% - ${u}px)`:"100%";o=h?`calc(100% - ${h}px)`:"100%"}const d=["xfaBorder"];isPrintOnly(e.border)&&d.push("xfaPrintOnly");const f={name:"div",attributes:{class:d,style:{top:`${c}px`,left:`${l}px`,width:s,height:o}},children:[]};for(const e of["border","borderWidth","borderColor","borderRadius","borderStyle"])if(void 0!==r[e]){f.attributes.style[e]=r[e];delete r[e]}i.children.push(f,t)}else i.children.push(t);for(const e of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])if(void 0!==r[e]){i.attributes.style[e]=r[e];delete r[e]}i.attributes.style.position="absolute"===r.position?"absolute":"relative";delete r.position;if(r.alignSelf){i.attributes.style.alignSelf=r.alignSelf;delete r.alignSelf}return i}function fixTextIndent(e){const t=getMeasurement(e.textIndent,"0px");if(t>=0)return;const a="padding"+("left"===("right"===e.textAlign?"right":"left")?"Left":"Right"),r=getMeasurement(e[a],"0px");e[a]=r-t+"px"}function setAccess(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}}function isPrintOnly(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function getCurrentPara(e){const t=e[Fs]()[ls].paraStack;return t.length?t.at(-1):null}function setPara(e,t,a){if(a.attributes.class?.includes("xfaRich")){if(t){""===e.h&&(t.height="auto");""===e.w&&(t.width="auto")}const r=getCurrentPara(e);if(r){const e=a.attributes.style;e.display="flex";e.flexDirection="column";switch(r.vAlign){case"top":e.justifyContent="start";break;case"bottom":e.justifyContent="end";break;case"middle":e.justifyContent="center"}const t=r[ho]();for(const[a,r]of Object.entries(t))a in e||(e[a]=r)}}}function setFontFamily(e,t,a,r){if(!a){delete r.fontFamily;return}const i=stripQuotes(e.typeface);r.fontFamily=`"${i}"`;const n=a.find(i);if(n){const{fontFamily:a}=n.regular.cssFontInfo;a!==i&&(r.fontFamily=`"${a}"`);const s=getCurrentPara(t);if(s&&""!==s.lineHeight)return;if(r.lineHeight)return;const o=selectFont(e,n);o&&(r.lineHeight=Math.max(1.2,o.lineHeight))}}function fixURL(e){const t=createValidAbsoluteUrl(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null}function createLine(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}function flushHTML(e){if(!e[ls])return null;const t={name:"div",attributes:e[ls].attributes,children:e[ls].children};if(e[ls].failingNode){const a=e[ls].failingNode[us]();a&&(e.layout.endsWith("-tb")?t.children.push(createLine(e,[a])):t.children.push(a))}return 0===t.children.length?null:t}function addHTML(e,t,a){const r=e[ls],i=r.availableSpace,[n,s,o,c]=a;switch(e.layout){case"position":r.width=Math.max(r.width,n+o);r.height=Math.max(r.height,s+c);r.children.push(t);break;case"lr-tb":case"rl-tb":if(!r.line||1===r.attempt){r.line=createLine(e,[]);r.children.push(r.line);r.numberInLine=0}r.numberInLine+=1;r.line.children.push(t);if(0===r.attempt){r.currentWidth+=o;r.height=Math.max(r.height,r.prevHeight+c)}else{r.currentWidth=o;r.prevHeight=r.height;r.height+=c;r.attempt=0}r.width=Math.max(r.width,r.currentWidth);break;case"rl-row":case"row":{r.children.push(t);r.width+=o;r.height=Math.max(r.height,c);const e=measureToString(r.height);for(const t of r.children)t.attributes.style.height=e;break}case"table":case"tb":r.width=MathClamp(o,r.width,i.width);r.height+=c;r.children.push(t)}}function getAvailableSpace(e){const t=e[ls].availableSpace,a=e.margin?e.margin.topInset+e.margin.bottomInset:0,r=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[ls].attempt?{width:t.width-r-e[ls].currentWidth,height:t.height-a-e[ls].prevHeight}:{width:t.width-r,height:t.height-a-e[ls].height};case"rl-row":case"row":return{width:Math.sumPrecise(e[ls].columnWidths.slice(e[ls].currentColumn)),height:t.height-r};case"table":case"tb":return{width:t.width-r,height:t.height-a-e[ls].height};default:return t}}function checkDimensions(e,t){if(null===e[Fs]()[ls].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;const a=e[Cs](),r=a[ls]?.attempt||0,[,i,n,s]=function getTransformedBBox(e){let t,a,r=""===e.w?NaN:e.w,i=""===e.h?NaN:e.h,[n,s]=[0,0];switch(e.anchorType||""){case"bottomCenter":[n,s]=[r/2,i];break;case"bottomLeft":[n,s]=[0,i];break;case"bottomRight":[n,s]=[r,i];break;case"middleCenter":[n,s]=[r/2,i/2];break;case"middleLeft":[n,s]=[0,i/2];break;case"middleRight":[n,s]=[r,i/2];break;case"topCenter":[n,s]=[r/2,0];break;case"topRight":[n,s]=[r,0]}switch(e.rotate||0){case 0:[t,a]=[-n,-s];break;case 90:[t,a]=[-s,n];[r,i]=[i,-r];break;case 180:[t,a]=[n,s];[r,i]=[-r,-i];break;case 270:[t,a]=[s,-n];[r,i]=[-i,r]}return[e.x+t+Math.min(0,r),e.y+a+Math.min(0,i),Math.abs(r),Math.abs(i)]}(e);switch(a.layout){case"lr-tb":case"rl-tb":return 0===r?e[Fs]()[ls].noLayoutFailure?""!==e.w?Math.round(n-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(s-t.height)>2)&&(""!==e.w?Math.round(n-t.width)<=2||0===a[ls].numberInLine&&t.height>2:t.width>2):!!e[Fs]()[ls].noLayoutFailure||!(""!==e.h&&Math.round(s-t.height)>2)&&((""===e.w||Math.round(n-t.width)<=2||!a[_s]())&&t.height>2);case"table":case"tb":return!!e[Fs]()[ls].noLayoutFailure||(""===e.h||e[js]()?(""===e.w||Math.round(n-t.width)<=2||!a[_s]())&&t.height>2:Math.round(s-t.height)<=2);case"position":if(e[Fs]()[ls].noLayoutFailure)return!0;if(""===e.h||Math.round(s+i-t.height)<=2)return!0;return s+i>e[Fs]()[ls].currentContentArea.h;case"rl-row":case"row":return!!e[Fs]()[ls].noLayoutFailure||(""===e.h||Math.round(s-t.height)<=2);default:return!0}}const Go=go.template.id,Vo="http://www.w3.org/2000/svg",Ko=/^H(\\d+)$/,Jo=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),Yo=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function getBorderDims(e){if(!e||!e.border)return{w:0,h:0};const t=e.border[ws]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function hasMargin(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function _setValue(e,t){if(!e.value){const t=new Value({});e[Qn](t);e.value=t}e.value[io](t)}function*getContainedChildren(e){for(const t of e[Ss]())t instanceof SubformSet?yield*t[As]():yield t}function isRequired(e){return"error"===e.validate?.nullTest}function setTabIndex(e){for(;e;){if(!e.traversal){e[no]=e[vs]()[no];return}if(e[no])return;let t=null;for(const a of e.traversal[Ss]())if("next"===a.operation){t=a;break}if(!t||!t.ref){e[no]=e[vs]()[no];return}const a=e[Fs]();e[no]=++a[no];const r=a[to](t.ref,e);if(!r)return;e=r[0]}}function applyAssist(e,t){const a=e.assist;if(a){const e=a[co]();e&&(t.title=e);const r=a.role.match(Ko);if(r){const e="heading",a=r[1];t.role=e;t["aria-level"]=a}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{const a=e[vs]();"row"===a.layout&&(t.role="TH"===a.assist?.role?"columnheader":"cell")}}function ariaLabel(e){if(!e.assist)return null;const t=e.assist;return t.speak&&""!==t.speak[ss]?t.speak[ss]:t.toolTip?t.toolTip[ss]:null}function valueToHtml(e){return HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function setFirstUnsplittable(e){const t=e[Fs]();if(null===t[ls].firstUnsplittable){t[ls].firstUnsplittable=e;t[ls].noLayoutFailure=!0}}function unsetFirstUnsplittable(e){const t=e[Fs]();t[ls].firstUnsplittable===e&&(t[ls].noLayoutFailure=!1)}function handleBreak(e){if(e[ls])return!1;e[ls]=Object.create(null);if("auto"===e.targetType)return!1;const t=e[Fs]();let a=null;if(e.target){a=t[to](e.target,e[vs]());if(!a)return!1;a=a[0]}const{currentPageArea:r,currentContentArea:i}=t[ls];if("pageArea"===e.targetType){a instanceof PageArea||(a=null);if(e.startNew){e[ls].target=a||r;return!0}if(a&&a!==r){e[ls].target=a;return!0}return!1}a instanceof ContentArea||(a=null);const n=a&&a[vs]();let s,o=n;if(e.startNew)if(a){const e=n.contentArea.children,t=e.indexOf(i),r=e.indexOf(a);-1!==t&&t<r&&(o=null);s=r-1}else s=r.contentArea.children.indexOf(i);else{if(!a||a===i)return!1;s=n.contentArea.children.indexOf(a)-1;o=n===r?null:n}e[ls].target=o;e[ls].index=s;return!0}function handleOverflow(e,t,a){const r=e[Fs](),i=r[ls].noLayoutFailure,n=t[Cs];t[Cs]=()=>e;r[ls].noLayoutFailure=!0;const s=t[co](a);e[Zn](s.html,s.bbox);r[ls].noLayoutFailure=i;t[Cs]=n}class AppearanceFilter extends StringObject{constructor(e){super(Go,"appearanceFilter");this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Arc extends XFAObject{constructor(e){super(Go,"arc",!0);this.circular=getInteger({data:e.circular,defaultValue:0,validate:e=>1===e});this.hand=getStringOption(e.hand,["even","left","right"]);this.id=e.id||"";this.startAngle=getFloat({data:e.startAngle,defaultValue:0,validate:e=>!0});this.sweepAngle=getFloat({data:e.sweepAngle,defaultValue:360,validate:e=>!0});this.use=e.use||"";this.usehref=e.usehref||"";this.edge=null;this.fill=null}[co](){const e=this.edge||new Edge({}),t=e[ho](),a=Object.create(null);"visible"===this.fill?.presence?Object.assign(a,this.fill[ho]()):a.fill="transparent";a.strokeWidth=measureToString("visible"===e.presence?e.thickness:0);a.stroke=t.color;let r;const i={xmlns:Vo,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)r={name:"ellipse",attributes:{xmlns:Vo,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:a}};else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,n=this.sweepAngle>180?1:0,[s,o,c,l]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];r={name:"path",attributes:{xmlns:Vo,d:`M ${s} ${o} A 50 50 0 ${n} 0 ${c} ${l}`,vectorEffect:"non-scaling-stroke",style:a}};Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const n={name:"svg",children:[r],attributes:i};if(hasMargin(this[vs]()[vs]()))return HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[n]});n.attributes.style.position="absolute";return HTMLResult.success(n)}}class Area extends XFAObject{constructor(e){super(Go,"area",!0);this.colSpan=getInteger({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.id=e.id||"";this.name=e.name||"";this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.x=getMeasurement(e.x,"0pt");this.y=getMeasurement(e.y,"0pt");this.desc=null;this.extras=null;this.area=new XFAObjectArray;this.draw=new XFAObjectArray;this.exObject=new XFAObjectArray;this.exclGroup=new XFAObjectArray;this.field=new XFAObjectArray;this.subform=new XFAObjectArray;this.subformSet=new XFAObjectArray}*[As](){yield*getContainedChildren(this)}[Us](){return!0}[Rs](){return!0}[Zn](e,t){const[a,r,i,n]=t;this[ls].width=Math.max(this[ls].width,a+i);this[ls].height=Math.max(this[ls].height,r+n);this[ls].children.push(e)}[gs](){return this[ls].availableSpace}[co](e){const t=toStyle(this,"position"),a={style:t,id:this[uo],class:["xfaArea"]};isPrintOnly(this)&&a.class.push("xfaPrintOnly");this.name&&(a.xfaName=this.name);const r=[];this[ls]={children:r,width:0,height:0,availableSpace:e};const i=this[es]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!i.success){if(i.isBreak())return i;delete this[ls];return HTMLResult.FAILURE}t.width=measureToString(this[ls].width);t.height=measureToString(this[ls].height);const n={name:"div",attributes:a,children:r},s=[this.x,this.y,this[ls].width,this[ls].height];delete this[ls];return HTMLResult.success(n,s)}}class Assist extends XFAObject{constructor(e){super(Go,"assist",!0);this.id=e.id||"";this.role=e.role||"";this.use=e.use||"";this.usehref=e.usehref||"";this.speak=null;this.toolTip=null}[co](){return this.toolTip?.[ss]||null}}class Barcode extends XFAObject{constructor(e){super(Go,"barcode",!0);this.charEncoding=getKeyword({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\\d{2}/)});this.checksum=getStringOption(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);this.dataColumnCount=getInteger({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0});this.dataLength=getInteger({data:e.dataLength,defaultValue:-1,validate:e=>e>=0});this.dataPrep=getStringOption(e.dataPrep,["none","flateCompress"]);this.dataRowCount=getInteger({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0});this.endChar=e.endChar||"";this.errorCorrectionLevel=getInteger({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8});this.id=e.id||"";this.moduleHeight=getMeasurement(e.moduleHeight,"5mm");this.moduleWidth=getMeasurement(e.moduleWidth,"0.25mm");this.printCheckDigit=getInteger({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e});this.rowColumnRatio=getRatio(e.rowColumnRatio);this.startChar=e.startChar||"";this.textLocation=getStringOption(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);this.truncate=getInteger({data:e.truncate,defaultValue:0,validate:e=>1===e});this.type=getStringOption(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]);this.upsMode=getStringOption(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);this.use=e.use||"";this.usehref=e.usehref||"";this.wideNarrowRatio=getRatio(e.wideNarrowRatio);this.encrypt=null;this.extras=null}}class Bind extends XFAObject{constructor(e){super(Go,"bind",!0);this.match=getStringOption(e.match,["once","dataRef","global","none"]);this.ref=e.ref||"";this.picture=null}}class BindItems extends XFAObject{constructor(e){super(Go,"bindItems");this.connection=e.connection||"";this.labelRef=e.labelRef||"";this.ref=e.ref||"";this.valueRef=e.valueRef||""}}class Bookend extends XFAObject{constructor(e){super(Go,"bookend");this.id=e.id||"";this.leader=e.leader||"";this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||""}}class BooleanElement extends Option01{constructor(e){super(Go,"boolean");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[co](e){return valueToHtml(1===this[ss]?"1":"0")}}class Border extends XFAObject{constructor(e){super(Go,"border",!0);this.break=getStringOption(e.break,["close","open"]);this.hand=getStringOption(e.hand,["even","left","right"]);this.id=e.id||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.corner=new XFAObjectArray(4);this.edge=new XFAObjectArray(4);this.extras=null;this.fill=null;this.margin=null}[ws](){if(!this[ls]){const e=this.edge.children.slice();if(e.length<4){const t=e.at(-1)||new Edge({});for(let a=e.length;a<4;a++)e.push(t)}const t=e.map((e=>e.thickness)),a=[0,0,0,0];if(this.margin){a[0]=this.margin.topInset;a[1]=this.margin.rightInset;a[2]=this.margin.bottomInset;a[3]=this.margin.leftInset}this[ls]={widths:t,insets:a,edges:e}}return this[ls]}[ho](){const{edges:e}=this[ws](),t=e.map((e=>{const t=e[ho]();t.color||="#000000";return t})),a=Object.create(null);this.margin&&Object.assign(a,this.margin[ho]());"visible"===this.fill?.presence&&Object.assign(a,this.fill[ho]());if(this.corner.children.some((e=>0!==e.radius))){const e=this.corner.children.map((e=>e[ho]()));if(2===e.length||3===e.length){const t=e.at(-1);for(let a=e.length;a<4;a++)e.push(t)}a.borderRadius=e.map((e=>e.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":a.borderStyle="";break;case"inactive":a.borderStyle="none";break;default:a.borderStyle=t.map((e=>e.style)).join(" ")}a.borderWidth=t.map((e=>e.width)).join(" ");a.borderColor=t.map((e=>e.color)).join(" ");return a}}class Break extends XFAObject{constructor(e){super(Go,"break",!0);this.after=getStringOption(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.afterTarget=e.afterTarget||"";this.before=getStringOption(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.beforeTarget=e.beforeTarget||"";this.bookendLeader=e.bookendLeader||"";this.bookendTrailer=e.bookendTrailer||"";this.id=e.id||"";this.overflowLeader=e.overflowLeader||"";this.overflowTarget=e.overflowTarget||"";this.overflowTrailer=e.overflowTrailer||"";this.startNew=getInteger({data:e.startNew,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class BreakAfter extends XFAObject{constructor(e){super(Go,"breakAfter",!0);this.id=e.id||"";this.leader=e.leader||"";this.startNew=getInteger({data:e.startNew,defaultValue:0,validate:e=>1===e});this.target=e.target||"";this.targetType=getStringOption(e.targetType,["auto","contentArea","pageArea"]);this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||"";this.script=null}}class BreakBefore extends XFAObject{constructor(e){super(Go,"breakBefore",!0);this.id=e.id||"";this.leader=e.leader||"";this.startNew=getInteger({data:e.startNew,defaultValue:0,validate:e=>1===e});this.target=e.target||"";this.targetType=getStringOption(e.targetType,["auto","contentArea","pageArea"]);this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||"";this.script=null}[co](e){this[ls]={};return HTMLResult.FAILURE}}class Button extends XFAObject{constructor(e){super(Go,"button",!0);this.highlight=getStringOption(e.highlight,["inverted","none","outline","push"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[co](e){const t=this[vs]()[vs](),a={name:"button",attributes:{id:this[uo],class:["xfaButton"],style:{}},children:[]};for(const e of t.event.children){if("click"!==e.activity||!e.script)continue;const t=recoverJsURL(e.script[ss]);if(!t)continue;const r=fixURL(t.url);r&&a.children.push({name:"a",attributes:{id:"link"+this[uo],href:r,newWindow:t.newWindow,class:["xfaLink"],style:{}},children:[]})}return HTMLResult.success(a)}}class Calculate extends XFAObject{constructor(e){super(Go,"calculate",!0);this.id=e.id||"";this.override=getStringOption(e.override,["disabled","error","ignore","warning"]);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.message=null;this.script=null}}class Caption extends XFAObject{constructor(e){super(Go,"caption",!0);this.id=e.id||"";this.placement=getStringOption(e.placement,["left","bottom","inline","right","top"]);this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.reserve=Math.ceil(getMeasurement(e.reserve));this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.font=null;this.margin=null;this.para=null;this.value=null}[io](e){_setValue(this,e)}[ws](e){if(!this[ls]){let{width:t,height:a}=e;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":a=this.reserve<=0?a:this.reserve}this[ls]=layoutNode(this,{width:t,height:a})}return this[ls]}[co](e){if(!this.value)return HTMLResult.EMPTY;this[Ys]();const t=this.value[co](e).html;if(!t){this[Js]();return HTMLResult.EMPTY}const a=this.reserve;if(this.reserve<=0){const{w:t,h:a}=this[ws](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=t;break;case"top":case"bottom":this.reserve=a}}const r=[];"string"==typeof t?r.push({name:"#text",value:t}):r.push(t);const i=toStyle(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(i.width=measureToString(this.reserve));break;case"top":case"bottom":this.reserve>0&&(i.height=measureToString(this.reserve))}setPara(this,null,t);this[Js]();this.reserve=a;return HTMLResult.success({name:"div",attributes:{style:i,class:["xfaCaption"]},children:r})}}class Certificate extends StringObject{constructor(e){super(Go,"certificate");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Certificates extends XFAObject{constructor(e){super(Go,"certificates",!0);this.credentialServerPolicy=getStringOption(e.credentialServerPolicy,["optional","required"]);this.id=e.id||"";this.url=e.url||"";this.urlPolicy=e.urlPolicy||"";this.use=e.use||"";this.usehref=e.usehref||"";this.encryption=null;this.issuers=null;this.keyUsage=null;this.oids=null;this.signing=null;this.subjectDNs=null}}class CheckButton extends XFAObject{constructor(e){super(Go,"checkButton",!0);this.id=e.id||"";this.mark=getStringOption(e.mark,["default","check","circle","cross","diamond","square","star"]);this.shape=getStringOption(e.shape,["square","round"]);this.size=getMeasurement(e.size,"10pt");this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}[co](e){const t=toStyle(this,"margin"),a=measureToString(this.size);t.width=t.height=a;let r,i,n;const s=this[vs]()[vs](),o=s.items.children.length&&s.items.children[0][co]().html||[],c={on:(void 0!==o[0]?o[0]:"on").toString(),off:(void 0!==o[1]?o[1]:"off").toString()},l=(s.value?.[so]()||"off")===c.on||void 0,h=s[Cs](),u=s[uo];let d;if(h instanceof ExclGroup){n=h[uo];r="radio";i="xfaRadio";d=h[os]?.[uo]||h[uo]}else{r="checkbox";i="xfaCheckbox";d=s[os]?.[uo]||s[uo]}const f={name:"input",attributes:{class:[i],style:t,fieldId:u,dataId:d,type:r,checked:l,xfaOn:c.on,xfaOff:c.off,"aria-label":ariaLabel(s),"aria-required":!1}};n&&(f.attributes.name=n);if(isRequired(s)){f.attributes["aria-required"]=!0;f.attributes.required=!0}return HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[f]})}}class ChoiceList extends XFAObject{constructor(e){super(Go,"choiceList",!0);this.commitOn=getStringOption(e.commitOn,["select","exit"]);this.id=e.id||"";this.open=getStringOption(e.open,["userControl","always","multiSelect","onEntry"]);this.textEntry=getInteger({data:e.textEntry,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}[co](e){const t=toStyle(this,"border","margin"),a=this[vs]()[vs](),r={fontSize:`calc(${a.font?.size||10}px * var(--total-scale-factor))`},i=[];if(a.items.children.length>0){const e=a.items;let t=0,n=0;if(2===e.children.length){t=e.children[0].save;n=1-t}const s=e.children[t][co]().html,o=e.children[n][co]().html;let c=!1;const l=a.value?.[so]()||"";for(let e=0,t=s.length;e<t;e++){const t={name:"option",attributes:{value:o[e]||s[e],style:r},value:s[e]};o[e]===l&&(t.attributes.selected=c=!0);i.push(t)}c||i.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const n={class:["xfaSelect"],fieldId:a[uo],dataId:a[os]?.[uo]||a[uo],style:t,"aria-label":ariaLabel(a),"aria-required":!1};if(isRequired(a)){n["aria-required"]=!0;n.required=!0}"multiSelect"===this.open&&(n.multiple=!0);return HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:i,attributes:n}]})}}class Color extends XFAObject{constructor(e){super(Go,"color",!0);this.cSpace=getStringOption(e.cSpace,["SRGB"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.value=e.value?function getColor(e,t=[0,0,0]){let[a,r,i]=t;if(!e)return{r:a,g:r,b:i};const n=e.split(",",3).map((e=>MathClamp(parseInt(e.trim(),10),0,255))).map((e=>isNaN(e)?0:e));if(n.length<3)return{r:a,g:r,b:i};[a,r,i]=n;return{r:a,g:r,b:i}}(e.value):"";this.extras=null}[Ts](){return!1}[ho](){return this.value?Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class Comb extends XFAObject{constructor(e){super(Go,"comb");this.id=e.id||"";this.numberOfCells=getInteger({data:e.numberOfCells,defaultValue:0,validate:e=>e>=0});this.use=e.use||"";this.usehref=e.usehref||""}}class Connect extends XFAObject{constructor(e){super(Go,"connect",!0);this.connection=e.connection||"";this.id=e.id||"";this.ref=e.ref||"";this.usage=getStringOption(e.usage,["exportAndImport","exportOnly","importOnly"]);this.use=e.use||"";this.usehref=e.usehref||"";this.picture=null}}class ContentArea extends XFAObject{constructor(e){super(Go,"contentArea",!0);this.h=getMeasurement(e.h);this.id=e.id||"";this.name=e.name||"";this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.w=getMeasurement(e.w);this.x=getMeasurement(e.x,"0pt");this.y=getMeasurement(e.y,"0pt");this.desc=null;this.extras=null}[co](e){const t={left:measureToString(this.x),top:measureToString(this.y),width:measureToString(this.w),height:measureToString(this.h)},a=["xfaContentarea"];isPrintOnly(this)&&a.push("xfaPrintOnly");return HTMLResult.success({name:"div",children:[],attributes:{style:t,class:a,id:this[uo]}})}}class Corner extends XFAObject{constructor(e){super(Go,"corner",!0);this.id=e.id||"";this.inverted=getInteger({data:e.inverted,defaultValue:0,validate:e=>1===e});this.join=getStringOption(e.join,["square","round"]);this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.radius=getMeasurement(e.radius);this.stroke=getStringOption(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=getMeasurement(e.thickness,"0.5pt");this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[ho](){const e=toStyle(this,"visibility");e.radius=measureToString("square"===this.join?0:this.radius);return e}}class DateElement extends ContentObject{constructor(e){super(Go,"date");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[hs](){const e=this[ss].trim();this[ss]=e?new Date(e):null}[co](e){return valueToHtml(this[ss]?this[ss].toString():"")}}class DateTime extends ContentObject{constructor(e){super(Go,"dateTime");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[hs](){const e=this[ss].trim();this[ss]=e?new Date(e):null}[co](e){return valueToHtml(this[ss]?this[ss].toString():"")}}class DateTimeEdit extends XFAObject{constructor(e){super(Go,"dateTimeEdit",!0);this.hScrollPolicy=getStringOption(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.picker=getStringOption(e.picker,["host","none"]);this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[co](e){const t=toStyle(this,"border","font","margin"),a=this[vs]()[vs](),r={name:"input",attributes:{type:"text",fieldId:a[uo],dataId:a[os]?.[uo]||a[uo],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(a),"aria-required":!1}};if(isRequired(a)){r.attributes["aria-required"]=!0;r.attributes.required=!0}return HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}class Decimal extends ContentObject{constructor(e){super(Go,"decimal");this.fracDigits=getInteger({data:e.fracDigits,defaultValue:2,validate:e=>!0});this.id=e.id||"";this.leadDigits=getInteger({data:e.leadDigits,defaultValue:-1,validate:e=>!0});this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[hs](){const e=parseFloat(this[ss].trim());this[ss]=isNaN(e)?null:e}[co](e){return valueToHtml(null!==this[ss]?this[ss].toString():"")}}class DefaultUi extends XFAObject{constructor(e){super(Go,"defaultUi",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class Desc extends XFAObject{constructor(e){super(Go,"desc",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new XFAObjectArray;this.date=new XFAObjectArray;this.dateTime=new XFAObjectArray;this.decimal=new XFAObjectArray;this.exData=new XFAObjectArray;this.float=new XFAObjectArray;this.image=new XFAObjectArray;this.integer=new XFAObjectArray;this.text=new XFAObjectArray;this.time=new XFAObjectArray}}class DigestMethod extends OptionObject{constructor(e){super(Go,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class DigestMethods extends XFAObject{constructor(e){super(Go,"digestMethods",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.digestMethod=new XFAObjectArray}}class Draw extends XFAObject{constructor(e){super(Go,"draw",!0);this.anchorType=getStringOption(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=getInteger({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?getMeasurement(e.h):"";this.hAlign=getStringOption(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.locale=e.locale||"";this.maxH=getMeasurement(e.maxH,"0pt");this.maxW=getMeasurement(e.maxW,"0pt");this.minH=getMeasurement(e.minH,"0pt");this.minW=getMeasurement(e.minW,"0pt");this.name=e.name||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=getRelevant(e.relevant);this.rotate=getInteger({data:e.rotate,defaultValue:0,validate:e=>e%90==0});this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?getMeasurement(e.w):"";this.x=getMeasurement(e.x,"0pt");this.y=getMeasurement(e.y,"0pt");this.assist=null;this.border=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.value=null;this.setProperty=new XFAObjectArray}[io](e){_setValue(this,e)}[co](e){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence)return HTMLResult.EMPTY;fixDimensions(this);this[Ys]();const t=this.w,a=this.h,{w:r,h:i,isBroken:n}=layoutNode(this,e);if(r&&""===this.w){if(n&&this[Cs]()[_s]()){this[Js]();return HTMLResult.FAILURE}this.w=r}i&&""===this.h&&(this.h=i);setFirstUnsplittable(this);if(!checkDimensions(this,e)){this.w=t;this.h=a;this[Js]();return HTMLResult.FAILURE}unsetFirstUnsplittable(this);const s=toStyle(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");setMinMaxDimensions(this,s);if(s.margin){s.padding=s.margin;delete s.margin}const o=["xfaDraw"];this.font&&o.push("xfaFont");isPrintOnly(this)&&o.push("xfaPrintOnly");const c={style:s,id:this[uo],class:o};this.name&&(c.xfaName=this.name);const l={name:"div",attributes:c,children:[]};applyAssist(this,c);const h=computeBbox(this,l,e),u=this.value?this.value[co](e).html:null;if(null===u){this.w=t;this.h=a;this[Js]();return HTMLResult.success(createWrapper(this,l),h)}l.children.push(u);setPara(this,s,u);this.w=t;this.h=a;this[Js]();return HTMLResult.success(createWrapper(this,l),h)}}class Edge extends XFAObject{constructor(e){super(Go,"edge",!0);this.cap=getStringOption(e.cap,["square","butt","round"]);this.id=e.id||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.stroke=getStringOption(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=getMeasurement(e.thickness,"0.5pt");this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[ho](){const e=toStyle(this,"visibility");Object.assign(e,{linecap:this.cap,width:measureToString(this.thickness),color:this.color?this.color[ho]():"#000000",style:""});if("visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}class Encoding extends OptionObject{constructor(e){super(Go,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Encodings extends XFAObject{constructor(e){super(Go,"encodings",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.encoding=new XFAObjectArray}}class Encrypt extends XFAObject{constructor(e){super(Go,"encrypt",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=null}}class EncryptData extends XFAObject{constructor(e){super(Go,"encryptData",!0);this.id=e.id||"";this.operation=getStringOption(e.operation,["encrypt","decrypt"]);this.target=e.target||"";this.use=e.use||"";this.usehref=e.usehref||"";this.filter=null;this.manifest=null}}class Encryption extends XFAObject{constructor(e){super(Go,"encryption",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new XFAObjectArray}}class EncryptionMethod extends OptionObject{constructor(e){super(Go,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class EncryptionMethods extends XFAObject{constructor(e){super(Go,"encryptionMethods",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.encryptionMethod=new XFAObjectArray}}class Event extends XFAObject{constructor(e){super(Go,"event",!0);this.activity=getStringOption(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]);this.id=e.id||"";this.listen=getStringOption(e.listen,["refOnly","refAndDescendents"]);this.name=e.name||"";this.ref=e.ref||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.encryptData=null;this.execute=null;this.script=null;this.signData=null;this.submit=null}}class ExData extends ContentObject{constructor(e){super(Go,"exData");this.contentType=e.contentType||"";this.href=e.href||"";this.id=e.id||"";this.maxLength=getInteger({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1});this.name=e.name||"";this.rid=e.rid||"";this.transferEncoding=getStringOption(e.transferEncoding,["none","base64","package"]);this.use=e.use||"";this.usehref=e.usehref||""}[Bs](){return"text/html"===this.contentType}[$s](e){if("text/html"===this.contentType&&e[Hs]===go.xhtml.id){this[ss]=e;return!0}if("text/xml"===this.contentType){this[ss]=e;return!0}return!1}[co](e){return"text/html"===this.contentType&&this[ss]?this[ss][co](e):HTMLResult.EMPTY}}class ExObject extends XFAObject{constructor(e){super(Go,"exObject",!0);this.archive=e.archive||"";this.classId=e.classId||"";this.codeBase=e.codeBase||"";this.codeType=e.codeType||"";this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.boolean=new XFAObjectArray;this.date=new XFAObjectArray;this.dateTime=new XFAObjectArray;this.decimal=new XFAObjectArray;this.exData=new XFAObjectArray;this.exObject=new XFAObjectArray;this.float=new XFAObjectArray;this.image=new XFAObjectArray;this.integer=new XFAObjectArray;this.text=new XFAObjectArray;this.time=new XFAObjectArray}}class ExclGroup extends XFAObject{constructor(e){super(Go,"exclGroup",!0);this.access=getStringOption(e.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=e.accessKey||"";this.anchorType=getStringOption(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=getInteger({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?getMeasurement(e.h):"";this.hAlign=getStringOption(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.layout=getStringOption(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.maxH=getMeasurement(e.maxH,"0pt");this.maxW=getMeasurement(e.maxW,"0pt");this.minH=getMeasurement(e.minH,"0pt");this.minW=getMeasurement(e.minW,"0pt");this.name=e.name||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?getMeasurement(e.w):"";this.x=getMeasurement(e.x,"0pt");this.y=getMeasurement(e.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.margin=null;this.para=null;this.traversal=null;this.validate=null;this.connect=new XFAObjectArray;this.event=new XFAObjectArray;this.field=new XFAObjectArray;this.setProperty=new XFAObjectArray}[Rs](){return!0}[Ts](){return!0}[io](e){for(const t of this.field.children){if(!t.value){const e=new Value({});t[Qn](e);t.value=e}t.value[io](e)}}[_s](){return this.layout.endsWith("-tb")&&0===this[ls].attempt&&this[ls].numberInLine>0||this[vs]()[_s]()}[js](){const e=this[Cs]();if(!e[js]())return!1;if(void 0!==this[ls]._isSplittable)return this[ls]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[ls]._isSplittable=!1;return!1}if(e.layout?.endsWith("-tb")&&0!==e[ls].numberInLine)return!1;this[ls]._isSplittable=!0;return!0}[us](){return flushHTML(this)}[Zn](e,t){addHTML(this,e,t)}[gs](){return getAvailableSpace(this)}[co](e){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return HTMLResult.EMPTY;fixDimensions(this);const t=[],a={id:this[uo],class:[]};setAccess(this,a.class);this[ls]||=Object.create(null);Object.assign(this[ls],{children:t,attributes:a,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const r=this[js]();r||setFirstUnsplittable(this);if(!checkDimensions(this,e))return HTMLResult.FAILURE;const i=new Set(["field"]);if(this.layout.includes("row")){const e=this[Cs]().columnWidths;if(Array.isArray(e)&&e.length>0){this[ls].columnWidths=e;this[ls].currentColumn=0}}const n=toStyle(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),s=["xfaExclgroup"],o=layoutClass(this);o&&s.push(o);isPrintOnly(this)&&s.push("xfaPrintOnly");a.style=n;a.class=s;this.name&&(a.xfaName=this.name);this[Ys]();const c="lr-tb"===this.layout||"rl-tb"===this.layout,l=c?2:1;for(;this[ls].attempt<l;this[ls].attempt++){c&&1===this[ls].attempt&&(this[ls].numberInLine=0);const e=this[es]({filter:i,include:!0});if(e.success)break;if(e.isBreak()){this[Js]();return e}if(c&&0===this[ls].attempt&&0===this[ls].numberInLine&&!this[Fs]()[ls].noLayoutFailure){this[ls].attempt=l;break}}this[Js]();r||unsetFirstUnsplittable(this);if(this[ls].attempt===l){r||delete this[ls];return HTMLResult.FAILURE}let h=0,u=0;if(this.margin){h=this.margin.leftInset+this.margin.rightInset;u=this.margin.topInset+this.margin.bottomInset}const d=Math.max(this[ls].width+h,this.w||0),f=Math.max(this[ls].height+u,this.h||0),g=[this.x,this.y,d,f];""===this.w&&(n.width=measureToString(d));""===this.h&&(n.height=measureToString(f));const p={name:"div",attributes:a,children:t};applyAssist(this,a);delete this[ls];return HTMLResult.success(createWrapper(this,p),g)}}class Execute extends XFAObject{constructor(e){super(Go,"execute");this.connection=e.connection||"";this.executeType=getStringOption(e.executeType,["import","remerge"]);this.id=e.id||"";this.runAt=getStringOption(e.runAt,["client","both","server"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Extras extends XFAObject{constructor(e){super(Go,"extras",!0);this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new XFAObjectArray;this.date=new XFAObjectArray;this.dateTime=new XFAObjectArray;this.decimal=new XFAObjectArray;this.exData=new XFAObjectArray;this.extras=new XFAObjectArray;this.float=new XFAObjectArray;this.image=new XFAObjectArray;this.integer=new XFAObjectArray;this.text=new XFAObjectArray;this.time=new XFAObjectArray}}class Field extends XFAObject{constructor(e){super(Go,"field",!0);this.access=getStringOption(e.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=e.accessKey||"";this.anchorType=getStringOption(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=getInteger({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?getMeasurement(e.h):"";this.hAlign=getStringOption(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.locale=e.locale||"";this.maxH=getMeasurement(e.maxH,"0pt");this.maxW=getMeasurement(e.maxW,"0pt");this.minH=getMeasurement(e.minH,"0pt");this.minW=getMeasurement(e.minW,"0pt");this.name=e.name||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=getRelevant(e.relevant);this.rotate=getInteger({data:e.rotate,defaultValue:0,validate:e=>e%90==0});this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?getMeasurement(e.w):"";this.x=getMeasurement(e.x,"0pt");this.y=getMeasurement(e.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.format=null;this.items=new XFAObjectArray(2);this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.validate=null;this.value=null;this.bindItems=new XFAObjectArray;this.connect=new XFAObjectArray;this.event=new XFAObjectArray;this.setProperty=new XFAObjectArray}[Rs](){return!0}[io](e){_setValue(this,e)}[co](e){setTabIndex(this);if(!this.ui){this.ui=new Ui({});this.ui[Is]=this[Is];this[Qn](this.ui);let e;switch(this.items.children.length){case 0:e=new TextEdit({});this.ui.textEdit=e;break;case 1:e=new CheckButton({});this.ui.checkButton=e;break;case 2:e=new ChoiceList({});this.ui.choiceList=e}this.ui[Qn](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return HTMLResult.EMPTY;this.caption&&delete this.caption[ls];this[Ys]();const t=this.caption?this.caption[co](e).html:null,a=this.w,r=this.h;let i=0,n=0;if(this.margin){i=this.margin.leftInset+this.margin.rightInset;n=this.margin.topInset+this.margin.bottomInset}let s=null;if(""===this.w||""===this.h){let t=null,a=null,r=0,o=0;if(this.ui.checkButton)r=o=this.ui.checkButton.size;else{const{w:t,h:a}=layoutNode(this,e);if(null!==t){r=t;o=a}else o=function fonts_getMetrics(e,t=!1){let a=null;if(e){const t=stripQuotes(e.typeface),r=e[Is].fontFinder.find(t);a=selectFont(e,r)}if(!a)return{lineHeight:12,lineGap:2,lineNoGap:10};const r=e.size||10,i=a.lineHeight?Math.max(t?0:1.2,a.lineHeight):1.2,n=void 0===a.lineGap?.2:a.lineGap;return{lineHeight:i*r,lineGap:n*r,lineNoGap:Math.max(1,i-n)*r}}(this.font,!0).lineNoGap}s=getBorderDims(this.ui[ws]());r+=s.w;o+=s.h;if(this.caption){const{w:i,h:n,isBroken:s}=this.caption[ws](e);if(s&&this[Cs]()[_s]()){this[Js]();return HTMLResult.FAILURE}t=i;a=n;switch(this.caption.placement){case"left":case"right":case"inline":t+=r;break;case"top":case"bottom":a+=o}}else{t=r;a=o}if(t&&""===this.w){t+=i;this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<t?t:this.minW)}if(a&&""===this.h){a+=n;this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<a?a:this.minH)}}this[Js]();fixDimensions(this);setFirstUnsplittable(this);if(!checkDimensions(this,e)){this.w=a;this.h=r;this[Js]();return HTMLResult.FAILURE}unsetFirstUnsplittable(this);const o=toStyle(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");setMinMaxDimensions(this,o);const c=["xfaField"];this.font&&c.push("xfaFont");isPrintOnly(this)&&c.push("xfaPrintOnly");const l={style:o,id:this[uo],class:c};if(o.margin){o.padding=o.margin;delete o.margin}setAccess(this,c);this.name&&(l.xfaName=this.name);const h=[],u={name:"div",attributes:l,children:h};applyAssist(this,l);const d=this.border?this.border[ho]():null,f=computeBbox(this,u,e),g=this.ui[co]().html;if(!g){Object.assign(o,d);return HTMLResult.success(createWrapper(this,u),f)}this[no]&&(g.children?.[0]?g.children[0].attributes.tabindex=this[no]:g.attributes.tabindex=this[no]);g.attributes.style||=Object.create(null);let p=null;if(this.ui.button){1===g.children.length&&([p]=g.children.splice(0,1));Object.assign(g.attributes.style,d)}else Object.assign(o,d);h.push(g);if(this.value)if(this.ui.imageEdit)g.children.push(this.value[co]().html);else if(!this.ui.button){let e="";if(this.value.exData)e=this.value.exData[so]();else if(this.value.text)e=this.value.text[ws]();else{const t=this.value[co]().html;null!==t&&(e=t.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(g.children[0].attributes.maxLength=this.value.text.maxChars);if(e){if(this.ui.numericEdit){e=parseFloat(e);e=isNaN(e)?"":e.toString()}"textarea"===g.children[0].name?g.children[0].attributes.textContent=e:g.children[0].attributes.value=e}}if(!this.ui.imageEdit&&g.children?.[0]&&this.h){s=s||getBorderDims(this.ui[ws]());let t=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){t=this.caption.reserve;t<=0&&(t=this.caption[ws](e).h);const a=this.h-t-n-s.h;g.children[0].attributes.style.height=measureToString(a)}else g.children[0].attributes.style.height="100%"}p&&g.children.push(p);if(!t){g.attributes.class&&g.attributes.class.push("xfaLeft");this.w=a;this.h=r;return HTMLResult.success(createWrapper(this,u),f)}if(this.ui.button){o.padding&&delete o.padding;"div"===t.name&&(t.name="span");g.children.push(t);return HTMLResult.success(u,f)}this.ui.checkButton&&(t.attributes.class[0]="xfaCaptionForCheckButton");g.attributes.class||=[];g.children.splice(0,0,t);switch(this.caption.placement){case"left":case"inline":g.attributes.class.push("xfaLeft");break;case"right":g.attributes.class.push("xfaRight");break;case"top":g.attributes.class.push("xfaTop");break;case"bottom":g.attributes.class.push("xfaBottom")}this.w=a;this.h=r;return HTMLResult.success(createWrapper(this,u),f)}}class Fill extends XFAObject{constructor(e){super(Go,"fill",!0);this.id=e.id||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null;this.linear=null;this.pattern=null;this.radial=null;this.solid=null;this.stipple=null}[ho](){const e=this[vs](),t=e[vs]()[vs](),a=Object.create(null);let r="color",i=r;if(e instanceof Border){r="background-color";i="background";t instanceof Ui&&(a.backgroundColor="white")}if(e instanceof Rectangle||e instanceof Arc){r=i="fill";a.fill="white"}for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"color"===e)continue;const t=this[e];if(!(t instanceof XFAObject))continue;const n=t[ho](this.color);n&&(a[n.startsWith("#")?r:i]=n);return a}if(this.color?.value){const e=this.color[ho]();a[e.startsWith("#")?r:i]=e}return a}}class Filter extends XFAObject{constructor(e){super(Go,"filter",!0);this.addRevocationInfo=getStringOption(e.addRevocationInfo,["","required","optional","none"]);this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||"";this.version=getInteger({data:this.version,defaultValue:5,validate:e=>e>=1&&e<=5});this.appearanceFilter=null;this.certificates=null;this.digestMethods=null;this.encodings=null;this.encryptionMethods=null;this.handler=null;this.lockDocument=null;this.mdp=null;this.reasons=null;this.timeStamp=null}}class Float extends ContentObject{constructor(e){super(Go,"float");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[hs](){const e=parseFloat(this[ss].trim());this[ss]=isNaN(e)?null:e}[co](e){return valueToHtml(null!==this[ss]?this[ss].toString():"")}}class template_Font extends XFAObject{constructor(e){super(Go,"font",!0);this.baselineShift=getMeasurement(e.baselineShift);this.fontHorizontalScale=getFloat({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0});this.fontVerticalScale=getFloat({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0});this.id=e.id||"";this.kerningMode=getStringOption(e.kerningMode,["none","pair"]);this.letterSpacing=getMeasurement(e.letterSpacing,"0");this.lineThrough=getInteger({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e});this.lineThroughPeriod=getStringOption(e.lineThroughPeriod,["all","word"]);this.overline=getInteger({data:e.overline,defaultValue:0,validate:e=>1===e||2===e});this.overlinePeriod=getStringOption(e.overlinePeriod,["all","word"]);this.posture=getStringOption(e.posture,["normal","italic"]);this.size=getMeasurement(e.size,"10pt");this.typeface=e.typeface||"Courier";this.underline=getInteger({data:e.underline,defaultValue:0,validate:e=>1===e||2===e});this.underlinePeriod=getStringOption(e.underlinePeriod,["all","word"]);this.use=e.use||"";this.usehref=e.usehref||"";this.weight=getStringOption(e.weight,["normal","bold"]);this.extras=null;this.fill=null}[ts](e){super[ts](e);this[Is].usedTypefaces.add(this.typeface)}[ho](){const e=toStyle(this,"fill"),t=e.color;if(t)if("#000000"===t)delete e.color;else if(!t.startsWith("#")){e.background=t;e.backgroundClip="text";e.color="transparent"}this.baselineShift&&(e.verticalAlign=measureToString(this.baselineShift));e.fontKerning="none"===this.kerningMode?"none":"normal";e.letterSpacing=measureToString(this.letterSpacing);if(0!==this.lineThrough){e.textDecoration="line-through";2===this.lineThrough&&(e.textDecorationStyle="double")}if(0!==this.overline){e.textDecoration="overline";2===this.overline&&(e.textDecorationStyle="double")}e.fontStyle=this.posture;e.fontSize=measureToString(.99*this.size);setFontFamily(this,this,this[Is].fontFinder,e);if(0!==this.underline){e.textDecoration="underline";2===this.underline&&(e.textDecorationStyle="double")}e.fontWeight=this.weight;return e}}class Format extends XFAObject{constructor(e){super(Go,"format",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.picture=null}}class Handler extends StringObject{constructor(e){super(Go,"handler");this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Hyphenation extends XFAObject{constructor(e){super(Go,"hyphenation");this.excludeAllCaps=getInteger({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e});this.excludeInitialCap=getInteger({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e});this.hyphenate=getInteger({data:e.hyphenate,defaultValue:0,validate:e=>1===e});this.id=e.id||"";this.pushCharacterCount=getInteger({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0});this.remainCharacterCount=getInteger({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0});this.use=e.use||"";this.usehref=e.usehref||"";this.wordCharacterCount=getInteger({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}}class Image extends StringObject{constructor(e){super(Go,"image");this.aspect=getStringOption(e.aspect,["fit","actual","height","none","width"]);this.contentType=e.contentType||"";this.href=e.href||"";this.id=e.id||"";this.name=e.name||"";this.transferEncoding=getStringOption(e.transferEncoding,["base64","none","package"]);this.use=e.use||"";this.usehref=e.usehref||""}[co](){if(this.contentType&&!Jo.has(this.contentType.toLowerCase()))return HTMLResult.EMPTY;let e=this[Is].images?.get(this.href);if(!e&&(this.href||!this[ss]))return HTMLResult.EMPTY;e||"base64"!==this.transferEncoding||(e=function fromBase64Util(e){return Uint8Array.fromBase64?Uint8Array.fromBase64(e):stringToBytes(atob(e))}(this[ss]));if(!e)return HTMLResult.EMPTY;if(!this.contentType){for(const[t,a]of Yo)if(e.length>t.length&&t.every(((t,a)=>t===e[a]))){this.contentType=a;break}if(!this.contentType)return HTMLResult.EMPTY}const t=new Blob([e],{type:this.contentType});let a;switch(this.aspect){case"fit":case"actual":break;case"height":a={height:"100%",objectFit:"fill"};break;case"none":a={width:"100%",height:"100%",objectFit:"fill"};break;case"width":a={width:"100%",objectFit:"fill"}}const r=this[vs]();return HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:a,src:URL.createObjectURL(t),alt:r?ariaLabel(r[vs]()):null}})}}class ImageEdit extends XFAObject{constructor(e){super(Go,"imageEdit",!0);this.data=getStringOption(e.data,["link","embed"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}[co](e){return"embed"===this.data?HTMLResult.success({name:"div",children:[],attributes:{}}):HTMLResult.EMPTY}}class Integer extends ContentObject{constructor(e){super(Go,"integer");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[hs](){const e=parseInt(this[ss].trim(),10);this[ss]=isNaN(e)?null:e}[co](e){return valueToHtml(null!==this[ss]?this[ss].toString():"")}}class Issuers extends XFAObject{constructor(e){super(Go,"issuers",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new XFAObjectArray}}class Items extends XFAObject{constructor(e){super(Go,"items",!0);this.id=e.id||"";this.name=e.name||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.ref=e.ref||"";this.save=getInteger({data:e.save,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new XFAObjectArray;this.date=new XFAObjectArray;this.dateTime=new XFAObjectArray;this.decimal=new XFAObjectArray;this.exData=new XFAObjectArray;this.float=new XFAObjectArray;this.image=new XFAObjectArray;this.integer=new XFAObjectArray;this.text=new XFAObjectArray;this.time=new XFAObjectArray}[co](){const e=[];for(const t of this[Ss]())e.push(t[so]());return HTMLResult.success(e)}}class Keep extends XFAObject{constructor(e){super(Go,"keep",!0);this.id=e.id||"";const t=["none","contentArea","pageArea"];this.intact=getStringOption(e.intact,t);this.next=getStringOption(e.next,t);this.previous=getStringOption(e.previous,t);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class KeyUsage extends XFAObject{constructor(e){super(Go,"keyUsage");const t=["","yes","no"];this.crlSign=getStringOption(e.crlSign,t);this.dataEncipherment=getStringOption(e.dataEncipherment,t);this.decipherOnly=getStringOption(e.decipherOnly,t);this.digitalSignature=getStringOption(e.digitalSignature,t);this.encipherOnly=getStringOption(e.encipherOnly,t);this.id=e.id||"";this.keyAgreement=getStringOption(e.keyAgreement,t);this.keyCertSign=getStringOption(e.keyCertSign,t);this.keyEncipherment=getStringOption(e.keyEncipherment,t);this.nonRepudiation=getStringOption(e.nonRepudiation,t);this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Line extends XFAObject{constructor(e){super(Go,"line",!0);this.hand=getStringOption(e.hand,["even","left","right"]);this.id=e.id||"";this.slope=getStringOption(e.slope,["\\\\","/"]);this.use=e.use||"";this.usehref=e.usehref||"";this.edge=null}[co](){const e=this[vs]()[vs](),t=this.edge||new Edge({}),a=t[ho](),r=Object.create(null),i="visible"===t.presence?t.thickness:0;r.strokeWidth=measureToString(i);r.stroke=a.color;let n,s,o,c,l="100%",h="100%";if(e.w<=i){[n,s,o,c]=["50%",0,"50%","100%"];l=r.strokeWidth}else if(e.h<=i){[n,s,o,c]=[0,"50%","100%","50%"];h=r.strokeWidth}else"\\\\"===this.slope?[n,s,o,c]=[0,0,"100%","100%"]:[n,s,o,c]=[0,"100%","100%",0];const u={name:"svg",children:[{name:"line",attributes:{xmlns:Vo,x1:n,y1:s,x2:o,y2:c,style:r}}],attributes:{xmlns:Vo,width:l,height:h,style:{overflow:"visible"}}};if(hasMargin(e))return HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[u]});u.attributes.style.position="absolute";return HTMLResult.success(u)}}class Linear extends XFAObject{constructor(e){super(Go,"linear",!0);this.id=e.id||"";this.type=getStringOption(e.type,["toRight","toBottom","toLeft","toTop"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[ho](e){e=e?e[ho]():"#FFFFFF";return`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${e}, ${this.color?this.color[ho]():"#000000"})`}}class LockDocument extends ContentObject{constructor(e){super(Go,"lockDocument");this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}[hs](){this[ss]=getStringOption(this[ss],["auto","0","1"])}}class Manifest extends XFAObject{constructor(e){super(Go,"manifest",!0);this.action=getStringOption(e.action,["include","all","exclude"]);this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.ref=new XFAObjectArray}}class Margin extends XFAObject{constructor(e){super(Go,"margin",!0);this.bottomInset=getMeasurement(e.bottomInset,"0");this.id=e.id||"";this.leftInset=getMeasurement(e.leftInset,"0");this.rightInset=getMeasurement(e.rightInset,"0");this.topInset=getMeasurement(e.topInset,"0");this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[ho](){return{margin:measureToString(this.topInset)+" "+measureToString(this.rightInset)+" "+measureToString(this.bottomInset)+" "+measureToString(this.leftInset)}}}class Mdp extends XFAObject{constructor(e){super(Go,"mdp");this.id=e.id||"";this.permissions=getInteger({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e});this.signatureType=getStringOption(e.signatureType,["filler","author"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Medium extends XFAObject{constructor(e){super(Go,"medium");this.id=e.id||"";this.imagingBBox=function getBBox(e){const t=-1;if(!e)return{x:t,y:t,width:t,height:t};const a=e.split(",",4).map((e=>getMeasurement(e.trim(),"-1")));if(a.length<4||a[2]<0||a[3]<0)return{x:t,y:t,width:t,height:t};const[r,i,n,s]=a;return{x:r,y:i,width:n,height:s}}(e.imagingBBox);this.long=getMeasurement(e.long);this.orientation=getStringOption(e.orientation,["portrait","landscape"]);this.short=getMeasurement(e.short);this.stock=e.stock||"";this.trayIn=getStringOption(e.trayIn,["auto","delegate","pageFront"]);this.trayOut=getStringOption(e.trayOut,["auto","delegate"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Message extends XFAObject{constructor(e){super(Go,"message",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.text=new XFAObjectArray}}class NumericEdit extends XFAObject{constructor(e){super(Go,"numericEdit",!0);this.hScrollPolicy=getStringOption(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[co](e){const t=toStyle(this,"border","font","margin"),a=this[vs]()[vs](),r={name:"input",attributes:{type:"text",fieldId:a[uo],dataId:a[os]?.[uo]||a[uo],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(a),"aria-required":!1}};if(isRequired(a)){r.attributes["aria-required"]=!0;r.attributes.required=!0}return HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}class Occur extends XFAObject{constructor(e){super(Go,"occur",!0);this.id=e.id||"";this.initial=""!==e.initial?getInteger({data:e.initial,defaultValue:"",validate:e=>!0}):"";this.max=""!==e.max?getInteger({data:e.max,defaultValue:1,validate:e=>!0}):"";this.min=""!==e.min?getInteger({data:e.min,defaultValue:1,validate:e=>!0}):"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[ts](){const e=this[vs](),t=this.min;""===this.min&&(this.min=e instanceof PageArea||e instanceof PageSet?0:1);""===this.max&&(this.max=""===t?e instanceof PageArea||e instanceof PageSet?-1:1:this.min);-1!==this.max&&this.max<this.min&&(this.max=this.min);""===this.initial&&(this.initial=e instanceof Template?1:this.min)}}class Oid extends StringObject{constructor(e){super(Go,"oid");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Oids extends XFAObject{constructor(e){super(Go,"oids",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.oid=new XFAObjectArray}}class Overflow extends XFAObject{constructor(e){super(Go,"overflow");this.id=e.id||"";this.leader=e.leader||"";this.target=e.target||"";this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||""}[ws](){if(!this[ls]){const e=this[vs](),t=this[Fs](),a=t[to](this.target,e),r=t[to](this.leader,e),i=t[to](this.trailer,e);this[ls]={target:a?.[0]||null,leader:r?.[0]||null,trailer:i?.[0]||null,addLeader:!1,addTrailer:!1}}return this[ls]}}class PageArea extends XFAObject{constructor(e){super(Go,"pageArea",!0);this.blankOrNotBlank=getStringOption(e.blankOrNotBlank,["any","blank","notBlank"]);this.id=e.id||"";this.initialNumber=getInteger({data:e.initialNumber,defaultValue:1,validate:e=>!0});this.name=e.name||"";this.numbered=getInteger({data:e.numbered,defaultValue:1,validate:e=>!0});this.oddOrEven=getStringOption(e.oddOrEven,["any","even","odd"]);this.pagePosition=getStringOption(e.pagePosition,["any","first","last","only","rest"]);this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.desc=null;this.extras=null;this.medium=null;this.occur=null;this.area=new XFAObjectArray;this.contentArea=new XFAObjectArray;this.draw=new XFAObjectArray;this.exclGroup=new XFAObjectArray;this.field=new XFAObjectArray;this.subform=new XFAObjectArray}[Xs](){if(!this[ls]){this[ls]={numberOfUse:0};return!0}return!this.occur||-1===this.occur.max||this[ls].numberOfUse<this.occur.max}[as](){delete this[ls]}[ks](){this[ls]||={numberOfUse:0};const e=this[vs]();if("orderedOccurrence"===e.relation&&this[Xs]()){this[ls].numberOfUse+=1;return this}return e[ks]()}[gs](){return this[ls].space||{width:0,height:0}}[co](){this[ls]||={numberOfUse:1};const e=[];this[ls].children=e;const t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){t.width=measureToString(this.medium.short);t.height=measureToString(this.medium.long);this[ls].space={width:this.medium.short,height:this.medium.long};if("landscape"===this.medium.orientation){const e=t.width;t.width=t.height;t.height=e;this[ls].space={width:this.medium.long,height:this.medium.short}}}else warn("XFA - No medium specified in pageArea: please file a bug.");this[es]({filter:new Set(["area","draw","field","subform"]),include:!0});this[es]({filter:new Set(["contentArea"]),include:!0});return HTMLResult.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[uo],style:t,xfaName:this.name}})}}class PageSet extends XFAObject{constructor(e){super(Go,"pageSet",!0);this.duplexImposition=getStringOption(e.duplexImposition,["longEdge","shortEdge"]);this.id=e.id||"";this.name=e.name||"";this.relation=getStringOption(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.occur=null;this.pageArea=new XFAObjectArray;this.pageSet=new XFAObjectArray}[as](){for(const e of this.pageArea.children)e[as]();for(const e of this.pageSet.children)e[as]()}[Xs](){return!this.occur||-1===this.occur.max||this[ls].numberOfUse<this.occur.max}[ks](){this[ls]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1};if("orderedOccurrence"===this.relation){if(this[ls].pageIndex+1<this.pageArea.children.length){this[ls].pageIndex+=1;return this.pageArea.children[this[ls].pageIndex][ks]()}if(this[ls].pageSetIndex+1<this.pageSet.children.length){this[ls].pageSetIndex+=1;return this.pageSet.children[this[ls].pageSetIndex][ks]()}if(this[Xs]()){this[ls].numberOfUse+=1;this[ls].pageIndex=-1;this[ls].pageSetIndex=-1;return this[ks]()}const e=this[vs]();if(e instanceof PageSet)return e[ks]();this[as]();return this[ks]()}const e=this[Fs]()[ls].pageNumber,t=e%2==0?"even":"odd",a=0===e?"first":"rest";let r=this.pageArea.children.find((e=>e.oddOrEven===t&&e.pagePosition===a));if(r)return r;r=this.pageArea.children.find((e=>"any"===e.oddOrEven&&e.pagePosition===a));if(r)return r;r=this.pageArea.children.find((e=>"any"===e.oddOrEven&&"any"===e.pagePosition));return r||this.pageArea.children[0]}}class Para extends XFAObject{constructor(e){super(Go,"para",!0);this.hAlign=getStringOption(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.lineHeight=e.lineHeight?getMeasurement(e.lineHeight,"0pt"):"";this.marginLeft=e.marginLeft?getMeasurement(e.marginLeft,"0pt"):"";this.marginRight=e.marginRight?getMeasurement(e.marginRight,"0pt"):"";this.orphans=getInteger({data:e.orphans,defaultValue:0,validate:e=>e>=0});this.preserve=e.preserve||"";this.radixOffset=e.radixOffset?getMeasurement(e.radixOffset,"0pt"):"";this.spaceAbove=e.spaceAbove?getMeasurement(e.spaceAbove,"0pt"):"";this.spaceBelow=e.spaceBelow?getMeasurement(e.spaceBelow,"0pt"):"";this.tabDefault=e.tabDefault?getMeasurement(this.tabDefault):"";this.tabStops=(e.tabStops||"").trim().split(/\\s+/).map(((e,t)=>t%2==1?getMeasurement(e):e));this.textIndent=e.textIndent?getMeasurement(e.textIndent,"0pt"):"";this.use=e.use||"";this.usehref=e.usehref||"";this.vAlign=getStringOption(e.vAlign,["top","bottom","middle"]);this.widows=getInteger({data:e.widows,defaultValue:0,validate:e=>e>=0});this.hyphenation=null}[ho](){const e=toStyle(this,"hAlign");""!==this.marginLeft&&(e.paddingLeft=measureToString(this.marginLeft));""!==this.marginRight&&(e.paddingRight=measureToString(this.marginRight));""!==this.spaceAbove&&(e.paddingTop=measureToString(this.spaceAbove));""!==this.spaceBelow&&(e.paddingBottom=measureToString(this.spaceBelow));if(""!==this.textIndent){e.textIndent=measureToString(this.textIndent);fixTextIndent(e)}this.lineHeight>0&&(e.lineHeight=measureToString(this.lineHeight));""!==this.tabDefault&&(e.tabSize=measureToString(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(e,this.hyphenatation[ho]());return e}}class PasswordEdit extends XFAObject{constructor(e){super(Go,"passwordEdit",!0);this.hScrollPolicy=getStringOption(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.passwordChar=e.passwordChar||"*";this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}}class template_Pattern extends XFAObject{constructor(e){super(Go,"pattern",!0);this.id=e.id||"";this.type=getStringOption(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[ho](e){e=e?e[ho]():"#FFFFFF";const t=this.color?this.color[ho]():"#000000",a="repeating-linear-gradient",r=`${e},${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case"crossHatch":return`${a}(to top,${r}) ${a}(to right,${r})`;case"crossDiagonal":return`${a}(45deg,${r}) ${a}(-45deg,${r})`;case"diagonalLeft":return`${a}(45deg,${r})`;case"diagonalRight":return`${a}(-45deg,${r})`;case"horizontal":return`${a}(to top,${r})`;case"vertical":return`${a}(to right,${r})`}return""}}class Picture extends StringObject{constructor(e){super(Go,"picture");this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Proto extends XFAObject{constructor(e){super(Go,"proto",!0);this.appearanceFilter=new XFAObjectArray;this.arc=new XFAObjectArray;this.area=new XFAObjectArray;this.assist=new XFAObjectArray;this.barcode=new XFAObjectArray;this.bindItems=new XFAObjectArray;this.bookend=new XFAObjectArray;this.boolean=new XFAObjectArray;this.border=new XFAObjectArray;this.break=new XFAObjectArray;this.breakAfter=new XFAObjectArray;this.breakBefore=new XFAObjectArray;this.button=new XFAObjectArray;this.calculate=new XFAObjectArray;this.caption=new XFAObjectArray;this.certificate=new XFAObjectArray;this.certificates=new XFAObjectArray;this.checkButton=new XFAObjectArray;this.choiceList=new XFAObjectArray;this.color=new XFAObjectArray;this.comb=new XFAObjectArray;this.connect=new XFAObjectArray;this.contentArea=new XFAObjectArray;this.corner=new XFAObjectArray;this.date=new XFAObjectArray;this.dateTime=new XFAObjectArray;this.dateTimeEdit=new XFAObjectArray;this.decimal=new XFAObjectArray;this.defaultUi=new XFAObjectArray;this.desc=new XFAObjectArray;this.digestMethod=new XFAObjectArray;this.digestMethods=new XFAObjectArray;this.draw=new XFAObjectArray;this.edge=new XFAObjectArray;this.encoding=new XFAObjectArray;this.encodings=new XFAObjectArray;this.encrypt=new XFAObjectArray;this.encryptData=new XFAObjectArray;this.encryption=new XFAObjectArray;this.encryptionMethod=new XFAObjectArray;this.encryptionMethods=new XFAObjectArray;this.event=new XFAObjectArray;this.exData=new XFAObjectArray;this.exObject=new XFAObjectArray;this.exclGroup=new XFAObjectArray;this.execute=new XFAObjectArray;this.extras=new XFAObjectArray;this.field=new XFAObjectArray;this.fill=new XFAObjectArray;this.filter=new XFAObjectArray;this.float=new XFAObjectArray;this.font=new XFAObjectArray;this.format=new XFAObjectArray;this.handler=new XFAObjectArray;this.hyphenation=new XFAObjectArray;this.image=new XFAObjectArray;this.imageEdit=new XFAObjectArray;this.integer=new XFAObjectArray;this.issuers=new XFAObjectArray;this.items=new XFAObjectArray;this.keep=new XFAObjectArray;this.keyUsage=new XFAObjectArray;this.line=new XFAObjectArray;this.linear=new XFAObjectArray;this.lockDocument=new XFAObjectArray;this.manifest=new XFAObjectArray;this.margin=new XFAObjectArray;this.mdp=new XFAObjectArray;this.medium=new XFAObjectArray;this.message=new XFAObjectArray;this.numericEdit=new XFAObjectArray;this.occur=new XFAObjectArray;this.oid=new XFAObjectArray;this.oids=new XFAObjectArray;this.overflow=new XFAObjectArray;this.pageArea=new XFAObjectArray;this.pageSet=new XFAObjectArray;this.para=new XFAObjectArray;this.passwordEdit=new XFAObjectArray;this.pattern=new XFAObjectArray;this.picture=new XFAObjectArray;this.radial=new XFAObjectArray;this.reason=new XFAObjectArray;this.reasons=new XFAObjectArray;this.rectangle=new XFAObjectArray;this.ref=new XFAObjectArray;this.script=new XFAObjectArray;this.setProperty=new XFAObjectArray;this.signData=new XFAObjectArray;this.signature=new XFAObjectArray;this.signing=new XFAObjectArray;this.solid=new XFAObjectArray;this.speak=new XFAObjectArray;this.stipple=new XFAObjectArray;this.subform=new XFAObjectArray;this.subformSet=new XFAObjectArray;this.subjectDN=new XFAObjectArray;this.subjectDNs=new XFAObjectArray;this.submit=new XFAObjectArray;this.text=new XFAObjectArray;this.textEdit=new XFAObjectArray;this.time=new XFAObjectArray;this.timeStamp=new XFAObjectArray;this.toolTip=new XFAObjectArray;this.traversal=new XFAObjectArray;this.traverse=new XFAObjectArray;this.ui=new XFAObjectArray;this.validate=new XFAObjectArray;this.value=new XFAObjectArray;this.variables=new XFAObjectArray}}class Radial extends XFAObject{constructor(e){super(Go,"radial",!0);this.id=e.id||"";this.type=getStringOption(e.type,["toEdge","toCenter"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[ho](e){e=e?e[ho]():"#FFFFFF";const t=this.color?this.color[ho]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?`${e},${t}`:`${t},${e}`})`}}class Reason extends StringObject{constructor(e){super(Go,"reason");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Reasons extends XFAObject{constructor(e){super(Go,"reasons",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.reason=new XFAObjectArray}}class Rectangle extends XFAObject{constructor(e){super(Go,"rectangle",!0);this.hand=getStringOption(e.hand,["even","left","right"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.corner=new XFAObjectArray(4);this.edge=new XFAObjectArray(4);this.fill=null}[co](){const e=this.edge.children.length?this.edge.children[0]:new Edge({}),t=e[ho](),a=Object.create(null);"visible"===this.fill?.presence?Object.assign(a,this.fill[ho]()):a.fill="transparent";a.strokeWidth=measureToString("visible"===e.presence?e.thickness:0);a.stroke=t.color;const r=(this.corner.children.length?this.corner.children[0]:new Corner({}))[ho](),i={name:"svg",children:[{name:"rect",attributes:{xmlns:Vo,width:"100%",height:"100%",x:0,y:0,rx:r.radius,ry:r.radius,style:a}}],attributes:{xmlns:Vo,style:{overflow:"visible"},width:"100%",height:"100%"}};if(hasMargin(this[vs]()[vs]()))return HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[i]});i.attributes.style.position="absolute";return HTMLResult.success(i)}}class RefElement extends StringObject{constructor(e){super(Go,"ref");this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Script extends StringObject{constructor(e){super(Go,"script");this.binding=e.binding||"";this.contentType=e.contentType||"";this.id=e.id||"";this.name=e.name||"";this.runAt=getStringOption(e.runAt,["client","both","server"]);this.use=e.use||"";this.usehref=e.usehref||""}}class SetProperty extends XFAObject{constructor(e){super(Go,"setProperty");this.connection=e.connection||"";this.ref=e.ref||"";this.target=e.target||""}}class SignData extends XFAObject{constructor(e){super(Go,"signData",!0);this.id=e.id||"";this.operation=getStringOption(e.operation,["sign","clear","verify"]);this.ref=e.ref||"";this.target=e.target||"";this.use=e.use||"";this.usehref=e.usehref||"";this.filter=null;this.manifest=null}}class Signature extends XFAObject{constructor(e){super(Go,"signature",!0);this.id=e.id||"";this.type=getStringOption(e.type,["PDF1.3","PDF1.6"]);this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.filter=null;this.manifest=null;this.margin=null}}class Signing extends XFAObject{constructor(e){super(Go,"signing",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new XFAObjectArray}}class Solid extends XFAObject{constructor(e){super(Go,"solid",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[ho](e){return e?e[ho]():"#FFFFFF"}}class Speak extends StringObject{constructor(e){super(Go,"speak");this.disable=getInteger({data:e.disable,defaultValue:0,validate:e=>1===e});this.id=e.id||"";this.priority=getStringOption(e.priority,["custom","caption","name","toolTip"]);this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Stipple extends XFAObject{constructor(e){super(Go,"stipple",!0);this.id=e.id||"";this.rate=getInteger({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100});this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[ho](e){const t=this.rate/100;return Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class Subform extends XFAObject{constructor(e){super(Go,"subform",!0);this.access=getStringOption(e.access,["open","nonInteractive","protected","readOnly"]);this.allowMacro=getInteger({data:e.allowMacro,defaultValue:0,validate:e=>1===e});this.anchorType=getStringOption(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=getInteger({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.columnWidths=(e.columnWidths||"").trim().split(/\\s+/).map((e=>"-1"===e?-1:getMeasurement(e)));this.h=e.h?getMeasurement(e.h):"";this.hAlign=getStringOption(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.layout=getStringOption(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.locale=e.locale||"";this.maxH=getMeasurement(e.maxH,"0pt");this.maxW=getMeasurement(e.maxW,"0pt");this.mergeMode=getStringOption(e.mergeMode,["consumeData","matchTemplate"]);this.minH=getMeasurement(e.minH,"0pt");this.minW=getMeasurement(e.minW,"0pt");this.name=e.name||"";this.presence=getStringOption(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=getRelevant(e.relevant);this.restoreState=getStringOption(e.restoreState,["manual","auto"]);this.scope=getStringOption(e.scope,["name","none"]);this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?getMeasurement(e.w):"";this.x=getMeasurement(e.x,"0pt");this.y=getMeasurement(e.y,"0pt");this.assist=null;this.bind=null;this.bookend=null;this.border=null;this.break=null;this.calculate=null;this.desc=null;this.extras=null;this.keep=null;this.margin=null;this.occur=null;this.overflow=null;this.pageSet=null;this.para=null;this.traversal=null;this.validate=null;this.variables=null;this.area=new XFAObjectArray;this.breakAfter=new XFAObjectArray;this.breakBefore=new XFAObjectArray;this.connect=new XFAObjectArray;this.draw=new XFAObjectArray;this.event=new XFAObjectArray;this.exObject=new XFAObjectArray;this.exclGroup=new XFAObjectArray;this.field=new XFAObjectArray;this.proto=new XFAObjectArray;this.setProperty=new XFAObjectArray;this.subform=new XFAObjectArray;this.subformSet=new XFAObjectArray}[Cs](){const e=this[vs]();return e instanceof SubformSet?e[Cs]():e}[Rs](){return!0}[_s](){return this.layout.endsWith("-tb")&&0===this[ls].attempt&&this[ls].numberInLine>0||this[vs]()[_s]()}*[As](){yield*getContainedChildren(this)}[us](){return flushHTML(this)}[Zn](e,t){addHTML(this,e,t)}[gs](){return getAvailableSpace(this)}[js](){const e=this[Cs]();if(!e[js]())return!1;if(void 0!==this[ls]._isSplittable)return this[ls]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[ls]._isSplittable=!1;return!1}if(this.keep&&"none"!==this.keep.intact){this[ls]._isSplittable=!1;return!1}if(e.layout?.endsWith("-tb")&&0!==e[ls].numberInLine)return!1;this[ls]._isSplittable=!0;return!0}[co](e){setTabIndex(this);if(this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new BreakAfter({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[Is]=this[Is];this[Qn](e);this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new BreakBefore({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[Is]=this[Is];this[Qn](e);this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new Overflow({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[Is]=this[Is];this[Qn](e);this.overflow.push(e)}this[Zs](this.break);this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return HTMLResult.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&warn("XFA - Several breakBefore or breakAfter in subforms: please file a bug.");if(this.breakBefore.children.length>=1){const e=this.breakBefore.children[0];if(handleBreak(e))return HTMLResult.breakNode(e)}if(this[ls]?.afterBreakAfter)return HTMLResult.EMPTY;fixDimensions(this);const t=[],a={id:this[uo],class:[]};setAccess(this,a.class);this[ls]||=Object.create(null);Object.assign(this[ls],{children:t,line:null,attributes:a,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const r=this[Fs](),i=r[ls].noLayoutFailure,n=this[js]();n||setFirstUnsplittable(this);if(!checkDimensions(this,e))return HTMLResult.FAILURE;const s=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const e=this[Cs]().columnWidths;if(Array.isArray(e)&&e.length>0){this[ls].columnWidths=e;this[ls].currentColumn=0}}const o=toStyle(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),c=["xfaSubform"],l=layoutClass(this);l&&c.push(l);a.style=o;a.class=c;this.name&&(a.xfaName=this.name);if(this.overflow){const t=this.overflow[ws]();if(t.addLeader){t.addLeader=!1;handleOverflow(this,t.leader,e)}}this[Ys]();const h="lr-tb"===this.layout||"rl-tb"===this.layout,u=h?2:1;for(;this[ls].attempt<u;this[ls].attempt++){h&&1===this[ls].attempt&&(this[ls].numberInLine=0);const e=this[es]({filter:s,include:!0});if(e.success)break;if(e.isBreak()){this[Js]();return e}if(h&&0===this[ls].attempt&&0===this[ls].numberInLine&&!r[ls].noLayoutFailure){this[ls].attempt=u;break}}this[Js]();n||unsetFirstUnsplittable(this);r[ls].noLayoutFailure=i;if(this[ls].attempt===u){this.overflow&&(this[Fs]()[ls].overflowNode=this.overflow);n||delete this[ls];return HTMLResult.FAILURE}if(this.overflow){const t=this.overflow[ws]();if(t.addTrailer){t.addTrailer=!1;handleOverflow(this,t.trailer,e)}}let d=0,f=0;if(this.margin){d=this.margin.leftInset+this.margin.rightInset;f=this.margin.topInset+this.margin.bottomInset}const g=Math.max(this[ls].width+d,this.w||0),p=Math.max(this[ls].height+f,this.h||0),m=[this.x,this.y,g,p];""===this.w&&(o.width=measureToString(g));""===this.h&&(o.height=measureToString(p));if(("0px"===o.width||"0px"===o.height)&&0===t.length)return HTMLResult.EMPTY;const b={name:"div",attributes:a,children:t};applyAssist(this,a);const y=HTMLResult.success(createWrapper(this,b),m);if(this.breakAfter.children.length>=1){const e=this.breakAfter.children[0];if(handleBreak(e)){this[ls].afterBreakAfter=y;return HTMLResult.breakNode(e)}}delete this[ls];return y}}class SubformSet extends XFAObject{constructor(e){super(Go,"subformSet",!0);this.id=e.id||"";this.name=e.name||"";this.relation=getStringOption(e.relation,["ordered","choice","unordered"]);this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.bookend=null;this.break=null;this.desc=null;this.extras=null;this.occur=null;this.overflow=null;this.breakAfter=new XFAObjectArray;this.breakBefore=new XFAObjectArray;this.subform=new XFAObjectArray;this.subformSet=new XFAObjectArray}*[As](){yield*getContainedChildren(this)}[Cs](){let e=this[vs]();for(;!(e instanceof Subform);)e=e[vs]();return e}[Rs](){return!0}}class SubjectDN extends ContentObject{constructor(e){super(Go,"subjectDN");this.delimiter=e.delimiter||",";this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[hs](){this[ss]=new Map(this[ss].split(this.delimiter).map((e=>{(e=e.split("=",2))[0]=e[0].trim();return e})))}}class SubjectDNs extends XFAObject{constructor(e){super(Go,"subjectDNs",!0);this.id=e.id||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.subjectDN=new XFAObjectArray}}class Submit extends XFAObject{constructor(e){super(Go,"submit",!0);this.embedPDF=getInteger({data:e.embedPDF,defaultValue:0,validate:e=>1===e});this.format=getStringOption(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);this.id=e.id||"";this.target=e.target||"";this.textEncoding=getKeyword({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\\d{2}/)});this.use=e.use||"";this.usehref=e.usehref||"";this.xdpContent=e.xdpContent||"";this.encrypt=null;this.encryptData=new XFAObjectArray;this.signData=new XFAObjectArray}}class Template extends XFAObject{constructor(e){super(Go,"template",!0);this.baseProfile=getStringOption(e.baseProfile,["full","interactiveForms"]);this.extras=null;this.subform=new XFAObjectArray}[hs](){0===this.subform.children.length&&warn("XFA - No subforms in template node.");this.subform.children.length>=2&&warn("XFA - Several subforms in template node: please file a bug.");this[no]=5e3}[js](){return!0}[to](e,t){return e.startsWith("#")?[this[Os].get(e.slice(1))]:searchNode(this,t,e,!0,!0)}*[oo](){if(!this.subform.children.length)return HTMLResult.success({name:"div",children:[]});this[ls]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const e=this.subform.children[0];e.pageSet[as]();const t=e.pageSet.pageArea.children,a={name:"div",children:[]};let r=null,i=null,n=null;if(e.breakBefore.children.length>=1){i=e.breakBefore.children[0];n=i.target}else if(e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1){i=e.subform.children[0].breakBefore.children[0];n=i.target}else if(e.break?.beforeTarget){i=e.break;n=i.beforeTarget}else if(e.subform.children.length>=1&&e.subform.children[0].break?.beforeTarget){i=e.subform.children[0].break;n=i.beforeTarget}if(i){const e=this[to](n,i[vs]());if(e instanceof PageArea){r=e;i[ls]={}}}r||=t[0];r[ls]={numberOfUse:1};const s=r[vs]();s[ls]={numberOfUse:1,pageIndex:s.pageArea.children.indexOf(r),pageSetIndex:0};let o,c=null,l=null,h=!0,u=0,d=0;for(;;){if(h)u=0;else{a.children.pop();if(3==++u){warn("XFA - Something goes wrong: please file a bug.");return a}}o=null;this[ls].currentPageArea=r;const t=r[co]().html;a.children.push(t);if(c){this[ls].noLayoutFailure=!0;t.children.push(c[co](r[ls].space).html);c=null}if(l){this[ls].noLayoutFailure=!0;t.children.push(l[co](r[ls].space).html);l=null}const i=r.contentArea.children,n=t.children.filter((e=>e.attributes.class.includes("xfaContentarea")));h=!1;this[ls].firstUnsplittable=null;this[ls].noLayoutFailure=!1;const flush=t=>{const a=e[us]();if(a){h||=a.children?.length>0;n[t].children.push(a)}};for(let t=d,r=i.length;t<r;t++){const r=this[ls].currentContentArea=i[t],s={width:r.w,height:r.h};d=0;if(c){n[t].children.push(c[co](s).html);c=null}if(l){n[t].children.push(l[co](s).html);l=null}const u=e[co](s);if(u.success){if(u.html){h||=u.html.children?.length>0;n[t].children.push(u.html)}else!h&&a.children.length>1&&a.children.pop();return a}if(u.isBreak()){const e=u.breakNode;flush(t);if("auto"===e.targetType)continue;if(e.leader){c=this[to](e.leader,e[vs]());c=c?c[0]:null}if(e.trailer){l=this[to](e.trailer,e[vs]());l=l?l[0]:null}if("pageArea"===e.targetType){o=e[ls].target;t=1/0}else if(e[ls].target){o=e[ls].target;d=e[ls].index+1;t=1/0}else t=e[ls].index}else if(this[ls].overflowNode){const e=this[ls].overflowNode;this[ls].overflowNode=null;const a=e[ws](),r=a.target;a.addLeader=null!==a.leader;a.addTrailer=null!==a.trailer;flush(t);const n=t;t=1/0;if(r instanceof PageArea)o=r;else if(r instanceof ContentArea){const e=i.indexOf(r);if(-1!==e)e>n?t=e-1:d=e;else{o=r[vs]();d=o.contentArea.children.indexOf(r)}}}else flush(t)}this[ls].pageNumber+=1;o&&(o[Xs]()?o[ls].numberOfUse+=1:o=null);r=o||r[ks]();yield null}}}class Text extends ContentObject{constructor(e){super(Go,"text");this.id=e.id||"";this.maxChars=getInteger({data:e.maxChars,defaultValue:0,validate:e=>e>=0});this.name=e.name||"";this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}[Yn](){return!0}[$s](e){if(e[Hs]===go.xhtml.id){this[ss]=e;return!0}warn(`XFA - Invalid content in Text: ${e[Ws]}.`);return!1}[Vs](e){this[ss]instanceof XFAObject||super[Vs](e)}[hs](){"string"==typeof this[ss]&&(this[ss]=this[ss].replaceAll("\\r\\n","\\n"))}[ws](){return"string"==typeof this[ss]?this[ss].split(/[\\u2029\\u2028\\n]/).filter((e=>!!e)).join("\\n"):this[ss][so]()}[co](e){if("string"==typeof this[ss]){const e=valueToHtml(this[ss]).html;if(this[ss].includes("\\u2029")){e.name="div";e.children=[];this[ss].split("\\u2029").map((e=>e.split(/[\\u2028\\n]/).flatMap((e=>[{name:"span",value:e},{name:"br"}])))).forEach((t=>{e.children.push({name:"p",children:t})}))}else if(/[\\u2028\\n]/.test(this[ss])){e.name="div";e.children=[];this[ss].split(/[\\u2028\\n]/).forEach((t=>{e.children.push({name:"span",value:t},{name:"br"})}))}return HTMLResult.success(e)}return this[ss][co](e)}}class TextEdit extends XFAObject{constructor(e){super(Go,"textEdit",!0);this.allowRichText=getInteger({data:e.allowRichText,defaultValue:0,validate:e=>1===e});this.hScrollPolicy=getStringOption(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.multiLine=getInteger({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.vScrollPolicy=getStringOption(e.vScrollPolicy,["auto","off","on"]);this.border=null;this.comb=null;this.extras=null;this.margin=null}[co](e){const t=toStyle(this,"border","font","margin");let a;const r=this[vs]()[vs]();""===this.multiLine&&(this.multiLine=r instanceof Draw?1:0);a=1===this.multiLine?{name:"textarea",attributes:{dataId:r[os]?.[uo]||r[uo],fieldId:r[uo],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(r),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:r[os]?.[uo]||r[uo],fieldId:r[uo],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(r),"aria-required":!1}};if(isRequired(r)){a.attributes["aria-required"]=!0;a.attributes.required=!0}return HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class Time extends StringObject{constructor(e){super(Go,"time");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[hs](){const e=this[ss].trim();this[ss]=e?new Date(e):null}[co](e){return valueToHtml(this[ss]?this[ss].toString():"")}}class TimeStamp extends XFAObject{constructor(e){super(Go,"timeStamp");this.id=e.id||"";this.server=e.server||"";this.type=getStringOption(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class ToolTip extends StringObject{constructor(e){super(Go,"toolTip");this.id=e.id||"";this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Traversal extends XFAObject{constructor(e){super(Go,"traversal",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.traverse=new XFAObjectArray}}class Traverse extends XFAObject{constructor(e){super(Go,"traverse",!0);this.id=e.id||"";this.operation=getStringOption(e.operation,["next","back","down","first","left","right","up"]);this.ref=e.ref||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.script=null}get name(){return this.operation}[Us](){return!1}}class Ui extends XFAObject{constructor(e){super(Go,"ui",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.picture=null;this.barcode=null;this.button=null;this.checkButton=null;this.choiceList=null;this.dateTimeEdit=null;this.defaultUi=null;this.imageEdit=null;this.numericEdit=null;this.passwordEdit=null;this.signature=null;this.textEdit=null}[ws](){if(void 0===this[ls]){for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"picture"===e)continue;const t=this[e];if(t instanceof XFAObject){this[ls]=t;return t}}this[ls]=null}return this[ls]}[co](e){const t=this[ws]();return t?t[co](e):HTMLResult.EMPTY}}class Validate extends XFAObject{constructor(e){super(Go,"validate",!0);this.formatTest=getStringOption(e.formatTest,["warning","disabled","error"]);this.id=e.id||"";this.nullTest=getStringOption(e.nullTest,["disabled","error","warning"]);this.scriptTest=getStringOption(e.scriptTest,["error","disabled","warning"]);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.message=null;this.picture=null;this.script=null}}class Value extends XFAObject{constructor(e){super(Go,"value",!0);this.id=e.id||"";this.override=getInteger({data:e.override,defaultValue:0,validate:e=>1===e});this.relevant=getRelevant(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.arc=null;this.boolean=null;this.date=null;this.dateTime=null;this.decimal=null;this.exData=null;this.float=null;this.image=null;this.integer=null;this.line=null;this.rectangle=null;this.text=null;this.time=null}[io](e){const t=this[vs]();if(t instanceof Field&&t.ui?.imageEdit){if(!this.image){this.image=new Image({});this[Qn](this.image)}this.image[ss]=e[ss];return}const a=e[Ws];if(null===this[a]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e];if(t instanceof XFAObject){this[e]=null;this[Zs](t)}}this[e[Ws]]=e;this[Qn](e)}else this[a][ss]=e[ss]}[so](){if(this.exData)return"string"==typeof this.exData[ss]?this.exData[ss].trim():this.exData[ss][so]().trim();for(const e of Object.getOwnPropertyNames(this)){if("image"===e)continue;const t=this[e];if(t instanceof XFAObject)return(t[ss]||"").toString().trim()}return null}[co](e){for(const t of Object.getOwnPropertyNames(this)){const a=this[t];if(a instanceof XFAObject)return a[co](e)}return HTMLResult.EMPTY}}class Variables extends XFAObject{constructor(e){super(Go,"variables",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new XFAObjectArray;this.date=new XFAObjectArray;this.dateTime=new XFAObjectArray;this.decimal=new XFAObjectArray;this.exData=new XFAObjectArray;this.float=new XFAObjectArray;this.image=new XFAObjectArray;this.integer=new XFAObjectArray;this.manifest=new XFAObjectArray;this.script=new XFAObjectArray;this.text=new XFAObjectArray;this.time=new XFAObjectArray}[Us](){return!0}}class TemplateNamespace{static[fo](e,t){if(TemplateNamespace.hasOwnProperty(e)){const a=TemplateNamespace[e](t);a[ro](t);return a}}static appearanceFilter(e){return new AppearanceFilter(e)}static arc(e){return new Arc(e)}static area(e){return new Area(e)}static assist(e){return new Assist(e)}static barcode(e){return new Barcode(e)}static bind(e){return new Bind(e)}static bindItems(e){return new BindItems(e)}static bookend(e){return new Bookend(e)}static boolean(e){return new BooleanElement(e)}static border(e){return new Border(e)}static break(e){return new Break(e)}static breakAfter(e){return new BreakAfter(e)}static breakBefore(e){return new BreakBefore(e)}static button(e){return new Button(e)}static calculate(e){return new Calculate(e)}static caption(e){return new Caption(e)}static certificate(e){return new Certificate(e)}static certificates(e){return new Certificates(e)}static checkButton(e){return new CheckButton(e)}static choiceList(e){return new ChoiceList(e)}static color(e){return new Color(e)}static comb(e){return new Comb(e)}static connect(e){return new Connect(e)}static contentArea(e){return new ContentArea(e)}static corner(e){return new Corner(e)}static date(e){return new DateElement(e)}static dateTime(e){return new DateTime(e)}static dateTimeEdit(e){return new DateTimeEdit(e)}static decimal(e){return new Decimal(e)}static defaultUi(e){return new DefaultUi(e)}static desc(e){return new Desc(e)}static digestMethod(e){return new DigestMethod(e)}static digestMethods(e){return new DigestMethods(e)}static draw(e){return new Draw(e)}static edge(e){return new Edge(e)}static encoding(e){return new Encoding(e)}static encodings(e){return new Encodings(e)}static encrypt(e){return new Encrypt(e)}static encryptData(e){return new EncryptData(e)}static encryption(e){return new Encryption(e)}static encryptionMethod(e){return new EncryptionMethod(e)}static encryptionMethods(e){return new EncryptionMethods(e)}static event(e){return new Event(e)}static exData(e){return new ExData(e)}static exObject(e){return new ExObject(e)}static exclGroup(e){return new ExclGroup(e)}static execute(e){return new Execute(e)}static extras(e){return new Extras(e)}static field(e){return new Field(e)}static fill(e){return new Fill(e)}static filter(e){return new Filter(e)}static float(e){return new Float(e)}static font(e){return new template_Font(e)}static format(e){return new Format(e)}static handler(e){return new Handler(e)}static hyphenation(e){return new Hyphenation(e)}static image(e){return new Image(e)}static imageEdit(e){return new ImageEdit(e)}static integer(e){return new Integer(e)}static issuers(e){return new Issuers(e)}static items(e){return new Items(e)}static keep(e){return new Keep(e)}static keyUsage(e){return new KeyUsage(e)}static line(e){return new Line(e)}static linear(e){return new Linear(e)}static lockDocument(e){return new LockDocument(e)}static manifest(e){return new Manifest(e)}static margin(e){return new Margin(e)}static mdp(e){return new Mdp(e)}static medium(e){return new Medium(e)}static message(e){return new Message(e)}static numericEdit(e){return new NumericEdit(e)}static occur(e){return new Occur(e)}static oid(e){return new Oid(e)}static oids(e){return new Oids(e)}static overflow(e){return new Overflow(e)}static pageArea(e){return new PageArea(e)}static pageSet(e){return new PageSet(e)}static para(e){return new Para(e)}static passwordEdit(e){return new PasswordEdit(e)}static pattern(e){return new template_Pattern(e)}static picture(e){return new Picture(e)}static proto(e){return new Proto(e)}static radial(e){return new Radial(e)}static reason(e){return new Reason(e)}static reasons(e){return new Reasons(e)}static rectangle(e){return new Rectangle(e)}static ref(e){return new RefElement(e)}static script(e){return new Script(e)}static setProperty(e){return new SetProperty(e)}static signData(e){return new SignData(e)}static signature(e){return new Signature(e)}static signing(e){return new Signing(e)}static solid(e){return new Solid(e)}static speak(e){return new Speak(e)}static stipple(e){return new Stipple(e)}static subform(e){return new Subform(e)}static subformSet(e){return new SubformSet(e)}static subjectDN(e){return new SubjectDN(e)}static subjectDNs(e){return new SubjectDNs(e)}static submit(e){return new Submit(e)}static template(e){return new Template(e)}static text(e){return new Text(e)}static textEdit(e){return new TextEdit(e)}static time(e){return new Time(e)}static timeStamp(e){return new TimeStamp(e)}static toolTip(e){return new ToolTip(e)}static traversal(e){return new Traversal(e)}static traverse(e){return new Traverse(e)}static ui(e){return new Ui(e)}static validate(e){return new Validate(e)}static value(e){return new Value(e)}static variables(e){return new Variables(e)}}const Zo=go.datasets.id;function createText(e){const t=new Text({});t[ss]=e;return t}class Binder{constructor(e){this.root=e;this.datasets=e.datasets;this.data=e.datasets?.data||new XmlObject(go.datasets.id,"data");this.emptyMerge=0===this.data[Ss]().length;this.root.form=this.form=e.template[is]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){this._bindElement(this.form,this.data);return this.form}getData(){return this.data}_bindValue(e,t,a){e[os]=t;if(e[Ts]())if(t[Ns]()){const a=t[ys]();e[io](createText(a))}else if(e instanceof Field&&"multiSelect"===e.ui?.choiceList?.open){const a=t[Ss]().map((e=>e[ss].trim())).join("\\n");e[io](createText(a))}else this._isConsumeData()&&warn("XFA - Nodes haven\'t the same type.");else!t[Ns]()||this._isMatchTemplate()?this._bindElement(e,t):warn("XFA - Nodes haven\'t the same type.")}_findDataByNameToConsume(e,t,a,r){if(!e)return null;let i,n;for(let r=0;r<3;r++){i=a[xs](e,!1,!0);for(;;){n=i.next().value;if(!n)break;if(t===n[Ns]())return n}if(a[Hs]===go.datasets.id&&"data"===a[Ws])break;a=a[vs]()}if(!r)return null;i=this.data[xs](e,!0,!1);n=i.next().value;if(n)return n;i=this.data[ds](e,!0);n=i.next().value;return n?.[Ns]()?n:null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(const{ref:a,target:r,connection:i}of e.setProperty.children){if(i)continue;if(!a)continue;const n=searchNode(this.root,t,a,!1,!1);if(!n){warn(`XFA - Invalid reference: ${a}.`);continue}const[s]=n;if(!s[Es](this.data)){warn("XFA - Invalid node: must be a data node.");continue}const o=searchNode(this.root,e,r,!1,!1);if(!o){warn(`XFA - Invalid target: ${r}.`);continue}const[c]=o;if(!c[Es](e)){warn("XFA - Invalid target: must be a property or subproperty.");continue}const l=c[vs]();if(c instanceof SetProperty||l instanceof SetProperty){warn("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(c instanceof BindItems||l instanceof BindItems){warn("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const h=s[so](),u=c[Ws];if(c instanceof XFAAttribute){const e=Object.create(null);e[u]=h;const t=Reflect.construct(Object.getPrototypeOf(l).constructor,[e]);l[u]=t[u]}else if(c.hasOwnProperty(ss)){c[os]=s;c[ss]=h;c[hs]()}else warn("XFA - Invalid node to use in setProperty")}}_bindItems(e,t){if(!e.hasOwnProperty("items")||!e.hasOwnProperty("bindItems")||e.bindItems.isEmpty())return;for(const t of e.items.children)e[Zs](t);e.items.clear();const a=new Items({}),r=new Items({});e[Qn](a);e.items.push(a);e[Qn](r);e.items.push(r);for(const{ref:i,labelRef:n,valueRef:s,connection:o}of e.bindItems.children){if(o)continue;if(!i)continue;const e=searchNode(this.root,t,i,!1,!1);if(e)for(const t of e){if(!t[Es](this.datasets)){warn(`XFA - Invalid ref (${i}): must be a datasets child.`);continue}const e=searchNode(this.root,t,n,!0,!1);if(!e){warn(`XFA - Invalid label: ${n}.`);continue}const[o]=e;if(!o[Es](this.datasets)){warn("XFA - Invalid label: must be a datasets child.");continue}const c=searchNode(this.root,t,s,!0,!1);if(!c){warn(`XFA - Invalid value: ${s}.`);continue}const[l]=c;if(!l[Es](this.datasets)){warn("XFA - Invalid value: must be a datasets child.");continue}const h=createText(o[so]()),u=createText(l[so]());a[Qn](h);a.text.push(h);r[Qn](u);r.text.push(u)}else warn(`XFA - Invalid reference: ${i}.`)}}_bindOccurrences(e,t,a){let r;if(t.length>1){r=e[is]();r[Zs](r.occur);r.occur=null}this._bindValue(e,t[0],a);this._setProperties(e,t[0]);this._bindItems(e,t[0]);if(1===t.length)return;const i=e[vs](),n=e[Ws],s=i[Ms](e);for(let e=1,o=t.length;e<o;e++){const o=t[e],c=r[is]();i[n].push(c);i[Ds](s+e,c);this._bindValue(c,o,a);this._setProperties(c,o);this._bindItems(c,o)}}_createOccurrences(e){if(!this.emptyMerge)return;const{occur:t}=e;if(!t||t.initial<=1)return;const a=e[vs](),r=e[Ws];if(!(a[r]instanceof XFAObjectArray))return;let i;i=e.name?a[r].children.filter((t=>t.name===e.name)).length:a[r].children.length;const n=a[Ms](e)+1,s=t.initial-i;if(s){const t=e[is]();t[Zs](t.occur);t.occur=null;a[r].push(t);a[Ds](n,t);for(let e=1;e<s;e++){const i=t[is]();a[r].push(i);a[Ds](n+e,i)}}}_getOccurInfo(e){const{name:t,occur:a}=e;if(!a||!t)return[1,1];const r=-1===a.max?1/0:a.max;return[a.min,r]}_setAndBind(e,t){this._setProperties(e,t);this._bindItems(e,t);this._bindElement(e,t)}_bindElement(e,t){const a=[];this._createOccurrences(e);for(const r of e[Ss]()){if(r[os])continue;if(void 0===this._mergeMode&&"subform"===r[Ws]){this._mergeMode="consumeData"===r.mergeMode;const e=t[Ss]();if(e.length>0)this._bindOccurrences(r,[e[0]],null);else if(this.emptyMerge){const e=t[Hs]===Zo?-1:t[Hs],a=r[os]=new XmlObject(e,r.name||"root");t[Qn](a);this._bindElement(r,a)}continue}if(!r[Rs]())continue;let e=!1,i=null,n=null,s=null;if(r.bind){switch(r.bind.match){case"none":this._setAndBind(r,t);continue;case"global":e=!0;break;case"dataRef":if(!r.bind.ref){warn(`XFA - ref is empty in node ${r[Ws]}.`);this._setAndBind(r,t);continue}n=r.bind.ref}r.bind.picture&&(i=r.bind.picture[ss])}const[o,c]=this._getOccurInfo(r);if(n){s=searchNode(this.root,t,n,!0,!1);if(null===s){s=createDataNode(this.data,t,n);if(!s)continue;this._isConsumeData()&&(s[ns]=!0);this._setAndBind(r,s);continue}this._isConsumeData()&&(s=s.filter((e=>!e[ns])));s.length>c?s=s.slice(0,c):0===s.length&&(s=null);s&&this._isConsumeData()&&s.forEach((e=>{e[ns]=!0}))}else{if(!r.name){this._setAndBind(r,t);continue}if(this._isConsumeData()){const a=[];for(;a.length<c;){const i=this._findDataByNameToConsume(r.name,r[Ts](),t,e);if(!i)break;i[ns]=!0;a.push(i)}s=a.length>0?a:null}else{s=t[xs](r.name,!1,this.emptyMerge).next().value;if(!s){if(0===o){a.push(r);continue}const e=t[Hs]===Zo?-1:t[Hs];s=r[os]=new XmlObject(e,r.name);this.emptyMerge&&(s[ns]=!0);t[Qn](s);this._setAndBind(r,s);continue}this.emptyMerge&&(s[ns]=!0);s=[s]}}s?this._bindOccurrences(r,s,i):o>0?this._setAndBind(r,t):a.push(r)}a.forEach((e=>e[vs]()[Zs](e)))}}class DataHandler{constructor(e,t){this.data=t;this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[Ss]()]];for(;t.length>0;){const a=t.at(-1),[r,i]=a;if(r+1===i.length){t.pop();continue}const n=i[++a[0]],s=e.get(n[uo]);if(s)n[io](s);else{const t=n[fs]();for(const a of t.values()){const t=e.get(a[uo]);if(t){a[io](t);break}}}const o=n[Ss]();o.length>0&&t.push([-1,o])}const a=[\'<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">\'];if(this.dataset)for(const e of this.dataset[Ss]())"data"!==e[Ws]&&e[lo](a);this.data[lo](a);a.push("</xfa:datasets>");return a.join("")}}const Qo=go.config.id;class Acrobat extends XFAObject{constructor(e){super(Qo,"acrobat",!0);this.acrobat7=null;this.autoSave=null;this.common=null;this.validate=null;this.validateApprovalSignatures=null;this.submitUrl=new XFAObjectArray}}class Acrobat7 extends XFAObject{constructor(e){super(Qo,"acrobat7",!0);this.dynamicRender=null}}class ADBE_JSConsole extends OptionObject{constructor(e){super(Qo,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class ADBE_JSDebugger extends OptionObject{constructor(e){super(Qo,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class AddSilentPrint extends Option01{constructor(e){super(Qo,"addSilentPrint")}}class AddViewerPreferences extends Option01{constructor(e){super(Qo,"addViewerPreferences")}}class AdjustData extends Option10{constructor(e){super(Qo,"adjustData")}}class AdobeExtensionLevel extends IntegerObject{constructor(e){super(Qo,"adobeExtensionLevel",0,(e=>e>=1&&e<=8))}}class Agent extends XFAObject{constructor(e){super(Qo,"agent",!0);this.name=e.name?e.name.trim():"";this.common=new XFAObjectArray}}class AlwaysEmbed extends ContentObject{constructor(e){super(Qo,"alwaysEmbed")}}class Amd extends StringObject{constructor(e){super(Qo,"amd")}}class config_Area extends XFAObject{constructor(e){super(Qo,"area");this.level=getInteger({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3});this.name=getStringOption(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class Attributes extends OptionObject{constructor(e){super(Qo,"attributes",["preserve","delegate","ignore"])}}class AutoSave extends OptionObject{constructor(e){super(Qo,"autoSave",["disabled","enabled"])}}class Base extends StringObject{constructor(e){super(Qo,"base")}}class BatchOutput extends XFAObject{constructor(e){super(Qo,"batchOutput");this.format=getStringOption(e.format,["none","concat","zip","zipCompress"])}}class BehaviorOverride extends ContentObject{constructor(e){super(Qo,"behaviorOverride")}[hs](){this[ss]=new Map(this[ss].trim().split(/\\s+/).filter((e=>e.includes(":"))).map((e=>e.split(":",2))))}}class Cache extends XFAObject{constructor(e){super(Qo,"cache",!0);this.templateCache=null}}class Change extends Option01{constructor(e){super(Qo,"change")}}class Common extends XFAObject{constructor(e){super(Qo,"common",!0);this.data=null;this.locale=null;this.localeSet=null;this.messaging=null;this.suppressBanner=null;this.template=null;this.validationMessaging=null;this.versionControl=null;this.log=new XFAObjectArray}}class Compress extends XFAObject{constructor(e){super(Qo,"compress");this.scope=getStringOption(e.scope,["imageOnly","document"])}}class CompressLogicalStructure extends Option01{constructor(e){super(Qo,"compressLogicalStructure")}}class CompressObjectStream extends Option10{constructor(e){super(Qo,"compressObjectStream")}}class Compression extends XFAObject{constructor(e){super(Qo,"compression",!0);this.compressLogicalStructure=null;this.compressObjectStream=null;this.level=null;this.type=null}}class Config extends XFAObject{constructor(e){super(Qo,"config",!0);this.acrobat=null;this.present=null;this.trace=null;this.agent=new XFAObjectArray}}class Conformance extends OptionObject{constructor(e){super(Qo,"conformance",["A","B"])}}class ContentCopy extends Option01{constructor(e){super(Qo,"contentCopy")}}class Copies extends IntegerObject{constructor(e){super(Qo,"copies",1,(e=>e>=1))}}class Creator extends StringObject{constructor(e){super(Qo,"creator")}}class CurrentPage extends IntegerObject{constructor(e){super(Qo,"currentPage",0,(e=>e>=0))}}class Data extends XFAObject{constructor(e){super(Qo,"data",!0);this.adjustData=null;this.attributes=null;this.incrementalLoad=null;this.outputXSL=null;this.range=null;this.record=null;this.startNode=null;this.uri=null;this.window=null;this.xsl=null;this.excludeNS=new XFAObjectArray;this.transform=new XFAObjectArray}}class Debug extends XFAObject{constructor(e){super(Qo,"debug",!0);this.uri=null}}class DefaultTypeface extends ContentObject{constructor(e){super(Qo,"defaultTypeface");this.writingScript=getStringOption(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class Destination extends OptionObject{constructor(e){super(Qo,"destination",["pdf","pcl","ps","webClient","zpl"])}}class DocumentAssembly extends Option01{constructor(e){super(Qo,"documentAssembly")}}class Driver extends XFAObject{constructor(e){super(Qo,"driver",!0);this.name=e.name?e.name.trim():"";this.fontInfo=null;this.xdc=null}}class DuplexOption extends OptionObject{constructor(e){super(Qo,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class DynamicRender extends OptionObject{constructor(e){super(Qo,"dynamicRender",["forbidden","required"])}}class Embed extends Option01{constructor(e){super(Qo,"embed")}}class config_Encrypt extends Option01{constructor(e){super(Qo,"encrypt")}}class config_Encryption extends XFAObject{constructor(e){super(Qo,"encryption",!0);this.encrypt=null;this.encryptionLevel=null;this.permissions=null}}class EncryptionLevel extends OptionObject{constructor(e){super(Qo,"encryptionLevel",["40bit","128bit"])}}class Enforce extends StringObject{constructor(e){super(Qo,"enforce")}}class Equate extends XFAObject{constructor(e){super(Qo,"equate");this.force=getInteger({data:e.force,defaultValue:1,validate:e=>0===e});this.from=e.from||"";this.to=e.to||""}}class EquateRange extends XFAObject{constructor(e){super(Qo,"equateRange");this.from=e.from||"";this.to=e.to||"";this._unicodeRange=e.unicodeRange||""}get unicodeRange(){const e=[],t=/U\\+([0-9a-fA-F]+)/,a=this._unicodeRange;for(let r of a.split(",").map((e=>e.trim())).filter((e=>!!e))){r=r.split("-",2).map((e=>{const a=e.match(t);return a?parseInt(a[1],16):0}));1===r.length&&r.push(r[0]);e.push(r)}return shadow(this,"unicodeRange",e)}}class Exclude extends ContentObject{constructor(e){super(Qo,"exclude")}[hs](){this[ss]=this[ss].trim().split(/\\s+/).filter((e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)))}}class ExcludeNS extends StringObject{constructor(e){super(Qo,"excludeNS")}}class FlipLabel extends OptionObject{constructor(e){super(Qo,"flipLabel",["usePrinterSetting","on","off"])}}class config_FontInfo extends XFAObject{constructor(e){super(Qo,"fontInfo",!0);this.embed=null;this.map=null;this.subsetBelow=null;this.alwaysEmbed=new XFAObjectArray;this.defaultTypeface=new XFAObjectArray;this.neverEmbed=new XFAObjectArray}}class FormFieldFilling extends Option01{constructor(e){super(Qo,"formFieldFilling")}}class GroupParent extends StringObject{constructor(e){super(Qo,"groupParent")}}class IfEmpty extends OptionObject{constructor(e){super(Qo,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class IncludeXDPContent extends StringObject{constructor(e){super(Qo,"includeXDPContent")}}class IncrementalLoad extends OptionObject{constructor(e){super(Qo,"incrementalLoad",["none","forwardOnly"])}}class IncrementalMerge extends Option01{constructor(e){super(Qo,"incrementalMerge")}}class Interactive extends Option01{constructor(e){super(Qo,"interactive")}}class Jog extends OptionObject{constructor(e){super(Qo,"jog",["usePrinterSetting","none","pageSet"])}}class LabelPrinter extends XFAObject{constructor(e){super(Qo,"labelPrinter",!0);this.name=getStringOption(e.name,["zpl","dpl","ipl","tcpl"]);this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class Layout extends OptionObject{constructor(e){super(Qo,"layout",["paginate","panel"])}}class Level extends IntegerObject{constructor(e){super(Qo,"level",0,(e=>e>0))}}class Linearized extends Option01{constructor(e){super(Qo,"linearized")}}class Locale extends StringObject{constructor(e){super(Qo,"locale")}}class LocaleSet extends StringObject{constructor(e){super(Qo,"localeSet")}}class Log extends XFAObject{constructor(e){super(Qo,"log",!0);this.mode=null;this.threshold=null;this.to=null;this.uri=null}}class MapElement extends XFAObject{constructor(e){super(Qo,"map",!0);this.equate=new XFAObjectArray;this.equateRange=new XFAObjectArray}}class MediumInfo extends XFAObject{constructor(e){super(Qo,"mediumInfo",!0);this.map=null}}class config_Message extends XFAObject{constructor(e){super(Qo,"message",!0);this.msgId=null;this.severity=null}}class Messaging extends XFAObject{constructor(e){super(Qo,"messaging",!0);this.message=new XFAObjectArray}}class Mode extends OptionObject{constructor(e){super(Qo,"mode",["append","overwrite"])}}class ModifyAnnots extends Option01{constructor(e){super(Qo,"modifyAnnots")}}class MsgId extends IntegerObject{constructor(e){super(Qo,"msgId",1,(e=>e>=1))}}class NameAttr extends StringObject{constructor(e){super(Qo,"nameAttr")}}class NeverEmbed extends ContentObject{constructor(e){super(Qo,"neverEmbed")}}class NumberOfCopies extends IntegerObject{constructor(e){super(Qo,"numberOfCopies",null,(e=>e>=2&&e<=5))}}class OpenAction extends XFAObject{constructor(e){super(Qo,"openAction",!0);this.destination=null}}class Output extends XFAObject{constructor(e){super(Qo,"output",!0);this.to=null;this.type=null;this.uri=null}}class OutputBin extends StringObject{constructor(e){super(Qo,"outputBin")}}class OutputXSL extends XFAObject{constructor(e){super(Qo,"outputXSL",!0);this.uri=null}}class Overprint extends OptionObject{constructor(e){super(Qo,"overprint",["none","both","draw","field"])}}class Packets extends StringObject{constructor(e){super(Qo,"packets")}[hs](){"*"!==this[ss]&&(this[ss]=this[ss].trim().split(/\\s+/).filter((e=>["config","datasets","template","xfdf","xslt"].includes(e))))}}class PageOffset extends XFAObject{constructor(e){super(Qo,"pageOffset");this.x=getInteger({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0});this.y=getInteger({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class PageRange extends StringObject{constructor(e){super(Qo,"pageRange")}[hs](){const e=this[ss].trim().split(/\\s+/).map((e=>parseInt(e,10))),t=[];for(let a=0,r=e.length;a<r;a+=2)t.push(e.slice(a,a+2));this[ss]=t}}class Pagination extends OptionObject{constructor(e){super(Qo,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class PaginationOverride extends OptionObject{constructor(e){super(Qo,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class Part extends IntegerObject{constructor(e){super(Qo,"part",1,(e=>!1))}}class Pcl extends XFAObject{constructor(e){super(Qo,"pcl",!0);this.name=e.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.pageOffset=null;this.staple=null;this.xdc=null}}class Pdf extends XFAObject{constructor(e){super(Qo,"pdf",!0);this.name=e.name||"";this.adobeExtensionLevel=null;this.batchOutput=null;this.compression=null;this.creator=null;this.encryption=null;this.fontInfo=null;this.interactive=null;this.linearized=null;this.openAction=null;this.pdfa=null;this.producer=null;this.renderPolicy=null;this.scriptModel=null;this.silentPrint=null;this.submitFormat=null;this.tagged=null;this.version=null;this.viewerPreferences=null;this.xdc=null}}class Pdfa extends XFAObject{constructor(e){super(Qo,"pdfa",!0);this.amd=null;this.conformance=null;this.includeXDPContent=null;this.part=null}}class Permissions extends XFAObject{constructor(e){super(Qo,"permissions",!0);this.accessibleContent=null;this.change=null;this.contentCopy=null;this.documentAssembly=null;this.formFieldFilling=null;this.modifyAnnots=null;this.plaintextMetadata=null;this.print=null;this.printHighQuality=null}}class PickTrayByPDFSize extends Option01{constructor(e){super(Qo,"pickTrayByPDFSize")}}class config_Picture extends StringObject{constructor(e){super(Qo,"picture")}}class PlaintextMetadata extends Option01{constructor(e){super(Qo,"plaintextMetadata")}}class Presence extends OptionObject{constructor(e){super(Qo,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Present extends XFAObject{constructor(e){super(Qo,"present",!0);this.behaviorOverride=null;this.cache=null;this.common=null;this.copies=null;this.destination=null;this.incrementalMerge=null;this.layout=null;this.output=null;this.overprint=null;this.pagination=null;this.paginationOverride=null;this.script=null;this.validate=null;this.xdp=null;this.driver=new XFAObjectArray;this.labelPrinter=new XFAObjectArray;this.pcl=new XFAObjectArray;this.pdf=new XFAObjectArray;this.ps=new XFAObjectArray;this.submitUrl=new XFAObjectArray;this.webClient=new XFAObjectArray;this.zpl=new XFAObjectArray}}class Print extends Option01{constructor(e){super(Qo,"print")}}class PrintHighQuality extends Option01{constructor(e){super(Qo,"printHighQuality")}}class PrintScaling extends OptionObject{constructor(e){super(Qo,"printScaling",["appdefault","noScaling"])}}class PrinterName extends StringObject{constructor(e){super(Qo,"printerName")}}class Producer extends StringObject{constructor(e){super(Qo,"producer")}}class Ps extends XFAObject{constructor(e){super(Qo,"ps",!0);this.name=e.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.staple=null;this.xdc=null}}class Range extends ContentObject{constructor(e){super(Qo,"range")}[hs](){this[ss]=this[ss].split(",",2).map((e=>e.split("-").map((e=>parseInt(e.trim(),10))))).filter((e=>e.every((e=>!isNaN(e))))).map((e=>{1===e.length&&e.push(e[0]);return e}))}}class Record extends ContentObject{constructor(e){super(Qo,"record")}[hs](){this[ss]=this[ss].trim();const e=parseInt(this[ss],10);!isNaN(e)&&e>=0&&(this[ss]=e)}}class Relevant extends ContentObject{constructor(e){super(Qo,"relevant")}[hs](){this[ss]=this[ss].trim().split(/\\s+/)}}class Rename extends ContentObject{constructor(e){super(Qo,"rename")}[hs](){this[ss]=this[ss].trim();(this[ss].toLowerCase().startsWith("xml")||new RegExp("[\\\\p{L}_][\\\\p{L}\\\\d._\\\\p{M}-]*","u").test(this[ss]))&&warn("XFA - Rename: invalid XFA name")}}class RenderPolicy extends OptionObject{constructor(e){super(Qo,"renderPolicy",["server","client"])}}class RunScripts extends OptionObject{constructor(e){super(Qo,"runScripts",["both","client","none","server"])}}class config_Script extends XFAObject{constructor(e){super(Qo,"script",!0);this.currentPage=null;this.exclude=null;this.runScripts=null}}class ScriptModel extends OptionObject{constructor(e){super(Qo,"scriptModel",["XFA","none"])}}class Severity extends OptionObject{constructor(e){super(Qo,"severity",["ignore","error","information","trace","warning"])}}class SilentPrint extends XFAObject{constructor(e){super(Qo,"silentPrint",!0);this.addSilentPrint=null;this.printerName=null}}class Staple extends XFAObject{constructor(e){super(Qo,"staple");this.mode=getStringOption(e.mode,["usePrinterSetting","on","off"])}}class StartNode extends StringObject{constructor(e){super(Qo,"startNode")}}class StartPage extends IntegerObject{constructor(e){super(Qo,"startPage",0,(e=>!0))}}class SubmitFormat extends OptionObject{constructor(e){super(Qo,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class SubmitUrl extends StringObject{constructor(e){super(Qo,"submitUrl")}}class SubsetBelow extends IntegerObject{constructor(e){super(Qo,"subsetBelow",100,(e=>e>=0&&e<=100))}}class SuppressBanner extends Option01{constructor(e){super(Qo,"suppressBanner")}}class Tagged extends Option01{constructor(e){super(Qo,"tagged")}}class config_Template extends XFAObject{constructor(e){super(Qo,"template",!0);this.base=null;this.relevant=null;this.startPage=null;this.uri=null;this.xsl=null}}class Threshold extends OptionObject{constructor(e){super(Qo,"threshold",["trace","error","information","warning"])}}class To extends OptionObject{constructor(e){super(Qo,"to",["null","memory","stderr","stdout","system","uri"])}}class TemplateCache extends XFAObject{constructor(e){super(Qo,"templateCache");this.maxEntries=getInteger({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}}class Trace extends XFAObject{constructor(e){super(Qo,"trace",!0);this.area=new XFAObjectArray}}class Transform extends XFAObject{constructor(e){super(Qo,"transform",!0);this.groupParent=null;this.ifEmpty=null;this.nameAttr=null;this.picture=null;this.presence=null;this.rename=null;this.whitespace=null}}class Type extends OptionObject{constructor(e){super(Qo,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Uri extends StringObject{constructor(e){super(Qo,"uri")}}class config_Validate extends OptionObject{constructor(e){super(Qo,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class ValidateApprovalSignatures extends ContentObject{constructor(e){super(Qo,"validateApprovalSignatures")}[hs](){this[ss]=this[ss].trim().split(/\\s+/).filter((e=>["docReady","postSign"].includes(e)))}}class ValidationMessaging extends OptionObject{constructor(e){super(Qo,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Version extends OptionObject{constructor(e){super(Qo,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class VersionControl extends XFAObject{constructor(e){super(Qo,"VersionControl");this.outputBelow=getStringOption(e.outputBelow,["warn","error","update"]);this.sourceAbove=getStringOption(e.sourceAbove,["warn","error"]);this.sourceBelow=getStringOption(e.sourceBelow,["update","maintain"])}}class ViewerPreferences extends XFAObject{constructor(e){super(Qo,"viewerPreferences",!0);this.ADBE_JSConsole=null;this.ADBE_JSDebugger=null;this.addViewerPreferences=null;this.duplexOption=null;this.enforce=null;this.numberOfCopies=null;this.pageRange=null;this.pickTrayByPDFSize=null;this.printScaling=null}}class WebClient extends XFAObject{constructor(e){super(Qo,"webClient",!0);this.name=e.name?e.name.trim():"";this.fontInfo=null;this.xdc=null}}class Whitespace extends OptionObject{constructor(e){super(Qo,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Window extends ContentObject{constructor(e){super(Qo,"window")}[hs](){const e=this[ss].split(",",2).map((e=>parseInt(e.trim(),10)));if(e.some((e=>isNaN(e))))this[ss]=[0,0];else{1===e.length&&e.push(e[0]);this[ss]=e}}}class Xdc extends XFAObject{constructor(e){super(Qo,"xdc",!0);this.uri=new XFAObjectArray;this.xsl=new XFAObjectArray}}class Xdp extends XFAObject{constructor(e){super(Qo,"xdp",!0);this.packets=null}}class Xsl extends XFAObject{constructor(e){super(Qo,"xsl",!0);this.debug=null;this.uri=null}}class Zpl extends XFAObject{constructor(e){super(Qo,"zpl",!0);this.name=e.name?e.name.trim():"";this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class ConfigNamespace{static[fo](e,t){if(ConfigNamespace.hasOwnProperty(e))return ConfigNamespace[e](t)}static acrobat(e){return new Acrobat(e)}static acrobat7(e){return new Acrobat7(e)}static ADBE_JSConsole(e){return new ADBE_JSConsole(e)}static ADBE_JSDebugger(e){return new ADBE_JSDebugger(e)}static addSilentPrint(e){return new AddSilentPrint(e)}static addViewerPreferences(e){return new AddViewerPreferences(e)}static adjustData(e){return new AdjustData(e)}static adobeExtensionLevel(e){return new AdobeExtensionLevel(e)}static agent(e){return new Agent(e)}static alwaysEmbed(e){return new AlwaysEmbed(e)}static amd(e){return new Amd(e)}static area(e){return new config_Area(e)}static attributes(e){return new Attributes(e)}static autoSave(e){return new AutoSave(e)}static base(e){return new Base(e)}static batchOutput(e){return new BatchOutput(e)}static behaviorOverride(e){return new BehaviorOverride(e)}static cache(e){return new Cache(e)}static change(e){return new Change(e)}static common(e){return new Common(e)}static compress(e){return new Compress(e)}static compressLogicalStructure(e){return new CompressLogicalStructure(e)}static compressObjectStream(e){return new CompressObjectStream(e)}static compression(e){return new Compression(e)}static config(e){return new Config(e)}static conformance(e){return new Conformance(e)}static contentCopy(e){return new ContentCopy(e)}static copies(e){return new Copies(e)}static creator(e){return new Creator(e)}static currentPage(e){return new CurrentPage(e)}static data(e){return new Data(e)}static debug(e){return new Debug(e)}static defaultTypeface(e){return new DefaultTypeface(e)}static destination(e){return new Destination(e)}static documentAssembly(e){return new DocumentAssembly(e)}static driver(e){return new Driver(e)}static duplexOption(e){return new DuplexOption(e)}static dynamicRender(e){return new DynamicRender(e)}static embed(e){return new Embed(e)}static encrypt(e){return new config_Encrypt(e)}static encryption(e){return new config_Encryption(e)}static encryptionLevel(e){return new EncryptionLevel(e)}static enforce(e){return new Enforce(e)}static equate(e){return new Equate(e)}static equateRange(e){return new EquateRange(e)}static exclude(e){return new Exclude(e)}static excludeNS(e){return new ExcludeNS(e)}static flipLabel(e){return new FlipLabel(e)}static fontInfo(e){return new config_FontInfo(e)}static formFieldFilling(e){return new FormFieldFilling(e)}static groupParent(e){return new GroupParent(e)}static ifEmpty(e){return new IfEmpty(e)}static includeXDPContent(e){return new IncludeXDPContent(e)}static incrementalLoad(e){return new IncrementalLoad(e)}static incrementalMerge(e){return new IncrementalMerge(e)}static interactive(e){return new Interactive(e)}static jog(e){return new Jog(e)}static labelPrinter(e){return new LabelPrinter(e)}static layout(e){return new Layout(e)}static level(e){return new Level(e)}static linearized(e){return new Linearized(e)}static locale(e){return new Locale(e)}static localeSet(e){return new LocaleSet(e)}static log(e){return new Log(e)}static map(e){return new MapElement(e)}static mediumInfo(e){return new MediumInfo(e)}static message(e){return new config_Message(e)}static messaging(e){return new Messaging(e)}static mode(e){return new Mode(e)}static modifyAnnots(e){return new ModifyAnnots(e)}static msgId(e){return new MsgId(e)}static nameAttr(e){return new NameAttr(e)}static neverEmbed(e){return new NeverEmbed(e)}static numberOfCopies(e){return new NumberOfCopies(e)}static openAction(e){return new OpenAction(e)}static output(e){return new Output(e)}static outputBin(e){return new OutputBin(e)}static outputXSL(e){return new OutputXSL(e)}static overprint(e){return new Overprint(e)}static packets(e){return new Packets(e)}static pageOffset(e){return new PageOffset(e)}static pageRange(e){return new PageRange(e)}static pagination(e){return new Pagination(e)}static paginationOverride(e){return new PaginationOverride(e)}static part(e){return new Part(e)}static pcl(e){return new Pcl(e)}static pdf(e){return new Pdf(e)}static pdfa(e){return new Pdfa(e)}static permissions(e){return new Permissions(e)}static pickTrayByPDFSize(e){return new PickTrayByPDFSize(e)}static picture(e){return new config_Picture(e)}static plaintextMetadata(e){return new PlaintextMetadata(e)}static presence(e){return new Presence(e)}static present(e){return new Present(e)}static print(e){return new Print(e)}static printHighQuality(e){return new PrintHighQuality(e)}static printScaling(e){return new PrintScaling(e)}static printerName(e){return new PrinterName(e)}static producer(e){return new Producer(e)}static ps(e){return new Ps(e)}static range(e){return new Range(e)}static record(e){return new Record(e)}static relevant(e){return new Relevant(e)}static rename(e){return new Rename(e)}static renderPolicy(e){return new RenderPolicy(e)}static runScripts(e){return new RunScripts(e)}static script(e){return new config_Script(e)}static scriptModel(e){return new ScriptModel(e)}static severity(e){return new Severity(e)}static silentPrint(e){return new SilentPrint(e)}static staple(e){return new Staple(e)}static startNode(e){return new StartNode(e)}static startPage(e){return new StartPage(e)}static submitFormat(e){return new SubmitFormat(e)}static submitUrl(e){return new SubmitUrl(e)}static subsetBelow(e){return new SubsetBelow(e)}static suppressBanner(e){return new SuppressBanner(e)}static tagged(e){return new Tagged(e)}static template(e){return new config_Template(e)}static templateCache(e){return new TemplateCache(e)}static threshold(e){return new Threshold(e)}static to(e){return new To(e)}static trace(e){return new Trace(e)}static transform(e){return new Transform(e)}static type(e){return new Type(e)}static uri(e){return new Uri(e)}static validate(e){return new config_Validate(e)}static validateApprovalSignatures(e){return new ValidateApprovalSignatures(e)}static validationMessaging(e){return new ValidationMessaging(e)}static version(e){return new Version(e)}static versionControl(e){return new VersionControl(e)}static viewerPreferences(e){return new ViewerPreferences(e)}static webClient(e){return new WebClient(e)}static whitespace(e){return new Whitespace(e)}static window(e){return new Window(e)}static xdc(e){return new Xdc(e)}static xdp(e){return new Xdp(e)}static xsl(e){return new Xsl(e)}static zpl(e){return new Zpl(e)}}const ec=go.connectionSet.id;class ConnectionSet extends XFAObject{constructor(e){super(ec,"connectionSet",!0);this.wsdlConnection=new XFAObjectArray;this.xmlConnection=new XFAObjectArray;this.xsdConnection=new XFAObjectArray}}class EffectiveInputPolicy extends XFAObject{constructor(e){super(ec,"effectiveInputPolicy");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class EffectiveOutputPolicy extends XFAObject{constructor(e){super(ec,"effectiveOutputPolicy");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Operation extends StringObject{constructor(e){super(ec,"operation");this.id=e.id||"";this.input=e.input||"";this.name=e.name||"";this.output=e.output||"";this.use=e.use||"";this.usehref=e.usehref||""}}class RootElement extends StringObject{constructor(e){super(ec,"rootElement");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class SoapAction extends StringObject{constructor(e){super(ec,"soapAction");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class SoapAddress extends StringObject{constructor(e){super(ec,"soapAddress");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class connection_set_Uri extends StringObject{constructor(e){super(ec,"uri");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class WsdlAddress extends StringObject{constructor(e){super(ec,"wsdlAddress");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class WsdlConnection extends XFAObject{constructor(e){super(ec,"wsdlConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.effectiveInputPolicy=null;this.effectiveOutputPolicy=null;this.operation=null;this.soapAction=null;this.soapAddress=null;this.wsdlAddress=null}}class XmlConnection extends XFAObject{constructor(e){super(ec,"xmlConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.uri=null}}class XsdConnection extends XFAObject{constructor(e){super(ec,"xsdConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.rootElement=null;this.uri=null}}class ConnectionSetNamespace{static[fo](e,t){if(ConnectionSetNamespace.hasOwnProperty(e))return ConnectionSetNamespace[e](t)}static connectionSet(e){return new ConnectionSet(e)}static effectiveInputPolicy(e){return new EffectiveInputPolicy(e)}static effectiveOutputPolicy(e){return new EffectiveOutputPolicy(e)}static operation(e){return new Operation(e)}static rootElement(e){return new RootElement(e)}static soapAction(e){return new SoapAction(e)}static soapAddress(e){return new SoapAddress(e)}static uri(e){return new connection_set_Uri(e)}static wsdlAddress(e){return new WsdlAddress(e)}static wsdlConnection(e){return new WsdlConnection(e)}static xmlConnection(e){return new XmlConnection(e)}static xsdConnection(e){return new XsdConnection(e)}}const tc=go.datasets.id;class datasets_Data extends XmlObject{constructor(e){super(tc,"data",e)}[Ls](){return!0}}class Datasets extends XFAObject{constructor(e){super(tc,"datasets",!0);this.data=null;this.Signature=null}[$s](e){const t=e[Ws];("data"===t&&e[Hs]===tc||"Signature"===t&&e[Hs]===go.signature.id)&&(this[t]=e);this[Qn](e)}}class DatasetsNamespace{static[fo](e,t){if(DatasetsNamespace.hasOwnProperty(e))return DatasetsNamespace[e](t)}static datasets(e){return new Datasets(e)}static data(e){return new datasets_Data(e)}}const ac=go.localeSet.id;class CalendarSymbols extends XFAObject{constructor(e){super(ac,"calendarSymbols",!0);this.name="gregorian";this.dayNames=new XFAObjectArray(2);this.eraNames=null;this.meridiemNames=null;this.monthNames=new XFAObjectArray(2)}}class CurrencySymbol extends StringObject{constructor(e){super(ac,"currencySymbol");this.name=getStringOption(e.name,["symbol","isoname","decimal"])}}class CurrencySymbols extends XFAObject{constructor(e){super(ac,"currencySymbols",!0);this.currencySymbol=new XFAObjectArray(3)}}class DatePattern extends StringObject{constructor(e){super(ac,"datePattern");this.name=getStringOption(e.name,["full","long","med","short"])}}class DatePatterns extends XFAObject{constructor(e){super(ac,"datePatterns",!0);this.datePattern=new XFAObjectArray(4)}}class DateTimeSymbols extends ContentObject{constructor(e){super(ac,"dateTimeSymbols")}}class Day extends StringObject{constructor(e){super(ac,"day")}}class DayNames extends XFAObject{constructor(e){super(ac,"dayNames",!0);this.abbr=getInteger({data:e.abbr,defaultValue:0,validate:e=>1===e});this.day=new XFAObjectArray(7)}}class Era extends StringObject{constructor(e){super(ac,"era")}}class EraNames extends XFAObject{constructor(e){super(ac,"eraNames",!0);this.era=new XFAObjectArray(2)}}class locale_set_Locale extends XFAObject{constructor(e){super(ac,"locale",!0);this.desc=e.desc||"";this.name="isoname";this.calendarSymbols=null;this.currencySymbols=null;this.datePatterns=null;this.dateTimeSymbols=null;this.numberPatterns=null;this.numberSymbols=null;this.timePatterns=null;this.typeFaces=null}}class locale_set_LocaleSet extends XFAObject{constructor(e){super(ac,"localeSet",!0);this.locale=new XFAObjectArray}}class Meridiem extends StringObject{constructor(e){super(ac,"meridiem")}}class MeridiemNames extends XFAObject{constructor(e){super(ac,"meridiemNames",!0);this.meridiem=new XFAObjectArray(2)}}class Month extends StringObject{constructor(e){super(ac,"month")}}class MonthNames extends XFAObject{constructor(e){super(ac,"monthNames",!0);this.abbr=getInteger({data:e.abbr,defaultValue:0,validate:e=>1===e});this.month=new XFAObjectArray(12)}}class NumberPattern extends StringObject{constructor(e){super(ac,"numberPattern");this.name=getStringOption(e.name,["full","long","med","short"])}}class NumberPatterns extends XFAObject{constructor(e){super(ac,"numberPatterns",!0);this.numberPattern=new XFAObjectArray(4)}}class NumberSymbol extends StringObject{constructor(e){super(ac,"numberSymbol");this.name=getStringOption(e.name,["decimal","grouping","percent","minus","zero"])}}class NumberSymbols extends XFAObject{constructor(e){super(ac,"numberSymbols",!0);this.numberSymbol=new XFAObjectArray(5)}}class TimePattern extends StringObject{constructor(e){super(ac,"timePattern");this.name=getStringOption(e.name,["full","long","med","short"])}}class TimePatterns extends XFAObject{constructor(e){super(ac,"timePatterns",!0);this.timePattern=new XFAObjectArray(4)}}class TypeFace extends XFAObject{constructor(e){super(ac,"typeFace",!0);this.name=""|e.name}}class TypeFaces extends XFAObject{constructor(e){super(ac,"typeFaces",!0);this.typeFace=new XFAObjectArray}}class LocaleSetNamespace{static[fo](e,t){if(LocaleSetNamespace.hasOwnProperty(e))return LocaleSetNamespace[e](t)}static calendarSymbols(e){return new CalendarSymbols(e)}static currencySymbol(e){return new CurrencySymbol(e)}static currencySymbols(e){return new CurrencySymbols(e)}static datePattern(e){return new DatePattern(e)}static datePatterns(e){return new DatePatterns(e)}static dateTimeSymbols(e){return new DateTimeSymbols(e)}static day(e){return new Day(e)}static dayNames(e){return new DayNames(e)}static era(e){return new Era(e)}static eraNames(e){return new EraNames(e)}static locale(e){return new locale_set_Locale(e)}static localeSet(e){return new locale_set_LocaleSet(e)}static meridiem(e){return new Meridiem(e)}static meridiemNames(e){return new MeridiemNames(e)}static month(e){return new Month(e)}static monthNames(e){return new MonthNames(e)}static numberPattern(e){return new NumberPattern(e)}static numberPatterns(e){return new NumberPatterns(e)}static numberSymbol(e){return new NumberSymbol(e)}static numberSymbols(e){return new NumberSymbols(e)}static timePattern(e){return new TimePattern(e)}static timePatterns(e){return new TimePatterns(e)}static typeFace(e){return new TypeFace(e)}static typeFaces(e){return new TypeFaces(e)}}const rc=go.signature.id;class signature_Signature extends XFAObject{constructor(e){super(rc,"signature",!0)}}class SignatureNamespace{static[fo](e,t){if(SignatureNamespace.hasOwnProperty(e))return SignatureNamespace[e](t)}static signature(e){return new signature_Signature(e)}}const ic=go.stylesheet.id;class Stylesheet extends XFAObject{constructor(e){super(ic,"stylesheet",!0)}}class StylesheetNamespace{static[fo](e,t){if(StylesheetNamespace.hasOwnProperty(e))return StylesheetNamespace[e](t)}static stylesheet(e){return new Stylesheet(e)}}const nc=go.xdp.id;class xdp_Xdp extends XFAObject{constructor(e){super(nc,"xdp",!0);this.uuid=e.uuid||"";this.timeStamp=e.timeStamp||"";this.config=null;this.connectionSet=null;this.datasets=null;this.localeSet=null;this.stylesheet=new XFAObjectArray;this.template=null}[Gs](e){const t=go[e[Ws]];return t&&e[Hs]===t.id}}class XdpNamespace{static[fo](e,t){if(XdpNamespace.hasOwnProperty(e))return XdpNamespace[e](t)}static xdp(e){return new xdp_Xdp(e)}}const sc=go.xhtml.id,oc=Symbol(),cc=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),lc=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>`scaleX(${Math.max(0,parseInt(e)/100).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,parseInt(e)/100).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>measureToString(.99*(e=t.fontSize=Math.abs(getMeasurement(e))))],["letter-spacing",e=>measureToString(getMeasurement(e))],["line-height",e=>measureToString(getMeasurement(e))],["margin",e=>measureToString(getMeasurement(e))],["margin-bottom",e=>measureToString(getMeasurement(e))],["margin-left",e=>measureToString(getMeasurement(e))],["margin-right",e=>measureToString(getMeasurement(e))],["margin-top",e=>measureToString(getMeasurement(e))],["text-indent",e=>measureToString(getMeasurement(e))],["font-family",e=>e],["vertical-align",e=>measureToString(getMeasurement(e))]]),hc=/\\s+/g,uc=/[\\r\\n]+/g,dc=/\\r\\n?/g;function mapStyle(e,t,a){const r=Object.create(null);if(!e)return r;const i=Object.create(null);for(const[t,a]of e.split(";").map((e=>e.split(":",2)))){const e=lc.get(t);if(""===e)continue;let n=a;e&&(n="string"==typeof e?e:e(a,i));t.endsWith("scale")?r.transform=r.transform?`${r[t]} ${n}`:n:r[t.replaceAll(/-([a-zA-Z])/g,((e,t)=>t.toUpperCase()))]=n}r.fontFamily&&setFontFamily({typeface:r.fontFamily,weight:r.fontWeight||"normal",posture:r.fontStyle||"normal",size:i.fontSize||0},t,t[Is].fontFinder,r);if(a&&r.verticalAlign&&"0px"!==r.verticalAlign&&r.fontSize){const e=.583,t=.333,a=getMeasurement(r.fontSize);r.fontSize=measureToString(a*e);r.verticalAlign=measureToString(Math.sign(getMeasurement(r.verticalAlign))*a*t)}a&&r.fontSize&&(r.fontSize=`calc(${r.fontSize} * var(--total-scale-factor))`);fixTextIndent(r);return r}const fc=new Set(["body","html"]);class XhtmlObject extends XmlObject{constructor(e,t){super(sc,t);this[oc]=!1;this.style=e.style||""}[ts](e){super[ts](e);this.style=function checkStyle(e){return e.style?e.style.split(";").filter((e=>!!e.trim())).map((e=>e.split(":",2).map((e=>e.trim())))).filter((([t,a])=>{"font-family"===t&&e[Is].usedTypefaces.add(a);return cc.has(t)})).map((e=>e.join(":"))).join(";"):""}(this)}[Yn](){return!fc.has(this[Ws])}[Vs](e,t=!1){if(t)this[oc]=!0;else{e=e.replaceAll(uc,"");this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(hc," "))}e&&(this[ss]+=e)}[Ks](e,t=!0){const a=Object.create(null),r={top:NaN,bottom:NaN,left:NaN,right:NaN};let i=null;for(const[e,t]of this.style.split(";").map((e=>e.split(":",2))))switch(e){case"font-family":a.typeface=stripQuotes(t);break;case"font-size":a.size=getMeasurement(t);break;case"font-weight":a.weight=t;break;case"font-style":a.posture=t;break;case"letter-spacing":a.letterSpacing=getMeasurement(t);break;case"margin":const e=t.split(/ \\t/).map((e=>getMeasurement(e)));switch(e.length){case 1:r.top=r.bottom=r.left=r.right=e[0];break;case 2:r.top=r.bottom=e[0];r.left=r.right=e[1];break;case 3:r.top=e[0];r.bottom=e[2];r.left=r.right=e[1];break;case 4:r.top=e[0];r.left=e[1];r.bottom=e[2];r.right=e[3]}break;case"margin-top":r.top=getMeasurement(t);break;case"margin-bottom":r.bottom=getMeasurement(t);break;case"margin-left":r.left=getMeasurement(t);break;case"margin-right":r.right=getMeasurement(t);break;case"line-height":i=getMeasurement(t)}e.pushData(a,r,i);if(this[ss])e.addString(this[ss]);else for(const t of this[Ss]())"#text"!==t[Ws]?t[Ks](e):e.addString(t[ss]);t&&e.popFont()}[co](e){const t=[];this[ls]={children:t};this[es]({});if(0===t.length&&!this[ss])return HTMLResult.EMPTY;let a;a=this[oc]?this[ss]?this[ss].replaceAll(dc,"\\n"):void 0:this[ss]||void 0;return HTMLResult.success({name:this[Ws],attributes:{href:this.href,style:mapStyle(this.style,this,this[oc])},children:t,value:a})}}class A extends XhtmlObject{constructor(e){super(e,"a");this.href=fixURL(e.href)||""}}class B extends XhtmlObject{constructor(e){super(e,"b")}[Ks](e){e.pushFont({weight:"bold"});super[Ks](e);e.popFont()}}class Body extends XhtmlObject{constructor(e){super(e,"body")}[co](e){const t=super[co](e),{html:a}=t;if(!a)return HTMLResult.EMPTY;a.name="div";a.attributes.class=["xfaRich"];return t}}class Br extends XhtmlObject{constructor(e){super(e,"br")}[so](){return"\\n"}[Ks](e){e.addString("\\n")}[co](e){return HTMLResult.success({name:"br"})}}class Html extends XhtmlObject{constructor(e){super(e,"html")}[co](e){const t=[];this[ls]={children:t};this[es]({});if(0===t.length)return HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[ss]||""});if(1===t.length){const e=t[0];if(e.attributes?.class.includes("xfaRich"))return HTMLResult.success(e)}return HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class I extends XhtmlObject{constructor(e){super(e,"i")}[Ks](e){e.pushFont({posture:"italic"});super[Ks](e);e.popFont()}}class Li extends XhtmlObject{constructor(e){super(e,"li")}}class Ol extends XhtmlObject{constructor(e){super(e,"ol")}}class P extends XhtmlObject{constructor(e){super(e,"p")}[Ks](e){super[Ks](e,!1);e.addString("\\n");e.addPara();e.popFont()}[so](){return this[vs]()[Ss]().at(-1)===this?super[so]():super[so]()+"\\n"}}class Span extends XhtmlObject{constructor(e){super(e,"span")}}class Sub extends XhtmlObject{constructor(e){super(e,"sub")}}class Sup extends XhtmlObject{constructor(e){super(e,"sup")}}class Ul extends XhtmlObject{constructor(e){super(e,"ul")}}class XhtmlNamespace{static[fo](e,t){if(XhtmlNamespace.hasOwnProperty(e))return XhtmlNamespace[e](t)}static a(e){return new A(e)}static b(e){return new B(e)}static body(e){return new Body(e)}static br(e){return new Br(e)}static html(e){return new Html(e)}static i(e){return new I(e)}static li(e){return new Li(e)}static ol(e){return new Ol(e)}static p(e){return new P(e)}static span(e){return new Span(e)}static sub(e){return new Sub(e)}static sup(e){return new Sup(e)}static ul(e){return new Ul(e)}}const gc={config:ConfigNamespace,connection:ConnectionSetNamespace,datasets:DatasetsNamespace,localeSet:LocaleSetNamespace,signature:SignatureNamespace,stylesheet:StylesheetNamespace,template:TemplateNamespace,xdp:XdpNamespace,xhtml:XhtmlNamespace};class UnknownNamespace{constructor(e){this.namespaceId=e}[fo](e,t){return new XmlObject(this.namespaceId,e,t)}}class Root extends XFAObject{constructor(e){super(-1,"root",Object.create(null));this.element=null;this[Os]=e}[$s](e){this.element=e;return!0}[hs](){super[hs]();if(this.element.template instanceof Template){this[Os].set(Qs,this.element);this.element.template[eo](this[Os]);this.element.template[Os]=this[Os]}}}class Empty extends XFAObject{constructor(){super(-1,"",Object.create(null))}[$s](e){return!1}}class Builder{constructor(e=null){this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max(...Object.values(go).map((({id:e})=>e)));this._currentNamespace=e||new UnknownNamespace(++this._nextNsId)}buildRoot(e){return new Root(e)}build({nsPrefix:e,name:t,attributes:a,namespace:r,prefixes:i}){const n=null!==r;if(n){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(r)}i&&this._addNamespacePrefix(i);if(a.hasOwnProperty(zs)){const e=gc.datasets,t=a[zs];let r=null;for(const[a,i]of Object.entries(t)){if(this._getNamespaceToUse(a)===e){r={xfa:i};break}}r?a[zs]=r:delete a[zs]}const s=this._getNamespaceToUse(e),o=s?.[fo](t,a)||new Empty;o[Ls]()&&this._nsAgnosticLevel++;(n||i||o[Ls]())&&(o[rs]={hasNamespace:n,prefixes:i,nsAgnostic:o[Ls]()});return o}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e);if(t)return t;for(const[a,{check:r}]of Object.entries(go))if(r(e)){t=gc[a];if(t){this._namespaces.set(e,t);return t}break}t=new UnknownNamespace(++this._nextNsId);this._namespaces.set(e,t);return t}_addNamespacePrefix(e){for(const{prefix:t,value:a}of e){const e=this._searchNamespace(a);let r=this._namespacePrefixes.get(t);if(!r){r=[];this._namespacePrefixes.set(t,r)}r.push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace;const t=this._namespacePrefixes.get(e);if(t?.length>0)return t.at(-1);warn(`Unknown namespace prefix: ${e}.`);return null}clean(e){const{hasNamespace:t,prefixes:a,nsAgnostic:r}=e;t&&(this._currentNamespace=this._namespaceStack.pop());a&&a.forEach((({prefix:e})=>{this._namespacePrefixes.get(e).pop()}));r&&this._nsAgnosticLevel--}}class XFAParser extends XMLParserBase{constructor(e=null,t=!1){super();this._builder=new Builder(e);this._stack=[];this._globalData={usedTypefaces:new Set};this._ids=new Map;this._current=this._builder.buildRoot(this._ids);this._errorCode=jn;this._whiteRegex=/^\\s+$/;this._nbsps=/\\xa0+/g;this._richText=t}parse(e){this.parseXml(e);if(this._errorCode===jn){this._current[hs]();return this._current.element}}onText(e){e=e.replace(this._nbsps,(e=>e.slice(1)+" "));this._richText||this._current[Yn]()?this._current[Vs](e,this._richText):this._whiteRegex.test(e)||this._current[Vs](e.trim())}onCdata(e){this._current[Vs](e)}_mkAttributes(e,t){let a=null,r=null;const i=Object.create({});for(const{name:n,value:s}of e)if("xmlns"===n)a?warn(`XFA - multiple namespace definition in <${t}>`):a=s;else if(n.startsWith("xmlns:")){const e=n.substring(6);r??=[];r.push({prefix:e,value:s})}else{const e=n.indexOf(":");if(-1===e)i[n]=s;else{const t=i[zs]??=Object.create(null),[a,r]=[n.slice(0,e),n.slice(e+1)];(t[a]||=Object.create(null))[r]=s}}return[a,r,i]}_getNameAndPrefix(e,t){const a=e.indexOf(":");return-1===a?[e,null]:[e.substring(a+1),t?"":e.substring(0,a)]}onBeginElement(e,t,a){const[r,i,n]=this._mkAttributes(t,e),[s,o]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:o,name:s,attributes:n,namespace:r,prefixes:i});c[Is]=this._globalData;if(a){c[hs]();this._current[$s](c)&&c[ao](this._ids);c[ts](this._builder)}else{this._stack.push(this._current);this._current=c}}onEndElement(e){const t=this._current;if(t[Bs]()&&"string"==typeof t[ss]){const e=new XFAParser;e._globalData=this._globalData;const a=e.parse(t[ss]);t[ss]=null;t[$s](a)}t[hs]();this._current=this._stack.pop();this._current[$s](t)&&t[ao](this._ids);t[ts](this._builder)}onError(e){this._errorCode=e}}class XFAFactory{constructor(e){try{this.root=(new XFAParser).parse(XFAFactory._createDocument(e));const t=new Binder(this.root);this.form=t.bind();this.dataHandler=new DataHandler(this.root,t.getData());this.form[Is].template=this.form}catch(e){warn(`XFA - an error occurred during parsing and binding: ${e}`)}}isValid(){return!(!this.root||!this.form)}_createPagesHelper(){const e=this.form[oo]();return new Promise(((t,a)=>{const nextIteration=()=>{try{const a=e.next();a.done?t(a.value):setTimeout(nextIteration,0)}catch(e){a(e)}};setTimeout(nextIteration,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper();this.dims=this.pages.children.map((e=>{const{width:t,height:a}=e.attributes.style;return[0,0,parseInt(t),parseInt(a)]}))}catch(e){warn(`XFA - an error occurred during layout: ${e}`)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){this.pages||await this._createPages();return this.dims.length}setImages(e){this.form[Is].images=e}setFonts(e){this.form[Is].fontFinder=new FontFinder(e);const t=[];for(let e of this.form[Is].usedTypefaces){e=stripQuotes(e);this.form[Is].fontFinder.find(e)||t.push(e)}return t.length>0?t:null}appendFonts(e,t){this.form[Is].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();const e=this.pages;this.pages=null;return e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(e){if(!e||"string"!=typeof e)return null;try{let t=new XFAParser(XhtmlNamespace,!0).parse(e);if(!["body","xhtml"].includes(t[Ws])){const e=XhtmlNamespace.body({});e[Qn](t);t=e}const a=t[co]();if(!a.success)return null;const{html:r}=a,{attributes:i}=r;if(i){i.class&&(i.class=i.class.filter((e=>!e.startsWith("xfa"))));i.dir="auto"}return{html:r,str:t[so]()}}catch(e){warn(`XFA - an error occurred during parsing of rich text: ${e}`)}return null}}class AnnotationFactory{static createGlobals(e){return Promise.all([e.ensureCatalog("acroForm"),e.ensureDoc("xfaDatasets"),e.ensureCatalog("structTreeRoot"),e.ensureCatalog("baseUrl"),e.ensureCatalog("attachments"),e.ensureCatalog("globalColorSpaceCache")]).then((([t,a,r,i,n,s])=>({pdfManager:e,acroForm:t instanceof Dict?t:Dict.empty,xfaDatasets:a,structTreeRoot:r,baseUrl:i,attachments:n,globalColorSpaceCache:s})),(e=>{warn(`createGlobals: "${e}".`);return null}))}static async create(e,t,a,r,i,n,s){const o=i?await this._getPageIndex(e,t,a.pdfManager):null;return a.pdfManager.ensure(this,"_create",[e,t,a,r,i,n,o,s])}static _create(e,t,a,r,i=!1,n=null,s=null,o=null){const c=e.fetchIfRef(t);if(!(c instanceof Dict))return;const{acroForm:l,pdfManager:h}=a,u=t instanceof Ref?t.toString():`annot_${r.createObjId()}`;let d=c.get("Subtype");d=d instanceof Name?d.name:null;const f={xref:e,ref:t,dict:c,subtype:d,id:u,annotationGlobals:a,collectFields:i,orphanFields:n,needAppearances:!i&&!0===l.get("NeedAppearances"),pageIndex:s,evaluatorOptions:h.evaluatorOptions,pageRef:o};switch(d){case"Link":return new LinkAnnotation(f);case"Text":return new TextAnnotation(f);case"Widget":let e=getInheritableProperty({dict:c,key:"FT"});e=e instanceof Name?e.name:null;switch(e){case"Tx":return new TextWidgetAnnotation(f);case"Btn":return new ButtonWidgetAnnotation(f);case"Ch":return new ChoiceWidgetAnnotation(f);case"Sig":return new SignatureWidgetAnnotation(f)}warn(`Unimplemented widget field type "${e}", falling back to base field type.`);return new WidgetAnnotation(f);case"Popup":return new PopupAnnotation(f);case"FreeText":return new FreeTextAnnotation(f);case"Line":return new LineAnnotation(f);case"Square":return new SquareAnnotation(f);case"Circle":return new CircleAnnotation(f);case"PolyLine":return new PolylineAnnotation(f);case"Polygon":return new PolygonAnnotation(f);case"Caret":return new CaretAnnotation(f);case"Ink":return new InkAnnotation(f);case"Highlight":return new HighlightAnnotation(f);case"Underline":return new UnderlineAnnotation(f);case"Squiggly":return new SquigglyAnnotation(f);case"StrikeOut":return new StrikeOutAnnotation(f);case"Stamp":return new StampAnnotation(f);case"FileAttachment":return new FileAttachmentAnnotation(f);default:i||warn(d?`Unimplemented annotation type "${d}", falling back to base annotation.`:"Annotation is missing the required /Subtype.");return new Annotation(f)}}static async _getPageIndex(e,t,a){try{const r=await e.fetchIfRefAsync(t);if(!(r instanceof Dict))return-1;const i=r.getRaw("P");if(i instanceof Ref)try{return await a.ensureCatalog("getPageIndex",[i])}catch(e){info(`_getPageIndex -- not a valid page reference: "${e}".`)}if(r.has("Kids"))return-1;const n=await a.ensureDoc("numPages");for(let e=0;e<n;e++){const r=await a.getPage(e),i=await a.ensure(r,"annotations");for(const a of i)if(a instanceof Ref&&isRefsEqual(a,t))return e}}catch(e){warn(`_getPageIndex: "${e}".`)}return-1}static generateImages(e,t,a){if(!a){warn("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images.");return null}let r;for(const{bitmapId:a,bitmap:i}of e)if(i){r||=new Map;r.set(a,StampAnnotation.createImage(i,t))}return r}static async saveNewAnnotations(e,t,a,r,i){const n=e.xref;let s;const o=[],{isOffscreenCanvasSupported:c}=e.options;for(const l of a)if(!l.deleted)switch(l.annotationType){case g:if(!s){const e=new Dict(n);e.setIfName("BaseFont","Helvetica");e.setIfName("Type","Font");e.setIfName("Subtype","Type1");e.setIfName("Encoding","WinAnsiEncoding");s=n.getNewTemporaryRef();i.put(s,{data:e})}o.push(FreeTextAnnotation.createNewAnnotation(n,l,i,{evaluator:e,task:t,baseFontRef:s}));break;case p:l.quadPoints?o.push(HighlightAnnotation.createNewAnnotation(n,l,i)):o.push(InkAnnotation.createNewAnnotation(n,l,i));break;case b:o.push(InkAnnotation.createNewAnnotation(n,l,i));break;case m:const a=c?await(r?.get(l.bitmapId)):null;if(a?.imageStream){const{imageStream:e,smaskStream:t}=a;if(t){const a=n.getNewTemporaryRef();i.put(a,{data:t});e.dict.set("SMask",a)}const r=a.imageRef=n.getNewTemporaryRef();i.put(r,{data:e});a.imageStream=a.smaskStream=null}o.push(StampAnnotation.createNewAnnotation(n,l,i,{image:a}));break;case y:o.push(StampAnnotation.createNewAnnotation(n,l,i,{}))}return{annotations:(await Promise.all(o)).flat()}}static async printNewAnnotations(e,t,a,r,i){if(!r)return null;const{options:n,xref:s}=t,o=[];for(const c of r)if(!c.deleted)switch(c.annotationType){case g:o.push(FreeTextAnnotation.createNewPrintAnnotation(e,s,c,{evaluator:t,task:a,evaluatorOptions:n}));break;case p:c.quadPoints?o.push(HighlightAnnotation.createNewPrintAnnotation(e,s,c,{evaluatorOptions:n})):o.push(InkAnnotation.createNewPrintAnnotation(e,s,c,{evaluatorOptions:n}));break;case b:o.push(InkAnnotation.createNewPrintAnnotation(e,s,c,{evaluatorOptions:n}));break;case m:const r=n.isOffscreenCanvasSupported?await(i?.get(c.bitmapId)):null;if(r?.imageStream){const{imageStream:e,smaskStream:t}=r;t&&e.dict.set("SMask",t);r.imageRef=new JpegStream(e,e.length);r.imageStream=r.smaskStream=null}o.push(StampAnnotation.createNewPrintAnnotation(e,s,c,{image:r,evaluatorOptions:n}));break;case y:o.push(StampAnnotation.createNewPrintAnnotation(e,s,c,{evaluatorOptions:n}))}return Promise.all(o)}}function getRgbColor(e,t=new Uint8ClampedArray(3)){if(!Array.isArray(e))return t;const a=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:ColorSpaceUtils.gray.getRgbItem(e,0,a,0);return a;case 3:ColorSpaceUtils.rgb.getRgbItem(e,0,a,0);return a;case 4:ColorSpaceUtils.cmyk.getRgbItem(e,0,a,0);return a;default:return t}}function getPdfColorArray(e,t=null){return e&&Array.from(e,(e=>e/255))||t}function getQuadPoints(e,t){const a=e.getArray("QuadPoints");if(!isNumberArray(a,null)||0===a.length||a.length%8>0)return null;const r=new Float32Array(a.length);for(let e=0,i=a.length;e<i;e+=8){const[i,n,s,o,c,l,h,u]=a.slice(e,e+8),d=Math.min(i,s,c,h),f=Math.max(i,s,c,h),g=Math.min(n,o,l,u),p=Math.max(n,o,l,u);if(null!==t&&(d<t[0]||f>t[2]||g<t[1]||p>t[3]))return null;r.set([d,p,f,p,d,g,f,g],e)}return r}function getTransformMatrix(e,t,a){const r=new Float32Array([1/0,1/0,-1/0,-1/0]);Util.axialAlignedBoundingBox(t,a,r);const[i,n,s,o]=r;if(i===s||n===o)return[1,0,0,1,e[0],e[1]];const c=(e[2]-e[0])/(s-i),l=(e[3]-e[1])/(o-n);return[c,0,0,l,e[0]-i*c,e[1]-n*l]}class Annotation{constructor(e){const{dict:t,xref:a,annotationGlobals:r,ref:i,orphanFields:n}=e,s=n?.get(i);s&&t.set("Parent",s);this.setTitle(t.get("T"));this.setContents(t.get("Contents"));this.setModificationDate(t.get("M"));this.setFlags(t.get("F"));this.setRectangle(t.getArray("Rect"));this.setColor(t.getArray("C"));this.setBorderStyle(t);this.setAppearance(t);this.setOptionalContent(t);const o=t.get("MK");this.setBorderAndBackgroundColors(o);this.setRotation(o,t);this.ref=e.ref instanceof Ref?e.ref:null;this._streams=[];this.appearance&&this._streams.push(this.appearance);const c=!!(this.flags&ee),l=!!(this.flags&te);this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&Z),noHTML:c&&l,isEditable:!1,structParent:-1};if(r.structTreeRoot){let a=t.get("StructParent");this.data.structParent=a=Number.isInteger(a)&&a>=0?a:-1;r.structTreeRoot.addAnnotationIdToPage(e.pageRef,a)}if(e.collectFields){const r=t.get("Kids");if(Array.isArray(r)){const e=[];for(const t of r)t instanceof Ref&&e.push(t.toString());0!==e.length&&(this.data.kidIds=e)}this.data.actions=collectActions(a,t,ye);this.data.fieldName=this._constructFieldName(t);this.data.pageIndex=e.pageIndex}const h=t.get("IT");h instanceof Name&&(this.data.it=h.name);this._isOffscreenCanvasSupported=e.evaluatorOptions.isOffscreenCanvasSupported;this._fallbackFontDict=null;this._needAppearances=!1}_hasFlag(e,t){return!!(e&t)}_buildFlags(e,t){let{flags:a}=this;if(void 0===e){if(void 0===t)return;return t?a&~Y:a&~J|Y}if(e){a|=Y;return t?a&~Q|J:a&~J|Q}a&=~(J|Q);return t?a&~Y:a|Y}_isViewable(e){return!this._hasFlag(e,K)&&!this._hasFlag(e,Q)}_isPrintable(e){return this._hasFlag(e,Y)&&!this._hasFlag(e,J)&&!this._hasFlag(e,K)}mustBeViewed(e,t){const a=e?.get(this.data.id)?.noView;return void 0!==a?!a:this.viewable&&!this._hasFlag(this.flags,J)}mustBePrinted(e){const t=e?.get(this.data.id)?.noPrint;return void 0!==t?!t:this.printable}mustBeViewedWhenEditing(e,t=null){return e?!this.data.isEditable:!t?.has(this.data.id)}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&(0!==this.flags&&this._isPrintable(this.flags))}_parseStringHelper(e){const t="string"==typeof e?stringToPDFString(e):"";return{str:t,dir:t&&"rtl"===bidi(t).dir?"rtl":"ltr"}}setDefaultAppearance(e){const{dict:t,annotationGlobals:a}=e,r=getInheritableProperty({dict:t,key:"DA"})||a.acroForm.get("DA");this._defaultAppearance="string"==typeof r?r:"";this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance)}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"==typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0;this.flags&K&&"Annotation"!==this.constructor.name&&(this.flags^=K)}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){this.rectangle=lookupNormalRect(e,[0,0,0,0])}setColor(e){this.color=getRgbColor(e)}setLineEndings(e){this.lineEndings=["None","None"];if(Array.isArray(e)&&2===e.length)for(let t=0;t<2;t++){const a=e[t];if(a instanceof Name)switch(a.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=a.name;continue}warn(`Ignoring invalid lineEnding: ${a}`)}}setRotation(e,t){this.rotation=0;let a=e instanceof Dict?e.get("R")||0:t.get("Rotate")||0;if(Number.isInteger(a)&&0!==a){a%=360;a<0&&(a+=360);a%90==0&&(this.rotation=a)}}setBorderAndBackgroundColors(e){if(e instanceof Dict){this.borderColor=getRgbColor(e.getArray("BC"),null);this.backgroundColor=getRgbColor(e.getArray("BG"),null)}else this.borderColor=this.backgroundColor=null}setBorderStyle(e){this.borderStyle=new AnnotationBorderStyle;if(e instanceof Dict)if(e.has("BS")){const t=e.get("BS");if(t instanceof Dict){const e=t.get("Type");if(!e||isName(e,"Border")){this.borderStyle.setWidth(t.get("W"),this.rectangle);this.borderStyle.setStyle(t.get("S"));this.borderStyle.setDashArray(t.getArray("D"))}}}else if(e.has("Border")){const t=e.getArray("Border");if(Array.isArray(t)&&t.length>=3){this.borderStyle.setHorizontalCornerRadius(t[0]);this.borderStyle.setVerticalCornerRadius(t[1]);this.borderStyle.setWidth(t[2],this.rectangle);4===t.length&&this.borderStyle.setDashArray(t[3],!0)}}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;const t=e.get("AP");if(!(t instanceof Dict))return;const a=t.get("N");if(a instanceof BaseStream){this.appearance=a;return}if(!(a instanceof Dict))return;const r=e.get("AS");if(!(r instanceof Name&&a.has(r.name)))return;const i=a.get(r.name);i instanceof BaseStream&&(this.appearance=i)}setOptionalContent(e){this.oc=null;const t=e.get("OC");t instanceof Name?warn("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof Dict&&(this.oc=t)}async loadResources(e,t){const a=await t.dict.getAsync("Resources");a&&await ObjectLoader.load(a,e,a.xref);return a}async getOperatorList(e,t,a,r){const{hasOwnCanvas:i,id:n,rect:o}=this.data;let c=this.appearance;const l=!!(i&&a&s);if(l&&(0===this.width||0===this.height)){this.data.hasOwnCanvas=!1;return{opList:new OperatorList,separateForm:!1,separateCanvas:!1}}if(!c){if(!l)return{opList:new OperatorList,separateForm:!1,separateCanvas:!1};c=new StringStream("");c.dict=new Dict}const h=c.dict,u=await this.loadResources(Ia,c),d=lookupRect(h.getArray("BBox"),[0,0,1,1]),f=lookupMatrix(h.getArray("Matrix"),Fa),g=getTransformMatrix(o,d,f),p=new OperatorList;let m;this.oc&&(m=await e.parseMarkedContentProps(this.oc,null));void 0!==m&&p.addOp(jt,["OC",m]);p.addOp($t,[n,o,g,f,l]);await e.getOperatorList({stream:c,task:t,resources:u,operatorList:p,fallbackFontDict:this._fallbackFontDict});p.addOp(Gt,[]);void 0!==m&&p.addOp(_t,[]);this.reset();return{opList:p,separateForm:!1,separateCanvas:l}}async save(e,t,a,r){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(e,t,a){if(!this.appearance)return;const r=await this.loadResources(Ta,this.appearance),i=[],n=[];let s=null;const o={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const t of e.items)if(void 0!==t.str){s||=t.transform.slice(-2);n.push(t.str);if(t.hasEOL){i.push(n.join("").trimEnd());n.length=0}}}};await e.getTextContent({stream:this.appearance,task:t,resources:r,includeMarkedContent:!0,keepWhiteSpace:!0,sink:o,viewBox:a});this.reset();n.length&&i.push(n.join("").trimEnd());if(i.length>1||i[0]){const e=this.appearance.dict,t=lookupRect(e.getArray("BBox"),null),a=lookupMatrix(e.getArray("Matrix"),null);this.data.textPosition=this._transformPoint(s,t,a);this.data.textContent=i}}_transformPoint(e,t,a){const{rect:r}=this.data;t||=[0,0,1,1];a||=[1,0,0,1,0,0];const i=getTransformMatrix(r,t,a);i[4]-=r[0];i[5]-=r[1];const n=e.slice();Util.applyTransform(n,i);Util.applyTransform(n,a);return n}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent")){warn("Unknown field name, falling back to empty field name.");return""}if(!e.has("Parent"))return stringToPDFString(e.get("T"));const t=[];e.has("T")&&t.unshift(stringToPDFString(e.get("T")));let a=e;const r=new RefSet;e.objId&&r.put(e.objId);for(;a.has("Parent");){a=a.get("Parent");if(!(a instanceof Dict)||a.objId&&r.has(a.objId))break;a.objId&&r.put(a.objId);a.has("T")&&t.unshift(stringToPDFString(a.get("T")))}return t.join(".")}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}class AnnotationBorderStyle{constructor(){this.width=1;this.rawWidth=1;this.style=fe;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}setWidth(e,t=[0,0,0,0]){if(e instanceof Name)this.width=0;else if("number"==typeof e){if(e>0){this.rawWidth=e;const a=(t[2]-t[0])/2,r=(t[3]-t[1])/2;if(a>0&&r>0&&(e>a||e>r)){warn(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`);e=1}}this.width=e}}setStyle(e){if(e instanceof Name)switch(e.name){case"S":this.style=fe;break;case"D":this.style=ge;break;case"B":this.style=pe;break;case"I":this.style=me;break;case"U":this.style=be}}setDashArray(e,t=!1){if(Array.isArray(e)){let a=!0,r=!0;for(const t of e){if(!(+t>=0)){a=!1;break}t>0&&(r=!1)}if(0===e.length||a&&!r){this.dashArray=e;t&&this.setStyle(Name.get("D"))}else this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}class MarkupAnnotation extends Annotation{constructor(e){super(e);const{dict:t}=e;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=e instanceof Ref?e.toString():null;const a=t.get("RT");this.data.replyType=a instanceof Name?a.name:V}let a=null;if(this.data.replyType===G){const e=t.get("IRT");this.setTitle(e.get("T"));this.data.titleObj=this._title;this.setContents(e.get("Contents"));this.data.contentsObj=this._contents;if(e.has("CreationDate")){this.setCreationDate(e.get("CreationDate"));this.data.creationDate=this.creationDate}else this.data.creationDate=null;if(e.has("M")){this.setModificationDate(e.get("M"));this.data.modificationDate=this.modificationDate}else this.data.modificationDate=null;a=e.getRaw("Popup");if(e.has("C")){this.setColor(e.getArray("C"));this.data.color=this.color}else this.data.color=null}else{this.data.titleObj=this._title;this.setCreationDate(t.get("CreationDate"));this.data.creationDate=this.creationDate;a=t.getRaw("Popup");t.has("C")||(this.data.color=null)}this.data.popupRef=a instanceof Ref?a.toString():null;t.has("RC")&&(this.data.richText=XFAFactory.getRichTextAsHtml(t.get("RC")))}setCreationDate(e){this.creationDate="string"==typeof e?e:null}_setDefaultAppearance({xref:e,extra:t,strokeColor:a,fillColor:r,blendMode:i,strokeAlpha:n,fillAlpha:s,pointsCallback:o}){const c=this.data.rect=[1/0,1/0,-1/0,-1/0],l=["q"];t&&l.push(t);a&&l.push(`${a[0]} ${a[1]} ${a[2]} RG`);r&&l.push(`${r[0]} ${r[1]} ${r[2]} rg`);const h=this.data.quadPoints||Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]);for(let e=0,t=h.length;e<t;e+=8){const t=o(l,h.subarray(e,e+8));Util.rectBoundingBox(...t,c)}l.push("Q");const u=new Dict(e),d=new Dict(e);d.setIfName("Subtype","Form");const f=new StringStream(l.join(" "));f.dict=d;u.set("Fm0",f);const g=new Dict(e);i&&g.setIfName("BM",i);g.setIfNumber("CA",n);g.setIfNumber("ca",s);const p=new Dict(e);p.set("GS0",g);const m=new Dict(e);m.set("ExtGState",p);m.set("XObject",u);const b=new Dict(e);b.set("Resources",m);b.set("BBox",c);this.appearance=new StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=b;this._streams.push(this.appearance,f)}static async createNewAnnotation(e,t,a,r){const i=t.ref||=e.getNewTemporaryRef(),n=await this.createNewAppearanceStream(t,e,r);let s;if(n){const r=e.getNewTemporaryRef();s=this.createNewDict(t,e,{apRef:r});a.put(r,{data:n})}else s=this.createNewDict(t,e,{});Number.isInteger(t.parentTreeId)&&s.set("StructParent",t.parentTreeId);a.put(i,{data:s});const o={ref:i};if(t.popup){const r=t.popup;if(r.deleted){s.delete("Popup");s.delete("Contents");s.delete("RC");return o}const n=r.ref||=e.getNewTemporaryRef();r.parent=i;const c=PopupAnnotation.createNewDict(r,e);a.put(n,{data:c});s.setIfDefined("Contents",stringToAsciiOrUTF16BE(r.contents));s.set("Popup",n);return[o,{ref:n}]}return o}static async createNewPrintAnnotation(e,t,a,r){const i=await this.createNewAppearanceStream(a,t,r),n=this.createNewDict(a,t,i?{ap:i}:{}),s=new this.prototype.constructor({dict:n,xref:t,annotationGlobals:e,evaluatorOptions:r.evaluatorOptions});a.ref&&(s.ref=s.refToReplace=a.ref);return s}}class WidgetAnnotation extends Annotation{constructor(e){super(e);const{dict:t,xref:a,annotationGlobals:r}=e,i=this.data;this._needAppearances=e.needAppearances;i.annotationType=$;void 0===i.fieldName&&(i.fieldName=this._constructFieldName(t));void 0===i.actions&&(i.actions=collectActions(a,t,ye));let n=getInheritableProperty({dict:t,key:"V",getArray:!0});i.fieldValue=this._decodeFormValue(n);const s=getInheritableProperty({dict:t,key:"DV",getArray:!0});i.defaultFieldValue=this._decodeFormValue(s);if(void 0===n&&r.xfaDatasets){const e=this._title.str;if(e){this._hasValueFromXFA=!0;i.fieldValue=n=r.xfaDatasets.getValue(e)}}void 0===n&&null!==i.defaultFieldValue&&(i.fieldValue=i.defaultFieldValue);i.alternativeText=stringToPDFString(t.get("TU")||"");this.setDefaultAppearance(e);i.hasAppearance||=this._needAppearances&&void 0!==i.fieldValue&&null!==i.fieldValue;const o=getInheritableProperty({dict:t,key:"FT"});i.fieldType=o instanceof Name?o.name:null;const c=getInheritableProperty({dict:t,key:"DR"}),l=r.acroForm.get("DR"),h=this.appearance?.dict.get("Resources");this._fieldResources={localResources:c,acroFormResources:l,appearanceResources:h,mergedResources:Dict.merge({xref:a,dictArray:[c,h,l],mergeSubDicts:!0})};i.fieldFlags=getInheritableProperty({dict:t,key:"Ff"});(!Number.isInteger(i.fieldFlags)||i.fieldFlags<0)&&(i.fieldFlags=0);i.password=this.hasFieldFlag(ne);i.readOnly=this.hasFieldFlag(ae);i.required=this.hasFieldFlag(re);i.hidden=this._hasFlag(i.annotationFlags,J)||this._hasFlag(i.annotationFlags,Q)}_decodeFormValue(e){return Array.isArray(e)?e.filter((e=>"string"==typeof e)).map((e=>stringToPDFString(e))):e instanceof Name?stringToPDFString(e.name):"string"==typeof e?stringToPDFString(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}_isViewable(e){return!0}mustBeViewed(e,t){return t?this.viewable:super.mustBeViewed(e,t)&&!this._hasFlag(this.flags,Q)}getRotationMatrix(e){let t=e?.get(this.data.id)?.rotation;void 0===t&&(t=this.rotation);return 0===t?Fa:getRotationMatrix(t,this.width,this.height)}getBorderAndBackgroundAppearances(e){let t=e?.get(this.data.id)?.rotation;void 0===t&&(t=this.rotation);if(!this.backgroundColor&&!this.borderColor)return"";const a=0===t||180===t?`0 0 ${this.width} ${this.height} re`:`0 0 ${this.height} ${this.width} re`;let r="";this.backgroundColor&&(r=`${getPdfColor(this.backgroundColor,!0)} ${a} f `);if(this.borderColor){r+=`${this.borderStyle.width||1} w ${getPdfColor(this.borderColor,!1)} ${a} S `}return r}async getOperatorList(e,t,a,r){if(a&l&&!(this instanceof SignatureWidgetAnnotation)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(e,t,a,r);const i=await this._getAppearance(e,t,a,r);if(this.appearance&&null===i)return super.getOperatorList(e,t,a,r);const n=new OperatorList;if(!this._defaultAppearance||null===i)return{opList:n,separateForm:!1,separateCanvas:!1};const o=!!(this.data.hasOwnCanvas&&a&s),c=[0,0,this.width,this.height],h=getTransformMatrix(this.data.rect,c,[1,0,0,1,0,0]);let u;this.oc&&(u=await e.parseMarkedContentProps(this.oc,null));void 0!==u&&n.addOp(jt,["OC",u]);n.addOp($t,[this.data.id,this.data.rect,h,this.getRotationMatrix(r),o]);const d=new StringStream(i);await e.getOperatorList({stream:d,task:t,resources:this._fieldResources.mergedResources,operatorList:n});n.addOp(Gt,[]);void 0!==u&&n.addOp(_t,[]);return{opList:n,separateForm:!1,separateCanvas:o}}_getMKDict(e){const t=new Dict(null);e&&t.set("R",e);t.setIfArray("BC",getPdfColorArray(this.borderColor));t.setIfArray("BG",getPdfColorArray(this.backgroundColor));return t.size>0?t:null}amendSavedDict(e,t){}setValue(e,t,a,r){const{dict:i,ref:n}=function getParentToUpdate(e,t,a){const r=new RefSet,i=e,n={dict:null,ref:null};for(;e instanceof Dict&&!r.has(t);){r.put(t);if(e.has("T"))break;if(!((t=e.getRaw("Parent"))instanceof Ref))return n;e=a.fetch(t)}if(e instanceof Dict&&e!==i){n.dict=e;n.ref=t}return n}(e,this.ref,a);if(i){if(!r.has(n)){const e=i.clone();e.set("V",t);r.put(n,{data:e});return e}}else e.set("V",t);return null}async save(e,t,a,r){const i=a?.get(this.data.id),n=this._buildFlags(i?.noView,i?.noPrint);let s=i?.value,o=i?.rotation;if(s===this.data.fieldValue||void 0===s){if(!this._hasValueFromXFA&&void 0===o&&void 0===n)return;s||=this.data.fieldValue}if(void 0===o&&!this._hasValueFromXFA&&Array.isArray(s)&&Array.isArray(this.data.fieldValue)&&isArrayEqual(s,this.data.fieldValue)&&void 0===n)return;void 0===o&&(o=this.rotation);let l=null;if(!this._needAppearances){l=await this._getAppearance(e,t,c,a);if(null===l&&void 0===n)return}let h=!1;if(l?.needAppearances){h=!0;l=null}const{xref:u}=e,d=u.fetchIfRef(this.ref);if(!(d instanceof Dict))return;const f=new Dict(u);for(const e of d.getKeys())"AP"!==e&&f.set(e,d.getRaw(e));if(void 0!==n){f.set("F",n);if(null===l&&!h){const e=d.getRaw("AP");e&&f.set("AP",e)}}const g={path:this.data.fieldName,value:s},p=this.setValue(f,Array.isArray(s)?s.map(stringToAsciiOrUTF16BE):stringToAsciiOrUTF16BE(s),u,r);this.amendSavedDict(a,p||f);const m=this._getMKDict(o);m&&f.set("MK",m);r.put(this.ref,{data:f,xfa:g,needAppearances:h});if(null!==l){const e=u.getNewTemporaryRef(),t=new Dict(u);f.set("AP",t);t.set("N",e);const i=this._getSaveFieldResources(u),n=new StringStream(l),s=n.dict=new Dict(u);s.setIfName("Subtype","Form");s.set("Resources",i);const c=o%180==0?[0,0,this.width,this.height]:[0,0,this.height,this.width];s.set("BBox",c);const h=this.getRotationMatrix(a);h!==Fa&&s.set("Matrix",h);r.put(e,{data:n,xfa:null,needAppearances:!1})}f.set("M",`D:${getModificationDate()}`)}async _getAppearance(e,t,a,r){if(this.data.password)return null;const n=r?.get(this.data.id);let s,o;if(n){s=n.formattedValue||n.value;o=n.rotation}if(void 0===o&&void 0===s&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const l=this.getBorderAndBackgroundAppearances(r);if(void 0===s){s=this.data.fieldValue;if(!s)return`/Tx BMC q ${l}Q EMC`}Array.isArray(s)&&1===s.length&&(s=s[0]);assert("string"==typeof s,"Expected `value` to be a string.");s=s.trimEnd();if(this.data.combo){const e=this.data.options.find((({exportValue:e})=>s===e));s=e?.displayValue||s}if(""===s)return`/Tx BMC q ${l}Q EMC`;void 0===o&&(o=this.rotation);let h,u=-1;if(this.data.multiLine){h=s.split(/\\r\\n?|\\n/).map((e=>e.normalize("NFC")));u=h.length}else h=[s.replace(/\\r\\n?|\\n/,"").normalize("NFC")];let{width:d,height:f}=this;90!==o&&270!==o||([d,f]=[f,d]);this._defaultAppearance||(this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let g,p,m,b=await WidgetAnnotation._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);const y=[];let w=!1;for(const e of h){const t=b.encodeString(e);t.length>1&&(w=!0);y.push(t.join(""))}if(w&&a&c)return{needAppearances:!0};if(w&&this._isOffscreenCanvasSupported){const a=this.data.comb?"monospace":"sans-serif",r=new FakeUnicodeFont(e.xref,a),i=r.createFontResources(h.join("")),n=i.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const e=this._fieldResources.mergedResources.get("Font");for(const t of n.getKeys())e.set(t,n.getRaw(t))}else this._fieldResources.mergedResources.set("Font",n);const o=r.fontName.name;b=await WidgetAnnotation._getFontData(e,t,{fontName:o,fontSize:0},i);for(let e=0,t=y.length;e<t;e++)y[e]=stringToUTF16String(h[e]);const c=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0;this.data.defaultAppearanceData.fontName=o;[g,p,m]=this._computeFontSize(f-2,d-4,s,b,u);this.data.defaultAppearanceData=c}else{this._isOffscreenCanvasSupported||warn("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly.");[g,p,m]=this._computeFontSize(f-2,d-4,s,b,u)}let x=b.descent;x=isNaN(x)?i*m:Math.max(i*m,Math.abs(x)*p);const S=Math.min(Math.floor((f-p)/2),1),k=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(g,y,b,p,d,f,k,2,S,x,m,r);if(this.data.comb)return this._getCombAppearance(g,b,y[0],p,d,f,2,S,x,m,r);const C=S+x;if(0===k||k>2)return`/Tx BMC q ${l}BT `+g+` 1 0 0 1 ${numberToString(2)} ${numberToString(C)} Tm (${escapeString(y[0])}) Tj ET Q EMC`;return`/Tx BMC q ${l}BT `+g+` 1 0 0 1 0 0 Tm ${this._renderText(y[0],b,p,d,k,{shift:0},2,C)} ET Q EMC`}static async _getFontData(e,t,a,r){const i=new OperatorList,n={font:null,clone(){return this}},{fontName:s,fontSize:o}=a;await e.handleSetFont(r,[s&&Name.get(s),o],null,i,t,n,null);return n.font}_getTextWidth(e,t){return Math.sumPrecise(t.charsToGlyphs(e).map((e=>e.width)))/1e3}_computeFontSize(e,t,r,i,n){let{fontSize:s}=this.data.defaultAppearanceData,o=(s||12)*a,c=Math.round(e/o);if(!s){const roundWithTwoDigits=e=>Math.floor(100*e)/100;if(-1===n){const n=this._getTextWidth(r,i);s=roundWithTwoDigits(Math.min(e/a,t/n));c=1}else{const l=r.split(/\\r\\n?|\\n/),h=[];for(const e of l){const t=i.encodeString(e).join(""),a=i.charsToGlyphs(t),r=i.getCharPositions(t);h.push({line:t,glyphs:a,positions:r})}const isTooBig=a=>{let r=0;for(const n of h){r+=this._splitLine(null,i,a,t,n).length*a;if(r>e)return!0}return!1};c=Math.max(c,n);for(;;){o=e/c;s=roundWithTwoDigits(o/a);if(!isTooBig(s))break;c++}}const{fontName:l,fontColor:h}=this.data.defaultAppearanceData;this._defaultAppearance=function createDefaultAppearance({fontSize:e,fontName:t,fontColor:a}){return`/${escapePDFName(t)} ${e} Tf ${getPdfColor(a,!0)}`}({fontSize:s,fontName:l,fontColor:h})}return[this._defaultAppearance,s,e/c]}_renderText(e,t,a,r,i,n,s,o){let c;if(1===i){c=(r-this._getTextWidth(e,t)*a)/2}else if(2===i){c=r-this._getTextWidth(e,t)*a-s}else c=s;const l=numberToString(c-n.shift);n.shift=c;return`${l} ${o=numberToString(o)} Td (${escapeString(e)}) Tj`}_getSaveFieldResources(e){const{localResources:t,appearanceResources:a,acroFormResources:r}=this._fieldResources,i=this.data.defaultAppearanceData?.fontName;if(!i)return t||Dict.empty;for(const e of[t,a])if(e instanceof Dict){const t=e.get("Font");if(t instanceof Dict&&t.has(i))return e}if(r instanceof Dict){const a=r.get("Font");if(a instanceof Dict&&a.has(i)){const r=new Dict(e);r.set(i,a.getRaw(i));const n=new Dict(e);n.set("Font",r);return Dict.merge({xref:e,dictArray:[n,t],mergeSubDicts:!0})}}return t||Dict.empty}getFieldObject(){return null}}class TextWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);const{dict:t}=e;if(t.has("PMD")){this.flags|=J;this.data.hidden=!0;warn("Barcodes are not supported")}this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML;this._hasText=!0;"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="");let a=getInheritableProperty({dict:t,key:"Q"});(!Number.isInteger(a)||a<0||a>2)&&(a=null);this.data.textAlignment=a;let r=getInheritableProperty({dict:t,key:"MaxLen"});(!Number.isInteger(r)||r<0)&&(r=0);this.data.maxLen=r;this.data.multiLine=this.hasFieldFlag(ie);this.data.comb=this.hasFieldFlag(de)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(le)&&0!==this.data.maxLen;this.data.doNotScroll=this.hasFieldFlag(ue);const{data:{actions:i}}=this;if(!i)return;const n=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\\([\'"]?([^\'"]+)[\'"]?\\);$/;let s=!1;(1===i.Format?.length&&1===i.Keystroke?.length&&n.test(i.Format[0])&&n.test(i.Keystroke[0])||0===i.Format?.length&&1===i.Keystroke?.length&&n.test(i.Keystroke[0])||0===i.Keystroke?.length&&1===i.Format?.length&&n.test(i.Format[0]))&&(s=!0);const o=[];i.Format&&o.push(...i.Format);i.Keystroke&&o.push(...i.Keystroke);if(s){delete i.Keystroke;i.Format=o}for(const e of o){const t=e.match(n);if(!t)continue;const a="Date"===t[1];let r=t[2];const i=parseInt(r,10);isNaN(i)||Math.floor(Math.log10(i))+1!==t[2].length||(r=(a?Pn:Ln)[i]??r);this.data.datetimeFormat=r;if(!s)break;if(a){if(/HH|MM|ss|h/.test(r)){this.data.datetimeType="datetime-local";this.data.timeStep=/ss/.test(r)?1:60}else this.data.datetimeType="date";break}this.data.datetimeType="time";this.data.timeStep=/ss/.test(r)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(e,t,a,r,i,n,s,o,c,l,h){const u=i/this.data.maxLen,d=this.getBorderAndBackgroundAppearances(h),f=[],g=t.getCharPositions(a);for(const[e,t]of g)f.push(`(${escapeString(a.substring(e,t))}) Tj`);const p=f.join(` ${numberToString(u)} 0 Td `);return`/Tx BMC q ${d}BT `+e+` 1 0 0 1 ${numberToString(s)} ${numberToString(o+c)} Tm ${p} ET Q EMC`}_getMultilineAppearance(e,t,a,r,i,n,s,o,c,l,h,u){const d=[],f=i-2*o,g={shift:0};for(let e=0,n=t.length;e<n;e++){const n=t[e],u=this._splitLine(n,a,r,f);for(let t=0,n=u.length;t<n;t++){const n=u[t],f=0===e&&0===t?-c-(h-l):-h;d.push(this._renderText(n,a,r,i,s,g,o,f))}}const p=this.getBorderAndBackgroundAppearances(u),m=d.join("\\n");return`/Tx BMC q ${p}BT `+e+` 1 0 0 1 0 ${numberToString(n)} Tm ${m} ET Q EMC`}_splitLine(e,t,a,r,i={}){e=i.line||e;const n=i.glyphs||t.charsToGlyphs(e);if(n.length<=1)return[e];const s=i.positions||t.getCharPositions(e),o=a/1e3,c=[];let l=-1,h=-1,u=-1,d=0,f=0;for(let t=0,a=n.length;t<a;t++){const[a,i]=s[t],g=n[t],p=g.width*o;if(" "===g.unicode)if(f+p>r){c.push(e.substring(d,a));d=a;f=p;l=-1;u=-1}else{f+=p;l=a;h=i;u=t}else if(f+p>r)if(-1!==l){c.push(e.substring(d,h));d=h;t=u+1;l=-1;f=0}else{c.push(e.substring(d,a));d=a;f=p}else f+=p}d<e.length&&c.push(e.substring(d,e.length));return c}async extractTextContent(e,t,a){await super.extractTextContent(e,t,a);const r=this.data.textContent;if(!r)return;const i=r.join("\\n");if(i===this.data.fieldValue)return;const n=i.replaceAll(/([.*+?^${}()|[\\]\\\\])|(\\s+)/g,((e,t)=>t?`\\\\${t}`:"\\\\s+"));new RegExp(`^\\\\s*${n}\\\\s*$`).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split("\\n"))}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.data.password,charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,datetimeFormat:this.data.datetimeFormat,hasDatetimeHTML:!!this.data.datetimeType,type:"text"}}}class ButtonWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);this.checkedAppearance=null;this.uncheckedAppearance=null;const t=this.hasFieldFlag(se),a=this.hasFieldFlag(oe);this.data.checkBox=!t&&!a;this.data.radioButton=t&&!a;this.data.pushButton=a;this.data.isTooltipOnly=!1;if(this.data.checkBox)this._processCheckBox(e);else if(this.data.radioButton)this._processRadioButton(e);else if(this.data.pushButton){this.data.hasOwnCanvas=!0;this.data.noHTML=!1;this._processPushButton(e)}else warn("Invalid field flags for button widget annotation")}async getOperatorList(e,t,a,r){if(this.data.pushButton)return super.getOperatorList(e,t,a,!1,r);let i=null,n=null;if(r){const e=r.get(this.data.id);i=e?e.value:null;n=e?e.rotation:null}if(null===i&&this.appearance)return super.getOperatorList(e,t,a,r);null==i&&(i=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);const s=i?this.checkedAppearance:this.uncheckedAppearance;if(s){const i=this.appearance,o=lookupMatrix(s.dict.getArray("Matrix"),Fa);n&&s.dict.set("Matrix",this.getRotationMatrix(r));this.appearance=s;const c=super.getOperatorList(e,t,a,r);this.appearance=i;s.dict.set("Matrix",o);return c}return{opList:new OperatorList,separateForm:!1,separateCanvas:!1}}async save(e,t,a,r){this.data.checkBox?this._saveCheckbox(e,t,a,r):this.data.radioButton&&this._saveRadioButton(e,t,a,r)}async _saveCheckbox(e,t,a,r){if(!a)return;const i=a.get(this.data.id),n=this._buildFlags(i?.noView,i?.noPrint);let s=i?.rotation,o=i?.value;if(void 0===s&&void 0===n){if(void 0===o)return;if(this.data.fieldValue===this.data.exportValue===o)return}let c=e.xref.fetchIfRef(this.ref);if(!(c instanceof Dict))return;c=c.clone();void 0===s&&(s=this.rotation);void 0===o&&(o=this.data.fieldValue===this.data.exportValue);const l={path:this.data.fieldName,value:o?this.data.exportValue:""},h=Name.get(o?this.data.exportValue:"Off");this.setValue(c,h,e.xref,r);c.set("AS",h);c.set("M",`D:${getModificationDate()}`);void 0!==n&&c.set("F",n);const u=this._getMKDict(s);u&&c.set("MK",u);r.put(this.ref,{data:c,xfa:l,needAppearances:!1})}async _saveRadioButton(e,t,a,r){if(!a)return;const i=a.get(this.data.id),n=this._buildFlags(i?.noView,i?.noPrint);let s=i?.rotation,o=i?.value;if(void 0===s&&void 0===n){if(void 0===o)return;if(this.data.fieldValue===this.data.buttonValue===o)return}let c=e.xref.fetchIfRef(this.ref);if(!(c instanceof Dict))return;c=c.clone();void 0===o&&(o=this.data.fieldValue===this.data.buttonValue);void 0===s&&(s=this.rotation);const l={path:this.data.fieldName,value:o?this.data.buttonValue:""},h=Name.get(o?this.data.buttonValue:"Off");o&&this.setValue(c,h,e.xref,r);c.set("AS",h);c.set("M",`D:${getModificationDate()}`);void 0!==n&&c.set("F",n);const u=this._getMKDict(s);u&&c.set("MK",u);r.put(this.ref,{data:c,xfa:l,needAppearances:!1})}_getDefaultCheckedAppearance(e,t){const{width:a,height:r}=this,i=[0,0,a,r],n=.8*Math.min(a,r);let s,o;if("check"===t){s={width:.755*n,height:.705*n};o="3"}else if("disc"===t){s={width:.791*n,height:.705*n};o="l"}else unreachable(`_getDefaultCheckedAppearance - unsupported type: ${t}`);const c=`q BT /PdfJsZaDb ${n} Tf 0 g ${numberToString((a-s.width)/2)} ${numberToString((r-s.height)/2)} Td (${o}) Tj ET Q`,l=new Dict(e.xref);l.set("FormType",1);l.setIfName("Subtype","Form");l.setIfName("Type","XObject");l.set("BBox",i);l.set("Matrix",[1,0,0,1,0,0]);l.set("Length",c.length);const h=new Dict(e.xref),u=new Dict(e.xref);u.set("PdfJsZaDb",this.fallbackFontDict);h.set("Font",u);l.set("Resources",h);this.checkedAppearance=new StringStream(c);this.checkedAppearance.dict=l;this._streams.push(this.checkedAppearance)}_processCheckBox(e){const t=e.dict.get("AP");if(!(t instanceof Dict))return;const a=t.get("N");if(!(a instanceof Dict))return;const r=this._decodeFormValue(e.dict.get("AS"));"string"==typeof r&&(this.data.fieldValue=r);const i=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",n=this._decodeFormValue(a.getKeys());if(0===n.length)n.push("Off",i);else if(1===n.length)"Off"===n[0]?n.push(i):n.unshift("Off");else if(n.includes(i)){n.length=0;n.push("Off",i)}else{const e=n.find((e=>"Off"!==e));n.length=0;n.push("Off",e)}n.includes(this.data.fieldValue)||(this.data.fieldValue="Off");this.data.exportValue=n[1];const s=a.get(this.data.exportValue);this.checkedAppearance=s instanceof BaseStream?s:null;const o=a.get("Off");this.uncheckedAppearance=o instanceof BaseStream?o:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processRadioButton(e){this.data.buttonValue=null;const t=e.dict.get("Parent");if(t instanceof Dict){this.parent=e.dict.getRaw("Parent");const a=t.get("V");a instanceof Name&&(this.data.fieldValue=this._decodeFormValue(a))}const a=e.dict.get("AP");if(!(a instanceof Dict))return;const r=a.get("N");if(!(r instanceof Dict))return;for(const e of r.getKeys())if("Off"!==e){this.data.buttonValue=this._decodeFormValue(e);break}const i=r.get(this.data.buttonValue);this.checkedAppearance=i instanceof BaseStream?i:null;const n=r.get("Off");this.uncheckedAppearance=n instanceof BaseStream?n:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processPushButton(e){const{dict:t,annotationGlobals:a}=e;if(t.has("A")||t.has("AA")||this.data.alternativeText){this.data.isTooltipOnly=!t.has("A")&&!t.has("AA");Catalog.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:a.baseUrl,docAttachments:a.attachments})}else warn("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button";if(this.data.checkBox){t="checkbox";e=this.data.exportValue}else if(this.data.radioButton){t="radiobutton";e=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const e=new Dict;e.setIfName("BaseFont","ZapfDingbats");e.setIfName("Type","FallbackType");e.setIfName("Subtype","FallbackType");e.setIfName("Encoding","ZapfDingbatsEncoding");return shadow(this,"fallbackFontDict",e)}}class ChoiceWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.indices=t.getArray("I");this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0;this.data.options=[];const r=getInheritableProperty({dict:t,key:"Opt"});if(Array.isArray(r))for(let e=0,t=r.length;e<t;e++){const t=a.fetchIfRef(r[e]),i=Array.isArray(t);this.data.options[e]={exportValue:this._decodeFormValue(i?a.fetchIfRef(t[0]):t),displayValue:this._decodeFormValue(i?a.fetchIfRef(t[1]):t)}}if(this.hasIndices){this.data.fieldValue=[];const e=this.data.options.length;for(const t of this.indices)Number.isInteger(t)&&t>=0&&t<e&&this.data.fieldValue.push(this.data.options[t].exportValue)}else"string"==typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||=[];0===this.data.options.length&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map((e=>({exportValue:e,displayValue:e}))));this.data.combo=this.hasFieldFlag(ce);this.data.multiSelect=this.hasFieldFlag(he);this._hasText=!0}getFieldObject(){const e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}amendSavedDict(e,t){if(!this.hasIndices)return;let a=e?.get(this.data.id)?.value;Array.isArray(a)||(a=[a]);const r=[],{options:i}=this.data;for(let e=0,t=0,n=i.length;e<n;e++)if(i[e].exportValue===a[t]){r.push(e);t+=1}t.set("I",r)}async _getAppearance(e,t,r,i){if(this.data.combo)return super._getAppearance(e,t,r,i);let n,s;const o=i?.get(this.data.id);if(o){s=o.rotation;n=o.value}if(void 0===s&&void 0===n&&!this._needAppearances)return null;void 0===n?n=this.data.fieldValue:Array.isArray(n)||(n=[n]);let{width:c,height:l}=this;90!==s&&270!==s||([c,l]=[l,c]);const h=this.data.options.length,u=[];for(let e=0;e<h;e++){const{exportValue:t}=this.data.options[e];n.includes(t)&&u.push(e)}this._defaultAppearance||(this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const d=await WidgetAnnotation._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let f,{fontSize:g}=this.data.defaultAppearanceData;if(g)f=this._defaultAppearance;else{const e=(l-1)/h;let t,a=-1;for(const{displayValue:e}of this.data.options){const r=this._getTextWidth(e,d);if(r>a){a=r;t=e}}[f,g]=this._computeFontSize(e,c-4,t,d,-1)}const p=g*a,m=(p-g)/2,b=Math.floor(l/p);let y=0;if(u.length>0){const e=Math.min(...u),t=Math.max(...u);y=Math.max(0,t-b+1);y>e&&(y=e)}const w=Math.min(y+b+1,h),x=["/Tx BMC q",`1 1 ${c} ${l} re W n`];if(u.length){x.push("0.600006 0.756866 0.854904 rg");for(const e of u)y<=e&&e<w&&x.push(`1 ${l-(e-y+1)*p} ${c} ${p} re f`)}x.push("BT",f,`1 0 0 1 0 ${l} Tm`);const S={shift:0};for(let e=y;e<w;e++){const{displayValue:t}=this.data.options[e],a=e===y?m:0;x.push(this._renderText(t,d,g,c,0,S,2,-p+a))}x.push("ET Q EMC");return x.join("\\n")}}class SignatureWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);this.data.fieldValue=null;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!this.data.hasOwnCanvas}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class TextAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.noRotate=!0;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;const{dict:t}=e;this.data.annotationType=F;if(this.data.hasAppearance)this.data.name="NoIcon";else{this.data.rect[1]=this.data.rect[3]-22;this.data.rect[2]=this.data.rect[0]+22;this.data.name=t.has("Name")?t.get("Name").name:"Note"}if(t.has("State")){this.data.state=t.get("State")||null;this.data.stateModel=t.get("StateModel")||null}else{this.data.state=null;this.data.stateModel=null}}}class LinkAnnotation extends Annotation{constructor(e){super(e);const{dict:t,annotationGlobals:a}=e;this.data.annotationType=T;this.data.noHTML=!1;const r=getQuadPoints(t,this.rectangle);r&&(this.data.quadPoints=r);this.data.borderColor||=this.data.color;Catalog.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:a.baseUrl,docAttachments:a.attachments})}get overlaysTextContent(){return!0}}class PopupAnnotation extends Annotation{constructor(e){super(e);const{dict:t}=e;this.data.annotationType=W;this.data.noHTML=!1;0!==this.width&&0!==this.height||(this.data.rect=null);let a=t.get("Parent");if(!a){warn("Popup annotation has a missing or invalid parent annotation.");return}this.data.parentRect=lookupNormalRect(a.getArray("Rect"),null);this.data.creationDate=a.get("CreationDate")||"";isName(a.get("RT"),G)&&(a=a.get("IRT"));if(a.has("M")){this.setModificationDate(a.get("M"));this.data.modificationDate=this.modificationDate}else this.data.modificationDate=null;if(a.has("C")){this.setColor(a.getArray("C"));this.data.color=this.color}else this.data.color=null;if(!this.viewable){const e=a.get("F");this._isViewable(e)&&this.setFlags(e)}this.setTitle(a.get("T"));this.data.titleObj=this._title;this.setContents(a.get("Contents"));this.data.contentsObj=this._contents;a.has("RC")&&(this.data.richText=XFAFactory.getRichTextAsHtml(a.get("RC")));this.data.open=!!t.get("Open")}static createNewDict(e,t,a){const{oldAnnotation:r,rect:i,parent:n}=e,s=r||new Dict(t);s.setIfNotExists("Type",Name.get("Annot"));s.setIfNotExists("Subtype",Name.get("Popup"));s.setIfNotExists("Open",!1);s.setIfArray("Rect",i);s.set("Parent",n);return s}static async createNewAppearanceStream(e,t,a){return null}}class FreeTextAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.hasOwnCanvas=this.data.noRotate;this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1;const{annotationGlobals:t,evaluatorOptions:a,xref:r}=e;this.data.annotationType=O;this.setDefaultAppearance(e);this._hasAppearance=!!this.appearance;if(this._hasAppearance){const{fontColor:e,fontSize:i}=function parseAppearanceStream(e,t,a,r){return new AppearanceStreamEvaluator(e,t,a,r).parse()}(this.appearance,a,r,t.globalColorSpaceCache);this.data.defaultAppearanceData.fontColor=e;this.data.defaultAppearanceData.fontSize=i||10}else{this.data.defaultAppearanceData.fontSize||=10;const{fontColor:t,fontSize:a}=this.data.defaultAppearanceData;if(this._contents.str){this.data.textContent=this._contents.str.split(/\\r\\n?|\\n/).map((e=>e.trimEnd()));const{coords:e,bbox:t,matrix:r}=FakeUnicodeFont.getFirstPositionInfo(this.rectangle,this.rotation,a);this.data.textPosition=this._transformPoint(e,t,r)}if(this._isOffscreenCanvasSupported){const i=e.dict.get("CA"),n=new FakeUnicodeFont(r,"sans-serif");this.appearance=n.createAppearance(this._contents.str,this.rectangle,this.rotation,a,t,i);this._streams.push(this.appearance)}else warn("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}get hasTextContent(){return this._hasAppearance}static createNewDict(e,t,{apRef:a,ap:r}){const{color:i,date:n,fontSize:s,oldAnnotation:o,rect:c,rotation:l,user:h,value:u}=e,d=o||new Dict(t);d.setIfNotExists("Type",Name.get("Annot"));d.setIfNotExists("Subtype",Name.get("FreeText"));d.set(o?"M":"CreationDate",`D:${getModificationDate(n)}`);o&&d.delete("RC");d.setIfArray("Rect",c);const f=`/Helv ${s} Tf ${getPdfColor(i,!0)}`;d.set("DA",f);d.setIfDefined("Contents",stringToAsciiOrUTF16BE(u));d.setIfNotExists("F",4);d.setIfNotExists("Border",[0,0,0]);d.setIfNumber("Rotate",l);d.setIfDefined("T",stringToAsciiOrUTF16BE(h));if(a||r){const e=new Dict(t);d.set("AP",e);e.set("N",a||r)}return d}static async createNewAppearanceStream(e,t,r){const{baseFontRef:i,evaluator:n,task:s}=r,{color:o,fontSize:c,rect:l,rotation:h,value:u}=e;if(!o)return null;const d=new Dict(t),f=new Dict(t);if(i)f.set("Helv",i);else{const e=new Dict(t);e.setIfName("BaseFont","Helvetica");e.setIfName("Type","Font");e.setIfName("Subtype","Type1");e.setIfName("Encoding","WinAnsiEncoding");f.set("Helv",e)}d.set("Font",f);const g=await WidgetAnnotation._getFontData(n,s,{fontName:"Helv",fontSize:c},d),[p,m,b,y]=l;let w=b-p,x=y-m;h%180!=0&&([w,x]=[x,w]);const S=u.split("\\n"),k=c/1e3;let C=-1/0;const v=[];for(let e of S){const t=g.encodeString(e);if(t.length>1)return null;e=t.join("");v.push(e);let a=0;const r=g.charsToGlyphs(e);for(const e of r)a+=e.width*k;C=Math.max(C,a)}let F=1;C>w&&(F=w/C);let T=1;const O=a*c,M=1*c,D=O*S.length;D>x&&(T=x/D);const R=c*Math.min(F,T);let N,E,L;switch(h){case 0:L=[1,0,0,1];E=[l[0],l[1],w,x];N=[l[0],l[3]-M];break;case 90:L=[0,1,-1,0];E=[l[1],-l[2],w,x];N=[l[1],-l[0]-M];break;case 180:L=[-1,0,0,-1];E=[-l[2],-l[3],w,x];N=[-l[2],-l[1]-M];break;case 270:L=[0,-1,1,0];E=[-l[3],l[0],w,x];N=[-l[3],l[2]-M]}const j=["q",`${L.join(" ")} 0 0 cm`,`${E.join(" ")} re W n`,"BT",`${getPdfColor(o,!0)}`,`0 Tc /Helv ${numberToString(R)} Tf`];j.push(`${N.join(" ")} Td (${escapeString(v[0])}) Tj`);const _=numberToString(O);for(let e=1,t=v.length;e<t;e++){const t=v[e];j.push(`0 -${_} Td (${escapeString(t)}) Tj`)}j.push("ET","Q");const U=j.join("\\n"),X=new Dict(t);X.set("FormType",1);X.setIfName("Subtype","Form");X.setIfName("Type","XObject");X.set("BBox",l);X.set("Resources",d);X.set("Matrix",[1,0,0,1,-l[0],-l[1]]);const q=new StringStream(U);q.dict=X;return q}}class LineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=M;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;const r=lookupRect(t.getArray("L"),[0,0,0,0]);this.data.lineCoordinates=Util.normalizeRect(r);this.setLineEndings(t.getArray("LE"));this.data.lineEndings=this.lineEndings;if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),i=t.get("CA"),n=getPdfColorArray(getRgbColor(t.getArray("IC"),null)),s=n?i:null,o=this.borderStyle.width||1,c=2*o,l=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];Util.intersect(this.rectangle,l)||(this.rectangle=l);this._setDefaultAppearance({xref:a,extra:`${o} w`,strokeColor:e,fillColor:n,strokeAlpha:i,fillAlpha:s,pointsCallback:(e,t)=>{e.push(`${r[0]} ${r[1]} m`,`${r[2]} ${r[3]} l`,"S");return[t[0]-o,t[7]-o,t[2]+o,t[3]+o]}})}}}class SquareAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=D;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),r=t.get("CA"),i=getPdfColorArray(getRgbColor(t.getArray("IC"),null)),n=i?r:null;if(0===this.borderStyle.width&&!i)return;this._setDefaultAppearance({xref:a,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:i,strokeAlpha:r,fillAlpha:n,pointsCallback:(e,t)=>{const a=t[4]+this.borderStyle.width/2,r=t[5]+this.borderStyle.width/2,n=t[6]-t[4]-this.borderStyle.width,s=t[3]-t[7]-this.borderStyle.width;e.push(`${a} ${r} ${n} ${s} re`);i?e.push("B"):e.push("S");return[t[0],t[7],t[2],t[3]]}})}}}class CircleAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=R;if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),r=t.get("CA"),i=getPdfColorArray(getRgbColor(t.getArray("IC"),null)),n=i?r:null;if(0===this.borderStyle.width&&!i)return;const s=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:a,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:i,strokeAlpha:r,fillAlpha:n,pointsCallback:(e,t)=>{const a=t[0]+this.borderStyle.width/2,r=t[1]-this.borderStyle.width/2,n=t[6]-this.borderStyle.width/2,o=t[7]+this.borderStyle.width/2,c=a+(n-a)/2,l=r+(o-r)/2,h=(n-a)/2*s,u=(o-r)/2*s;e.push(`${c} ${o} m`,`${c+h} ${o} ${n} ${l+u} ${n} ${l} c`,`${n} ${l-u} ${c+h} ${r} ${c} ${r} c`,`${c-h} ${r} ${a} ${l-u} ${a} ${l} c`,`${a} ${l+u} ${c-h} ${o} ${c} ${o} c`,"h");i?e.push("B"):e.push("S");return[t[0],t[7],t[2],t[3]]}})}}}class PolylineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=E;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;this.data.vertices=null;if(!(this instanceof PolygonAnnotation)){this.setLineEndings(t.getArray("LE"));this.data.lineEndings=this.lineEndings}const r=t.getArray("Vertices");if(!isNumberArray(r,null))return;const i=this.data.vertices=Float32Array.from(r);if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),r=t.get("CA");let n,s=getRgbColor(t.getArray("IC"),null);s&&(s=getPdfColorArray(s));n=s?this.color?s.every(((t,a)=>t===e[a]))?"f":"B":"f":"S";const o=this.borderStyle.width||1,c=2*o,l=[1/0,1/0,-1/0,-1/0];for(let e=0,t=i.length;e<t;e+=2)Util.rectBoundingBox(i[e]-c,i[e+1]-c,i[e]+c,i[e+1]+c,l);Util.intersect(this.rectangle,l)||(this.rectangle=l);this._setDefaultAppearance({xref:a,extra:`${o} w`,strokeColor:e,strokeAlpha:r,fillColor:s,fillAlpha:s?r:null,pointsCallback:(e,t)=>{for(let t=0,a=i.length;t<a;t+=2)e.push(`${i[t]} ${i[t+1]} ${0===t?"m":"l"}`);e.push(n);return[t[0],t[7],t[2],t[3]]}})}}}class PolygonAnnotation extends PolylineAnnotation{constructor(e){super(e);this.data.annotationType=N}}class CaretAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.annotationType=q}}class InkAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;const{dict:t,xref:a}=e;this.data.annotationType=H;this.data.inkLists=[];this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1;this.data.opacity=t.get("CA")||1;const r=t.getArray("InkList");if(Array.isArray(r)){for(let e=0,t=r.length;e<t;++e){if(!Array.isArray(r[e]))continue;const t=new Float32Array(r[e].length);this.data.inkLists.push(t);for(let i=0,n=r[e].length;i<n;i+=2){const n=a.fetchIfRef(r[e][i]),s=a.fetchIfRef(r[e][i+1]);if("number"==typeof n&&"number"==typeof s){t[i]=n;t[i+1]=s}}}if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),r=t.get("CA"),i=this.borderStyle.width||1,n=2*i,s=[1/0,1/0,-1/0,-1/0];for(const e of this.data.inkLists)for(let t=0,a=e.length;t<a;t+=2)Util.rectBoundingBox(e[t]-n,e[t+1]-n,e[t]+n,e[t+1]+n,s);Util.intersect(this.rectangle,s)||(this.rectangle=s);this._setDefaultAppearance({xref:a,extra:`${i} w`,strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{for(const t of this.data.inkLists){for(let a=0,r=t.length;a<r;a+=2)e.push(`${t[a]} ${t[a+1]} ${0===a?"m":"l"}`);e.push("S")}return[t[0],t[7],t[2],t[3]]}})}}}static createNewDict(e,t,{apRef:a,ap:r}){const{oldAnnotation:i,color:n,date:s,opacity:o,paths:c,outlines:l,rect:h,rotation:u,thickness:d,user:f}=e,g=i||new Dict(t);g.setIfNotExists("Type",Name.get("Annot"));g.setIfNotExists("Subtype",Name.get("Ink"));g.set(i?"M":"CreationDate",`D:${getModificationDate(s)}`);g.setIfArray("Rect",h);g.setIfArray("InkList",l?.points||c?.points);g.setIfNotExists("F",4);g.setIfNumber("Rotate",u);g.setIfDefined("T",stringToAsciiOrUTF16BE(f));l&&g.setIfName("IT","InkHighlight");if(d>0){const e=new Dict(t);g.set("BS",e);e.set("W",d)}g.setIfArray("C",getPdfColorArray(n));g.setIfNumber("CA",o);if(r||a){const e=new Dict(t);g.set("AP",e);e.set("N",a||r)}return g}static async createNewAppearanceStream(e,t,a){if(e.outlines)return this.createNewAppearanceStreamForHighlight(e,t,a);const{color:r,rect:i,paths:n,thickness:s,opacity:o}=e;if(!r)return null;const c=[`${s} w 1 J 1 j`,`${getPdfColor(r,!1)}`];1!==o&&c.push("/R0 gs");for(const e of n.lines){c.push(`${numberToString(e[4])} ${numberToString(e[5])} m`);for(let t=6,a=e.length;t<a;t+=6)if(isNaN(e[t]))c.push(`${numberToString(e[t+4])} ${numberToString(e[t+5])} l`);else{const[a,r,i,n,s,o]=e.slice(t,t+6);c.push([a,r,i,n,s,o].map(numberToString).join(" ")+" c")}6===e.length&&c.push(`${numberToString(e[4])} ${numberToString(e[5])} l`)}c.push("S");const l=c.join("\\n"),h=new Dict(t);h.set("FormType",1);h.setIfName("Subtype","Form");h.setIfName("Type","XObject");h.set("BBox",i);h.set("Length",l.length);if(1!==o){const e=new Dict(t),a=new Dict(t),r=new Dict(t);r.set("CA",o);r.setIfName("Type","ExtGState");a.set("R0",r);e.set("ExtGState",a);h.set("Resources",e)}const u=new StringStream(l);u.dict=h;return u}static async createNewAppearanceStreamForHighlight(e,t,a){const{color:r,rect:i,outlines:{outline:n},opacity:s}=e;if(!r)return null;const o=[`${getPdfColor(r,!0)}`,"/R0 gs"];o.push(`${numberToString(n[4])} ${numberToString(n[5])} m`);for(let e=6,t=n.length;e<t;e+=6)if(isNaN(n[e]))o.push(`${numberToString(n[e+4])} ${numberToString(n[e+5])} l`);else{const[t,a,r,i,s,c]=n.slice(e,e+6);o.push([t,a,r,i,s,c].map(numberToString).join(" ")+" c")}o.push("h f");const c=o.join("\\n"),l=new Dict(t);l.set("FormType",1);l.setIfName("Subtype","Form");l.setIfName("Type","XObject");l.set("BBox",i);l.set("Length",c.length);const h=new Dict(t),u=new Dict(t);h.set("ExtGState",u);l.set("Resources",h);const d=new Dict(t);u.set("R0",d);d.setIfName("BM","Multiply");if(1!==s){d.set("ca",s);d.setIfName("Type","ExtGState")}const f=new StringStream(c);f.dict=l;return f}}class HighlightAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=L;this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1;this.data.opacity=t.get("CA")||1;if(this.data.quadPoints=getQuadPoints(t,null)){const e=this.appearance?.dict.get("Resources");if(!this.appearance||!e?.has("ExtGState")){this.appearance&&warn("HighlightAnnotation - ignoring built-in appearance stream.");const e=getPdfColorArray(this.color,[1,1,0]),r=t.get("CA");this._setDefaultAppearance({xref:a,fillColor:e,blendMode:"Multiply",fillAlpha:r,pointsCallback:(e,t)=>{e.push(`${t[0]} ${t[1]} m`,`${t[2]} ${t[3]} l`,`${t[6]} ${t[7]} l`,`${t[4]} ${t[5]} l`,"f");return[t[0],t[7],t[2],t[3]]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(e,t,{apRef:a,ap:r}){const{color:i,date:n,oldAnnotation:s,opacity:o,rect:c,rotation:l,user:h,quadPoints:u}=e,d=s||new Dict(t);d.setIfNotExists("Type",Name.get("Annot"));d.setIfNotExists("Subtype",Name.get("Highlight"));d.set(s?"M":"CreationDate",`D:${getModificationDate(n)}`);d.setIfArray("Rect",c);d.setIfNotExists("F",4);d.setIfNotExists("Border",[0,0,0]);d.setIfNumber("Rotate",l);d.setIfArray("QuadPoints",u);d.setIfArray("C",getPdfColorArray(i));d.setIfNumber("CA",o);d.setIfDefined("T",stringToAsciiOrUTF16BE(h));if(a||r){const e=new Dict(t);d.set("AP",e);e.set("N",a||r)}return d}static async createNewAppearanceStream(e,t,a){const{color:r,rect:i,outlines:n,opacity:s}=e;if(!r)return null;const o=[`${getPdfColor(r,!0)}`,"/R0 gs"],c=[];for(const e of n){c.length=0;c.push(`${numberToString(e[0])} ${numberToString(e[1])} m`);for(let t=2,a=e.length;t<a;t+=2)c.push(`${numberToString(e[t])} ${numberToString(e[t+1])} l`);c.push("h");o.push(c.join("\\n"))}o.push("f*");const l=o.join("\\n"),h=new Dict(t);h.set("FormType",1);h.setIfName("Subtype","Form");h.setIfName("Type","XObject");h.set("BBox",i);h.set("Length",l.length);const u=new Dict(t),d=new Dict(t);u.set("ExtGState",d);h.set("Resources",u);const f=new Dict(t);d.set("R0",f);f.setIfName("BM","Multiply");if(1!==s){f.set("ca",s);f.setIfName("Type","ExtGState")}const g=new StringStream(l);g.dict=h;return g}}class UnderlineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=j;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),r=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 0.571 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{e.push(`${t[4]} ${t[5]+1.3} m`,`${t[6]} ${t[7]+1.3} l`,"S");return[t[0],t[7],t[2],t[3]]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class SquigglyAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=_;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),r=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{const a=(t[1]-t[5])/6;let r=a,i=t[4];const n=t[5],s=t[6];e.push(`${i} ${n+r} m`);do{i+=2;r=0===r?a:0;e.push(`${i} ${n+r} l`)}while(i<s);e.push("S");return[t[4],n-2*a,s,n+2*a]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class StrikeOutAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=U;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),r=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{e.push((t[0]+t[4])/2+" "+(t[1]+t[5])/2+" m",(t[2]+t[6])/2+" "+(t[3]+t[7])/2+" l","S");return[t[0],t[7],t[2],t[3]]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class StampAnnotation extends MarkupAnnotation{#pe=null;constructor(e){super(e);this.data.annotationType=X;this.data.hasOwnCanvas=this.data.noRotate;this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1}mustBeViewedWhenEditing(e,t=null){if(e){if(!this.data.isEditable)return!0;this.#pe??=this.data.hasOwnCanvas;this.data.hasOwnCanvas=!0;return!0}if(null!==this.#pe){this.data.hasOwnCanvas=this.#pe;this.#pe=null}return!t?.has(this.data.id)}static async createImage(e,t){const{width:a,height:r}=e,i=new OffscreenCanvas(a,r),n=i.getContext("2d",{alpha:!0});n.drawImage(e,0,0);const s=n.getImageData(0,0,a,r).data,o=new Uint32Array(s.buffer),c=o.some(FeatureTest.isLittleEndian?e=>e>>>24!=255:e=>!!(255&~e));if(c){n.fillStyle="white";n.fillRect(0,0,a,r);n.drawImage(e,0,0)}const l=i.convertToBlob({type:"image/jpeg",quality:1}).then((e=>e.arrayBuffer())),h=Name.get("XObject"),u=Name.get("Image"),d=new Dict(t);d.set("Type",h);d.set("Subtype",u);d.set("BitsPerComponent",8);d.setIfName("ColorSpace","DeviceRGB");d.setIfName("Filter","DCTDecode");d.set("BBox",[0,0,a,r]);d.set("Width",a);d.set("Height",r);let f=null;if(c){const e=new Uint8Array(o.length);if(FeatureTest.isLittleEndian)for(let t=0,a=o.length;t<a;t++)e[t]=o[t]>>>24;else for(let t=0,a=o.length;t<a;t++)e[t]=255&o[t];const i=new Dict(t);i.set("Type",h);i.set("Subtype",u);i.set("BitsPerComponent",8);i.setIfName("ColorSpace","DeviceGray");i.set("Width",a);i.set("Height",r);f=new Stream(e,0,0,i)}return{imageStream:new Stream(await l,0,0,d),smaskStream:f,width:a,height:r}}static createNewDict(e,t,{apRef:a,ap:r}){const{date:i,oldAnnotation:n,rect:s,rotation:o,user:c}=e,l=n||new Dict(t);l.setIfNotExists("Type",Name.get("Annot"));l.setIfNotExists("Subtype",Name.get("Stamp"));l.set(n?"M":"CreationDate",`D:${getModificationDate(i)}`);l.setIfArray("Rect",s);l.setIfNotExists("F",4);l.setIfNotExists("Border",[0,0,0]);l.setIfNumber("Rotate",o);l.setIfDefined("T",stringToAsciiOrUTF16BE(c));if(a||r){const e=new Dict(t);l.set("AP",e);e.set("N",a||r)}return l}static async#me(e,t){const{areContours:a,color:r,rect:i,lines:n,thickness:s}=e;if(!r)return null;const o=[`${s} w 1 J 1 j`,`${getPdfColor(r,a)}`];for(const e of n){o.push(`${numberToString(e[4])} ${numberToString(e[5])} m`);for(let t=6,a=e.length;t<a;t+=6)if(isNaN(e[t]))o.push(`${numberToString(e[t+4])} ${numberToString(e[t+5])} l`);else{const[a,r,i,n,s,c]=e.slice(t,t+6);o.push([a,r,i,n,s,c].map(numberToString).join(" ")+" c")}6===e.length&&o.push(`${numberToString(e[4])} ${numberToString(e[5])} l`)}o.push(a?"F":"S");const c=o.join("\\n"),l=new Dict(t);l.set("FormType",1);l.setIfName("Subtype","Form");l.setIfName("Type","XObject");l.set("BBox",i);l.set("Length",c.length);const h=new StringStream(c);h.dict=l;return h}static async createNewAppearanceStream(e,t,a){if(e.oldAnnotation)return null;if(e.isSignature)return this.#me(e,t);const{rotation:r}=e,{imageRef:i,width:n,height:s}=a.image,o=new Dict(t),c=new Dict(t);o.set("XObject",c);c.set("Im0",i);const l=`q ${n} 0 0 ${s} 0 0 cm /Im0 Do Q`,h=new Dict(t);h.set("FormType",1);h.setIfName("Subtype","Form");h.setIfName("Type","XObject");h.set("BBox",[0,0,n,s]);h.set("Resources",o);if(r){const e=getRotationMatrix(r,n,s);h.set("Matrix",e)}const u=new StringStream(l);u.dict=h;return u}}class FileAttachmentAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e,r=new FileSpec(t.get("FS"),a);this.data.annotationType=z;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;this.data.file=r.serializable;const i=t.get("Name");this.data.name=i instanceof Name?stringToPDFString(i.name):"PushPin";const n=t.get("ca");this.data.fillAlpha="number"==typeof n&&n>=0&&n<=1?n:null}}const pc={get r(){return shadow(this,"r",new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]))},get k(){return shadow(this,"k",new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]))}};function calculateMD5(e,t,a){let r=1732584193,i=-271733879,n=-1732584194,s=271733878;const o=a+72&-64,c=new Uint8Array(o);let l,h;for(l=0;l<a;++l)c[l]=e[t++];c[l++]=128;const u=o-8;l<u&&(l=u);c[l++]=a<<3&255;c[l++]=a>>5&255;c[l++]=a>>13&255;c[l++]=a>>21&255;c[l++]=a>>>29&255;l+=3;const d=new Int32Array(16),{k:f,r:g}=pc;for(l=0;l<o;){for(h=0;h<16;++h,l+=4)d[h]=c[l]|c[l+1]<<8|c[l+2]<<16|c[l+3]<<24;let e,t,a=r,o=i,u=n,p=s;for(h=0;h<64;++h){if(h<16){e=o&u|~o&p;t=h}else if(h<32){e=p&o|~p&u;t=5*h+1&15}else if(h<48){e=o^u^p;t=3*h+5&15}else{e=u^(o|~p);t=7*h&15}const r=p,i=a+e+f[h]+d[t]|0,n=g[h];p=u;u=o;o=o+(i<<n|i>>>32-n)|0;a=r}r=r+a|0;i=i+o|0;n=n+u|0;s=s+p|0}return new Uint8Array([255&r,r>>8&255,r>>16&255,r>>>24&255,255&i,i>>8&255,i>>16&255,i>>>24&255,255&n,n>>8&255,n>>16&255,n>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255])}function decodeString(e){try{return stringToUTF8String(e)}catch(t){warn(`UTF-8 decoding failed: "${t}".`);return e}}class DatasetXMLParser extends SimpleXMLParser{constructor(e){super(e);this.node=null}onEndElement(e){const t=super.onEndElement(e);if(t&&"xfa:datasets"===e){this.node=t;throw new Error("Aborting DatasetXMLParser.")}}}class DatasetReader{constructor(e){if(e.datasets)this.node=new SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{const t=new DatasetXMLParser({hasAttributes:!0});try{t.parseFromString(e["xdp:xdp"])}catch{}this.node=t.node}}getValue(e){if(!this.node||!e)return"";const t=this.node.searchNode(parseXFAPath(e),0);if(!t)return"";const a=t.firstChild;return"value"===a?.nodeName?t.children.map((e=>decodeString(e.textContent))):decodeString(t.textContent)}}class SingleIntersector{#be;#ye=1/0;#we=1/0;#xe=-1/0;#Se=-1/0;#Ae=null;#ke=[];#Ce=[];#ve=-1;#Fe=!1;constructor(e){this.#be=e;const t=e.data.quadPoints;if(t){for(let e=0,a=t.length;e<a;e+=8){this.#ye=Math.min(this.#ye,t[e]);this.#xe=Math.max(this.#xe,t[e+2]);this.#we=Math.min(this.#we,t[e+5]);this.#Se=Math.max(this.#Se,t[e+1])}t.length>8&&(this.#Ae=t)}else[this.#ye,this.#we,this.#xe,this.#Se]=e.data.rect}overlaps(e){return!(this.#ye>=e.#xe||this.#xe<=e.#ye||this.#we>=e.#Se||this.#Se<=e.#we)}#Ie(e,t){if(this.#ye>=e||this.#xe<=e||this.#we>=t||this.#Se<=t)return!1;const a=this.#Ae;if(!a)return!0;if(this.#ve>=0){const r=this.#ve;if(!(a[r]>=e||a[r+2]<=e||a[r+5]>=t||a[r+1]<=t))return!0;this.#ve=-1}for(let r=0,i=a.length;r<i;r+=8)if(!(a[r]>=e||a[r+2]<=e||a[r+5]>=t||a[r+1]<=t)){this.#ve=r;return!0}return!1}addGlyph(e,t,a){if(!this.#Ie(e,t)){this.disableExtraChars();return!1}if(this.#Ce.length>0){this.#ke.push(this.#Ce.join(""));this.#Ce.length=0}this.#ke.push(a);this.#Fe=!0;return!0}addExtraChar(e){this.#Fe&&this.#Ce.push(e)}disableExtraChars(){if(this.#Fe){this.#Fe=!1;this.#Ce.length=0}}setText(){this.#be.data.overlaidText=this.#ke.join("")}}class Intersector{#Te=new Map;constructor(e){for(const t of e){if(!t.data.quadPoints&&!t.data.rect)continue;const e=new SingleIntersector(t);for(const[t,a]of this.#Te)t.overlaps(e)&&(a?a.add(e):this.#Te.set(t,new Set([e])));this.#Te.set(e,null)}}addGlyph(e,t,a,r){const i=e[4]+t/2,n=e[5]+a/2;let s;for(const[e,t]of this.#Te)s?s.has(e)?e.addGlyph(i,n,r):e.disableExtraChars():e.addGlyph(i,n,r)&&(s=t)}addExtraChar(e){for(const t of this.#Te.keys())t.addExtraChar(e)}setText(){for(const e of this.#Te.keys())e.setText()}}class Word64{constructor(e,t){this.high=0|e;this.low=0|t}and(e){this.high&=e.high;this.low&=e.low}xor(e){this.high^=e.high;this.low^=e.low}shiftRight(e){if(e>=32){this.low=this.high>>>e-32|0;this.high=0}else{this.low=this.low>>>e|this.high<<32-e;this.high=this.high>>>e|0}}rotateRight(e){let t,a;if(32&e){a=this.low;t=this.high}else{t=this.low;a=this.high}e&=31;this.low=t>>>e|a<<32-e;this.high=a>>>e|t<<32-e}not(){this.high=~this.high;this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0);let a=(this.high>>>0)+(e.high>>>0);t>4294967295&&(a+=1);this.low=0|t;this.high=0|a}copyTo(e,t){e[t]=this.high>>>24&255;e[t+1]=this.high>>16&255;e[t+2]=this.high>>8&255;e[t+3]=255&this.high;e[t+4]=this.low>>>24&255;e[t+5]=this.low>>16&255;e[t+6]=this.low>>8&255;e[t+7]=255&this.low}assign(e){this.high=e.high;this.low=e.low}}const mc={get k(){return shadow(this,"k",[new Word64(1116352408,3609767458),new Word64(1899447441,602891725),new Word64(3049323471,3964484399),new Word64(3921009573,2173295548),new Word64(961987163,4081628472),new Word64(1508970993,3053834265),new Word64(2453635748,2937671579),new Word64(2870763221,3664609560),new Word64(3624381080,2734883394),new Word64(310598401,1164996542),new Word64(607225278,1323610764),new Word64(1426881987,3590304994),new Word64(1925078388,4068182383),new Word64(2162078206,991336113),new Word64(2614888103,633803317),new Word64(3248222580,3479774868),new Word64(3835390401,2666613458),new Word64(4022224774,944711139),new Word64(264347078,2341262773),new Word64(604807628,2007800933),new Word64(770255983,1495990901),new Word64(1249150122,1856431235),new Word64(1555081692,3175218132),new Word64(1996064986,2198950837),new Word64(2554220882,3999719339),new Word64(2821834349,766784016),new Word64(2952996808,2566594879),new Word64(3210313671,3203337956),new Word64(3336571891,1034457026),new Word64(3584528711,2466948901),new Word64(113926993,3758326383),new Word64(338241895,168717936),new Word64(666307205,1188179964),new Word64(773529912,1546045734),new Word64(1294757372,1522805485),new Word64(1396182291,2643833823),new Word64(1695183700,2343527390),new Word64(1986661051,1014477480),new Word64(2177026350,1206759142),new Word64(2456956037,344077627),new Word64(2730485921,1290863460),new Word64(2820302411,3158454273),new Word64(3259730800,3505952657),new Word64(3345764771,106217008),new Word64(3516065817,3606008344),new Word64(3600352804,1432725776),new Word64(4094571909,1467031594),new Word64(275423344,851169720),new Word64(430227734,3100823752),new Word64(506948616,1363258195),new Word64(659060556,3750685593),new Word64(883997877,3785050280),new Word64(958139571,3318307427),new Word64(1322822218,3812723403),new Word64(1537002063,2003034995),new Word64(1747873779,3602036899),new Word64(1955562222,1575990012),new Word64(2024104815,1125592928),new Word64(2227730452,2716904306),new Word64(2361852424,442776044),new Word64(2428436474,593698344),new Word64(2756734187,3733110249),new Word64(3204031479,2999351573),new Word64(3329325298,3815920427),new Word64(3391569614,3928383900),new Word64(3515267271,566280711),new Word64(3940187606,3454069534),new Word64(4118630271,4000239992),new Word64(116418474,1914138554),new Word64(174292421,2731055270),new Word64(289380356,3203993006),new Word64(460393269,320620315),new Word64(685471733,587496836),new Word64(852142971,1086792851),new Word64(1017036298,365543100),new Word64(1126000580,2618297676),new Word64(1288033470,3409855158),new Word64(1501505948,4234509866),new Word64(1607167915,987167468),new Word64(1816402316,1246189591)])}};function ch(e,t,a,r,i){e.assign(t);e.and(a);i.assign(t);i.not();i.and(r);e.xor(i)}function maj(e,t,a,r,i){e.assign(t);e.and(a);i.assign(t);i.and(r);e.xor(i);i.assign(a);i.and(r);e.xor(i)}function sigma(e,t,a){e.assign(t);e.rotateRight(28);a.assign(t);a.rotateRight(34);e.xor(a);a.assign(t);a.rotateRight(39);e.xor(a)}function sigmaPrime(e,t,a){e.assign(t);e.rotateRight(14);a.assign(t);a.rotateRight(18);e.xor(a);a.assign(t);a.rotateRight(41);e.xor(a)}function littleSigma(e,t,a){e.assign(t);e.rotateRight(1);a.assign(t);a.rotateRight(8);e.xor(a);a.assign(t);a.shiftRight(7);e.xor(a)}function littleSigmaPrime(e,t,a){e.assign(t);e.rotateRight(19);a.assign(t);a.rotateRight(61);e.xor(a);a.assign(t);a.shiftRight(6);e.xor(a)}function calculateSHA512(e,t,a,r=!1){let i,n,s,o,c,l,h,u;if(r){i=new Word64(3418070365,3238371032);n=new Word64(1654270250,914150663);s=new Word64(2438529370,812702999);o=new Word64(355462360,4144912697);c=new Word64(1731405415,4290775857);l=new Word64(2394180231,1750603025);h=new Word64(3675008525,1694076839);u=new Word64(1203062813,3204075428)}else{i=new Word64(1779033703,4089235720);n=new Word64(3144134277,2227873595);s=new Word64(1013904242,4271175723);o=new Word64(2773480762,1595750129);c=new Word64(1359893119,2917565137);l=new Word64(2600822924,725511199);h=new Word64(528734635,4215389547);u=new Word64(1541459225,327033209)}const d=128*Math.ceil((a+17)/128),f=new Uint8Array(d);let g,p;for(g=0;g<a;++g)f[g]=e[t++];f[g++]=128;const m=d-16;g<m&&(g=m);g+=11;f[g++]=a>>>29&255;f[g++]=a>>21&255;f[g++]=a>>13&255;f[g++]=a>>5&255;f[g++]=a<<3&255;const b=new Array(80);for(g=0;g<80;g++)b[g]=new Word64(0,0);const{k:y}=mc;let w=new Word64(0,0),x=new Word64(0,0),S=new Word64(0,0),k=new Word64(0,0),C=new Word64(0,0),v=new Word64(0,0),F=new Word64(0,0),T=new Word64(0,0);const O=new Word64(0,0),M=new Word64(0,0),D=new Word64(0,0),R=new Word64(0,0);let N,E;for(g=0;g<d;){for(p=0;p<16;++p){b[p].high=f[g]<<24|f[g+1]<<16|f[g+2]<<8|f[g+3];b[p].low=f[g+4]<<24|f[g+5]<<16|f[g+6]<<8|f[g+7];g+=8}for(p=16;p<80;++p){N=b[p];littleSigmaPrime(N,b[p-2],R);N.add(b[p-7]);littleSigma(D,b[p-15],R);N.add(D);N.add(b[p-16])}w.assign(i);x.assign(n);S.assign(s);k.assign(o);C.assign(c);v.assign(l);F.assign(h);T.assign(u);for(p=0;p<80;++p){O.assign(T);sigmaPrime(D,C,R);O.add(D);ch(D,C,v,F,R);O.add(D);O.add(y[p]);O.add(b[p]);sigma(M,w,R);maj(D,w,x,S,R);M.add(D);N=T;T=F;F=v;v=C;k.add(O);C=k;k=S;S=x;x=w;N.assign(O);N.add(M);w=N}i.add(w);n.add(x);s.add(S);o.add(k);c.add(C);l.add(v);h.add(F);u.add(T)}if(r){E=new Uint8Array(48);i.copyTo(E,0);n.copyTo(E,8);s.copyTo(E,16);o.copyTo(E,24);c.copyTo(E,32);l.copyTo(E,40)}else{E=new Uint8Array(64);i.copyTo(E,0);n.copyTo(E,8);s.copyTo(E,16);o.copyTo(E,24);c.copyTo(E,32);l.copyTo(E,40);h.copyTo(E,48);u.copyTo(E,56)}return E}const bc={get k(){return shadow(this,"k",[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])}};function rotr(e,t){return e>>>t|e<<32-t}function calculate_sha256_ch(e,t,a){return e&t^~e&a}function calculate_sha256_maj(e,t,a){return e&t^e&a^t&a}function calculate_sha256_sigma(e){return rotr(e,2)^rotr(e,13)^rotr(e,22)}function calculate_sha256_sigmaPrime(e){return rotr(e,6)^rotr(e,11)^rotr(e,25)}function calculate_sha256_littleSigma(e){return rotr(e,7)^rotr(e,18)^e>>>3}function calculateSHA256(e,t,a){let r=1779033703,i=3144134277,n=1013904242,s=2773480762,o=1359893119,c=2600822924,l=528734635,h=1541459225;const u=64*Math.ceil((a+9)/64),d=new Uint8Array(u);let f,g;for(f=0;f<a;++f)d[f]=e[t++];d[f++]=128;const p=u-8;f<p&&(f=p);f+=3;d[f++]=a>>>29&255;d[f++]=a>>21&255;d[f++]=a>>13&255;d[f++]=a>>5&255;d[f++]=a<<3&255;const m=new Uint32Array(64),{k:b}=bc;for(f=0;f<u;){for(g=0;g<16;++g){m[g]=d[f]<<24|d[f+1]<<16|d[f+2]<<8|d[f+3];f+=4}for(g=16;g<64;++g)m[g]=(rotr(y=m[g-2],17)^rotr(y,19)^y>>>10)+m[g-7]+calculate_sha256_littleSigma(m[g-15])+m[g-16]|0;let e,t,a=r,u=i,p=n,w=s,x=o,S=c,k=l,C=h;for(g=0;g<64;++g){e=C+calculate_sha256_sigmaPrime(x)+calculate_sha256_ch(x,S,k)+b[g]+m[g];t=calculate_sha256_sigma(a)+calculate_sha256_maj(a,u,p);C=k;k=S;S=x;x=w+e|0;w=p;p=u;u=a;a=e+t|0}r=r+a|0;i=i+u|0;n=n+p|0;s=s+w|0;o=o+x|0;c=c+S|0;l=l+k|0;h=h+C|0}var y;return new Uint8Array([r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,h>>24&255,h>>16&255,h>>8&255,255&h])}class DecryptStream extends DecodeStream{constructor(e,t,a){super(t);this.str=e;this.dict=e.dict;this.decrypt=a;this.nextChunk=null;this.initialized=!1}readBlock(){let e;if(this.initialized)e=this.nextChunk;else{e=this.str.getBytes(512);this.initialized=!0}if(!e?.length){this.eof=!0;return}this.nextChunk=this.str.getBytes(512);const t=this.nextChunk?.length>0;e=(0,this.decrypt)(e,!t);const a=this.bufferLength,r=a+e.length;this.ensureBuffer(r).set(e,a);this.bufferLength=r}}class ARCFourCipher{constructor(e){this.a=0;this.b=0;const t=new Uint8Array(256),a=e.length;for(let e=0;e<256;++e)t[e]=e;for(let r=0,i=0;r<256;++r){const n=t[r];i=i+n+e[r%a]&255;t[r]=t[i];t[i]=n}this.s=t}encryptBlock(e){let t=this.a,a=this.b;const r=this.s,i=e.length,n=new Uint8Array(i);for(let s=0;s<i;++s){t=t+1&255;const i=r[t];a=a+i&255;const o=r[a];r[t]=o;r[a]=i;n[s]=e[s]^r[i+o&255]}this.a=t;this.b=a;return n}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}class NullCipher{decryptBlock(e){return e}encrypt(e){return e}}class AESBaseCipher{_s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);_inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);_mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);_mixCol=new Uint8Array(256).map(((e,t)=>t<128?t<<1:t<<1^27));constructor(){this.buffer=new Uint8Array(16);this.bufferPosition=0}_expandKey(e){unreachable("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let a,r,i;const n=new Uint8Array(16);n.set(e);for(let e=0,a=this._keySize;e<16;++e,++a)n[e]^=t[a];for(let e=this._cyclesOfRepetition-1;e>=1;--e){a=n[13];n[13]=n[9];n[9]=n[5];n[5]=n[1];n[1]=a;a=n[14];r=n[10];n[14]=n[6];n[10]=n[2];n[6]=a;n[2]=r;a=n[15];r=n[11];i=n[7];n[15]=n[3];n[11]=a;n[7]=r;n[3]=i;for(let e=0;e<16;++e)n[e]=this._inv_s[n[e]];for(let a=0,r=16*e;a<16;++a,++r)n[a]^=t[r];for(let e=0;e<16;e+=4){const t=this._mix[n[e]],r=this._mix[n[e+1]],i=this._mix[n[e+2]],s=this._mix[n[e+3]];a=t^r>>>8^r<<24^i>>>16^i<<16^s>>>24^s<<8;n[e]=a>>>24&255;n[e+1]=a>>16&255;n[e+2]=a>>8&255;n[e+3]=255&a}}a=n[13];n[13]=n[9];n[9]=n[5];n[5]=n[1];n[1]=a;a=n[14];r=n[10];n[14]=n[6];n[10]=n[2];n[6]=a;n[2]=r;a=n[15];r=n[11];i=n[7];n[15]=n[3];n[11]=a;n[7]=r;n[3]=i;for(let e=0;e<16;++e){n[e]=this._inv_s[n[e]];n[e]^=t[e]}return n}_encrypt(e,t){const a=this._s;let r,i,n;const s=new Uint8Array(16);s.set(e);for(let e=0;e<16;++e)s[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)s[e]=a[s[e]];n=s[1];s[1]=s[5];s[5]=s[9];s[9]=s[13];s[13]=n;n=s[2];i=s[6];s[2]=s[10];s[6]=s[14];s[10]=n;s[14]=i;n=s[3];i=s[7];r=s[11];s[3]=s[15];s[7]=n;s[11]=i;s[15]=r;for(let e=0;e<16;e+=4){const t=s[e],a=s[e+1],i=s[e+2],n=s[e+3];r=t^a^i^n;s[e]^=r^this._mixCol[t^a];s[e+1]^=r^this._mixCol[a^i];s[e+2]^=r^this._mixCol[i^n];s[e+3]^=r^this._mixCol[n^t]}for(let a=0,r=16*e;a<16;++a,++r)s[a]^=t[r]}for(let e=0;e<16;++e)s[e]=a[s[e]];n=s[1];s[1]=s[5];s[5]=s[9];s[9]=s[13];s[13]=n;n=s[2];i=s[6];s[2]=s[10];s[6]=s[14];s[10]=n;s[14]=i;n=s[3];i=s[7];r=s[11];s[3]=s[15];s[7]=n;s[11]=i;s[15]=r;for(let e=0,a=this._keySize;e<16;++e,++a)s[e]^=t[a];return s}_decryptBlock2(e,t){const a=e.length;let r=this.buffer,i=this.bufferPosition;const n=[];let s=this.iv;for(let t=0;t<a;++t){r[i]=e[t];++i;if(i<16)continue;const a=this._decrypt(r,this._key);for(let e=0;e<16;++e)a[e]^=s[e];s=r;n.push(a);r=new Uint8Array(16);i=0}this.buffer=r;this.bufferLength=i;this.iv=s;if(0===n.length)return new Uint8Array(0);let o=16*n.length;if(t){const e=n.at(-1);let t=e[15];if(t<=16){for(let a=15,r=16-t;a>=r;--a)if(e[a]!==t){t=0;break}o-=t;n[n.length-1]=e.subarray(0,16-t)}}const c=new Uint8Array(o);for(let e=0,t=0,a=n.length;e<a;++e,t+=16)c.set(n[e],t);return c}decryptBlock(e,t,a=null){const r=e.length,i=this.buffer;let n=this.bufferPosition;if(a)this.iv=a;else{for(let t=0;n<16&&t<r;++t,++n)i[n]=e[t];if(n<16){this.bufferLength=n;return new Uint8Array(0)}this.iv=i;e=e.subarray(16)}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(e,t)}encrypt(e,t){const a=e.length;let r=this.buffer,i=this.bufferPosition;const n=[];t||=new Uint8Array(16);for(let s=0;s<a;++s){r[i]=e[s];++i;if(i<16)continue;for(let e=0;e<16;++e)r[e]^=t[e];const a=this._encrypt(r,this._key);t=a;n.push(a);r=new Uint8Array(16);i=0}this.buffer=r;this.bufferLength=i;this.iv=t;if(0===n.length)return new Uint8Array(0);const s=16*n.length,o=new Uint8Array(s);for(let e=0,t=0,a=n.length;e<a;++e,t+=16)o.set(n[e],t);return o}}class AES128Cipher extends AESBaseCipher{_rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]);constructor(e){super();this._cyclesOfRepetition=10;this._keySize=160;this._key=this._expandKey(e)}_expandKey(e){const t=this._s,a=this._rcon,r=new Uint8Array(176);r.set(e);for(let e=16,i=1;e<176;++i){let n=r[e-3],s=r[e-2],o=r[e-1],c=r[e-4];n=t[n];s=t[s];o=t[o];c=t[c];n^=a[i];for(let t=0;t<4;++t){r[e]=n^=r[e-16];e++;r[e]=s^=r[e-16];e++;r[e]=o^=r[e-16];e++;r[e]=c^=r[e-16];e++}}return r}}class AES256Cipher extends AESBaseCipher{constructor(e){super();this._cyclesOfRepetition=14;this._keySize=224;this._key=this._expandKey(e)}_expandKey(e){const t=this._s,a=new Uint8Array(240);a.set(e);let r,i,n,s,o=1;for(let e=32,c=1;e<240;++c){if(e%32==16){r=t[r];i=t[i];n=t[n];s=t[s]}else if(e%32==0){r=a[e-3];i=a[e-2];n=a[e-1];s=a[e-4];r=t[r];i=t[i];n=t[n];s=t[s];r^=o;(o<<=1)>=256&&(o=255&(27^o))}for(let t=0;t<4;++t){a[e]=r^=a[e-32];e++;a[e]=i^=a[e-32];e++;a[e]=n^=a[e-32];e++;a[e]=s^=a[e-32];e++}}return a}}class PDFBase{_hash(e,t,a){unreachable("Abstract method `_hash` called")}checkOwnerPassword(e,t,a,r){const i=new Uint8Array(e.length+56);i.set(e,0);i.set(t,e.length);i.set(a,e.length+t.length);return isArrayEqual(this._hash(e,i,a),r)}checkUserPassword(e,t,a){const r=new Uint8Array(e.length+8);r.set(e,0);r.set(t,e.length);return isArrayEqual(this._hash(e,r,[]),a)}getOwnerKey(e,t,a,r){const i=new Uint8Array(e.length+56);i.set(e,0);i.set(t,e.length);i.set(a,e.length+t.length);const n=this._hash(e,i,a);return new AES256Cipher(n).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,a){const r=new Uint8Array(e.length+8);r.set(e,0);r.set(t,e.length);const i=this._hash(e,r,[]);return new AES256Cipher(i).decryptBlock(a,!1,new Uint8Array(16))}}class PDF17 extends PDFBase{_hash(e,t,a){return calculateSHA256(t,0,t.length)}}class PDF20 extends PDFBase{_hash(e,t,a){let r=calculateSHA256(t,0,t.length).subarray(0,32),i=[0],n=0;for(;n<64||i.at(-1)>n-32;){const t=e.length+r.length+a.length,l=new Uint8Array(t);let h=0;l.set(e,h);h+=e.length;l.set(r,h);h+=r.length;l.set(a,h);const u=new Uint8Array(64*t);for(let e=0,a=0;e<64;e++,a+=t)u.set(l,a);i=new AES128Cipher(r.subarray(0,16)).encrypt(u,r.subarray(16,32));const d=Math.sumPrecise(i.slice(0,16))%3;0===d?r=calculateSHA256(i,0,i.length):1===d?r=(s=i,o=0,c=i.length,calculateSHA512(s,o,c,!0)):2===d&&(r=calculateSHA512(i,0,i.length));n++}var s,o,c;return r.subarray(0,32)}}class CipherTransform{constructor(e,t){this.StringCipherConstructor=e;this.StreamCipherConstructor=t}createStream(e,t){const a=new this.StreamCipherConstructor;return new DecryptStream(e,t,(function cipherTransformDecryptStream(e,t){return a.decryptBlock(e,t)}))}decryptString(e){const t=new this.StringCipherConstructor;let a=stringToBytes(e);a=t.decryptBlock(a,!0);return bytesToString(a)}encryptString(e){const t=new this.StringCipherConstructor;if(t instanceof AESBaseCipher){const a=16-e.length%16;e+=String.fromCharCode(a).repeat(a);const r=new Uint8Array(16);crypto.getRandomValues(r);let i=stringToBytes(e);i=t.encrypt(i,r);const n=new Uint8Array(16+i.length);n.set(r);n.set(i,16);return bytesToString(n)}let a=stringToBytes(e);a=t.encrypt(a);return bytesToString(a)}}class CipherTransformFactory{static get _defaultPasswordBytes(){return shadow(this,"_defaultPasswordBytes",new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]))}#Oe(e,t,a,r,i,n,s,o,c,l,h,u){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];const d=6===e?new PDF20:new PDF17;return d.checkUserPassword(t,o,s)?d.getUserKey(t,c,h):t.length&&d.checkOwnerPassword(t,r,n,a)?d.getOwnerKey(t,i,n,l):null}#Me(e,t,a,r,i,n,s,o){const c=40+a.length+e.length,l=new Uint8Array(c);let h,u,d=0;if(t){u=Math.min(32,t.length);for(;d<u;++d)l[d]=t[d]}h=0;for(;d<32;)l[d++]=CipherTransformFactory._defaultPasswordBytes[h++];l.set(a,d);d+=a.length;l[d++]=255&i;l[d++]=i>>8&255;l[d++]=i>>16&255;l[d++]=i>>>24&255;l.set(e,d);d+=e.length;if(n>=4&&!o){l.fill(255,d,d+4);d+=4}let f=calculateMD5(l,0,d);const g=s>>3;if(n>=3)for(h=0;h<50;++h)f=calculateMD5(f,0,g);const p=f.subarray(0,g);let m,b;if(n>=3){d=0;l.set(CipherTransformFactory._defaultPasswordBytes,d);d+=32;l.set(e,d);d+=e.length;m=new ARCFourCipher(p);b=m.encryptBlock(calculateMD5(l,0,d));u=p.length;const t=new Uint8Array(u);for(h=1;h<=19;++h){for(let e=0;e<u;++e)t[e]=p[e]^h;m=new ARCFourCipher(t);b=m.encryptBlock(b)}}else{m=new ARCFourCipher(p);b=m.encryptBlock(CipherTransformFactory._defaultPasswordBytes)}return b.every(((e,t)=>r[t]===e))?p:null}#De(e,t,a,r){const i=new Uint8Array(32);let n=0;const s=Math.min(32,e.length);for(;n<s;++n)i[n]=e[n];let o=0;for(;n<32;)i[n++]=CipherTransformFactory._defaultPasswordBytes[o++];let c=calculateMD5(i,0,n);const l=r>>3;if(a>=3)for(o=0;o<50;++o)c=calculateMD5(c,0,c.length);let h,u;if(a>=3){u=t;const e=new Uint8Array(l);for(o=19;o>=0;o--){for(let t=0;t<l;++t)e[t]=c[t]^o;h=new ARCFourCipher(e);u=h.encryptBlock(u)}}else{h=new ARCFourCipher(c.subarray(0,l));u=h.encryptBlock(t)}return u}#Be(e,t,a,r=!1){const i=a.length,n=new Uint8Array(i+9);n.set(a);let s=i;n[s++]=255&e;n[s++]=e>>8&255;n[s++]=e>>16&255;n[s++]=255&t;n[s++]=t>>8&255;if(r){n[s++]=115;n[s++]=65;n[s++]=108;n[s++]=84}return calculateMD5(n,0,s).subarray(0,Math.min(i+5,16))}#Re(e,t,a,r,i){if(!(t instanceof Name))throw new FormatError("Invalid crypt filter name.");const n=this,s=e.get(t.name),o=s?.get("CFM");if(!o||"None"===o.name)return function(){return new NullCipher};if("V2"===o.name)return function(){return new ARCFourCipher(n.#Be(a,r,i,!1))};if("AESV2"===o.name)return function(){return new AES128Cipher(n.#Be(a,r,i,!0))};if("AESV3"===o.name)return function(){return new AES256Cipher(i)};throw new FormatError("Unknown crypto method")}constructor(e,t,a){const r=e.get("Filter");if(!isName(r,"Standard"))throw new FormatError("unknown encryption method");this.filterName=r.name;this.dict=e;const i=e.get("V");if(!Number.isInteger(i)||1!==i&&2!==i&&4!==i&&5!==i)throw new FormatError("unsupported encryption algorithm");this.algorithm=i;let n=e.get("Length");if(!n)if(i<=3)n=40;else{const t=e.get("CF"),a=e.get("StmF");if(t instanceof Dict&&a instanceof Name){t.suppressEncryption=!0;const e=t.get(a.name);n=e?.get("Length")||128;n<40&&(n<<=3)}}if(!Number.isInteger(n)||n<40||n%8!=0)throw new FormatError("invalid key length");const s=stringToBytes(e.get("O")),o=stringToBytes(e.get("U")),c=s.subarray(0,32),l=o.subarray(0,32),h=e.get("P"),u=e.get("R"),d=(4===i||5===i)&&!1!==e.get("EncryptMetadata");this.encryptMetadata=d;const f=stringToBytes(t);let g,p;if(a){if(6===u)try{a=utf8StringToString(a)}catch{warn("CipherTransformFactory: Unable to convert UTF8 encoded password.")}g=stringToBytes(a)}if(5!==i)p=this.#Me(f,g,c,l,h,u,n,d);else{const t=s.subarray(32,40),a=s.subarray(40,48),r=o.subarray(0,48),i=o.subarray(32,40),n=o.subarray(40,48),h=stringToBytes(e.get("OE")),d=stringToBytes(e.get("UE")),f=stringToBytes(e.get("Perms"));p=this.#Oe(u,g,c,t,a,r,l,i,n,h,d,f)}if(!p){if(!a)throw new PasswordException("No password given",ha);const e=this.#De(g,c,u,n);p=this.#Me(f,e,c,l,h,u,n,d)}if(!p)throw new PasswordException("Incorrect Password",ua);if(4===i&&p.length<16){this.encryptionKey=new Uint8Array(16);this.encryptionKey.set(p)}else this.encryptionKey=p;if(i>=4){const t=e.get("CF");t instanceof Dict&&(t.suppressEncryption=!0);this.cf=t;this.stmf=e.get("StmF")||Name.get("Identity");this.strf=e.get("StrF")||Name.get("Identity");this.eff=e.get("EFF")||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new CipherTransform(this.#Re(this.cf,this.strf,e,t,this.encryptionKey),this.#Re(this.cf,this.stmf,e,t,this.encryptionKey));const a=this.#Be(e,t,this.encryptionKey,!1),cipherConstructor=function(){return new ARCFourCipher(a)};return new CipherTransform(cipherConstructor,cipherConstructor)}}class XRef{#Ne=null;constructor(e,t){this.stream=e;this.pdfManager=t;this.entries=[];this._xrefStms=new Set;this._cacheMap=new Map;this._pendingRefs=new RefSet;this._newPersistentRefNum=null;this._newTemporaryRefNum=null;this._persistentRefsCache=null}getNewPersistentRef(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);const t=this._newPersistentRefNum++;this._cacheMap.set(t,e);return Ref.get(t,0)}getNewTemporaryRef(){if(null===this._newTemporaryRefNum){this._newTemporaryRefNum=this.entries.length||1;if(this._newPersistentRefNum){this._persistentRefsCache=new Map;for(let e=this._newTemporaryRefNum;e<this._newPersistentRefNum;e++){this._persistentRefsCache.set(e,this._cacheMap.get(e));this._cacheMap.delete(e)}}}return Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null;if(this._persistentRefsCache)for(const[e,t]of this._persistentRefsCache)this._cacheMap.set(e,t);this._persistentRefsCache=null}setStartXRef(e){this.startXRefQueue=[e]}parse(e=!1){let t,a,r;if(e){warn("Indexing all PDF objects");t=this.indexObjects()}else t=this.readXRef();t.assignXref(this);this.trailer=t;try{a=t.get("Encrypt")}catch(e){if(e instanceof MissingDataException)throw e;warn(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}if(a instanceof Dict){const e=t.get("ID"),r=e?.length?e[0]:"";a.suppressEncryption=!0;this.encrypt=new CipherTransformFactory(a,r,this.pdfManager.password)}try{r=t.get("Root")}catch(e){if(e instanceof MissingDataException)throw e;warn(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(r instanceof Dict)try{if(r.get("Pages")instanceof Dict){this.root=r;return}}catch(e){if(e instanceof MissingDataException)throw e;warn(`XRef.parse - Invalid "Pages" reference: "${e}".`)}if(!e)throw new XRefParseException;throw new InvalidPDFException("Invalid Root reference.")}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});if(!isCmd(this.readXRefTable(e),"trailer"))throw new FormatError("Invalid XRef table: could not find trailer dictionary");let t=e.getObj();t instanceof Dict||!t.dict||(t=t.dict);if(!(t instanceof Dict))throw new FormatError("Invalid XRef table: could not parse trailer dictionary");delete this.tableState;return t}readXRefTable(e){const t=e.lexer.stream,a=this.tableState;t.pos=a.streamPos;e.buf1=a.parserBuf1;e.buf2=a.parserBuf2;let r;for(;;){if(!("firstEntryNum"in a)||!("entryCount"in a)){if(isCmd(r=e.getObj(),"trailer"))break;a.firstEntryNum=r;a.entryCount=e.getObj()}let i=a.firstEntryNum;const n=a.entryCount;if(!Number.isInteger(i)||!Number.isInteger(n))throw new FormatError("Invalid XRef table: wrong types in subsection header");for(let r=a.entryNum;r<n;r++){a.streamPos=t.pos;a.entryNum=r;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;const s={};s.offset=e.getObj();s.gen=e.getObj();const o=e.getObj();if(o instanceof Cmd)switch(o.cmd){case"f":s.free=!0;break;case"n":s.uncompressed=!0}if(!Number.isInteger(s.offset)||!Number.isInteger(s.gen)||!s.free&&!s.uncompressed)throw new FormatError(`Invalid entry in XRef subsection: ${i}, ${n}`);0===r&&s.free&&1===i&&(i=0);this.entries[r+i]||(this.entries[r+i]=s)}a.entryNum=0;a.streamPos=t.pos;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;delete a.firstEntryNum;delete a.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new FormatError("Invalid XRef table: unexpected first object");return r}processXRefStream(e){if(!("streamState"in this)){const{dict:t,pos:a}=e,r=t.get("W"),i=t.get("Index")||[0,t.get("Size")];this.streamState={entryRanges:i,byteWidths:r,entryNum:0,streamPos:a}}this.readXRefStream(e);delete this.streamState;return e.dict}readXRefStream(e){const t=this.streamState;e.pos=t.streamPos;const[a,r,i]=t.byteWidths,n=t.entryRanges;for(;n.length>0;){const[s,o]=n;if(!Number.isInteger(s)||!Number.isInteger(o))throw new FormatError(`Invalid XRef range fields: ${s}, ${o}`);if(!Number.isInteger(a)||!Number.isInteger(r)||!Number.isInteger(i))throw new FormatError(`Invalid XRef entry fields length: ${s}, ${o}`);for(let n=t.entryNum;n<o;++n){t.entryNum=n;t.streamPos=e.pos;let o=0,c=0,l=0;for(let t=0;t<a;++t){const t=e.getByte();if(-1===t)throw new FormatError("Invalid XRef byteWidths \'type\'.");o=o<<8|t}0===a&&(o=1);for(let t=0;t<r;++t){const t=e.getByte();if(-1===t)throw new FormatError("Invalid XRef byteWidths \'offset\'.");c=c<<8|t}for(let t=0;t<i;++t){const t=e.getByte();if(-1===t)throw new FormatError("Invalid XRef byteWidths \'generation\'.");l=l<<8|t}const h={};h.offset=c;h.gen=l;switch(o){case 0:h.free=!0;break;case 1:h.uncompressed=!0;break;case 2:break;default:throw new FormatError(`Invalid XRef entry type: ${o}`)}this.entries[s+n]||(this.entries[s+n]=h)}t.entryNum=0;t.streamPos=e.pos;n.splice(0,2)}}indexObjects(){function readToken(e,t){let a="",r=e[t];for(;10!==r&&13!==r&&60!==r&&!(++t>=e.length);){a+=String.fromCharCode(r);r=e[t]}return a}function skipUntil(e,t,a){const r=a.length,i=e.length;let n=0;for(;t<i;){let i=0;for(;i<r&&e[t+i]===a[i];)++i;if(i>=r)break;t++;n++}return n}const e=/\\b(endobj|\\d+\\s+\\d+\\s+obj|xref|trailer\\s*<<)\\b/g,t=/\\b(startxref|\\d+\\s+\\d+\\s+obj)\\b/g,a=/^(\\d+)\\s+(\\d+)\\s+obj\\b/,r=new Uint8Array([116,114,97,105,108,101,114]),i=new Uint8Array([115,116,97,114,116,120,114,101,102]),n=new Uint8Array([47,88,82,101,102]);this.entries.length=0;this._cacheMap.clear();const s=this.stream;s.pos=0;const o=s.getBytes(),c=bytesToString(o),l=o.length;let h=s.start;const u=[],d=[];for(;h<l;){let f=o[h];if(9===f||10===f||13===f||32===f){++h;continue}if(37===f){do{++h;if(h>=l)break;f=o[h]}while(10!==f&&13!==f);continue}const g=readToken(o,h);let p;if(g.startsWith("xref")&&(4===g.length||/\\s/.test(g[4]))){h+=skipUntil(o,h,r);u.push(h);h+=skipUntil(o,h,i)}else if(p=a.exec(g)){const t=0|p[1],a=0|p[2],r=h+g.length;let i,u=!1;if(this.entries[t]){if(this.entries[t].gen===a)try{new Parser({lexer:new Lexer(s.makeSubStream(r))}).getObj();u=!0}catch(e){e instanceof ParserEOFException?warn(`indexObjects -- checking object (${g}): "${e}".`):u=!0}}else u=!0;u&&(this.entries[t]={offset:h-s.start,gen:a,uncompressed:!0});e.lastIndex=r;const f=e.exec(c);if(f){i=e.lastIndex+1-h;if("endobj"!==f[1]){warn(`indexObjects: Found "${f[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`);i-=f[1].length+1}}else i=l-h;const m=o.subarray(h,h+i),b=skipUntil(m,0,n);if(b<i&&m[b+5]<64){d.push(h-s.start);this._xrefStms.add(h-s.start)}h+=i}else if(g.startsWith("trailer")&&(7===g.length||/\\s/.test(g[7]))){u.push(h);const e=h+g.length;let a;t.lastIndex=e;const r=t.exec(c);if(r){a=t.lastIndex+1-h;if("startxref"!==r[1]){warn(`indexObjects: Found "${r[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`);a-=r[1].length+1}}else a=l-h;h+=a}else h+=g.length+1}for(const e of d){this.startXRefQueue.push(e);this.readXRef(!0)}const f=[];let g,p,m=!1;for(const e of u){s.pos=e;const t=new Parser({lexer:new Lexer(s),xref:this,allowStreams:!0,recoveryMode:!0});if(!isCmd(t.getObj(),"trailer"))continue;const a=t.getObj();if(a instanceof Dict){f.push(a);a.has("Encrypt")&&(m=!0)}}for(const e of[...f,"genFallback",...f]){if("genFallback"===e){if(!p)break;this._generationFallback=!0;continue}let t=!1;try{const a=e.get("Root");if(!(a instanceof Dict))continue;const r=a.get("Pages");if(!(r instanceof Dict))continue;const i=r.get("Count");Number.isInteger(i)&&(t=!0)}catch(e){p=e;continue}if(t&&(!m||e.has("Encrypt"))&&e.has("ID"))return e;g=e}if(g)return g;if(this.topDict)return this.topDict;if(!f.length)for(const[e,t]of this.entries.entries()){if(!t)continue;const a=Ref.get(e,t.gen);let r;try{r=this.fetch(a)}catch{continue}r instanceof BaseStream&&(r=r.dict);if(r instanceof Dict&&r.has("Root"))return r}throw new InvalidPDFException("Invalid PDF structure.")}readXRef(e=!1){const t=this.stream,a=new Set;for(;this.startXRefQueue.length;){try{const e=this.startXRefQueue[0];if(a.has(e)){warn("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift();continue}a.add(e);t.pos=e+t.start;const r=new Parser({lexer:new Lexer(t),xref:this,allowStreams:!0});let i,n=r.getObj();if(isCmd(n,"xref")){i=this.processXRefTable(r);this.topDict||(this.topDict=i);n=i.get("XRefStm");if(Number.isInteger(n)&&!this._xrefStms.has(n)){this._xrefStms.add(n);this.startXRefQueue.push(n);this.#Ne??=n}}else{if(!Number.isInteger(n))throw new FormatError("Invalid XRef stream header");if(!(Number.isInteger(r.getObj())&&isCmd(r.getObj(),"obj")&&(n=r.getObj())instanceof BaseStream))throw new FormatError("Invalid XRef stream");i=this.processXRefStream(n);this.topDict||(this.topDict=i);if(!i)throw new FormatError("Failed to read XRef stream")}n=i.get("Prev");Number.isInteger(n)?this.startXRefQueue.push(n):n instanceof Ref&&this.startXRefQueue.push(n.num)}catch(e){if(e instanceof MissingDataException)throw e;info("(while reading XRef): "+e)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new XRefParseException}get lastXRefStreamPos(){return this.#Ne??(this._xrefStms.size>0?Math.max(...this._xrefStms):null)}getEntry(e){const t=this.entries[e];return t&&!t.free&&t.offset?t:null}fetchIfRef(e,t=!1){return e instanceof Ref?this.fetch(e,t):e}fetch(e,t=!1){if(!(e instanceof Ref))throw new Error("ref object is not a reference");const a=e.num,r=this._cacheMap.get(a);if(void 0!==r){r instanceof Dict&&!r.objId&&(r.objId=e.toString());return r}let i=this.getEntry(a);if(null===i)return i;if(this._pendingRefs.has(e)){this._pendingRefs.remove(e);warn(`Ignoring circular reference: ${e}.`);return ya}this._pendingRefs.put(e);try{i=i.uncompressed?this.fetchUncompressed(e,i,t):this.fetchCompressed(e,i,t);this._pendingRefs.remove(e)}catch(t){this._pendingRefs.remove(e);throw t}i instanceof Dict?i.objId=e.toString():i instanceof BaseStream&&(i.dict.objId=e.toString());return i}fetchUncompressed(e,t,a=!1){const r=e.gen;let i=e.num;if(t.gen!==r){const n=`Inconsistent generation in XRef: ${e}`;if(this._generationFallback&&t.gen<r){warn(n);return this.fetchUncompressed(Ref.get(i,t.gen),t,a)}throw new XRefEntryException(n)}const n=this.stream.makeSubStream(t.offset+this.stream.start),s=new Parser({lexer:new Lexer(n),xref:this,allowStreams:!0}),o=s.getObj(),c=s.getObj(),l=s.getObj();if(o!==i||c!==r||!(l instanceof Cmd))throw new XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`);if("obj"!==l.cmd){if(l.cmd.startsWith("obj")){i=parseInt(l.cmd.substring(3),10);if(!Number.isNaN(i))return i}throw new XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`)}(t=this.encrypt&&!a?s.getObj(this.encrypt.createCipherTransform(i,r)):s.getObj())instanceof BaseStream||this._cacheMap.set(i,t);return t}fetchCompressed(e,t,a=!1){const r=t.offset,i=this.fetch(Ref.get(r,0));if(!(i instanceof BaseStream))throw new FormatError("bad ObjStm stream");const n=i.dict.get("First"),s=i.dict.get("N");if(!Number.isInteger(n)||!Number.isInteger(s))throw new FormatError("invalid first and n parameters for ObjStm stream");let o=new Parser({lexer:new Lexer(i),xref:this,allowStreams:!0});const c=new Array(s),l=new Array(s);for(let e=0;e<s;++e){const t=o.getObj();if(!Number.isInteger(t))throw new FormatError(`invalid object number in the ObjStm stream: ${t}`);const a=o.getObj();if(!Number.isInteger(a))throw new FormatError(`invalid object offset in the ObjStm stream: ${a}`);c[e]=t;const i=this.getEntry(t);i?.offset===r&&i.gen!==e&&(i.gen=e);l[e]=a}const h=(i.start||0)+n,u=new Array(s);for(let e=0;e<s;++e){const t=e<s-1?l[e+1]-l[e]:void 0;if(t<0)throw new FormatError("Invalid offset in the ObjStm stream.");o=new Parser({lexer:new Lexer(i.makeSubStream(h+l[e],t,i.dict)),xref:this,allowStreams:!0});const a=o.getObj();u[e]=a;if(a instanceof BaseStream)continue;const n=c[e],d=this.entries[n];d&&d.offset===r&&d.gen===e&&this._cacheMap.set(n,a)}if(void 0===(t=u[t.gen]))throw new XRefEntryException(`Bad (compressed) XRef entry: ${e}`);return t}async fetchIfRefAsync(e,t){return e instanceof Ref?this.fetchAsync(e,t):e}async fetchAsync(e,t){try{return this.fetch(e,t)}catch(a){if(!(a instanceof MissingDataException))throw a;await this.pdfManager.requestRange(a.begin,a.end);return this.fetchAsync(e,t)}}getCatalogObj(){return this.root}}const yc=[0,0,612,792];class Page{#Ee=null;constructor({pdfManager:e,xref:t,pageIndex:a,pageDict:r,ref:i,globalIdFactory:n,fontCache:s,builtInCMapCache:o,standardFontDataCache:c,globalColorSpaceCache:l,globalImageCache:h,systemFontCache:u,nonBlendModesSet:d,xfaFactory:f}){this.pdfManager=e;this.pageIndex=a;this.pageDict=r;this.xref=t;this.ref=i;this.fontCache=s;this.builtInCMapCache=o;this.standardFontDataCache=c;this.globalColorSpaceCache=l;this.globalImageCache=h;this.systemFontCache=u;this.nonBlendModesSet=d;this.evaluatorOptions=e.evaluatorOptions;this.xfaFactory=f;const g={obj:0};this._localIdFactory=class extends n{static createObjId(){return`p${a}_${++g.obj}`}static getPageObjId(){return`p${i.toString()}`}}}#Pe(e){return new PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}#Le(e,t=!1){const a=getInheritableProperty({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(a)?1!==a.length&&a[0]instanceof Dict?Dict.merge({xref:this.xref,dictArray:a}):a[0]:a}get content(){return this.pageDict.getArray("Contents")}get resources(){const e=this.#Le("Resources");return shadow(this,"resources",e instanceof Dict?e:Dict.empty)}#je(e){if(this.xfaData)return this.xfaData.bbox;const t=lookupNormalRect(this.#Le(e,!0),null);if(t){if(t[2]-t[0]>0&&t[3]-t[1]>0)return t;warn(`Empty, or invalid, /${e} entry.`)}return null}get mediaBox(){return shadow(this,"mediaBox",this.#je("MediaBox")||yc)}get cropBox(){return shadow(this,"cropBox",this.#je("CropBox")||this.mediaBox)}get userUnit(){const e=this.pageDict.get("UserUnit");return shadow(this,"userUnit","number"==typeof e&&e>0?e:1)}get view(){const{cropBox:e,mediaBox:t}=this;if(e!==t&&!isArrayEqual(e,t)){const a=Util.intersect(e,t);if(a&&a[2]-a[0]>0&&a[3]-a[1]>0)return shadow(this,"view",a);warn("Empty /CropBox and /MediaBox intersection.")}return shadow(this,"view",t)}get rotate(){let e=this.#Le("Rotate")||0;e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360);return shadow(this,"rotate",e)}#_e(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;warn(`getContentStream - ignoring sub-stream (${t}): "${e}".`)}async getContentStream(){const e=await this.pdfManager.ensure(this,"content");return e instanceof BaseStream?e:Array.isArray(e)?new StreamsSequenceStream(e,this.#_e.bind(this)):new NullStream}get xfaData(){return shadow(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async#Ue(e,t,a){const r=[];for(const i of e)if(i.id){const e=Ref.fromString(i.id);if(!e){warn(`A non-linked annotation cannot be modified: ${i.id}`);continue}if(i.deleted){t.put(e,e);if(i.popupRef){const e=Ref.fromString(i.popupRef);e&&t.put(e,e)}continue}if(i.popup?.deleted){const e=Ref.fromString(i.popupRef);e&&t.put(e,e)}a?.put(e);i.ref=e;r.push(this.xref.fetchAsync(e).then((e=>{e instanceof Dict&&(i.oldAnnotation=e.clone())}),(()=>{warn(`Cannot fetch \\`oldAnnotation\\` for: ${e}.`)})));delete i.id}await Promise.all(r)}async saveNewAnnotations(e,t,a,r,i){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const n=this.#Pe(e),s=new RefSetCache,o=new RefSet;await this.#Ue(a,s,o);const c=this.pageDict,l=this.annotations.filter((e=>!(e instanceof Ref&&s.has(e)))),h=await AnnotationFactory.saveNewAnnotations(n,t,a,r,i);for(const{ref:e}of h.annotations)e instanceof Ref&&!o.has(e)&&l.push(e);const u=c.clone();u.set("Annots",l);i.put(this.ref,{data:u});for(const e of s)i.put(e,{data:null})}async save(e,t,a,r){const i=this.#Pe(e),n=await this._parsedAnnotations,s=[];for(const e of n)s.push(e.save(i,t,a,r).catch((function(e){warn(`save - ignoring annotation data during "${t.name}" task: "${e}".`);return null})));return Promise.all(s)}async loadResources(e){await(this.#Ee??=this.pdfManager.ensure(this,"resources"));await ObjectLoader.load(this.resources,e,this.xref)}async#Xe(e,t){const a=e?.get("Resources");if(!(a instanceof Dict&&a.size))return this.resources;await ObjectLoader.load(a,t,this.xref);return Dict.merge({xref:this.xref,dictArray:[a,this.resources],mergeSubDicts:!0})}async getOperatorList({handler:e,sink:t,task:a,intent:r,cacheKey:i,annotationStorage:c=null,modifiedIds:d=null}){const g=this.getContentStream(),p=this.loadResources(Ia),m=this.#Pe(e),b=this.xfaFactory?null:getNewAnnotationsMap(c),y=b?.get(this.pageIndex);let w=Promise.resolve(null),x=null;if(y){const e=this.pdfManager.ensureDoc("annotationGlobals");let t;const r=new Set;for(const{bitmapId:e,bitmap:t}of y)!e||t||r.has(e)||r.add(e);const{isOffscreenCanvasSupported:i}=this.evaluatorOptions;if(r.size>0){const e=y.slice();for(const[t,a]of c)t.startsWith(f)&&a.bitmap&&r.has(a.bitmapId)&&e.push(a);t=AnnotationFactory.generateImages(e,this.xref,i)}else t=AnnotationFactory.generateImages(y,this.xref,i);x=new RefSet;w=Promise.all([e,this.#Ue(y,x,null)]).then((([e])=>e?AnnotationFactory.printNewAnnotations(e,m,a,y,t):null))}const S=Promise.all([g,p]).then((async([n])=>{const s=await this.#Xe(n.dict,Ia),o=new OperatorList(r,t);e.send("StartRenderPage",{transparency:m.hasBlendModes(s,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:i});await m.getOperatorList({stream:n,task:a,resources:s,operatorList:o});return o}));let[k,C,v]=await Promise.all([S,this._parsedAnnotations,w]);if(v){C=C.filter((e=>!(e.ref&&x.has(e.ref))));for(let e=0,t=v.length;e<t;e++){const a=v[e];if(a.refToReplace){const r=C.findIndex((e=>e.ref&&isRefsEqual(e.ref,a.refToReplace)));if(r>=0){C.splice(r,1,a);v.splice(e--,1);t--}}}C=C.concat(v)}if(0===C.length||r&h){k.flush(!0);return{length:k.totalLength}}const F=!!(r&l),T=!!(r&u),O=!!(r&n),M=!!(r&s),D=!!(r&o),R=[];for(const e of C)(O||M&&e.mustBeViewed(c,F)&&e.mustBeViewedWhenEditing(T,d)||D&&e.mustBePrinted(c))&&R.push(e.getOperatorList(m,a,r,c).catch((function(e){warn(`getOperatorList - ignoring annotation data during "${a.name}" task: "${e}".`);return{opList:null,separateForm:!1,separateCanvas:!1}})));const N=await Promise.all(R);let E=!1,L=!1;for(const{opList:e,separateForm:t,separateCanvas:a}of N){k.addOpList(e);E||=t;L||=a}k.flush(!0,{form:E,canvas:L});return{length:k.totalLength}}async extractTextContent({handler:e,task:t,includeMarkedContent:a,disableNormalization:r,sink:i,intersector:n=null}){const s=this.getContentStream(),o=this.loadResources(Ta),c=this.pdfManager.ensureCatalog("lang"),[l,,h]=await Promise.all([s,o,c]),u=await this.#Xe(l.dict,Ta);return this.#Pe(e).getTextContent({stream:l,task:t,resources:u,includeMarkedContent:a,disableNormalization:r,sink:i,viewBox:this.view,lang:h,intersector:n})}async getStructTree(){const e=await this.pdfManager.ensureCatalog("structTreeRoot");if(!e)return null;await this._parsedAnnotations;try{const t=await this.pdfManager.ensure(this,"_parseStructTree",[e]);return await this.pdfManager.ensure(t,"serializable")}catch(e){warn(`getStructTree: "${e}".`);return null}}_parseStructTree(e){const t=new StructTreePage(e,this.pageDict);t.parse(this.ref);return t}async getAnnotationsData(e,t,a){const r=await this._parsedAnnotations;if(0===r.length)return r;const i=[],c=[];let l;const h=!!(a&n),u=!!(a&s),d=!!(a&o),f=[];for(const a of r){const r=h||u&&a.viewable;(r||d&&a.printable)&&i.push(a.data);if(a.hasTextContent&&r){l??=this.#Pe(e);c.push(a.extractTextContent(l,t,[-1/0,-1/0,1/0,1/0]).catch((function(e){warn(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)})))}else a.overlaysTextContent&&r&&f.push(a)}if(f.length>0){const a=new Intersector(f);c.push(this.extractTextContent({handler:e,task:t,includeMarkedContent:!1,disableNormalization:!1,sink:null,viewBox:this.view,lang:null,intersector:a}).then((()=>{a.setText()})))}await Promise.all(c);return i}get annotations(){const e=this.#Le("Annots");return shadow(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){return shadow(this,"_parsedAnnotations",this.pdfManager.ensure(this,"annotations").then((async e=>{if(0===e.length)return e;const[t,a]=await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureDoc("fieldObjects")]);if(!t)return[];const r=a?.orphanFields,i=[];for(const a of e)i.push(AnnotationFactory.create(this.xref,a,t,this._localIdFactory,!1,r,this.ref).catch((function(e){warn(`_parsedAnnotations: "${e}".`);return null})));const n=[];let s,o;for(const e of await Promise.all(i))e&&(e instanceof WidgetAnnotation?(o||=[]).push(e):e instanceof PopupAnnotation?(s||=[]).push(e):n.push(e));o&&n.push(...o);s&&n.push(...s);return n})))}get jsActions(){return shadow(this,"jsActions",collectActions(this.xref,this.pageDict,xe))}}const wc=new Uint8Array([37,80,68,70,45]),xc=new Uint8Array([115,116,97,114,116,120,114,101,102]),Sc=new Uint8Array([101,110,100,111,98,106]);function find(e,t,a=1024,r=!1){const i=t.length,n=e.peekBytes(a),s=n.length-i;if(s<=0)return!1;if(r){const a=i-1;let r=n.length-1;for(;r>=a;){let s=0;for(;s<i&&n[r-s]===t[a-s];)s++;if(s>=i){e.pos+=r-a;return!0}r--}}else{let a=0;for(;a<=s;){let r=0;for(;r<i&&n[a+r]===t[r];)r++;if(r>=i){e.pos+=a;return!0}a++}}return!1}class PDFDocument{#qe=new Map;#He=null;constructor(e,t){if(t.length<=0)throw new InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e;this.stream=t;this.xref=new XRef(t,e);const a={font:0};this._globalIdFactory=class{static getDocId(){return`g_${e.docId}`}static createFontId(){return"f"+ ++a.font}static createObjId(){unreachable("Abstract method `createObjId` called.")}static getPageObjId(){unreachable("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e);this.catalog=new Catalog(this.pdfManager,this.xref)}get linearization(){let e=null;try{e=Linearization.create(this.stream)}catch(e){if(e instanceof MissingDataException)throw e;info(e)}return shadow(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization){e.reset();if(find(e,Sc)){e.skip(6);let a=e.peekByte();for(;isWhiteSpace(a);){e.pos++;a=e.peekByte()}t=e.pos-e.start}}else{const a=1024,r=xc.length;let i=!1,n=e.end;for(;!i&&n>0;){n-=a-r;n<0&&(n=0);e.pos=n;i=find(e,xc,a,!0)}if(i){e.skip(9);let a;do{a=e.getByte()}while(isWhiteSpace(a));let r="";for(;a>=32&&a<=57;){r+=String.fromCharCode(a);a=e.getByte()}t=parseInt(r,10);isNaN(t)&&(t=0)}}return shadow(this,"startXRef",t)}checkHeader(){const e=this.stream;e.reset();if(!find(e,wc))return;e.moveStart();e.skip(wc.length);let t,a="";for(;(t=e.getByte())>32&&a.length<7;)a+=String.fromCharCode(t);Ca.test(a)?this.#He=a:warn(`Invalid PDF header version: ${a}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages;return shadow(this,"numPages",e)}#We(e,t=0){return!!Array.isArray(e)&&e.every((e=>{if(!((e=this.xref.fetchIfRef(e))instanceof Dict))return!1;if(e.has("Kids")){if(++t>10){warn("#hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return this.#We(e.get("Kids"),t)}const a=isName(e.get("FT"),"Sig"),r=e.get("Rect"),i=Array.isArray(r)&&r.every((e=>0===e));return a&&i}))}#ze(e,t,a=new RefSet){if(Array.isArray(e))for(let r of e){if(r instanceof Ref){if(a.has(r))continue;a.put(r)}r=this.xref.fetchIfRef(r);if(!(r instanceof Dict))continue;if(r.has("Kids")){this.#ze(r.get("Kids"),t,a);continue}if(!isName(r.get("FT"),"Sig"))continue;const e=r.get("V");if(!(e instanceof Dict))continue;const i=e.get("SubFilter");i instanceof Name&&t.add(i.name)}}get _xfaStreams(){const{acroForm:e}=this.catalog;if(!e)return null;const t=e.get("XFA"),a=new Map(["xdp:xdp","template","datasets","config","connectionSet","localeSet","stylesheet","/xdp:xdp"].map((e=>[e,null])));if(t instanceof BaseStream&&!t.isEmpty){a.set("xdp:xdp",t);return a}if(!Array.isArray(t)||0===t.length)return null;for(let e=0,r=t.length;e<r;e+=2){let i;i=0===e?"xdp:xdp":e===r-2?"/xdp:xdp":t[e];if(!a.has(i))continue;const n=this.xref.fetchIfRef(t[e+1]);n instanceof BaseStream&&!n.isEmpty&&a.set(i,n)}return a}get xfaDatasets(){const e=this._xfaStreams;if(!e)return shadow(this,"xfaDatasets",null);for(const t of["datasets","xdp:xdp"]){const a=e.get(t);if(a)try{const e=stringToUTF8String(a.getString());return shadow(this,"xfaDatasets",new DatasetReader({[t]:e}))}catch{warn("XFA - Invalid utf-8 string.");break}}return shadow(this,"xfaDatasets",null)}get xfaData(){const e=this._xfaStreams;if(!e)return null;const t=Object.create(null);for(const[a,r]of e)if(r)try{t[a]=stringToUTF8String(r.getString())}catch{warn("XFA - Invalid utf-8 string.");return null}return t}get xfaFactory(){let e;this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData);return shadow(this,"xfaFactory",e?new XFAFactory(e):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async#$e(){const e=await this.pdfManager.ensureCatalog("xfaImages");e&&this.xfaFactory.setImages(e)}async#Ge(e,t){const a=await this.pdfManager.ensureCatalog("acroForm");if(!a)return;const r=await a.getAsync("DR");if(!(r instanceof Dict))return;await ObjectLoader.load(r,["Font"],this.xref);const i=r.get("Font");if(!(i instanceof Dict))return;const n=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:s,fontCache:o,standardFontDataCache:c}=this.catalog,l=new PartialEvaluator({xref:this.xref,handler:e,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:o,builtInCMapCache:s,standardFontDataCache:c,options:n}),h=new OperatorList,u=[],d={get font(){return u.at(-1)},set font(e){u.push(e)},clone(){return this}},parseFont=(e,a,i)=>l.handleSetFont(r,[Name.get(e),1],null,h,t,d,a,i).catch((e=>{warn(`loadXfaFonts: "${e}".`);return null})),f=[];for(const[e,t]of i){const a=t.get("FontDescriptor");if(!(a instanceof Dict))continue;let r=a.get("FontFamily");r=r.replaceAll(/[ ]+(\\d)/g,"$1");const i={fontFamily:r,fontWeight:a.get("FontWeight"),italicAngle:-a.get("ItalicAngle")};validateCSSFont(i)&&f.push(parseFont(e,null,i))}await Promise.all(f);const g=this.xfaFactory.setFonts(u);if(!g)return;n.ignoreErrors=!0;f.length=0;u.length=0;const p=new Set;for(const e of g)getXfaFontName(`${e}-Regular`)||p.add(e);p.size&&g.push("PdfJS-Fallback");for(const e of g)if(!p.has(e))for(const t of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const a=`${e}-${t.name}`;f.push(parseFont(a,getXfaFontDict(a),{fontFamily:e,fontWeight:t.fontWeight,italicAngle:t.italicAngle}))}await Promise.all(f);this.xfaFactory.appendFonts(u,p)}loadXfaResources(e,t){return Promise.all([this.#Ge(e,t).catch((()=>{})),this.#$e()])}serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this.#He}get formInfo(){const e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:t}=this.catalog;if(!t)return shadow(this,"formInfo",e);try{const a=t.get("Fields"),r=Array.isArray(a)&&a.length>0;e.hasFields=r;const i=t.get("XFA");e.hasXfa=Array.isArray(i)&&i.length>0||i instanceof BaseStream&&!i.isEmpty;const n=!!(1&t.get("SigFlags")),s=n&&this.#We(a);e.hasAcroForm=r&&!s;e.hasSignatures=n}catch(e){if(e instanceof MissingDataException)throw e;warn(`Cannot fetch form information: "${e}".`)}return shadow(this,"formInfo",e)}get documentInfo(){const{catalog:e,formInfo:t,xref:a}=this,r={PDFFormatVersion:this.version,Language:e.lang,EncryptFilterName:a.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:t.hasAcroForm,IsXFAPresent:t.hasXfa,IsCollectionPresent:!!e.collection,IsSignaturesPresent:t.hasSignatures};let i;try{i=a.trailer.get("Info")}catch(e){if(e instanceof MissingDataException)throw e;info("The document information dictionary is invalid.")}if(!(i instanceof Dict))return shadow(this,"documentInfo",r);for(const[e,t]of i){switch(e){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof t){r[e]=stringToPDFString(t);continue}break;case"Trapped":if(t instanceof Name){r[e]=t;continue}break;default:let a;switch(typeof t){case"string":a=stringToPDFString(t);break;case"number":case"boolean":a=t;break;default:t instanceof Name&&(a=t)}if(void 0===a){warn(`Bad value, for custom key "${e}", in Info: ${t}.`);continue}r.Custom??=Object.create(null);r.Custom[e]=a;continue}warn(`Bad value, for key "${e}", in Info: ${t}.`)}return shadow(this,"documentInfo",r)}get fingerprints(){const e="\\0".repeat(16);function validate(t){return"string"==typeof t&&16===t.length&&t!==e}const t=this.xref.trailer.get("ID");let a,r;if(Array.isArray(t)&&validate(t[0])){a=stringToBytes(t[0]);t[1]!==t[0]&&validate(t[1])&&(r=stringToBytes(t[1]))}else a=calculateMD5(this.stream.getByteRange(0,1024),0,1024);return shadow(this,"fingerprints",[toHexUtil(a),r?toHexUtil(r):null])}async#Ve(e){const{catalog:t,linearization:a,xref:r}=this,i=Ref.get(a.objectNumberFirst,0);try{const e=await r.fetchAsync(i);if(e instanceof Dict){let a=e.getRaw("Type");a instanceof Ref&&(a=await r.fetchAsync(a));if(isName(a,"Page")||!e.has("Type")&&!e.has("Kids")&&e.has("Contents")){t.pageKidsCountCache.has(i)||t.pageKidsCountCache.put(i,1);t.pageIndexCache.has(i)||t.pageIndexCache.put(i,0);return[e,i]}}throw new FormatError("The Linearization dictionary doesn\'t point to a valid Page dictionary.")}catch(a){warn(`_getLinearizationPage: "${a.message}".`);return t.getPageDict(e)}}getPage(e){const t=this.#qe.get(e);if(t)return t;const{catalog:a,linearization:r,xfaFactory:i}=this;let n;n=i?Promise.resolve([Dict.empty,null]):r?.pageFirst===e?this.#Ve(e):a.getPageDict(e);n=n.then((([t,r])=>new Page({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:t,ref:r,globalIdFactory:this._globalIdFactory,fontCache:a.fontCache,builtInCMapCache:a.builtInCMapCache,standardFontDataCache:a.standardFontDataCache,globalColorSpaceCache:a.globalColorSpaceCache,globalImageCache:a.globalImageCache,systemFontCache:a.systemFontCache,nonBlendModesSet:a.nonBlendModesSet,xfaFactory:i})));this.#qe.set(e,n);return n}async checkFirstPage(e=!1){if(!e)try{await this.getPage(0)}catch(e){if(e instanceof XRefEntryException){this.#qe.delete(0);await this.cleanup();throw new XRefParseException}}}async checkLastPage(e=!1){const{catalog:t,pdfManager:a}=this;t.setActualNumPages();let r;try{await Promise.all([a.ensureDoc("xfaFactory"),a.ensureDoc("linearization"),a.ensureCatalog("numPages")]);if(this.xfaFactory)return;r=this.linearization?this.linearization.numPages:t.numPages;if(!Number.isInteger(r))throw new FormatError("Page count is not an integer.");if(r<=1)return;await this.getPage(r-1)}catch(i){this.#qe.delete(r-1);await this.cleanup();if(i instanceof XRefEntryException&&!e)throw new XRefParseException;warn(`checkLastPage - invalid /Pages tree /Count: ${r}.`);let n;try{n=await t.getAllPageDicts(e)}catch(a){if(a instanceof XRefEntryException&&!e)throw new XRefParseException;t.setActualNumPages(1);return}for(const[e,[r,i]]of n){let n;if(r instanceof Error){n=Promise.reject(r);n.catch((()=>{}))}else n=Promise.resolve(new Page({pdfManager:a,xref:this.xref,pageIndex:e,pageDict:r,ref:i,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:t.globalImageCache,systemFontCache:t.systemFontCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null}));this.#qe.set(e,n)}t.setActualNumPages(n.size)}}async fontFallback(e,t){const{catalog:a,pdfManager:r}=this;for(const i of await Promise.all(a.fontCache))if(i.loadedName===e){i.fallback(t,r.evaluatorOptions);return}}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):clearGlobalCaches()}async#Ke(e,t,a,r,i,n,s){const{xref:o}=this;if(!(a instanceof Ref)||n.has(a))return;n.put(a);const c=await o.fetchAsync(a);if(!(c instanceof Dict))return;let l=await c.getAsync("Subtype");l=l instanceof Name?l.name:null;if("Link"===l)return;if(c.has("T")){const t=stringToPDFString(await c.getAsync("T"));e=""===e?t:`${e}.${t}`}else{let a=c;for(;;){a=a.getRaw("Parent")||t;if(a instanceof Ref){if(n.has(a))break;a=await o.fetchAsync(a)}if(!(a instanceof Dict))break;if(a.has("T")){const t=stringToPDFString(await a.getAsync("T"));e=""===e?t:`${e}.${t}`;break}}}t&&!c.has("Parent")&&isName(c.get("Subtype"),"Widget")&&s.put(a,t);r.has(e)||r.set(e,[]);r.get(e).push(AnnotationFactory.create(o,a,i,null,!0,s,null).then((e=>e?.getFieldObject())).catch((function(e){warn(`#collectFieldObjects: "${e}".`);return null})));if(!c.has("Kids"))return;const h=await c.getAsync("Kids");if(Array.isArray(h))for(const t of h)await this.#Ke(e,a,t,r,i,n,s)}get fieldObjects(){return shadow(this,"fieldObjects",this.pdfManager.ensureDoc("formInfo").then((async e=>{if(!e.hasFields)return null;const t=await this.annotationGlobals;if(!t)return null;const{acroForm:a}=t,r=new RefSet,i=Object.create(null),n=new Map,s=new RefSetCache;for(const e of a.get("Fields"))await this.#Ke("",null,e,n,t,r,s);const o=[];for(const[e,t]of n)o.push(Promise.all(t).then((t=>{(t=t.filter((e=>!!e))).length>0&&(i[e]=t)})));await Promise.all(o);return{allFields:objectSize(i)>0?i:null,orphanFields:s}})))}get hasJSActions(){return shadow(this,"hasJSActions",this.pdfManager.ensureDoc("_parseHasJSActions"))}async _parseHasJSActions(){const[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!e||!!t?.allFields&&Object.values(t.allFields).some((e=>e.some((e=>null!==e.actions))))}get calculationOrderIds(){const e=this.catalog.acroForm?.get("CO");if(!Array.isArray(e)||0===e.length)return shadow(this,"calculationOrderIds",null);const t=[];for(const a of e)a instanceof Ref&&t.push(a.toString());return shadow(this,"calculationOrderIds",t.length?t:null)}get annotationGlobals(){return shadow(this,"annotationGlobals",AnnotationFactory.createGlobals(this.pdfManager))}}class BasePdfManager{constructor({docBaseUrl:e,docId:t,enableXfa:a,evaluatorOptions:r,handler:i,password:n}){this._docBaseUrl=function parseDocBaseUrl(e){if(e){const t=createValidAbsoluteUrl(e);if(t)return t.href;warn(`Invalid absolute docBaseUrl: "${e}".`)}return null}(e);this._docId=t;this._password=n;this.enableXfa=a;r.isOffscreenCanvasSupported&&=FeatureTest.isOffscreenCanvasSupported;r.isImageDecoderSupported&&=FeatureTest.isImageDecoderSupported;this.evaluatorOptions=Object.freeze(r);ImageResizer.setOptions(r);JpegStream.setOptions(r);OperatorList.setOptions(r);const s={...r,handler:i};JpxImage.setOptions(s);IccColorSpace.setOptions(s);CmykICCBasedCS.setOptions(s)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,a){unreachable("Abstract method `ensure` called")}requestRange(e,t){unreachable("Abstract method `requestRange` called")}requestLoadedStream(e=!1){unreachable("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){unreachable("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){unreachable("Abstract method `terminate` called")}}class LocalPdfManager extends BasePdfManager{constructor(e){super(e);const t=new Stream(e.source);this.pdfDocument=new PDFDocument(this,t);this._loadedStreamPromise=Promise.resolve(t)}async ensure(e,t,a){const r=e[t];return"function"==typeof r?r.apply(e,a):r}requestRange(e,t){return Promise.resolve()}requestLoadedStream(e=!1){return this._loadedStreamPromise}terminate(e){}}class NetworkPdfManager extends BasePdfManager{constructor(e){super(e);this.streamManager=new ChunkedStreamManager(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize});this.pdfDocument=new PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,a){try{const r=e[t];return"function"==typeof r?r.apply(e,a):r}catch(r){if(!(r instanceof MissingDataException))throw r;await this.requestRange(r.begin,r.end);return this.ensure(e,t,a)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(e=!1){return this.streamManager.requestAllChunks(e)}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}}const Ac=1,kc=2,Cc=1,vc=2,Fc=3,Ic=4,Tc=5,Oc=6,Mc=7,Dc=8;function onFn(){}function wrapReason(e){if(e instanceof AbortException||e instanceof InvalidPDFException||e instanceof PasswordException||e instanceof ResponseException||e instanceof UnknownErrorException)return e;e instanceof Error||"object"==typeof e&&null!==e||unreachable(\'wrapReason: Expected "reason" to be a (possibly cloned) Error.\');switch(e.name){case"AbortException":return new AbortException(e.message);case"InvalidPDFException":return new InvalidPDFException(e.message);case"PasswordException":return new PasswordException(e.message,e.code);case"ResponseException":return new ResponseException(e.message,e.status,e.missing);case"UnknownErrorException":return new UnknownErrorException(e.message,e.details)}return new UnknownErrorException(e.message,e.toString())}class MessageHandler{#Je=new AbortController;constructor(e,t,a){this.sourceName=e;this.targetName=t;this.comObj=a;this.callbackId=1;this.streamId=1;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);a.addEventListener("message",this.#Ye.bind(this),{signal:this.#Je.signal})}#Ye({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#Ze(e);return}if(e.callback){const t=e.callbackId,a=this.callbackCapabilities[t];if(!a)throw new Error(`Cannot resolve callback ${t}`);delete this.callbackCapabilities[t];if(e.callback===Ac)a.resolve(e.data);else{if(e.callback!==kc)throw new Error("Unexpected callback case");a.reject(wrapReason(e.reason))}return}const t=this.actionHandler[e.action];if(!t)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const a=this.sourceName,r=e.sourceName,i=this.comObj;Promise.try(t,e.data).then((function(t){i.postMessage({sourceName:a,targetName:r,callback:Ac,callbackId:e.callbackId,data:t})}),(function(t){i.postMessage({sourceName:a,targetName:r,callback:kc,callbackId:e.callbackId,reason:wrapReason(t)})}))}else e.streamId?this.#Qe(e):t(e.data)}on(e,t){const a=this.actionHandler;if(a[e])throw new Error(`There is already an actionName called "${e}"`);a[e]=t}send(e,t,a){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},a)}sendWithPromise(e,t,a){const r=this.callbackId++,i=Promise.withResolvers();this.callbackCapabilities[r]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},a)}catch(e){i.reject(e)}return i.promise}sendWithStream(e,t,a,r){const i=this.streamId++,n=this.sourceName,s=this.targetName,o=this.comObj;return new ReadableStream({start:a=>{const c=Promise.withResolvers();this.streamControllers[i]={controller:a,startCall:c,pullCall:null,cancelCall:null,isClosed:!1};o.postMessage({sourceName:n,targetName:s,action:e,streamId:i,data:t,desiredSize:a.desiredSize},r);return c.promise},pull:e=>{const t=Promise.withResolvers();this.streamControllers[i].pullCall=t;o.postMessage({sourceName:n,targetName:s,stream:Oc,streamId:i,desiredSize:e.desiredSize});return t.promise},cancel:e=>{assert(e instanceof Error,"cancel must have a valid reason");const t=Promise.withResolvers();this.streamControllers[i].cancelCall=t;this.streamControllers[i].isClosed=!0;o.postMessage({sourceName:n,targetName:s,stream:Cc,streamId:i,reason:wrapReason(e)});return t.promise}},a)}#Qe(e){const t=e.streamId,a=this.sourceName,r=e.sourceName,i=this.comObj,n=this,s=this.actionHandler[e.action],o={enqueue(e,n=1,s){if(this.isCancelled)return;const o=this.desiredSize;this.desiredSize-=n;if(o>0&&this.desiredSize<=0){this.sinkCapability=Promise.withResolvers();this.ready=this.sinkCapability.promise}i.postMessage({sourceName:a,targetName:r,stream:Ic,streamId:t,chunk:e},s)},close(){if(!this.isCancelled){this.isCancelled=!0;i.postMessage({sourceName:a,targetName:r,stream:Fc,streamId:t});delete n.streamSinks[t]}},error(e){assert(e instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;i.postMessage({sourceName:a,targetName:r,stream:Tc,streamId:t,reason:wrapReason(e)})}},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};o.sinkCapability.resolve();o.ready=o.sinkCapability.promise;this.streamSinks[t]=o;Promise.try(s,e.data,o).then((function(){i.postMessage({sourceName:a,targetName:r,stream:Dc,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:a,targetName:r,stream:Dc,streamId:t,reason:wrapReason(e)})}))}#Ze(e){const t=e.streamId,a=this.sourceName,r=e.sourceName,i=this.comObj,n=this.streamControllers[t],s=this.streamSinks[t];switch(e.stream){case Dc:e.success?n.startCall.resolve():n.startCall.reject(wrapReason(e.reason));break;case Mc:e.success?n.pullCall.resolve():n.pullCall.reject(wrapReason(e.reason));break;case Oc:if(!s){i.postMessage({sourceName:a,targetName:r,stream:Mc,streamId:t,success:!0});break}s.desiredSize<=0&&e.desiredSize>0&&s.sinkCapability.resolve();s.desiredSize=e.desiredSize;Promise.try(s.onPull||onFn).then((function(){i.postMessage({sourceName:a,targetName:r,stream:Mc,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:a,targetName:r,stream:Mc,streamId:t,reason:wrapReason(e)})}));break;case Ic:assert(n,"enqueue should have stream controller");if(n.isClosed)break;n.controller.enqueue(e.chunk);break;case Fc:assert(n,"close should have stream controller");if(n.isClosed)break;n.isClosed=!0;n.controller.close();this.#et(n,t);break;case Tc:assert(n,"error should have stream controller");n.controller.error(wrapReason(e.reason));this.#et(n,t);break;case vc:e.success?n.cancelCall.resolve():n.cancelCall.reject(wrapReason(e.reason));this.#et(n,t);break;case Cc:if(!s)break;const o=wrapReason(e.reason);Promise.try(s.onCancel||onFn,o).then((function(){i.postMessage({sourceName:a,targetName:r,stream:vc,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:a,targetName:r,stream:vc,streamId:t,reason:wrapReason(e)})}));s.sinkCapability.reject(o);s.isCancelled=!0;delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async#et(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]);delete this.streamControllers[t]}destroy(){this.#Je?.abort();this.#Je=null}}async function writeObject(e,t,a,{encrypt:r=null}){const i=r?.createCipherTransform(e.num,e.gen);a.push(`${e.num} ${e.gen} obj\\n`);t instanceof Dict?await writeDict(t,a,i):t instanceof BaseStream?await writeStream(t,a,i):(Array.isArray(t)||ArrayBuffer.isView(t))&&await writeArray(t,a,i);a.push("\\nendobj\\n")}async function writeDict(e,t,a){t.push("<<");for(const r of e.getKeys()){t.push(` /${escapePDFName(r)} `);await writeValue(e.getRaw(r),t,a)}t.push(">>")}async function writeStream(e,t,a){let r=e.getBytes();const{dict:i}=e,[n,s]=await Promise.all([i.getAsync("Filter"),i.getAsync("DecodeParms")]),o=isName(Array.isArray(n)?await i.xref.fetchIfRefAsync(n[0]):n,"FlateDecode");if(r.length>=256||o)try{const e=new CompressionStream("deflate"),t=e.writable.getWriter();await t.ready;t.write(r).then((async()=>{await t.ready;await t.close()})).catch((()=>{}));const a=await new Response(e.readable).arrayBuffer();r=new Uint8Array(a);let c,l;if(n){if(!o){c=Array.isArray(n)?[Name.get("FlateDecode"),...n]:[Name.get("FlateDecode"),n];s&&(l=Array.isArray(s)?[null,...s]:[null,s])}}else c=Name.get("FlateDecode");c&&i.set("Filter",c);l&&i.set("DecodeParms",l)}catch(e){info(`writeStream - cannot compress data: "${e}".`)}let c=bytesToString(r);a&&(c=a.encryptString(c));i.set("Length",c.length);await writeDict(i,t,a);t.push(" stream\\n",c,"\\nendstream")}async function writeArray(e,t,a){t.push("[");let r=!0;for(const i of e){r?r=!1:t.push(" ");await writeValue(i,t,a)}t.push("]")}async function writeValue(e,t,a){if(e instanceof Name)t.push(`/${escapePDFName(e.name)}`);else if(e instanceof Ref)t.push(`${e.num} ${e.gen} R`);else if(Array.isArray(e)||ArrayBuffer.isView(e))await writeArray(e,t,a);else if("string"==typeof e){a&&(e=a.encryptString(e));t.push(`(${escapeString(e)})`)}else"number"==typeof e?t.push(numberToString(e)):"boolean"==typeof e?t.push(e.toString()):e instanceof Dict?await writeDict(e,t,a):e instanceof BaseStream?await writeStream(e,t,a):null===e?t.push("null"):warn(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function writeInt(e,t,a,r){for(let i=t+a-1;i>a-1;i--){r[i]=255&e;e>>=8}return a+t}function writeString(e,t,a){const r=e.length;for(let i=0;i<r;i++)a[t+i]=255&e.charCodeAt(i);return t+r}function updateXFA({xfaData:e,xfaDatasetsRef:t,changes:a,xref:r}){if(null===e){e=function writeXFADataForAcroform(e,t){const a=new SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(const{xfa:e}of t){if(!e)continue;const{path:t,value:r}=e;if(!t)continue;const i=parseXFAPath(t);let n=a.documentElement.searchNode(i,0);!n&&i.length>1&&(n=a.documentElement.searchNode([i.at(-1)],0));n?n.childNodes=Array.isArray(r)?r.map((e=>new SimpleDOMNode("value",e))):[new SimpleDOMNode("#text",r)]:warn(`Node not found for path: ${t}`)}const r=[];a.documentElement.dump(r);return r.join("")}(r.fetchIfRef(t).getString(),a)}const i=new StringStream(e);i.dict=new Dict(r);i.dict.setIfName("Type","EmbeddedFile");a.put(t,{data:i})}function getIndexes(e){const t=[];for(const{ref:a}of e)a.num===t.at(-2)+t.at(-1)?t[t.length-1]+=1:t.push(a.num,1);return t}function computeIDs(e,t,a){if(Array.isArray(t.fileIds)&&t.fileIds.length>0){const r=function computeMD5(e,t){const a=Math.floor(Date.now()/1e3),r=t.filename||"",i=[a.toString(),r,e.toString(),...t.infoMap.values()],n=Math.sumPrecise(i.map((e=>e.length))),s=new Uint8Array(n);let o=0;for(const e of i)o=writeString(e,o,s);return bytesToString(calculateMD5(s,0,s.length))}(e,t);a.set("ID",[t.fileIds[0],r])}}async function incrementalUpdate({originalData:e,xrefInfo:t,changes:a,xref:r=null,hasXfa:i=!1,xfaDatasetsRef:n=null,hasXfaDatasetsEntry:s=!1,needAppearances:o,acroFormRef:c=null,acroForm:l=null,xfaData:h=null,useXrefStream:u=!1}){await async function updateAcroform({xref:e,acroForm:t,acroFormRef:a,hasXfa:r,hasXfaDatasetsEntry:i,xfaDatasetsRef:n,needAppearances:s,changes:o}){!r||i||n||warn("XFA - Cannot save it");if(!s&&(!r||!n||i))return;const c=t.clone();if(r&&!i){const e=t.get("XFA").slice();e.splice(2,0,"datasets");e.splice(3,0,n);c.set("XFA",e)}s&&c.set("NeedAppearances",!0);o.put(a,{data:c})}({xref:r,acroForm:l,acroFormRef:c,hasXfa:i,hasXfaDatasetsEntry:s,xfaDatasetsRef:n,needAppearances:o,changes:a});i&&updateXFA({xfaData:h,xfaDatasetsRef:n,changes:a,xref:r});const d=function getTrailerDict(e,t,a){const r=new Dict(null);r.set("Prev",e.startXRef);const i=e.newRef;if(a){t.put(i,{data:""});r.set("Size",i.num+1);r.setIfName("Type","XRef")}else r.set("Size",i.num);null!==e.rootRef&&r.set("Root",e.rootRef);null!==e.infoRef&&r.set("Info",e.infoRef);null!==e.encryptRef&&r.set("Encrypt",e.encryptRef);return r}(t,a,u),f=[],g=await async function writeChanges(e,t,a=[]){const r=[];for(const[i,{data:n}]of e.items())if(null!==n&&"string"!=typeof n){await writeObject(i,n,a,t);r.push({ref:i,data:a.join("")});a.length=0}else r.push({ref:i,data:n});return r.sort(((e,t)=>e.ref.num-t.ref.num))}(a,r,f);let p=e.length;const m=e.at(-1);if(10!==m&&13!==m){f.push("\\n");p+=1}for(const{data:e}of g)null!==e&&f.push(e);await(u?async function getXRefStreamTable(e,t,a,r,i){const n=[];let s=0,o=0;for(const{ref:e,data:r}of a){let a;s=Math.max(s,t);if(null!==r){a=Math.min(e.gen,65535);n.push([1,t,a]);t+=r.length}else{a=Math.min(e.gen+1,65535);n.push([0,0,a])}o=Math.max(o,a)}r.set("Index",getIndexes(a));const c=[1,getSizeInBytes(s),getSizeInBytes(o)];r.set("W",c);computeIDs(t,e,r);const l=Math.sumPrecise(c),h=new Uint8Array(l*n.length),u=new Stream(h);u.dict=r;let d=0;for(const[e,t,a]of n){d=writeInt(e,c[0],d,h);d=writeInt(t,c[1],d,h);d=writeInt(a,c[2],d,h)}await writeObject(e.newRef,u,i,{});i.push("startxref\\n",t.toString(),"\\n%%EOF\\n")}(t,p,g,d,f):async function getXRefTable(e,t,a,r,i){i.push("xref\\n");const n=getIndexes(a);let s=0;for(const{ref:e,data:r}of a){if(e.num===n[s]){i.push(`${n[s]} ${n[s+1]}\\n`);s+=2}if(null!==r){i.push(`${t.toString().padStart(10,"0")} ${Math.min(e.gen,65535).toString().padStart(5,"0")} n\\r\\n`);t+=r.length}else i.push(`0000000000 ${Math.min(e.gen+1,65535).toString().padStart(5,"0")} f\\r\\n`)}computeIDs(t,e,r);i.push("trailer\\n");await writeDict(r,i);i.push("\\nstartxref\\n",t.toString(),"\\n%%EOF\\n")}(t,p,g,d,f));const b=e.length+Math.sumPrecise(f.map((e=>e.length))),y=new Uint8Array(b);y.set(e);let w=e.length;for(const e of f)w=writeString(e,w,y);return y}class PDFWorkerStream{constructor(e){this._msgHandler=e;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}getFullReader(){assert(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new PDFWorkerStreamReader(this._msgHandler);return this._fullRequestReader}getRangeReader(e,t){const a=new PDFWorkerStreamRangeReader(e,t,this._msgHandler);this._rangeRequestReaders.push(a);return a}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}class PDFWorkerStreamReader{constructor(e){this._msgHandler=e;this.onProgress=null;this._contentLength=null;this._isRangeSupported=!1;this._isStreamingSupported=!1;const t=this._msgHandler.sendWithStream("GetReader");this._reader=t.getReader();this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((e=>{this._isStreamingSupported=e.isStreamingSupported;this._isRangeSupported=e.isRangeSupported;this._contentLength=e.contentLength}))}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class PDFWorkerStreamRangeReader{constructor(e,t,a){this._msgHandler=a;this.onProgress=null;const r=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=r.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class WorkerTask{constructor(e){this.name=e;this.terminated=!1;this._capability=Promise.withResolvers()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}class WorkerMessageHandler{static{"undefined"==typeof window&&!e&&"undefined"!=typeof self&&"function"==typeof self.postMessage&&"onmessage"in self&&this.initializeFromPort(self)}static setup(e,t){let a=!1;e.on("test",(t=>{if(!a){a=!0;e.send("test",t instanceof Uint8Array)}}));e.on("configure",(e=>{!function setVerbosityLevel(e){Number.isInteger(e)&&(da=e)}(e.verbosity)}));e.on("GetDocRequest",(e=>this.createDocumentHandler(e,t)))}static createDocumentHandler(e,t){let a,r=!1,i=null;const n=new Set,s=getVerbosityLevel(),{docId:o,apiVersion:c}=e,l="5.4.54";if(c!==l)throw new Error(`The API version "${c}" does not match the Worker version "${l}".`);const buildMsg=(e,t)=>`The \\`${e}.prototype\\` contains unexpected enumerable property "${t}", thus breaking e.g. \\`for...in\\` iteration of ${e}s.`;for(const e in{})throw new Error(buildMsg("Object",e));for(const e in[])throw new Error(buildMsg("Array",e));const h=o+"_worker";let u=new MessageHandler(h,o,t);function ensureNotTerminated(){if(r)throw new Error("Worker was terminated")}function startWorkerTask(e){n.add(e)}function finishWorkerTask(e){e.finish();n.delete(e)}async function loadDocument(e){await a.ensureDoc("checkHeader");await a.ensureDoc("parseStartXRef");await a.ensureDoc("parse",[e]);await a.ensureDoc("checkFirstPage",[e]);await a.ensureDoc("checkLastPage",[e]);const t=await a.ensureDoc("isPureXfa");if(t){const e=new WorkerTask("loadXfaResources");startWorkerTask(e);await a.ensureDoc("loadXfaResources",[u,e]);finishWorkerTask(e)}const[r,i]=await Promise.all([a.ensureDoc("numPages"),a.ensureDoc("fingerprints")]);return{numPages:r,fingerprints:i,htmlForXfa:t?await a.ensureDoc("htmlForXfa"):null}}function setupDoc(e){function onSuccess(e){ensureNotTerminated();u.send("GetDoc",{pdfInfo:e})}function onFailure(e){ensureNotTerminated();if(e instanceof PasswordException){const t=new WorkerTask(`PasswordException: response ${e.code}`);startWorkerTask(t);u.sendWithPromise("PasswordRequest",e).then((function({password:e}){finishWorkerTask(t);a.updatePassword(e);pdfManagerReady()})).catch((function(){finishWorkerTask(t);u.send("DocException",e)}))}else u.send("DocException",wrapReason(e))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(e){ensureNotTerminated();e instanceof XRefParseException?a.requestLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)})):onFailure(e)}))}ensureNotTerminated();(async function getPdfManager({data:e,password:t,disableAutoFetch:a,rangeChunkSize:r,length:n,docBaseUrl:s,enableXfa:c,evaluatorOptions:l}){const h={source:null,disableAutoFetch:a,docBaseUrl:s,docId:o,enableXfa:c,evaluatorOptions:l,handler:u,length:n,password:t,rangeChunkSize:r};if(e){h.source=e;return new LocalPdfManager(h)}const d=new PDFWorkerStream(u),f=d.getFullReader(),g=Promise.withResolvers();let p,m=[],b=0;f.headersReady.then((function(){if(f.isRangeSupported){h.source=d;h.length=f.contentLength;h.disableAutoFetch||=f.isStreamingSupported;p=new NetworkPdfManager(h);for(const e of m)p.sendProgressiveData(e);m=[];g.resolve(p);i=null}})).catch((function(e){g.reject(e);i=null}));new Promise((function(e,t){const readChunk=function({value:e,done:a}){try{ensureNotTerminated();if(a){if(!p){const e=arrayBuffersToBytes(m);m=[];n&&e.length!==n&&warn("reported HTTP length is different from actual");h.source=e;p=new LocalPdfManager(h);g.resolve(p)}i=null;return}b+=e.byteLength;f.isStreamingSupported||u.send("DocProgress",{loaded:b,total:Math.max(b,f.contentLength||0)});p?p.sendProgressiveData(e):m.push(e);f.read().then(readChunk,t)}catch(e){t(e)}};f.read().then(readChunk,t)})).catch((function(e){g.reject(e);i=null}));i=e=>{d.cancelAllRequests(e)};return g.promise})(e).then((function(e){if(r){e.terminate(new AbortException("Worker was terminated."));throw new Error("Worker was terminated")}a=e;a.requestLoadedStream(!0).then((e=>{u.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}u.on("GetPage",(function(e){return a.getPage(e.pageIndex).then((function(e){return Promise.all([a.ensure(e,"rotate"),a.ensure(e,"ref"),a.ensure(e,"userUnit"),a.ensure(e,"view")]).then((function([e,t,a,r]){return{rotate:e,ref:t,refStr:t?.toString()??null,userUnit:a,view:r}}))}))}));u.on("GetPageIndex",(function(e){const t=Ref.get(e.num,e.gen);return a.ensureCatalog("getPageIndex",[t])}));u.on("GetDestinations",(function(e){return a.ensureCatalog("destinations")}));u.on("GetDestination",(function(e){return a.ensureCatalog("getDestination",[e.id])}));u.on("GetPageLabels",(function(e){return a.ensureCatalog("pageLabels")}));u.on("GetPageLayout",(function(e){return a.ensureCatalog("pageLayout")}));u.on("GetPageMode",(function(e){return a.ensureCatalog("pageMode")}));u.on("GetViewerPreferences",(function(e){return a.ensureCatalog("viewerPreferences")}));u.on("GetOpenAction",(function(e){return a.ensureCatalog("openAction")}));u.on("GetAttachments",(function(e){return a.ensureCatalog("attachments")}));u.on("GetDocJSActions",(function(e){return a.ensureCatalog("jsActions")}));u.on("GetPageJSActions",(function({pageIndex:e}){return a.getPage(e).then((e=>a.ensure(e,"jsActions")))}));u.on("GetOutline",(function(e){return a.ensureCatalog("documentOutline")}));u.on("GetOptionalContentConfig",(function(e){return a.ensureCatalog("optionalContentConfig")}));u.on("GetPermissions",(function(e){return a.ensureCatalog("permissions")}));u.on("GetMetadata",(function(e){return Promise.all([a.ensureDoc("documentInfo"),a.ensureCatalog("metadata")])}));u.on("GetMarkInfo",(function(e){return a.ensureCatalog("markInfo")}));u.on("GetData",(function(e){return a.requestLoadedStream().then((e=>e.bytes))}));u.on("GetAnnotations",(function({pageIndex:e,intent:t}){return a.getPage(e).then((function(a){const r=new WorkerTask(`GetAnnotations: page ${e}`);startWorkerTask(r);return a.getAnnotationsData(u,r,t).then((e=>{finishWorkerTask(r);return e}),(e=>{finishWorkerTask(r);throw e}))}))}));u.on("GetFieldObjects",(function(e){return a.ensureDoc("fieldObjects").then((e=>e?.allFields||null))}));u.on("HasJSActions",(function(e){return a.ensureDoc("hasJSActions")}));u.on("GetCalculationOrderIds",(function(e){return a.ensureDoc("calculationOrderIds")}));u.on("SaveDocument",(async function({isPureXfa:e,numPages:t,annotationStorage:r,filename:i}){const n=[a.requestLoadedStream(),a.ensureCatalog("acroForm"),a.ensureCatalog("acroFormRef"),a.ensureDoc("startXRef"),a.ensureDoc("xref"),a.ensureDoc("linearization"),a.ensureCatalog("structTreeRoot")],s=new RefSetCache,o=[],c=e?null:getNewAnnotationsMap(r),[l,h,d,f,g,p,m]=await Promise.all(n),b=g.trailer.getRaw("Root")||null;let y;if(c){m?await m.canUpdateStructTree({pdfManager:a,newAnnotationsByPage:c})&&(y=m):await StructTreeRoot.canCreateStructureTree({catalogRef:b,pdfManager:a,newAnnotationsByPage:c})&&(y=null);const e=AnnotationFactory.generateImages(r.values(),g,a.evaluatorOptions.isOffscreenCanvasSupported),t=void 0===y?o:[];for(const[r,i]of c)t.push(a.getPage(r).then((t=>{const a=new WorkerTask(`Save (editor): page ${r}`);startWorkerTask(a);return t.saveNewAnnotations(u,a,i,e,s).finally((function(){finishWorkerTask(a)}))})));null===y?o.push(Promise.all(t).then((async()=>{await StructTreeRoot.createStructureTree({newAnnotationsByPage:c,xref:g,catalogRef:b,pdfManager:a,changes:s})}))):y&&o.push(Promise.all(t).then((async()=>{await y.updateStructureTree({newAnnotationsByPage:c,pdfManager:a,changes:s})})))}if(e)o.push(a.ensureDoc("serializeXfaData",[r]));else for(let e=0;e<t;e++)o.push(a.getPage(e).then((function(t){const a=new WorkerTask(`Save: page ${e}`);startWorkerTask(a);return t.save(u,a,r,s).finally((function(){finishWorkerTask(a)}))})));const w=await Promise.all(o);let x=null;if(e){x=w[0];if(!x)return l.bytes}else if(0===s.size)return l.bytes;const S=d&&h instanceof Dict&&s.values().some((e=>e.needAppearances)),k=h instanceof Dict&&h.get("XFA")||null;let C=null,v=!1;if(Array.isArray(k)){for(let e=0,t=k.length;e<t;e+=2)if("datasets"===k[e]){C=k[e+1];v=!0}null===C&&(C=g.getNewTemporaryRef())}else k&&warn("Unsupported XFA type.");let F=Object.create(null);if(g.trailer){const e=new Map,t=g.trailer.get("Info")||null;if(t instanceof Dict)for(const[a,r]of t)"string"==typeof r&&e.set(a,stringToPDFString(r));F={rootRef:b,encryptRef:g.trailer.getRaw("Encrypt")||null,newRef:g.getNewTemporaryRef(),infoRef:g.trailer.getRaw("Info")||null,infoMap:e,fileIds:g.trailer.get("ID")||null,startXRef:p?f:g.lastXRefStreamPos??f,filename:i}}return incrementalUpdate({originalData:l.bytes,xrefInfo:F,changes:s,xref:g,hasXfa:!!k,xfaDatasetsRef:C,hasXfaDatasetsEntry:v,needAppearances:S,acroFormRef:d,acroForm:h,xfaData:x,useXrefStream:isDict(g.topDict,"XRef")}).finally((()=>{g.resetNewTemporaryRef()}))}));u.on("GetOperatorList",(function(e,t){const r=e.pageIndex;a.getPage(r).then((function(a){const i=new WorkerTask(`GetOperatorList: page ${r}`);startWorkerTask(i);const n=s>=Ae?Date.now():0;a.getOperatorList({handler:u,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage,modifiedIds:e.modifiedIds}).then((function(e){finishWorkerTask(i);n&&info(`page=${r+1} - getOperatorList: time=${Date.now()-n}ms, len=${e.length}`);t.close()}),(function(e){finishWorkerTask(i);i.terminated||t.error(e)}))}))}));u.on("GetTextContent",(function(e,t){const{pageIndex:r,includeMarkedContent:i,disableNormalization:n}=e;a.getPage(r).then((function(e){const a=new WorkerTask("GetTextContent: page "+r);startWorkerTask(a);const o=s>=Ae?Date.now():0;e.extractTextContent({handler:u,task:a,sink:t,includeMarkedContent:i,disableNormalization:n}).then((function(){finishWorkerTask(a);o&&info(`page=${r+1} - getTextContent: time=`+(Date.now()-o)+"ms");t.close()}),(function(e){finishWorkerTask(a);a.terminated||t.error(e)}))}))}));u.on("GetStructTree",(function(e){return a.getPage(e.pageIndex).then((e=>a.ensure(e,"getStructTree")))}));u.on("FontFallback",(function(e){return a.fontFallback(e.id,u)}));u.on("Cleanup",(function(e){return a.cleanup(!0)}));u.on("Terminate",(function(e){r=!0;const t=[];if(a){a.terminate(new AbortException("Worker was terminated."));const e=a.cleanup();t.push(e);a=null}else clearGlobalCaches();i?.(new AbortException("Worker was terminated."));for(const e of n){t.push(e.finished);e.terminate()}return Promise.all(t).then((function(){u.destroy();u=null}))}));u.on("Ready",(function(t){setupDoc(e);e=null}));return h}static initializeFromPort(e){const t=new MessageHandler("worker","main",e);this.setup(t,e);t.send("ready",null)}}globalThis.pdfjsWorker={WorkerMessageHandler};export{WorkerMessageHandler};',Iar=Object.freeze(Object.defineProperty({__proto__:null,default:Oar},Symbol.toStringTag,{value:"Module"}));var BP={exports:{}},Nar=BP.exports,RCe;function kar(){return RCe||(RCe=1,(function(t,e){(function(r,n){t.exports=n()})(Nar,(function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",d="week",h="month",f="quarter",p="year",g="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,y={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(O){var D=["th","st","nd","rd"],M=O%100;return"["+O+(D[(M-20)%10]||D[M]||D[0])+"]"}},b=function(O,D,M){var P=String(O);return!P||P.length>=D?O:""+Array(D+1-P.length).join(M)+O},E={s:b,z:function(O){var D=-O.utcOffset(),M=Math.abs(D),P=Math.floor(M/60),N=M%60;return(D<=0?"+":"-")+b(P,2,"0")+":"+b(N,2,"0")},m:function O(D,M){if(D.date()<M.date())return-O(M,D);var P=12*(M.year()-D.year())+(M.month()-D.month()),N=D.clone().add(P,h),$=M-N<0,U=D.clone().add(P+($?-1:1),h);return+(-(P+(M-N)/($?N-U:U-N))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:h,y:p,w:d,d:u,D:g,h:l,m:o,s,ms:a,Q:f}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},S="en",T={};T[S]=y;var C="$isDayjsObject",x=function(O){return O instanceof L||!(!O||!O[C])},A=function O(D,M,P){var N;if(!D)return S;if(typeof D=="string"){var $=D.toLowerCase();T[$]&&(N=$),M&&(T[$]=M,N=$);var U=D.split("-");if(!N&&U.length>1)return O(U[0])}else{var B=D.name;T[B]=D,N=B}return!P&&N&&(S=N),N||!P&&S},R=function(O,D){if(x(O))return O.clone();var M=typeof D=="object"?D:{};return M.date=O,M.args=arguments,new L(M)},I=E;I.l=A,I.i=x,I.w=function(O,D){return R(O,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var L=(function(){function O(M){this.$L=A(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[C]=!0}var D=O.prototype;return D.parse=function(M){this.$d=(function(P){var N=P.date,$=P.utc;if(N===null)return new Date(NaN);if(I.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var U=N.match(_);if(U){var B=U[2]-1||0,V=(U[7]||"0").substring(0,3);return $?new Date(Date.UTC(U[1],B,U[3]||1,U[4]||0,U[5]||0,U[6]||0,V)):new Date(U[1],B,U[3]||1,U[4]||0,U[5]||0,U[6]||0,V)}}return new Date(N)})(M),this.init()},D.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},D.$utils=function(){return I},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(M,P){var N=R(M);return this.startOf(P)<=N&&N<=this.endOf(P)},D.isAfter=function(M,P){return R(M)<this.startOf(P)},D.isBefore=function(M,P){return this.endOf(P)<R(M)},D.$g=function(M,P,N){return I.u(M)?this[P]:this.set(N,M)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(M,P){var N=this,$=!!I.u(P)||P,U=I.p(M),B=function(Z,re){var K=I.w(N.$u?Date.UTC(N.$y,re,Z):new Date(N.$y,re,Z),N);return $?K:K.endOf(u)},V=function(Z,re){return I.w(N.toDate()[Z].apply(N.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(re)),N)},z=this.$W,G=this.$M,Y=this.$D,W="set"+(this.$u?"UTC":"");switch(U){case p:return $?B(1,0):B(31,11);case h:return $?B(1,G):B(0,G+1);case d:var Q=this.$locale().weekStart||0,ie=(z<Q?z+7:z)-Q;return B($?Y-ie:Y+(6-ie),G);case u:case g:return V(W+"Hours",0);case l:return V(W+"Minutes",1);case o:return V(W+"Seconds",2);case s:return V(W+"Milliseconds",3);default:return this.clone()}},D.endOf=function(M){return this.startOf(M,!1)},D.$set=function(M,P){var N,$=I.p(M),U="set"+(this.$u?"UTC":""),B=(N={},N[u]=U+"Date",N[g]=U+"Date",N[h]=U+"Month",N[p]=U+"FullYear",N[l]=U+"Hours",N[o]=U+"Minutes",N[s]=U+"Seconds",N[a]=U+"Milliseconds",N)[$],V=$===u?this.$D+(P-this.$W):P;if($===h||$===p){var z=this.clone().set(g,1);z.$d[B](V),z.init(),this.$d=z.set(g,Math.min(this.$D,z.daysInMonth())).$d}else B&&this.$d[B](V);return this.init(),this},D.set=function(M,P){return this.clone().$set(M,P)},D.get=function(M){return this[I.p(M)]()},D.add=function(M,P){var N,$=this;M=Number(M);var U=I.p(P),B=function(G){var Y=R($);return I.w(Y.date(Y.date()+Math.round(G*M)),$)};if(U===h)return this.set(h,this.$M+M);if(U===p)return this.set(p,this.$y+M);if(U===u)return B(1);if(U===d)return B(7);var V=(N={},N[o]=n,N[l]=i,N[s]=r,N)[U]||1,z=this.$d.getTime()+M*V;return I.w(z,this)},D.subtract=function(M,P){return this.add(-1*M,P)},D.format=function(M){var P=this,N=this.$locale();if(!this.isValid())return N.invalidDate||m;var $=M||"YYYY-MM-DDTHH:mm:ssZ",U=I.z(this),B=this.$H,V=this.$m,z=this.$M,G=N.weekdays,Y=N.months,W=N.meridiem,Q=function(re,K,j,se){return re&&(re[K]||re(P,$))||j[K].slice(0,se)},ie=function(re){return I.s(B%12||12,re,"0")},Z=W||function(re,K,j){var se=re<12?"AM":"PM";return j?se.toLowerCase():se};return $.replace(v,(function(re,K){return K||(function(j){switch(j){case"YY":return String(P.$y).slice(-2);case"YYYY":return I.s(P.$y,4,"0");case"M":return z+1;case"MM":return I.s(z+1,2,"0");case"MMM":return Q(N.monthsShort,z,Y,3);case"MMMM":return Q(Y,z);case"D":return P.$D;case"DD":return I.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return Q(N.weekdaysMin,P.$W,G,2);case"ddd":return Q(N.weekdaysShort,P.$W,G,3);case"dddd":return G[P.$W];case"H":return String(B);case"HH":return I.s(B,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return Z(B,V,!0);case"A":return Z(B,V,!1);case"m":return String(V);case"mm":return I.s(V,2,"0");case"s":return String(P.$s);case"ss":return I.s(P.$s,2,"0");case"SSS":return I.s(P.$ms,3,"0");case"Z":return U}return null})(re)||U.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(M,P,N){var $,U=this,B=I.p(P),V=R(M),z=(V.utcOffset()-this.utcOffset())*n,G=this-V,Y=function(){return I.m(U,V)};switch(B){case p:$=Y()/12;break;case h:$=Y();break;case f:$=Y()/3;break;case d:$=(G-z)/6048e5;break;case u:$=(G-z)/864e5;break;case l:$=G/i;break;case o:$=G/n;break;case s:$=G/r;break;default:$=G}return N?$:I.a($)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return T[this.$L]},D.locale=function(M,P){if(!M)return this.$L;var N=this.clone(),$=A(M,P,!0);return $&&(N.$L=$),N},D.clone=function(){return I.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()},O})(),F=L.prototype;return R.prototype=F,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",u],["$M",h],["$y",p],["$D",g]].forEach((function(O){F[O[1]]=function(D){return this.$g(D,O[0],O[1])}})),R.extend=function(O,D){return O.$i||(O(D,L,R),O.$i=!0),R},R.locale=A,R.isDayjs=x,R.unix=function(O){return R(1e3*O)},R.en=T[S],R.Ls=T,R.p={},R}))})(BP)),BP.exports}var Dar=kar();const wl=sd(Dar);var u7e=Object.defineProperty,k=(t,e)=>u7e(t,"name",{value:e,configurable:!0}),SU=(t,e)=>{for(var r in e)u7e(t,r,{get:e[r],enumerable:!0})},rm={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Pe={trace:k((...t)=>{},"trace"),debug:k((...t)=>{},"debug"),info:k((...t)=>{},"info"),warn:k((...t)=>{},"warn"),error:k((...t)=>{},"error"),fatal:k((...t)=>{},"fatal")},Zle=k(function(t="fatal"){let e=rm.fatal;typeof t=="string"?t.toLowerCase()in rm&&(e=rm[t]):typeof t=="number"&&(e=t),Pe.trace=()=>{},Pe.debug=()=>{},Pe.info=()=>{},Pe.warn=()=>{},Pe.error=()=>{},Pe.fatal=()=>{},e<=rm.fatal&&(Pe.fatal=console.error?console.error.bind(console,ph("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ph("FATAL"))),e<=rm.error&&(Pe.error=console.error?console.error.bind(console,ph("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ph("ERROR"))),e<=rm.warn&&(Pe.warn=console.warn?console.warn.bind(console,ph("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ph("WARN"))),e<=rm.info&&(Pe.info=console.info?console.info.bind(console,ph("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ph("INFO"))),e<=rm.debug&&(Pe.debug=console.debug?console.debug.bind(console,ph("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ph("DEBUG"))),e<=rm.trace&&(Pe.trace=console.debug?console.debug.bind(console,ph("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ph("TRACE")))},"setLogLevel"),ph=k(t=>`%c${wl().format("ss.SSS")} : ${t} : `,"format");const UP={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return UP.hue2rgb(a,i,t+1/3)*255;case"g":return UP.hue2rgb(a,i,t)*255;case"b":return UP.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},Mar={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Lar={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},ai={channel:UP,lang:Mar,unit:Lar},h_={};for(let t=0;t<=255;t++)h_[t]=ai.unit.dec2hex(t);const bc={ALL:0,RGB:1,HSL:2};let Par=class{constructor(){this.type=bc.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=bc.ALL}is(e){return this.type===e}};class Far{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new Par}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=bc.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=ai.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=ai.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=ai.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=ai.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=ai.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=ai.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(bc.HSL)&&r!==void 0?r:(this._ensureHSL(),ai.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(bc.HSL)&&r!==void 0?r:(this._ensureHSL(),ai.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(bc.HSL)&&r!==void 0?r:(this._ensureHSL(),ai.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(bc.RGB)&&r!==void 0?r:(this._ensureRGB(),ai.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(bc.RGB)&&r!==void 0?r:(this._ensureRGB(),ai.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(bc.RGB)&&r!==void 0?r:(this._ensureRGB(),ai.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(bc.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(bc.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(bc.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(bc.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(bc.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(bc.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const TU=new Far({r:0,g:0,b:0,a:0},"transparent"),jT={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(jT.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,u=a?0:-1,d=s?255:15;return TU.set({r:(n>>l*(u+3)&d)*o,g:(n>>l*(u+2)&d)*o,b:(n>>l*(u+1)&d)*o,a:a?(n&d)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${h_[Math.round(e)]}${h_[Math.round(r)]}${h_[Math.round(n)]}${h_[Math.round(i*255)]}`:`#${h_[Math.round(e)]}${h_[Math.round(r)]}${h_[Math.round(n)]}`}},My={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(My.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return ai.channel.clamp.h(parseFloat(r)*.9);case"rad":return ai.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return ai.channel.clamp.h(parseFloat(r)*360)}}return ai.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(My.re);if(!r)return;const[,n,i,a,s,o]=r;return TU.set({h:My._hue2deg(n),s:ai.channel.clamp.s(parseFloat(i)),l:ai.channel.clamp.l(parseFloat(a)),a:s?ai.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${ai.lang.round(e)}, ${ai.lang.round(r)}%, ${ai.lang.round(n)}%, ${i})`:`hsl(${ai.lang.round(e)}, ${ai.lang.round(r)}%, ${ai.lang.round(n)}%)`}},pN={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=pN.colors[t];if(e)return jT.parse(e)},stringify:t=>{const e=jT.stringify(t);for(const r in pN.colors)if(pN.colors[r]===e)return r}},SI={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(SI.re);if(!r)return;const[,n,i,a,s,o,l,u,d]=r;return TU.set({r:ai.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:ai.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:ai.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?ai.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${ai.lang.round(e)}, ${ai.lang.round(r)}, ${ai.lang.round(n)}, ${ai.lang.round(i)})`:`rgb(${ai.lang.round(e)}, ${ai.lang.round(r)}, ${ai.lang.round(n)})`}},Zf={format:{keyword:pN,hex:jT,rgb:SI,rgba:SI,hsl:My,hsla:My},parse:t=>{if(typeof t!="string")return t;const e=jT.parse(t)||SI.parse(t)||My.parse(t)||pN.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(bc.HSL)||t.data.r===void 0?My.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?SI.stringify(t):jT.stringify(t)},d7e=(t,e)=>{const r=Zf.parse(t);for(const n in e)r[n]=ai.channel.clamp[n](e[n]);return Zf.stringify(r)},Pf=(t,e,r=0,n=1)=>{if(typeof t!="number")return d7e(t,{a:e});const i=TU.set({r:ai.channel.clamp.r(t),g:ai.channel.clamp.g(e),b:ai.channel.clamp.b(r),a:ai.channel.clamp.a(n)});return Zf.stringify(i)},Jle=(t,e)=>ai.lang.round(Zf.parse(t)[e]),Bar=t=>{const{r:e,g:r,b:n}=Zf.parse(t),i=.2126*ai.channel.toLinear(e)+.7152*ai.channel.toLinear(r)+.0722*ai.channel.toLinear(n);return ai.lang.round(i)},Uar=t=>Bar(t)>=.5,wu=t=>!Uar(t),ece=(t,e,r)=>{const n=Zf.parse(t),i=n[e],a=ai.channel.clamp[e](i+r);return i!==a&&(n[e]=a),Zf.stringify(n)},Zt=(t,e)=>ece(t,"l",e),Jt=(t,e)=>ece(t,"l",-e),OCe=(t,e)=>ece(t,"a",-e),Ge=(t,e)=>{const r=Zf.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return d7e(t,n)},$ar=(t,e,r=50)=>{const{r:n,g:i,b:a,a:s}=Zf.parse(t),{r:o,g:l,b:u,a:d}=Zf.parse(e),h=r/100,f=h*2-1,p=s-d,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,_=1-m,v=n*m+o*_,y=i*m+l*_,b=a*m+u*_,E=s*h+d*(1-h);return Pf(v,y,b,E)},zt=(t,e=100)=>{const r=Zf.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,$ar(r,t,e)};function ICe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Gar(t){if(Array.isArray(t))return t}function zar(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function qar(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Var(t,e){return Gar(t)||zar(t,e)||Har(t,e)||qar()}function Har(t,e){if(t){if(typeof t=="string")return ICe(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ICe(t,e):void 0}}const h7e=Object.entries,NCe=Object.setPrototypeOf,Yar=Object.isFrozen,War=Object.getPrototypeOf,Kar=Object.getOwnPropertyDescriptor;let vu=Object.freeze,qh=Object.seal,zS=Object.create,f7e=typeof Reflect<"u"&&Reflect,GJ=f7e.apply,zJ=f7e.construct;vu||(vu=function(e){return e});qh||(qh=function(e){return e});GJ||(GJ=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return e.apply(r,i)});zJ||(zJ=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new e(...n)});const xv=Wo(Array.prototype.forEach),jar=Wo(Array.prototype.lastIndexOf),kCe=Wo(Array.prototype.pop),oS=Wo(Array.prototype.push),Xar=Wo(Array.prototype.splice),Hc=Array.isArray,TI=Wo(String.prototype.toLowerCase),cK=Wo(String.prototype.toString),DCe=Wo(String.prototype.match),lS=Wo(String.prototype.replace),MCe=Wo(String.prototype.indexOf),Qar=Wo(String.prototype.trim),Zar=Wo(Number.prototype.toString),Jar=Wo(Boolean.prototype.toString),LCe=typeof BigInt>"u"?null:Wo(BigInt.prototype.toString),PCe=typeof Symbol>"u"?null:Wo(Symbol.prototype.toString),ao=Wo(Object.prototype.hasOwnProperty),OO=Wo(Object.prototype.toString),Pl=Wo(RegExp.prototype.test),cS=esr(TypeError);function Wo(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return GJ(t,e,n)}}function esr(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return zJ(t,r)}}function Si(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:TI;if(NCe&&NCe(t,null),!Hc(e))return t;let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const a=r(i);a!==i&&(Yar(e)||(e[n]=a),i=a)}t[i]=!0}return t}function tsr(t){for(let e=0;e<t.length;e++)ao(t,e)||(t[e]=null);return t}function yc(t){const e=zS(null);for(const n of h7e(t)){var r=Var(n,2);const i=r[0],a=r[1];ao(t,i)&&(Hc(a)?e[i]=tsr(a):a&&typeof a=="object"&&a.constructor===Object?e[i]=yc(a):e[i]=a)}return e}function rsr(t){switch(typeof t){case"string":return t;case"number":return Zar(t);case"boolean":return Jar(t);case"bigint":return LCe?LCe(t):"0";case"symbol":return PCe?PCe(t):"Symbol()";case"undefined":return OO(t);case"function":case"object":{if(t===null)return OO(t);const e=t,r=Cp(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:OO(n)}return OO(t)}default:return OO(t)}}function Cp(t,e){for(;t!==null;){const n=Kar(t,e);if(n){if(n.get)return Wo(n.get);if(typeof n.value=="function")return Wo(n.value)}t=War(t)}function r(){return null}return r}function nsr(t){try{return Pl(t,""),!0}catch{return!1}}const FCe=vu(["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"]),uK=vu(["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"]),dK=vu(["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"]),isr=vu(["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"]),hK=vu(["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"]),asr=vu(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),BCe=vu(["#text"]),UCe=vu(["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"]),fK=vu(["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"]),$Ce=vu(["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"]),bL=vu(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ssr=qh(/{{[\w\W]*|^[\w\W]*}}/g),osr=qh(/<%[\w\W]*|^[\w\W]*%>/g),lsr=qh(/\${[\w\W]*/g),csr=qh(/^data-[\-\w.\u00B7-\uFFFF]+$/),usr=qh(/^aria-[\-\w]+$/),GCe=qh(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dsr=qh(/^(?:\w+script|data):/i),hsr=qh(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fsr=qh(/^html$/i),psr=qh(/^[a-z][.\w]*(-[.\w]+)+$/i),vp={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},gsr=function(){return typeof window>"u"?null:window},msr=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},zCe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function p7e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gsr();const e=Vr=>p7e(Vr);if(e.version="3.4.8",e.removed=[],!t||!t.document||t.document.nodeType!==vp.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const n=r,i=n.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,s=t.Node,o=t.Element,l=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,h=t.trustedTypes,f=o.prototype,p=Cp(f,"cloneNode"),g=Cp(f,"remove"),m=Cp(f,"nextSibling"),_=Cp(f,"childNodes"),v=Cp(f,"parentNode"),y=Cp(f,"shadowRoot"),b=Cp(f,"attributes"),E=s&&s.prototype?Cp(s.prototype,"nodeType"):null,S=s&&s.prototype?Cp(s.prototype,"nodeName"):null;if(typeof a=="function"){const Vr=r.createElement("template");Vr.content&&Vr.content.ownerDocument&&(r=Vr.content.ownerDocument)}let T,C="",x=0;const A=function(Ze){if(x>0)throw cS('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');x++;try{return T.createHTML(Ze)}finally{x--}},R=r,I=R.implementation,L=R.createNodeIterator,F=R.createDocumentFragment,O=R.getElementsByTagName,D=n.importNode;let M=zCe();e.isSupported=typeof h7e=="function"&&typeof v=="function"&&I&&I.createHTMLDocument!==void 0;const P=ssr,N=osr,$=lsr,U=csr,B=usr,V=dsr,z=hsr,G=psr;let Y=GCe,W=null;const Q=Si({},[...FCe,...uK,...dK,...hK,...BCe]);let ie=null;const Z=Si({},[...UCe,...fK,...$Ce,...bL]);let re=Object.seal(zS(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}})),K=null,j=null;const se=Object.seal(zS(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let le=!0,_e=!0,ye=!1,Ue=!0,Se=!1,be=!0,ke=!1,Ae=!1,tt=!1,Oe=!1,je=!1,ct=!1,Fe=!0,Xe=!1;const et="user-content-";let Ie=!0,we=!1,ce={},Te=null;const fe=Si({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const me=Si({},["audio","video","img","source","image","track"]);let Ye=null;const qe=Si({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lt="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let Je=He,ht=!1,rt=null;const $e=Si({},[lt,it,He],cK);let xe=Si({},["mi","mo","mn","ms","mtext"]),pt=Si({},["annotation-xml"]);const Ve=Si({},["title","style","font","a","script"]);let Ut=null;const kt=["application/xhtml+xml","text/html"],gt="text/html";let Ct=null,mt=null;const qt=r.createElement("form"),De=function(Ze){return Ze instanceof RegExp||Ze instanceof Function},pr=function(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===Ze)return;(!Ze||typeof Ze!="object")&&(Ze={}),Ze=yc(Ze),Ut=kt.indexOf(Ze.PARSER_MEDIA_TYPE)===-1?gt:Ze.PARSER_MEDIA_TYPE,Ct=Ut==="application/xhtml+xml"?cK:TI,W=ao(Ze,"ALLOWED_TAGS")&&Hc(Ze.ALLOWED_TAGS)?Si({},Ze.ALLOWED_TAGS,Ct):Q,ie=ao(Ze,"ALLOWED_ATTR")&&Hc(Ze.ALLOWED_ATTR)?Si({},Ze.ALLOWED_ATTR,Ct):Z,rt=ao(Ze,"ALLOWED_NAMESPACES")&&Hc(Ze.ALLOWED_NAMESPACES)?Si({},Ze.ALLOWED_NAMESPACES,cK):$e,Ye=ao(Ze,"ADD_URI_SAFE_ATTR")&&Hc(Ze.ADD_URI_SAFE_ATTR)?Si(yc(qe),Ze.ADD_URI_SAFE_ATTR,Ct):qe,Be=ao(Ze,"ADD_DATA_URI_TAGS")&&Hc(Ze.ADD_DATA_URI_TAGS)?Si(yc(me),Ze.ADD_DATA_URI_TAGS,Ct):me,Te=ao(Ze,"FORBID_CONTENTS")&&Hc(Ze.FORBID_CONTENTS)?Si({},Ze.FORBID_CONTENTS,Ct):fe,K=ao(Ze,"FORBID_TAGS")&&Hc(Ze.FORBID_TAGS)?Si({},Ze.FORBID_TAGS,Ct):yc({}),j=ao(Ze,"FORBID_ATTR")&&Hc(Ze.FORBID_ATTR)?Si({},Ze.FORBID_ATTR,Ct):yc({}),ce=ao(Ze,"USE_PROFILES")?Ze.USE_PROFILES&&typeof Ze.USE_PROFILES=="object"?yc(Ze.USE_PROFILES):Ze.USE_PROFILES:!1,le=Ze.ALLOW_ARIA_ATTR!==!1,_e=Ze.ALLOW_DATA_ATTR!==!1,ye=Ze.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=Ze.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=Ze.SAFE_FOR_TEMPLATES||!1,be=Ze.SAFE_FOR_XML!==!1,ke=Ze.WHOLE_DOCUMENT||!1,Oe=Ze.RETURN_DOM||!1,je=Ze.RETURN_DOM_FRAGMENT||!1,ct=Ze.RETURN_TRUSTED_TYPE||!1,tt=Ze.FORCE_BODY||!1,Fe=Ze.SANITIZE_DOM!==!1,Xe=Ze.SANITIZE_NAMED_PROPS||!1,Ie=Ze.KEEP_CONTENT!==!1,we=Ze.IN_PLACE||!1,Y=nsr(Ze.ALLOWED_URI_REGEXP)?Ze.ALLOWED_URI_REGEXP:GCe,Je=typeof Ze.NAMESPACE=="string"?Ze.NAMESPACE:He,xe=ao(Ze,"MATHML_TEXT_INTEGRATION_POINTS")&&Ze.MATHML_TEXT_INTEGRATION_POINTS&&typeof Ze.MATHML_TEXT_INTEGRATION_POINTS=="object"?yc(Ze.MATHML_TEXT_INTEGRATION_POINTS):Si({},["mi","mo","mn","ms","mtext"]),pt=ao(Ze,"HTML_INTEGRATION_POINTS")&&Ze.HTML_INTEGRATION_POINTS&&typeof Ze.HTML_INTEGRATION_POINTS=="object"?yc(Ze.HTML_INTEGRATION_POINTS):Si({},["annotation-xml"]);const Ot=ao(Ze,"CUSTOM_ELEMENT_HANDLING")&&Ze.CUSTOM_ELEMENT_HANDLING&&typeof Ze.CUSTOM_ELEMENT_HANDLING=="object"?yc(Ze.CUSTOM_ELEMENT_HANDLING):zS(null);if(re=zS(null),ao(Ot,"tagNameCheck")&&De(Ot.tagNameCheck)&&(re.tagNameCheck=Ot.tagNameCheck),ao(Ot,"attributeNameCheck")&&De(Ot.attributeNameCheck)&&(re.attributeNameCheck=Ot.attributeNameCheck),ao(Ot,"allowCustomizedBuiltInElements")&&typeof Ot.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=Ot.allowCustomizedBuiltInElements),Se&&(_e=!1),je&&(Oe=!0),ce&&(W=Si({},BCe),ie=zS(null),ce.html===!0&&(Si(W,FCe),Si(ie,UCe)),ce.svg===!0&&(Si(W,uK),Si(ie,fK),Si(ie,bL)),ce.svgFilters===!0&&(Si(W,dK),Si(ie,fK),Si(ie,bL)),ce.mathMl===!0&&(Si(W,hK),Si(ie,$Ce),Si(ie,bL))),se.tagCheck=null,se.attributeCheck=null,ao(Ze,"ADD_TAGS")&&(typeof Ze.ADD_TAGS=="function"?se.tagCheck=Ze.ADD_TAGS:Hc(Ze.ADD_TAGS)&&(W===Q&&(W=yc(W)),Si(W,Ze.ADD_TAGS,Ct))),ao(Ze,"ADD_ATTR")&&(typeof Ze.ADD_ATTR=="function"?se.attributeCheck=Ze.ADD_ATTR:Hc(Ze.ADD_ATTR)&&(ie===Z&&(ie=yc(ie)),Si(ie,Ze.ADD_ATTR,Ct))),ao(Ze,"ADD_URI_SAFE_ATTR")&&Hc(Ze.ADD_URI_SAFE_ATTR)&&Si(Ye,Ze.ADD_URI_SAFE_ATTR,Ct),ao(Ze,"FORBID_CONTENTS")&&Hc(Ze.FORBID_CONTENTS)&&(Te===fe&&(Te=yc(Te)),Si(Te,Ze.FORBID_CONTENTS,Ct)),ao(Ze,"ADD_FORBID_CONTENTS")&&Hc(Ze.ADD_FORBID_CONTENTS)&&(Te===fe&&(Te=yc(Te)),Si(Te,Ze.ADD_FORBID_CONTENTS,Ct)),Ie&&(W["#text"]=!0),ke&&Si(W,["html","head","body"]),W.table&&(Si(W,["tbody"]),delete K.tbody),Ze.TRUSTED_TYPES_POLICY){if(typeof Ze.TRUSTED_TYPES_POLICY.createHTML!="function")throw cS('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ze.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cS('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Mt=T;T=Ze.TRUSTED_TYPES_POLICY;try{C=A("")}catch(Yt){throw T=Mt,Yt}}else T===void 0&&Ze.TRUSTED_TYPES_POLICY!==null&&(T=msr(h,i)),T&&typeof C=="string"&&(C=A(""));(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&W===Q&&(W=yc(W)),M.uponSanitizeAttribute.length>0&&ie===Z&&(ie=yc(ie)),vu&&vu(Ze),mt=Ze},or=Si({},[...uK,...dK,...isr]),ir=Si({},[...hK,...asr]),gr=function(Ze){let Ot=v(Ze);(!Ot||!Ot.tagName)&&(Ot={namespaceURI:Je,tagName:"template"});const Mt=TI(Ze.tagName),Yt=TI(Ot.tagName);return rt[Ze.namespaceURI]?Ze.namespaceURI===it?Ot.namespaceURI===He?Mt==="svg":Ot.namespaceURI===lt?Mt==="svg"&&(Yt==="annotation-xml"||xe[Yt]):!!or[Mt]:Ze.namespaceURI===lt?Ot.namespaceURI===He?Mt==="math":Ot.namespaceURI===it?Mt==="math"&&pt[Yt]:!!ir[Mt]:Ze.namespaceURI===He?Ot.namespaceURI===it&&!pt[Yt]||Ot.namespaceURI===lt&&!xe[Yt]?!1:!ir[Mt]&&(Ve[Mt]||!or[Mt]):!!(Ut==="application/xhtml+xml"&&rt[Ze.namespaceURI]):!1},dn=function(Ze){oS(e.removed,{element:Ze});try{v(Ze).removeChild(Ze)}catch{g(Ze)}},st=function(Ze,Ot){try{oS(e.removed,{attribute:Ot.getAttributeNode(Ze),from:Ot})}catch{oS(e.removed,{attribute:null,from:Ot})}if(Ot.removeAttribute(Ze),Ze==="is")if(Oe||je)try{dn(Ot)}catch{}else try{Ot.setAttribute(Ze,"")}catch{}},jt=function(Ze){let Ot=null,Mt=null;if(tt)Ze="<remove></remove>"+Ze;else{const Ht=DCe(Ze,/^[\r\n\t ]+/);Mt=Ht&&Ht[0]}Ut==="application/xhtml+xml"&&Je===He&&(Ze='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ze+"</body></html>");const Yt=T?A(Ze):Ze;if(Je===He)try{Ot=new d().parseFromString(Yt,Ut)}catch{}if(!Ot||!Ot.documentElement){Ot=I.createDocument(Je,"template",null);try{Ot.documentElement.innerHTML=ht?C:Yt}catch{}}const er=Ot.body||Ot.documentElement;return Ze&&Mt&&er.insertBefore(r.createTextNode(Mt),er.childNodes[0]||null),Je===He?O.call(Ot,ke?"html":"body")[0]:ke?Ot.documentElement:er},nr=function(Ze){return L.call(Ze.ownerDocument||Ze,Ze,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},vr=function(Ze){var Ot,Mt;Ze.normalize();const Yt=L.call(Ze.ownerDocument||Ze,Ze,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let er=Yt.nextNode();for(;er;){let Hr=er.data;xv([P,N,$],ot=>{Hr=lS(Hr,ot," ")}),er.data=Hr,er=Yt.nextNode()}const Ht=(Ot=(Mt=Ze.querySelectorAll)===null||Mt===void 0?void 0:Mt.call(Ze,"template"))!==null&&Ot!==void 0?Ot:[];xv(Array.from(Ht),Hr=>{yn(Hr.content)&&vr(Hr.content)})},Sr=function(Ze){const Ot=S?S(Ze):null;return typeof Ot!="string"||Ct(Ot)!=="form"?!1:typeof Ze.nodeName!="string"||typeof Ze.textContent!="string"||typeof Ze.removeChild!="function"||Ze.attributes!==b(Ze)||typeof Ze.removeAttribute!="function"||typeof Ze.setAttribute!="function"||typeof Ze.namespaceURI!="string"||typeof Ze.insertBefore!="function"||typeof Ze.hasChildNodes!="function"||Ze.nodeType!==E(Ze)||Ze.childNodes!==_(Ze)},yn=function(Ze){if(!E||typeof Ze!="object"||Ze===null)return!1;try{return E(Ze)===vp.documentFragment}catch{return!1}},ln=function(Ze){if(!E||typeof Ze!="object"||Ze===null)return!1;try{return typeof E(Ze)=="number"}catch{return!1}};function xn(Vr,Ze,Ot){xv(Vr,Mt=>{Mt.call(e,Ze,Ot,mt)})}const nn=function(Ze){let Ot=null;if(xn(M.beforeSanitizeElements,Ze,null),Sr(Ze))return dn(Ze),!0;const Mt=Ct(S?S(Ze):Ze.nodeName);if(xn(M.uponSanitizeElement,Ze,{tagName:Mt,allowedTags:W}),be&&Ze.hasChildNodes()&&!ln(Ze.firstElementChild)&&Pl(/<[/\w!]/g,Ze.innerHTML)&&Pl(/<[/\w!]/g,Ze.textContent)||be&&Ze.namespaceURI===He&&Mt==="style"&&ln(Ze.firstElementChild)||Ze.nodeType===vp.progressingInstruction||be&&Ze.nodeType===vp.comment&&Pl(/<[/\w]/g,Ze.data))return dn(Ze),!0;if(K[Mt]||!(se.tagCheck instanceof Function&&se.tagCheck(Mt))&&!W[Mt]){if(!K[Mt]&&Jn(Mt)&&(re.tagNameCheck instanceof RegExp&&Pl(re.tagNameCheck,Mt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Mt)))return!1;if(Ie&&!Te[Mt]){const er=v(Ze),Ht=_(Ze);if(Ht&&er){const Hr=Ht.length;for(let ot=Hr-1;ot>=0;--ot){const Li=p(Ht[ot],!0);er.insertBefore(Li,m(Ze))}}}return dn(Ze),!0}return(E?E(Ze):Ze.nodeType)===vp.element&&!gr(Ze)||(Mt==="noscript"||Mt==="noembed"||Mt==="noframes")&&Pl(/<\/no(script|embed|frames)/i,Ze.innerHTML)?(dn(Ze),!0):(Se&&Ze.nodeType===vp.text&&(Ot=Ze.textContent,xv([P,N,$],er=>{Ot=lS(Ot,er," ")}),Ze.textContent!==Ot&&(oS(e.removed,{element:Ze.cloneNode()}),Ze.textContent=Ot)),xn(M.afterSanitizeElements,Ze,null),!1)},Zr=function(Ze,Ot,Mt){if(j[Ot]||Fe&&(Ot==="id"||Ot==="name")&&(Mt in r||Mt in qt))return!1;const Yt=ie[Ot]||se.attributeCheck instanceof Function&&se.attributeCheck(Ot,Ze);if(!(_e&&!j[Ot]&&Pl(U,Ot))){if(!(le&&Pl(B,Ot))){if(!Yt||j[Ot]){if(!(Jn(Ze)&&(re.tagNameCheck instanceof RegExp&&Pl(re.tagNameCheck,Ze)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Ze))&&(re.attributeNameCheck instanceof RegExp&&Pl(re.attributeNameCheck,Ot)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(Ot,Ze))||Ot==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Pl(re.tagNameCheck,Mt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Mt))))return!1}else if(!Ye[Ot]){if(!Pl(Y,lS(Mt,z,""))){if(!((Ot==="src"||Ot==="xlink:href"||Ot==="href")&&Ze!=="script"&&MCe(Mt,"data:")===0&&Be[Ze])){if(!(ye&&!Pl(V,lS(Mt,z,"")))){if(Mt)return!1}}}}}}return!0},Jr=Si({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Jn=function(Ze){return!Jr[TI(Ze)]&&Pl(G,Ze)},_a=function(Ze){xn(M.beforeSanitizeAttributes,Ze,null);const Ot=Ze.attributes;if(!Ot||Sr(Ze))return;const Mt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0};let Yt=Ot.length;for(;Yt--;){const er=Ot[Yt],Ht=er.name,Hr=er.namespaceURI,ot=er.value,Li=Ct(Ht),ut=ot;let zn=Ht==="value"?ut:Qar(ut);if(Mt.attrName=Li,Mt.attrValue=zn,Mt.keepAttr=!0,Mt.forceKeepAttr=void 0,xn(M.uponSanitizeAttribute,Ze,Mt),zn=Mt.attrValue,Xe&&(Li==="id"||Li==="name")&&MCe(zn,et)!==0&&(st(Ht,Ze),zn=et+zn),be&&Pl(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,zn)){st(Ht,Ze);continue}if(Li==="attributename"&&DCe(zn,"href")){st(Ht,Ze);continue}if(Mt.forceKeepAttr)continue;if(!Mt.keepAttr){st(Ht,Ze);continue}if(!Ue&&Pl(/\/>/i,zn)){st(Ht,Ze);continue}Se&&xv([P,N,$],hc=>{zn=lS(zn,hc," ")});const dc=Ct(Ze.nodeName);if(!Zr(dc,Li,zn)){st(Ht,Ze);continue}if(T&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Hr)switch(h.getAttributeType(dc,Li)){case"TrustedHTML":{zn=A(zn);break}case"TrustedScriptURL":{zn=T.createScriptURL(zn);break}}if(zn!==ut)try{Hr?Ze.setAttributeNS(Hr,Ht,zn):Ze.setAttribute(Ht,zn),Sr(Ze)?dn(Ze):kCe(e.removed)}catch{st(Ht,Ze)}}xn(M.afterSanitizeAttributes,Ze,null)},si=function(Ze){let Ot=null;const Mt=nr(Ze);for(xn(M.beforeSanitizeShadowDOM,Ze,null);Ot=Mt.nextNode();)if(xn(M.uponSanitizeShadowNode,Ot,null),nn(Ot),_a(Ot),yn(Ot.content)&&si(Ot.content),(E?E(Ot):Ot.nodeType)===vp.element){const er=y?y(Ot):Ot.shadowRoot;yn(er)&&(Ta(er),si(er))}xn(M.afterSanitizeShadowDOM,Ze,null)},Ta=function(Ze){const Ot=E?E(Ze):Ze.nodeType;if(Ot===vp.element){const er=y?y(Ze):Ze.shadowRoot;yn(er)&&(Ta(er),si(er))}const Mt=_?_(Ze):Ze.childNodes;if(!Mt)return;const Yt=[];xv(Mt,er=>{oS(Yt,er)});for(const er of Yt)Ta(er);if(Ot===vp.element){const er=S?S(Ze):null;if(typeof er=="string"&&Ct(er)==="template"){const Ht=Ze.content;yn(Ht)&&Ta(Ht)}}};return e.sanitize=function(Vr){let Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=null,Mt=null,Yt=null,er=null;if(ht=!Vr,ht&&(Vr="<!-->"),typeof Vr!="string"&&!ln(Vr)&&(Vr=rsr(Vr),typeof Vr!="string"))throw cS("dirty is not a string, aborting");if(!e.isSupported)return Vr;if(Ae||pr(Ze),e.removed=[],typeof Vr=="string"&&(we=!1),we){const ot=S?S(Vr):Vr.nodeName;if(typeof ot=="string"){const Li=Ct(ot);if(!W[Li]||K[Li])throw cS("root node is forbidden and cannot be sanitized in-place")}if(Sr(Vr))throw cS("root node is clobbered and cannot be sanitized in-place");Ta(Vr)}else if(ln(Vr))Ot=jt("<!---->"),Mt=Ot.ownerDocument.importNode(Vr,!0),Mt.nodeType===vp.element&&Mt.nodeName==="BODY"||Mt.nodeName==="HTML"?Ot=Mt:Ot.appendChild(Mt),Ta(Mt);else{if(!Oe&&!Se&&!ke&&Vr.indexOf("<")===-1)return T&&ct?A(Vr):Vr;if(Ot=jt(Vr),!Ot)return Oe?null:ct?C:""}Ot&&tt&&dn(Ot.firstChild);const Ht=nr(we?Vr:Ot);for(;Yt=Ht.nextNode();)nn(Yt),_a(Yt),yn(Yt.content)&&si(Yt.content);if(we)return Se&&vr(Vr),Vr;if(Oe){if(Se&&vr(Ot),je)for(er=F.call(Ot.ownerDocument);Ot.firstChild;)er.appendChild(Ot.firstChild);else er=Ot;return(ie.shadowroot||ie.shadowrootmode)&&(er=D.call(n,er,!0)),er}let Hr=ke?Ot.outerHTML:Ot.innerHTML;return ke&&W["!doctype"]&&Ot.ownerDocument&&Ot.ownerDocument.doctype&&Ot.ownerDocument.doctype.name&&Pl(fsr,Ot.ownerDocument.doctype.name)&&(Hr="<!DOCTYPE "+Ot.ownerDocument.doctype.name+`>
`+Hr),Se&&xv([P,N,$],ot=>{Hr=lS(Hr,ot," ")}),T&&ct?A(Hr):Hr},e.setConfig=function(){let Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pr(Vr),Ae=!0},e.clearConfig=function(){mt=null,Ae=!1},e.isValidAttribute=function(Vr,Ze,Ot){mt||pr({});const Mt=Ct(Vr),Yt=Ct(Ze);return Zr(Mt,Yt,Ot)},e.addHook=function(Vr,Ze){typeof Ze=="function"&&oS(M[Vr],Ze)},e.removeHook=function(Vr,Ze){if(Ze!==void 0){const Ot=jar(M[Vr],Ze);return Ot===-1?void 0:Xar(M[Vr],Ot,1)[0]}return kCe(M[Vr])},e.removeHooks=function(Vr){M[Vr]=[]},e.removeAllHooks=function(){M=zCe()},e}var g1=p7e(),g7e=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,gN=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,_sr=/\s*%%.*\n/gm,gC,m7e=(gC=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},k(gC,"UnknownDiagramError"),gC),Ob={},tce=k(function(t,e){t=t.replace(g7e,"").replace(gN,"").replace(_sr,`
`);for(const[r,{detector:n}]of Object.entries(Ob))if(n(t,e))return r;throw new m7e(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),qJ=k((...t)=>{for(const{id:e,detector:r,loader:n}of t)_7e(e,r,n)},"registerLazyLoadedDiagrams"),_7e=k((t,e,r)=>{Ob[t]&&Pe.warn(`Detector with key ${t} already exists. Overwriting.`),Ob[t]={detector:e,loader:r},Pe.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),vsr=k(t=>Ob[t].loader,"getDiagramLoader"),VJ=k((t,e,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>VJ(t,a,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&e[a]!==null&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=VJ(t[a],e[a],{depth:r-1,clobber:n})):(n||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),Ro=VJ,Og="#ffffff",Ig="#f2f2f2",ni=k((t,e)=>e?Ge(t,{s:-40,l:10}):Ge(t,{s:-40,l:-10}),"mkBorder"),mC,ysr=(mC=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Jt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Zt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Jt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Jt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Zt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Zt(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ge(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ge(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ge(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ge(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ge(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ge(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ge(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ge(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ge(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Jt(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Jt(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||zt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Zt(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||Jt(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ge(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ge(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ge(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ge(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ge(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ge(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ge(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??Ge(this.primaryColor,{l:-30}),this.venn2=this.venn2??Ge(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Ge(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??Ge(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Ge(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Ge(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Ge(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Ge(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(mC,"Theme"),mC),bsr=k(t=>{const e=new ysr;return e.calculate(t),e},"getThemeVariables"),_C,Esr=(_C=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Zt(this.primaryColor,16),this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.background),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Zt(zt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Pf(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=Jt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Jt(this.sectionBkgColor,10),this.taskBorderColor=Pf(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Pf(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Zt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Jt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=Zt(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Zt(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Zt(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=zt(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ge(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ge(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ge(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ge(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ge(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ge(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ge(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ge(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ge(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||zt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||Zt(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Ge(this.mainBkg,{h:30,s:-30,l:-(-10+e*4)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Ge(this.mainBkg,{h:30,s:-30,l:-(-7+e*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let e=0;e<8;e++)this["venn"+(e+1)]=this["venn"+(e+1)]??Zt(this["cScale"+e],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Zt(this.secondaryColor,20),this.git1=Zt(this.pie2||this.secondaryColor,20),this.git2=Zt(this.pie3||this.tertiaryColor,20),this.git3=Zt(this.pie4||Ge(this.primaryColor,{h:-30}),20),this.git4=Zt(this.pie5||Ge(this.primaryColor,{h:-60}),20),this.git5=Zt(this.pie6||Ge(this.primaryColor,{h:-90}),10),this.git6=Zt(this.pie7||Ge(this.primaryColor,{h:60}),10),this.git7=Zt(this.pie8||Ge(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||Zt("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||Zt("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||Zt("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||Zt("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||Zt(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||Zt(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Zt(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Zt(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(_C,"Theme"),_C),Ssr=k(t=>{const e=new Esr;return e.calculate(t),e},"getThemeVariables"),vC,Tsr=(vC=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ge(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Pf(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ge(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ge(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ge(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ge(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ge(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ge(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ge(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ge(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ge(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Jt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Jt(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Jt(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||Jt(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||Ge(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Ge(this.mainBkg,{h:30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Ge(this.mainBkg,{h:30,l:-(7+e*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||zt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||zt(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Zt(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Zt(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Ge(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Ge(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ge(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??Ge(this.primaryColor,{l:-30}),this.venn2=this.venn2??Ge(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Ge(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??Ge(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Ge(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Ge(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Ge(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Ge(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||Jt(zt(this.git0),25),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(vC,"Theme"),vC),SR=k(t=>{const e=new Tsr;return e.calculate(t),e},"getThemeVariables"),yC,Csr=(yC=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Zt("#cde498",10),this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.primaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=Jt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ge(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ge(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ge(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ge(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ge(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ge(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ge(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ge(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ge(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Jt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Jt(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Jt(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||Jt(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||Ge(this["cScale"+e],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Ge(this.mainBkg,{h:30,s:-30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Ge(this.mainBkg,{h:30,s:-30,l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Zt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Zt(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ge(this.primaryColor,{l:-30}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ge(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??Ge(this.primaryColor,{l:-30}),this.venn2=this.venn2??Ge(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Ge(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??Ge(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Ge(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Ge(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Ge(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Ge(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(yC,"Theme"),yC),wsr=k(t=>{const e=new Csr;return e.calculate(t),e},"getThemeVariables"),bC,xsr=(bC=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Zt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||Zt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=Zt(this.contrast,55),this.border2=this.contrast,this.actorBorder=Zt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||zt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||Zt(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||Jt(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Ge(this.mainBkg,{l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Ge(this.mainBkg,{l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Zt(this.contrast,30),this.sectionBkgColor2=Zt(this.contrast,30),this.taskBorderColor=Jt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Zt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Jt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let e=0;e<8;e++)this["venn"+(e+1)]=this["venn"+(e+1)]??this["cScale"+e];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Jt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Ge(this.primaryColor,{h:-30}),this.git4=this.pie5||Ge(this.primaryColor,{h:-60}),this.git5=this.pie6||Ge(this.primaryColor,{h:-90}),this.git6=this.pie7||Ge(this.primaryColor,{h:60}),this.git7=this.pie8||Ge(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(bC,"Theme"),bC),Asr=k(t=>{const e=new xsr;return e.calculate(t),e},"getThemeVariables"),EC,Rsr=(EC=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Jt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=Ge(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Zt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||Ge(e,{h:30}),this.cScale4=this.cScale4||Ge(e,{h:60}),this.cScale5=this.cScale5||Ge(e,{h:90}),this.cScale6=this.cScale6||Ge(e,{h:120}),this.cScale7=this.cScale7||Ge(e,{h:150}),this.cScale8=this.cScale8||Ge(e,{h:210,l:150}),this.cScale9=this.cScale9||Ge(e,{h:270}),this.cScale10=this.cScale10||Ge(e,{h:300}),this.cScale11=this.cScale11||Ge(e,{h:330}),this.darkMode)for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=Jt(this["cScale"+a],75);else for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=Jt(this["cScale"+a],25);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleInv"+a]=this["cScaleInv"+a]||zt(this["cScale"+a]);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this.darkMode?this["cScalePeer"+a]=this["cScalePeer"+a]||Zt(this["cScale"+a],10):this["cScalePeer"+a]=this["cScalePeer"+a]||Jt(this["cScale"+a],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleLabel"+a]=this["cScaleLabel"+a]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let a=0;a<5;a++)this["surface"+a]=this["surface"+a]||Ge(this.mainBkg,{h:180,s:-15,l:i*(5+a*3)}),this["surfacePeer"+a]=this["surfacePeer"+a]||Ge(this.mainBkg,{h:180,s:-15,l:i*(8+a*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||Ge(e,{h:64}),this.fillType3=this.fillType3||Ge(r,{h:64}),this.fillType4=this.fillType4||Ge(e,{h:-64}),this.fillType5=this.fillType5||Ge(r,{h:-64}),this.fillType6=this.fillType6||Ge(e,{h:128}),this.fillType7=this.fillType7||Ge(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||Ge(e,{l:-10}),this.pie5=this.pie5||Ge(r,{l:-10}),this.pie6=this.pie6||Ge(n,{l:-10}),this.pie7=this.pie7||Ge(e,{h:60,l:-10}),this.pie8=this.pie8||Ge(e,{h:-60,l:-10}),this.pie9=this.pie9||Ge(e,{h:120,l:0}),this.pie10=this.pie10||Ge(e,{h:60,l:-20}),this.pie11=this.pie11||Ge(e,{h:-60,l:-20}),this.pie12=this.pie12||Ge(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||Ge(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||Ge(e,{h:-30}),this.git4=this.git4||Ge(e,{h:-60}),this.git5=this.git5||Ge(e,{h:-90}),this.git6=this.git6||Ge(e,{h:60}),this.git7=this.git7||Ge(e,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(EC,"Theme"),EC),Osr=k(t=>{const e=new Rsr;return e.calculate(t),e},"getThemeVariables"),SC,Isr=(SC=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Zt(this.primaryColor,16),this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.background),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Zt(zt("#323D47"),10),this.border1="#ccc",this.border2=Pf(255,255,255,.25),this.arrowheadColor=zt(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Jt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Zt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ge(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ge(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ge(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ge(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ge(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ge(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ge(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ge(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ge(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Jt(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Jt(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||zt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Zt(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||Jt(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ge(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ge(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ge(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ge(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ge(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ge(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ge(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(SC,"Theme"),SC),Nsr=k(t=>{const e=new Isr;return e.calculate(t),e},"getThemeVariables"),TC,ksr=(TC=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ni("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Jt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=Ge(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Zt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=this.mainBkg;if(this.darkMode)for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=Jt(this["cScale"+a],75);else for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=Jt(this["cScale"+a],25);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleInv"+a]=this["cScaleInv"+a]||zt(this["cScale"+a]);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this.darkMode?this["cScalePeer"+a]=this["cScalePeer"+a]||Zt(this["cScale"+a],10):this["cScalePeer"+a]=this["cScalePeer"+a]||Jt(this["cScale"+a],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleLabel"+a]=this["cScaleLabel"+a]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let a=0;a<5;a++)this["surface"+a]=this["surface"+a]||Ge(this.mainBkg,{h:180,s:-15,l:i*(5+a*3)}),this["surfacePeer"+a]=this["surfacePeer"+a]||Ge(this.mainBkg,{h:180,s:-15,l:i*(8+a*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||Ge(e,{h:64}),this.fillType3=this.fillType3||Ge(r,{h:64}),this.fillType4=this.fillType4||Ge(e,{h:-64}),this.fillType5=this.fillType5||Ge(r,{h:-64}),this.fillType6=this.fillType6||Ge(e,{h:128}),this.fillType7=this.fillType7||Ge(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||Ge(e,{l:-10}),this.pie5=this.pie5||Ge(r,{l:-10}),this.pie6=this.pie6||Ge(n,{l:-10}),this.pie7=this.pie7||Ge(e,{h:60,l:-10}),this.pie8=this.pie8||Ge(e,{h:-60,l:-10}),this.pie9=this.pie9||Ge(e,{h:120,l:0}),this.pie10=this.pie10||Ge(e,{h:60,l:-20}),this.pie11=this.pie11||Ge(e,{h:-60,l:-20}),this.pie12=this.pie12||Ge(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||Ge(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||Ge(e,{h:-30}),this.git4=this.git4||Ge(e,{h:-60}),this.git5=this.git5||Ge(e,{h:-90}),this.git6=this.git6||Ge(e,{h:60}),this.git7=this.git7||Ge(e,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(TC,"Theme"),TC),Dsr=k(t=>{const e=new ksr;return e.calculate(t),e},"getThemeVariables"),CC,Msr=(CC=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Zt(this.primaryColor,16),this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.background),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Zt(zt("#323D47"),10),this.border1="#ccc",this.border2=Pf(255,255,255,.25),this.arrowheadColor=zt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Jt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Zt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ge(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ge(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ge(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ge(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ge(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ge(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ge(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ge(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ge(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Jt(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Jt(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||zt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Zt(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||Jt(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ge(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ge(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ge(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ge(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ge(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ge(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ge(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(CC,"Theme"),CC),Lsr=k(t=>{const e=new Msr;return e.calculate(t),e},"getThemeVariables"),wC,Psr=(wC=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ni(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Jt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=Ge(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Zt(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleInv"+a]=this["cScaleInv"+a]||zt(this["cScale"+a]);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this.darkMode?this["cScalePeer"+a]=this["cScalePeer"+a]||Zt(this["cScale"+a],10):this["cScalePeer"+a]=this["cScalePeer"+a]||Jt(this["cScale"+a],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleLabel"+a]=this["cScaleLabel"+a]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let a=0;a<5;a++)this["surface"+a]=this["surface"+a]||Ge(this.mainBkg,{h:180,s:-15,l:i*(5+a*3)}),this["surfacePeer"+a]=this["surfacePeer"+a]||Ge(this.mainBkg,{h:180,s:-15,l:i*(8+a*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||Ge(e,{h:64}),this.fillType3=this.fillType3||Ge(r,{h:64}),this.fillType4=this.fillType4||Ge(e,{h:-64}),this.fillType5=this.fillType5||Ge(r,{h:-64}),this.fillType6=this.fillType6||Ge(e,{h:128}),this.fillType7=this.fillType7||Ge(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||Ge(e,{l:-10}),this.pie5=this.pie5||Ge(r,{l:-10}),this.pie6=this.pie6||Ge(n,{l:-10}),this.pie7=this.pie7||Ge(e,{h:60,l:-10}),this.pie8=this.pie8||Ge(e,{h:-60,l:-10}),this.pie9=this.pie9||Ge(e,{h:120,l:0}),this.pie10=this.pie10||Ge(e,{h:60,l:-20}),this.pie11=this.pie11||Ge(e,{h:-60,l:-20}),this.pie12=this.pie12||Ge(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||Ge(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||Ge(e,{h:-30}),this.git4=this.git4||Ge(e,{h:-60}),this.git5=this.git5||Ge(e,{h:-90}),this.git6=this.git6||Ge(e,{h:60}),this.git7=this.git7||Ge(e,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(wC,"Theme"),wC),Fsr=k(t=>{const e=new Psr;return e.calculate(t),e},"getThemeVariables"),xC,Bsr=(xC=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Zt(this.primaryColor,16),this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.background),this.secondaryBorderColor=ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ni(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Zt(zt("#323D47"),10),this.border1="#ccc",this.border2=Pf(255,255,255,.25),this.arrowheadColor=zt(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ni(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ni(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ni(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ni(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Jt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Zt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||zt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Zt(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||Jt(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=Jt(this["cScale"+r],75);const e=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||Ge(this.mainBkg,{h:180,s:-15,l:e*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ge(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ge(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ge(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ge(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ge(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ge(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ge(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ge(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ge(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ge(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ge(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ge(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ge(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wu(this.quadrant1Fill)?Zt(this.quadrant1Fill):Jt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Jt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zt(this.git0,25),this.git1=Zt(this.git1,25),this.git2=Zt(this.git2,25),this.git3=Zt(this.git3,25),this.git4=Zt(this.git4,25),this.git5=Zt(this.git5,25),this.git6=Zt(this.git6,25),this.git7=Zt(this.git7,25)):(this.git0=Jt(this.git0,25),this.git1=Jt(this.git1,25),this.git2=Jt(this.git2,25),this.git3=Jt(this.git3,25),this.git4=Jt(this.git4,25),this.git5=Jt(this.git5,25),this.git6=Jt(this.git6,25),this.git7=Jt(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Og,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ig}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},k(xC,"Theme"),xC),Usr=k(t=>{const e=new Bsr;return e.calculate(t),e},"getThemeVariables"),Hm={base:{getThemeVariables:bsr},dark:{getThemeVariables:Ssr},default:{getThemeVariables:SR},forest:{getThemeVariables:wsr},neutral:{getThemeVariables:Asr},neo:{getThemeVariables:Osr},"neo-dark":{getThemeVariables:Nsr},redux:{getThemeVariables:Dsr},"redux-dark":{getThemeVariables:Lsr},"redux-color":{getThemeVariables:Fsr},"redux-dark-color":{getThemeVariables:Usr}},Gc={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},v7e={...Gc,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Hm.default.getThemeVariables(),sequence:{...Gc.sequence,messageFont:k(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:k(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:k(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Gc.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Gc.c4,useWidth:void 0,personFont:k(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Gc.flowchart,inheritDir:!1},external_personFont:k(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:k(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:k(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:k(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:k(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:k(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:k(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:k(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:k(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:k(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:k(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:k(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:k(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:k(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:k(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:k(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:k(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:k(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:k(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:k(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:k(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Gc.pie,useWidth:984},xyChart:{...Gc.xyChart,useWidth:void 0},requirement:{...Gc.requirement,useWidth:void 0},packet:{...Gc.packet},eventmodeling:{...Gc.eventmodeling},treeView:{...Gc.treeView,useWidth:void 0},radar:{...Gc.radar},ishikawa:{...Gc.ishikawa},sankey:{...Gc.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Gc.venn}},y7e=k((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...y7e(t[n],"")]:[...r,e+n],[]),"keyify"),$sr=new Set(y7e(v7e,"")),Gi=v7e,v7=k(t=>{if(Pe.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>v7(e));return}for(const e of Object.keys(t)){if(Pe.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!$sr.has(e)||t[e]==null){Pe.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){if(e==="nodeColors"){const n=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(const i of Object.keys(t[e]))(typeof t[e][i]!="string"||!n.test(t[e][i]))&&(Pe.debug("sanitize deleting invalid color:",i,t[e][i]),delete t[e][i])}else Pe.debug("sanitizing object",e),v7(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(Pe.debug("sanitizing css option",e),t[e]=b7e(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}Pe.debug("After sanitization",t)}},"sanitizeDirective"),b7e=k(t=>{let e=0,r=0;for(const n of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?e++:n==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),dA=Object.freeze(Gi),F0=k(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Yu=Ro({},dA),y7,Ib=[],mN=Ro({},dA),CU=k((t,e)=>{let r=Ro({},t),n={};for(const i of e)T7e(i),n=Ro(n,i);if(r=Ro(r,n),n.theme&&n.theme in Hm){const i=Ro({},y7),a=Ro(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in Hm&&(r.themeVariables=Hm[r.theme].getThemeVariables(a))}return mN=r,w7e(mN),mN},"updateCurrentConfig"),Gsr=k(t=>(Yu=Ro({},dA),Yu=Ro(Yu,t),t.theme&&Hm[t.theme]&&(Yu.themeVariables=Hm[t.theme].getThemeVariables(t.themeVariables)),CU(Yu,Ib),Yu),"setSiteConfig"),zsr=k(t=>{y7=Ro({},t)},"saveConfigFromInitialize"),qsr=k(t=>(Yu=Ro(Yu,t),CU(Yu,Ib),Yu),"updateSiteConfig"),E7e=k(()=>Ro({},Yu),"getSiteConfig"),S7e=k(t=>(w7e(t),Ro(mN,t),Ln()),"setConfig"),Ln=k(()=>Ro({},mN),"getConfig"),T7e=k(t=>{t&&(["secure",...Yu.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(Pe.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&T7e(t[e])}))},"sanitize"),Vsr=k(t=>{v7(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Ib.push(t),CU(Yu,Ib)},"addDirective"),b7=k((t=Yu)=>{Ib=[],CU(t,Ib)},"reset"),Hsr={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},qCe={},C7e=k(t=>{qCe[t]||(Pe.warn(Hsr[t]),qCe[t]=!0)},"issueWarning"),w7e=k(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&C7e("LAZY_LOAD_DEPRECATED")},"checkConfig"),Ysr=k(()=>{let t={};y7&&(t=Ro(t,y7));for(const e of Ib)t=Ro(t,e);return t},"getUserDefinedConfig"),Da=k(t=>(t.flowchart?.htmlLabels!=null&&C7e("FLOWCHART_HTML_LABELS_DEPRECATED"),F0(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),TR=/<br\s*\/?>/gi,Wsr=k(t=>t?R7e(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Ksr=(()=>{let t=!1;return()=>{t||(x7e(),t=!0)}})();function x7e(){const t="data-temp-href-target";g1.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),g1.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}k(x7e,"setupDompurifyHooks");var A7e=k(t=>(Ksr(),g1.sanitize(t)),"removeScript"),VCe=k((t,e)=>{if(Da(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=A7e(t):r!=="loose"&&(t=R7e(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=Zsr(t))}return t},"sanitizeMore"),ta=k((t,e)=>t&&(e.dompurifyConfig?t=g1.sanitize(VCe(t,e),e.dompurifyConfig).toString():t=g1.sanitize(VCe(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),jsr=k((t,e)=>typeof t=="string"?ta(t,e):t.flat().map(r=>ta(r,e)),"sanitizeTextOrArray"),Xsr=k(t=>TR.test(t),"hasBreaks"),Qsr=k(t=>t.split(TR),"splitBreaks"),Zsr=k(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),R7e=k(t=>t.replace(TR,"#br#"),"breakToPlaceholder"),wU=k(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Jsr=k(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),eor=k(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),v_=k(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n<e.length;n++){let i=e[n];if(i===","&&n>0&&n+1<e.length){const a=e[n-1],s=e[n+1];tor(a,s)&&(i=a+","+s,n++,r.pop())}r.push(ror(i))}return r.join("")},"parseGenericTypes"),HJ=k((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),tor=k((t,e)=>{const r=HJ(t,"~"),n=HJ(e,"~");return r===1&&n===1},"shouldCombineSets"),ror=k(t=>{const e=HJ(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),HCe=k(()=>window.MathMLElement!==void 0,"isMathMLSupported"),YJ=/\$\$(.*)\$\$/g,ko=k(t=>(t.match(YJ)?.length??0)>0,"hasKatex"),P5=k(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await xU(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),nor=k(async(t,e)=>{if(!ko(t))return t;if(!(HCe()||e.legacyMathML||e.forceLegacyMathML))return t.replace(YJ,"MathML is unsupported in this environment.");{const{default:r}=await Pn(async()=>{const{default:i}=await Promise.resolve().then(()=>Kzt);return{default:i}},void 0,import.meta.url),n=e.forceLegacyMathML||!HCe()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(TR).map(i=>ko(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(YJ,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),xU=k(async(t,e)=>ta(await nor(t,e),e),"renderKatexSanitized"),Cr={getRows:Wsr,sanitizeText:ta,sanitizeTextOrArray:jsr,hasBreaks:Xsr,splitBreaks:Qsr,lineBreakRegex:TR,removeScript:A7e,getUrl:wU,evaluate:F0,getMax:Jsr,getMin:eor},ior=k(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),aor=k(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),Xo=k(function(t,e,r,n){const i=aor(e,r,n);ior(t,i)},"configureSvgSize"),CR=k(function(t,e,r,n){const i=e.node().getBBox(),a=i.width,s=i.height;Pe.info(`SVG bounds: ${a}x${s}`,i);let o=0,l=0;Pe.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,Pe.info(`Calculated bounds: ${o}x${l}`),Xo(e,l,o,n);const u=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),$P={};function WJ(t){return[...t.cssRules].map(e=>e.cssText).join(`
`)}k(WJ,"cssStyleSheetToString");var sor=k((t,e,r,n)=>{let i="";return t in $P&&$P[t]?i=$P[t]({...r,svgId:n}):Pe.warn(`No theme found for ${t}`),` & {
    font-family: ${r.fontFamily};
    font-size: ${r.fontSize};
    fill: ${r.textColor}
  }
  @keyframes edge-animation-frame {
    from {
      stroke-dashoffset: 0;
    }
  }
  @keyframes dash {
    to {
      stroke-dashoffset: 0;
    }
  }
  & .edge-animation-slow {
    stroke-dasharray: 9,5 !important;
    stroke-dashoffset: 900;
    animation: dash 50s linear infinite;
    stroke-linecap: round;
  }
  & .edge-animation-fast {
    stroke-dasharray: 9,5 !important;
    stroke-dashoffset: 900;
    animation: dash 20s linear infinite;
    stroke-linecap: round;
  }
  /* Classes common for multiple diagrams */

  & .error-icon {
    fill: ${r.errorBkgColor};
  }
  & .error-text {
    fill: ${r.errorTextColor};
    stroke: ${r.errorTextColor};
  }

  & .edge-thickness-normal {
    stroke-width: ${r.strokeWidth??1}px;
  }
  & .edge-thickness-thick {
    stroke-width: 3.5px
  }
  & .edge-pattern-solid {
    stroke-dasharray: 0;
  }
  & .edge-thickness-invisible {
    stroke-width: 0;
    fill: none;
  }
  & .edge-pattern-dashed{
    stroke-dasharray: 3;
  }
  .edge-pattern-dotted {
    stroke-dasharray: 2;
  }

  & .marker {
    fill: ${r.lineColor};
    stroke: ${r.lineColor};
  }
  & .marker.cross {
    stroke: ${r.lineColor};
  }

  & svg {
    font-family: ${r.fontFamily};
    font-size: ${r.fontSize};
  }
   & p {
    margin: 0
   }

  ${i}
  .node .neo-node {
    stroke: ${r.nodeBorder};
  }

  [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
    stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
  }


  [data-look="neo"].node path {
    stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
    stroke-width: ${r.strokeWidth??1}px;
  }

  [data-look="neo"].node .outer-path {
    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
  }

  [data-look="neo"].node .neo-line path {
    stroke: ${r.nodeBorder};
    filter: none;
  }

  [data-look="neo"].node circle{
    stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
  }

  [data-look="neo"].node circle .state-start{
    fill: #000000;
  }

  [data-look="neo"].icon-shape .icon {
    fill: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
  }

    [data-look="neo"].icon-shape .icon-neo path {
    stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
  }

  ${e}
`},"getStyles"),oor=k((t,e)=>{e!==void 0&&($P[t]=e)},"addStylesForDiagram"),lor=sor,rce={};SU(rce,{clear:()=>ys,getAccDescription:()=>Us,getAccTitle:()=>Fs,getDiagramTitle:()=>bs,setAccDescription:()=>Bs,setAccTitle:()=>ms,setDiagramTitle:()=>ks});var nce="",ice="",ace="",sce=k(t=>ta(t,Ln()),"sanitizeText"),ys=k(()=>{nce="",ace="",ice=""},"clear"),ms=k(t=>{nce=sce(t).replace(/^\s+/g,"")},"setAccTitle"),Fs=k(()=>nce,"getAccTitle"),Bs=k(t=>{ace=sce(t).replace(/\n\s+/g,`
`)},"setAccDescription"),Us=k(()=>ace,"getAccDescription"),ks=k(t=>{ice=sce(t)},"setDiagramTitle"),bs=k(()=>ice,"getDiagramTitle"),YCe=Pe,cor=Zle,vt=Ln,KJ=S7e,O7e=dA,oce=k(t=>ta(t,vt()),"sanitizeText"),lce=CR,uor=k(()=>rce,"getCommonDb"),E7={},S7=k((t,e,r)=>{E7[t]&&YCe.warn(`Diagram with id ${t} already registered. Overwriting.`),E7[t]=e,r&&_7e(t,r),oor(t,e.styles),e.injectUtils?.(YCe,cor,vt,oce,lce,uor(),()=>{})},"registerDiagram"),jJ=k(t=>{if(t in E7)return E7[t];throw new dor(t)},"getDiagram"),AC,dor=(AC=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},k(AC,"DiagramNotFoundError"),AC);function GP(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hor(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cce(t){let e,r,n;t.length!==2?(e=GP,r=(o,l)=>GP(t(o),l),n=(o,l)=>t(o)-l):(e=t===GP||t===hor?t:por,r=t,n=t);function i(o,l,u=0,d=o.length){if(u<d){if(e(l,l)!==0)return d;do{const h=u+d>>>1;r(o[h],l)<0?u=h+1:d=h}while(u<d)}return u}function a(o,l,u=0,d=o.length){if(u<d){if(e(l,l)!==0)return d;do{const h=u+d>>>1;r(o[h],l)<=0?u=h+1:d=h}while(u<d)}return u}function s(o,l,u=0,d=o.length){const h=i(o,l,u,d-1);return h>u&&n(o[h-1],l)>-n(o[h],l)?h-1:h}return{left:i,center:s,right:a}}function por(){return 0}function gor(t){return t===null?NaN:+t}const mor=cce(GP),_or=mor.right;cce(gor).center;class WCe extends Map{constructor(e,r=bor){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(KCe(this,e))}has(e){return super.has(KCe(this,e))}set(e,r){return super.set(vor(this,e),r)}delete(e){return super.delete(yor(this,e))}}function KCe({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function vor({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function yor({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function bor(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Eor=Math.sqrt(50),Sor=Math.sqrt(10),Tor=Math.sqrt(2);function T7(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=Eor?10:a>=Sor?5:a>=Tor?2:1;let o,l,u;return i<0?(u=Math.pow(10,-i)/s,o=Math.round(t*u),l=Math.round(e*u),o/u<t&&++o,l/u>e&&--l,u=-u):(u=Math.pow(10,i)*s,o=Math.round(t/u),l=Math.round(e/u),o*u<t&&++o,l*u>e&&--l),l<o&&.5<=r&&r<2?T7(t,e,r*2):[o,l,u]}function Cor(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[i,a,s]=n?T7(e,t,r):T7(t,e,r);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let u=0;u<o;++u)l[u]=(a-u)/-s;else for(let u=0;u<o;++u)l[u]=(a-u)*s;else if(s<0)for(let u=0;u<o;++u)l[u]=(i+u)/-s;else for(let u=0;u<o;++u)l[u]=(i+u)*s;return l}function XJ(t,e,r){return e=+e,t=+t,r=+r,T7(t,e,r)[2]}function QJ(t,e,r){e=+e,t=+t,r=+r;const n=e<t,i=n?XJ(e,t,r):XJ(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function wor(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function xor(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function Aor(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n<i;)a[n]=t+n*r;return a}function Ror(t){return t}var zP=1,pK=2,ZJ=3,EL=4,jCe=1e-6;function Oor(t){return"translate("+t+",0)"}function Ior(t){return"translate(0,"+t+")"}function Nor(t){return e=>+t(e)}function kor(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Dor(){return!this.__axis}function I7e(t,e){var r=[],n=null,i=null,a=6,s=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===zP||t===EL?-1:1,d=t===EL||t===pK?"x":"y",h=t===zP||t===ZJ?Oor:Ior;function f(p){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),m=i??(e.tickFormat?e.tickFormat.apply(e,r):Ror),_=Math.max(a,0)+o,v=e.range(),y=+v[0]+l,b=+v[v.length-1]+l,E=(e.bandwidth?kor:Nor)(e.copy(),l),S=p.selection?p.selection():p,T=S.selectAll(".domain").data([null]),C=S.selectAll(".tick").data(g,e).order(),x=C.exit(),A=C.enter().append("g").attr("class","tick"),R=C.select("line"),I=C.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(A),R=R.merge(A.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),I=I.merge(A.append("text").attr("fill","currentColor").attr(d,u*_).attr("dy",t===zP?"0em":t===ZJ?"0.71em":"0.32em")),p!==S&&(T=T.transition(p),C=C.transition(p),R=R.transition(p),I=I.transition(p),x=x.transition(p).attr("opacity",jCe).attr("transform",function(L){return isFinite(L=E(L))?h(L+l):this.getAttribute("transform")}),A.attr("opacity",jCe).attr("transform",function(L){var F=this.parentNode.__axis;return h((F&&isFinite(F=F(L))?F:E(L))+l)})),x.remove(),T.attr("d",t===EL||t===pK?s?"M"+u*s+","+y+"H"+l+"V"+b+"H"+u*s:"M"+l+","+y+"V"+b:s?"M"+y+","+u*s+"V"+l+"H"+b+"V"+u*s:"M"+y+","+l+"H"+b),C.attr("opacity",1).attr("transform",function(L){return h(E(L)+l)}),R.attr(d+"2",u*a),I.attr(d,u*_).text(m),S.filter(Dor).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===pK?"start":t===EL?"end":"middle"),S.each(function(){this.__axis=E})}return f.scale=function(p){return arguments.length?(e=p,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),f):r.slice()},f.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),f):n&&n.slice()},f.tickFormat=function(p){return arguments.length?(i=p,f):i},f.tickSize=function(p){return arguments.length?(a=s=+p,f):a},f.tickSizeInner=function(p){return arguments.length?(a=+p,f):a},f.tickSizeOuter=function(p){return arguments.length?(s=+p,f):s},f.tickPadding=function(p){return arguments.length?(o=+p,f):o},f.offset=function(p){return arguments.length?(l=+p,f):l},f}function Mor(t){return I7e(zP,t)}function Lor(t){return I7e(ZJ,t)}var Por={value:()=>{}};function N7e(){for(var t=0,e=arguments.length,r={},n;t<e;++t){if(!(n=arguments[t]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new qP(r)}function qP(t){this._=t}function For(t,e){return t.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}qP.prototype=N7e.prototype={constructor:qP,on:function(t,e){var r=this._,n=For(t+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a<s;)if((i=(t=n[a]).type)&&(i=Bor(r[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<s;)if(i=(t=n[a]).type)r[i]=XCe(r[i],t.name,e);else if(e==null)for(i in r)r[i]=XCe(r[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new qP(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],n=0,i=a.length;n<i;++n)a[n].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};function Bor(t,e){for(var r=0,n=t.length,i;r<n;++r)if((i=t[r]).name===e)return i.value}function XCe(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=Por,t=t.slice(0,n).concat(t.slice(n+1));break}return r!=null&&t.push({name:e,value:r}),t}var JJ="http://www.w3.org/1999/xhtml";const QCe={svg:"http://www.w3.org/2000/svg",xhtml:JJ,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function AU(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),QCe.hasOwnProperty(e)?{space:QCe[e],local:t}:t}function Uor(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===JJ&&e.documentElement.namespaceURI===JJ?e.createElement(t):e.createElementNS(r,t)}}function $or(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function k7e(t){var e=AU(t);return(e.local?$or:Uor)(e)}function Gor(){}function uce(t){return t==null?Gor:function(){return this.querySelector(t)}}function zor(t){typeof t!="function"&&(t=uce(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=new Array(s),l,u,d=0;d<s;++d)(l=a[d])&&(u=t.call(l,l.__data__,d,a))&&("__data__"in l&&(u.__data__=l.__data__),o[d]=u);return new Vd(n,this._parents)}function qor(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Vor(){return[]}function D7e(t){return t==null?Vor:function(){return this.querySelectorAll(t)}}function Hor(t){return function(){return qor(t.apply(this,arguments))}}function Yor(t){typeof t=="function"?t=Hor(t):t=D7e(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a<r;++a)for(var s=e[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&(n.push(t.call(l,l.__data__,u,s)),i.push(l));return new Vd(n,i)}function M7e(t){return function(){return this.matches(t)}}function L7e(t){return function(e){return e.matches(t)}}var Wor=Array.prototype.find;function Kor(t){return function(){return Wor.call(this.children,t)}}function jor(){return this.firstElementChild}function Xor(t){return this.select(t==null?jor:Kor(typeof t=="function"?t:L7e(t)))}var Qor=Array.prototype.filter;function Zor(){return Array.from(this.children)}function Jor(t){return function(){return Qor.call(this.children,t)}}function elr(t){return this.selectAll(t==null?Zor:Jor(typeof t=="function"?t:L7e(t)))}function tlr(t){typeof t!="function"&&(t=M7e(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&t.call(l,l.__data__,u,a)&&o.push(l);return new Vd(n,this._parents)}function P7e(t){return new Array(t.length)}function rlr(){return new Vd(this._enter||this._groups.map(P7e),this._parents)}function C7(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}C7.prototype={constructor:C7,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function nlr(t){return function(){return t}}function ilr(t,e,r,n,i,a){for(var s=0,o,l=e.length,u=a.length;s<u;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new C7(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function alr(t,e,r,n,i,a,s){var o,l,u=new Map,d=e.length,h=a.length,f=new Array(d),p;for(o=0;o<d;++o)(l=e[o])&&(f[o]=p=s.call(l,l.__data__,o,e)+"",u.has(p)?i[o]=l:u.set(p,l));for(o=0;o<h;++o)p=s.call(t,a[o],o,a)+"",(l=u.get(p))?(n[o]=l,l.__data__=a[o],u.delete(p)):r[o]=new C7(t,a[o]);for(o=0;o<d;++o)(l=e[o])&&u.get(f[o])===l&&(i[o]=l)}function slr(t){return t.__data__}function olr(t,e){if(!arguments.length)return Array.from(this,slr);var r=e?alr:ilr,n=this._parents,i=this._groups;typeof t!="function"&&(t=nlr(t));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),u=0;u<a;++u){var d=n[u],h=i[u],f=h.length,p=llr(t.call(d,d&&d.__data__,u,n)),g=p.length,m=o[u]=new Array(g),_=s[u]=new Array(g),v=l[u]=new Array(f);r(d,h,m,_,v,p,e);for(var y=0,b=0,E,S;y<g;++y)if(E=m[y]){for(y>=b&&(b=y+1);!(S=_[b])&&++b<g;);E._next=S||null}}return s=new Vd(s,n),s._enter=o,s._exit=l,s}function llr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function clr(){return new Vd(this._exit||this._groups.map(P7e),this._parents)}function ulr(t,e,r){var n=this.enter(),i=this,a=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function dlr(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var u=r[l],d=n[l],h=u.length,f=o[l]=new Array(h),p,g=0;g<h;++g)(p=u[g]||d[g])&&(f[g]=p);for(;l<i;++l)o[l]=r[l];return new Vd(o,this._parents)}function hlr(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n=t[e],i=n.length-1,a=n[i],s;--i>=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function flr(t){t||(t=plr);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var s=r[a],o=s.length,l=i[a]=new Array(o),u,d=0;d<o;++d)(u=s[d])&&(l[d]=u);l.sort(e)}return new Vd(i,this._parents).order()}function plr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function glr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function mlr(){return Array.from(this)}function _lr(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var s=n[i];if(s)return s}return null}function vlr(){let t=0;for(const e of this)++t;return t}function ylr(){return!this.node()}function blr(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i=e[r],a=0,s=i.length,o;a<s;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this}function Elr(t){return function(){this.removeAttribute(t)}}function Slr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Tlr(t,e){return function(){this.setAttribute(t,e)}}function Clr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function wlr(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function xlr(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Alr(t,e){var r=AU(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?Slr:Elr:typeof e=="function"?r.local?xlr:wlr:r.local?Clr:Tlr)(r,e))}function F7e(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Rlr(t){return function(){this.style.removeProperty(t)}}function Olr(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Ilr(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function Nlr(t,e,r){return arguments.length>1?this.each((e==null?Rlr:typeof e=="function"?Ilr:Olr)(t,e,r??"")):hA(this.node(),t)}function hA(t,e){return t.style.getPropertyValue(e)||F7e(t).getComputedStyle(t,null).getPropertyValue(e)}function klr(t){return function(){delete this[t]}}function Dlr(t,e){return function(){this[t]=e}}function Mlr(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Llr(t,e){return arguments.length>1?this.each((e==null?klr:typeof e=="function"?Mlr:Dlr)(t,e)):this.node()[t]}function B7e(t){return t.trim().split(/^|\s+/)}function dce(t){return t.classList||new U7e(t)}function U7e(t){this._node=t,this._names=B7e(t.getAttribute("class")||"")}U7e.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function $7e(t,e){for(var r=dce(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function G7e(t,e){for(var r=dce(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function Plr(t){return function(){$7e(this,t)}}function Flr(t){return function(){G7e(this,t)}}function Blr(t,e){return function(){(e.apply(this,arguments)?$7e:G7e)(this,t)}}function Ulr(t,e){var r=B7e(t+"");if(arguments.length<2){for(var n=dce(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof e=="function"?Blr:e?Plr:Flr)(r,e))}function $lr(){this.textContent=""}function Glr(t){return function(){this.textContent=t}}function zlr(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function qlr(t){return arguments.length?this.each(t==null?$lr:(typeof t=="function"?zlr:Glr)(t)):this.node().textContent}function Vlr(){this.innerHTML=""}function Hlr(t){return function(){this.innerHTML=t}}function Ylr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Wlr(t){return arguments.length?this.each(t==null?Vlr:(typeof t=="function"?Ylr:Hlr)(t)):this.node().innerHTML}function Klr(){this.nextSibling&&this.parentNode.appendChild(this)}function jlr(){return this.each(Klr)}function Xlr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qlr(){return this.each(Xlr)}function Zlr(t){var e=typeof t=="function"?t:k7e(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Jlr(){return null}function ecr(t,e){var r=typeof t=="function"?t:k7e(t),n=e==null?Jlr:typeof e=="function"?e:uce(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function tcr(){var t=this.parentNode;t&&t.removeChild(this)}function rcr(){return this.each(tcr)}function ncr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function icr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function acr(t){return this.select(t?icr:ncr)}function scr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ocr(t){return function(e){t.call(this,e,this.__data__)}}function lcr(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function ccr(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r<i;++r)a=e[r],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++n]=a;++n?e.length=n:delete this.__on}}}function ucr(t,e,r){return function(){var n=this.__on,i,a=ocr(e);if(n){for(var s=0,o=n.length;s<o;++s)if((i=n[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=e;return}}this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},n?n.push(i):this.__on=[i]}}function dcr(t,e,r){var n=lcr(t+""),i,a=n.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,u=o.length,d;l<u;++l)for(i=0,d=o[l];i<a;++i)if((s=n[i]).type===d.type&&s.name===d.name)return d.value}return}for(o=e?ucr:ccr,i=0;i<a;++i)this.each(o(n[i],e,r));return this}function z7e(t,e,r){var n=F7e(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function hcr(t,e){return function(){return z7e(this,t,e)}}function fcr(t,e){return function(){return z7e(this,t,e.apply(this,arguments))}}function pcr(t,e){return this.each((typeof e=="function"?fcr:hcr)(t,e))}function*gcr(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length,s;i<a;++i)(s=n[i])&&(yield s)}var q7e=[null];function Vd(t,e){this._groups=t,this._parents=e}function F5(){return new Vd([[document.documentElement]],q7e)}function mcr(){return this}Vd.prototype=F5.prototype={constructor:Vd,select:zor,selectAll:Yor,selectChild:Xor,selectChildren:elr,filter:tlr,data:olr,enter:rlr,exit:clr,join:ulr,merge:dlr,selection:mcr,order:hlr,sort:flr,call:glr,nodes:mlr,node:_lr,size:vlr,empty:ylr,each:blr,attr:Alr,style:Nlr,property:Llr,classed:Ulr,text:qlr,html:Wlr,raise:jlr,lower:Qlr,append:Zlr,insert:ecr,remove:rcr,clone:acr,datum:scr,on:dcr,dispatch:pcr,[Symbol.iterator]:gcr};function dr(t){return typeof t=="string"?new Vd([[document.querySelector(t)]],[document.documentElement]):new Vd([[t]],q7e)}function B5(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function RU(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function dE(){}var wk=.7,w7=1/wk,XT="\\s*([+-]?\\d+)\\s*",xk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ig="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_cr=/^#([0-9a-f]{3,8})$/,vcr=new RegExp(`^rgb\\(${XT},${XT},${XT}\\)$`),ycr=new RegExp(`^rgb\\(${ig},${ig},${ig}\\)$`),bcr=new RegExp(`^rgba\\(${XT},${XT},${XT},${xk}\\)$`),Ecr=new RegExp(`^rgba\\(${ig},${ig},${ig},${xk}\\)$`),Scr=new RegExp(`^hsl\\(${xk},${ig},${ig}\\)$`),Tcr=new RegExp(`^hsla\\(${xk},${ig},${ig},${xk}\\)$`),ZCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};B5(dE,Nb,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:JCe,formatHex:JCe,formatHex8:Ccr,formatHsl:wcr,formatRgb:e2e,toString:e2e});function JCe(){return this.rgb().formatHex()}function Ccr(){return this.rgb().formatHex8()}function wcr(){return H7e(this).formatHsl()}function e2e(){return this.rgb().formatRgb()}function Nb(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=_cr.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?t2e(e):r===3?new Ac(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?SL(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?SL(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=vcr.exec(t))?new Ac(e[1],e[2],e[3],1):(e=ycr.exec(t))?new Ac(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=bcr.exec(t))?SL(e[1],e[2],e[3],e[4]):(e=Ecr.exec(t))?SL(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Scr.exec(t))?i2e(e[1],e[2]/100,e[3]/100,1):(e=Tcr.exec(t))?i2e(e[1],e[2]/100,e[3]/100,e[4]):ZCe.hasOwnProperty(t)?t2e(ZCe[t]):t==="transparent"?new Ac(NaN,NaN,NaN,0):null}function t2e(t){return new Ac(t>>16&255,t>>8&255,t&255,1)}function SL(t,e,r,n){return n<=0&&(t=e=r=NaN),new Ac(t,e,r,n)}function V7e(t){return t instanceof dE||(t=Nb(t)),t?(t=t.rgb(),new Ac(t.r,t.g,t.b,t.opacity)):new Ac}function eee(t,e,r,n){return arguments.length===1?V7e(t):new Ac(t,e,r,n??1)}function Ac(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}B5(Ac,eee,RU(dE,{brighter(t){return t=t==null?w7:Math.pow(w7,t),new Ac(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?wk:Math.pow(wk,t),new Ac(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ac(sb(this.r),sb(this.g),sb(this.b),x7(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:r2e,formatHex:r2e,formatHex8:xcr,formatRgb:n2e,toString:n2e}));function r2e(){return`#${Ly(this.r)}${Ly(this.g)}${Ly(this.b)}`}function xcr(){return`#${Ly(this.r)}${Ly(this.g)}${Ly(this.b)}${Ly((isNaN(this.opacity)?1:this.opacity)*255)}`}function n2e(){const t=x7(this.opacity);return`${t===1?"rgb(":"rgba("}${sb(this.r)}, ${sb(this.g)}, ${sb(this.b)}${t===1?")":`, ${t})`}`}function x7(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function sb(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ly(t){return t=sb(t),(t<16?"0":"")+t.toString(16)}function i2e(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Tf(t,e,r,n)}function H7e(t){if(t instanceof Tf)return new Tf(t.h,t.s,t.l,t.opacity);if(t instanceof dE||(t=Nb(t)),!t)return new Tf;if(t instanceof Tf)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(e===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-e)/o+2:s=(e-r)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new Tf(s,o,l,t.opacity)}function Acr(t,e,r,n){return arguments.length===1?H7e(t):new Tf(t,e,r,n??1)}function Tf(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}B5(Tf,Acr,RU(dE,{brighter(t){return t=t==null?w7:Math.pow(w7,t),new Tf(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?wk:Math.pow(wk,t),new Tf(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Ac(gK(t>=240?t-240:t+120,i,n),gK(t,i,n),gK(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Tf(a2e(this.h),TL(this.s),TL(this.l),x7(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=x7(this.opacity);return`${t===1?"hsl(":"hsla("}${a2e(this.h)}, ${TL(this.s)*100}%, ${TL(this.l)*100}%${t===1?")":`, ${t})`}`}}));function a2e(t){return t=(t||0)%360,t<0?t+360:t}function TL(t){return Math.max(0,Math.min(1,t||0))}function gK(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Rcr=Math.PI/180,Ocr=180/Math.PI,A7=18,Y7e=.96422,W7e=1,K7e=.82521,j7e=4/29,QT=6/29,X7e=3*QT*QT,Icr=QT*QT*QT;function Q7e(t){if(t instanceof ag)return new ag(t.l,t.a,t.b,t.opacity);if(t instanceof Mm)return Z7e(t);t instanceof Ac||(t=V7e(t));var e=yK(t.r),r=yK(t.g),n=yK(t.b),i=mK((.2225045*e+.7168786*r+.0606169*n)/W7e),a,s;return e===r&&r===n?a=s=i:(a=mK((.4360747*e+.3850649*r+.1430804*n)/Y7e),s=mK((.0139322*e+.0971045*r+.7141733*n)/K7e)),new ag(116*i-16,500*(a-i),200*(i-s),t.opacity)}function Ncr(t,e,r,n){return arguments.length===1?Q7e(t):new ag(t,e,r,n??1)}function ag(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}B5(ag,Ncr,RU(dE,{brighter(t){return new ag(this.l+A7*(t??1),this.a,this.b,this.opacity)},darker(t){return new ag(this.l-A7*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=Y7e*_K(e),t=W7e*_K(t),r=K7e*_K(r),new Ac(vK(3.1338561*e-1.6168667*t-.4906146*r),vK(-.9787684*e+1.9161415*t+.033454*r),vK(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function mK(t){return t>Icr?Math.pow(t,1/3):t/X7e+j7e}function _K(t){return t>QT?t*t*t:X7e*(t-j7e)}function vK(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function yK(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function kcr(t){if(t instanceof Mm)return new Mm(t.h,t.c,t.l,t.opacity);if(t instanceof ag||(t=Q7e(t)),t.a===0&&t.b===0)return new Mm(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ocr;return new Mm(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function tee(t,e,r,n){return arguments.length===1?kcr(t):new Mm(t,e,r,n??1)}function Mm(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function Z7e(t){if(isNaN(t.h))return new ag(t.l,0,0,t.opacity);var e=t.h*Rcr;return new ag(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}B5(Mm,tee,RU(dE,{brighter(t){return new Mm(this.h,this.c,this.l+A7*(t??1),this.opacity)},darker(t){return new Mm(this.h,this.c,this.l-A7*(t??1),this.opacity)},rgb(){return Z7e(this).rgb()}}));const OU=t=>()=>t;function J7e(t,e){return function(r){return t+r*e}}function Dcr(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function Mcr(t,e){var r=e-t;return r?J7e(t,r>180||r<-180?r-360*Math.round(r/360):r):OU(isNaN(t)?e:t)}function Lcr(t){return(t=+t)==1?_N:function(e,r){return r-e?Dcr(e,r,t):OU(isNaN(e)?r:e)}}function _N(t,e){var r=e-t;return r?J7e(t,r):OU(isNaN(t)?e:t)}const R7=(function t(e){var r=Lcr(e);function n(i,a){var s=r((i=eee(i)).r,(a=eee(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),u=_N(i.opacity,a.opacity);return function(d){return i.r=s(d),i.g=o(d),i.b=l(d),i.opacity=u(d),i+""}}return n.gamma=t,n})(1);function Pcr(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=t[i]*(1-a)+e[i]*a;return n}}function Fcr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Bcr(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=hce(t[s],e[s]);for(;s<r;++s)a[s]=e[s];return function(o){for(s=0;s<n;++s)a[s]=i[s](o);return a}}function Ucr(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function _f(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function $cr(t,e){var r={},n={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?r[i]=hce(t[i],e[i]):n[i]=e[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ree=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bK=new RegExp(ree.source,"g");function Gcr(t){return function(){return t}}function zcr(t){return function(e){return t(e)+""}}function e8e(t,e){var r=ree.lastIndex=bK.lastIndex=0,n,i,a,s=-1,o=[],l=[];for(t=t+"",e=e+"";(n=ree.exec(t))&&(i=bK.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:_f(n,i)})),r=bK.lastIndex;return r<e.length&&(a=e.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?zcr(l[0].x):Gcr(e):(e=l.length,function(u){for(var d=0,h;d<e;++d)o[(h=l[d]).i]=h.x(u);return o.join("")})}function hce(t,e){var r=typeof e,n;return e==null||r==="boolean"?OU(e):(r==="number"?_f:r==="string"?(n=Nb(e))?(e=n,R7):e8e:e instanceof Nb?R7:e instanceof Date?Ucr:Fcr(e)?Pcr:Array.isArray(e)?Bcr:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?$cr:_f)(t,e)}function qcr(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var s2e=180/Math.PI,nee={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t8e(t,e,r,n,i,a){var s,o,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(o=Math.sqrt(r*r+n*n))&&(r/=o,n/=o,l/=o),t*n<e*r&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*s2e,skewX:Math.atan(l)*s2e,scaleX:s,scaleY:o}}var CL;function Vcr(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?nee:t8e(e.a,e.b,e.c,e.d,e.e,e.f)}function Hcr(t){return t==null||(CL||(CL=document.createElementNS("http://www.w3.org/2000/svg","g")),CL.setAttribute("transform",t),!(t=CL.transform.baseVal.consolidate()))?nee:(t=t.matrix,t8e(t.a,t.b,t.c,t.d,t.e,t.f))}function r8e(t,e,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,d,h,f,p,g){if(u!==h||d!==f){var m=p.push("translate(",null,e,null,r);g.push({i:m-4,x:_f(u,h)},{i:m-2,x:_f(d,f)})}else(h||f)&&p.push("translate("+h+e+f+r)}function s(u,d,h,f){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:_f(u,d)})):d&&h.push(i(h)+"rotate("+d+n)}function o(u,d,h,f){u!==d?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:_f(u,d)}):d&&h.push(i(h)+"skewX("+d+n)}function l(u,d,h,f,p,g){if(u!==h||d!==f){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:_f(u,h)},{i:m-2,x:_f(d,f)})}else(h!==1||f!==1)&&p.push(i(p)+"scale("+h+","+f+")")}return function(u,d){var h=[],f=[];return u=t(u),d=t(d),a(u.translateX,u.translateY,d.translateX,d.translateY,h,f),s(u.rotate,d.rotate,h,f),o(u.skewX,d.skewX,h,f),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,h,f),u=d=null,function(p){for(var g=-1,m=f.length,_;++g<m;)h[(_=f[g]).i]=_.x(p);return h.join("")}}}var Ycr=r8e(Vcr,"px, ","px)","deg)"),Wcr=r8e(Hcr,", ",")",")");function Kcr(t){return function(e,r){var n=t((e=tee(e)).h,(r=tee(r)).h),i=_N(e.c,r.c),a=_N(e.l,r.l),s=_N(e.opacity,r.opacity);return function(o){return e.h=n(o),e.c=i(o),e.l=a(o),e.opacity=s(o),e+""}}}const jcr=Kcr(Mcr);var fA=0,CI=0,IO=0,n8e=1e3,O7,wI,I7=0,kb=0,IU=0,Ak=typeof performance=="object"&&performance.now?performance:Date,i8e=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fce(){return kb||(i8e(Xcr),kb=Ak.now()+IU)}function Xcr(){kb=0}function N7(){this._call=this._time=this._next=null}N7.prototype=a8e.prototype={constructor:N7,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?fce():+r)+(e==null?0:+e),!this._next&&wI!==this&&(wI?wI._next=this:O7=this,wI=this),this._call=t,this._time=r,iee()},stop:function(){this._call&&(this._call=null,this._time=1/0,iee())}};function a8e(t,e,r){var n=new N7;return n.restart(t,e,r),n}function Qcr(){fce(),++fA;for(var t=O7,e;t;)(e=kb-t._time)>=0&&t._call.call(void 0,e),t=t._next;--fA}function o2e(){kb=(I7=Ak.now())+IU,fA=CI=0;try{Qcr()}finally{fA=0,Jcr(),kb=0}}function Zcr(){var t=Ak.now(),e=t-I7;e>n8e&&(IU-=e,I7=t)}function Jcr(){for(var t,e=O7,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:O7=r);wI=t,iee(n)}function iee(t){if(!fA){CI&&(CI=clearTimeout(CI));var e=t-kb;e>24?(t<1/0&&(CI=setTimeout(o2e,t-Ak.now()-IU)),IO&&(IO=clearInterval(IO))):(IO||(I7=Ak.now(),IO=setInterval(Zcr,n8e)),fA=1,i8e(o2e))}}function l2e(t,e,r){var n=new N7;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var eur=N7e("start","end","cancel","interrupt"),tur=[],s8e=0,c2e=1,aee=2,VP=3,u2e=4,see=5,HP=6;function NU(t,e,r,n,i,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;rur(t,r,{name:e,index:n,group:i,on:eur,tween:tur,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:s8e})}function pce(t,e){var r=op(t,e);if(r.state>s8e)throw new Error("too late; already scheduled");return r}function Ng(t,e){var r=op(t,e);if(r.state>VP)throw new Error("too late; already running");return r}function op(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function rur(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=a8e(a,0,r.time);function a(u){r.state=c2e,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var d,h,f,p;if(r.state!==c2e)return l();for(d in n)if(p=n[d],p.name===r.name){if(p.state===VP)return l2e(s);p.state===u2e?(p.state=HP,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[d]):+d<e&&(p.state=HP,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete n[d])}if(l2e(function(){r.state===VP&&(r.state=u2e,r.timer.restart(o,r.delay,r.time),o(u))}),r.state=aee,r.on.call("start",t,t.__data__,r.index,r.group),r.state===aee){for(r.state=VP,i=new Array(f=r.tween.length),d=0,h=-1;d<f;++d)(p=r.tween[d].value.call(t,t.__data__,r.index,r.group))&&(i[++h]=p);i.length=h+1}}function o(u){for(var d=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=see,1),h=-1,f=i.length;++h<f;)i[h].call(t,d);r.state===see&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=HP,r.timer.stop(),delete n[e];for(var u in n)return;delete t.__transition}}function nur(t,e){var r=t.__transition,n,i,a=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((n=r[s]).name!==e){a=!1;continue}i=n.state>aee&&n.state<see,n.state=HP,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[s]}a&&delete t.__transition}}function iur(t){return this.each(function(){nur(this,t)})}function aur(t,e){var r,n;return function(){var i=Ng(this,t),a=i.tween;if(a!==r){n=r=a;for(var s=0,o=n.length;s<o;++s)if(n[s].name===e){n=n.slice(),n.splice(s,1);break}}i.tween=n}}function sur(t,e,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=Ng(this,t),s=a.tween;if(s!==n){i=(n=s).slice();for(var o={name:e,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=o;break}l===u&&i.push(o)}a.tween=i}}function our(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n=op(this.node(),r).tween,i=0,a=n.length,s;i<a;++i)if((s=n[i]).name===t)return s.value;return null}return this.each((e==null?aur:sur)(r,t,e))}function gce(t,e,r){var n=t._id;return t.each(function(){var i=Ng(this,n);(i.value||(i.value={}))[e]=r.apply(this,arguments)}),function(i){return op(i,n).value[e]}}function o8e(t,e){var r;return(typeof e=="number"?_f:e instanceof Nb?R7:(r=Nb(e))?(e=r,R7):e8e)(t,e)}function lur(t){return function(){this.removeAttribute(t)}}function cur(t){return function(){this.removeAttributeNS(t.space,t.local)}}function uur(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttribute(t);return s===i?null:s===n?a:a=e(n=s,r)}}function dur(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===n?a:a=e(n=s,r)}}function hur(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function fur(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function pur(t,e){var r=AU(t),n=r==="transform"?Wcr:o8e;return this.attrTween(t,typeof e=="function"?(r.local?fur:hur)(r,n,gce(this,"attr."+t,e)):e==null?(r.local?cur:lur)(r):(r.local?dur:uur)(r,n,e))}function gur(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function mur(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function _ur(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&mur(t,a)),r}return i._value=e,i}function vur(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&gur(t,a)),r}return i._value=e,i}function yur(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=AU(t);return this.tween(r,(n.local?_ur:vur)(n,e))}function bur(t,e){return function(){pce(this,t).delay=+e.apply(this,arguments)}}function Eur(t,e){return e=+e,function(){pce(this,t).delay=e}}function Sur(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bur:Eur)(e,t)):op(this.node(),e).delay}function Tur(t,e){return function(){Ng(this,t).duration=+e.apply(this,arguments)}}function Cur(t,e){return e=+e,function(){Ng(this,t).duration=e}}function wur(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Tur:Cur)(e,t)):op(this.node(),e).duration}function xur(t,e){if(typeof e!="function")throw new Error;return function(){Ng(this,t).ease=e}}function Aur(t){var e=this._id;return arguments.length?this.each(xur(e,t)):op(this.node(),e).ease}function Rur(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Ng(this,t).ease=r}}function Our(t){if(typeof t!="function")throw new Error;return this.each(Rur(this._id,t))}function Iur(t){typeof t!="function"&&(t=M7e(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&t.call(l,l.__data__,u,a)&&o.push(l);return new o0(n,this._parents,this._name,this._id)}function Nur(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),s=new Array(n),o=0;o<a;++o)for(var l=e[o],u=r[o],d=l.length,h=s[o]=new Array(d),f,p=0;p<d;++p)(f=l[p]||u[p])&&(h[p]=f);for(;o<n;++o)s[o]=e[o];return new o0(s,this._parents,this._name,this._id)}function kur(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function Dur(t,e,r){var n,i,a=kur(e)?pce:Ng;return function(){var s=a(this,t),o=s.on;o!==n&&(i=(n=o).copy()).on(e,r),s.on=i}}function Mur(t,e){var r=this._id;return arguments.length<2?op(this.node(),r).on.on(t):this.each(Dur(r,t,e))}function Lur(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Pur(){return this.on("end.remove",Lur(this._id))}function Fur(t){var e=this._name,r=this._id;typeof t!="function"&&(t=uce(t));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s<i;++s)for(var o=n[s],l=o.length,u=a[s]=new Array(l),d,h,f=0;f<l;++f)(d=o[f])&&(h=t.call(d,d.__data__,f,o))&&("__data__"in d&&(h.__data__=d.__data__),u[f]=h,NU(u[f],e,r,f,u,op(d,r)));return new o0(a,this._parents,e,r)}function Bur(t){var e=this._name,r=this._id;typeof t!="function"&&(t=D7e(t));for(var n=this._groups,i=n.length,a=[],s=[],o=0;o<i;++o)for(var l=n[o],u=l.length,d,h=0;h<u;++h)if(d=l[h]){for(var f=t.call(d,d.__data__,h,l),p,g=op(d,r),m=0,_=f.length;m<_;++m)(p=f[m])&&NU(p,e,r,m,f,g);a.push(f),s.push(d)}return new o0(a,s,e,r)}var Uur=F5.prototype.constructor;function $ur(){return new Uur(this._groups,this._parents)}function Gur(t,e){var r,n,i;return function(){var a=hA(this,t),s=(this.style.removeProperty(t),hA(this,t));return a===s?null:a===r&&s===n?i:i=e(r=a,n=s)}}function l8e(t){return function(){this.style.removeProperty(t)}}function zur(t,e,r){var n,i=r+"",a;return function(){var s=hA(this,t);return s===i?null:s===n?a:a=e(n=s,r)}}function qur(t,e,r){var n,i,a;return function(){var s=hA(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),hA(this,t))),s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o))}}function Vur(t,e){var r,n,i,a="style."+e,s="end."+a,o;return function(){var l=Ng(this,t),u=l.on,d=l.value[a]==null?o||(o=l8e(e)):void 0;(u!==r||i!==d)&&(n=(r=u).copy()).on(s,i=d),l.on=n}}function Hur(t,e,r){var n=(t+="")=="transform"?Ycr:o8e;return e==null?this.styleTween(t,Gur(t,n)).on("end.style."+t,l8e(t)):typeof e=="function"?this.styleTween(t,qur(t,n,gce(this,"style."+t,e))).each(Vur(this._id,t)):this.styleTween(t,zur(t,n,e),r).on("end.style."+t,null)}function Yur(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function Wur(t,e,r){var n,i;function a(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&Yur(t,s,r)),n}return a._value=e,a}function Kur(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,Wur(t,e,r??""))}function jur(t){return function(){this.textContent=t}}function Xur(t){return function(){var e=t(this);this.textContent=e??""}}function Qur(t){return this.tween("text",typeof t=="function"?Xur(gce(this,"text",t)):jur(t==null?"":t+""))}function Zur(t){return function(e){this.textContent=t.call(this,e)}}function Jur(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&Zur(i)),e}return n._value=t,n}function edr(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Jur(t))}function tdr(){for(var t=this._name,e=this._id,r=c8e(),n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)if(l=s[u]){var d=op(l,e);NU(l,t,r,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new o0(n,this._parents,t,r)}function rdr(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--i===0&&a()}};r.each(function(){var u=Ng(this,n),d=u.on;d!==t&&(e=(t=d).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),u.on=e}),i===0&&a()})}var ndr=0;function o0(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function c8e(){return++ndr}var nm=F5.prototype;o0.prototype={constructor:o0,select:Fur,selectAll:Bur,selectChild:nm.selectChild,selectChildren:nm.selectChildren,filter:Iur,merge:Nur,selection:$ur,transition:tdr,call:nm.call,nodes:nm.nodes,node:nm.node,size:nm.size,empty:nm.empty,each:nm.each,on:Mur,attr:pur,attrTween:yur,style:Hur,styleTween:Kur,text:Qur,textTween:edr,remove:Pur,tween:our,delay:Sur,duration:wur,ease:Aur,easeVarying:Our,end:rdr,[Symbol.iterator]:nm[Symbol.iterator]};function idr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var adr={time:null,delay:0,duration:250,ease:idr};function sdr(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function odr(t){var e,r;t instanceof o0?(e=t._id,t=t._name):(e=c8e(),(r=adr).time=fce(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&NU(l,t,e,u,s,r||sdr(l,e));return new o0(n,this._parents,t,e)}F5.prototype.interrupt=iur;F5.prototype.transition=odr;const oee=Math.PI,lee=2*oee,Vv=1e-6,ldr=lee-Vv;function u8e(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function cdr(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return u8e;const r=10**e;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}let udr=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?u8e:cdr(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,i){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,r,n,i,a,s){this._append`C${+e},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(e,r,n,i,a){if(e=+e,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=n-e,u=i-r,d=s-e,h=o-r,f=d*d+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(f>Vv)if(!(Math.abs(h*l-u*d)>Vv)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-s,g=i-o,m=l*l+u*u,_=p*p+g*g,v=Math.sqrt(m),y=Math.sqrt(f),b=a*Math.tan((oee-Math.acos((m+f-_)/(2*v*y)))/2),E=b/y,S=b/v;Math.abs(E-1)>Vv&&this._append`L${e+E*d},${r+E*h}`,this._append`A${a},${a},0,0,${+(h*p>d*g)},${this._x1=e+S*l},${this._y1=r+S*u}`}}arc(e,r,n,i,a,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),l=n*Math.sin(i),u=e+o,d=r+l,h=1^s,f=s?i-a:a-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Vv||Math.abs(this._y1-d)>Vv)&&this._append`L${u},${d}`,n&&(f<0&&(f=f%lee+lee),f>ldr?this._append`A${n},${n},0,1,${h},${e-o},${r-l}A${n},${n},0,1,${h},${this._x1=u},${this._y1=d}`:f>Vv&&this._append`A${n},${n},0,${+(f>=oee)},${h},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function ddr(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function k7(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function pA(t){return t=k7(Math.abs(t)),t?t[1]:NaN}function hdr(t,e){return function(r,n){for(var i=r.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),a.push(r.substring(i-=o,i+o)),!((l+=o+1)>n));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}function fdr(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var pdr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D7(t){if(!(e=pdr.exec(t)))throw new Error("invalid format: "+t);var e;return new mce({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}D7.prototype=mce.prototype;function mce(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}mce.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function gdr(t){e:for(var e=t.length,r=1,n=-1,i;r<e;++r)switch(t[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var M7;function mdr(t,e){var r=k7(t,e);if(!r)return M7=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(M7=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+k7(t,Math.max(0,e+a-1))[0]}function d2e(t,e){var r=k7(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const h2e={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ddr,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>d2e(t*100,e),r:d2e,s:mdr,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function f2e(t){return t}var p2e=Array.prototype.map,g2e=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _dr(t){var e=t.grouping===void 0||t.thousands===void 0?f2e:hdr(p2e.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?f2e:fdr(p2e.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(h,f){h=D7(h);var p=h.fill,g=h.align,m=h.sign,_=h.symbol,v=h.zero,y=h.width,b=h.comma,E=h.precision,S=h.trim,T=h.type;T==="n"?(b=!0,T="g"):h2e[T]||(E===void 0&&(E=12),S=!0,T="g"),(v||p==="0"&&g==="=")&&(v=!0,p="0",g="=");var C=(f&&f.prefix!==void 0?f.prefix:"")+(_==="$"?r:_==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),x=(_==="$"?n:/[%p]/.test(T)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),A=h2e[T],R=/[defgprs%]/.test(T);E=E===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function I(L){var F=C,O=x,D,M,P;if(T==="c")O=A(L)+O,L="";else{L=+L;var N=L<0||1/L<0;if(L=isNaN(L)?l:A(Math.abs(L),E),S&&(L=gdr(L)),N&&+L==0&&m!=="+"&&(N=!1),F=(N?m==="("?m:o:m==="-"||m==="("?"":m)+F,O=(T==="s"&&!isNaN(L)&&M7!==void 0?g2e[8+M7/3]:"")+O+(N&&m==="("?")":""),R){for(D=-1,M=L.length;++D<M;)if(P=L.charCodeAt(D),48>P||P>57){O=(P===46?i+L.slice(D+1):L.slice(D))+O,L=L.slice(0,D);break}}}b&&!v&&(L=e(L,1/0));var $=F.length+L.length+O.length,U=$<y?new Array(y-$+1).join(p):"";switch(b&&v&&(L=e(U+L,U.length?y-O.length:1/0),U=""),g){case"<":L=F+L+O+U;break;case"=":L=F+U+L+O;break;case"^":L=U.slice(0,$=U.length>>1)+F+L+O+U.slice($);break;default:L=U+F+L+O;break}return a(L)}return I.toString=function(){return h+""},I}function d(h,f){var p=Math.max(-8,Math.min(8,Math.floor(pA(f)/3)))*3,g=Math.pow(10,-p),m=u((h=D7(h),h.type="f",h),{suffix:g2e[8+p/3]});return function(_){return m(g*_)}}return{format:u,formatPrefix:d}}var wL,oy,d8e;vdr({thousands:",",grouping:[3],currency:["$",""]});function vdr(t){return wL=_dr(t),oy=wL.format,d8e=wL.formatPrefix,wL}function ydr(t){return Math.max(0,-pA(Math.abs(t)))}function bdr(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pA(e)/3)))*3-pA(Math.abs(t)))}function Edr(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pA(e)-pA(t))+1}function Sdr(t){var e=0,r=t.children,n=r&&r.length;if(!n)e=1;else for(;--n>=0;)e+=r[n].value;t.value=e}function Tdr(){return this.eachAfter(Sdr)}function Cdr(t,e){let r=-1;for(const n of this)t.call(e,n,++r,this);return this}function wdr(t,e){for(var r=this,n=[r],i,a,s=-1;r=n.pop();)if(t.call(e,r,++s,this),i=r.children)for(a=i.length-1;a>=0;--a)n.push(i[a]);return this}function xdr(t,e){for(var r=this,n=[r],i=[],a,s,o,l=-1;r=n.pop();)if(i.push(r),a=r.children)for(s=0,o=a.length;s<o;++s)n.push(a[s]);for(;r=i.pop();)t.call(e,r,++l,this);return this}function Adr(t,e){let r=-1;for(const n of this)if(t.call(e,n,++r,this))return n}function Rdr(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r})}function Odr(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Idr(t){for(var e=this,r=Ndr(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n}function Ndr(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}function kdr(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Ddr(){return Array.from(this)}function Mdr(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Ldr(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*Pdr(){var t=this,e,r=[t],n,i,a;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,n=t.children)for(i=0,a=n.length;i<a;++i)r.push(n[i]);while(r.length)}function _ce(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=Udr)):e===void 0&&(e=Bdr);for(var r=new L7(t),n,i=[r],a,s,o,l;n=i.pop();)if((s=e(n.data))&&(l=(s=Array.from(s)).length))for(n.children=s,o=l-1;o>=0;--o)i.push(a=s[o]=new L7(s[o])),a.parent=n,a.depth=n.depth+1;return r.eachBefore(Gdr)}function Fdr(){return _ce(this).eachBefore($dr)}function Bdr(t){return t.children}function Udr(t){return Array.isArray(t)?t[1]:null}function $dr(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Gdr(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function L7(t){this.data=t,this.depth=this.height=0,this.parent=null}L7.prototype=_ce.prototype={constructor:L7,count:Tdr,each:Cdr,eachAfter:xdr,eachBefore:wdr,find:Adr,sum:Rdr,sort:Odr,path:Idr,ancestors:kdr,descendants:Ddr,leaves:Mdr,links:Ldr,copy:Fdr,[Symbol.iterator]:Pdr};function zdr(t){if(typeof t!="function")throw new Error;return t}function NO(){return 0}function kO(t){return function(){return t}}function qdr(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Vdr(t,e,r,n,i){for(var a=t.children,s,o=-1,l=a.length,u=t.value&&(n-e)/t.value;++o<l;)s=a[o],s.y0=r,s.y1=i,s.x0=e,s.x1=e+=s.value*u}function Hdr(t,e,r,n,i){for(var a=t.children,s,o=-1,l=a.length,u=t.value&&(i-r)/t.value;++o<l;)s=a[o],s.x0=e,s.x1=n,s.y0=r,s.y1=r+=s.value*u}var Ydr=(1+Math.sqrt(5))/2;function Wdr(t,e,r,n,i,a){for(var s=[],o=e.children,l,u,d=0,h=0,f=o.length,p,g,m=e.value,_,v,y,b,E,S,T;d<f;){p=i-r,g=a-n;do _=o[h++].value;while(!_&&h<f);for(v=y=_,S=Math.max(g/p,p/g)/(m*t),T=_*_*S,E=Math.max(y/T,T/v);h<f;++h){if(_+=u=o[h].value,u<v&&(v=u),u>y&&(y=u),T=_*_*S,b=Math.max(y/T,T/v),b>E){_-=u;break}E=b}s.push(l={value:_,dice:p<g,children:o.slice(d,h)}),l.dice?Vdr(l,r,n,i,m?n+=g*_/m:a):Hdr(l,r,n,m?r+=p*_/m:i,a),m-=_,d=h}return s}const Kdr=(function t(e){function r(n,i,a,s,o){Wdr(e,n,i,a,s,o)}return r.ratio=function(n){return t((n=+n)>1?n:1)},r})(Ydr);function jdr(){var t=Kdr,e=!1,r=1,n=1,i=[0],a=NO,s=NO,o=NO,l=NO,u=NO;function d(f){return f.x0=f.y0=0,f.x1=r,f.y1=n,f.eachBefore(h),i=[0],e&&f.eachBefore(qdr),f}function h(f){var p=i[f.depth],g=f.x0+p,m=f.y0+p,_=f.x1-p,v=f.y1-p;_<g&&(g=_=(g+_)/2),v<m&&(m=v=(m+v)/2),f.x0=g,f.y0=m,f.x1=_,f.y1=v,f.children&&(p=i[f.depth+1]=a(f)/2,g+=u(f)-p,m+=s(f)-p,_-=o(f)-p,v-=l(f)-p,_<g&&(g=_=(g+_)/2),v<m&&(m=v=(m+v)/2),t(f,g,m,_,v))}return d.round=function(f){return arguments.length?(e=!!f,d):e},d.size=function(f){return arguments.length?(r=+f[0],n=+f[1],d):[r,n]},d.tile=function(f){return arguments.length?(t=zdr(f),d):t},d.padding=function(f){return arguments.length?d.paddingInner(f).paddingOuter(f):d.paddingInner()},d.paddingInner=function(f){return arguments.length?(a=typeof f=="function"?f:kO(+f),d):a},d.paddingOuter=function(f){return arguments.length?d.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):d.paddingTop()},d.paddingTop=function(f){return arguments.length?(s=typeof f=="function"?f:kO(+f),d):s},d.paddingRight=function(f){return arguments.length?(o=typeof f=="function"?f:kO(+f),d):o},d.paddingBottom=function(f){return arguments.length?(l=typeof f=="function"?f:kO(+f),d):l},d.paddingLeft=function(f){return arguments.length?(u=typeof f=="function"?f:kO(+f),d):u},d}function kU(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const m2e=Symbol("implicit");function ob(){var t=new WCe,e=[],r=[],n=m2e;function i(a){let s=t.get(a);if(s===void 0){if(n!==m2e)return n;t.set(a,s=e.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new WCe;for(const s of a)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ob(e,r).unknown(n)},kU.apply(i,arguments),i}function cee(){var t=ob().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,a,s,o=!1,l=0,u=0,d=.5;delete t.unknown;function h(){var f=e().length,p=i<n,g=p?i:n,m=p?n:i;a=(m-g)/Math.max(1,f-l+u*2),o&&(a=Math.floor(a)),g+=(m-g-a*(f-l))*d,s=a*(1-l),o&&(g=Math.round(g),s=Math.round(s));var _=Aor(f).map(function(v){return g+a*v});return r(p?_.reverse():_)}return t.domain=function(f){return arguments.length?(e(f),h()):e()},t.range=function(f){return arguments.length?([n,i]=f,n=+n,i=+i,h()):[n,i]},t.rangeRound=function(f){return[n,i]=f,n=+n,i=+i,o=!0,h()},t.bandwidth=function(){return s},t.step=function(){return a},t.round=function(f){return arguments.length?(o=!!f,h()):o},t.padding=function(f){return arguments.length?(l=Math.min(1,u=+f),h()):l},t.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),h()):l},t.paddingOuter=function(f){return arguments.length?(u=+f,h()):u},t.align=function(f){return arguments.length?(d=Math.max(0,Math.min(1,f)),h()):d},t.copy=function(){return cee(e(),[n,i]).round(o).paddingInner(l).paddingOuter(u).align(d)},kU.apply(h(),arguments)}function Xdr(t){return function(){return t}}function Qdr(t){return+t}var _2e=[0,1];function gT(t){return t}function uee(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:Xdr(isNaN(e)?NaN:.5)}function Zdr(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function Jdr(t,e,r){var n=t[0],i=t[1],a=e[0],s=e[1];return i<n?(n=uee(i,n),a=r(s,a)):(n=uee(n,i),a=r(a,s)),function(o){return a(n(o))}}function ehr(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),a=new Array(n),s=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<n;)i[s]=uee(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(o){var l=_or(t,o,1,n)-1;return a[l](i[l](o))}}function h8e(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function thr(){var t=_2e,e=_2e,r=hce,n,i,a,s=gT,o,l,u;function d(){var f=Math.min(t.length,e.length);return s!==gT&&(s=Zdr(t[0],t[f-1])),o=f>2?ehr:Jdr,l=u=null,h}function h(f){return f==null||isNaN(f=+f)?a:(l||(l=o(t.map(n),e,r)))(n(s(f)))}return h.invert=function(f){return s(i((u||(u=o(e,t.map(n),_f)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,Qdr),d()):t.slice()},h.range=function(f){return arguments.length?(e=Array.from(f),d()):e.slice()},h.rangeRound=function(f){return e=Array.from(f),r=qcr,d()},h.clamp=function(f){return arguments.length?(s=f?!0:gT,d()):s!==gT},h.interpolate=function(f){return arguments.length?(r=f,d()):r},h.unknown=function(f){return arguments.length?(a=f,h):a},function(f,p){return n=f,i=p,d()}}function f8e(){return thr()(gT,gT)}function rhr(t,e,r,n){var i=QJ(t,e,r),a;switch(n=D7(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=bdr(i,s))&&(n.precision=a),d8e(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Edr(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=ydr(i))&&(n.precision=a-(n.type==="%")*2);break}}return oy(n)}function nhr(t){var e=t.domain;return t.ticks=function(r){var n=e();return Cor(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return rhr(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,s=n[i],o=n[a],l,u,d=10;for(o<s&&(u=s,s=o,o=u,u=i,i=a,a=u);d-- >0;){if(u=XJ(s,o,r),u===l)return n[i]=s,n[a]=o,e(n);if(u>0)s=Math.floor(s/u)*u,o=Math.ceil(o/u)*u;else if(u<0)s=Math.ceil(s*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function gA(){var t=f8e();return t.copy=function(){return h8e(t,gA())},kU.apply(t,arguments),nhr(t)}function ihr(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),t[r]=e.floor(i),t[n]=e.ceil(a),t}const EK=new Date,SK=new Date;function vl(t,e,r,n){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s<o-a?s:o},i.offset=(a,s)=>(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return l;let u;do l.push(u=new Date(+a)),e(a,o),t(a);while(u<a&&a<s);return l},i.filter=a=>vl(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!a(s););else for(;--o>=0;)for(;e(s,1),!a(s););}),r&&(i.count=(a,s)=>(EK.setTime(+a),SK.setTime(+s),t(EK),t(SK),Math.floor(r(EK,SK))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const mA=vl(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);mA.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?vl(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):mA);mA.range;const Lm=1e3,Nh=Lm*60,Pm=Nh*60,l0=Pm*24,vce=l0*7,v2e=l0*30,TK=l0*365,P_=vl(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Lm)},(t,e)=>(e-t)/Lm,t=>t.getUTCSeconds());P_.range;const Rk=vl(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Lm)},(t,e)=>{t.setTime(+t+e*Nh)},(t,e)=>(e-t)/Nh,t=>t.getMinutes());Rk.range;const ahr=vl(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Nh)},(t,e)=>(e-t)/Nh,t=>t.getUTCMinutes());ahr.range;const Ok=vl(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Lm-t.getMinutes()*Nh)},(t,e)=>{t.setTime(+t+e*Pm)},(t,e)=>(e-t)/Pm,t=>t.getHours());Ok.range;const shr=vl(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Pm)},(t,e)=>(e-t)/Pm,t=>t.getUTCHours());shr.range;const Db=vl(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Nh)/l0,t=>t.getDate()-1);Db.range;const yce=vl(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/l0,t=>t.getUTCDate()-1);yce.range;const ohr=vl(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/l0,t=>Math.floor(t/l0));ohr.range;function hE(t){return vl(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Nh)/vce)}const U5=hE(0),Ik=hE(1),p8e=hE(2),g8e=hE(3),Mb=hE(4),m8e=hE(5),_8e=hE(6);U5.range;Ik.range;p8e.range;g8e.range;Mb.range;m8e.range;_8e.range;function fE(t){return vl(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/vce)}const v8e=fE(0),P7=fE(1),lhr=fE(2),chr=fE(3),_A=fE(4),uhr=fE(5),dhr=fE(6);v8e.range;P7.range;lhr.range;chr.range;_A.range;uhr.range;dhr.range;const Nk=vl(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nk.range;const hhr=vl(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hhr.range;const c0=vl(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());c0.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:vl(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});c0.range;const Lb=vl(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Lb.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:vl(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Lb.range;function fhr(t,e,r,n,i,a){const s=[[P_,1,Lm],[P_,5,5*Lm],[P_,15,15*Lm],[P_,30,30*Lm],[a,1,Nh],[a,5,5*Nh],[a,15,15*Nh],[a,30,30*Nh],[i,1,Pm],[i,3,3*Pm],[i,6,6*Pm],[i,12,12*Pm],[n,1,l0],[n,2,2*l0],[r,1,vce],[e,1,v2e],[e,3,3*v2e],[t,1,TK]];function o(u,d,h){const f=d<u;f&&([u,d]=[d,u]);const p=h&&typeof h.range=="function"?h:l(u,d,h),g=p?p.range(u,+d+1):[];return f?g.reverse():g}function l(u,d,h){const f=Math.abs(d-u)/h,p=cce(([,,_])=>_).right(s,f);if(p===s.length)return t.every(QJ(u/TK,d/TK,h));if(p===0)return mA.every(Math.max(QJ(u,d,h),1));const[g,m]=s[f/s[p-1][2]<s[p][2]/f?p-1:p];return g.every(m)}return[o,l]}const[phr,ghr]=fhr(c0,Nk,U5,Db,Ok,Rk);function CK(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function wK(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function DO(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function mhr(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,s=t.shortDays,o=t.months,l=t.shortMonths,u=MO(i),d=LO(i),h=MO(a),f=LO(a),p=MO(s),g=LO(s),m=MO(o),_=LO(o),v=MO(l),y=LO(l),b={a:P,A:N,b:$,B:U,c:null,d:C2e,e:C2e,f:Uhr,g:jhr,G:Qhr,H:Phr,I:Fhr,j:Bhr,L:y8e,m:$hr,M:Ghr,p:B,q:V,Q:A2e,s:R2e,S:zhr,u:qhr,U:Vhr,V:Hhr,w:Yhr,W:Whr,x:null,X:null,y:Khr,Y:Xhr,Z:Zhr,"%":x2e},E={a:z,A:G,b:Y,B:W,c:null,d:w2e,e:w2e,f:rfr,g:hfr,G:pfr,H:Jhr,I:efr,j:tfr,L:E8e,m:nfr,M:ifr,p:Q,q:ie,Q:A2e,s:R2e,S:afr,u:sfr,U:ofr,V:lfr,w:cfr,W:ufr,x:null,X:null,y:dfr,Y:ffr,Z:gfr,"%":x2e},S={a:R,A:I,b:L,B:F,c:O,d:S2e,e:S2e,f:khr,g:E2e,G:b2e,H:T2e,I:T2e,j:Rhr,L:Nhr,m:Ahr,M:Ohr,p:A,q:xhr,Q:Mhr,s:Lhr,S:Ihr,u:Ehr,U:Shr,V:Thr,w:bhr,W:Chr,x:D,X:M,y:E2e,Y:b2e,Z:whr,"%":Dhr};b.x=T(r,b),b.X=T(n,b),b.c=T(e,b),E.x=T(r,E),E.X=T(n,E),E.c=T(e,E);function T(Z,re){return function(K){var j=[],se=-1,le=0,_e=Z.length,ye,Ue,Se;for(K instanceof Date||(K=new Date(+K));++se<_e;)Z.charCodeAt(se)===37&&(j.push(Z.slice(le,se)),(Ue=y2e[ye=Z.charAt(++se)])!=null?ye=Z.charAt(++se):Ue=ye==="e"?" ":"0",(Se=re[ye])&&(ye=Se(K,Ue)),j.push(ye),le=se+1);return j.push(Z.slice(le,se)),j.join("")}}function C(Z,re){return function(K){var j=DO(1900,void 0,1),se=x(j,Z,K+="",0),le,_e;if(se!=K.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(re&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(le=wK(DO(j.y,0,1)),_e=le.getUTCDay(),le=_e>4||_e===0?P7.ceil(le):P7(le),le=yce.offset(le,(j.V-1)*7),j.y=le.getUTCFullYear(),j.m=le.getUTCMonth(),j.d=le.getUTCDate()+(j.w+6)%7):(le=CK(DO(j.y,0,1)),_e=le.getDay(),le=_e>4||_e===0?Ik.ceil(le):Ik(le),le=Db.offset(le,(j.V-1)*7),j.y=le.getFullYear(),j.m=le.getMonth(),j.d=le.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),_e="Z"in j?wK(DO(j.y,0,1)).getUTCDay():CK(DO(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-(_e+5)%7:j.w+j.U*7-(_e+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,wK(j)):CK(j)}}function x(Z,re,K,j){for(var se=0,le=re.length,_e=K.length,ye,Ue;se<le;){if(j>=_e)return-1;if(ye=re.charCodeAt(se++),ye===37){if(ye=re.charAt(se++),Ue=S[ye in y2e?re.charAt(se++):ye],!Ue||(j=Ue(Z,K,j))<0)return-1}else if(ye!=K.charCodeAt(j++))return-1}return j}function A(Z,re,K){var j=u.exec(re.slice(K));return j?(Z.p=d.get(j[0].toLowerCase()),K+j[0].length):-1}function R(Z,re,K){var j=p.exec(re.slice(K));return j?(Z.w=g.get(j[0].toLowerCase()),K+j[0].length):-1}function I(Z,re,K){var j=h.exec(re.slice(K));return j?(Z.w=f.get(j[0].toLowerCase()),K+j[0].length):-1}function L(Z,re,K){var j=v.exec(re.slice(K));return j?(Z.m=y.get(j[0].toLowerCase()),K+j[0].length):-1}function F(Z,re,K){var j=m.exec(re.slice(K));return j?(Z.m=_.get(j[0].toLowerCase()),K+j[0].length):-1}function O(Z,re,K){return x(Z,e,re,K)}function D(Z,re,K){return x(Z,r,re,K)}function M(Z,re,K){return x(Z,n,re,K)}function P(Z){return s[Z.getDay()]}function N(Z){return a[Z.getDay()]}function $(Z){return l[Z.getMonth()]}function U(Z){return o[Z.getMonth()]}function B(Z){return i[+(Z.getHours()>=12)]}function V(Z){return 1+~~(Z.getMonth()/3)}function z(Z){return s[Z.getUTCDay()]}function G(Z){return a[Z.getUTCDay()]}function Y(Z){return l[Z.getUTCMonth()]}function W(Z){return o[Z.getUTCMonth()]}function Q(Z){return i[+(Z.getUTCHours()>=12)]}function ie(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var re=T(Z+="",b);return re.toString=function(){return Z},re},parse:function(Z){var re=C(Z+="",!1);return re.toString=function(){return Z},re},utcFormat:function(Z){var re=T(Z+="",E);return re.toString=function(){return Z},re},utcParse:function(Z){var re=C(Z+="",!0);return re.toString=function(){return Z},re}}}var y2e={"-":"",_:" ",0:"0"},Nl=/^\s*\d+/,_hr=/^%/,vhr=/[\\^$*+?|[\]().{}]/g;function Ea(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function yhr(t){return t.replace(vhr,"\\$&")}function MO(t){return new RegExp("^(?:"+t.map(yhr).join("|")+")","i")}function LO(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function bhr(t,e,r){var n=Nl.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ehr(t,e,r){var n=Nl.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Shr(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Thr(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Chr(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b2e(t,e,r){var n=Nl.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function E2e(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function whr(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function xhr(t,e,r){var n=Nl.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function Ahr(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function S2e(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Rhr(t,e,r){var n=Nl.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function T2e(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Ohr(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Ihr(t,e,r){var n=Nl.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Nhr(t,e,r){var n=Nl.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function khr(t,e,r){var n=Nl.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Dhr(t,e,r){var n=_hr.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Mhr(t,e,r){var n=Nl.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Lhr(t,e,r){var n=Nl.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function C2e(t,e){return Ea(t.getDate(),e,2)}function Phr(t,e){return Ea(t.getHours(),e,2)}function Fhr(t,e){return Ea(t.getHours()%12||12,e,2)}function Bhr(t,e){return Ea(1+Db.count(c0(t),t),e,3)}function y8e(t,e){return Ea(t.getMilliseconds(),e,3)}function Uhr(t,e){return y8e(t,e)+"000"}function $hr(t,e){return Ea(t.getMonth()+1,e,2)}function Ghr(t,e){return Ea(t.getMinutes(),e,2)}function zhr(t,e){return Ea(t.getSeconds(),e,2)}function qhr(t){var e=t.getDay();return e===0?7:e}function Vhr(t,e){return Ea(U5.count(c0(t)-1,t),e,2)}function b8e(t){var e=t.getDay();return e>=4||e===0?Mb(t):Mb.ceil(t)}function Hhr(t,e){return t=b8e(t),Ea(Mb.count(c0(t),t)+(c0(t).getDay()===4),e,2)}function Yhr(t){return t.getDay()}function Whr(t,e){return Ea(Ik.count(c0(t)-1,t),e,2)}function Khr(t,e){return Ea(t.getFullYear()%100,e,2)}function jhr(t,e){return t=b8e(t),Ea(t.getFullYear()%100,e,2)}function Xhr(t,e){return Ea(t.getFullYear()%1e4,e,4)}function Qhr(t,e){var r=t.getDay();return t=r>=4||r===0?Mb(t):Mb.ceil(t),Ea(t.getFullYear()%1e4,e,4)}function Zhr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ea(e/60|0,"0",2)+Ea(e%60,"0",2)}function w2e(t,e){return Ea(t.getUTCDate(),e,2)}function Jhr(t,e){return Ea(t.getUTCHours(),e,2)}function efr(t,e){return Ea(t.getUTCHours()%12||12,e,2)}function tfr(t,e){return Ea(1+yce.count(Lb(t),t),e,3)}function E8e(t,e){return Ea(t.getUTCMilliseconds(),e,3)}function rfr(t,e){return E8e(t,e)+"000"}function nfr(t,e){return Ea(t.getUTCMonth()+1,e,2)}function ifr(t,e){return Ea(t.getUTCMinutes(),e,2)}function afr(t,e){return Ea(t.getUTCSeconds(),e,2)}function sfr(t){var e=t.getUTCDay();return e===0?7:e}function ofr(t,e){return Ea(v8e.count(Lb(t)-1,t),e,2)}function S8e(t){var e=t.getUTCDay();return e>=4||e===0?_A(t):_A.ceil(t)}function lfr(t,e){return t=S8e(t),Ea(_A.count(Lb(t),t)+(Lb(t).getUTCDay()===4),e,2)}function cfr(t){return t.getUTCDay()}function ufr(t,e){return Ea(P7.count(Lb(t)-1,t),e,2)}function dfr(t,e){return Ea(t.getUTCFullYear()%100,e,2)}function hfr(t,e){return t=S8e(t),Ea(t.getUTCFullYear()%100,e,2)}function ffr(t,e){return Ea(t.getUTCFullYear()%1e4,e,4)}function pfr(t,e){var r=t.getUTCDay();return t=r>=4||r===0?_A(t):_A.ceil(t),Ea(t.getUTCFullYear()%1e4,e,4)}function gfr(){return"+0000"}function x2e(){return"%"}function A2e(t){return+t}function R2e(t){return Math.floor(+t/1e3)}var uS,F7;mfr({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"]});function mfr(t){return uS=mhr(t),F7=uS.format,uS.parse,uS.utcFormat,uS.utcParse,uS}function _fr(t){return new Date(t)}function vfr(t){return t instanceof Date?+t:+new Date(+t)}function T8e(t,e,r,n,i,a,s,o,l,u){var d=f8e(),h=d.invert,f=d.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),_=u("%I %p"),v=u("%a %d"),y=u("%b %d"),b=u("%B"),E=u("%Y");function S(T){return(l(T)<T?p:o(T)<T?g:s(T)<T?m:a(T)<T?_:n(T)<T?i(T)<T?v:y:r(T)<T?b:E)(T)}return d.invert=function(T){return new Date(h(T))},d.domain=function(T){return arguments.length?f(Array.from(T,vfr)):f().map(_fr)},d.ticks=function(T){var C=f();return t(C[0],C[C.length-1],T??10)},d.tickFormat=function(T,C){return C==null?S:u(C)},d.nice=function(T){var C=f();return(!T||typeof T.range!="function")&&(T=e(C[0],C[C.length-1],T??10)),T?f(ihr(C,T)):d},d.copy=function(){return h8e(d,T8e(t,e,r,n,i,a,s,o,l,u))},d}function yfr(){return kU.apply(T8e(phr,ghr,c0,Nk,U5,Db,Ok,Rk,P_,F7).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bfr(t){for(var e=t.length/6|0,r=new Array(e),n=0;n<e;)r[n]="#"+t.slice(n*6,++n*6);return r}const Efr=bfr("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function wo(t){return function(){return t}}const O2e=Math.abs,_c=Math.atan2,Av=Math.cos,Sfr=Math.max,xK=Math.min,yp=Math.sin,mT=Math.sqrt,Ec=1e-12,kk=Math.PI,B7=kk/2,YP=2*kk;function Tfr(t){return t>1?0:t<-1?kk:Math.acos(t)}function I2e(t){return t>=1?B7:t<=-1?-B7:Math.asin(t)}function C8e(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new udr(e)}function Cfr(t){return t.innerRadius}function wfr(t){return t.outerRadius}function xfr(t){return t.startAngle}function Afr(t){return t.endAngle}function Rfr(t){return t&&t.padAngle}function Ofr(t,e,r,n,i,a,s,o){var l=r-t,u=n-e,d=s-i,h=o-a,f=h*l-d*u;if(!(f*f<Ec))return f=(d*(e-a)-h*(t-i))/f,[t+f*l,e+f*u]}function xL(t,e,r,n,i,a,s){var o=t-r,l=e-n,u=(s?a:-a)/mT(o*o+l*l),d=u*l,h=-u*o,f=t+d,p=e+h,g=r+d,m=n+h,_=(f+g)/2,v=(p+m)/2,y=g-f,b=m-p,E=y*y+b*b,S=i-a,T=f*m-g*p,C=(b<0?-1:1)*mT(Sfr(0,S*S*E-T*T)),x=(T*b-y*C)/E,A=(-T*y-b*C)/E,R=(T*b+y*C)/E,I=(-T*y+b*C)/E,L=x-_,F=A-v,O=R-_,D=I-v;return L*L+F*F>O*O+D*D&&(x=R,A=I),{cx:x,cy:A,x01:-d,y01:-h,x11:x*(i/S-1),y11:A*(i/S-1)}}function vA(){var t=Cfr,e=wfr,r=wo(0),n=null,i=xfr,a=Afr,s=Rfr,o=null,l=C8e(u);function u(){var d,h,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=i.apply(this,arguments)-B7,m=a.apply(this,arguments)-B7,_=O2e(m-g),v=m>g;if(o||(o=d=l()),p<f&&(h=p,p=f,f=h),!(p>Ec))o.moveTo(0,0);else if(_>YP-Ec)o.moveTo(p*Av(g),p*yp(g)),o.arc(0,0,p,g,m,!v),f>Ec&&(o.moveTo(f*Av(m),f*yp(m)),o.arc(0,0,f,m,g,v));else{var y=g,b=m,E=g,S=m,T=_,C=_,x=s.apply(this,arguments)/2,A=x>Ec&&(n?+n.apply(this,arguments):mT(f*f+p*p)),R=xK(O2e(p-f)/2,+r.apply(this,arguments)),I=R,L=R,F,O;if(A>Ec){var D=I2e(A/f*yp(x)),M=I2e(A/p*yp(x));(T-=D*2)>Ec?(D*=v?1:-1,E+=D,S-=D):(T=0,E=S=(g+m)/2),(C-=M*2)>Ec?(M*=v?1:-1,y+=M,b-=M):(C=0,y=b=(g+m)/2)}var P=p*Av(y),N=p*yp(y),$=f*Av(S),U=f*yp(S);if(R>Ec){var B=p*Av(b),V=p*yp(b),z=f*Av(E),G=f*yp(E),Y;if(_<kk)if(Y=Ofr(P,N,z,G,B,V,$,U)){var W=P-Y[0],Q=N-Y[1],ie=B-Y[0],Z=V-Y[1],re=1/yp(Tfr((W*ie+Q*Z)/(mT(W*W+Q*Q)*mT(ie*ie+Z*Z)))/2),K=mT(Y[0]*Y[0]+Y[1]*Y[1]);I=xK(R,(f-K)/(re-1)),L=xK(R,(p-K)/(re+1))}else I=L=0}C>Ec?L>Ec?(F=xL(z,G,P,N,p,L,v),O=xL(B,V,$,U,p,L,v),o.moveTo(F.cx+F.x01,F.cy+F.y01),L<R?o.arc(F.cx,F.cy,L,_c(F.y01,F.x01),_c(O.y01,O.x01),!v):(o.arc(F.cx,F.cy,L,_c(F.y01,F.x01),_c(F.y11,F.x11),!v),o.arc(0,0,p,_c(F.cy+F.y11,F.cx+F.x11),_c(O.cy+O.y11,O.cx+O.x11),!v),o.arc(O.cx,O.cy,L,_c(O.y11,O.x11),_c(O.y01,O.x01),!v))):(o.moveTo(P,N),o.arc(0,0,p,y,b,!v)):o.moveTo(P,N),!(f>Ec)||!(T>Ec)?o.lineTo($,U):I>Ec?(F=xL($,U,B,V,f,-I,v),O=xL(P,N,z,G,f,-I,v),o.lineTo(F.cx+F.x01,F.cy+F.y01),I<R?o.arc(F.cx,F.cy,I,_c(F.y01,F.x01),_c(O.y01,O.x01),!v):(o.arc(F.cx,F.cy,I,_c(F.y01,F.x01),_c(F.y11,F.x11),!v),o.arc(0,0,f,_c(F.cy+F.y11,F.cx+F.x11),_c(O.cy+O.y11,O.cx+O.x11),v),o.arc(O.cx,O.cy,I,_c(O.y11,O.x11),_c(O.y01,O.x01),!v))):o.arc(0,0,f,S,E,v)}if(o.closePath(),d)return o=null,d+""||null}return u.centroid=function(){var d=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,h=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-kk/2;return[Av(h)*d,yp(h)*d]},u.innerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:wo(+d),u):t},u.outerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:wo(+d),u):e},u.cornerRadius=function(d){return arguments.length?(r=typeof d=="function"?d:wo(+d),u):r},u.padRadius=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:wo(+d),u):n},u.startAngle=function(d){return arguments.length?(i=typeof d=="function"?d:wo(+d),u):i},u.endAngle=function(d){return arguments.length?(a=typeof d=="function"?d:wo(+d),u):a},u.padAngle=function(d){return arguments.length?(s=typeof d=="function"?d:wo(+d),u):s},u.context=function(d){return arguments.length?(o=d??null,u):o},u}function w8e(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function x8e(t){this._context=t}x8e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function vN(t){return new x8e(t)}function Ifr(t){return t[0]}function Nfr(t){return t[1]}function Dk(t,e){var r=wo(!0),n=null,i=vN,a=null,s=C8e(o);t=typeof t=="function"?t:t===void 0?Ifr:wo(t),e=typeof e=="function"?e:e===void 0?Nfr:wo(e);function o(l){var u,d=(l=w8e(l)).length,h,f=!1,p;for(n==null&&(a=i(p=s())),u=0;u<=d;++u)!(u<d&&r(h=l[u],u,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(h,u,l),+e(h,u,l));if(p)return a=null,p+""||null}return o.x=function(l){return arguments.length?(t=typeof l=="function"?l:wo(+l),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:wo(+l),o):e},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:wo(!!l),o):r},o.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),o):i},o.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),o):n},o}function kfr(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Dfr(t){return t}function Mfr(){var t=Dfr,e=kfr,r=null,n=wo(0),i=wo(YP),a=wo(0);function s(o){var l,u=(o=w8e(o)).length,d,h,f=0,p=new Array(u),g=new Array(u),m=+n.apply(this,arguments),_=Math.min(YP,Math.max(-YP,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(_)/u,a.apply(this,arguments)),b=y*(_<0?-1:1),E;for(l=0;l<u;++l)(E=g[p[l]=l]=+t(o[l],l,o))>0&&(f+=E);for(e!=null?p.sort(function(S,T){return e(g[S],g[T])}):r!=null&&p.sort(function(S,T){return r(o[S],o[T])}),l=0,h=f?(_-u*b)/f:0;l<u;++l,m=v)d=p[l],E=g[d],v=m+(E>0?E*h:0)+b,g[d]={data:o[d],index:l,value:E,startAngle:m,endAngle:v,padAngle:y};return g}return s.value=function(o){return arguments.length?(t=typeof o=="function"?o:wo(+o),s):t},s.sortValues=function(o){return arguments.length?(e=o,r=null,s):e},s.sort=function(o){return arguments.length?(r=o,e=null,s):r},s.startAngle=function(o){return arguments.length?(n=typeof o=="function"?o:wo(+o),s):n},s.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:wo(+o),s):i},s.padAngle=function(o){return arguments.length?(a=typeof o=="function"?o:wo(+o),s):a},s}class A8e{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function R8e(t){return new A8e(t,!0)}function O8e(t){return new A8e(t,!1)}function m1(){}function U7(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function DU(t){this._context=t}DU.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:U7(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:U7(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Mk(t){return new DU(t)}function I8e(t){this._context=t}I8e.prototype={areaStart:m1,areaEnd:m1,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:U7(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Lfr(t){return new I8e(t)}function N8e(t){this._context=t}N8e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:U7(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Pfr(t){return new N8e(t)}function k8e(t,e){this._basis=new DU(t),this._beta=e}k8e.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n=t[0],i=e[0],a=t[r]-n,s=e[r]-i,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(n+l*a),this._beta*e[o]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Ffr=(function t(e){function r(n){return e===1?new DU(n):new k8e(n,e)}return r.beta=function(n){return t(+n)},r})(.85);function $7(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function bce(t,e){this._context=t,this._k=(1-e)/6}bce.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:$7(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:$7(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const D8e=(function t(e){function r(n){return new bce(n,e)}return r.tension=function(n){return t(+n)},r})(0);function Ece(t,e){this._context=t,this._k=(1-e)/6}Ece.prototype={areaStart:m1,areaEnd:m1,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:$7(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bfr=(function t(e){function r(n){return new Ece(n,e)}return r.tension=function(n){return t(+n)},r})(0);function Sce(t,e){this._context=t,this._k=(1-e)/6}Sce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$7(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ufr=(function t(e){function r(n){return new Sce(n,e)}return r.tension=function(n){return t(+n)},r})(0);function Tce(t,e,r){var n=t._x1,i=t._y1,a=t._x2,s=t._y2;if(t._l01_a>Ec){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ec){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/d,s=(s*u+t._y1*t._l23_2a-r*t._l12_2a)/d}t._context.bezierCurveTo(n,i,a,s,t._x2,t._y2)}function M8e(t,e){this._context=t,this._alpha=e}M8e.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Tce(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const L8e=(function t(e){function r(n){return e?new M8e(n,e):new bce(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function P8e(t,e){this._context=t,this._alpha=e}P8e.prototype={areaStart:m1,areaEnd:m1,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tce(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $fr=(function t(e){function r(n){return e?new P8e(n,e):new Ece(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function F8e(t,e){this._context=t,this._alpha=e}F8e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:Tce(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Gfr=(function t(e){function r(n){return e?new F8e(n,e):new Sce(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function B8e(t){this._context=t}B8e.prototype={areaStart:m1,areaEnd:m1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function zfr(t){return new B8e(t)}function N2e(t){return t<0?-1:1}function k2e(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(N2e(a)+N2e(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function D2e(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function AK(t,e,r){var n=t._x0,i=t._y0,a=t._x1,s=t._y1,o=(a-n)/3;t._context.bezierCurveTo(n+o,i+o*e,a-o,s-o*r,a,s)}function G7(t){this._context=t}G7.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:AK(this,this._t0,D2e(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,AK(this,D2e(this,r=k2e(this,t,e)),r);break;default:AK(this,this._t0,r=k2e(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function U8e(t){this._context=new $8e(t)}(U8e.prototype=Object.create(G7.prototype)).point=function(t,e){G7.prototype.point.call(this,e,t)};function $8e(t){this._context=t}$8e.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}};function G8e(t){return new G7(t)}function z8e(t){return new U8e(t)}function q8e(t){this._context=t}q8e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=M2e(t),i=M2e(e),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[s],e[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function M2e(t){var e,r=t.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function V8e(t){return new q8e(t)}function MU(t,e){this._context=t,this._t=e}MU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function H8e(t){return new MU(t,.5)}function Y8e(t){return new MU(t,0)}function W8e(t){return new MU(t,1)}function xI(t,e,r){this.k=t,this.x=e,this.y=r}xI.prototype={constructor:xI,scale:function(t){return t===1?this:new xI(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new xI(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};xI.prototype;var ud=k(t=>{const{securityLevel:e}=vt();let r=dr("body");if(e==="sandbox"){const a=dr(`#i${t}`).node()?.contentDocument??document;r=dr(a.body)}return r.select(`#${t}`)},"selectSvgElement");function Cce(t){return typeof t>"u"||t===null}k(Cce,"isNothing");function K8e(t){return typeof t=="object"&&t!==null}k(K8e,"isObject");function j8e(t){return Array.isArray(t)?t:Cce(t)?[]:[t]}k(j8e,"toArray");function X8e(t,e){var r,n,i,a;if(e)for(a=Object.keys(e),r=0,n=a.length;r<n;r+=1)i=a[r],t[i]=e[i];return t}k(X8e,"extend");function Q8e(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}k(Q8e,"repeat");function Z8e(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}k(Z8e,"isNegativeZero");var qfr=Cce,Vfr=K8e,Hfr=j8e,Yfr=Q8e,Wfr=Z8e,Kfr=X8e,dl={isNothing:qfr,isObject:Vfr,toArray:Hfr,repeat:Yfr,isNegativeZero:Wfr,extend:Kfr};function wce(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`

`+t.mark.snippet),n+" "+r):n}k(wce,"formatError");function yA(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=wce(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}k(yA,"YAMLException$1");yA.prototype=Object.create(Error.prototype);yA.prototype.constructor=yA;yA.prototype.toString=k(function(e){return this.name+": "+wce(this,e)},"toString");var Xu=yA;function WP(t,e,r,n,i){var a="",s="",o=Math.floor(i/2)-1;return n-e>o&&(a=" ... ",e=n-o+a.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+a.length}}k(WP,"getLine");function KP(t,e){return dl.repeat(" ",e-t.length)+t}k(KP,"padStart");function J8e(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],a,s=-1;a=r.exec(t.buffer);)i.push(a.index),n.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",l,u,d=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+d+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)u=WP(t.buffer,n[s-l],i[s-l],t.position-(n[s]-n[s-l]),h),o=dl.repeat(" ",e.indent)+KP((t.line-l+1).toString(),d)+" | "+u.str+`
`+o;for(u=WP(t.buffer,n[s],i[s],t.position,h),o+=dl.repeat(" ",e.indent)+KP((t.line+1).toString(),d)+" | "+u.str+`
`,o+=dl.repeat("-",e.indent+d+3+u.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)u=WP(t.buffer,n[s+l],i[s+l],t.position-(n[s]-n[s+l]),h),o+=dl.repeat(" ",e.indent)+KP((t.line+l+1).toString(),d)+" | "+u.str+`
`;return o.replace(/\n$/,"")}k(J8e,"makeSnippet");var jfr=J8e,Xfr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Qfr=["scalar","sequence","mapping"];function eFe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}k(eFe,"compileStyleAliases");function tFe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Xfr.indexOf(r)===-1)throw new Xu('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=eFe(e.styleAliases||null),Qfr.indexOf(this.kind)===-1)throw new Xu('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}k(tFe,"Type$1");var Nc=tFe;function dee(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}k(dee,"compileList");function rFe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(k(n,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}k(rFe,"compileMap");function z7(t){return this.extend(t)}k(z7,"Schema$1");z7.prototype.extend=k(function(e){var r=[],n=[];if(e instanceof Nc)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&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Xu("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Nc))throw new Xu("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Xu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Xu("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Nc))throw new Xu("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(z7.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=dee(i,"implicit"),i.compiledExplicit=dee(i,"explicit"),i.compiledTypeMap=rFe(i.compiledImplicit,i.compiledExplicit),i},"extend");var Zfr=z7,Jfr=new Nc("tag:yaml.org,2002:str",{kind:"scalar",construct:k(function(t){return t!==null?t:""},"construct")}),epr=new Nc("tag:yaml.org,2002:seq",{kind:"sequence",construct:k(function(t){return t!==null?t:[]},"construct")}),tpr=new Nc("tag:yaml.org,2002:map",{kind:"mapping",construct:k(function(t){return t!==null?t:{}},"construct")}),rpr=new Zfr({explicit:[Jfr,epr,tpr]});function nFe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}k(nFe,"resolveYamlNull");function iFe(){return null}k(iFe,"constructYamlNull");function aFe(t){return t===null}k(aFe,"isNull");var npr=new Nc("tag:yaml.org,2002:null",{kind:"scalar",resolve:nFe,construct:iFe,predicate:aFe,represent:{canonical:k(function(){return"~"},"canonical"),lowercase:k(function(){return"null"},"lowercase"),uppercase:k(function(){return"NULL"},"uppercase"),camelcase:k(function(){return"Null"},"camelcase"),empty:k(function(){return""},"empty")},defaultStyle:"lowercase"});function sFe(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}k(sFe,"resolveYamlBoolean");function oFe(t){return t==="true"||t==="True"||t==="TRUE"}k(oFe,"constructYamlBoolean");function lFe(t){return Object.prototype.toString.call(t)==="[object Boolean]"}k(lFe,"isBoolean");var ipr=new Nc("tag:yaml.org,2002:bool",{kind:"scalar",resolve:sFe,construct:oFe,predicate:lFe,represent:{lowercase:k(function(t){return t?"true":"false"},"lowercase"),uppercase:k(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:k(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function cFe(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}k(cFe,"isHexCode");function uFe(t){return 48<=t&&t<=55}k(uFe,"isOctCode");function dFe(t){return 48<=t&&t<=57}k(dFe,"isDecCode");function hFe(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!cFe(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!uFe(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!dFe(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}k(hFe,"resolveYamlInteger");function fFe(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}k(fFe,"constructYamlInteger");function pFe(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!dl.isNegativeZero(t)}k(pFe,"isInteger");var apr=new Nc("tag:yaml.org,2002:int",{kind:"scalar",resolve:hFe,construct:fFe,predicate:pFe,represent:{binary:k(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:k(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:k(function(t){return t.toString(10)},"decimal"),hexadecimal:k(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),spr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function gFe(t){return!(t===null||!spr.test(t)||t[t.length-1]==="_")}k(gFe,"resolveYamlFloat");function mFe(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}k(mFe,"constructYamlFloat");var opr=/^[-+]?[0-9]+e/;function _Fe(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dl.isNegativeZero(t))return"-0.0";return r=t.toString(10),opr.test(r)?r.replace("e",".e"):r}k(_Fe,"representYamlFloat");function vFe(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||dl.isNegativeZero(t))}k(vFe,"isFloat");var lpr=new Nc("tag:yaml.org,2002:float",{kind:"scalar",resolve:gFe,construct:mFe,predicate:vFe,represent:_Fe,defaultStyle:"lowercase"}),yFe=rpr.extend({implicit:[npr,ipr,apr,lpr]}),cpr=yFe,bFe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),EFe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function SFe(t){return t===null?!1:bFe.exec(t)!==null||EFe.exec(t)!==null}k(SFe,"resolveYamlTimestamp");function TFe(t){var e,r,n,i,a,s,o,l=0,u=null,d,h,f;if(e=bFe.exec(t),e===null&&(e=EFe.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(d=+e[10],h=+(e[11]||0),u=(d*60+h)*6e4,e[9]==="-"&&(u=-u)),f=new Date(Date.UTC(r,n,i,a,s,o,l)),u&&f.setTime(f.getTime()-u),f}k(TFe,"constructYamlTimestamp");function CFe(t){return t.toISOString()}k(CFe,"representYamlTimestamp");var upr=new Nc("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:SFe,construct:TFe,instanceOf:Date,represent:CFe});function wFe(t){return t==="<<"||t===null}k(wFe,"resolveYamlMerge");var dpr=new Nc("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wFe}),xce=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function xFe(t){if(t===null)return!1;var e,r,n=0,i=t.length,a=xce;for(r=0;r<i;r++)if(e=a.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}k(xFe,"resolveYamlBinary");function AFe(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=xce,s=0,o=[];for(e=0;e<i;e++)e%4===0&&e&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}k(AFe,"constructYamlBinary");function RFe(t){var e="",r=0,n,i,a=t.length,s=xce;for(n=0;n<a;n++)n%3===0&&n&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=a%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}k(RFe,"representYamlBinary");function OFe(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}k(OFe,"isBinary");var hpr=new Nc("tag:yaml.org,2002:binary",{kind:"scalar",resolve:xFe,construct:AFe,predicate:OFe,represent:RFe}),fpr=Object.prototype.hasOwnProperty,ppr=Object.prototype.toString;function IFe(t){if(t===null)return!0;var e=[],r,n,i,a,s,o=t;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],s=!1,ppr.call(i)!=="[object Object]")return!1;for(a in i)if(fpr.call(i,a))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(a)===-1)e.push(a);else return!1}return!0}k(IFe,"resolveYamlOmap");function NFe(t){return t!==null?t:[]}k(NFe,"constructYamlOmap");var gpr=new Nc("tag:yaml.org,2002:omap",{kind:"sequence",resolve:IFe,construct:NFe}),mpr=Object.prototype.toString;function kFe(t){if(t===null)return!0;var e,r,n,i,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(n=s[e],mpr.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;a[e]=[i[0],n[i[0]]]}return!0}k(kFe,"resolveYamlPairs");function DFe(t){if(t===null)return[];var e,r,n,i,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1)n=s[e],i=Object.keys(n),a[e]=[i[0],n[i[0]]];return a}k(DFe,"constructYamlPairs");var _pr=new Nc("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:kFe,construct:DFe}),vpr=Object.prototype.hasOwnProperty;function MFe(t){if(t===null)return!0;var e,r=t;for(e in r)if(vpr.call(r,e)&&r[e]!==null)return!1;return!0}k(MFe,"resolveYamlSet");function LFe(t){return t!==null?t:{}}k(LFe,"constructYamlSet");var ypr=new Nc("tag:yaml.org,2002:set",{kind:"mapping",resolve:MFe,construct:LFe}),PFe=cpr.extend({implicit:[upr,dpr],explicit:[hpr,gpr,_pr,ypr]}),_1=Object.prototype.hasOwnProperty,q7=1,FFe=2,BFe=3,V7=4,RK=1,bpr=2,L2e=3,Epr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Spr=/[\x85\u2028\u2029]/,Tpr=/[,\[\]\{\}]/,UFe=/^(?:!|!!|![a-z\-]+!)$/i,$Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function hee(t){return Object.prototype.toString.call(t)}k(hee,"_class");function Ff(t){return t===10||t===13}k(Ff,"is_EOL");function j_(t){return t===9||t===32}k(j_,"is_WHITE_SPACE");function au(t){return t===9||t===32||t===10||t===13}k(au,"is_WS_OR_EOL");function Py(t){return t===44||t===91||t===93||t===123||t===125}k(Py,"is_FLOW_INDICATOR");function GFe(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}k(GFe,"fromHexCode");function zFe(t){return t===120?2:t===117?4:t===85?8:0}k(zFe,"escapedHexLen");function qFe(t){return 48<=t&&t<=57?t-48:-1}k(qFe,"fromDecimalCode");function fee(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?"	":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}k(fee,"simpleEscapeSequence");function VFe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}k(VFe,"charFromCodepoint");function Ace(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}k(Ace,"setProperty");var HFe=new Array(256),YFe=new Array(256);for(Rv=0;Rv<256;Rv++)HFe[Rv]=fee(Rv)?1:0,YFe[Rv]=fee(Rv);var Rv;function WFe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||PFe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}k(WFe,"State$1");function Rce(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=jfr(r),new Xu(e,r)}k(Rce,"generateError");function Dn(t,e){throw Rce(t,e)}k(Dn,"throwError");function Lk(t,e){t.onWarning&&t.onWarning.call(null,Rce(t,e))}k(Lk,"throwWarning");var P2e={YAML:k(function(e,r,n){var i,a,s;e.version!==null&&Dn(e,"duplication of %YAML directive"),n.length!==1&&Dn(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Dn(e,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&Dn(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&Lk(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:k(function(e,r,n){var i,a;n.length!==2&&Dn(e,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],UFe.test(i)||Dn(e,"ill-formed tag handle (first argument) of the TAG directive"),_1.call(e.tagMap,i)&&Dn(e,'there is a previously declared suffix for "'+i+'" tag handle'),$Fe.test(a)||Dn(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Dn(e,"tag prefix is malformed: "+a)}e.tagMap[i]=a},"handleTagDirective")};function Ym(t,e,r,n){var i,a,s,o;if(e<r){if(o=t.input.slice(e,r),n)for(i=0,a=o.length;i<a;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||Dn(t,"expected valid JSON character");else Epr.test(o)&&Dn(t,"the stream contains non-printable characters");t.result+=o}}k(Ym,"captureSegment");function pee(t,e,r,n){var i,a,s,o;for(dl.isObject(r)||Dn(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,o=i.length;s<o;s+=1)a=i[s],_1.call(e,a)||(Ace(e,a,r[a]),n[a]=!0)}k(pee,"mergeMappings");function Fy(t,e,r,n,i,a,s,o,l){var u,d;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,d=i.length;u<d;u+=1)Array.isArray(i[u])&&Dn(t,"nested arrays are not supported inside keys"),typeof i=="object"&&hee(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&hee(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,d=a.length;u<d;u+=1)pee(t,e,a[u],r);else pee(t,e,a,r);else!t.json&&!_1.call(r,i)&&_1.call(e,i)&&(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=l||t.position,Dn(t,"duplicated mapping key")),Ace(e,i,a),delete r[i];return e}k(Fy,"storeMappingPair");function LU(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Dn(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}k(LU,"readLineBreak");function Oo(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;j_(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(Ff(i))for(LU(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Lk(t,"deficient indentation"),n}k(Oo,"skipSeparationSpace");function $5(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||au(r)))}k($5,"testDocumentSeparator");function PU(t,e){e===1?t.result+=" ":e>1&&(t.result+=dl.repeat(`
`,e-1))}k(PU,"writeFoldedLines");function KFe(t,e,r){var n,i,a,s,o,l,u,d,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),au(p)||Py(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),au(i)||r&&Py(i)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),au(i)||r&&Py(i))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),au(n))break}else{if(t.position===t.lineStart&&$5(t)||r&&Py(p))break;if(Ff(p))if(l=t.line,u=t.lineStart,d=t.lineIndent,Oo(t,!1,-1),t.lineIndent>=e){o=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=u,t.lineIndent=d;break}}o&&(Ym(t,a,s,!1),PU(t,t.line-l),a=s=t.position,o=!1),j_(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return Ym(t,a,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}k(KFe,"readPlainScalar");function jFe(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ym(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else Ff(r)?(Ym(t,n,i,!0),PU(t,Oo(t,!1,e)),n=i=t.position):t.position===t.lineStart&&$5(t)?Dn(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Dn(t,"unexpected end of the stream within a single quoted scalar")}k(jFe,"readSingleQuotedScalar");function XFe(t,e){var r,n,i,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return Ym(t,r,t.position,!0),t.position++,!0;if(o===92){if(Ym(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),Ff(o))Oo(t,!1,e);else if(o<256&&HFe[o])t.result+=YFe[o],t.position++;else if((s=zFe(o))>0){for(i=s,a=0;i>0;i--)o=t.input.charCodeAt(++t.position),(s=GFe(o))>=0?a=(a<<4)+s:Dn(t,"expected hexadecimal character");t.result+=VFe(a),t.position++}else Dn(t,"unknown escape sequence");r=n=t.position}else Ff(o)?(Ym(t,r,n,!0),PU(t,Oo(t,!1,e)),r=n=t.position):t.position===t.lineStart&&$5(t)?Dn(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Dn(t,"unexpected end of the stream within a double quoted scalar")}k(XFe,"readDoubleQuotedScalar");function QFe(t,e){var r=!0,n,i,a,s=t.tag,o,l=t.anchor,u,d,h,f,p,g=Object.create(null),m,_,v,y;if(y=t.input.charCodeAt(t.position),y===91)d=93,p=!1,o=[];else if(y===123)d=125,p=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),y=t.input.charCodeAt(++t.position);y!==0;){if(Oo(t,!0,e),y=t.input.charCodeAt(t.position),y===d)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=o,!0;r?y===44&&Dn(t,"expected the node content, but found ','"):Dn(t,"missed comma between flow collection entries"),_=m=v=null,h=f=!1,y===63&&(u=t.input.charCodeAt(t.position+1),au(u)&&(h=f=!0,t.position++,Oo(t,!0,e))),n=t.line,i=t.lineStart,a=t.position,Pb(t,e,q7,!1,!0),_=t.tag,m=t.result,Oo(t,!0,e),y=t.input.charCodeAt(t.position),(f||t.line===n)&&y===58&&(h=!0,y=t.input.charCodeAt(++t.position),Oo(t,!0,e),Pb(t,e,q7,!1,!0),v=t.result),p?Fy(t,o,g,_,m,v,n,i,a):h?o.push(Fy(t,null,g,_,m,v,n,i,a)):o.push(m),Oo(t,!0,e),y=t.input.charCodeAt(t.position),y===44?(r=!0,y=t.input.charCodeAt(++t.position)):r=!1}Dn(t,"unexpected end of the stream within a flow collection")}k(QFe,"readFlowCollection");function ZFe(t,e){var r,n,i=RK,a=!1,s=!1,o=e,l=0,u=!1,d,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)RK===i?i=h===43?L2e:bpr:Dn(t,"repeat of a chomping mode identifier");else if((d=qFe(h))>=0)d===0?Dn(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Dn(t,"repeat of an indentation width identifier"):(o=e+d-1,s=!0);else break;if(j_(h)){do h=t.input.charCodeAt(++t.position);while(j_(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Ff(h)&&h!==0)}for(;h!==0;){for(LU(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndent<o)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>o&&(o=t.lineIndent),Ff(h)){l++;continue}if(t.lineIndent<o){i===L2e?t.result+=dl.repeat(`
`,a?1+l:l):i===RK&&a&&(t.result+=`
`);break}for(n?j_(h)?(u=!0,t.result+=dl.repeat(`
`,a?1+l:l)):u?(u=!1,t.result+=dl.repeat(`
`,l+1)):l===0?a&&(t.result+=" "):t.result+=dl.repeat(`
`,l):t.result+=dl.repeat(`
`,a?1+l:l),a=!0,s=!0,l=0,r=t.position;!Ff(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Ym(t,r,t.position,!1)}return!0}k(ZFe,"readBlockScalar");function gee(t,e){var r,n=t.tag,i=t.anchor,a=[],s,o=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Dn(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!au(s))));){if(o=!0,t.position++,Oo(t,!0,-1)&&t.lineIndent<=e){a.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Pb(t,e,BFe,!1,!0),a.push(t.result),Oo(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Dn(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=a,!0):!1}k(gee,"readBlockSequence");function JFe(t,e,r){var n,i,a,s,o,l,u=t.tag,d=t.anchor,h={},f=Object.create(null),p=null,g=null,m=null,_=!1,v=!1,y;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),y=t.input.charCodeAt(t.position);y!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Dn(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,(y===63||y===58)&&au(n))y===63?(_&&(Fy(t,h,f,p,g,null,s,o,l),p=g=m=null),v=!0,_=!0,i=!0):_?(_=!1,i=!0):Dn(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,y=n;else{if(s=t.line,o=t.lineStart,l=t.position,!Pb(t,r,FFe,!1,!0))break;if(t.line===a){for(y=t.input.charCodeAt(t.position);j_(y);)y=t.input.charCodeAt(++t.position);if(y===58)y=t.input.charCodeAt(++t.position),au(y)||Dn(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Fy(t,h,f,p,g,null,s,o,l),p=g=m=null),v=!0,_=!1,i=!1,p=t.tag,g=t.result;else if(v)Dn(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=d,!0}else if(v)Dn(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=d,!0}if((t.line===a||t.lineIndent>e)&&(_&&(s=t.line,o=t.lineStart,l=t.position),Pb(t,e,V7,!0,i)&&(_?g=t.result:m=t.result),_||(Fy(t,h,f,p,g,m,s,o,l),p=g=m=null),Oo(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&y!==0)Dn(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&Fy(t,h,f,p,g,null,s,o,l),v&&(t.tag=u,t.anchor=d,t.kind="mapping",t.result=h),v}k(JFe,"readBlockMapping");function eBe(t){var e,r=!1,n=!1,i,a,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&Dn(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(n=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(a=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):Dn(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!au(s);)s===33&&(n?Dn(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),UFe.test(i)||Dn(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);a=t.input.slice(e,t.position),Tpr.test(a)&&Dn(t,"tag suffix cannot contain flow indicator characters")}a&&!$Fe.test(a)&&Dn(t,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Dn(t,"tag name is malformed: "+a)}return r?t.tag=a:_1.call(t.tagMap,i)?t.tag=t.tagMap[i]+a:i==="!"?t.tag="!"+a:i==="!!"?t.tag="tag:yaml.org,2002:"+a:Dn(t,'undeclared tag handle "'+i+'"'),!0}k(eBe,"readTagProperty");function tBe(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Dn(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!au(r)&&!Py(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Dn(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}k(tBe,"readAnchorProperty");function rBe(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!au(n)&&!Py(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Dn(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),_1.call(t.anchorMap,r)||Dn(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Oo(t,!0,-1),!0}k(rBe,"readAlias");function Pb(t,e,r,n,i){var a,s,o,l=1,u=!1,d=!1,h,f,p,g,m,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=o=V7===r||BFe===r,n&&Oo(t,!0,-1)&&(u=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;eBe(t)||tBe(t);)Oo(t,!0,-1)?(u=!0,o=a,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):o=!1;if(o&&(o=u||i),(l===1||V7===r)&&(q7===r||FFe===r?m=e:m=e+1,_=t.position-t.lineStart,l===1?o&&(gee(t,_)||JFe(t,_,m))||QFe(t,m)?d=!0:(s&&ZFe(t,m)||jFe(t,m)||XFe(t,m)?d=!0:rBe(t)?(d=!0,(t.tag!==null||t.anchor!==null)&&Dn(t,"alias node should not have any properties")):KFe(t,m,q7===r)&&(d=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(d=o&&gee(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Dn(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(_1.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,p=t.typeMap.multi[t.kind||"fallback"],h=0,f=p.length;h<f;h+=1)if(t.tag.slice(0,p[h].tag.length)===p[h].tag){g=p[h];break}g||Dn(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Dn(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Dn(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}k(Pb,"composeNode");function nBe(t){var e=t.position,r,n,i,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Oo(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!au(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Dn(t,"directive name must not be less than one character in length");s!==0;){for(;j_(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Ff(s));break}if(Ff(s))break;for(r=t.position;s!==0&&!au(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}s!==0&&LU(t),_1.call(P2e,n)?P2e[n](t,n,i):Lk(t,'unknown document directive "'+n+'"')}if(Oo(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Oo(t,!0,-1)):a&&Dn(t,"directives end mark is expected"),Pb(t,t.lineIndent-1,V7,!1,!0),Oo(t,!0,-1),t.checkLineBreaks&&Spr.test(t.input.slice(e,t.position))&&Lk(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&$5(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Oo(t,!0,-1));return}if(t.position<t.length-1)Dn(t,"end of the stream or a document separator is expected");else return}k(nBe,"readDocument");function Oce(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new WFe(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,Dn(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)nBe(r);return r.documents}k(Oce,"loadDocuments");function Cpr(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Oce(t,r);if(typeof e!="function")return n;for(var i=0,a=n.length;i<a;i+=1)e(n[i])}k(Cpr,"loadAll$1");function iBe(t,e){var r=Oce(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Xu("expected a single document in the stream, but found more")}}k(iBe,"load$1");var wpr=iBe,xpr={load:wpr},aBe=Object.prototype.toString,sBe=Object.prototype.hasOwnProperty,Ice=65279,Apr=9,Pk=10,Rpr=13,Opr=32,Ipr=33,Npr=34,mee=35,kpr=37,Dpr=38,Mpr=39,Lpr=42,oBe=44,Ppr=45,H7=58,Fpr=61,Bpr=62,Upr=63,$pr=64,lBe=91,cBe=93,Gpr=96,uBe=123,zpr=124,dBe=125,Mc={};Mc[0]="\\0";Mc[7]="\\a";Mc[8]="\\b";Mc[9]="\\t";Mc[10]="\\n";Mc[11]="\\v";Mc[12]="\\f";Mc[13]="\\r";Mc[27]="\\e";Mc[34]='\\"';Mc[92]="\\\\";Mc[133]="\\N";Mc[160]="\\_";Mc[8232]="\\L";Mc[8233]="\\P";var qpr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Vpr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function hBe(t,e){var r,n,i,a,s,o,l;if(e===null)return{};for(r={},n=Object.keys(e),i=0,a=n.length;i<a;i+=1)s=n[i],o=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=t.compiledTypeMap.fallback[s],l&&sBe.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}k(hBe,"compileStyleMap");function fBe(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Xu("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+dl.repeat("0",n-e.length)+e}k(fBe,"encodeHex");var Hpr=1,Fk=2;function pBe(t){this.schema=t.schema||PFe,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=dl.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=hBe(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Fk:Hpr,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}k(pBe,"State");function _ee(t,e){for(var r=dl.repeat(" ",e),n=0,i=-1,a="",s,o=t.length;n<o;)i=t.indexOf(`
`,n),i===-1?(s=t.slice(n),n=o):(s=t.slice(n,i+1),n=i+1),s.length&&s!==`
`&&(a+=r),a+=s;return a}k(_ee,"indentString");function Y7(t,e){return`
`+dl.repeat(" ",t.indent*e)}k(Y7,"generateNextLine");function gBe(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}k(gBe,"testImplicitResolving");function Bk(t){return t===Opr||t===Apr}k(Bk,"isWhitespace");function bA(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Ice||65536<=t&&t<=1114111}k(bA,"isPrintable");function vee(t){return bA(t)&&t!==Ice&&t!==Rpr&&t!==Pk}k(vee,"isNsCharOrWhitespace");function yee(t,e,r){var n=vee(t),i=n&&!Bk(t);return(r?n:n&&t!==oBe&&t!==lBe&&t!==cBe&&t!==uBe&&t!==dBe)&&t!==mee&&!(e===H7&&!i)||vee(e)&&!Bk(e)&&t===mee||e===H7&&i}k(yee,"isPlainSafe");function mBe(t){return bA(t)&&t!==Ice&&!Bk(t)&&t!==Ppr&&t!==Upr&&t!==H7&&t!==oBe&&t!==lBe&&t!==cBe&&t!==uBe&&t!==dBe&&t!==mee&&t!==Dpr&&t!==Lpr&&t!==Ipr&&t!==zpr&&t!==Fpr&&t!==Bpr&&t!==Mpr&&t!==Npr&&t!==kpr&&t!==$pr&&t!==Gpr}k(mBe,"isPlainSafeFirst");function _Be(t){return!Bk(t)&&t!==H7}k(_Be,"isPlainSafeLast");function _T(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}k(_T,"codePointAt");function Nce(t){var e=/^\n* /;return e.test(t)}k(Nce,"needIndentIndicator");var vBe=1,bee=2,yBe=3,bBe=4,qS=5;function EBe(t,e,r,n,i,a,s,o){var l,u=0,d=null,h=!1,f=!1,p=n!==-1,g=-1,m=mBe(_T(t,0))&&_Be(_T(t,t.length-1));if(e||s)for(l=0;l<t.length;u>=65536?l+=2:l++){if(u=_T(t,l),!bA(u))return qS;m=m&&yee(u,d,o),d=u}else{for(l=0;l<t.length;u>=65536?l+=2:l++){if(u=_T(t,l),u===Pk)h=!0,p&&(f=f||l-g-1>n&&t[g+1]!==" ",g=l);else if(!bA(u))return qS;m=m&&yee(u,d,o),d=u}f=f||p&&l-g-1>n&&t[g+1]!==" "}return!h&&!f?m&&!s&&!i(t)?vBe:a===Fk?qS:bee:r>9&&Nce(t)?qS:s?a===Fk?qS:bee:f?bBe:yBe}k(EBe,"chooseScalarStyle");function SBe(t,e,r,n,i){t.dump=(function(){if(e.length===0)return t.quotingType===Fk?'""':"''";if(!t.noCompatMode&&(qpr.indexOf(e)!==-1||Vpr.test(e)))return t.quotingType===Fk?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),o=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return gBe(t,u)}switch(k(l,"testAmbiguity"),EBe(e,o,t.indent,s,l,t.quotingType,t.forceQuotes&&!n,i)){case vBe:return e;case bee:return"'"+e.replace(/'/g,"''")+"'";case yBe:return"|"+Eee(e,t.indent)+See(_ee(e,a));case bBe:return">"+Eee(e,t.indent)+See(_ee(TBe(e,s),a));case qS:return'"'+CBe(e)+'"';default:throw new Xu("impossible error: invalid scalar style")}})()}k(SBe,"writeScalar");function Eee(t,e){var r=Nce(t)?String(e):"",n=t[t.length-1]===`
`,i=n&&(t[t.length-2]===`
`||t===`
`),a=i?"+":n?"":"-";return r+a+`
`}k(Eee,"blockHeader");function See(t){return t[t.length-1]===`
`?t.slice(0,-1):t}k(See,"dropEndingNewline");function TBe(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var u=t.indexOf(`
`);return u=u!==-1?u:t.length,r.lastIndex=u,Tee(t.slice(0,u),e)})(),i=t[0]===`
`||t[0]===" ",a,s;s=r.exec(t);){var o=s[1],l=s[2];a=l[0]===" ",n+=o+(!i&&!a&&l!==""?`
`:"")+Tee(l,e),i=a}return n}k(TBe,"foldString");function Tee(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,a,s=0,o=0,l="";n=r.exec(t);)o=n.index,o-i>e&&(a=s>i?s:o,l+=`
`+t.slice(i,a),i=a+1),s=o;return l+=`
`,t.length-i>e&&s>i?l+=t.slice(i,s)+`
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}k(Tee,"foldLine");function CBe(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=_T(t,i),n=Mc[r],!n&&bA(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||fBe(r);return e}k(CBe,"escapeString");function wBe(t,e,r){var n="",i=t.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],t.replacer&&(o=t.replacer.call(r,String(a),o)),(mg(t,e,o,!1,!1)||typeof o>"u"&&mg(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}k(wBe,"writeFlowSequence");function Cee(t,e,r,n){var i="",a=t.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],t.replacer&&(l=t.replacer.call(r,String(s),l)),(mg(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&mg(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Y7(t,e)),t.dump&&Pk===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=a,t.dump=i||"[]"}k(Cee,"writeBlockSequence");function xBe(t,e,r){var n="",i=t.tag,a=Object.keys(r),s,o,l,u,d;for(s=0,o=a.length;s<o;s+=1)d="",n!==""&&(d+=", "),t.condenseFlow&&(d+='"'),l=a[s],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),mg(t,e,l,!1,!1)&&(t.dump.length>1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),mg(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=i,t.dump="{"+n+"}"}k(xBe,"writeFlowMapping");function ABe(t,e,r,n){var i="",a=t.tag,s=Object.keys(r),o,l,u,d,h,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Xu("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)f="",(!n||i!=="")&&(f+=Y7(t,e)),u=s[o],d=r[u],t.replacer&&(d=t.replacer.call(r,u,d)),mg(t,e+1,u,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&Pk===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Y7(t,e)),mg(t,e+1,d,!0,h)&&(t.dump&&Pk===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=a,t.dump=i||"{}"}k(ABe,"writeBlockMapping");function wee(t,e,r){var n,i,a,s,o,l;for(i=r?t.explicitTypes:t.implicitTypes,a=0,s=i.length;a<s;a+=1)if(o=i[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(l=t.styleMap[o.tag]||o.defaultStyle,aBe.call(o.represent)==="[object Function]")n=o.represent(e,l);else if(sBe.call(o.represent,l))n=o.represent[l](e,l);else throw new Xu("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}k(wee,"detectType");function mg(t,e,r,n,i,a,s){t.tag=null,t.dump=r,wee(t,r,!1)||wee(t,r,!0);var o=aBe.call(t.dump),l=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var d=o==="[object Object]"||o==="[object Array]",h,f;if(d&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(d&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(ABe(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(xBe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?Cee(t,e-1,t.dump,i):Cee(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(wBe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&SBe(t,t.dump,e,a,l);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Xu("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}k(mg,"writeNode");function RBe(t,e){var r=[],n=[],i,a;for(W7(t,r,n),i=0,a=n.length;i<a;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(a)}k(RBe,"getDuplicateReferences");function W7(t,e,r){var n,i,a;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)W7(t[i],e,r);else for(n=Object.keys(t),i=0,a=n.length;i<a;i+=1)W7(t[n[i]],e,r)}k(W7,"inspectNode");function Ypr(t,e){e=e||{};var r=new pBe(e);r.noRefs||RBe(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),mg(r,0,n,!0,!0)?r.dump+`
`:""}k(Ypr,"dump$1");function Wpr(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}k(Wpr,"renamed");var FU=yFe,BU=xpr.load;var Vp=k((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";const r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),Sc={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},F2e={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function AI(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=Ts(t),e=Ts(e);const[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],s=i-r,o=a-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}k(AI,"calculateDeltaAndAngle");var Ts=k(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),OBe=k(t=>({x:k(function(e,r,n){let i=0;const a=Ts(n[0]).x<Ts(n[n.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Sc,t.arrowTypeStart)){const{angle:p,deltaX:g}=AI(n[0],n[1]);i=Sc[t.arrowTypeStart]*Math.cos(p)*(g>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sc,t.arrowTypeEnd)){const{angle:p,deltaX:g}=AI(n[n.length-1],n[n.length-2]);i=Sc[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const s=Math.abs(Ts(e).x-Ts(n[n.length-1]).x),o=Math.abs(Ts(e).y-Ts(n[n.length-1]).y),l=Math.abs(Ts(e).x-Ts(n[0]).x),u=Math.abs(Ts(e).y-Ts(n[0]).y),d=Sc[t.arrowTypeStart],h=Sc[t.arrowTypeEnd],f=1;if(s<h&&s>0&&o<h){let p=h+f-s;p*=a==="right"?-1:1,i-=p}if(l<d&&l>0&&u<d){let p=d+f-l;p*=a==="right"?-1:1,i+=p}return Ts(e).x+i},"x"),y:k(function(e,r,n){let i=0;const a=Ts(n[0]).y<Ts(n[n.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Sc,t.arrowTypeStart)){const{angle:p,deltaY:g}=AI(n[0],n[1]);i=Sc[t.arrowTypeStart]*Math.abs(Math.sin(p))*(g>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sc,t.arrowTypeEnd)){const{angle:p,deltaY:g}=AI(n[n.length-1],n[n.length-2]);i=Sc[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const s=Math.abs(Ts(e).y-Ts(n[n.length-1]).y),o=Math.abs(Ts(e).x-Ts(n[n.length-1]).x),l=Math.abs(Ts(e).y-Ts(n[0]).y),u=Math.abs(Ts(e).x-Ts(n[0]).x),d=Sc[t.arrowTypeStart],h=Sc[t.arrowTypeEnd],f=1;if(s<h&&s>0&&o<h){let p=h+f-s;p*=a==="up"?-1:1,i-=p}if(l<d&&l>0&&u<d){let p=d+f-l;p*=a==="up"?-1:1,i+=p}return Ts(e).y+i},"y")}),"getLineFunctionsWithOffset"),AL={},el={},B2e;function Kpr(){return B2e||(B2e=1,Object.defineProperty(el,"__esModule",{value:!0}),el.BLANK_URL=el.relativeFirstCharacters=el.whitespaceEscapeCharsRegex=el.urlSchemeRegex=el.ctrlCharactersRegex=el.htmlCtrlEntityRegex=el.htmlEntitiesRegex=el.invalidProtocolRegex=void 0,el.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,el.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,el.htmlCtrlEntityRegex=/&(newline|tab);/gi,el.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,el.urlSchemeRegex=/^.+(:|&colon;)/gim,el.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,el.relativeFirstCharacters=[".","/"],el.BLANK_URL="about:blank"),el}var U2e;function jpr(){if(U2e)return AL;U2e=1,Object.defineProperty(AL,"__esModule",{value:!0}),AL.sanitizeUrl=a;var t=Kpr();function e(s){return t.relativeFirstCharacters.indexOf(s[0])>-1}function r(s){var o=s.replace(t.ctrlCharactersRegex,"");return o.replace(t.htmlEntitiesRegex,function(l,u){return String.fromCharCode(u)})}function n(s){return URL.canParse(s)}function i(s){try{return decodeURIComponent(s)}catch{return s}}function a(s){if(!s)return t.BLANK_URL;var o,l=i(s.trim());do l=r(l).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),l=i(l),o=l.match(t.ctrlCharactersRegex)||l.match(t.htmlEntitiesRegex)||l.match(t.htmlCtrlEntityRegex)||l.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var u=l;if(!u)return t.BLANK_URL;if(e(u))return u;var d=u.trimStart(),h=d.match(t.urlSchemeRegex);if(!h)return u;var f=h[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=d.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return p;if(f==="http:"||f==="https:"){if(!n(p))return t.BLANK_URL;var g=new URL(p);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return p}return AL}var pE=jpr();function Xpr(t){return Number.isSafeInteger(t)&&t>=0}function IBe(t){return t!=null&&typeof t!="function"&&Xpr(t.length)}function Qpr(t){return t==="__proto__"}function UU(t){return t==null||typeof t!="object"&&typeof t!="function"}function NBe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function G5(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const kce="[object RegExp]",Uk="[object String]",$U="[object Number]",GU="[object Boolean]",zU="[object Arguments]",Dce="[object Symbol]",Mce="[object Date]",Lce="[object Map]",Pce="[object Set]",kBe="[object Array]",Fce="[object ArrayBuffer]",Bce="[object Object]",Uce="[object DataView]",DBe="[object Uint8Array]",MBe="[object Uint8ClampedArray]",LBe="[object Uint16Array]",PBe="[object Uint32Array]",FBe="[object Int8Array]",BBe="[object Int16Array]",UBe="[object Int32Array]",$Be="[object Float32Array]",GBe="[object Float64Array]",$2e=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function $ce(t){return typeof $2e.Buffer<"u"&&$2e.Buffer.isBuffer(t)}function Gce(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Zpr(t,e){return vT(t,void 0,t,new Map,e)}function vT(t,e,r,n=new Map,i=void 0){const a=i?.(t,e,r,n);if(a!==void 0)return a;if(UU(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){const s=new Array(t.length);n.set(t,s);for(let o=0;o<t.length;o++)s[o]=vT(t[o],o,r,n,i);return Object.hasOwn(t,"index")&&(s.index=t.index),Object.hasOwn(t,"input")&&(s.input=t.input),s}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const s=new RegExp(t.source,t.flags);return s.lastIndex=t.lastIndex,s}if(t instanceof Map){const s=new Map;n.set(t,s);for(const[o,l]of t)s.set(o,vT(l,o,r,n,i));return s}if(t instanceof Set){const s=new Set;n.set(t,s);for(const o of t)s.add(vT(o,void 0,r,n,i));return s}if($ce(t))return t.subarray();if(Gce(t)){const s=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,s);for(let o=0;o<t.length;o++)s[o]=vT(t[o],o,r,n,i);return s}if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){const s=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,s),uf(s,t,r,n,i),s}if(typeof File<"u"&&t instanceof File){const s=new File([t],t.name,{type:t.type});return n.set(t,s),uf(s,t,r,n,i),s}if(typeof Blob<"u"&&t instanceof Blob){const s=new Blob([t],{type:t.type});return n.set(t,s),uf(s,t,r,n,i),s}if(t instanceof Error){const s=structuredClone(t);return n.set(t,s),s.message=t.message,s.name=t.name,s.stack=t.stack,s.cause=t.cause,s.constructor=t.constructor,uf(s,t,r,n,i),s}if(t instanceof Boolean){const s=new Boolean(t.valueOf());return n.set(t,s),uf(s,t,r,n,i),s}if(t instanceof Number){const s=new Number(t.valueOf());return n.set(t,s),uf(s,t,r,n,i),s}if(t instanceof String){const s=new String(t.valueOf());return n.set(t,s),uf(s,t,r,n,i),s}if(typeof t=="object"&&Jpr(t)){const s=Object.create(Object.getPrototypeOf(t));return n.set(t,s),uf(s,t,r,n,i),s}return t}function uf(t,e,r=t,n,i){const a=[...Object.keys(e),...NBe(e)];for(let s=0;s<a.length;s++){const o=a[s],l=Object.getOwnPropertyDescriptor(t,o);(l==null||l.writable)&&(t[o]=vT(e[o],o,r,n,i))}}function Jpr(t){switch(G5(t)){case zU:case kBe:case Fce:case Uce:case GU:case Mce:case $Be:case GBe:case FBe:case BBe:case UBe:case Lce:case $U:case Bce:case kce:case Pce:case Uk:case Dce:case DBe:case MBe:case LBe:case PBe:return!0;default:return!1}}function egr(t,e){return Zpr(t,(r,n,i,a)=>{if(typeof t=="object"){if(G5(t)===Bce&&typeof t.constructor!="function"){const s={};return a.set(t,s),uf(s,t,i,a),s}switch(Object.prototype.toString.call(t)){case $U:case Uk:case GU:{const s=new t.constructor(t?.valueOf());return uf(s,t),s}case zU:{const s={};return uf(s,t),s.length=t.length,s[Symbol.iterator]=t[Symbol.iterator],s}default:return}}})}function G2e(t){return egr(t)}function xee(t){return t!==null&&typeof t=="object"&&G5(t)==="[object Arguments]"}function Aee(t){return typeof t=="object"&&t!==null}function tgr(t){return Aee(t)&&IBe(t)}function rgr(t){return Array.isArray(t)}function z5(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const r=function(...i){const a=e?e.apply(this,i):i[0],s=r.cache;if(s.has(a))return s.get(a);const o=t.apply(this,i);return r.cache=s.set(a,o)||s,o},n=z5.Cache||Map;return r.cache=new n,r}z5.Cache=Map;function ngr(){}function igr(t){const e=t?.constructor,r=typeof e=="function"?e.prototype:Object.prototype;return t===r}function yN(t){return Gce(t)}function agr(t){if(UU(t))return t;const e=G5(t);if(!sgr(t))return{};if(rgr(t)){const n=Array.from(t);return t.length>0&&typeof t[0]=="string"&&Object.hasOwn(t,"index")&&(n.index=t.index,n.input=t.input),n}if(yN(t)){const n=t,i=n.constructor;return new i(n.buffer,n.byteOffset,n.length)}if(e===Fce)return new ArrayBuffer(t.byteLength);if(e===Uce){const n=t,i=n.buffer,a=n.byteOffset,s=n.byteLength,o=new ArrayBuffer(s),l=new Uint8Array(i,a,s);return new Uint8Array(o).set(l),new DataView(o)}if(e===GU||e===$U||e===Uk){const n=t.constructor,i=new n(t.valueOf());return e===Uk?lgr(i,t):OK(i,t),i}if(e===Mce)return new Date(Number(t));if(e===kce){const n=t,i=new RegExp(n.source,n.flags);return i.lastIndex=n.lastIndex,i}if(e===Dce)return Object(Symbol.prototype.valueOf.call(t));if(e===Lce){const n=t,i=new Map;return n.forEach((a,s)=>{i.set(s,a)}),i}if(e===Pce){const n=t,i=new Set;return n.forEach(a=>{i.add(a)}),i}if(e===zU){const n=t,i={};return OK(i,n),i.length=n.length,i[Symbol.iterator]=n[Symbol.iterator],i}const r={};return cgr(r,t),OK(r,t),ogr(r,t),r}function sgr(t){switch(G5(t)){case zU:case kBe:case Fce:case Uce:case GU:case Mce:case $Be:case GBe:case FBe:case BBe:case UBe:case Lce:case $U:case Bce:case kce:case Pce:case Uk:case Dce:case DBe:case MBe:case LBe:case PBe:return!0;default:return!1}}function OK(t,e){for(const r in e)Object.hasOwn(e,r)&&(t[r]=e[r])}function ogr(t,e){const r=Object.getOwnPropertySymbols(e);for(let n=0;n<r.length;n++){const i=r[n];Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}}function lgr(t,e){const r=e.valueOf().length;for(const n in e)Object.hasOwn(e,n)&&(Number.isNaN(Number(n))||Number(n)>=r)&&(t[n]=e[n])}function cgr(t,e){const r=Object.getPrototypeOf(e);r!==null&&typeof e.constructor=="function"&&Object.setPrototypeOf(t,r)}function IK(t){if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){const r=t[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${r}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ugr(t){if(UU(t))return t;if(Array.isArray(t)||Gce(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(e==null)return Object.assign(Object.create(e),t);const r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){const n=new r(t);return n.lastIndex=t.lastIndex,n}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let n;return t instanceof AggregateError?n=new r(t.errors,t.message,{cause:t.cause}):n=new r(t.message,{cause:t.cause}),n.stack=t.stack,Object.assign(n,t),n}if(typeof File<"u"&&t instanceof File)return new r([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t=="object"){const n=Object.create(e);return Object.assign(n,t)}return t}function dgr(t,...e){const r=e.slice(0,-1),n=e[e.length-1];let i=t;for(let a=0;a<r.length;a++){const s=r[a];i=jP(i,s,n,new Map)}return i}function jP(t,e,r,n){if(UU(t)&&(t=Object(t)),e==null||typeof e!="object")return t;if(n.has(e))return ugr(n.get(e));if(n.set(e,t),Array.isArray(e)){e=e.slice();for(let a=0;a<e.length;a++)e[a]=e[a]??void 0}const i=[...Object.keys(e),...NBe(e)];for(let a=0;a<i.length;a++){const s=i[a];if(Qpr(s))continue;let o=e[s],l=t[s];if(xee(o)&&(o={...o}),xee(l)&&(l={...l}),$ce(o)&&(o=G2e(o)),Array.isArray(o))if(Array.isArray(l)){const d=[],h=Reflect.ownKeys(l);for(let f=0;f<h.length;f++){const p=h[f];d[p]=l[p]}l=d}else if(tgr(l)){const d=[];for(let h=0;h<l.length;h++)d[h]=l[h];l=d}else l=[];const u=r(l,o,s,t,e,n);u!==void 0?t[s]=u:Array.isArray(o)||Aee(l)&&Aee(o)&&(IK(l)||IK(o)||yN(l)||yN(o))?t[s]=jP(l,o,r,n):l==null&&IK(o)?t[s]=jP({},o,r,n):l==null&&yN(o)?t[s]=G2e(o):(l===void 0||o!==void 0)&&(t[s]=o)}return t}function hgr(t,...e){return dgr(t,...e,ngr)}function z2e(t){if(t==null)return!0;if(IBe(t))return typeof t.splice!="function"&&typeof t!="string"&&!$ce(t)&&!yN(t)&&!xee(t)?!1:t.length===0;if(typeof t=="object"){if(t instanceof Map||t instanceof Set)return t.size===0;const e=Object.keys(t);return igr(t)?e.filter(r=>r!=="constructor").length===0:e.length===0}return!0}var zBe="​",fgr={curveBasis:Mk,curveBasisClosed:Lfr,curveBasisOpen:Pfr,curveBumpX:R8e,curveBumpY:O8e,curveBundle:Ffr,curveCardinalClosed:Bfr,curveCardinalOpen:Ufr,curveCardinal:D8e,curveCatmullRomClosed:$fr,curveCatmullRomOpen:Gfr,curveCatmullRom:L8e,curveLinear:vN,curveLinearClosed:zfr,curveMonotoneX:G8e,curveMonotoneY:z8e,curveNatural:V8e,curveStep:H8e,curveStepAfter:W8e,curveStepBefore:Y8e},pgr=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ggr=k(function(t,e){const r=qBe(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(o=>o.args);v7(s),n=Ro(n,[...s])}else n=r.args;if(!n)return;let i=tce(t,e);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),qBe=k(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${pgr.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Pe.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const i=[];for(;(n=gN.exec(t))!==null;)if(n.index===gN.lastIndex&&gN.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return Pe.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),mgr=k(function(t){return t.replace(gN,"")},"removeDirectives"),_gr=k(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function zce(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return fgr[r]??e}k(zce,"interpolateToCurve");function VBe(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?pE.sanitizeUrl(r):r}k(VBe,"formatUrl");var vgr=k((t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let a=window;for(let s=0;s<n;s++)if(a=a[r[s]],!a){Pe.error(`Function name: ${t} not found in window`);return}a[i](...e)},"runFunc");function qce(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}k(qce,"distance");function HBe(t){let e,r=0;t.forEach(i=>{r+=qce(i,e),e=i});const n=r/2;return Vce(t,n)}k(HBe,"traverseEdge");function YBe(t){return t.length===1?t[0]:HBe(t)}k(YBe,"calcLabelPosition");var q2e=k((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),Vce=k((t,e)=>{let r,n=e;for(const i of t){if(r){const a=qce(i,r);if(a===0)return r;if(a<n)n-=a;else{const s=n/a;if(s<=0)return r;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:q2e((1-s)*r.x+s*i.x,5),y:q2e((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ygr=k((t,e,r)=>{Pe.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=Vce(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+i.x)/2,o.y=-Math.cos(s)*a+(e[0].y+i.y)/2,o},"calcCardinalityPosition");function WBe(t,e,r){const n=structuredClone(r);Pe.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,a=Vce(n,i),s=10+t*.5,o=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+a.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+a.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2),l}k(WBe,"calcTerminalLabelPosition");function Hce(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}k(Hce,"getStylesFromArray");var V2e=0,KBe=k(()=>(V2e++,"id-"+Math.random().toString(36).substr(2,12)+"-"+V2e),"generateId");function jBe(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}k(jBe,"makeRandomHex");var XBe=k(t=>jBe(t.length),"random"),bgr=k(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"),Egr=k(function(t,e){const r=e.text.replace(Cr.lineBreakRegex," "),[,n]=B0(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),bN=z5((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Cr.lineBreakRegex.test(t)))return t;const n=t.split(" ").filter(Boolean),i=[];let a="";return n.forEach((s,o)=>{const l=pu(`${s} `,r),u=pu(a,r);if(l>e){const{hyphenatedStrings:f,remainingWord:p}=Sgr(s,e,"-",r);i.push(a,...f),a=p}else u+l>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Sgr=z5((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let s="";return i.forEach((o,l)=>{const u=`${s}${o}`;if(pu(u,n)>=e){const h=l+1,f=i.length===h,p=`${u}${r}`;a.push(f?u:p),s=""}else s=u}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function K7(t,e){return qU(t,e).height}k(K7,"calculateTextHeight");function pu(t,e){return qU(t,e).width}k(pu,"calculateTextWidth");var qU=z5((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,a]=B0(r),s=["sans-serif",n],o=t.split(Cr.lineBreakRegex),l=[],u=dr("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const d=u.append("svg");for(const f of s){let p=0;const g={width:0,height:0,lineHeight:0};for(const m of o){const _=bgr();_.text=m||zBe;const v=Egr(d,_).style("font-size",a).style("font-weight",i).style("font-family",f),y=(v._groups||v)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,y.width)),p=Math.round(y.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}d.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),RC,Tgr=(RC=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},k(RC,"InitIDGenerator"),RC),RL,Cgr=k(function(t){return RL=RL||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),RL.innerHTML=t,unescape(RL.textContent)},"entityDecode");function Yce(t){return"str"in t}k(Yce,"isDetailedError");var wgr=k((t,e,r,n)=>{if(!n)return;const i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),B0=k(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function _o(t,e){return hgr({},t,e)}k(_o,"cleanAndMerge");var ci={assignWithDepth:Ro,wrapLabel:bN,calculateTextHeight:K7,calculateTextWidth:pu,calculateTextDimensions:qU,cleanAndMerge:_o,detectInit:ggr,detectDirective:qBe,isSubstringInArray:_gr,interpolateToCurve:zce,calcLabelPosition:YBe,calcCardinalityPosition:ygr,calcTerminalLabelPosition:WBe,formatUrl:VBe,getStylesFromArray:Hce,generateId:KBe,random:XBe,runFunc:vgr,entityDecode:Cgr,insertTitle:wgr,isLabelCoordinateInPath:QBe,parseFontSize:B0,InitIDGenerator:Tgr},xgr=k(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"ﬂ°°"+n+"¶ß":"ﬂ°"+n+"¶ß"}),e},"encodeEntities"),u0=k(function(t){return t.replace(/ﬂ°°/g,"&#").replace(/ﬂ°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),ZT=k((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function Rl(t){return t??null}k(Rl,"handleUndefinedAttr");function QBe(t,e){const r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return i.includes(r.toString())||i.includes(n.toString())}k(QBe,"isLabelCoordinateInPath");var q5=k(({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0,n=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins");async function Wce(t,e){const r=t.getElementsByTagName("img");if(!r||r.length===0)return;const n=e.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(i=>new Promise(a=>{function s(){if(i.style.display="flex",i.style.flexDirection="column",n){const o=vt().fontSize?vt().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=Gi.fontSize]=B0(o),d=u*l+"px";i.style.minWidth=d,i.style.maxWidth=d}else i.style.width="100%";a(i)}k(s,"setupImage"),setTimeout(()=>{i.complete&&s()}),i.addEventListener("error",s),i.addEventListener("load",s)})))}k(Wce,"configureLabelImages");var Agr=k(t=>{const{handDrawnSeed:e}=vt();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),wR=k(t=>{const e=Rgr([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),Rgr=k(t=>{const e=new Map;return t.forEach(r=>{const[n,i]=r.split(":");e.set(n.trim(),i?.trim())}),e},"styles2Map"),Kce=k(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),cn=k(t=>{const{stylesArray:e}=wR(t),r=[],n=[],i=[],a=[];return e.forEach(s=>{const o=s[0];Kce(o)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),o.includes("stroke")&&i.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),Sn=k((t,e)=>{const{themeVariables:r,handDrawnSeed:n}=vt(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:s}=wR(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:Ogr(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),Ogr=k(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const i=isNaN(e[0])?0:e[0];return[i,i]}const r=isNaN(e[0])?0:e[0],n=isNaN(e[1])?0:e[1];return[r,n]},"getStrokeDashArray");const Igr=Object.freeze({left:0,top:0,width:16,height:16}),j7=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ZBe=Object.freeze({...Igr,...j7}),Ngr=Object.freeze({...ZBe,body:"",hidden:!1}),kgr=Object.freeze({width:null,height:null}),Dgr=Object.freeze({...kgr,...j7}),Mgr=(t,e,r,n="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const o=i.pop(),l=i.pop(),u={provider:i.length>0?i[0]:n,prefix:l,name:o};return NK(u)?u:null}const a=i[0],s=a.split("-");if(s.length>1){const o={provider:n,prefix:s.shift(),name:s.join("-")};return NK(o)?o:null}if(r&&n===""){const o={provider:n,prefix:"",name:a};return NK(o,r)?o:null}return null},NK=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Lgr(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function H2e(t,e){const r=Lgr(t,e);for(const n in Ngr)n in j7?n in t&&!(n in r)&&(r[n]=j7[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function Pgr(t,e){const r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);function a(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const o=n[s]&&n[s].parent,l=o&&a(o);l&&(i[s]=[o].concat(l))}return i[s]}return(e||Object.keys(r).concat(Object.keys(n))).forEach(a),i}function Y2e(t,e,r){const n=t.icons,i=t.aliases||Object.create(null);let a={};function s(o){a=H2e(n[o]||i[o],a)}return s(e),r.forEach(s),H2e(t,a)}function Fgr(t,e){if(t.icons[e])return Y2e(t,e,[]);const r=Pgr(t,[e])[e];return r?Y2e(t,e,r):null}const Bgr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ugr=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function W2e(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const n=t.split(Bgr);if(n===null||!n.length)return t;const i=[];let a=n.shift(),s=Ugr.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?i.push(a):i.push(Math.ceil(o*e*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");s=!s}}function $gr(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const i=t.indexOf(">",n),a=t.indexOf("</"+e);if(i===-1||a===-1)break;const s=t.indexOf(">",a);if(s===-1)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function Ggr(t,e){return t?"<defs>"+t+"</defs>"+e:e}function zgr(t,e,r){const n=$gr(t);return Ggr(n.defs,e+n.content+r)}const qgr=t=>t==="unset"||t==="undefined"||t==="none";function Vgr(t,e){const r={...ZBe,...t},n={...Dgr,...e},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(m=>{const _=[],v=m.hFlip,y=m.vFlip;let b=m.rotate;v?y?b+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):y&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let E;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:E=i.height/2+i.top,_.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,_.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}b%2===1&&(i.left!==i.top&&(E=i.left,i.left=i.top,i.top=E),i.width!==i.height&&(E=i.width,i.width=i.height,i.height=E)),_.length&&(a=zgr(a,'<g transform="'+_.join(" ")+'">',"</g>"))});const s=n.width,o=n.height,l=i.width,u=i.height;let d,h;s===null?(h=o===null?"1em":o==="auto"?u:o,d=W2e(h,l/u)):(d=s==="auto"?l:s,h=o===null?W2e(d,u/l):o==="auto"?u:o);const f={},p=(m,_)=>{qgr(_)||(f[m]=_.toString())};p("width",d),p("height",h);const g=[i.left,i.top,l,u];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}const Hgr=/\sid="(\S+)"/g,K2e=new Map;function Ygr(t){t=t.replace(/[0-9]+$/,"")||"a";const e=K2e.get(t)||0;return K2e.set(t,e+1),e?`${t}${e}`:t}function Wgr(t){const e=[];let r;for(;r=Hgr.exec(t);)e.push(r[1]);if(!e.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(i=>{const a=Ygr(i),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}function Kgr(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)r+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}function jce(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var gE=jce();function JBe(t){gE=t}var EN={exec:()=>null};function Sa(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(su.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,e)};return n}var jgr=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),su={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:t=>new RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},Xgr=/^(?:[ \t]*(?:\n|$))+/,Qgr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Zgr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,V5=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Jgr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xce=/(?:[*+-]|\d{1,9}[.)])/,eUe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,tUe=Sa(eUe).replace(/bull/g,Xce).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(),emr=Sa(eUe).replace(/bull/g,Xce).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(),Qce=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,tmr=/^[^\n]+/,Zce=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rmr=Sa(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Zce).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nmr=Sa(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xce).getRegex(),VU="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",Jce=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,imr=Sa("^ {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",Jce).replace("tag",VU).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),rUe=Sa(Qce).replace("hr",V5).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",VU).getRegex(),amr=Sa(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",rUe).getRegex(),eue={blockquote:amr,code:Qgr,def:rmr,fences:Zgr,heading:Jgr,hr:V5,html:imr,lheading:tUe,list:nmr,newline:Xgr,paragraph:rUe,table:EN,text:tmr},j2e=Sa("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",V5).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",VU).getRegex(),smr={...eue,lheading:emr,table:j2e,paragraph:Sa(Qce).replace("hr",V5).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",j2e).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",VU).getRegex()},omr={...eue,html:Sa(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Jce).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:EN,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Sa(Qce).replace("hr",V5).replace("heading",` *#{1,6} *[^
]`).replace("lheading",tUe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lmr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cmr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,nUe=/^( {2,}|\\)\n(?!\s*$)/,umr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,HU=/[\p{P}\p{S}]/u,tue=/[\s\p{P}\p{S}]/u,iUe=/[^\s\p{P}\p{S}]/u,dmr=Sa(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,tue).getRegex(),aUe=/(?!~)[\p{P}\p{S}]/u,hmr=/(?!~)[\s\p{P}\p{S}]/u,fmr=/(?:[^\s\p{P}\p{S}]|~)/u,pmr=Sa(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",jgr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),sUe=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,gmr=Sa(sUe,"u").replace(/punct/g,HU).getRegex(),mmr=Sa(sUe,"u").replace(/punct/g,aUe).getRegex(),oUe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_mr=Sa(oUe,"gu").replace(/notPunctSpace/g,iUe).replace(/punctSpace/g,tue).replace(/punct/g,HU).getRegex(),vmr=Sa(oUe,"gu").replace(/notPunctSpace/g,fmr).replace(/punctSpace/g,hmr).replace(/punct/g,aUe).getRegex(),ymr=Sa("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,iUe).replace(/punctSpace/g,tue).replace(/punct/g,HU).getRegex(),bmr=Sa(/\\(punct)/,"gu").replace(/punct/g,HU).getRegex(),Emr=Sa(/^<(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(),Smr=Sa(Jce).replace("(?:-->|$)","-->").getRegex(),Tmr=Sa("^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",Smr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),X7=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Cmr=Sa(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",X7).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lUe=Sa(/^!?\[(label)\]\[(ref)\]/).replace("label",X7).replace("ref",Zce).getRegex(),cUe=Sa(/^!?\[(ref)\](?:\[\])?/).replace("ref",Zce).getRegex(),wmr=Sa("reflink|nolink(?!\\()","g").replace("reflink",lUe).replace("nolink",cUe).getRegex(),X2e=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,rue={_backpedal:EN,anyPunctuation:bmr,autolink:Emr,blockSkip:pmr,br:nUe,code:cmr,del:EN,emStrongLDelim:gmr,emStrongRDelimAst:_mr,emStrongRDelimUnd:ymr,escape:lmr,link:Cmr,nolink:cUe,punctuation:dmr,reflink:lUe,reflinkSearch:wmr,tag:Tmr,text:umr,url:EN},xmr={...rue,link:Sa(/^!?\[(label)\]\((.*?)\)/).replace("label",X7).getRegex(),reflink:Sa(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X7).getRegex()},Ree={...rue,emStrongRDelimAst:vmr,emStrongLDelim:mmr,url:Sa(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",X2e).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:Sa(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",X2e).getRegex()},Amr={...Ree,br:Sa(nUe).replace("{2,}","*").getRegex(),text:Sa(Ree.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},OL={normal:eue,gfm:smr,pedantic:omr},PO={normal:rue,gfm:Ree,breaks:Amr,pedantic:xmr},Rmr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Q2e=t=>Rmr[t];function wp(t,e){if(e){if(su.escapeTest.test(t))return t.replace(su.escapeReplace,Q2e)}else if(su.escapeTestNoEncode.test(t))return t.replace(su.escapeReplaceNoEncode,Q2e);return t}function Z2e(t){try{t=encodeURI(t).replace(su.percentDecode,"%")}catch{return null}return t}function J2e(t,e){let r=t.replace(su.findPipe,(a,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(su.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(su.slashPipe,"|");return n}function FO(t,e,r){let n=t.length;if(n===0)return"";let i=0;for(;i<n&&t.charAt(n-i-1)===e;)i++;return t.slice(0,n-i)}function Omr(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}function ewe(t,e,r,n,i){let a=e.href,s=e.title||null,o=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function Imr(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let i=n[1];return e.split(`
`).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
`)}var Q7=class{options;rules;lexer;constructor(e){this.options=e||gE}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:FO(n,`
`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=Imr(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=FO(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:FO(r[0],`
`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=FO(r[0],`
`).split(`
`),i="",a="",s=[];for(;n.length>0;){let o=!1,l=[],u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))l.push(n[u]),o=!0;else if(!o)l.push(n[u]);else break;n=n.slice(u);let d=l.join(`
`),h=d.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${d}`:d,a=a?`${a}
${h}`:h;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,s,!0),this.lexer.state.top=f,n.length===0)break;let p=s.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let g=p,m=g.raw+`
`+n.join(`
`),_=this.blockquote(m);s[s.length-1]=_,i=i.substring(0,i.length-g.raw.length)+_.raw,a=a.substring(0,a.length-g.text.length)+_.text;break}else if(p?.type==="list"){let g=p,m=g.raw+`
`+n.join(`
`),_=this.list(m);s[s.length-1]=_,i=i.substring(0,i.length-p.raw.length)+_.raw,a=a.substring(0,a.length-g.raw.length)+_.raw,n=m.substring(s.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:s,text:a}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let s=this.rules.other.listItemRegex(n),o=!1;for(;e;){let u=!1,d="",h="";if(!(r=s.exec(e))||this.rules.block.hr.test(e))break;d=r[0],e=e.substring(d.length);let f=r[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),p=e.split(`
`,1)[0],g=!f.trim(),m=0;if(this.options.pedantic?(m=2,h=f.trimStart()):g?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,h=f.slice(m),m+=r[1].length),g&&this.rules.other.blankLine.test(p)&&(d+=p+`
`,e=e.substring(p.length+1),u=!0),!u){let y=this.rules.other.nextBulletRegex(m),b=this.rules.other.hrRegex(m),E=this.rules.other.fencesBeginRegex(m),S=this.rules.other.headingBeginRegex(m),T=this.rules.other.htmlBeginRegex(m);for(;e;){let C=e.split(`
`,1)[0],x;if(p=C,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting,"  "),x=p):x=p.replace(this.rules.other.tabCharGlobal,"    "),E.test(p)||S.test(p)||T.test(p)||y.test(p)||b.test(p))break;if(x.search(this.rules.other.nonSpaceChar)>=m||!p.trim())h+=`
`+x.slice(m);else{if(g||f.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||E.test(f)||S.test(f)||b.test(f))break;h+=`
`+p}!g&&!p.trim()&&(g=!0),d+=C+`
`,e=e.substring(C.length+1),f=x.slice(m)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(o=!0));let _=null,v;this.options.gfm&&(_=this.rules.other.listIsTask.exec(h),_&&(v=_[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:d,task:!!_,checked:v,loose:!1,text:h,tokens:[]}),a.raw+=d}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let u=0;u<a.items.length;u++)if(this.lexer.state.top=!1,a.items[u].tokens=this.lexer.blockTokens(a.items[u].text,[]),!a.loose){let d=a.items[u].tokens.filter(f=>f.type==="space"),h=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=h}if(a.loose)for(let u=0;u<a.items.length;u++)a.items[u].loose=!0;return a}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=J2e(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let o of i)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<n.length;o++)s.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:s.align[o]});for(let o of a)s.rows.push(J2e(o,s.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[u]})));return s}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=FO(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=Omr(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),ewe(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return ewe(n,a,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...i[0]].length-1,s,o,l=a,u=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+a);(i=d.exec(r))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=[...s].length,i[3]||i[4]){l+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let h=[...i[0]][0].length,f=e.slice(0,a+i.index+h+o);if(Math.min(a,o)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,i;if(r[2]==="@")n=r[0],i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=r[0],r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},vf=class Oee{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||gE,this.options.tokenizer=this.options.tokenizer||new Q7,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 r={other:su,block:OL.normal,inline:PO.normal};this.options.pedantic?(r.block=OL.pedantic,r.inline=PO.pedantic):this.options.gfm&&(r.block=OL.gfm,this.options.breaks?r.inline=PO.breaks:r.inline=PO.gfm),this.tokenizer.rules=r}static get rules(){return{block:OL,inline:PO}}static lex(e,r){return new Oee(r).lex(e)}static lexInline(e,r){return new Oee(r).inlineTokens(e)}lex(e){e=e.replace(su.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){for(this.options.pedantic&&(e=e.replace(su.tabCharGlobal,"    ").replace(su.spaceLine,""));e;){let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},e,r))?(e=e.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let s=r.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
`:r.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
`)?"":`
`)+i.raw,s.text+=`
`+i.text,this.inlineQueue.at(-1).src=s.text):r.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
`)?"":`
`)+i.raw,s.text+=`
`+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},r.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),r.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let s=1/0,o=e.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},o),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(a=e.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let s=r.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
`)?"":`
`)+i.raw,s.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
`)?"":`
`)+i.raw,s.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(i);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n=e,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)a=i[2]?i[2].length:0,n=n.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let s=!1,o="";for(;e;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(d=>(l=d.call({lexer:this},e,r))?(e=e.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let d=r.at(-1);l.type==="text"&&d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(e,n,o)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),r.push(l);continue}let u=e;if(this.options.extensions?.startInline){let d=1/0,h=e.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(d=Math.min(d,f))}),d<1/0&&d>=0&&(u=e.substring(0,d+1))}if(l=this.tokenizer.inlineText(u)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let d=r.at(-1);d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):r.push(l);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},Z7=class{options;parser;constructor(e){this.options=e||gE}space(e){return""}code({text:e,lang:r,escaped:n}){let i=(r||"").match(su.notSpaceStart)?.[0],a=e.replace(su.endingNewline,"")+`
`;return i?'<pre><code class="language-'+wp(i)+'">'+(n?a:wp(a,!0))+`</code></pre>
`:"<pre><code>"+(n?a:wp(a,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:r}){return`<h${r}>${this.parser.parseInline(e)}</h${r}>
`}hr(e){return`<hr>
`}list(e){let r=e.ordered,n=e.start,i="";for(let o=0;o<e.items.length;o++){let l=e.items[o];i+=this.listitem(l)}let a=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+a+s+`>
`+i+"</"+a+`>
`}listitem(e){let r="";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&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+wp(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let r="",n="";for(let a=0;a<e.header.length;a++)n+=this.tablecell(e.header[a]);r+=this.tablerow({text:n});let i="";for(let a=0;a<e.rows.length;a++){let s=e.rows[a];n="";for(let o=0;o<s.length;o++)n+=this.tablecell(s[o]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+r+`</thead>
`+i+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+`</${n}>
`}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>${wp(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:n}){let i=this.parser.parseInline(n),a=Z2e(e);if(a===null)return i;e=a;let s='<a href="'+e+'"';return r&&(s+=' title="'+wp(r)+'"'),s+=">"+i+"</a>",s}image({href:e,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let a=Z2e(e);if(a===null)return wp(n);e=a;let s=`<img src="${e}" alt="${n}"`;return r&&(s+=` title="${wp(r)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:wp(e.text)}},nue=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""}},yf=class Iee{options;renderer;textRenderer;constructor(e){this.options=e||gE,this.options.renderer=this.options.renderer||new Z7,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new nue}static parse(e,r){return new Iee(r).parse(e)}static parseInline(e,r){return new Iee(r).parseInline(e)}parse(e,r=!0){let n="";for(let i=0;i<e.length;i++){let a=e[i];if(this.options.extensions?.renderers?.[a.type]){let o=a,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){n+=l||"";continue}}let s=a;switch(s.type){case"space":{n+=this.renderer.space(s);continue}case"hr":{n+=this.renderer.hr(s);continue}case"heading":{n+=this.renderer.heading(s);continue}case"code":{n+=this.renderer.code(s);continue}case"table":{n+=this.renderer.table(s);continue}case"blockquote":{n+=this.renderer.blockquote(s);continue}case"list":{n+=this.renderer.list(s);continue}case"html":{n+=this.renderer.html(s);continue}case"def":{n+=this.renderer.def(s);continue}case"paragraph":{n+=this.renderer.paragraph(s);continue}case"text":{let o=s,l=this.renderer.text(o);for(;i+1<e.length&&e[i+1].type==="text";)o=e[++i],l+=`
`+this.renderer.text(o);r?n+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):n+=l;continue}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(e,r=this.renderer){let n="";for(let i=0;i<e.length;i++){let a=e[i];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=o||"";continue}}let s=a;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},RI=class{options;block;constructor(e){this.options=e||gE}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?vf.lex:vf.lexInline}provideParser(){return this.block?yf.parse:yf.parseInline}},Nmr=class{defaults=jce();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=yf;Renderer=Z7;TextRenderer=nue;Lexer=vf;Tokenizer=Q7;Hooks=RI;constructor(...e){this.use(...e)}walkTokens(e,r){let n=[];for(let i of e)switch(n=n.concat(r.call(this,i)),i.type){case"table":{let a=i;for(let s of a.header)n=n.concat(this.walkTokens(s.tokens,r));for(let s of a.rows)for(let o of s)n=n.concat(this.walkTokens(o.tokens,r));break}case"list":{let a=i;n=n.concat(this.walkTokens(a.items,r));break}default:{let a=i;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{let o=a[s].flat(1/0);n=n.concat(this.walkTokens(o,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new Z7(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=n.renderer[o],u=a[o];a[o]=(...d)=>{let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Q7(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=n.tokenizer[o],u=a[o];a[o]=(...d)=>{let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new RI;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=n.hooks[o],u=a[o];RI.passThroughHooks.has(s)?a[o]=d=>{if(this.defaults.async&&RI.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(a,d);return u.call(a,f)})();let h=l.call(a,d);return u.call(a,h)}:a[o]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(a,d);return f===!1&&(f=await u.apply(a,d)),f})();let h=l.apply(a,d);return h===!1&&(h=u.apply(a,d)),h}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return vf.lex(e,r??this.defaults)}parser(e,r){return yf.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let i={...n},a={...this.defaults,...i},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():e?vf.lex:vf.lexInline)(o,a),u=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(u,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser():e?yf.parse:yf.parseInline)(u,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer():e?vf.lex:vf.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():e?yf.parse:yf.parseInline)(o,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(e,r){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+wp(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Fb=new Nmr;function La(t,e){return Fb.parse(t,e)}La.options=La.setOptions=function(t){return Fb.setOptions(t),La.defaults=Fb.defaults,JBe(La.defaults),La};La.getDefaults=jce;La.defaults=gE;La.use=function(...t){return Fb.use(...t),La.defaults=Fb.defaults,JBe(La.defaults),La};La.walkTokens=function(t,e){return Fb.walkTokens(t,e)};La.parseInline=Fb.parseInline;La.Parser=yf;La.parser=yf.parse;La.Renderer=Z7;La.TextRenderer=nue;La.Lexer=vf;La.lexer=vf.lex;La.Tokenizer=Q7;La.Hooks=RI;La.parse=La;La.options;La.setOptions;La.use;La.walkTokens;La.parseInline;yf.parse;vf.lex;function uUe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(o,l){var u=l.match(/\n([\t ]+|(?!\s).)/g);return u?o.concat(u.map(function(d){var h,f;return(f=(h=d.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):o},[]);if(i.length){var a=new RegExp(`
[	 ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(o){return o.replace(a,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return e.forEach(function(o,l){var u=s.match(/(?:^|\n)( *)$/),d=u?u[1]:"",h=o;typeof o=="string"&&o.includes(`
`)&&(h=String(o).split(`
`).map(function(f,p){return p===0?f:""+d+f}).join(`
`)),s+=h+n[l+1]}),s}var dUe={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},Nee=new Map,hUe=new Map,fUe=k(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Pe.debug("Registering icon pack:",e.name),"loader"in e)hUe.set(e.name,e.loader);else if("icons"in e)Nee.set(e.name,e.icons);else throw Pe.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),pUe=k(async(t,e)=>{const r=Mgr(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);const n=r.prefix||e;if(!n)throw new Error(`Icon name must contain a prefix: ${t}`);let i=Nee.get(n);if(!i){const s=hUe.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},Nee.set(n,i)}catch(o){throw Pe.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=Fgr(i,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),kmr=k(async t=>{try{return await pUe(t),!0}catch{return!1}},"isIconAvailable"),v1=k(async(t,e,r)=>{let n;try{n=await pUe(t,e?.fallbackPrefix)}catch(s){Pe.error(s),n=dUe}const i=Vgr(n,e),a=Kgr(Wgr(i.body),{...i.attributes,...r});return ta(a,Ln())},"getIconSVG");function gUe(t,{markdownAutoWrap:e}){const n=t.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`);return uUe(n)}k(gUe,"preprocessMarkdown");function mUe(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}k(mUe,"nonMarkdownToLines");function _Ue(t,e={}){const r=gUe(t,e),n=La.lexer(r),i=[[]];let a=0;function s(o,l="normal"){o.type==="text"?o.text.split(`
`).forEach((d,h)=>{h!==0&&(a++,i.push([])),d.split(" ").forEach(f=>{f=f.replace(/&#39;/g,"'"),f&&i[a].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(u=>{s(u,o.type)}):o.type==="html"&&i[a].push({content:o.text,type:"normal"})}return k(s,"processNode"),n.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{s(l)}):o.type==="html"?i[a].push({content:o.text,type:"normal"}):i[a].push({content:o.raw,type:"normal"})}),i}k(_Ue,"markdownToLines");function vUe(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}k(vUe,"nonMarkdownToHTML");function yUe(t,{markdownAutoWrap:e}={}){const r=La.lexer(t);function n(i){return i.type==="text"?e===!1?i.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):i.text.replace(/\n */g,"<br/>"):i.type==="strong"?`<strong>${i.tokens?.map(n).join("")}</strong>`:i.type==="em"?`<em>${i.tokens?.map(n).join("")}</em>`:i.type==="paragraph"?`<p>${i.tokens?.map(n).join("")}</p>`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:(Pe.warn(`Unsupported markdown: ${i.type}`),i.raw)}return k(n,"output"),r.map(n).join("")}k(yUe,"markdownToHTML");function bUe(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}k(bUe,"splitTextToChars");function EUe(t,e){const r=bUe(e.content);return iue(t,[],r,e.type)}k(EUe,"splitWordToFitWidth");function iue(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];const[i,...a]=r,s=[...e,i];return t([{content:s.join(""),type:n}])?iue(t,s,a,n):(e.length===0&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}k(iue,"splitWordToFitWidthRecursion");function SUe(t,e){if(t.some(({content:r})=>r.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return J7(t,e)}k(SUe,"splitLineToFitWidth");function J7(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),e(s))return J7(t,e,r,s);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){const[o,l]=EUe(e,a);r.push([o]),l.content&&t.unshift(l)}return J7(t,e,r)}k(J7,"splitLineToFitWidthRecursion");function kee(t,e){e&&t.attr("style",e)}k(kee,"applyStyle");var twe=16384;async function TUe(t,e,r,n,i=!1,a=Ln()){const s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,twe)}px`),s.attr("height",`${Math.min(10*r,twe)}px`);const o=s.append("xhtml:div"),l=ko(e.label)?await xU(e.label.replace(Cr.lineBreakRegex,`
`),a):ta(e.label,a),u=e.isNode?"nodeLabel":"edgeLabel",d=o.append("span");d.html(l),kee(d,e.labelStyle),d.attr("class",`${u} ${n}`),kee(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let h=o.node().getBoundingClientRect();return h.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),h=o.node().getBoundingClientRect()),s.node()}k(TUe,"addHtmlSpan");function YU(t,e,r,n=!1){const i=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}k(YU,"createTspan");function CUe(t,e,r){const n=t.append("text"),i=YU(n,1,e);WU(i,r);const a=i.node().getComputedTextLength();return n.remove(),a}k(CUe,"computeWidthOfText");function wUe(t,e,r){const n=t.append("text"),i=YU(n,1,e);WU(i,[{content:r,type:"normal"}]);const a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}k(wUe,"computeDimensionOfText");function xUe(t,e,r,n=!1,i=!1){const s=e.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 u=0;for(const d of r){const h=k(p=>CUe(s,1.1,p)<=t,"checkWidth"),f=h(d)?[d]:SUe(d,h);for(const p of f){const g=YU(l,u,1.1,i);WU(g,p),u++}}if(n){const d=l.node().getBBox(),h=2;return o.attr("x",d.x-h).attr("y",d.y-h).attr("width",d.width+2*h).attr("height",d.height+2*h),s.node()}else return l.node()}k(xUe,"createFormattedText");function Dee(t){const e=/&(amp|lt|gt);/g;return t.replace(e,(r,n)=>{switch(n){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}k(Dee,"decodeHTMLEntities");function WU(t,e){t.text(""),e.forEach((r,n)=>{const i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(Dee(r.content)):i.text(" "+Dee(r.content))})}k(WU,"updateTextContentAndStyles");async function AUe(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(i,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await kmr(o)?await v1(o,void 0,{class:"label-icon"}):`<i class='${ta(i,e).replace(":"," ")}'></i>`})()),i));const n=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}k(AUe,"replaceIconSubstring");var xu=k(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},d)=>{if(Pe.debug("XYZ createText",e,r,n,i,a,o,"addSvgBackground: ",u),a){const h=s?yUe(e,d):vUe(e),f=await AUe(u0(h),d),p=e.replace(/\\\\/g,"\\"),g={isNode:o,label:ko(e)?p:f,labelStyle:r.replace("fill:","color:")};return await TUe(t,g,l,i,u,d)}else{const h=u0(e.replace(/<br\s*\/?>/g,"<br/>")),f=s?_Ue(h.replace("<br>","<br/>"),d):mUe(h),p=xUe(l,t,f,e?u:!1,!o);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");dr(p).attr("style",g)}else{const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");dr(p).select("rect").attr("style",g.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");dr(p).select("text").attr("style",m)}return n?dr(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):dr(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText");function kK(t,e,r){if(t&&t.length){const[n,i]=e,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const l of t){const[u,d]=l;l[0]=(u-n)*s-(d-i)*o+n,l[1]=(u-n)*o+(d-i)*s+i}}}function Dmr(t,e){return t[0]===e[0]&&t[1]===e[1]}function Mmr(t,e,r,n=1){const i=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(i)for(const u of s)kK(u,o,i);const l=(function(u,d,h){const f=[];for(const y of u){const b=[...y];Dmr(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&f.push(b)}const p=[];d=Math.max(d,.1);const g=[];for(const y of f)for(let b=0;b<y.length-1;b++){const E=y[b],S=y[b+1];if(E[1]!==S[1]){const T=Math.min(E[1],S[1]);g.push({ymin:T,ymax:Math.max(E[1],S[1]),x:T===E[1]?E[0]:S[0],islope:(S[0]-E[0])/(S[1]-E[1])})}}if(g.sort(((y,b)=>y.ymin<b.ymin?-1:y.ymin>b.ymin?1:y.x<b.x?-1:y.x>b.x?1:y.ymax===b.ymax?0:(y.ymax-b.ymax)/Math.abs(y.ymax-b.ymax))),!g.length)return p;let m=[],_=g[0].ymin,v=0;for(;m.length||g.length;){if(g.length){let y=-1;for(let b=0;b<g.length&&!(g[b].ymin>_);b++)y=b;g.splice(0,y+1).forEach((b=>{m.push({s:_,edge:b})}))}if(m=m.filter((y=>!(y.edge.ymax<=_))),m.sort(((y,b)=>y.edge.x===b.edge.x?0:(y.edge.x-b.edge.x)/Math.abs(y.edge.x-b.edge.x))),(h!==1||v%d==0)&&m.length>1)for(let y=0;y<m.length;y+=2){const b=y+1;if(b>=m.length)break;const E=m[y].edge,S=m[b].edge;p.push([[Math.round(E.x),_],[Math.round(S.x),_]])}_+=h,m.forEach((y=>{y.edge.x=y.edge.x+h*y.edge.islope})),v++}return p})(s,a,n);if(i){for(const u of s)kK(u,o,-i);(function(u,d,h){const f=[];u.forEach((p=>f.push(...p))),kK(f,d,h)})(l,o,-i)}return l}function H5(t,e){var r;const n=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),Mmr(t,i,n,a||1)}class aue{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const n=H5(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){const n=[];for(const i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function KU(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class Lmr extends aue{fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=H5(e,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*n*Math.cos(a),l=.5*n*Math.sin(a);for(const[u,d]of i)KU([u,d])&&s.push([[u[0]-o,u[1]+l],[...d]],[[u[0]+o,u[1]-l],[...d]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class Pmr extends aue{fillPolygons(e,r){const n=this._fillPolygons(e,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,i);return n.ops=n.ops.concat(a.ops),n}}let Fmr=class{constructor(e){this.helper=e}fillPolygons(e,r){const n=H5(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=i/4;for(const o of e){const l=KU(o),u=l/i,d=Math.ceil(u)-1,h=l-d*i,f=(o[0][0]+o[1][0])/2-i/4,p=Math.min(o[0][1],o[1][1]);for(let g=0;g<d;g++){const m=p+h+g*i,_=f-s+2*Math.random()*s,v=m-s+2*Math.random()*s,y=this.helper.ellipse(_,v,a,a,r);n.push(...y.ops)}}return{type:"fillSketch",ops:n}}},Bmr=class{constructor(e){this.helper=e}fillPolygons(e,r){const n=H5(e,r);return{type:"fillSketch",ops:this.dashedLine(n,r)}}dashedLine(e,r){const n=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,i=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return e.forEach((s=>{const o=KU(s),l=Math.floor(o/(n+i)),u=(o+i-l*(n+i))/2;let d=s[0],h=s[1];d[0]>h[0]&&(d=s[1],h=s[0]);const f=Math.atan((h[1]-d[1])/(h[0]-d[0]));for(let p=0;p<l;p++){const g=p*(n+i),m=g+n,_=[d[0]+g*Math.cos(f)+u*Math.cos(f),d[1]+g*Math.sin(f)+u*Math.sin(f)],v=[d[0]+m*Math.cos(f)+u*Math.cos(f),d[1]+m*Math.sin(f)+u*Math.sin(f)];a.push(...this.helper.doubleLineOps(_[0],_[1],v[0],v[1],r))}})),a}};class Umr{constructor(e){this.helper=e}fillPolygons(e,r){const n=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,i=r.zigzagOffset<0?n:r.zigzagOffset,a=H5(e,r=Object.assign({},r,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(a,i,r)}}zigzagLines(e,r,n){const i=[];return e.forEach((a=>{const s=KU(a),o=Math.round(s/(2*r));let l=a[0],u=a[1];l[0]>u[0]&&(l=a[1],u=a[0]);const d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let h=0;h<o;h++){const f=2*h*r,p=2*(h+1)*r,g=Math.sqrt(2*Math.pow(r,2)),m=[l[0]+f*Math.cos(d),l[1]+f*Math.sin(d)],_=[l[0]+p*Math.cos(d),l[1]+p*Math.sin(d)],v=[m[0]+g*Math.cos(d+Math.PI/4),m[1]+g*Math.sin(d+Math.PI/4)];i.push(...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n),...this.helper.doubleLineOps(v[0],v[1],_[0],_[1],n))}})),i}}const ku={};let $mr=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};const Gmr=0,DK=1,rwe=2,IL={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 MK(t,e){return t.type===e}function sue(t){const e=[],r=(function(s){const o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:Gmr,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:DK,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:rwe,text:""},o})(t);let n="BOD",i=0,a=r[i];for(;!MK(a,rwe);){let s=0;const o=[];if(n==="BOD"){if(a.text!=="M"&&a.text!=="m")return sue("M0,0"+t);i++,s=IL[a.text],n=a.text}else MK(a,DK)?s=IL[n]:(i++,s=IL[a.text],n=a.text);if(!(i+s<r.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const u=r[l];if(!MK(u,DK))throw new Error("Param not a number: "+n+","+u.text);o[o.length]=+u.text}if(typeof IL[n]!="number")throw new Error("Bad segment: "+n);{const l={key:n,data:o};e.push(l),i+=s,a=r[i],n==="M"&&(n="L"),n==="m"&&(n="l")}}return e}function RUe(t){let e=0,r=0,n=0,i=0;const a=[];for(const{key:s,data:o}of t)switch(s){case"M":a.push({key:"M",data:[...o]}),[e,r]=o,[n,i]=o;break;case"m":e+=o[0],r+=o[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...o]}),[e,r]=o;break;case"l":e+=o[0],r+=o[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...o]}),e=o[4],r=o[5];break;case"c":{const l=o.map(((u,d)=>d%2?u+r:u+e));a.push({key:"C",data:l}),e=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),e=o[2],r=o[3];break;case"q":{const l=o.map(((u,d)=>d%2?u+r:u+e));a.push({key:"Q",data:l}),e=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":a.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),e=o[2],r=o[3];break;case"s":{const l=o.map(((u,d)=>d%2?u+r:u+e));a.push({key:"S",data:l}),e=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function OUe(t){const e=[];let r="",n=0,i=0,a=0,s=0,o=0,l=0;for(const{key:u,data:d}of t){switch(u){case"M":e.push({key:"M",data:[...d]}),[n,i]=d,[a,s]=d;break;case"C":e.push({key:"C",data:[...d]}),n=d[4],i=d[5],o=d[2],l=d[3];break;case"L":e.push({key:"L",data:[...d]}),[n,i]=d;break;case"H":n=d[0],e.push({key:"L",data:[n,i]});break;case"V":i=d[0],e.push({key:"L",data:[n,i]});break;case"S":{let h=0,f=0;r==="C"||r==="S"?(h=n+(n-o),f=i+(i-l)):(h=n,f=i),e.push({key:"C",data:[h,f,...d]}),o=d[0],l=d[1],n=d[2],i=d[3];break}case"T":{const[h,f]=d;let p=0,g=0;r==="Q"||r==="T"?(p=n+(n-o),g=i+(i-l)):(p=n,g=i);const m=n+2*(p-n)/3,_=i+2*(g-i)/3,v=h+2*(p-h)/3,y=f+2*(g-f)/3;e.push({key:"C",data:[m,_,v,y,h,f]}),o=p,l=g,n=h,i=f;break}case"Q":{const[h,f,p,g]=d,m=n+2*(h-n)/3,_=i+2*(f-i)/3,v=p+2*(h-p)/3,y=g+2*(f-g)/3;e.push({key:"C",data:[m,_,v,y,p,g]}),o=h,l=f,n=p,i=g;break}case"A":{const h=Math.abs(d[0]),f=Math.abs(d[1]),p=d[2],g=d[3],m=d[4],_=d[5],v=d[6];h===0||f===0?(e.push({key:"C",data:[n,i,_,v,_,v]}),n=_,i=v):(n!==_||i!==v)&&(IUe(n,i,_,v,h,f,p,g,m).forEach((function(y){e.push({key:"C",data:y})})),n=_,i=v);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=s}r=u}return e}function BO(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function IUe(t,e,r,n,i,a,s,o,l,u){const d=(h=s,Math.PI*h/180);var h;let f=[],p=0,g=0,m=0,_=0;if(u)[p,g,m,_]=u;else{[t,e]=BO(t,e,-d),[r,n]=BO(r,n,-d);const F=(t-r)/2,O=(e-n)/2;let D=F*F/(i*i)+O*O/(a*a);D>1&&(D=Math.sqrt(D),i*=D,a*=D);const M=i*i,P=a*a,N=M*P-M*O*O-P*F*F,$=M*O*O+P*F*F,U=(o===l?-1:1)*Math.sqrt(Math.abs(N/$));m=U*i*O/a+(t+r)/2,_=U*-a*F/i+(e+n)/2,p=Math.asin(parseFloat(((e-_)/a).toFixed(9))),g=Math.asin(parseFloat(((n-_)/a).toFixed(9))),t<m&&(p=Math.PI-p),r<m&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let v=g-p;if(Math.abs(v)>120*Math.PI/180){const F=g,O=r,D=n;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=IUe(r=m+i*Math.cos(g),n=_+a*Math.sin(g),O,D,i,a,s,0,l,[g,F,m,_])}v=g-p;const y=Math.cos(p),b=Math.sin(p),E=Math.cos(g),S=Math.sin(g),T=Math.tan(v/4),C=4/3*i*T,x=4/3*a*T,A=[t,e],R=[t+C*b,e-x*y],I=[r+C*S,n-x*E],L=[r,n];if(R[0]=2*A[0]-R[0],R[1]=2*A[1]-R[1],u)return[R,I,L].concat(f);{f=[R,I,L].concat(f);const F=[];for(let O=0;O<f.length;O+=3){const D=BO(f[O][0],f[O][1],d),M=BO(f[O+1][0],f[O+1][1],d),P=BO(f[O+2][0],f[O+2][1],d);F.push([D[0],D[1],M[0],M[1],P[0],P[1]])}return F}}const zmr={randOffset:function(t,e){return ti(t,e)},randOffsetWithRange:function(t,e,r){return e8(t,e,r)},ellipse:function(t,e,r,n,i){const a=kUe(r,n,i);return Mee(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return y1(t,e,r,n,i,!0)}};function NUe(t,e,r,n,i){return{type:"path",ops:y1(t,e,r,n,i)}}function XP(t,e,r){const n=(t||[]).length;if(n>2){const i=[];for(let a=0;a<n-1;a++)i.push(...y1(t[a][0],t[a][1],t[a+1][0],t[a+1][1],r));return e&&i.push(...y1(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return n===2?NUe(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function qmr(t,e,r,n,i){return(function(a,s){return XP(a,!0,s)})([[t,e],[t+r,e],[t+r,e+n],[t,e+n]],i)}function nwe(t,e){if(t.length){const r=typeof t[0][0]=="number"?[t]:t,n=NL(r[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:NL(r[0],1.5*(1+.22*e.roughness),swe(e));for(let a=1;a<r.length;a++){const s=r[a];if(s.length){const o=NL(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:NL(s,1.5*(1+.22*e.roughness),swe(e));for(const u of o)u.op!=="move"&&n.push(u);for(const u of l)u.op!=="move"&&i.push(u)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function kUe(t,e,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=2*Math.PI/i;let s=Math.abs(t/2),o=Math.abs(e/2);const l=1-r.curveFitting;return s+=ti(s*l,r),o+=ti(o*l,r),{increment:a,rx:s,ry:o}}function Mee(t,e,r,n){const[i,a]=owe(n.increment,t,e,n.rx,n.ry,1,n.increment*e8(.1,e8(.4,1,r),r),r);let s=t8(i,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=owe(n.increment,t,e,n.rx,n.ry,1.5,0,r),l=t8(o,null,r);s=s.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function iwe(t,e,r,n,i,a,s,o,l){const u=t,d=e;let h=Math.abs(r/2),f=Math.abs(n/2);h+=ti(.01*h,l),f+=ti(.01*f,l);let p=i,g=a;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,_=Math.min(m/2,(g-p)/2),v=lwe(_,u,d,h,f,p,g,1,l);if(!l.disableMultiStroke){const y=lwe(_,u,d,h,f,p,g,1.5,l);v.push(...y)}return s&&(o?v.push(...y1(u,d,u+h*Math.cos(p),d+f*Math.sin(p),l),...y1(u,d,u+h*Math.cos(g),d+f*Math.sin(g),l)):v.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+h*Math.cos(p),d+f*Math.sin(p)]})),{type:"path",ops:v}}function awe(t,e){const r=OUe(RUe(sue(t))),n=[];let i=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...y1(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{const[l,u,d,h,f,p]=o;n.push(...Vmr(l,u,d,h,f,p,a,e)),a=[f,p];break}case"Z":n.push(...y1(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function LK(t,e){const r=[];for(const n of t)if(n.length){const i=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+ti(i,e),n[0][1]+ti(i,e)]});for(let s=1;s<a;s++)r.push({op:"lineTo",data:[n[s][0]+ti(i,e),n[s][1]+ti(i,e)]})}}return{type:"fillPath",ops:r}}function dS(t,e){return(function(r,n){let i=r.fillStyle||"hachure";if(!ku[i])switch(i){case"zigzag":ku[i]||(ku[i]=new Lmr(n));break;case"cross-hatch":ku[i]||(ku[i]=new Pmr(n));break;case"dots":ku[i]||(ku[i]=new Fmr(n));break;case"dashed":ku[i]||(ku[i]=new Bmr(n));break;case"zigzag-line":ku[i]||(ku[i]=new Umr(n));break;default:i="hachure",ku[i]||(ku[i]=new aue(n))}return ku[i]})(e,zmr).fillPolygons(t,e)}function swe(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function DUe(t){return t.randomizer||(t.randomizer=new $mr(t.seed||0)),t.randomizer.next()}function e8(t,e,r,n=1){return r.roughness*n*(DUe(r)*(e-t)+t)}function ti(t,e,r=1){return e8(-t,t,e,r)}function y1(t,e,r,n,i,a=!1){const s=a?i.disableMultiStrokeFill:i.disableMultiStroke,o=Lee(t,e,r,n,i,!0,!1);if(s)return o;const l=Lee(t,e,r,n,i,!0,!0);return o.concat(l)}function Lee(t,e,r,n,i,a,s){const o=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(o);let u=1;u=l<200?1:l>500?.4:-.0016668*l+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>o&&(d=l/10);const h=d/2,f=.2+.2*DUe(i);let p=i.bowing*i.maxRandomnessOffset*(n-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=ti(p,i,u),g=ti(g,i,u);const m=[],_=()=>ti(h,i,u),v=()=>ti(d,i,u),y=i.preserveVertices;return s?m.push({op:"move",data:[t+(y?0:_()),e+(y?0:_())]}):m.push({op:"move",data:[t+(y?0:ti(d,i,u)),e+(y?0:ti(d,i,u))]}),s?m.push({op:"bcurveTo",data:[p+t+(r-t)*f+_(),g+e+(n-e)*f+_(),p+t+2*(r-t)*f+_(),g+e+2*(n-e)*f+_(),r+(y?0:_()),n+(y?0:_())]}):m.push({op:"bcurveTo",data:[p+t+(r-t)*f+v(),g+e+(n-e)*f+v(),p+t+2*(r-t)*f+v(),g+e+2*(n-e)*f+v(),r+(y?0:v()),n+(y?0:v())]}),m}function NL(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+ti(e,r),t[0][1]+ti(e,r)]),n.push([t[0][0]+ti(e,r),t[0][1]+ti(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+ti(e,r),t[i][1]+ti(e,r)]),i===t.length-1&&n.push([t[i][0]+ti(e,r),t[i][1]+ti(e,r)]);return t8(n,null,r)}function t8(t,e,r){const n=t.length,i=[];if(n>3){const a=[],s=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+2<n;o++){const l=t[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*t[o+1][0]-s*t[o-1][0])/6,l[1]+(s*t[o+1][1]-s*t[o-1][1])/6],a[2]=[t[o+1][0]+(s*t[o][0]-s*t[o+2][0])/6,t[o+1][1]+(s*t[o][1]-s*t[o+2][1])/6],a[3]=[t[o+1][0],t[o+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]]})}}else n===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):n===2&&i.push(...Lee(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function owe(t,e,r,n,i,a,s,o){const l=[],u=[];if(o.roughness===0){t/=4,u.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let d=0;d<=2*Math.PI;d+=t){const h=[e+n*Math.cos(d),r+i*Math.sin(d)];l.push(h),u.push(h)}u.push([e+n*Math.cos(0),r+i*Math.sin(0)]),u.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{const d=ti(.5,o)-Math.PI/2;u.push([ti(a,o)+e+.9*n*Math.cos(d-t),ti(a,o)+r+.9*i*Math.sin(d-t)]);const h=2*Math.PI+d-.01;for(let f=d;f<h;f+=t){const p=[ti(a,o)+e+n*Math.cos(f),ti(a,o)+r+i*Math.sin(f)];l.push(p),u.push(p)}u.push([ti(a,o)+e+n*Math.cos(d+2*Math.PI+.5*s),ti(a,o)+r+i*Math.sin(d+2*Math.PI+.5*s)]),u.push([ti(a,o)+e+.98*n*Math.cos(d+s),ti(a,o)+r+.98*i*Math.sin(d+s)]),u.push([ti(a,o)+e+.9*n*Math.cos(d+.5*s),ti(a,o)+r+.9*i*Math.sin(d+.5*s)])}return[u,l]}function lwe(t,e,r,n,i,a,s,o,l){const u=a+ti(.1,l),d=[];d.push([ti(o,l)+e+.9*n*Math.cos(u-t),ti(o,l)+r+.9*i*Math.sin(u-t)]);for(let h=u;h<=s;h+=t)d.push([ti(o,l)+e+n*Math.cos(h),ti(o,l)+r+i*Math.sin(h)]);return d.push([e+n*Math.cos(s),r+i*Math.sin(s)]),d.push([e+n*Math.cos(s),r+i*Math.sin(s)]),t8(d,null,l)}function Vmr(t,e,r,n,i,a,s,o){const l=[],u=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let d=[0,0];const h=o.disableMultiStroke?1:2,f=o.preserveVertices;for(let p=0;p<h;p++)p===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:ti(u[0],o)),s[1]+(f?0:ti(u[0],o))]}),d=f?[i,a]:[i+ti(u[p],o),a+ti(u[p],o)],l.push({op:"bcurveTo",data:[t+ti(u[p],o),e+ti(u[p],o),r+ti(u[p],o),n+ti(u[p],o),d[0],d[1]]});return l}function UO(t){return[...t]}function cwe(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(r===3)n.push(UO(t[0]),UO(t[1]),UO(t[2]),UO(t[2]));else{const i=[];i.push(t[0],t[0]);for(let o=1;o<t.length;o++)i.push(t[o]),o===t.length-1&&i.push(t[o]);const a=[],s=1-e;n.push(UO(i[0]));for(let o=1;o+2<i.length;o++){const l=i[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*i[o+1][0]-s*i[o-1][0])/6,l[1]+(s*i[o+1][1]-s*i[o-1][1])/6],a[2]=[i[o+1][0]+(s*i[o][0]-s*i[o+2][0])/6,i[o+1][1]+(s*i[o][1]-s*i[o+2][1])/6],a[3]=[i[o+1][0],i[o+1][1]],n.push(a[1],a[2],a[3])}}return n}function QP(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Hmr(t,e,r){const n=QP(e,r);if(n===0)return QP(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return i=Math.max(0,Math.min(1,i)),QP(t,Hv(e,r,i))}function Hv(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function Pee(t,e,r,n){const i=n||[];if((function(o,l){const u=o[l+0],d=o[l+1],h=o[l+2],f=o[l+3];let p=3*d[0]-2*u[0]-f[0];p*=p;let g=3*d[1]-2*u[1]-f[1];g*=g;let m=3*h[0]-2*f[0]-u[0];m*=m;let _=3*h[1]-2*f[1]-u[1];return _*=_,p<m&&(p=m),g<_&&(g=_),p+g})(t,e)<r){const o=t[e+0];i.length?(a=i[i.length-1],s=o,Math.sqrt(QP(a,s))>1&&i.push(o)):i.push(o),i.push(t[e+3])}else{const l=t[e+0],u=t[e+1],d=t[e+2],h=t[e+3],f=Hv(l,u,.5),p=Hv(u,d,.5),g=Hv(d,h,.5),m=Hv(f,p,.5),_=Hv(p,g,.5),v=Hv(m,_,.5);Pee([l,f,m,v],0,r,i),Pee([v,_,g,h],0,r,i)}var a,s;return i}function Ymr(t,e){return r8(t,0,t.length,e)}function r8(t,e,r,n,i){const a=i||[],s=t[e],o=t[r-1];let l=0,u=1;for(let d=e+1;d<r-1;++d){const h=Hmr(t[d],s,o);h>l&&(l=h,u=d)}return Math.sqrt(l)>n?(r8(t,e,u+1,n,a),r8(t,u,r,n,a)):(a.length||a.push(s),a.push(o)),a}function PK(t,e=.15,r){const n=[],i=(t.length-1)/3;for(let a=0;a<i;a++)Pee(t,3*a,e,n);return r&&r>0?r8(n,0,n.length,r):n}const vd="none";class n8{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(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,n){return{shape:e,sets:r||[],options:n||this.defaultOptions}}line(e,r,n,i,a){const s=this._o(a);return this._d("line",[NUe(e,r,n,i,s)],s)}rectangle(e,r,n,i,a){const s=this._o(a),o=[],l=qmr(e,r,n,i,s);if(s.fill){const u=[[e,r],[e+n,r],[e+n,r+i],[e,r+i]];s.fillStyle==="solid"?o.push(LK([u],s)):o.push(dS([u],s))}return s.stroke!==vd&&o.push(l),this._d("rectangle",o,s)}ellipse(e,r,n,i,a){const s=this._o(a),o=[],l=kUe(n,i,s),u=Mee(e,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const d=Mee(e,r,s,l).opset;d.type="fillPath",o.push(d)}else o.push(dS([u.estimatedPoints],s));return s.stroke!==vd&&o.push(u.opset),this._d("ellipse",o,s)}circle(e,r,n,i){const a=this.ellipse(e,r,n,n,i);return a.shape="circle",a}linearPath(e,r){const n=this._o(r);return this._d("linearPath",[XP(e,!1,n)],n)}arc(e,r,n,i,a,s,o=!1,l){const u=this._o(l),d=[],h=iwe(e,r,n,i,a,s,o,!0,u);if(o&&u.fill)if(u.fillStyle==="solid"){const f=Object.assign({},u);f.disableMultiStroke=!0;const p=iwe(e,r,n,i,a,s,!0,!1,f);p.type="fillPath",d.push(p)}else d.push((function(f,p,g,m,_,v,y){const b=f,E=p;let S=Math.abs(g/2),T=Math.abs(m/2);S+=ti(.01*S,y),T+=ti(.01*T,y);let C=_,x=v;for(;C<0;)C+=2*Math.PI,x+=2*Math.PI;x-C>2*Math.PI&&(C=0,x=2*Math.PI);const A=(x-C)/y.curveStepCount,R=[];for(let I=C;I<=x;I+=A)R.push([b+S*Math.cos(I),E+T*Math.sin(I)]);return R.push([b+S*Math.cos(x),E+T*Math.sin(x)]),R.push([b,E]),dS([R],y)})(e,r,n,i,a,s,u));return u.stroke!==vd&&d.push(h),this._d("arc",d,u)}curve(e,r){const n=this._o(r),i=[],a=nwe(e,n);if(n.fill&&n.fill!==vd)if(n.fillStyle==="solid"){const s=nwe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],o=e;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const u of l)u.length<3?s.push(...u):u.length===3?s.push(...PK(cwe([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):s.push(...PK(cwe(u),10,(1+n.roughness)/2))}s.length&&i.push(dS([s],n))}return n.stroke!==vd&&i.push(a),this._d("curve",i,n)}polygon(e,r){const n=this._o(r),i=[],a=XP(e,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(LK([e],n)):i.push(dS([e],n))),n.stroke!==vd&&i.push(a),this._d("polygon",i,n)}path(e,r){const n=this._o(r),i=[];if(!e)return this._d("path",i,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=n.fill&&n.fill!=="transparent"&&n.fill!==vd,s=n.stroke!==vd,o=!!(n.simplification&&n.simplification<1),l=(function(d,h,f){const p=OUe(RUe(sue(d))),g=[];let m=[],_=[0,0],v=[];const y=()=>{v.length>=4&&m.push(...PK(v,h)),v=[]},b=()=>{y(),m.length&&(g.push(m),m=[])};for(const{key:S,data:T}of p)switch(S){case"M":b(),_=[T[0],T[1]],m.push(_);break;case"L":y(),m.push([T[0],T[1]]);break;case"C":if(!v.length){const C=m.length?m[m.length-1]:_;v.push([C[0],C[1]])}v.push([T[0],T[1]]),v.push([T[2],T[3]]),v.push([T[4],T[5]]);break;case"Z":y(),m.push([_[0],_[1]])}if(b(),!f)return g;const E=[];for(const S of g){const T=Ymr(S,f);T.length&&E.push(T)}return E})(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),u=awe(e,n);if(a)if(n.fillStyle==="solid")if(l.length===1){const d=awe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else i.push(LK(l,n));else i.push(dS(l,n));return s&&(o?l.forEach((d=>{i.push(XP(d,!1,n))})):i.push(u)),this._d("path",i,n)}opsToPath(e,r){let n="";for(const i of e.ops){const a=typeof r=="number"&&r>=0?i.data.map((s=>+s.toFixed(r))):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(e){const r=e.sets||[],n=e.options||this.defaultOptions,i=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:vd};break;case"fillPath":s={d:this.opsToPath(a),stroke:vd,strokeWidth:0,fill:n.fill||vd};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}return i}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||vd,strokeWidth:n,fill:vd}}_mergedShape(e){return e.filter(((r,n)=>n===0||r.op!=="move"))}}class Wmr{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new n8(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,a,o),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=i,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,i="nonzero"){e.beginPath();for(const a of r.ops){const s=typeof n=="number"&&n>=0?a.data.map((o=>+o.toFixed(n))):a.data;switch(a.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s),s}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s),s}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s),s}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a),a}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n),n}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n),n}arc(e,r,n,i,a,s,o=!1,l){const u=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(u),u}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n),n}path(e,r){const n=this.gen.path(e,r);return this.draw(n),n}}const kL="http://www.w3.org/2000/svg";class Kmr{constructor(e,r){this.svg=e,this.gen=new n8(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(kL,"g"),s=e.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=i.createElementNS(kL,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",n.stroke),l.setAttribute("stroke-width",n.strokeWidth+""),l.setAttribute("fill","none"),n.strokeLineDash&&l.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(kL,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",n.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,o,n)}l&&a.appendChild(l)}return a}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const a=e.createElementNS(kL,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s)}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s)}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s)}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a)}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n)}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n)}arc(e,r,n,i,a,s,o=!1,l){const u=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(u)}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n)}path(e,r){const n=this.gen.path(e,r);return this.draw(n)}}var mn={canvas:(t,e)=>new Wmr(t,e),svg:(t,e)=>new Kmr(t,e),generator:t=>new n8(t),newSeed:()=>n8.newSeed()},Zn=k(async(t,e,r)=>{let n;const i=e.useHtmlLabels||F0(vt()?.htmlLabels);r?n=r:n="node default";const a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",Rl(e.labelStyle));let o;e.label===void 0?o="":o=typeof e.label=="string"?e.label:e.label[0];const l=!!e.icon||!!e.img,u=e.labelType==="markdown",d=await xu(s,ta(u0(o),vt()),{useHtmlLabels:i,width:e.width||vt().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:l,markdown:u},vt());let h=d.getBBox();const f=(e?.padding??0)/2;if(i){const p=d.children[0],g=dr(d);await Wce(p,o),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return i?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:h,halfPadding:f,label:s}},"labelHelper"),FK=k(async(t,e,r)=>{const n=r.useHtmlLabels??Da(vt()),i=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await xu(i,ta(u0(e),vt()),{useHtmlLabels:n,width:r.width||vt()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(Da(vt())){const l=a.children[0],u=dr(a);s=l.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:i}},"insertLabel"),Cn=k((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Wn=k((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function sa(t){const e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}k(sa,"createPathFromPoints");function b1(t,e,r,n,i,a){const s=[],l=r-t,u=n-e,d=l/a,h=2*Math.PI/d,f=e+u/2;for(let p=0;p<=50;p++){const g=p/50,m=t+g*l,_=f+i*Math.sin(h*(m-t));s.push({x:m,y:_})}return s}k(b1,"generateFullSineWavePoints");function $k(t,e,r,n,i,a){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*d,p=t+r*Math.cos(f),g=e+r*Math.sin(f);s.push({x:-p,y:-g})}return s}k($k,"generateCirclePoints");function Fee(t){const e=Array.from(t.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=e.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",n);const i=e.find(l=>l.getAttribute("fill")!=="none"),a=e.find(l=>l.getAttribute("stroke")!=="none"),s=k((l,u)=>l?.getAttribute(u)??void 0,"getAttr");if(i){const l={fill:s(i,"fill"),"fill-opacity":s(i,"fill-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}if(a){const l={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}const o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.appendChild(r),o}k(Fee,"mergePaths");var jmr=k((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=a===0?0:o*i/a,u=o):(i<0&&(s=-s),l=s,u=i===0?0:s*a/i),{x:r+l,y:n+u}},"intersectRect"),xR=jmr,Xmr=k(async(t,e,r,n=!1,i=!1)=>{let a=e||"";typeof a=="object"&&(a=a[0]);const s=vt(),o=Da(s);return await xu(t,a,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),F_=Xmr,H1=k((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD"),MUe=k(async(t,e)=>{Pe.info("Creating subgraph rect for ",e.id,e);const r=vt(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:d}=cn(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=Da(r),p=h.insert("g").attr("class","cluster-label ");let g;e.labelType==="markdown"?g=await xu(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width}):g=await F_(p,e.label,e.labelStyle||"",!1,!0);let m=g.getBBox();if(Da(r)){const C=g.children[0],x=dr(g);m=C.getBoundingClientRect(),x.attr("width",m.width),x.attr("height",m.height)}const _=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,y=e.x-_/2,b=e.y-v/2;Pe.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const C=mn.svg(h),x=Sn(e,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),A=C.path(H1(y,b,_,v,0),x);E=h.insert(()=>(Pe.debug("Rough node insert CXC",A),A),":first-child"),E.select("path:nth-child(2)").attr("style",u.join(";")),E.select("path").attr("style",d.join(";").replace("fill","stroke"))}else E=h.insert("rect",":first-child"),E.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",y).attr("y",b).attr("width",_).attr("height",v);const{subGraphTitleTopMargin:S}=q5(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+S})`),o){const C=p.select("span");C&&C.attr("style",o)}const T=E.node().getBBox();return e.offsetX=0,e.width=T.width,e.height=T.height,e.offsetY=m.height-e.padding/2,e.intersect=function(C){return xR(e,C)},{cluster:h,labelBBox:m}},"rect"),Qmr=k((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return xR(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Zmr=k(async(t,e)=>{const r=vt(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=n,u=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),d=u.insert("g",":first-child"),h=u.insert("g").attr("class","cluster-label");let f=u.append("rect");const p=await F_(h,e.label,e.labelStyle,void 0,!0);let g=p.getBBox();if(Da(r)){const A=p.children[0],R=dr(p);g=A.getBoundingClientRect(),R.attr("width",g.width),R.attr("height",g.height)}const m=0*e.padding,_=m/2,v=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+m;e.width<=g.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height+m,b=e.height+m-g.height-6,E=e.x-v/2,S=e.y-y/2;e.width=v;const T=e.y-e.height/2-_+g.height+2;let C;if(e.look==="handDrawn"){const A=e.cssClasses.includes("statediagram-cluster-alt"),R=mn.svg(u),I=e.rx||e.ry?R.path(H1(E,S,v,y,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:i}):R.rectangle(E,S,v,y,{seed:i});C=u.insert(()=>I,":first-child");const L=R.rectangle(E,T,v,b,{fill:A?a:s,fillStyle:A?"hachure":"solid",stroke:l,seed:i});C=u.insert(()=>I,":first-child"),f=u.insert(()=>L)}else C=d.insert("rect",":first-child"),C.attr("class","outer").attr("x",E).attr("y",S).attr("width",v).attr("height",y).attr("data-look",e.look),f.attr("class","inner").attr("x",E).attr("y",T).attr("width",v).attr("height",b);h.attr("transform",`translate(${e.x-g.width/2}, ${S+1-(Da(r)?0:3)})`);const x=C.node().getBBox();return e.height=x.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(A){return xR(e,A)},{cluster:u,labelBBox:g}},"roundedWithTitle"),Jmr=k(async(t,e)=>{Pe.info("Creating subgraph rect for ",e.id,e);const r=vt(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:d}=cn(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=Da(r),p=h.insert("g").attr("class","cluster-label "),g=await xu(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let m=g.getBBox();if(Da(r)){const C=g.children[0],x=dr(g);m=C.getBoundingClientRect(),x.attr("width",m.width),x.attr("height",m.height)}const _=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,y=e.x-_/2,b=e.y-v/2;Pe.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const C=mn.svg(h),x=Sn(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:i}),A=C.path(H1(y,b,_,v,e.rx),x);E=h.insert(()=>(Pe.debug("Rough node insert CXC",A),A),":first-child"),E.select("path:nth-child(2)").attr("style",u.join(";")),E.select("path").attr("style",d.join(";").replace("fill","stroke"))}else E=h.insert("rect",":first-child"),E.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",y).attr("y",b).attr("width",_).attr("height",v);const{subGraphTitleTopMargin:S}=q5(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+S})`),o){const C=p.select("span");C&&C.attr("style",o)}const T=E.node().getBBox();return e.offsetX=0,e.width=T.width,e.height=T.height,e.offsetY=m.height-e.padding/2,e.intersect=function(C){return xR(e,C)},{cluster:h,labelBBox:m}},"kanbanSection"),e0r=k((t,e)=>{const r=vt(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),o=s.insert("g",":first-child"),l=0*e.padding,u=e.width+l;e.diff=-e.padding;const d=e.height+l,h=e.x-u/2,f=e.y-d/2;e.width=u;let p;if(e.look==="handDrawn"){const _=mn.svg(s).rectangle(h,f,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});p=s.insert(()=>_,":first-child")}else{p=o.insert("rect",":first-child");let m="outer";e.look,m="divider",p.attr("class",m).attr("x",h).attr("y",f).attr("width",u).attr("height",d).attr("data-look",e.look)}const g=p.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(m){return xR(e,m)},{cluster:s,labelBBox:{}}},"divider"),t0r=MUe,r0r={rect:MUe,squareRect:t0r,roundedWithTitle:Zmr,noteGroup:Qmr,divider:e0r,kanbanSection:Jmr},LUe=new Map,oue=k(async(t,e)=>{const r=e.shape||"rect",n=await r0r[r](t,e);return LUe.set(e.id,n),n},"insertCluster"),n0r=k(()=>{LUe=new Map},"clear");function PUe(t,e){return t.intersect(e)}k(PUe,"intersectNode");var i0r=PUe;function FUe(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,o=a-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x<i&&(u=-u);var d=Math.abs(e*r*o/l);return n.y<a&&(d=-d),{x:i+u,y:a+d}}k(FUe,"intersectEllipse");var BUe=FUe;function UUe(t,e,r){return BUe(t,e,e,r)}k(UUe,"intersectCircle");var a0r=UUe;function $Ue(t,e,r,n){{const i=e.y-t.y,a=t.x-e.x,s=e.x*t.y-t.x*e.y,o=i*r.x+a*r.y+s,l=i*n.x+a*n.y+s,u=1e-6;if(o!==0&&l!==0&&Bee(o,l))return;const d=n.y-r.y,h=r.x-n.x,f=n.x*r.y-r.x*n.y,p=d*t.x+h*t.y+f,g=d*e.x+h*e.y+f;if(Math.abs(p)<u&&Math.abs(g)<u&&Bee(p,g))return;const m=i*h-d*a;if(m===0)return;const _=Math.abs(m/2);let v=a*f-h*s;const y=v<0?(v-_)/m:(v+_)/m;v=d*s-i*f;const b=v<0?(v-_)/m:(v+_)/m;return{x:y,y:b}}}k($Ue,"intersectLine");function Bee(t,e){return t*e>0}k(Bee,"sameSign");var s0r=$Ue;function GUe(t,e,r){let n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(d){s=Math.min(s,d.x),o=Math.min(o,d.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));let l=n-t.width/2-s,u=i-t.height/2-o;for(let d=0;d<e.length;d++){let h=e[d],f=e[d<e.length-1?d+1:0],p=s0r(t,r,{x:l+h.x,y:u+h.y},{x:l+f.x,y:u+f.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(d,h){let f=d.x-r.x,p=d.y-r.y,g=Math.sqrt(f*f+p*p),m=h.x-r.x,_=h.y-r.y,v=Math.sqrt(m*m+_*_);return g<v?-1:g===v?0:1}),a[0]):t}k(GUe,"intersectPolygon");var o0r=GUe,sn={node:i0r,circle:a0r,ellipse:BUe,polygon:o0r,rect:xR};function zUe(t,e){const{labelStyles:r}=cn(e);e.labelStyle=r;const n=Wn(e);let i=n;n||(i="anchor");const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=1,{cssStyles:o}=e,l=mn.svg(a),u=Sn(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(u.roughness=0);const d=l.circle(0,0,s*2,u),h=a.insert(()=>d,":first-child");return h.attr("class","anchor").attr("style",Rl(o)),Cn(e,h),e.intersect=function(f){return Pe.info("Circle intersect",e,s,f),sn.circle(e,s,f)},a}k(zUe,"anchor");function Uee(t,e,r,n,i,a,s){const l=(t+r)/2,u=(e+n)/2,d=Math.atan2(n-e,r-t),h=(r-t)/2,f=(n-e)/2,p=h/i,g=f/a,m=Math.sqrt(p**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const _=Math.sqrt(1-m**2),v=l+_*a*Math.sin(d)*(s?-1:1),y=u-_*i*Math.cos(d)*(s?-1:1),b=Math.atan2((e-y)/a,(t-v)/i);let S=Math.atan2((n-y)/a,(r-v)/i)-b;s&&S<0&&(S+=2*Math.PI),!s&&S>0&&(S-=2*Math.PI);const T=[];for(let C=0;C<20;C++){const x=C/19,A=b+x*S,R=v+i*Math.cos(A),I=y+a*Math.sin(A);T.push({x:R,y:I})}return T}k(Uee,"generateArcPoints");function qUe(t,e,r){const[n,i]=[e,r].sort((a,s)=>s-a);return i*(1-Math.sqrt(1-(t/n/2)**2))}k(qUe,"calculateArcSagitta");async function VUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=k(A=>A+s,"calcTotalHeight"),l=k(A=>{const R=A/2;return[R/(2.5+A/50),R]},"calcEllipseRadius"),{shapeSvg:u,bbox:d}=await Zn(t,e,Wn(e)),h=o(e?.height?e?.height:d.height),[f,p]=l(h),g=qUe(h,f,p),_=(e?.width?e?.width:d.width)+a*2+g-g,v=h,{cssStyles:y}=e,b=[{x:_/2,y:-v/2},{x:-_/2,y:-v/2},...Uee(-_/2,-v/2,-_/2,v/2,f,p,!1),{x:_/2,y:v/2},...Uee(_/2,v/2,_/2,-v/2,f,p,!0)],E=mn.svg(u),S=Sn(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const T=sa(b),C=E.path(T,S),x=u.insert(()=>C,":first-child");return x.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",y),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${f/2}, 0)`),Cn(e,x),e.intersect=function(A){return sn.polygon(e,b,A)},u}k(VUe,"bowTieRect");function U0(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}k(U0,"insertPolygonShape");var DL=12;async function HUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?28:i,s=e.look==="neo"?24:i,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.width??l.width)+(e.look==="neo"?a*2:a+DL),d=(e?.height??l.height)+(e.look==="neo"?s*2:s),h=0,f=u,p=-d,g=0,m=[{x:h+DL,y:p},{x:f,y:p},{x:f,y:g},{x:h,y:g},{x:h,y:p+DL},{x:h+DL,y:p}];let _;const{cssStyles:v}=e;if(e.look==="handDrawn"){const y=mn.svg(o),b=Sn(e,{}),E=sa(m),S=y.path(E,b);_=o.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),v&&_.attr("style",v)}else _=U0(o,u,d,m);return n&&_.attr("style",n),Cn(e,_),e.intersect=function(y){return sn.polygon(e,m,y)},o}k(HUe,"card");function YUe(t,e){const{nodeStyles:r}=cn(e);e.label="";const n=t.insert("g").attr("class",Wn(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=mn.svg(n),l=Sn(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=sa(s),d=o.path(u,l),h=n.insert(()=>d,":first-child");return i&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",i),r&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(f){return sn.polygon(e,s,f)},n}k(YUe,"choice");async function lue(t,e,r){const{labelStyles:n,nodeStyles:i}=cn(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,halfPadding:o}=await Zn(t,e,Wn(e)),l=16,u=r?.padding??o,d=e.look==="neo"?s.width/2+l*2:s.width/2+u;let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=mn.svg(a),g=Sn(e,{}),m=p.circle(0,0,d*2,g);h=a.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",Rl(f))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0);return Cn(e,h),e.calcIntersect=function(p,g){const m=p.width/2;return sn.circle(p,m,g)},e.intersect=function(p){return Pe.info("Circle intersect",e,d,p),sn.circle(e,d,p)},a}k(lue,"circle");function WUe(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,i={x:n/2*e,y:n/2*r},a={x:-(n/2)*e,y:n/2*r},s={x:-(n/2)*e,y:-(n/2)*r},o={x:n/2*e,y:-(n/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y}
                   M ${i.x},${i.y} L ${s.x},${s.y}`}k(WUe,"createLine");function KUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r,e.label="";const i=t.insert("g").attr("class",Wn(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,o=mn.svg(i),l=Sn(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=o.circle(0,0,a*2,l),d=WUe(a),h=o.path(d,l),f=i.insert(()=>u,":first-child");return f.insert(()=>h),f.attr("class","outer-path"),s&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),Cn(e,f),e.intersect=function(p){return Pe.info("crossedCircle intersect",e,{radius:a,point:p}),sn.circle(e,a,p)},i}k(KUe,"crossedCircle");function dm(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*d,p=t+r*Math.cos(f),g=e+r*Math.sin(f);s.push({x:-p,y:-g})}return s}k(dm,"generateCirclePoints");async function jUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Zn(t,e,Wn(e)),o=e.look==="neo"?18:e.padding??0,l=e.look==="neo"?12:e.padding??0,u=a.width+o,d=a.height+l,h=Math.max(5,d*.1),{cssStyles:f}=e,p=[...dm(u/2,-d/2,h,30,-90,0),{x:-u/2-h,y:h},...dm(u/2+h*2,-h,h,20,-180,-270),...dm(u/2+h*2,h,h,20,-90,-180),{x:-u/2-h,y:-d/2},...dm(u/2,d/2,h,20,0,90)],g=[{x:u/2,y:-d/2-h},{x:-u/2,y:-d/2-h},...dm(u/2,-d/2,h,20,-90,0),{x:-u/2-h,y:-h},...dm(u/2+u*.1,-h,h,20,-180,-270),...dm(u/2+u*.1,h,h,20,-90,-180),{x:-u/2-h,y:d/2},...dm(u/2,d/2,h,20,0,90),{x:-u/2,y:d/2+h},{x:u/2,y:d/2+h}],m=mn.svg(i),_=Sn(e,{fill:"none"});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const y=sa(p).replace("Z",""),b=m.path(y,_),E=sa(g),S=m.path(E,{..._}),T=i.insert("g",":first-child");return T.insert(()=>S,":first-child").attr("stroke-opacity",0),T.insert(()=>b,":first-child"),T.attr("class","text"),f&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",n),T.attr("transform",`translate(${h}, 0)`),s.attr("transform",`translate(${-u/2+h-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Cn(e,T),e.intersect=function(C){return sn.polygon(e,g,C)},i}k(jUe,"curlyBraceLeft");function hm(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*d,p=t+r*Math.cos(f),g=e+r*Math.sin(f);s.push({x:p,y:g})}return s}k(hm,"generateCirclePoints");async function XUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Zn(t,e,Wn(e)),o=e.look==="neo"?18:e.padding??0,l=e.look==="neo"?12:e.padding??0,u=a.width+(e.look==="neo"?o*2:o),d=a.height+(e.look==="neo"?l*2:l),h=Math.max(5,d*.1),{cssStyles:f}=e,p=[...hm(u/2,-d/2,h,20,-90,0),{x:u/2+h,y:-h},...hm(u/2+h*2,-h,h,20,-180,-270),...hm(u/2+h*2,h,h,20,-90,-180),{x:u/2+h,y:d/2},...hm(u/2,d/2,h,20,0,90)],g=[{x:-u/2,y:-d/2-h},{x:u/2,y:-d/2-h},...hm(u/2,-d/2,h,20,-90,0),{x:u/2+h,y:-h},...hm(u/2+h*2,-h,h,20,-180,-270),...hm(u/2+h*2,h,h,20,-90,-180),{x:u/2+h,y:d/2},...hm(u/2,d/2,h,20,0,90),{x:u/2,y:d/2+h},{x:-u/2,y:d/2+h}],m=mn.svg(i),_=Sn(e,{fill:"none"});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const y=sa(p).replace("Z",""),b=m.path(y,_),E=sa(g),S=m.path(E,{..._}),T=i.insert("g",":first-child");return T.insert(()=>S,":first-child").attr("stroke-opacity",0),T.insert(()=>b,":first-child"),T.attr("class","text"),f&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",n),T.attr("transform",`translate(${-h}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Cn(e,T),e.intersect=function(C){return sn.polygon(e,g,C)},i}k(XUe,"curlyBraceRight");function Fl(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,d=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*d,p=t+r*Math.cos(f),g=e+r*Math.sin(f);s.push({x:-p,y:-g})}return s}k(Fl,"generateCirclePoints");async function QUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Zn(t,e,Wn(e)),o=e.look==="neo"?18:e.padding??0,l=e.look==="neo"?12:e.padding??0,u=a.width+(e.look==="neo"?o*2:o),d=a.height+(e.look==="neo"?l*2:l),h=Math.max(5,d*.1),{cssStyles:f}=e,p=[...Fl(u/2,-d/2,h,30,-90,0),{x:-u/2-h,y:h},...Fl(u/2+h*2,-h,h,20,-180,-270),...Fl(u/2+h*2,h,h,20,-90,-180),{x:-u/2-h,y:-d/2},...Fl(u/2,d/2,h,20,0,90)],g=[...Fl(-u/2+h+h/2,-d/2,h,20,-90,-180),{x:u/2-h/2,y:h},...Fl(-u/2-h/2,-h,h,20,0,90),...Fl(-u/2-h/2,h,h,20,-90,0),{x:u/2-h/2,y:-h},...Fl(-u/2+h+h/2,d/2,h,30,-180,-270)],m=[{x:u/2,y:-d/2-h},{x:-u/2,y:-d/2-h},...Fl(u/2,-d/2,h,20,-90,0),{x:-u/2-h,y:-h},...Fl(u/2+h*2,-h,h,20,-180,-270),...Fl(u/2+h*2,h,h,20,-90,-180),{x:-u/2-h,y:d/2},...Fl(u/2,d/2,h,20,0,90),{x:-u/2,y:d/2+h},{x:u/2-h-h/2,y:d/2+h},...Fl(-u/2+h+h/2,-d/2,h,20,-90,-180),{x:u/2-h/2,y:h},...Fl(-u/2-h/2,-h,h,20,0,90),...Fl(-u/2-h/2,h,h,20,-90,0),{x:u/2-h/2,y:-h},...Fl(-u/2+h+h/2,d/2,h,30,-180,-270)],_=mn.svg(i),v=Sn(e,{fill:"none"});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=sa(p).replace("Z",""),E=_.path(b,v),T=sa(g).replace("Z",""),C=_.path(T,v),x=sa(m),A=_.path(x,{...v}),R=i.insert("g",":first-child");return R.insert(()=>A,":first-child").attr("stroke-opacity",0),R.insert(()=>E,":first-child"),R.insert(()=>C,":first-child"),R.attr("class","text"),f&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",n),R.attr("transform",`translate(${h-h/4}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-d/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Cn(e,R),e.intersect=function(I){return sn.polygon(e,m,I)},i}k(QUe,"curlyBraces");async function ZUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=20,l=5,{shapeSvg:u,bbox:d}=await Zn(t,e,Wn(e)),h=Math.max(o,(d.width+a*2)*1.25,e?.width??0),f=Math.max(l,d.height+s*2,e?.height??0),p=f/2,{cssStyles:g}=e,m=mn.svg(u),_=Sn(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=h,y=f,b=v-p,E=y/4,S=[{x:b,y:0},{x:E,y:0},{x:0,y:y/2},{x:E,y},{x:b,y},...$k(-b,-y/2,p,50,270,90)],T=sa(S),C=m.path(T,_),x=u.insert(()=>C,":first-child");return x.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),x.attr("transform",`translate(${-h/2}, ${-f/2})`),Cn(e,x),e.intersect=function(A){return sn.polygon(e,S,A)},u}k(ZUe,"curvedTrapezoid");var l0r=k((t,e,r,n,i,a)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),c0r=k((t,e,r,n,i,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),u0r=k((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),uwe=8,dwe=8;async function JUe(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?24:i,s=e.look==="neo"?24:i;if(e.width||e.height){const _=e.width??0;e.width=(e.width??0)-s,e.width<dwe&&(e.width=dwe);const y=_/2/(2.5+_/50);e.height=(e.height??0)-a-y*3,e.height<uwe&&(e.height=uwe)}const{shapeSvg:o,bbox:l,label:u}=await Zn(t,e,Wn(e)),d=(e.width?e.width:l.width)+s,h=d/2,f=h/(2.5+d/50),p=(e.height?e.height:l.height)+a+f;let g;const{cssStyles:m}=e;if(e.look==="handDrawn"){const _=mn.svg(o),v=c0r(0,0,d,p,h,f),y=u0r(0,f,d,p,h,f),b=Sn(e,{}),E=_.path(v,b),S=_.path(y,Sn(e,{fill:"none"}));g=o.insert(()=>S,":first-child"),g=o.insert(()=>E,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const _=l0r(0,0,d,p,h,f);g=o.insert("path",":first-child").attr("d",_).attr("class","basic label-container outer-path").attr("style",Rl(m)).attr("style",n)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),Cn(e,g),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(e.padding??0)/1.5-(l.y-(l.top??0))})`),e.intersect=function(_){const v=sn.rect(e,_),y=v.x-(e.x??0);if(h!=0&&(Math.abs(y)<(e.width??0)/2||Math.abs(y)==(e.width??0)/2&&Math.abs(v.y-(e.y??0))>(e.height??0)/2-f)){let b=f*f*(1-y*y/(h*h));b>0&&(b=Math.sqrt(b)),b=f-b,_.y-(e.y??0)>0&&(b=-b),v.y+=b}return v},o}k(JUe,"cylinder");async function AR(t,e,r){const{labelStyles:n,nodeStyles:i}=cn(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Zn(t,e,Wn(e)),o=Math.max(s.width+r.labelPaddingX*2,e?.width||0),l=Math.max(s.height+r.labelPaddingY*2,e?.height||0),u=-o/2,d=-l/2;let h,{rx:f,ry:p}=e;const{cssStyles:g}=e;if(r?.rx&&r.ry&&(f=r.rx,p=r.ry),e.look==="handDrawn"){const m=mn.svg(a),_=Sn(e,{}),v=f||p?m.path(H1(u,d,o,l,f||0),_):m.rectangle(u,d,o,l,_);h=a.insert(()=>v,":first-child"),h.attr("class","basic label-container").attr("style",Rl(g))}else h=a.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",Rl(f)).attr("ry",Rl(p)).attr("x",u).attr("y",d).attr("width",o).attr("height",l);return Cn(e,h),e.calcIntersect=function(m,_){return sn.rect(m,_)},e.intersect=function(m){return sn.rect(e,m)},a}k(AR,"drawRect");async function e$e(t,e){const{cssClasses:r,labelPaddingX:n,labelPaddingY:i,padding:a,width:s,height:o}=e,l={rx:0,ry:0,labelPaddingX:n??(a??0)*2,labelPaddingY:i??a??0},u=await AR(t,e,l);if(e.look==="handDrawn"){const p=mn.svg(u),g=Sn(e,{}),m=u.select(".basic.label-container > path:nth-child(2)"),_=m.node();if(!_)return u;let v=null;if(_ instanceof SVGGraphicsElement)v=_.getBBox();else return u;return u.insert(()=>p.line(v.x,v.y,v.x+v.width,v.y,g),".basic.label-container g.label"),u.insert(()=>p.line(v.x,v.y+v.height,v.x+v.width,v.y+v.height,g),".basic.label-container g.label"),m.remove(),u}const d=u.select(".basic.label-container"),h=(Number(d.attr("width"))||s)??0,f=(Number(d.attr("height"))||o)??0;return h>0&&f>0&&d.attr("stroke-dasharray",`${h} ${f}`),u}k(e$e,"datastore");async function t$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?16:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Zn(t,e,Wn(e)),u=o.width+i,d=o.height+a,h=d*.2,f=-u/2,p=-d/2-h/2,{cssStyles:g}=e,m=mn.svg(s),_=Sn(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=[{x:f,y:p+h},{x:-f,y:p+h},{x:-f,y:-p},{x:f,y:-p},{x:f,y:p},{x:-f,y:p},{x:-f,y:p+h}],y=m.polygon(v.map(E=>[E.x,E.y]),_),b=s.insert(()=>y,":first-child");return b.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),l.attr("transform",`translate(${f+(e.padding??0)/2-(o.x-(o.left??0))}, ${p+h+(e.padding??0)/2-(o.y-(o.top??0))})`),Cn(e,b),e.intersect=function(E){return sn.rect(e,E)},s}k(t$e,"dividedRectangle");async function r$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e),i=e.look==="neo"?12:5;e.labelStyle=r;const a=e.padding??0,s=e.look==="neo"?16:a,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.width?e?.width/2:l.width/2)+(s??0),d=u-i;let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=mn.svg(o),g=Sn(e,{roughness:.2,strokeWidth:2.5}),m=Sn(e,{roughness:.2,strokeWidth:1.5}),_=p.circle(0,0,u*2,g),v=p.circle(0,0,d*2,m);h=o.insert("g",":first-child"),h.attr("class",Rl(e.cssClasses)).attr("style",Rl(f)),h.node()?.appendChild(_),h.node()?.appendChild(v)}else{h=o.insert("g",":first-child");const p=h.insert("circle",":first-child"),g=h.insert("circle");h.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0)}return Cn(e,h),e.intersect=function(p){return Pe.info("DoubleCircle intersect",e,u,p),sn.circle(e,u,p)},o}k(r$e,"doublecircle");function n$e(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=cn(e);e.label="",e.labelStyle=n;const a=t.insert("g").attr("class",Wn(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,l=mn.svg(a),{nodeBorder:u}=r,d=Sn(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(d.roughness=0);const h=l.circle(0,0,s*2,d),f=a.insert(()=>h,":first-child");return f.selectAll("path").attr("style",`fill: ${u} !important;`),o&&o.length>0&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",o),i&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",i),Cn(e,f),e.intersect=function(p){return Pe.info("filledCircle intersect",e,{radius:s,point:p}),sn.circle(e,s,p)},a}k(n$e,"filledCircle");var hwe=10,fwe=10;async function i$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.height=e?.height??0,e.height<hwe&&(e.height=hwe),e.width=(e?.width??0)-a-a/2,e.width<fwe&&(e.width=fwe));const{shapeSvg:s,bbox:o,label:l}=await Zn(t,e,Wn(e)),u=(e?.width?e?.width:o.width)+(a??0),d=e?.height?e?.height:u+o.height,h=d,f=[{x:0,y:-d},{x:h,y:-d},{x:h/2,y:0}],{cssStyles:p}=e,g=mn.svg(s),m=Sn(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=sa(f),v=g.path(_,m),y=s.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return p&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),e.width=u,e.height=d,Cn(e,y),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-d/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(b){return Pe.info("Triangle intersect",e,f,b),sn.polygon(e,f,b)},s}k(i$e,"flippedTriangle");function a$e(t,e,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:a}=cn(e);e.label="";const s=t.insert("g").attr("class",Wn(e)).attr("id",e.domId??e.id),{cssStyles:o}=e;let l=Math.max(70,e?.width??0),u=Math.max(10,e?.height??0);r==="LR"&&(l=Math.max(10,e?.width??0),u=Math.max(70,e?.height??0));const d=-1*l/2,h=-1*u/2,f=mn.svg(s),p=Sn(e,{stroke:i.lineColor,fill:i.lineColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=f.rectangle(d,h,l,u,p),m=s.insert(()=>g,":first-child");o&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",o),a&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",a),Cn(e,m);const _=n?.padding??0;return e.width&&e.height&&(e.width+=_/2||0,e.height+=_/2||0),e.intersect=function(v){return sn.rect(e,v)},s}k(a$e,"forkJoin");async function s$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=15,a=10,s=e.look==="neo"?16:e.padding??0,o=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-o*2,e.height<a&&(e.height=a),e.width=(e?.width??0)-s*2,e.width<i&&(e.width=i));const{shapeSvg:l,bbox:u}=await Zn(t,e,Wn(e)),d=(e?.width?e?.width:Math.max(i,u.width))+s*2,h=(e?.height?e?.height:Math.max(a,u.height))+o*2,f=h/2,{cssStyles:p}=e,g=mn.svg(l),m=Sn(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=[{x:-d/2,y:-h/2},{x:d/2-f,y:-h/2},...$k(-d/2+f,0,f,50,90,270),{x:d/2-f,y:h/2},{x:-d/2,y:h/2}],v=sa(_),y=g.path(v,m),b=l.insert(()=>y,":first-child");return b.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),Cn(e,b),e.intersect=function(E){return Pe.info("Pill intersect",e,{radius:f,point:E}),sn.polygon(e,_,E)},l}k(s$e,"halfRoundedRectangle");var d0r=k((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");async function o$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e),i=e.look==="neo"?3.5:4;e.labelStyle=r;const a=e.padding??0,s=70,o=32,l=e.look==="neo"?s:a,u=e.look==="neo"?o:a;if(e.width||e.height){const b=(e.height??0)/i;e.width=(e?.width??0)-2*b-u,e.height=(e.height??0)-l}const{shapeSvg:d,bbox:h}=await Zn(t,e,Wn(e)),f=(e?.height?e?.height:h.height)+l,p=f/i,g=(e?.width?e?.width:h.width)+2*p+u,m=[{x:p,y:0},{x:g-p,y:0},{x:g,y:-f/2},{x:g-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}];let _;const{cssStyles:v}=e;if(e.look==="handDrawn"){const y=mn.svg(d),b=Sn(e,{}),E=d0r(0,0,g,f,p),S=y.path(E,b);_=d.insert(()=>S,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),v&&_.attr("style",v)}else _=U0(d,g,f,m);return n&&_.attr("style",n),e.width=g,e.height=f,Cn(e,_),e.intersect=function(y){return sn.polygon(e,m,y)},d}k(o$e,"hexagon");async function l$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.label="",e.labelStyle=r;const{shapeSvg:i}=await Zn(t,e,Wn(e)),a=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,l=mn.svg(i),u=Sn(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],h=sa(d),f=l.path(h,u),p=i.insert(()=>f,":first-child");return p.attr("class","basic label-container outer-path"),o&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",o),n&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),p.attr("transform",`translate(${-a/2}, ${-s/2})`),Cn(e,p),e.intersect=function(g){return Pe.info("Pill intersect",e,{points:d}),sn.polygon(e,d,g)},i}k(l$e,"hourglass");async function c$e(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=cn(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Zn(t,e,"icon-shape default"),f=e.pos==="t",p=o,g=o,{nodeBorder:m}=r,{stylesMap:_}=wR(e),v=-g/2,y=-p/2,b=e.label?8:0,E=mn.svg(u),S=Sn(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const T=E.rectangle(v,y,g,p,S),C=Math.max(g,d.width),x=p+d.height+b,A=E.rectangle(-C/2,-x/2,C,x,{...S,fill:"transparent",stroke:"none"}),R=u.insert(()=>T,":first-child"),I=u.insert(()=>A);if(e.icon){const L=u.append("g");L.html(`<g>${await v1(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const F=L.node().getBBox(),O=F.width,D=F.height,M=F.x,P=F.y;L.attr("transform",`translate(${-O/2-M},${f?d.height/2+b/2-D/2-P:-d.height/2-b/2-D/2-P})`),L.attr("style",`color: ${_.get("stroke")??m};`)}return h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-x/2:x/2-d.height})`),R.attr("transform",`translate(0,${f?d.height/2+b/2:-d.height/2-b/2})`),Cn(e,I),e.intersect=function(L){if(Pe.info("iconSquare intersect",e,L),!e.label)return sn.rect(e,L);const F=e.x??0,O=e.y??0,D=e.height??0;let M=[];return f?M=[{x:F-d.width/2,y:O-D/2},{x:F+d.width/2,y:O-D/2},{x:F+d.width/2,y:O-D/2+d.height+b},{x:F+g/2,y:O-D/2+d.height+b},{x:F+g/2,y:O+D/2},{x:F-g/2,y:O+D/2},{x:F-g/2,y:O-D/2+d.height+b},{x:F-d.width/2,y:O-D/2+d.height+b}]:M=[{x:F-g/2,y:O-D/2},{x:F+g/2,y:O-D/2},{x:F+g/2,y:O-D/2+p},{x:F+d.width/2,y:O-D/2+p},{x:F+d.width/2/2,y:O+D/2},{x:F-d.width/2,y:O+D/2},{x:F-d.width/2,y:O-D/2+p},{x:F-g/2,y:O-D/2+p}],sn.polygon(e,M,L)},u}k(c$e,"icon");async function u$e(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=cn(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Zn(t,e,"icon-shape default"),f=20,p=e.label?8:0,g=e.pos==="t",{nodeBorder:m,mainBkg:_}=r,{stylesMap:v}=wR(e),y=mn.svg(u),b=Sn(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const E=v.get("fill");b.stroke=E??_;const S=u.append("g");e.icon&&S.html(`<g>${await v1(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const T=S.node().getBBox(),C=T.width,x=T.height,A=T.x,R=T.y,I=Math.max(C,x)*Math.SQRT2+f*2,L=y.circle(0,0,I,b),F=Math.max(I,d.width),O=I+d.height+p,D=y.rectangle(-F/2,-O/2,F,O,{...b,fill:"transparent",stroke:"none"}),M=u.insert(()=>L,":first-child"),P=u.insert(()=>D);return S.attr("transform",`translate(${-C/2-A},${g?d.height/2+p/2-x/2-R:-d.height/2-p/2-x/2-R})`),S.attr("style",`color: ${v.get("stroke")??m};`),h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-O/2:O/2-d.height})`),M.attr("transform",`translate(0,${g?d.height/2+p/2:-d.height/2-p/2})`),Cn(e,P),e.intersect=function(N){return Pe.info("iconSquare intersect",e,N),sn.rect(e,N)},u}k(u$e,"iconCircle");async function d$e(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=cn(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Zn(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:_,mainBkg:v}=r,{stylesMap:y}=wR(e),b=-m/2,E=-g/2,S=e.label?8:0,T=mn.svg(u),C=Sn(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=y.get("fill");C.stroke=x??v;const A=T.path(H1(b,E,m,g,5),C),R=Math.max(m,d.width),I=g+d.height+S,L=T.rectangle(-R/2,-I/2,R,I,{...C,fill:"transparent",stroke:"none"}),F=u.insert(()=>A,":first-child").attr("class","icon-shape2"),O=u.insert(()=>L);if(e.icon){const D=u.append("g");D.html(`<g>${await v1(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const M=D.node().getBBox(),P=M.width,N=M.height,$=M.x,U=M.y;D.attr("transform",`translate(${-P/2-$},${p?d.height/2+S/2-N/2-U:-d.height/2-S/2-N/2-U})`),D.attr("style",`color: ${y.get("stroke")??_};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-I/2:I/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+S/2:-d.height/2-S/2})`),Cn(e,O),e.intersect=function(D){if(Pe.info("iconSquare intersect",e,D),!e.label)return sn.rect(e,D);const M=e.x??0,P=e.y??0,N=e.height??0;let $=[];return p?$=[{x:M-d.width/2,y:P-N/2},{x:M+d.width/2,y:P-N/2},{x:M+d.width/2,y:P-N/2+d.height+S},{x:M+m/2,y:P-N/2+d.height+S},{x:M+m/2,y:P+N/2},{x:M-m/2,y:P+N/2},{x:M-m/2,y:P-N/2+d.height+S},{x:M-d.width/2,y:P-N/2+d.height+S}]:$=[{x:M-m/2,y:P-N/2},{x:M+m/2,y:P-N/2},{x:M+m/2,y:P-N/2+g},{x:M+d.width/2,y:P-N/2+g},{x:M+d.width/2/2,y:P+N/2},{x:M-d.width/2,y:P+N/2},{x:M-d.width/2,y:P-N/2+g},{x:M-m/2,y:P-N/2+g}],sn.polygon(e,$,D)},u}k(d$e,"iconRounded");async function h$e(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=cn(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Zn(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:_,mainBkg:v}=r,{stylesMap:y}=wR(e),b=-m/2,E=-g/2,S=e.label?8:0,T=mn.svg(u),C=Sn(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=y.get("fill");C.stroke=x??v;const A=T.path(H1(b,E,m,g,.1),C),R=Math.max(m,d.width),I=g+d.height+S,L=T.rectangle(-R/2,-I/2,R,I,{...C,fill:"transparent",stroke:"none"}),F=u.insert(()=>A,":first-child"),O=u.insert(()=>L);if(e.icon){const D=u.append("g");D.html(`<g>${await v1(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const M=D.node().getBBox(),P=M.width,N=M.height,$=M.x,U=M.y;D.attr("transform",`translate(${-P/2-$},${p?d.height/2+S/2-N/2-U:-d.height/2-S/2-N/2-U})`),D.attr("style",`color: ${y.get("stroke")??_};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-I/2:I/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+S/2:-d.height/2-S/2})`),Cn(e,O),e.intersect=function(D){if(Pe.info("iconSquare intersect",e,D),!e.label)return sn.rect(e,D);const M=e.x??0,P=e.y??0,N=e.height??0;let $=[];return p?$=[{x:M-d.width/2,y:P-N/2},{x:M+d.width/2,y:P-N/2},{x:M+d.width/2,y:P-N/2+d.height+S},{x:M+m/2,y:P-N/2+d.height+S},{x:M+m/2,y:P+N/2},{x:M-m/2,y:P+N/2},{x:M-m/2,y:P-N/2+d.height+S},{x:M-d.width/2,y:P-N/2+d.height+S}]:$=[{x:M-m/2,y:P-N/2},{x:M+m/2,y:P-N/2},{x:M+m/2,y:P-N/2+g},{x:M+d.width/2,y:P-N/2+g},{x:M+d.width/2/2,y:P+N/2},{x:M-d.width/2,y:P+N/2},{x:M-d.width/2,y:P-N/2+g},{x:M-m/2,y:P-N/2+g}],sn.polygon(e,$,D)},u}k(h$e,"iconSquare");async function f$e(t,e,{config:{flowchart:r}}){const n=new Image;n.src=e?.img??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/a;const{labelStyles:s}=cn(e);e.labelStyle=s;const o=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const l=Math.max(e.label?o??0:0,e?.assetWidth??i),u=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,d=e.constraint==="on"?u/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(u,o??0);const{shapeSvg:h,bbox:f,label:p}=await Zn(t,e,"image-shape default"),g=e.pos==="t",m=-u/2,_=-d/2,v=e.label?8:0,y=mn.svg(h),b=Sn(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const E=y.rectangle(m,_,u,d,b),S=Math.max(u,f.width),T=d+f.height+v,C=y.rectangle(-S/2,-T/2,S,T,{...b,fill:"none",stroke:"none"}),x=h.insert(()=>E,":first-child"),A=h.insert(()=>C);if(e.img){const R=h.append("image");R.attr("href",e.img),R.attr("width",u),R.attr("height",d),R.attr("preserveAspectRatio","none"),R.attr("transform",`translate(${-u/2},${g?T/2-d:-T/2})`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-d/2-f.height/2-v/2:d/2-f.height/2+v/2})`),x.attr("transform",`translate(0,${g?f.height/2+v/2:-f.height/2-v/2})`),Cn(e,A),e.intersect=function(R){if(Pe.info("iconSquare intersect",e,R),!e.label)return sn.rect(e,R);const I=e.x??0,L=e.y??0,F=e.height??0;let O=[];return g?O=[{x:I-f.width/2,y:L-F/2},{x:I+f.width/2,y:L-F/2},{x:I+f.width/2,y:L-F/2+f.height+v},{x:I+u/2,y:L-F/2+f.height+v},{x:I+u/2,y:L+F/2},{x:I-u/2,y:L+F/2},{x:I-u/2,y:L-F/2+f.height+v},{x:I-f.width/2,y:L-F/2+f.height+v}]:O=[{x:I-u/2,y:L-F/2},{x:I+u/2,y:L-F/2},{x:I+u/2,y:L-F/2+d},{x:I+f.width/2,y:L-F/2+d},{x:I+f.width/2/2,y:L+F/2},{x:I-f.width/2,y:L+F/2},{x:I-f.width/2,y:L-F/2+d},{x:I-u/2,y:L-F/2+d}],sn.polygon(e,O,R)},h}k(f$e,"imageSquare");async function p$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=Math.max(l.width+(s??0)*2,e?.width??0),d=Math.max(l.height+(a??0)*2,e?.height??0),h=[{x:0,y:0},{x:u,y:0},{x:u+3*d/6,y:-d},{x:-3*d/6,y:-d}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=mn.svg(o),m=Sn(e,{}),_=sa(h),v=g.path(_,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),p&&f.attr("style",p)}else f=U0(o,u,d,h);return n&&f.attr("style",n),e.width=u,e.height=d,Cn(e,f),e.intersect=function(g){return sn.polygon(e,h,g)},o}k(p$e,"inv_trapezoid");async function g$e(t,e){const{shapeSvg:r,bbox:n,label:i}=await Zn(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),Cn(e,a),e.intersect=function(l){return sn.rect(e,l)},r}k(g$e,"labelRect");async function m$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=mn.svg(o),m=Sn(e,{}),_=sa(h),v=g.path(_,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=U0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,Cn(e,f),e.intersect=function(g){return sn.polygon(e,h,g)},o}k(m$e,"lean_left");async function _$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=i,s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=mn.svg(o),m=Sn(e,{}),_=sa(h),v=g.path(_,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=U0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,Cn(e,f),e.intersect=function(g){return sn.polygon(e,h,g)},o}k(_$e,"lean_right");function v$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.label="",e.labelStyle=r;const i=t.insert("g").attr("class",Wn(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),l=7,u=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],d=mn.svg(i),h=Sn(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=sa(u),p=d.path(f,h),g=i.insert(()=>p,":first-child");return g.attr("class","outer-path"),a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-o})`),Cn(e,g),e.intersect=function(m){return Pe.info("lightningBolt intersect",e,m),sn.polygon(e,u,m)},i}k(v$e,"lightningBolt");var h0r=k((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),f0r=k((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),p0r=k((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),pwe=10,gwe=10;async function y$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?24:i;if(e.width||e.height){const v=e.width??0;e.width=(e.width??0)-a,e.width<gwe&&(e.width=gwe);const b=v/2/(2.5+v/50);e.height=(e.height??0)-s-b*3,e.height<pwe&&(e.height=pwe)}const{shapeSvg:o,bbox:l,label:u}=await Zn(t,e,Wn(e)),d=(e?.width?e?.width:l.width)+a*2,h=d/2,f=h/(2.5+d/50),p=(e?.height?e?.height:l.height)+f+s*2,g=p*.1;let m;const{cssStyles:_}=e;if(e.look==="handDrawn"){const v=mn.svg(o),y=f0r(0,0,d,p,h,f,g),b=p0r(0,f,d,p,h,f),E=Sn(e,{}),S=v.path(y,E),T=v.path(b,E);o.insert(()=>T,":first-child").attr("class","line"),m=o.insert(()=>S,":first-child"),m.attr("class","basic label-container"),_&&m.attr("style",_)}else{const v=h0r(0,0,d,p,h,f,g);m=o.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",Rl(_)).attr("style",n)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),Cn(e,m),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+f-(l.y-(l.top??0))})`),e.intersect=function(v){const y=sn.rect(e,v),b=y.x-(e.x??0);if(h!=0&&(Math.abs(b)<(e.width??0)/2||Math.abs(b)==(e.width??0)/2&&Math.abs(y.y-(e.y??0))>(e.height??0)/2-f)){let E=f*f*(1-b*b/(h*h));E>0&&(E=Math.sqrt(E)),E=f-E,v.y-(e.y??0)>0&&(E=-E),y.y+=E}return y},o}k(y$e,"linedCylinder");async function b$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;if(e.width||e.height){const E=e.width;e.width=(E??0)*10/11-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10)}const{shapeSvg:o,bbox:l,label:u}=await Zn(t,e,Wn(e)),d=(e?.width?e?.width:l.width)+(a??0)*2,h=(e?.height?e?.height:l.height)+(s??0)*2,f=e.look==="neo"?h/4:h/8,p=h+f,{cssStyles:g}=e,m=mn.svg(o),_=Sn(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=[{x:-d/2-d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:p/2},...b1(-d/2-d/2*.1,p/2,d/2+d/2*.1,p/2,f,.8),{x:d/2+d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:-p/2},{x:-d/2,y:-p/2},{x:-d/2,y:p/2*1.1},{x:-d/2,y:-p/2}],y=m.polygon(v.map(E=>[E.x,E.y]),_),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(0,${-f/2})`),u.attr("transform",`translate(${-d/2+(e.padding??0)+d/2*.1/2-(l.x-(l.left??0))},${-h/2+(e.padding??0)-f/2-(l.y-(l.top??0))})`),Cn(e,b),e.intersect=function(E){return sn.polygon(e,v,E)},o}k(b$e,"linedWaveEdgedRect");async function E$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2-2*o,10),e.height=Math.max((e?.height??0)-s*2-2*o,10));const{shapeSvg:l,bbox:u,label:d}=await Zn(t,e,Wn(e)),h=(e?.width?e?.width:u.width)+a*2+2*o,f=(e?.height?e?.height:u.height)+s*2+2*o,p=h-2*o,g=f-2*o,m=-p/2,_=-g/2,{cssStyles:v}=e,y=mn.svg(l),b=Sn(e,{}),E=[{x:m-o,y:_+o},{x:m-o,y:_+g+o},{x:m+p-o,y:_+g+o},{x:m+p-o,y:_+g},{x:m+p,y:_+g},{x:m+p,y:_+g-o},{x:m+p+o,y:_+g-o},{x:m+p+o,y:_-o},{x:m+o,y:_-o},{x:m+o,y:_},{x:m,y:_},{x:m,y:_+o}],S=[{x:m,y:_+o},{x:m+p-o,y:_+o},{x:m+p-o,y:_+g},{x:m+p,y:_+g},{x:m+p,y:_},{x:m,y:_}];e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const T=sa(E);let C=y.path(T,b);const x=sa(S);let A=y.path(x,b);e.look!=="handDrawn"&&(C=Fee(C),A=Fee(A));const R=l.insert("g",":first-child");return R.insert(()=>C),R.insert(()=>A),R.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",v),n&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(u.width/2)-o-(u.x-(u.left??0))}, ${-(u.height/2)+o-(u.y-(u.top??0))})`),Cn(e,R),e.intersect=function(I){return sn.polygon(e,E,I)},l}k(E$e,"multiRect");async function S$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Zn(t,e,Wn(e)),o=e.padding??0,l=e.look==="neo"?16:o,u=e.look==="neo"?12:o;let d=!0;(e.width||e.height)&&(d=!1,e.width=(e?.width??0)-l*2,e.height=(e?.height??0)-u*3);const h=Math.max(a.width,e?.width??0)+l*2,f=Math.max(a.height,e?.height??0)+u*3,p=e.look==="neo"?f/4:f/8,g=f+(d?p/2:-p/2),m=-h/2,_=-g/2,v=10,{cssStyles:y}=e,b=b1(m-v,_+g+v,m+h-v,_+g+v,p,.8),E=b?.[b.length-1],S=[{x:m-v,y:_+v},{x:m-v,y:_+g+v},...b,{x:m+h-v,y:E.y-v},{x:m+h,y:E.y-v},{x:m+h,y:E.y-2*v},{x:m+h+v,y:E.y-2*v},{x:m+h+v,y:_-v},{x:m+v,y:_-v},{x:m+v,y:_},{x:m,y:_},{x:m,y:_+v}],T=[{x:m,y:_+v},{x:m+h-v,y:_+v},{x:m+h-v,y:E.y-v},{x:m+h,y:E.y-v},{x:m+h,y:_},{x:m,y:_}],C=mn.svg(i),x=Sn(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const A=sa(S),R=C.path(A,x),I=sa(T),L=C.path(I,x),F=i.insert(()=>R,":first-child");return F.insert(()=>L),F.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",y),n&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",n),F.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-(a.width/2)-v-(a.x-(a.left??0))}, ${-(a.height/2)+v-p/2-(a.y-(a.top??0))})`),Cn(e,F),e.intersect=function(O){return sn.polygon(e,S,O)},i}k(S$e,"multiWaveEdgedRectangle");async function T$e(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=cn(e);e.labelStyle=n,e.useHtmlLabels||Da(Ln())||(e.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await Zn(t,e,Wn(e)),u=Math.max(o.width+(e.padding??0)*2,e?.width??0),d=Math.max(o.height+(e.padding??0)*2,e?.height??0),h=-u/2,f=-d/2,{cssStyles:p}=e,g=mn.svg(s),m=Sn(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=g.rectangle(h,f,u,d,m),v=s.insert(()=>_,":first-child");return v.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Cn(e,v),e.intersect=function(y){return sn.rect(e,y)},s}k(T$e,"note");var g0r=k((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function C$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await Zn(t,e,Wn(e)),s=a.width+(e.padding??0),o=a.height+(e.padding??0),l=s+o,u=.5,d=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const p=mn.svg(i),g=Sn(e,{}),m=g0r(0,0,l),_=p.path(m,g);h=i.insert(()=>_,":first-child").attr("transform",`translate(${-l/2+u}, ${l/2})`),f&&h.attr("style",f)}else h=U0(i,l,l,d),h.attr("transform",`translate(${-l/2+u}, ${l/2})`);return n&&h.attr("style",n),Cn(e,h),e.calcIntersect=function(p,g){const m=p.width,_=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],v=sn.polygon(p,_,g);return{x:v.x-.5,y:v.y-.5}},e.intersect=function(p){return this.calcIntersect(e,p)},i}k(C$e,"question");async function w$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?21:i??0,s=e.look==="neo"?12:i??0,{shapeSvg:o,bbox:l,label:u}=await Zn(t,e,Wn(e)),d=(e?.width??l.width)+(e.look==="neo"?a*2:a),h=(e?.height??l.height)+(e.look==="neo"?s*2:s),f=-d/2,p=-h/2,g=p/2,m=[{x:f+g,y:p},{x:f,y:0},{x:f+g,y:-p},{x:-f,y:-p},{x:-f,y:p}],{cssStyles:_}=e,v=mn.svg(o),y=Sn(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=sa(m),E=v.path(b,y),S=o.insert(()=>E,":first-child");return S.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",_),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(${-g/2},0)`),u.attr("transform",`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Cn(e,S),e.intersect=function(T){return sn.polygon(e,m,T)},o}k(w$e,"rect_left_inv_arrow");async function x$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",n),l=e.description,u=e.label,d=await F_(o,u,e.labelStyle,!0,!0);let h={width:0,height:0};if(Da(vt())){const x=d.children[0],A=dr(d);h=x.getBoundingClientRect(),A.attr("width",h.width),A.attr("height",h.height)}Pe.info("Text 2",l);const f=l||[],p=d.getBBox(),g=await F_(o,Array.isArray(f)?f.join("<br/>"):f,e.labelStyle,!0,!0),m=g.children[0],_=dr(g);h=m.getBoundingClientRect(),_.attr("width",h.width),_.attr("height",h.height);const v=(e.padding||0)/2;dr(g).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+v+5)+")"),dr(d).attr("transform","translate( "+(h.width<p.width?0:-(p.width-h.width)/2)+", 0)"),h=o.node().getBBox(),o.attr("transform","translate("+-h.width/2+", "+(-h.height/2-v+3)+")");const y=h.width+(e.padding||0),b=h.height+(e.padding||0),E=-h.width/2-v,S=-h.height/2-v;let T,C;if(e.look==="handDrawn"){const x=mn.svg(a),A=Sn(e,{}),R=x.path(H1(E,S,y,b,e.rx||0),A),I=x.line(-h.width/2-v,-h.height/2-v+p.height+v,h.width/2+v,-h.height/2-v+p.height+v,A);C=a.insert(()=>(Pe.debug("Rough node insert CXC",R),I),":first-child"),T=a.insert(()=>(Pe.debug("Rough node insert CXC",R),R),":first-child")}else T=s.insert("rect",":first-child"),C=s.insert("line"),T.attr("class","outer title-state").attr("style",n).attr("x",-h.width/2-v).attr("y",-h.height/2-v).attr("width",h.width+(e.padding||0)).attr("height",h.height+(e.padding||0)),C.attr("class","divider").attr("x1",-h.width/2-v).attr("x2",h.width/2+v).attr("y1",-h.height/2-v+p.height+v).attr("y2",-h.height/2-v+p.height+v);return Cn(e,T),e.intersect=function(x){return sn.rect(e,x)},a}k(x$e,"rectWithTitle");async function A$e(t,e,{config:{themeVariables:r}}){const n=r?.radius??5,i={rx:n,ry:n,labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return AR(t,e,i)}k(A$e,"roundedRect");var Ov=8;async function R$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Zn(t,e,Wn(e)),u=(e?.width??o.width)+i*2+(e.look==="neo"?Ov:Ov*2),d=(e?.height??o.height)+a*2,h=u-Ov,f=d,p=Ov-u/2,g=-d/2,{cssStyles:m}=e,_=mn.svg(s),v=Sn(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=[{x:p,y:g},{x:p+h,y:g},{x:p+h,y:g+f},{x:p-Ov,y:g+f},{x:p-Ov,y:g},{x:p,y:g},{x:p,y:g+f}],b=_.polygon(y.map(S=>[S.x,S.y]),v),E=s.insert(()=>b,":first-child");return E.attr("class","basic label-container outer-path").attr("style",Rl(m)),n&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),m&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",n),l.attr("transform",`translate(${Ov/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Cn(e,E),e.intersect=function(S){return sn.rect(e,S)},s}k(R$e,"shadedProcess");async function O$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2,10),e.height=Math.max((e?.height??0)/1.5-s*2,10));const{shapeSvg:o,bbox:l,label:u}=await Zn(t,e,Wn(e)),d=(e?.width?e?.width:l.width)+a*2,h=((e?.height?e?.height:l.height)+s*2)*1.5,f=d,p=h/1.5,g=-f/2,m=-p/2,{cssStyles:_}=e,v=mn.svg(o),y=Sn(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:g,y:m},{x:g,y:m+p},{x:g+f,y:m+p},{x:g+f,y:m-p/2}],E=sa(b),S=v.path(E,y),T=o.insert(()=>S,":first-child");return T.attr("class","basic label-container  outer-path"),_&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",_),n&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",n),T.attr("transform",`translate(0, ${p/4})`),u.attr("transform",`translate(${-f/2+(e.padding??0)-(l.x-(l.left??0))}, ${-p/4+(e.padding??0)-(l.y-(l.top??0))})`),Cn(e,T),e.intersect=function(C){return sn.polygon(e,b,C)},o}k(O$e,"slopedRect");async function I$e(t,e){const r=e.padding??0,n=e.look==="neo"?16:r*2,i=e.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:e.labelPaddingX??n,labelPaddingY:i};return AR(t,e,a)}k(I$e,"squareRect");async function N$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?20:i,s=e.look==="neo"?12:i,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=l.height+(e.look==="neo"?s*2:s),d=l.width+u/4+(e.look==="neo"?a*2:a),h=u/2,{cssStyles:f}=e,p=mn.svg(o),g=Sn(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-d/2+h,y:-u/2},{x:d/2-h,y:-u/2},...$k(-d/2+h,0,h,50,90,270),{x:d/2-h,y:u/2},...$k(d/2-h,0,h,50,270,450)],_=sa(m),v=p.path(_,g),y=o.insert(()=>v,":first-child");return y.attr("class","basic label-container outer-path"),f&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",f),n&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),Cn(e,y),e.intersect=function(b){return sn.polygon(e,m,b)},o}k(N$e,"stadium");async function k$e(t,e){const r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5};return AR(t,e,r)}k(k$e,"state");function D$e(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=cn(e);e.labelStyle=n;const{cssStyles:a}=e,{lineColor:s,stateBorder:o,nodeBorder:l,nodeShadow:u}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const d=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),h=mn.svg(d),f=Sn(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=h.circle(0,0,e.width,{...f,stroke:s,strokeWidth:2}),g=o??l,m=(e.width??0)*5/14,_=h.circle(0,0,m,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),v=d.insert(()=>p,":first-child");if(v.insert(()=>_),e.look!=="handDrawn"&&v.attr("class","outer-path"),a&&v.selectAll("path").attr("style",a),i&&v.selectAll("path").attr("style",i),e.width<25&&u&&e.look!=="handDrawn"){const y=t.node()?.ownerSVGElement?.id??"",b=y?`${y}-drop-shadow-small`:"drop-shadow-small";v.attr("style",`filter:url(#${b})`)}return Cn(e,v),e.intersect=function(y){return sn.circle(e,(e.width??0)/2,y)},d}k(D$e,"stateEnd");function M$e(t,e,{config:{themeVariables:r}}){const{lineColor:n,nodeShadow:i}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const l=mn.svg(a).circle(0,0,e.width,Agr(n));s=a.insert(()=>l),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&i&&e.look!=="handDrawn"){const o=t.node()?.ownerSVGElement?.id??"",l=o?`${o}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${l})`)}return Cn(e,s),e.intersect=function(o){return sn.circle(e,(e.width??7)/2,o)},a}k(M$e,"stateStart");var hS=8;async function L$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e?.padding??8,a=e.look==="neo"?28:i,s=e.look==="neo"?12:i,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.width??l.width)+2*hS+a,d=(e?.height??l.height)+s,h=u-2*hS,f=d,p=-u/2,g=-d/2,m=[{x:0,y:0},{x:h,y:0},{x:h,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(e.look==="handDrawn"){const _=mn.svg(o),v=Sn(e,{}),y=_.rectangle(p,g,h+16,f,v),b=_.line(p+hS,g,p+hS,g+f,v),E=_.line(p+hS+h,g,p+hS+h,g+f,v);o.insert(()=>b,":first-child"),o.insert(()=>E,":first-child");const S=o.insert(()=>y,":first-child"),{cssStyles:T}=e;S.attr("class","basic label-container").attr("style",Rl(T)),Cn(e,S)}else{const _=U0(o,h,f,m);n&&_.attr("style",n),Cn(e,_)}return e.intersect=function(_){return sn.polygon(e,m,_)},o}k(L$e,"subroutine");var BK=.2;async function P$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-s*2,10),e.width=Math.max((e?.width??0)-a*2-BK*(e.height+s*2),10));const{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.height?e?.height:l.height)+s*2,d=BK*u,h=BK*u,p=(e?.width?e?.width:l.width)+a*2+d-d,g=u,m=-p/2,_=-g/2,{cssStyles:v}=e,y=mn.svg(o),b=Sn(e,{}),E=[{x:m-d/2,y:_},{x:m+p+d/2,y:_},{x:m+p+d/2,y:_+g},{x:m-d/2,y:_+g}],S=[{x:m+p-d/2,y:_+g},{x:m+p+d/2,y:_+g},{x:m+p+d/2,y:_+g-h}];e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const T=sa(E),C=y.path(T,b),x=sa(S),A=y.path(x,{...b,fillStyle:"solid"}),R=o.insert(()=>A,":first-child");return R.insert(()=>C,":first-child"),R.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",v),n&&e.look!=="handDrawn"&&R.selectAll("path").attr("style",n),Cn(e,R),e.intersect=function(I){return sn.polygon(e,E,I)},o}k(P$e,"taggedRect");async function F$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await Zn(t,e,Wn(e)),o=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/8,d=.2*o,h=.2*l,f=l+u,{cssStyles:p}=e,g=mn.svg(i),m=Sn(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=[{x:-o/2-o/2*.1,y:f/2},...b1(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,u,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],v=-o/2+o/2*.1,y=-f/2-h*.4,b=[{x:v+o-d,y:(y+l)*1.3},{x:v+o,y:y+l-h},{x:v+o,y:(y+l)*.9},...b1(v+o,(y+l)*1.25,v+o-d,(y+l)*1.3,-l*.02,.5)],E=sa(_),S=g.path(E,m),T=sa(b),C=g.path(T,{...m,fillStyle:"solid"}),x=i.insert(()=>C,":first-child");return x.insert(()=>S,":first-child"),x.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),Cn(e,x),e.intersect=function(A){return sn.polygon(e,_,A)},i}k(F$e,"taggedWaveEdgedRectangle");async function B$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await Zn(t,e,Wn(e)),s=Math.max(a.width+(e.padding??0),e?.width||0),o=Math.max(a.height+(e.padding??0),e?.height||0),l=-s/2,u=-o/2,d=i.insert("rect",":first-child");return d.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",l).attr("y",u).attr("width",s).attr("height",o),Cn(e,d),e.intersect=function(h){return sn.rect(e,h)},i}k(B$e,"text");var m0r=k((t,e,r,n,i,a)=>`M${t},${e}
    a${i},${a} 0,0,1 0,${-n}
    l${r},0
    a${i},${a} 0,0,1 0,${n}
    M${r},${-n}
    a${i},${a} 0,0,0 0,${n}
    l${-r},0`,"createCylinderPathD"),_0r=k((t,e,r,n,i,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),v0r=k((t,e,r,n,i,a)=>[`M${t+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),mwe=5,_we=10;async function U$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?12:i/2;if(e.width||e.height){const m=e.height??0;e.height=(e.height??0)-a,e.height<mwe&&(e.height=mwe);const v=m/2/(2.5+m/50);e.width=(e.width??0)-a-v*3,e.width<_we&&(e.width=_we)}const{shapeSvg:s,bbox:o,label:l}=await Zn(t,e,Wn(e)),u=(e.height?e.height:o.height)+a,d=u/2,h=d/(2.5+u/50),f=(e.width?e.width:o.width)+h+a,{cssStyles:p}=e;let g;if(e.look==="handDrawn"){const m=mn.svg(s),_=_0r(0,0,f,u,h,d),v=v0r(0,0,f,u,h,d),y=m.path(_,Sn(e,{})),b=m.path(v,Sn(e,{fill:"none"}));g=s.insert(()=>b,":first-child"),g=s.insert(()=>y,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const m=m0r(0,0,f,u,h,d);g=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Rl(p)).attr("style",n),g.attr("class","basic label-container outer-path"),p&&g.selectAll("path").attr("style",p),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",h),g.attr("transform",`translate(${-f/2}, ${u/2} )`),l.attr("transform",`translate(${-(o.width/2)-h-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Cn(e,g),e.intersect=function(m){const _=sn.rect(e,m),v=_.y-(e.y??0);if(d!=0&&(Math.abs(v)<(e.height??0)/2||Math.abs(v)==(e.height??0)/2&&Math.abs(_.x-(e.x??0))>(e.width??0)/2-h)){let y=h*h*(1-v*v/(d*d));y!=0&&(y=Math.sqrt(Math.abs(y))),y=h-y,m.x-(e.x??0)>0&&(y=-y),_.x+=y}return _},s}k(U$e,"tiltedCylinder");async function $$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=(e.look==="neo",i),s=e.look==="neo"?i*2:i,{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.height??l.height)+a,d=(e?.width??l.width)+s,h=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}];let f;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=mn.svg(o),m=Sn(e,{}),_=sa(h),v=g.path(_,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=U0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,Cn(e,f),e.intersect=function(g){return sn.polygon(e,h,g)},o}k($$e,"trapezoid");async function G$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i,o=15,l=5;(e.width||e.height)&&(e.height=(e.height??0)-s*2,e.height<l&&(e.height=l),e.width=(e.width??0)-a*2,e.width<o&&(e.width=o));const{shapeSvg:u,bbox:d}=await Zn(t,e,Wn(e)),h=(e?.width?e?.width:d.width)+a*2,f=(e?.height?e?.height:d.height)+s*2,{cssStyles:p}=e,g=mn.svg(u),m=Sn(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=[{x:-h/2*.8,y:-f/2},{x:h/2*.8,y:-f/2},{x:h/2,y:-f/2*.6},{x:h/2,y:f/2},{x:-h/2,y:f/2},{x:-h/2,y:-f/2*.6}],v=sa(_),y=g.path(v,m),b=u.insert(()=>y,":first-child");return b.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),Cn(e,b),e.intersect=function(E){return sn.polygon(e,_,E)},u}k(G$e,"trapezoidalPentagon");var vwe=10,ywe=10;async function z$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?i*2:i;(e.width||e.height)&&(e.width=((e?.width??0)-a)/2,e.width<ywe&&(e.width=ywe),e.height=e?.height??0,e.height<vwe&&(e.height=vwe));const{shapeSvg:s,bbox:o,label:l}=await Zn(t,e,Wn(e)),u=F0(vt().flowchart?.htmlLabels),d=(e?.width?e?.width:o.width)+a,h=e?.height?e?.height:d+o.height,f=h,p=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-h}],{cssStyles:g}=e,m=mn.svg(s),_=Sn(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=sa(p),y=m.path(v,_),b=s.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return g&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),e.width=d,e.height=h,Cn(e,b),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${h/2-(o.height+(e.padding??0)/(u?2:1)-(o.y-(o.top??0)))})`),e.intersect=function(E){return Pe.info("Triangle intersect",e,p,E),sn.polygon(e,p,E)},s}k(z$e,"triangle");async function q$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?12:i;let o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10));const{shapeSvg:l,bbox:u,label:d}=await Zn(t,e,Wn(e)),h=(e?.width?e?.width:u.width)+(a??0)*2,f=(e?.height?e?.height:u.height)+(s??0)*2,p=e.look==="neo"?f/4:f/8,g=f+(o?p:-p),{cssStyles:m}=e,v=14-h,y=v>0?v/2:0,b=mn.svg(l),E=Sn(e,{});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const S=[{x:-h/2-y,y:g/2},...b1(-h/2-y,g/2,h/2+y,g/2,p,.8),{x:h/2+y,y:-g/2},{x:-h/2-y,y:-g/2}],T=sa(S),C=b.path(T,E),x=l.insert(()=>C,":first-child");return x.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-h/2+(e.padding??0)-(u.x-(u.left??0))},${-f/2+(e.padding??0)-p-(u.y-(u.top??0))})`),Cn(e,x),e.intersect=function(A){return sn.polygon(e,S,A)},l}k(q$e,"waveEdgedRectangle");async function V$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.padding??0,a=e.look==="neo"?16:i,s=e.look==="neo"?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);const E=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-s-E*(20/9)),e.width=e.width-a*2}const{shapeSvg:o,bbox:l}=await Zn(t,e,Wn(e)),u=(e?.width?e?.width:l.width)+a*2,d=(e?.height?e?.height:l.height)+s,h=d/8,f=d+h*2,{cssStyles:p}=e,g=mn.svg(o),m=Sn(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=[{x:-u/2,y:f/2},...b1(-u/2,f/2,u/2,f/2,h,1),{x:u/2,y:-f/2},...b1(u/2,-f/2,-u/2,-f/2,h,-1)],v=sa(_),y=g.path(v,m),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),Cn(e,b),e.intersect=function(E){return sn.polygon(e,_,E)},o}k(V$e,"waveRectangle");var no=10;async function H$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-i*2-no,10),e.height=Math.max((e?.height??0)-a*2-no,10));const{shapeSvg:s,bbox:o,label:l}=await Zn(t,e,Wn(e)),u=(e?.width?e?.width:o.width)+i*2+no,d=(e?.height?e?.height:o.height)+a*2+no,h=u-no,f=d-no,p=-h/2,g=-f/2,{cssStyles:m}=e,_=mn.svg(s),v=Sn(e,{}),y=[{x:p-no,y:g-no},{x:p-no,y:g+f},{x:p+h,y:g+f},{x:p+h,y:g-no}],b=`M${p-no},${g-no} L${p+h},${g-no} L${p+h},${g+f} L${p-no},${g+f} L${p-no},${g-no}
                M${p-no},${g} L${p+h},${g}
                M${p},${g-no} L${p},${g+f}`;e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const E=_.path(b,v),S=s.insert(()=>E,":first-child");return S.attr("transform",`translate(${no/2}, ${no/2})`),S.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),l.attr("transform",`translate(${-(o.width/2)+no/2-(o.x-(o.left??0))}, ${-(o.height/2)+no/2-(o.y-(o.top??0))})`),Cn(e,S),e.intersect=function(T){return sn.polygon(e,y,T)},s}k(H$e,"windowPane");var bwe=new Set(["redux-color","redux-dark-color"]),y0r=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function cue(t,e){const r=e;r.alias&&(e.label=r.alias);const{theme:n,themeVariables:i}=Ln(),{rowEven:a,rowOdd:s,nodeBorder:o,borderColorArray:l}=i;if(e.look==="handDrawn"){const{themeVariables:W}=Ln(),{background:Q}=W,ie={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Q}`]};await cue(t,ie)}const u=Ln();e.useHtmlLabels=u.htmlLabels;let d=u.er?.diagramPadding??10,h=u.er?.entityPadding??6;const{cssStyles:f}=e,{labelStyles:p,nodeStyles:g}=cn(e);if(r.attributes.length===0&&e.label){const W={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};pu(e.label,u)+W.labelPaddingX*2<u.er.minEntityWidth&&(e.width=u.er.minEntityWidth);const Q=await AR(t,e,W);if(n!=null&&bwe.has(n)){const ie=r.colorIndex??0;Q.attr("data-color-id",`color-${ie%l.length}`)}if(!F0(u.htmlLabels)){const ie=Q.select("text"),Z=ie.node()?.getBBox();ie.attr("transform",`translate(${-Z.width/2}, 0)`)}return Q}u.htmlLabels||(d*=1.25,h*=1.25);let m=Wn(e);m||(m="node default");const _=t.insert("g").attr("class",m).attr("id",e.domId||e.id),v=await VS(_,e.label??"",u,0,0,["name"],p);v.height+=h;let y=0;const b=[],E=[];let S=0,T=0,C=0,x=0,A=!0,R=!0;for(const W of r.attributes){const Q=await VS(_,W.type,u,0,y,["attribute-type"],p);S=Math.max(S,Q.width+d);const ie=await VS(_,W.name,u,0,y,["attribute-name"],p);T=Math.max(T,ie.width+d);const Z=await VS(_,W.keys.join(),u,0,y,["attribute-keys"],p);C=Math.max(C,Z.width+d);const re=await VS(_,W.comment,u,0,y,["attribute-comment"],p);x=Math.max(x,re.width+d);const K=Math.max(Q.height,ie.height,Z.height,re.height)+h;E.push({yOffset:y,rowHeight:K}),y+=K}let I=4;C<=d&&(A=!1,C=0,I--),x<=d&&(R=!1,x=0,I--);const L=_.node().getBBox();if(v.width+d*2-(S+T+C+x)>0){const W=v.width+d*2-(S+T+C+x);S+=W/I,T+=W/I,C>0&&(C+=W/I),x>0&&(x+=W/I)}const F=S+T+C+x,O=mn.svg(_),D=Sn(e,{});e.look!=="handDrawn"&&(D.roughness=0,D.fillStyle="solid");let M=0;E.length>0&&(M=E.reduce((W,Q)=>W+(Q?.rowHeight??0),0));const P=Math.max(L.width+d*2,e?.width||0,F),N=Math.max((M??0)+v.height,e?.height||0),$=-P/2,U=-N/2;if(_.selectAll("g:not(:first-child)").each((W,Q,ie)=>{const Z=dr(ie[Q]),re=Z.attr("transform");let K=0,j=0;if(re){const le=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(re);le&&(K=parseFloat(le[1]),j=parseFloat(le[2]),Z.attr("class").includes("attribute-name")?K+=S:Z.attr("class").includes("attribute-keys")?K+=S+T:Z.attr("class").includes("attribute-comment")&&(K+=S+T+C))}Z.attr("transform",`translate(${$+d/2+K}, ${j+U+v.height+h/2})`)}),_.select(".name").attr("transform","translate("+-v.width/2+", "+(U+h/2)+")"),n!=null&&bwe.has(n)){const W=r.colorIndex??0;_.attr("data-color-id",`color-${W%l.length}`)}const B=O.rectangle($,U,P,N,D),V=_.insert(()=>B,":first-child").attr("class","outer-path").attr("style",f.join(""));b.push(0);for(const[W,Q]of E.entries()){const Z=(W+1)%2===0&&Q.yOffset!==0,re=O.rectangle($,v.height+U+Q?.yOffset,P,Q?.rowHeight,{...D,fill:Z?a:s,stroke:o});_.insert(()=>re,"g.label").attr("style",f.join("")).attr("class",`row-rect-${Z?"even":"odd"}`)}const z=1e-4;let G=HS($,v.height+U,P+$,v.height+U,z),Y=O.polygon(G.map(W=>[W.x,W.y]),D);if(_.insert(()=>Y).attr("class","divider"),G=HS(S+$,v.height+U,S+$,N+U,z),Y=O.polygon(G.map(W=>[W.x,W.y]),D),_.insert(()=>Y).attr("class","divider"),A){const W=S+T+$;G=HS(W,v.height+U,W,N+U,z),Y=O.polygon(G.map(Q=>[Q.x,Q.y]),D),_.insert(()=>Y).attr("class","divider")}if(R){const W=S+T+C+$;G=HS(W,v.height+U,W,N+U,z),Y=O.polygon(G.map(Q=>[Q.x,Q.y]),D),_.insert(()=>Y).attr("class","divider")}for(const W of b){const Q=v.height+U+W;G=HS($,Q,P+$,Q,z),Y=O.polygon(G.map(ie=>[ie.x,ie.y]),D),_.insert(()=>Y).attr("class","divider")}if(Cn(e,V),g&&e.look!=="handDrawn")if(n!=null&&y0r.has(n))_.selectAll("path").attr("style",g);else{const Q=g.split(";")?.filter(ie=>ie.includes("stroke"))?.map(ie=>`${ie}`).join("; ");_.selectAll("path").attr("style",Q??""),_.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(W){return sn.rect(e,W)},_}k(cue,"erBox");async function VS(t,e,r,n=0,i=0,a=[],s=""){const o=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",s);e!==v_(e)&&(e=v_(e),e=e.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=o.node().appendChild(await xu(o,e,{width:pu(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("&lt;")||e.includes("&gt;")){let d=l.children[0];for(d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let u=l.getBBox();if(F0(r.htmlLabels)){const d=l.children[0];d.style.textAlign="start";const h=dr(l);u=d.getBoundingClientRect(),h.attr("width",u.width),h.attr("height",u.height)}return u}k(VS,"addText");function HS(t,e,r,n,i){return t===r?[{x:t-i/2,y:e},{x:t+i/2,y:e},{x:r+i/2,y:n},{x:r-i/2,y:n}]:[{x:t,y:e-i/2},{x:t,y:e+i/2},{x:r,y:n+i/2},{x:r,y:n-i/2}]}k(HS,"lineToPolygon");async function Y$e(t,e,r,n,i=r.class.padding??12){const a=n?0:3,s=t.insert("g").attr("class",Wn(e)).attr("id",e.domId||e.id);let o=null,l=null,u=null,d=null,h=0,f=0,p=0;if(o=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const y=e.annotations[0];await OI(o,{text:`«${y}»`},0),h=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await OI(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,u=s.insert("g").attr("class","members-group text");let m=0;for(const y of e.members){const b=await OI(u,y,m,[y.parseClassifier()]);m+=b+a}p=u.node().getBBox().height,p<=0&&(p=i/2),d=s.insert("g").attr("class","methods-group text");let _=0;for(const y of e.methods){const b=await OI(d,y,_,[y.parseClassifier()]);_+=b+a}let v=s.node().getBBox();if(o!==null){const y=o.node().getBBox();o.attr("transform",`translate(${-y.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${h})`),v=s.node().getBBox(),u.attr("transform",`translate(0, ${h+f+i*2})`),v=s.node().getBBox(),d.attr("transform",`translate(0, ${h+f+(p?p+i*4:i*2)})`),v=s.node().getBBox(),{shapeSvg:s,bbox:v}}k(Y$e,"textHelper");async function OI(t,e,r,n=[]){const i=t.insert("g").attr("class","label").attr("style",n.join("; ")),a=Ln();let s="useHtmlLabels"in e?e.useHtmlLabels:F0(a.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),ko(o)&&(s=!0);const l=await xu(i,oce(u0(o)),{width:pu(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let u,d=1;if(s){const h=l.children[0],f=dr(l);d=h.innerHTML.split("<br>").length,h.innerHTML.includes("</math>")&&(d+=h.innerHTML.split("<mrow>").length-1);const p=h.getElementsByTagName("img");if(p){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...p].map(m=>new Promise(_=>{function v(){if(m.style.display="flex",m.style.flexDirection="column",g){const y=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,E=parseInt(y,10)*5+"px";m.style.minWidth=E,m.style.maxWidth=E}else m.style.width="100%";_(m)}k(v,"setupImage"),setTimeout(()=>{m.complete&&v()}),m.addEventListener("error",v),m.addEventListener("load",v)})))}u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}else{n.includes("font-weight: bolder")&&dr(l).selectAll("tspan").attr("font-weight",""),d=l.children.length;const h=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(h.textContent=o[0]+o.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),o[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),u=l.getBBox()}return i.attr("transform","translate(0,"+(-u.height/(2*d)+r)+")"),u.height}k(OI,"addText");async function W$e(t,e){const r=vt(),{themeVariables:n}=r,{useGradient:i}=n,a=r.class.padding??12,s=a,o=e.useHtmlLabels??F0(r.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:u,bbox:d}=await Y$e(t,e,r,o,s),{labelStyles:h,nodeStyles:f}=cn(e);e.labelStyle=h,e.cssStyles=l.styles||"";const p=l.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=p.replaceAll("!important","").split(";"));const g=l.members.length===0&&l.methods.length===0&&!r.class?.hideEmptyMembersBox,m=mn.svg(u),_=Sn(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=Math.max(e.width??0,d.width);let y=Math.max(e.height??0,d.height);const b=(e.height??0)>d.height;l.members.length===0&&l.methods.length===0?y+=s:l.members.length>0&&l.methods.length===0&&(y+=s*2);const E=-v/2,S=-y/2;let T=g?a*2:l.members.length===0&&l.methods.length===0?-a:0;b&&(T=a*2);const C=m.rectangle(E-a,S-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0),v+2*a,y+2*a+T,_),x=u.insert(()=>C,":first-child");x.attr("class","basic label-container outer-path");const A=x.node().getBBox(),R=u.select(".annotation-group").node().getBBox().height-(g?a/2:0)||0,I=u.select(".label-group").node().getBBox().height-(g?a/2:0)||0,L=u.select(".members-group").node().getBBox().height-(g?a/2:0)||0,F=(R+I+S+a-(S-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(u.selectAll(".text").each((O,D,M)=>{const P=dr(M[D]),N=P.attr("transform");let $=0;if(N){const z=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(N);z&&($=parseFloat(z[2]))}let U=$+S+a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(P.attr("class").includes("methods-group")){const V=Math.max(L,s/2);b?U=Math.max(F,R+I+V+S+s*2+a)+s*2:U=R+I+V+S+s*4+a}l.members.length===0&&l.methods.length===0&&r.class?.hideEmptyMembersBox&&(l.annotations.length>0?U=$-s:U=$),o||(U-=4);let B=E;(P.attr("class").includes("label-group")||P.attr("class").includes("annotation-group"))&&(B=-P.node()?.getBBox().width/2||0,u.selectAll("text").each(function(V,z,G){window.getComputedStyle(G[z]).textAnchor==="middle"&&(B=0)})),P.attr("transform",`translate(${B}, ${U})`)}),l.members.length>0||l.methods.length>0||g){const O=R+I+S+a,D=m.line(A.x,O,A.x+A.width,O+.001,_);u.insert(()=>D).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(g||l.members.length>0||l.methods.length>0){const O=R+I+L+S+s*2+a,D=m.line(A.x,b?Math.max(F,O):O,A.x+A.width,(b?Math.max(F,O):O)+.001,_);u.insert(()=>D).attr("class",`divider${e.look==="neo"&&!i?" neo-line":""}`).attr("style",p)}if(l.look!=="handDrawn"&&u.selectAll("path").attr("style",p),x.select(":nth-child(2)").attr("style",p),u.selectAll(".divider").select("path").attr("style",p),e.labelStyle?u.selectAll("span").attr("style",e.labelStyle):u.selectAll("span").attr("style",p),!o){const O=RegExp(/color\s*:\s*([^;]*)/),D=O.exec(p);if(D){const M=D[0].replace("color","fill");u.selectAll("tspan").attr("style",M)}else if(h){const M=O.exec(h);if(M){const P=M[0].replace("color","fill");u.selectAll("tspan").attr("style",P)}}}return Cn(e,x),e.intersect=function(O){return sn.rect(e,O)},u}k(W$e,"classBox");async function K$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const i=e,a=e,s=20,o=20,l="verifyMethod"in e,u=Wn(e),{themeVariables:d}=vt(),{borderColorArray:h,requirementEdgeLabelBackground:f}=d,p=t.insert("g").attr("class",u).attr("id",e.domId??e.id);let g;l?g=await xp(p,`&lt;&lt;${i.type}&gt;&gt;`,0,e.labelStyle):g=await xp(p,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let m=g;const _=await xp(p,i.name,m,e.labelStyle+"; font-weight: bold;");if(m+=_+o,l){const A=await xp(p,`${i.requirementId?`ID: ${i.requirementId}`:""}`,m,e.labelStyle);m+=A;const R=await xp(p,`${i.text?`Text: ${i.text}`:""}`,m,e.labelStyle);m+=R;const I=await xp(p,`${i.risk?`Risk: ${i.risk}`:""}`,m,e.labelStyle);m+=I,await xp(p,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,m,e.labelStyle)}else{const A=await xp(p,`${a.type?`Type: ${a.type}`:""}`,m,e.labelStyle);m+=A,await xp(p,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,m,e.labelStyle)}const v=(p.node()?.getBBox().width??200)+s,y=(p.node()?.getBBox().height??200)+s,b=-v/2,E=-y/2,S=mn.svg(p),T=Sn(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const C=S.rectangle(b,E,v,y,T),x=p.insert(()=>C,":first-child");if(x.attr("class","basic label-container outer-path").attr("style",n),h?.length){const A=e.colorIndex??0;p.attr("data-color-id",`color-${A%h.length}`)}if(p.selectAll(".label").each((A,R,I)=>{const L=dr(I[R]),F=L.attr("transform");let O=0,D=0;if(F){const $=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(F);$&&(O=parseFloat($[1]),D=parseFloat($[2]))}const M=D-y/2;let P=b+s/2;(R===0||R===1)&&(P=O),L.attr("transform",`translate(${P}, ${M+s})`)}),m>g+_+o){const A=E+g+_+o;let R;if(e.look==="neo"){const F=[[b,A],[b+v,A],[b+v,A+.001],[b,A+.001]];R=S.polygon(F,T)}else R=S.line(b,A,b+v,A,T);p.insert(()=>R).attr("class","divider")}return Cn(e,x),e.intersect=function(A){return sn.rect(e,A)},n&&e.look!=="handDrawn"&&(f||h?.length)&&p.selectAll("path").attr("style",n),p}k(K$e,"requirementBox");async function xp(t,e,r,n=""){if(e==="")return 0;const i=t.insert("g").attr("class","label").attr("style",n),a=vt(),s=a.htmlLabels??!0,o=await xu(i,oce(u0(e)),{width:pu(e,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},a);let l;if(s){const u=o.children[0],d=dr(o);l=u.getBoundingClientRect(),d.attr("width",l.width),d.attr("height",l.height)}else{const u=o.children[0];for(const d of u.children)n&&d.setAttribute("style",n);l=o.getBBox(),l.height+=6}return i.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}k(xp,"addText");var b0r=k(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function j$e(t,e,{config:r}){const{labelStyles:n,nodeStyles:i}=cn(e);e.labelStyle=n||"";const a=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:l,label:u}=await Zn(t,e,Wn(e)),d=e.padding||10;let h="",f;"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(h=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const p={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let g,m;f?{label:g,bbox:m}=await FK(f,"ticket"in e&&e.ticket||"",p):{label:g,bbox:m}=await FK(o,"ticket"in e&&e.ticket||"",p);const{label:_,bbox:v}=await FK(o,"assigned"in e&&e.assigned||"",p);e.width=s;const y=10,b=e?.width||0,E=Math.max(m.height,v.height)/2,S=Math.max(l.height+y*2,e?.height||0)+E,T=-b/2,C=-S/2;u.attr("transform","translate("+(d-b/2)+", "+(-E-l.height/2)+")"),g.attr("transform","translate("+(d-b/2)+", "+(-E+l.height/2)+")"),_.attr("transform","translate("+(d+b/2-v.width-2*a)+", "+(-E+l.height/2)+")");let x;const{rx:A,ry:R}=e,{cssStyles:I}=e;if(e.look==="handDrawn"){const L=mn.svg(o),F=Sn(e,{}),O=A||R?L.path(H1(T,C,b,S,A||0),F):L.rectangle(T,C,b,S,F);x=o.insert(()=>O,":first-child"),x.attr("class","basic label-container").attr("style",I||null)}else{x=o.insert("rect",":first-child"),x.attr("class","basic label-container __APA__").attr("style",i).attr("rx",A??5).attr("ry",R??5).attr("x",T).attr("y",C).attr("width",b).attr("height",S);const L="priority"in e&&e.priority;if(L){const F=o.append("line"),O=T+2,D=C+Math.floor((A??0)/2),M=C+S-Math.floor((A??0)/2);F.attr("x1",O).attr("y1",D).attr("x2",O).attr("y2",M).attr("stroke-width","4").attr("stroke",b0r(L))}}return Cn(e,x),e.height=S,e.intersect=function(L){return sn.rect(e,L)},o}k(j$e,"kanbanItem");async function X$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await Zn(t,e,Wn(e)),l=a.width+10*s,u=a.height+8*s,d=.15*l,{cssStyles:h}=e,f=a.width+20,p=a.height+20,g=Math.max(l,f),m=Math.max(u,p);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let _;const v=`M0 0 
    a${d},${d} 1 0,0 ${g*.25},${-1*m*.1}
    a${d},${d} 1 0,0 ${g*.25},0
    a${d},${d} 1 0,0 ${g*.25},0
    a${d},${d} 1 0,0 ${g*.25},${m*.1}

    a${d},${d} 1 0,0 ${g*.15},${m*.33}
    a${d*.8},${d*.8} 1 0,0 0,${m*.34}
    a${d},${d} 1 0,0 ${-1*g*.15},${m*.33}

    a${d},${d} 1 0,0 ${-1*g*.25},${m*.15}
    a${d},${d} 1 0,0 ${-1*g*.25},0
    a${d},${d} 1 0,0 ${-1*g*.25},0
    a${d},${d} 1 0,0 ${-1*g*.25},${-1*m*.15}

    a${d},${d} 1 0,0 ${-1*g*.1},${-1*m*.33}
    a${d*.8},${d*.8} 1 0,0 0,${-1*m*.34}
    a${d},${d} 1 0,0 ${g*.1},${-1*m*.33}
  H0 V0 Z`;if(e.look==="handDrawn"){const y=mn.svg(i),b=Sn(e,{}),E=y.path(v,b);_=i.insert(()=>E,":first-child"),_.attr("class","basic label-container").attr("style",Rl(h))}else _=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",v);return _.attr("transform",`translate(${-g/2}, ${-m/2})`),Cn(e,_),e.calcIntersect=function(y,b){return sn.rect(y,b)},e.intersect=function(y){return Pe.info("Bang intersect",e,y),sn.rect(e,y)},i}k(X$e,"bang");async function Q$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await Zn(t,e,Wn(e)),l=a.width+2*s,u=a.height+2*s,d=.15*l,h=.25*l,f=.35*l,p=.2*l,{cssStyles:g}=e;let m;const _=`M0 0 
    a${d},${d} 0 0,1 ${l*.25},${-1*l*.1}
    a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
    a${h},${h} 1 0,1 ${l*.35},${l*.2}

    a${d},${d} 1 0,1 ${l*.15},${u*.35}
    a${p},${p} 1 0,1 ${-1*l*.15},${u*.65}

    a${h},${d} 1 0,1 ${-1*l*.25},${l*.15}
    a${f},${f} 1 0,1 ${-1*l*.5},0
    a${d},${d} 1 0,1 ${-1*l*.25},${-1*l*.15}

    a${d},${d} 1 0,1 ${-1*l*.1},${-1*u*.35}
    a${p},${p} 1 0,1 ${l*.1},${-1*u*.65}
  H0 V0 Z`;if(e.look==="handDrawn"){const v=mn.svg(i),y=Sn(e,{}),b=v.path(_,y);m=i.insert(()=>b,":first-child"),m.attr("class","basic label-container").attr("style",Rl(g))}else m=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",_);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),m.attr("transform",`translate(${-l/2}, ${-u/2})`),Cn(e,m),e.calcIntersect=function(v,y){return sn.rect(v,y)},e.intersect=function(v){return Pe.info("Cloud intersect",e,v),sn.rect(e,v)},i}k(Q$e,"cloud");async function Z$e(t,e){const{labelStyles:r,nodeStyles:n}=cn(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await Zn(t,e,Wn(e)),l=a.width+8*s,u=a.height+2*s,d=5,h=e.look==="neo"?`
    M${-l/2} ${u/2-d}
    v${-u+2*d}
    q0,-${d} ${d},-${d}
    h${l-2*d}
    q${d},0 ${d},${d}
    v${u-d}
    H${-l/2}
    Z
  `:`
    M${-l/2} ${u/2-d}
    v${-u+2*d}
    q0,-${d} ${d},-${d}
    h${l-2*d}
    q${d},0 ${d},${d}
    v${u-2*d}
    q0,${d} ${-d},${d}
    h${-(l-2*d)}
    q${-d},0 ${-d},${-d}
    Z
  `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);const f=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",n).attr("d",h);return i.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",u/2).attr("x2",l/2).attr("y2",u/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>o.node()),Cn(e,f),e.calcIntersect=function(p,g){return sn.rect(p,g)},e.intersect=function(p){return sn.rect(e,p)},i}k(Z$e,"defaultMindmapNode");async function J$e(t,e){const r={padding:e.padding??0};return lue(t,e,r)}k(J$e,"mindmapCircle");var E0r=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:I$e},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:A$e},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:N$e},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:L$e},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:JUe},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:e$e},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:lue},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:X$e},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Q$e},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:C$e},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:o$e},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:_$e},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:m$e},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:$$e},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:p$e},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:r$e},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:B$e},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:HUe},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:R$e},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:M$e},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:D$e},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:a$e},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:l$e},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:jUe},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:XUe},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:QUe},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:v$e},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:q$e},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:s$e},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:U$e},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:y$e},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ZUe},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:t$e},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:z$e},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:H$e},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:n$e},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:G$e},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:i$e},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:O$e},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:S$e},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:E$e},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:VUe},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:KUe},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:F$e},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:P$e},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:V$e},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:w$e},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:b$e}],S0r=k(()=>{const e=[...Object.entries({state:k$e,choice:YUe,note:T$e,rectWithTitle:x$e,labelRect:g$e,iconSquare:h$e,iconCircle:u$e,icon:c$e,iconRounded:d$e,imageSquare:f$e,anchor:zUe,kanbanItem:j$e,mindmapCircle:J$e,defaultMindmapNode:Z$e,classBox:W$e,erBox:cue,requirementBox:K$e}),...E0r.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),eGe=S0r();function tGe(t){return t in eGe}k(tGe,"isValidShape");var jU=new Map;async function XU(t,e,r){let n,i;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?eGe[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),i=await a(n,e,r)}else i=await a(t,e,r),n=i;return n.attr("data-look",Rl(e.look)),e.tooltip&&i.attr("title",e.tooltip),jU.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}k(XU,"insertNode");var T0r=k((t,e)=>{jU.set(e.id,t)},"setNodeElem"),C0r=k(()=>{jU.clear()},"clear"),$ee=k(t=>{const e=jU.get(t.id);Pe.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode"),w0r=k((t,e,r,n,i,a=!1,s)=>{e.arrowTypeStart&&Ewe(t,"start",e.arrowTypeStart,r,n,i,a,s),e.arrowTypeEnd&&Ewe(t,"end",e.arrowTypeEnd,r,n,i,a,s)},"addEdgeMarkers"),x0r={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}},A0r=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Ewe=k((t,e,r,n,i,a,s=!1,o)=>{const l=x0r[r],u=l&&A0r.includes(l.type);if(!l){Pe.warn(`Unknown arrow type: ${r}`);return}const d=l.type,p=`${i}_${a}-${d}${e==="start"?"Start":"End"}${s&&u?"-margin":""}`;if(o&&o.trim()!==""){const g=o.replace(/[^\dA-Za-z]/g,"_"),m=`${p}_${g}`;if(!document.getElementById(m)){const _=document.getElementById(p);if(_){const v=_.cloneNode(!0);v.id=m,v.querySelectorAll("path, circle, line").forEach(b=>{b.setAttribute("stroke",o),l.fill&&b.setAttribute("fill",o)}),_.parentNode?.appendChild(v)}}t.attr(`marker-${e}`,`url(${n}#${m})`)}else t.attr(`marker-${e}`,`url(${n}#${p})`)},"addEdgeMarker"),R0r=k(t=>typeof t=="string"?t:vt()?.flowchart?.curve,"resolveEdgeCurveType"),i8=new Map,Vl=new Map,O0r=k(()=>{i8.clear(),Vl.clear()},"clear"),$O=k(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),rGe=k(async(t,e)=>{const r=vt();let n=Da(r);const{labelStyles:i}=cn(e);e.labelStyle=i;const a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",e.id),o=e.labelType==="markdown",u=await xu(t,e.label,{style:$O(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(u),Pe.info("abc82",e,e.labelType);let d=u.getBBox(),h=d;if(n){const p=u.children[0],g=dr(u);d=p.getBoundingClientRect(),h=d,g.attr("width",d.width),g.attr("height",d.height)}else{const p=dr(u).select("text").node();p&&typeof p.getBBox=="function"&&(h=p.getBBox())}s.attr("transform",Vp(h,n)),i8.set(e.id,a),e.width=d.width,e.height=d.height;let f;if(e.startLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await F_(g,e.startLabelLeft,$O(e.labelStyle)||"",!1,!1);f=m;let _=m.getBBox();if(n){const v=m.children[0],y=dr(m);_=v.getBoundingClientRect(),y.attr("width",_.width),y.attr("height",_.height)}g.attr("transform",Vp(_,n)),Vl.get(e.id)||Vl.set(e.id,{}),Vl.get(e.id).startLeft=p,II(f,e.startLabelLeft)}if(e.startLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await F_(g,e.startLabelRight,$O(e.labelStyle)||"",!1,!1);f=m;let _=m.getBBox();if(n){const v=m.children[0],y=dr(m);_=v.getBoundingClientRect(),y.attr("width",_.width),y.attr("height",_.height)}g.attr("transform",Vp(_,n)),Vl.get(e.id)||Vl.set(e.id,{}),Vl.get(e.id).startRight=p,II(f,e.startLabelRight)}if(e.endLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await F_(p,e.endLabelLeft,$O(e.labelStyle)||"",!1,!1);f=m;let _=m.getBBox();if(n){const v=m.children[0],y=dr(m);_=v.getBoundingClientRect(),y.attr("width",_.width),y.attr("height",_.height)}g.attr("transform",Vp(_,n)),Vl.get(e.id)||Vl.set(e.id,{}),Vl.get(e.id).endLeft=p,II(f,e.endLabelLeft)}if(e.endLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await F_(p,e.endLabelRight,$O(e.labelStyle)||"",!1,!1);f=m;let _=m.getBBox();if(n){const v=m.children[0],y=dr(m);_=v.getBoundingClientRect(),y.attr("width",_.width),y.attr("height",_.height)}g.attr("transform",Vp(_,n)),Vl.get(e.id)||Vl.set(e.id,{}),Vl.get(e.id).endRight=p,II(f,e.endLabelRight)}return u},"insertEdgeLabel");function II(t,e){Da(vt())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}k(II,"setTerminalWidth");var nGe=k((t,e)=>{Pe.debug("Moving label abc88 ",t.id,t.label,i8.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=vt(),{subGraphTitleTotalMargin:i}=q5(n);if(t.label){const a=i8.get(t.id);let s=t.x,o=t.y;if(r){const l=ci.calcLabelPosition(r);Pe.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+i/2})`)}if(t.startLabelLeft){const a=Vl.get(t.id).startLeft;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=Vl.get(t.id).startRight;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=Vl.get(t.id).endLeft;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=Vl.get(t.id).endRight;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),I0r=k((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return i>=s||a>=o},"outsideNode"),N0r=k((t,e,r)=>{Pe.debug(`intersection calc abc89:
  outsidePoint: ${JSON.stringify(e)}
  insidePoint : ${JSON.stringify(r)}
  node        : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.x<e.x?s-a:s+a;const l=t.height/2,u=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*l){let h=r.y<e.y?e.y-l-i:i-l-e.y;o=d*h/u;const f={x:r.x<e.x?r.x+o:r.x-d+o,y:r.y<e.y?r.y+u-h:r.y-u+h};return o===0&&(f.x=e.x,f.y=e.y),d===0&&(f.x=e.x),u===0&&(f.y=e.y),Pe.debug(`abc89 top/bottom calc, Q ${u}, q ${h}, R ${d}, r ${o}`,f),f}else{r.x<e.x?o=e.x-s-n:o=n-s-e.x;let h=u*o/d,f=r.x<e.x?r.x+d-o:r.x-d+o,p=r.y<e.y?r.y+h:r.y-h;return Pe.debug(`sides calc abc89, Q ${u}, q ${h}, R ${d}, r ${o}`,{_x:f,_y:p}),o===0&&(f=e.x,p=e.y),d===0&&(f=e.x),u===0&&(p=e.y),{x:f,y:p}}},"intersection"),Swe=k((t,e)=>{Pe.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(Pe.info("abc88 checking point",a,e),!I0r(e,a)&&!i){const s=N0r(e,n,a);Pe.debug("abc88 inside",a,n,s),Pe.debug("abc88 intersection",s,e);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?Pe.warn("abc88 no intersect",s,r):r.push(s),i=!0}else Pe.warn("abc88 outside",a,n),n=a,i||r.push(a)}),Pe.debug("returning points",r),r},"cutPathAtIntersect");function iGe(t){const e=[],r=[];for(let n=1;n<t.length-1;n++){const i=t[n-1],a=t[n],s=t[n+1];(i.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}k(iGe,"extractCornerPoints");var Twe=k(function(t,e,r){const n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:e.x-s*n,y:e.y-s*i}},"findAdjacentPoint"),k0r=k(function(t){const{cornerPointPositions:e}=iGe(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){const i=t[n-1],a=t[n+1],s=t[n],o=Twe(i,s,5),l=Twe(a,s,5),u=l.x-o.x,d=l.y-o.y;r.push(o);const h=Math.sqrt(2)*2;let f={x:s.x,y:s.y};if(Math.abs(a.x-i.x)>10&&Math.abs(a.y-i.y)>=10){Pe.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));const p=5;s.x===o.x?f={x:u<0?o.x-p+h:o.x+p-h,y:d<0?o.y-h:o.y+h}:f={x:u<0?o.x-h:o.x+h,y:d<0?o.y-p+h:o.y+p-h}}else Pe.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(f,l)}else r.push(t[n]);return r},"fixCorners"),D0r=k((t,e,r)=>{const n=t-e-r,i=2,a=2,s=i+a,o=Math.floor(n/s),l=Array(o).fill(`${i} ${a}`).join(" ");return`0 ${e} ${l} ${r}`},"generateDashArray"),aGe=k(function(t,e,r,n,i,a,s,o=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=vt();let u=e.points,d=!1;const h=i;var f=a;const p=[];for(const P in e.cssCompiledStyles)Kce(P)||p.push(e.cssCompiledStyles[P]);Pe.debug("UIO intersect check",e.points,f.x,h.x),f.intersect&&h.intersect&&!o&&(u=u.slice(1,e.points.length-1),u.unshift(h.intersect(u[0])),Pe.debug("Last point UIO",e.start,"-->",e.end,u[u.length-1],f,f.intersect(u[u.length-1])),u.push(f.intersect(u[u.length-1])));const g=btoa(JSON.stringify(u));e.toCluster&&(Pe.info("to cluster abc88",r.get(e.toCluster)),u=Swe(e.points,r.get(e.toCluster).node),d=!0),e.fromCluster&&(Pe.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=Swe(u.reverse(),r.get(e.fromCluster).node).reverse(),d=!0);let m=u.filter(P=>!Number.isNaN(P.y));const _=R0r(e.curve);_!=="rounded"&&(m=k0r(m));let v=vN;switch(_){case"linear":v=vN;break;case"basis":v=Mk;break;case"cardinal":v=D8e;break;case"bumpX":v=R8e;break;case"bumpY":v=O8e;break;case"catmullRom":v=L8e;break;case"monotoneX":v=G8e;break;case"monotoneY":v=z8e;break;case"natural":v=V8e;break;case"step":v=H8e;break;case"stepAfter":v=W8e;break;case"stepBefore":v=Y8e;break;case"rounded":v=vN;break;default:v=Mk}const{x:y,y:b}=OBe(e),E=Dk().x(y).y(b).curve(v);let S;switch(e.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(e.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let T,C=_==="rounded"?sGe(oGe(m,e),5):E(m);const x=Array.isArray(e.style)?e.style:[e.style];let A=x.find(P=>P?.startsWith("stroke:")),R="";e.animate&&(R="edge-animation-fast"),e.animation&&(R="edge-animation-"+e.animation);let I=!1;if(e.look==="handDrawn"){const P=mn.svg(t);Object.assign([],m);const N=P.path(C,{roughness:.3,seed:l});S+=" transition",T=dr(N).select("path").attr("id",`${s}-${e.id}`).attr("class"," "+S+(e.classes?" "+e.classes:"")+(R?" "+R:"")).attr("style",x?x.reduce((U,B)=>U+";"+B,""):"");let $=T.attr("d");T.attr("d",$),t.node().appendChild(T.node())}else{const P=p.join(";"),N=x?x.reduce((G,Y)=>G+Y+";",""):"",$=(P?P+";"+N+";":N)+";"+(x?x.reduce((G,Y)=>G+";"+Y,""):"");T=t.append("path").attr("d",C).attr("id",`${s}-${e.id}`).attr("class"," "+S+(e.classes?" "+e.classes:"")+(R?" "+R:"")).attr("style",$),A=$.match(/stroke:([^;]+)/)?.[1],I=e.animate===!0||!!e.animation||P.includes("animation");const U=T.node(),B=typeof U.getTotalLength=="function"?U.getTotalLength():0,V=F2e[e.arrowTypeStart]||0,z=F2e[e.arrowTypeEnd]||0;if(e.look==="neo"&&!I){const Y=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?D0r(B,V,z):`0 ${V} ${B-V-z} ${z}`}; stroke-dashoffset: 0;`;T.attr("style",Y+T.attr("style"))}}T.attr("data-edge",!0),T.attr("data-et","edge"),T.attr("data-id",e.id),T.attr("data-points",g),T.attr("data-look",Rl(e.look)),e.showPoints&&m.forEach(P=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",P.x).attr("cy",P.y)});let L="";(vt().flowchart.arrowMarkerAbsolute||vt().state.arrowMarkerAbsolute)&&(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,L=L.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Pe.info("arrowTypeStart",e.arrowTypeStart),Pe.info("arrowTypeEnd",e.arrowTypeEnd);const F=!I&&e?.look==="neo";w0r(T,e,L,s,n,F,A);const O=Math.floor(u.length/2),D=u[O];ci.isLabelCoordinateInPath(D,T.attr("d"))||(d=!0);let M={};return d&&(M.updatedPath=u),M.originalPath=e.points,M},"insertEdge");function sGe(t,e){if(t.length<2)return"";let r="";const n=t.length,i=1e-5;for(let a=0;a<n;a++){const s=t[a],o=t[a-1],l=t[a+1];if(a===0)r+=`M${s.x},${s.y}`;else if(a===n-1)r+=`L${s.x},${s.y}`;else{const u=s.x-o.x,d=s.y-o.y,h=l.x-s.x,f=l.y-s.y,p=Math.hypot(u,d),g=Math.hypot(h,f);if(p<i||g<i){r+=`L${s.x},${s.y}`;continue}const m=u/p,_=d/p,v=h/g,y=f/g,b=m*v+_*y,E=Math.max(-1,Math.min(1,b)),S=Math.acos(E);if(S<i||Math.abs(Math.PI-S)<i){r+=`L${s.x},${s.y}`;continue}const T=Math.min(e/Math.sin(S/2),p/2,g/2),C=s.x-m*T,x=s.y-_*T,A=s.x+v*T,R=s.y+y*T;r+=`L${C},${x}`,r+=`Q${s.x},${s.y} ${A},${R}`}}return r}k(sGe,"generateRoundedPath");function Gee(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};const r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}k(Gee,"calculateDeltaAndAngle");function oGe(t,e){const r=t.map(i=>({...i}));if(t.length>=2&&Sc[e.arrowTypeStart]){const i=Sc[e.arrowTypeStart],a=t[0],s=t[1],{angle:o}=Gee(a,s),l=i*Math.cos(o),u=i*Math.sin(o);r[0].x=a.x+l,r[0].y=a.y+u}const n=t.length;if(n>=2&&Sc[e.arrowTypeEnd]){const i=Sc[e.arrowTypeEnd],a=t[n-1],s=t[n-2],{angle:o}=Gee(s,a),l=i*Math.cos(o),u=i*Math.sin(o);r[n-1].x=a.x-l,r[n-1].y=a.y-u}return r}k(oGe,"applyMarkerOffsetsToPoints");var M0r=k((t,e,r,n)=>{e.forEach(i=>{n_r[i](t,r,n)})},"insertMarkers"),L0r=k((t,e,r)=>{Pe.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).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"),P0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).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"),F0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).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"),B0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).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"),U0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).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"),$0r=k((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).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"),G0r=k((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).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"),z0r=k((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).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),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).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"),q0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),V0r=k((t,e,r)=>{const n=Ln(),{themeVariables:i}=n,{transitionColor:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-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",`${a}`)},"barbNeo"),H0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),Y0r=k((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),W0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),K0r=k((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),j0r=k((t,e,r)=>{const n=Ln(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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",`${a}`)},"only_one_neo"),X0r=k((t,e,r)=>{const n=Ln(),{themeVariables:i}=n,{strokeWidth:a,mainBkg:s}=i,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),Q0r=k((t,e,r)=>{const n=Ln(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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",`${a}`)},"one_or_more_neo"),Z0r=k((t,e,r)=>{const n=Ln(),{themeVariables:i}=n,{strokeWidth:a,mainBkg:s}=i,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),J0r=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
      L20,10
      M20,10
      L0,20`)},"requirement_arrow"),e_r=k((t,e,r)=>{const n=Ln(),{themeVariables:i}=n,{strokeWidth:a}=i;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
      L20,10
      M20,10
      L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),t_r=k((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),r_r=k((t,e,r)=>{const n=Ln(),{themeVariables:i}=n,{strokeWidth:a}=i,s=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),n_r={extension:L0r,composition:P0r,aggregation:F0r,dependency:B0r,lollipop:U0r,point:$0r,circle:G0r,cross:z0r,barb:q0r,barbNeo:V0r,only_one:H0r,zero_or_one:Y0r,one_or_more:W0r,zero_or_more:K0r,only_one_neo:j0r,zero_or_one_neo:X0r,one_or_more_neo:Q0r,zero_or_more_neo:Z0r,requirement_arrow:J0r,requirement_contains:t_r,requirement_arrow_neo:e_r,requirement_contains_neo:r_r},lGe=M0r,i_r={common:Cr,getConfig:Ln,insertCluster:oue,insertEdge:aGe,insertEdgeLabel:rGe,insertMarkers:lGe,insertNode:XU,interpolateToCurve:zce,labelHelper:Zn,log:Pe,positionEdgeLabel:nGe},Gk={},cGe=k(t=>{for(const e of t)Gk[e.name]=e},"registerLayoutLoaders"),a_r=k(()=>{cGe([{name:"dagre",loader:k(async()=>await Pn(()=>Promise.resolve().then(()=>axr),void 0,import.meta.url),"loader")},{name:"cose-bilkent",loader:k(async()=>await Pn(()=>Promise.resolve().then(()=>jkr),void 0,import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");a_r();var RR=k(async(t,e)=>{if(!(t.layoutAlgorithm in Gk))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const d of t.nodes){const h=d.domId||d.id;d.domId=`${t.diagramId}-${h}`}const r=Gk[t.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:a}=t.config,{useGradient:s,gradientStart:o,gradientStop:l}=a,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-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"}`),e.append("defs").append("filter").attr("id",`${u}-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){const d=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return n.render(t,e,i_r,{algorithm:r.algorithm})},"render"),Y5=k((t="",{fallback:e="dagre"}={})=>{if(t in Gk)return t;if(e in Gk)return Pe.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),uue="comm",uGe="rule",dGe="decl",s_r="@media",o_r="@import",l_r="@supports",c_r="@namespace",zee="@keyframes",hGe="@layer",u_r="@scope",d_r=Math.abs,SN=String.fromCharCode;function fGe(t){return t.trim()}function qee(t,e,r){return t.replace(e,r)}function JT(t,e){return t.charCodeAt(e)|0}function EA(t,e,r){return t.slice(e,r)}function Mp(t){return t.length}function pGe(t){return t.length}function ML(t,e){return e.push(t),t}var QU=1,SA=1,gGe=0,Vh=0,$o=0,OR="";function due(t,e,r,n,i,a,s,o){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:QU,column:SA,length:s,return:"",siblings:o}}function h_r(){return $o}function f_r(){return $o=Vh>0?JT(OR,--Vh):0,SA--,$o===10&&(SA=1,QU--),$o}function Bf(){return $o=Vh<gGe?JT(OR,Vh++):0,SA++,$o===10&&(SA=1,QU++),$o}function B_(){return JT(OR,Vh)}function ZP(){return Vh}function ZU(t,e){return EA(OR,t,e)}function zk(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function p_r(t){return QU=SA=1,gGe=Mp(OR=t),Vh=0,[]}function g_r(t){return OR="",t}function UK(t){return fGe(ZU(Vh-1,Vee(t===91?t+2:t===40?t+1:t)))}function m_r(t){for(;($o=B_())&&$o<33;)Bf();return zk(t)>2||zk($o)>3?"":" "}function __r(t,e){for(;--e&&Bf()&&!($o<48||$o>102||$o>57&&$o<65||$o>70&&$o<97););return ZU(t,ZP()+(e<6&&B_()==32&&Bf()==32))}function Vee(t){for(;Bf();)switch($o){case t:return Vh;case 34:case 39:t!==34&&t!==39&&Vee($o);break;case 40:t===41&&Vee(t);break;case 92:Bf();break}return Vh}function v_r(t,e){for(;Bf()&&t+$o!==57;)if(t+$o===84&&B_()===47)break;return"/*"+ZU(e,Vh-1)+"*"+SN(t===47?t:Bf())}function y_r(t){for(;!zk(B_());)Bf();return ZU(t,Vh)}function b_r(t){return g_r(JP("",null,null,null,[""],t=p_r(t),0,[0],t))}function JP(t,e,r,n,i,a,s,o,l){for(var u=0,d=0,h=s,f=0,p=0,g=0,m=1,_=1,v=1,y=0,b=0,E="",S=i,T=a,C=n,x=E;_;)switch(g=b,b=Bf()){case 40:g!=108&&JT(x,h-1)==58?(y++,x+="("):x+=UK(b);break;case 41:y--,x+=")";break;case 34:case 39:case 91:x+=UK(b);break;case 9:case 10:case 13:case 32:if(y>0){x+=SN(b);break}x+=m_r(g);break;case 92:x+=__r(ZP()-1,7);continue;case 47:switch(B_()){case 42:case 47:ML(E_r(v_r(Bf(),ZP()),e,r,l),l),(zk(g||1)==5||zk(B_()||1)==5)&&Mp(x)&&EA(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*m:o[u++]=Mp(x)*v;case 125*m:case 59:case 0:if(y>0&&b){x+=SN(b);break}switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=qee(x,/\f/g,"")),p>0&&(Mp(x)-h||m===0)&&ML(p>32?wwe(x+";",n,r,h-1,l):wwe(qee(x," ","")+";",n,r,h-2,l),l);break;case 59:x+=";";default:if(ML(C=Cwe(x,e,r,u,d,i,o,E,S=[],T=[],h,a),a),b===123)if(d===0)JP(x,e,C,C,S,a,h,o,T);else{switch(f){case 99:if(JT(x,3)===110)break;case 108:if(JT(x,2)===97)break;default:d=0;case 100:case 109:case 115:}d?JP(t,C,C,n&&ML(Cwe(t,C,C,0,0,i,o,E,i,S=[],h,T),T),i,T,h,o,n?S:T):JP(x,C,C,C,[""],T,0,o,T)}}u=d=p=0,m=v=1,E=x="",h=s;break;case 58:h=1+Mp(x),p=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&f_r()==125)continue}switch(x+=SN(b),b*m){case 38:v=d>0?1:(x+="\f",-1);break;case 44:if(y>0)break;o[u++]=(Mp(x)-1)*v,v=1;break;case 64:B_()===45&&(x+=UK(Bf())),f=B_(),d=h=Mp(E=x+=y_r(ZP())),b++;break;case 45:g===45&&Mp(x)==2&&(m=0)}}return a}function Cwe(t,e,r,n,i,a,s,o,l,u,d,h){for(var f=i-1,p=i===0?a:[""],g=pGe(p),m=0,_=0,v=0;m<n;++m)for(var y=0,b=EA(t,f+1,f=d_r(_=s[m])),E=t;y<g;++y)(E=fGe(_>0?p[y]+" "+b:qee(b,/&\f/g,p[y])))&&(l[v++]=E);return due(t,e,r,i===0?uGe:o,l,u,d,h)}function E_r(t,e,r,n){return due(t,e,r,uue,SN(h_r()),EA(t,2,-2),0,n)}function wwe(t,e,r,n,i){return due(t,e,r,dGe,EA(t,0,n),EA(t,n+1,-1),n,i)}function Hee(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function S_r(t,e,r,n){switch(t.type){case hGe:if(t.children.length)break;case o_r:case c_r:case dGe:return t.return=t.return||t.value;case uue:return"";case zee:return t.return=t.value+"{"+Hee(t.children,n)+"}";case uGe:if(!Mp(t.value=t.props.join(",")))return""}return Mp(r=Hee(t.children,n))?t.return=t.value+"{"+r+"}":""}function T_r(t){var e=pGe(t);return function(r,n,i,a){for(var s="",o=0;o<e;o++)s+=t[o](r,n,i,a)||"";return s}}var mGe="c4",C_r=k(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),w_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>V3r);return{diagram:e}},void 0,import.meta.url);return{id:mGe,diagram:t}},"loader"),x_r={id:mGe,detector:C_r,loader:w_r},A_r=x_r,_Ge="flowchart",R_r=k((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),O_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>hde);return{diagram:e}},void 0,import.meta.url);return{id:_Ge,diagram:t}},"loader"),I_r={id:_Ge,detector:R_r,loader:O_r},N_r=I_r,vGe="flowchart-v2",k_r=k((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),D_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>hde);return{diagram:e}},void 0,import.meta.url);return{id:vGe,diagram:t}},"loader"),M_r={id:vGe,detector:k_r,loader:D_r},L_r=M_r,yGe="er",P_r=k(t=>/^\s*erDiagram/.test(t),"detector"),F_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>u5r);return{diagram:e}},void 0,import.meta.url);return{id:yGe,diagram:t}},"loader"),B_r={id:yGe,detector:P_r,loader:F_r},U_r=B_r,bGe="gitGraph",$_r=k(t=>/^\s*gitGraph/.test(t),"detector"),G_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>PGr);return{diagram:e}},void 0,import.meta.url);return{id:bGe,diagram:t}},"loader"),z_r={id:bGe,detector:$_r,loader:G_r},q_r=z_r,EGe="gantt",V_r=k(t=>/^\s*gantt/.test(t),"detector"),H_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Vzr);return{diagram:e}},void 0,import.meta.url);return{id:EGe,diagram:t}},"loader"),Y_r={id:EGe,detector:V_r,loader:H_r},W_r=Y_r,SGe="info",K_r=k(t=>/^\s*info/.test(t),"detector"),j_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Zzr);return{diagram:e}},void 0,import.meta.url);return{id:SGe,diagram:t}},"loader"),X_r={id:SGe,detector:K_r,loader:j_r},TGe="pie",Q_r=k(t=>/^\s*pie/.test(t),"detector"),Z_r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>gqr);return{diagram:e}},void 0,import.meta.url);return{id:TGe,diagram:t}},"loader"),J_r={id:TGe,detector:Q_r,loader:Z_r},CGe="quadrantChart",e1r=k(t=>/^\s*quadrantChart/.test(t),"detector"),t1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Cqr);return{diagram:e}},void 0,import.meta.url);return{id:CGe,diagram:t}},"loader"),r1r={id:CGe,detector:e1r,loader:t1r},n1r=r1r,wGe="xychart",i1r=k(t=>/^\s*xychart(-beta)?/.test(t),"detector"),a1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Uqr);return{diagram:e}},void 0,import.meta.url);return{id:wGe,diagram:t}},"loader"),s1r={id:wGe,detector:i1r,loader:a1r},o1r=s1r,xGe="requirement",l1r=k(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),c1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Wqr);return{diagram:e}},void 0,import.meta.url);return{id:xGe,diagram:t}},"loader"),u1r={id:xGe,detector:l1r,loader:c1r},d1r=u1r,AGe="sequence",h1r=k(t=>/^\s*sequenceDiagram/.test(t),"detector"),f1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>zVr);return{diagram:e}},void 0,import.meta.url);return{id:AGe,diagram:t}},"loader"),p1r={id:AGe,detector:h1r,loader:f1r},g1r=p1r,RGe="class",m1r=k((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),_1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>KVr);return{diagram:e}},void 0,import.meta.url);return{id:RGe,diagram:t}},"loader"),v1r={id:RGe,detector:m1r,loader:_1r},y1r=v1r,OGe="classDiagram",b1r=k((t,e)=>/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),E1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>XVr);return{diagram:e}},void 0,import.meta.url);return{id:OGe,diagram:t}},"loader"),S1r={id:OGe,detector:b1r,loader:E1r},T1r=S1r,IGe="state",C1r=k((t,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),w1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>UHr);return{diagram:e}},void 0,import.meta.url);return{id:IGe,diagram:t}},"loader"),x1r={id:IGe,detector:C1r,loader:w1r},A1r=x1r,NGe="stateDiagram",R1r=k((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),O1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>GHr);return{diagram:e}},void 0,import.meta.url);return{id:NGe,diagram:t}},"loader"),I1r={id:NGe,detector:R1r,loader:O1r},N1r=I1r,kGe="journey",k1r=k(t=>/^\s*journey/.test(t),"detector"),D1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>cYr);return{diagram:e}},void 0,import.meta.url);return{id:kGe,diagram:t}},"loader"),M1r={id:kGe,detector:k1r,loader:D1r},L1r=M1r,P1r=k((t,e,r)=>{Pe.debug(`rendering svg for syntax error
`);const n=ud(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),Xo(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),DGe={draw:P1r},F1r=DGe,B1r={db:{},renderer:DGe,parser:{parse:k(()=>{},"parse")}},U1r=B1r,MGe="flowchart-elk",$1r=k((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),G1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>hde);return{diagram:e}},void 0,import.meta.url);return{id:MGe,diagram:t}},"loader"),z1r={id:MGe,detector:$1r,loader:G1r},q1r=z1r,LGe="timeline",V1r=k(t=>/^\s*timeline/.test(t),"detector"),H1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>BYr);return{diagram:e}},void 0,import.meta.url);return{id:LGe,diagram:t}},"loader"),Y1r={id:LGe,detector:V1r,loader:H1r},W1r=Y1r,PGe="mindmap",K1r=k(t=>/^\s*mindmap/.test(t),"detector"),j1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>tWr);return{diagram:e}},void 0,import.meta.url);return{id:PGe,diagram:t}},"loader"),X1r={id:PGe,detector:K1r,loader:j1r},Q1r=X1r,FGe="kanban",Z1r=k(t=>/^\s*kanban/.test(t),"detector"),J1r=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>EWr);return{diagram:e}},void 0,import.meta.url);return{id:FGe,diagram:t}},"loader"),evr={id:FGe,detector:Z1r,loader:J1r},tvr=evr,BGe="sankey",rvr=k(t=>/^\s*sankey(-beta)?/.test(t),"detector"),nvr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>sKr);return{diagram:e}},void 0,import.meta.url);return{id:BGe,diagram:t}},"loader"),ivr={id:BGe,detector:rvr,loader:nvr},avr=ivr,UGe="packet",svr=k(t=>/^\s*packet(-beta)?/.test(t),"detector"),ovr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>_Kr);return{diagram:e}},void 0,import.meta.url);return{id:UGe,diagram:t}},"loader"),lvr={id:UGe,detector:svr,loader:ovr},$Ge="radar",cvr=k(t=>/^\s*radar-beta/.test(t),"detector"),uvr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>BKr);return{diagram:e}},void 0,import.meta.url);return{id:$Ge,diagram:t}},"loader"),dvr={id:$Ge,detector:cvr,loader:uvr},GGe="block",hvr=k(t=>/^\s*block(-beta)?/.test(t),"detector"),fvr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>hXr);return{diagram:e}},void 0,import.meta.url);return{id:GGe,diagram:t}},"loader"),pvr={id:GGe,detector:hvr,loader:fvr},gvr=pvr,zGe="treeView",mvr=k(t=>/^\s*treeView-beta/.test(t),"detector"),_vr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>NXr);return{diagram:e}},void 0,import.meta.url);return{id:zGe,diagram:t}},"loader"),vvr={id:zGe,detector:mvr,loader:_vr},yvr=vvr,qGe="architecture",bvr=k(t=>/^\s*architecture/.test(t),"detector"),Evr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>aQr);return{diagram:e}},void 0,import.meta.url);return{id:qGe,diagram:t}},"loader"),Svr={id:qGe,detector:bvr,loader:Evr},Tvr=Svr,VGe="eventmodeling",Cvr=k(t=>/^\s*eventmodeling/.test(t),"detector"),wvr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>SQr);return{diagram:e}},void 0,import.meta.url);return{id:VGe,diagram:t}},"loader"),xvr={id:VGe,detector:Cvr,loader:wvr},Avr=xvr,HGe="ishikawa",Rvr=k(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),Ovr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>UQr);return{diagram:e}},void 0,import.meta.url);return{id:HGe,diagram:t}},"loader"),Ivr={id:HGe,detector:Rvr,loader:Ovr},YGe="venn",Nvr=k(t=>/^\s*venn-beta/.test(t),"detector"),kvr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>CZr);return{diagram:e}},void 0,import.meta.url);return{id:YGe,diagram:t}},"loader"),Dvr={id:YGe,detector:Nvr,loader:kvr},Mvr=Dvr,WGe="treemap",Lvr=k(t=>/^\s*treemap/.test(t),"detector"),Pvr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>LZr);return{diagram:e}},void 0,import.meta.url);return{id:WGe,diagram:t}},"loader"),Fvr={id:WGe,detector:Lvr,loader:Pvr},KGe="wardley-beta",Bvr=k(t=>/^\s*wardley-beta/i.test(t),"detector"),Uvr=k(async()=>{const{diagram:t}=await Pn(async()=>{const{diagram:e}=await Promise.resolve().then(()=>WZr);return{diagram:e}},void 0,import.meta.url);return{id:KGe,diagram:t}},"loader"),$vr={id:KGe,detector:Bvr,loader:Uvr},Gvr=$vr,xwe=!1,JU=k(()=>{xwe||(xwe=!0,S7("error",U1r,t=>t.toLowerCase().trim()==="error"),S7("---",{db:{clear:k(()=>{},"clear")},styles:{},renderer:{draw:k(()=>{},"draw")},parser:{parse:k(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:k(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),qJ(q1r,Q1r,Tvr),qJ(A_r,tvr,T1r,y1r,U_r,W_r,X_r,J_r,d1r,g1r,L_r,N_r,W1r,q_r,N1r,A1r,L1r,n1r,avr,lvr,o1r,gvr,Avr,yvr,dvr,Ivr,Fvr,Mvr,Gvr))},"addDiagrams"),zvr=k(async()=>{Pe.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ob).map(async([r,{detector:n,loader:i}])=>{if(i)try{jJ(r)}catch{try{const{diagram:a,id:s}=await i();S7(s,a,n)}catch(a){throw Pe.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ob[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){Pe.error(`Failed to load ${e.length} external diagrams`);for(const r of e)Pe.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),qvr="graphics-document document";function jGe(t,e){t.attr("role",qvr),e!==""&&t.attr("aria-roledescription",e)}k(jGe,"setA11yDiagramInfo");function XGe(t,e,r,n){if(t.insert!==void 0){if(r){const i=`chart-desc-${n}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){const i=`chart-title-${n}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}k(XGe,"addSVGa11yTitleDescription");var ub,Yee=(ub=class{constructor(e,r,n,i,a){this.type=e,this.text=r,this.db=n,this.parser=i,this.renderer=a}static async fromText(e,r={}){const n=Ln(),i=tce(e,n);e=xgr(e)+`
`;try{jJ(i)}catch{const u=vsr(i);if(!u)throw new m7e(`Diagram ${i} not found.`);const{id:d,diagram:h}=await u();S7(d,h)}const{db:a,parser:s,renderer:o,init:l}=jJ(i);return s.parser&&(s.parser.yy=a),a.clear?.(),l?.(n),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new ub(i,e,a,s,o)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},k(ub,"Diagram"),ub),Awe=[],Vvr=k(()=>{Awe.forEach(t=>{t()}),Awe=[]},"attachFunctions"),Hvr=k(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function QGe(t){const e=t.match(g7e);if(!e)return{text:t,metadata:{}};let r=BU(e[1],{schema:FU})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}k(QGe,"extractFrontMatter");var Yvr=k(t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Wvr=k(t=>{const{text:e,metadata:r}=QGe(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),Kvr=k(t=>{const e=ci.detectInit(t)??{},r=ci.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:mgr(t),directive:e}},"processDirectives");function hue(t){const e=Yvr(t),r=Wvr(e),n=Kvr(r.text),i=_o(r.config,n.directive);return t=Hvr(n.text),{code:t,title:r.title,config:i}}k(hue,"preprocessDiagram");function ZGe(t){const e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}k(ZGe,"toBase64");var jvr=5e4,Xvr="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Qvr="sandbox",Zvr="loose",Jvr="http://www.w3.org/2000/svg",eyr="http://www.w3.org/1999/xlink",tyr="http://www.w3.org/1999/xhtml",ryr="100%",nyr="100%",iyr="border:0;margin:0;",ayr="margin:0",syr="allow-top-navigation-by-user-activation allow-popups",oyr='The "iframe" tag is not supported by your browser.',lyr=["foreignobject"],cyr=["dominant-baseline"];function fue(t){const e=hue(t);return b7(),Vsr(e.config??{}),e}k(fue,"processAndSetConfigs");async function JGe(t,e){JU();try{const{code:r,config:n}=fue(t);return{diagramType:(await tze(r)).type,config:n}}catch(r){if(e?.suppressErrors)return!1;throw r}}k(JGe,"parse");var Rwe=k((t,e,r=[])=>{const n=b7e(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),uyr=k((t,e=new Map)=>{const r=new CSSStyleSheet;if(t.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),t.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){const o=Da(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{z2e(l.styles)||o.forEach(u=>{r.insertRule(Rwe(l.id,u,l.styles),r.cssRules.length)}),z2e(l.textStyles)||r.insertRule(Rwe(l.id,"tspan",(l?.textStyles||[]).map(u=>u.replace("color","fill"))),r.cssRules.length)})}let n="";if(t.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const i=new CSSStyleSheet;i.replaceSync(t.themeCSS),n=WJ(i)+`
`}else n+=`${t.themeCSS}
`;return n+WJ(r)},"createCssStyles"),dyr=k((t,e)=>Hee(b_r(`${t}{${e}}`),T_r([k(function(n,i,a,s){if(n.type==="rule"&&Array.isArray(n.props)){if(n.parent&&n.parent.type===zee)return;n.props=n.props.map(o=>o.startsWith(t)?o:`${t} ${o}`)}else n.type.startsWith("@")&&([...[s_r,l_r,hGe,u_r,"@container","@starting-style"],zee].includes(n.type)||(Pe.warn(`Removing unsupported at-rule ${n.type} from CSS`),n.type=uue))},"addNamespace"),S_r])),"compileCSS"),hyr=k((t,e,r,n)=>{const i=uyr(t,r),a=lor(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return dyr(n,a)},"createUserStyles"),fyr=k((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=u0(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),pyr=k((t="",e)=>{const r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":nyr,n=ZGe(`<body style="${ayr}">${t}</body>`);return`<iframe style="width:${ryr};height:${r};${iyr}" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="${syr}">
  ${oyr}
</iframe>`},"putIntoIFrame"),Owe=k((t,e,r,n,i)=>{const a=t.append("div");a.attr("id",r),n&&a.attr("style",n);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Jvr);return i&&s.attr("xmlns:xlink",i),s.append("g"),t},"appendDivSvgG");function Wee(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}k(Wee,"sandboxedIframe");var gyr=k((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),myr=k(async function(t,e,r){JU();const n=fue(e);e=n.code;const i=Ln();Pe.debug(i),e.length>(i?.maxTextSize??jvr)&&(e=Xvr);const a=`#${t}`,s="i"+t,o="#"+s,l="d"+t,u="#"+l,d=k(()=>{const F=dr(f?o:u).node();F&&"remove"in F&&F.remove()},"removeTempElements");let h=dr(document.body);const f=i.securityLevel===Qvr,p=i.securityLevel===Zvr,g=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const L=Wee(dr(r),s);h=dr(L.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=dr(r);Owe(h,t,l,`font-family: ${g}`,eyr)}else{if(gyr(document,t,l,s),f){const L=Wee(dr(document.body),s);h=dr(L.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=dr("body");Owe(h,t,l)}let m,_;try{m=await Yee.fromText(e,{title:n.title})}catch(L){if(i.suppressErrorRendering)throw d(),L;m=await Yee.fromText("error"),_=L}const v=h.select(u).node(),y=m.type,b=v.firstChild,E=b.firstChild,S=m.renderer.getClasses?.(e,m),T=hyr(i,y,S,a),C=document.createElement("style");C.innerHTML=T,b.insertBefore(C,E);try{await m.renderer.draw(e,t,"11.15.0",m)}catch(L){throw i.suppressErrorRendering?d():F1r.draw(e,t,"11.15.0"),L}const x=h.select(`${u} svg`),A=m.db.getAccTitle?.(),R=m.db.getAccDescription?.();rze(y,x,A,R),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",tyr);let I=h.select(u).node().innerHTML;if(Pe.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),I=fyr(I,f,F0(i.arrowMarkerAbsolute)),f){const L=h.select(u+" svg").node();I=pyr(I,L)}else p||(I=g1.sanitize(I,{ADD_TAGS:lyr,ADD_ATTR:cyr,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Vvr(),_)throw _;return d(),{diagramType:y,svg:I,bindFunctions:m.db.bindFunctions}},"render");function eze(t={}){const e=Ro({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),zsr(e),e?.theme&&e.theme in Hm?e.themeVariables=Hm[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Hm.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?Gsr(e):E7e();Zle(r.logLevel),JU()}k(eze,"initialize");var tze=k((t,e={})=>{const{code:r}=hue(t);return Yee.fromText(r,e)},"getDiagramFromText");function rze(t,e,r,n){jGe(e,t),XGe(e,r,n,e.attr("id"))}k(rze,"addA11yInfo");var Bb=Object.freeze({render:myr,parse:JGe,getDiagramFromText:tze,initialize:eze,getConfig:Ln,setConfig:S7e,getSiteConfig:E7e,updateSiteConfig:qsr,reset:k(()=>{b7()},"reset"),globalReset:k(()=>{b7(dA)},"globalReset"),defaultConfig:dA});Zle(Ln().logLevel);b7(Ln());var _yr=k((t,e,r)=>{Pe.warn(t),Yce(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),nze=k(async function(t={querySelector:".mermaid"}){try{await vyr(t)}catch(e){if(Yce(e)&&Pe.error(e.str),d0.parseError&&d0.parseError(e),!t.suppressErrors)throw Pe.error("Use the suppressErrors option to suppress these errors"),e}},"run"),vyr=k(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=Bb.getConfig();Pe.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");Pe.debug(`Found ${i.length} diagrams`),n?.startOnLoad!==void 0&&(Pe.debug("Start On Load: "+n?.startOnLoad),Bb.updateSiteConfig({startOnLoad:n?.startOnLoad}));const a=new ci.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const o=[];for(const l of Array.from(i)){if(Pe.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=l.innerHTML,s=uUe(ci.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=ci.detectInit(s);d&&Pe.debug("Detected early reinit: ",d);try{const{svg:h,bindFunctions:f}=await oze(u,s,l);l.innerHTML=h,t&&await t(u),f&&f(l)}catch(h){_yr(h,o,d0.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),ize=k(function(t){Bb.initialize(t)},"initialize"),yyr=k(async function(t,e,r){Pe.warn("mermaid.init is deprecated. Please use run instead."),t&&ize(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await nze(n)},"init"),byr=k(async(t,{lazyLoad:e=!0}={})=>{JU(),qJ(...t),e===!1&&await zvr()},"registerExternalDiagrams"),aze=k(function(){if(d0.startOnLoad){const{startOnLoad:t}=Bb.getConfig();t&&d0.run().catch(e=>Pe.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",aze,!1);var Eyr=k(function(t){d0.parseError=t},"setParseErrorHandler"),a8=[],$K=!1,sze=k(async()=>{if(!$K){for($K=!0;a8.length>0;){const t=a8.shift();if(t)try{await t()}catch(e){Pe.error("Error executing queue",e)}}$K=!1}},"executeQueue"),Syr=k(async(t,e)=>new Promise((r,n)=>{const i=k(()=>new Promise((a,s)=>{Bb.parse(t,e).then(o=>{a(o),r(o)},o=>{Pe.error("Error parsing",o),d0.parseError?.(o),s(o),n(o)})}),"performCall");a8.push(i),sze().catch(n)}),"parse"),oze=k((t,e,r)=>new Promise((n,i)=>{const a=k(()=>new Promise((s,o)=>{Bb.render(t,e,r).then(l=>{s(l),n(l)},l=>{Pe.error("Error parsing",l),d0.parseError?.(l),o(l),i(l)})}),"performCall");a8.push(a),sze().catch(i)}),"render"),Tyr=k(()=>Object.keys(Ob).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),d0={startOnLoad:!0,mermaidAPI:Bb,parse:Syr,render:oze,init:yyr,run:nze,registerExternalDiagrams:byr,registerLayoutLoaders:cGe,initialize:ize,parseError:void 0,contentLoaded:aze,setParseErrorHandler:Eyr,detectType:tce,registerIconPacks:fUe,getRegisteredDiagramsMetadata:Tyr},Cyr=d0;const wyr=Object.freeze(Object.defineProperty({__proto__:null,default:Cyr},Symbol.toStringTag,{value:"Module"}));var lze=typeof global=="object"&&global&&global.Object===Object&&global,xyr=typeof self=="object"&&self&&self.Object===Object&&self,kg=lze||xyr||Function("return this")(),Hh=kg.Symbol,cze=Object.prototype,Ayr=cze.hasOwnProperty,Ryr=cze.toString,GO=Hh?Hh.toStringTag:void 0;function Oyr(t){var e=Ayr.call(t,GO),r=t[GO];try{t[GO]=void 0;var n=!0}catch{}var i=Ryr.call(t);return n&&(e?t[GO]=r:delete t[GO]),i}var Iyr=Object.prototype,Nyr=Iyr.toString;function kyr(t){return Nyr.call(t)}var Dyr="[object Null]",Myr="[object Undefined]",Iwe=Hh?Hh.toStringTag:void 0;function mE(t){return t==null?t===void 0?Myr:Dyr:Iwe&&Iwe in Object(t)?Oyr(t):kyr(t)}function _g(t){return t!=null&&typeof t=="object"}var Lyr="[object Symbol]";function Ub(t){return typeof t=="symbol"||_g(t)&&mE(t)==Lyr}function eC(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var Ko=Array.isArray,Nwe=Hh?Hh.prototype:void 0,kwe=Nwe?Nwe.toString:void 0;function uze(t){if(typeof t=="string")return t;if(Ko(t))return eC(t,uze)+"";if(Ub(t))return kwe?kwe.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Pyr=/\s/;function Fyr(t){for(var e=t.length;e--&&Pyr.test(t.charAt(e)););return e}var Byr=/^\s+/;function Uyr(t){return t&&t.slice(0,Fyr(t)+1).replace(Byr,"")}function Hd(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Dwe=NaN,$yr=/^[-+]0x[0-9a-f]+$/i,Gyr=/^0b[01]+$/i,zyr=/^0o[0-7]+$/i,qyr=parseInt;function Vyr(t){if(typeof t=="number")return t;if(Ub(t))return Dwe;if(Hd(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Hd(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Uyr(t);var r=Gyr.test(t);return r||zyr.test(t)?qyr(t.slice(2),r?2:8):$yr.test(t)?Dwe:+t}var Mwe=1/0,Hyr=17976931348623157e292;function e6(t){if(!t)return t===0?t:0;if(t=Vyr(t),t===Mwe||t===-Mwe){var e=t<0?-1:1;return e*Hyr}return t===t?t:0}function Yyr(t){var e=e6(t),r=e%1;return e===e?r?e-r:e:0}function _E(t){return t}var Wyr="[object AsyncFunction]",Kyr="[object Function]",jyr="[object GeneratorFunction]",Xyr="[object Proxy]";function qk(t){if(!Hd(t))return!1;var e=mE(t);return e==Kyr||e==jyr||e==Wyr||e==Xyr}var GK=kg["__core-js_shared__"],Lwe=(function(){var t=/[^.]+$/.exec(GK&&GK.keys&&GK.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Qyr(t){return!!Lwe&&Lwe in t}var Zyr=Function.prototype,Jyr=Zyr.toString;function vE(t){if(t!=null){try{return Jyr.call(t)}catch{}try{return t+""}catch{}}return""}var ebr=/[\\^$.*+?()[\]{}|]/g,tbr=/^\[object .+?Constructor\]$/,rbr=Function.prototype,nbr=Object.prototype,ibr=rbr.toString,abr=nbr.hasOwnProperty,sbr=RegExp("^"+ibr.call(abr).replace(ebr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function obr(t){if(!Hd(t)||Qyr(t))return!1;var e=qk(t)?sbr:tbr;return e.test(vE(t))}function lbr(t,e){return t?.[e]}function yE(t,e){var r=lbr(t,e);return obr(r)?r:void 0}var Kee=yE(kg,"WeakMap"),Pwe=Object.create,cbr=(function(){function t(){}return function(e){if(!Hd(e))return{};if(Pwe)return Pwe(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();function ubr(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function dbr(){}function dze(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var hbr=800,fbr=16,pbr=Date.now;function gbr(t){var e=0,r=0;return function(){var n=pbr(),i=fbr-(n-r);if(r=n,i>0){if(++e>=hbr)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function yT(t){return function(){return t}}var s8=(function(){try{var t=yE(Object,"defineProperty");return t({},"",{}),t}catch{}})(),mbr=s8?function(t,e){return s8(t,"toString",{configurable:!0,enumerable:!1,value:yT(e),writable:!0})}:_E,hze=gbr(mbr);function fze(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function pze(t,e,r,n){for(var i=t.length,a=r+-1;++a<i;)if(e(t[a],a,t))return a;return-1}function _br(t){return t!==t}function vbr(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function ybr(t,e,r){return e===e?vbr(t,e,r):pze(t,_br,r)}function bbr(t,e){var r=t==null?0:t.length;return!!r&&ybr(t,e,0)>-1}var Ebr=9007199254740991,Sbr=/^(?:0|[1-9]\d*)$/;function e$(t,e){var r=typeof t;return e=e??Ebr,!!e&&(r=="number"||r!="symbol"&&Sbr.test(t))&&t>-1&&t%1==0&&t<e}function t$(t,e,r){e=="__proto__"&&s8?s8(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function IR(t,e){return t===e||t!==t&&e!==e}var Tbr=Object.prototype,Cbr=Tbr.hasOwnProperty;function r$(t,e,r){var n=t[e];(!(Cbr.call(t,e)&&IR(n,r))||r===void 0&&!(e in t))&&t$(t,e,r)}function W5(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var o=e[a],l=void 0;l===void 0&&(l=t[o]),i?t$(r,o,l):r$(r,o,l)}return r}var Fwe=Math.max;function gze(t,e,r){return e=Fwe(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=Fwe(n.length-e,0),s=Array(a);++i<a;)s[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(s),ubr(t,this,o)}}function n$(t,e){return hze(gze(t,e,_E),t+"")}var wbr=9007199254740991;function pue(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=wbr}function Y1(t){return t!=null&&pue(t.length)&&!qk(t)}function Vk(t,e,r){if(!Hd(r))return!1;var n=typeof e;return(n=="number"?Y1(r)&&e$(e,r.length):n=="string"&&e in r)?IR(r[e],t):!1}function xbr(t){return n$(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&Vk(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,a)}return e})}var Abr=Object.prototype;function i$(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Abr;return t===r}function Rbr(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Obr="[object Arguments]";function Bwe(t){return _g(t)&&mE(t)==Obr}var mze=Object.prototype,Ibr=mze.hasOwnProperty,Nbr=mze.propertyIsEnumerable,TA=Bwe((function(){return arguments})())?Bwe:function(t){return _g(t)&&Ibr.call(t,"callee")&&!Nbr.call(t,"callee")};function kbr(){return!1}var _ze=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Uwe=_ze&&typeof module=="object"&&module&&!module.nodeType&&module,Dbr=Uwe&&Uwe.exports===_ze,$we=Dbr?kg.Buffer:void 0,Mbr=$we?$we.isBuffer:void 0,CA=Mbr||kbr,Lbr="[object Arguments]",Pbr="[object Array]",Fbr="[object Boolean]",Bbr="[object Date]",Ubr="[object Error]",$br="[object Function]",Gbr="[object Map]",zbr="[object Number]",qbr="[object Object]",Vbr="[object RegExp]",Hbr="[object Set]",Ybr="[object String]",Wbr="[object WeakMap]",Kbr="[object ArrayBuffer]",jbr="[object DataView]",Xbr="[object Float32Array]",Qbr="[object Float64Array]",Zbr="[object Int8Array]",Jbr="[object Int16Array]",eEr="[object Int32Array]",tEr="[object Uint8Array]",rEr="[object Uint8ClampedArray]",nEr="[object Uint16Array]",iEr="[object Uint32Array]",us={};us[Xbr]=us[Qbr]=us[Zbr]=us[Jbr]=us[eEr]=us[tEr]=us[rEr]=us[nEr]=us[iEr]=!0;us[Lbr]=us[Pbr]=us[Kbr]=us[Fbr]=us[jbr]=us[Bbr]=us[Ubr]=us[$br]=us[Gbr]=us[zbr]=us[qbr]=us[Vbr]=us[Hbr]=us[Ybr]=us[Wbr]=!1;function aEr(t){return _g(t)&&pue(t.length)&&!!us[mE(t)]}function a$(t){return function(e){return t(e)}}var vze=typeof exports=="object"&&exports&&!exports.nodeType&&exports,TN=vze&&typeof module=="object"&&module&&!module.nodeType&&module,sEr=TN&&TN.exports===vze,zK=sEr&&lze.process,wA=(function(){try{var t=TN&&TN.require&&TN.require("util").types;return t||zK&&zK.binding&&zK.binding("util")}catch{}})(),Gwe=wA&&wA.isTypedArray,s$=Gwe?a$(Gwe):aEr,oEr=Object.prototype,lEr=oEr.hasOwnProperty;function yze(t,e){var r=Ko(t),n=!r&&TA(t),i=!r&&!n&&CA(t),a=!r&&!n&&!i&&s$(t),s=r||n||i||a,o=s?Rbr(t.length,String):[],l=o.length;for(var u in t)(e||lEr.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||e$(u,l)))&&o.push(u);return o}function bze(t,e){return function(r){return t(e(r))}}var cEr=bze(Object.keys,Object),uEr=Object.prototype,dEr=uEr.hasOwnProperty;function Eze(t){if(!i$(t))return cEr(t);var e=[];for(var r in Object(t))dEr.call(t,r)&&r!="constructor"&&e.push(r);return e}function Id(t){return Y1(t)?yze(t):Eze(t)}function hEr(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var fEr=Object.prototype,pEr=fEr.hasOwnProperty;function gEr(t){if(!Hd(t))return hEr(t);var e=i$(t),r=[];for(var n in t)n=="constructor"&&(e||!pEr.call(t,n))||r.push(n);return r}function bE(t){return Y1(t)?yze(t,!0):gEr(t)}var mEr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_Er=/^\w*$/;function gue(t,e){if(Ko(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Ub(t)?!0:_Er.test(t)||!mEr.test(t)||e!=null&&t in Object(e)}var Hk=yE(Object,"create");function vEr(){this.__data__=Hk?Hk(null):{},this.size=0}function yEr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var bEr="__lodash_hash_undefined__",EEr=Object.prototype,SEr=EEr.hasOwnProperty;function TEr(t){var e=this.__data__;if(Hk){var r=e[t];return r===bEr?void 0:r}return SEr.call(e,t)?e[t]:void 0}var CEr=Object.prototype,wEr=CEr.hasOwnProperty;function xEr(t){var e=this.__data__;return Hk?e[t]!==void 0:wEr.call(e,t)}var AEr="__lodash_hash_undefined__";function REr(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Hk&&e===void 0?AEr:e,this}function $b(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$b.prototype.clear=vEr;$b.prototype.delete=yEr;$b.prototype.get=TEr;$b.prototype.has=xEr;$b.prototype.set=REr;function OEr(){this.__data__=[],this.size=0}function o$(t,e){for(var r=t.length;r--;)if(IR(t[r][0],e))return r;return-1}var IEr=Array.prototype,NEr=IEr.splice;function kEr(t){var e=this.__data__,r=o$(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():NEr.call(e,r,1),--this.size,!0}function DEr(t){var e=this.__data__,r=o$(e,t);return r<0?void 0:e[r][1]}function MEr(t){return o$(this.__data__,t)>-1}function LEr(t,e){var r=this.__data__,n=o$(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function $0(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$0.prototype.clear=OEr;$0.prototype.delete=kEr;$0.prototype.get=DEr;$0.prototype.has=MEr;$0.prototype.set=LEr;var Yk=yE(kg,"Map");function PEr(){this.size=0,this.__data__={hash:new $b,map:new(Yk||$0),string:new $b}}function FEr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function l$(t,e){var r=t.__data__;return FEr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function BEr(t){var e=l$(this,t).delete(t);return this.size-=e?1:0,e}function UEr(t){return l$(this,t).get(t)}function $Er(t){return l$(this,t).has(t)}function GEr(t,e){var r=l$(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function G0(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}G0.prototype.clear=PEr;G0.prototype.delete=BEr;G0.prototype.get=UEr;G0.prototype.has=$Er;G0.prototype.set=GEr;var zEr="Expected a function";function mue(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(zEr);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(mue.Cache||G0),r}mue.Cache=G0;var qEr=500;function VEr(t){var e=mue(t,function(n){return r.size===qEr&&r.clear(),n}),r=e.cache;return e}var HEr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,YEr=/\\(\\)?/g,WEr=VEr(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(HEr,function(r,n,i,a){e.push(i?a.replace(YEr,"$1"):n||r)}),e});function Sze(t){return t==null?"":uze(t)}function c$(t,e){return Ko(t)?t:gue(t,e)?[t]:WEr(Sze(t))}function K5(t){if(typeof t=="string"||Ub(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function u$(t,e){e=c$(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[K5(e[r++])];return r&&r==n?t:void 0}function KEr(t,e,r){var n=t==null?void 0:u$(t,e);return n===void 0?r:n}function _ue(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var zwe=Hh?Hh.isConcatSpreadable:void 0;function jEr(t){return Ko(t)||TA(t)||!!(zwe&&t&&t[zwe])}function vue(t,e,r,n,i){var a=-1,s=t.length;for(r||(r=jEr),i||(i=[]);++a<s;){var o=t[a];r(o)?_ue(i,o):n||(i[i.length]=o)}return i}function NR(t){var e=t==null?0:t.length;return e?vue(t):[]}function XEr(t){return hze(gze(t,void 0,NR),t+"")}var yue=bze(Object.getPrototypeOf,Object),QEr="[object Object]",ZEr=Function.prototype,JEr=Object.prototype,Tze=ZEr.toString,eSr=JEr.hasOwnProperty,tSr=Tze.call(Object);function rSr(t){if(!_g(t)||mE(t)!=QEr)return!1;var e=yue(t);if(e===null)return!0;var r=eSr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Tze.call(r)==tSr}function nSr(t,e,r,n){var i=-1,a=t==null?0:t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r}function iSr(){this.__data__=new $0,this.size=0}function aSr(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function sSr(t){return this.__data__.get(t)}function oSr(t){return this.__data__.has(t)}var lSr=200;function cSr(t,e){var r=this.__data__;if(r instanceof $0){var n=r.__data__;if(!Yk||n.length<lSr-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new G0(n)}return r.set(t,e),this.size=r.size,this}function Uf(t){var e=this.__data__=new $0(t);this.size=e.size}Uf.prototype.clear=iSr;Uf.prototype.delete=aSr;Uf.prototype.get=sSr;Uf.prototype.has=oSr;Uf.prototype.set=cSr;function uSr(t,e){return t&&W5(e,Id(e),t)}function dSr(t,e){return t&&W5(e,bE(e),t)}var Cze=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qwe=Cze&&typeof module=="object"&&module&&!module.nodeType&&module,hSr=qwe&&qwe.exports===Cze,Vwe=hSr?kg.Buffer:void 0,Hwe=Vwe?Vwe.allocUnsafe:void 0;function wze(t,e){if(e)return t.slice();var r=t.length,n=Hwe?Hwe(r):new t.constructor(r);return t.copy(n),n}function xze(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var s=t[r];e(s,r,t)&&(a[i++]=s)}return a}function Aze(){return[]}var fSr=Object.prototype,pSr=fSr.propertyIsEnumerable,Ywe=Object.getOwnPropertySymbols,bue=Ywe?function(t){return t==null?[]:(t=Object(t),xze(Ywe(t),function(e){return pSr.call(t,e)}))}:Aze;function gSr(t,e){return W5(t,bue(t),e)}var mSr=Object.getOwnPropertySymbols,Rze=mSr?function(t){for(var e=[];t;)_ue(e,bue(t)),t=yue(t);return e}:Aze;function _Sr(t,e){return W5(t,Rze(t),e)}function Oze(t,e,r){var n=e(t);return Ko(t)?n:_ue(n,r(t))}function jee(t){return Oze(t,Id,bue)}function vSr(t){return Oze(t,bE,Rze)}var Xee=yE(kg,"DataView"),Qee=yE(kg,"Promise"),tC=yE(kg,"Set"),Wwe="[object Map]",ySr="[object Object]",Kwe="[object Promise]",jwe="[object Set]",Xwe="[object WeakMap]",Qwe="[object DataView]",bSr=vE(Xee),ESr=vE(Yk),SSr=vE(Qee),TSr=vE(tC),CSr=vE(Kee),Ch=mE;(Xee&&Ch(new Xee(new ArrayBuffer(1)))!=Qwe||Yk&&Ch(new Yk)!=Wwe||Qee&&Ch(Qee.resolve())!=Kwe||tC&&Ch(new tC)!=jwe||Kee&&Ch(new Kee)!=Xwe)&&(Ch=function(t){var e=mE(t),r=e==ySr?t.constructor:void 0,n=r?vE(r):"";if(n)switch(n){case bSr:return Qwe;case ESr:return Wwe;case SSr:return Kwe;case TSr:return jwe;case CSr:return Xwe}return e});var wSr=Object.prototype,xSr=wSr.hasOwnProperty;function ASr(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&xSr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var o8=kg.Uint8Array;function Eue(t){var e=new t.constructor(t.byteLength);return new o8(e).set(new o8(t)),e}function RSr(t,e){var r=e?Eue(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var OSr=/\w*$/;function ISr(t){var e=new t.constructor(t.source,OSr.exec(t));return e.lastIndex=t.lastIndex,e}var Zwe=Hh?Hh.prototype:void 0,Jwe=Zwe?Zwe.valueOf:void 0;function NSr(t){return Jwe?Object(Jwe.call(t)):{}}function Ize(t,e){var r=e?Eue(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var kSr="[object Boolean]",DSr="[object Date]",MSr="[object Map]",LSr="[object Number]",PSr="[object RegExp]",FSr="[object Set]",BSr="[object String]",USr="[object Symbol]",$Sr="[object ArrayBuffer]",GSr="[object DataView]",zSr="[object Float32Array]",qSr="[object Float64Array]",VSr="[object Int8Array]",HSr="[object Int16Array]",YSr="[object Int32Array]",WSr="[object Uint8Array]",KSr="[object Uint8ClampedArray]",jSr="[object Uint16Array]",XSr="[object Uint32Array]";function QSr(t,e,r){var n=t.constructor;switch(e){case $Sr:return Eue(t);case kSr:case DSr:return new n(+t);case GSr:return RSr(t,r);case zSr:case qSr:case VSr:case HSr:case YSr:case WSr:case KSr:case jSr:case XSr:return Ize(t,r);case MSr:return new n;case LSr:case BSr:return new n(t);case PSr:return ISr(t);case FSr:return new n;case USr:return NSr(t)}}function Nze(t){return typeof t.constructor=="function"&&!i$(t)?cbr(yue(t)):{}}var ZSr="[object Map]";function JSr(t){return _g(t)&&Ch(t)==ZSr}var exe=wA&&wA.isMap,eTr=exe?a$(exe):JSr,tTr="[object Set]";function rTr(t){return _g(t)&&Ch(t)==tTr}var txe=wA&&wA.isSet,nTr=txe?a$(txe):rTr,iTr=1,aTr=2,sTr=4,kze="[object Arguments]",oTr="[object Array]",lTr="[object Boolean]",cTr="[object Date]",uTr="[object Error]",Dze="[object Function]",dTr="[object GeneratorFunction]",hTr="[object Map]",fTr="[object Number]",Mze="[object Object]",pTr="[object RegExp]",gTr="[object Set]",mTr="[object String]",_Tr="[object Symbol]",vTr="[object WeakMap]",yTr="[object ArrayBuffer]",bTr="[object DataView]",ETr="[object Float32Array]",STr="[object Float64Array]",TTr="[object Int8Array]",CTr="[object Int16Array]",wTr="[object Int32Array]",xTr="[object Uint8Array]",ATr="[object Uint8ClampedArray]",RTr="[object Uint16Array]",OTr="[object Uint32Array]",ts={};ts[kze]=ts[oTr]=ts[yTr]=ts[bTr]=ts[lTr]=ts[cTr]=ts[ETr]=ts[STr]=ts[TTr]=ts[CTr]=ts[wTr]=ts[hTr]=ts[fTr]=ts[Mze]=ts[pTr]=ts[gTr]=ts[mTr]=ts[_Tr]=ts[xTr]=ts[ATr]=ts[RTr]=ts[OTr]=!0;ts[uTr]=ts[Dze]=ts[vTr]=!1;function CN(t,e,r,n,i,a){var s,o=e&iTr,l=e&aTr,u=e&sTr;if(s!==void 0)return s;if(!Hd(t))return t;var d=Ko(t);if(d){if(s=ASr(t),!o)return dze(t,s)}else{var h=Ch(t),f=h==Dze||h==dTr;if(CA(t))return wze(t,o);if(h==Mze||h==kze||f&&!i){if(s=l||f?{}:Nze(t),!o)return l?_Sr(t,dSr(s,t)):gSr(t,uSr(s,t))}else{if(!ts[h])return i?t:{};s=QSr(t,h,o)}}a||(a=new Uf);var p=a.get(t);if(p)return p;a.set(t,s),nTr(t)?t.forEach(function(_){s.add(CN(_,e,r,_,t,a))}):eTr(t)&&t.forEach(function(_,v){s.set(v,CN(_,e,r,v,t,a))});var g=u?l?vSr:jee:l?bE:Id,m=d?void 0:g(t);return fze(m||t,function(_,v){m&&(v=_,_=t[v]),r$(s,v,CN(_,e,r,v,t,a))}),s}var ITr=4;function NTr(t){return CN(t,ITr)}var kTr=1,DTr=4;function MTr(t){return CN(t,kTr|DTr)}var LTr="__lodash_hash_undefined__";function PTr(t){return this.__data__.set(t,LTr),this}function FTr(t){return this.__data__.has(t)}function Wk(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new G0;++e<r;)this.add(t[e])}Wk.prototype.add=Wk.prototype.push=PTr;Wk.prototype.has=FTr;function BTr(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function Lze(t,e){return t.has(e)}var UTr=1,$Tr=2;function Pze(t,e,r,n,i,a){var s=r&UTr,o=t.length,l=e.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&$Tr?new Wk:void 0;for(a.set(t,e),a.set(e,t);++h<o;){var g=t[h],m=e[h];if(n)var _=s?n(m,g,h,e,t,a):n(g,m,h,t,e,a);if(_!==void 0){if(_)continue;f=!1;break}if(p){if(!BTr(e,function(v,y){if(!Lze(p,y)&&(g===v||i(g,v,r,n,a)))return p.push(y)})){f=!1;break}}else if(!(g===m||i(g,m,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}function GTr(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function Sue(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var zTr=1,qTr=2,VTr="[object Boolean]",HTr="[object Date]",YTr="[object Error]",WTr="[object Map]",KTr="[object Number]",jTr="[object RegExp]",XTr="[object Set]",QTr="[object String]",ZTr="[object Symbol]",JTr="[object ArrayBuffer]",eCr="[object DataView]",rxe=Hh?Hh.prototype:void 0,qK=rxe?rxe.valueOf:void 0;function tCr(t,e,r,n,i,a,s){switch(r){case eCr:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case JTr:return!(t.byteLength!=e.byteLength||!a(new o8(t),new o8(e)));case VTr:case HTr:case KTr:return IR(+t,+e);case YTr:return t.name==e.name&&t.message==e.message;case jTr:case QTr:return t==e+"";case WTr:var o=GTr;case XTr:var l=n&zTr;if(o||(o=Sue),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;n|=qTr,s.set(t,e);var d=Pze(o(t),o(e),n,i,a,s);return s.delete(t),d;case ZTr:if(qK)return qK.call(t)==qK.call(e)}return!1}var rCr=1,nCr=Object.prototype,iCr=nCr.hasOwnProperty;function aCr(t,e,r,n,i,a){var s=r&rCr,o=jee(t),l=o.length,u=jee(e),d=u.length;if(l!=d&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in e:iCr.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var _=s;++h<l;){f=o[h];var v=t[f],y=e[f];if(n)var b=s?n(y,v,f,e,t,a):n(v,y,f,t,e,a);if(!(b===void 0?v===y||i(v,y,r,n,a):b)){m=!1;break}_||(_=f=="constructor")}if(m&&!_){var E=t.constructor,S=e.constructor;E!=S&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(t),a.delete(e),m}var sCr=1,nxe="[object Arguments]",ixe="[object Array]",LL="[object Object]",oCr=Object.prototype,axe=oCr.hasOwnProperty;function lCr(t,e,r,n,i,a){var s=Ko(t),o=Ko(e),l=s?ixe:Ch(t),u=o?ixe:Ch(e);l=l==nxe?LL:l,u=u==nxe?LL:u;var d=l==LL,h=u==LL,f=l==u;if(f&&CA(t)){if(!CA(e))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Uf),s||s$(t)?Pze(t,e,r,n,i,a):tCr(t,e,l,r,n,i,a);if(!(r&sCr)){var p=d&&axe.call(t,"__wrapped__"),g=h&&axe.call(e,"__wrapped__");if(p||g){var m=p?t.value():t,_=g?e.value():e;return a||(a=new Uf),i(m,_,r,n,a)}}return f?(a||(a=new Uf),aCr(t,e,r,n,i,a)):!1}function Tue(t,e,r,n,i){return t===e?!0:t==null||e==null||!_g(t)&&!_g(e)?t!==t&&e!==e:lCr(t,e,r,n,Tue,i)}var cCr=1,uCr=2;function dCr(t,e,r,n){var i=r.length,a=i;if(t==null)return!a;for(t=Object(t);i--;){var s=r[i];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){s=r[i];var o=s[0],l=t[o],u=s[1];if(s[2]){if(l===void 0&&!(o in t))return!1}else{var d=new Uf,h;if(!(h===void 0?Tue(u,l,cCr|uCr,n,d):h))return!1}}return!0}function Fze(t){return t===t&&!Hd(t)}function hCr(t){for(var e=Id(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Fze(i)]}return e}function Bze(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function fCr(t){var e=hCr(t);return e.length==1&&e[0][2]?Bze(e[0][0],e[0][1]):function(r){return r===t||dCr(r,t,e)}}function pCr(t,e){return t!=null&&e in Object(t)}function Uze(t,e,r){e=c$(e,t);for(var n=-1,i=e.length,a=!1;++n<i;){var s=K5(e[n]);if(!(a=t!=null&&r(t,s)))break;t=t[s]}return a||++n!=i?a:(i=t==null?0:t.length,!!i&&pue(i)&&e$(s,i)&&(Ko(t)||TA(t)))}function $ze(t,e){return t!=null&&Uze(t,e,pCr)}var gCr=1,mCr=2;function _Cr(t,e){return gue(t)&&Fze(e)?Bze(K5(t),e):function(r){var n=KEr(r,t);return n===void 0&&n===e?$ze(r,t):Tue(e,n,gCr|mCr)}}function vCr(t){return function(e){return e?.[t]}}function yCr(t){return function(e){return u$(e,t)}}function bCr(t){return gue(t)?vCr(K5(t)):yCr(t)}function W1(t){return typeof t=="function"?t:t==null?_E:typeof t=="object"?Ko(t)?_Cr(t[0],t[1]):fCr(t):bCr(t)}function ECr(t){return function(e,r,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[++i];if(r(a[l],l,a)===!1)break}return e}}var Cue=ECr();function wue(t,e){return t&&Cue(t,e,Id)}function SCr(t,e){return function(r,n){if(r==null)return r;if(!Y1(r))return t(r,n);for(var i=r.length,a=-1,s=Object(r);++a<i&&n(s[a],a,s)!==!1;);return r}}var d$=SCr(wue),Gze=Object.prototype,TCr=Gze.hasOwnProperty,CCr=n$(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&Vk(e[0],e[1],i)&&(n=1);++r<n;)for(var a=e[r],s=bE(a),o=-1,l=s.length;++o<l;){var u=s[o],d=t[u];(d===void 0||IR(d,Gze[u])&&!TCr.call(t,u))&&(t[u]=a[u])}return t});function Zee(t,e,r){(r!==void 0&&!IR(t[e],r)||r===void 0&&!(e in t))&&t$(t,e,r)}function zze(t){return _g(t)&&Y1(t)}function Jee(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function wCr(t){return W5(t,bE(t))}function xCr(t,e,r,n,i,a,s){var o=Jee(t,r),l=Jee(e,r),u=s.get(l);if(u){Zee(t,r,u);return}var d=a?a(o,l,r+"",t,e,s):void 0,h=d===void 0;if(h){var f=Ko(l),p=!f&&CA(l),g=!f&&!p&&s$(l);d=l,f||p||g?Ko(o)?d=o:zze(o)?d=dze(o):p?(h=!1,d=wze(l,!0)):g?(h=!1,d=Ize(l,!0)):d=[]:rSr(l)||TA(l)?(d=o,TA(o)?d=wCr(o):(!Hd(o)||qk(o))&&(d=Nze(l))):h=!1}h&&(s.set(l,d),i(d,l,n,a,s),s.delete(l)),Zee(t,r,d)}function qze(t,e,r,n,i){t!==e&&Cue(e,function(a,s){if(i||(i=new Uf),Hd(a))xCr(t,e,s,r,qze,n,i);else{var o=n?n(Jee(t,s),a,s+"",t,e,i):void 0;o===void 0&&(o=a),Zee(t,s,o)}},bE)}function l8(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function xue(t){return typeof t=="function"?t:_E}function hr(t,e){var r=Ko(t)?fze:d$;return r(t,xue(e))}function ACr(t,e){var r=[];return d$(t,function(n,i,a){e(n,i,a)&&r.push(n)}),r}function Fm(t,e){var r=Ko(t)?xze:ACr;return r(t,W1(e))}function RCr(t){return function(e,r,n){var i=Object(e);if(!Y1(e)){var a=W1(r);e=Id(e),r=function(o){return a(i[o],o,i)}}var s=t(e,r,n);return s>-1?i[a?e[s]:s]:void 0}}var OCr=Math.max;function ICr(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:Yyr(r);return i<0&&(i=OCr(n+i,0)),pze(t,W1(e),i)}var Aue=RCr(ICr);function Vze(t,e){var r=-1,n=Y1(t)?Array(t.length):[];return d$(t,function(i,a,s){n[++r]=e(i,a,s)}),n}function Ho(t,e){var r=Ko(t)?eC:Vze;return r(t,W1(e))}function NCr(t,e){return t==null?t:Cue(t,xue(e),bE)}function kCr(t,e){return t&&wue(t,xue(e))}function DCr(t,e){return t>e}var MCr=Object.prototype,LCr=MCr.hasOwnProperty;function PCr(t,e){return t!=null&&LCr.call(t,e)}function Hze(t,e){return t!=null&&Uze(t,e,PCr)}function FCr(t,e){return eC(e,function(r){return t[r]})}function Wm(t){return t==null?[]:FCr(t,Id(t))}var BCr="[object Map]",UCr="[object Set]",$Cr=Object.prototype,GCr=$Cr.hasOwnProperty;function sxe(t){if(t==null)return!0;if(Y1(t)&&(Ko(t)||typeof t=="string"||typeof t.splice=="function"||CA(t)||s$(t)||TA(t)))return!t.length;var e=Ch(t);if(e==BCr||e==UCr)return!t.size;if(i$(t))return!Eze(t).length;for(var r in t)if(GCr.call(t,r))return!1;return!0}function Io(t){return t===void 0}function Yze(t,e){return t<e}function h$(t,e){var r={};return e=W1(e),wue(t,function(n,i,a){t$(r,i,e(n,i,a))}),r}function Rue(t,e,r){for(var n=-1,i=t.length;++n<i;){var a=t[n],s=e(a);if(s!=null&&(o===void 0?s===s&&!Ub(s):r(s,o)))var o=s,l=a}return l}function Gb(t){return t&&t.length?Rue(t,_E,DCr):void 0}var ete=xbr(function(t,e,r){qze(t,e,r)});function Kk(t){return t&&t.length?Rue(t,_E,Yze):void 0}function Oue(t,e){return t&&t.length?Rue(t,W1(e),Yze):void 0}function zCr(t,e,r,n){if(!Hd(t))return t;e=c$(e,t);for(var i=-1,a=e.length,s=a-1,o=t;o!=null&&++i<a;){var l=K5(e[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=s){var d=o[l];u=void 0,u===void 0&&(u=Hd(d)?d:e$(e[i+1])?[]:{})}r$(o,l,u),o=o[l]}return t}function qCr(t,e,r){for(var n=-1,i=e.length,a={};++n<i;){var s=e[n],o=u$(t,s);r(o,s)&&zCr(a,c$(s,t),o)}return a}function VCr(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}function HCr(t,e){if(t!==e){var r=t!==void 0,n=t===null,i=t===t,a=Ub(t),s=e!==void 0,o=e===null,l=e===e,u=Ub(e);if(!o&&!u&&!a&&t>e||a&&s&&l&&!o&&!u||n&&s&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&t<e||u&&r&&i&&!n&&!a||o&&r&&i||!s&&i||!l)return-1}return 0}function YCr(t,e,r){for(var n=-1,i=t.criteria,a=e.criteria,s=i.length,o=r.length;++n<s;){var l=HCr(i[n],a[n]);if(l){if(n>=o)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return t.index-e.index}function WCr(t,e,r){e.length?e=eC(e,function(a){return Ko(a)?function(s){return u$(s,a.length===1?a[0]:a)}:a}):e=[_E];var n=-1;e=eC(e,a$(W1));var i=Vze(t,function(a,s,o){var l=eC(e,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return VCr(i,function(a,s){return YCr(a,s,r)})}function KCr(t,e){return qCr(t,e,function(r,n){return $ze(t,n)})}var c8=XEr(function(t,e){return t==null?{}:KCr(t,e)}),jCr=Math.ceil,XCr=Math.max;function QCr(t,e,r,n){for(var i=-1,a=XCr(jCr((e-t)/(r||1)),0),s=Array(a);a--;)s[++i]=t,t+=r;return s}function ZCr(t){return function(e,r,n){return n&&typeof n!="number"&&Vk(e,r,n)&&(r=n=void 0),e=e6(e),r===void 0?(r=e,e=0):r=e6(r),n=n===void 0?e<r?1:-1:e6(n),QCr(e,r,n)}}var xA=ZCr();function JCr(t,e,r,n,i){return i(t,function(a,s,o){r=n?(n=!1,a):e(r,a,s,o)}),r}function j5(t,e,r){var n=Ko(t)?nSr:JCr,i=arguments.length<3;return n(t,W1(e),r,i,d$)}var X5=n$(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Vk(t,e[0],e[1])?e=[]:r>2&&Vk(e[0],e[1],e[2])&&(e=[e[0]]),WCr(t,vue(e),[])}),e2r=1/0,t2r=tC&&1/Sue(new tC([,-0]))[1]==e2r?function(t){return new tC(t)}:dbr,r2r=200;function n2r(t,e,r){var n=-1,i=bbr,a=t.length,s=!0,o=[],l=o;if(a>=r2r){var u=t2r(t);if(u)return Sue(u);s=!1,i=Lze,l=new Wk}else l=o;e:for(;++n<a;){var d=t[n],h=d;if(d=d!==0?d:0,s&&h===h){for(var f=l.length;f--;)if(l[f]===h)continue e;o.push(d)}else i(l,h,r)||(l!==o&&l.push(h),o.push(d))}return o}var i2r=n$(function(t){return n2r(vue(t,1,zze,!0))}),a2r=0;function Iue(t){var e=++a2r;return Sze(t)+e}function s2r(t,e,r){for(var n=-1,i=t.length,a=e.length,s={};++n<i;){var o=n<a?e[n]:void 0;r(s,t[n],o)}return s}function o2r(t,e){return s2r(t||[],e||[],r$)}var l2r="\0",Iv="\0",oxe="";class dd{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=yT(void 0),this._defaultEdgeLabelFn=yT(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[Iv]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return qk(e)||(e=yT(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Id(this._nodes)}sources(){var e=this;return Fm(this.nodes(),function(r){return sxe(e._in[r])})}sinks(){var e=this;return Fm(this.nodes(),function(r){return sxe(e._out[r])})}setNodes(e,r){var n=arguments,i=this;return hr(e,function(a){n.length>1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Iv,this._children[e]={},this._children[Iv][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],hr(this.children(e),n=>{this.setParent(n)}),delete this._children[e]),hr(Id(this._in[e]),r),delete this._in[e],delete this._preds[e],hr(Id(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Io(r))r=Iv;else{r+="";for(var n=r;!Io(n);n=this.parent(n))if(n===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==Iv)return r}}children(e){if(Io(e)&&(e=Iv),this._isCompound){var r=this._children[e];if(r)return Id(r)}else{if(e===Iv)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return Id(r)}successors(e){var r=this._sucs[e];if(r)return Id(r)}neighbors(e){var r=this.predecessors(e);if(r)return i2r(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;hr(this._nodes,function(s,o){e(o)&&r.setNode(o,s)}),hr(this._edgeObjs,function(s){r.hasNode(s.v)&&r.hasNode(s.w)&&r.setEdge(s,n.edge(s))});var i={};function a(s){var o=n.parent(s);return o===void 0||r.hasNode(o)?(i[s]=o,o):o in i?i[o]:a(o)}return this._isCompound&&hr(r.nodes(),function(s){r.setParent(s,a(s))}),r}setDefaultEdgeLabel(e){return qk(e)||(e=yT(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Wm(this._edgeObjs)}setPath(e,r){var n=this,i=arguments;return j5(e,function(a,s){return i.length>1?n.setEdge(a,s,r):n.setEdge(a,s),s}),this}setEdge(){var e,r,n,i,a=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,r=s.w,n=s.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=s,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,Io(n)||(n=""+n);var o=NI(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return a&&(this._edgeLabels[o]=i),this;if(!Io(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[o]=a?i:this._defaultEdgeLabelFn(e,r,n);var l=c2r(this._isDirected,e,r,n);return e=l.v,r=l.w,Object.freeze(l),this._edgeObjs[o]=l,lxe(this._preds[r],e),lxe(this._sucs[e],r),this._in[r][o]=l,this._out[e][o]=l,this._edgeCount++,this}edge(e,r,n){var i=arguments.length===1?VK(this._isDirected,arguments[0]):NI(this._isDirected,e,r,n);return this._edgeLabels[i]}hasEdge(e,r,n){var i=arguments.length===1?VK(this._isDirected,arguments[0]):NI(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,r,n){var i=arguments.length===1?VK(this._isDirected,arguments[0]):NI(this._isDirected,e,r,n),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],cxe(this._preds[r],e),cxe(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var n=this._in[e];if(n){var i=Wm(n);return r?Fm(i,function(a){return a.v===r}):i}}outEdges(e,r){var n=this._out[e];if(n){var i=Wm(n);return r?Fm(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n)return n.concat(this.outEdges(e,r))}}dd.prototype._nodeCount=0;dd.prototype._edgeCount=0;function lxe(t,e){t[e]?t[e]++:t[e]=1}function cxe(t,e){--t[e]||delete t[e]}function NI(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}return i+oxe+a+oxe+(Io(n)?l2r:n)}function c2r(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}var o={v:i,w:a};return n&&(o.name=n),o}function VK(t,e){return NI(t,e.v,e.w,e.name)}class u2r{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return uxe(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&uxe(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,n=r._prev;n!==r;)e.push(JSON.stringify(n,d2r)),n=n._prev;return"["+e.join(", ")+"]"}}function uxe(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function d2r(t,e){if(t!=="_next"&&t!=="_prev")return e}var h2r=yT(1);function f2r(t,e){if(t.nodeCount()<=1)return[];var r=g2r(t,e||h2r),n=p2r(r.graph,r.buckets,r.zeroIdx);return NR(Ho(n,function(i){return t.outEdges(i.v,i.w)}))}function p2r(t,e,r){for(var n=[],i=e[e.length-1],a=e[0],s;t.nodeCount();){for(;s=a.dequeue();)HK(t,e,r,s);for(;s=i.dequeue();)HK(t,e,r,s);if(t.nodeCount()){for(var o=e.length-2;o>0;--o)if(s=e[o].dequeue(),s){n=n.concat(HK(t,e,r,s,!0));break}}}return n}function HK(t,e,r,n,i){var a=i?[]:void 0;return hr(t.inEdges(n.v),function(s){var o=t.edge(s),l=t.node(s.v);i&&a.push({v:s.v,w:s.w}),l.out-=o,tte(e,r,l)}),hr(t.outEdges(n.v),function(s){var o=t.edge(s),l=s.w,u=t.node(l);u.in-=o,tte(e,r,u)}),t.removeNode(n.v),a}function g2r(t,e){var r=new dd,n=0,i=0;hr(t.nodes(),function(o){r.setNode(o,{v:o,in:0,out:0})}),hr(t.edges(),function(o){var l=r.edge(o.v,o.w)||0,u=e(o),d=l+u;r.setEdge(o.v,o.w,d),i=Math.max(i,r.node(o.v).out+=u),n=Math.max(n,r.node(o.w).in+=u)});var a=xA(i+n+3).map(function(){return new u2r}),s=n+1;return hr(r.nodes(),function(o){tte(a,s,r.node(o))}),{graph:r,buckets:a,zeroIdx:s}}function tte(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}function m2r(t){var e=t.graph().acyclicer==="greedy"?f2r(t,r(t)):_2r(t);hr(e,function(n){var i=t.edge(n);t.removeEdge(n),i.forwardName=n.name,i.reversed=!0,t.setEdge(n.w,n.v,i,Iue("rev"))});function r(n){return function(i){return n.edge(i).weight}}}function _2r(t){var e=[],r={},n={};function i(a){Object.prototype.hasOwnProperty.call(n,a)||(n[a]=!0,r[a]=!0,hr(t.outEdges(a),function(s){Object.prototype.hasOwnProperty.call(r,s.w)?e.push(s):i(s.w)}),delete r[a])}return hr(t.nodes(),i),e}function v2r(t){hr(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}function kR(t,e,r,n){var i;do i=Iue(n);while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function y2r(t){var e=new dd().setGraph(t.graph());return hr(t.nodes(),function(r){e.setNode(r,t.node(r))}),hr(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),e}function Wze(t){var e=new dd({multigraph:t.isMultigraph()}).setGraph(t.graph());return hr(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),hr(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e}function dxe(t,e){var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=o*i/a,u=o):(i<0&&(s=-s),l=s,u=s*a/i),{x:r+l,y:n+u}}function f$(t){var e=Ho(xA(Kze(t)+1),function(){return[]});return hr(t.nodes(),function(r){var n=t.node(r),i=n.rank;Io(i)||(e[i][n.order]=r)}),e}function b2r(t){var e=Kk(Ho(t.nodes(),function(r){return t.node(r).rank}));hr(t.nodes(),function(r){var n=t.node(r);Hze(n,"rank")&&(n.rank-=e)})}function E2r(t){var e=Kk(Ho(t.nodes(),function(a){return t.node(a).rank})),r=[];hr(t.nodes(),function(a){var s=t.node(a).rank-e;r[s]||(r[s]=[]),r[s].push(a)});var n=0,i=t.graph().nodeRankFactor;hr(r,function(a,s){Io(a)&&s%i!==0?--n:n&&hr(a,function(o){t.node(o).rank+=n})})}function hxe(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),kR(t,"border",i,e)}function Kze(t){return Gb(Ho(t.nodes(),function(e){var r=t.node(e).rank;if(!Io(r))return r}))}function S2r(t,e){var r={lhs:[],rhs:[]};return hr(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r}function T2r(t,e){return e()}function C2r(t){function e(r){var n=t.children(r),i=t.node(r);if(n.length&&hr(n,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a<s;++a)fxe(t,"borderLeft","_bl",r,i,a),fxe(t,"borderRight","_br",r,i,a)}}hr(t.children(),e)}function fxe(t,e,r,n,i,a){var s={width:0,height:0,rank:a,borderType:e},o=i[e][a-1],l=kR(t,"border",s,r);i[e][a]=l,t.setParent(l,n),o&&t.setEdge(o,l,{weight:1})}function w2r(t){var e=t.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&jze(t)}function x2r(t){var e=t.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&A2r(t),(e==="lr"||e==="rl")&&(R2r(t),jze(t))}function jze(t){hr(t.nodes(),function(e){pxe(t.node(e))}),hr(t.edges(),function(e){pxe(t.edge(e))})}function pxe(t){var e=t.width;t.width=t.height,t.height=e}function A2r(t){hr(t.nodes(),function(e){YK(t.node(e))}),hr(t.edges(),function(e){var r=t.edge(e);hr(r.points,YK),Object.prototype.hasOwnProperty.call(r,"y")&&YK(r)})}function YK(t){t.y=-t.y}function R2r(t){hr(t.nodes(),function(e){WK(t.node(e))}),hr(t.edges(),function(e){var r=t.edge(e);hr(r.points,WK),Object.prototype.hasOwnProperty.call(r,"x")&&WK(r)})}function WK(t){var e=t.x;t.x=t.y,t.y=e}function O2r(t){t.graph().dummyChains=[],hr(t.edges(),function(e){I2r(t,e)})}function I2r(t,e){var r=e.v,n=t.node(r).rank,i=e.w,a=t.node(i).rank,s=e.name,o=t.edge(e),l=o.labelRank;if(a!==n+1){t.removeEdge(e);var u=void 0,d,h;for(h=0,++n;n<a;++h,++n)o.points=[],u={width:0,height:0,edgeLabel:o,edgeObj:e,rank:n},d=kR(t,"edge",u,"_d"),n===l&&(u.width=o.width,u.height=o.height,u.dummy="edge-label",u.labelpos=o.labelpos),t.setEdge(r,d,{weight:o.weight},s),h===0&&t.graph().dummyChains.push(d),r=d;t.setEdge(r,i,{weight:o.weight},s)}}function N2r(t){hr(t.graph().dummyChains,function(e){var r=t.node(e),n=r.edgeLabel,i;for(t.setEdge(r.edgeObj,n);r.dummy;)i=t.successors(e)[0],t.removeNode(e),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),e=i,r=t.node(e)})}function Nue(t){var e={};function r(n){var i=t.node(n);if(Object.prototype.hasOwnProperty.call(e,n))return i.rank;e[n]=!0;var a=Kk(Ho(t.outEdges(n),function(s){return r(s.w)-t.edge(s).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}hr(t.sources(),r)}function jk(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function Xze(t){var e=new dd({directed:!1}),r=t.nodes()[0],n=t.nodeCount();e.setNode(r,{});for(var i,a;k2r(e,t)<n;)i=D2r(e,t),a=e.hasNode(i.v)?jk(t,i):-jk(t,i),M2r(e,t,a);return e}function k2r(t,e){function r(n){hr(e.nodeEdges(n),function(i){var a=i.v,s=n===a?i.w:a;!t.hasNode(s)&&!jk(e,i)&&(t.setNode(s,{}),t.setEdge(n,s,{}),r(s))})}return hr(t.nodes(),r),t.nodeCount()}function D2r(t,e){return Oue(e.edges(),function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return jk(e,r)})}function M2r(t,e,r){hr(t.nodes(),function(n){e.node(n).rank+=r})}function L2r(){}L2r.prototype=new Error;function Qze(t,e,r){Ko(e)||(e=[e]);var n=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return hr(e,function(s){if(!t.hasNode(s))throw new Error("Graph does not have node: "+s);Zze(t,s,r==="post",a,n,i)}),i}function Zze(t,e,r,n,i,a){Object.prototype.hasOwnProperty.call(n,e)||(n[e]=!0,r||a.push(e),hr(i(e),function(s){Zze(t,s,r,n,i,a)}),r&&a.push(e))}function P2r(t,e){return Qze(t,e,"post")}function F2r(t,e){return Qze(t,e,"pre")}EE.initLowLimValues=Due;EE.initCutValues=kue;EE.calcCutValue=Jze;EE.leaveEdge=tqe;EE.enterEdge=rqe;EE.exchangeEdges=nqe;function EE(t){t=y2r(t),Nue(t);var e=Xze(t);Due(e),kue(e,t);for(var r,n;r=tqe(e);)n=rqe(e,t,r),nqe(e,t,r,n)}function kue(t,e){var r=P2r(t,t.nodes());r=r.slice(0,r.length-1),hr(r,function(n){B2r(t,e,n)})}function B2r(t,e,r){var n=t.node(r),i=n.parent;t.edge(r,i).cutvalue=Jze(t,e,r)}function Jze(t,e,r){var n=t.node(r),i=n.parent,a=!0,s=e.edge(r,i),o=0;return s||(a=!1,s=e.edge(i,r)),o=s.weight,hr(e.nodeEdges(r),function(l){var u=l.v===r,d=u?l.w:l.v;if(d!==i){var h=u===a,f=e.edge(l).weight;if(o+=h?f:-f,$2r(t,r,d)){var p=t.edge(r,d).cutvalue;o+=h?-p:p}}}),o}function Due(t,e){arguments.length<2&&(e=t.nodes()[0]),eqe(t,{},1,e)}function eqe(t,e,r,n,i){var a=r,s=t.node(n);return e[n]=!0,hr(t.neighbors(n),function(o){Object.prototype.hasOwnProperty.call(e,o)||(r=eqe(t,e,r,o,n))}),s.low=a,s.lim=r++,i?s.parent=i:delete s.parent,r}function tqe(t){return Aue(t.edges(),function(e){return t.edge(e).cutvalue<0})}function rqe(t,e,r){var n=r.v,i=r.w;e.hasEdge(n,i)||(n=r.w,i=r.v);var a=t.node(n),s=t.node(i),o=a,l=!1;a.lim>s.lim&&(o=s,l=!0);var u=Fm(e.edges(),function(d){return l===gxe(t,t.node(d.v),o)&&l!==gxe(t,t.node(d.w),o)});return Oue(u,function(d){return jk(e,d)})}function nqe(t,e,r,n){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(n.v,n.w,{}),Due(t),kue(t,e),U2r(t,e)}function U2r(t,e){var r=Aue(t.nodes(),function(i){return!e.node(i).parent}),n=F2r(t,r);n=n.slice(1),hr(n,function(i){var a=t.node(i).parent,s=e.edge(i,a),o=!1;s||(s=e.edge(a,i),o=!0),e.node(i).rank=e.node(a).rank+(o?s.minlen:-s.minlen)})}function $2r(t,e,r){return t.hasEdge(e,r)}function gxe(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}function G2r(t){switch(t.graph().ranker){case"network-simplex":mxe(t);break;case"tight-tree":q2r(t);break;case"longest-path":z2r(t);break;default:mxe(t)}}var z2r=Nue;function q2r(t){Nue(t),Xze(t)}function mxe(t){EE(t)}function V2r(t){var e=kR(t,"root",{},"_root"),r=H2r(t),n=Gb(Wm(r))-1,i=2*n+1;t.graph().nestingRoot=e,hr(t.edges(),function(s){t.edge(s).minlen*=i});var a=Y2r(t)+1;hr(t.children(),function(s){iqe(t,e,i,a,n,r,s)}),t.graph().nodeRankFactor=i}function iqe(t,e,r,n,i,a,s){var o=t.children(s);if(!o.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:r});return}var l=hxe(t,"_bt"),u=hxe(t,"_bb"),d=t.node(s);t.setParent(l,s),d.borderTop=l,t.setParent(u,s),d.borderBottom=u,hr(o,function(h){iqe(t,e,r,n,i,a,h);var f=t.node(h),p=f.borderTop?f.borderTop:h,g=f.borderBottom?f.borderBottom:h,m=f.borderTop?n:2*n,_=p!==g?1:i-a[s]+1;t.setEdge(l,p,{weight:m,minlen:_,nestingEdge:!0}),t.setEdge(g,u,{weight:m,minlen:_,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:i+a[s]})}function H2r(t){var e={};function r(n,i){var a=t.children(n);a&&a.length&&hr(a,function(s){r(s,i+1)}),e[n]=i}return hr(t.children(),function(n){r(n,1)}),e}function Y2r(t){return j5(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function W2r(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,hr(t.edges(),function(r){var n=t.edge(r);n.nestingEdge&&t.removeEdge(r)})}function K2r(t,e,r){var n={},i;hr(r,function(a){for(var s=t.parent(a),o,l;s;){if(o=t.parent(s),o?(l=n[o],n[o]=s):(l=i,i=s),l&&l!==s){e.setEdge(l,s);return}s=o}})}function j2r(t,e,r){var n=X2r(t),i=new dd({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(a){return t.node(a)});return hr(t.nodes(),function(a){var s=t.node(a),o=t.parent(a);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(a),i.setParent(a,o||n),hr(t[r](a),function(l){var u=l.v===a?l.w:l.v,d=i.edge(u,a),h=Io(d)?0:d.weight;i.setEdge(u,a,{weight:t.edge(l).weight+h})}),Object.prototype.hasOwnProperty.call(s,"minRank")&&i.setNode(a,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i}function X2r(t){for(var e;t.hasNode(e=Iue("_root")););return e}function Q2r(t,e){for(var r=0,n=1;n<e.length;++n)r+=Z2r(t,e[n-1],e[n]);return r}function Z2r(t,e,r){for(var n=o2r(r,Ho(r,function(u,d){return d})),i=NR(Ho(e,function(u){return X5(Ho(t.outEdges(u),function(d){return{pos:n[d.w],weight:t.edge(d).weight}}),"pos")})),a=1;a<r.length;)a<<=1;var s=2*a-1;a-=1;var o=Ho(new Array(s),function(){return 0}),l=0;return hr(i.forEach(function(u){var d=u.pos+a;o[d]+=u.weight;for(var h=0;d>0;)d%2&&(h+=o[d+1]),d=d-1>>1,o[d]+=u.weight;l+=u.weight*h})),l}function J2r(t){var e={},r=Fm(t.nodes(),function(o){return!t.children(o).length}),n=Gb(Ho(r,function(o){return t.node(o).rank})),i=Ho(xA(n+1),function(){return[]});function a(o){if(!Hze(e,o)){e[o]=!0;var l=t.node(o);i[l.rank].push(o),hr(t.successors(o),a)}}var s=X5(r,function(o){return t.node(o).rank});return hr(s,a),i}function ewr(t,e){return Ho(e,function(r){var n=t.inEdges(r);if(n.length){var i=j5(n,function(a,s){var o=t.edge(s),l=t.node(s.v);return{sum:a.sum+o.weight*l.order,weight:a.weight+o.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function twr(t,e){var r={};hr(t,function(i,a){var s=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};Io(i.barycenter)||(s.barycenter=i.barycenter,s.weight=i.weight)}),hr(e.edges(),function(i){var a=r[i.v],s=r[i.w];!Io(a)&&!Io(s)&&(s.indegree++,a.out.push(r[i.w]))});var n=Fm(r,function(i){return!i.indegree});return rwr(n)}function rwr(t){var e=[];function r(a){return function(s){s.merged||(Io(s.barycenter)||Io(a.barycenter)||s.barycenter>=a.barycenter)&&nwr(a,s)}}function n(a){return function(s){s.in.push(a),--s.indegree===0&&t.push(s)}}for(;t.length;){var i=t.pop();e.push(i),hr(i.in.reverse(),r(i)),hr(i.out,n(i))}return Ho(Fm(e,function(a){return!a.merged}),function(a){return c8(a,["vs","i","barycenter","weight"])})}function nwr(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}function iwr(t,e){var r=S2r(t,function(d){return Object.prototype.hasOwnProperty.call(d,"barycenter")}),n=r.lhs,i=X5(r.rhs,function(d){return-d.i}),a=[],s=0,o=0,l=0;n.sort(awr(!!e)),l=_xe(a,i,l),hr(n,function(d){l+=d.vs.length,a.push(d.vs),s+=d.barycenter*d.weight,o+=d.weight,l=_xe(a,i,l)});var u={vs:NR(a)};return o&&(u.barycenter=s/o,u.weight=o),u}function _xe(t,e,r){for(var n;e.length&&(n=l8(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function awr(t){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:t?r.i-e.i:e.i-r.i}}function aqe(t,e,r,n){var i=t.children(e),a=t.node(e),s=a?a.borderLeft:void 0,o=a?a.borderRight:void 0,l={};s&&(i=Fm(i,function(g){return g!==s&&g!==o}));var u=ewr(t,i);hr(u,function(g){if(t.children(g.v).length){var m=aqe(t,g.v,r,n);l[g.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&owr(g,m)}});var d=twr(u,r);swr(d,l);var h=iwr(d,n);if(s&&(h.vs=NR([s,h.vs,o]),t.predecessors(s).length)){var f=t.node(t.predecessors(s)[0]),p=t.node(t.predecessors(o)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+p.order)/(h.weight+2),h.weight+=2}return h}function swr(t,e){hr(t,function(r){r.vs=NR(r.vs.map(function(n){return e[n]?e[n].vs:n}))})}function owr(t,e){Io(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}function lwr(t){var e=Kze(t),r=vxe(t,xA(1,e+1),"inEdges"),n=vxe(t,xA(e-1,-1,-1),"outEdges"),i=J2r(t);yxe(t,i);for(var a=Number.POSITIVE_INFINITY,s,o=0,l=0;l<4;++o,++l){cwr(o%2?r:n,o%4>=2),i=f$(t);var u=Q2r(t,i);u<a&&(l=0,s=MTr(i),a=u)}yxe(t,s)}function vxe(t,e,r){return Ho(e,function(n){return j2r(t,n,r)})}function cwr(t,e){var r=new dd;hr(t,function(n){var i=n.graph().root,a=aqe(n,i,r,e);hr(a.vs,function(s,o){n.node(s).order=o}),K2r(n,r,a.vs)})}function yxe(t,e){hr(e,function(r){hr(r,function(n,i){t.node(n).order=i})})}function uwr(t){var e=hwr(t);hr(t.graph().dummyChains,function(r){for(var n=t.node(r),i=n.edgeObj,a=dwr(t,e,i.v,i.w),s=a.path,o=a.lca,l=0,u=s[l],d=!0;r!==i.w;){if(n=t.node(r),d){for(;(u=s[l])!==o&&t.node(u).maxRank<n.rank;)l++;u===o&&(d=!1)}if(!d){for(;l<s.length-1&&t.node(u=s[l+1]).minRank<=n.rank;)l++;u=s[l]}t.setParent(r,u),r=t.successors(r)[0]}})}function dwr(t,e,r,n){var i=[],a=[],s=Math.min(e[r].low,e[n].low),o=Math.max(e[r].lim,e[n].lim),l,u;l=r;do l=t.parent(l),i.push(l);while(l&&(e[l].low>s||o>e[l].lim));for(u=l,l=n;(l=t.parent(l))!==u;)a.push(l);return{path:i.concat(a.reverse()),lca:u}}function hwr(t){var e={},r=0;function n(i){var a=r;hr(t.children(i),n),e[i]={low:a,lim:r++}}return hr(t.children(),n),e}function fwr(t,e){var r={};function n(i,a){var s=0,o=0,l=i.length,u=l8(a);return hr(a,function(d,h){var f=gwr(t,d),p=f?t.node(f).order:l;(f||d===u)&&(hr(a.slice(o,h+1),function(g){hr(t.predecessors(g),function(m){var _=t.node(m),v=_.order;(v<s||p<v)&&!(_.dummy&&t.node(g).dummy)&&sqe(r,m,g)})}),o=h+1,s=p)}),a}return j5(e,n),r}function pwr(t,e){var r={};function n(a,s,o,l,u){var d;hr(xA(s,o),function(h){d=a[h],t.node(d).dummy&&hr(t.predecessors(d),function(f){var p=t.node(f);p.dummy&&(p.order<l||p.order>u)&&sqe(r,f,d)})})}function i(a,s){var o=-1,l,u=0;return hr(s,function(d,h){if(t.node(d).dummy==="border"){var f=t.predecessors(d);f.length&&(l=t.node(f[0]).order,n(s,u,h,o,l),u=h,o=l)}n(s,u,s.length,l,a.length)}),s}return j5(e,i),r}function gwr(t,e){if(t.node(e).dummy)return Aue(t.predecessors(e),function(r){return t.node(r).dummy})}function sqe(t,e,r){if(e>r){var n=e;e=r,r=n}Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=t[e];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function mwr(t,e,r){if(e>r){var n=e;e=r,r=n}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],r)}function _wr(t,e,r,n){var i={},a={},s={};return hr(e,function(o){hr(o,function(l,u){i[l]=l,a[l]=l,s[l]=u})}),hr(e,function(o){var l=-1;hr(o,function(u){var d=n(u);if(d.length){d=X5(d,function(m){return s[m]});for(var h=(d.length-1)/2,f=Math.floor(h),p=Math.ceil(h);f<=p;++f){var g=d[f];a[u]===u&&l<s[g]&&!mwr(r,u,g)&&(a[g]=u,a[u]=i[u]=i[g],l=s[g])}}})}),{root:i,align:a}}function vwr(t,e,r,n,i){var a={},s=ywr(t,e,r,i),o=i?"borderLeft":"borderRight";function l(h,f){for(var p=s.nodes(),g=p.pop(),m={};g;)m[g]?h(g):(m[g]=!0,p.push(g),p=p.concat(f(g))),g=p.pop()}function u(h){a[h]=s.inEdges(h).reduce(function(f,p){return Math.max(f,a[p.v]+s.edge(p))},0)}function d(h){var f=s.outEdges(h).reduce(function(g,m){return Math.min(g,a[m.w]-s.edge(m))},Number.POSITIVE_INFINITY),p=t.node(h);f!==Number.POSITIVE_INFINITY&&p.borderType!==o&&(a[h]=Math.max(a[h],f))}return l(u,s.predecessors.bind(s)),l(d,s.successors.bind(s)),hr(n,function(h){a[h]=a[r[h]]}),a}function ywr(t,e,r,n){var i=new dd,a=t.graph(),s=Cwr(a.nodesep,a.edgesep,n);return hr(e,function(o){var l;hr(o,function(u){var d=r[u];if(i.setNode(d),l){var h=r[l],f=i.edge(h,d);i.setEdge(h,d,Math.max(s(t,u,l),f||0))}l=u})}),i}function bwr(t,e){return Oue(Wm(e),function(r){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return NCr(r,function(a,s){var o=wwr(t,s)/2;n=Math.max(a+o,n),i=Math.min(a-o,i)}),n-i})}function Ewr(t,e){var r=Wm(e),n=Kk(r),i=Gb(r);hr(["u","d"],function(a){hr(["l","r"],function(s){var o=a+s,l=t[o],u;if(l!==e){var d=Wm(l);u=s==="l"?n-Kk(d):i-Gb(d),u&&(t[o]=h$(l,function(h){return h+u}))}})})}function Swr(t,e){return h$(t.ul,function(r,n){if(e)return t[e.toLowerCase()][n];var i=X5(Ho(t,n));return(i[1]+i[2])/2})}function Twr(t){var e=f$(t),r=ete(fwr(t,e),pwr(t,e)),n={},i;hr(["u","d"],function(s){i=s==="u"?e:Wm(e).reverse(),hr(["l","r"],function(o){o==="r"&&(i=Ho(i,function(h){return Wm(h).reverse()}));var l=(s==="u"?t.predecessors:t.successors).bind(t),u=_wr(t,i,r,l),d=vwr(t,i,u.root,u.align,o==="r");o==="r"&&(d=h$(d,function(h){return-h})),n[s+o]=d})});var a=bwr(t,n);return Ewr(n,a),Swr(n,t.graph().align)}function Cwr(t,e,r){return function(n,i,a){var s=n.node(i),o=n.node(a),l=0,u;if(l+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2;break}if(u&&(l+=r?u:-u),u=0,l+=(s.dummy?e:t)/2,l+=(o.dummy?e:t)/2,l+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":u=o.width/2;break;case"r":u=-o.width/2;break}return u&&(l+=r?u:-u),u=0,l}}function wwr(t,e){return t.node(e).width}function xwr(t){t=Wze(t),Awr(t),kCr(Twr(t),function(e,r){t.node(r).x=e})}function Awr(t){var e=f$(t),r=t.graph().ranksep,n=0;hr(e,function(i){var a=Gb(Ho(i,function(s){return t.node(s).height}));hr(i,function(s){t.node(s).y=n+a/2}),n+=a+r})}function oqe(t,e){var r=T2r;r("layout",()=>{var n=r("  buildLayoutGraph",()=>Bwr(t));r("  runLayout",()=>Rwr(n,r)),r("  updateInputGraph",()=>Owr(t,n))})}function Rwr(t,e){e("    makeSpaceForEdgeLabels",()=>Uwr(t)),e("    removeSelfEdges",()=>Kwr(t)),e("    acyclic",()=>m2r(t)),e("    nestingGraph.run",()=>V2r(t)),e("    rank",()=>G2r(Wze(t))),e("    injectEdgeLabelProxies",()=>$wr(t)),e("    removeEmptyRanks",()=>E2r(t)),e("    nestingGraph.cleanup",()=>W2r(t)),e("    normalizeRanks",()=>b2r(t)),e("    assignRankMinMax",()=>Gwr(t)),e("    removeEdgeLabelProxies",()=>zwr(t)),e("    normalize.run",()=>O2r(t)),e("    parentDummyChains",()=>uwr(t)),e("    addBorderSegments",()=>C2r(t)),e("    order",()=>lwr(t)),e("    insertSelfEdges",()=>jwr(t)),e("    adjustCoordinateSystem",()=>w2r(t)),e("    position",()=>xwr(t)),e("    positionSelfEdges",()=>Xwr(t)),e("    removeBorderNodes",()=>Wwr(t)),e("    normalize.undo",()=>N2r(t)),e("    fixupEdgeLabelCoords",()=>Hwr(t)),e("    undoCoordinateSystem",()=>x2r(t)),e("    translateGraph",()=>qwr(t)),e("    assignNodeIntersects",()=>Vwr(t)),e("    reversePoints",()=>Ywr(t)),e("    acyclic.undo",()=>v2r(t))}function Owr(t,e){hr(t.nodes(),function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))}),hr(t.edges(),function(r){var n=t.edge(r),i=e.edge(r);n.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(n.x=i.x,n.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var Iwr=["nodesep","edgesep","ranksep","marginx","marginy"],Nwr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},kwr=["acyclicer","ranker","rankdir","align"],Dwr=["width","height"],Mwr={width:0,height:0},Lwr=["minlen","weight","width","height","labeloffset"],Pwr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Fwr=["labelpos"];function Bwr(t){var e=new dd({multigraph:!0,compound:!0}),r=jK(t.graph());return e.setGraph(ete({},Nwr,KK(r,Iwr),c8(r,kwr))),hr(t.nodes(),function(n){var i=jK(t.node(n));e.setNode(n,CCr(KK(i,Dwr),Mwr)),e.setParent(n,t.parent(n))}),hr(t.edges(),function(n){var i=jK(t.edge(n));e.setEdge(n,ete({},Pwr,KK(i,Lwr),c8(i,Fwr)))}),e}function Uwr(t){var e=t.graph();e.ranksep/=2,hr(t.edges(),function(r){var n=t.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function $wr(t){hr(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-n.rank)/2+n.rank,e};kR(t,"edge-proxy",a,"_ep")}})}function Gwr(t){var e=0;hr(t.nodes(),function(r){var n=t.node(r);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,e=Gb(e,n.maxRank))}),t.graph().maxRank=e}function zwr(t){hr(t.nodes(),function(e){var r=t.node(e);r.dummy==="edge-proxy"&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}function qwr(t){var e=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,a=t.graph(),s=a.marginx||0,o=a.marginy||0;function l(u){var d=u.x,h=u.y,f=u.width,p=u.height;e=Math.min(e,d-f/2),r=Math.max(r,d+f/2),n=Math.min(n,h-p/2),i=Math.max(i,h+p/2)}hr(t.nodes(),function(u){l(t.node(u))}),hr(t.edges(),function(u){var d=t.edge(u);Object.prototype.hasOwnProperty.call(d,"x")&&l(d)}),e-=s,n-=o,hr(t.nodes(),function(u){var d=t.node(u);d.x-=e,d.y-=n}),hr(t.edges(),function(u){var d=t.edge(u);hr(d.points,function(h){h.x-=e,h.y-=n}),Object.prototype.hasOwnProperty.call(d,"x")&&(d.x-=e),Object.prototype.hasOwnProperty.call(d,"y")&&(d.y-=n)}),a.width=r-e+s,a.height=i-n+o}function Vwr(t){hr(t.edges(),function(e){var r=t.edge(e),n=t.node(e.v),i=t.node(e.w),a,s;r.points?(a=r.points[0],s=r.points[r.points.length-1]):(r.points=[],a=i,s=n),r.points.unshift(dxe(n,a)),r.points.push(dxe(i,s))})}function Hwr(t){hr(t.edges(),function(e){var r=t.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Ywr(t){hr(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function Wwr(t){hr(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(l8(r.borderLeft)),s=t.node(l8(r.borderRight));r.width=Math.abs(s.x-a.x),r.height=Math.abs(i.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}}),hr(t.nodes(),function(e){t.node(e).dummy==="border"&&t.removeNode(e)})}function Kwr(t){hr(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function jwr(t){var e=f$(t);hr(e,function(r){var n=0;hr(r,function(i,a){var s=t.node(i);s.order=a+n,hr(s.selfEdges,function(o){kR(t,"selfedge",{width:o.label.width,height:o.label.height,rank:s.rank,order:a+ ++n,e:o.e,label:o.label},"_se")}),delete s.selfEdges})})}function Xwr(t){hr(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var n=t.node(r.e.v),i=n.x+n.width/2,a=n.y,s=r.x-i,o=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*s/3,y:a-o},{x:i+5*s/6,y:a-o},{x:i+s,y:a},{x:i+5*s/6,y:a+o},{x:i+2*s/3,y:a+o}],r.label.x=r.x,r.label.y=r.y}})}function KK(t,e){return h$(c8(t,e),Number)}function jK(t){var e={};return hr(t,function(r,n){e[n.toLowerCase()]=r}),e}function jp(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Qwr(t),edges:Zwr(t)};return Io(t.graph())||(e.value=NTr(t.graph())),e}function Qwr(t){return Ho(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),i={v:e};return Io(r)||(i.value=r),Io(n)||(i.parent=n),i})}function Zwr(t){return Ho(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return Io(e.name)||(n.name=e.name),Io(r)||(n.value=r),n})}var Di=new Map,By=new Map,lqe=new Map,Jwr=k(()=>{By.clear(),lqe.clear(),Di.clear()},"clear"),u8=k((t,e)=>{const r=By.get(e)||[];return Pe.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),exr=k((t,e)=>{const r=By.get(e)||[];return Pe.info("Descendants of ",e," is ",r),Pe.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||u8(t.v,e)||u8(t.w,e)||r.includes(t.w):(Pe.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),cqe=k((t,e,r,n)=>{Pe.warn("Copying children of ",t,"root",n,"data",e.node(t),n);const i=e.children(t)||[];t!==n&&i.push(t),Pe.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach(a=>{if(e.children(a).length>0)cqe(a,e,r,n);else{const s=e.node(a);Pe.info("cp ",a," to ",n," with parent ",t),r.setNode(a,s),n!==e.parent(a)&&(Pe.warn("Setting parent",a,e.parent(a)),r.setParent(a,e.parent(a))),t!==n&&a!==t?(Pe.debug("Setting parent",a,t),r.setParent(a,t)):(Pe.info("In copy ",t,"root",n,"data",e.node(t),n),Pe.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==n,"node!==clusterId",a!==t));const o=e.edges(a);Pe.debug("Copying Edges",o),o.forEach(l=>{Pe.info("Edge",l);const u=e.edge(l.v,l.w,l.name);Pe.info("Edge data",u,n);try{exr(l,n)?(Pe.info("Copying as ",l.v,l.w,u,l.name),r.setEdge(l.v,l.w,u,l.name),Pe.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):Pe.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",n," clusterId:",t)}catch(d){Pe.error(d)}})}Pe.debug("Removing node",a),e.removeNode(a)})},"copy"),uqe=k((t,e)=>{const r=e.children(t);let n=[...r];for(const i of r)lqe.set(i,t),n=[...n,...uqe(i,e)];return n},"extractDescendants"),txr=k((t,e,r)=>{const n=t.edges().filter(l=>l.v===e||l.w===e),i=t.edges().filter(l=>l.v===r||l.w===r),a=n.map(l=>({v:l.v===e?r:l.v,w:l.w===e?e:l.w})),s=i.map(l=>({v:l.v,w:l.w}));return a.filter(l=>s.some(u=>l.v===u.v&&l.w===u.w))},"findCommonEdges"),Xk=k((t,e,r)=>{const n=e.children(t);if(Pe.trace("Searching children of id ",t,n),n.length<1)return t;let i;for(const a of n){const s=Xk(a,e,r),o=txr(e,r,s);if(s)if(o.length>0)i=s;else return s}return i},"findNonClusterChild"),bxe=k(t=>!Di.has(t)||!Di.get(t).externalConnections?t:Di.has(t)?Di.get(t).id:t,"getAnchorId"),rxr=k((t,e)=>{if(!t||e>10){Pe.debug("Opting out, no graph ");return}else Pe.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(Pe.warn("Cluster identified",r," Replacement id in edges: ",Xk(r,t,r)),By.set(r,uqe(r,t)),Di.set(r,{id:Xk(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){const n=t.children(r),i=t.edges();n.length>0?(Pe.debug("Cluster identified",r,By),i.forEach(a=>{const s=u8(a.v,r),o=u8(a.w,r);s^o&&(Pe.warn("Edge: ",a," leaves cluster ",r),Pe.warn("Descendants of XXX ",r,": ",By.get(r)),Di.get(r).externalConnections=!0)})):Pe.debug("Not a cluster ",r,By)});for(let r of Di.keys()){const n=Di.get(r).id,i=t.parent(n);i!==r&&Di.has(i)&&!Di.get(i).externalConnections&&(Di.get(r).id=i)}t.edges().forEach(function(r){const n=t.edge(r);Pe.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),Pe.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let i=r.v,a=r.w;if(Pe.warn("Fix XXX",Di,"ids:",r.v,r.w,"Translating: ",Di.get(r.v)," --- ",Di.get(r.w)),Di.get(r.v)||Di.get(r.w)){if(Pe.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=bxe(r.v),a=bxe(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){const s=t.parent(i);Di.get(s).externalConnections=!0,n.fromCluster=r.v}if(a!==r.w){const s=t.parent(a);Di.get(s).externalConnections=!0,n.toCluster=r.w}Pe.warn("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,n,r.name)}}),Pe.warn("Adjusted Graph",jp(t)),dqe(t,0),Pe.trace(Di)},"adjustClustersAndEdges"),dqe=k((t,e)=>{if(Pe.warn("extractor - ",e,jp(t),t.children("D")),e>10){Pe.error("Bailing out");return}let r=t.nodes(),n=!1;for(const i of r){const a=t.children(i);n=n||a.length>0}if(!n){Pe.debug("Done, no node has children",t.nodes());return}Pe.debug("Nodes = ",r,e);for(const i of r)if(Pe.debug("Extracting node",i,Di,Di.has(i)&&!Di.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),!Di.has(i))Pe.debug("Not a cluster",i,e);else if(!Di.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){Pe.warn("Cluster without external connections, without a parent and with children",i,e);let s=t.graph().rankdir==="TB"?"LR":"TB";Di.get(i)?.clusterData?.dir&&(s=Di.get(i).clusterData.dir,Pe.warn("Fixing dir",Di.get(i).clusterData.dir,s));const o=new dd({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Pe.warn("Old graph before copy",jp(t)),cqe(i,t,o,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:Di.get(i).clusterData,label:Di.get(i).label,graph:o}),Pe.warn("New graph after copy node: (",i,")",jp(o)),Pe.debug("Old graph after copy",jp(t))}else Pe.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Di.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),Pe.debug(Di);r=t.nodes(),Pe.warn("New list of nodes",r);for(const i of r){const a=t.node(i);Pe.warn(" Now next level",i,a),a?.clusterNode&&dqe(a.graph,e+1)}},"extractor"),hqe=k((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(n=>{const i=t.children(n),a=hqe(t,i);r=[...r,...a]}),r},"sorter"),nxr=k(t=>hqe(t,t.children()),"sortNodesByHierarchy"),fqe=k(async(t,e,r,n,i,a)=>{Pe.warn("Graph in recursive render:XAX",jp(e),i);const s=e.graph().rankdir;Pe.trace("Dir in recursive render - dir:",s);const o=t.insert("g").attr("class","root");e.nodes()?Pe.info("Recursive render XXX",e.nodes()):Pe.info("No nodes found for",e),e.edges().length>0&&Pe.info("Recursive edges",e.edge(e.edges()[0]));const l=o.insert("g").attr("class","clusters"),u=o.insert("g").attr("class","edgePaths"),d=o.insert("g").attr("class","edgeLabels"),h=o.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(m){const _=e.node(m);if(i!==void 0){const v=JSON.parse(JSON.stringify(i.clusterData));Pe.trace(`Setting data for parent cluster XXX
 Node.id = `,m,`
 data=`,v.height,`
Parent cluster`,i.height),e.setNode(i.id,v),e.parent(m)||(Pe.trace("Setting parent",m,i.id),e.setParent(m,i.id,v))}if(Pe.info("(Insert) Node XXX"+m+": "+JSON.stringify(e.node(m))),_?.clusterNode){Pe.info("Cluster identified XBX",m,_.width,e.node(m));const{ranksep:v,nodesep:y}=e.graph();_.graph.setGraph({..._.graph.graph(),ranksep:v+25,nodesep:y});const b=await fqe(h,_.graph,r,n,e.node(m),a),E=b.elem;Cn(_,E),_.diff=b.diff||0,Pe.info("New compound node after recursive render XAX",m,"width",_.width,"height",_.height),T0r(E,_)}else e.children(m).length>0?(Pe.trace("Cluster - the non recursive path XBX",m,_.id,_,_.width,"Graph:",e),Pe.trace(Xk(_.id,e)),Di.set(_.id,{id:Xk(_.id,e),node:_})):(Pe.trace("Node - the non recursive path XAX",m,h,e.node(m),s),await XU(h,e.node(m),{config:a,dir:s}))})),await k(async()=>{const m=e.edges().map(async function(_){const v=e.edge(_.v,_.w,_.name);Pe.info("Edge "+_.v+" -> "+_.w+": "+JSON.stringify(_)),Pe.info("Edge "+_.v+" -> "+_.w+": ",_," ",JSON.stringify(e.edge(_))),Pe.info("Fix",Di,"ids:",_.v,_.w,"Translating: ",Di.get(_.v),Di.get(_.w)),await rGe(d,v)});await Promise.all(m)},"processEdges")(),Pe.info("Graph before layout:",JSON.stringify(jp(e))),Pe.info("############################################# XXX"),Pe.info("###                Layout                 ### XXX"),Pe.info("############################################# XXX"),oqe(e),Pe.info("Graph after layout:",JSON.stringify(jp(e)));let p=0,{subGraphTitleTotalMargin:g}=q5(a);return await Promise.all(nxr(e).map(async function(m){const _=e.node(m);if(Pe.info("Position XBX => "+m+": ("+_.x,","+_.y,") width: ",_.width," height: ",_.height),_?.clusterNode)_.y+=g,Pe.info("A tainted cluster node XBX1",m,_.id,_.width,_.height,_.x,_.y,e.parent(m)),Di.get(_.id).node=_,$ee(_);else if(e.children(m).length>0){Pe.info("A pure cluster node XBX1",m,_.id,_.x,_.y,_.width,_.height,e.parent(m)),_.height+=g,e.node(_.parentId);const v=_?.padding/2||0,y=_?.labelBBox?.height||0,b=y-v||0;Pe.debug("OffsetY",b,"labelHeight",y,"halfPadding",v),await oue(l,_),Di.get(_.id).node=_}else{const v=e.node(_.parentId);_.y+=g/2,Pe.info("A regular node XBX1 - using the padding",_.id,"parent",_.parentId,_.width,_.height,_.x,_.y,"offsetY",_.offsetY,"parent",v,v?.offsetY,_),$ee(_)}})),e.edges().forEach(function(m){const _=e.edge(m);Pe.info("Edge "+m.v+" -> "+m.w+": "+JSON.stringify(_),_),_.points.forEach(E=>E.y+=g/2);const v=e.node(m.v);var y=e.node(m.w);const b=aGe(u,_,Di,r,v,y,n);nGe(_,b)}),e.nodes().forEach(function(m){const _=e.node(m);Pe.info(m,_.type,_.diff),_.isGroup&&(p=_.diff)}),Pe.warn("Returning from recursive render XAX",o,p),{elem:o,diff:p}},"recursiveRender"),ixr=k(async(t,e)=>{const r=new dd({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=e.select("g");lGe(n,t.markers,t.type,t.diagramId),C0r(),O0r(),n0r(),Jwr(),t.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),Pe.debug("Edges:",t.edges),t.edges.forEach(a=>{if(a.start===a.end){const s=a.start,o=s+"---"+s+"---1",l=s+"---"+s+"---2",u=r.node(s);r.setNode(o,{domId:o,id:o,parentId:u.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(o,u.parentId),r.setNode(l,{domId:l,id:l,parentId:u.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(l,u.parentId);const d=structuredClone(a),h=structuredClone(a),f=structuredClone(a);d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=s+"-cyclic-special-1",h.startLabelRight="",h.startLabelLeft="",h.endLabelLeft="",h.endLabelRight="",h.arrowTypeStart="none",h.arrowTypeEnd="none",h.id=s+"-cyclic-special-mid",f.label="",f.startLabelRight="",f.startLabelLeft="",f.arrowTypeStart="none",u.isGroup&&(d.fromCluster=s,f.toCluster=s),f.id=s+"-cyclic-special-2",f.arrowTypeStart="none",r.setEdge(s,o,d,s+"-cyclic-special-0"),r.setEdge(o,l,h,s+"-cyclic-special-1"),r.setEdge(l,s,f,s+"-cyc<lic-special-2")}else r.setEdge(a.start,a.end,{...a},a.id)}),Pe.warn("Graph at first:",JSON.stringify(jp(r))),rxr(r),Pe.warn("Graph after XAX:",JSON.stringify(jp(r)));const i=vt();await fqe(n,r,t.type,t.diagramId,void 0,i)},"render");const axr=Object.freeze(Object.defineProperty({__proto__:null,render:ixr},Symbol.toStringTag,{value:"Module"}));function rte(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function sxr(t){if(Array.isArray(t))return t}function oxr(t){if(Array.isArray(t))return rte(t)}function K1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lxr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gqe(n.key),n)}}function j1(t,e,r){return e&&lxr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ed(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Mue(t))||e){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return s=l.done,l},e:function(l){o=!0,a=l},f:function(){try{s||r.return==null||r.return()}finally{if(o)throw a}}}}function pqe(t,e,r){return(e=gqe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cxr(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uxr(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function dxr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hxr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uo(t,e){return sxr(t)||uxr(t,e)||Mue(t,e)||dxr()}function d8(t){return oxr(t)||cxr(t)||Mue(t)||hxr()}function fxr(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function gqe(t){var e=fxr(t,"string");return typeof e=="symbol"?e:e+""}function ml(t){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ml(t)}function Mue(t,e){if(t){if(typeof t=="string")return rte(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rte(t,e):void 0}}var ol=typeof window>"u"?null:window,Exe=ol?ol.navigator:null;ol&&ol.document;var pxr=ml(""),mqe=ml({}),gxr=ml(function(){}),mxr=typeof HTMLElement>"u"?"undefined":ml(HTMLElement),Q5=function(e){return e&&e.instanceString&&Qs(e.instanceString)?e.instanceString():null},Bn=function(e){return e!=null&&ml(e)==pxr},Qs=function(e){return e!=null&&ml(e)===gxr},Xa=function(e){return!$d(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},fa=function(e){return e!=null&&ml(e)===mqe&&!Xa(e)&&e.constructor===Object},_xr=function(e){return e!=null&&ml(e)===mqe},Gr=function(e){return e!=null&&ml(e)===ml(1)&&!isNaN(e)},vxr=function(e){return Gr(e)&&Math.floor(e)===e},h8=function(e){if(mxr!=="undefined")return e!=null&&e instanceof HTMLElement},$d=function(e){return Z5(e)||_qe(e)},Z5=function(e){return Q5(e)==="collection"&&e._private.single},_qe=function(e){return Q5(e)==="collection"&&!e._private.single},Lue=function(e){return Q5(e)==="core"},vqe=function(e){return Q5(e)==="stylesheet"},yxr=function(e){return Q5(e)==="event"},E1=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},bxr=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Exr=function(e){return fa(e)&&Gr(e.x1)&&Gr(e.x2)&&Gr(e.y1)&&Gr(e.y2)},Sxr=function(e){return _xr(e)&&Qs(e.then)},Txr=function(){return Exe&&Exe.userAgent.match(/msie|trident|edge/i)},AA=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],s=0;s<arguments.length;s++)a.push(arguments[s]);return a.join("$")});var n=function(){var a=this,s=arguments,o,l=r.apply(a,s),u=n.cache;return(o=u[l])||(o=u[l]=e.apply(a,s)),o};return n.cache={},n},Pue=AA(function(t){return t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),p$=AA(function(t){return t.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),yqe=AA(function(t,e){return t+e[0].toUpperCase()+e.substring(1)},function(t,e){return t+"$"+e}),Sxe=function(e){return E1(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},U_=function(e,r){return e.slice(-1*r.length)===r},hl="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",Cxr="rgb[a]?\\(("+hl+"[%]?)\\s*,\\s*("+hl+"[%]?)\\s*,\\s*("+hl+"[%]?)(?:\\s*,\\s*("+hl+"))?\\)",wxr="rgb[a]?\\((?:"+hl+"[%]?)\\s*,\\s*(?:"+hl+"[%]?)\\s*,\\s*(?:"+hl+"[%]?)(?:\\s*,\\s*(?:"+hl+"))?\\)",xxr="hsl[a]?\\(("+hl+")\\s*,\\s*("+hl+"[%])\\s*,\\s*("+hl+"[%])(?:\\s*,\\s*("+hl+"))?\\)",Axr="hsl[a]?\\((?:"+hl+")\\s*,\\s*(?:"+hl+"[%])\\s*,\\s*(?:"+hl+"[%])(?:\\s*,\\s*(?:"+hl+"))?\\)",Rxr="\\#[0-9a-fA-F]{3}",Oxr="\\#[0-9a-fA-F]{6}",bqe=function(e,r){return e<r?-1:e>r?1:0},Ixr=function(e,r){return-1*bqe(e,r)},Yn=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r<e.length;r++){var n=e[r];if(n!=null)for(var i=Object.keys(n),a=0;a<i.length;a++){var s=i[a];t[s]=n[s]}}return t},Nxr=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var r=e.length===4,n,i,a,s=16;return r?(n=parseInt(e[1]+e[1],s),i=parseInt(e[2]+e[2],s),a=parseInt(e[3]+e[3],s)):(n=parseInt(e[1]+e[2],s),i=parseInt(e[3]+e[4],s),a=parseInt(e[5]+e[6],s)),[n,i,a]}},kxr=function(e){var r,n,i,a,s,o,l,u;function d(g,m,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?g+(m-g)*6*_:_<1/2?m:_<2/3?g+(m-g)*(2/3-_)*6:g}var h=new RegExp("^"+xxr+"$").exec(e);if(h){if(n=parseInt(h[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,i=parseFloat(h[2]),i<0||i>100||(i=i/100,a=parseFloat(h[3]),a<0||a>100)||(a=a/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(i===0)o=l=u=Math.round(a*255);else{var f=a<.5?a*(1+i):a+i-a*i,p=2*a-f;o=Math.round(255*d(p,f,n+1/3)),l=Math.round(255*d(p,f,n)),u=Math.round(255*d(p,f,n-1/3))}r=[o,l,u,s]}return r},Dxr=function(e){var r,n=new RegExp("^"+Cxr+"$").exec(e);if(n){r=[];for(var i=[],a=1;a<=3;a++){var s=n[a];if(s[s.length-1]==="%"&&(i[a]=!0),s=parseFloat(s),i[a]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=i[1]||i[2]||i[3],l=i[1]&&i[2]&&i[3];if(o&&!l)return;var u=n[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},Mxr=function(e){return Lxr[e.toLowerCase()]},Eqe=function(e){return(Xa(e)?e:null)||Mxr(e)||Nxr(e)||Dxr(e)||kxr(e)},Lxr={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Sqe=function(e){for(var r=e.map,n=e.keys,i=n.length,a=0;a<i;a++){var s=n[a];if(fa(s))throw Error("Tried to set map with object key");a<n.length-1?(r[s]==null&&(r[s]={}),r=r[s]):r[s]=e.value}},Tqe=function(e){for(var r=e.map,n=e.keys,i=n.length,a=0;a<i;a++){var s=n[a];if(fa(s))throw Error("Tried to get map with object key");if(r=r[s],r==null)return r}return r},PL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function J5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var XK,Txe;function eD(){if(Txe)return XK;Txe=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return XK=t,XK}var QK,Cxe;function Pxr(){if(Cxe)return QK;Cxe=1;var t=typeof PL=="object"&&PL&&PL.Object===Object&&PL;return QK=t,QK}var ZK,wxe;function g$(){if(wxe)return ZK;wxe=1;var t=Pxr(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return ZK=r,ZK}var JK,xxe;function Fxr(){if(xxe)return JK;xxe=1;var t=g$(),e=function(){return t.Date.now()};return JK=e,JK}var ej,Axe;function Bxr(){if(Axe)return ej;Axe=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return ej=e,ej}var tj,Rxe;function Uxr(){if(Rxe)return tj;Rxe=1;var t=Bxr(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return tj=r,tj}var rj,Oxe;function Fue(){if(Oxe)return rj;Oxe=1;var t=g$(),e=t.Symbol;return rj=e,rj}var nj,Ixe;function $xr(){if(Ixe)return nj;Ixe=1;var t=Fue(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;function a(s){var o=r.call(s,i),l=s[i];try{s[i]=void 0;var u=!0}catch{}var d=n.call(s);return u&&(o?s[i]=l:delete s[i]),d}return nj=a,nj}var ij,Nxe;function Gxr(){if(Nxe)return ij;Nxe=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return ij=r,ij}var aj,kxe;function Cqe(){if(kxe)return aj;kxe=1;var t=Fue(),e=$xr(),r=Gxr(),n="[object Null]",i="[object Undefined]",a=t?t.toStringTag:void 0;function s(o){return o==null?o===void 0?i:n:a&&a in Object(o)?e(o):r(o)}return aj=s,aj}var sj,Dxe;function zxr(){if(Dxe)return sj;Dxe=1;function t(e){return e!=null&&typeof e=="object"}return sj=t,sj}var oj,Mxe;function tD(){if(Mxe)return oj;Mxe=1;var t=Cqe(),e=zxr(),r="[object Symbol]";function n(i){return typeof i=="symbol"||e(i)&&t(i)==r}return oj=n,oj}var lj,Lxe;function qxr(){if(Lxe)return lj;Lxe=1;var t=Uxr(),e=eD(),r=tD(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(e(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=e(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=t(u);var h=a.test(u);return h||s.test(u)?o(u.slice(2),h?2:8):i.test(u)?n:+u}return lj=l,lj}var cj,Pxe;function Vxr(){if(Pxe)return cj;Pxe=1;var t=eD(),e=Fxr(),r=qxr(),n="Expected a function",i=Math.max,a=Math.min;function s(o,l,u){var d,h,f,p,g,m,_=0,v=!1,y=!1,b=!0;if(typeof o!="function")throw new TypeError(n);l=r(l)||0,t(u)&&(v=!!u.leading,y="maxWait"in u,f=y?i(r(u.maxWait)||0,l):f,b="trailing"in u?!!u.trailing:b);function E(F){var O=d,D=h;return d=h=void 0,_=F,p=o.apply(D,O),p}function S(F){return _=F,g=setTimeout(x,l),v?E(F):p}function T(F){var O=F-m,D=F-_,M=l-O;return y?a(M,f-D):M}function C(F){var O=F-m,D=F-_;return m===void 0||O>=l||O<0||y&&D>=f}function x(){var F=e();if(C(F))return A(F);g=setTimeout(x,T(F))}function A(F){return g=void 0,b&&d?E(F):(d=h=void 0,p)}function R(){g!==void 0&&clearTimeout(g),_=0,d=m=h=g=void 0}function I(){return g===void 0?p:A(e())}function L(){var F=e(),O=C(F);if(d=arguments,h=this,m=F,O){if(g===void 0)return S(m);if(y)return clearTimeout(g),g=setTimeout(x,l),E(m)}return g===void 0&&(g=setTimeout(x,l)),p}return L.cancel=R,L.flush=I,L}return cj=s,cj}var Hxr=Vxr(),rD=J5(Hxr),uj=ol?ol.performance:null,wqe=uj&&uj.now?function(){return uj.now()}:function(){return Date.now()},Yxr=(function(){if(ol){if(ol.requestAnimationFrame)return function(t){ol.requestAnimationFrame(t)};if(ol.mozRequestAnimationFrame)return function(t){ol.mozRequestAnimationFrame(t)};if(ol.webkitRequestAnimationFrame)return function(t){ol.webkitRequestAnimationFrame(t)};if(ol.msRequestAnimationFrame)return function(t){ol.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(wqe())},1e3/60)}})(),f8=function(e){return Yxr(e)},h0=wqe,ly=9261,xqe=65599,YS=5381,Aqe=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ly,n=r,i;i=e.next(),!i.done;)n=n*xqe+i.value|0;return n},Qk=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ly;return r*xqe+e|0},Zk=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:YS;return(r<<5)+r+e|0},Wxr=function(e,r){return e*2097152+r},l_=function(e){return e[0]*2097152+e[1]},FL=function(e,r){return[Qk(e[0],r[0]),Zk(e[1],r[1])]},Fxe=function(e,r){var n={value:0,done:!1},i=0,a=e.length,s={next:function(){return i<a?n.value=e[i++]:n.done=!0,n}};return Aqe(s,r)},zb=function(e,r){var n={value:0,done:!1},i=0,a=e.length,s={next:function(){return i<a?n.value=e.charCodeAt(i++):n.done=!0,n}};return Aqe(s,r)},Rqe=function(){return Kxr(arguments)},Kxr=function(e){for(var r,n=0;n<e.length;n++){var i=e[n];n===0?r=zb(i):r=zb(i,r)}return r};function jxr(t,e,r,n,i){var a=i*Math.PI/180,s=Math.cos(a)*(t-r)-Math.sin(a)*(e-n)+r,o=Math.sin(a)*(t-r)+Math.cos(a)*(e-n)+n;return{x:s,y:o}}var Xxr=function(e,r,n,i,a,s){return{x:(e-n)*a+n,y:(r-i)*s+i}};function Qxr(t,e,r){if(r===0)return t;var n=(e.x1+e.x2)/2,i=(e.y1+e.y2)/2,a=e.w/e.h,s=1/a,o=jxr(t.x,t.y,n,i,r),l=Xxr(o.x,o.y,n,i,a,s);return{x:l.x,y:l.y}}var Bxe=!0,Zxr=console.warn!=null,Jxr=console.trace!=null,Bue=Number.MAX_SAFE_INTEGER||9007199254740991,Oqe=function(){return!0},p8=function(){return!1},Uxe=function(){return 0},Uue=function(){},Os=function(e){throw new Error(e)},Iqe=function(e){if(e!==void 0)Bxe=!!e;else return Bxe},Pa=function(e){Iqe()&&(Zxr?console.warn(e):(console.log(e),Jxr&&console.trace()))},eAr=function(e){return Yn({},e)},Xp=function(e){return e==null?e:Xa(e)?e.slice():fa(e)?eAr(e):e},tAr=function(e){return e.slice()},Nqe=function(e,r){for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r},rAr={},kqe=function(){return rAr},cc=function(e){var r=Object.keys(e);return function(n){for(var i={},a=0;a<r.length;a++){var s=r[a],o=n?.[s];i[s]=o===void 0?e[s]:o}return i}},S1=function(e,r,n){for(var i=e.length-1;i>=0;i--)e[i]===r&&e.splice(i,1)},$ue=function(e){e.splice(0,e.length)},nAr=function(e,r){for(var n=0;n<r.length;n++){var i=r[n];e.push(i)}},Jc=function(e,r,n){return n&&(r=yqe(n,r)),e[r]},Lp=function(e,r,n,i){n&&(r=yqe(n,r)),e[r]=i},iAr=(function(){function t(){K1(this,t),this._obj={}}return j1(t,[{key:"set",value:function(r,n){return this._obj[r]=n,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}])})(),Bm=typeof Map<"u"?Map:iAr,aAr="undefined",sAr=(function(){function t(e){if(K1(this,t),this._obj=Object.create(null),this.size=0,e!=null){var r;e.instanceString!=null&&e.instanceString()===this.instanceString()?r=e.toArray():r=e;for(var n=0;n<r.length;n++)this.add(r[n])}}return j1(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var n=this._obj;n[r]!==1&&(n[r]=1,this.size++)}},{key:"delete",value:function(r){var n=this._obj;n[r]===1&&(n[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(n){return r.has(n)})}},{key:"forEach",value:function(r,n){return this.toArray().forEach(r,n)}}])})(),DR=(typeof Set>"u"?"undefined":ml(Set))!==aAr?Set:sAr,m$=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Lue(e)){Os("An element must have a core reference and parameters set");return}var i=r.group;if(i==null&&(r.data&&r.data.source!=null&&r.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){Os("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?i==="edges":!!r.pannable,active:!1,classes:new DR,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();a.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Xa(r.classes)?u=r.classes:Bn(r.classes)&&(u=r.classes.split(/\s+/));for(var d=0,h=u.length;d<h;d++){var f=u[d];!f||f===""||a.classes.add(f)}this.createEmitter(),(n===void 0||n)&&this.restore();var p=r.style||r.css;p&&(Pa("Setting a `style` bypass at element creation should be done only when absolutely necessary.  Try to use the stylesheet instead."),this.style(p))},$xe=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(n,i,a){var s;fa(n)&&!$d(n)&&(s=n,n=s.roots||s.root,i=s.visit,a=s.directed),a=arguments.length===2&&!Qs(i)?i:a,i=Qs(i)?i:function(){};for(var o=this._private.cy,l=n=Bn(n)?this.filter(n):n,u=[],d=[],h={},f={},p={},g=0,m,_=this.byGroup(),v=_.nodes,y=_.edges,b=0;b<l.length;b++){var E=l[b],S=E.id();E.isNode()&&(u.unshift(E),e.bfs&&(p[S]=!0,d.push(E)),f[S]=0)}for(var T=function(){var F=e.bfs?u.shift():u.pop(),O=F.id();if(e.dfs){if(p[O])return 0;p[O]=!0,d.push(F)}var D=f[O],M=h[O],P=M!=null?M.source():null,N=M!=null?M.target():null,$=M==null?void 0:F.same(P)?N[0]:P[0],U;if(U=i(F,M,$,g++,D),U===!0)return m=F,1;if(U===!1)return 1;for(var B=F.connectedEdges().filter(function(W){return(!a||W.source().same(F))&&y.has(W)}),V=0;V<B.length;V++){var z=B[V],G=z.connectedNodes().filter(function(W){return!W.same(F)&&v.has(W)}),Y=G.id();G.length!==0&&!p[Y]&&(G=G[0],u.push(G),e.bfs&&(p[Y]=!0,d.push(G)),h[Y]=z,f[Y]=f[O]+1)}},C;u.length!==0&&(C=T(),!(C!==0&&C===1)););for(var x=o.collection(),A=0;A<d.length;A++){var R=d[A],I=h[R.id()];I!=null&&x.push(I),x.push(R)}return{path:o.collection(x),found:o.collection(m)}}},Jk={breadthFirstSearch:$xe({bfs:!0}),depthFirstSearch:$xe({dfs:!0})};Jk.bfs=Jk.breadthFirstSearch;Jk.dfs=Jk.depthFirstSearch;var t6={exports:{}},oAr=t6.exports,Gxe;function lAr(){return Gxe||(Gxe=1,(function(t,e){(function(){var r,n,i,a,s,o,l,u,d,h,f,p,g,m,_;i=Math.floor,h=Math.min,n=function(v,y){return v<y?-1:v>y?1:0},d=function(v,y,b,E,S){var T;if(b==null&&(b=0),S==null&&(S=n),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=v.length);b<E;)T=i((b+E)/2),S(y,v[T])<0?E=T:b=T+1;return[].splice.apply(v,[b,b-b].concat(y)),y},o=function(v,y,b){return b==null&&(b=n),v.push(y),m(v,0,v.length-1,b)},s=function(v,y){var b,E;return y==null&&(y=n),b=v.pop(),v.length?(E=v[0],v[0]=b,_(v,0,y)):E=b,E},u=function(v,y,b){var E;return b==null&&(b=n),E=v[0],v[0]=y,_(v,0,b),E},l=function(v,y,b){var E;return b==null&&(b=n),v.length&&b(v[0],y)<0&&(E=[v[0],y],y=E[0],v[0]=E[1],_(v,0,b)),y},a=function(v,y){var b,E,S,T,C,x;for(y==null&&(y=n),T=(function(){x=[];for(var A=0,R=i(v.length/2);0<=R?A<R:A>R;0<=R?A++:A--)x.push(A);return x}).apply(this).reverse(),C=[],E=0,S=T.length;E<S;E++)b=T[E],C.push(_(v,b,y));return C},g=function(v,y,b){var E;if(b==null&&(b=n),E=v.indexOf(y),E!==-1)return m(v,0,E,b),_(v,E,b)},f=function(v,y,b){var E,S,T,C,x;if(b==null&&(b=n),S=v.slice(0,y),!S.length)return S;for(a(S,b),x=v.slice(y),T=0,C=x.length;T<C;T++)E=x[T],l(S,E,b);return S.sort(b).reverse()},p=function(v,y,b){var E,S,T,C,x,A,R,I,L;if(b==null&&(b=n),y*10<=v.length){if(T=v.slice(0,y).sort(b),!T.length)return T;for(S=T[T.length-1],R=v.slice(y),C=0,A=R.length;C<A;C++)E=R[C],b(E,S)<0&&(d(T,E,0,null,b),T.pop(),S=T[T.length-1]);return T}for(a(v,b),L=[],x=0,I=h(y,v.length);0<=I?x<I:x>I;0<=I?++x:--x)L.push(s(v,b));return L},m=function(v,y,b,E){var S,T,C;for(E==null&&(E=n),S=v[b];b>y;){if(C=b-1>>1,T=v[C],E(S,T)<0){v[b]=T,b=C;continue}break}return v[b]=S},_=function(v,y,b){var E,S,T,C,x;for(b==null&&(b=n),S=v.length,x=y,T=v[y],E=2*y+1;E<S;)C=E+1,C<S&&!(b(v[E],v[C])<0)&&(E=C),v[y]=v[E],y=E,E=2*y+1;return v[y]=T,m(v,x,y,b)},r=(function(){v.push=o,v.pop=s,v.replace=u,v.pushpop=l,v.heapify=a,v.updateItem=g,v.nlargest=f,v.nsmallest=p;function v(y){this.cmp=y??n,this.nodes=[]}return v.prototype.push=function(y){return o(this.nodes,y,this.cmp)},v.prototype.pop=function(){return s(this.nodes,this.cmp)},v.prototype.peek=function(){return this.nodes[0]},v.prototype.contains=function(y){return this.nodes.indexOf(y)!==-1},v.prototype.replace=function(y){return u(this.nodes,y,this.cmp)},v.prototype.pushpop=function(y){return l(this.nodes,y,this.cmp)},v.prototype.heapify=function(){return a(this.nodes,this.cmp)},v.prototype.updateItem=function(y){return g(this.nodes,y,this.cmp)},v.prototype.clear=function(){return this.nodes=[]},v.prototype.empty=function(){return this.nodes.length===0},v.prototype.size=function(){return this.nodes.length},v.prototype.clone=function(){var y;return y=new v,y.nodes=this.nodes.slice(0),y},v.prototype.toArray=function(){return this.nodes.slice(0)},v.prototype.insert=v.prototype.push,v.prototype.top=v.prototype.peek,v.prototype.front=v.prototype.peek,v.prototype.has=v.prototype.contains,v.prototype.copy=v.prototype.clone,v})(),(function(v,y){return t.exports=y()})(this,function(){return r})}).call(oAr)})(t6)),t6.exports}var dj,zxe;function cAr(){return zxe||(zxe=1,dj=lAr()),dj}var uAr=cAr(),nD=J5(uAr),dAr=cc({root:null,weight:function(e){return 1},directed:!1}),hAr={dijkstra:function(e){if(!fa(e)){var r=arguments;e={root:r[0],weight:r[1],directed:r[2]}}var n=dAr(e),i=n.root,a=n.weight,s=n.directed,o=this,l=a,u=Bn(i)?this.filter(i)[0]:i[0],d={},h={},f={},p=this.byGroup(),g=p.nodes,m=p.edges;m.unmergeBy(function(D){return D.isLoop()});for(var _=function(M){return d[M.id()]},v=function(M,P){d[M.id()]=P,y.updateItem(M)},y=new nD(function(D,M){return _(D)-_(M)}),b=0;b<g.length;b++){var E=g[b];d[E.id()]=E.same(u)?0:1/0,y.push(E)}for(var S=function(M,P){for(var N=(s?M.edgesTo(P):M.edgesWith(P)).intersect(m),$=1/0,U,B=0;B<N.length;B++){var V=N[B],z=l(V);(z<$||!U)&&($=z,U=V)}return{edge:U,dist:$}};y.size()>0;){var T=y.pop(),C=_(T),x=T.id();if(f[x]=C,C!==1/0)for(var A=T.neighborhood().intersect(g),R=0;R<A.length;R++){var I=A[R],L=I.id(),F=S(T,I),O=C+F.dist;O<_(I)&&(v(I,O),h[L]={node:T,edge:F.edge})}}return{distanceTo:function(M){var P=Bn(M)?g.filter(M)[0]:M[0];return f[P.id()]},pathTo:function(M){var P=Bn(M)?g.filter(M)[0]:M[0],N=[],$=P,U=$.id();if(P.length>0)for(N.unshift(P);h[U];){var B=h[U];N.unshift(B.edge),N.unshift(B.node),$=B.node,U=$.id()}return o.spawn(N)}}}},fAr={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),n=r.nodes,i=r.edges,a=n.length,s=new Array(a),o=n,l=function(E){for(var S=0;S<s.length;S++){var T=s[S];if(T.has(E))return S}},u=0;u<a;u++)s[u]=this.spawn(n[u]);for(var d=i.sort(function(b,E){return e(b)-e(E)}),h=0;h<d.length;h++){var f=d[h],p=f.source()[0],g=f.target()[0],m=l(p),_=l(g),v=s[m],y=s[_];m!==_&&(o.merge(f),v.merge(y),s.splice(_,1))}return o}},pAr=cc({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),gAr={aStar:function(e){var r=this.cy(),n=pAr(e),i=n.root,a=n.goal,s=n.heuristic,o=n.directed,l=n.weight;i=r.collection(i)[0],a=r.collection(a)[0];var u=i.id(),d=a.id(),h={},f={},p={},g=new nD(function(U,B){return f[U.id()]-f[B.id()]}),m=new DR,_={},v={},y=function(B,V){g.push(B),m.add(V)},b,E,S=function(){b=g.pop(),E=b.id(),m.delete(E)},T=function(B){return m.has(B)};y(i,u),h[u]=0,f[u]=s(i);for(var C=0;g.size()>0;){if(S(),C++,E===d){for(var x=[],A=a,R=d,I=v[R];x.unshift(A),I!=null&&x.unshift(I),A=_[R],A!=null;)R=A.id(),I=v[R];return{found:!0,distance:h[E],path:this.spawn(x),steps:C}}p[E]=!0;for(var L=b._private.edges,F=0;F<L.length;F++){var O=L[F];if(this.hasElementWithId(O.id())&&!(o&&O.data("source")!==E)){var D=O.source(),M=O.target(),P=D.id()!==E?D:M,N=P.id();if(this.hasElementWithId(N)&&!p[N]){var $=h[E]+l(O);if(!T(N)){h[N]=$,f[N]=$+s(P),y(P,N),_[N]=b,v[N]=O;continue}$<h[N]&&(h[N]=$,f[N]=$+s(P),_[N]=b,v[N]=O)}}}}return{found:!1,distance:void 0,path:void 0,steps:C}}},mAr=cc({weight:function(e){return 1},directed:!1}),_Ar={floydWarshall:function(e){for(var r=this.cy(),n=mAr(e),i=n.weight,a=n.directed,s=i,o=this.byGroup(),l=o.nodes,u=o.edges,d=l.length,h=d*d,f=function(z){return l.indexOf(z)},p=function(z){return l[z]},g=new Array(h),m=0;m<h;m++){var _=m%d,v=(m-_)/d;v===_?g[m]=0:g[m]=1/0}for(var y=new Array(h),b=new Array(h),E=0;E<u.length;E++){var S=u[E],T=S.source()[0],C=S.target()[0];if(T!==C){var x=f(T),A=f(C),R=x*d+A,I=s(S);if(g[R]>I&&(g[R]=I,y[R]=A,b[R]=S),!a){var L=A*d+x;!a&&g[L]>I&&(g[L]=I,y[L]=x,b[L]=S)}}}for(var F=0;F<d;F++)for(var O=0;O<d;O++)for(var D=O*d+F,M=0;M<d;M++){var P=O*d+M,N=F*d+M;g[D]+g[N]<g[P]&&(g[P]=g[D]+g[N],y[P]=y[D])}var $=function(z){return(Bn(z)?r.filter(z):z)[0]},U=function(z){return f($(z))},B={distance:function(z,G){var Y=U(z),W=U(G);return g[Y*d+W]},path:function(z,G){var Y=U(z),W=U(G),Q=p(Y);if(Y===W)return Q.collection();if(y[Y*d+W]==null)return r.collection();var ie=r.collection(),Z=Y,re;for(ie.merge(Q);Y!==W;)Z=Y,Y=y[Y*d+W],re=b[Z*d+Y],ie.merge(re),ie.merge(p(Y));return ie}};return B}},vAr=cc({weight:function(e){return 1},directed:!1,root:null}),yAr={bellmanFord:function(e){var r=this,n=vAr(e),i=n.weight,a=n.directed,s=n.root,o=i,l=this,u=this.cy(),d=this.byGroup(),h=d.edges,f=d.nodes,p=f.length,g=new Bm,m=!1,_=[];s=u.collection(s)[0],h.unmergeBy(function(Ue){return Ue.isLoop()});for(var v=h.length,y=function(Se){var be=g.get(Se.id());return be||(be={},g.set(Se.id(),be)),be},b=function(Se){return(Bn(Se)?u.$(Se):Se)[0]},E=function(Se){return y(b(Se)).dist},S=function(Se){for(var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,ke=b(Se),Ae=[],tt=ke;;){if(tt==null)return r.spawn();var Oe=y(tt),je=Oe.edge,ct=Oe.pred;if(Ae.unshift(tt[0]),tt.same(be)&&Ae.length>0)break;je!=null&&Ae.unshift(je),tt=ct}return l.spawn(Ae)},T=0;T<p;T++){var C=f[T],x=y(C);C.same(s)?x.dist=0:x.dist=1/0,x.pred=null,x.edge=null}for(var A=!1,R=function(Se,be,ke,Ae,tt,Oe){var je=Ae.dist+Oe;je<tt.dist&&!ke.same(Ae.edge)&&(tt.dist=je,tt.pred=Se,tt.edge=ke,A=!0)},I=1;I<p;I++){A=!1;for(var L=0;L<v;L++){var F=h[L],O=F.source(),D=F.target(),M=o(F),P=y(O),N=y(D);R(O,D,F,P,N,M),a||R(D,O,F,N,P,M)}if(!A)break}if(A)for(var $=[],U=0;U<v;U++){var B=h[U],V=B.source(),z=B.target(),G=o(B),Y=y(V).dist,W=y(z).dist;if(Y+G<W||!a&&W+G<Y)if(m||(Pa("Graph contains a negative weight cycle for Bellman-Ford"),m=!0),e.findNegativeWeightCycles!==!1){var Q=[];Y+G<W&&Q.push(V),!a&&W+G<Y&&Q.push(z);for(var ie=Q.length,Z=0;Z<ie;Z++){var re=Q[Z],K=[re];K.push(y(re).edge);for(var j=y(re).pred;K.indexOf(j)===-1;)K.push(j),K.push(y(j).edge),j=y(j).pred;K=K.slice(K.indexOf(j));for(var se=K[0].id(),le=0,_e=2;_e<K.length;_e+=2)K[_e].id()<se&&(se=K[_e].id(),le=_e);K=K.slice(le).concat(K.slice(0,le)),K.push(K[0]);var ye=K.map(function(Ue){return Ue.id()}).join(",");$.indexOf(ye)===-1&&(_.push(l.spawn(K)),$.push(ye))}}else break}return{distanceTo:E,pathTo:S,hasNegativeWeightCycle:m,negativeWeightCycles:_}}},bAr=Math.sqrt(2),EAr=function(e,r,n){n.length===0&&Os("Karger-Stein must be run on a connected (sub)graph");for(var i=n[e],a=i[1],s=i[2],o=r[a],l=r[s],u=n,d=u.length-1;d>=0;d--){var h=u[d],f=h[1],p=h[2];(r[f]===o&&r[p]===l||r[f]===l&&r[p]===o)&&u.splice(d,1)}for(var g=0;g<u.length;g++){var m=u[g];m[1]===l?(u[g]=m.slice(),u[g][1]=o):m[2]===l&&(u[g]=m.slice(),u[g][2]=o)}for(var _=0;_<r.length;_++)r[_]===l&&(r[_]=o);return u},hj=function(e,r,n,i){for(;n>i;){var a=Math.floor(Math.random()*r.length);r=EAr(a,e,r),n--}return r},SAr={kargerStein:function(){var e=this,r=this.byGroup(),n=r.nodes,i=r.edges;i.unmergeBy(function(N){return N.isLoop()});var a=n.length,s=i.length,o=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),l=Math.floor(a/bAr);if(a<2){Os("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],d=0;d<s;d++){var h=i[d];u.push([d,n.indexOf(h.source()),n.indexOf(h.target())])}for(var f=1/0,p=[],g=new Array(a),m=new Array(a),_=new Array(a),v=function($,U){for(var B=0;B<a;B++)U[B]=$[B]},y=0;y<=o;y++){for(var b=0;b<a;b++)m[b]=b;var E=hj(m,u.slice(),a,l),S=E.slice();v(m,_);var T=hj(m,E,l,2),C=hj(_,S,l,2);T.length<=C.length&&T.length<f?(f=T.length,p=T,v(m,g)):C.length<=T.length&&C.length<f&&(f=C.length,p=C,v(_,g))}for(var x=this.spawn(p.map(function(N){return i[N[0]]})),A=this.spawn(),R=this.spawn(),I=g[0],L=0;L<g.length;L++){var F=g[L],O=n[L];F===I?A.merge(O):R.merge(O)}var D=function($){var U=e.spawn();return $.forEach(function(B){U.merge(B),B.connectedEdges().forEach(function(V){e.contains(V)&&!x.contains(V)&&U.merge(V)})}),U},M=[D(A),D(R)],P={cut:x,components:M,partition1:A,partition2:R};return P}},fj,TAr=function(e){return{x:e.x,y:e.y}},_$=function(e,r,n){return{x:e.x*r+n.x,y:e.y*r+n.y}},Dqe=function(e,r,n){return{x:(e.x-n.x)/r,y:(e.y-n.y)/r}},bT=function(e){return{x:e[0],y:e[1]}},CAr=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=1/0,a=r;a<n;a++){var s=e[a];isFinite(s)&&(i=Math.min(s,i))}return i},wAr=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=-1/0,a=r;a<n;a++){var s=e[a];isFinite(s)&&(i=Math.max(s,i))}return i},xAr=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=0,a=0,s=r;s<n;s++){var o=e[s];isFinite(o)&&(i+=o,a++)}return i/a},AAr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?e=e.slice(r,n):(n<e.length&&e.splice(n,e.length-n),r>0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}a&&e.sort(function(f,p){return f-p});var d=e.length,h=Math.floor(d/2);return d%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},RAr=function(e){return Math.PI*e/180},BL=function(e,r){return Math.atan2(r,e)-Math.PI/2},Gue=Math.log2||function(t){return Math.log(t)/Math.log(2)},zue=function(e){return e>0?1:e<0?-1:0},qb=function(e,r){return Math.sqrt(Yv(e,r))},Yv=function(e,r){var n=r.x-e.x,i=r.y-e.y;return n*n+i*i},OAr=function(e){for(var r=e.length,n=0,i=0;i<r;i++)n+=e[i];for(var a=0;a<r;a++)e[a]=e[a]/n;return e},El=function(e,r,n,i){return(1-i)*(1-i)*e+2*(1-i)*i*r+i*i*n},rC=function(e,r,n,i){return{x:El(e.x,r.x,n.x,i),y:El(e.y,r.y,n.y,i)}},IAr=function(e,r,n,i){var a={x:r.x-e.x,y:r.y-e.y},s=qb(e,r),o={x:a.x/s,y:a.y/s};return n=n??0,i=i??n*s,{x:e.x+o.x*i,y:e.y+o.y*i}},e3=function(e,r,n){return Math.max(e,Math.min(n,r))},yu=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},NAr=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},kAr=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},DAr=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Mqe=function(e,r,n){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},r6=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},n6=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,i,a,s;if(r.length===1)n=i=a=s=r[0];else if(r.length===2)n=a=r[0],s=i=r[1];else if(r.length===4){var o=Uo(r,4);n=o[0],i=o[1],a=o[2],s=o[3]}return e.x1-=s,e.x2+=i,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},qxe=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},que=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2<r.x1||r.x2<e.x1||e.y2<r.y1||r.y2<e.y1||e.y1>r.y2||r.y1>e.y2)},$_=function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},Vxe=function(e,r){return $_(e,r.x,r.y)},Lqe=function(e,r){return $_(e,r.x1,r.y1)&&$_(e,r.x2,r.y2)},MAr=(fj=Math.hypot)!==null&&fj!==void 0?fj:function(t,e){return Math.sqrt(t*t+e*e)};function LAr(t,e){if(t.length<3)throw new Error("Need at least 3 vertices");var r=function(x,A){return{x:x.x+A.x,y:x.y+A.y}},n=function(x,A){return{x:x.x-A.x,y:x.y-A.y}},i=function(x,A){return{x:x.x*A,y:x.y*A}},a=function(x,A){return x.x*A.y-x.y*A.x},s=function(x){var A=MAr(x.x,x.y);return A===0?{x:0,y:0}:{x:x.x/A,y:x.y/A}},o=function(x){for(var A=0,R=0;R<x.length;R++){var I=x[R],L=x[(R+1)%x.length];A+=I.x*L.y-L.x*I.y}return A/2},l=function(x,A,R,I){var L=n(A,x),F=n(I,R),O=a(L,F);if(Math.abs(O)<1e-9)return r(x,i(L,.5));var D=a(n(R,x),F)/O;return r(x,i(L,D))},u=t.map(function(C){return{x:C.x,y:C.y}});o(u)<0&&u.reverse();for(var d=u.length,h=[],f=0;f<d;f++){var p=u[f],g=u[(f+1)%d],m=n(g,p),_=s({x:m.y,y:-m.x});h.push(_)}for(var v=h.map(function(C,x){var A=r(u[x],i(C,e)),R=r(u[(x+1)%d],i(C,e));return{p1:A,p2:R}}),y=[],b=0;b<d;b++){var E=v[(b-1+d)%d],S=v[b],T=l(E.p1,E.p2,S.p1,S.p2);y.push(T)}return y}function PAr(t,e,r,n,i,a){var s=HAr(t,e,r,n,i),o=LAr(s,a),l=yu();return o.forEach(function(u){return Mqe(l,u.x,u.y)}),l}var Pqe=function(e,r,n,i,a,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?T1(a,s):l,d=a/2,h=s/2;u=Math.min(u,d,h);var f=u!==d,p=u!==h,g;if(f){var m=n-d+u-o,_=i-h-o,v=n+d-u+o,y=_;if(g=G_(e,r,n,i,m,_,v,y,!1),g.length>0)return g}if(p){var b=n+d+o,E=i-h+u-o,S=b,T=i+h-u+o;if(g=G_(e,r,n,i,b,E,S,T,!1),g.length>0)return g}if(f){var C=n-d+u-o,x=i+h+o,A=n+d-u+o,R=x;if(g=G_(e,r,n,i,C,x,A,R,!1),g.length>0)return g}if(p){var I=n-d-o,L=i-h+u-o,F=I,O=i+h-u+o;if(g=G_(e,r,n,i,I,L,F,O,!1),g.length>0)return g}var D;{var M=n-d+u,P=i-h+u;if(D=kI(e,r,n,i,M,P,u+o),D.length>0&&D[0]<=M&&D[1]<=P)return[D[0],D[1]]}{var N=n+d-u,$=i-h+u;if(D=kI(e,r,n,i,N,$,u+o),D.length>0&&D[0]>=N&&D[1]<=$)return[D[0],D[1]]}{var U=n+d-u,B=i+h-u;if(D=kI(e,r,n,i,U,B,u+o),D.length>0&&D[0]>=U&&D[1]>=B)return[D[0],D[1]]}{var V=n-d+u,z=i+h-u;if(D=kI(e,r,n,i,V,z,u+o),D.length>0&&D[0]<=V&&D[1]>=z)return[D[0],D[1]]}return[]},FAr=function(e,r,n,i,a,s,o){var l=o,u=Math.min(n,a),d=Math.max(n,a),h=Math.min(i,s),f=Math.max(i,s);return u-l<=e&&e<=d+l&&h-l<=r&&r<=f+l},BAr=function(e,r,n,i,a,s,o,l,u){var d={x1:Math.min(n,o,a)-u,x2:Math.max(n,o,a)+u,y1:Math.min(i,l,s)-u,y2:Math.max(i,l,s)+u};return!(e<d.x1||e>d.x2||r<d.y1||r>d.y2)},UAr=function(e,r,n,i){n-=i;var a=r*r-4*e*n;if(a<0)return[];var s=Math.sqrt(a),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},$Ar=function(e,r,n,i,a){var s=1e-5;e===0&&(e=s),r/=e,n/=e,i/=e;var o,l,u,d,h,f,p,g;if(l=(3*n-r*r)/9,u=-(27*i)+r*(9*n-2*(r*r)),u/=54,o=l*l*l+u*u,a[1]=0,p=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),f=u-Math.sqrt(o),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),a[0]=-p+h+f,p+=(h+f)/2,a[4]=a[2]=-p,p=Math.sqrt(3)*(-f+h)/2,a[3]=p,a[5]=-p;return}if(a[5]=a[3]=0,o===0){g=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),a[0]=-p+2*g,a[4]=a[2]=-(g+p);return}l=-l,d=l*l*l,d=Math.acos(u/Math.sqrt(d)),g=2*Math.sqrt(l),a[0]=-p+g*Math.cos(d/3),a[2]=-p+g*Math.cos((d+2*Math.PI)/3),a[4]=-p+g*Math.cos((d+4*Math.PI)/3)},GAr=function(e,r,n,i,a,s,o,l){var u=1*n*n-4*n*a+2*n*o+4*a*a-4*a*o+o*o+i*i-4*i*s+2*i*l+4*s*s-4*s*l+l*l,d=9*n*a-3*n*n-3*n*o-6*a*a+3*a*o+9*i*s-3*i*i-3*i*l-6*s*s+3*s*l,h=3*n*n-6*n*a+n*o-n*e+2*a*a+2*a*e-o*e+3*i*i-6*i*s+i*l-i*r+2*s*s+2*s*r-l*r,f=1*n*a-n*n+n*e-a*e+i*s-i*i+i*r-s*r,p=[];$Ar(u,d,h,f,p);for(var g=1e-7,m=[],_=0;_<6;_+=2)Math.abs(p[_+1])<g&&p[_]>=0&&p[_]<=1&&m.push(p[_]);m.push(1),m.push(0);for(var v=-1,y,b,E,S=0;S<m.length;S++)y=Math.pow(1-m[S],2)*n+2*(1-m[S])*m[S]*a+m[S]*m[S]*o,b=Math.pow(1-m[S],2)*i+2*(1-m[S])*m[S]*s+m[S]*m[S]*l,E=Math.pow(y-e,2)+Math.pow(b-r,2),v>=0?E<v&&(v=E):v=E;return v},zAr=function(e,r,n,i,a,s){var o=[e-n,r-i],l=[a-n,s-i],u=l[0]*l[0]+l[1]*l[1],d=o[0]*o[0]+o[1]*o[1],h=o[0]*l[0]+o[1]*l[1],f=h*h/u;return h<0?d:f>u?(e-a)*(e-a)+(r-s)*(r-s):d-f},Wu=function(e,r,n){for(var i,a,s,o,l,u=0,d=0;d<n.length/2;d++)if(i=n[d*2],a=n[d*2+1],d+1<n.length/2?(s=n[(d+1)*2],o=n[(d+1)*2+1]):(s=n[(d+1-n.length/2)*2],o=n[(d+1-n.length/2)*2+1]),!(i==e&&s==e))if(i>=e&&e>=s||i<=e&&e<=s)l=(e-i)/(s-i)*(o-a)+a,l>r&&u++;else continue;return u%2!==0},f0=function(e,r,n,i,a,s,o,l,u){var d=new Array(n.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var f=Math.cos(-h),p=Math.sin(-h),g=0;g<d.length/2;g++)d[g*2]=s/2*(n[g*2]*f-n[g*2+1]*p),d[g*2+1]=o/2*(n[g*2+1]*f+n[g*2]*p),d[g*2]+=i,d[g*2+1]+=a;var m;if(u>0){var _=m8(d,-u);m=g8(_)}else m=d;return Wu(e,r,m)},qAr=function(e,r,n,i,a,s,o,l){for(var u=new Array(n.length*2),d=0;d<l.length;d++){var h=l[d];u[d*4+0]=h.startX,u[d*4+1]=h.startY,u[d*4+2]=h.stopX,u[d*4+3]=h.stopY;var f=Math.pow(h.cx-e,2)+Math.pow(h.cy-r,2);if(f<=Math.pow(h.radius,2))return!0}return Wu(e,r,u)},g8=function(e){for(var r=new Array(e.length/2),n,i,a,s,o,l,u,d,h=0;h<e.length/4;h++){n=e[h*4],i=e[h*4+1],a=e[h*4+2],s=e[h*4+3],h<e.length/4-1?(o=e[(h+1)*4],l=e[(h+1)*4+1],u=e[(h+1)*4+2],d=e[(h+1)*4+3]):(o=e[0],l=e[1],u=e[2],d=e[3]);var f=G_(n,i,a,s,o,l,u,d,!0);r[h*2]=f[0],r[h*2+1]=f[1]}return r},m8=function(e,r){for(var n=new Array(e.length*2),i,a,s,o,l=0;l<e.length/2;l++){i=e[l*2],a=e[l*2+1],l<e.length/2-1?(s=e[(l+1)*2],o=e[(l+1)*2+1]):(s=e[0],o=e[1]);var u=o-a,d=-(s-i),h=Math.sqrt(u*u+d*d),f=u/h,p=d/h;n[l*4]=i+f*r,n[l*4+1]=a+p*r,n[l*4+2]=s+f*r,n[l*4+3]=o+p*r}return n},VAr=function(e,r,n,i,a,s){var o=n-e,l=i-r;o/=a,l/=s;var u=Math.sqrt(o*o+l*l),d=u-1;if(d<0)return[];var h=d/u;return[(n-e)*h+e,(i-r)*h+r]},Uy=function(e,r,n,i,a,s,o){return e-=a,r-=s,e/=n/2+o,r/=i/2+o,e*e+r*r<=1},kI=function(e,r,n,i,a,s,o){var l=[n-e,i-r],u=[e-a,r-s],d=l[0]*l[0]+l[1]*l[1],h=2*(u[0]*l[0]+u[1]*l[1]),f=u[0]*u[0]+u[1]*u[1]-o*o,p=h*h-4*d*f;if(p<0)return[];var g=(-h+Math.sqrt(p))/(2*d),m=(-h-Math.sqrt(p))/(2*d),_=Math.min(g,m),v=Math.max(g,m),y=[];if(_>=0&&_<=1&&y.push(_),v>=0&&v<=1&&y.push(v),y.length===0)return[];var b=y[0]*l[0]+e,E=y[0]*l[1]+r;if(y.length>1){if(y[0]==y[1])return[b,E];var S=y[1]*l[0]+e,T=y[1]*l[1]+r;return[b,E,S,T]}else return[b,E]},pj=function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},G_=function(e,r,n,i,a,s,o,l,u){var d=e-a,h=n-e,f=o-a,p=r-s,g=i-r,m=l-s,_=f*p-m*d,v=h*p-g*d,y=m*h-f*g;if(y!==0){var b=_/y,E=v/y,S=.001,T=0-S,C=1+S;return T<=b&&b<=C&&T<=E&&E<=C?[e+b*h,r+b*g]:u?[e+b*h,r+b*g]:[]}else return _===0||v===0?pj(e,n,o)===o?[o,l]:pj(e,n,a)===a?[a,s]:pj(a,o,n)===n?[n,i]:[]:[]},HAr=function(e,r,n,i,a){var s=[],o=i/2,l=a/2,u=r,d=n;s.push({x:u+o*e[0],y:d+l*e[1]});for(var h=1;h<e.length/2;h++)s.push({x:u+o*e[h*2],y:d+l*e[h*2+1]});return s},t3=function(e,r,n,i,a,s,o,l){var u=[],d,h=new Array(n.length),f=!0;s==null&&(f=!1);var p;if(f){for(var g=0;g<h.length/2;g++)h[g*2]=n[g*2]*s+i,h[g*2+1]=n[g*2+1]*o+a;if(l>0){var m=m8(h,-l);p=g8(m)}else p=h}else p=n;for(var _,v,y,b,E=0;E<p.length/2;E++)_=p[E*2],v=p[E*2+1],E<p.length/2-1?(y=p[(E+1)*2],b=p[(E+1)*2+1]):(y=p[0],b=p[1]),d=G_(e,r,i,a,_,v,y,b),d.length!==0&&u.push(d[0],d[1]);return u},YAr=function(e,r,n,i,a,s,o,l,u){var d=[],h,f=new Array(n.length*2);u.forEach(function(y,b){b===0?(f[f.length-2]=y.startX,f[f.length-1]=y.startY):(f[b*4-2]=y.startX,f[b*4-1]=y.startY),f[b*4]=y.stopX,f[b*4+1]=y.stopY,h=kI(e,r,i,a,y.cx,y.cy,y.radius),h.length!==0&&d.push(h[0],h[1])});for(var p=0;p<f.length/4;p++)h=G_(e,r,i,a,f[p*4],f[p*4+1],f[p*4+2],f[p*4+3],!1),h.length!==0&&d.push(h[0],h[1]);if(d.length>2){for(var g=[d[0],d[1]],m=Math.pow(g[0]-e,2)+Math.pow(g[1]-r,2),_=1;_<d.length/2;_++){var v=Math.pow(d[_*2]-e,2)+Math.pow(d[_*2+1]-r,2);v<=m&&(g[0]=d[_*2],g[1]=d[_*2+1],m=v)}return g}return d},UL=function(e,r,n){var i=[e[0]-r[0],e[1]-r[1]],a=Math.sqrt(i[0]*i[0]+i[1]*i[1]),s=(a-n)/a;return s<0&&(s=1e-5),[r[0]+s*i[0],r[1]+s*i[1]]},Wc=function(e,r){var n=nte(e,r);return n=Fqe(n),n},Fqe=function(e){for(var r,n,i=e.length/2,a=1/0,s=1/0,o=-1/0,l=-1/0,u=0;u<i;u++)r=e[2*u],n=e[2*u+1],a=Math.min(a,r),o=Math.max(o,r),s=Math.min(s,n),l=Math.max(l,n);for(var d=2/(o-a),h=2/(l-s),f=0;f<i;f++)r=e[2*f]=e[2*f]*d,n=e[2*f+1]=e[2*f+1]*h,a=Math.min(a,r),o=Math.max(o,r),s=Math.min(s,n),l=Math.max(l,n);if(s<-1)for(var p=0;p<i;p++)n=e[2*p+1]=e[2*p+1]+(-1-s);return e},nte=function(e,r){var n=1/e*2*Math.PI,i=e%2===0?Math.PI/2+n/2:Math.PI/2;i+=r;for(var a=new Array(e*2),s,o=0;o<e;o++)s=o*n+i,a[2*o]=Math.cos(s),a[2*o+1]=Math.sin(-s);return a},T1=function(e,r){return Math.min(e/4,r/4,8)},Bqe=function(e,r){return Math.min(e/10,r/10,8)},Vue=function(){return 8},WAr=function(e,r,n){return[e-2*r+n,2*(r-e),e]},ite=function(e,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}};function gj(t,e){function r(h){for(var f=[],p=0;p<h.length;p++){var g=h[p],m=h[(p+1)%h.length],_={x:m.x-g.x,y:m.y-g.y},v={x:-_.y,y:_.x},y=Math.sqrt(v.x*v.x+v.y*v.y);f.push({x:v.x/y,y:v.y/y})}return f}function n(h,f){var p=1/0,g=-1/0,m=ed(h),_;try{for(m.s();!(_=m.n()).done;){var v=_.value,y=v.x*f.x+v.y*f.y;p=Math.min(p,y),g=Math.max(g,y)}}catch(b){m.e(b)}finally{m.f()}return{min:p,max:g}}function i(h,f){return!(h.max<f.min||f.max<h.min)}var a=[].concat(d8(r(t)),d8(r(e))),s=ed(a),o;try{for(s.s();!(o=s.n()).done;){var l=o.value,u=n(t,l),d=n(e,l);if(!i(u,d))return!1}}catch(h){s.e(h)}finally{s.f()}return!0}var KAr=cc({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),jAr={pageRank:function(e){for(var r=KAr(e),n=r.dampingFactor,i=r.precision,a=r.iterations,s=r.weight,o=this._private.cy,l=this.byGroup(),u=l.nodes,d=l.edges,h=u.length,f=h*h,p=d.length,g=new Array(f),m=new Array(h),_=(1-n)/h,v=0;v<h;v++){for(var y=0;y<h;y++){var b=v*h+y;g[b]=0}m[v]=0}for(var E=0;E<p;E++){var S=d[E],T=S.data("source"),C=S.data("target");if(T!==C){var x=u.indexOfId(T),A=u.indexOfId(C),R=s(S),I=A*h+x;g[I]+=R,m[x]+=R}}for(var L=1/h+_,F=0;F<h;F++)if(m[F]===0)for(var O=0;O<h;O++){var D=O*h+F;g[D]=L}else for(var M=0;M<h;M++){var P=M*h+F;g[P]=g[P]/m[F]+_}for(var N=new Array(h),$=new Array(h),U,B=0;B<h;B++)N[B]=1;for(var V=0;V<a;V++){for(var z=0;z<h;z++)$[z]=0;for(var G=0;G<h;G++)for(var Y=0;Y<h;Y++){var W=G*h+Y;$[G]+=g[W]*N[Y]}OAr($),U=N,N=$,$=U;for(var Q=0,ie=0;ie<h;ie++){var Z=U[ie]-N[ie];Q+=Z*Z}if(Q<i)break}var re={rank:function(j){return j=o.collection(j)[0],N[u.indexOf(j)]}};return re}},Hxe=cc({root:null,weight:function(e){return 1},directed:!1,alpha:0}),nC={degreeCentralityNormalized:function(e){e=Hxe(e);var r=this.cy(),n=this.nodes(),i=n.length;if(e.directed){for(var d={},h={},f=0,p=0,g=0;g<i;g++){var m=n[g],_=m.id();e.root=m;var v=this.degreeCentrality(e);f<v.indegree&&(f=v.indegree),p<v.outdegree&&(p=v.outdegree),d[_]=v.indegree,h[_]=v.outdegree}return{indegree:function(b){return f==0?0:(Bn(b)&&(b=r.filter(b)),d[b.id()]/f)},outdegree:function(b){return p===0?0:(Bn(b)&&(b=r.filter(b)),h[b.id()]/p)}}}else{for(var a={},s=0,o=0;o<i;o++){var l=n[o];e.root=l;var u=this.degreeCentrality(e);s<u.degree&&(s=u.degree),a[l.id()]=u.degree}return{degree:function(b){return s===0?0:(Bn(b)&&(b=r.filter(b)),a[b.id()]/s)}}}},degreeCentrality:function(e){e=Hxe(e);var r=this.cy(),n=this,i=e,a=i.root,s=i.weight,o=i.directed,l=i.alpha;if(a=r.collection(a)[0],o){for(var p=a.connectedEdges(),g=p.filter(function(T){return T.target().same(a)&&n.has(T)}),m=p.filter(function(T){return T.source().same(a)&&n.has(T)}),_=g.length,v=m.length,y=0,b=0,E=0;E<g.length;E++)y+=s(g[E]);for(var S=0;S<m.length;S++)b+=s(m[S]);return{indegree:Math.pow(_,1-l)*Math.pow(y,l),outdegree:Math.pow(v,1-l)*Math.pow(b,l)}}else{for(var u=a.connectedEdges().intersection(n),d=u.length,h=0,f=0;f<u.length;f++)h+=s(u[f]);return{degree:Math.pow(d,1-l)*Math.pow(h,l)}}}};nC.dc=nC.degreeCentrality;nC.dcn=nC.degreeCentralityNormalised=nC.degreeCentralityNormalized;var Yxe=cc({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),iC={closenessCentralityNormalized:function(e){for(var r=Yxe(e),n=r.harmonic,i=r.weight,a=r.directed,s=this.cy(),o={},l=0,u=this.nodes(),d=this.floydWarshall({weight:i,directed:a}),h=0;h<u.length;h++){for(var f=0,p=u[h],g=0;g<u.length;g++)if(h!==g){var m=d.distance(p,u[g]);n?f+=1/m:f+=m}n||(f=1/f),l<f&&(l=f),o[p.id()]=f}return{closeness:function(v){return l==0?0:(Bn(v)?v=s.filter(v)[0].id():v=v.id(),o[v]/l)}}},closenessCentrality:function(e){var r=Yxe(e),n=r.root,i=r.weight,a=r.directed,s=r.harmonic;n=this.filter(n)[0];for(var o=this.dijkstra({root:n,weight:i,directed:a}),l=0,u=this.nodes(),d=0;d<u.length;d++){var h=u[d];if(!h.same(n)){var f=o.distanceTo(h);s?l+=1/f:l+=f}}return s?l:1/l}};iC.cc=iC.closenessCentrality;iC.ccn=iC.closenessCentralityNormalised=iC.closenessCentralityNormalized;var XAr=cc({weight:null,directed:!1}),ate={betweennessCentrality:function(e){for(var r=XAr(e),n=r.directed,i=r.weight,a=i!=null,s=this.cy(),o=this.nodes(),l={},u={},d=0,h={set:function(b,E){u[b]=E,E>d&&(d=E)},get:function(b){return u[b]}},f=0;f<o.length;f++){var p=o[f],g=p.id();n?l[g]=p.outgoers().nodes():l[g]=p.openNeighborhood().nodes(),h.set(g,0)}for(var m=function(){for(var b=o[_].id(),E=[],S={},T={},C={},x=new nD(function(G,Y){return C[G]-C[Y]}),A=0;A<o.length;A++){var R=o[A].id();S[R]=[],T[R]=0,C[R]=1/0}for(T[b]=1,C[b]=0,x.push(b);!x.empty();){var I=x.pop();if(E.push(I),a)for(var L=0;L<l[I].length;L++){var F=l[I][L],O=s.getElementById(I),D=void 0;O.edgesTo(F).length>0?D=O.edgesTo(F)[0]:D=F.edgesTo(O)[0];var M=i(D);F=F.id(),C[F]>C[I]+M&&(C[F]=C[I]+M,x.nodes.indexOf(F)<0?x.push(F):x.updateItem(F),T[F]=0,S[F]=[]),C[F]==C[I]+M&&(T[F]=T[F]+T[I],S[F].push(I))}else for(var P=0;P<l[I].length;P++){var N=l[I][P].id();C[N]==1/0&&(x.push(N),C[N]=C[I]+1),C[N]==C[I]+1&&(T[N]=T[N]+T[I],S[N].push(I))}}for(var $={},U=0;U<o.length;U++)$[o[U].id()]=0;for(;E.length>0;){for(var B=E.pop(),V=0;V<S[B].length;V++){var z=S[B][V];$[z]=$[z]+T[z]/T[B]*(1+$[B])}B!=o[_].id()&&h.set(B,h.get(B)+$[B])}},_=0;_<o.length;_++)m();var v={betweenness:function(b){var E=s.collection(b).id();return h.get(E)},betweennessNormalized:function(b){if(d==0)return 0;var E=s.collection(b).id();return h.get(E)/d}};return v.betweennessNormalised=v.betweennessNormalized,v}};ate.bc=ate.betweennessCentrality;var QAr=cc({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),ZAr=function(e){return QAr(e)},JAr=function(e,r){for(var n=0,i=0;i<r.length;i++)n+=r[i](e);return n},eRr=function(e,r,n){for(var i=0;i<r;i++)e[i*r+i]=n},Uqe=function(e,r){for(var n,i=0;i<r;i++){n=0;for(var a=0;a<r;a++)n+=e[a*r+i];for(var s=0;s<r;s++)e[s*r+i]=e[s*r+i]/n}},tRr=function(e,r,n){for(var i=new Array(n*n),a=0;a<n;a++){for(var s=0;s<n;s++)i[a*n+s]=0;for(var o=0;o<n;o++)for(var l=0;l<n;l++)i[a*n+l]+=e[a*n+o]*r[o*n+l]}return i},rRr=function(e,r,n){for(var i=e.slice(0),a=1;a<n;a++)e=tRr(e,i,r);return e},nRr=function(e,r,n){for(var i=new Array(r*r),a=0;a<r*r;a++)i[a]=Math.pow(e[a],n);return Uqe(i,r),i},iRr=function(e,r,n,i){for(var a=0;a<n;a++){var s=Math.round(e[a]*Math.pow(10,i))/Math.pow(10,i),o=Math.round(r[a]*Math.pow(10,i))/Math.pow(10,i);if(s!==o)return!1}return!0},aRr=function(e,r,n,i){for(var a=[],s=0;s<r;s++){for(var o=[],l=0;l<r;l++)Math.round(e[s*r+l]*1e3)/1e3>0&&o.push(n[l]);o.length!==0&&a.push(i.collection(o))}return a},sRr=function(e,r){for(var n=0;n<e.length;n++)if(!r[n]||e[n].id()!==r[n].id())return!1;return!0},oRr=function(e){for(var r=0;r<e.length;r++)for(var n=0;n<e.length;n++)r!=n&&sRr(e[r],e[n])&&e.splice(n,1);return e},Wxe=function(e){for(var r=this.nodes(),n=this.edges(),i=this.cy(),a=ZAr(e),s={},o=0;o<r.length;o++)s[r[o].id()]=o;for(var l=r.length,u=l*l,d=new Array(u),h,f=0;f<u;f++)d[f]=0;for(var p=0;p<n.length;p++){var g=n[p],m=s[g.source().id()],_=s[g.target().id()],v=JAr(g,a.attributes);d[m*l+_]+=v,d[_*l+m]+=v}eRr(d,l,a.multFactor),Uqe(d,l);for(var y=!0,b=0;y&&b<a.maxIterations;)y=!1,h=rRr(d,l,a.expandFactor),d=nRr(h,l,a.inflateFactor),iRr(d,h,u,4)||(y=!0),b++;var E=aRr(d,l,r,i);return E=oRr(E),E},lRr={markovClustering:Wxe,mcl:Wxe},cRr=function(e){return e},$qe=function(e,r){return Math.abs(r-e)},Kxe=function(e,r,n){return e+$qe(r,n)},jxe=function(e,r,n){return e+Math.pow(n-r,2)},uRr=function(e){return Math.sqrt(e)},dRr=function(e,r,n){return Math.max(e,$qe(r,n))},zO=function(e,r,n,i,a){for(var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:cRr,o=i,l,u,d=0;d<e;d++)l=r(d),u=n(d),o=a(o,l,u);return s(o)},RA={euclidean:function(e,r,n){return e>=2?zO(e,r,n,0,jxe,uRr):zO(e,r,n,0,Kxe)},squaredEuclidean:function(e,r,n){return zO(e,r,n,0,jxe)},manhattan:function(e,r,n){return zO(e,r,n,0,Kxe)},max:function(e,r,n){return zO(e,r,n,-1/0,dRr)}};RA["squared-euclidean"]=RA.squaredEuclidean;RA.squaredeuclidean=RA.squaredEuclidean;function v$(t,e,r,n,i,a){var s;return Qs(t)?s=t:s=RA[t]||RA.euclidean,e===0&&Qs(t)?s(i,a):s(e,r,n,i,a)}var hRr=cc({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Hue=function(e){return hRr(e)},_8=function(e,r,n,i,a){var s=a!=="kMedoids",o=s?function(h){return n[h]}:function(h){return i[h](n)},l=function(f){return i[f](r)},u=n,d=r;return v$(e,i.length,o,l,u,d)},mj=function(e,r,n){for(var i=n.length,a=new Array(i),s=new Array(i),o=new Array(r),l=null,u=0;u<i;u++)a[u]=e.min(n[u]).value,s[u]=e.max(n[u]).value;for(var d=0;d<r;d++){l=[];for(var h=0;h<i;h++)l[h]=Math.random()*(s[h]-a[h])+a[h];o[d]=l}return o},Gqe=function(e,r,n,i,a){for(var s=1/0,o=0,l=0;l<r.length;l++){var u=_8(n,e,r[l],i,a);u<s&&(s=u,o=l)}return o},zqe=function(e,r,n){for(var i=[],a=null,s=0;s<r.length;s++)a=r[s],n[a.id()]===e&&i.push(a);return i},fRr=function(e,r,n){return Math.abs(r-e)<=n},pRr=function(e,r,n){for(var i=0;i<e.length;i++)for(var a=0;a<e[i].length;a++){var s=Math.abs(e[i][a]-r[i][a]);if(s>n)return!1}return!0},gRr=function(e,r,n){for(var i=0;i<n;i++)if(e===r[i])return!0;return!1},Xxe=function(e,r){var n=new Array(r);if(e.length<50)for(var i=0;i<r;i++){for(var a=e[Math.floor(Math.random()*e.length)];gRr(a,n,i);)a=e[Math.floor(Math.random()*e.length)];n[i]=a}else for(var s=0;s<r;s++)n[s]=e[Math.floor(Math.random()*e.length)];return n},Qxe=function(e,r,n){for(var i=0,a=0;a<r.length;a++)i+=_8("manhattan",r[a],e,n,"kMedoids");return i},mRr=function(e){var r=this.cy(),n=this.nodes(),i=null,a=Hue(e),s=new Array(a.k),o={},l;a.testMode?typeof a.testCentroids=="number"?(a.testCentroids,l=mj(n,a.k,a.attributes)):ml(a.testCentroids)==="object"?l=a.testCentroids:l=mj(n,a.k,a.attributes):l=mj(n,a.k,a.attributes);for(var u=!0,d=0;u&&d<a.maxIterations;){for(var h=0;h<n.length;h++)i=n[h],o[i.id()]=Gqe(i,l,a.distance,a.attributes,"kMeans");u=!1;for(var f=0;f<a.k;f++){var p=zqe(f,n,o);if(p.length!==0){for(var g=a.attributes.length,m=l[f],_=new Array(g),v=new Array(g),y=0;y<g;y++){v[y]=0;for(var b=0;b<p.length;b++)i=p[b],v[y]+=a.attributes[y](i);_[y]=v[y]/p.length,fRr(_[y],m[y],a.sensitivityThreshold)||(u=!0)}l[f]=_,s[f]=r.collection(p)}}d++}return s},_Rr=function(e){var r=this.cy(),n=this.nodes(),i=null,a=Hue(e),s=new Array(a.k),o,l={},u,d=new Array(a.k);a.testMode?typeof a.testCentroids=="number"||(ml(a.testCentroids)==="object"?o=a.testCentroids:o=Xxe(n,a.k)):o=Xxe(n,a.k);for(var h=!0,f=0;h&&f<a.maxIterations;){for(var p=0;p<n.length;p++)i=n[p],l[i.id()]=Gqe(i,o,a.distance,a.attributes,"kMedoids");h=!1;for(var g=0;g<o.length;g++){var m=zqe(g,n,l);if(m.length!==0){d[g]=Qxe(o[g],m,a.attributes);for(var _=0;_<m.length;_++)u=Qxe(m[_],m,a.attributes),u<d[g]&&(d[g]=u,o[g]=m[_],h=!0);s[g]=r.collection(m)}}f++}return s},vRr=function(e,r,n,i,a){for(var s,o,l=0;l<r.length;l++)for(var u=0;u<e.length;u++)i[l][u]=Math.pow(n[l][u],a.m);for(var d=0;d<e.length;d++)for(var h=0;h<a.attributes.length;h++){s=0,o=0;for(var f=0;f<r.length;f++)s+=i[f][d]*a.attributes[h](r[f]),o+=i[f][d];e[d][h]=s/o}},yRr=function(e,r,n,i,a){for(var s=0;s<e.length;s++)r[s]=e[s].slice();for(var o,l,u,d=2/(a.m-1),h=0;h<n.length;h++)for(var f=0;f<i.length;f++){o=0;for(var p=0;p<n.length;p++)l=_8(a.distance,i[f],n[h],a.attributes,"cmeans"),u=_8(a.distance,i[f],n[p],a.attributes,"cmeans"),o+=Math.pow(l/u,d);e[f][h]=1/o}},bRr=function(e,r,n,i){for(var a=new Array(n.k),s=0;s<a.length;s++)a[s]=[];for(var o,l,u=0;u<r.length;u++){o=-1/0,l=-1;for(var d=0;d<r[0].length;d++)r[u][d]>o&&(o=r[u][d],l=d);a[l].push(e[u])}for(var h=0;h<a.length;h++)a[h]=i.collection(a[h]);return a},Zxe=function(e){var r=this.cy(),n=this.nodes(),i=Hue(e),a,s,o,l,u;l=new Array(n.length);for(var d=0;d<n.length;d++)l[d]=new Array(i.k);o=new Array(n.length);for(var h=0;h<n.length;h++)o[h]=new Array(i.k);for(var f=0;f<n.length;f++){for(var p=0,g=0;g<i.k;g++)o[f][g]=Math.random(),p+=o[f][g];for(var m=0;m<i.k;m++)o[f][m]=o[f][m]/p}s=new Array(i.k);for(var _=0;_<i.k;_++)s[_]=new Array(i.attributes.length);u=new Array(n.length);for(var v=0;v<n.length;v++)u[v]=new Array(i.k);for(var y=!0,b=0;y&&b<i.maxIterations;)y=!1,vRr(s,n,o,u,i),yRr(o,l,s,n,i),pRr(o,l,i.sensitivityThreshold)||(y=!0),b++;return a=bRr(n,o,i,r),{clusters:a,degreeOfMembership:o}},ERr={kMeans:mRr,kMedoids:_Rr,fuzzyCMeans:Zxe,fcm:Zxe},SRr=cc({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),TRr={single:"min",complete:"max"},CRr=function(e){var r=SRr(e),n=TRr[r.linkage];return n!=null&&(r.linkage=n),r},Jxe=function(e,r,n,i,a){for(var s=0,o=1/0,l,u=a.attributes,d=function(A,R){return v$(a.distance,u.length,function(I){return u[I](A)},function(I){return u[I](R)},A,R)},h=0;h<e.length;h++){var f=e[h].key,p=n[f][i[f]];p<o&&(s=f,o=p)}if(a.mode==="threshold"&&o>=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var g=r[s],m=r[i[s]],_;a.mode==="dendrogram"?_={left:g,right:m,key:g.key}:_={value:g.value.concat(m.value),key:g.key},e[g.index]=_,e.splice(m.index,1),r[g.key]=_;for(var v=0;v<e.length;v++){var y=e[v];g.key===y.key?l=1/0:a.linkage==="min"?(l=n[g.key][y.key],n[g.key][y.key]>n[m.key][y.key]&&(l=n[m.key][y.key])):a.linkage==="max"?(l=n[g.key][y.key],n[g.key][y.key]<n[m.key][y.key]&&(l=n[m.key][y.key])):a.linkage==="mean"?l=(n[g.key][y.key]*g.size+n[m.key][y.key]*m.size)/(g.size+m.size):a.mode==="dendrogram"?l=d(y.value,g.value):l=d(y.value[0],g.value[0]),n[g.key][y.key]=n[y.key][g.key]=l}for(var b=0;b<e.length;b++){var E=e[b].key;if(i[E]===g.key||i[E]===m.key){for(var S=E,T=0;T<e.length;T++){var C=e[T].key;n[E][C]<n[E][S]&&(S=C)}i[E]=S}e[b].index=b}return g.key=m.key=g.index=m.index=null,!0},ET=function(e,r,n){e&&(e.value?r.push(e.value):(e.left&&ET(e.left,r),e.right&&ET(e.right,r)))},ste=function(e,r){if(!e)return"";if(e.left&&e.right){var n=ste(e.left,r),i=ste(e.right,r),a=r.add({group:"nodes",data:{id:n+","+i}});return r.add({group:"edges",data:{source:n,target:a.id()}}),r.add({group:"edges",data:{source:i,target:a.id()}}),a.id()}else if(e.value)return e.value.id()},ote=function(e,r,n){if(!e)return[];var i=[],a=[],s=[];return r===0?(e.left&&ET(e.left,i),e.right&&ET(e.right,a),s=i.concat(a),[n.collection(s)]):r===1?e.value?[n.collection(e.value)]:(e.left&&ET(e.left,i),e.right&&ET(e.right,a),[n.collection(i),n.collection(a)]):e.value?[n.collection(e.value)]:(e.left&&(i=ote(e.left,r-1,n)),e.right&&(a=ote(e.right,r-1,n)),i.concat(a))},eAe=function(e){for(var r=this.cy(),n=this.nodes(),i=CRr(e),a=i.attributes,s=function(b,E){return v$(i.distance,a.length,function(S){return a[S](b)},function(S){return a[S](E)},b,E)},o=[],l=[],u=[],d=[],h=0;h<n.length;h++){var f={value:i.mode==="dendrogram"?n[h]:[n[h]],key:h,index:h};o[h]=f,d[h]=f,l[h]=[],u[h]=0}for(var p=0;p<o.length;p++)for(var g=0;g<=p;g++){var m=void 0;i.mode==="dendrogram"?m=p===g?1/0:s(o[p].value,o[g].value):m=p===g?1/0:s(o[p].value[0],o[g].value[0]),l[p][g]=m,l[g][p]=m,m<l[p][u[p]]&&(u[p]=g)}for(var _=Jxe(o,d,l,u,i);_;)_=Jxe(o,d,l,u,i);var v;return i.mode==="dendrogram"?(v=ote(o[0],i.dendrogramDepth,r),i.addDendrogram&&ste(o[0],r)):(v=new Array(o.length),o.forEach(function(y,b){y.key=y.index=null,v[b]=r.collection(y.value)})),v},wRr={hierarchicalClustering:eAe,hca:eAe},xRr=cc({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),ARr=function(e){var r=e.damping,n=e.preference;.5<=r&&r<1||Os("Damping must range on [0.5, 1).  Got: ".concat(r));var i=["median","mean","min","max"];return i.some(function(a){return a===n})||Gr(n)||Os("Preference must be one of [".concat(i.map(function(a){return"'".concat(a,"'")}).join(", "),"] or a number.  Got: ").concat(n)),xRr(e)},RRr=function(e,r,n,i){var a=function(o,l){return i[l](o)};return-v$(e,i.length,function(s){return a(r,s)},function(s){return a(n,s)},r,n)},ORr=function(e,r){var n=null;return r==="median"?n=AAr(e):r==="mean"?n=xAr(e):r==="min"?n=CAr(e):r==="max"?n=wAr(e):n=r,n},IRr=function(e,r,n){for(var i=[],a=0;a<e;a++)r[a*e+a]+n[a*e+a]>0&&i.push(a);return i},tAe=function(e,r,n){for(var i=[],a=0;a<e;a++){for(var s=-1,o=-1/0,l=0;l<n.length;l++){var u=n[l];r[a*e+u]>o&&(s=u,o=r[a*e+u])}s>0&&i.push(s)}for(var d=0;d<n.length;d++)i[n[d]]=n[d];return i},NRr=function(e,r,n){for(var i=tAe(e,r,n),a=0;a<n.length;a++){for(var s=[],o=0;o<i.length;o++)i[o]===n[a]&&s.push(o);for(var l=-1,u=-1/0,d=0;d<s.length;d++){for(var h=0,f=0;f<s.length;f++)h+=r[s[f]*e+s[d]];h>u&&(l=d,u=h)}n[a]=s[l]}return i=tAe(e,r,n),i},rAe=function(e){for(var r=this.cy(),n=this.nodes(),i=ARr(e),a={},s=0;s<n.length;s++)a[n[s].id()]=s;var o,l,u,d,h,f;o=n.length,l=o*o,u=new Array(l);for(var p=0;p<l;p++)u[p]=-1/0;for(var g=0;g<o;g++)for(var m=0;m<o;m++)g!==m&&(u[g*o+m]=RRr(i.distance,n[g],n[m],i.attributes));d=ORr(u,i.preference);for(var _=0;_<o;_++)u[_*o+_]=d;h=new Array(l);for(var v=0;v<l;v++)h[v]=0;f=new Array(l);for(var y=0;y<l;y++)f[y]=0;for(var b=new Array(o),E=new Array(o),S=new Array(o),T=0;T<o;T++)b[T]=0,E[T]=0,S[T]=0;for(var C=new Array(o*i.minIterations),x=0;x<C.length;x++)C[x]=0;var A;for(A=0;A<i.maxIterations;A++){for(var R=0;R<o;R++){for(var I=-1/0,L=-1/0,F=-1,O=0,D=0;D<o;D++)b[D]=h[R*o+D],O=f[R*o+D]+u[R*o+D],O>=I?(L=I,I=O,F=D):O>L&&(L=O);for(var M=0;M<o;M++)h[R*o+M]=(1-i.damping)*(u[R*o+M]-I)+i.damping*b[M];h[R*o+F]=(1-i.damping)*(u[R*o+F]-L)+i.damping*b[F]}for(var P=0;P<o;P++){for(var N=0,$=0;$<o;$++)b[$]=f[$*o+P],E[$]=Math.max(0,h[$*o+P]),N+=E[$];N-=E[P],E[P]=h[P*o+P],N+=E[P];for(var U=0;U<o;U++)f[U*o+P]=(1-i.damping)*Math.min(0,N-E[U])+i.damping*b[U];f[P*o+P]=(1-i.damping)*(N-E[P])+i.damping*b[P]}for(var B=0,V=0;V<o;V++){var z=f[V*o+V]+h[V*o+V]>0?1:0;C[A%i.minIterations*o+V]=z,B+=z}if(B>0&&(A>=i.minIterations-1||A==i.maxIterations-1)){for(var G=0,Y=0;Y<o;Y++){S[Y]=0;for(var W=0;W<i.minIterations;W++)S[Y]+=C[W*o+Y];(S[Y]===0||S[Y]===i.minIterations)&&G++}if(G===o)break}}for(var Q=IRr(o,h,f),ie=NRr(o,u,Q),Z={},re=0;re<Q.length;re++)Z[Q[re]]=[];for(var K=0;K<n.length;K++){var j=a[n[K].id()],se=ie[j];se!=null&&Z[se].push(n[K])}for(var le=new Array(Q.length),_e=0;_e<Q.length;_e++)le[_e]=r.collection(Z[Q[_e]]);return le},kRr={affinityPropagation:rAe,ap:rAe},DRr=cc({root:void 0,directed:!1}),MRr={hierholzer:function(e){if(!fa(e)){var r=arguments;e={root:r[0],directed:r[1]}}var n=DRr(e),i=n.root,a=n.directed,s=this,o=!1,l,u,d;i&&(d=Bn(i)?this.filter(i)[0].id():i[0].id());var h={},f={};a?s.forEach(function(y){var b=y.id();if(y.isNode()){var E=y.indegree(!0),S=y.outdegree(!0),T=E-S,C=S-E;T==1?l?o=!0:l=b:C==1?u?o=!0:u=b:(C>1||T>1)&&(o=!0),h[b]=[],y.outgoers().forEach(function(x){x.isEdge()&&h[b].push(x.id())})}else f[b]=[void 0,y.target().id()]}):s.forEach(function(y){var b=y.id();if(y.isNode()){var E=y.degree(!0);E%2&&(l?u?o=!0:u=b:l=b),h[b]=[],y.connectedEdges().forEach(function(S){return h[b].push(S.id())})}else f[b]=[y.source().id(),y.target().id()]});var p={found:!1,trail:void 0};if(o)return p;if(u&&l)if(a){if(d&&u!=d)return p;d=u}else{if(d&&u!=d&&l!=d)return p;d||(d=u)}else d||(d=s[0].id());var g=function(b){for(var E=b,S=[b],T,C,x;h[E].length;)T=h[E].shift(),C=f[T][0],x=f[T][1],E!=x?(h[x]=h[x].filter(function(A){return A!=T}),E=x):!a&&E!=C&&(h[C]=h[C].filter(function(A){return A!=T}),E=C),S.unshift(T),S.unshift(E);return S},m=[],_=[];for(_=g(d);_.length!=1;)h[_[0]].length==0?(m.unshift(s.getElementById(_.shift())),m.unshift(s.getElementById(_.shift()))):_=g(_.shift()).concat(_);m.unshift(s.getElementById(_.shift()));for(var v in h)if(h[v].length)return p;return p.found=!0,p.trail=this.spawn(m,!0),p}},$L=function(){var e=this,r={},n=0,i=0,a=[],s=[],o={},l=function(f,p){for(var g=s.length-1,m=[],_=e.spawn();s[g].x!=f||s[g].y!=p;)m.push(s.pop().edge),g--;m.push(s.pop().edge),m.forEach(function(v){var y=v.connectedNodes().intersection(e);_.merge(v),y.forEach(function(b){var E=b.id(),S=b.connectedEdges().intersection(e);_.merge(b),r[E].cutVertex?_.merge(S.filter(function(T){return T.isLoop()})):_.merge(S)})}),a.push(_)},u=function(f,p,g){f===g&&(i+=1),r[p]={id:n,low:n++,cutVertex:!1};var m=e.getElementById(p).connectedEdges().intersection(e);if(m.size()===0)a.push(e.spawn(e.getElementById(p)));else{var _,v,y,b;m.forEach(function(E){_=E.source().id(),v=E.target().id(),y=_===p?v:_,y!==g&&(b=E.id(),o[b]||(o[b]=!0,s.push({x:p,y,edge:E})),y in r?r[p].low=Math.min(r[p].low,r[y].id):(u(f,y,p),r[p].low=Math.min(r[p].low,r[y].low),r[p].id<=r[y].low&&(r[p].cutVertex=!0,l(p,y))))})}};e.forEach(function(h){if(h.isNode()){var f=h.id();f in r||(i=0,u(f,f),r[f].cutVertex=i>1)}});var d=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(d),components:a}},LRr={hopcroftTarjanBiconnected:$L,htbc:$L,htb:$L,hopcroftTarjanBiconnectedComponents:$L},GL=function(){var e=this,r={},n=0,i=[],a=[],s=e.spawn(e),o=function(u){a.push(u),r[u]={index:n,low:n++,explored:!1};var d=e.getElementById(u).connectedEdges().intersection(e);if(d.forEach(function(m){var _=m.target().id();_!==u&&(_ in r||o(_),r[_].explored||(r[u].low=Math.min(r[u].low,r[_].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var f=a.pop();if(h.merge(e.getElementById(f)),r[f].low=r[u].index,r[f].explored=!0,f===u)break}var p=h.edgesWith(h),g=h.merge(p);i.push(g),s=s.difference(g)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:i}},PRr={tarjanStronglyConnected:GL,tsc:GL,tscc:GL,tarjanStronglyConnectedComponents:GL},qqe={};[Jk,hAr,fAr,gAr,_Ar,yAr,SAr,jAr,nC,iC,ate,lRr,ERr,wRr,kRr,MRr,LRr,PRr].forEach(function(t){Yn(qqe,t)});var Vqe=0,Hqe=1,Yqe=2,Jf=function(e){if(!(this instanceof Jf))return new Jf(e);this.id="Thenable/1.0.7",this.state=Vqe,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Jf.prototype={fulfill:function(e){return nAe(this,Hqe,"fulfillValue",e)},reject:function(e){return nAe(this,Yqe,"rejectReason",e)},then:function(e,r){var n=this,i=new Jf;return n.onFulfilled.push(aAe(e,i,"fulfill")),n.onRejected.push(aAe(r,i,"reject")),Wqe(n),i.proxy}};var nAe=function(e,r,n,i){return e.state===Vqe&&(e.state=r,e[n]=i,Wqe(e)),e},Wqe=function(e){e.state===Hqe?iAe(e,"onFulfilled",e.fulfillValue):e.state===Yqe&&iAe(e,"onRejected",e.rejectReason)},iAe=function(e,r,n){if(e[r].length!==0){var i=e[r];e[r]=[];var a=function(){for(var o=0;o<i.length;o++)i[o](n)};typeof setImmediate=="function"?setImmediate(a):setTimeout(a,0)}},aAe=function(e,r,n){return function(i){if(typeof e!="function")r[n].call(r,i);else{var a;try{a=e(i)}catch(s){r.reject(s);return}Kqe(r,a)}}},Kqe=function(e,r){if(e===r||e.proxy===r){e.reject(new TypeError("cannot resolve promise with itself"));return}var n;if(ml(r)==="object"&&r!==null||typeof r=="function")try{n=r.then}catch(a){e.reject(a);return}if(typeof n=="function"){var i=!1;try{n.call(r,function(a){i||(i=!0,a===r?e.reject(new TypeError("circular thenable chain")):Kqe(e,a))},function(a){i||(i=!0,e.reject(a))})}catch(a){i||e.reject(a)}return}e.fulfill(r)};Jf.all=function(t){return new Jf(function(e,r){for(var n=new Array(t.length),i=0,a=function(l,u){n[l]=u,i++,i===t.length&&e(n)},s=0;s<t.length;s++)(function(o){var l=t[o],u=l!=null&&l.then!=null;if(u)l.then(function(h){a(o,h)},function(h){r(h)});else{var d=l;a(o,d)}})(s)})};Jf.resolve=function(t){return new Jf(function(e,r){e(t)})};Jf.reject=function(t){return new Jf(function(e,r){r(t)})};var MR=typeof Promise<"u"?Promise:Jf,lte=function(e,r,n){var i=Lue(e),a=!i,s=this._private=Yn({duration:1e3},r,n);if(s.target=e,s.style=s.style||s.css,s.started=!1,s.playing=!1,s.hooked=!1,s.applying=!1,s.progress=0,s.completes=[],s.frames=[],s.complete&&Qs(s.complete)&&s.completes.push(s.complete),a){var o=e.position();s.startPosition=s.startPosition||{x:o.x,y:o.y},s.startStyle=s.startStyle||e.cy().style().getAnimationStartStyle(e,s.style)}if(i){var l=e.pan();s.startPan={x:l.x,y:l.y},s.startZoom=e.zoom()}this.length=1,this[0]=this},Vb=lte.prototype;Yn(Vb,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var r,n=e.target._private.animation;e.queue?r=n.queue:r=n.current,r.push(this),$d(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return e.progress===1&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var r=this._private;return e===void 0?r.progress*r.duration:this.progress(e/r.duration)},progress:function(e){var r=this._private,n=r.playing;return e===void 0?r.progress:(n&&this.pause(),r.progress=e,r.started=!1,n&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var e=this._private,r=e.playing;r&&this.pause(),e.progress=1-e.progress,e.started=!1;var n=function(u,d){var h=e[u];h!=null&&(e[u]=e[d],e[d]=h)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),e.style)for(var i=0;i<e.style.length;i++){var a=e.style[i],s=a.name,o=e.startStyle[s];e.startStyle[s]=a,e.style[i]=o}return r&&this.play(),this},promise:function(e){var r=this._private,n;switch(e){case"frame":n=r.frames;break;default:case"complete":case"completed":n=r.completes}return new MR(function(i,a){n.push(function(){i()})})}});Vb.complete=Vb.completed;Vb.run=Vb.play;Vb.running=Vb.playing;var FRr={animated:function(){return function(){var r=this,n=r.length!==void 0,i=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return!1;var s=i[0];if(s)return s._private.animation.current.length>0}},clearQueue:function(){return function(){var r=this,n=r.length!==void 0,i=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var s=0;s<i.length;s++){var o=i[s];o._private.animation.queue=[]}return this}},delay:function(){return function(r,n){var i=this._private.cy||this;return i.styleEnabled()?this.animate({delay:r,duration:r,complete:n}):this}},delayAnimation:function(){return function(r,n){var i=this._private.cy||this;return i.styleEnabled()?this.animation({delay:r,duration:r,complete:n}):this}},animation:function(){return function(r,n){var i=this,a=i.length!==void 0,s=a?i:[i],o=this._private.cy||this,l=!a,u=!l;if(!o.styleEnabled())return this;var d=o.style();r=Yn({},r,n);var h=Object.keys(r).length===0;if(h)return new lte(s[0],r);switch(r.duration===void 0&&(r.duration=400),r.duration){case"slow":r.duration=600;break;case"fast":r.duration=200;break}if(u&&(r.style=d.getPropsList(r.style||r.css),r.css=void 0),u&&r.renderedPosition!=null){var f=r.renderedPosition,p=o.pan(),g=o.zoom();r.position=Dqe(f,g,p)}if(l&&r.panBy!=null){var m=r.panBy,_=o.pan();r.pan={x:_.x+m.x,y:_.y+m.y}}var v=r.center||r.centre;if(l&&v!=null){var y=o.getCenterPan(v.eles,r.zoom);y!=null&&(r.pan=y)}if(l&&r.fit!=null){var b=r.fit,E=o.getFitViewport(b.eles||b.boundingBox,b.padding);E!=null&&(r.pan=E.pan,r.zoom=E.zoom)}if(l&&fa(r.zoom)){var S=o.getZoomedViewport(r.zoom);S!=null?(S.zoomed&&(r.zoom=S.zoom),S.panned&&(r.pan=S.pan)):r.zoom=null}return new lte(s[0],r)}},animate:function(){return function(r,n){var i=this,a=i.length!==void 0,s=a?i:[i],o=this._private.cy||this;if(!o.styleEnabled())return this;n&&(r=Yn({},r,n));for(var l=0;l<s.length;l++){var u=s[l],d=u.animated()&&(r.queue===void 0||r.queue),h=u.animation(r,d?{queue:!0}:void 0);h.play()}return this}},stop:function(){return function(r,n){var i=this,a=i.length!==void 0,s=a?i:[i],o=this._private.cy||this;if(!o.styleEnabled())return this;for(var l=0;l<s.length;l++){for(var u=s[l],d=u._private,h=d.animation.current,f=0;f<h.length;f++){var p=h[f],g=p._private;n&&(g.duration=0)}r&&(d.animation.queue=[]),n||(d.animation.current=[])}return o.notify("draw"),this}}},_j,sAe;function y$(){if(sAe)return _j;sAe=1;var t=Array.isArray;return _j=t,_j}var vj,oAe;function BRr(){if(oAe)return vj;oAe=1;var t=y$(),e=tD(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,s){if(t(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||e(a)?!0:n.test(a)||!r.test(a)||s!=null&&a in Object(s)}return vj=i,vj}var yj,lAe;function URr(){if(lAe)return yj;lAe=1;var t=Cqe(),e=eD(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(o){if(!e(o))return!1;var l=t(o);return l==n||l==i||l==r||l==a}return yj=s,yj}var bj,cAe;function $Rr(){if(cAe)return bj;cAe=1;var t=g$(),e=t["__core-js_shared__"];return bj=e,bj}var Ej,uAe;function GRr(){if(uAe)return Ej;uAe=1;var t=$Rr(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return Ej=r,Ej}var Sj,dAe;function zRr(){if(dAe)return Sj;dAe=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Sj=r,Sj}var Tj,hAe;function qRr(){if(hAe)return Tj;hAe=1;var t=URr(),e=GRr(),r=eD(),n=zRr(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,l=s.toString,u=o.hasOwnProperty,d=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(f){if(!r(f)||e(f))return!1;var p=t(f)?d:a;return p.test(n(f))}return Tj=h,Tj}var Cj,fAe;function VRr(){if(fAe)return Cj;fAe=1;function t(e,r){return e?.[r]}return Cj=t,Cj}var wj,pAe;function Yue(){if(pAe)return wj;pAe=1;var t=qRr(),e=VRr();function r(n,i){var a=e(n,i);return t(a)?a:void 0}return wj=r,wj}var xj,gAe;function b$(){if(gAe)return xj;gAe=1;var t=Yue(),e=t(Object,"create");return xj=e,xj}var Aj,mAe;function HRr(){if(mAe)return Aj;mAe=1;var t=b$();function e(){this.__data__=t?t(null):{},this.size=0}return Aj=e,Aj}var Rj,_Ae;function YRr(){if(_Ae)return Rj;_Ae=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return Rj=t,Rj}var Oj,vAe;function WRr(){if(vAe)return Oj;vAe=1;var t=b$(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var s=this.__data__;if(t){var o=s[a];return o===e?void 0:o}return n.call(s,a)?s[a]:void 0}return Oj=i,Oj}var Ij,yAe;function KRr(){if(yAe)return Ij;yAe=1;var t=b$(),e=Object.prototype,r=e.hasOwnProperty;function n(i){var a=this.__data__;return t?a[i]!==void 0:r.call(a,i)}return Ij=n,Ij}var Nj,bAe;function jRr(){if(bAe)return Nj;bAe=1;var t=b$(),e="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=t&&i===void 0?e:i,this}return Nj=r,Nj}var kj,EAe;function XRr(){if(EAe)return kj;EAe=1;var t=HRr(),e=YRr(),r=WRr(),n=KRr(),i=jRr();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var u=s[o];this.set(u[0],u[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,kj=a,kj}var Dj,SAe;function QRr(){if(SAe)return Dj;SAe=1;function t(){this.__data__=[],this.size=0}return Dj=t,Dj}var Mj,TAe;function jqe(){if(TAe)return Mj;TAe=1;function t(e,r){return e===r||e!==e&&r!==r}return Mj=t,Mj}var Lj,CAe;function E$(){if(CAe)return Lj;CAe=1;var t=jqe();function e(r,n){for(var i=r.length;i--;)if(t(r[i][0],n))return i;return-1}return Lj=e,Lj}var Pj,wAe;function ZRr(){if(wAe)return Pj;wAe=1;var t=E$(),e=Array.prototype,r=e.splice;function n(i){var a=this.__data__,s=t(a,i);if(s<0)return!1;var o=a.length-1;return s==o?a.pop():r.call(a,s,1),--this.size,!0}return Pj=n,Pj}var Fj,xAe;function JRr(){if(xAe)return Fj;xAe=1;var t=E$();function e(r){var n=this.__data__,i=t(n,r);return i<0?void 0:n[i][1]}return Fj=e,Fj}var Bj,AAe;function eOr(){if(AAe)return Bj;AAe=1;var t=E$();function e(r){return t(this.__data__,r)>-1}return Bj=e,Bj}var Uj,RAe;function tOr(){if(RAe)return Uj;RAe=1;var t=E$();function e(r,n){var i=this.__data__,a=t(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Uj=e,Uj}var $j,OAe;function rOr(){if(OAe)return $j;OAe=1;var t=QRr(),e=ZRr(),r=JRr(),n=eOr(),i=tOr();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var u=s[o];this.set(u[0],u[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,$j=a,$j}var Gj,IAe;function nOr(){if(IAe)return Gj;IAe=1;var t=Yue(),e=g$(),r=t(e,"Map");return Gj=r,Gj}var zj,NAe;function iOr(){if(NAe)return zj;NAe=1;var t=XRr(),e=rOr(),r=nOr();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return zj=n,zj}var qj,kAe;function aOr(){if(kAe)return qj;kAe=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return qj=t,qj}var Vj,DAe;function S$(){if(DAe)return Vj;DAe=1;var t=aOr();function e(r,n){var i=r.__data__;return t(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Vj=e,Vj}var Hj,MAe;function sOr(){if(MAe)return Hj;MAe=1;var t=S$();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return Hj=e,Hj}var Yj,LAe;function oOr(){if(LAe)return Yj;LAe=1;var t=S$();function e(r){return t(this,r).get(r)}return Yj=e,Yj}var Wj,PAe;function lOr(){if(PAe)return Wj;PAe=1;var t=S$();function e(r){return t(this,r).has(r)}return Wj=e,Wj}var Kj,FAe;function cOr(){if(FAe)return Kj;FAe=1;var t=S$();function e(r,n){var i=t(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Kj=e,Kj}var jj,BAe;function uOr(){if(BAe)return jj;BAe=1;var t=iOr(),e=sOr(),r=oOr(),n=lOr(),i=cOr();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var u=s[o];this.set(u[0],u[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,jj=a,jj}var Xj,UAe;function dOr(){if(UAe)return Xj;UAe=1;var t=uOr(),e="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(e);var a=function(){var s=arguments,o=i?i.apply(this,s):s[0],l=a.cache;if(l.has(o))return l.get(o);var u=n.apply(this,s);return a.cache=l.set(o,u)||l,u};return a.cache=new(r.Cache||t),a}return r.Cache=t,Xj=r,Xj}var Qj,$Ae;function hOr(){if($Ae)return Qj;$Ae=1;var t=dOr(),e=500;function r(n){var i=t(n,function(s){return a.size===e&&a.clear(),s}),a=i.cache;return i}return Qj=r,Qj}var Zj,GAe;function Xqe(){if(GAe)return Zj;GAe=1;var t=hOr(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(e,function(s,o,l,u){a.push(l?u.replace(r,"$1"):o||s)}),a});return Zj=n,Zj}var Jj,zAe;function Qqe(){if(zAe)return Jj;zAe=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=Array(i);++n<i;)a[n]=r(e[n],n,e);return a}return Jj=t,Jj}var eX,qAe;function fOr(){if(qAe)return eX;qAe=1;var t=Fue(),e=Qqe(),r=y$(),n=tD(),i=t?t.prototype:void 0,a=i?i.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return e(o,s)+"";if(n(o))return a?a.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return eX=s,eX}var tX,VAe;function Zqe(){if(VAe)return tX;VAe=1;var t=fOr();function e(r){return r==null?"":t(r)}return tX=e,tX}var rX,HAe;function Jqe(){if(HAe)return rX;HAe=1;var t=y$(),e=BRr(),r=Xqe(),n=Zqe();function i(a,s){return t(a)?a:e(a,s)?[a]:r(n(a))}return rX=i,rX}var nX,YAe;function Wue(){if(YAe)return nX;YAe=1;var t=tD();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return nX=e,nX}var iX,WAe;function pOr(){if(WAe)return iX;WAe=1;var t=Jqe(),e=Wue();function r(n,i){i=t(i,n);for(var a=0,s=i.length;n!=null&&a<s;)n=n[e(i[a++])];return a&&a==s?n:void 0}return iX=r,iX}var aX,KAe;function gOr(){if(KAe)return aX;KAe=1;var t=pOr();function e(r,n,i){var a=r==null?void 0:t(r,n);return a===void 0?i:a}return aX=e,aX}var mOr=gOr(),_Or=J5(mOr),sX,jAe;function vOr(){if(jAe)return sX;jAe=1;var t=Yue(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return sX=e,sX}var oX,XAe;function yOr(){if(XAe)return oX;XAe=1;var t=vOr();function e(r,n,i){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return oX=e,oX}var lX,QAe;function bOr(){if(QAe)return lX;QAe=1;var t=yOr(),e=jqe(),r=Object.prototype,n=r.hasOwnProperty;function i(a,s,o){var l=a[s];(!(n.call(a,s)&&e(l,o))||o===void 0&&!(s in a))&&t(a,s,o)}return lX=i,lX}var cX,ZAe;function EOr(){if(ZAe)return cX;ZAe=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??t,!!i&&(a=="number"||a!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return cX=r,cX}var uX,JAe;function SOr(){if(JAe)return uX;JAe=1;var t=bOr(),e=Jqe(),r=EOr(),n=eD(),i=Wue();function a(s,o,l,u){if(!n(s))return s;o=e(o,s);for(var d=-1,h=o.length,f=h-1,p=s;p!=null&&++d<h;){var g=i(o[d]),m=l;if(g==="__proto__"||g==="constructor"||g==="prototype")return s;if(d!=f){var _=p[g];m=u?u(_,g,p):void 0,m===void 0&&(m=n(_)?_:r(o[d+1])?[]:{})}t(p,g,m),p=p[g]}return s}return uX=a,uX}var dX,eRe;function TOr(){if(eRe)return dX;eRe=1;var t=SOr();function e(r,n,i){return r==null?r:t(r,n,i)}return dX=e,dX}var COr=TOr(),wOr=J5(COr),hX,tRe;function xOr(){if(tRe)return hX;tRe=1;function t(e,r){var n=-1,i=e.length;for(r||(r=Array(i));++n<i;)r[n]=e[n];return r}return hX=t,hX}var fX,rRe;function AOr(){if(rRe)return fX;rRe=1;var t=Qqe(),e=xOr(),r=y$(),n=tD(),i=Xqe(),a=Wue(),s=Zqe();function o(l){return r(l)?t(l,a):n(l)?[l]:e(i(s(l)))}return fX=o,fX}var ROr=AOr(),OOr=J5(ROr),IOr={data:function(e){var r={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(i){},beforeSet:function(i,a){},onSet:function(i){},canSet:function(i){return!0}};return e=Yn({},r,e),function(i,a){var s=e,o=this,l=o.length!==void 0,u=l?o:[o],d=l?o[0]:o;if(Bn(i)){var h=i.indexOf(".")!==-1,f=h&&OOr(i);if(s.allowGetting&&a===void 0){var p;return d&&(s.beforeGet(d),f&&d._private[s.field][i]===void 0?p=_Or(d._private[s.field],f):p=d._private[s.field][i]),p}else if(s.allowSetting&&a!==void 0){var g=!s.immutableKeys[i];if(g){var m=pqe({},i,a);s.beforeSet(o,m);for(var _=0,v=u.length;_<v;_++){var y=u[_];s.canSet(y)&&(f&&d._private[s.field][i]===void 0?wOr(y._private[s.field],f,a):y._private[s.field][i]=a)}s.updateStyle&&o.updateStyle(),s.onSet(o),s.settingTriggersEvent&&o[s.triggerFnName](s.settingEvent)}}}else if(s.allowSetting&&fa(i)){var b=i,E,S,T=Object.keys(b);s.beforeSet(o,b);for(var C=0;C<T.length;C++){E=T[C],S=b[E];var x=!s.immutableKeys[E];if(x)for(var A=0;A<u.length;A++){var R=u[A];s.canSet(R)&&(R._private[s.field][E]=S)}}s.updateStyle&&o.updateStyle(),s.onSet(o),s.settingTriggersEvent&&o[s.triggerFnName](s.settingEvent)}else if(s.allowBinding&&Qs(i)){var I=i;o.on(s.bindingEvent,I)}else if(s.allowGetting&&i===void 0){var L;return d&&(s.beforeGet(d),L=d._private[s.field]),L}return o}},removeData:function(e){var r={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return e=Yn({},r,e),function(i){var a=e,s=this,o=s.length!==void 0,l=o?s:[s];if(Bn(i)){for(var u=i.split(/\s+/),d=u.length,h=0;h<d;h++){var f=u[h];if(!E1(f)){var p=!a.immutableKeys[f];if(p)for(var g=0,m=l.length;g<m;g++)l[g]._private[a.field][f]=void 0}}a.triggerEvent&&s[a.triggerFnName](a.event)}else if(i===void 0){for(var _=0,v=l.length;_<v;_++)for(var y=l[_]._private[a.field],b=Object.keys(y),E=0;E<b.length;E++){var S=b[E],T=!a.immutableKeys[S];T&&(y[S]=void 0)}a.triggerEvent&&s[a.triggerFnName](a.event)}return s}}},NOr={eventAliasesOn:function(e){var r=e;r.addListener=r.listen=r.bind=r.on,r.unlisten=r.unbind=r.off=r.removeListener,r.trigger=r.emit,r.pon=r.promiseOn=function(n,i){var a=this,s=Array.prototype.slice.call(arguments,0);return new MR(function(o,l){var u=function(p){a.off.apply(a,h),o(p)},d=s.concat([u]),h=d.concat([]);a.on.apply(a,d)})}}},Ma={};[FRr,IOr,NOr].forEach(function(t){Yn(Ma,t)});var kOr={animate:Ma.animate(),animation:Ma.animation(),animated:Ma.animated(),clearQueue:Ma.clearQueue(),delay:Ma.delay(),delayAnimation:Ma.delayAnimation(),stop:Ma.stop()},i6={classes:function(e){var r=this;if(e===void 0){var n=[];return r[0]._private.classes.forEach(function(g){return n.push(g)}),n}else Xa(e)||(e=(e||"").match(/\S+/g)||[]);for(var i=[],a=new DR(e),s=0;s<r.length;s++){for(var o=r[s],l=o._private,u=l.classes,d=!1,h=0;h<e.length;h++){var f=e[h],p=u.has(f);if(!p){d=!0;break}}d||(d=u.size!==e.length),d&&(l.classes=a,i.push(o))}return i.length>0&&this.spawn(i).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){Xa(e)||(e=e.match(/\S+/g)||[]);for(var n=this,i=r===void 0,a=[],s=0,o=n.length;s<o;s++)for(var l=n[s],u=l._private.classes,d=!1,h=0;h<e.length;h++){var f=e[h],p=u.has(f),g=!1;r||i&&!p?(u.add(f),g=!0):(!r||i&&p)&&(u.delete(f),g=!0),!d&&g&&(a.push(l),d=!0)}return a.length>0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var n=this;if(r==null)r=250;else if(r===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},r),n}};i6.className=i6.classNames=i6.classes;var la={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:hl,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};la.variable="(?:[\\w-.]|(?:\\\\"+la.metaChar+"))+";la.className="(?:[\\w-]|(?:\\\\"+la.metaChar+"))+";la.value=la.string+"|"+la.number;la.id=la.variable;(function(){var t,e,r;for(t=la.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],la.comparatorOp+="|@"+e;for(t=la.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],!(e.indexOf("!")>=0)&&e!=="="&&(la.comparatorOp+="|\\!"+e)})();var qa=function(){return{checks:[]}},gn={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},cte=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return Ixr(t.selector,e.selector)}),DOr=(function(){for(var t={},e,r=0;r<cte.length;r++)e=cte[r],t[e.selector]=e.matches;return t})(),MOr=function(e,r){return DOr[e](r)},LOr="("+cte.map(function(t){return t.selector}).join("|")+")",fS=function(e){return e.replace(new RegExp("\\\\("+la.metaChar+")","g"),function(r,n){return n})},c_=function(e,r,n){e[e.length-1]=n},ute=[{name:"group",query:!0,regex:"("+la.group+")",populate:function(e,r,n){var i=Uo(n,1),a=i[0];r.checks.push({type:gn.GROUP,value:a==="*"?a:a+"s"})}},{name:"state",query:!0,regex:LOr,populate:function(e,r,n){var i=Uo(n,1),a=i[0];r.checks.push({type:gn.STATE,value:a})}},{name:"id",query:!0,regex:"\\#("+la.id+")",populate:function(e,r,n){var i=Uo(n,1),a=i[0];r.checks.push({type:gn.ID,value:fS(a)})}},{name:"className",query:!0,regex:"\\.("+la.className+")",populate:function(e,r,n){var i=Uo(n,1),a=i[0];r.checks.push({type:gn.CLASS,value:fS(a)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+la.variable+")\\s*\\]",populate:function(e,r,n){var i=Uo(n,1),a=i[0];r.checks.push({type:gn.DATA_EXIST,field:fS(a)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+la.variable+")\\s*("+la.comparatorOp+")\\s*("+la.value+")\\s*\\]",populate:function(e,r,n){var i=Uo(n,3),a=i[0],s=i[1],o=i[2],l=new RegExp("^"+la.string+"$").exec(o)!=null;l?o=o.substring(1,o.length-1):o=parseFloat(o),r.checks.push({type:gn.DATA_COMPARE,field:fS(a),operator:s,value:o})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+la.boolOp+")\\s*("+la.variable+")\\s*\\]",populate:function(e,r,n){var i=Uo(n,2),a=i[0],s=i[1];r.checks.push({type:gn.DATA_BOOL,field:fS(s),operator:a})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+la.meta+")\\s*("+la.comparatorOp+")\\s*("+la.number+")\\s*\\]\\]",populate:function(e,r,n){var i=Uo(n,3),a=i[0],s=i[1],o=i[2];r.checks.push({type:gn.META_COMPARE,field:fS(a),operator:s,value:parseFloat(o)})}},{name:"nextQuery",separator:!0,regex:la.separator,populate:function(e,r){var n=e.currentSubject,i=e.edgeCount,a=e.compoundCount,s=e[e.length-1];n!=null&&(s.subject=n,e.currentSubject=null),s.edgeCount=i,s.compoundCount=a,e.edgeCount=0,e.compoundCount=0;var o=e[e.length++]=qa();return o}},{name:"directedEdge",separator:!0,regex:la.directedEdge,populate:function(e,r){if(e.currentSubject==null){var n=qa(),i=r,a=qa();return n.checks.push({type:gn.DIRECTED_EDGE,source:i,target:a}),c_(e,r,n),e.edgeCount++,a}else{var s=qa(),o=r,l=qa();return s.checks.push({type:gn.NODE_SOURCE,source:o,target:l}),c_(e,r,s),e.edgeCount++,l}}},{name:"undirectedEdge",separator:!0,regex:la.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var n=qa(),i=r,a=qa();return n.checks.push({type:gn.UNDIRECTED_EDGE,nodes:[i,a]}),c_(e,r,n),e.edgeCount++,a}else{var s=qa(),o=r,l=qa();return s.checks.push({type:gn.NODE_NEIGHBOR,node:o,neighbor:l}),c_(e,r,s),l}}},{name:"child",separator:!0,regex:la.child,populate:function(e,r){if(e.currentSubject==null){var n=qa(),i=qa(),a=e[e.length-1];return n.checks.push({type:gn.CHILD,parent:a,child:i}),c_(e,r,n),e.compoundCount++,i}else if(e.currentSubject===r){var s=qa(),o=e[e.length-1],l=qa(),u=qa(),d=qa(),h=qa();return s.checks.push({type:gn.COMPOUND_SPLIT,left:o,right:l,subject:u}),u.checks=r.checks,r.checks=[{type:gn.TRUE}],h.checks.push({type:gn.TRUE}),l.checks.push({type:gn.PARENT,parent:h,child:d}),c_(e,o,s),e.currentSubject=u,e.compoundCount++,d}else{var f=qa(),p=qa(),g=[{type:gn.PARENT,parent:f,child:p}];return f.checks=r.checks,r.checks=g,e.compoundCount++,p}}},{name:"descendant",separator:!0,regex:la.descendant,populate:function(e,r){if(e.currentSubject==null){var n=qa(),i=qa(),a=e[e.length-1];return n.checks.push({type:gn.DESCENDANT,ancestor:a,descendant:i}),c_(e,r,n),e.compoundCount++,i}else if(e.currentSubject===r){var s=qa(),o=e[e.length-1],l=qa(),u=qa(),d=qa(),h=qa();return s.checks.push({type:gn.COMPOUND_SPLIT,left:o,right:l,subject:u}),u.checks=r.checks,r.checks=[{type:gn.TRUE}],h.checks.push({type:gn.TRUE}),l.checks.push({type:gn.ANCESTOR,ancestor:h,descendant:d}),c_(e,o,s),e.currentSubject=u,e.compoundCount++,d}else{var f=qa(),p=qa(),g=[{type:gn.ANCESTOR,ancestor:f,descendant:p}];return f.checks=r.checks,r.checks=g,e.compoundCount++,p}}},{name:"subject",modifier:!0,regex:la.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return Pa("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var n=e[e.length-1],i=n.checks[0],a=i==null?null:i.type;a===gn.DIRECTED_EDGE?i.type=gn.NODE_TARGET:a===gn.UNDIRECTED_EDGE&&(i.type=gn.NODE_NEIGHBOR,i.node=i.nodes[1],i.neighbor=i.nodes[0],i.nodes=null)}}];ute.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var POr=function(e){for(var r,n,i,a=0;a<ute.length;a++){var s=ute[a],o=s.name,l=e.match(s.regexObj);if(l!=null){n=l,r=s,i=o;var u=l[0];e=e.substring(u.length);break}}return{expr:r,match:n,name:i,remaining:e}},FOr=function(e){var r=e.match(/^\s+/);if(r){var n=r[0];e=e.substring(n.length)}return e},BOr=function(e){var r=this,n=r.inputText=e,i=r[0]=qa();for(r.length=1,n=FOr(n);;){var a=POr(n);if(a.expr==null)return Pa("The selector `"+e+"`is invalid"),!1;var s=a.match.slice(1),o=a.expr.populate(r,i,s);if(o===!1)return!1;if(o!=null&&(i=o),n=a.remaining,n.match(/^\s*$/))break}var l=r[r.length-1];r.currentSubject!=null&&(l.subject=r.currentSubject),l.edgeCount=r.edgeCount,l.compoundCount=r.compoundCount;for(var u=0;u<r.length;u++){var d=r[u];if(d.compoundCount>0&&d.edgeCount>0)return Pa("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(d.edgeCount>1)return Pa("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;d.edgeCount===1&&Pa("The selector `"+e+"` is deprecated.  Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons.  Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},UOr=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(d){return d??""},r=function(d){return Bn(d)?'"'+d+'"':e(d)},n=function(d){return" "+d+" "},i=function(d,h){var f=d.type,p=d.value;switch(f){case gn.GROUP:{var g=e(p);return g.substring(0,g.length-1)}case gn.DATA_COMPARE:{var m=d.field,_=d.operator;return"["+m+n(e(_))+r(p)+"]"}case gn.DATA_BOOL:{var v=d.operator,y=d.field;return"["+e(v)+y+"]"}case gn.DATA_EXIST:{var b=d.field;return"["+b+"]"}case gn.META_COMPARE:{var E=d.operator,S=d.field;return"[["+S+n(e(E))+r(p)+"]]"}case gn.STATE:return p;case gn.ID:return"#"+p;case gn.CLASS:return"."+p;case gn.PARENT:case gn.CHILD:return a(d.parent,h)+n(">")+a(d.child,h);case gn.ANCESTOR:case gn.DESCENDANT:return a(d.ancestor,h)+" "+a(d.descendant,h);case gn.COMPOUND_SPLIT:{var T=a(d.left,h),C=a(d.subject,h),x=a(d.right,h);return T+(T.length>0?" ":"")+C+x}case gn.TRUE:return""}},a=function(d,h){return d.checks.reduce(function(f,p,g){return f+(h===d&&g===0?"$":"")+i(p,h)},"")},s="",o=0;o<this.length;o++){var l=this[o];s+=a(l,l.subject),this.length>1&&o<this.length-1&&(s+=", ")}return this.toStringCache=s,s},$Or={parse:BOr,toString:UOr},eVe=function(e,r,n){var i,a=Bn(e),s=Gr(e),o=Bn(n),l,u,d=!1,h=!1,f=!1;switch(r.indexOf("!")>=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),d=!0),(a||o||d)&&(l=!a&&!s?"":""+e,u=""+n),d&&(e=l=l.toLowerCase(),n=u=u.toLowerCase()),r){case"*=":i=l.indexOf(u)>=0;break;case"$=":i=l.indexOf(u,l.length-u.length)>=0;break;case"^=":i=l.indexOf(u)===0;break;case"=":i=e===n;break;case">":f=!0,i=e>n;break;case">=":f=!0,i=e>=n;break;case"<":f=!0,i=e<n;break;case"<=":f=!0,i=e<=n;break;default:i=!1;break}return h&&(e!=null||!f)&&(i=!i),i},GOr=function(e,r){switch(r){case"?":return!!e;case"!":return!e;case"^":return e===void 0}},zOr=function(e){return e!==void 0},Kue=function(e,r){return e.data(r)},qOr=function(e,r){return e[r]()},yo=[],ps=function(e,r){return e.checks.every(function(n){return yo[n.type](n,r)})};yo[gn.GROUP]=function(t,e){var r=t.value;return r==="*"||r===e.group()};yo[gn.STATE]=function(t,e){var r=t.value;return MOr(r,e)};yo[gn.ID]=function(t,e){var r=t.value;return e.id()===r};yo[gn.CLASS]=function(t,e){var r=t.value;return e.hasClass(r)};yo[gn.META_COMPARE]=function(t,e){var r=t.field,n=t.operator,i=t.value;return eVe(qOr(e,r),n,i)};yo[gn.DATA_COMPARE]=function(t,e){var r=t.field,n=t.operator,i=t.value;return eVe(Kue(e,r),n,i)};yo[gn.DATA_BOOL]=function(t,e){var r=t.field,n=t.operator;return GOr(Kue(e,r),n)};yo[gn.DATA_EXIST]=function(t,e){var r=t.field;return t.operator,zOr(Kue(e,r))};yo[gn.UNDIRECTED_EDGE]=function(t,e){var r=t.nodes[0],n=t.nodes[1],i=e.source(),a=e.target();return ps(r,i)&&ps(n,a)||ps(n,i)&&ps(r,a)};yo[gn.NODE_NEIGHBOR]=function(t,e){return ps(t.node,e)&&e.neighborhood().some(function(r){return r.isNode()&&ps(t.neighbor,r)})};yo[gn.DIRECTED_EDGE]=function(t,e){return ps(t.source,e.source())&&ps(t.target,e.target())};yo[gn.NODE_SOURCE]=function(t,e){return ps(t.source,e)&&e.outgoers().some(function(r){return r.isNode()&&ps(t.target,r)})};yo[gn.NODE_TARGET]=function(t,e){return ps(t.target,e)&&e.incomers().some(function(r){return r.isNode()&&ps(t.source,r)})};yo[gn.CHILD]=function(t,e){return ps(t.child,e)&&ps(t.parent,e.parent())};yo[gn.PARENT]=function(t,e){return ps(t.parent,e)&&e.children().some(function(r){return ps(t.child,r)})};yo[gn.DESCENDANT]=function(t,e){return ps(t.descendant,e)&&e.ancestors().some(function(r){return ps(t.ancestor,r)})};yo[gn.ANCESTOR]=function(t,e){return ps(t.ancestor,e)&&e.descendants().some(function(r){return ps(t.descendant,r)})};yo[gn.COMPOUND_SPLIT]=function(t,e){return ps(t.subject,e)&&ps(t.left,e)&&ps(t.right,e)};yo[gn.TRUE]=function(){return!0};yo[gn.COLLECTION]=function(t,e){var r=t.value;return r.has(e)};yo[gn.FILTER]=function(t,e){var r=t.value;return r(e)};var VOr=function(e){var r=this;if(r.length===1&&r[0].checks.length===1&&r[0].checks[0].type===gn.ID)return e.getElementById(r[0].checks[0].value).collection();var n=function(a){for(var s=0;s<r.length;s++){var o=r[s];if(ps(o,a))return!0}return!1};return r.text()==null&&(n=function(){return!0}),e.filter(n)},HOr=function(e){for(var r=this,n=0;n<r.length;n++){var i=r[n];if(ps(i,e))return!0}return!1},YOr={matches:HOr,filter:VOr},C1=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,e==null||Bn(e)&&e.match(/^\s*$/)||($d(e)?this.addQuery({checks:[{type:gn.COLLECTION,value:e.collection()}]}):Qs(e)?this.addQuery({checks:[{type:gn.FILTER,value:e}]}):Bn(e)?this.parse(e)||(this.invalid=!0):Os("A selector must be created from a string; found "))},w1=C1.prototype;[$Or,YOr].forEach(function(t){return Yn(w1,t)});w1.text=function(){return this.inputText};w1.size=function(){return this.length};w1.eq=function(t){return this[t]};w1.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()};w1.addQuery=function(t){this[this.length++]=t};w1.selector=w1.toString;var X_={allAre:function(e){var r=new C1(e);return this.every(function(n){return r.matches(n)})},is:function(e){var r=new C1(e);return this.some(function(n){return r.matches(n)})},some:function(e,r){for(var n=0;n<this.length;n++){var i=r?e.apply(r,[this[n],n,this]):e(this[n],n,this);if(i)return!0}return!1},every:function(e,r){for(var n=0;n<this.length;n++){var i=r?e.apply(r,[this[n],n,this]):e(this[n],n,this);if(!i)return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var r=this.length,n=e.length;return r!==n?!1:r===1?this[0]===e[0]:this.every(function(i){return e.hasElementWithId(i.id())})},anySame:function(e){return e=this.cy().collection(e),this.some(function(r){return e.hasElementWithId(r.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var r=this.neighborhood();return e.every(function(n){return r.hasElementWithId(n.id())})},contains:function(e){e=this.cy().collection(e);var r=this;return e.every(function(n){return r.hasElementWithId(n.id())})}};X_.allAreNeighbours=X_.allAreNeighbors;X_.has=X_.contains;X_.equal=X_.equals=X_.same;var kh=function(e,r){return function(i,a,s,o){var l=i,u=this,d;if(l==null?d="":$d(l)&&l.length===1&&(d=l.id()),u.length===1&&d){var h=u[0]._private,f=h.traversalCache=h.traversalCache||{},p=f[r]=f[r]||[],g=zb(d),m=p[g];return m||(p[g]=e.call(u,i,a,s,o))}else return e.call(u,i,a,s,o)}},OA={parent:function(e){var r=[];if(this.length===1){var n=this[0]._private.parent;if(n)return n}for(var i=0;i<this.length;i++){var a=this[i],s=a._private.parent;s&&r.push(s)}return this.spawn(r,!0).filter(e)},parents:function(e){for(var r=[],n=this.parent();n.nonempty();){for(var i=0;i<n.length;i++){var a=n[i];r.push(a)}n=n.parent()}return this.spawn(r,!0).filter(e)},commonAncestors:function(e){for(var r,n=0;n<this.length;n++){var i=this[n],a=i.parents();r=r||a,r=r.intersect(a)}return r.filter(e)},orphans:function(e){return this.stdFilter(function(r){return r.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(r){return r.isChild()}).filter(e)},children:kh(function(t){for(var e=[],r=0;r<this.length;r++)for(var n=this[r],i=n._private.children,a=0;a<i.length;a++)e.push(i[a]);return this.spawn(e,!0).filter(t)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length!==0},isChildless:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length===0},isChild:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent!=null},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent==null},descendants:function(e){var r=[];function n(i){for(var a=0;a<i.length;a++){var s=i[a];r.push(s),s.children().nonempty()&&n(s.children())}}return n(this.children()),this.spawn(r,!0).filter(e)}};function jue(t,e,r,n){for(var i=[],a=new DR,s=t.cy(),o=s.hasCompoundNodes(),l=0;l<t.length;l++){var u=t[l];r?i.push(u):o&&n(i,a,u)}for(;i.length>0;){var d=i.shift();e(d),a.add(d.id()),o&&n(i,a,d)}return t}function tVe(t,e,r){if(r.isParent())for(var n=r._private.children,i=0;i<n.length;i++){var a=n[i];e.has(a.id())||t.push(a)}}OA.forEachDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return jue(this,t,e,tVe)};function rVe(t,e,r){if(r.isChild()){var n=r._private.parent;e.has(n.id())||t.push(n)}}OA.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return jue(this,t,e,rVe)};function WOr(t,e,r){rVe(t,e,r),tVe(t,e,r)}OA.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return jue(this,t,e,WOr)};OA.ancestors=OA.parents;var r3,nVe;r3=nVe={data:Ma.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Ma.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Ma.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ma.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Ma.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Ma.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};r3.attr=r3.data;r3.removeAttr=r3.removeData;var KOr=nVe,T$={};function pX(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var n=0,i=r[0],a=i._private.edges,s=0;s<a.length;s++){var o=a[s];!e&&o.isLoop()||(n+=t(i,o))}return n}else return}}Yn(T$,{degree:pX(function(t,e){return e.source().same(e.target())?2:1}),indegree:pX(function(t,e){return e.target().same(t)?1:0}),outdegree:pX(function(t,e){return e.source().same(t)?1:0})});function pS(t,e){return function(r){for(var n,i=this.nodes(),a=0;a<i.length;a++){var s=i[a],o=s[t](r);o!==void 0&&(n===void 0||e(o,n))&&(n=o)}return n}}Yn(T$,{minDegree:pS("degree",function(t,e){return t<e}),maxDegree:pS("degree",function(t,e){return t>e}),minIndegree:pS("indegree",function(t,e){return t<e}),maxIndegree:pS("indegree",function(t,e){return t>e}),minOutdegree:pS("outdegree",function(t,e){return t<e}),maxOutdegree:pS("outdegree",function(t,e){return t>e})});Yn(T$,{totalDegree:function(e){for(var r=0,n=this.nodes(),i=0;i<n.length;i++)r+=n[i].degree(e);return r}});var $f,iVe,aVe=function(e,r,n){for(var i=0;i<e.length;i++){var a=e[i];if(!a.locked()){var s=a._private.position,o={x:r.x!=null?r.x-s.x:0,y:r.y!=null?r.y-s.y:0};a.isParent()&&!(o.x===0&&o.y===0)&&a.children().shift(o,n),a.dirtyBoundingBoxCache()}}},nRe={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,r){aVe(e,r,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};$f=iVe={position:Ma.data(nRe),silentPosition:Ma.data(Yn({},nRe,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,r){aVe(e,r,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,r){if(fa(e))r?this.silentPosition(e):this.position(e);else if(Qs(e)){var n=e,i=this.cy();i.startBatch();for(var a=0;a<this.length;a++){var s=this[a],o=void 0;(o=n(s,a))&&(r?s.silentPosition(o):s.position(o))}i.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,r,n){var i;if(fa(e)?(i={x:Gr(e.x)?e.x:0,y:Gr(e.y)?e.y:0},n=r):Bn(e)&&Gr(r)&&(i={x:0,y:0},i[e]=r),i!=null){var a=this.cy();a.startBatch();for(var s=0;s<this.length;s++){var o=this[s];if(!(a.hasCompoundNodes()&&o.isChild()&&o.ancestors().anySame(this))){var l=o.position(),u={x:l.x+i.x,y:l.y+i.y};n?o.silentPosition(u):o.position(u)}}a.endBatch()}return this},silentShift:function(e,r){return fa(e)?this.shift(e,!0):Bn(e)&&Gr(r)&&this.shift(e,r,!0),this},renderedPosition:function(e,r){var n=this[0],i=this.cy(),a=i.zoom(),s=i.pan(),o=fa(e)?e:void 0,l=o!==void 0||r!==void 0&&Bn(e);if(n&&n.isNode())if(l)for(var u=0;u<this.length;u++){var d=this[u];r!==void 0?d.position(e,(r-s[e])/a):o!==void 0&&d.position(Dqe(o,a,s))}else{var h=n.position();return o=_$(h,a,s),e===void 0?o:o[e]}else if(!l)return;return this},relativePosition:function(e,r){var n=this[0],i=this.cy(),a=fa(e)?e:void 0,s=a!==void 0||r!==void 0&&Bn(e),o=i.hasCompoundNodes();if(n&&n.isNode())if(s)for(var l=0;l<this.length;l++){var u=this[l],d=o?u.parent():null,h=d&&d.length>0,f=h;h&&(d=d[0]);var p=f?d.position():{x:0,y:0};r!==void 0?u.position(e,r+p[e]):a!==void 0&&u.position({x:a.x+p.x,y:a.y+p.y})}else{var g=n.position(),m=o?n.parent():null,_=m&&m.length>0,v=_;_&&(m=m[0]);var y=v?m.position():{x:0,y:0};return a={x:g.x-y.x,y:g.y-y.y},e===void 0?a:a[e]}else if(!s)return;return this}};$f.modelPosition=$f.point=$f.position;$f.modelPositions=$f.points=$f.positions;$f.renderedPoint=$f.renderedPosition;$f.relativePoint=$f.relativePosition;var jOr=iVe,IA=function(e){switch(e){case"left":case"right-inside":return"left";case"right":case"left-inside":return"right";default:return"center"}},NA=function(e){switch(e){case"top":case"bottom-inside":return"top";case"bottom":case"top-inside":return"bottom";default:return"center"}},XOr=function(e){switch(e){case"left":return"right";case"right":return"left";case"left-inside":return"left";case"right-inside":return"right";default:return"center"}},aC,X1;aC=X1={};X1.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),i=r.pan(),a=e.x1*n+i.x,s=e.x2*n+i.x,o=e.y1*n+i.y,l=e.y2*n+i.y;return{x1:a,x2:s,y1:o,y2:l,w:s-a,h:l-o}};X1.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};X1.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",d={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),f=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=f.x-h.w/2,h.x2=f.x+h.w/2,h.y1=f.y-h.h/2,h.y2=f.y+h.h/2);function p(A,R,I){var L=0,F=0,O=R+I;return A>0&&O>0&&(L=R/O*A,F=I/O*A),{biasDiff:L,biasComplementDiff:F}}function g(A,R,I,L){if(I.units==="%")switch(L){case"width":return A>0?I.pfValue*A:0;case"height":return R>0?I.pfValue*R:0;case"average":return A>0&&R>0?I.pfValue*(A+R)/2:0;case"min":return A>0&&R>0?A>R?I.pfValue*R:I.pfValue*A:0;case"max":return A>0&&R>0?A>R?I.pfValue*A:I.pfValue*R:0;default:return 0}else return I.units==="px"?I.pfValue:0}var m=d.width.left.value;d.width.left.units==="px"&&d.width.val>0&&(m=m*100/d.width.val);var _=d.width.right.value;d.width.right.units==="px"&&d.width.val>0&&(_=_*100/d.width.val);var v=d.height.top.value;d.height.top.units==="px"&&d.height.val>0&&(v=v*100/d.height.val);var y=d.height.bottom.value;d.height.bottom.units==="px"&&d.height.val>0&&(y=y*100/d.height.val);var b=p(d.width.val-h.w,m,_),E=b.biasDiff,S=b.biasComplementDiff,T=p(d.height.val-h.h,v,y),C=T.biasDiff,x=T.biasComplementDiff;o.autoPadding=g(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,d.width.val),f.x=(-E+h.x1+h.x2+S)/2,o.autoHeight=Math.max(h.h,d.height.val),f.y=(-C+h.y1+h.y2+x)/2}for(var n=0;n<this.length;n++){var i=this[n],a=i._private;(!a.compoundBoundsClean||t)&&(r(i),e.batching()||(a.compoundBoundsClean=!0))}return this};var wh=function(e){return e===1/0||e===-1/0?0:e},gf=function(e,r,n,i,a){i-r===0||a-n===0||r==null||n==null||i==null||a==null||(e.x1=r<e.x1?r:e.x1,e.x2=i>e.x2?i:e.x2,e.y1=n<e.y1?n:e.y1,e.y2=a>e.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},y_=function(e,r){return r==null?e:gf(e,r.x1,r.y1,r.x2,r.y2)},qO=function(e,r,n){return Jc(e,r,n)},zL=function(e,r,n){if(!r.cy().headless()){var i=r._private,a=i.rstyle,s=a.arrowWidth/2,o=r.pstyle(n+"-arrow-shape").value,l,u;if(o!=="none"){n==="source"?(l=a.srcX,u=a.srcY):n==="target"?(l=a.tgtX,u=a.tgtY):(l=a.midX,u=a.midY);var d=i.arrowBounds=i.arrowBounds||{},h=d[n]=d[n]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,r6(h,1),gf(e,h.x1,h.y1,h.x2,h.y2)}}},gX=function(e,r,n){if(!r.cy().headless()){var i;n?i=n+"-":i="";var a=r._private,s=a.rstyle,o=r.pstyle(i+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),d=qO(s,"labelWidth",n),h=qO(s,"labelHeight",n),f=qO(s,"labelX",n),p=qO(s,"labelY",n),g=r.pstyle(i+"text-margin-x").pfValue,m=r.pstyle(i+"text-margin-y").pfValue,_=r.isEdge(),v=r.pstyle(i+"text-rotation"),y=r.pstyle("text-outline-width").pfValue,b=r.pstyle("text-border-width").pfValue,E=b/2,S=r.pstyle("text-background-padding").pfValue,T=2,C=h,x=d,A=x/2,R=C/2,I,L,F,O;if(_)I=f-A,L=f+A,F=p-R,O=p+R;else{switch(IA(l.value)){case"left":I=f-x,L=f;break;case"center":I=f-A,L=f+A;break;case"right":I=f,L=f+x;break}switch(NA(u.value)){case"top":F=p-C,O=p;break;case"center":F=p-R,O=p+R;break;case"bottom":F=p,O=p+C;break}}var D=g-Math.max(y,E)-S-T,M=g+Math.max(y,E)+S+T,P=m-Math.max(y,E)-S-T,N=m+Math.max(y,E)+S+T;I+=D,L+=M,F+=P,O+=N;var $=n||"main",U=a.labelBounds,B=U[$]=U[$]||{};B.x1=I,B.y1=F,B.x2=L,B.y2=O,B.w=L-I,B.h=O-F,B.leftPad=D,B.rightPad=M,B.topPad=P,B.botPad=N;var V=_&&v.strValue==="autorotate",z=v.pfValue!=null&&v.pfValue!==0;if(V||z){var G=V?qO(a.rstyle,"labelAngle",n):v.pfValue,Y=Math.cos(G),W=Math.sin(G),Q=(I+L)/2,ie=(F+O)/2;if(!_){switch(IA(l.value)){case"left":Q=L;break;case"right":Q=I;break}switch(NA(u.value)){case"top":ie=O;break;case"bottom":ie=F;break}}var Z=function(Ue,Se){return Ue=Ue-Q,Se=Se-ie,{x:Ue*Y-Se*W+Q,y:Ue*W+Se*Y+ie}},re=Z(I,F),K=Z(I,O),j=Z(L,F),se=Z(L,O);I=Math.min(re.x,K.x,j.x,se.x),L=Math.max(re.x,K.x,j.x,se.x),F=Math.min(re.y,K.y,j.y,se.y),O=Math.max(re.y,K.y,j.y,se.y)}var le=$+"Rot",_e=U[le]=U[le]||{};_e.x1=I,_e.y1=F,_e.x2=L,_e.y2=O,_e.w=L-I,_e.h=O-F,gf(e,I,F,L,O),gf(a.labelBounds.all,I,F,L,O)}return e}},iRe=function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,i=r.pstyle("outline-width").value,a=r.pstyle("outline-offset").value,s=i+a;sVe(e,r,n,s,"outside",s/2)}},sVe=function(e,r,n,i,a,s){if(!(n===0||i<=0||a==="inside")){var o=r.cy(),l=o.renderer(),u=l.nodeShapes[l.getNodeShape(r)];if(u){var d=r.position(),h=d.x,f=d.y,p=r.width(),g=r.height();if(u.hasMiterBounds){a==="center"&&(i/=2);var m=u.miterBounds(h,f,p,g,i);y_(e,m)}else s!=null&&s>0&&n6(e,[s,s,s,s])}}},QOr=function(e,r){if(!r.cy().headless()){var n=r.pstyle("border-opacity").value,i=r.pstyle("border-width").pfValue,a=r.pstyle("border-position").value;sVe(e,r,n,i,a)}},ZOr=function(e,r){var n=e._private.cy,i=n.styleEnabled(),a=n.headless(),s=yu(),o=e._private,l=e.isNode(),u=e.isEdge(),d,h,f,p,g,m,_=o.rstyle,v=l&&i?e.pstyle("bounds-expansion").pfValue:[0],y=function(ye){return ye.pstyle("display").value!=="none"},b=!i||y(e)&&(!u||y(e.source())&&y(e.target()));if(b){var E=0,S=0;i&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(S=e.pstyle("overlay-padding").value));var T=0,C=0;i&&r.includeUnderlays&&(T=e.pstyle("underlay-opacity").value,T!==0&&(C=e.pstyle("underlay-padding").value));var x=Math.max(S,C),A=0,R=0;if(i&&(A=e.pstyle("width").pfValue,R=A/2),l&&r.includeNodes){var I=e.position();g=I.x,m=I.y;var L=e.outerWidth(),F=L/2,O=e.outerHeight(),D=O/2;d=g-F,h=g+F,f=m-D,p=m+D,gf(s,d,f,h,p),i&&iRe(s,e),i&&r.includeOutlines&&!a&&iRe(s,e),i&&QOr(s,e)}else if(u&&r.includeEdges)if(i&&!a){var M=e.pstyle("curve-style").strValue;if(d=Math.min(_.srcX,_.midX,_.tgtX),h=Math.max(_.srcX,_.midX,_.tgtX),f=Math.min(_.srcY,_.midY,_.tgtY),p=Math.max(_.srcY,_.midY,_.tgtY),d-=R,h+=R,f-=R,p+=R,gf(s,d,f,h,p),M==="haystack"){var P=_.haystackPts;if(P&&P.length===2){if(d=P[0].x,f=P[0].y,h=P[1].x,p=P[1].y,d>h){var N=d;d=h,h=N}if(f>p){var $=f;f=p,p=$}gf(s,d-R,f-R,h+R,p+R)}}else if(M==="bezier"||M==="unbundled-bezier"||U_(M,"segments")||U_(M,"taxi")){var U;switch(M){case"bezier":case"unbundled-bezier":U=_.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":U=_.linePts;break}if(U!=null)for(var B=0;B<U.length;B++){var V=U[B];d=V.x-R,h=V.x+R,f=V.y-R,p=V.y+R,gf(s,d,f,h,p)}}}else{var z=e.source(),G=z.position(),Y=e.target(),W=Y.position();if(d=G.x,h=W.x,f=G.y,p=W.y,d>h){var Q=d;d=h,h=Q}if(f>p){var ie=f;f=p,p=ie}d-=R,h+=R,f-=R,p+=R,gf(s,d,f,h,p)}if(i&&r.includeEdges&&u&&(zL(s,e,"mid-source"),zL(s,e,"mid-target"),zL(s,e,"source"),zL(s,e,"target")),i){var Z=e.pstyle("ghost").value==="yes";if(Z){var re=e.pstyle("ghost-offset-x").pfValue,K=e.pstyle("ghost-offset-y").pfValue;gf(s,s.x1+re,s.y1+K,s.x2+re,s.y2+K)}}var j=o.bodyBounds=o.bodyBounds||{};qxe(j,s),n6(j,v),r6(j,1),i&&(d=s.x1,h=s.x2,f=s.y1,p=s.y2,gf(s,d-x,f-x,h+x,p+x));var se=o.overlayBounds=o.overlayBounds||{};qxe(se,s),n6(se,v),r6(se,1);var le=o.labelBounds=o.labelBounds||{};le.all!=null?kAr(le.all):le.all=yu(),i&&r.includeLabels&&(r.includeMainLabels&&gX(s,e,null),u&&(r.includeSourceLabels&&gX(s,e,"source"),r.includeTargetLabels&&gX(s,e,"target")))}return s.x1=wh(s.x1),s.y1=wh(s.y1),s.x2=wh(s.x2),s.y2=wh(s.y2),s.w=wh(s.x2-s.x1),s.h=wh(s.y2-s.y1),s.w>0&&s.h>0&&b&&(n6(s,v),r6(s,1)),s},oVe=function(e){var r=0,n=function(s){return(s?1:0)<<r++},i=0;return i+=n(e.incudeNodes),i+=n(e.includeEdges),i+=n(e.includeLabels),i+=n(e.includeMainLabels),i+=n(e.includeSourceLabels),i+=n(e.includeTargetLabels),i+=n(e.includeOverlays),i+=n(e.includeOutlines),i},lVe=function(e){var r=function(o){return Math.round(o)};if(e.isEdge()){var n=e.source().position(),i=e.target().position();return Fxe([r(n.x),r(n.y),r(i.x),r(i.y)])}else{var a=e.position();return Fxe([r(a.x),r(a.y)])}},aRe=function(e,r){var n=e._private,i,a=e.isEdge(),s=r==null?sRe:oVe(r),o=s===sRe;if(n.bbCache==null?(i=ZOr(e,n3),n.bbCache=i,n.bbCachePosKey=lVe(e)):i=n.bbCache,!o){var l=e.isNode();i=yu(),(r.includeNodes&&l||r.includeEdges&&!l)&&(r.includeOverlays?y_(i,n.overlayBounds):y_(i,n.bodyBounds)),r.includeLabels&&(r.includeMainLabels&&(!a||r.includeSourceLabels&&r.includeTargetLabels)?y_(i,n.labelBounds.all):(r.includeMainLabels&&y_(i,n.labelBounds.mainRot),r.includeSourceLabels&&y_(i,n.labelBounds.sourceRot),r.includeTargetLabels&&y_(i,n.labelBounds.targetRot))),i.w=i.x2-i.x1,i.h=i.y2-i.y1}return i},n3={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},sRe=oVe(n3),oRe=cc(n3);X1.boundingBox=function(t){var e,r=t===void 0||t.useCache===void 0||t.useCache===!0,n=AA(function(d){var h=d._private;return h.bbCache==null||h.styleDirty||h.bbCachePosKey!==lVe(d)},function(d){return d.id()});if(r&&this.length===1&&!n(this[0]))t===void 0?t=n3:t=oRe(t),e=aRe(this[0],t);else{e=yu(),t=t||n3;var i=oRe(t),a=this,s=a.cy(),o=s.styleEnabled();this.edges().forEach(n),this.nodes().forEach(n),o&&this.recalculateRenderedStyle(r),this.updateCompoundBounds(!r);for(var l=0;l<a.length;l++){var u=a[l];n(u)&&u.dirtyBoundingBoxCache(),y_(e,aRe(u,i))}}return e.x1=wh(e.x1),e.y1=wh(e.y1),e.x2=wh(e.x2),e.y2=wh(e.y2),e.w=wh(e.x2-e.x1),e.h=wh(e.y2-e.y1),e};X1.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this};X1.boundingBoxAt=function(t){var e=this.nodes(),r=this.cy(),n=r.hasCompoundNodes(),i=r.collection();if(n&&(i=e.filter(function(u){return u.isParent()}),e=e.not(i)),fa(t)){var a=t;t=function(){return a}}var s=function(d,h){return d._private.bbAtOldPos=t(d,h)},o=function(d){return d._private.bbAtOldPos};r.startBatch(),e.forEach(s).silentPositions(t),n&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0));var l=NAr(this.boundingBox({useCache:!1}));return e.silentPositions(o),n&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0)),r.endBatch(),l};aC.boundingbox=aC.bb=aC.boundingBox;aC.renderedBoundingbox=aC.renderedBoundingBox;var JOr=X1,DI,iD;DI=iD={};var cVe=function(e){e.uppercaseName=Sxe(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=Sxe(e.outerName),DI[e.name]=function(){var n=this[0],i=n._private,a=i.cy,s=a._private.styleEnabled;if(n)if(s){if(n.isParent())return n.updateCompoundBounds(),i[e.autoName]||0;var o=n.pstyle(e.name);return o.strValue==="label"?(n.recalculateRenderedStyle(),i.rstyle[e.labelName]||0):o.pfValue}else return 1},DI["outer"+e.uppercaseName]=function(){var n=this[0],i=n._private,a=i.cy,s=a._private.styleEnabled;if(n)if(s){var o=n[e.name](),l=n.pstyle("border-position").value,u;l==="center"?u=n.pstyle("border-width").pfValue:l==="outside"?u=2*n.pstyle("border-width").pfValue:u=0;var d=2*n.padding();return o+u+d}else return 1},DI["rendered"+e.uppercaseName]=function(){var n=this[0];if(n){var i=n[e.name]();return i*this.cy().zoom()}},DI["rendered"+e.uppercaseOuterName]=function(){var n=this[0];if(n){var i=n[e.outerName]();return i*this.cy().zoom()}}};cVe({name:"width"});cVe({name:"height"});iD.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),e.autoPadding!==void 0?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue};iD.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()};iD.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var eIr=iD,tIr=function(e,r){if(e.isEdge()&&e.takesUpSpace())return r(e)},rIr=function(e,r){if(e.isEdge()&&e.takesUpSpace()){var n=e.cy();return _$(r(e),n.zoom(),n.pan())}},nIr=function(e,r){if(e.isEdge()&&e.takesUpSpace()){var n=e.cy(),i=n.pan(),a=n.zoom();return r(e).map(function(s){return _$(s,a,i)})}},iIr=function(e){return e.renderer().getControlPoints(e)},aIr=function(e){return e.renderer().getSegmentPoints(e)},sIr=function(e){return e.renderer().getSourceEndpoint(e)},oIr=function(e){return e.renderer().getTargetEndpoint(e)},lIr=function(e){return e.renderer().getEdgeMidpoint(e)},lRe={controlPoints:{get:iIr,mult:!0},segmentPoints:{get:aIr,mult:!0},sourceEndpoint:{get:sIr},targetEndpoint:{get:oIr},midpoint:{get:lIr}},cIr=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},uIr=Object.keys(lRe).reduce(function(t,e){var r=lRe[e],n=cIr(e);return t[e]=function(){return tIr(this,r.get)},r.mult?t[n]=function(){return nIr(this,r.get)}:t[n]=function(){return rIr(this,r.get)},t},{}),dIr=Yn({},jOr,JOr,eIr,uIr);var uVe=function(e,r){this.recycle(e,r)};function VO(){return!1}function qL(){return!0}uVe.prototype={instanceString:function(){return"event"},recycle:function(e,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=VO,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?qL:VO):e!=null&&e.type?r=e:this.type=e,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var n=this.position,i=this.cy.zoom(),a=this.cy.pan();this.renderedPosition={x:n.x*i+a.x,y:n.y*i+a.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=qL;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=qL;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=qL,this.stopPropagation()},isDefaultPrevented:VO,isPropagationStopped:VO,isImmediatePropagationStopped:VO};var dVe=/^([^.]+)(\.(?:[^.]+))?$/,hIr=".*",hVe={qualifierCompare:function(e,r){return e===r},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},cRe=Object.keys(hVe),fIr={};function C$(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fIr,e=arguments.length>1?arguments[1]:void 0,r=0;r<cRe.length;r++){var n=cRe[r];this[n]=t[n]||hVe[n]}this.context=e||this.context,this.listeners=[],this.emitting=0}var x1=C$.prototype,fVe=function(e,r,n,i,a,s,o){Qs(i)&&(a=i,i=null),o&&(s==null?s=o:s=Yn({},s,o));for(var l=Xa(n)?n:n.split(/\s+/),u=0;u<l.length;u++){var d=l[u];if(!E1(d)){var h=d.match(dVe);if(h){var f=h[1],p=h[2]?h[2]:null,g=r(e,d,f,p,i,a,s);if(g===!1)break}}}},uRe=function(e,r){return e.addEventFields(e.context,r),new uVe(r.type,r)},pIr=function(e,r,n){if(yxr(n)){r(e,n);return}else if(fa(n)){r(e,uRe(e,n));return}for(var i=Xa(n)?n:n.split(/\s+/),a=0;a<i.length;a++){var s=i[a];if(!E1(s)){var o=s.match(dVe);if(o){var l=o[1],u=o[2]?o[2]:null,d=uRe(e,{type:l,namespace:u,target:e.context});r(e,d)}}}};x1.on=x1.addListener=function(t,e,r,n,i){return fVe(this,function(a,s,o,l,u,d,h){Qs(d)&&a.listeners.push({event:s,callback:d,type:o,namespace:l,qualifier:u,conf:h})},t,e,r,n,i),this};x1.one=function(t,e,r,n){return this.on(t,e,r,n,{one:!0})};x1.removeListener=x1.off=function(t,e,r,n){var i=this;this.emitting!==0&&(this.listeners=tAr(this.listeners));for(var a=this.listeners,s=function(u){var d=a[u];fVe(i,function(h,f,p,g,m,_){if((d.type===p||t==="*")&&(!g&&d.namespace!==".*"||d.namespace===g)&&(!m||h.qualifierCompare(d.qualifier,m))&&(!_||d.callback===_))return a.splice(u,1),!1},t,e,r,n)},o=a.length-1;o>=0;o--)s(o);return this};x1.removeAllListeners=function(){return this.removeListener("*")};x1.emit=x1.trigger=function(t,e,r){var n=this.listeners,i=n.length;return this.emitting++,Xa(e)||(e=[e]),pIr(this,function(a,s){r!=null&&(n=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],i=n.length);for(var o=function(){var d=n[l];if(d.type===s.type&&(!d.namespace||d.namespace===s.namespace||d.namespace===hIr)&&a.eventMatches(a.context,d,s)){var h=[s];e!=null&&nAr(h,e),a.beforeEmit(a.context,d,s),d.conf&&d.conf.one&&(a.listeners=a.listeners.filter(function(g){return g!==d}));var f=a.callbackContext(a.context,d,s),p=d.callback.apply(f,h);a.afterEmit(a.context,d,s),p===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l<i;l++)o();a.bubble(a.context)&&!s.isPropagationStopped()&&a.parent(a.context).emit(s,e)},t),this.emitting--,this};var gIr={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var i=r.qualifier;return i!=null?e!==n.target&&Z5(n.target)&&i.matches(n.target):!0},addEventFields:function(e,r){r.cy=e.cy(),r.target=e},callbackContext:function(e,r,n){return r.qualifier!=null?n.target:e},beforeEmit:function(e,r){r.conf&&r.conf.once&&r.conf.onceCollection.removeListener(r.event,r.qualifier,r.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},VL=function(e){return Bn(e)?new C1(e):e},pVe={createEmitter:function(){for(var e=0;e<this.length;e++){var r=this[e],n=r._private;n.emitter||(n.emitter=new C$(gIr,r))}return this},emitter:function(){return this._private.emitter},on:function(e,r,n){for(var i=VL(r),a=0;a<this.length;a++){var s=this[a];s.emitter().on(e,i,n)}return this},removeListener:function(e,r,n){for(var i=VL(r),a=0;a<this.length;a++){var s=this[a];s.emitter().removeListener(e,i,n)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){var r=this[e];r.emitter().removeAllListeners()}return this},one:function(e,r,n){for(var i=VL(r),a=0;a<this.length;a++){var s=this[a];s.emitter().one(e,i,n)}return this},once:function(e,r,n){for(var i=VL(r),a=0;a<this.length;a++){var s=this[a];s.emitter().on(e,i,n,{once:!0,onceCollection:this})}},emit:function(e,r){for(var n=0;n<this.length;n++){var i=this[n];i.emitter().emit(e,r)}return this},emitAndNotify:function(e,r){if(this.length!==0)return this.cy().notify(e,this),this.emit(e,r),this}};Ma.eventAliasesOn(pVe);var gVe={nodes:function(e){return this.filter(function(r){return r.isNode()}).filter(e)},edges:function(e){return this.filter(function(r){return r.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),r=this.spawn(),n=0;n<this.length;n++){var i=this[n];i.isNode()?e.push(i):r.push(i)}return{nodes:e,edges:r}},filter:function(e,r){if(e===void 0)return this;if(Bn(e)||$d(e))return new C1(e).filter(this);if(Qs(e)){for(var n=this.spawn(),i=this,a=0;a<i.length;a++){var s=i[a],o=r?e.apply(r,[s,a,i]):e(s,a,i);o&&n.push(s)}return n}return this.spawn()},not:function(e){if(e){Bn(e)&&(e=this.filter(e));for(var r=this.spawn(),n=0;n<this.length;n++){var i=this[n],a=e.has(i);a||r.push(i)}return r}else return this},absoluteComplement:function(){var e=this.cy();return e.mutableElements().not(this)},intersect:function(e){if(Bn(e)){var r=e;return this.filter(r)}for(var n=this.spawn(),i=this,a=e,s=this.length<e.length,o=s?i:a,l=s?a:i,u=0;u<o.length;u++){var d=o[u];l.has(d)&&n.push(d)}return n},xor:function(e){var r=this._private.cy;Bn(e)&&(e=r.$(e));var n=this.spawn(),i=this,a=e,s=function(l,u){for(var d=0;d<l.length;d++){var h=l[d],f=h._private.data.id,p=u.hasElementWithId(f);p||n.push(h)}};return s(i,a),s(a,i),n},diff:function(e){var r=this._private.cy;Bn(e)&&(e=r.$(e));var n=this.spawn(),i=this.spawn(),a=this.spawn(),s=this,o=e,l=function(d,h,f){for(var p=0;p<d.length;p++){var g=d[p],m=g._private.data.id,_=h.hasElementWithId(m);_?a.merge(g):f.push(g)}};return l(s,o,n),l(o,s,i),{left:n,right:i,both:a}},add:function(e){var r=this._private.cy;if(!e)return this;if(Bn(e)){var n=e;e=r.mutableElements().filter(n)}for(var i=this.spawnSelf(),a=0;a<e.length;a++){var s=e[a],o=!this.has(s);o&&i.push(s)}return i},merge:function(e){var r=this._private,n=r.cy;if(!e)return this;if(e&&Bn(e)){var i=e;e=n.mutableElements().filter(i)}for(var a=r.map,s=0;s<e.length;s++){var o=e[s],l=o._private.data.id,u=!a.has(l);if(u){var d=this.length++;this[d]=o,a.set(l,{ele:o,index:d})}}return this},unmergeAt:function(e){var r=this[e],n=r.id(),i=this._private,a=i.map;this[e]=void 0,a.delete(n);var s=e===this.length-1;if(this.length>1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,a.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,n=e._private.data.id,i=r.map,a=i.get(n);if(!a)return this;var s=a.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&Bn(e)){var n=e;e=r.mutableElements().filter(n)}for(var i=0;i<e.length;i++)this.unmergeOne(e[i]);return this},unmergeBy:function(e){for(var r=this.length-1;r>=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},map:function(e,r){for(var n=[],i=this,a=0;a<i.length;a++){var s=i[a],o=r?e.apply(r,[s,a,i]):e(s,a,i);n.push(o)}return n},reduce:function(e,r){for(var n=r,i=this,a=0;a<i.length;a++)n=e(n,i[a],a,i);return n},max:function(e,r){for(var n=-1/0,i,a=this,s=0;s<a.length;s++){var o=a[s],l=r?e.apply(r,[o,s,a]):e(o,s,a);l>n&&(n=l,i=o)}return{value:n,ele:i}},min:function(e,r){for(var n=1/0,i,a=this,s=0;s<a.length;s++){var o=a[s],l=r?e.apply(r,[o,s,a]):e(o,s,a);l<n&&(n=l,i=o)}return{value:n,ele:i}}},ya=gVe;ya.u=ya["|"]=ya["+"]=ya.union=ya.or=ya.add;ya["\\"]=ya["!"]=ya["-"]=ya.difference=ya.relativeComplement=ya.subtract=ya.not;ya.n=ya["&"]=ya["."]=ya.and=ya.intersection=ya.intersect;ya["^"]=ya["(+)"]=ya["(-)"]=ya.symmetricDifference=ya.symdiff=ya.xor;ya.fnFilter=ya.filterFn=ya.stdFilter=ya.filter;ya.complement=ya.abscomp=ya.absoluteComplement;var mIr={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},mVe=function(e,r){var n=e.cy(),i=n.hasCompoundNodes();function a(d){var h=d.pstyle("z-compound-depth");return h.value==="auto"?i?d.zDepth():0:h.value==="bottom"?-1:h.value==="top"?Bue:0}var s=a(e)-a(r);if(s!==0)return s;function o(d){var h=d.pstyle("z-index-compare");return h.value==="auto"&&d.isNode()?1:0}var l=o(e)-o(r);if(l!==0)return l;var u=e.pstyle("z-index").value-r.pstyle("z-index").value;return u!==0?u:e.poolIndex()-r.poolIndex()},v8={forEach:function(e,r){if(Qs(e))for(var n=this.length,i=0;i<n;i++){var a=this[i],s=r?e.apply(r,[a,i,this]):e(a,i,this);if(s===!1)break}return this},toArray:function(){for(var e=[],r=0;r<this.length;r++)e.push(this[r]);return e},slice:function(e,r){var n=[],i=this.length;r==null&&(r=i),e==null&&(e=0),e<0&&(e=i+e),r<0&&(r=i+r);for(var a=e;a>=0&&a<r&&a<i;a++)n.push(this[a]);return this.spawn(n)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return this.length===0},nonempty:function(){return!this.empty()},sort:function(e){if(!Qs(e))return this;var r=this.toArray().sort(e);return this.spawn(r)},sortByZIndex:function(){return this.sort(mVe)},zDepth:function(){var e=this[0];if(e){var r=e._private,n=r.group;if(n==="nodes"){var i=r.data.parent?e.parents().size():0;return e.isParent()?i:Bue-1}else{var a=r.source,s=r.target,o=a.zDepth(),l=s.zDepth();return Math.max(o,l,0)}}}};v8.each=v8.forEach;var _Ir=function(){var e="undefined",r=(typeof Symbol>"u"?"undefined":ml(Symbol))!=e&&ml(Symbol.iterator)!=e;r&&(v8[Symbol.iterator]=function(){var n=this,i={value:void 0,done:!1},a=0,s=this.length;return pqe({next:function(){return a<s?i.value=n[a++]:(i.value=void 0,i.done=!0),i}},Symbol.iterator,function(){return this})})};_Ir();var vIr=cc({nodeDimensionsIncludeLabels:!1}),a6={layoutDimensions:function(e){e=vIr(e);var r;if(!this.takesUpSpace())r={w:0,h:0};else if(e.nodeDimensionsIncludeLabels){var n=this.boundingBox();r={w:n.w,h:n.h}}else r={w:this.outerWidth(),h:this.outerHeight()};return(r.w===0||r.h===0)&&(r.w=r.h=1),r},layoutPositions:function(e,r,n){var i=this.nodes().filter(function(S){return!S.isParent()}),a=this.cy(),s=r.eles,o=function(T){return T.id()},l=AA(n,o);e.emit({type:"layoutstart",layout:e}),e.animations=[];var u=function(T,C,x){var A={x:C.x1+C.w/2,y:C.y1+C.h/2},R={x:(x.x-A.x)*T,y:(x.y-A.y)*T};return{x:A.x+R.x,y:A.y+R.y}},d=r.spacingFactor&&r.spacingFactor!==1,h=function(){if(!d)return null;for(var T=yu(),C=0;C<i.length;C++){var x=i[C],A=l(x,C);Mqe(T,A.x,A.y)}return T},f=h(),p=AA(function(S,T){var C=l(S,T);if(d){var x=Math.abs(r.spacingFactor);C=u(x,f,C)}return r.transform!=null&&(C=r.transform(S,C)),C},o);if(r.animate){for(var g=0;g<i.length;g++){var m=i[g],_=p(m,g),v=r.animateFilter==null||r.animateFilter(m,g);if(v){var y=m.animation({position:_,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(y)}else m.position(_)}if(r.fit){var b=a.animation({fit:{boundingBox:s.boundingBoxAt(p),padding:r.padding},duration:r.animationDuration,easing:r.animationEasing});e.animations.push(b)}else if(r.zoom!==void 0&&r.pan!==void 0){var E=a.animation({zoom:r.zoom,pan:r.pan,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(E)}e.animations.forEach(function(S){return S.play()}),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),MR.all(e.animations.map(function(S){return S.promise()})).then(function(){e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e})})}else i.positions(p),r.fit&&a.fit(r.eles,r.padding),r.zoom!=null&&a.zoom(r.zoom),r.pan&&a.pan(r.pan),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){var r=this.cy();return r.makeLayout(Yn({},e,{eles:this}))}};a6.createLayout=a6.makeLayout=a6.layout;function _Ve(t,e,r){var n=r._private,i=n.styleCache=n.styleCache||[],a;return(a=i[t])!=null||(a=i[t]=e(r)),a}function w$(t,e){return t=zb(t),function(n){return _Ve(t,e,n)}}function x$(t,e){t=zb(t);var r=function(i){return e.call(i)};return function(){var i=this[0];if(i)return _Ve(t,r,i)}}var tc={recalculateRenderedStyle:function(e){var r=this.cy(),n=r.renderer(),i=r.styleEnabled();return n&&i&&n.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e=this.cy(),r=function(a){return a._private.styleCache=null};if(e.hasCompoundNodes()){var n;n=this.spawnSelf().merge(this.descendants()).merge(this.parents()),n.merge(n.connectedEdges()),n.forEach(r)}else this.forEach(function(i){r(i),i.connectedEdges().forEach(r)});return this},updateStyle:function(e){var r=this._private.cy;if(!r.styleEnabled())return this;if(r.batching()){var n=r._private.batchStyleEles;return n.merge(this),this}var i=r.hasCompoundNodes(),a=this;e=!!(e||e===void 0),i&&(a=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var s=a;return e?s.emitAndNotify("style"):s.emit("style"),a.forEach(function(o){return o._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var r=0;r<this.length;r++){var n=this[r];n._private.styleDirty&&(n._private.styleDirty=!1,e.style().apply(n))}},parsedStyle:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],i=n.cy();if(i.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,i.style().apply(n));var a=n._private.style[e];return a??(r?i.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var n=r.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=this[0];if(n)return r.style().getRenderedStyle(n,e)},style:function(e,r){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,a=n.style();if(fa(e)){var s=e;a.applyBypass(this,s,i),this.emitAndNotify("style")}else if(Bn(e))if(r===void 0){var o=this[0];return o?a.getStylePropertyValue(o,e):void 0}else a.applyBypass(this,e,r,i),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?a.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,i=r.style(),a=this;if(e===void 0)for(var s=0;s<a.length;s++){var o=a[s];i.removeAllBypasses(o,n)}else{e=e.split(/\s+/);for(var l=0;l<a.length;l++){var u=a[l];i.removeBypasses(u,e,n)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var r=e.hasCompoundNodes(),n=this[0];if(n){var i=n._private,a=n.pstyle("opacity").value;if(!r)return a;var s=i.data.parent?n.parents():null;if(s)for(var o=0;o<s.length;o++){var l=s[o],u=l.pstyle("opacity").value;a=u*a}return a}},transparent:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0],n=r.cy().hasCompoundNodes();if(r)return n?r.effectiveOpacity()===0:r.pstyle("opacity").value===0},backgrounding:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0];return!!r._private.backgrounding}};function mX(t,e){var r=t._private,n=r.data.parent?t.parents():null;if(n)for(var i=0;i<n.length;i++){var a=n[i];if(!e(a))return!1}return!0}function Xue(t){var e=t.ok,r=t.edgeOkViaNode||t.ok,n=t.parentOk||t.ok;return function(){var i=this.cy();if(!i.styleEnabled())return!0;var a=this[0],s=i.hasCompoundNodes();if(a){var o=a._private;if(!e(a))return!1;if(a.isNode())return!s||mX(a,n);var l=o.source,u=o.target;return r(l)&&(!s||mX(l,r))&&(l===u||r(u)&&(!s||mX(u,r)))}}}var LR=w$("eleTakesUpSpace",function(t){return t.pstyle("display").value==="element"&&t.width()!==0&&(t.isNode()?t.height()!==0:!0)});tc.takesUpSpace=x$("takesUpSpace",Xue({ok:LR}));var yIr=w$("eleInteractive",function(t){return t.pstyle("events").value==="yes"&&t.pstyle("visibility").value==="visible"&&LR(t)}),bIr=w$("parentInteractive",function(t){return t.pstyle("visibility").value==="visible"&&LR(t)});tc.interactive=x$("interactive",Xue({ok:yIr,parentOk:bIr,edgeOkViaNode:LR}));tc.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var EIr=w$("eleVisible",function(t){return t.pstyle("visibility").value==="visible"&&t.pstyle("opacity").pfValue!==0&&LR(t)}),SIr=LR;tc.visible=x$("visible",Xue({ok:EIr,edgeOkViaNode:SIr}));tc.hidden=function(){var t=this[0];if(t)return!t.visible()};tc.isBundledBezier=x$("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1});tc.bypass=tc.css=tc.style;tc.renderedCss=tc.renderedStyle;tc.removeBypass=tc.removeCss=tc.removeStyle;tc.pstyle=tc.parsedStyle;var Q_={};function dRe(t){return function(){var e=arguments,r=[];if(e.length===2){var n=e[0],i=e[1];this.on(t.event,n,i)}else if(e.length===1&&Qs(e[0])){var a=e[0];this.on(t.event,a)}else if(e.length===0||e.length===1&&Xa(e[0])){for(var s=e.length===1?e[0]:null,o=0;o<this.length;o++){var l=this[o],u=!t.ableField||l._private[t.ableField],d=l._private[t.field]!=t.value;if(t.overrideAble){var h=t.overrideAble(l);if(h!==void 0&&(u=h,!h))return this}u&&(l._private[t.field]=t.value,d&&r.push(l))}var f=this.spawn(r);f.updateStyle(),f.emit(t.event),s&&f.emit(s)}return this}}function PR(t){Q_[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var r=t.overrideField(e);if(r!==void 0)return r}return e._private[t.field]}},Q_[t.on]=dRe({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Q_[t.off]=dRe({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}PR({field:"locked",overrideField:function(e){return e.cy().autolock()?!0:void 0},on:"lock",off:"unlock"});PR({field:"grabbable",overrideField:function(e){return e.cy().autoungrabify()||e.pannable()?!1:void 0},on:"grabify",off:"ungrabify"});PR({field:"selected",ableField:"selectable",overrideAble:function(e){return e.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"});PR({field:"selectable",overrideField:function(e){return e.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"});Q_.deselect=Q_.unselect;Q_.grabbed=function(){var t=this[0];if(t)return t._private.grabbed};PR({field:"active",on:"activate",off:"unactivate"});PR({field:"pannable",on:"panify",off:"unpanify"});Q_.inactive=function(){var t=this[0];if(t)return!t._private.active};var kc={},hRe=function(e){return function(n){for(var i=this,a=[],s=0;s<i.length;s++){var o=i[s];if(o.isNode()){for(var l=!1,u=o.connectedEdges(),d=0;d<u.length;d++){var h=u[d],f=h.source(),p=h.target();if(e.noIncomingEdges&&p===o&&f!==o||e.noOutgoingEdges&&f===o&&p!==o){l=!0;break}}l||a.push(o)}}return this.spawn(a,!0).filter(n)}},fRe=function(e){return function(r){for(var n=this,i=[],a=0;a<n.length;a++){var s=n[a];if(s.isNode())for(var o=s.connectedEdges(),l=0;l<o.length;l++){var u=o[l],d=u.source(),h=u.target();e.outgoing&&d===s?(i.push(u),i.push(h)):e.incoming&&h===s&&(i.push(u),i.push(d))}}return this.spawn(i,!0).filter(r)}},pRe=function(e){return function(r){for(var n=this,i=[],a={};;){var s=e.outgoing?n.outgoers():n.incomers();if(s.length===0)break;for(var o=!1,l=0;l<s.length;l++){var u=s[l],d=u.id();a[d]||(a[d]=!0,i.push(u),o=!0)}if(!o)break;n=s}return this.spawn(i,!0).filter(r)}};kc.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null};Yn(kc,{roots:hRe({noIncomingEdges:!0}),leaves:hRe({noOutgoingEdges:!0}),outgoers:kh(fRe({outgoing:!0}),"outgoers"),successors:pRe({outgoing:!0}),incomers:kh(fRe({incoming:!0}),"incomers"),predecessors:pRe({})});Yn(kc,{neighborhood:kh(function(t){for(var e=[],r=this.nodes(),n=0;n<r.length;n++)for(var i=r[n],a=i.connectedEdges(),s=0;s<a.length;s++){var o=a[s],l=o.source(),u=o.target(),d=i===l?u:l;d.length>0&&e.push(d[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});kc.neighbourhood=kc.neighborhood;kc.closedNeighbourhood=kc.closedNeighborhood;kc.openNeighbourhood=kc.openNeighborhood;Yn(kc,{source:kh(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"source"),target:kh(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"target"),sources:gRe({attr:"source"}),targets:gRe({attr:"target"})});function gRe(t){return function(r){for(var n=[],i=0;i<this.length;i++){var a=this[i],s=a._private[t.attr];s&&n.push(s)}return this.spawn(n,!0).filter(r)}}Yn(kc,{edgesWith:kh(mRe(),"edgesWith"),edgesTo:kh(mRe({thisIsSrc:!0}),"edgesTo")});function mRe(t){return function(r){var n=[],i=this._private.cy,a=t||{};Bn(r)&&(r=i.$(r));for(var s=0;s<r.length;s++)for(var o=r[s]._private.edges,l=0;l<o.length;l++){var u=o[l],d=u._private.data,h=this.hasElementWithId(d.source)&&r.hasElementWithId(d.target),f=r.hasElementWithId(d.source)&&this.hasElementWithId(d.target),p=h||f;p&&((a.thisIsSrc||a.thisIsTgt)&&(a.thisIsSrc&&!h||a.thisIsTgt&&!f)||n.push(u))}return this.spawn(n,!0)}}Yn(kc,{connectedEdges:kh(function(t){for(var e=[],r=this,n=0;n<r.length;n++){var i=r[n];if(i.isNode())for(var a=i._private.edges,s=0;s<a.length;s++){var o=a[s];e.push(o)}}return this.spawn(e,!0).filter(t)},"connectedEdges"),connectedNodes:kh(function(t){for(var e=[],r=this,n=0;n<r.length;n++){var i=r[n];i.isEdge()&&(e.push(i.source()[0]),e.push(i.target()[0]))}return this.spawn(e,!0).filter(t)},"connectedNodes"),parallelEdges:kh(_Re(),"parallelEdges"),codirectedEdges:kh(_Re({codirected:!0}),"codirectedEdges")});function _Re(t){var e={codirected:!1};return t=Yn({},e,t),function(n){for(var i=[],a=this.edges(),s=t,o=0;o<a.length;o++)for(var l=a[o],u=l._private,d=u.source,h=d._private.data.id,f=u.data.target,p=d._private.edges,g=0;g<p.length;g++){var m=p[g],_=m._private.data,v=_.target,y=_.source,b=v===f&&y===h,E=h===v&&f===y;(s.codirected&&b||!s.codirected&&(b||E))&&i.push(m)}return this.spawn(i,!0).filter(n)}}Yn(kc,{components:function(e){var r=this,n=r.cy(),i=n.collection(),a=e==null?r.nodes():e.nodes(),s=[];e!=null&&a.empty()&&(a=e.sources());var o=function(d,h){i.merge(d),a.unmerge(d),h.merge(d)};if(a.empty())return r.spawn();var l=function(){var d=n.collection();s.push(d);var h=a[0];o(h,d),r.bfs({directed:!1,roots:h,visit:function(p){return o(p,d)}}),d.forEach(function(f){f.connectedEdges().forEach(function(p){r.has(p)&&d.has(p.source())&&d.has(p.target())&&d.merge(p)})})};do l();while(a.length>0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});kc.componentsOf=kc.components;var rc=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Os("A collection must have a reference to the core");return}var a=new Bm,s=!1;if(!r)r=[];else if(r.length>0&&fa(r[0])&&!Z5(r[0])){s=!0;for(var o=[],l=new DR,u=0,d=r.length;u<d;u++){var h=r[u];h.data==null&&(h.data={});var f=h.data;if(f.id==null)f.id=Nqe();else if(e.hasElementWithId(f.id)||l.has(f.id))continue;var p=new m$(e,h,!1);o.push(p),l.add(f.id)}r=o}this.length=0;for(var g=0,m=r.length;g<m;g++){var _=r[g][0];if(_!=null){var v=_._private.data.id;(!n||!a.has(v))&&(n&&a.set(v,{index:this.length,ele:_}),this[this.length]=_,this.length++)}}this._private={eles:this,cy:e,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(y){this.lazyMap=y},rebuildMap:function(){for(var b=this.lazyMap=new Bm,E=this.eles,S=0;S<E.length;S++){var T=E[S];b.set(T.id(),{index:S,ele:T})}}},n&&(this._private.map=a),s&&!i&&this.restore()},cs=m$.prototype=rc.prototype=Object.create(Array.prototype);cs.instanceString=function(){return"collection"};cs.spawn=function(t,e){return new rc(this.cy(),t,e)};cs.spawnSelf=function(){return this.spawn(this)};cs.cy=function(){return this._private.cy};cs.renderer=function(){return this._private.cy.renderer()};cs.element=function(){return this[0]};cs.collection=function(){return _qe(this)?this:new rc(this._private.cy,[this])};cs.unique=function(){return new rc(this._private.cy,this,!0)};cs.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)};cs.getElementById=function(t){t=""+t;var e=this._private.cy,r=this._private.map.get(t);return r?r.ele:new rc(e)};cs.$id=cs.getElementById;cs.poolIndex=function(){var t=this._private.cy,e=t._private.elements,r=this[0]._private.data.id;return e._private.map.get(r).index};cs.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index};cs.indexOfId=function(t){return t=""+t,this._private.map.get(t).index};cs.json=function(t){var e=this.element(),r=this.cy();if(e==null&&t)return this;if(e!=null){var n=e._private;if(fa(t)){if(r.startBatch(),t.data){e.data(t.data);var i=n.data;if(e.isEdge()){var a=!1,s={},o=t.data.source,l=t.data.target;o!=null&&o!=i.source&&(s.source=""+o,a=!0),l!=null&&l!=i.target&&(s.target=""+l,a=!0),a&&(e=e.move(s))}else{var u="parent"in t.data,d=t.data.parent;u&&(d!=null||i.parent!=null)&&d!=i.parent&&(d===void 0&&(d=null),d!=null&&(d=""+d),e=e.move({parent:d}))}}t.position&&e.position(t.position);var h=function(m,_,v){var y=t[m];y!=null&&y!==n[m]&&(y?e[_]():e[v]())};return h("removed","remove","restore"),h("selected","select","unselect"),h("selectable","selectify","unselectify"),h("locked","lock","unlock"),h("grabbable","grabify","ungrabify"),h("pannable","panify","unpanify"),t.classes!=null&&e.classes(t.classes),r.endBatch(),this}else if(t===void 0){var f={data:Xp(n.data),position:Xp(n.position),group:n.group,removed:n.removed,selected:n.selected,selectable:n.selectable,locked:n.locked,grabbable:n.grabbable,pannable:n.pannable,classes:null};f.classes="";var p=0;return n.classes.forEach(function(g){return f.classes+=p++===0?g:" "+g}),f}}};cs.jsons=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e],n=r.json();t.push(n)}return t};cs.clone=function(){for(var t=this.cy(),e=[],r=0;r<this.length;r++){var n=this[r],i=n.json(),a=new m$(t,i,!1);e.push(a)}return new rc(t,e)};cs.copy=cs.clone;cs.restore=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),i=n._private,a=[],s=[],o,l=0,u=r.length;l<u;l++){var d=r[l];e&&!d.removed()||(d.isNode()?a.push(d):s.push(d))}o=a.concat(s);var h,f=function(){o.splice(h,1),h--};for(h=0;h<o.length;h++){var p=o[h],g=p._private,m=g.data;if(p.clearTraversalCache(),!(!e&&!g.removed)){if(m.id===void 0)m.id=Nqe();else if(Gr(m.id))m.id=""+m.id;else if(E1(m.id)||!Bn(m.id)){Os("Can not create element with invalid string ID `"+m.id+"`"),f();continue}else if(n.hasElementWithId(m.id)){Os("Can not create second element with ID `"+m.id+"`"),f();continue}}var _=m.id;if(p.isNode()){var v=g.position;v.x==null&&(v.x=0),v.y==null&&(v.y=0)}if(p.isEdge()){for(var y=p,b=["source","target"],E=b.length,S=!1,T=0;T<E;T++){var C=b[T],x=m[C];Gr(x)&&(x=m[C]=""+m[C]),x==null||x===""?(Os("Can not create edge `"+_+"` with unspecified "+C),S=!0):n.hasElementWithId(x)||(Os("Can not create edge `"+_+"` with nonexistent "+C+" `"+x+"`"),S=!0)}if(S){f();continue}var A=n.getElementById(m.source),R=n.getElementById(m.target);A.same(R)?A._private.edges.push(y):(A._private.edges.push(y),R._private.edges.push(y)),y._private.source=A,y._private.target=R}g.map=new Bm,g.map.set(_,{ele:p,index:0}),g.removed=!1,e&&n.addToPool(p)}for(var I=0;I<a.length;I++){var L=a[I],F=L._private.data;Gr(F.parent)&&(F.parent=""+F.parent);var O=F.parent,D=O!=null;if(D||L._private.parent){var M=L._private.parent?n.collection().merge(L._private.parent):n.getElementById(O);if(M.empty())F.parent=void 0;else if(M[0].removed())Pa("Node added with missing parent, reference to parent removed"),F.parent=void 0,L._private.parent=null;else{for(var P=!1,N=M;!N.empty();){if(L.same(N)){P=!0,F.parent=void 0;break}N=N.parent()}P||(M[0]._private.children.push(L),L._private.parent=M[0],i.hasCompoundNodes=!0)}}}if(o.length>0){for(var $=o.length===r.length?r:new rc(n,o),U=0;U<$.length;U++){var B=$[U];B.isNode()||(B.parallelEdges().clearTraversalCache(),B.source().clearTraversalCache(),B.target().clearTraversalCache())}var V;i.hasCompoundNodes?V=n.collection().merge($).merge($.connectedNodes()).merge($.parent()):V=$,V.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(t),t?$.emitAndNotify("add"):e&&$.emit("add")}return r};cs.removed=function(){var t=this[0];return t&&t._private.removed};cs.inside=function(){var t=this[0];return t&&!t._private.removed};cs.remove=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],i={},a=r._private.cy;function s(O){for(var D=O._private.edges,M=0;M<D.length;M++)l(D[M])}function o(O){for(var D=O._private.children,M=0;M<D.length;M++)l(D[M])}function l(O){var D=i[O.id()];e&&O.removed()||D||(i[O.id()]=!0,O.isNode()?(n.push(O),s(O),o(O)):n.unshift(O))}for(var u=0,d=r.length;u<d;u++){var h=r[u];l(h)}function f(O,D){var M=O._private.edges;S1(M,D),O.clearTraversalCache()}function p(O){O.clearTraversalCache()}var g=[];g.ids={};function m(O,D){D=D[0],O=O[0];var M=O._private.children,P=O.id();S1(M,D),D._private.parent=null,g.ids[P]||(g.ids[P]=!0,g.push(O))}r.dirtyCompoundBoundsCache(),e&&a.removeFromPool(n);for(var _=0;_<n.length;_++){var v=n[_];if(v.isEdge()){var y=v.source()[0],b=v.target()[0];f(y,v),f(b,v);for(var E=v.parallelEdges(),S=0;S<E.length;S++){var T=E[S];p(T),T.isBundledBezier()&&T.dirtyBoundingBoxCache()}}else{var C=v.parent();C.length!==0&&m(C,v)}e&&(v._private.removed=!0)}var x=a._private.elements;a._private.hasCompoundNodes=!1;for(var A=0;A<x.length;A++){var R=x[A];if(R.isParent()){a._private.hasCompoundNodes=!0;break}}var I=new rc(this.cy(),n);I.size()>0&&(t?I.emitAndNotify("remove"):e&&I.emit("remove"));for(var L=0;L<g.length;L++){var F=g[L];(!e||!F.removed())&&F.updateStyle()}return I};cs.move=function(t){var e=this._private.cy,r=this,n=!1,i=!1,a=function(g){return g==null?g:""+g};if(t.source!==void 0||t.target!==void 0){var s=a(t.source),o=a(t.target),l=s!=null&&e.hasElementWithId(s),u=o!=null&&e.hasElementWithId(o);(l||u)&&(e.batch(function(){r.remove(n,i),r.emitAndNotify("moveout");for(var p=0;p<r.length;p++){var g=r[p],m=g._private.data;g.isEdge()&&(l&&(m.source=s),u&&(m.target=o))}r.restore(n,i)}),r.emitAndNotify("move"))}else if(t.parent!==void 0){var d=a(t.parent),h=d===null||e.hasElementWithId(d);if(h){var f=d===null?void 0:d;e.batch(function(){var p=r.remove(n,i);p.emitAndNotify("moveout");for(var g=0;g<r.length;g++){var m=r[g],_=m._private.data;m.isNode()&&(_.parent=f)}p.restore(n,i)}),r.emitAndNotify("move")}}return this};[qqe,kOr,i6,X_,OA,KOr,T$,dIr,pVe,gVe,mIr,v8,a6,tc,Q_,kc].forEach(function(t){Yn(cs,t)});var TIr={add:function(e){var r,n=this;if($d(e)){var i=e;if(i._private.cy===n)r=i.restore();else{for(var a=[],s=0;s<i.length;s++){var o=i[s];a.push(o.json())}r=new rc(n,a)}}else if(Xa(e)){var l=e;r=new rc(n,l)}else if(fa(e)&&(Xa(e.nodes)||Xa(e.edges))){for(var u=e,d=[],h=["nodes","edges"],f=0,p=h.length;f<p;f++){var g=h[f],m=u[g];if(Xa(m))for(var _=0,v=m.length;_<v;_++){var y=Yn({group:g},m[_]);d.push(y)}}r=new rc(n,d)}else{var b=e;r=new m$(n,b).collection()}return r},remove:function(e){if(!$d(e)){if(Bn(e)){var r=e;e=this.$(r)}}return e.remove()}};function CIr(t,e,r,n){var i=4,a=.001,s=1e-7,o=10,l=11,u=1/(l-1),d=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var h=0;h<4;++h)if(typeof arguments[h]!="number"||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;t=Math.min(t,1),r=Math.min(r,1),t=Math.max(t,0),r=Math.max(r,0);var f=d?new Float32Array(l):new Array(l);function p(R,I){return 1-3*I+3*R}function g(R,I){return 3*I-6*R}function m(R){return 3*R}function _(R,I,L){return((p(I,L)*R+g(I,L))*R+m(I))*R}function v(R,I,L){return 3*p(I,L)*R*R+2*g(I,L)*R+m(I)}function y(R,I){for(var L=0;L<i;++L){var F=v(I,t,r);if(F===0)return I;var O=_(I,t,r)-R;I-=O/F}return I}function b(){for(var R=0;R<l;++R)f[R]=_(R*u,t,r)}function E(R,I,L){var F,O,D=0;do O=I+(L-I)/2,F=_(O,t,r)-R,F>0?L=O:I=O;while(Math.abs(F)>s&&++D<o);return O}function S(R){for(var I=0,L=1,F=l-1;L!==F&&f[L]<=R;++L)I+=u;--L;var O=(R-f[L])/(f[L+1]-f[L]),D=I+O*u,M=v(D,t,r);return M>=a?y(R,D):M===0?D:E(R,I,I+u)}var T=!1;function C(){T=!0,(t!==e||r!==n)&&b()}var x=function(I){return T||C(),t===e&&r===n?I:I===0?0:I===1?1:_(S(I),e,n)};x.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var A="generateBezier("+[t,e,r,n]+")";return x.toString=function(){return A},x}var wIr=(function(){function t(n){return-n.tension*n.x-n.friction*n.v}function e(n,i,a){var s={x:n.x+a.dx*i,v:n.v+a.dv*i,tension:n.tension,friction:n.friction};return{dx:s.v,dv:t(s)}}function r(n,i){var a={dx:n.v,dv:t(n)},s=e(n,i*.5,a),o=e(n,i*.5,s),l=e(n,i,o),u=1/6*(a.dx+2*(s.dx+o.dx)+l.dx),d=1/6*(a.dv+2*(s.dv+o.dv)+l.dv);return n.x=n.x+u*i,n.v=n.v+d*i,n}return function n(i,a,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,d=1/1e4,h=16/1e3,f,p,g;for(i=parseFloat(i)||500,a=parseFloat(a)||20,s=s||null,o.tension=i,o.friction=a,f=s!==null,f?(u=n(i,a),p=u/s*h):p=h;g=r(g||o,p),l.push(1+g.x),u+=16,Math.abs(g.x)>d&&Math.abs(g.v)>d;);return f?function(m){return l[m*(l.length-1)|0]}:u}})(),es=function(e,r,n,i){var a=CIr(e,r,n,i);return function(s,o,l){return s+(o-s)*a(l)}},s6={linear:function(e,r,n){return e+(r-e)*n},ease:es(.25,.1,.25,1),"ease-in":es(.42,0,1,1),"ease-out":es(0,0,.58,1),"ease-in-out":es(.42,0,.58,1),"ease-in-sine":es(.47,0,.745,.715),"ease-out-sine":es(.39,.575,.565,1),"ease-in-out-sine":es(.445,.05,.55,.95),"ease-in-quad":es(.55,.085,.68,.53),"ease-out-quad":es(.25,.46,.45,.94),"ease-in-out-quad":es(.455,.03,.515,.955),"ease-in-cubic":es(.55,.055,.675,.19),"ease-out-cubic":es(.215,.61,.355,1),"ease-in-out-cubic":es(.645,.045,.355,1),"ease-in-quart":es(.895,.03,.685,.22),"ease-out-quart":es(.165,.84,.44,1),"ease-in-out-quart":es(.77,0,.175,1),"ease-in-quint":es(.755,.05,.855,.06),"ease-out-quint":es(.23,1,.32,1),"ease-in-out-quint":es(.86,0,.07,1),"ease-in-expo":es(.95,.05,.795,.035),"ease-out-expo":es(.19,1,.22,1),"ease-in-out-expo":es(1,0,0,1),"ease-in-circ":es(.6,.04,.98,.335),"ease-out-circ":es(.075,.82,.165,1),"ease-in-out-circ":es(.785,.135,.15,.86),spring:function(e,r,n){if(n===0)return s6.linear;var i=wIr(e,r,n);return function(a,s,o){return a+(s-a)*i(o)}},"cubic-bezier":es};function vRe(t,e,r,n,i){if(n===1||e===r)return r;var a=i(e,r,n);return t==null||((t.roundValue||t.color)&&(a=Math.round(a)),t.min!==void 0&&(a=Math.max(a,t.min)),t.max!==void 0&&(a=Math.min(a,t.max))),a}function yRe(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function gS(t,e,r,n,i){var a=i!=null?i.type:null;r<0?r=0:r>1&&(r=1);var s=yRe(t,i),o=yRe(e,i);if(Gr(s)&&Gr(o))return vRe(a,s,o,r,n);if(Xa(s)&&Xa(o)){for(var l=[],u=0;u<o.length;u++){var d=s[u],h=o[u];if(d!=null&&h!=null){var f=vRe(a,d,h,r,n);l.push(f)}else l.push(h)}return l}}function xIr(t,e,r,n){var i=!n,a=t._private,s=e._private,o=s.easing,l=s.startTime,u=n?t:t.cy(),d=u.style();if(!s.easingImpl)if(o==null)s.easingImpl=s6.linear;else{var h;if(Bn(o)){var f=d.parse("transition-timing-function",o);h=f.value}else h=o;var p,g;Bn(h)?(p=h,g=[]):(p=h[1],g=h.slice(2).map(function($){return+$})),g.length>0?(p==="spring"&&g.push(s.duration),s.easingImpl=s6[p].apply(null,g)):s.easingImpl=s6[p]}var m=s.easingImpl,_;if(s.duration===0?_=1:_=(r-l)/s.duration,s.applying&&(_=s.progress),_<0?_=0:_>1&&(_=1),s.delay==null){var v=s.startPosition,y=s.position;if(y&&i&&!t.locked()){var b={};HO(v.x,y.x)&&(b.x=gS(v.x,y.x,_,m)),HO(v.y,y.y)&&(b.y=gS(v.y,y.y,_,m)),t.position(b)}var E=s.startPan,S=s.pan,T=a.pan,C=S!=null&&n;C&&(HO(E.x,S.x)&&(T.x=gS(E.x,S.x,_,m)),HO(E.y,S.y)&&(T.y=gS(E.y,S.y,_,m)),t.emit("pan"));var x=s.startZoom,A=s.zoom,R=A!=null&&n;R&&(HO(x,A)&&(a.zoom=e3(a.minZoom,gS(x,A,_,m),a.maxZoom)),t.emit("zoom")),(C||R)&&t.emit("viewport");var I=s.style;if(I&&I.length>0&&i){for(var L=0;L<I.length;L++){var F=I[L],O=F.name,D=F,M=s.startStyle[O],P=d.properties[M.name],N=gS(M,D,_,m,P);d.overrideBypass(t,O,N)}t.emit("style")}}return s.progress=_,_}function HO(t,e){return t==null||e==null?!1:Gr(t)&&Gr(e)?!0:!!(t&&e)}function AIr(t,e,r,n){var i=e._private;i.started=!0,i.startTime=r-i.progress*i.duration}function bRe(t,e){var r=e._private.aniEles,n=[];function i(d,h){var f=d._private,p=f.animation.current,g=f.animation.queue,m=!1;if(p.length===0){var _=g.shift();_&&p.push(_)}for(var v=function(T){for(var C=T.length-1;C>=0;C--){var x=T[C];x()}T.splice(0,T.length)},y=p.length-1;y>=0;y--){var b=p[y],E=b._private;if(E.stopped){p.splice(y,1),E.hooked=!1,E.playing=!1,E.started=!1,v(E.frames);continue}!E.playing&&!E.applying||(E.playing&&E.applying&&(E.applying=!1),E.started||AIr(d,b,t),xIr(d,b,t,h),E.applying&&(E.applying=!1),v(E.frames),E.step!=null&&E.step(t),b.completed()&&(p.splice(y,1),E.hooked=!1,E.playing=!1,E.started=!1,v(E.completes)),m=!0)}return!h&&p.length===0&&g.length===0&&n.push(d),m}for(var a=!1,s=0;s<r.length;s++){var o=r[s],l=i(o);a=a||l}var u=i(e,!0);(a||u)&&(r.length>0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}var RIr={animate:Ma.animate(),animation:Ma.animation(),animated:Ma.animated(),clearQueue:Ma.clearQueue(),delay:Ma.delay(),delayAnimation:Ma.delayAnimation(),stop:Ma.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&f8(function(a){bRe(a,e),r()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(a,s){bRe(s,e)},n.beforeRenderPriorities.animations):r()}},OIr={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var i=r.qualifier;return i!=null?e!==n.target&&Z5(n.target)&&i.matches(n.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,n){return r.qualifier!=null?n.target:e}},HL=function(e){return Bn(e)?new C1(e):e},vVe={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new C$(OIr,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,n){return this.emitter().on(e,HL(r),n),this},removeListener:function(e,r,n){return this.emitter().removeListener(e,HL(r),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,n){return this.emitter().one(e,HL(r),n),this},once:function(e,r,n){return this.emitter().one(e,HL(r),n),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};Ma.eventAliasesOn(vVe);var dte={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};dte.jpeg=dte.jpg;var o6={layout:function(e){var r=this;if(e==null){Os("Layout options must be specified to make a layout");return}if(e.name==null){Os("A `name` must be specified to make a layout");return}var n=e.name,i=r.extension("layout",n);if(i==null){Os("No such layout `"+n+"` found.  Did you forget to import it and `cytoscape.use()` it?");return}var a;Bn(e.eles)?a=r.$(e.eles):a=e.eles!=null?e.eles:r.$();var s=new i(Yn({},e,{cy:r,eles:a}));return s}};o6.createLayout=o6.makeLayout=o6.layout;var IIr={notify:function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&i.merge(r);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var i=e.batchNotifications[n];i.empty()?r.notify(n):r.notify(n,i)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var n=Object.keys(e),i=0;i<n.length;i++){var a=n[i],s=e[a],o=r.getElementById(a);o.data(s)}})}},NIr=cc({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:36,webglTexRowsNodes:18,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),hte={renderTo:function(e,r,n,i){var a=this._private.renderer;return a.renderTo(e,r,n,i),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var r=this,n=r.extension("renderer",e.name);if(n==null){Os("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}e.wheelSensitivity!==void 0&&Pa("You have set a custom wheel sensitivity.  This will make your app zoom unnaturally when using mainstream mice.  You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var i=NIr(e);i.cy=r,r._private.renderer=new n(i),this.notify("init")},destroyRenderer:function(){var e=this;e.notify("destroy");var r=e.container();if(r)for(r._cyreg=null;r.childNodes.length>0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var i=n._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};hte.invalidateDimensions=hte.resize;var l6={collection:function(e,r){return Bn(e)?this.$(e):$d(e)?e.collection():Xa(e)?(r||(r={}),new rc(this,e,r.unique,r.removed)):new rc(this)},nodes:function(e){var r=this.$(function(n){return n.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(n){return n.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};l6.elements=l6.filter=l6.$;var kl={},wN="t",kIr="f";kl.apply=function(t){for(var e=this,r=e._private,n=r.cy,i=n.collection(),a=0;a<t.length;a++){var s=t[a],o=e.getContextMeta(s);if(!o.empty){var l=e.getContextStyle(o),u=e.applyContextStyle(o,l,s);s._private.appliedInitStyle?e.updateTransitions(s,u.diffProps):s._private.appliedInitStyle=!0;var d=e.updateStyleHints(s);d&&i.push(s)}}return i};kl.getPropertiesDiff=function(t,e){var r=this,n=r._private.propDiffs=r._private.propDiffs||{},i=t+"-"+e,a=n[i];if(a)return a;for(var s=[],o={},l=0;l<r.length;l++){var u=r[l],d=t[l]===wN,h=e[l]===wN,f=d!==h,p=u.mappedProperties.length>0;if(f||h&&p){var g=void 0;f&&p||f?g=u.properties:p&&(g=u.mappedProperties);for(var m=0;m<g.length;m++){for(var _=g[m],v=_.name,y=!1,b=l+1;b<r.length;b++){var E=r[b],S=e[b]===wN;if(S&&(y=E.properties[_.name]!=null,y))break}!o[v]&&!y&&(o[v]=!0,s.push(v))}}}return n[i]=s,s};kl.getContextMeta=function(t){for(var e=this,r="",n,i=t._private.styleCxtKey||"",a=0;a<e.length;a++){var s=e[a],o=s.selector&&s.selector.matches(t);o?r+=wN:r+=kIr}return n=e.getPropertiesDiff(i,r),t._private.styleCxtKey=r,{key:r,diffPropNames:n,empty:n.length===0}};kl.getContextStyle=function(t){var e=t.key,r=this,n=this._private.contextStyles=this._private.contextStyles||{};if(n[e])return n[e];for(var i={_private:{key:e}},a=0;a<r.length;a++){var s=r[a],o=e[a]===wN;if(o)for(var l=0;l<s.properties.length;l++){var u=s.properties[l];i[u.name]=u}}return n[e]=i,i};kl.applyContextStyle=function(t,e,r){for(var n=this,i=t.diffPropNames,a={},s=n.types,o=0;o<i.length;o++){var l=i[o],u=e[l],d=r.pstyle(l);if(!u)if(d)d.bypass?u={name:l,deleteBypassed:!0}:u={name:l,delete:!0};else continue;if(d!==u){if(u.mapped===s.fn&&d!=null&&d.mapping!=null&&d.mapping.value===u.value){var h=d.mapping,f=h.fnValue=u.value(r);if(f===h.prevFnValue)continue}var p=a[l]={prev:d};n.applyParsedProperty(r,u),p.next=r.pstyle(l),p.next&&p.next.bypass&&(p.next=p.next.bypassed)}}return{diffProps:a}};kl.updateStyleHints=function(t){var e=t._private,r=this,n=r.propertyGroupNames,i=r.propertyGroupKeys,a=function(j,se,le){return r.getPropertiesHash(j,se,le)},s=e.styleKey;if(t.removed())return!1;var o=e.group==="nodes",l=t._private.style;n=Object.keys(l);for(var u=0;u<i.length;u++){var d=i[u];e.styleKeys[d]=[ly,YS]}for(var h=function(j,se){return e.styleKeys[se][0]=Qk(j,e.styleKeys[se][0])},f=function(j,se){return e.styleKeys[se][1]=Zk(j,e.styleKeys[se][1])},p=function(j,se){h(j,se),f(j,se)},g=function(j,se){for(var le=0;le<j.length;le++){var _e=j.charCodeAt(le);h(_e,se),f(_e,se)}},m=2e9,_=function(j){return-128<j&&j<128&&Math.floor(j)!==j?m-(j*1024|0):j},v=0;v<n.length;v++){var y=n[v],b=l[y];if(b!=null){var E=this.properties[y],S=E.type,T=E.groupKey,C=void 0;E.hashOverride!=null?C=E.hashOverride(t,b):b.pfValue!=null&&(C=b.pfValue);var x=E.enums==null?b.value:null,A=C!=null,R=x!=null,I=A||R,L=b.units;if(S.number&&I&&!S.multiple){var F=A?C:x;p(_(F),T),!A&&L!=null&&g(L,T)}else g(b.strValue,T)}}for(var O=[ly,YS],D=0;D<i.length;D++){var M=i[D],P=e.styleKeys[M];O[0]=Qk(P[0],O[0]),O[1]=Zk(P[1],O[1])}e.styleKey=Wxr(O[0],O[1]);var N=e.styleKeys;e.labelDimsKey=l_(N.labelDimensions);var $=a(t,["label"],N.labelDimensions);if(e.labelKey=l_($),e.labelStyleKey=l_(FL(N.commonLabel,$)),!o){var U=a(t,["source-label"],N.labelDimensions);e.sourceLabelKey=l_(U),e.sourceLabelStyleKey=l_(FL(N.commonLabel,U));var B=a(t,["target-label"],N.labelDimensions);e.targetLabelKey=l_(B),e.targetLabelStyleKey=l_(FL(N.commonLabel,B))}if(o){var V=e.styleKeys,z=V.nodeBody,G=V.nodeBorder,Y=V.nodeOutline,W=V.backgroundImage,Q=V.compound,ie=V.pie,Z=V.stripe,re=[z,G,Y,W,Q,ie,Z].filter(function(K){return K!=null}).reduce(FL,[ly,YS]);e.nodeKey=l_(re),e.hasPie=ie!=null&&ie[0]!==ly&&ie[1]!==YS,e.hasStripe=Z!=null&&Z[0]!==ly&&Z[1]!==YS}return s!==e.styleKey};kl.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null,e.hasStripe=null};kl.applyParsedProperty=function(t,e){var r=this,n=e,i=t._private.style,a,s=r.types,o=r.properties[n.name].type,l=n.bypass,u=i[n.name],d=u&&u.bypass,h=t._private,f="mapping",p=function(z){return z==null?null:z.pfValue!=null?z.pfValue:z.value},g=function(){var z=p(u),G=p(n);r.checkTriggers(t,n.name,z,G)};if(e.name==="curve-style"&&t.isEdge()&&(e.value!=="bezier"&&t.isLoop()||e.value==="haystack"&&(t.source().isParent()||t.target().isParent()))&&(n=e=this.parse(e.name,"bezier",l)),n.delete)return i[n.name]=void 0,g(),!0;if(n.deleteBypassed)return u?u.bypass?(u.bypassed=void 0,g(),!0):!1:(g(),!0);if(n.deleteBypass)return u?u.bypass?(i[n.name]=u.bypassed,g(),!0):!1:(g(),!0);var m=function(){Pa("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+n.name+"` with data field `"+n.field+"`); try a `["+n.field+"]` selector to limit scope to elements with `"+n.field+"` defined")};switch(n.mapped){case s.mapData:{for(var _=n.field.split("."),v=h.data,y=0;y<_.length&&v;y++){var b=_[y];v=v[b]}if(v==null)return m(),!1;var E;if(Gr(v)){var S=n.fieldMax-n.fieldMin;S===0?E=0:E=(v-n.fieldMin)/S}else return Pa("Do not use continuous mappers without specifying numeric data (i.e. `"+n.field+": "+v+"` for `"+t.id()+"` is non-numeric)"),!1;if(E<0?E=0:E>1&&(E=1),o.color){var T=n.valueMin[0],C=n.valueMax[0],x=n.valueMin[1],A=n.valueMax[1],R=n.valueMin[2],I=n.valueMax[2],L=n.valueMin[3]==null?1:n.valueMin[3],F=n.valueMax[3]==null?1:n.valueMax[3],O=[Math.round(T+(C-T)*E),Math.round(x+(A-x)*E),Math.round(R+(I-R)*E),Math.round(L+(F-L)*E)];a={bypass:n.bypass,name:n.name,value:O,strValue:"rgb("+O[0]+", "+O[1]+", "+O[2]+")"}}else if(o.number){var D=n.valueMin+(n.valueMax-n.valueMin)*E;a=this.parse(n.name,D,n.bypass,f)}else return!1;if(!a)return m(),!1;a.mapping=n,n=a;break}case s.data:{for(var M=n.field.split("."),P=h.data,N=0;N<M.length&&P;N++){var $=M[N];P=P[$]}if(P!=null&&(a=this.parse(n.name,P,n.bypass,f)),!a)return m(),!1;a.mapping=n,n=a;break}case s.fn:{var U=n.value,B=n.fnValue!=null?n.fnValue:U(t);if(n.prevFnValue=B,B==null)return Pa("Custom function mappers may not return null (i.e. `"+n.name+"` for ele `"+t.id()+"` is null)"),!1;if(a=this.parse(n.name,B,n.bypass,f),!a)return Pa("Custom function mappers may not return invalid values for the property type (i.e. `"+n.name+"` for ele `"+t.id()+"` is invalid)"),!1;a.mapping=Xp(n),n=a;break}case void 0:break;default:return!1}return l?(d?n.bypassed=u.bypassed:n.bypassed=u,i[n.name]=n):d?u.bypassed=n:i[n.name]=n,g(),!0};kl.cleanElements=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(this.clearStyleHints(n),n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),!e)n._private.style={};else for(var i=n._private.style,a=Object.keys(i),s=0;s<a.length;s++){var o=a[s],l=i[o];l!=null&&(l.bypass?l.bypassed=null:i[o]=null)}}};kl.update=function(){var t=this._private.cy,e=t.mutableElements();e.updateStyle()};kl.updateTransitions=function(t,e){var r=this,n=t._private,i=t.pstyle("transition-property").value,a=t.pstyle("transition-duration").pfValue,s=t.pstyle("transition-delay").pfValue;if(i.length>0&&a>0){for(var o={},l=!1,u=0;u<i.length;u++){var d=i[u],h=t.pstyle(d),f=e[d];if(f){var p=f.prev,g=p,m=f.next!=null?f.next:h,_=!1,v=void 0,y=1e-6;g&&(Gr(g.pfValue)&&Gr(m.pfValue)?(_=m.pfValue-g.pfValue,v=g.pfValue+y*_):Gr(g.value)&&Gr(m.value)?(_=m.value-g.value,v=g.value+y*_):Xa(g.value)&&Xa(m.value)&&(_=g.value[0]!==m.value[0]||g.value[1]!==m.value[1]||g.value[2]!==m.value[2],v=g.strValue),_&&(o[d]=m.strValue,this.applyBypass(t,d,v),l=!0))}}if(!l)return;n.transitioning=!0,new MR(function(b){s>0?t.delayAnimation(s).play().promise().then(b):b()}).then(function(){return t.animation({style:o,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1)};kl.checkTrigger=function(t,e,r,n,i,a){var s=this.properties[e],o=i(s);t.removed()||o!=null&&o(r,n,t)&&a(s)};kl.checkZOrderTrigger=function(t,e,r,n){var i=this;this.checkTrigger(t,e,r,n,function(a){return a.triggersZOrder},function(){i._private.cy.notify("zorder",t)})};kl.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBounds},function(i){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache()})};kl.checkConnectedEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBoundsOfConnectedEdges},function(i){t.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};kl.checkParallelEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBoundsOfParallelEdges},function(i){t.parallelEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};kl.checkTriggers=function(t,e,r,n){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,n),this.checkBoundsTrigger(t,e,r,n),this.checkConnectedEdgesBoundsTrigger(t,e,r,n),this.checkParallelEdgesBoundsTrigger(t,e,r,n)};var aD={};aD.applyBypass=function(t,e,r,n){var i=this,a=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;o<i.properties.length;o++){var l=i.properties[o],u=l.name,d=this.parse(u,r,!0);d&&a.push(d)}}else if(Bn(e)){var h=this.parse(e,r,!0);h&&a.push(h)}else if(fa(e)){var f=e;n=r;for(var p=Object.keys(f),g=0;g<p.length;g++){var m=p[g],_=f[m];if(_===void 0&&(_=f[p$(m)]),_!==void 0){var v=this.parse(m,_,!0);v&&a.push(v)}}}else return!1;if(a.length===0)return!1;for(var y=!1,b=0;b<t.length;b++){for(var E=t[b],S={},T=void 0,C=0;C<a.length;C++){var x=a[C];if(n){var A=E.pstyle(x.name);T=S[x.name]={prev:A}}y=this.applyParsedProperty(E,Xp(x))||y,n&&(T.next=E.pstyle(x.name))}y&&this.updateStyleHints(E),n&&this.updateTransitions(E,S,s)}return y};aD.overrideBypass=function(t,e,r){e=Pue(e);for(var n=0;n<t.length;n++){var i=t[n],a=i._private.style[e],s=this.properties[e].type,o=s.color,l=s.mutiple,u=a?a.pfValue!=null?a.pfValue:a.value:null;!a||!a.bypass?this.applyBypass(i,e,r):(a.value=r,a.pfValue!=null&&(a.pfValue=r),o?a.strValue="rgb("+r.join(",")+")":l?a.strValue=r.join(" "):a.strValue=""+r,this.updateStyleHints(i)),this.checkTriggers(i,e,u,r)}};aD.removeAllBypasses=function(t,e){return this.removeBypasses(t,this.propertyNames,e)};aD.removeBypasses=function(t,e,r){for(var n=!0,i=0;i<t.length;i++){for(var a=t[i],s={},o=0;o<e.length;o++){var l=e[o],u=this.properties[l],d=a.pstyle(u.name);if(!(!d||!d.bypass)){var h="",f=this.parse(l,h,!0),p=s[u.name]={prev:d};this.applyParsedProperty(a,f),p.next=a.pstyle(u.name)}}this.updateStyleHints(a),r&&this.updateTransitions(a,s,n)}};var Que={};Que.getEmSizeInPixels=function(){var t=this.containerCss("font-size");return t!=null?parseFloat(t):1};Que.containerCss=function(t){var e=this._private.cy,r=e.container(),n=e.window();if(n&&r&&n.getComputedStyle)return n.getComputedStyle(r).getPropertyValue(t)};var vg={};vg.getRenderedStyle=function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)};vg.getRawStyle=function(t,e){var r=this;if(t=t[0],t){for(var n={},i=0;i<r.properties.length;i++){var a=r.properties[i],s=r.getStylePropertyValue(t,a.name,e);s!=null&&(n[a.name]=s,n[p$(a.name)]=s)}return n}};vg.getIndexedStyle=function(t,e,r,n){var i=t.pstyle(e)[r][n];return i??t.cy().style().getDefaultProperty(e)[r][0]};vg.getStylePropertyValue=function(t,e,r){var n=this;if(t=t[0],t){var i=n.properties[e];i.alias&&(i=i.pointsTo);var a=i.type,s=t.pstyle(i.name);if(s){var o=s.value,l=s.units,u=s.strValue;if(r&&a.number&&o!=null&&Gr(o)){var d=t.cy().zoom(),h=function(_){return _*d},f=function(_,v){return h(_)+v},p=Xa(o),g=p?l.every(function(m){return m!=null}):l!=null;return g?p?o.map(function(m,_){return f(m,l[_])}).join(" "):f(o,l):p?o.map(function(m){return Bn(m)?m:""+h(m)}).join(" "):""+h(o)}else if(u!=null)return u}return null}};vg.getAnimationStartStyle=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],a=i.name,s=t.pstyle(a);s!==void 0&&(fa(s)?s=this.parse(a,s.strValue):s=this.parse(a,s)),s&&(r[a]=s)}return r};vg.getPropsList=function(t){var e=this,r=[],n=t,i=e.properties;if(n)for(var a=Object.keys(n),s=0;s<a.length;s++){var o=a[s],l=n[o],u=i[o]||i[Pue(o)],d=this.parse(u.name,l);d&&r.push(d)}return r};vg.getNonDefaultPropertiesHash=function(t,e,r){var n=r.slice(),i,a,s,o,l,u;for(l=0;l<e.length;l++)if(i=e[l],a=t.pstyle(i,!1),a!=null)if(a.pfValue!=null)n[0]=Qk(o,n[0]),n[1]=Zk(o,n[1]);else for(s=a.strValue,u=0;u<s.length;u++)o=s.charCodeAt(u),n[0]=Qk(o,n[0]),n[1]=Zk(o,n[1]);return n};vg.getPropertiesHash=vg.getNonDefaultPropertiesHash;var A$={};A$.appendFromJson=function(t){for(var e=this,r=0;r<t.length;r++){var n=t[r],i=n.selector,a=n.style||n.css,s=Object.keys(a);e.selector(i);for(var o=0;o<s.length;o++){var l=s[o],u=a[l];e.css(l,u)}}return e};A$.fromJson=function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e};A$.json=function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var r=this[e],n=r.selector,i=r.properties,a={},s=0;s<i.length;s++){var o=i[s];a[o.name]=o.strValue}t.push({selector:n?n.toString():"core",style:a})}return t};var Zue={};Zue.appendFromString=function(t){var e=this,r=this,n=""+t,i,a,s;n=n.replace(/[/][*](\s|.)+?[*][/]/g,"");function o(){n.length>i.length?n=n.substr(i.length):n=""}function l(){a.length>s.length?a=a.substr(s.length):a=""}for(;;){var u=n.match(/^\s*$/);if(u)break;var d=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!d){Pa("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}i=d[0];var h=d[1];if(h!=="core"){var f=new C1(h);if(f.invalid){Pa("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var p=d[2],g=!1;a=p;for(var m=[];;){var _=a.match(/^\s*$/);if(_)break;var v=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!v){Pa("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+p),g=!0;break}s=v[0];var y=v[1],b=v[2],E=e.properties[y];if(!E){Pa("Skipping property: Invalid property name in: "+s),l();continue}var S=r.parse(y,b);if(!S){Pa("Skipping property: Invalid property definition in: "+s),l();continue}m.push({name:y,val:b}),l()}if(g){o();break}r.selector(h);for(var T=0;T<m.length;T++){var C=m[T];r.css(C.name,C.val)}o()}return r};Zue.fromString=function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e};var Fo={};(function(){var t=hl,e=wxr,r=Axr,n=Rxr,i=Oxr,a=function(K){return"^"+K+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},s=function(K){var j=t+"|\\w+|"+e+"|"+r+"|"+n+"|"+i;return"^"+K+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+j+")\\s*\\,\\s*("+j+")\\)$"},o=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];Fo.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},axisDirectionExplicit:{enums:["leftward","rightward","upward","downward"]},axisDirectionPrimary:{enums:["horizontal","vertical"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},boxSelection:{enums:["contain","overlap","none"]},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle","circle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","top-inside","center","bottom","bottom-inside"]},halign:{enums:["left","left-inside","center","right","right-inside"]},justification:{enums:["left","center","right","auto"]},textMetrics:{enums:["font","glyph"]},text:{string:!0},data:{mapping:!0,regex:a("data")},layoutData:{mapping:!0,regex:a("layoutData")},scratch:{mapping:!0,regex:a("scratch")},mapData:{mapping:!0,regex:s("mapData")},mapLayoutData:{mapping:!0,regex:s("mapLayoutData")},mapScratch:{mapping:!0,regex:s("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:o,singleRegexMatchValue:!0},urls:{regexes:o,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(K,j){switch(K.length){case 2:return j[0]!=="deg"&&j[0]!=="rad"&&j[1]!=="deg"&&j[1]!=="rad";case 1:return Bn(K[0])||j[0]==="deg"||j[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(K){var j=K.length;return j===1||j===2||j===4}}};var l={zeroNonZero:function(K,j){return(K==null||j==null)&&K!==j||K==0&&j!=0?!0:K!=0&&j==0},any:function(K,j){return K!=j},emptyNonEmpty:function(K,j){var se=E1(K),le=E1(j);return se&&!le||!se&&le}},u=Fo.types,d=[{name:"label",type:u.text,triggersBounds:l.any,triggersZOrder:l.emptyNonEmpty},{name:"text-rotation",type:u.textRotation,triggersBounds:l.any},{name:"text-margin-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"text-margin-y",type:u.bidirectionalSize,triggersBounds:l.any}],h=[{name:"source-label",type:u.text,triggersBounds:l.any},{name:"source-text-rotation",type:u.textRotation,triggersBounds:l.any},{name:"source-text-margin-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"source-text-margin-y",type:u.bidirectionalSize,triggersBounds:l.any},{name:"source-text-offset",type:u.size,triggersBounds:l.any}],f=[{name:"target-label",type:u.text,triggersBounds:l.any},{name:"target-text-rotation",type:u.textRotation,triggersBounds:l.any},{name:"target-text-margin-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"target-text-margin-y",type:u.bidirectionalSize,triggersBounds:l.any},{name:"target-text-offset",type:u.size,triggersBounds:l.any}],p=[{name:"font-family",type:u.fontFamily,triggersBounds:l.any},{name:"font-style",type:u.fontStyle,triggersBounds:l.any},{name:"font-weight",type:u.fontWeight,triggersBounds:l.any},{name:"font-size",type:u.size,triggersBounds:l.any},{name:"text-transform",type:u.textTransform,triggersBounds:l.any},{name:"text-wrap",type:u.textWrap,triggersBounds:l.any},{name:"text-overflow-wrap",type:u.textOverflowWrap,triggersBounds:l.any},{name:"text-max-width",type:u.size,triggersBounds:l.any},{name:"text-outline-width",type:u.size,triggersBounds:l.any},{name:"line-height",type:u.positiveNumber,triggersBounds:l.any}],g=[{name:"text-valign",type:u.valign,triggersBounds:l.any},{name:"text-halign",type:u.halign,triggersBounds:l.any},{name:"color",type:u.color},{name:"text-outline-color",type:u.color},{name:"text-outline-opacity",type:u.zeroOneNumber},{name:"text-background-color",type:u.color},{name:"text-background-opacity",type:u.zeroOneNumber},{name:"text-background-padding",type:u.size,triggersBounds:l.any},{name:"text-border-opacity",type:u.zeroOneNumber},{name:"text-border-color",type:u.color},{name:"text-border-width",type:u.size,triggersBounds:l.any},{name:"text-border-style",type:u.borderStyle,triggersBounds:l.any},{name:"text-background-shape",type:u.textBackgroundShape,triggersBounds:l.any},{name:"text-justification",type:u.justification},{name:"text-metrics",type:u.textMetrics},{name:"box-select-labels",type:u.bool,triggersBounds:l.any}],m=[{name:"events",type:u.bool,triggersZOrder:l.any},{name:"text-events",type:u.bool,triggersZOrder:l.any},{name:"box-selection",type:u.boxSelection,triggersZOrder:l.any}],_=[{name:"display",type:u.display,triggersZOrder:l.any,triggersBounds:l.any,triggersBoundsOfConnectedEdges:l.any,triggersBoundsOfParallelEdges:function(K,j,se){return K===j?!1:se.pstyle("curve-style").value==="bezier"}},{name:"visibility",type:u.visibility,triggersZOrder:l.any},{name:"opacity",type:u.zeroOneNumber,triggersZOrder:l.zeroNonZero},{name:"text-opacity",type:u.zeroOneNumber},{name:"min-zoomed-font-size",type:u.size},{name:"z-compound-depth",type:u.zCompoundDepth,triggersZOrder:l.any},{name:"z-index-compare",type:u.zIndexCompare,triggersZOrder:l.any},{name:"z-index",type:u.number,triggersZOrder:l.any}],v=[{name:"overlay-padding",type:u.size,triggersBounds:l.any},{name:"overlay-color",type:u.color},{name:"overlay-opacity",type:u.zeroOneNumber,triggersBounds:l.zeroNonZero},{name:"overlay-shape",type:u.overlayShape,triggersBounds:l.any},{name:"overlay-corner-radius",type:u.cornerRadius}],y=[{name:"underlay-padding",type:u.size,triggersBounds:l.any},{name:"underlay-color",type:u.color},{name:"underlay-opacity",type:u.zeroOneNumber,triggersBounds:l.zeroNonZero},{name:"underlay-shape",type:u.overlayShape,triggersBounds:l.any},{name:"underlay-corner-radius",type:u.cornerRadius}],b=[{name:"transition-property",type:u.propList},{name:"transition-duration",type:u.time},{name:"transition-delay",type:u.time},{name:"transition-timing-function",type:u.easing}],E=function(K,j){return j.value==="label"?-K.poolIndex():j.pfValue},S=[{name:"height",type:u.nodeSize,triggersBounds:l.any,hashOverride:E},{name:"width",type:u.nodeSize,triggersBounds:l.any,hashOverride:E},{name:"shape",type:u.nodeShape,triggersBounds:l.any},{name:"shape-polygon-points",type:u.polygonPointList,triggersBounds:l.any},{name:"corner-radius",type:u.cornerRadius},{name:"background-color",type:u.color},{name:"background-fill",type:u.fill},{name:"background-opacity",type:u.zeroOneNumber},{name:"background-blacken",type:u.nOneOneNumber},{name:"background-gradient-stop-colors",type:u.colors},{name:"background-gradient-stop-positions",type:u.percentages},{name:"background-gradient-direction",type:u.gradientDirection},{name:"padding",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"padding-relative-to",type:u.paddingRelativeTo,triggersBounds:l.any},{name:"bounds-expansion",type:u.boundsExpansion,triggersBounds:l.any}],T=[{name:"border-color",type:u.color},{name:"border-opacity",type:u.zeroOneNumber},{name:"border-width",type:u.size,triggersBounds:l.any},{name:"border-style",type:u.borderStyle},{name:"border-cap",type:u.lineCap},{name:"border-join",type:u.lineJoin},{name:"border-dash-pattern",type:u.numbers},{name:"border-dash-offset",type:u.number},{name:"border-position",type:u.linePosition}],C=[{name:"outline-color",type:u.color},{name:"outline-opacity",type:u.zeroOneNumber},{name:"outline-width",type:u.size,triggersBounds:l.any},{name:"outline-style",type:u.borderStyle},{name:"outline-offset",type:u.size,triggersBounds:l.any}],x=[{name:"background-image",type:u.urls},{name:"background-image-crossorigin",type:u.bgCrossOrigin},{name:"background-image-opacity",type:u.zeroOneNumbers},{name:"background-image-containment",type:u.bgContainment},{name:"background-image-smoothing",type:u.bools},{name:"background-position-x",type:u.bgPos},{name:"background-position-y",type:u.bgPos},{name:"background-width-relative-to",type:u.bgRelativeTo},{name:"background-height-relative-to",type:u.bgRelativeTo},{name:"background-repeat",type:u.bgRepeat},{name:"background-fit",type:u.bgFit},{name:"background-clip",type:u.bgClip},{name:"background-width",type:u.bgWH},{name:"background-height",type:u.bgWH},{name:"background-offset-x",type:u.bgPos},{name:"background-offset-y",type:u.bgPos}],A=[{name:"position",type:u.position,triggersBounds:l.any},{name:"compound-sizing-wrt-labels",type:u.compoundIncludeLabels,triggersBounds:l.any},{name:"min-width",type:u.size,triggersBounds:l.any},{name:"min-width-bias-left",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"min-width-bias-right",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"min-height",type:u.size,triggersBounds:l.any},{name:"min-height-bias-top",type:u.sizeMaybePercent,triggersBounds:l.any},{name:"min-height-bias-bottom",type:u.sizeMaybePercent,triggersBounds:l.any}],R=[{name:"line-style",type:u.lineStyle},{name:"line-color",type:u.color},{name:"line-fill",type:u.fill},{name:"line-cap",type:u.lineCap},{name:"line-opacity",type:u.zeroOneNumber},{name:"line-dash-pattern",type:u.numbers},{name:"line-dash-offset",type:u.number},{name:"line-outline-width",type:u.size},{name:"line-outline-color",type:u.color},{name:"line-gradient-stop-colors",type:u.colors},{name:"line-gradient-stop-positions",type:u.percentages},{name:"curve-style",type:u.curveStyle,triggersBounds:l.any,triggersBoundsOfParallelEdges:function(K,j){return K===j?!1:K==="bezier"||j==="bezier"}},{name:"haystack-radius",type:u.zeroOneNumber,triggersBounds:l.any},{name:"source-endpoint",type:u.edgeEndpoint,triggersBounds:l.any},{name:"target-endpoint",type:u.edgeEndpoint,triggersBounds:l.any},{name:"control-point-step-size",type:u.size,triggersBounds:l.any},{name:"control-point-distances",type:u.bidirectionalSizes,triggersBounds:l.any},{name:"control-point-weights",type:u.numbers,triggersBounds:l.any},{name:"segment-distances",type:u.bidirectionalSizes,triggersBounds:l.any},{name:"segment-weights",type:u.numbers,triggersBounds:l.any},{name:"segment-radii",type:u.numbers,triggersBounds:l.any},{name:"radius-type",type:u.radiusType,triggersBounds:l.any},{name:"taxi-turn",type:u.bidirectionalSizeMaybePercent,triggersBounds:l.any},{name:"taxi-turn-min-distance",type:u.size,triggersBounds:l.any},{name:"taxi-direction",type:u.axisDirection,triggersBounds:l.any},{name:"taxi-radius",type:u.number,triggersBounds:l.any},{name:"edge-distances",type:u.edgeDistances,triggersBounds:l.any},{name:"arrow-scale",type:u.positiveNumber,triggersBounds:l.any},{name:"loop-direction",type:u.angle,triggersBounds:l.any},{name:"loop-sweep",type:u.angle,triggersBounds:l.any},{name:"source-distance-from-node",type:u.size,triggersBounds:l.any},{name:"target-distance-from-node",type:u.size,triggersBounds:l.any}],I=[{name:"ghost",type:u.bool,triggersBounds:l.any},{name:"ghost-offset-x",type:u.bidirectionalSize,triggersBounds:l.any},{name:"ghost-offset-y",type:u.bidirectionalSize,triggersBounds:l.any},{name:"ghost-opacity",type:u.zeroOneNumber}],L=[{name:"selection-box-color",type:u.color},{name:"selection-box-opacity",type:u.zeroOneNumber},{name:"selection-box-border-color",type:u.color},{name:"selection-box-border-width",type:u.size},{name:"active-bg-color",type:u.color},{name:"active-bg-opacity",type:u.zeroOneNumber},{name:"active-bg-size",type:u.size},{name:"outside-texture-bg-color",type:u.color},{name:"outside-texture-bg-opacity",type:u.zeroOneNumber}],F=[];Fo.pieBackgroundN=16,F.push({name:"pie-size",type:u.sizeMaybePercent}),F.push({name:"pie-hole",type:u.sizeMaybePercent}),F.push({name:"pie-start-angle",type:u.angle});for(var O=1;O<=Fo.pieBackgroundN;O++)F.push({name:"pie-"+O+"-background-color",type:u.color}),F.push({name:"pie-"+O+"-background-size",type:u.percent}),F.push({name:"pie-"+O+"-background-opacity",type:u.zeroOneNumber});var D=[];Fo.stripeBackgroundN=16,D.push({name:"stripe-size",type:u.sizeMaybePercent}),D.push({name:"stripe-direction",type:u.axisDirectionPrimary});for(var M=1;M<=Fo.stripeBackgroundN;M++)D.push({name:"stripe-"+M+"-background-color",type:u.color}),D.push({name:"stripe-"+M+"-background-size",type:u.percent}),D.push({name:"stripe-"+M+"-background-opacity",type:u.zeroOneNumber});var P=[],N=Fo.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:u.arrowShape,triggersBounds:l.any},{name:"arrow-color",type:u.color},{name:"arrow-fill",type:u.arrowFill},{name:"arrow-width",type:u.arrowWidth}].forEach(function(re){N.forEach(function(K){var j=K+"-"+re.name,se=re.type,le=re.triggersBounds;P.push({name:j,type:se,triggersBounds:le})})},{});var $=Fo.properties=[].concat(m,b,_,v,y,I,g,p,d,h,f,S,T,C,x,F,D,A,R,P,L),U=Fo.propertyGroups={behavior:m,transition:b,visibility:_,overlay:v,underlay:y,ghost:I,commonLabel:g,labelDimensions:p,mainLabel:d,sourceLabel:h,targetLabel:f,nodeBody:S,nodeBorder:T,nodeOutline:C,backgroundImage:x,pie:F,stripe:D,compound:A,edgeLine:R,edgeArrow:P,core:L},B=Fo.propertyGroupNames={},V=Fo.propertyGroupKeys=Object.keys(U);V.forEach(function(re){B[re]=U[re].map(function(K){return K.name}),U[re].forEach(function(K){return K.groupKey=re})});var z=Fo.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];Fo.propertyNames=$.map(function(re){return re.name});for(var G=0;G<$.length;G++){var Y=$[G];$[Y.name]=Y}for(var W=0;W<z.length;W++){var Q=z[W],ie=$[Q.pointsTo],Z={name:Q.name,alias:!0,pointsTo:ie};$.push(Z),$[Q.name]=Z}})();Fo.getDefaultProperty=function(t){return this.getDefaultProperties()[t]};Fo.getDefaultProperties=function(){var t=this._private;if(t.defaultProperties!=null)return t.defaultProperties;for(var e=Yn({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","box-selection":"contain","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","text-metrics":"font","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","box-select-labels":"no","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1,   1, -1,   1, 1,   -1, 1","corner-radius":"auto","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%","pie-hole":0,"pie-start-angle":"0deg"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(l,u){for(var d=1;d<=Fo.pieBackgroundN;d++){var h=u.name.replace("{{i}}",d),f=u.value;l[h]=f}return l},{}),{"stripe-size":"100%","stripe-direction":"horizontal"},[{name:"stripe-{{i}}-background-color",value:"black"},{name:"stripe-{{i}}-background-size",value:"0%"},{name:"stripe-{{i}}-background-opacity",value:1}].reduce(function(l,u){for(var d=1;d<=Fo.stripeBackgroundN;d++){var h=u.name.replace("{{i}}",d),f=u.value;l[h]=f}return l},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(l,u){return Fo.arrowPrefixes.forEach(function(d){var h=d+"-"+u.name,f=u.value;l[h]=f}),l},{})),r={},n=0;n<this.properties.length;n++){var i=this.properties[n];if(!i.pointsTo){var a=i.name,s=e[a],o=this.parse(a,s);r[a]=o}}return t.defaultProperties=r,t.defaultProperties};Fo.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var R$={};R$.parse=function(t,e,r,n){var i=this;if(Qs(e))return i.parseImplWarn(t,e,r,n);var a=n==="mapping"||n===!0||n===!1||n==null?"dontcare":n,s=r?"t":"f",o=""+e,l=Rqe(t,o,s,a),u=i.propCache=i.propCache||[],d;return(d=u[l])||(d=u[l]=i.parseImplWarn(t,e,r,n)),(r||n==="mapping")&&(d=Xp(d),d&&(d.value=Xp(d.value))),d};R$.parseImplWarn=function(t,e,r,n){var i=this.parseImpl(t,e,r,n);return!i&&e!=null&&Pa("The style property `".concat(t,": ").concat(e,"` is invalid")),i&&(i.name==="width"||i.name==="height")&&e==="label"&&Pa("The style value of `label` is deprecated for `"+i.name+"`"),i};R$.parseImpl=function(t,e,r,n){var i=this;t=Pue(t);var a=i.properties[t],s=e,o=i.types;if(!a||e===void 0)return null;a.alias&&(a=a.pointsTo,t=a.name);var l=Bn(e);l&&(e=e.trim());var u=a.type;if(!u)return null;if(r&&(e===""||e===null))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(Qs(e))return{name:t,value:e,strValue:"fn",mapped:o.fn,bypass:r};var d,h;if(!(!l||n||e.length<7||e[1]!=="a")){if(e.length>=7&&e[0]==="d"&&(d=new RegExp(o.data.regex).exec(e))){if(r)return!1;var f=o.data;return{name:t,value:d,strValue:""+e,mapped:f,field:d[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var p=o.mapData;if(!(u.color||u.number))return!1;var g=this.parse(t,h[4]);if(!g||g.mapped)return!1;var m=this.parse(t,h[5]);if(!m||m.mapped)return!1;if(g.pfValue===m.pfValue||g.strValue===m.strValue)return Pa("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+g.strValue+"`"),this.parse(t,g.strValue);if(u.color){var _=g.value,v=m.value,y=_[0]===v[0]&&_[1]===v[1]&&_[2]===v[2]&&(_[3]===v[3]||(_[3]==null||_[3]===1)&&(v[3]==null||v[3]===1));if(y)return!1}return{name:t,value:h,strValue:""+e,mapped:p,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:g.value,valueMax:m.value,bypass:r}}}if(u.multiple&&n!=="multiple"){var b;if(l?b=e.split(/\s+/):Xa(e)?b=e:b=[e],u.evenMultiple&&b.length%2!==0)return null;for(var E=[],S=[],T=[],C="",x=!1,A=0;A<b.length;A++){var R=i.parse(t,b[A],r,"multiple");x=x||Bn(R.value),E.push(R.value),T.push(R.pfValue!=null?R.pfValue:R.value),S.push(R.units),C+=(A>0?" ":"")+R.strValue}return u.validate&&!u.validate(E,S)?null:u.singleEnum&&x?E.length===1&&Bn(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:T,strValue:C,bypass:r,units:S}}var I=function(){for(var Z=0;Z<u.enums.length;Z++){var re=u.enums[Z];if(re===e)return{name:t,value:e,strValue:""+e,bypass:r}}return null};if(u.number){var L,F="px";if(u.units&&(L=u.units),u.implicitUnits&&(F=u.implicitUnits),!u.unitless)if(l){var O="px|em"+(u.allowPercent?"|\\%":"");L&&(O=L);var D=e.match("^("+hl+")("+O+")?$");D&&(e=D[1],L=D[2]||F)}else(!L||u.implicitUnits)&&(L=F);if(e=parseFloat(e),isNaN(e)&&u.enums===void 0)return null;if(isNaN(e)&&u.enums!==void 0)return e=s,I();if(u.integer&&!vxr(e)||u.min!==void 0&&(e<u.min||u.strictMin&&e===u.min)||u.max!==void 0&&(e>u.max||u.strictMax&&e===u.max))return null;var M={name:t,value:e,strValue:""+e+(L||""),units:L,bypass:r};return u.unitless||L!=="px"&&L!=="em"?M.pfValue=e:M.pfValue=L==="px"||!L?e:this.getEmSizeInPixels()*e,(L==="ms"||L==="s")&&(M.pfValue=L==="ms"?e:1e3*e),(L==="deg"||L==="rad")&&(M.pfValue=L==="rad"?e:RAr(e)),L==="%"&&(M.pfValue=e/100),M}else if(u.propList){var P=[],N=""+e;if(N!=="none"){for(var $=N.split(/\s*,\s*|\s+/),U=0;U<$.length;U++){var B=$[U].trim();i.properties[B]?P.push(B):Pa("`"+B+"` is not a valid property name")}if(P.length===0)return null}return{name:t,value:P,strValue:P.length===0?"none":P.join(" "),bypass:r}}else if(u.color){var V=Eqe(e);return V?{name:t,value:V,pfValue:V,strValue:"rgb("+V[0]+","+V[1]+","+V[2]+")",bypass:r}:null}else if(u.regex||u.regexes){if(u.enums){var z=I();if(z)return z}for(var G=u.regexes?u.regexes:[u.regex],Y=0;Y<G.length;Y++){var W=new RegExp(G[Y]),Q=W.exec(e);if(Q)return{name:t,value:u.singleRegexMatchValue?Q[1]:Q,strValue:""+e,bypass:r}}return null}else return u.string?{name:t,value:""+e,strValue:""+e,bypass:r}:u.enums?I():null};var Ol=function(e){if(!(this instanceof Ol))return new Ol(e);if(!Lue(e)){Os("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},Dc=Ol.prototype;Dc.instanceString=function(){return"style"};Dc.clear=function(){for(var t=this._private,e=t.cy,r=e.elements(),n=0;n<this.length;n++)this[n]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(r,!0),r.forEach(function(i){var a=i[0]._private;a.styleDirty=!0,a.appliedInitStyle=!1}),this};Dc.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this};Dc.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)};Dc.selector=function(t){var e=t==="core"?null:new C1(t),r=this.length++;return this[r]={selector:e,properties:[],mappedProperties:[],index:r},this};Dc.css=function(){var t=this,e=arguments;if(e.length===1)for(var r=e[0],n=0;n<t.properties.length;n++){var i=t.properties[n],a=r[i.name];a===void 0&&(a=r[p$(i.name)]),a!==void 0&&this.cssRule(i.name,a)}else e.length===2&&this.cssRule(e[0],e[1]);return this};Dc.style=Dc.css;Dc.cssRule=function(t,e){var r=this.parse(t,e);if(r){var n=this.length-1;this[n].properties.push(r),this[n].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.name.match(/stripe-(\d+)-background-size/)&&r.value&&(this._private.hasStripe=!0),r.mapped&&this[n].mappedProperties.push(r);var i=!this[n].selector;i&&(this._private.coreStyle[r.name]=r)}return this};Dc.append=function(t){return vqe(t)?t.appendToStyle(this):Xa(t)?this.appendFromJson(t):Bn(t)&&this.appendFromString(t),this};Ol.fromJson=function(t,e){var r=new Ol(t);return r.fromJson(e),r};Ol.fromString=function(t,e){return new Ol(t).fromString(e)};[kl,aD,Que,vg,A$,Zue,Fo,R$].forEach(function(t){Yn(Dc,t)});Ol.types=Dc.types;Ol.properties=Dc.properties;Ol.propertyGroups=Dc.propertyGroups;Ol.propertyGroupNames=Dc.propertyGroupNames;Ol.propertyGroupKeys=Dc.propertyGroupKeys;var DIr={style:function(e){if(e){var r=this.setStyle(e);r.update()}return this._private.style},setStyle:function(e){var r=this._private;return vqe(e)?r.style=e.generateStyle(this):Xa(e)?r.style=Ol.fromJson(this,e):Bn(e)?r.style=Ol.fromString(this,e):r.style=Ol(this),r.style},updateStyle:function(){this.mutableElements().updateStyle()}},MIr="single",Hb={autolock:function(e){if(e!==void 0)this._private.autolock=!!e;else return this._private.autolock;return this},autoungrabify:function(e){if(e!==void 0)this._private.autoungrabify=!!e;else return this._private.autoungrabify;return this},autounselectify:function(e){if(e!==void 0)this._private.autounselectify=!!e;else return this._private.autounselectify;return this},selectionType:function(e){var r=this._private;if(r.selectionType==null&&(r.selectionType=MIr),e!==void 0)(e==="additive"||e==="single")&&(r.selectionType=e);else return r.selectionType;return this},panningEnabled:function(e){if(e!==void 0)this._private.panningEnabled=!!e;else return this._private.panningEnabled;return this},userPanningEnabled:function(e){if(e!==void 0)this._private.userPanningEnabled=!!e;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(e){if(e!==void 0)this._private.zoomingEnabled=!!e;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(e){if(e!==void 0)this._private.userZoomingEnabled=!!e;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(e){if(e!==void 0)this._private.boxSelectionEnabled=!!e;else return this._private.boxSelectionEnabled;return this},pan:function(){var e=arguments,r=this._private.pan,n,i,a,s,o;switch(e.length){case 0:return r;case 1:if(Bn(e[0]))return n=e[0],r[n];if(fa(e[0])){if(!this._private.panningEnabled)return this;a=e[0],s=a.x,o=a.y,Gr(s)&&(r.x=s),Gr(o)&&(r.y=o),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;n=e[0],i=e[1],(n==="x"||n==="y")&&Gr(i)&&(r[n]=i),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(e,r){var n=arguments,i=this._private.pan,a,s,o,l,u;if(!this._private.panningEnabled)return this;switch(n.length){case 1:fa(e)&&(o=n[0],l=o.x,u=o.y,Gr(l)&&(i.x+=l),Gr(u)&&(i.y+=u),this.emit("pan viewport"));break;case 2:a=e,s=r,(a==="x"||a==="y")&&Gr(s)&&(i[a]+=s),this.emit("pan viewport");break}return this.notify("viewport"),this},gc:function(){this.notify("gc")},fit:function(e,r){var n=this.getFitViewport(e,r);if(n){var i=this._private;i.zoom=n.zoom,i.pan=n.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,r){if(Gr(e)&&r===void 0&&(r=e,e=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var n;if(Bn(e)){var i=e;e=this.$(i)}else if(Exr(e)){var a=e;n={x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2},n.w=n.x2-n.x1,n.h=n.y2-n.y1}else $d(e)||(e=this.mutableElements());if(!($d(e)&&e.empty())){n=n||e.boundingBox();var s=this.width(),o=this.height(),l;if(r=Gr(r)?r:0,!isNaN(s)&&!isNaN(o)&&s>0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){l=Math.min((s-2*r)/n.w,(o-2*r)/n.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l<this._private.minZoom?this._private.minZoom:l;var u={x:(s-l*(n.x1+n.x2))/2,y:(o-l*(n.y1+n.y2))/2};return{zoom:l,pan:u}}}}},zoomRange:function(e,r){var n=this._private;if(r==null){var i=e;e=i.min,r=i.max}return Gr(e)&&Gr(r)&&e<=r?(n.minZoom=e,n.maxZoom=r):Gr(e)&&r===void 0&&e<=n.maxZoom?n.minZoom=e:Gr(r)&&e===void 0&&r>=n.minZoom&&(n.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,n=r.pan,i=r.zoom,a,s,o=!1;if(r.zoomingEnabled||(o=!0),Gr(e)?s=e:fa(e)&&(s=e.level,e.position!=null?a=_$(e.position,i,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=s<r.minZoom?r.minZoom:s,o||!Gr(s)||s===i||a!=null&&(!Gr(a.x)||!Gr(a.y)))return null;if(a!=null){var l=n,u=i,d=s,h={x:-d/u*(a.x-l.x)+a.x,y:-d/u*(a.y-l.y)+a.y};return{zoomed:!0,panned:!0,zoom:d,pan:h}}else return{zoomed:!0,panned:!1,zoom:s,pan:n}},zoom:function(e){if(e===void 0)return this._private.zoom;var r=this.getZoomedViewport(e),n=this._private;return r==null||!r.zoomed?this:(n.zoom=r.zoom,r.panned&&(n.pan.x=r.pan.x,n.pan.y=r.pan.y),this.emit("zoom"+(r.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(e){var r=this._private,n=!0,i=!0,a=[],s=!1,o=!1;if(!e)return this;if(Gr(e.zoom)||(n=!1),fa(e.pan)||(i=!1),!n&&!i)return this;if(n){var l=e.zoom;l<r.minZoom||l>r.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,a.push("zoom"))}if(i&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;Gr(u.x)&&(r.pan.x=u.x,o=!1),Gr(u.y)&&(r.pan.y=u.y,o=!1),o||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(Bn(e)){var n=e;e=this.mutableElements().filter(n)}else $d(e)||(e=this.mutableElements());if(e.length!==0){var i=e.boundingBox(),a=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(a-r*(i.x1+i.x2))/2,y:(s-r*(i.y1+i.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,n=this;return e.sizeCache=e.sizeCache||(r?(function(){var i=n.window().getComputedStyle(r),a=function(o){return parseFloat(i.getPropertyValue(o))};return{width:r.clientWidth-a("padding-left")-a("padding-right"),height:r.clientHeight-a("padding-top")-a("padding-bottom")}})():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-e.x)/r,x2:(n.x2-e.x)/r,y1:(n.y1-e.y)/r,y2:(n.y2-e.y)/r};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Hb.centre=Hb.center;Hb.autolockNodes=Hb.autolock;Hb.autoungrabifyNodes=Hb.autoungrabify;var i3={data:Ma.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Ma.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Ma.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ma.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};i3.attr=i3.data;i3.removeAttr=i3.removeData;var a3=function(e){var r=this;e=Yn({},e);var n=e.container;n&&!h8(n)&&h8(n[0])&&(n=n[0]);var i=n?n._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=r;var s=ol!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=Yn({name:s?"grid":"null"},o.layout),o.renderer=Yn({name:s?"canvas":"null"},o.renderer);var l=function(g,m,_){return m!==void 0?m:_!==void 0?_:g},u=this._private={container:n,ready:!1,options:o,elements:new rc(this),listeners:[],aniEles:new rc(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:Gr(o.zoom)?o.zoom:1,pan:{x:fa(o.pan)&&Gr(o.pan.x)?o.pan.x:0,y:fa(o.pan)&&Gr(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var d=function(g,m){var _=g.some(Sxr);if(_)return MR.all(g).then(m);m(g)};u.styleEnabled&&r.setStyle([]);var h=Yn({},o,o.renderer);r.initRenderer(h);var f=function(g,m,_){r.notifications(!1);var v=r.mutableElements();v.length>0&&v.remove(),g!=null&&(fa(g)||Xa(g))&&r.add(g),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",m),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",_),r.emit("done")});var y=Yn({},r._private.options.layout);y.eles=r.elements(),r.layout(y).run()};d([o.style,o.elements],function(p){var g=p[0],m=p[1];u.styleEnabled&&r.style().append(g),f(m,function(){r.startAnimationLoop(),u.ready=!0,Qs(o.ready)&&r.on("ready",o.ready);for(var _=0;_<a.length;_++){var v=a[_];r.on("ready",v)}i&&(i.readies=[]),r.emit("ready")},o.done)})},y8=a3.prototype;Yn(y8,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){var e=this._private.container;if(e==null)return ol;var r=this._private.container.ownerDocument;return r===void 0||r==null?ol:r.defaultView||ol},mount:function(e){if(e!=null){var r=this,n=r._private,i=n.options;return!h8(e)&&h8(e[0])&&(e=e[0]),r.stopAnimationLoop(),r.destroyRenderer(),n.container=e,n.styleEnabled=!0,r.invalidateSize(),r.initRenderer(Yn({},i,i.renderer,{name:i.renderer.name==="null"?"canvas":i.renderer.name})),r.startAnimationLoop(),r.style(i.style),r.emit("mount"),r}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return Xp(this._private.options)},json:function(e){var r=this,n=r._private,i=r.mutableElements(),a=function(E){return r.getElementById(E.id())};if(fa(e)){if(r.startBatch(),e.elements){var s={},o=function(E,S){for(var T=[],C=[],x=0;x<E.length;x++){var A=E[x];if(!A.data.id){Pa("cy.json() cannot handle elements without an ID attribute");continue}var R=""+A.data.id,I=r.getElementById(R);s[R]=!0,I.length!==0?C.push({ele:I,json:A}):(S&&(A.group=S),T.push(A))}r.add(T);for(var L=0;L<C.length;L++){var F=C[L],O=F.ele,D=F.json;O.json(D)}};if(Xa(e.elements))o(e.elements);else for(var l=["nodes","edges"],u=0;u<l.length;u++){var d=l[u],h=e.elements[d];Xa(h)&&o(h,d)}var f=r.collection();i.filter(function(b){return!s[b.id()]}).forEach(function(b){b.isParent()?f.merge(b):b.remove()}),f.forEach(function(b){return b.children().move({parent:null})}),f.forEach(function(b){return a(b).remove()})}e.style&&r.style(e.style),e.zoom!=null&&e.zoom!==n.zoom&&r.zoom(e.zoom),e.pan&&(e.pan.x!==n.pan.x||e.pan.y!==n.pan.y)&&r.pan(e.pan),e.data&&r.data(e.data);for(var p=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],g=0;g<p.length;g++){var m=p[g];e[m]!=null&&r[m](e[m])}return r.endBatch(),this}else{var _=!!e,v={};_?v.elements=this.elements().map(function(b){return b.json()}):(v.elements={},i.forEach(function(b){var E=b.group();v.elements[E]||(v.elements[E]=[]),v.elements[E].push(b.json())})),this._private.styleEnabled&&(v.style=r.style().json()),v.data=Xp(r.data());var y=n.options;return v.zoomingEnabled=n.zoomingEnabled,v.userZoomingEnabled=n.userZoomingEnabled,v.zoom=n.zoom,v.minZoom=n.minZoom,v.maxZoom=n.maxZoom,v.panningEnabled=n.panningEnabled,v.userPanningEnabled=n.userPanningEnabled,v.pan=Xp(n.pan),v.boxSelectionEnabled=n.boxSelectionEnabled,v.renderer=Xp(y.renderer),v.hideEdgesOnViewport=y.hideEdgesOnViewport,v.textureOnViewport=y.textureOnViewport,v.wheelSensitivity=y.wheelSensitivity,v.motionBlur=y.motionBlur,v.multiClickDebounceTime=y.multiClickDebounceTime,v}}});y8.$id=y8.getElementById;[TIr,RIr,vVe,dte,o6,IIr,hte,l6,DIr,Hb,i3].forEach(function(t){Yn(y8,t)});var LIr={fit:!0,directed:!1,direction:"downward",padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}},PIr={maximal:!1,acyclic:!1},mS=function(e){return e.scratch("breadthfirst")},ERe=function(e,r){return e.scratch("breadthfirst",r)};function yVe(t){this.options=Yn({},LIr,PIr,t)}yVe.prototype.run=function(){var t=this.options,e=t.cy,r=t.eles,n=r.nodes().filter(function(be){return be.isChildless()}),i=r,a=t.directed,s=t.acyclic||t.maximal||t.maximalAdjustments>0,o=!!t.boundingBox,l=yu(o?t.boundingBox:structuredClone(e.extent())),u;if($d(t.roots))u=t.roots;else if(Xa(t.roots)){for(var d=[],h=0;h<t.roots.length;h++){var f=t.roots[h],p=e.getElementById(f);d.push(p)}u=e.collection(d)}else if(Bn(t.roots))u=e.$(t.roots);else if(a)u=n.roots();else{var g=r.components();u=e.collection();for(var m=function(){var ke=g[_],Ae=ke.maxDegree(!1),tt=ke.filter(function(Oe){return Oe.degree(!1)===Ae});u=u.add(tt)},_=0;_<g.length;_++)m()}var v=[],y={},b=function(ke,Ae){v[Ae]==null&&(v[Ae]=[]);var tt=v[Ae].length;v[Ae].push(ke),ERe(ke,{index:tt,depth:Ae})},E=function(ke,Ae){var tt=mS(ke),Oe=tt.depth,je=tt.index;v[Oe][je]=null,ke.isChildless()&&b(ke,Ae)};i.bfs({roots:u,directed:t.directed,visit:function(ke,Ae,tt,Oe,je){var ct=ke[0],Fe=ct.id();ct.isChildless()&&b(ct,je),y[Fe]=!0}});for(var S=[],T=0;T<n.length;T++){var C=n[T];y[C.id()]||S.push(C)}var x=function(ke){for(var Ae=v[ke],tt=0;tt<Ae.length;tt++){var Oe=Ae[tt];if(Oe==null){Ae.splice(tt,1),tt--;continue}ERe(Oe,{depth:ke,index:tt})}},A=function(ke,Ae){for(var tt=mS(ke),Oe=ke.incomers().filter(function(we){return we.isNode()&&r.has(we)}),je=-1,ct=ke.id(),Fe=0;Fe<Oe.length;Fe++){var Xe=Oe[Fe],et=mS(Xe);je=Math.max(je,et.depth)}if(tt.depth<=je){if(!t.acyclic&&Ae[ct])return null;var Ie=je+1;return E(ke,Ie),Ae[ct]=Ie,!0}return!1};if(a&&s){var R=[],I={},L=function(ke){return R.push(ke)},F=function(){return R.shift()};for(n.forEach(function(be){return R.push(be)});R.length>0;){var O=F(),D=A(O,I);if(D)O.outgoers().filter(function(be){return be.isNode()&&r.has(be)}).forEach(L);else if(D===null){Pa("Detected double maximal shift for node `"+O.id()+"`.  Bailing maximal adjustment due to cycle.  Use `options.maximal: true` only on DAGs.");break}}}var M=0;if(t.avoidOverlap)for(var P=0;P<n.length;P++){var N=n[P],$=N.layoutDimensions(t),U=$.w,B=$.h;M=Math.max(M,U,B)}var V={},z=function(ke){if(V[ke.id()])return V[ke.id()];for(var Ae=mS(ke).depth,tt=ke.neighborhood(),Oe=0,je=0,ct=0;ct<tt.length;ct++){var Fe=tt[ct];if(!(Fe.isEdge()||Fe.isParent()||!n.has(Fe))){var Xe=mS(Fe);if(Xe!=null){var et=Xe.index,Ie=Xe.depth;if(!(et==null||Ie==null)){var we=v[Ie].length;Ie<Ae&&(Oe+=et/we,je++)}}}}return je=Math.max(1,je),Oe=Oe/je,je===0&&(Oe=0),V[ke.id()]=Oe,Oe},G=function(ke,Ae){var tt=z(ke),Oe=z(Ae),je=tt-Oe;return je===0?bqe(ke.id(),Ae.id()):je};t.depthSort!==void 0&&(G=t.depthSort);for(var Y=v.length,W=0;W<Y;W++)v[W].sort(G),x(W);for(var Q=[],ie=0;ie<S.length;ie++)Q.push(S[ie]);var Z=function(){for(var ke=0;ke<Y;ke++)x(ke)};Q.length&&(v.unshift(Q),Y=v.length,Z());for(var re=0,K=0;K<Y;K++)re=Math.max(v[K].length,re);var j={x:l.x1+l.w/2,y:l.y1+l.h/2},se=n.reduce(function(be,ke){return(function(Ae){return{w:be.w===-1?Ae.w:(be.w+Ae.w)/2,h:be.h===-1?Ae.h:(be.h+Ae.h)/2}})(ke.boundingBox({includeLabels:t.nodeDimensionsIncludeLabels}))},{w:-1,h:-1}),le=Math.max(Y===1?0:o?(l.h-t.padding*2-se.h)/(Y-1):(l.h-t.padding*2-se.h)/(Y+1),M),_e=v.reduce(function(be,ke){return Math.max(be,ke.length)},0),ye=function(ke){var Ae=mS(ke),tt=Ae.depth,Oe=Ae.index;if(t.circle){var je=Math.min(l.w/2/Y,l.h/2/Y);je=Math.max(je,M);var ct=je*tt+je-(Y>0&&v[0].length<=3?je/2:0),Fe=2*Math.PI/v[tt].length*Oe;return tt===0&&v[0].length===1&&(ct=1),{x:j.x+ct*Math.cos(Fe),y:j.y+ct*Math.sin(Fe)}}else{var Xe=v[tt].length,et=Math.max(Xe===1?0:o?(l.w-t.padding*2-se.w)/((t.grid?_e:Xe)-1):(l.w-t.padding*2-se.w)/((t.grid?_e:Xe)+1),M),Ie={x:j.x+(Oe+1-(Xe+1)/2)*et,y:j.y+(tt+1-(Y+1)/2)*le};return Ie}},Ue={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(Ue).indexOf(t.direction)===-1&&Os("Invalid direction '".concat(t.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Ue).join(", ")));var Se=function(ke){return Qxr(ye(ke),l,Ue[t.direction])};return r.nodes().layoutPositions(this,t,Se),this};var FIr={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function bVe(t){this.options=Yn({},FIr,t)}bVe.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var s=yu(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,u=l/Math.max(1,a.length-1),d,h=0,f=0;f<a.length;f++){var p=a[f],g=p.layoutDimensions(e),m=g.w,_=g.h;h=Math.max(h,m,_)}if(Gr(e.radius)?d=e.radius:a.length<=1?d=0:d=Math.min(s.h,s.w)/2-h,a.length>1&&e.avoidOverlap){h*=1.75;var v=Math.cos(u)-Math.cos(0),y=Math.sin(u)-Math.sin(0),b=Math.sqrt(h*h/(v*v+y*y));d=Math.max(b,d)}var E=function(T,C){var x=e.startAngle+C*u*(i?1:-1),A=d*Math.cos(x),R=d*Math.sin(x),I={x:o.x+A,y:o.y+R};return I};return n.nodes().layoutPositions(this,e,E),this};var BIr={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function EVe(t){this.options=Yn({},BIr,t)}EVe.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,i=e.eles,a=i.nodes().not(":parent"),s=yu(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,d=0;d<a.length;d++){var h=a[d],f=void 0;f=e.concentric(h),l.push({value:f,node:h}),h._private.scratch.concentric=f}a.updateStyle();for(var p=0;p<a.length;p++){var g=a[p],m=g.layoutDimensions(e);u=Math.max(u,m.w,m.h)}l.sort(function(le,_e){return _e.value-le.value});for(var _=e.levelWidth(a),v=[[]],y=v[0],b=0;b<l.length;b++){var E=l[b];if(y.length>0){var S=Math.abs(y[0].value-E.value);S>=_&&(y=[],v.push(y))}y.push(E)}var T=u+e.minNodeSpacing;if(!e.avoidOverlap){var C=v.length>0&&v[0].length>1,x=Math.min(s.w,s.h)/2-T,A=x/(v.length+C?1:0);T=Math.min(T,A)}for(var R=0,I=0;I<v.length;I++){var L=v[I],F=e.sweep===void 0?2*Math.PI-2*Math.PI/L.length:e.sweep,O=L.dTheta=F/Math.max(1,L.length-1);if(L.length>1&&e.avoidOverlap){var D=Math.cos(O)-Math.cos(0),M=Math.sin(O)-Math.sin(0),P=Math.sqrt(T*T/(D*D+M*M));R=Math.max(P,R)}L.r=R,R+=T}if(e.equidistant){for(var N=0,$=0,U=0;U<v.length;U++){var B=v[U],V=B.r-$;N=Math.max(N,V)}$=0;for(var z=0;z<v.length;z++){var G=v[z];z===0&&($=G.r),G.r=$,$+=N}}for(var Y={},W=0;W<v.length;W++)for(var Q=v[W],ie=Q.dTheta,Z=Q.r,re=0;re<Q.length;re++){var K=Q[re],j=e.startAngle+(r?1:-1)*ie*re,se={x:o.x+Z*Math.cos(j),y:o.y+Z*Math.sin(j)};Y[K.node.id()]=se}return i.nodes().layoutPositions(this,e,function(le){var _e=le.id();return Y[_e]}),this};var _X,UIr={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,r){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function O$(t){this.options=Yn({},UIr,t),this.options.layout=this;var e=this.options.eles.nodes(),r=this.options.eles.edges(),n=r.filter(function(i){var a=i.source().data("id"),s=i.target().data("id"),o=e.some(function(u){return u.data("id")===a}),l=e.some(function(u){return u.data("id")===s});return!o||!l});this.options.eles=this.options.eles.not(n)}O$.prototype.run=function(){var t=this.options,e=t.cy,r=this;r.stopped=!1,(t.animate===!0||t.animate===!1)&&r.emit({type:"layoutstart",layout:r}),t.debug===!0?_X=!0:_X=!1;var n=$Ir(e,r,t);_X&&zIr(n),t.randomize&&qIr(n);var i=h0(),a=function(){VIr(n,e,t),t.fit===!0&&e.fit(t.padding)},s=function(f){return!(r.stopped||f>=t.numIter||(HIr(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature<t.minTemp))},o=function(){if(t.animate===!0||t.animate===!1)a(),r.one("layoutstop",t.stop),r.emit({type:"layoutstop",layout:r});else{var f=t.eles.nodes(),p=TVe(n,t,f);f.layoutPositions(r,t,p)}},l=0,u=!0;if(t.animate===!0){var d=function(){for(var f=0;u&&f<t.refresh;)u=s(l),l++,f++;if(!u)TRe(n,t),o();else{var p=h0();p-i>=t.animationThreshold&&a(),f8(d)}};d()}else{for(;u;)u=s(l),l++;TRe(n,t),o()}return this};O$.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};O$.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var $Ir=function(e,r,n){for(var i=n.eles.edges(),a=n.eles.nodes(),s=yu(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=n.eles.components(),u={},d=0;d<l.length;d++)for(var h=l[d],f=0;f<h.length;f++){var p=h[f];u[p.id()]=d}for(var d=0;d<o.nodeSize;d++){var g=a[d],m=g.layoutDimensions(n),_={};_.isLocked=g.locked(),_.id=g.data("id"),_.parentId=g.data("parent"),_.cmptId=u[g.id()],_.children=[],_.positionX=g.position("x"),_.positionY=g.position("y"),_.offsetX=0,_.offsetY=0,_.height=m.w,_.width=m.h,_.maxX=_.positionX+_.width/2,_.minX=_.positionX-_.width/2,_.maxY=_.positionY+_.height/2,_.minY=_.positionY-_.height/2,_.padLeft=parseFloat(g.style("padding")),_.padRight=parseFloat(g.style("padding")),_.padTop=parseFloat(g.style("padding")),_.padBottom=parseFloat(g.style("padding")),_.nodeRepulsion=Qs(n.nodeRepulsion)?n.nodeRepulsion(g):n.nodeRepulsion,o.layoutNodes.push(_),o.idToIndex[_.id]=d}for(var v=[],y=0,b=-1,E=[],d=0;d<o.nodeSize;d++){var g=o.layoutNodes[d],S=g.parentId;S!=null?o.layoutNodes[o.idToIndex[S]].children.push(g.id):(v[++b]=g.id,E.push(g.id))}for(o.graphSet.push(E);y<=b;){var T=v[y++],C=o.idToIndex[T],p=o.layoutNodes[C],x=p.children;if(x.length>0){o.graphSet.push(x);for(var d=0;d<x.length;d++)v[++b]=x[d]}}for(var d=0;d<o.graphSet.length;d++)for(var A=o.graphSet[d],f=0;f<A.length;f++){var R=o.idToIndex[A[f]];o.indexToGraph[R]=d}for(var d=0;d<o.edgeSize;d++){var I=i[d],L={};L.id=I.data("id"),L.sourceId=I.data("source"),L.targetId=I.data("target");var F=Qs(n.idealEdgeLength)?n.idealEdgeLength(I):n.idealEdgeLength,O=Qs(n.edgeElasticity)?n.edgeElasticity(I):n.edgeElasticity,D=o.idToIndex[L.sourceId],M=o.idToIndex[L.targetId],P=o.indexToGraph[D],N=o.indexToGraph[M];if(P!=N){for(var $=GIr(L.sourceId,L.targetId,o),U=o.graphSet[$],B=0,_=o.layoutNodes[D];U.indexOf(_.id)===-1;)_=o.layoutNodes[o.idToIndex[_.parentId]],B++;for(_=o.layoutNodes[M];U.indexOf(_.id)===-1;)_=o.layoutNodes[o.idToIndex[_.parentId]],B++;F*=B*n.nestingFactor}L.idealLength=F,L.elasticity=O,o.layoutEdges.push(L)}return o},GIr=function(e,r,n){var i=SVe(e,r,0,n);return 2>i.count?0:i.graph},SVe=function(e,r,n,i){var a=i.graphSet[n];if(-1<a.indexOf(e)&&-1<a.indexOf(r))return{count:2,graph:n};for(var s=0,o=0;o<a.length;o++){var l=a[o],u=i.idToIndex[l],d=i.layoutNodes[u].children;if(d.length!==0){var h=i.indexToGraph[i.idToIndex[d[0]]],f=SVe(e,r,h,i);if(f.count!==0)if(f.count===1){if(s++,s===2)break}else return f}}return{count:s,graph:n}},zIr,qIr=function(e,r){for(var n=e.clientWidth,i=e.clientHeight,a=0;a<e.nodeSize;a++){var s=e.layoutNodes[a];s.children.length===0&&!s.isLocked&&(s.positionX=Math.random()*n,s.positionY=Math.random()*i)}},TVe=function(e,r,n){var i=e.boundingBox,a={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return r.boundingBox&&(n.forEach(function(s){var o=e.layoutNodes[e.idToIndex[s.data("id")]];a.x1=Math.min(a.x1,o.positionX),a.x2=Math.max(a.x2,o.positionX),a.y1=Math.min(a.y1,o.positionY),a.y2=Math.max(a.y2,o.positionY)}),a.w=a.x2-a.x1,a.h=a.y2-a.y1),function(s,o){var l=e.layoutNodes[e.idToIndex[s.data("id")]];if(r.boundingBox){var u=a.w===0?.5:(l.positionX-a.x1)/a.w,d=a.h===0?.5:(l.positionY-a.y1)/a.h;return{x:i.x1+u*i.w,y:i.y1+d*i.h}}else return{x:l.positionX,y:l.positionY}}},VIr=function(e,r,n){var i=n.layout,a=n.eles.nodes(),s=TVe(e,n,a);a.positions(s),e.ready!==!0&&(e.ready=!0,i.one("layoutready",n.ready),i.emit({type:"layoutready",layout:this}))},HIr=function(e,r,n){YIr(e,r),jIr(e),XIr(e,r),QIr(e),ZIr(e)},YIr=function(e,r){for(var n=0;n<e.graphSet.length;n++)for(var i=e.graphSet[n],a=i.length,s=0;s<a;s++)for(var o=e.layoutNodes[e.idToIndex[i[s]]],l=s+1;l<a;l++){var u=e.layoutNodes[e.idToIndex[i[l]]];WIr(o,u,e,r)}},SRe=function(e){return-e+2*e*Math.random()},WIr=function(e,r,n,i){var a=e.cmptId,s=r.cmptId;if(!(a!==s&&!n.isCompound)){var o=r.positionX-e.positionX,l=r.positionY-e.positionY,u=1;o===0&&l===0&&(o=SRe(u),l=SRe(u));var d=KIr(e,r,o,l);if(d>0)var h=i.nodeOverlap*d,f=Math.sqrt(o*o+l*l),p=h*o/f,g=h*l/f;else var m=b8(e,o,l),_=b8(r,-1*o,-1*l),v=_.x-m.x,y=_.y-m.y,b=v*v+y*y,f=Math.sqrt(b),h=(e.nodeRepulsion+r.nodeRepulsion)/b,p=h*v/f,g=h*y/f;e.isLocked||(e.offsetX-=p,e.offsetY-=g),r.isLocked||(r.offsetX+=p,r.offsetY+=g)}},KIr=function(e,r,n,i){if(n>0)var a=e.maxX-r.minX;else var a=r.maxX-e.minX;if(i>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return a>=0&&s>=0?Math.sqrt(a*a+s*s):0},b8=function(e,r,n){var i=e.positionX,a=e.positionY,s=e.height||1,o=e.width||1,l=n/r,u=s/o,d={};return r===0&&0<n||r===0&&0>n?(d.x=i,d.y=a+s/2,d):0<r&&-1*u<=l&&l<=u?(d.x=i+o/2,d.y=a+o*n/2/r,d):0>r&&-1*u<=l&&l<=u?(d.x=i-o/2,d.y=a-o*n/2/r,d):0<n&&(l<=-1*u||l>=u)?(d.x=i+s*r/2/n,d.y=a+s/2,d):(0>n&&(l<=-1*u||l>=u)&&(d.x=i-s*r/2/n,d.y=a-s/2),d)},jIr=function(e,r){for(var n=0;n<e.edgeSize;n++){var i=e.layoutEdges[n],a=e.idToIndex[i.sourceId],s=e.layoutNodes[a],o=e.idToIndex[i.targetId],l=e.layoutNodes[o],u=l.positionX-s.positionX,d=l.positionY-s.positionY;if(!(u===0&&d===0)){var h=b8(s,u,d),f=b8(l,-1*u,-1*d),p=f.x-h.x,g=f.y-h.y,m=Math.sqrt(p*p+g*g),_=Math.pow(i.idealLength-m,2)/i.elasticity;if(m!==0)var v=_*p/m,y=_*g/m;else var v=0,y=0;s.isLocked||(s.offsetX+=v,s.offsetY+=y),l.isLocked||(l.offsetX-=v,l.offsetY-=y)}}},XIr=function(e,r){if(r.gravity!==0)for(var n=1,i=0;i<e.graphSet.length;i++){var a=e.graphSet[i],s=a.length;if(i===0)var o=e.clientHeight/2,l=e.clientWidth/2;else var u=e.layoutNodes[e.idToIndex[a[0]]],d=e.layoutNodes[e.idToIndex[u.parentId]],o=d.positionX,l=d.positionY;for(var h=0;h<s;h++){var f=e.layoutNodes[e.idToIndex[a[h]]];if(!f.isLocked){var p=o-f.positionX,g=l-f.positionY,m=Math.sqrt(p*p+g*g);if(m>n){var _=r.gravity*p/m,v=r.gravity*g/m;f.offsetX+=_,f.offsetY+=v}}}}},QIr=function(e,r){var n=[],i=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;i<=a;){var s=n[i++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0<u.length&&!l.isLocked){for(var d=l.offsetX,h=l.offsetY,f=0;f<u.length;f++){var p=e.layoutNodes[e.idToIndex[u[f]]];p.offsetX+=d,p.offsetY+=h,n[++a]=u[f]}l.offsetX=0,l.offsetY=0}}},ZIr=function(e,r){for(var n=0;n<e.nodeSize;n++){var i=e.layoutNodes[n];0<i.children.length&&(i.maxX=void 0,i.minX=void 0,i.maxY=void 0,i.minY=void 0)}for(var n=0;n<e.nodeSize;n++){var i=e.layoutNodes[n];if(!(0<i.children.length||i.isLocked)){var a=JIr(i.offsetX,i.offsetY,e.temperature);i.positionX+=a.x,i.positionY+=a.y,i.offsetX=0,i.offsetY=0,i.minX=i.positionX-i.width,i.maxX=i.positionX+i.width,i.minY=i.positionY-i.height,i.maxY=i.positionY+i.height,CVe(i,e)}}for(var n=0;n<e.nodeSize;n++){var i=e.layoutNodes[n];0<i.children.length&&!i.isLocked&&(i.positionX=(i.maxX+i.minX)/2,i.positionY=(i.maxY+i.minY)/2,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY)}},JIr=function(e,r,n){var i=Math.sqrt(e*e+r*r);if(i>n)var a={x:n*e/i,y:n*r/i};else var a={x:e,y:r};return a},CVe=function(e,r){var n=e.parentId;if(n!=null){var i=r.layoutNodes[r.idToIndex[n]],a=!1;if((i.maxX==null||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(i.minX==null||e.minX-i.padLeft<i.minX)&&(i.minX=e.minX-i.padLeft,a=!0),(i.maxY==null||e.maxY+i.padBottom>i.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(i.minY==null||e.minY-i.padTop<i.minY)&&(i.minY=e.minY-i.padTop,a=!0),a)return CVe(i,r)}},TRe=function(e,r){for(var n=e.layoutNodes,i=[],a=0;a<n.length;a++){var s=n[a],o=s.cmptId,l=i[o]=i[o]||[];l.push(s)}for(var u=0,a=0;a<i.length;a++){var d=i[a];if(d){d.x1=1/0,d.x2=-1/0,d.y1=1/0,d.y2=-1/0;for(var h=0;h<d.length;h++){var f=d[h];d.x1=Math.min(d.x1,f.positionX-f.width/2),d.x2=Math.max(d.x2,f.positionX+f.width/2),d.y1=Math.min(d.y1,f.positionY-f.height/2),d.y2=Math.max(d.y2,f.positionY+f.height/2)}d.w=d.x2-d.x1,d.h=d.y2-d.y1,u+=d.w*d.h}}i.sort(function(y,b){return b.w*b.h-y.w*y.h});for(var p=0,g=0,m=0,_=0,v=Math.sqrt(u)*e.clientWidth/e.clientHeight,a=0;a<i.length;a++){var d=i[a];if(d){for(var h=0;h<d.length;h++){var f=d[h];f.isLocked||(f.positionX+=p-d.x1,f.positionY+=g-d.y1)}p+=d.w+r.componentSpacing,m+=d.w+r.componentSpacing,_=Math.max(_,d.h),m>v&&(g+=_+r.componentSpacing,p=0,m=0,_=0)}}},eNr={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function wVe(t){this.options=Yn({},eNr,t)}wVe.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=yu(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(z){return{x:a.x1,y:a.y1}});else{var s=i.size(),o=Math.sqrt(s*a.h/a.w),l=Math.round(o),u=Math.round(a.w/a.h*o),d=function(G){if(G==null)return Math.min(l,u);var Y=Math.min(l,u);Y==l?l=G:u=G},h=function(G){if(G==null)return Math.max(l,u);var Y=Math.max(l,u);Y==l?l=G:u=G},f=e.rows,p=e.cols!=null?e.cols:e.columns;if(f!=null&&p!=null)l=f,u=p;else if(f!=null&&p==null)l=f,u=Math.ceil(s/l);else if(f==null&&p!=null)u=p,l=Math.ceil(s/u);else if(u*l>s){var g=d(),m=h();(g-1)*m>=s?d(g-1):(m-1)*g>=s&&h(m-1)}else for(;u*l<s;){var _=d(),v=h();(v+1)*_>=s?h(v+1):d(_+1)}var y=a.w/u,b=a.h/l;if(e.condense&&(y=0,b=0),e.avoidOverlap)for(var E=0;E<i.length;E++){var S=i[E],T=S._private.position;(T.x==null||T.y==null)&&(T.x=0,T.y=0);var C=S.layoutDimensions(e),x=e.avoidOverlapPadding,A=C.w+x,R=C.h+x;y=Math.max(y,A),b=Math.max(b,R)}for(var I={},L=function(G,Y){return!!I["c-"+G+"-"+Y]},F=function(G,Y){I["c-"+G+"-"+Y]=!0},O=0,D=0,M=function(){D++,D>=u&&(D=0,O++)},P={},N=0;N<i.length;N++){var $=i[N],U=e.position($);if(U&&(U.row!==void 0||U.col!==void 0)){var B={row:U.row,col:U.col};if(B.col===void 0)for(B.col=0;L(B.row,B.col);)B.col++;else if(B.row===void 0)for(B.row=0;L(B.row,B.col);)B.row++;P[$.id()]=B,F(B.row,B.col)}}var V=function(G,Y){var W,Q;if(G.locked()||G.isParent())return!1;var ie=P[G.id()];if(ie)W=ie.col*y+y/2+a.x1,Q=ie.row*b+b/2+a.y1;else{for(;L(O,D);)M();W=D*y+y/2+a.x1,Q=O*b+b/2+a.y1,F(O,D),M()}return{x:W,y:Q}};i.layoutPositions(this,e,V)}return this};var tNr={ready:function(){},stop:function(){}};function Jue(t){this.options=Yn({},tNr,t)}Jue.prototype.run=function(){var t=this.options,e=t.eles,r=this;return t.cy,r.emit("layoutstart"),e.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",t.ready),r.emit("layoutready"),r.one("layoutstop",t.stop),r.emit("layoutstop"),this};Jue.prototype.stop=function(){return this};var rNr={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function xVe(t){this.options=Yn({},rNr,t)}xVe.prototype.run=function(){var t=this.options,e=t.eles,r=e.nodes(),n=Qs(t.positions);function i(a){if(t.positions==null)return TAr(a.position());if(n)return t.positions(a);var s=t.positions[a._private.data.id];return s??null}return r.layoutPositions(this,t,function(a,s){var o=i(a);return a.locked()||o==null?!1:o}),this};var nNr={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function AVe(t){this.options=Yn({},nNr,t)}AVe.prototype.run=function(){var t=this.options,e=t.cy,r=t.eles,n=yu(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),i=function(s,o){return{x:n.x1+Math.round(Math.random()*n.w),y:n.y1+Math.round(Math.random()*n.h)}};return r.nodes().layoutPositions(this,t,i),this};var iNr=[{name:"breadthfirst",impl:yVe},{name:"circle",impl:bVe},{name:"concentric",impl:EVe},{name:"cose",impl:O$},{name:"grid",impl:wVe},{name:"null",impl:Jue},{name:"preset",impl:xVe},{name:"random",impl:AVe}];function RVe(t){this.options=t,this.notifications=0}var CRe=function(){},wRe=function(){throw new Error("A headless instance can not render images")};RVe.prototype={recalculateRenderedStyle:CRe,notify:function(){this.notifications++},init:CRe,isHeadless:function(){return!0},png:wRe,jpg:wRe};var ede={};ede.arrowShapeWidth=.3;ede.registerArrowShapes=function(){var t=this.arrowShapes={},e=this,r=function(u,d,h,f,p,g,m){var _=p.x-h/2-m,v=p.x+h/2+m,y=p.y-h/2-m,b=p.y+h/2+m,E=_<=u&&u<=v&&y<=d&&d<=b;return E},n=function(u,d,h,f,p){var g=u*Math.cos(f)-d*Math.sin(f),m=u*Math.sin(f)+d*Math.cos(f),_=g*h,v=m*h,y=_+p.x,b=v+p.y;return{x:y,y:b}},i=function(u,d,h,f){for(var p=[],g=0;g<u.length;g+=2){var m=u[g],_=u[g+1];p.push(n(m,_,d,h,f))}return p},a=function(u){for(var d=[],h=0;h<u.length;h++){var f=u[h];d.push(f.x,f.y)}return d},s=function(u){return u.pstyle("width").pfValue*u.pstyle("arrow-scale").pfValue*2},o=function(u,d){Bn(d)&&(d=t[d]),t[u]=Yn({name:u,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(f,p,g,m,_,v){var y=a(i(this.points,g+2*v,m,_)),b=Wu(f,p,y);return b},roughCollide:r,draw:function(f,p,g,m){var _=i(this.points,p,g,m);e.arrowShapeImpl("polygon")(f,_)},spacing:function(f){return 0},gap:s},d)};o("none",{collide:p8,roughCollide:p8,draw:Uue,spacing:Uxe,gap:Uxe}),o("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),o("arrow","triangle"),o("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:function(u,d,h,f,p){var g=i(this.points,d,h,f),m=this.controlPoint,_=n(m[0],m[1],d,h,f);e.arrowShapeImpl(this.name)(u,g,_)},gap:function(u){return s(u)*.8}}),o("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(u,d,h,f,p,g,m){var _=a(i(this.points,h+2*m,f,p)),v=a(i(this.pointsTee,h+2*m,f,p)),y=Wu(u,d,_)||Wu(u,d,v);return y},draw:function(u,d,h,f,p){var g=i(this.points,d,h,f),m=i(this.pointsTee,d,h,f);e.arrowShapeImpl(this.name)(u,g,m)}}),o("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(u,d,h,f,p,g,m){var _=p,v=Math.pow(_.x-u,2)+Math.pow(_.y-d,2)<=Math.pow((h+2*m)*this.radius,2),y=a(i(this.points,h+2*m,f,p));return Wu(u,d,y)||v},draw:function(u,d,h,f,p){var g=i(this.pointsTr,d,h,f);e.arrowShapeImpl(this.name)(u,g,f.x,f.y,this.radius*d)},spacing:function(u){return e.getArrowWidth(u.pstyle("width").pfValue,u.pstyle("arrow-scale").value)*this.radius}}),o("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(u,d){var h=this.baseCrossLinePts.slice(),f=d/u,p=3,g=5;return h[p]=h[p]-f,h[g]=h[g]-f,h},collide:function(u,d,h,f,p,g,m){var _=a(i(this.points,h+2*m,f,p)),v=a(i(this.crossLinePts(h,g),h+2*m,f,p)),y=Wu(u,d,_)||Wu(u,d,v);return y},draw:function(u,d,h,f,p){var g=i(this.points,d,h,f),m=i(this.crossLinePts(d,p),d,h,f);e.arrowShapeImpl(this.name)(u,g,m)}}),o("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(u){return s(u)*.525}}),o("circle",{radius:.15,collide:function(u,d,h,f,p,g,m){var _=p,v=Math.pow(_.x-u,2)+Math.pow(_.y-d,2)<=Math.pow((h+2*m)*this.radius,2);return v},draw:function(u,d,h,f,p){e.arrowShapeImpl(this.name)(u,f.x,f.y,this.radius*d)},spacing:function(u){return e.getArrowWidth(u.pstyle("width").pfValue,u.pstyle("arrow-scale").value)*this.radius}}),o("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(u){return 1},gap:function(u){return 1}}),o("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),o("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(u){return u.pstyle("width").pfValue*u.pstyle("arrow-scale").value}}),o("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(u){return .95*u.pstyle("width").pfValue*u.pstyle("arrow-scale").value}})};var SE={};SE.projectIntoViewport=function(t,e){var r=this.cy,n=this.findContainerClientCoords(),i=n[0],a=n[1],s=n[4],o=r.pan(),l=r.zoom(),u=((t-i)/s-o.x)/l,d=((e-a)/s-o.y)/l;return[u,d]};SE.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),r=this.cy.window().getComputedStyle(t),n=function(v){return parseFloat(r.getPropertyValue(v))},i={left:n("padding-left"),right:n("padding-right"),top:n("padding-top"),bottom:n("padding-bottom")},a={left:n("border-left-width"),right:n("border-right-width"),top:n("border-top-width"),bottom:n("border-bottom-width")},s=t.clientWidth,o=t.clientHeight,l=i.left+i.right,u=i.top+i.bottom,d=a.left+a.right,h=e.width/(s+d),f=s-l,p=o-u,g=e.left+i.left+a.left,m=e.top+i.top+a.top;return this.containerBB=[g,m,f,p,h]};SE.invalidateContainerClientCoordsCache=function(){this.containerBB=null};SE.findNearestElement=function(t,e,r,n){return this.findNearestElements(t,e,r,n)[0]};SE.findNearestElements=function(t,e,r,n){var i=this,a=this,s=a.getCachedZSortedEles(),o=[],l=a.cy.zoom(),u=a.cy.hasCompoundNodes(),d=(n?24:8)/l,h=(n?8:2)/l,f=(n?8:2)/l,p=1/0,g,m;r&&(s=s.interactive);function _(C,x){if(C.isNode()){if(m)return;m=C,o.push(C)}if(C.isEdge()&&(x==null||x<p))if(g){if(g.pstyle("z-compound-depth").value===C.pstyle("z-compound-depth").value&&g.pstyle("z-compound-depth").value===C.pstyle("z-compound-depth").value){for(var A=0;A<o.length;A++)if(o[A].isEdge()){o[A]=C,g=C,p=x??p;break}}}else o.push(C),g=C,p=x??p}function v(C){var x=C.outerWidth()+2*h,A=C.outerHeight()+2*h,R=x/2,I=A/2,L=C.position(),F=C.pstyle("corner-radius").value==="auto"?"auto":C.pstyle("corner-radius").pfValue,O=C._private.rscratch;if(L.x-R<=t&&t<=L.x+R&&L.y-I<=e&&e<=L.y+I){var D=a.nodeShapes[i.getNodeShape(C)];if(D.checkPoint(t,e,0,x,A,L.x,L.y,F,O))return _(C,0),!0}}function y(C){var x=C._private,A=x.rscratch,R=C.pstyle("width").pfValue,I=C.pstyle("arrow-scale").value,L=R/2+d,F=L*L,O=L*2,N=x.source,$=x.target,D;if(A.edgeType==="segments"||A.edgeType==="straight"||A.edgeType==="haystack"){for(var M=A.allpts,P=0;P+3<M.length;P+=2)if(FAr(t,e,M[P],M[P+1],M[P+2],M[P+3],O)&&F>(D=zAr(t,e,M[P],M[P+1],M[P+2],M[P+3])))return _(C,D),!0}else if(A.edgeType==="bezier"||A.edgeType==="multibezier"||A.edgeType==="self"||A.edgeType==="compound"){for(var M=A.allpts,P=0;P+5<A.allpts.length;P+=4)if(BAr(t,e,M[P],M[P+1],M[P+2],M[P+3],M[P+4],M[P+5],O)&&F>(D=GAr(t,e,M[P],M[P+1],M[P+2],M[P+3],M[P+4],M[P+5])))return _(C,D),!0}for(var N=N||x.source,$=$||x.target,U=i.getArrowWidth(R,I),B=[{name:"source",x:A.arrowStartX,y:A.arrowStartY,angle:A.srcArrowAngle},{name:"target",x:A.arrowEndX,y:A.arrowEndY,angle:A.tgtArrowAngle},{name:"mid-source",x:A.midX,y:A.midY,angle:A.midsrcArrowAngle},{name:"mid-target",x:A.midX,y:A.midY,angle:A.midtgtArrowAngle}],P=0;P<B.length;P++){var V=B[P],z=a.arrowShapes[C.pstyle(V.name+"-arrow-shape").value],G=C.pstyle("width").pfValue;if(z.roughCollide(t,e,U,V.angle,{x:V.x,y:V.y},G,d)&&z.collide(t,e,U,V.angle,{x:V.x,y:V.y},G,d))return _(C),!0}u&&o.length>0&&(v(N),v($))}function b(C,x,A){return Jc(C,x,A)}function E(C,x){var A=C._private,R=f,I;x?I=x+"-":I="",C.boundingBox();var L=A.labelBounds[x||"main"],F=C.pstyle(I+"label").value,O=C.pstyle("text-events").strValue==="yes";if(!(!O||!F)){var D=b(A.rscratch,"labelX",x),M=b(A.rscratch,"labelY",x),P=b(A.rscratch,"labelAngle",x),N=C.pstyle(I+"text-margin-x").pfValue,$=C.pstyle(I+"text-margin-y").pfValue,U=L.x1-R-N,B=L.x2+R-N,V=L.y1-R-$,z=L.y2+R-$;if(P){var G=Math.cos(P),Y=Math.sin(P),W=function(se,le){return se=se-D,le=le-M,{x:se*G-le*Y+D,y:se*Y+le*G+M}},Q=W(U,V),ie=W(U,z),Z=W(B,V),re=W(B,z),K=[Q.x+N,Q.y+$,Z.x+N,Z.y+$,re.x+N,re.y+$,ie.x+N,ie.y+$];if(Wu(t,e,K))return _(C),!0}else if($_(L,t,e))return _(C),!0}}for(var S=s.length-1;S>=0;S--){var T=s[S];T.isNode()?v(T)||E(T):y(T)||E(T)||E(T,"source")||E(T,"target")}return o};SE.getAllInBox=function(t,e,r,n){var i=this.getCachedZSortedEles().interactive,a=this.cy.zoom(),s=2/a,o=[],l=Math.min(t,r),u=Math.max(t,r),d=Math.min(e,n),h=Math.max(e,n);t=l,r=u,e=d,n=h;var f=yu({x1:t,y1:e,x2:r,y2:n}),p=[{x:f.x1,y:f.y1},{x:f.x2,y:f.y1},{x:f.x2,y:f.y2},{x:f.x1,y:f.y2}],g=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function m(se,le,_e){return Jc(se,le,_e)}function _(se,le){var _e=se._private,ye=s,Ue="";se.boundingBox();var Se=_e.labelBounds.main;if(!Se)return null;var be=m(_e.rscratch,"labelX",le),ke=m(_e.rscratch,"labelY",le),Ae=m(_e.rscratch,"labelAngle",le),tt=se.pstyle(Ue+"text-margin-x").pfValue,Oe=se.pstyle(Ue+"text-margin-y").pfValue,je=Se.x1-ye-tt,ct=Se.x2+ye-tt,Fe=Se.y1-ye-Oe,Xe=Se.y2+ye-Oe;if(Ae){var et=Math.cos(Ae),Ie=Math.sin(Ae),we=function(Te,fe){return Te=Te-be,fe=fe-ke,{x:Te*et-fe*Ie+be,y:Te*Ie+fe*et+ke}};return[we(je,Fe),we(ct,Fe),we(ct,Xe),we(je,Xe)]}else return[{x:je,y:Fe},{x:ct,y:Fe},{x:ct,y:Xe},{x:je,y:Xe}]}function v(se,le,_e,ye){function Ue(Se,be,ke){return(ke.y-Se.y)*(be.x-Se.x)>(be.y-Se.y)*(ke.x-Se.x)}return Ue(se,_e,ye)!==Ue(le,_e,ye)&&Ue(se,le,_e)!==Ue(se,le,ye)}for(var y=0;y<i.length;y++){var b=i[y];if(b.isNode()){var E=b,S=E.pstyle("text-events").strValue==="yes",T=E.pstyle("box-selection").strValue,C=E.pstyle("box-select-labels").strValue==="yes";if(T==="none")continue;var x=(T==="overlap"||C)&&S,A=E.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:x});if(T==="contain"){var R=!1;if(C&&S){var I=_(E);I&&gj(I,p)&&(o.push(E),R=!0)}!R&&Lqe(f,A)&&o.push(E)}else if(T==="overlap"&&que(f,A)){var L=E.boundingBox({includeNodes:!0,includeEdges:!0,includeLabels:!1,includeMainLabels:!1,includeSourceLabels:!1,includeTargetLabels:!1}),F=[{x:L.x1,y:L.y1},{x:L.x2,y:L.y1},{x:L.x2,y:L.y2},{x:L.x1,y:L.y2}];if(gj(F,p))o.push(E);else{var O=_(E);O&&gj(O,p)&&o.push(E)}}}else{var D=b,M=D._private,P=M.rscratch,N=D.pstyle("box-selection").strValue;if(N==="none")continue;if(N==="contain"){if(P.startX!=null&&P.startY!=null&&!$_(f,P.startX,P.startY)||P.endX!=null&&P.endY!=null&&!$_(f,P.endX,P.endY))continue;if(P.edgeType==="bezier"||P.edgeType==="multibezier"||P.edgeType==="self"||P.edgeType==="compound"||P.edgeType==="segments"||P.edgeType==="haystack"){for(var $=M.rstyle.bezierPts||M.rstyle.linePts||M.rstyle.haystackPts,U=!0,B=0;B<$.length;B++)if(!Vxe(f,$[B])){U=!1;break}U&&o.push(D)}else P.edgeType==="straight"&&o.push(D)}else if(N==="overlap"){var V=!1;if(P.startX!=null&&P.startY!=null&&P.endX!=null&&P.endY!=null&&($_(f,P.startX,P.startY)||$_(f,P.endX,P.endY)))o.push(D),V=!0;else if(!V&&P.edgeType==="haystack"){for(var z=M.rstyle.haystackPts,G=0;G<z.length;G++)if(Vxe(f,z[G])){o.push(D),V=!0;break}}if(!V){var Y=M.rstyle.bezierPts||M.rstyle.linePts||M.rstyle.haystackPts;if((!Y||Y.length<2)&&P.edgeType==="straight"&&P.startX!=null&&P.startY!=null&&P.endX!=null&&P.endY!=null&&(Y=[{x:P.startX,y:P.startY},{x:P.endX,y:P.endY}]),!Y||Y.length<2)continue;for(var W=0;W<Y.length-1;W++){for(var Q=Y[W],ie=Y[W+1],Z=0;Z<g.length;Z++){var re=Uo(g[Z],2),K=re[0],j=re[1];if(v(Q,ie,K,j)){o.push(D),V=!0;break}}if(V)break}}}}}return o};var E8={};E8.calculateArrowAngles=function(t){var e=t._private.rscratch,r=e.edgeType==="haystack",n=e.edgeType==="bezier",i=e.edgeType==="multibezier",a=e.edgeType==="segments",s=e.edgeType==="compound",o=e.edgeType==="self",l,u,d,h,f,p,v,y;if(r?(d=e.haystackPts[0],h=e.haystackPts[1],f=e.haystackPts[2],p=e.haystackPts[3]):(d=e.arrowStartX,h=e.arrowStartY,f=e.arrowEndX,p=e.arrowEndY),v=e.midX,y=e.midY,a)l=d-e.segpts[0],u=h-e.segpts[1];else if(i||s||o||n){var g=e.allpts,m=El(g[0],g[2],g[4],.1),_=El(g[1],g[3],g[5],.1);l=d-m,u=h-_}else l=d-v,u=h-y;e.srcArrowAngle=BL(l,u);var v=e.midX,y=e.midY;if(r&&(v=(d+f)/2,y=(h+p)/2),l=f-d,u=p-h,a){var g=e.allpts;if(g.length/2%2===0){var b=g.length/2,E=b-2;l=g[b]-g[E],u=g[b+1]-g[E+1]}else if(e.isRound)l=e.midVector[1],u=-e.midVector[0];else{var b=g.length/2-1,E=b-2;l=g[b]-g[E],u=g[b+1]-g[E+1]}}else if(i||s||o){var g=e.allpts,S=e.ctrlpts,T,C,x,A;if(S.length/2%2===0){var R=g.length/2-1,I=R+2,L=I+2;T=El(g[R],g[I],g[L],0),C=El(g[R+1],g[I+1],g[L+1],0),x=El(g[R],g[I],g[L],1e-4),A=El(g[R+1],g[I+1],g[L+1],1e-4)}else{var I=g.length/2-1,R=I-2,L=I+2;T=El(g[R],g[I],g[L],.4999),C=El(g[R+1],g[I+1],g[L+1],.4999),x=El(g[R],g[I],g[L],.5),A=El(g[R+1],g[I+1],g[L+1],.5)}l=x-T,u=A-C}if(e.midtgtArrowAngle=BL(l,u),e.midDispX=l,e.midDispY=u,l*=-1,u*=-1,a){var g=e.allpts;if(g.length/2%2!==0){if(!e.isRound){var b=g.length/2-1,F=b+2;l=-(g[F]-g[b]),u=-(g[F+1]-g[b+1])}}}if(e.midsrcArrowAngle=BL(l,u),a)l=f-e.segpts[e.segpts.length-2],u=p-e.segpts[e.segpts.length-1];else if(i||s||o||n){var g=e.allpts,O=g.length,m=El(g[O-6],g[O-4],g[O-2],.9),_=El(g[O-5],g[O-3],g[O-1],.9);l=f-m,u=p-_}else l=f-v,u=p-y;e.tgtArrowAngle=BL(l,u)};E8.getArrowWidth=E8.getArrowHeight=function(t,e){var r=this.arrowWidthCache=this.arrowWidthCache||{},n=r[t+", "+e];return n||(n=Math.max(Math.pow(t*13.37,.9),29)*e,r[t+", "+e]=n,n)};var fte,pte,Ap={},mh={},xRe,ARe,cy,c6,im,Nv,Wv,bp,_S,YL,OVe,IVe,gte,mte,RRe,ORe=function(e,r,n){n.x=r.x-e.x,n.y=r.y-e.y,n.len=Math.sqrt(n.x*n.x+n.y*n.y),n.nx=n.x/n.len,n.ny=n.y/n.len,n.ang=Math.atan2(n.ny,n.nx)},aNr=function(e,r){r.x=e.x*-1,r.y=e.y*-1,r.nx=e.nx*-1,r.ny=e.ny*-1,r.ang=e.ang>0?-(Math.PI-e.ang):Math.PI+e.ang},sNr=function(e,r,n,i,a){if(e!==RRe?ORe(r,e,Ap):aNr(mh,Ap),ORe(r,n,mh),xRe=Ap.nx*mh.ny-Ap.ny*mh.nx,ARe=Ap.nx*mh.nx-Ap.ny*-mh.ny,im=Math.asin(Math.max(-1,Math.min(1,xRe))),Math.abs(im)<1e-6){fte=r.x,pte=r.y,Wv=_S=0;return}cy=1,c6=!1,ARe<0?im<0?im=Math.PI+im:(im=Math.PI-im,cy=-1,c6=!0):im>0&&(cy=-1,c6=!0),r.radius!==void 0?_S=r.radius:_S=i,Nv=im/2,YL=Math.min(Ap.len/2,mh.len/2),a?(bp=Math.abs(Math.cos(Nv)*_S/Math.sin(Nv)),bp>YL?(bp=YL,Wv=Math.abs(bp*Math.sin(Nv)/Math.cos(Nv))):Wv=_S):(bp=Math.min(YL,_S),Wv=Math.abs(bp*Math.sin(Nv)/Math.cos(Nv))),gte=r.x+mh.nx*bp,mte=r.y+mh.ny*bp,fte=gte-mh.ny*Wv*cy,pte=mte+mh.nx*Wv*cy,OVe=r.x+Ap.nx*bp,IVe=r.y+Ap.ny*bp,RRe=r};function NVe(t,e){e.radius===0?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function tde(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(sNr(t,e,r,n,i),{cx:fte,cy:pte,radius:Wv,startX:OVe,startY:IVe,stopX:gte,stopY:mte,startAngle:Ap.ang+Math.PI/2*cy,endAngle:mh.ang-Math.PI/2*cy,counterClockwise:c6})}var s3=.01,oNr=Math.sqrt(2*s3),Lc={};Lc.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,i=e.vectorNormInverse,a,s=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(S,T,C,x){var A=x-T,R=C-S,I=Math.sqrt(R*R+A*A);return{x:-A/I,y:R/I}},d=t.pstyle("edge-distances").value;switch(d){case"node-position":a=r;break;case"intersection":a=n;break;case"endpoints":{if(l){var h=this.manualEndptToPx(t.source()[0],s),f=Uo(h,2),p=f[0],g=f[1],m=this.manualEndptToPx(t.target()[0],o),_=Uo(m,2),v=_[0],y=_[1],b={x1:p,y1:g,x2:v,y2:y};i=u(p,g,v,y),a=b}else Pa("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint.  Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:i}};Lc.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r._private,i=n.rscratch;if(!i.haystack){var a=Math.random()*2*Math.PI;i.source={x:Math.cos(a),y:Math.sin(a)},a=Math.random()*2*Math.PI,i.target={x:Math.cos(a),y:Math.sin(a)}}var s=n.source,o=n.target,l=s.position(),u=o.position(),d=s.width(),h=o.width(),f=s.height(),p=o.height(),g=r.pstyle("haystack-radius").value,m=g/2;i.haystackPts=i.allpts=[i.source.x*d*m+l.x,i.source.y*f*m+l.y,i.target.x*h*m+u.x,i.target.y*p*m+u.y],i.midX=(i.allpts[0]+i.allpts[2])/2,i.midY=(i.allpts[1]+i.allpts[3])/2,i.edgeType="haystack",i.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}};Lc.findSegmentsPoints=function(t,e){var r=t._private.rscratch,n=t.pstyle("segment-weights"),i=t.pstyle("segment-distances"),a=t.pstyle("segment-radii"),s=t.pstyle("radius-type"),o=Math.min(n.pfValue.length,i.pfValue.length),l=a.pfValue[a.pfValue.length-1],u=s.pfValue[s.pfValue.length-1];r.edgeType="segments",r.segpts=[],r.radii=[],r.isArcRadius=[];for(var d=0;d<o;d++){var h=n.pfValue[d],f=i.pfValue[d],p=1-h,g=h,m=this.findMidptPtsEtc(t,e),_=m.midptPts,v=m.vectorNormInverse,y={x:_.x1*p+_.x2*g,y:_.y1*p+_.y2*g};r.segpts.push(y.x+v.x*f,y.y+v.y*f),r.radii.push(a.pfValue[d]!==void 0?a.pfValue[d]:l),r.isArcRadius.push((s.pfValue[d]!==void 0?s.pfValue[d]:u)==="arc-radius")}};Lc.findLoopPoints=function(t,e,r,n){var i=t._private.rscratch,a=e.dirCounts,s=e.srcPos,o=t.pstyle("control-point-distances"),l=o?o.pfValue[0]:void 0,u=t.pstyle("loop-direction").pfValue,d=t.pstyle("loop-sweep").pfValue,h=t.pstyle("control-point-step-size").pfValue;i.edgeType="self";var f=r,p=h;n&&(f=0,p=l);var g=u-Math.PI/2,m=g-d/2,_=g+d/2,v=u+"_"+d;f=a[v]===void 0?a[v]=0:++a[v],i.ctrlpts=[s.x+Math.cos(m)*1.4*p*(f/3+1),s.y+Math.sin(m)*1.4*p*(f/3+1),s.x+Math.cos(_)*1.4*p*(f/3+1),s.y+Math.sin(_)*1.4*p*(f/3+1)]};Lc.findCompoundLoopPoints=function(t,e,r,n){var i=t._private.rscratch;i.edgeType="compound";var a=e.srcPos,s=e.tgtPos,o=e.srcW,l=e.srcH,u=e.tgtW,d=e.tgtH,h=t.pstyle("control-point-step-size").pfValue,f=t.pstyle("control-point-distances"),p=f?f.pfValue[0]:void 0,g=r,m=h;n&&(g=0,m=p);var _=50,v={x:a.x-o/2,y:a.y-l/2},y={x:s.x-u/2,y:s.y-d/2},b={x:Math.min(v.x,y.x),y:Math.min(v.y,y.y)},E=.5,S=Math.max(E,Math.log(o*s3)),T=Math.max(E,Math.log(u*s3));i.ctrlpts=[b.x,b.y-(1+Math.pow(_,1.12)/100)*m*(g/3+1)*S,b.x-(1+Math.pow(_,1.12)/100)*m*(g/3+1)*T,b.y]};Lc.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"};Lc.findBezierPoints=function(t,e,r,n,i){var a=t._private.rscratch,s=t.pstyle("control-point-step-size").pfValue,o=t.pstyle("control-point-distances"),l=t.pstyle("control-point-weights"),u=o&&l?Math.min(o.value.length,l.value.length):1,d=o?o.pfValue[0]:void 0,h=l.value[0],f=n;a.edgeType=f?"multibezier":"bezier",a.ctrlpts=[];for(var p=0;p<u;p++){var g=(.5-e.eles.length/2+r)*s*(i?-1:1),m=void 0,_=zue(g);f&&(d=o?o.pfValue[p]:s,h=l.value[p]),n?m=d:m=d!==void 0?_*d:void 0;var v=m!==void 0?m:g,y=1-h,b=h,E=this.findMidptPtsEtc(t,e),S=E.midptPts,T=E.vectorNormInverse,C={x:S.x1*y+S.x2*b,y:S.y1*y+S.y2*b};a.ctrlpts.push(C.x+T.x*v,C.y+T.y*v)}};Lc.findTaxiPoints=function(t,e){var r=t._private.rscratch;r.edgeType="segments";var n="vertical",i="horizontal",a="leftward",s="rightward",o="downward",l="upward",u="auto",d=e.posPts,h=e.srcW,f=e.srcH,p=e.tgtW,g=e.tgtH,m=t.pstyle("edge-distances").value,_=m!=="node-position",v=t.pstyle("taxi-direction").value,y=v,b=t.pstyle("taxi-turn"),E=b.units==="%",S=b.pfValue,T=S<0,C=t.pstyle("taxi-turn-min-distance").pfValue,x=_?(h+p)/2:0,A=_?(f+g)/2:0,R=d.x2-d.x1,I=d.y2-d.y1,L=function(fe,Be){return fe>0?Math.max(fe-Be,0):Math.min(fe+Be,0)},F=L(R,x),O=L(I,A),D=!1;y===u?v=Math.abs(F)>Math.abs(O)?i:n:y===l||y===o?(v=n,D=!0):(y===a||y===s)&&(v=i,D=!0);var M=v===n,P=M?O:F,N=M?I:R,$=zue(N),U=!1;!(D&&(E||T))&&(y===o&&N<0||y===l&&N>0||y===a&&N>0||y===s&&N<0)&&($*=-1,P=$*Math.abs(P),U=!0);var B;if(E){var V=S<0?1+S:S;B=V*P}else{var z=S<0?P:0;B=z+S*$}var G=function(fe){return Math.abs(fe)<C||Math.abs(fe)>=Math.abs(P)},Y=G(B),W=G(Math.abs(P)-Math.abs(B)),Q=Y||W;if(Q&&!U)if(M){var ie=Math.abs(N)<=f/2,Z=Math.abs(R)<=p/2;if(ie){var re=(d.x1+d.x2)/2,K=d.y1,j=d.y2;r.segpts=[re,K,re,j]}else if(Z){var se=(d.y1+d.y2)/2,le=d.x1,_e=d.x2;r.segpts=[le,se,_e,se]}else r.segpts=[d.x1,d.y2]}else{var ye=Math.abs(N)<=h/2,Ue=Math.abs(I)<=g/2;if(ye){var Se=(d.y1+d.y2)/2,be=d.x1,ke=d.x2;r.segpts=[be,Se,ke,Se]}else if(Ue){var Ae=(d.x1+d.x2)/2,tt=d.y1,Oe=d.y2;r.segpts=[Ae,tt,Ae,Oe]}else r.segpts=[d.x2,d.y1]}else if(M){var je=d.y1+B+(_?f/2*$:0),ct=d.x1,Fe=d.x2;r.segpts=[ct,je,Fe,je]}else{var Xe=d.x1+B+(_?h/2*$:0),et=d.y1,Ie=d.y2;r.segpts=[Xe,et,Xe,Ie]}if(r.isRound){var we=t.pstyle("taxi-radius").value,ce=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(we),r.isArcRadius=new Array(r.segpts.length/2).fill(ce)}};Lc.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,i=e.tgtPos,a=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,d=e.tgtShape,h=e.srcCornerRadius,f=e.tgtCornerRadius,p=e.srcRs,g=e.tgtRs,m=!Gr(r.startX)||!Gr(r.startY),_=!Gr(r.arrowStartX)||!Gr(r.arrowStartY),v=!Gr(r.endX)||!Gr(r.endY),y=!Gr(r.arrowEndX)||!Gr(r.arrowEndY),b=3,E=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,S=b*E,T=qb({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),C=T<S,x=qb({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),A=x<S,R=!1;if(m||_||C){R=!0;var I={x:r.ctrlpts[0]-n.x,y:r.ctrlpts[1]-n.y},L=Math.sqrt(I.x*I.x+I.y*I.y),F={x:I.x/L,y:I.y/L},O=Math.max(a,s),D={x:r.ctrlpts[0]+F.x*2*O,y:r.ctrlpts[1]+F.y*2*O},M=u.intersectLine(n.x,n.y,a,s,D.x,D.y,0,h,p);C?(r.ctrlpts[0]=r.ctrlpts[0]+F.x*(S-T),r.ctrlpts[1]=r.ctrlpts[1]+F.y*(S-T)):(r.ctrlpts[0]=M[0]+F.x*S,r.ctrlpts[1]=M[1]+F.y*S)}if(v||y||A){R=!0;var P={x:r.ctrlpts[0]-i.x,y:r.ctrlpts[1]-i.y},N=Math.sqrt(P.x*P.x+P.y*P.y),$={x:P.x/N,y:P.y/N},U=Math.max(a,s),B={x:r.ctrlpts[0]+$.x*2*U,y:r.ctrlpts[1]+$.y*2*U},V=d.intersectLine(i.x,i.y,o,l,B.x,B.y,0,f,g);A?(r.ctrlpts[0]=r.ctrlpts[0]+$.x*(S-x),r.ctrlpts[1]=r.ctrlpts[1]+$.y*(S-x)):(r.ctrlpts[0]=V[0]+$.x*S,r.ctrlpts[1]=V[1]+$.y*S)}R&&this.findEndpoints(t)}};Lc.storeAllpts=function(t){var e=t._private.rscratch;if(e.edgeType==="multibezier"||e.edgeType==="bezier"||e.edgeType==="self"||e.edgeType==="compound"){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var r=0;r+1<e.ctrlpts.length;r+=2)e.allpts.push(e.ctrlpts[r],e.ctrlpts[r+1]),r+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[r]+e.ctrlpts[r+2])/2,(e.ctrlpts[r+1]+e.ctrlpts[r+3])/2);e.allpts.push(e.endX,e.endY);var n,i;e.ctrlpts.length/2%2===0?(n=e.allpts.length/2-1,e.midX=e.allpts[n],e.midY=e.allpts[n+1]):(n=e.allpts.length/2-3,i=.5,e.midX=El(e.allpts[n],e.allpts[n+2],e.allpts[n+4],i),e.midY=El(e.allpts[n+1],e.allpts[n+3],e.allpts[n+5],i))}else if(e.edgeType==="straight")e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if(e.edgeType==="segments"){if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.isRound){e.roundCorners=[];for(var a=2;a+3<e.allpts.length;a+=2){var s=e.radii[a/2-1],o=e.isArcRadius[a/2-1];e.roundCorners.push(tde({x:e.allpts[a-2],y:e.allpts[a-1]},{x:e.allpts[a],y:e.allpts[a+1],radius:s},{x:e.allpts[a+2],y:e.allpts[a+3]},s,o))}}if(e.segpts.length%4===0){var l=e.segpts.length/2,u=l-2;e.midX=(e.segpts[u]+e.segpts[l])/2,e.midY=(e.segpts[u+1]+e.segpts[l+1])/2}else{var d=e.segpts.length/2-1;if(!e.isRound)e.midX=e.segpts[d],e.midY=e.segpts[d+1];else{var h={x:e.segpts[d],y:e.segpts[d+1]},f=e.roundCorners[d/2];if(f.radius===0){var p={x:e.segpts[d+2],y:e.segpts[d+3]};e.midX=h.x,e.midY=h.y,e.midVector=[h.y-p.y,p.x-h.x]}else{var g=[h.x-f.cx,h.y-f.cy],m=f.radius/Math.sqrt(Math.pow(g[0],2)+Math.pow(g[1],2));g=g.map(function(_){return _*m}),e.midX=f.cx+g[0],e.midY=f.cy+g[1],e.midVector=g}}}}};Lc.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||Gr(e.startX)&&Gr(e.startY)&&Gr(e.endX)&&Gr(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,Pa("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw.  Adjust your edge style (e.g. control points) accordingly or use an alternative edge type.  This is expected behaviour when the source node and the target node overlap."))};Lc.findEdgeControlPoints=function(t){var e=this;if(!(!t||t.length===0)){for(var r=this,n=r.cy,i=n.hasCompoundNodes(),a=new Bm,s=function(A,R){return[].concat(d8(A),[R?1:0]).join("-")},o=[],l=[],u=0;u<t.length;u++){var d=t[u],h=d._private,f=d.pstyle("curve-style").value;if(!(d.removed()||!d.takesUpSpace())){if(f==="haystack"){l.push(d);continue}var p=f==="unbundled-bezier"||U_(f,"segments")||f==="straight"||f==="straight-triangle"||U_(f,"taxi"),g=f==="unbundled-bezier"||f==="bezier",m=h.source,_=h.target,v=m.poolIndex(),y=_.poolIndex(),b=[v,y].sort(),E=s(b,p),S=a.get(E);S==null&&(S={eles:[]},o.push({pairId:b,edgeIsUnbundled:p}),a.set(E,S)),S.eles.push(d),p&&(S.hasUnbundled=!0),g&&(S.hasBezier=!0)}}for(var T=function(){var A=o[C],R=A.pairId,I=A.edgeIsUnbundled,L=s(R,I),F=a.get(L),O;if(!F.hasUnbundled){var D=F.eles[0].parallelEdges().filter(function(ce){return ce.isBundledBezier()});$ue(F.eles),D.forEach(function(ce){return F.eles.push(ce)}),F.eles.sort(function(ce,Te){return ce.poolIndex()-Te.poolIndex()})}var M=F.eles[0],P=M.source(),N=M.target();if(P.poolIndex()>N.poolIndex()){var $=P;P=N,N=$}var U=F.srcPos=P.position(),B=F.tgtPos=N.position(),V=F.srcW=P.outerWidth(),z=F.srcH=P.outerHeight(),G=F.tgtW=N.outerWidth(),Y=F.tgtH=N.outerHeight(),W=F.srcShape=r.nodeShapes[e.getNodeShape(P)],Q=F.tgtShape=r.nodeShapes[e.getNodeShape(N)],ie=F.srcCornerRadius=P.pstyle("corner-radius").value==="auto"?"auto":P.pstyle("corner-radius").pfValue,Z=F.tgtCornerRadius=N.pstyle("corner-radius").value==="auto"?"auto":N.pstyle("corner-radius").pfValue,re=F.tgtRs=N._private.rscratch,K=F.srcRs=P._private.rscratch;F.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var j=0;j<F.eles.length;j++){var se=F.eles[j],le=se[0]._private.rscratch,_e=se.pstyle("curve-style").value,ye=_e==="unbundled-bezier"||U_(_e,"segments")||U_(_e,"taxi"),Ue=!P.same(se.source());if(!F.calculatedIntersection&&P!==N&&(F.hasBezier||F.hasUnbundled)){F.calculatedIntersection=!0;var Se=W.intersectLine(U.x,U.y,V,z,B.x,B.y,0,ie,K),be=F.srcIntn=Se,ke=Q.intersectLine(B.x,B.y,G,Y,U.x,U.y,0,Z,re),Ae=F.tgtIntn=ke,tt=F.intersectionPts={x1:Se[0],x2:ke[0],y1:Se[1],y2:ke[1]},Oe=F.posPts={x1:U.x,x2:B.x,y1:U.y,y2:B.y},je=ke[1]-Se[1],ct=ke[0]-Se[0],Fe=Math.sqrt(ct*ct+je*je);Gr(Fe)&&Fe>=oNr||(Fe=Math.sqrt(Math.max(ct*ct,s3)+Math.max(je*je,s3)));var Xe=F.vector={x:ct,y:je},et=F.vectorNorm={x:Xe.x/Fe,y:Xe.y/Fe},Ie={x:-et.y,y:et.x};F.nodesOverlap=!Gr(Fe)||Q.checkPoint(Se[0],Se[1],0,G,Y,B.x,B.y,Z,re)||W.checkPoint(ke[0],ke[1],0,V,z,U.x,U.y,ie,K),F.vectorNormInverse=Ie,O={nodesOverlap:F.nodesOverlap,dirCounts:F.dirCounts,calculatedIntersection:!0,hasBezier:F.hasBezier,hasUnbundled:F.hasUnbundled,eles:F.eles,srcPos:B,srcRs:re,tgtPos:U,tgtRs:K,srcW:G,srcH:Y,tgtW:V,tgtH:z,srcIntn:Ae,tgtIntn:be,srcShape:Q,tgtShape:W,posPts:{x1:Oe.x2,y1:Oe.y2,x2:Oe.x1,y2:Oe.y1},intersectionPts:{x1:tt.x2,y1:tt.y2,x2:tt.x1,y2:tt.y1},vector:{x:-Xe.x,y:-Xe.y},vectorNorm:{x:-et.x,y:-et.y},vectorNormInverse:{x:-Ie.x,y:-Ie.y}}}var we=Ue?O:F;le.nodesOverlap=we.nodesOverlap,le.srcIntn=we.srcIntn,le.tgtIntn=we.tgtIntn,le.isRound=_e.startsWith("round"),i&&(P.isParent()||P.isChild()||N.isParent()||N.isChild())&&(P.parents().anySame(N)||N.parents().anySame(P)||P.same(N)&&P.isParent())?e.findCompoundLoopPoints(se,we,j,ye):P===N?e.findLoopPoints(se,we,j,ye):_e.endsWith("segments")?e.findSegmentsPoints(se,we):_e.endsWith("taxi")?e.findTaxiPoints(se,we):_e==="straight"||!ye&&F.eles.length%2===1&&j===Math.floor(F.eles.length/2)?e.findStraightEdgePoints(se):e.findBezierPoints(se,we,j,ye,Ue),e.findEndpoints(se),e.tryToCorrectInvalidPoints(se,we),e.checkForInvalidEdgeWarning(se),e.storeAllpts(se),e.storeEdgeProjections(se),e.calculateArrowAngles(se),e.recalculateEdgeLabelProjections(se),e.calculateLabelAngles(se)}},C=0;C<o.length;C++)T();this.findHaystackPoints(l)}};function kVe(t){var e=[];if(t!=null){for(var r=0;r<t.length;r+=2){var n=t[r],i=t[r+1];e.push({x:n,y:i})}return e}}Lc.getSegmentPoints=function(t){var e=t[0]._private.rscratch;this.recalculateRenderedStyle(t);var r=e.edgeType;if(r==="segments")return kVe(e.segpts)};Lc.getControlPoints=function(t){var e=t[0]._private.rscratch;this.recalculateRenderedStyle(t);var r=e.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return kVe(e.ctrlpts)};Lc.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var sD={};sD.manualEndptToPx=function(t,e){var r=this,n=t.position(),i=t.outerWidth(),a=t.outerHeight(),s=t._private.rscratch;if(e.value.length===2){var o=[e.pfValue[0],e.pfValue[1]];return e.units[0]==="%"&&(o[0]=o[0]*i),e.units[1]==="%"&&(o[1]=o[1]*a),o[0]+=n.x,o[1]+=n.y,o}else{var l=e.pfValue[0];l=-Math.PI/2+l;var u=2*Math.max(i,a),d=[n.x+Math.cos(l)*u,n.y+Math.sin(l)*u];return r.nodeShapes[this.getNodeShape(t)].intersectLine(n.x,n.y,i,a,d[0],d[1],0,t.pstyle("corner-radius").value==="auto"?"auto":t.pstyle("corner-radius").pfValue,s)}};sD.findEndpoints=function(t){var e,r,n,i,a=this,s,o=t.source()[0],l=t.target()[0],u=o.position(),d=l.position(),h=t.pstyle("target-arrow-shape").value,f=t.pstyle("source-arrow-shape").value,p=t.pstyle("target-distance-from-node").pfValue,g=t.pstyle("source-distance-from-node").pfValue,m=o._private.rscratch,_=l._private.rscratch,v=t.pstyle("curve-style").value,y=t._private.rscratch,b=y.edgeType,E=U_(v,"taxi"),S=b==="self"||b==="compound",T=b==="bezier"||b==="multibezier"||S,C=b!=="bezier",x=b==="straight"||b==="segments",A=b==="segments",R=T||C||x,I=S||E,L=t.pstyle("source-endpoint"),F=I?"outside-to-node":L.value,O=o.pstyle("corner-radius").value==="auto"?"auto":o.pstyle("corner-radius").pfValue,D=t.pstyle("target-endpoint"),M=I?"outside-to-node":D.value,P=l.pstyle("corner-radius").value==="auto"?"auto":l.pstyle("corner-radius").pfValue;y.srcManEndpt=L,y.tgtManEndpt=D;var N,$,U,B,V=(e=(D==null||(r=D.pfValue)===null||r===void 0?void 0:r.length)===2?D.pfValue:null)!==null&&e!==void 0?e:[0,0],z=(n=(L==null||(i=L.pfValue)===null||i===void 0?void 0:i.length)===2?L.pfValue:null)!==null&&n!==void 0?n:[0,0];if(T){var G=[y.ctrlpts[0],y.ctrlpts[1]],Y=C?[y.ctrlpts[y.ctrlpts.length-2],y.ctrlpts[y.ctrlpts.length-1]]:G;N=Y,$=G}else if(x){var W=A?y.segpts.slice(0,2):[d.x+V[0],d.y+V[1]],Q=A?y.segpts.slice(y.segpts.length-2):[u.x+z[0],u.y+z[1]];N=Q,$=W}if(M==="inside-to-node")s=[d.x,d.y];else if(D.units)s=this.manualEndptToPx(l,D);else if(M==="outside-to-line")s=y.tgtIntn;else if(M==="outside-to-node"||M==="outside-to-node-or-label"?U=N:(M==="outside-to-line"||M==="outside-to-line-or-label")&&(U=[u.x,u.y]),s=a.nodeShapes[this.getNodeShape(l)].intersectLine(d.x,d.y,l.outerWidth(),l.outerHeight(),U[0],U[1],0,P,_),M==="outside-to-node-or-label"||M==="outside-to-line-or-label"){var ie=l._private.rscratch,Z=ie.labelWidth,re=ie.labelHeight,K=ie.labelX,j=ie.labelY,se=Z/2,le=re/2,_e=l.pstyle("text-valign").value;_e=NA(_e),_e==="top"?j-=le:_e==="bottom"&&(j+=le);var ye=l.pstyle("text-halign").value;ye=IA(ye),ye==="left"?K-=se:ye==="right"&&(K+=se);var Ue=t3(U[0],U[1],[K-se,j-le,K+se,j-le,K+se,j+le,K-se,j+le],d.x,d.y);if(Ue.length>0){var Se=u,be=Yv(Se,bT(s)),ke=Yv(Se,bT(Ue)),Ae=be;if(ke<be&&(s=Ue,Ae=ke),Ue.length>2){var tt=Yv(Se,{x:Ue[2],y:Ue[3]});tt<Ae&&(s=[Ue[2],Ue[3]])}}}var Oe=UL(s,N,a.arrowShapes[h].spacing(t)+p),je=UL(s,N,a.arrowShapes[h].gap(t)+p);if(y.endX=je[0],y.endY=je[1],y.arrowEndX=Oe[0],y.arrowEndY=Oe[1],F==="inside-to-node")s=[u.x,u.y];else if(L.units)s=this.manualEndptToPx(o,L);else if(F==="outside-to-line")s=y.srcIntn;else if(F==="outside-to-node"||F==="outside-to-node-or-label"?B=$:(F==="outside-to-line"||F==="outside-to-line-or-label")&&(B=[d.x,d.y]),s=a.nodeShapes[this.getNodeShape(o)].intersectLine(u.x,u.y,o.outerWidth(),o.outerHeight(),B[0],B[1],0,O,m),F==="outside-to-node-or-label"||F==="outside-to-line-or-label"){var ct=o._private.rscratch,Fe=ct.labelWidth,Xe=ct.labelHeight,et=ct.labelX,Ie=ct.labelY,we=Fe/2,ce=Xe/2,Te=o.pstyle("text-valign").value;Te=NA(Te),Te==="top"?Ie-=ce:Te==="bottom"&&(Ie+=ce);var fe=o.pstyle("text-halign").value;fe=IA(fe),fe==="left"?et-=we:fe==="right"&&(et+=we);var Be=t3(B[0],B[1],[et-we,Ie-ce,et+we,Ie-ce,et+we,Ie+ce,et-we,Ie+ce],u.x,u.y);if(Be.length>0){var me=d,Ye=Yv(me,bT(s)),qe=Yv(me,bT(Be)),lt=Ye;if(qe<Ye&&(s=[Be[0],Be[1]],lt=qe),Be.length>2){var it=Yv(me,{x:Be[2],y:Be[3]});it<lt&&(s=[Be[2],Be[3]])}}}var He=UL(s,$,a.arrowShapes[f].spacing(t)+g),Je=UL(s,$,a.arrowShapes[f].gap(t)+g);y.startX=Je[0],y.startY=Je[1],y.arrowStartX=He[0],y.arrowStartY=He[1],R&&(!Gr(y.startX)||!Gr(y.startY)||!Gr(y.endX)||!Gr(y.endY)?y.badLine=!0:y.badLine=!1)};sD.getSourceEndpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),e.edgeType==="haystack"?{x:e.haystackPts[0],y:e.haystackPts[1]}:{x:e.arrowStartX,y:e.arrowStartY}};sD.getTargetEndpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),e.edgeType==="haystack"?{x:e.haystackPts[2],y:e.haystackPts[3]}:{x:e.arrowEndX,y:e.arrowEndY}};var rde={};function lNr(t,e,r){for(var n=function(u,d,h,f){return El(u,d,h,f)},i=e._private,a=i.rstyle.bezierPts,s=0;s<t.bezierProjPcts.length;s++){var o=t.bezierProjPcts[s];a.push({x:n(r[0],r[2],r[4],o),y:n(r[1],r[3],r[5],o)})}}rde.storeEdgeProjections=function(t){var e=t._private,r=e.rscratch,n=r.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,n==="multibezier"||n==="bezier"||n==="self"||n==="compound"){e.rstyle.bezierPts=[];for(var i=0;i+5<r.allpts.length;i+=4)lNr(this,t,r.allpts.slice(i,i+6))}else if(n==="segments")for(var a=e.rstyle.linePts=[],i=0;i+1<r.allpts.length;i+=2)a.push({x:r.allpts[i],y:r.allpts[i+1]});else if(n==="haystack"){var s=r.haystackPts;e.rstyle.haystackPts=[{x:s[0],y:s[1]},{x:s[2],y:s[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth};rde.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var Dg={};Dg.recalculateNodeLabelProjection=function(t){var e=t.pstyle("label").strValue;if(!E1(e)){var r,n,i=t._private,a=t.width(),s=t.height(),o=t.padding(),l=t.position(),u=t.pstyle("text-halign").strValue,d=t.pstyle("text-valign").strValue,h=i.rscratch,f=i.rstyle;switch(u){case"left":r=l.x-a/2-o;break;case"left-inside":r=l.x-a/2+o;break;case"right":r=l.x+a/2+o;break;case"right-inside":r=l.x+a/2-o;break;default:r=l.x}switch(d){case"top":n=l.y-s/2-o;break;case"top-inside":n=l.y-s/2+o;break;case"bottom":n=l.y+s/2+o;break;case"bottom-inside":n=l.y+s/2-o;break;default:n=l.y}h.labelX=r,h.labelY=n,f.labelX=r,f.labelY=n,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}};var DVe=function(e,r){var n=Math.atan(r/e);return e===0&&n<0&&(n=n*-1),n},MVe=function(e,r){var n=r.x-e.x,i=r.y-e.y;return DVe(n,i)},cNr=function(e,r,n,i){var a=e3(0,i-.001,1),s=e3(0,i+.001,1),o=rC(e,r,n,a),l=rC(e,r,n,s);return MVe(o,l)};Dg.recalculateEdgeLabelProjections=function(t){var e,r=t._private,n=r.rscratch,i=this,a={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(a.mid||a.source||a.target){e={x:n.midX,y:n.midY};var s=function(h,f,p){Lp(r.rscratch,h,f,p),Lp(r.rstyle,h,f,p)};s("labelX",null,e.x),s("labelY",null,e.y);var o=DVe(n.midDispX,n.midDispY);s("labelAutoAngle",null,o);var l=function(){if(l.cache)return l.cache;for(var h=[],f=0;f+5<n.allpts.length;f+=4){var p={x:n.allpts[f],y:n.allpts[f+1]},g={x:n.allpts[f+2],y:n.allpts[f+3]},m={x:n.allpts[f+4],y:n.allpts[f+5]};h.push({p0:p,p1:g,p2:m,startDist:0,length:0,segments:[]})}var _=r.rstyle.bezierPts,v=i.bezierProjPcts.length;function y(C,x,A,R,I){var L=qb(x,A),F=C.segments[C.segments.length-1],O={p0:x,p1:A,t0:R,t1:I,startDist:F?F.startDist+F.length:0,length:L};C.segments.push(O),C.length+=L}for(var b=0;b<h.length;b++){var E=h[b],S=h[b-1];S&&(E.startDist=S.startDist+S.length),y(E,E.p0,_[b*v],0,i.bezierProjPcts[0]);for(var T=0;T<v-1;T++)y(E,_[b*v+T],_[b*v+T+1],i.bezierProjPcts[T],i.bezierProjPcts[T+1]);y(E,_[b*v+v-1],E.p2,i.bezierProjPcts[v-1],1)}return l.cache=h},u=function(h){var f,p=h==="source";if(a[h]){var g=t.pstyle(h+"-text-offset").pfValue;switch(n.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var m=l(),_,v=0,y=0,b=0;b<m.length;b++){for(var E=m[p?b:m.length-1-b],S=0;S<E.segments.length;S++){var T=E.segments[p?S:E.segments.length-1-S],C=b===m.length-1&&S===E.segments.length-1;if(v=y,y+=T.length,y>=g||C){_={cp:E,segment:T};break}}if(_)break}var x=_.cp,A=_.segment,R=(g-v)/A.length,I=A.t1-A.t0,L=p?A.t0+I*R:A.t1-I*R;L=e3(0,L,1),e=rC(x.p0,x.p1,x.p2,L),f=cNr(x.p0,x.p1,x.p2,L);break}case"straight":case"segments":case"haystack":{for(var F=0,O,D,M,P,N=n.allpts.length,$=0;$+3<N&&(p?(M={x:n.allpts[$],y:n.allpts[$+1]},P={x:n.allpts[$+2],y:n.allpts[$+3]}):(M={x:n.allpts[N-2-$],y:n.allpts[N-1-$]},P={x:n.allpts[N-4-$],y:n.allpts[N-3-$]}),O=qb(M,P),D=F,F+=O,!(F>=g));$+=2);var U=g-D,B=U/O;B=e3(0,B,1),e=IAr(M,P,B),f=MVe(M,P);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,f)}};u("source"),u("target"),this.applyLabelDimensions(t)}};Dg.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};Dg.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),i=zb(n,t._private.labelDimsKey);if(Jc(r.rscratch,"prefixedLabelDimsKey",e)!==i){Lp(r.rscratch,"prefixedLabelDimsKey",e,i);var a=this.calculateLabelDimensions(t,n),s=t.pstyle("line-height").pfValue,o=t.pstyle("font-size").pfValue,l=t.pstyle("text-wrap").strValue,u=Jc(r.rscratch,"labelWrapCachedLines",e)||[],d=l!=="wrap"?1:Math.max(u.length,1),h=o*s,f=a.width,p=a.height+(d-1)*(s-1)*o;Lp(r.rstyle,"labelWidth",e,f),Lp(r.rscratch,"labelWidth",e,f),Lp(r.rstyle,"labelHeight",e,p),Lp(r.rscratch,"labelHeight",e,p),Lp(r.rscratch,"labelLineHeight",e,h),Lp(r.rscratch,"labelActualDescent",e,a.labelActualDescent)}};Dg.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",i=t.pstyle(n+"label").strValue,a=t.pstyle("text-transform").value,s=function(z,G){return G?(Lp(r.rscratch,z,e,G),G):Jc(r.rscratch,z,e)};if(!i)return"";a=="none"||(a=="uppercase"?i=i.toUpperCase():a=="lowercase"&&(i=i.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var l=s("labelKey");if(l!=null&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var u="​",d=i.split(`
`),h=t.pstyle("text-max-width").pfValue,f=t.pstyle("text-overflow-wrap").value,p=f==="anywhere",g=[],m=/[\s\u200b]+|$/g,_=0;_<d.length;_++){var v=d[_],y=this.calculateLabelDimensions(t,v),b=y.width;if(p){var E=v.split("").join(u);v=E}if(b>h){var S=v.matchAll(m),T="",C=0,x=ed(S),A;try{for(x.s();!(A=x.n()).done;){var R=A.value,I=R[0],L=v.substring(C,R.index);C=R.index+I.length;var F=T.length===0?L:T+L+I,O=this.calculateLabelDimensions(t,F),D=O.width;D<=h?T+=L+I:(T&&g.push(T),T=L+I)}}catch(V){x.e(V)}finally{x.f()}T.match(/^[\s\u200b]+$/)||g.push(T)}else g.push(v)}s("labelWrapCachedLines",g),i=s("labelWrapCachedText",g.join(`
`)),s("labelWrapKey",l)}else if(o==="ellipsis"){var M=t.pstyle("text-max-width").pfValue,P="",N="…",$=!1;if(this.calculateLabelDimensions(t,i).width<M)return i;for(var U=0;U<i.length;U++){var B=this.calculateLabelDimensions(t,P+i[U]+N).width;if(B>M)break;P+=i[U],U===i.length-1&&($=!0)}return $||(P+=N),P}return i};Dg.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;return e==="auto"?t.isNode()?XOr(r):"center":e};Dg.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window(),i=n.document,a=0,s=t.pstyle("font-style").strValue,o=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,u=t.pstyle("font-weight").strValue,d=t.pstyle("text-metrics").strValue||"font",h=this.labelCalcCanvas,f=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=i.createElement("canvas"),f=this.labelCalcCanvasContext=h.getContext("2d");var p=h.style;p.position="absolute",p.left="-9999px",p.top="-9999px",p.zIndex="-1",p.visibility="hidden",p.pointerEvents="none"}f.font="".concat(s," ").concat(u," ").concat(o,"px ").concat(l);for(var g=0,m=0,_=e.split(`
`),v=_.length,y=0,b=0,E=0;E<v;E++){var S=_[E],T=f.measureText(S),C=Math.ceil(T.width),x=o;d==="glyph"&&(E===0&&(b=T.actualBoundingBoxAscent),E===v-1&&(y=T.actualBoundingBoxDescent)),g=Math.max(C,g),m+=x}return d==="glyph"&&(m-=o-b-y),g+=a,m+=a,{width:g,height:m,labelActualAscent:b,labelActualDescent:y}};Dg.calculateLabelAngle=function(t,e){var r=t._private,n=r.rscratch,i=t.isEdge(),a=e?e+"-":"",s=t.pstyle(a+"text-rotation"),o=s.strValue;return o==="none"?0:i&&o==="autorotate"?n.labelAutoAngle:o==="autorotate"?0:s.pfValue};Dg.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),n=t._private,i=n.rscratch;i.labelAngle=e.calculateLabelAngle(t),r&&(i.sourceLabelAngle=e.calculateLabelAngle(t,"source"),i.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var LVe={},IRe=28,NRe=!1;LVe.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<IRe||t.height()<IRe))return NRe||(Pa("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),NRe=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var n=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(n).name}return r};var I$={};I$.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,n=function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l<s.length;l++){var u=s[l],d=u._private,h=d.rstyle;h.clean=!1,h.cleanConnected=!1}};r.binder(t).on("bounds.* dirty.*",function(s){var o=s.target;n(o)}).on("style.* background.*",function(s){var o=s.target;n(o,!1)});var i=function(s){if(s){var o=r.onUpdateEleCalcsFns;e.cleanStyle();for(var l=0;l<e.length;l++){var u=e[l],d=u._private.rstyle;u.isNode()&&!d.cleanConnected&&(n(u.connectedEdges()),d.cleanConnected=!0)}if(o)for(var h=0;h<o.length;h++){var f=o[h];f(s,e)}r.recalculateRenderedStyle(e),e=t.collection()}};r.flushRenderedStyleQueue=function(){i(!0)},r.beforeRender(i,r.beforeRenderPriorities.eleCalcs)};I$.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)};I$.recalculateRenderedStyle=function(t,e){var r=function(E){return E._private.rstyle.cleanConnected};if(t.length!==0){var n=[],i=[];if(!this.destroyed){e===void 0&&(e=!0);for(var a=0;a<t.length;a++){var s=t[a],o=s._private,l=o.rstyle;s.isEdge()&&(!r(s.source())||!r(s.target()))&&(l.clean=!1),s.isEdge()&&s.isBundledBezier()&&s.parallelEdges().some(function(b){return!b._private.rstyle.clean&&b.isBundledBezier()})&&(l.clean=!1),!(e&&l.clean||s.removed())&&s.pstyle("display").value!=="none"&&(o.group==="nodes"?i.push(s):n.push(s),l.clean=!0)}for(var u=0;u<i.length;u++){var d=i[u],h=d._private,f=h.rstyle,p=d.position();this.recalculateNodeLabelProjection(d),f.nodeX=p.x,f.nodeY=p.y,f.nodeW=d.pstyle("width").pfValue,f.nodeH=d.pstyle("height").pfValue}this.recalculateEdgeProjections(n);for(var g=0;g<n.length;g++){var m=n[g],_=m._private,v=_.rstyle,y=_.rscratch;v.srcX=y.arrowStartX,v.srcY=y.arrowStartY,v.tgtX=y.arrowEndX,v.tgtY=y.arrowEndY,v.midX=y.midX,v.midY=y.midY,v.labelAngle=y.labelAngle,v.sourceLabelAngle=y.sourceLabelAngle,v.targetLabelAngle=y.targetLabelAngle}}}};var N$={};N$.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var n=t[r],i=n._private.rscratch;n.grabbed()&&!n.isParent()?e.push(n):i.inDragLayer?t.drag.push(n):t.nondrag.push(n)}for(var r=0;r<e.length;r++){var n=e[r];t.drag.push(n)}}};N$.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null};N$.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(mVe),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};var PVe={};[SE,E8,Lc,sD,rde,Dg,LVe,I$,N$].forEach(function(t){Yn(PVe,t)});var FVe={};FVe.getCachedImage=function(t,e,r){var n=this,i=n.imageCache=n.imageCache||{},a=i[t];if(a)return a.image.complete||a.image.addEventListener("load",r),a.image;a=i[t]=i[t]||{};var s=a.image=new Image;s.addEventListener("load",r),s.addEventListener("error",function(){s.error=!0});var o="data:",l=t.substring(0,o.length).toLowerCase()===o;return l||(e=e==="null"?null:e,s.crossOrigin=e),s.src=t,s};var BVe=function(e,r){var n=e[0];!n||n._private.grabbed===r||(n._private.grabbed=r,e.updateStyle(!1))},uNr=function(e){BVe(e,!0)},dNr=function(e){BVe(e,!1)},FR={};FR.registerBinding=function(t,e,r,n){var i=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(t)){for(var a=[],s=0;s<t.length;s++){var o=t[s];if(o!==void 0){var l=this.binder(o);a.push(l.on.apply(l,i))}}return a}var l=this.binder(t);return l.on.apply(l,i)};FR.binder=function(t){var e=this,r=e.cy.window(),n=t===r||t===r.document||t===r.document.body||bxr(t);if(e.supportsPassiveEvents==null){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){return i=!0,!0}});r.addEventListener("test",null,a)}catch{}e.supportsPassiveEvents=i}var s=function(l,u,d){var h=Array.prototype.slice.call(arguments);return n&&e.supportsPassiveEvents&&(h[2]={capture:d??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:h}),(t.addEventListener||t.on).apply(t,h),this};return{on:s,addEventListener:s,addListener:s,bind:s}};FR.nodeIsDraggable=function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()};FR.nodeIsGrabbable=function(t){return this.nodeIsDraggable(t)&&t.interactive()};FR.load=function(){var t=this,e=t.cy.window(),r=function(ce){return ce.selected()},n=function(ce){var Te=ce.getRootNode();if(Te&&Te.nodeType===11&&Te.host!==void 0)return Te},i=function(ce,Te,fe,Be){ce==null&&(ce=t.cy);for(var me=0;me<Te.length;me++){var Ye=Te[me];ce.emit({originalEvent:fe,type:Ye,position:Be})}},a=function(ce){return ce.shiftKey||ce.metaKey||ce.ctrlKey},s=function(ce,Te){var fe=!0;if(t.cy.hasCompoundNodes()&&ce&&ce.pannable())for(var Be=0;Te&&Be<Te.length;Be++){var ce=Te[Be];if(ce.isNode()&&ce.isParent()&&!ce.pannable()){fe=!1;break}}else fe=!0;return fe},o=function(ce){ce[0]._private.rscratch.inDragLayer=!0},l=function(ce){ce[0]._private.rscratch.inDragLayer=!1},u=function(ce){ce[0]._private.rscratch.isGrabTarget=!0},d=function(ce){ce[0]._private.rscratch.isGrabTarget=!1},h=function(ce,Te){var fe=Te.addToList,Be=fe.has(ce);!Be&&ce.grabbable()&&!ce.locked()&&(fe.merge(ce),uNr(ce))},f=function(ce,Te){if(ce.cy().hasCompoundNodes()&&!(Te.inDragLayer==null&&Te.addToList==null)){var fe=ce.descendants();Te.inDragLayer&&(fe.forEach(o),fe.connectedEdges().forEach(o)),Te.addToList&&h(fe,Te)}},p=function(ce,Te){Te=Te||{};var fe=ce.cy().hasCompoundNodes();Te.inDragLayer&&(ce.forEach(o),ce.neighborhood().stdFilter(function(Be){return!fe||Be.isEdge()}).forEach(o)),Te.addToList&&ce.forEach(function(Be){h(Be,Te)}),f(ce,Te),_(ce,{inDragLayer:Te.inDragLayer}),t.updateCachedGrabbedEles()},g=p,m=function(ce){ce&&(t.getCachedZSortedEles().forEach(function(Te){dNr(Te),l(Te),d(Te)}),t.updateCachedGrabbedEles())},_=function(ce,Te){if(!(Te.inDragLayer==null&&Te.addToList==null)&&ce.cy().hasCompoundNodes()){var fe=ce.ancestors().orphans();if(!fe.same(ce)){var Be=fe.descendants().spawnSelf().merge(fe).unmerge(ce).unmerge(ce.descendants()),me=Be.connectedEdges();Te.inDragLayer&&(me.forEach(o),Be.forEach(o)),Te.addToList&&Be.forEach(function(Ye){h(Ye,Te)})}}},v=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},y=typeof MutationObserver<"u",b=typeof ResizeObserver<"u";y?(t.removeObserver=new MutationObserver(function(we){for(var ce=0;ce<we.length;ce++){var Te=we[ce],fe=Te.removedNodes;if(fe)for(var Be=0;Be<fe.length;Be++){var me=fe[Be];if(me===t.container){t.destroy();break}}}}),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",function(we){t.destroy()});var E=rD(function(){t.cy.resize()},100);y&&(t.styleObserver=new MutationObserver(E),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(e,"resize",E),b&&(t.resizeObserver=new ResizeObserver(E),t.resizeObserver.observe(t.container));var S=function(ce,Te){for(;ce!=null;)Te(ce),ce=ce.parentNode},T=function(){t.invalidateContainerClientCoordsCache()};S(t.container,function(we){t.registerBinding(we,"transitionend",T),t.registerBinding(we,"animationend",T),t.registerBinding(we,"scroll",T)}),t.registerBinding(t.container,"contextmenu",function(we){we.preventDefault()});var C=function(){return t.selection[4]!==0},x=function(ce){for(var Te=t.findContainerClientCoords(),fe=Te[0],Be=Te[1],me=Te[2],Ye=Te[3],qe=ce.touches?ce.touches:[ce],lt=!1,it=0;it<qe.length;it++){var He=qe[it];if(fe<=He.clientX&&He.clientX<=fe+me&&Be<=He.clientY&&He.clientY<=Be+Ye){lt=!0;break}}if(!lt)return!1;for(var Je=t.container,ht=ce.target,rt=ht.parentNode,$e=!1;rt;){if(rt===Je){$e=!0;break}rt=rt.parentNode}return!!$e};t.registerBinding(t.container,"mousedown",function(ce){if(x(ce)&&!(t.hoverData.which===1&&ce.which!==1)){ce.preventDefault(),v(),t.hoverData.capture=!0,t.hoverData.which=ce.which;var Te=t.cy,fe=[ce.clientX,ce.clientY],Be=t.projectIntoViewport(fe[0],fe[1]),me=t.selection,Ye=t.findNearestElements(Be[0],Be[1],!0,!1),qe=Ye[0],lt=t.dragData.possibleDragElements;t.hoverData.mdownPos=Be,t.hoverData.mdownGPos=fe;var it=function(xe){return{originalEvent:ce,type:xe,position:{x:Be[0],y:Be[1]}}},He=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout(function(){if(!t.hoverData.tapholdCancelled){var xe=t.hoverData.down;xe?xe.emit(it("taphold")):Te.emit(it("taphold"))}},t.tapholdDuration)};if(ce.which==3){t.hoverData.cxtStarted=!0;var Je={originalEvent:ce,type:"cxttapstart",position:{x:Be[0],y:Be[1]}};qe?(qe.activate(),qe.emit(Je),t.hoverData.down=qe):Te.emit(Je),t.hoverData.downTime=new Date().getTime(),t.hoverData.cxtDragged=!1}else if(ce.which==1){qe&&qe.activate();{if(qe!=null&&t.nodeIsGrabbable(qe)){var ht=function(xe){xe.emit(it("grab"))};if(u(qe),!qe.selected())lt=t.dragData.possibleDragElements=Te.collection(),g(qe,{addToList:lt}),qe.emit(it("grabon")).emit(it("grab"));else{lt=t.dragData.possibleDragElements=Te.collection();var rt=Te.$(function($e){return $e.isNode()&&$e.selected()&&t.nodeIsGrabbable($e)});p(rt,{addToList:lt}),qe.emit(it("grabon")),rt.forEach(ht)}t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=qe,t.hoverData.downs=Ye,t.hoverData.downTime=new Date().getTime()}i(qe,["mousedown","tapstart","vmousedown"],ce,{x:Be[0],y:Be[1]}),qe==null?(me[4]=1,t.data.bgActivePosistion={x:Be[0],y:Be[1]},t.redrawHint("select",!0),t.redraw()):qe.pannable()&&(me[4]=1),He()}me[0]=me[2]=Be[0],me[1]=me[3]=Be[1]}},!1);var A=n(t.container);t.registerBinding([e,A],"mousemove",function(ce){var Te=t.hoverData.capture;if(!(!Te&&!x(ce))){var fe=!1,Be=t.cy,me=Be.zoom(),Ye=[ce.clientX,ce.clientY],qe=t.projectIntoViewport(Ye[0],Ye[1]),lt=t.hoverData.mdownPos,it=t.hoverData.mdownGPos,He=t.selection,Je=null;!t.hoverData.draggingEles&&!t.hoverData.dragging&&!t.hoverData.selecting&&(Je=t.findNearestElement(qe[0],qe[1],!0,!1));var ht=t.hoverData.last,rt=t.hoverData.down,$e=[qe[0]-He[2],qe[1]-He[3]],xe=t.dragData.possibleDragElements,pt;if(it){var Ve=Ye[0]-it[0],Ut=Ve*Ve,kt=Ye[1]-it[1],gt=kt*kt,Ct=Ut+gt;t.hoverData.isOverThresholdDrag=pt=Ct>=t.desktopTapThreshold2}var mt=a(ce);pt&&(t.hoverData.tapholdCancelled=!0);var qt=function(){var Sr=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Sr.length===0?(Sr.push($e[0]),Sr.push($e[1])):(Sr[0]+=$e[0],Sr[1]+=$e[1])};fe=!0,i(Je,["mousemove","vmousemove","tapdrag"],ce,{x:qe[0],y:qe[1]});var De=function(Sr){return{originalEvent:ce,type:Sr,position:{x:qe[0],y:qe[1]}}},pr=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||Be.emit(De("boxstart")),He[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(pt){var or=De("cxtdrag");rt?rt.emit(or):Be.emit(or),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Je!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit(De("cxtdragout")),t.hoverData.cxtOver=Je,Je&&Je.emit(De("cxtdragover")))}}else if(t.hoverData.dragging){if(fe=!0,Be.panningEnabled()&&Be.userPanningEnabled()){var ir;if(t.hoverData.justStartedPan){var gr=t.hoverData.mdownPos;ir={x:(qe[0]-gr[0])*me,y:(qe[1]-gr[1])*me},t.hoverData.justStartedPan=!1}else ir={x:$e[0]*me,y:$e[1]*me};Be.panBy(ir),Be.emit(De("dragpan")),t.hoverData.dragged=!0}qe=t.projectIntoViewport(ce.clientX,ce.clientY)}else if(He[4]==1&&(rt==null||rt.pannable())){if(pt){if(!t.hoverData.dragging&&Be.boxSelectionEnabled()&&(mt||!Be.panningEnabled()||!Be.userPanningEnabled()))pr();else if(!t.hoverData.selecting&&Be.panningEnabled()&&Be.userPanningEnabled()){var dn=s(rt,t.hoverData.downs);dn&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,He[4]=0,t.data.bgActivePosistion=bT(lt),t.redrawHint("select",!0),t.redraw())}rt&&rt.pannable()&&rt.active()&&rt.unactivate()}}else{if(rt&&rt.pannable()&&rt.active()&&rt.unactivate(),(!rt||!rt.grabbed())&&Je!=ht&&(ht&&i(ht,["mouseout","tapdragout"],ce,{x:qe[0],y:qe[1]}),Je&&i(Je,["mouseover","tapdragover"],ce,{x:qe[0],y:qe[1]}),t.hoverData.last=Je),rt)if(pt){if(Be.boxSelectionEnabled()&&mt)rt&&rt.grabbed()&&(m(xe),rt.emit(De("freeon")),xe.emit(De("free")),t.dragData.didDrag&&(rt.emit(De("dragfreeon")),xe.emit(De("dragfree")))),pr();else if(rt&&rt.grabbed()&&t.nodeIsDraggable(rt)){var st=!t.dragData.didDrag;st&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||p(xe,{inDragLayer:!0});var jt={x:0,y:0};if(Gr($e[0])&&Gr($e[1])&&(jt.x+=$e[0],jt.y+=$e[1],st)){var nr=t.hoverData.dragDelta;nr&&Gr(nr[0])&&Gr(nr[1])&&(jt.x+=nr[0],jt.y+=nr[1])}t.hoverData.draggingEles=!0,xe.silentShift(jt).emit(De("position")).emit(De("drag")),t.redrawHint("drag",!0),t.redraw()}}else qt();fe=!0}if(He[2]=qe[0],He[3]=qe[1],fe)return ce.stopPropagation&&ce.stopPropagation(),ce.preventDefault&&ce.preventDefault(),!1}},!1);var R,I,L;t.registerBinding(e,"mouseup",function(ce){if(!(t.hoverData.which===1&&ce.which!==1&&t.hoverData.capture)){var Te=t.hoverData.capture;if(Te){t.hoverData.capture=!1;var fe=t.cy,Be=t.projectIntoViewport(ce.clientX,ce.clientY),me=t.selection,Ye=t.findNearestElement(Be[0],Be[1],!0,!1),qe=t.dragData.possibleDragElements,lt=t.hoverData.down,it=a(ce);t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,lt&&lt.unactivate();var He=function(Ve){return{originalEvent:ce,type:Ve,position:{x:Be[0],y:Be[1]}}};if(t.hoverData.which===3){var Je=He("cxttapend");if(lt?lt.emit(Je):fe.emit(Je),!t.hoverData.cxtDragged){var ht=He("cxttap");lt?lt.emit(ht):fe.emit(ht)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(i(Ye,["mouseup","tapend","vmouseup"],ce,{x:Be[0],y:Be[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(i(lt,["click","tap","vclick"],ce,{x:Be[0],y:Be[1]}),I=!1,ce.timeStamp-L<=fe.multiClickDebounceTime()?(R&&clearTimeout(R),I=!0,L=null,i(lt,["dblclick","dbltap","vdblclick"],ce,{x:Be[0],y:Be[1]})):(R=setTimeout(function(){I||i(lt,["oneclick","onetap","voneclick"],ce,{x:Be[0],y:Be[1]})},fe.multiClickDebounceTime()),L=ce.timeStamp)),lt==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!a(ce)&&(fe.$(r).unselect(["tapunselect"]),qe.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=qe=fe.collection()),Ye==lt&&!t.dragData.didDrag&&!t.hoverData.selecting&&Ye!=null&&Ye._private.selectable&&(t.hoverData.dragging||(fe.selectionType()==="additive"||it?Ye.selected()?Ye.unselect(["tapunselect"]):Ye.select(["tapselect"]):it||(fe.$(r).unmerge(Ye).unselect(["tapunselect"]),Ye.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var rt=fe.collection(t.getAllInBox(me[0],me[1],me[2],me[3]));t.redrawHint("select",!0),rt.length>0&&t.redrawHint("eles",!0),fe.emit(He("boxend"));var $e=function(Ve){return Ve.selectable()&&!Ve.selected()};fe.selectionType()==="additive"||it||fe.$(r).unmerge(rt).unselect(),rt.emit(He("box")).stdFilter($e).select().emit(He("boxselect")),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!me[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var xe=lt&&lt.grabbed();m(qe),xe&&(lt.emit(He("freeon")),qe.emit(He("free")),t.dragData.didDrag&&(lt.emit(He("dragfreeon")),qe.emit(He("dragfree"))))}}me[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}}},!1);var F=[],O=4,D,M=1e5,P=function(ce,Te){for(var fe=0;fe<ce.length;fe++)if(ce[fe]%Te!==0)return!1;return!0},N=function(ce){for(var Te=Math.abs(ce[0]),fe=1;fe<ce.length;fe++)if(Math.abs(ce[fe])!==Te)return!1;return!0},$=function(ce){var Te=!1,fe=ce.deltaY;if(fe==null&&(ce.wheelDeltaY!=null?fe=ce.wheelDeltaY/4:ce.wheelDelta!=null&&(fe=ce.wheelDelta/4)),fe!==0){if(D==null)if(F.length>=O){var Be=F;if(D=P(Be,5),!D){var me=Math.abs(Be[0]);D=N(Be)&&me>5}if(D)for(var Ye=0;Ye<Be.length;Ye++)M=Math.min(Math.abs(Be[Ye]),M)}else F.push(fe),Te=!0;else D&&(M=Math.min(Math.abs(fe),M));if(!t.scrollingPage){var qe=t.cy,lt=qe.zoom(),it=qe.pan(),He=t.projectIntoViewport(ce.clientX,ce.clientY),Je=[He[0]*lt+it.x,He[1]*lt+it.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||C()){ce.preventDefault();return}if(qe.panningEnabled()&&qe.userPanningEnabled()&&qe.zoomingEnabled()&&qe.userZoomingEnabled()){ce.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var ht;Te&&Math.abs(fe)>5&&(fe=zue(fe)*5),ht=fe/-250,D&&(ht/=M,ht*=3),ht=ht*t.wheelSensitivity;var rt=ce.deltaMode===1;rt&&(ht*=33);var $e=qe.zoom()*Math.pow(10,ht);ce.type==="gesturechange"&&($e=t.gestureStartZoom*ce.scale),qe.zoom({level:$e,renderedPosition:{x:Je[0],y:Je[1]}}),qe.emit({type:ce.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:ce,position:{x:He[0],y:He[1]}})}}}};t.registerBinding(t.container,"wheel",$,!0),t.registerBinding(e,"scroll",function(ce){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(ce){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||ce.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(we){t.hasTouchStarted||$(we)},!0),t.registerBinding(t.container,"mouseout",function(ce){var Te=t.projectIntoViewport(ce.clientX,ce.clientY);t.cy.emit({originalEvent:ce,type:"mouseout",position:{x:Te[0],y:Te[1]}})},!1),t.registerBinding(t.container,"mouseover",function(ce){var Te=t.projectIntoViewport(ce.clientX,ce.clientY);t.cy.emit({originalEvent:ce,type:"mouseover",position:{x:Te[0],y:Te[1]}})},!1);var U,B,V,z,G,Y,W,Q,ie,Z,re,K,j,se=function(ce,Te,fe,Be){return Math.sqrt((fe-ce)*(fe-ce)+(Be-Te)*(Be-Te))},le=function(ce,Te,fe,Be){return(fe-ce)*(fe-ce)+(Be-Te)*(Be-Te)},_e;t.registerBinding(t.container,"touchstart",_e=function(ce){if(t.hasTouchStarted=!0,!!x(ce)){v(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var Te=t.cy,fe=t.touchData.now,Be=t.touchData.earlier;if(ce.touches[0]){var me=t.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);fe[0]=me[0],fe[1]=me[1]}if(ce.touches[1]){var me=t.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);fe[2]=me[0],fe[3]=me[1]}if(ce.touches[2]){var me=t.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);fe[4]=me[0],fe[5]=me[1]}var Ye=function(mt){return{originalEvent:ce,type:mt,position:{x:fe[0],y:fe[1]}}};if(ce.touches[1]){t.touchData.singleTouchMoved=!0,m(t.dragData.touchDragEles);var qe=t.findContainerClientCoords();ie=qe[0],Z=qe[1],re=qe[2],K=qe[3],U=ce.touches[0].clientX-ie,B=ce.touches[0].clientY-Z,V=ce.touches[1].clientX-ie,z=ce.touches[1].clientY-Z,j=0<=U&&U<=re&&0<=V&&V<=re&&0<=B&&B<=K&&0<=z&&z<=K;var lt=Te.pan(),it=Te.zoom();G=se(U,B,V,z),Y=le(U,B,V,z),W=[(U+V)/2,(B+z)/2],Q=[(W[0]-lt.x)/it,(W[1]-lt.y)/it];var He=200,Je=He*He;if(Y<Je&&!ce.touches[2]){var ht=t.findNearestElement(fe[0],fe[1],!0,!0),rt=t.findNearestElement(fe[2],fe[3],!0,!0);ht&&ht.isNode()?(ht.activate().emit(Ye("cxttapstart")),t.touchData.start=ht):rt&&rt.isNode()?(rt.activate().emit(Ye("cxttapstart")),t.touchData.start=rt):Te.emit(Ye("cxttapstart")),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,t.redraw();return}}if(ce.touches[2])Te.boxSelectionEnabled()&&ce.preventDefault();else if(!ce.touches[1]){if(ce.touches[0]){var $e=t.findNearestElements(fe[0],fe[1],!0,!0),xe=$e[0];if(xe!=null&&(xe.activate(),t.touchData.start=xe,t.touchData.starts=$e,t.nodeIsGrabbable(xe))){var pt=t.dragData.touchDragEles=Te.collection(),Ve=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),xe.selected()?(Ve=Te.$(function(Ct){return Ct.selected()&&t.nodeIsGrabbable(Ct)}),p(Ve,{addToList:pt})):g(xe,{addToList:pt}),u(xe),xe.emit(Ye("grabon")),Ve?Ve.forEach(function(Ct){Ct.emit(Ye("grab"))}):xe.emit(Ye("grab"))}i(xe,["touchstart","tapstart","vmousedown"],ce,{x:fe[0],y:fe[1]}),xe==null&&(t.data.bgActivePosistion={x:me[0],y:me[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){t.touchData.singleTouchMoved===!1&&!t.pinching&&!t.touchData.selecting&&i(t.touchData.start,["taphold"],ce,{x:fe[0],y:fe[1]})},t.tapholdDuration)}}if(ce.touches.length>=1){for(var Ut=t.touchData.startPosition=[null,null,null,null,null,null],kt=0;kt<fe.length;kt++)Ut[kt]=Be[kt]=fe[kt];var gt=ce.touches[0];t.touchData.startGPosition=[gt.clientX,gt.clientY]}}},!1);var ye;t.registerBinding(e,"touchmove",ye=function(ce){var Te=t.touchData.capture;if(!(!Te&&!x(ce))){var fe=t.selection,Be=t.cy,me=t.touchData.now,Ye=t.touchData.earlier,qe=Be.zoom();if(ce.touches[0]){var lt=t.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);me[0]=lt[0],me[1]=lt[1]}if(ce.touches[1]){var lt=t.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);me[2]=lt[0],me[3]=lt[1]}if(ce.touches[2]){var lt=t.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);me[4]=lt[0],me[5]=lt[1]}var it=function(zn){return{originalEvent:ce,type:zn,position:{x:me[0],y:me[1]}}},He=t.touchData.startGPosition,Je;if(Te&&ce.touches[0]&&He){for(var ht=[],rt=0;rt<me.length;rt++)ht[rt]=me[rt]-Ye[rt];var $e=ce.touches[0].clientX-He[0],xe=$e*$e,pt=ce.touches[0].clientY-He[1],Ve=pt*pt,Ut=xe+Ve;Je=Ut>=t.touchTapThreshold2}if(Te&&t.touchData.cxt){ce.preventDefault();var kt=ce.touches[0].clientX-ie,gt=ce.touches[0].clientY-Z,Ct=ce.touches[1].clientX-ie,mt=ce.touches[1].clientY-Z,qt=le(kt,gt,Ct,mt),De=qt/Y,pr=150,or=pr*pr,ir=1.5,gr=ir*ir;if(De>=gr||qt>=or){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var dn=it("cxttapend");t.touchData.start?(t.touchData.start.unactivate().emit(dn),t.touchData.start=null):Be.emit(dn)}}if(Te&&t.touchData.cxt){var dn=it("cxtdrag");t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(dn):Be.emit(dn),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var st=t.findNearestElement(me[0],me[1],!0,!0);(!t.touchData.cxtOver||st!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit(it("cxtdragout")),t.touchData.cxtOver=st,st&&st.emit(it("cxtdragover")))}else if(Te&&ce.touches[2]&&Be.boxSelectionEnabled())ce.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||Be.emit(it("boxstart")),t.touchData.selecting=!0,t.touchData.didSelect=!0,fe[4]=1,!fe||fe.length===0||fe[0]===void 0?(fe[0]=(me[0]+me[2]+me[4])/3,fe[1]=(me[1]+me[3]+me[5])/3,fe[2]=(me[0]+me[2]+me[4])/3+1,fe[3]=(me[1]+me[3]+me[5])/3+1):(fe[2]=(me[0]+me[2]+me[4])/3,fe[3]=(me[1]+me[3]+me[5])/3),t.redrawHint("select",!0),t.redraw();else if(Te&&ce.touches[1]&&!t.touchData.didSelect&&Be.zoomingEnabled()&&Be.panningEnabled()&&Be.userZoomingEnabled()&&Be.userPanningEnabled()){ce.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var jt=t.dragData.touchDragEles;if(jt){t.redrawHint("drag",!0);for(var nr=0;nr<jt.length;nr++){var vr=jt[nr]._private;vr.grabbed=!1,vr.rscratch.inDragLayer=!1}}var Sr=t.touchData.start,kt=ce.touches[0].clientX-ie,gt=ce.touches[0].clientY-Z,Ct=ce.touches[1].clientX-ie,mt=ce.touches[1].clientY-Z,yn=se(kt,gt,Ct,mt),ln=yn/G;if(j){var xn=kt-U,nn=gt-B,Zr=Ct-V,Jr=mt-z,Jn=(xn+Zr)/2,_a=(nn+Jr)/2,si=Be.zoom(),Ta=si*ln,Vr=Be.pan(),Ze=Q[0]*si+Vr.x,Ot=Q[1]*si+Vr.y,Mt={x:-Ta/si*(Ze-Vr.x-Jn)+Ze,y:-Ta/si*(Ot-Vr.y-_a)+Ot};if(Sr&&Sr.active()){var jt=t.dragData.touchDragEles;m(jt),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Sr.unactivate().emit(it("freeon")),jt.emit(it("free")),t.dragData.didDrag&&(Sr.emit(it("dragfreeon")),jt.emit(it("dragfree")))}Be.viewport({zoom:Ta,pan:Mt,cancelOnFailedZoom:!0}),Be.emit(it("pinchzoom")),G=yn,U=kt,B=gt,V=Ct,z=mt,t.pinching=!0}if(ce.touches[0]){var lt=t.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);me[0]=lt[0],me[1]=lt[1]}if(ce.touches[1]){var lt=t.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);me[2]=lt[0],me[3]=lt[1]}if(ce.touches[2]){var lt=t.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);me[4]=lt[0],me[5]=lt[1]}}else if(ce.touches[0]&&!t.touchData.didSelect){var Yt=t.touchData.start,er=t.touchData.last,st;if(!t.hoverData.draggingEles&&!t.swipePanning&&(st=t.findNearestElement(me[0],me[1],!0,!0)),Te&&Yt!=null&&ce.preventDefault(),Te&&Yt!=null&&t.nodeIsDraggable(Yt))if(Je){var jt=t.dragData.touchDragEles,Ht=!t.dragData.didDrag;Ht&&p(jt,{inDragLayer:!0}),t.dragData.didDrag=!0;var Hr={x:0,y:0};if(Gr(ht[0])&&Gr(ht[1])&&(Hr.x+=ht[0],Hr.y+=ht[1],Ht)){t.redrawHint("eles",!0);var ot=t.touchData.dragDelta;ot&&Gr(ot[0])&&Gr(ot[1])&&(Hr.x+=ot[0],Hr.y+=ot[1])}t.hoverData.draggingEles=!0,jt.silentShift(Hr).emit(it("position")).emit(it("drag")),t.redrawHint("drag",!0),t.touchData.startPosition[0]==Ye[0]&&t.touchData.startPosition[1]==Ye[1]&&t.redrawHint("eles",!0),t.redraw()}else{var ot=t.touchData.dragDelta=t.touchData.dragDelta||[];ot.length===0?(ot.push(ht[0]),ot.push(ht[1])):(ot[0]+=ht[0],ot[1]+=ht[1])}if(i(Yt||st,["touchmove","tapdrag","vmousemove"],ce,{x:me[0],y:me[1]}),(!Yt||!Yt.grabbed())&&st!=er&&(er&&er.emit(it("tapdragout")),st&&st.emit(it("tapdragover"))),t.touchData.last=st,Te)for(var nr=0;nr<me.length;nr++)me[nr]&&t.touchData.startPosition[nr]&&Je&&(t.touchData.singleTouchMoved=!0);if(Te&&(Yt==null||Yt.pannable())&&Be.panningEnabled()&&Be.userPanningEnabled()){var Li=s(Yt,t.touchData.starts);Li&&(ce.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=bT(t.touchData.startPosition)),t.swipePanning?(Be.panBy({x:ht[0]*qe,y:ht[1]*qe}),Be.emit(it("dragpan"))):Je&&(t.swipePanning=!0,Be.panBy({x:$e*qe,y:pt*qe}),Be.emit(it("dragpan")),Yt&&(Yt.unactivate(),t.redrawHint("select",!0),t.touchData.start=null)));var lt=t.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);me[0]=lt[0],me[1]=lt[1]}}for(var rt=0;rt<me.length;rt++)Ye[rt]=me[rt];Te&&ce.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Ue;t.registerBinding(e,"touchcancel",Ue=function(ce){var Te=t.touchData.start;t.touchData.capture=!1,Te&&Te.unactivate()});var Se,be,ke,Ae;if(t.registerBinding(e,"touchend",Se=function(ce){var Te=t.touchData.start,fe=t.touchData.capture;if(fe)ce.touches.length===0&&(t.touchData.capture=!1),ce.preventDefault();else return;var Be=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var me=t.cy,Ye=me.zoom(),qe=t.touchData.now,lt=t.touchData.earlier;if(ce.touches[0]){var it=t.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);qe[0]=it[0],qe[1]=it[1]}if(ce.touches[1]){var it=t.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);qe[2]=it[0],qe[3]=it[1]}if(ce.touches[2]){var it=t.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);qe[4]=it[0],qe[5]=it[1]}var He=function(or){return{originalEvent:ce,type:or,position:{x:qe[0],y:qe[1]}}};Te&&Te.unactivate();var Je;if(t.touchData.cxt){if(Je=He("cxttapend"),Te?Te.emit(Je):me.emit(Je),!t.touchData.cxtDragged){var ht=He("cxttap");Te?Te.emit(ht):me.emit(ht)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!ce.touches[2]&&me.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var rt=me.collection(t.getAllInBox(Be[0],Be[1],Be[2],Be[3]));Be[0]=void 0,Be[1]=void 0,Be[2]=void 0,Be[3]=void 0,Be[4]=0,t.redrawHint("select",!0),me.emit(He("boxend"));var $e=function(or){return or.selectable()&&!or.selected()};rt.emit(He("box")).stdFilter($e).select().emit(He("boxselect")),rt.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(Te?.unactivate(),ce.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!ce.touches[1]){if(!ce.touches[0]){if(!ce.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var xe=t.dragData.touchDragEles;if(Te!=null){var pt=Te._private.grabbed;m(xe),t.redrawHint("drag",!0),t.redrawHint("eles",!0),pt&&(Te.emit(He("freeon")),xe.emit(He("free")),t.dragData.didDrag&&(Te.emit(He("dragfreeon")),xe.emit(He("dragfree")))),i(Te,["touchend","tapend","vmouseup","tapdragout"],ce,{x:qe[0],y:qe[1]}),Te.unactivate(),t.touchData.start=null}else{var Ve=t.findNearestElement(qe[0],qe[1],!0,!0);i(Ve,["touchend","tapend","vmouseup","tapdragout"],ce,{x:qe[0],y:qe[1]})}var Ut=t.touchData.startPosition[0]-qe[0],kt=Ut*Ut,gt=t.touchData.startPosition[1]-qe[1],Ct=gt*gt,mt=kt+Ct,qt=mt*Ye*Ye;t.touchData.singleTouchMoved||(Te||me.$(":selected").unselect(["tapunselect"]),i(Te,["tap","vclick"],ce,{x:qe[0],y:qe[1]}),be=!1,ce.timeStamp-Ae<=me.multiClickDebounceTime()?(ke&&clearTimeout(ke),be=!0,Ae=null,i(Te,["dbltap","vdblclick"],ce,{x:qe[0],y:qe[1]})):(ke=setTimeout(function(){be||i(Te,["onetap","voneclick"],ce,{x:qe[0],y:qe[1]})},me.multiClickDebounceTime()),Ae=ce.timeStamp)),Te!=null&&!t.dragData.didDrag&&Te._private.selectable&&qt<t.touchTapThreshold2&&!t.pinching&&(me.selectionType()==="single"?(me.$(r).unmerge(Te).unselect(["tapunselect"]),Te.select(["tapselect"])):Te.selected()?Te.unselect(["tapunselect"]):Te.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}}}for(var De=0;De<qe.length;De++)lt[De]=qe[De];t.dragData.didDrag=!1,ce.touches.length===0&&(t.touchData.dragDelta=[],t.touchData.startPosition=[null,null,null,null,null,null],t.touchData.startGPosition=null,t.touchData.didSelect=!1),ce.touches.length<2&&(ce.touches.length===1&&(t.touchData.startGPosition=[ce.touches[0].clientX,ce.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())},!1),typeof TouchEvent>"u"){var tt=[],Oe=function(ce){return{clientX:ce.clientX,clientY:ce.clientY,force:1,identifier:ce.pointerId,pageX:ce.pageX,pageY:ce.pageY,radiusX:ce.width/2,radiusY:ce.height/2,screenX:ce.screenX,screenY:ce.screenY,target:ce.target}},je=function(ce){return{event:ce,touch:Oe(ce)}},ct=function(ce){tt.push(je(ce))},Fe=function(ce){for(var Te=0;Te<tt.length;Te++){var fe=tt[Te];if(fe.event.pointerId===ce.pointerId){tt.splice(Te,1);return}}},Xe=function(ce){var Te=tt.filter(function(fe){return fe.event.pointerId===ce.pointerId})[0];Te.event=ce,Te.touch=Oe(ce)},et=function(ce){ce.touches=tt.map(function(Te){return Te.touch})},Ie=function(ce){return ce.pointerType==="mouse"||ce.pointerType===4};t.registerBinding(t.container,"pointerdown",function(we){Ie(we)||(we.preventDefault(),ct(we),et(we),_e(we))}),t.registerBinding(t.container,"pointerup",function(we){Ie(we)||(Fe(we),et(we),Se(we))}),t.registerBinding(t.container,"pointercancel",function(we){Ie(we)||(Fe(we),et(we),Ue(we))}),t.registerBinding(t.container,"pointermove",function(we){Ie(we)||(we.preventDefault(),Xe(we),et(we),ye(we))})}};var z0={};z0.generatePolygon=function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(n,i,a,s,o,l){this.renderer.nodeShapeImpl("polygon",n,i,a,s,o,this.points)},intersectLine:function(n,i,a,s,o,l,u,d){return t3(o,l,this.points,n,i,a/2,s/2,u)},checkPoint:function(n,i,a,s,o,l,u,d){return f0(n,i,this.points,l,u,s,o,[0,-1],a)},hasMiterBounds:t!=="rectangle",miterBounds:function(n,i,a,s,o,l){return PAr(this.points,n,i,a,s,o)}}};z0.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,r,n,i,a,s){this.renderer.nodeShapeImpl(this.name,e,r,n,i,a)},intersectLine:function(e,r,n,i,a,s,o,l){return VAr(a,s,e,r,n/2+o,i/2+o)},checkPoint:function(e,r,n,i,a,s,o,l){return Uy(e,r,i,a,s,o,n)}}};z0.generateRoundPolygon=function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,getOrCreateCorners:function(n,i,a,s,o,l,u){if(l[u]!==void 0&&l[u+"-cx"]===n&&l[u+"-cy"]===i)return l[u];l[u]=new Array(e.length/2),l[u+"-cx"]=n,l[u+"-cy"]=i;var d=a/2,h=s/2;o=o==="auto"?Bqe(a,s):o;for(var f=new Array(e.length/2),p=0;p<e.length/2;p++)f[p]={x:n+d*e[p*2],y:i+h*e[p*2+1]};var g,m,_,v,y=f.length;for(m=f[y-1],g=0;g<y;g++)_=f[g%y],v=f[(g+1)%y],l[u][g]=tde(m,_,v,o),m=_,_=v;return l[u]},draw:function(n,i,a,s,o,l,u){this.renderer.nodeShapeImpl("round-polygon",n,i,a,s,o,this.points,this.getOrCreateCorners(i,a,s,o,l,u,"drawCorners"))},intersectLine:function(n,i,a,s,o,l,u,d,h){return YAr(o,l,this.points,n,i,a,s,u,this.getOrCreateCorners(n,i,a,s,d,h,"corners"))},checkPoint:function(n,i,a,s,o,l,u,d,h){return qAr(n,i,this.points,l,u,s,o,this.getOrCreateCorners(l,u,s,o,d,h,"corners"))}}};z0.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Wc(4,0),draw:function(e,r,n,i,a,s){this.renderer.nodeShapeImpl(this.name,e,r,n,i,a,this.points,s)},intersectLine:function(e,r,n,i,a,s,o,l){return Pqe(a,s,e,r,n,i,o,l)},checkPoint:function(e,r,n,i,a,s,o,l){var u=i/2,d=a/2;l=l==="auto"?T1(i,a):l,l=Math.min(u,d,l);var h=l*2;return!!(f0(e,r,this.points,s,o,i,a-h,[0,-1],n)||f0(e,r,this.points,s,o,i-h,a,[0,-1],n)||Uy(e,r,h,h,s-u+l,o-d+l,n)||Uy(e,r,h,h,s+u-l,o-d+l,n)||Uy(e,r,h,h,s+u-l,o+d-l,n)||Uy(e,r,h,h,s-u+l,o+d-l,n))}}};z0.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:Vue(),points:Wc(4,0),draw:function(e,r,n,i,a,s){this.renderer.nodeShapeImpl(this.name,e,r,n,i,a,null,s)},generateCutTrianglePts:function(e,r,n,i,a){var s=a==="auto"?this.cornerLength:a,o=r/2,l=e/2,u=n-l,d=n+l,h=i-o,f=i+o;return{topLeft:[u,h+s,u+s,h,u+s,h+s],topRight:[d-s,h,d,h+s,d-s,h+s],bottomRight:[d,f-s,d-s,f,d-s,f-s],bottomLeft:[u+s,f,u,f-s,u+s,f-s]}},intersectLine:function(e,r,n,i,a,s,o,l){var u=this.generateCutTrianglePts(n+2*o,i+2*o,e,r,l),d=[].concat.apply([],[u.topLeft.splice(0,4),u.topRight.splice(0,4),u.bottomRight.splice(0,4),u.bottomLeft.splice(0,4)]);return t3(a,s,d,e,r)},checkPoint:function(e,r,n,i,a,s,o,l){var u=l==="auto"?this.cornerLength:l;if(f0(e,r,this.points,s,o,i,a-2*u,[0,-1],n)||f0(e,r,this.points,s,o,i-2*u,a,[0,-1],n))return!0;var d=this.generateCutTrianglePts(i,a,s,o);return Wu(e,r,d.topLeft)||Wu(e,r,d.topRight)||Wu(e,r,d.bottomRight)||Wu(e,r,d.bottomLeft)}}};z0.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Wc(4,0),draw:function(e,r,n,i,a,s){this.renderer.nodeShapeImpl(this.name,e,r,n,i,a)},intersectLine:function(e,r,n,i,a,s,o,l){var u=.15,d=.5,h=.85,f=this.generateBarrelBezierPts(n+2*o,i+2*o,e,r),p=function(_){var v=rC({x:_[0],y:_[1]},{x:_[2],y:_[3]},{x:_[4],y:_[5]},u),y=rC({x:_[0],y:_[1]},{x:_[2],y:_[3]},{x:_[4],y:_[5]},d),b=rC({x:_[0],y:_[1]},{x:_[2],y:_[3]},{x:_[4],y:_[5]},h);return[_[0],_[1],v.x,v.y,y.x,y.y,b.x,b.y,_[4],_[5]]},g=[].concat(p(f.topLeft),p(f.topRight),p(f.bottomRight),p(f.bottomLeft));return t3(a,s,g,e,r)},generateBarrelBezierPts:function(e,r,n,i){var a=r/2,s=e/2,o=n-s,l=n+s,u=i-a,d=i+a,h=ite(e,r),f=h.heightOffset,p=h.widthOffset,g=h.ctrlPtOffsetPct*e,m={topLeft:[o,u+f,o+g,u,o+p,u],topRight:[l-p,u,l-g,u,l,u+f],bottomRight:[l,d-f,l-g,d,l-p,d],bottomLeft:[o+p,d,o+g,d,o,d-f]};return m.topLeft.isTop=!0,m.topRight.isTop=!0,m.bottomLeft.isBottom=!0,m.bottomRight.isBottom=!0,m},checkPoint:function(e,r,n,i,a,s,o,l){var u=ite(i,a),d=u.heightOffset,h=u.widthOffset;if(f0(e,r,this.points,s,o,i,a-2*d,[0,-1],n)||f0(e,r,this.points,s,o,i-2*h,a,[0,-1],n))return!0;for(var f=this.generateBarrelBezierPts(i,a,s,o),p=function(x,A,R){var I=R[4],L=R[2],F=R[0],O=R[5],D=R[1],M=Math.min(I,F),P=Math.max(I,F),N=Math.min(O,D),$=Math.max(O,D);if(M<=x&&x<=P&&N<=A&&A<=$){var U=WAr(I,L,F),B=UAr(U[0],U[1],U[2],x),V=B.filter(function(z){return 0<=z&&z<=1});if(V.length>0)return V[0]}return null},g=Object.keys(f),m=0;m<g.length;m++){var _=g[m],v=f[_],y=p(e,r,v);if(y!=null){var b=v[5],E=v[3],S=v[1],T=El(b,E,S,y);if(v.isTop&&T<=r||v.isBottom&&r<=T)return!0}}return!1}}};z0.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Wc(4,0),draw:function(e,r,n,i,a,s){this.renderer.nodeShapeImpl(this.name,e,r,n,i,a,this.points,s)},intersectLine:function(e,r,n,i,a,s,o,l){var u=e-(n/2+o),d=r-(i/2+o),h=d,f=e+(n/2+o),p=G_(a,s,e,r,u,d,f,h,!1);return p.length>0?p:Pqe(a,s,e,r,n,i,o,l)},checkPoint:function(e,r,n,i,a,s,o,l){l=l==="auto"?T1(i,a):l;var u=2*l;if(f0(e,r,this.points,s,o,i,a-u,[0,-1],n)||f0(e,r,this.points,s,o,i-u,a,[0,-1],n))return!0;var d=i/2+2*n,h=a/2+2*n,f=[s-d,o-h,s-d,o,s+d,o,s+d,o-h];return!!(Wu(e,r,f)||Uy(e,r,u,u,s+i/2-l,o+a/2-l,n)||Uy(e,r,u,u,s-i/2+l,o+a/2-l,n))}}};z0.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Wc(3,0)),this.generateRoundPolygon("round-triangle",Wc(3,0)),this.generatePolygon("rectangle",Wc(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",Wc(5,0)),this.generateRoundPolygon("round-pentagon",Wc(5,0)),this.generatePolygon("hexagon",Wc(6,0)),this.generateRoundPolygon("round-hexagon",Wc(6,0)),this.generatePolygon("heptagon",Wc(7,0)),this.generateRoundPolygon("round-heptagon",Wc(7,0)),this.generatePolygon("octagon",Wc(8,0)),this.generateRoundPolygon("round-octagon",Wc(8,0));var n=new Array(20);{var i=nte(5,0),a=nte(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o<a.length/2;o++)a[o*2]*=s,a[o*2+1]*=s;for(var o=0;o<20/4;o++)n[o*4]=i[o*2],n[o*4+1]=i[o*2+1],n[o*4+2]=a[o*2],n[o*4+3]=a[o*2+1]}n=Fqe(n),this.generatePolygon("star",n),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var l=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",l),this.generateRoundPolygon("round-tag",l)}t.makePolygon=function(u){var d=u.join("$"),h="polygon-"+d,f;return(f=this[h])?f:e.generatePolygon(h,u)}};var oD={};oD.timeToRender=function(){return this.redrawTotalTime/this.redrawCount};oD.redraw=function(t){t=t||kqe();var e=this;e.averageRedrawTime===void 0&&(e.averageRedrawTime=0),e.lastRedrawTime===void 0&&(e.lastRedrawTime=0),e.lastDrawTime===void 0&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t};oD.beforeRender=function(t,e){if(!this.destroyed){e==null&&Os("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:t,priority:e}),r.sort(function(n,i){return i.priority-n.priority})}};var kRe=function(e,r,n){for(var i=e.beforeRenderCallbacks,a=0;a<i.length;a++)i[a].fn(r,n)};oD.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var r=function(i){if(!t.destroyed){if(!e.batching())if(t.requestedFrame&&!t.skipFrame){kRe(t,!0,i);var a=h0();t.render(t.renderOptions);var s=t.lastDrawTime=h0();t.averageRedrawTime===void 0&&(t.averageRedrawTime=s-a),t.redrawCount===void 0&&(t.redrawCount=0),t.redrawCount++,t.redrawTotalTime===void 0&&(t.redrawTotalTime=0);var o=s-a;t.redrawTotalTime+=o,t.lastRedrawTime=o,t.averageRedrawTime=t.averageRedrawTime/2+o/2,t.requestedFrame=!1}else kRe(t,!1,i);t.skipFrame=!1,f8(r)}};f8(r)}};var hNr=function(e){this.init(e)},UVe=hNr,BR=UVe.prototype;BR.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"];BR.init=function(t){var e=this;e.options=t,e.cy=t.cy;var r=e.container=t.cy.container(),n=e.cy.window();if(n){var i=n.document,a=i.head,s="__________cytoscape_stylesheet",o="__________cytoscape_container",l=i.getElementById(s)!=null;if(r.className.indexOf(o)<0&&(r.className=(r.className||"")+" "+o),!l){var u=i.createElement("style");u.id=s,u.textContent="."+o+" { position: relative; }",a.insertBefore(u,a.children[0])}var d=n.getComputedStyle(r),h=d.getPropertyValue("position");h==="static"&&Pa("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.webgl=t.webgl,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=Gr(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()};BR.notify=function(t,e){var r=this,n=r.cy;if(!this.destroyed){if(t==="init"){r.load();return}if(t==="destroy"){r.destroy();return}(t==="add"||t==="remove"||t==="move"&&n.hasCompoundNodes()||t==="load"||t==="zorder"||t==="mount")&&r.invalidateCachedZSortedEles(),t==="viewport"&&r.redrawHint("select",!0),t==="gc"&&r.redrawHint("gc",!0),(t==="load"||t==="resize"||t==="mount")&&(r.invalidateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}};BR.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var r=t.bindings[e],n=r,i=n.target;(i.off||i.removeEventListener).apply(i,n.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch{}};BR.isHeadless=function(){return!1};[ede,PVe,FVe,FR,z0,oD].forEach(function(t){Yn(BR,t)});var vX=1e3/60,$Ve={setupDequeueing:function(e){return function(){var n=this,i=this.renderer;if(!n.dequeueingSetup){n.dequeueingSetup=!0;var a=rD(function(){i.redrawHint("eles",!0),i.redrawHint("drag",!0),i.redraw()},e.deqRedrawThreshold),s=function(u,d){var h=h0(),f=i.averageRedrawTime,p=i.lastRedrawTime,g=[],m=i.cy.extent(),_=i.getPixelRatio();for(u||i.flushRenderedStyleQueue();;){var v=h0(),y=v-h,b=v-d;if(p<vX){var E=vX-(u?f:0);if(b>=e.deqFastCost*E)break}else if(u){if(y>=e.deqCost*p||y>=e.deqAvgCost*f)break}else if(b>=e.deqNoDrawCost*vX)break;var S=e.deq(n,_,m);if(S.length>0)for(var T=0;T<S.length;T++)g.push(S[T]);else break}g.length>0&&(e.onDeqd(n,g),!u&&e.shouldRedraw(n,g,_,m)&&a())},o=e.priority||Uue;i.beforeRender(s,o(n))}}}},fNr=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p8;K1(this,t),this.idsByKey=new Bm,this.keyForId=new Bm,this.cachesByLvl=new Bm,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return j1(t,[{key:"getIdsFor",value:function(r){r==null&&Os("Can not get id list for null key");var n=this.idsByKey,i=this.idsByKey.get(r);return i||(i=new DR,n.set(r,i)),i}},{key:"addIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).add(n)}},{key:"deleteIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).delete(n)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);this.deleteIdForKey(i,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteIdForKey(i,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);return i!==a}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var n=this.cachesByLvl,i=this.lvls,a=n.get(r);return a||(a=new Bm,n.set(r,a),i.push(r)),a}},{key:"getCache",value:function(r,n){return this.getCachesAt(n).get(r)}},{key:"get",value:function(r,n){var i=this.getKey(r),a=this.getCache(i,n);return a!=null&&this.updateKeyMappingFor(r),a}},{key:"getForCachedKey",value:function(r,n){var i=this.keyForId.get(r.id()),a=this.getCache(i,n);return a}},{key:"hasCache",value:function(r,n){return this.getCachesAt(n).has(r)}},{key:"has",value:function(r,n){var i=this.getKey(r);return this.hasCache(i,n)}},{key:"setCache",value:function(r,n,i){i.key=r,this.getCachesAt(n).set(r,i)}},{key:"set",value:function(r,n,i){var a=this.getKey(r);this.setCache(a,n,i),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,n){this.getCachesAt(n).delete(r)}},{key:"delete",value:function(r,n){var i=this.getKey(r);this.deleteCache(i,n)}},{key:"invalidateKey",value:function(r){var n=this;this.lvls.forEach(function(i){return n.deleteCache(r,i)})}},{key:"invalidate",value:function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteKeyMappingFor(r);var a=this.doesEleInvalidateKey(r);return a&&this.invalidateKey(i),a||this.getNumberOfIdsForKey(i)===0}}])})(),DRe=25,WL=50,u6=-4,_te=3,GVe=7.99,pNr=8,gNr=1024,mNr=1024,_Nr=1024,vNr=.2,yNr=.8,bNr=10,ENr=.15,SNr=.1,TNr=.9,CNr=.9,wNr=100,xNr=1,ST={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},ANr=cc({getKey:null,doesEleInvalidateKey:p8,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Oqe,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),MI=function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var i=ANr(r);Yn(n,i),n.lookup=new fNr(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},yl=MI.prototype;yl.reasons=ST;yl.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};yl.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};yl.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new nD(function(r,n){return n.reqs-r.reqs});return e};yl.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};yl.getElement=function(t,e,r,n,i){var a=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(Gue(o*r))),n<u6)n=u6;else if(o>=GVe||n>_te)return null;var u=Math.pow(2,n),d=e.h*u,h=e.w*u,f=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,f))return null;var p=l.get(t,n);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;var g;if(d<=DRe?g=DRe:d<=WL?g=WL:g=Math.ceil(d/WL)*WL,d>_Nr||h>mNr)return null;var m=a.getTextureQueue(g),_=m[m.length-2],v=function(){return a.recycleTexture(g,h)||a.addTexture(g,h)};_||(_=m[m.length-1]),_||(_=v()),_.width-_.usedWidth<h&&(_=v());for(var y=function(M){return M&&M.scaledLabelShown===f},b=i&&i===ST.dequeue,E=i&&i===ST.highQuality,S=i&&i===ST.downscale,T,C=n+1;C<=_te;C++){var x=l.get(t,C);if(x){T=x;break}}var A=T&&T.level===n+1?T:null,R=function(){_.context.drawImage(A.texture.canvas,A.x,0,A.width,A.height,_.usedWidth,0,h,d)};if(_.context.setTransform(1,0,0,1,0,0),_.context.clearRect(_.usedWidth,0,h,g),y(A))R();else if(y(T))if(E){for(var I=T.level;I>n;I--)A=a.getElement(t,e,r,I,ST.downscale);R()}else return a.queueElement(t,T.level-1),T;else{var L;if(!b&&!E&&!S)for(var F=n-1;F>=u6;F--){var O=l.get(t,F);if(O){L=O;break}}if(y(L))return a.queueElement(t,n),L;_.context.translate(_.usedWidth,0),_.context.scale(u,u),this.drawElement(_.context,t,e,f,!1),_.context.scale(1/u,1/u),_.context.translate(-_.usedWidth,0)}return p={x:_.usedWidth,texture:_,level:n,scale:u,width:h,height:d,scaledLabelShown:f},_.usedWidth+=Math.ceil(h+pNr),_.eleCaches.push(p),l.set(t,n,p),a.checkTextureFullness(_),p};yl.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])};yl.invalidateElement=function(t){var e=this,r=e.lookup,n=[],i=r.isInvalid(t);if(i){for(var a=u6;a<=_te;a++){var s=r.getForCachedKey(t,a);s&&n.push(s)}var o=r.invalidate(t);if(o)for(var l=0;l<n.length;l++){var u=n[l],d=u.texture;d.invalidatedWidth+=u.width,u.invalidated=!0,e.checkTextureUtility(d)}e.removeFromQueue(t)}};yl.checkTextureUtility=function(t){t.invalidatedWidth>=vNr*t.width&&this.retireTexture(t)};yl.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>yNr&&t.fullnessChecks>=bNr?S1(r,t):t.fullnessChecks++};yl.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),i=this.lookup;S1(n,t),t.retired=!0;for(var a=t.eleCaches,s=0;s<a.length;s++){var o=a[s];i.deleteCache(o.key,o.level)}$ue(a);var l=e.getRetiredTextureQueue(r);l.push(t)};yl.addTexture=function(t,e){var r=this,n=r.getTextureQueue(t),i={};return n.push(i),i.eleCaches=[],i.height=t,i.width=Math.max(gNr,e),i.usedWidth=0,i.invalidatedWidth=0,i.fullnessChecks=0,i.canvas=r.renderer.makeOffscreenCanvas(i.width,i.height),i.context=i.canvas.getContext("2d"),i};yl.recycleTexture=function(t,e){for(var r=this,n=r.getTextureQueue(t),i=r.getRetiredTextureQueue(t),a=0;a<i.length;a++){var s=i[a];if(s.width>=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,$ue(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),S1(i,s),n.push(s),s}};yl.queueElement=function(t,e){var r=this,n=r.getElementQueue(),i=r.getElementKeyToQueue(),a=this.getKey(t),s=i[a];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,n.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:a};n.push(o),i[a]=o}};yl.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=[],a=e.lookup,s=0;s<xNr&&r.size()>0;s++){var o=r.pop(),l=o.key,u=o.eles[0],d=a.hasCache(u,o.level);if(n[l]=null,d)continue;i.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,ST.dequeue)}return i};yl.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=this.getKey(t),a=n[i];a!=null&&(a.eles.length===1?(a.reqs=Bue,r.updateItem(a),r.pop(),n[i]=null):a.eles.unmerge(t))};yl.onDequeue=function(t){this.onDequeues.push(t)};yl.offDequeue=function(t){S1(this.onDequeues,t)};yl.setupDequeueing=$Ve.setupDequeueing({deqRedrawThreshold:wNr,deqCost:ENr,deqAvgCost:SNr,deqNoDrawCost:TNr,deqFastCost:CNr,deq:function(e,r,n){return e.dequeue(r,n)},onDeqd:function(e,r){for(var n=0;n<e.onDequeues.length;n++){var i=e.onDequeues[n];i(r)}},shouldRedraw:function(e,r,n,i){for(var a=0;a<r.length;a++)for(var s=r[a].eles,o=0;o<s.length;o++){var l=s[o].boundingBox();if(que(l,i))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var RNr=1,xN=-4,S8=2,ONr=3.99,INr=50,NNr=50,kNr=.15,DNr=.1,MNr=.9,LNr=.9,PNr=1,MRe=250,FNr=4e3*4e3,LRe=32767,BNr=!0,zVe=function(e){var r=this,n=r.renderer=e,i=n.cy;r.layersByLevel={},r.firstGet=!0,r.lastInvalidationTime=h0()-2*MRe,r.skipping=!1,r.eleTxrDeqs=i.collection(),r.scheduleElementRefinement=rD(function(){r.refineElementTextures(r.eleTxrDeqs),r.eleTxrDeqs.unmerge(r.eleTxrDeqs)},NNr),n.beforeRender(function(s,o){o-r.lastInvalidationTime<=MRe?r.skipping=!0:r.skipping=!1},n.beforeRenderPriorities.lyrTxrSkip);var a=function(o,l){return l.reqs-o.reqs};r.layersQueue=new nD(a),r.setupDequeueing()},uc=zVe.prototype,PRe=0,UNr=Math.pow(2,53)-1;uc.makeLayer=function(t,e){var r=Math.pow(2,e),n=Math.ceil(t.w*r),i=Math.ceil(t.h*r),a=this.renderer.makeOffscreenCanvas(n,i),s={id:PRe=++PRe%UNr,bb:t,level:e,width:n,height:i,canvas:a,context:a.getContext("2d"),eles:[],elesQueue:[],reqs:0},o=s.context,l=-s.bb.x1,u=-s.bb.y1;return o.scale(r,r),o.translate(l,u),s};uc.getLayers=function(t,e,r){var n=this,i=n.renderer,a=i.cy,s=a.zoom(),o=n.firstGet;if(n.firstGet=!1,r==null){if(r=Math.ceil(Gue(s*e)),r<xN)r=xN;else if(s>=ONr||r>S8)return null}n.validateLayersElesOrdering(r,t);var l=n.layersByLevel,u=Math.pow(2,r),d=l[r]=l[r]||[],h,f=n.levelIsComplete(r,t),p,g=function(){var R=function(D){if(n.validateLayersElesOrdering(D,t),n.levelIsComplete(D,t))return p=l[D],!0},I=function(D){if(!p)for(var M=r+D;xN<=M&&M<=S8&&!R(M);M+=D);};I(1),I(-1);for(var L=d.length-1;L>=0;L--){var F=d[L];F.invalid&&S1(d,F)}};if(!f)g();else return d;var m=function(){if(!h){h=yu();for(var R=0;R<t.length;R++)DAr(h,t[R].boundingBox())}return h},_=function(R){R=R||{};var I=R.after;m();var L=Math.ceil(h.w*u),F=Math.ceil(h.h*u);if(L>LRe||F>LRe)return null;var O=L*F;if(O>FNr)return null;var D=n.makeLayer(h,r);if(I!=null){var M=d.indexOf(I)+1;d.splice(M,0,D)}else(R.insert===void 0||R.insert)&&d.unshift(D);return D};if(n.skipping&&!o)return null;for(var v=null,y=t.length/RNr,b=!o,E=0;E<t.length;E++){var S=t[E],T=S._private.rscratch,C=T.imgLayerCaches=T.imgLayerCaches||{},x=C[r];if(x){v=x;continue}if((!v||v.eles.length>=y||!Lqe(v.bb,S.boundingBox()))&&(v=_({insert:!0,after:v}),!v))return null;p||b?n.queueLayer(v,S):n.drawEleInLayer(v,S,r,e),v.eles.push(S),C[r]=v}return p||(b?null:d)};uc.getEleLevelForLayerLevel=function(t,e){return t};uc.drawEleInLayer=function(t,e,r,n){var i=this,a=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=i.getEleLevelForLayerLevel(r,n),a.setImgSmoothing(s,!1),a.drawCachedElement(s,e,null,null,r,BNr),a.setImgSmoothing(s,!0))};uc.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var i=0,a=0;a<n.length;a++){var s=n[a];if(s.reqs>0||s.invalid)return!1;i+=s.eles.length}return i===e.length};uc.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n<r.length;n++){for(var i=r[n],a=-1,s=0;s<e.length;s++)if(i.eles[0]===e[s]){a=s;break}if(a<0){this.invalidateLayer(i);continue}for(var o=a,s=0;s<i.eles.length;s++)if(i.eles[s]!==e[o+s]){this.invalidateLayer(i);break}}};uc.updateElementsInLayers=function(t,e){for(var r=this,n=Z5(t[0]),i=0;i<t.length;i++)for(var a=n?null:t[i],s=n?t[i]:t[i].ele,o=s._private.rscratch,l=o.imgLayerCaches=o.imgLayerCaches||{},u=xN;u<=S8;u++){var d=l[u];d&&(a&&r.getEleLevelForLayerLevel(d.level)!==a.level||e(d,s,a))}};uc.haveLayers=function(){for(var t=this,e=!1,r=xN;r<=S8;r++){var n=t.layersByLevel[r];if(n&&n.length>0){e=!0;break}}return e};uc.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=h0(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(n,i,a){e.invalidateLayer(n)}))};uc.invalidateLayer=function(t){if(this.lastInvalidationTime=h0(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];S1(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var i=0;i<r.length;i++){var a=r[i]._private.rscratch.imgLayerCaches;a&&(a[e]=null)}}};uc.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,function(n,i,a){var s=n.replacement;if(s||(s=n.replacement=e.makeLayer(n.bb,n.level),s.replaces=n,s.eles=n.eles),!s.reqs)for(var o=0;o<s.eles.length;o++)e.queueLayer(s,s.eles[o])})};uc.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()};uc.queueLayer=function(t,e){var r=this,n=r.layersQueue,i=t.elesQueue,a=i.hasId=i.hasId||{};if(!t.replacement){if(e){if(a[e.id()])return;i.push(e),a[e.id()]=!0}t.reqs?(t.reqs++,n.updateItem(t)):(t.reqs=1,n.push(t))}};uc.dequeue=function(t){for(var e=this,r=e.layersQueue,n=[],i=0;i<PNr&&r.size()!==0;){var a=r.peek();if(a.replacement){r.pop();continue}if(a.replaces&&a!==a.replaces.replacement){r.pop();continue}if(a.invalid){r.pop();continue}var s=a.elesQueue.shift();s&&(e.drawEleInLayer(a,s,a.level,t),i++),n.length===0&&n.push(!0),a.elesQueue.length===0&&(r.pop(),a.reqs=0,a.replaces&&e.applyLayerReplacement(a),e.requestRedraw())}return n};uc.applyLayerReplacement=function(t){var e=this,r=e.layersByLevel[t.level],n=t.replaces,i=r.indexOf(n);if(!(i<0||n.invalid)){r[i]=t;for(var a=0;a<t.eles.length;a++){var s=t.eles[a]._private,o=s.imgLayerCaches=s.imgLayerCaches||{};o&&(o[t.level]=t)}e.requestRedraw()}};uc.requestRedraw=rD(function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()},100);uc.setupDequeueing=$Ve.setupDequeueing({deqRedrawThreshold:INr,deqCost:kNr,deqAvgCost:DNr,deqNoDrawCost:MNr,deqFastCost:LNr,deq:function(e,r){return e.dequeue(r)},onDeqd:Uue,shouldRedraw:Oqe,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var qVe={},FRe;function $Nr(t,e){for(var r=0;r<e.length;r++){var n=e[r];t.lineTo(n.x,n.y)}}function GNr(t,e,r){for(var n,i=0;i<e.length;i++){var a=e[i];i===0&&(n=a),t.lineTo(a.x,a.y)}t.quadraticCurveTo(r.x,r.y,n.x,n.y)}function BRe(t,e,r){t.beginPath&&t.beginPath();for(var n=e,i=0;i<n.length;i++){var a=n[i];t.lineTo(a.x,a.y)}var s=r,o=r[0];t.moveTo(o.x,o.y);for(var i=1;i<s.length;i++){var a=s[i];t.lineTo(a.x,a.y)}t.closePath&&t.closePath()}function zNr(t,e,r,n,i){t.beginPath&&t.beginPath(),t.arc(r,n,i,0,Math.PI*2,!1);var a=e,s=a[0];t.moveTo(s.x,s.y);for(var o=0;o<a.length;o++){var l=a[o];t.lineTo(l.x,l.y)}t.closePath&&t.closePath()}function qNr(t,e,r,n){t.arc(e,r,n,0,Math.PI*2,!1)}qVe.arrowShapeImpl=function(t){return(FRe||(FRe={polygon:$Nr,"triangle-backcurve":GNr,"triangle-tee":BRe,"circle-triangle":zNr,"triangle-cross":BRe,circle:qNr}))[t]};var Mg={};Mg.drawElement=function(t,e,r,n,i,a){var s=this;e.isNode()?s.drawNode(t,e,r,n,i,a):s.drawEdge(t,e,r,n,i,a)};Mg.drawElementOverlay=function(t,e){var r=this;e.isNode()?r.drawNodeOverlay(t,e):r.drawEdgeOverlay(t,e)};Mg.drawElementUnderlay=function(t,e){var r=this;e.isNode()?r.drawNodeUnderlay(t,e):r.drawEdgeUnderlay(t,e)};Mg.drawCachedElementPortion=function(t,e,r,n,i,a,s,o){var l=this,u=r.getBoundingBox(e);if(!(u.w===0||u.h===0)){var d=r.getElement(e,u,n,i,a);if(d!=null){var h=o(l,e);if(h===0)return;var f=s(l,e),p=u.x1,g=u.y1,m=u.w,_=u.h,v,y,b,E,S;if(f!==0){var T=r.getRotationPoint(e);b=T.x,E=T.y,t.translate(b,E),t.rotate(f),S=l.getImgSmoothing(t),S||l.setImgSmoothing(t,!0);var C=r.getRotationOffset(e);v=C.x,y=C.y}else v=p,y=g;var x;h!==1&&(x=t.globalAlpha,t.globalAlpha=x*h),t.drawImage(d.texture.canvas,d.x,0,d.width,d.height,v,y,m,_),h!==1&&(t.globalAlpha=x),f!==0&&(t.rotate(-f),t.translate(-b,-E),S||l.setImgSmoothing(t,!1))}else r.drawElement(t,e)}};var VNr=function(){return 0},HNr=function(e,r){return e.getTextAngle(r,null)},YNr=function(e,r){return e.getTextAngle(r,"source")},WNr=function(e,r){return e.getTextAngle(r,"target")},KNr=function(e,r){return r.effectiveOpacity()},yX=function(e,r){return r.pstyle("text-opacity").pfValue*r.effectiveOpacity()};Mg.drawCachedElement=function(t,e,r,n,i,a){var s=this,o=s.data,l=o.eleTxrCache,u=o.lblTxrCache,d=o.slbTxrCache,h=o.tlbTxrCache,f=e.boundingBox(),p=a===!0?l.reasons.highQuality:null;if(!(f.w===0||f.h===0||!e.visible())&&(!n||que(f,n))){var g=e.isEdge(),m=e.element()._private.rscratch.badLine;s.drawElementUnderlay(t,e),s.drawCachedElementPortion(t,e,l,r,i,p,VNr,KNr),(!g||!m)&&s.drawCachedElementPortion(t,e,u,r,i,p,HNr,yX),g&&!m&&(s.drawCachedElementPortion(t,e,d,r,i,p,YNr,yX),s.drawCachedElementPortion(t,e,h,r,i,p,WNr,yX)),s.drawElementOverlay(t,e)}};Mg.drawElements=function(t,e){for(var r=this,n=0;n<e.length;n++){var i=e[n];r.drawElement(t,i)}};Mg.drawCachedElements=function(t,e,r,n){for(var i=this,a=0;a<e.length;a++){var s=e[a];i.drawCachedElement(t,s,r,n)}};Mg.drawCachedNodes=function(t,e,r,n){for(var i=this,a=0;a<e.length;a++){var s=e[a];s.isNode()&&i.drawCachedElement(t,s,r,n)}};Mg.drawLayeredElements=function(t,e,r,n){var i=this,a=i.data.lyrTxrCache.getLayers(e,r);if(a)for(var s=0;s<a.length;s++){var o=a[s],l=o.bb;l.w===0||l.h===0||t.drawImage(o.canvas,l.x1,l.y1,l.w,l.h)}else i.drawCachedElements(t,e,r,n)};var q0={};q0.drawEdge=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(a&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=a?e.pstyle("opacity").value:1,d=a?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,f=e.pstyle("line-style").value,p=e.pstyle("width").pfValue,g=e.pstyle("line-cap").value,m=e.pstyle("line-outline-width").value,_=e.pstyle("line-outline-color").value,v=u*d,y=u*d,b=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;h==="straight-triangle"?(s.eleStrokeStyle(t,e,D),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=p,t.lineCap=g,s.eleStrokeStyle(t,e,D),s.drawEdgePath(e,t,o.allpts,f),t.lineCap="butt")},E=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(t.lineWidth=p+m,t.lineCap=g,m>0)s.colorStrokeStyle(t,_[0],_[1],_[2],D);else{t.lineCap="butt";return}h==="straight-triangle"?s.drawEdgeTrianglePath(e,t,o.allpts):(s.drawEdgePath(e,t,o.allpts,f),t.lineCap="butt")},S=function(){i&&s.drawEdgeOverlay(t,e)},T=function(){i&&s.drawEdgeUnderlay(t,e)},C=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;s.drawArrowheads(t,e,D)},x=function(){s.drawElementText(t,e,null,n)};t.lineJoin="round";var A=e.pstyle("ghost").value==="yes";if(A){var R=e.pstyle("ghost-offset-x").pfValue,I=e.pstyle("ghost-offset-y").pfValue,L=e.pstyle("ghost-opacity").value,F=v*L;t.translate(R,I),b(F),C(F),t.translate(-R,-I)}else E();T(),b(),C(),S(),x(),r&&t.translate(l.x1,l.y1)}};var VVe=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var i=n.pstyle("".concat(e,"-opacity")).value;if(i!==0){var a=this,s=a.usePaths(),o=n._private.rscratch,l=n.pstyle("".concat(e,"-padding")).pfValue,u=2*l,d=n.pstyle("".concat(e,"-color")).value;r.lineWidth=u,o.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",a.colorStrokeStyle(r,d[0],d[1],d[2],i),a.drawEdgePath(n,r,o.allpts,"solid")}}}};q0.drawEdgeOverlay=VVe("overlay");q0.drawEdgeUnderlay=VVe("underlay");q0.drawEdgePath=function(t,e,r,n){var i=t._private.rscratch,a=e,s,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,d=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$"),f=i.pathCacheKey&&i.pathCacheKey===h;f?(s=e=i.pathCache,o=!0):(s=e=new Path2D,i.pathCacheKey=h,i.pathCache=s)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(u),a.lineDashOffset=d;break;case"solid":a.setLineDash([]);break}if(!o&&!i.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var p=2;p+3<r.length;p+=4)e.quadraticCurveTo(r[p],r[p+1],r[p+2],r[p+3]);break;case"straight":case"haystack":for(var g=2;g+1<r.length;g+=2)e.lineTo(r[g],r[g+1]);break;case"segments":if(i.isRound){var m=ed(i.roundCorners),_;try{for(m.s();!(_=m.n()).done;){var v=_.value;NVe(e,v)}}catch(b){m.e(b)}finally{m.f()}e.lineTo(r[r.length-2],r[r.length-1])}else for(var y=2;y+1<r.length;y+=2)e.lineTo(r[y],r[y+1]);break}e=a,l?e.stroke(s):e.stroke(),e.setLineDash&&e.setLineDash([])};q0.drawEdgeTrianglePath=function(t,e,r){e.fillStyle=e.strokeStyle;for(var n=t.pstyle("width").pfValue,i=0;i+1<r.length;i+=2){var a=[r[i+2]-r[i],r[i+3]-r[i+1]],s=Math.sqrt(a[0]*a[0]+a[1]*a[1]),o=[a[1]/s,-a[0]/s],l=[o[0]*n/2,o[1]*n/2];e.beginPath(),e.moveTo(r[i]-l[0],r[i+1]-l[1]),e.lineTo(r[i]+l[0],r[i+1]+l[1]),e.lineTo(r[i+2],r[i+3]),e.closePath(),e.fill()}};q0.drawArrowheads=function(t,e,r){var n=e._private.rscratch,i=n.edgeType==="haystack";i||this.drawArrowhead(t,e,"source",n.arrowStartX,n.arrowStartY,n.srcArrowAngle,r),this.drawArrowhead(t,e,"mid-target",n.midX,n.midY,n.midtgtArrowAngle,r),this.drawArrowhead(t,e,"mid-source",n.midX,n.midY,n.midsrcArrowAngle,r),i||this.drawArrowhead(t,e,"target",n.arrowEndX,n.arrowEndY,n.tgtArrowAngle,r)};q0.drawArrowhead=function(t,e,r,n,i,a,s){if(!(isNaN(n)||n==null||isNaN(i)||i==null||isNaN(a)||a==null)){var o=this,l=e.pstyle(r+"-arrow-shape").value;if(l!=="none"){var u=e.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",d=e.pstyle(r+"-arrow-fill").value,h=e.pstyle("width").pfValue,f=e.pstyle(r+"-arrow-width"),p=f.value==="match-line"?h:f.pfValue;f.units==="%"&&(p*=h);var g=e.pstyle("opacity").value;s===void 0&&(s=g);var m=t.globalCompositeOperation;(s!==1||d==="hollow")&&(t.globalCompositeOperation="destination-out",o.colorFillStyle(t,255,255,255,1),o.colorStrokeStyle(t,255,255,255,1),o.drawArrowShape(e,t,u,h,l,p,n,i,a),t.globalCompositeOperation=m);var _=e.pstyle(r+"-arrow-color").value;o.colorFillStyle(t,_[0],_[1],_[2],s),o.colorStrokeStyle(t,_[0],_[1],_[2],s),o.drawArrowShape(e,t,d,h,l,p,n,i,a)}}};q0.drawArrowShape=function(t,e,r,n,i,a,s,o,l){var u=this,d=this.usePaths()&&i!=="triangle-cross",h=!1,f,p=e,g={x:s,y:o},m=t.pstyle("arrow-scale").value,_=this.getArrowWidth(n,m),v=u.arrowShapes[i];if(d){var y=u.arrowPathCache=u.arrowPathCache||[],b=zb(i),E=y[b];E!=null?(f=e=E,h=!0):(f=e=new Path2D,y[b]=f)}h||(e.beginPath&&e.beginPath(),d?v.draw(e,1,0,{x:0,y:0},1):v.draw(e,_,l,g,n),e.closePath&&e.closePath()),e=p,d&&(e.translate(s,o),e.rotate(l),e.scale(_,_)),(r==="filled"||r==="both")&&(d?e.fill(f):e.fill()),(r==="hollow"||r==="both")&&(e.lineWidth=a/(d?_:1),e.lineJoin="miter",d?e.stroke(f):e.stroke()),d&&(e.scale(1/_,1/_),e.rotate(-l),e.translate(-s,-o))};var nde={};nde.safeDrawImage=function(t,e,r,n,i,a,s,o,l,u){if(!(i<=0||a<=0||l<=0||u<=0))try{t.drawImage(e,r,n,i,a,s,o,l,u)}catch(d){Pa(d)}};nde.drawInscribedImage=function(t,e,r,n,i){var a=this,s=r.position(),o=s.x,l=s.y,u=r.cy().style(),d=u.getIndexedStyle.bind(u),h=d(r,"background-fit","value",n),f=d(r,"background-repeat","value",n),p=r.width(),g=r.height(),m=r.padding()*2,_=p+(d(r,"background-width-relative-to","value",n)==="inner"?0:m),v=g+(d(r,"background-height-relative-to","value",n)==="inner"?0:m),y=r._private.rscratch,b=d(r,"background-clip","value",n),E=b==="node",S=d(r,"background-image-opacity","value",n)*i,T=d(r,"background-image-smoothing","value",n),C=r.pstyle("corner-radius").value;C!=="auto"&&(C=r.pstyle("corner-radius").pfValue);var x=e.width||e.cachedW,A=e.height||e.cachedH;(x==null||A==null)&&(document.body.appendChild(e),x=e.cachedW=e.width||e.offsetWidth,A=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var R=x,I=A;if(d(r,"background-width","value",n)!=="auto"&&(d(r,"background-width","units",n)==="%"?R=d(r,"background-width","pfValue",n)*_:R=d(r,"background-width","pfValue",n)),d(r,"background-height","value",n)!=="auto"&&(d(r,"background-height","units",n)==="%"?I=d(r,"background-height","pfValue",n)*v:I=d(r,"background-height","pfValue",n)),!(R===0||I===0)){if(h==="contain"){var L=Math.min(_/R,v/I);R*=L,I*=L}else if(h==="cover"){var L=Math.max(_/R,v/I);R*=L,I*=L}var F=o-_/2,O=d(r,"background-position-x","units",n),D=d(r,"background-position-x","pfValue",n);O==="%"?F+=(_-R)*D:F+=D;var M=d(r,"background-offset-x","units",n),P=d(r,"background-offset-x","pfValue",n);M==="%"?F+=(_-R)*P:F+=P;var N=l-v/2,$=d(r,"background-position-y","units",n),U=d(r,"background-position-y","pfValue",n);$==="%"?N+=(v-I)*U:N+=U;var B=d(r,"background-offset-y","units",n),V=d(r,"background-offset-y","pfValue",n);B==="%"?N+=(v-I)*V:N+=V,y.pathCache&&(F-=o,N-=l,o=0,l=0);var z=t.globalAlpha;t.globalAlpha=S;var G=a.getImgSmoothing(t),Y=!1;if(T==="no"&&G?(a.setImgSmoothing(t,!1),Y=!0):T==="yes"&&!G&&(a.setImgSmoothing(t,!0),Y=!0),f==="no-repeat")E&&(t.save(),y.pathCache?t.clip(y.pathCache):(a.nodeShapes[a.getNodeShape(r)].draw(t,o,l,_,v,C,y),t.clip())),a.safeDrawImage(t,e,0,0,x,A,F,N,R,I),E&&t.restore();else{var W=t.createPattern(e,f);t.fillStyle=W,a.nodeShapes[a.getNodeShape(r)].draw(t,o,l,_,v,C,y),t.translate(F,N),t.fill(),t.translate(-F,-N)}t.globalAlpha=z,Y&&a.setImgSmoothing(t,G)}};var TE={};TE.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),n=this.getPixelRatio(),i=Math.ceil(Gue(r*n));e=Math.pow(2,i)}var a=t.pstyle("font-size").pfValue*e,s=t.pstyle("min-zoomed-font-size").pfValue;return!(a<s)};TE.drawElementText=function(t,e,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(n==null){if(a&&!s.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e),u=e.pstyle("text-metrics").strValue==="glyph";t.textAlign=l,t.textBaseline=u?"alphabetic":"bottom"}else{var d=e.element()._private.rscratch.badLine,h=e.pstyle("label"),f=e.pstyle("source-label"),p=e.pstyle("target-label");if(d||(!h||!h.value)&&(!f||!f.value)&&(!p||!p.value))return;t.textAlign="center",t.textBaseline="bottom"}var g=!r,m;r&&(m=r,t.translate(-m.x1,-m.y1)),i==null?(s.drawText(t,e,null,g,a),e.isEdge()&&(s.drawText(t,e,"source",g,a),s.drawText(t,e,"target",g,a))):s.drawText(t,e,i,g,a),r&&t.translate(m.x1,m.y1)};TE.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(e=this.fontCaches[r],e.context===t)return e;return e={context:t},this.fontCaches.push(e),e};TE.setupTextStyle=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,d=e.pstyle("text-outline-color").value;t.font=n+" "+s+" "+i+" "+a,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,d[0],d[1],d[2],l)};function jNr(t,e,r,n,i){var a=Math.min(n,i),s=a/2,o=e+n/2,l=r+i/2;t.beginPath(),t.arc(o,l,s,0,Math.PI*2),t.closePath()}function URe(t,e,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=Math.min(a,n/2,i/2);t.beginPath(),t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.quadraticCurveTo(e+n,r,e+n,r+s),t.lineTo(e+n,r+i-s),t.quadraticCurveTo(e+n,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.quadraticCurveTo(e,r+i,e,r+i-s),t.lineTo(e,r+s),t.quadraticCurveTo(e,r,e+s,r),t.closePath()}TE.getTextAngle=function(t,e){var r,n=t._private,i=n.rscratch,a=e?e+"-":"",s=t.pstyle(a+"text-rotation");if(s.strValue==="autorotate"){var o=Jc(i,"labelAngle",e);r=t.isEdge()?o:0}else s.strValue==="none"?r=0:r=s.pfValue;return r};TE.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,s=a.rscratch,o=i?e.effectiveOpacity():1;if(!(i&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=Jc(s,"labelX",r),u=Jc(s,"labelY",r),d,h,f=this.getLabelText(e,r);if(f!=null&&f!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,i);var p=r?r+"-":"",g=Jc(s,"labelWidth",r),m=Jc(s,"labelHeight",r),_=Jc(s,"labelActualDescent",r),v=e.pstyle(p+"text-margin-x").pfValue,y=e.pstyle(p+"text-margin-y").pfValue,b=e.isEdge(),E=e.pstyle("text-halign").value,S=e.pstyle("text-valign").value;b&&(E="center",S="center"),l+=v,u+=y;var T;n?T=this.getTextAngle(e,r):T=0,T!==0&&(d=l,h=u,t.translate(d,h),t.rotate(T),l=0,u=0);var C=IA(E),x=NA(S);switch(x){case"top":break;case"center":u+=m/2;break;case"bottom":u+=m;break}var A=e.pstyle("text-background-opacity").value,R=e.pstyle("text-border-opacity").value,I=e.pstyle("text-border-width").pfValue,L=e.pstyle("text-background-padding").pfValue,F=e.pstyle("text-background-shape").strValue,O=F==="round-rectangle"||F==="roundrectangle",D=F==="circle",M=2;if(A>0||I>0&&R>0){var P=t.fillStyle,N=t.strokeStyle,$=t.lineWidth,U=e.pstyle("text-background-color").value,B=e.pstyle("text-border-color").value,V=e.pstyle("text-border-style").value,z=A>0,G=I>0&&R>0,Y=l-L;switch(C){case"left":Y-=g;break;case"center":Y-=g/2;break}var W=u-m-L,Q=g+2*L,ie=m+2*L;if(z&&(t.fillStyle="rgba(".concat(U[0],",").concat(U[1],",").concat(U[2],",").concat(A*o,")")),G&&(t.strokeStyle="rgba(".concat(B[0],",").concat(B[1],",").concat(B[2],",").concat(R*o,")"),t.lineWidth=I,t.setLineDash))switch(V){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=I/4,t.setLineDash([]);break;default:t.setLineDash([]);break}if(O?(t.beginPath(),URe(t,Y,W,Q,ie,M)):D?(t.beginPath(),jNr(t,Y,W,Q,ie)):(t.beginPath(),t.rect(Y,W,Q,ie)),z&&t.fill(),G&&t.stroke(),G&&V==="double"){var Z=I/2;t.beginPath(),O?URe(t,Y+Z,W+Z,Q-2*Z,ie-2*Z,M):t.rect(Y+Z,W+Z,Q-2*Z,ie-2*Z),t.stroke()}t.fillStyle=P,t.strokeStyle=N,t.lineWidth=$,t.setLineDash&&t.setLineDash([])}var re=2*e.pstyle("text-outline-width").pfValue;if(re>0&&(t.lineWidth=re),u-=_,e.pstyle("text-wrap").value==="wrap"){var K=Jc(s,"labelWrapCachedLines",r),j=Jc(s,"labelLineHeight",r),se=g/2,le=this.getLabelJustification(e);switch(le==="auto"||(C==="left"?le==="left"?l+=-g:le==="center"&&(l+=-se):C==="center"?le==="left"?l+=-se:le==="right"&&(l+=se):C==="right"&&(le==="center"?l+=se:le==="right"&&(l+=g))),x){case"top":u-=(K.length-1)*j;break;case"center":case"bottom":u-=(K.length-1)*j;break}for(var _e=0;_e<K.length;_e++)re>0&&t.strokeText(K[_e],l,u),t.fillText(K[_e],l,u),u+=j}else re>0&&t.strokeText(f,l,u),t.fillText(f,l,u);T!==0&&(t.rotate(-T),t.translate(-d,-h))}}};var Q1={};Q1.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,l,u=e._private,d=u.rscratch,h=e.position();if(!(!Gr(h.x)||!Gr(h.y))&&!(a&&!e.visible())){var f=a?e.effectiveOpacity():1,p=s.usePaths(),g,m=!1,_=e.padding();o=e.width()+2*_,l=e.height()+2*_;var v;r&&(v=r,t.translate(-v.x1,-v.y1));for(var y=e.pstyle("background-image"),b=y.value,E=new Array(b.length),S=new Array(b.length),T=0,C=0;C<b.length;C++){var x=b[C],A=E[C]=x!=null&&x!=="none";if(A){var R=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",C);T++,S[C]=s.getCachedImage(x,R,function(){u.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var I=e.pstyle("background-blacken").value,L=e.pstyle("border-width").pfValue,F=e.pstyle("background-opacity").value*f,O=e.pstyle("border-color").value,D=e.pstyle("border-style").value,M=e.pstyle("border-join").value,P=e.pstyle("border-cap").value,N=e.pstyle("border-position").value,$=e.pstyle("border-dash-pattern").pfValue,U=e.pstyle("border-dash-offset").pfValue,B=e.pstyle("border-opacity").value*f,V=e.pstyle("outline-width").pfValue,z=e.pstyle("outline-color").value,G=e.pstyle("outline-style").value,Y=e.pstyle("outline-opacity").value*f,W=e.pstyle("outline-offset").value,Q=e.pstyle("corner-radius").value;Q!=="auto"&&(Q=e.pstyle("corner-radius").pfValue);var ie=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F;s.eleFillStyle(t,e,ce)},Z=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;s.colorStrokeStyle(t,O[0],O[1],O[2],ce)},re=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y;s.colorStrokeStyle(t,z[0],z[1],z[2],ce)},K=function(ce,Te,fe,Be){var me=s.nodePathCache=s.nodePathCache||[],Ye=Rqe(fe==="polygon"?fe+","+Be.join(","):fe,""+Te,""+ce,""+Q),qe=me[Ye],lt,it=!1;return qe!=null?(lt=qe,it=!0,d.pathCache=lt):(lt=new Path2D,me[Ye]=d.pathCache=lt),{path:lt,cacheHit:it}},j=e.pstyle("shape").strValue,se=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var le=K(o,l,j,se);g=le.path,m=le.cacheHit}var _e=function(){if(!m){var ce=h;p&&(ce={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(g||t,ce.x,ce.y,o,l,Q,d)}p?t.fill(g):t.fill()},ye=function(){for(var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fe=u.backgrounding,Be=0,me=0;me<S.length;me++){var Ye=e.cy().style().getIndexedStyle(e,"background-image-containment","value",me);if(Te&&Ye==="over"||!Te&&Ye==="inside"){Be++;continue}E[me]&&S[me].complete&&!S[me].error&&(Be++,s.drawInscribedImage(t,S[me],e,me,ce))}u.backgrounding=Be!==T,fe!==u.backgrounding&&e.updateStyle(!1)},Ue=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasPie(e)&&(s.drawPie(t,e,Te),ce&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Q,d)))},Se=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasStripe(e)&&(t.save(),p?t.clip(d.pathCache):(s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Q,d),t.clip()),s.drawStripe(t,e,Te),t.restore(),ce&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,Q,d)))},be=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,Te=(I>0?I:-I)*ce,fe=I>0?0:255;I!==0&&(s.colorFillStyle(t,fe,fe,fe,Te),p?t.fill(g):t.fill())},ke=function(){if(L>0){if(t.lineWidth=L,t.lineCap=P,t.lineJoin=M,t.setLineDash)switch(D){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash($),t.lineDashOffset=U;break;case"solid":case"double":t.setLineDash([]);break}if(N!=="center"){if(t.save(),t.lineWidth*=2,N==="inside")p?t.clip(g):t.clip();else{var ce=new Path2D;ce.rect(-o/2-L,-l/2-L,o+2*L,l+2*L),ce.addPath(g),t.clip(ce,"evenodd")}p?t.stroke(g):t.stroke(),t.restore()}else p?t.stroke(g):t.stroke();if(D==="double"){t.lineWidth=L/3;var Te=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(g):t.stroke(),t.globalCompositeOperation=Te}t.setLineDash&&t.setLineDash([])}},Ae=function(){if(V>0){if(t.lineWidth=V,t.lineCap="butt",t.setLineDash)switch(G){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var ce=h;p&&(ce={x:0,y:0});var Te=s.getNodeShape(e),fe=L;N==="inside"&&(fe=0),N==="outside"&&(fe*=2);var Be=(o+fe+(V+W))/o,me=(l+fe+(V+W))/l,Ye=o*Be,qe=l*me,lt=s.nodeShapes[Te].points,it;if(p){var He=K(Ye,qe,Te,lt);it=He.path}if(Te==="ellipse")s.drawEllipsePath(it||t,ce.x,ce.y,Ye,qe);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(Te)){var Je=0,ht=0,rt=0;Te==="round-diamond"?Je=(fe+W+V)*1.4:Te==="round-heptagon"?(Je=(fe+W+V)*1.075,rt=-(fe/2+W+V)/35):Te==="round-hexagon"?Je=(fe+W+V)*1.12:Te==="round-pentagon"?(Je=(fe+W+V)*1.13,rt=-(fe/2+W+V)/15):Te==="round-tag"?(Je=(fe+W+V)*1.12,ht=(fe/2+V+W)*.07):Te==="round-triangle"&&(Je=(fe+W+V)*(Math.PI/2),rt=-(fe+W/2+V)/Math.PI),Je!==0&&(Be=(o+Je)/o,Ye=o*Be,["round-hexagon","round-tag"].includes(Te)||(me=(l+Je)/l,qe=l*me)),Q=Q==="auto"?Bqe(Ye,qe):Q;for(var $e=Ye/2,xe=qe/2,pt=Q+(fe+V+W)/2,Ve=new Array(lt.length/2),Ut=new Array(lt.length/2),kt=0;kt<lt.length/2;kt++)Ve[kt]={x:ce.x+ht+$e*lt[kt*2],y:ce.y+rt+xe*lt[kt*2+1]};var gt,Ct,mt,qt,De=Ve.length;for(Ct=Ve[De-1],gt=0;gt<De;gt++)mt=Ve[gt%De],qt=Ve[(gt+1)%De],Ut[gt]=tde(Ct,mt,qt,pt),Ct=mt,mt=qt;s.drawRoundPolygonPath(it||t,ce.x+ht,ce.y+rt,o*Be,l*me,lt,Ut)}else if(["roundrectangle","round-rectangle"].includes(Te))Q=Q==="auto"?T1(Ye,qe):Q,s.drawRoundRectanglePath(it||t,ce.x,ce.y,Ye,qe,Q+(fe+V+W)/2);else if(["cutrectangle","cut-rectangle"].includes(Te))Q=Q==="auto"?Vue():Q,s.drawCutRectanglePath(it||t,ce.x,ce.y,Ye,qe,null,Q+(fe+V+W)/4);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(Te))Q=Q==="auto"?T1(Ye,qe):Q,s.drawBottomRoundRectanglePath(it||t,ce.x,ce.y,Ye,qe,Q+(fe+V+W)/2);else if(Te==="barrel")s.drawBarrelPath(it||t,ce.x,ce.y,Ye,qe);else if(Te.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(Te)){var pr=(fe+V+W)/o;lt=g8(m8(lt,pr)),s.drawPolygonPath(it||t,ce.x,ce.y,o,l,lt)}else{var or=(fe+V+W)/o;lt=g8(m8(lt,-or)),s.drawPolygonPath(it||t,ce.x,ce.y,o,l,lt)}if(p?t.stroke(it):t.stroke(),G==="double"){t.lineWidth=fe/3;var ir=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(it):t.stroke(),t.globalCompositeOperation=ir}t.setLineDash&&t.setLineDash([])}},tt=function(){i&&s.drawNodeOverlay(t,e,h,o,l)},Oe=function(){i&&s.drawNodeUnderlay(t,e,h,o,l)},je=function(){s.drawElementText(t,e,null,n)},ct=e.pstyle("ghost").value==="yes";if(ct){var Fe=e.pstyle("ghost-offset-x").pfValue,Xe=e.pstyle("ghost-offset-y").pfValue,et=e.pstyle("ghost-opacity").value,Ie=et*f;t.translate(Fe,Xe),re(),Ae(),ie(et*F),_e(),ye(Ie,!0),Z(et*B),ke(),Ue(I!==0||L!==0),Se(I!==0||L!==0),ye(Ie,!1),be(Ie),t.translate(-Fe,-Xe)}p&&t.translate(-h.x,-h.y),Oe(),p&&t.translate(h.x,h.y),re(),Ae(),ie(),_e(),ye(f,!0),Z(),ke(),Ue(I!==0||L!==0),Se(I!==0||L!==0),ye(f,!1),be(),p&&t.translate(-h.x,-h.y),je(),tt(),r&&t.translate(v.x1,v.y1)}};var HVe=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n,i,a,s){var o=this;if(n.visible()){var l=n.pstyle("".concat(e,"-padding")).pfValue,u=n.pstyle("".concat(e,"-opacity")).value,d=n.pstyle("".concat(e,"-color")).value,h=n.pstyle("".concat(e,"-shape")).value,f=n.pstyle("".concat(e,"-corner-radius")).value;if(u>0){if(i=i||n.position(),a==null||s==null){var p=n.padding();a=n.width()+2*p,s=n.height()+2*p}o.colorFillStyle(r,d[0],d[1],d[2],u),o.nodeShapes[h].draw(r,i.x,i.y,a+l*2,s+l*2,f),r.fill()}}}};Q1.drawNodeOverlay=HVe("overlay");Q1.drawNodeUnderlay=HVe("underlay");Q1.hasPie=function(t){return t=t[0],t._private.hasPie};Q1.hasStripe=function(t){return t=t[0],t._private.hasStripe};Q1.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),s=e.pstyle("pie-hole"),o=e.pstyle("pie-start-angle").pfValue,l=n.x,u=n.y,d=e.width(),h=e.height(),f=Math.min(d,h)/2,p,g=0,m=this.usePaths();if(m&&(l=0,u=0),a.units==="%"?f=f*a.pfValue:a.pfValue!==void 0&&(f=a.pfValue/2),s.units==="%"?p=f*s.pfValue:s.pfValue!==void 0&&(p=s.pfValue/2),!(p>=f))for(var _=1;_<=i.pieBackgroundN;_++){var v=e.pstyle("pie-"+_+"-background-size").value,y=e.pstyle("pie-"+_+"-background-color").value,b=e.pstyle("pie-"+_+"-background-opacity").value*r,E=v/100;E+g>1&&(E=1-g);var S=1.5*Math.PI+2*Math.PI*g;S+=o;var T=2*Math.PI*E,C=S+T;v===0||g>=1||g+E>1||(p===0?(t.beginPath(),t.moveTo(l,u),t.arc(l,u,f,S,C),t.closePath()):(t.beginPath(),t.arc(l,u,f,S,C),t.arc(l,u,p,C,S,!0),t.closePath()),this.colorFillStyle(t,y[0],y[1],y[2],b),t.fill(),g+=E)}};Q1.drawStripe=function(t,e,r,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=n.x,s=n.y,o=e.width(),l=e.height(),u=0,d=this.usePaths();t.save();var h=e.pstyle("stripe-direction").value,f=e.pstyle("stripe-size");switch(h){case"vertical":break;case"righward":t.rotate(-Math.PI/2);break}var p=o,g=l;f.units==="%"?(p=p*f.pfValue,g=g*f.pfValue):f.pfValue!==void 0&&(p=f.pfValue,g=f.pfValue),d&&(a=0,s=0),s-=p/2,a-=g/2;for(var m=1;m<=i.stripeBackgroundN;m++){var _=e.pstyle("stripe-"+m+"-background-size").value,v=e.pstyle("stripe-"+m+"-background-color").value,y=e.pstyle("stripe-"+m+"-background-opacity").value*r,b=_/100;b+u>1&&(b=1-u),!(_===0||u>=1||u+b>1)&&(t.beginPath(),t.rect(a,s+g*u,p,g*b),t.closePath(),this.colorFillStyle(t,v[0],v[1],v[2],y),t.fill(),u+=b)}t.restore()};var Au={},XNr=100;Au.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/r};Au.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,i=0;i<e.length;i++)if(n=e[i],n.context===t){r=!1;break}return r&&(n={context:t},e.push(n)),n};Au.createGradientStyleFor=function(t,e,r,n,i){var a,s=this.usePaths(),o=r.pstyle(e+"-gradient-stop-colors").value,l=r.pstyle(e+"-gradient-stop-positions").pfValue;if(n==="radial-gradient")if(r.isEdge()){var u=r.sourceEndpoint(),d=r.targetEndpoint(),h=r.midpoint(),f=qb(u,h),p=qb(d,h);a=t.createRadialGradient(h.x,h.y,0,h.x,h.y,Math.max(f,p))}else{var g=s?{x:0,y:0}:r.position(),m=r.paddedWidth(),_=r.paddedHeight();a=t.createRadialGradient(g.x,g.y,0,g.x,g.y,Math.max(m,_))}else if(r.isEdge()){var v=r.sourceEndpoint(),y=r.targetEndpoint();a=t.createLinearGradient(v.x,v.y,y.x,y.y)}else{var b=s?{x:0,y:0}:r.position(),E=r.paddedWidth(),S=r.paddedHeight(),T=E/2,C=S/2,x=r.pstyle("background-gradient-direction").value;switch(x){case"to-bottom":a=t.createLinearGradient(b.x,b.y-C,b.x,b.y+C);break;case"to-top":a=t.createLinearGradient(b.x,b.y+C,b.x,b.y-C);break;case"to-left":a=t.createLinearGradient(b.x+T,b.y,b.x-T,b.y);break;case"to-right":a=t.createLinearGradient(b.x-T,b.y,b.x+T,b.y);break;case"to-bottom-right":case"to-right-bottom":a=t.createLinearGradient(b.x-T,b.y-C,b.x+T,b.y+C);break;case"to-top-right":case"to-right-top":a=t.createLinearGradient(b.x-T,b.y+C,b.x+T,b.y-C);break;case"to-bottom-left":case"to-left-bottom":a=t.createLinearGradient(b.x+T,b.y-C,b.x-T,b.y+C);break;case"to-top-left":case"to-left-top":a=t.createLinearGradient(b.x+T,b.y+C,b.x-T,b.y-C);break}}if(!a)return null;for(var A=l.length===o.length,R=o.length,I=0;I<R;I++)a.addColorStop(A?l[I]:I/(R-1),"rgba("+o[I][0]+","+o[I][1]+","+o[I][2]+","+i+")");return a};Au.gradientFillStyle=function(t,e,r,n){var i=this.createGradientStyleFor(t,"background",e,r,n);if(!i)return null;t.fillStyle=i};Au.colorFillStyle=function(t,e,r,n,i){t.fillStyle="rgba("+e+","+r+","+n+","+i+")"};Au.eleFillStyle=function(t,e,r){var n=e.pstyle("background-fill").value;if(n==="linear-gradient"||n==="radial-gradient")this.gradientFillStyle(t,e,n,r);else{var i=e.pstyle("background-color").value;this.colorFillStyle(t,i[0],i[1],i[2],r)}};Au.gradientStrokeStyle=function(t,e,r,n){var i=this.createGradientStyleFor(t,"line",e,r,n);if(!i)return null;t.strokeStyle=i};Au.colorStrokeStyle=function(t,e,r,n,i){t.strokeStyle="rgba("+e+","+r+","+n+","+i+")"};Au.eleStrokeStyle=function(t,e,r){var n=e.pstyle("line-fill").value;if(n==="linear-gradient"||n==="radial-gradient")this.gradientStrokeStyle(t,e,n,r);else{var i=e.pstyle("line-color").value;this.colorStrokeStyle(t,i[0],i[1],i[2],r)}};Au.matchCanvasSize=function(t){var e=this,r=e.data,n=e.findContainerClientCoords(),i=n[2],a=n[3],s=e.getPixelRatio(),o=e.motionBlurPxRatio;(t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]||t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG])&&(s=o);var l=i*s,u=a*s,d;if(!(l===e.canvasWidth&&u===e.canvasHeight)){e.fontCaches=null;var h=r.canvasContainer;h.style.width=i+"px",h.style.height=a+"px";for(var f=0;f<e.CANVAS_LAYERS;f++)d=r.canvases[f],d.width=l,d.height=u,d.style.width=i+"px",d.style.height=a+"px";for(var f=0;f<e.BUFFER_COUNT;f++)d=r.bufferCanvases[f],d.width=l,d.height=u,d.style.width=i+"px",d.style.height=a+"px";e.textureMult=1,s<=1&&(d=r.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,d.width=l*e.textureMult,d.height=u*e.textureMult),e.canvasWidth=l,e.canvasHeight=u,e.pixelRatio=s}};Au.renderTo=function(t,e,r,n){this.render({forcedContext:t,forcedZoom:e,forcedPan:r,drawAllLayers:!0,forcedPxRatio:n})};Au.clearCanvas=function(){var t=this,e=t.data;function r(n){n.clearRect(0,0,t.canvasWidth,t.canvasHeight)}r(e.contexts[t.NODE]),r(e.contexts[t.DRAG])};Au.render=function(t){var e=this;t=t||kqe();var r=e.cy,n=t.forcedContext,i=t.drawAllLayers,a=t.drawOnlyNodeLayer,s=t.forcedZoom,o=t.forcedPan,l=t.forcedPxRatio===void 0?this.getPixelRatio():t.forcedPxRatio,u=e.data,d=u.canvasNeedsRedraw,h=e.textureOnViewport&&!n&&(e.pinching||e.hoverData.dragging||e.swipePanning||e.data.wheelZooming),f=t.motionBlur!==void 0?t.motionBlur:e.motionBlur,p=e.motionBlurPxRatio,g=r.hasCompoundNodes(),m=e.hoverData.draggingEles,_=!!(e.hoverData.selecting||e.touchData.selecting);f=f&&!n&&e.motionBlurEnabled&&!_;var v=f;n||(e.prevPxRatio!==l&&(e.invalidateContainerClientCoordsCache(),e.matchCanvasSize(e.container),e.redrawHint("eles",!0),e.redrawHint("drag",!0)),e.prevPxRatio=l),!n&&e.motionBlurTimeout&&clearTimeout(e.motionBlurTimeout),f&&(e.mbFrames==null&&(e.mbFrames=0),e.mbFrames++,e.mbFrames<3&&(v=!1),e.mbFrames>e.minMbLowQualFrames&&(e.motionBlurPxRatio=e.mbPxRBlurry)),e.clearingMotionBlur&&(e.motionBlurPxRatio=1),e.textureDrawLastFrame&&!h&&(d[e.NODE]=!0,d[e.SELECT_BOX]=!0);var y=r.style(),b=r.zoom(),E=s!==void 0?s:b,S=r.pan(),T={x:S.x,y:S.y},C={zoom:b,pan:{x:S.x,y:S.y}},x=e.prevViewport,A=x===void 0||C.zoom!==x.zoom||C.pan.x!==x.pan.x||C.pan.y!==x.pan.y;!A&&!(m&&!g)&&(e.motionBlurPxRatio=1),o&&(T=o),E*=l,T.x*=l,T.y*=l;var R=e.getCachedZSortedEles();function I(Z,re,K,j,se){var le=Z.globalCompositeOperation;Z.globalCompositeOperation="destination-out",e.colorFillStyle(Z,255,255,255,e.motionBlurTransparency),Z.fillRect(re,K,j,se),Z.globalCompositeOperation=le}function L(Z,re){var K,j,se,le;!e.clearingMotionBlur&&(Z===u.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||Z===u.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(K={x:S.x*p,y:S.y*p},j=b*p,se=e.canvasWidth*p,le=e.canvasHeight*p):(K=T,j=E,se=e.canvasWidth,le=e.canvasHeight),Z.setTransform(1,0,0,1,0,0),re==="motionBlur"?I(Z,0,0,se,le):!n&&(re===void 0||re)&&Z.clearRect(0,0,se,le),i||(Z.translate(K.x,K.y),Z.scale(j,j)),o&&Z.translate(o.x,o.y),s&&Z.scale(s,s)}if(h||(e.textureDrawLastFrame=!1),h){if(e.textureDrawLastFrame=!0,!e.textureCache){e.textureCache={},e.textureCache.bb=r.mutableElements().boundingBox(),e.textureCache.texture=e.data.bufferCanvases[e.TEXTURE_BUFFER];var F=e.data.bufferContexts[e.TEXTURE_BUFFER];F.setTransform(1,0,0,1,0,0),F.clearRect(0,0,e.canvasWidth*e.textureMult,e.canvasHeight*e.textureMult),e.render({forcedContext:F,drawOnlyNodeLayer:!0,forcedPxRatio:l*e.textureMult});var C=e.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:e.canvasWidth,height:e.canvasHeight};C.mpan={x:(0-C.pan.x)/C.zoom,y:(0-C.pan.y)/C.zoom}}d[e.DRAG]=!1,d[e.NODE]=!1;var O=u.contexts[e.NODE],D=e.textureCache.texture,C=e.textureCache.viewport;O.setTransform(1,0,0,1,0,0),f?I(O,0,0,C.width,C.height):O.clearRect(0,0,C.width,C.height);var M=y.core("outside-texture-bg-color").value,P=y.core("outside-texture-bg-opacity").value;e.colorFillStyle(O,M[0],M[1],M[2],P),O.fillRect(0,0,C.width,C.height);var b=r.zoom();L(O,!1),O.clearRect(C.mpan.x,C.mpan.y,C.width/C.zoom/l,C.height/C.zoom/l),O.drawImage(D,C.mpan.x,C.mpan.y,C.width/C.zoom/l,C.height/C.zoom/l)}else e.textureOnViewport&&!n&&(e.textureCache=null);var N=r.extent(),$=e.pinching||e.hoverData.dragging||e.swipePanning||e.data.wheelZooming||e.hoverData.draggingEles||e.cy.animated(),U=e.hideEdgesOnViewport&&$,B=[];if(B[e.NODE]=!d[e.NODE]&&f&&!e.clearedForMotionBlur[e.NODE]||e.clearingMotionBlur,B[e.NODE]&&(e.clearedForMotionBlur[e.NODE]=!0),B[e.DRAG]=!d[e.DRAG]&&f&&!e.clearedForMotionBlur[e.DRAG]||e.clearingMotionBlur,B[e.DRAG]&&(e.clearedForMotionBlur[e.DRAG]=!0),d[e.NODE]||i||a||B[e.NODE]){var V=f&&!B[e.NODE]&&p!==1,O=n||(V?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:u.contexts[e.NODE]),z=f&&!V?"motionBlur":void 0;L(O,z),U?e.drawCachedNodes(O,R.nondrag,l,N):e.drawLayeredElements(O,R.nondrag,l,N),e.debug&&e.drawDebugPoints(O,R.nondrag),!i&&!f&&(d[e.NODE]=!1)}if(!a&&(d[e.DRAG]||i||B[e.DRAG])){var V=f&&!B[e.DRAG]&&p!==1,O=n||(V?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:u.contexts[e.DRAG]);L(O,f&&!V?"motionBlur":void 0),U?e.drawCachedNodes(O,R.drag,l,N):e.drawCachedElements(O,R.drag,l,N),e.debug&&e.drawDebugPoints(O,R.drag),!i&&!f&&(d[e.DRAG]=!1)}if(this.drawSelectionRectangle(t,L),f&&p!==1){var G=u.contexts[e.NODE],Y=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],W=u.contexts[e.DRAG],Q=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],ie=function(re,K,j){re.setTransform(1,0,0,1,0,0),j||!v?re.clearRect(0,0,e.canvasWidth,e.canvasHeight):I(re,0,0,e.canvasWidth,e.canvasHeight);var se=p;re.drawImage(K,0,0,e.canvasWidth*se,e.canvasHeight*se,0,0,e.canvasWidth,e.canvasHeight)};(d[e.NODE]||B[e.NODE])&&(ie(G,Y,B[e.NODE]),d[e.NODE]=!1),(d[e.DRAG]||B[e.DRAG])&&(ie(W,Q,B[e.DRAG]),d[e.DRAG]=!1)}e.prevViewport=C,e.clearingMotionBlur&&(e.clearingMotionBlur=!1,e.motionBlurCleared=!0,e.motionBlur=!0),f&&(e.motionBlurTimeout=setTimeout(function(){e.motionBlurTimeout=null,e.clearedForMotionBlur[e.NODE]=!1,e.clearedForMotionBlur[e.DRAG]=!1,e.motionBlur=!1,e.clearingMotionBlur=!h,e.mbFrames=0,d[e.NODE]=!0,d[e.DRAG]=!0,e.redraw()},XNr)),n||r.emit("render")};var YO;Au.drawSelectionRectangle=function(t,e){var r=this,n=r.cy,i=r.data,a=n.style(),s=t.drawOnlyNodeLayer,o=t.drawAllLayers,l=i.canvasNeedsRedraw,u=t.forcedContext;if(r.showFps||!s&&l[r.SELECT_BOX]&&!o){var d=u||i.contexts[r.SELECT_BOX];if(e(d),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var h=r.cy.zoom(),f=a.core("selection-box-border-width").value/h;d.lineWidth=f,d.fillStyle="rgba("+a.core("selection-box-color").value[0]+","+a.core("selection-box-color").value[1]+","+a.core("selection-box-color").value[2]+","+a.core("selection-box-opacity").value+")",d.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]),f>0&&(d.strokeStyle="rgba("+a.core("selection-box-border-color").value[0]+","+a.core("selection-box-border-color").value[1]+","+a.core("selection-box-border-color").value[2]+","+a.core("selection-box-opacity").value+")",d.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]))}if(i.bgActivePosistion&&!r.hoverData.selecting){var h=r.cy.zoom(),p=i.bgActivePosistion;d.fillStyle="rgba("+a.core("active-bg-color").value[0]+","+a.core("active-bg-color").value[1]+","+a.core("active-bg-color").value[2]+","+a.core("active-bg-opacity").value+")",d.beginPath(),d.arc(p.x,p.y,a.core("active-bg-size").pfValue/h,0,2*Math.PI),d.fill()}var g=r.lastRedrawTime;if(r.showFps&&g){g=Math.round(g);var m=Math.round(1e3/g),_="1 frame = "+g+" ms = "+m+" fps";if(d.setTransform(1,0,0,1,0,0),d.fillStyle="rgba(255, 0, 0, 0.75)",d.strokeStyle="rgba(255, 0, 0, 0.75)",d.font="30px Arial",!YO){var v=d.measureText(_);YO=v.actualBoundingBoxAscent}d.fillText(_,0,YO);var y=60;d.strokeRect(0,YO+10,250,20),d.fillRect(0,YO+10,250*Math.min(m/y,1),20)}o||(l[r.SELECT_BOX]=!1)}};function $Re(t,e,r){var n=t.createShader(e);if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(t.getShaderInfoLog(n));return n}function QNr(t,e,r){var n=$Re(t,t.VERTEX_SHADER,e),i=$Re(t,t.FRAGMENT_SHADER,r),a=t.createProgram();if(t.attachShader(a,n),t.attachShader(a,i),t.linkProgram(a),!t.getProgramParameter(a,t.LINK_STATUS))throw new Error("Could not initialize shaders");return a}function ZNr(t,e,r){r===void 0&&(r=e);var n=t.makeOffscreenCanvas(e,r),i=n.context=n.getContext("2d");return n.clear=function(){return i.clearRect(0,0,n.width,n.height)},n.clear(),n}function ide(t){var e=t.pixelRatio,r=t.cy.zoom(),n=t.cy.pan();return{zoom:r*e,pan:{x:n.x*e,y:n.y*e}}}function JNr(t){var e=t.pixelRatio,r=t.cy.zoom();return r*e}function ekr(t,e,r,n,i){var a=n*r+e.x,s=i*r+e.y;return s=Math.round(t.canvasHeight-s),[a,s]}function tkr(t,e){return e.picking?!0:t.pstyle("background-fill").value!=="solid"||t.pstyle("background-image").strValue!=="none"?!1:t.pstyle("border-width").value===0||t.pstyle("border-opacity").value===0?!0:t.pstyle("border-style").value==="solid"}function rkr(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function kv(t,e,r){var n=t[0]/255,i=t[1]/255,a=t[2]/255,s=e,o=r||new Array(4);return o[0]=n*s,o[1]=i*s,o[2]=a*s,o[3]=s,o}function vS(t,e){var r=e||new Array(4);return r[0]=(t>>0&255)/255,r[1]=(t>>8&255)/255,r[2]=(t>>16&255)/255,r[3]=(t>>24&255)/255,r}function nkr(t){return t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]<<24)}function ikr(t,e){var r=t.createTexture();return r.buffer=function(n){t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_NEAREST),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.generateMipmap(t.TEXTURE_2D),t.bindTexture(t.TEXTURE_2D,null)},r.deleteTexture=function(){t.deleteTexture(r)},r}function YVe(t,e){switch(e){case"float":return[1,t.FLOAT,4];case"vec2":return[2,t.FLOAT,4];case"vec3":return[3,t.FLOAT,4];case"vec4":return[4,t.FLOAT,4];case"int":return[1,t.INT,4];case"ivec2":return[2,t.INT,4]}}function WVe(t,e,r){switch(e){case t.FLOAT:return new Float32Array(r);case t.INT:return new Int32Array(r)}}function akr(t,e,r,n,i,a){switch(e){case t.FLOAT:return new Float32Array(r.buffer,a*n,i);case t.INT:return new Int32Array(r.buffer,a*n,i)}}function skr(t,e,r,n){var i=YVe(t,e),a=Uo(i,2),s=a[0],o=a[1],l=WVe(t,o,n),u=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,u),t.bufferData(t.ARRAY_BUFFER,l,t.STATIC_DRAW),o===t.FLOAT?t.vertexAttribPointer(r,s,o,!1,0,0):o===t.INT&&t.vertexAttribIPointer(r,s,o,0,0),t.enableVertexAttribArray(r),t.bindBuffer(t.ARRAY_BUFFER,null),u}function Ep(t,e,r,n){var i=YVe(t,r),a=Uo(i,3),s=a[0],o=a[1],l=a[2],u=WVe(t,o,e*s),d=s*l,h=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,h),t.bufferData(t.ARRAY_BUFFER,e*d,t.DYNAMIC_DRAW),t.enableVertexAttribArray(n),o===t.FLOAT?t.vertexAttribPointer(n,s,o,!1,d,0):o===t.INT&&t.vertexAttribIPointer(n,s,o,d,0),t.vertexAttribDivisor(n,1),t.bindBuffer(t.ARRAY_BUFFER,null);for(var f=new Array(e),p=0;p<e;p++)f[p]=akr(t,o,u,d,s,p);return h.dataArray=u,h.stride=d,h.size=s,h.getView=function(g){return f[g]},h.setPoint=function(g,m,_){var v=f[g];v[0]=m,v[1]=_},h.bufferSubData=function(g){t.bindBuffer(t.ARRAY_BUFFER,h),g?t.bufferSubData(t.ARRAY_BUFFER,0,u,0,g*s):t.bufferSubData(t.ARRAY_BUFFER,0,u)},h}function okr(t,e,r){for(var n=9,i=new Float32Array(e*n),a=new Array(e),s=0;s<e;s++){var o=s*n*4;a[s]=new Float32Array(i.buffer,o,n)}var l=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,l),t.bufferData(t.ARRAY_BUFFER,i.byteLength,t.DYNAMIC_DRAW);for(var u=0;u<3;u++){var d=r+u;t.enableVertexAttribArray(d),t.vertexAttribPointer(d,3,t.FLOAT,!1,36,u*12),t.vertexAttribDivisor(d,1)}return t.bindBuffer(t.ARRAY_BUFFER,null),l.getMatrixView=function(h){return a[h]},l.setData=function(h,f){a[f].set(h,0)},l.bufferSubData=function(){t.bindBuffer(t.ARRAY_BUFFER,l),t.bufferSubData(t.ARRAY_BUFFER,0,i)},l}function lkr(t){var e=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,e);var r=t.createTexture();return t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,r,0),t.bindFramebuffer(t.FRAMEBUFFER,null),e.setFramebufferAttachmentSizes=function(n,i){t.bindTexture(t.TEXTURE_2D,r),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,n,i,0,t.RGBA,t.UNSIGNED_BYTE,null)},e}var GRe=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function bX(){var t=new GRe(9);return GRe!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function zRe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function ckr(t,e,r){var n=e[0],i=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],d=e[7],h=e[8],f=r[0],p=r[1],g=r[2],m=r[3],_=r[4],v=r[5],y=r[6],b=r[7],E=r[8];return t[0]=f*n+p*s+g*u,t[1]=f*i+p*o+g*d,t[2]=f*a+p*l+g*h,t[3]=m*n+_*s+v*u,t[4]=m*i+_*o+v*d,t[5]=m*a+_*l+v*h,t[6]=y*n+b*s+E*u,t[7]=y*i+b*o+E*d,t[8]=y*a+b*l+E*h,t}function d6(t,e,r){var n=e[0],i=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],d=e[7],h=e[8],f=r[0],p=r[1];return t[0]=n,t[1]=i,t[2]=a,t[3]=s,t[4]=o,t[5]=l,t[6]=f*n+p*s+u,t[7]=f*i+p*o+d,t[8]=f*a+p*l+h,t}function qRe(t,e,r){var n=e[0],i=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],d=e[7],h=e[8],f=Math.sin(r),p=Math.cos(r);return t[0]=p*n+f*s,t[1]=p*i+f*o,t[2]=p*a+f*l,t[3]=p*s-f*n,t[4]=p*o-f*i,t[5]=p*l-f*a,t[6]=u,t[7]=d,t[8]=h,t}function vte(t,e,r){var n=r[0],i=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function ukr(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}var dkr=(function(){function t(e,r,n,i){K1(this,t),this.debugID=Math.floor(Math.random()*1e4),this.r=e,this.texSize=r,this.texRows=n,this.texHeight=Math.floor(r/n),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=i(e,r,r),this.scratch=i(e,r,this.texHeight,"scratch")}return j1(t,[{key:"lock",value:function(){this.locked=!0}},{key:"getKeys",value:function(){return new Set(this.keyToLocation.keys())}},{key:"getScale",value:function(r){var n=r.w,i=r.h,a=this.texHeight,s=this.texSize,o=a/i,l=n*o,u=i*o;return l>s&&(o=s/n,l=n*o,u=i*o),{scale:o,texW:l,texH:u}}},{key:"draw",value:function(r,n,i){var a=this;if(this.locked)throw new Error("can't draw, atlas is locked");var s=this.texSize,o=this.texRows,l=this.texHeight,u=this.getScale(n),d=u.scale,h=u.texW,f=u.texH,p=function(b,E){if(i&&E){var S=E.context,T=b.x,C=b.row,x=T,A=l*C;S.save(),S.translate(x,A),S.scale(d,d),i(S,n),S.restore()}},g=[null,null],m=function(){p(a.freePointer,a.canvas),g[0]={x:a.freePointer.x,y:a.freePointer.row*l,w:h,h:f},g[1]={x:a.freePointer.x+h,y:a.freePointer.row*l,w:0,h:f},a.freePointer.x+=h,a.freePointer.x==s&&(a.freePointer.x=0,a.freePointer.row++)},_=function(){var b=a.scratch,E=a.canvas;b.clear(),p({x:0,row:0},b);var S=s-a.freePointer.x,T=h-S,C=l;{var x=a.freePointer.x,A=a.freePointer.row*l,R=S;E.context.drawImage(b,0,0,R,C,x,A,R,C),g[0]={x,y:A,w:R,h:f}}{var I=S,L=(a.freePointer.row+1)*l,F=T;E&&E.context.drawImage(b,I,0,F,C,0,L,F,C),g[1]={x:0,y:L,w:F,h:f}}a.freePointer.x=T,a.freePointer.row++},v=function(){a.freePointer.x=0,a.freePointer.row++};if(this.freePointer.x+h<=s)m();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===s?(v(),m()):this.enableWrapping?_():(v(),m())}return this.keyToLocation.set(r,g),this.needsBuffer=!0,g}},{key:"getOffsets",value:function(r){return this.keyToLocation.get(r)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(r){if(this.locked)return!1;var n=this.texSize,i=this.texRows,a=this.getScale(r),s=a.texW;return this.freePointer.x+s>n?this.freePointer.row<i-1:!0}},{key:"bufferIfNeeded",value:function(r){this.texture||(this.texture=ikr(r,this.debugID)),this.needsBuffer&&(this.texture.buffer(this.canvas),this.needsBuffer=!1,this.locked&&(this.canvas=null,this.scratch=null))}},{key:"dispose",value:function(){this.texture&&(this.texture.deleteTexture(),this.texture=null),this.canvas=null,this.scratch=null,this.locked=!0}}])})(),hkr=(function(){function t(e,r,n,i){K1(this,t),this.r=e,this.texSize=r,this.texRows=n,this.createTextureCanvas=i,this.atlases=[],this.styleKeyToAtlas=new Map,this.markedKeys=new Set}return j1(t,[{key:"getKeys",value:function(){return new Set(this.styleKeyToAtlas.keys())}},{key:"_createAtlas",value:function(){var r=this.r,n=this.texSize,i=this.texRows,a=this.createTextureCanvas;return new dkr(r,n,i,a)}},{key:"_getScratchCanvas",value:function(){if(!this.scratch){var r=this.r,n=this.texSize,i=this.texRows,a=this.createTextureCanvas,s=Math.floor(n/i);this.scratch=a(r,n,s,"scratch")}return this.scratch}},{key:"draw",value:function(r,n,i){var a=this.styleKeyToAtlas.get(r);return a||(a=this.atlases[this.atlases.length-1],(!a||!a.canFit(n))&&(a&&a.lock(),a=this._createAtlas(),this.atlases.push(a)),a.draw(r,n,i),this.styleKeyToAtlas.set(r,a)),a}},{key:"getAtlas",value:function(r){return this.styleKeyToAtlas.get(r)}},{key:"hasAtlas",value:function(r){return this.styleKeyToAtlas.has(r)}},{key:"markKeyForGC",value:function(r){this.markedKeys.add(r)}},{key:"gc",value:function(){var r=this,n=this.markedKeys;if(n.size===0){console.log("nothing to garbage collect");return}var i=[],a=new Map,s=null,o=ed(this.atlases),l;try{var u=function(){var h=l.value,f=h.getKeys(),p=fkr(n,f);if(p.size===0)return i.push(h),f.forEach(function(S){return a.set(S,h)}),1;s||(s=r._createAtlas(),i.push(s));var g=ed(f),m;try{for(g.s();!(m=g.n()).done;){var _=m.value;if(!p.has(_)){var v=h.getOffsets(_),y=Uo(v,2),b=y[0],E=y[1];s.canFit({w:b.w+E.w,h:b.h})||(s.lock(),s=r._createAtlas(),i.push(s)),h.canvas&&(r._copyTextureToNewAtlas(_,h,s),a.set(_,s))}}}catch(S){g.e(S)}finally{g.f()}h.dispose()};for(o.s();!(l=o.n()).done;)u()}catch(d){o.e(d)}finally{o.f()}this.atlases=i,this.styleKeyToAtlas=a,this.markedKeys=new Set}},{key:"_copyTextureToNewAtlas",value:function(r,n,i){var a=n.getOffsets(r),s=Uo(a,2),o=s[0],l=s[1];if(l.w===0)i.draw(r,o,function(f){f.drawImage(n.canvas,o.x,o.y,o.w,o.h,0,0,o.w,o.h)});else{var u=this._getScratchCanvas();u.clear(),u.context.drawImage(n.canvas,o.x,o.y,o.w,o.h,0,0,o.w,o.h),u.context.drawImage(n.canvas,l.x,l.y,l.w,l.h,o.w,0,l.w,l.h);var d=o.w+l.w,h=o.h;i.draw(r,{w:d,h},function(f){f.drawImage(u,0,0,d,h,0,0,d,h)})}}},{key:"getCounts",value:function(){return{keyCount:this.styleKeyToAtlas.size,atlasCount:new Set(this.styleKeyToAtlas.values()).size}}}])})();function fkr(t,e){return t.intersection?t.intersection(e):new Set(d8(t).filter(function(r){return e.has(r)}))}var pkr=(function(){function t(e,r){K1(this,t),this.r=e,this.globalOptions=r,this.atlasSize=r.webglTexSize,this.maxAtlasesPerBatch=r.webglTexPerBatch,this.renderTypes=new Map,this.collections=new Map,this.typeAndIdToKey=new Map}return j1(t,[{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"addAtlasCollection",value:function(r,n){var i=this.globalOptions,a=i.webglTexSize,s=i.createTextureCanvas,o=n.texRows,l=this._cacheScratchCanvas(s),u=new hkr(this.r,a,o,l);this.collections.set(r,u)}},{key:"addRenderType",value:function(r,n){var i=n.collection;if(!this.collections.has(i))throw new Error("invalid atlas collection name '".concat(i,"'"));var a=this.collections.get(i),s=Yn({type:r,atlasCollection:a},n);this.renderTypes.set(r,s)}},{key:"getRenderTypeOpts",value:function(r){return this.renderTypes.get(r)}},{key:"getAtlasCollection",value:function(r){return this.collections.get(r)}},{key:"_cacheScratchCanvas",value:function(r){var n=-1,i=-1,a=null;return function(s,o,l,u){return u?((!a||o!=n||l!=i)&&(n=o,i=l,a=r(s,o,l)),a):r(s,o,l)}}},{key:"_key",value:function(r,n){return"".concat(r,"-").concat(n)}},{key:"invalidate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.forceRedraw,s=a===void 0?!1:a,o=i.filterEle,l=o===void 0?function(){return!0}:o,u=i.filterType,d=u===void 0?function(){return!0}:u,h=!1,f=!1,p=ed(r),g;try{for(p.s();!(g=p.n()).done;){var m=g.value;if(l(m)){var _=ed(this.renderTypes.values()),v;try{var y=function(){var E=v.value,S=E.type;if(d(S)){var T=n.collections.get(E.collection),C=E.getKey(m),x=Array.isArray(C)?C:[C];if(s)x.forEach(function(L){return T.markKeyForGC(L)}),f=!0;else{var A=E.getID?E.getID(m):m.id(),R=n._key(S,A),I=n.typeAndIdToKey.get(R);I!==void 0&&!rkr(x,I)&&(h=!0,n.typeAndIdToKey.delete(R),I.forEach(function(L){return T.markKeyForGC(L)}))}}};for(_.s();!(v=_.n()).done;)y()}catch(b){_.e(b)}finally{_.f()}}}}catch(b){p.e(b)}finally{p.f()}return f&&(this.gc(),h=!1),h}},{key:"gc",value:function(){var r=ed(this.collections.values()),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;i.gc()}}catch(a){r.e(a)}finally{r.f()}}},{key:"getOrCreateAtlas",value:function(r,n,i,a){var s=this.renderTypes.get(n),o=this.collections.get(s.collection),l=!1,u=o.draw(a,i,function(f){s.drawClipped?(f.save(),f.beginPath(),f.rect(0,0,i.w,i.h),f.clip(),s.drawElement(f,r,i,!0,!0),f.restore()):s.drawElement(f,r,i,!0,!0),l=!0});if(l){var d=s.getID?s.getID(r):r.id(),h=this._key(n,d);this.typeAndIdToKey.has(h)?this.typeAndIdToKey.get(h).push(a):this.typeAndIdToKey.set(h,[a])}return u}},{key:"getAtlasInfo",value:function(r,n){var i=this,a=this.renderTypes.get(n),s=a.getKey(r),o=Array.isArray(s)?s:[s];return o.map(function(l){var u=a.getBoundingBox(r,l),d=i.getOrCreateAtlas(r,n,u,l),h=d.getOffsets(l),f=Uo(h,2),p=f[0],g=f[1];return{atlas:d,tex:p,tex1:p,tex2:g,bb:u}})}},{key:"getDebugInfo",value:function(){var r=[],n=ed(this.collections),i;try{for(n.s();!(i=n.n()).done;){var a=Uo(i.value,2),s=a[0],o=a[1],l=o.getCounts(),u=l.keyCount,d=l.atlasCount;r.push({type:s,keyCount:u,atlasCount:d})}}catch(h){n.e(h)}finally{n.f()}return r}}])})(),gkr=(function(){function t(e){K1(this,t),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return j1(t,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(r,n){return n})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(r){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(r):!0}},{key:"getAtlasIndexForBatch",value:function(r){var n=this.batchAtlases.indexOf(r);if(n<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(r),n=this.batchAtlases.length-1}return n}}])})(),mkr=`
  float circleSD(vec2 p, float r) {
    return distance(vec2(0), p) - r; // signed distance
  }
`,_kr=`
  float rectangleSD(vec2 p, vec2 b) {
    vec2 d = abs(p)-b;
    return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0);
  }
`,vkr=`
  float roundRectangleSD(vec2 p, vec2 b, vec4 cr) {
    cr.xy = (p.x > 0.0) ? cr.xy : cr.zw;
    cr.x  = (p.y > 0.0) ? cr.x  : cr.y;
    vec2 q = abs(p) - b + cr.x;
    return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x;
  }
`,ykr=`
  float ellipseSD(vec2 p, vec2 ab) {
    p = abs( p ); // symmetry

    // find root with Newton solver
    vec2 q = ab*(p-ab);
    float w = (q.x<q.y)? 1.570796327 : 0.0;
    for( int i=0; i<5; i++ ) {
      vec2 cs = vec2(cos(w),sin(w));
      vec2 u = ab*vec2( cs.x,cs.y);
      vec2 v = ab*vec2(-cs.y,cs.x);
      w = w + dot(p-u,v)/(dot(p-u,u)+dot(v,v));
    }
    
    // compute final point and distance
    float d = length(p-ab*vec2(cos(w),sin(w)));
    
    // return signed distance
    return (dot(p/ab,p/ab)>1.0) ? d : -d;
  }
`,AN={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},T8={IGNORE:1,USE_BB:2},EX=0,VRe=1,HRe=2,SX=3,yS=4,KL=5,WO=6,KO=7,bkr=(function(){function t(e,r,n){K1(this,t),this.r=e,this.gl=r,this.maxInstances=n.webglBatchSize,this.atlasSize=n.webglTexSize,this.bgColor=n.bgColor,this.debug=n.webglDebug,this.batchDebugInfo=[],n.enableWrapping=!0,n.createTextureCanvas=ZNr,this.atlasManager=new pkr(e,n),this.batchManager=new gkr(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(AN.SCREEN),this.pickingProgram=this._createShaderProgram(AN.PICKING),this.vao=this._createVAO()}return j1(t,[{key:"addAtlasCollection",value:function(r,n){this.atlasManager.addAtlasCollection(r,n)}},{key:"addTextureAtlasRenderType",value:function(r,n){this.atlasManager.addRenderType(r,n)}},{key:"addSimpleShapeRenderType",value:function(r,n){this.simpleShapeOptions.set(r,n)}},{key:"invalidate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.type,a=this.atlasManager;return i?a.invalidate(r,{filterType:function(o){return o===i},forceRedraw:!0}):a.invalidate(r)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(r){var n=this.gl,i=`#version 300 es
      precision highp float;

      uniform mat3 uPanZoomMatrix;
      uniform int  uAtlasSize;
      
      // instanced
      in vec2 aPosition; // a vertex from the unit square
      
      in mat3 aTransform; // used to transform verticies, eg into a bounding box
      in int aVertType; // the type of thing we are rendering

      // the z-index that is output when using picking mode
      in vec4 aIndex;
      
      // For textures
      in int aAtlasId; // which shader unit/atlas to use
      in vec4 aTex; // x/y/w/h of texture in atlas

      // for edges
      in vec4 aPointAPointB;
      in vec4 aPointCPointD;
      in vec2 aLineWidth; // also used for node border width

      // simple shapes
      in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left]
      in vec4 aColor; // also used for edges
      in vec4 aBorderColor; // aLineWidth is used for border width

      // output values passed to the fragment shader
      out vec2 vTexCoord;
      out vec4 vColor;
      out vec2 vPosition;
      // flat values are not interpolated
      flat out int vAtlasId; 
      flat out int vVertType;
      flat out vec2 vTopRight;
      flat out vec2 vBotLeft;
      flat out vec4 vCornerRadius;
      flat out vec4 vBorderColor;
      flat out vec2 vBorderWidth;
      flat out vec4 vIndex;
      
      void main(void) {
        int vid = gl_VertexID;
        vec2 position = aPosition; // TODO make this a vec3, simplifies some code below

        if(aVertType == `.concat(EX,`) {
          float texX = aTex.x; // texture coordinates
          float texY = aTex.y;
          float texW = aTex.z;
          float texH = aTex.w;

          if(vid == 1 || vid == 2 || vid == 4) {
            texX += texW;
          }
          if(vid == 2 || vid == 4 || vid == 5) {
            texY += texH;
          }

          float d = float(uAtlasSize);
          vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1

          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
        }
        else if(aVertType == `).concat(yS," || aVertType == ").concat(KO,` 
             || aVertType == `).concat(KL," || aVertType == ").concat(WO,`) { // simple shapes

          // the bounding box is needed by the fragment shader
          vBotLeft  = (aTransform * vec3(0, 0, 1)).xy; // flat
          vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat
          vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated

          // calculations are done in the fragment shader, just pass these along
          vColor = aColor;
          vCornerRadius = aCornerRadius;
          vBorderColor = aBorderColor;
          vBorderWidth = aLineWidth;

          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
        }
        else if(aVertType == `).concat(VRe,`) {
          vec2 source = aPointAPointB.xy;
          vec2 target = aPointAPointB.zw;

          // adjust the geometry so that the line is centered on the edge
          position.y = position.y - 0.5;

          // stretch the unit square into a long skinny rectangle
          vec2 xBasis = target - source;
          vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));
          vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y;

          gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);
          vColor = aColor;
        } 
        else if(aVertType == `).concat(HRe,`) {
          vec2 pointA = aPointAPointB.xy;
          vec2 pointB = aPointAPointB.zw;
          vec2 pointC = aPointCPointD.xy;
          vec2 pointD = aPointCPointD.zw;

          // adjust the geometry so that the line is centered on the edge
          position.y = position.y - 0.5;

          vec2 p0, p1, p2, pos;
          if(position.x == 0.0) { // The left side of the unit square
            p0 = pointA;
            p1 = pointB;
            p2 = pointC;
            pos = position;
          } else { // The right side of the unit square, use same approach but flip the geometry upside down
            p0 = pointD;
            p1 = pointC;
            p2 = pointB;
            pos = vec2(0.0, -position.y);
          }

          vec2 p01 = p1 - p0;
          vec2 p12 = p2 - p1;
          vec2 p21 = p1 - p2;

          // Find the normal vector.
          vec2 tangent = normalize(normalize(p12) + normalize(p01));
          vec2 normal = vec2(-tangent.y, tangent.x);

          // Find the vector perpendicular to p0 -> p1.
          vec2 p01Norm = normalize(vec2(-p01.y, p01.x));

          // Determine the bend direction.
          float sigma = sign(dot(p01 + p21, normal));
          float width = aLineWidth[0];

          if(sign(pos.y) == -sigma) {
            // This is an intersecting vertex. Adjust the position so that there's no overlap.
            vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);
            gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
          } else {
            // This is a non-intersecting vertex. Treat it like a mitre join.
            vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);
            gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
          }

          vColor = aColor;
        } 
        else if(aVertType == `).concat(SX,` && vid < 3) {
          // massage the first triangle into an edge arrow
          if(vid == 0)
            position = vec2(-0.15, -0.3);
          if(vid == 1)
            position = vec2(  0.0,  0.0);
          if(vid == 2)
            position = vec2( 0.15, -0.3);

          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
          vColor = aColor;
        }
        else {
          gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space
        }

        vAtlasId = aAtlasId;
        vVertType = aVertType;
        vIndex = aIndex;
      }
    `),a=this.batchManager.getIndexArray(),s=`#version 300 es
      precision highp float;

      // declare texture unit for each texture atlas in the batch
      `.concat(a.map(function(u){return"uniform sampler2D uTexture".concat(u,";")}).join(`
	`),`

      uniform vec4 uBGColor;
      uniform float uZoom;

      in vec2 vTexCoord;
      in vec4 vColor;
      in vec2 vPosition; // model coordinates

      flat in int vAtlasId;
      flat in vec4 vIndex;
      flat in int vVertType;
      flat in vec2 vTopRight;
      flat in vec2 vBotLeft;
      flat in vec4 vCornerRadius;
      flat in vec4 vBorderColor;
      flat in vec2 vBorderWidth;

      out vec4 outColor;

      `).concat(mkr,`
      `).concat(_kr,`
      `).concat(vkr,`
      `).concat(ykr,`

      vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha
        return vec4( 
          top.rgb + (bot.rgb * (1.0 - top.a)),
          top.a   + (bot.a   * (1.0 - top.a)) 
        );
      }

      vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance
        // scale to the zoom level so that borders don't look blurry when zoomed in
        // note 1.5 is an aribitrary value chosen because it looks good
        return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); 
      }

      void main(void) {
        if(vVertType == `).concat(EX,`) {
          // look up the texel from the texture unit
          `).concat(a.map(function(u){return"if(vAtlasId == ".concat(u,") outColor = texture(uTexture").concat(u,", vTexCoord);")}).join(`
	else `),`
        } 
        else if(vVertType == `).concat(SX,`) {
          // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out';
          outColor = blend(vColor, uBGColor);
          outColor.a = 1.0; // make opaque, masks out line under arrow
        }
        else if(vVertType == `).concat(yS,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border
          outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done
        }
        else if(vVertType == `).concat(yS," || vVertType == ").concat(KO,` 
          || vVertType == `).concat(KL," || vVertType == ").concat(WO,`) { // use SDF

          float outerBorder = vBorderWidth[0];
          float innerBorder = vBorderWidth[1];
          float borderPadding = outerBorder * 2.0;
          float w = vTopRight.x - vBotLeft.x - borderPadding;
          float h = vTopRight.y - vBotLeft.y - borderPadding;
          vec2 b = vec2(w/2.0, h/2.0); // half width, half height
          vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center

          float d; // signed distance
          if(vVertType == `).concat(yS,`) {
            d = rectangleSD(p, b);
          } else if(vVertType == `).concat(KO,` && w == h) {
            d = circleSD(p, b.x); // faster than ellipse
          } else if(vVertType == `).concat(KO,`) {
            d = ellipseSD(p, b);
          } else {
            d = roundRectangleSD(p, b, vCornerRadius.wzyx);
          }

          // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling
          // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box
          if(d > 0.0) {
            if(d > outerBorder) {
              discard;
            } else {
              outColor = distInterp(vBorderColor, vec4(0), d - outerBorder);
            }
          } else {
            if(d > innerBorder) {
              vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor;
              vec4 innerBorderColor = blend(vBorderColor, vColor);
              outColor = distInterp(innerBorderColor, outerColor, d);
            } 
            else {
              vec4 outerColor;
              if(innerBorder == 0.0 && outerBorder == 0.0) {
                outerColor = vec4(0);
              } else if(innerBorder == 0.0) {
                outerColor = vBorderColor;
              } else {
                outerColor = blend(vBorderColor, vColor);
              }
              outColor = distInterp(vColor, outerColor, d - innerBorder);
            }
          }
        }
        else {
          outColor = vColor;
        }

        `).concat(r.picking?`if(outColor.a == 0.0) discard;
             else outColor = vIndex;`:"",`
      }
    `),o=QNr(n,i,s);o.aPosition=n.getAttribLocation(o,"aPosition"),o.aIndex=n.getAttribLocation(o,"aIndex"),o.aVertType=n.getAttribLocation(o,"aVertType"),o.aTransform=n.getAttribLocation(o,"aTransform"),o.aAtlasId=n.getAttribLocation(o,"aAtlasId"),o.aTex=n.getAttribLocation(o,"aTex"),o.aPointAPointB=n.getAttribLocation(o,"aPointAPointB"),o.aPointCPointD=n.getAttribLocation(o,"aPointCPointD"),o.aLineWidth=n.getAttribLocation(o,"aLineWidth"),o.aColor=n.getAttribLocation(o,"aColor"),o.aCornerRadius=n.getAttribLocation(o,"aCornerRadius"),o.aBorderColor=n.getAttribLocation(o,"aBorderColor"),o.uPanZoomMatrix=n.getUniformLocation(o,"uPanZoomMatrix"),o.uAtlasSize=n.getUniformLocation(o,"uAtlasSize"),o.uBGColor=n.getUniformLocation(o,"uBGColor"),o.uZoom=n.getUniformLocation(o,"uZoom"),o.uTextures=[];for(var l=0;l<this.batchManager.getMaxAtlasesPerBatch();l++)o.uTextures.push(n.getUniformLocation(o,"uTexture".concat(l)));return o}},{key:"_createVAO",value:function(){var r=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=r.length/2;var n=this.maxInstances,i=this.gl,a=this.program,s=i.createVertexArray();return i.bindVertexArray(s),skr(i,"vec2",a.aPosition,r),this.transformBuffer=okr(i,n,a.aTransform),this.indexBuffer=Ep(i,n,"vec4",a.aIndex),this.vertTypeBuffer=Ep(i,n,"int",a.aVertType),this.atlasIdBuffer=Ep(i,n,"int",a.aAtlasId),this.texBuffer=Ep(i,n,"vec4",a.aTex),this.pointAPointBBuffer=Ep(i,n,"vec4",a.aPointAPointB),this.pointCPointDBuffer=Ep(i,n,"vec4",a.aPointCPointD),this.lineWidthBuffer=Ep(i,n,"vec2",a.aLineWidth),this.colorBuffer=Ep(i,n,"vec4",a.aColor),this.cornerRadiusBuffer=Ep(i,n,"vec4",a.aCornerRadius),this.borderColorBuffer=Ep(i,n,"vec4",a.aBorderColor),i.bindVertexArray(null),s}},{key:"buffers",get:function(){var r=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(n){return U_(n,"Buffer")}).map(function(n){return r[n]})),this._buffers}},{key:"startFrame",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AN.SCREEN;this.panZoomMatrix=r,this.renderTarget=n,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(r,n){return r.visible()?n&&n.isVisible?n.isVisible(r):!0:!1}},{key:"drawTexture",value:function(r,n,i){var a=this.atlasManager,s=this.batchManager,o=a.getRenderTypeOpts(i);if(this._isVisible(r,o)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&o.getTexPickingMode){var l=o.getTexPickingMode(r);if(l===T8.IGNORE)return;if(l==T8.USE_BB){this.drawPickingRectangle(r,n,i);return}}var u=a.getAtlasInfo(r,i),d=ed(u),h;try{for(d.s();!(h=d.n()).done;){var f=h.value,p=f.atlas,g=f.tex1,m=f.tex2;s.canAddToCurrentBatch(p)||this.endBatch();for(var _=s.getAtlasIndexForBatch(p),v=0,y=[[g,!0],[m,!1]];v<y.length;v++){var b=Uo(y[v],2),E=b[0],S=b[1];if(E.w!=0){var T=this.instanceCount;this.vertTypeBuffer.getView(T)[0]=EX;var C=this.indexBuffer.getView(T);vS(n,C);var x=this.atlasIdBuffer.getView(T);x[0]=_;var A=this.texBuffer.getView(T);A[0]=E.x,A[1]=E.y,A[2]=E.w,A[3]=E.h;var R=this.transformBuffer.getMatrixView(T);this.setTransformMatrix(r,R,o,f,S),this.instanceCount++,S||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(I){d.e(I)}finally{d.f()}}}},{key:"setTransformMatrix",value:function(r,n,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(i.shapeProps&&i.shapeProps.padding&&(o=r.pstyle(i.shapeProps.padding).pfValue),a){var l=a.bb,u=a.tex1,d=a.tex2,h=u.w/(u.w+d.w);s||(h=1-h);var f=this._getAdjustedBB(l,o,s,h);this._applyTransformMatrix(n,f,i,r)}else{var p=i.getBoundingBox(r),g=this._getAdjustedBB(p,o,!0,1);this._applyTransformMatrix(n,g,i,r)}}},{key:"_applyTransformMatrix",value:function(r,n,i,a){var s,o;zRe(r);var l=i.getRotation?i.getRotation(a):0;if(l!==0){var u=i.getRotationPoint(a),d=u.x,h=u.y;d6(r,r,[d,h]),qRe(r,r,l);var f=i.getRotationOffset(a);s=f.x+(n.xOffset||0),o=f.y+(n.yOffset||0)}else s=n.x1,o=n.y1;d6(r,r,[s,o]),vte(r,r,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(r,n,i,a){var s=r.x1,o=r.y1,l=r.w,u=r.h,d=r.yOffset;n&&(s-=n,o-=n,l+=2*n,u+=2*n);var h=0,f=l*a;return i&&a<1?l=f:!i&&a<1&&(h=l-f,s+=h,l=f),{x1:s,y1:o,w:l,h:u,xOffset:h,yOffset:d}}},{key:"drawPickingRectangle",value:function(r,n,i){var a=this.atlasManager.getRenderTypeOpts(i),s=this.instanceCount;this.vertTypeBuffer.getView(s)[0]=yS;var o=this.indexBuffer.getView(s);vS(n,o);var l=this.colorBuffer.getView(s);kv([0,0,0],1,l);var u=this.transformBuffer.getMatrixView(s);this.setTransformMatrix(r,u,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,n,i){var a=this.simpleShapeOptions.get(i);if(this._isVisible(r,a)){var s=a.shapeProps,o=this._getVertTypeForShape(r,s.shape);if(o===void 0||a.isSimple&&!a.isSimple(r,this.renderTarget)){this.drawTexture(r,n,i);return}var l=this.instanceCount;if(this.vertTypeBuffer.getView(l)[0]=o,o===KL||o===WO){var u=a.getBoundingBox(r),d=this._getCornerRadius(r,s.radius,u),h=this.cornerRadiusBuffer.getView(l);h[0]=d,h[1]=d,h[2]=d,h[3]=d,o===WO&&(h[0]=0,h[2]=0)}var f=this.indexBuffer.getView(l);vS(n,f);var p=this.renderTarget.picking?1:i==="node-body"?r.effectiveOpacity():1,g=this.renderTarget.picking?1:r.pstyle(s.opacity).value*p,m=r.pstyle(s.color).value,_=this.colorBuffer.getView(l);kv(m,g,_);var v=this.lineWidthBuffer.getView(l);if(v[0]=0,v[1]=0,s.border){var y=r.pstyle("border-width").value;if(y>0){var b=r.pstyle("border-color").value,E=p*r.pstyle("border-opacity").value,S=this.borderColorBuffer.getView(l);kv(b,E,S);var T=r.pstyle("border-position").value;if(T==="inside")v[0]=0,v[1]=-y;else if(T==="outside")v[0]=y,v[1]=0;else{var C=y/2;v[0]=C,v[1]=-C}}}var x=this.transformBuffer.getMatrixView(l);this.setTransformMatrix(r,x,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,n){var i=r.pstyle(n).value;switch(i){case"rectangle":return yS;case"ellipse":return KO;case"roundrectangle":case"round-rectangle":return KL;case"bottom-round-rectangle":return WO;default:return}}},{key:"_getCornerRadius",value:function(r,n,i){var a=i.w,s=i.h;if(r.pstyle(n).value==="auto")return T1(a,s);var o=r.pstyle(n).pfValue,l=a/2,u=s/2;return Math.min(o,u,l)}},{key:"drawEdgeArrow",value:function(r,n,i){if(r.visible()){var a=r._private.rscratch,s,o,l;if(i==="source"?(s=a.arrowStartX,o=a.arrowStartY,l=a.srcArrowAngle):(s=a.arrowEndX,o=a.arrowEndY,l=a.tgtArrowAngle),!(isNaN(s)||s==null||isNaN(o)||o==null||isNaN(l)||l==null)){var u=r.pstyle(i+"-arrow-shape").value;if(u!=="none"){var d=r.pstyle(i+"-arrow-color").value,h=r.pstyle("opacity").value,f=r.pstyle("line-opacity").value,p=h*f,g=r.pstyle("width").pfValue,m=r.pstyle("arrow-scale").value,_=this.r.getArrowWidth(g,m),v=this.instanceCount,y=this.transformBuffer.getMatrixView(v);zRe(y),d6(y,y,[s,o]),vte(y,y,[_,_]),qRe(y,y,l),this.vertTypeBuffer.getView(v)[0]=SX;var b=this.indexBuffer.getView(v);vS(n,b);var E=this.colorBuffer.getView(v);kv(d,p,E),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,n){if(r.visible()){var i=this._getEdgePoints(r);if(i){var a=r.pstyle("opacity").value,s=r.pstyle("line-opacity").value,o=r.pstyle("width").pfValue,l=r.pstyle("line-color").value,u=a*s;if(i.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),i.length==4){var d=this.instanceCount;this.vertTypeBuffer.getView(d)[0]=VRe;var h=this.indexBuffer.getView(d);vS(n,h);var f=this.colorBuffer.getView(d);kv(l,u,f);var p=this.lineWidthBuffer.getView(d);p[0]=o;var g=this.pointAPointBBuffer.getView(d);g[0]=i[0],g[1]=i[1],g[2]=i[2],g[3]=i[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var m=0;m<i.length-2;m+=2){var _=this.instanceCount;this.vertTypeBuffer.getView(_)[0]=HRe;var v=this.indexBuffer.getView(_);vS(n,v);var y=this.colorBuffer.getView(_);kv(l,u,y);var b=this.lineWidthBuffer.getView(_);b[0]=o;var E=i[m-2],S=i[m-1],T=i[m],C=i[m+1],x=i[m+2],A=i[m+3],R=i[m+4],I=i[m+5];m==0&&(E=2*T-x+.001,S=2*C-A+.001),m==i.length-4&&(R=2*x-T+.001,I=2*A-C+.001);var L=this.pointAPointBBuffer.getView(_);L[0]=E,L[1]=S,L[2]=T,L[3]=C;var F=this.pointCPointDBuffer.getView(_);F[0]=x,F[1]=A,F[2]=R,F[3]=I,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(r){var n=r._private.rscratch;return!(n.badLine||n.allpts==null||isNaN(n.allpts[0]))}},{key:"_getEdgePoints",value:function(r){var n=r._private.rscratch;if(this._isValidEdge(r)){var i=n.allpts;if(i.length==4)return i;var a=this._getNumSegments(r);return this._getCurveSegmentPoints(i,a)}}},{key:"_getNumSegments",value:function(r){var n=15;return Math.min(Math.max(n,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(r,n){if(r.length==4)return r;for(var i=Array((n+1)*2),a=0;a<=n;a++)if(a==0)i[0]=r[0],i[1]=r[1];else if(a==n)i[a*2]=r[r.length-2],i[a*2+1]=r[r.length-1];else{var s=a/n;this._setCurvePoint(r,s,i,a*2)}return i}},{key:"_setCurvePoint",value:function(r,n,i,a){if(r.length<=2)i[a]=r[0],i[a+1]=r[1];else{for(var s=Array(r.length-2),o=0;o<s.length;o+=2){var l=(1-n)*r[o]+n*r[o+2],u=(1-n)*r[o+1]+n*r[o+3];s[o]=l,s[o+1]=u}return this._setCurvePoint(s,n,i,a)}}},{key:"endBatch",value:function(){var r=this.gl,n=this.vao,i=this.vertexCount,a=this.instanceCount;if(a!==0){var s=this.renderTarget.picking?this.pickingProgram:this.program;r.useProgram(s),r.bindVertexArray(n);var o=ed(this.buffers),l;try{for(o.s();!(l=o.n()).done;){var u=l.value;u.bufferSubData(a)}}catch(g){o.e(g)}finally{o.f()}for(var d=this.batchManager.getAtlases(),h=0;h<d.length;h++)d[h].bufferIfNeeded(r);for(var f=0;f<d.length;f++)r.activeTexture(r.TEXTURE0+f),r.bindTexture(r.TEXTURE_2D,d[f].texture),r.uniform1i(s.uTextures[f],f);r.uniform1f(s.uZoom,JNr(this.r)),r.uniformMatrix3fv(s.uPanZoomMatrix,!1,this.panZoomMatrix),r.uniform1i(s.uAtlasSize,this.batchManager.getAtlasSize());var p=kv(this.bgColor,1);r.uniform4fv(s.uBGColor,p),r.drawArraysInstanced(r.TRIANGLES,0,i,a),r.bindVertexArray(null),r.bindTexture(r.TEXTURE_2D,null),this.debug&&this.batchDebugInfo.push({count:a,atlasCount:d.length}),this.startBatch()}}},{key:"getDebugInfo",value:function(){var r=this.atlasManager.getDebugInfo(),n=r.reduce(function(s,o){return s+o.atlasCount},0),i=this.batchDebugInfo,a=i.reduce(function(s,o){return s+o.count},0);return{atlasInfo:r,totalAtlases:n,wrappedCount:this.wrappedCount,simpleCount:this.simpleCount,batchCount:i.length,batchInfo:i,totalInstances:a}}}])})(),KVe={};KVe.initWebgl=function(t,e){var r=this,n=r.data.contexts[r.WEBGL];t.bgColor=Ekr(r),t.webglTexSize=Math.min(t.webglTexSize,n.getParameter(n.MAX_TEXTURE_SIZE)),t.webglTexRows=Math.min(t.webglTexRows,54),t.webglTexRowsNodes=Math.min(t.webglTexRowsNodes,54),t.webglBatchSize=Math.min(t.webglBatchSize,16384),t.webglTexPerBatch=Math.min(t.webglTexPerBatch,n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)),r.webglDebug=t.webglDebug,r.webglDebugShowAtlases=t.webglDebugShowAtlases,r.pickingFrameBuffer=lkr(n),r.pickingFrameBuffer.needsDraw=!0,r.drawing=new bkr(r,n,t);var i=function(h){return function(f){return r.getTextAngle(f,h)}},a=function(h){return function(f){var p=f.pstyle(h);return p&&p.value}},s=function(h){return function(f){return f.pstyle("".concat(h,"-opacity")).value>0}},o=function(h){var f=h.pstyle("text-events").strValue==="yes";return f?T8.USE_BB:T8.IGNORE},l=function(h){var f=h.position(),p=f.x,g=f.y,m=h.outerWidth(),_=h.outerHeight();return{w:m,h:_,x1:p-m/2,y1:g-_/2}};r.drawing.addAtlasCollection("node",{texRows:t.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:t.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:e.getStyleKey,getBoundingBox:e.getElementBox,drawElement:e.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:l,isSimple:tkr,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:l,isVisible:s("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:l,isVisible:s("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:o,getKey:TX(e.getLabelKey,null),getBoundingBox:CX(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:i(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:a("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:o,getKey:TX(e.getSourceLabelKey,"source"),getBoundingBox:CX(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:i("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:a("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:o,getKey:TX(e.getTargetLabelKey,"target"),getBoundingBox:CX(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:i("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:a("target-label")});var u=rD(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(d,h){var f=!1;h&&h.length>0&&(f|=r.drawing.invalidate(h)),f&&u()}),Skr(r)};function Ekr(t){var e=t.cy.container(),r=e&&e.style&&e.style.backgroundColor||"white";return Eqe(r)}function jVe(t,e){var r=t._private.rscratch;return Jc(r,"labelWrapCachedLines",e)||[]}var TX=function(e,r){return function(n){var i=e(n),a=jVe(n,r);return a.length>1?a.map(function(s,o){return"".concat(i,"_").concat(o)}):i}},CX=function(e,r){return function(n,i){var a=e(n);if(typeof i=="string"){var s=i.indexOf("_");if(s>0){var o=Number(i.substring(s+1)),l=jVe(n,r),u=a.h/l.length,d=u*o,h=a.y1+d;return{x1:a.x1,w:a.w,y1:h,h:u,yOffset:d}}}return a}};function Skr(t){{var e=t.render;t.render=function(a){a=a||{};var s=t.cy;t.webgl&&(s.zoom()>GVe?(Tkr(t),e.call(t,a)):(Ckr(t),QVe(t,a,AN.SCREEN)))}}{var r=t.matchCanvasSize;t.matchCanvasSize=function(a){r.call(t,a),t.pickingFrameBuffer.setFramebufferAttachmentSizes(t.canvasWidth,t.canvasHeight),t.pickingFrameBuffer.needsDraw=!0}}t.findNearestElements=function(a,s,o,l){return Ikr(t,a,s)};{var n=t.invalidateCachedZSortedEles;t.invalidateCachedZSortedEles=function(){n.call(t),t.pickingFrameBuffer.needsDraw=!0}}{var i=t.notify;t.notify=function(a,s){i.call(t,a,s),a==="viewport"||a==="bounds"?t.pickingFrameBuffer.needsDraw=!0:a==="background"&&t.drawing.invalidate(s,{type:"node-body"})}}}function Tkr(t){var e=t.data.contexts[t.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function Ckr(t){var e=function(n){n.save(),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.canvasWidth,t.canvasHeight),n.restore()};e(t.data.contexts[t.NODE]),e(t.data.contexts[t.DRAG])}function wkr(t){var e=t.canvasWidth,r=t.canvasHeight,n=ide(t),i=n.pan,a=n.zoom,s=bX();d6(s,s,[i.x,i.y]),vte(s,s,[a,a]);var o=bX();ukr(o,e,r);var l=bX();return ckr(l,o,s),l}function XVe(t,e){var r=t.canvasWidth,n=t.canvasHeight,i=ide(t),a=i.pan,s=i.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,r,n),e.translate(a.x,a.y),e.scale(s,s)}function xkr(t,e){t.drawSelectionRectangle(e,function(r){return XVe(t,r)})}function Akr(t){var e=t.data.contexts[t.NODE];e.save(),XVe(t,e),e.strokeStyle="rgba(0, 0, 0, 0.3)",e.beginPath(),e.moveTo(-1e3,0),e.lineTo(1e3,0),e.stroke(),e.beginPath(),e.moveTo(0,-1e3),e.lineTo(0,1e3),e.stroke(),e.restore()}function Rkr(t){var e=function(i,a,s){for(var o=i.atlasManager.getAtlasCollection(a),l=t.data.contexts[t.NODE],u=o.atlases,d=0;d<u.length;d++){var h=u[d],f=h.canvas;if(f){var p=f.width,g=f.height,m=p*d,_=f.height*s,v=.4;l.save(),l.scale(v,v),l.drawImage(f,m,_),l.strokeStyle="black",l.rect(m,_,p,g),l.stroke(),l.restore()}}},r=0;e(t.drawing,"node",r++),e(t.drawing,"label",r++)}function Okr(t,e,r,n,i){var a,s,o,l,u=ide(t),d=u.pan,h=u.zoom;{var f=ekr(t,d,h,e,r),p=Uo(f,2),g=p[0],m=p[1],_=6;a=g-_/2,s=m-_/2,o=_,l=_}if(o===0||l===0)return[];var v=t.data.contexts[t.WEBGL];v.bindFramebuffer(v.FRAMEBUFFER,t.pickingFrameBuffer),t.pickingFrameBuffer.needsDraw&&(v.viewport(0,0,v.canvas.width,v.canvas.height),QVe(t,null,AN.PICKING),t.pickingFrameBuffer.needsDraw=!1);var y=o*l,b=new Uint8Array(y*4);v.readPixels(a,s,o,l,v.RGBA,v.UNSIGNED_BYTE,b),v.bindFramebuffer(v.FRAMEBUFFER,null);for(var E=new Set,S=0;S<y;S++){var T=b.slice(S*4,S*4+4),C=nkr(T)-1;C>=0&&E.add(C)}return E}function Ikr(t,e,r){var n=Okr(t,e,r),i=t.getCachedZSortedEles(),a,s,o=ed(n),l;try{for(o.s();!(l=o.n()).done;){var u=l.value,d=i[u];if(!a&&d.isNode()&&(a=d),!s&&d.isEdge()&&(s=d),a&&s)break}}catch(h){o.e(h)}finally{o.f()}return[a,s].filter(Boolean)}function wX(t,e,r){var n=t.drawing;e+=1,r.isNode()?(n.drawNode(r,e,"node-underlay"),n.drawNode(r,e,"node-body"),n.drawTexture(r,e,"label"),n.drawNode(r,e,"node-overlay")):(n.drawEdgeLine(r,e),n.drawEdgeArrow(r,e,"source"),n.drawEdgeArrow(r,e,"target"),n.drawTexture(r,e,"label"),n.drawTexture(r,e,"edge-source-label"),n.drawTexture(r,e,"edge-target-label"))}function QVe(t,e,r){var n;t.webglDebug&&(n=performance.now());var i=t.drawing,a=0;if(r.screen&&t.data.canvasNeedsRedraw[t.SELECT_BOX]&&xkr(t,e),t.data.canvasNeedsRedraw[t.NODE]||r.picking){var s=t.data.contexts[t.WEBGL];r.screen?(s.clearColor(0,0,0,0),s.enable(s.BLEND),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA)):s.disable(s.BLEND),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT),s.viewport(0,0,s.canvas.width,s.canvas.height);var o=wkr(t),l=t.getCachedZSortedEles();if(a=l.length,i.startFrame(o,r),r.screen){for(var u=0;u<l.nondrag.length;u++)wX(t,u,l.nondrag[u]);for(var d=0;d<l.drag.length;d++)wX(t,d,l.drag[d])}else if(r.picking)for(var h=0;h<l.length;h++)wX(t,h,l[h]);i.endFrame(),r.screen&&t.webglDebugShowAtlases&&(Akr(t),Rkr(t)),t.data.canvasNeedsRedraw[t.NODE]=!1,t.data.canvasNeedsRedraw[t.DRAG]=!1}if(t.webglDebug){var f=performance.now(),p=!1,g=Math.ceil(f-n),m=i.getDebugInfo(),_=["".concat(a," elements"),"".concat(m.totalInstances," instances"),"".concat(m.batchCount," batches"),"".concat(m.totalAtlases," atlases"),"".concat(m.wrappedCount," wrapped textures"),"".concat(m.simpleCount," simple shapes")].join(", ");if(p)console.log("WebGL (".concat(r.name,") - time ").concat(g,"ms, ").concat(_));else{console.log("WebGL (".concat(r.name,") - frame time ").concat(g,"ms")),console.log("Totals:"),console.log("  ".concat(_)),console.log("Texture Atlases Used:");var v=m.atlasInfo,y=ed(v),b;try{for(y.s();!(b=y.n()).done;){var E=b.value;console.log("  ".concat(E.type,": ").concat(E.keyCount," keys, ").concat(E.atlasCount," atlases"))}}catch(S){y.e(S)}finally{y.f()}console.log("")}}t.data.gc&&(console.log("Garbage Collect!"),t.data.gc=!1,i.gc())}var Z1={};Z1.drawPolygonPath=function(t,e,r,n,i,a){var s=n/2,o=i/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*a[0],r+o*a[1]);for(var l=1;l<a.length/2;l++)t.lineTo(e+s*a[l*2],r+o*a[l*2+1]);t.closePath()};Z1.drawRoundPolygonPath=function(t,e,r,n,i,a,s){s.forEach(function(o){return NVe(t,o)}),t.closePath()};Z1.drawRoundRectanglePath=function(t,e,r,n,i,a){var s=n/2,o=i/2,l=a==="auto"?T1(n,i):Math.min(a,o,s);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.arcTo(e+s,r-o,e+s,r,l),t.arcTo(e+s,r+o,e,r+o,l),t.arcTo(e-s,r+o,e-s,r,l),t.arcTo(e-s,r-o,e,r-o,l),t.lineTo(e,r-o),t.closePath()};Z1.drawBottomRoundRectanglePath=function(t,e,r,n,i,a){var s=n/2,o=i/2,l=a==="auto"?T1(n,i):a;t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.lineTo(e+s,r-o),t.lineTo(e+s,r),t.arcTo(e+s,r+o,e,r+o,l),t.arcTo(e-s,r+o,e-s,r,l),t.lineTo(e-s,r-o),t.lineTo(e,r-o),t.closePath()};Z1.drawCutRectanglePath=function(t,e,r,n,i,a,s){var o=n/2,l=i/2,u=s==="auto"?Vue():s;t.beginPath&&t.beginPath(),t.moveTo(e-o+u,r-l),t.lineTo(e+o-u,r-l),t.lineTo(e+o,r-l+u),t.lineTo(e+o,r+l-u),t.lineTo(e+o-u,r+l),t.lineTo(e-o+u,r+l),t.lineTo(e-o,r+l-u),t.lineTo(e-o,r-l+u),t.closePath()};Z1.drawBarrelPath=function(t,e,r,n,i){var a=n/2,s=i/2,o=e-a,l=e+a,u=r-s,d=r+s,h=ite(n,i),f=h.widthOffset,p=h.heightOffset,g=h.ctrlPtOffsetPct*f;t.beginPath&&t.beginPath(),t.moveTo(o,u+p),t.lineTo(o,d-p),t.quadraticCurveTo(o+g,d,o+f,d),t.lineTo(l-f,d),t.quadraticCurveTo(l-g,d,l,d-p),t.lineTo(l,u+p),t.quadraticCurveTo(l-g,u,l-f,u),t.lineTo(o+f,u),t.quadraticCurveTo(o+g,u,o,u+p),t.closePath()};var YRe=Math.sin(0),WRe=Math.cos(0),yte={},bte={},ZVe=Math.PI/40;for(var bS=0*Math.PI;bS<2*Math.PI;bS+=ZVe)yte[bS]=Math.sin(bS),bte[bS]=Math.cos(bS);Z1.drawEllipsePath=function(t,e,r,n,i){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,r,n/2,i/2,0,0,2*Math.PI);else for(var a,s,o=n/2,l=i/2,u=0*Math.PI;u<2*Math.PI;u+=ZVe)a=e-o*yte[u]*YRe+o*bte[u]*WRe,s=r+l*bte[u]*YRe+l*yte[u]*WRe,u===0?t.moveTo(a,s):t.lineTo(a,s);t.closePath()};var lD={};lD.createBuffer=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,[r,r.getContext("2d")]};lD.bufferCanvasImage=function(t){var e=this.cy,r=e.mutableElements(),n=r.boundingBox(),i=this.findContainerClientCoords(),a=t.full?Math.ceil(n.w):i[2],s=t.full?Math.ceil(n.h):i[3],o=Gr(t.maxWidth)||Gr(t.maxHeight),l=this.getPixelRatio(),u=1;if(t.scale!==void 0)a*=t.scale,s*=t.scale,u=t.scale;else if(o){var d=1/0,h=1/0;Gr(t.maxWidth)&&(d=u*t.maxWidth/a),Gr(t.maxHeight)&&(h=u*t.maxHeight/s),u=Math.min(d,h),a*=u,s*=u}o||(a*=l,s*=l,u*=l);var f=document.createElement("canvas");f.width=a,f.height=s,f.style.width=a+"px",f.style.height=s+"px";var p=f.getContext("2d");if(a>0&&s>0){p.clearRect(0,0,a,s),p.globalCompositeOperation="source-over";var g=this.getCachedZSortedEles();if(t.full)p.translate(-n.x1*u,-n.y1*u),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(n.x1*u,n.y1*u);else{var m=e.pan(),_={x:m.x*u,y:m.y*u};u*=e.zoom(),p.translate(_.x,_.y),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(-_.x,-_.y)}t.bg&&(p.globalCompositeOperation="destination-over",p.fillStyle=t.bg,p.rect(0,0,a,s),p.fill())}return f};function Nkr(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),i=new Uint8Array(n),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);return new Blob([n],{type:e})}function KRe(t){var e=t.indexOf(",");return t.substr(e+1)}function JVe(t,e,r){var n=function(){return e.toDataURL(r,t.quality)};switch(t.output){case"blob-promise":return new MR(function(i,a){try{e.toBlob(function(s){s!=null?i(s):a(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,t.quality)}catch(s){a(s)}});case"blob":return Nkr(KRe(n()),r);case"base64":return KRe(n());default:return n()}}lD.png=function(t){return JVe(t,this.bufferCanvasImage(t),"image/png")};lD.jpg=function(t){return JVe(t,this.bufferCanvasImage(t),"image/jpeg")};var eHe={};eHe.nodeShapeImpl=function(t,e,r,n,i,a,s,o){switch(t){case"ellipse":return this.drawEllipsePath(e,r,n,i,a);case"polygon":return this.drawPolygonPath(e,r,n,i,a,s);case"round-polygon":return this.drawRoundPolygonPath(e,r,n,i,a,s,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,n,i,a,o);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,n,i,a,s,o);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,n,i,a,o);case"barrel":return this.drawBarrelPath(e,r,n,i,a)}};var kkr=tHe,ki=tHe.prototype;ki.CANVAS_LAYERS=3;ki.SELECT_BOX=0;ki.DRAG=1;ki.NODE=2;ki.WEBGL=3;ki.CANVAS_TYPES=["2d","2d","2d","webgl2"];ki.BUFFER_COUNT=3;ki.TEXTURE_BUFFER=0;ki.MOTIONBLUR_BUFFER_NODE=1;ki.MOTIONBLUR_BUFFER_DRAG=2;function tHe(t){var e=this,r=e.cy.window(),n=r.document;t.webgl&&(ki.CANVAS_LAYERS=e.CANVAS_LAYERS=4,console.log("webgl rendering enabled")),e.data={canvases:new Array(ki.CANVAS_LAYERS),contexts:new Array(ki.CANVAS_LAYERS),canvasNeedsRedraw:new Array(ki.CANVAS_LAYERS),bufferCanvases:new Array(ki.BUFFER_COUNT),bufferContexts:new Array(ki.CANVAS_LAYERS)};var i="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";e.data.canvasContainer=n.createElement("div");var s=e.data.canvasContainer.style;e.data.canvasContainer.style[i]=a,s.position="relative",s.zIndex="0",s.overflow="hidden";var o=t.cy.container();o.appendChild(e.data.canvasContainer),o.style[i]=a;var l={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};Txr()&&(l["-ms-touch-action"]="none",l["touch-action"]="none");for(var u=0;u<ki.CANVAS_LAYERS;u++){var d=e.data.canvases[u]=n.createElement("canvas"),h=ki.CANVAS_TYPES[u];e.data.contexts[u]=d.getContext(h),e.data.contexts[u]||Os("Could not create canvas of type "+h),Object.keys(l).forEach(function(Z){d.style[Z]=l[Z]}),d.style.position="absolute",d.setAttribute("data-id","layer"+u),d.style.zIndex=String(ki.CANVAS_LAYERS-u),e.data.canvasContainer.appendChild(d),e.data.canvasNeedsRedraw[u]=!1}e.data.topCanvas=e.data.canvases[0],e.data.canvases[ki.NODE].setAttribute("data-id","layer"+ki.NODE+"-node"),e.data.canvases[ki.SELECT_BOX].setAttribute("data-id","layer"+ki.SELECT_BOX+"-selectbox"),e.data.canvases[ki.DRAG].setAttribute("data-id","layer"+ki.DRAG+"-drag"),e.data.canvases[ki.WEBGL]&&e.data.canvases[ki.WEBGL].setAttribute("data-id","layer"+ki.WEBGL+"-webgl");for(var u=0;u<ki.BUFFER_COUNT;u++)e.data.bufferCanvases[u]=n.createElement("canvas"),e.data.bufferContexts[u]=e.data.bufferCanvases[u].getContext("2d"),e.data.bufferCanvases[u].style.position="absolute",e.data.bufferCanvases[u].setAttribute("data-id","buffer"+u),e.data.bufferCanvases[u].style.zIndex=String(-u-1),e.data.bufferCanvases[u].style.visibility="hidden";e.pathsEnabled=!0;var f=yu(),p=function(re){return{x:(re.x1+re.x2)/2,y:(re.y1+re.y2)/2}},g=function(re){return{x:-re.w/2,y:-re.h/2}},m=function(re){var K=re[0]._private,j=K.oldBackgroundTimestamp===K.backgroundTimestamp;return!j},_=function(re){return re[0]._private.nodeKey},v=function(re){return re[0]._private.labelStyleKey},y=function(re){return re[0]._private.sourceLabelStyleKey},b=function(re){return re[0]._private.targetLabelStyleKey},E=function(re,K,j,se,le){return e.drawElement(re,K,j,!1,!1,le)},S=function(re,K,j,se,le){return e.drawElementText(re,K,j,se,"main",le)},T=function(re,K,j,se,le){return e.drawElementText(re,K,j,se,"source",le)},C=function(re,K,j,se,le){return e.drawElementText(re,K,j,se,"target",le)},x=function(re){return re.boundingBox(),re[0]._private.bodyBounds},A=function(re){return re.boundingBox(),re[0]._private.labelBounds.main||f},R=function(re){return re.boundingBox(),re[0]._private.labelBounds.source||f},I=function(re){return re.boundingBox(),re[0]._private.labelBounds.target||f},L=function(re,K){return K},F=function(re){return p(x(re))},O=function(re,K,j){var se=re?re+"-":"";return{x:K.x+j.pstyle(se+"text-margin-x").pfValue,y:K.y+j.pstyle(se+"text-margin-y").pfValue}},D=function(re,K,j){var se=re[0]._private.rscratch;return{x:se[K],y:se[j]}},M=function(re){return O("",D(re,"labelX","labelY"),re)},P=function(re){return O("source",D(re,"sourceLabelX","sourceLabelY"),re)},N=function(re){return O("target",D(re,"targetLabelX","targetLabelY"),re)},$=function(re){return g(x(re))},U=function(re){return g(R(re))},B=function(re){return g(I(re))},V=function(re){var K=A(re),j=g(A(re));if(re.isNode()){switch(IA(re.pstyle("text-halign").value)){case"left":j.x=-K.w-(K.leftPad||0);break;case"right":j.x=-(K.rightPad||0);break}switch(NA(re.pstyle("text-valign").value)){case"top":j.y=-K.h-(K.topPad||0);break;case"bottom":j.y=-(K.botPad||0);break}}return j},z=e.data.eleTxrCache=new MI(e,{getKey:_,doesEleInvalidateKey:m,drawElement:E,getBoundingBox:x,getRotationPoint:F,getRotationOffset:$,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),G=e.data.lblTxrCache=new MI(e,{getKey:v,drawElement:S,getBoundingBox:A,getRotationPoint:M,getRotationOffset:V,isVisible:L}),Y=e.data.slbTxrCache=new MI(e,{getKey:y,drawElement:T,getBoundingBox:R,getRotationPoint:P,getRotationOffset:U,isVisible:L}),W=e.data.tlbTxrCache=new MI(e,{getKey:b,drawElement:C,getBoundingBox:I,getRotationPoint:N,getRotationOffset:B,isVisible:L}),Q=e.data.lyrTxrCache=new zVe(e);e.onUpdateEleCalcs(function(re,K){z.invalidateElements(K),G.invalidateElements(K),Y.invalidateElements(K),W.invalidateElements(K),Q.invalidateElements(K);for(var j=0;j<K.length;j++){var se=K[j]._private;se.oldBackgroundTimestamp=se.backgroundTimestamp}});var ie=function(re){for(var K=0;K<re.length;K++)Q.enqueueElementRefinement(re[K].ele)};z.onDequeue(ie),G.onDequeue(ie),Y.onDequeue(ie),W.onDequeue(ie),t.webgl&&e.initWebgl(t,{getStyleKey:_,getLabelKey:v,getSourceLabelKey:y,getTargetLabelKey:b,drawElement:E,drawLabel:S,drawSourceLabel:T,drawTargetLabel:C,getElementBox:x,getLabelBox:A,getSourceLabelBox:R,getTargetLabelBox:I,getElementRotationPoint:F,getElementRotationOffset:$,getLabelRotationPoint:M,getSourceLabelRotationPoint:P,getTargetLabelRotationPoint:N,getLabelRotationOffset:V,getSourceLabelRotationOffset:U,getTargetLabelRotationOffset:B})}ki.redrawHint=function(t,e){var r=this;switch(t){case"eles":r.data.canvasNeedsRedraw[ki.NODE]=e;break;case"drag":r.data.canvasNeedsRedraw[ki.DRAG]=e;break;case"select":r.data.canvasNeedsRedraw[ki.SELECT_BOX]=e;break;case"gc":r.data.gc=!0;break}};var Dkr=typeof Path2D<"u";ki.path2dEnabled=function(t){if(t===void 0)return this.pathsEnabled;this.pathsEnabled=!!t};ki.usePaths=function(){return Dkr&&this.pathsEnabled};ki.setImgSmoothing=function(t,e){t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)};ki.getImgSmoothing=function(t){return t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled};ki.makeOffscreenCanvas=function(t,e){var r;if((typeof OffscreenCanvas>"u"?"undefined":ml(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),i=n.document;r=i.createElement("canvas"),r.width=t,r.height=e}return r};[qVe,Mg,q0,nde,TE,Q1,Au,KVe,Z1,lD,eHe].forEach(function(t){Yn(ki,t)});var Mkr=[{name:"null",impl:RVe},{name:"base",impl:UVe},{name:"canvas",impl:kkr}],Lkr=[{type:"layout",extensions:iNr},{type:"renderer",extensions:Mkr}],rHe={},nHe={};function iHe(t,e,r){var n=r,i=function(x){Pa("Can not register `"+e+"` for `"+t+"` since `"+x+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(a3.prototype[e])return i(e);a3.prototype[e]=r}else if(t==="collection"){if(rc.prototype[e])return i(e);rc.prototype[e]=r}else if(t==="layout"){for(var a=function(x){this.options=x,r.call(this,x),fa(this._private)||(this._private={}),this._private.cy=x.cy,this._private.listeners=[],this.createEmitter()},s=a.prototype=Object.create(r.prototype),o=[],l=0;l<o.length;l++){var u=o[l];s[u]=s[u]||function(){return this}}s.start&&!s.run?s.run=function(){return this.start(),this}:!s.start&&s.run&&(s.start=function(){return this.run(),this});var d=r.prototype.stop;s.stop=function(){var C=this.options;if(C&&C.animate){var x=this.animations;if(x)for(var A=0;A<x.length;A++)x[A].stop()}return d?d.call(this):this.emit("layoutstop"),this},s.destroy||(s.destroy=function(){return this}),s.cy=function(){return this._private.cy};var h=function(x){return x._private.cy},f={addEventFields:function(x,A){A.layout=x,A.cy=h(x),A.target=x},bubble:function(){return!0},parent:function(x){return h(x)}};Yn(s,{createEmitter:function(){return this._private.emitter=new C$(f,this),this},emitter:function(){return this._private.emitter},on:function(x,A){return this.emitter().on(x,A),this},one:function(x,A){return this.emitter().one(x,A),this},once:function(x,A){return this.emitter().one(x,A),this},removeListener:function(x,A){return this.emitter().removeListener(x,A),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(x,A){return this.emitter().emit(x,A),this}}),Ma.eventAliasesOn(s),n=a}else if(t==="renderer"&&e!=="null"&&e!=="base"){var p=aHe("renderer","base"),g=p.prototype,m=r,_=r.prototype,v=function(){p.apply(this,arguments),m.apply(this,arguments)},y=v.prototype;for(var b in g){var E=g[b],S=_[b]!=null;if(S)return i(b);y[b]=E}for(var T in _)y[T]=_[T];g.clientFunctions.forEach(function(C){y[C]=y[C]||function(){Os("Renderer does not implement `renderer."+C+"()` on its prototype")}}),n=v}else if(t==="__proto__"||t==="constructor"||t==="prototype")return Os(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return Sqe({map:rHe,keys:[t,e],value:n})}function aHe(t,e){return Tqe({map:rHe,keys:[t,e]})}function Pkr(t,e,r,n,i){return Sqe({map:nHe,keys:[t,e,r,n],value:i})}function Fkr(t,e,r,n){return Tqe({map:nHe,keys:[t,e,r,n]})}var Ete=function(){if(arguments.length===2)return aHe.apply(null,arguments);if(arguments.length===3)return iHe.apply(null,arguments);if(arguments.length===4)return Fkr.apply(null,arguments);if(arguments.length===5)return Pkr.apply(null,arguments);Os("Invalid extension access syntax")};a3.prototype.extension=Ete;Lkr.forEach(function(t){t.extensions.forEach(function(e){iHe(t.type,e.name,e.impl)})});var C8=function(){if(!(this instanceof C8))return new C8;this.length=0},Yb=C8.prototype;Yb.instanceString=function(){return"stylesheet"};Yb.selector=function(t){var e=this.length++;return this[e]={selector:t,properties:[]},this};Yb.css=function(t,e){var r=this.length-1;if(Bn(t))this[r].properties.push({name:t,value:e});else if(fa(t))for(var n=t,i=Object.keys(n),a=0;a<i.length;a++){var s=i[a],o=n[s];if(o!=null){var l=Ol.properties[s]||Ol.properties[p$(s)];if(l!=null){var u=l.name,d=o;this[r].properties.push({name:u,value:d})}}}return this};Yb.style=Yb.css;Yb.generateStyle=function(t){var e=new Ol(t);return this.appendToStyle(e)};Yb.appendToStyle=function(t){for(var e=0;e<this.length;e++){var r=this[e],n=r.selector,i=r.properties;t.selector(n);for(var a=0;a<i.length;a++){var s=i[a];t.css(s.name,s.value)}}return t};var Bkr="3.34.0",yg=function(e){if(e===void 0&&(e={}),fa(e))return new a3(e);if(Bn(e))return Ete.apply(Ete,arguments)};yg.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(yg),t.apply(null,e),this};yg.warnings=function(t){return Iqe(t)};yg.version=Bkr;yg.stylesheet=yg.Stylesheet=C8;var h6={exports:{}},f6={exports:{}},p6={exports:{}},Ukr=p6.exports,jRe;function $kr(){return jRe||(jRe=1,(function(t,e){(function(n,i){t.exports=i()})(Ukr,function(){return(function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.i=function(a){return a},i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:o})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=26)})([(function(r,n,i){function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,r.exports=a}),(function(r,n,i){var a=i(2),s=i(8),o=i(9);function l(d,h,f){a.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=d,this.target=h}l.prototype=Object.create(a.prototype);for(var u in a)l[u]=a[u];l.prototype.getSource=function(){return this.source},l.prototype.getTarget=function(){return this.target},l.prototype.isInterGraph=function(){return this.isInterGraph},l.prototype.getLength=function(){return this.length},l.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},l.prototype.getBendpoints=function(){return this.bendpoints},l.prototype.getLca=function(){return this.lca},l.prototype.getSourceInLca=function(){return this.sourceInLca},l.prototype.getTargetInLca=function(){return this.targetInLca},l.prototype.getOtherEnd=function(d){if(this.source===d)return this.target;if(this.target===d)return this.source;throw"Node is not incident with this edge"},l.prototype.getOtherEndInGraph=function(d,h){for(var f=this.getOtherEnd(d),p=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==p)break;f=f.getOwner().getParent()}return null},l.prototype.updateLength=function(){var d=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),d),this.isOverlapingSourceAndTarget||(this.lengthX=d[0]-d[2],this.lengthY=d[1]-d[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},l.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=l}),(function(r,n,i){function a(s){this.vGraphObject=s}r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(13),l=i(0),u=i(16),d=i(4);function h(p,g,m,_){m==null&&_==null&&(_=g),a.call(this,_),p.graphManager!=null&&(p=p.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=_,this.edges=[],this.graphManager=p,m!=null&&g!=null?this.rect=new o(g.x,g.y,m.width,m.height):this.rect=new o}h.prototype=Object.create(a.prototype);for(var f in a)h[f]=a[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(p){this.rect.width=p},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(p){this.rect.height=p},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new d(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new d(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(p,g){this.rect.x=p.x,this.rect.y=p.y,this.rect.width=g.width,this.rect.height=g.height},h.prototype.setCenter=function(p,g){this.rect.x=p-this.rect.width/2,this.rect.y=g-this.rect.height/2},h.prototype.setLocation=function(p,g){this.rect.x=p,this.rect.y=g},h.prototype.moveBy=function(p,g){this.rect.x+=p,this.rect.y+=g},h.prototype.getEdgeListToNode=function(p){var g=[],m=this;return m.edges.forEach(function(_){if(_.target==p){if(_.source!=m)throw"Incorrect edge source!";g.push(_)}}),g},h.prototype.getEdgesBetween=function(p){var g=[],m=this;return m.edges.forEach(function(_){if(!(_.source==m||_.target==m))throw"Incorrect edge source and/or target";(_.target==p||_.source==p)&&g.push(_)}),g},h.prototype.getNeighborsList=function(){var p=new Set,g=this;return g.edges.forEach(function(m){if(m.source==g)p.add(m.target);else{if(m.target!=g)throw"Incorrect incidency!";p.add(m.source)}}),p},h.prototype.withChildren=function(){var p=new Set,g,m;if(p.add(this),this.child!=null)for(var _=this.child.getNodes(),v=0;v<_.length;v++)g=_[v],m=g.withChildren(),m.forEach(function(y){p.add(y)});return p},h.prototype.getNoOfChildren=function(){var p=0,g;if(this.child==null)p=1;else for(var m=this.child.getNodes(),_=0;_<m.length;_++)g=m[_],p+=g.getNoOfChildren();return p==0&&(p=1),p},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},h.prototype.scatter=function(){var p,g,m=-l.INITIAL_WORLD_BOUNDARY,_=l.INITIAL_WORLD_BOUNDARY;p=l.WORLD_CENTER_X+u.nextDouble()*(_-m)+m;var v=-l.INITIAL_WORLD_BOUNDARY,y=l.INITIAL_WORLD_BOUNDARY;g=l.WORLD_CENTER_Y+u.nextDouble()*(y-v)+v,this.rect.x=p,this.rect.y=g},h.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var p=this.getChild();if(p.updateBounds(!0),this.rect.x=p.getLeft(),this.rect.y=p.getTop(),this.setWidth(p.getRight()-p.getLeft()),this.setHeight(p.getBottom()-p.getTop()),l.NODE_DIMENSIONS_INCLUDE_LABELS){var g=p.getRight()-p.getLeft(),m=p.getBottom()-p.getTop();this.labelWidth>g&&(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)),this.labelHeight>m&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-m)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-m),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(p){var g=this.rect.x;g>l.WORLD_BOUNDARY?g=l.WORLD_BOUNDARY:g<-l.WORLD_BOUNDARY&&(g=-l.WORLD_BOUNDARY);var m=this.rect.y;m>l.WORLD_BOUNDARY?m=l.WORLD_BOUNDARY:m<-l.WORLD_BOUNDARY&&(m=-l.WORLD_BOUNDARY);var _=new d(g,m),v=p.inverseTransformPoint(_);this.setLocation(v.x,v.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h}),(function(r,n,i){function a(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(s){this.x=s},a.prototype.setY=function(s){this.y=s},a.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(0),l=i(6),u=i(3),d=i(1),h=i(13),f=i(12),p=i(11);function g(_,v,y){a.call(this,y),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=_,v!=null&&v instanceof l?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}g.prototype=Object.create(a.prototype);for(var m in a)g[m]=a[m];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(_,v,y){if(v==null&&y==null){var b=_;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(b)>-1)throw"Node already in graph!";return b.owner=this,this.getNodes().push(b),b}else{var E=_;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(y)>-1))throw"Source or target not in graph!";if(!(v.owner==y.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=y.owner?null:(E.source=v,E.target=y,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),y!=v&&y.edges.push(E),E)}},g.prototype.remove=function(_){var v=_;if(_ instanceof u){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var y=v.edges.slice(),b,E=y.length,S=0;S<E;S++)b=y[S],b.isInterGraph?this.graphManager.remove(b):b.source.owner.remove(b);var T=this.nodes.indexOf(v);if(T==-1)throw"Node not in owner node list!";this.nodes.splice(T,1)}else if(_ instanceof d){var b=_;if(b==null)throw"Edge is null!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.owner!=null&&b.target.owner!=null&&b.source.owner==this&&b.target.owner==this))throw"Source and/or target owner is invalid!";var C=b.source.edges.indexOf(b),x=b.target.edges.indexOf(b);if(!(C>-1&&x>-1))throw"Source and/or target doesn't know this edge!";b.source.edges.splice(C,1),b.target!=b.source&&b.target.edges.splice(x,1);var T=b.source.owner.getEdges().indexOf(b);if(T==-1)throw"Not in owner's edge list!";b.source.owner.getEdges().splice(T,1)}},g.prototype.updateLeftTop=function(){for(var _=s.MAX_VALUE,v=s.MAX_VALUE,y,b,E,S=this.getNodes(),T=S.length,C=0;C<T;C++){var x=S[C];y=x.getTop(),b=x.getLeft(),_>y&&(_=y),v>b&&(v=b)}return _==s.MAX_VALUE?null:(S[0].getParent().paddingLeft!=null?E=S[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=_-E,new f(this.left,this.top))},g.prototype.updateBounds=function(_){for(var v=s.MAX_VALUE,y=-s.MAX_VALUE,b=s.MAX_VALUE,E=-s.MAX_VALUE,S,T,C,x,A,R=this.nodes,I=R.length,L=0;L<I;L++){var F=R[L];_&&F.child!=null&&F.updateBounds(),S=F.getLeft(),T=F.getRight(),C=F.getTop(),x=F.getBottom(),v>S&&(v=S),y<T&&(y=T),b>C&&(b=C),E<x&&(E=x)}var O=new h(v,b,y-v,E-b);v==s.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),R[0].getParent().paddingLeft!=null?A=R[0].getParent().paddingLeft:A=this.margin,this.left=O.x-A,this.right=O.x+O.width+A,this.top=O.y-A,this.bottom=O.y+O.height+A},g.calculateBounds=function(_){for(var v=s.MAX_VALUE,y=-s.MAX_VALUE,b=s.MAX_VALUE,E=-s.MAX_VALUE,S,T,C,x,A=_.length,R=0;R<A;R++){var I=_[R];S=I.getLeft(),T=I.getRight(),C=I.getTop(),x=I.getBottom(),v>S&&(v=S),y<T&&(y=T),b>C&&(b=C),E<x&&(E=x)}var L=new h(v,b,y-v,E-b);return L},g.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},g.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},g.prototype.calcEstimatedSize=function(){for(var _=0,v=this.nodes,y=v.length,b=0;b<y;b++){var E=v[b];_+=E.calcEstimatedSize()}return _==0?this.estimatedSize=o.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=_/Math.sqrt(this.nodes.length),this.estimatedSize},g.prototype.updateConnected=function(){var _=this;if(this.nodes.length==0){this.isConnected=!0;return}var v=new p,y=new Set,b=this.nodes[0],E,S,T=b.withChildren();for(T.forEach(function(L){v.push(L),y.add(L)});v.length!==0;){b=v.shift(),E=b.getEdges();for(var C=E.length,x=0;x<C;x++){var A=E[x];if(S=A.getOtherEndInGraph(b,this),S!=null&&!y.has(S)){var R=S.withChildren();R.forEach(function(L){v.push(L),y.add(L)})}}}if(this.isConnected=!1,y.size>=this.nodes.length){var I=0;y.forEach(function(L){L.owner==_&&I++}),I==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,i){var a,s=i(1);function o(l){a=i(5),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(l,u);return this.setRootGraph(d),this.rootGraph},o.prototype.add=function(l,u,d,h,f){if(d==null&&h==null&&f==null){if(l==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return l.parent=u,u.child=l,l}else{f=d,h=u,d=l;var p=h.getOwner(),g=f.getOwner();if(!(p!=null&&p.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(p==g)return d.isInterGraph=!1,p.add(d,h,f);if(d.isInterGraph=!0,d.source=h,d.target=f,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},o.prototype.remove=function(l){if(l instanceof a){var u=l;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var h,f=d.length,p=0;p<f;p++)h=d[p],u.remove(h);var g=[];g=g.concat(u.getNodes());var m;f=g.length;for(var p=0;p<f;p++)m=g[p],u.remove(m);u==this.rootGraph&&this.setRootGraph(null);var _=this.graphs.indexOf(u);this.graphs.splice(_,1),u.parent=null}else if(l instanceof s){if(h=l,h==null)throw"Edge is null!";if(!h.isInterGraph)throw"Not an inter-graph edge!";if(!(h.source!=null&&h.target!=null))throw"Source and/or target is null!";if(!(h.source.edges.indexOf(h)!=-1&&h.target.edges.indexOf(h)!=-1))throw"Source and/or target doesn't know this edge!";var _=h.source.edges.indexOf(h);if(h.source.edges.splice(_,1),_=h.target.edges.indexOf(h),h.target.edges.splice(_,1),!(h.source.owner!=null&&h.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(h.source.owner.getGraphManager().edges.indexOf(h)==-1)throw"Not in owner graph manager's edge list!";var _=h.source.owner.getGraphManager().edges.indexOf(h);h.source.owner.getGraphManager().edges.splice(_,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(this.allNodes==null){for(var l=[],u=this.getGraphs(),d=u.length,h=0;h<d;h++)l=l.concat(u[h].getNodes());this.allNodes=l}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(this.allEdges==null){var l=[],u=this.getGraphs();u.length;for(var d=0;d<u.length;d++)l=l.concat(u[d].getEdges());l=l.concat(this.edges),this.allEdges=l}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(l){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=l},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(l){if(l.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=l,l.parent==null&&(l.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(l,u){if(!(l!=null&&u!=null))throw"assert failed";if(l==u)return!0;var d=l.getOwner(),h;do{if(h=d.getParent(),h==null)break;if(h==u)return!0;if(d=h.getOwner(),d==null)break}while(!0);d=u.getOwner();do{if(h=d.getParent(),h==null)break;if(h==l)return!0;if(d=h.getOwner(),d==null)break}while(!0);return!1},o.prototype.calcLowestCommonAncestors=function(){for(var l,u,d,h,f,p=this.getAllEdges(),g=p.length,m=0;m<g;m++){if(l=p[m],u=l.source,d=l.target,l.lca=null,l.sourceInLca=u,l.targetInLca=d,u==d){l.lca=u.getOwner();continue}for(h=u.getOwner();l.lca==null;){for(l.targetInLca=d,f=d.getOwner();l.lca==null;){if(f==h){l.lca=f;break}if(f==this.rootGraph)break;if(l.lca!=null)throw"assert failed";l.targetInLca=f.getParent(),f=l.targetInLca.getOwner()}if(h==this.rootGraph)break;l.lca==null&&(l.sourceInLca=h.getParent(),h=l.sourceInLca.getOwner())}if(l.lca==null)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(l,u){if(l==u)return l.getOwner();var d=l.getOwner();do{if(d==null)break;var h=u.getOwner();do{if(h==null)break;if(h==d)return h;h=h.getParent().getOwner()}while(!0);d=d.getParent().getOwner()}while(!0);return d},o.prototype.calcInclusionTreeDepths=function(l,u){l==null&&u==null&&(l=this.rootGraph,u=1);for(var d,h=l.getNodes(),f=h.length,p=0;p<f;p++)d=h[p],d.inclusionTreeDepth=u,d.child!=null&&this.calcInclusionTreeDepths(d.child,u+1)},o.prototype.includesInvalidEdge=function(){for(var l,u=this.edges.length,d=0;d<u;d++)if(l=this.edges[d],this.isOneAncestorOfOther(l.source,l.target))return!0;return!1},r.exports=o}),(function(r,n,i){var a=i(0);function s(){}for(var o in a)s[o]=a[o];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=s}),(function(r,n,i){var a=i(12);function s(){}s.calcSeparationAmount=function(o,l,u,d){if(!o.intersects(l))throw"assert failed";var h=new Array(2);this.decideDirectionsForOverlappingNodes(o,l,h),u[0]=Math.min(o.getRight(),l.getRight())-Math.max(o.x,l.x),u[1]=Math.min(o.getBottom(),l.getBottom())-Math.max(o.y,l.y),o.getX()<=l.getX()&&o.getRight()>=l.getRight()?u[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(u[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?u[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(u[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var f=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(f=1);var p=f*u[0],g=u[1]/f;u[0]<g?g=u[0]:p=u[1],u[0]=-1*h[0]*(g/2+d),u[1]=-1*h[1]*(p/2+d)},s.decideDirectionsForOverlappingNodes=function(o,l,u){o.getCenterX()<l.getCenterX()?u[0]=-1:u[0]=1,o.getCenterY()<l.getCenterY()?u[1]=-1:u[1]=1},s.getIntersection2=function(o,l,u){var d=o.getCenterX(),h=o.getCenterY(),f=l.getCenterX(),p=l.getCenterY();if(o.intersects(l))return u[0]=d,u[1]=h,u[2]=f,u[3]=p,!0;var g=o.getX(),m=o.getY(),_=o.getRight(),v=o.getX(),y=o.getBottom(),b=o.getRight(),E=o.getWidthHalf(),S=o.getHeightHalf(),T=l.getX(),C=l.getY(),x=l.getRight(),A=l.getX(),R=l.getBottom(),I=l.getRight(),L=l.getWidthHalf(),F=l.getHeightHalf(),O=!1,D=!1;if(d===f){if(h>p)return u[0]=d,u[1]=m,u[2]=f,u[3]=R,!1;if(h<p)return u[0]=d,u[1]=y,u[2]=f,u[3]=C,!1}else if(h===p){if(d>f)return u[0]=g,u[1]=h,u[2]=x,u[3]=p,!1;if(d<f)return u[0]=_,u[1]=h,u[2]=T,u[3]=p,!1}else{var M=o.height/o.width,P=l.height/l.width,N=(p-h)/(f-d),$=void 0,U=void 0,B=void 0,V=void 0,z=void 0,G=void 0;if(-M===N?d>f?(u[0]=v,u[1]=y,O=!0):(u[0]=_,u[1]=m,O=!0):M===N&&(d>f?(u[0]=g,u[1]=m,O=!0):(u[0]=b,u[1]=y,O=!0)),-P===N?f>d?(u[2]=A,u[3]=R,D=!0):(u[2]=x,u[3]=C,D=!0):P===N&&(f>d?(u[2]=T,u[3]=C,D=!0):(u[2]=I,u[3]=R,D=!0)),O&&D)return!1;if(d>f?h>p?($=this.getCardinalDirection(M,N,4),U=this.getCardinalDirection(P,N,2)):($=this.getCardinalDirection(-M,N,3),U=this.getCardinalDirection(-P,N,1)):h>p?($=this.getCardinalDirection(-M,N,1),U=this.getCardinalDirection(-P,N,3)):($=this.getCardinalDirection(M,N,2),U=this.getCardinalDirection(P,N,4)),!O)switch($){case 1:V=m,B=d+-S/N,u[0]=B,u[1]=V;break;case 2:B=b,V=h+E*N,u[0]=B,u[1]=V;break;case 3:V=y,B=d+S/N,u[0]=B,u[1]=V;break;case 4:B=v,V=h+-E*N,u[0]=B,u[1]=V;break}if(!D)switch(U){case 1:G=C,z=f+-F/N,u[2]=z,u[3]=G;break;case 2:z=I,G=p+L*N,u[2]=z,u[3]=G;break;case 3:G=R,z=f+F/N,u[2]=z,u[3]=G;break;case 4:z=A,G=p+-L*N,u[2]=z,u[3]=G;break}}return!1},s.getCardinalDirection=function(o,l,u){return o>l?u:1+u%4},s.getIntersection=function(o,l,u,d){if(d==null)return this.getIntersection2(o,l,u);var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,_=u.y,v=d.x,y=d.y,b=void 0,E=void 0,S=void 0,T=void 0,C=void 0,x=void 0,A=void 0,R=void 0,I=void 0;return S=g-f,C=h-p,A=p*f-h*g,T=y-_,x=m-v,R=v*_-m*y,I=S*x-T*C,I===0?null:(b=(C*R-x*A)/I,E=(T*A-S*R)/I,new a(b,E))},s.angleOfVector=function(o,l,u,d){var h=void 0;return o!==u?(h=Math.atan((d-l)/(u-o)),u<o?h+=Math.PI:d<l&&(h+=this.TWO_PI)):d<l?h=this.ONE_AND_HALF_PI:h=this.HALF_PI,h},s.doIntersect=function(o,l,u,d){var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,_=u.y,v=d.x,y=d.y,b=(p-h)*(y-_)-(v-m)*(g-f);if(b===0)return!1;var E=((y-_)*(v-h)+(m-v)*(y-f))/b,S=((f-g)*(v-h)+(p-h)*(y-f))/b;return 0<E&&E<1&&0<S&&S<1},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,r.exports=s}),(function(r,n,i){function a(){}a.sign=function(s){return s>0?1:s<0?-1:0},a.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},a.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=a}),(function(r,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,n,i){var a=(function(){function h(f,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,m.key,m)}}return function(f,p,g){return p&&h(f.prototype,p),g&&h(f,g),f}})();function s(h,f){if(!(h instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(f){return{value:f,next:null,prev:null}},l=function(f,p,g,m){return f!==null?f.next=p:m.head=p,g!==null?g.prev=p:m.tail=p,p.prev=f,p.next=g,m.length++,p},u=function(f,p){var g=f.prev,m=f.next;return g!==null?g.next=m:p.head=m,m!==null?m.prev=g:p.tail=g,f.prev=f.next=null,p.length--,f},d=(function(){function h(f){var p=this;s(this,h),this.length=0,this.head=null,this.tail=null,f?.forEach(function(g){return p.push(g)})}return a(h,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(p,g){return l(g.prev,o(p),g,this)}},{key:"insertAfter",value:function(p,g){return l(g,o(p),g.next,this)}},{key:"insertNodeBefore",value:function(p,g){return l(g.prev,p,g,this)}},{key:"insertNodeAfter",value:function(p,g){return l(g,p,g.next,this)}},{key:"push",value:function(p){return l(this.tail,o(p),null,this)}},{key:"unshift",value:function(p){return l(null,o(p),this.head,this)}},{key:"remove",value:function(p){return u(p,this)}},{key:"pop",value:function(){return u(this.tail,this).value}},{key:"popNode",value:function(){return u(this.tail,this)}},{key:"shift",value:function(){return u(this.head,this).value}},{key:"shiftNode",value:function(){return u(this.head,this)}},{key:"get_object_at",value:function(p){if(p<=this.length()){for(var g=1,m=this.head;g<p;)m=m.next,g++;return m.value}}},{key:"set_object_at",value:function(p,g){if(p<=this.length()){for(var m=1,_=this.head;m<p;)_=_.next,m++;_.value=g}}}]),h})();r.exports=d}),(function(r,n,i){function a(s,o,l){this.x=null,this.y=null,s==null&&o==null&&l==null?(this.x=0,this.y=0):typeof s=="number"&&typeof o=="number"&&l==null?(this.x=s,this.y=o):s.constructor.name=="Point"&&o==null&&l==null&&(l=s,this.x=l.x,this.y=l.y)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.getLocation=function(){return new a(this.x,this.y)},a.prototype.setLocation=function(s,o,l){s.constructor.name=="Point"&&o==null&&l==null?(l=s,this.setLocation(l.x,l.y)):typeof s=="number"&&typeof o=="number"&&l==null&&(parseInt(s)==s&&parseInt(o)==o?this.move(s,o):(this.x=Math.floor(s+.5),this.y=Math.floor(o+.5)))},a.prototype.move=function(s,o){this.x=s,this.y=o},a.prototype.translate=function(s,o){this.x+=s,this.y+=o},a.prototype.equals=function(s){if(s.constructor.name=="Point"){var o=s;return this.x==o.x&&this.y==o.y}return this==s},a.prototype.toString=function(){return new a().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=a}),(function(r,n,i){function a(s,o,l,u){this.x=0,this.y=0,this.width=0,this.height=0,s!=null&&o!=null&&l!=null&&u!=null&&(this.x=s,this.y=o,this.width=l,this.height=u)}a.prototype.getX=function(){return this.x},a.prototype.setX=function(s){this.x=s},a.prototype.getY=function(){return this.y},a.prototype.setY=function(s){this.y=s},a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(s){this.width=s},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(s){this.height=s},a.prototype.getRight=function(){return this.x+this.width},a.prototype.getBottom=function(){return this.y+this.height},a.prototype.intersects=function(s){return!(this.getRight()<s.x||this.getBottom()<s.y||s.getRight()<this.x||s.getBottom()<this.y)},a.prototype.getCenterX=function(){return this.x+this.width/2},a.prototype.getMinX=function(){return this.getX()},a.prototype.getMaxX=function(){return this.getX()+this.width},a.prototype.getCenterY=function(){return this.y+this.height/2},a.prototype.getMinY=function(){return this.getY()},a.prototype.getMaxY=function(){return this.getY()+this.height},a.prototype.getWidthHalf=function(){return this.width/2},a.prototype.getHeightHalf=function(){return this.height/2},r.exports=a}),(function(r,n,i){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function s(){}s.lastID=0,s.createID=function(o){return s.isPrimitive(o)?o:(o.uniqueID!=null||(o.uniqueID=s.getString(),s.lastID++),o.uniqueID)},s.getString=function(o){return o==null&&(o=s.lastID),"Object#"+o},s.isPrimitive=function(o){var l=typeof o>"u"?"undefined":a(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,i){function a(m){if(Array.isArray(m)){for(var _=0,v=Array(m.length);_<m.length;_++)v[_]=m[_];return v}else return Array.from(m)}var s=i(0),o=i(6),l=i(3),u=i(1),d=i(5),h=i(4),f=i(17),p=i(27);function g(m){p.call(this),this.layoutQuality=s.QUALITY,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=s.DEFAULT_INCREMENTAL,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,m!=null&&(this.isRemoteUse=m)}g.RANDOM_SEED=1,g.prototype=Object.create(p.prototype),g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},g.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},g.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},g.prototype.newGraphManager=function(){var m=new o(this);return this.graphManager=m,m},g.prototype.newGraph=function(m){return new d(null,this.graphManager,m)},g.prototype.newNode=function(m){return new l(this.graphManager,m)},g.prototype.newEdge=function(m){return new u(null,null,m)},g.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},g.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var m;return this.checkLayoutSuccess()?m=!1:m=this.layout(),s.ANIMATE==="during"?!1:(m&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,m)},g.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},g.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var m=this.graphManager.getAllEdges(),_=0;_<m.length;_++)m[_];for(var v=this.graphManager.getRoot().getNodes(),_=0;_<v.length;_++)v[_];this.update(this.graphManager.getRoot())}},g.prototype.update=function(m){if(m==null)this.update2();else if(m instanceof l){var _=m;if(_.getChild()!=null)for(var v=_.getChild().getNodes(),y=0;y<v.length;y++)update(v[y]);if(_.vGraphObject!=null){var b=_.vGraphObject;b.update(_)}}else if(m instanceof u){var E=m;if(E.vGraphObject!=null){var S=E.vGraphObject;S.update(E)}}else if(m instanceof d){var T=m;if(T.vGraphObject!=null){var C=T.vGraphObject;C.update(T)}}},g.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=s.QUALITY,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=s.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},g.prototype.transform=function(m){if(m==null)this.transform(new h(0,0));else{var _=new f,v=this.graphManager.getRoot().updateLeftTop();if(v!=null){_.setWorldOrgX(m.x),_.setWorldOrgY(m.y),_.setDeviceOrgX(v.x),_.setDeviceOrgY(v.y);for(var y=this.getAllNodes(),b,E=0;E<y.length;E++)b=y[E],b.transform(_)}}},g.prototype.positionNodesRandomly=function(m){if(m==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var _,v,y=m.getNodes(),b=0;b<y.length;b++)_=y[b],v=_.getChild(),v==null||v.getNodes().length==0?_.scatter():(this.positionNodesRandomly(v),_.updateBounds())},g.prototype.getFlatForest=function(){for(var m=[],_=!0,v=this.graphManager.getRoot().getNodes(),y=!0,b=0;b<v.length;b++)v[b].getChild()!=null&&(y=!1);if(!y)return m;var E=new Set,S=[],T=new Map,C=[];for(C=C.concat(v);C.length>0&&_;){for(S.push(C[0]);S.length>0&&_;){var x=S[0];S.splice(0,1),E.add(x);for(var A=x.getEdges(),b=0;b<A.length;b++){var R=A[b].getOtherEnd(x);if(T.get(x)!=R)if(!E.has(R))S.push(R),T.set(R,x);else{_=!1;break}}}if(!_)m=[];else{var I=[].concat(a(E));m.push(I);for(var b=0;b<I.length;b++){var L=I[b],F=C.indexOf(L);F>-1&&C.splice(F,1)}E=new Set,T=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var _=[],v=m.source,y=this.graphManager.calcLowestCommonAncestor(m.source,m.target),b=0;b<m.bendpoints.length;b++){var E=this.newNode(null);E.setRect(new Point(0,0),new Dimension(1,1)),y.add(E);var S=this.newEdge(null);this.graphManager.add(S,v,E),_.add(E),v=E}var S=this.newEdge(null);return this.graphManager.add(S,v,m.target),this.edgeToDummyNodes.set(m,_),m.isInterGraph()?this.graphManager.remove(m):y.remove(m),_},g.prototype.createBendpointsFromDummyNodes=function(){var m=[];m=m.concat(this.graphManager.getAllEdges()),m=[].concat(a(this.edgeToDummyNodes.keys())).concat(m);for(var _=0;_<m.length;_++){var v=m[_];if(v.bendpoints.length>0){for(var y=this.edgeToDummyNodes.get(v),b=0;b<y.length;b++){var E=y[b],S=new h(E.getCenterX(),E.getCenterY()),T=v.bendpoints.get(b);T.x=S.x,T.y=S.y,E.getOwner().remove(E)}this.graphManager.add(v,v.source,v.target)}}},g.transform=function(m,_,v,y){if(v!=null&&y!=null){var b=_;if(m<=50){var E=_/v;b-=(_-E)/50*(50-m)}else{var S=_*y;b+=(S-_)/50*(m-50)}return b}else{var T,C;return m<=50?(T=9*_/500,C=_/10):(T=9*_/50,C=-8*_),T*m+C}},g.findCenterOfTree=function(m){var _=[];_=_.concat(m);var v=[],y=new Map,b=!1,E=null;(_.length==1||_.length==2)&&(b=!0,E=_[0]);for(var S=0;S<_.length;S++){var T=_[S],C=T.getNeighborsList().size;y.set(T,T.getNeighborsList().size),C==1&&v.push(T)}var x=[];for(x=x.concat(v);!b;){var A=[];A=A.concat(x),x=[];for(var S=0;S<_.length;S++){var T=_[S],R=_.indexOf(T);R>=0&&_.splice(R,1);var I=T.getNeighborsList();I.forEach(function(O){if(v.indexOf(O)<0){var D=y.get(O),M=D-1;M==1&&x.push(O),y.set(O,M)}})}v=v.concat(x),(_.length==1||_.length==2)&&(b=!0,E=_[0])}return E},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,n,i){var a=i(4);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,u=this.lworldExtX;return u!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/u),l},s.prototype.transformY=function(o){var l=0,u=this.lworldExtY;return u!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/u),l},s.prototype.inverseTransformX=function(o){var l=0,u=this.ldeviceExtX;return u!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/u),l},s.prototype.inverseTransformY=function(o){var l=0,u=this.ldeviceExtY;return u!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/u),l},s.prototype.inverseTransformPoint=function(o){var l=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,i){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);g<p.length;g++)m[g]=p[g];return m}else return Array.from(p)}var s=i(15),o=i(7),l=i(0),u=i(8),d=i(9);function h(){s.call(this),this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.springConstant=o.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=o.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=o.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=o.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=o.MAX_ITERATIONS}h.prototype=Object.create(s.prototype);for(var f in s)h[f]=s[f];h.prototype.initParameters=function(){s.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var p,g,m,_,v,y,b=this.getGraphManager().getAllEdges(),E=0;E<b.length;E++)p=b[E],p.idealLength=this.idealEdgeLength,p.isInterGraph&&(m=p.getSource(),_=p.getTarget(),v=p.getSourceInLca().getEstimatedSize(),y=p.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(p.idealLength+=v+y-2*l.SIMPLE_NODE_SIZE),g=p.getLca().getInclusionTreeDepth(),p.idealLength+=o.DEFAULT_EDGE_LENGTH*o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(m.getInclusionTreeDepth()+_.getInclusionTreeDepth()-2*g))},h.prototype.initSpringEmbedder=function(){var p=this.getAllNodes().length;this.incremental?(p>o.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(p>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var p=this.getAllEdges(),g,m=0;m<p.length;m++)g=p[m],this.calcSpringForce(g,g.idealLength)},h.prototype.calcRepulsionForces=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,_,v,y,b=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),E=new Set,m=0;m<b.length;m++)v=b[m],this.calculateRepulsionForceOfANode(v,E,p,g),E.add(v);else for(m=0;m<b.length;m++)for(v=b[m],_=m+1;_<b.length;_++)y=b[_],v.getOwner()==y.getOwner()&&this.calcRepulsionForce(v,y)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;m<g.length;m++)p=g[m],this.calcGravitationalForce(p)},h.prototype.moveNodes=function(){for(var p=this.getAllNodes(),g,m=0;m<p.length;m++)g=p[m],g.move()},h.prototype.calcSpringForce=function(p,g){var m=p.getSource(),_=p.getTarget(),v,y,b,E;if(this.uniformLeafNodeSizes&&m.getChild()==null&&_.getChild()==null)p.updateLengthSimple();else if(p.updateLength(),p.isOverlapingSourceAndTarget)return;v=p.getLength(),v!=0&&(y=this.springConstant*(v-g),b=y*(p.lengthX/v),E=y*(p.lengthY/v),m.springForceX+=b,m.springForceY+=E,_.springForceX-=b,_.springForceY-=E)},h.prototype.calcRepulsionForce=function(p,g){var m=p.getRect(),_=g.getRect(),v=new Array(2),y=new Array(4),b,E,S,T,C,x,A;if(m.intersects(_)){u.calcSeparationAmount(m,_,v,o.DEFAULT_EDGE_LENGTH/2),x=2*v[0],A=2*v[1];var R=p.noOfChildren*g.noOfChildren/(p.noOfChildren+g.noOfChildren);p.repulsionForceX-=R*x,p.repulsionForceY-=R*A,g.repulsionForceX+=R*x,g.repulsionForceY+=R*A}else this.uniformLeafNodeSizes&&p.getChild()==null&&g.getChild()==null?(b=_.getCenterX()-m.getCenterX(),E=_.getCenterY()-m.getCenterY()):(u.getIntersection(m,_,y),b=y[2]-y[0],E=y[3]-y[1]),Math.abs(b)<o.MIN_REPULSION_DIST&&(b=d.sign(b)*o.MIN_REPULSION_DIST),Math.abs(E)<o.MIN_REPULSION_DIST&&(E=d.sign(E)*o.MIN_REPULSION_DIST),S=b*b+E*E,T=Math.sqrt(S),C=this.repulsionConstant*p.noOfChildren*g.noOfChildren/S,x=C*b/T,A=C*E/T,p.repulsionForceX-=x,p.repulsionForceY-=A,g.repulsionForceX+=x,g.repulsionForceY+=A},h.prototype.calcGravitationalForce=function(p){var g,m,_,v,y,b,E,S;g=p.getOwner(),m=(g.getRight()+g.getLeft())/2,_=(g.getTop()+g.getBottom())/2,v=p.getCenterX()-m,y=p.getCenterY()-_,b=Math.abs(v)+p.getWidth()/2,E=Math.abs(y)+p.getHeight()/2,p.getOwner()==this.graphManager.getRoot()?(S=g.getEstimatedSize()*this.gravityRangeFactor,(b>S||E>S)&&(p.gravitationForceX=-this.gravityConstant*v,p.gravitationForceY=-this.gravityConstant*y)):(S=g.getEstimatedSize()*this.compoundGravityRangeFactor,(b>S||E>S)&&(p.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,p.gravitationForceY=-this.gravityConstant*y*this.compoundGravityConstant))},h.prototype.isConverged=function(){var p,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),p=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,p||g},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var p,g=this.graphManager.getAllNodes(),m=0;m<g.length;m++)p=g[m],p.noOfChildren=p.getNoOfChildren()},h.prototype.calcGrid=function(p){var g=0,m=0;g=parseInt(Math.ceil((p.getRight()-p.getLeft())/this.repulsionRange)),m=parseInt(Math.ceil((p.getBottom()-p.getTop())/this.repulsionRange));for(var _=new Array(g),v=0;v<g;v++)_[v]=new Array(m);for(var v=0;v<g;v++)for(var y=0;y<m;y++)_[v][y]=new Array;return _},h.prototype.addNodeToGrid=function(p,g,m){var _=0,v=0,y=0,b=0;_=parseInt(Math.floor((p.getRect().x-g)/this.repulsionRange)),v=parseInt(Math.floor((p.getRect().width+p.getRect().x-g)/this.repulsionRange)),y=parseInt(Math.floor((p.getRect().y-m)/this.repulsionRange)),b=parseInt(Math.floor((p.getRect().height+p.getRect().y-m)/this.repulsionRange));for(var E=_;E<=v;E++)for(var S=y;S<=b;S++)this.grid[E][S].push(p),p.setGridCoordinates(_,v,y,b)},h.prototype.updateGrid=function(){var p,g,m=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),p=0;p<m.length;p++)g=m[p],this.addNodeToGrid(g,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(p,g,m,_){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&m||_){var v=new Set;p.surrounding=new Array;for(var y,b=this.grid,E=p.startX-1;E<p.finishX+2;E++)for(var S=p.startY-1;S<p.finishY+2;S++)if(!(E<0||S<0||E>=b.length||S>=b[0].length)){for(var T=0;T<b[E][S].length;T++)if(y=b[E][S][T],!(p.getOwner()!=y.getOwner()||p==y)&&!g.has(y)&&!v.has(y)){var C=Math.abs(p.getCenterX()-y.getCenterX())-(p.getWidth()/2+y.getWidth()/2),x=Math.abs(p.getCenterY()-y.getCenterY())-(p.getHeight()/2+y.getHeight()/2);C<=this.repulsionRange&&x<=this.repulsionRange&&v.add(y)}}p.surrounding=[].concat(a(v))}for(E=0;E<p.surrounding.length;E++)this.calcRepulsionForce(p,p.surrounding[E])},h.prototype.calcRepulsionRange=function(){return 0},r.exports=h}),(function(r,n,i){var a=i(1),s=i(7);function o(u,d,h){a.call(this,u,d,h),this.idealLength=s.DEFAULT_EDGE_LENGTH}o.prototype=Object.create(a.prototype);for(var l in a)o[l]=a[l];r.exports=o}),(function(r,n,i){var a=i(3);function s(l,u,d,h){a.call(this,l,u,d,h),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}s.prototype=Object.create(a.prototype);for(var o in a)s[o]=a[o];s.prototype.setGridCoordinates=function(l,u,d,h){this.startX=l,this.finishX=u,this.startY=d,this.finishY=h},r.exports=s}),(function(r,n,i){function a(s,o){this.width=0,this.height=0,s!==null&&o!==null&&(this.height=o,this.width=s)}a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(s){this.width=s},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(s){this.height=s},r.exports=a}),(function(r,n,i){var a=i(14);function s(){this.map={},this.keys=[]}s.prototype.put=function(o,l){var u=a.createID(o);this.contains(u)||(this.map[u]=l,this.keys.push(o))},s.prototype.contains=function(o){return a.createID(o),this.map[o]!=null},s.prototype.get=function(o){var l=a.createID(o);return this.map[l]},s.prototype.keySet=function(){return this.keys},r.exports=s}),(function(r,n,i){var a=i(14);function s(){this.set={}}s.prototype.add=function(o){var l=a.createID(o);this.contains(l)||(this.set[l]=o)},s.prototype.remove=function(o){delete this.set[a.createID(o)]},s.prototype.clear=function(){this.set={}},s.prototype.contains=function(o){return this.set[a.createID(o)]==o},s.prototype.isEmpty=function(){return this.size()===0},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAllTo=function(o){for(var l=Object.keys(this.set),u=l.length,d=0;d<u;d++)o.push(this.set[l[d]])},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAll=function(o){for(var l=o.length,u=0;u<l;u++){var d=o[u];this.add(d)}},r.exports=s}),(function(r,n,i){var a=(function(){function u(d,h){for(var f=0;f<h.length;f++){var p=h[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,h,f){return h&&u(d.prototype,h),f&&u(d,f),d}})();function s(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}var o=i(11),l=(function(){function u(d,h){s(this,u),(h!==null||h!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var f=void 0;d instanceof o?f=d.size():f=d.length,this._quicksort(d,0,f-1)}return a(u,[{key:"_quicksort",value:function(h,f,p){if(f<p){var g=this._partition(h,f,p);this._quicksort(h,f,g),this._quicksort(h,g+1,p)}}},{key:"_partition",value:function(h,f,p){for(var g=this._get(h,f),m=f,_=p;;){for(;this.compareFunction(g,this._get(h,_));)_--;for(;this.compareFunction(this._get(h,m),g);)m++;if(m<_)this._swap(h,m,_),m++,_--;else return _}}},{key:"_get",value:function(h,f){return h instanceof o?h.get_object_at(f):h[f]}},{key:"_set",value:function(h,f,p){h instanceof o?h.set_object_at(f,p):h[f]=p}},{key:"_swap",value:function(h,f,p){var g=this._get(h,f);this._set(h,f,this._get(h,p)),this._set(h,p,g)}},{key:"_defaultCompareFunction",value:function(h,f){return f>h}}]),u})();r.exports=l}),(function(r,n,i){var a=(function(){function l(u,d){for(var h=0;h<d.length;h++){var f=d[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,d,h){return d&&l(u.prototype,d),h&&l(u,h),u}})();function s(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var o=(function(){function l(u,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=u,this.sequence2=d,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=p,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var g=0;g<this.iMax;g++){this.grid[g]=new Array(this.jMax);for(var m=0;m<this.jMax;m++)this.grid[g][m]=0}this.tracebackGrid=new Array(this.iMax);for(var _=0;_<this.iMax;_++){this.tracebackGrid[_]=new Array(this.jMax);for(var v=0;v<this.jMax;v++)this.tracebackGrid[_][v]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return a(l,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var d=1;d<this.jMax;d++)this.grid[0][d]=this.grid[0][d-1]+this.gap_penalty,this.tracebackGrid[0][d]=[!1,!1,!0];for(var h=1;h<this.iMax;h++)this.grid[h][0]=this.grid[h-1][0]+this.gap_penalty,this.tracebackGrid[h][0]=[!1,!0,!1];for(var f=1;f<this.iMax;f++)for(var p=1;p<this.jMax;p++){var g=void 0;this.sequence1[f-1]===this.sequence2[p-1]?g=this.grid[f-1][p-1]+this.match_score:g=this.grid[f-1][p-1]+this.mismatch_penalty;var m=this.grid[f-1][p]+this.gap_penalty,_=this.grid[f][p-1]+this.gap_penalty,v=[g,m,_],y=this.arrayAllMaxIndexes(v);this.grid[f][p]=v[y[0]],this.tracebackGrid[f][p]=[y.includes(0),y.includes(1),y.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var d=[];for(d.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});d[0];){var h=d[0],f=this.tracebackGrid[h.pos[0]][h.pos[1]];f[0]&&d.push({pos:[h.pos[0]-1,h.pos[1]-1],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),f[1]&&d.push({pos:[h.pos[0]-1,h.pos[1]],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:"-"+h.seq2}),f[2]&&d.push({pos:[h.pos[0],h.pos[1]-1],seq1:"-"+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),h.pos[0]===0&&h.pos[1]===0&&this.alignments.push({sequence1:h.seq1,sequence2:h.seq2}),d.shift()}return this.alignments}},{key:"getAllIndexes",value:function(d,h){for(var f=[],p=-1;(p=d.indexOf(h,p+1))!==-1;)f.push(p);return f}},{key:"arrayAllMaxIndexes",value:function(d){return this.getAllIndexes(d,Math.max.apply(null,d))}}]),l})();r.exports=o}),(function(r,n,i){var a=function(){};a.FDLayout=i(18),a.FDLayoutConstants=i(7),a.FDLayoutEdge=i(19),a.FDLayoutNode=i(20),a.DimensionD=i(21),a.HashMap=i(22),a.HashSet=i(23),a.IGeometry=i(8),a.IMath=i(9),a.Integer=i(10),a.Point=i(12),a.PointD=i(4),a.RandomSeed=i(16),a.RectangleD=i(13),a.Transform=i(17),a.UniqueIDGeneretor=i(14),a.Quicksort=i(24),a.LinkedList=i(11),a.LGraphObject=i(2),a.LGraph=i(5),a.LEdge=i(1),a.LGraphManager=i(6),a.LNode=i(3),a.Layout=i(15),a.LayoutConstants=i(0),a.NeedlemanWunsch=i(25),r.exports=a}),(function(r,n,i){function a(){this.listeners=[]}var s=a.prototype;s.addListener=function(o,l){this.listeners.push({event:o,callback:l})},s.removeListener=function(o,l){for(var u=this.listeners.length;u>=0;u--){var d=this.listeners[u];d.event===o&&d.callback===l&&this.listeners.splice(u,1)}},s.emit=function(o,l){for(var u=0;u<this.listeners.length;u++){var d=this.listeners[u];o===d.event&&d.callback(l)}},r.exports=a})])})})(p6)),p6.exports}var Gkr=f6.exports,XRe;function zkr(){return XRe||(XRe=1,(function(t,e){(function(n,i){t.exports=i($kr())})(Gkr,function(r){return(function(n){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=7)})([(function(n,i){n.exports=r}),(function(n,i,a){var s=a(0).FDLayoutConstants;function o(){}for(var l in s)o[l]=s[l];o.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,o.DEFAULT_RADIAL_SEPARATION=s.DEFAULT_EDGE_LENGTH,o.DEFAULT_COMPONENT_SEPERATION=60,o.TILE=!0,o.TILING_PADDING_VERTICAL=10,o.TILING_PADDING_HORIZONTAL=10,o.TREE_REDUCTION_ON_INCREMENTAL=!1,n.exports=o}),(function(n,i,a){var s=a(0).FDLayoutEdge;function o(u,d,h){s.call(this,u,d,h)}o.prototype=Object.create(s.prototype);for(var l in s)o[l]=s[l];n.exports=o}),(function(n,i,a){var s=a(0).LGraph;function o(u,d,h){s.call(this,u,d,h)}o.prototype=Object.create(s.prototype);for(var l in s)o[l]=s[l];n.exports=o}),(function(n,i,a){var s=a(0).LGraphManager;function o(u){s.call(this,u)}o.prototype=Object.create(s.prototype);for(var l in s)o[l]=s[l];n.exports=o}),(function(n,i,a){var s=a(0).FDLayoutNode,o=a(0).IMath;function l(d,h,f,p){s.call(this,d,h,f,p)}l.prototype=Object.create(s.prototype);for(var u in s)l[u]=s[u];l.prototype.move=function(){var d=this.graphManager.getLayout();this.displacementX=d.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=d.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>d.coolingFactor*d.maxNodeDisplacement&&(this.displacementX=d.coolingFactor*d.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>d.coolingFactor*d.maxNodeDisplacement&&(this.displacementY=d.coolingFactor*d.maxNodeDisplacement*o.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),d.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},l.prototype.propogateDisplacementToChildren=function(d,h){for(var f=this.getChild().getNodes(),p,g=0;g<f.length;g++)p=f[g],p.getChild()==null?(p.moveBy(d,h),p.displacementX+=d,p.displacementY+=h):p.propogateDisplacementToChildren(d,h)},l.prototype.setPred1=function(d){this.pred1=d},l.prototype.getPred1=function(){return pred1},l.prototype.getPred2=function(){return pred2},l.prototype.setNext=function(d){this.next=d},l.prototype.getNext=function(){return next},l.prototype.setProcessed=function(d){this.processed=d},l.prototype.isProcessed=function(){return processed},n.exports=l}),(function(n,i,a){var s=a(0).FDLayout,o=a(4),l=a(3),u=a(5),d=a(2),h=a(1),f=a(0).FDLayoutConstants,p=a(0).LayoutConstants,g=a(0).Point,m=a(0).PointD,_=a(0).Layout,v=a(0).Integer,y=a(0).IGeometry,b=a(0).LGraph,E=a(0).Transform;function S(){s.call(this),this.toBeTiled={}}S.prototype=Object.create(s.prototype);for(var T in s)S[T]=s[T];S.prototype.newGraphManager=function(){var C=new o(this);return this.graphManager=C,C},S.prototype.newGraph=function(C){return new l(null,this.graphManager,C)},S.prototype.newNode=function(C){return new u(this.graphManager,C)},S.prototype.newEdge=function(C){return new d(null,null,C)},S.prototype.initParameters=function(){s.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=f.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=f.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=f.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=f.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=f.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/f.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=f.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},S.prototype.layout=function(){var C=p.DEFAULT_CREATE_BENDS_AS_NEEDED;return C&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},S.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var x=new Set(this.getAllNodes()),A=this.nodesWithGravity.filter(function(L){return x.has(L)});this.graphManager.setAllNodesToApplyGravitation(A)}}else{var C=this.getFlatForest();if(C.length>0)this.positionNodesRadially(C);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var x=new Set(this.getAllNodes()),A=this.nodesWithGravity.filter(function(R){return x.has(R)});this.graphManager.setAllNodesToApplyGravitation(A),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},S.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%f.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var C=new Set(this.getAllNodes()),x=this.nodesWithGravity.filter(function(I){return C.has(I)});this.graphManager.setAllNodesToApplyGravitation(x),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var A=!this.isTreeGrowing&&!this.isGrowthFinished,R=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(A,R),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},S.prototype.getPositionsData=function(){for(var C=this.graphManager.getAllNodes(),x={},A=0;A<C.length;A++){var R=C[A].rect,I=C[A].id;x[I]={id:I,x:R.getCenterX(),y:R.getCenterY(),w:R.width,h:R.height}}return x},S.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var C=!1;if(f.ANIMATE==="during")this.emit("layoutstarted");else{for(;!C;)C=this.tick();this.graphManager.updateBounds()}},S.prototype.calculateNodesToApplyGravitationTo=function(){var C=[],x,A=this.graphManager.getGraphs(),R=A.length,I;for(I=0;I<R;I++)x=A[I],x.updateConnected(),x.isConnected||(C=C.concat(x.getNodes()));return C},S.prototype.createBendpoints=function(){var C=[];C=C.concat(this.graphManager.getAllEdges());var x=new Set,A;for(A=0;A<C.length;A++){var R=C[A];if(!x.has(R)){var I=R.getSource(),L=R.getTarget();if(I==L)R.getBendpoints().push(new m),R.getBendpoints().push(new m),this.createDummyNodesForBendpoints(R),x.add(R);else{var F=[];if(F=F.concat(I.getEdgeListToNode(L)),F=F.concat(L.getEdgeListToNode(I)),!x.has(F[0])){if(F.length>1){var O;for(O=0;O<F.length;O++){var D=F[O];D.getBendpoints().push(new m),this.createDummyNodesForBendpoints(D)}}F.forEach(function(M){x.add(M)})}}}if(x.size==C.length)break}},S.prototype.positionNodesRadially=function(C){for(var x=new g(0,0),A=Math.ceil(Math.sqrt(C.length)),R=0,I=0,L=0,F=new m(0,0),O=0;O<C.length;O++){O%A==0&&(L=0,I=R,O!=0&&(I+=h.DEFAULT_COMPONENT_SEPERATION),R=0);var D=C[O],M=_.findCenterOfTree(D);x.x=L,x.y=I,F=S.radialLayout(D,M,x),F.y>R&&(R=Math.floor(F.y)),L=Math.floor(F.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(p.WORLD_CENTER_X-F.x/2,p.WORLD_CENTER_Y-F.y/2))},S.radialLayout=function(C,x,A){var R=Math.max(this.maxDiagonalInTree(C),h.DEFAULT_RADIAL_SEPARATION);S.branchRadialLayout(x,null,0,359,0,R);var I=b.calculateBounds(C),L=new E;L.setDeviceOrgX(I.getMinX()),L.setDeviceOrgY(I.getMinY()),L.setWorldOrgX(A.x),L.setWorldOrgY(A.y);for(var F=0;F<C.length;F++){var O=C[F];O.transform(L)}var D=new m(I.getMaxX(),I.getMaxY());return L.inverseTransformPoint(D)},S.branchRadialLayout=function(C,x,A,R,I,L){var F=(R-A+1)/2;F<0&&(F+=180);var O=(F+A)%360,D=O*y.TWO_PI/360,M=I*Math.cos(D),P=I*Math.sin(D);C.setCenter(M,P);var N=[];N=N.concat(C.getEdges());var $=N.length;x!=null&&$--;for(var U=0,B=N.length,V,z=C.getEdgesBetween(x);z.length>1;){var G=z[0];z.splice(0,1);var Y=N.indexOf(G);Y>=0&&N.splice(Y,1),B--,$--}x!=null?V=(N.indexOf(z[0])+1)%B:V=0;for(var W=Math.abs(R-A)/$,Q=V;U!=$;Q=++Q%B){var ie=N[Q].getOtherEnd(C);if(ie!=x){var Z=(A+U*W)%360,re=(Z+W)%360;S.branchRadialLayout(ie,C,Z,re,I+L,L),U++}}},S.maxDiagonalInTree=function(C){for(var x=v.MIN_VALUE,A=0;A<C.length;A++){var R=C[A],I=R.getDiagonal();I>x&&(x=I)}return x},S.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},S.prototype.groupZeroDegreeMembers=function(){var C=this,x={};this.memberGroups={},this.idToDummyNode={};for(var A=[],R=this.graphManager.getAllNodes(),I=0;I<R.length;I++){var L=R[I],F=L.getParent();this.getNodeDegreeWithChildren(L)===0&&(F.id==null||!this.getToBeTiled(F))&&A.push(L)}for(var I=0;I<A.length;I++){var L=A[I],O=L.getParent().id;typeof x[O]>"u"&&(x[O]=[]),x[O]=x[O].concat(L)}Object.keys(x).forEach(function(D){if(x[D].length>1){var M="DummyCompound_"+D;C.memberGroups[M]=x[D];var P=x[D][0].getParent(),N=new u(C.graphManager);N.id=M,N.paddingLeft=P.paddingLeft||0,N.paddingRight=P.paddingRight||0,N.paddingBottom=P.paddingBottom||0,N.paddingTop=P.paddingTop||0,C.idToDummyNode[M]=N;var $=C.getGraphManager().add(C.newGraph(),N),U=P.getChild();U.add(N);for(var B=0;B<x[D].length;B++){var V=x[D][B];U.remove(V),$.add(V)}}})},S.prototype.clearCompounds=function(){var C={},x={};this.performDFSOnCompounds();for(var A=0;A<this.compoundOrder.length;A++)x[this.compoundOrder[A].id]=this.compoundOrder[A],C[this.compoundOrder[A].id]=[].concat(this.compoundOrder[A].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[A].getChild()),this.compoundOrder[A].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(C,x)},S.prototype.clearZeroDegreeMembers=function(){var C=this,x=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(A){var R=C.idToDummyNode[A];x[A]=C.tileNodes(C.memberGroups[A],R.paddingLeft+R.paddingRight),R.rect.width=x[A].width,R.rect.height=x[A].height})},S.prototype.repopulateCompounds=function(){for(var C=this.compoundOrder.length-1;C>=0;C--){var x=this.compoundOrder[C],A=x.id,R=x.paddingLeft,I=x.paddingTop;this.adjustLocations(this.tiledMemberPack[A],x.rect.x,x.rect.y,R,I)}},S.prototype.repopulateZeroDegreeMembers=function(){var C=this,x=this.tiledZeroDegreePack;Object.keys(x).forEach(function(A){var R=C.idToDummyNode[A],I=R.paddingLeft,L=R.paddingTop;C.adjustLocations(x[A],R.rect.x,R.rect.y,I,L)})},S.prototype.getToBeTiled=function(C){var x=C.id;if(this.toBeTiled[x]!=null)return this.toBeTiled[x];var A=C.getChild();if(A==null)return this.toBeTiled[x]=!1,!1;for(var R=A.getNodes(),I=0;I<R.length;I++){var L=R[I];if(this.getNodeDegree(L)>0)return this.toBeTiled[x]=!1,!1;if(L.getChild()==null){this.toBeTiled[L.id]=!1;continue}if(!this.getToBeTiled(L))return this.toBeTiled[x]=!1,!1}return this.toBeTiled[x]=!0,!0},S.prototype.getNodeDegree=function(C){C.id;for(var x=C.getEdges(),A=0,R=0;R<x.length;R++){var I=x[R];I.getSource().id!==I.getTarget().id&&(A=A+1)}return A},S.prototype.getNodeDegreeWithChildren=function(C){var x=this.getNodeDegree(C);if(C.getChild()==null)return x;for(var A=C.getChild().getNodes(),R=0;R<A.length;R++){var I=A[R];x+=this.getNodeDegreeWithChildren(I)}return x},S.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},S.prototype.fillCompexOrderByDFS=function(C){for(var x=0;x<C.length;x++){var A=C[x];A.getChild()!=null&&this.fillCompexOrderByDFS(A.getChild().getNodes()),this.getToBeTiled(A)&&this.compoundOrder.push(A)}},S.prototype.adjustLocations=function(C,x,A,R,I){x+=R,A+=I;for(var L=x,F=0;F<C.rows.length;F++){var O=C.rows[F];x=L;for(var D=0,M=0;M<O.length;M++){var P=O[M];P.rect.x=x,P.rect.y=A,x+=P.rect.width+C.horizontalPadding,P.rect.height>D&&(D=P.rect.height)}A+=D+C.verticalPadding}},S.prototype.tileCompoundMembers=function(C,x){var A=this;this.tiledMemberPack=[],Object.keys(C).forEach(function(R){var I=x[R];A.tiledMemberPack[R]=A.tileNodes(C[R],I.paddingLeft+I.paddingRight),I.rect.width=A.tiledMemberPack[R].width,I.rect.height=A.tiledMemberPack[R].height})},S.prototype.tileNodes=function(C,x){var A=h.TILING_PADDING_VERTICAL,R=h.TILING_PADDING_HORIZONTAL,I={rows:[],rowWidth:[],rowHeight:[],width:0,height:x,verticalPadding:A,horizontalPadding:R};C.sort(function(O,D){return O.rect.width*O.rect.height>D.rect.width*D.rect.height?-1:O.rect.width*O.rect.height<D.rect.width*D.rect.height?1:0});for(var L=0;L<C.length;L++){var F=C[L];I.rows.length==0?this.insertNodeToRow(I,F,0,x):this.canAddHorizontal(I,F.rect.width,F.rect.height)?this.insertNodeToRow(I,F,this.getShortestRowIndex(I),x):this.insertNodeToRow(I,F,I.rows.length,x),this.shiftToLastRow(I)}return I},S.prototype.insertNodeToRow=function(C,x,A,R){var I=R;if(A==C.rows.length){var L=[];C.rows.push(L),C.rowWidth.push(I),C.rowHeight.push(0)}var F=C.rowWidth[A]+x.rect.width;C.rows[A].length>0&&(F+=C.horizontalPadding),C.rowWidth[A]=F,C.width<F&&(C.width=F);var O=x.rect.height;A>0&&(O+=C.verticalPadding);var D=0;O>C.rowHeight[A]&&(D=C.rowHeight[A],C.rowHeight[A]=O,D=C.rowHeight[A]-D),C.height+=D,C.rows[A].push(x)},S.prototype.getShortestRowIndex=function(C){for(var x=-1,A=Number.MAX_VALUE,R=0;R<C.rows.length;R++)C.rowWidth[R]<A&&(x=R,A=C.rowWidth[R]);return x},S.prototype.getLongestRowIndex=function(C){for(var x=-1,A=Number.MIN_VALUE,R=0;R<C.rows.length;R++)C.rowWidth[R]>A&&(x=R,A=C.rowWidth[R]);return x},S.prototype.canAddHorizontal=function(C,x,A){var R=this.getShortestRowIndex(C);if(R<0)return!0;var I=C.rowWidth[R];if(I+C.horizontalPadding+x<=C.width)return!0;var L=0;C.rowHeight[R]<A&&R>0&&(L=A+C.verticalPadding-C.rowHeight[R]);var F;C.width-I>=x+C.horizontalPadding?F=(C.height+L)/(I+x+C.horizontalPadding):F=(C.height+L)/C.width,L=A+C.verticalPadding;var O;return C.width<x?O=(C.height+L)/x:O=(C.height+L)/C.width,O<1&&(O=1/O),F<1&&(F=1/F),F<O},S.prototype.shiftToLastRow=function(C){var x=this.getLongestRowIndex(C),A=C.rowWidth.length-1,R=C.rows[x],I=R[R.length-1],L=I.width+C.horizontalPadding;if(C.width-C.rowWidth[A]>L&&x!=A){R.splice(-1,1),C.rows[A].push(I),C.rowWidth[x]=C.rowWidth[x]-L,C.rowWidth[A]=C.rowWidth[A]+L,C.width=C.rowWidth[instance.getLongestRowIndex(C)];for(var F=Number.MIN_VALUE,O=0;O<R.length;O++)R[O].height>F&&(F=R[O].height);x>0&&(F+=C.verticalPadding);var D=C.rowHeight[x]+C.rowHeight[A];C.rowHeight[x]=F,C.rowHeight[A]<I.height+C.verticalPadding&&(C.rowHeight[A]=I.height+C.verticalPadding);var M=C.rowHeight[x]+C.rowHeight[A];C.height+=M-D,this.shiftToLastRow(C)}},S.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},S.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},S.prototype.reduceTrees=function(){for(var C=[],x=!0,A;x;){var R=this.graphManager.getAllNodes(),I=[];x=!1;for(var L=0;L<R.length;L++)A=R[L],A.getEdges().length==1&&!A.getEdges()[0].isInterGraph&&A.getChild()==null&&(I.push([A,A.getEdges()[0],A.getOwner()]),x=!0);if(x==!0){for(var F=[],O=0;O<I.length;O++)I[O][0].getEdges().length==1&&(F.push(I[O]),I[O][0].getOwner().remove(I[O][0]));C.push(F),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=C},S.prototype.growTree=function(C){for(var x=C.length,A=C[x-1],R,I=0;I<A.length;I++)R=A[I],this.findPlaceforPrunedNode(R),R[2].add(R[0]),R[2].add(R[1],R[1].source,R[1].target);C.splice(C.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},S.prototype.findPlaceforPrunedNode=function(C){var x,A,R=C[0];R==C[1].source?A=C[1].target:A=C[1].source;var I=A.startX,L=A.finishX,F=A.startY,O=A.finishY,D=0,M=0,P=0,N=0,$=[D,P,M,N];if(F>0)for(var U=I;U<=L;U++)$[0]+=this.grid[U][F-1].length+this.grid[U][F].length-1;if(L<this.grid.length-1)for(var U=F;U<=O;U++)$[1]+=this.grid[L+1][U].length+this.grid[L][U].length-1;if(O<this.grid[0].length-1)for(var U=I;U<=L;U++)$[2]+=this.grid[U][O+1].length+this.grid[U][O].length-1;if(I>0)for(var U=F;U<=O;U++)$[3]+=this.grid[I-1][U].length+this.grid[I][U].length-1;for(var B=v.MAX_VALUE,V,z,G=0;G<$.length;G++)$[G]<B?(B=$[G],V=1,z=G):$[G]==B&&V++;if(V==3&&B==0)$[0]==0&&$[1]==0&&$[2]==0?x=1:$[0]==0&&$[1]==0&&$[3]==0?x=0:$[0]==0&&$[2]==0&&$[3]==0?x=3:$[1]==0&&$[2]==0&&$[3]==0&&(x=2);else if(V==2&&B==0){var Y=Math.floor(Math.random()*2);$[0]==0&&$[1]==0?Y==0?x=0:x=1:$[0]==0&&$[2]==0?Y==0?x=0:x=2:$[0]==0&&$[3]==0?Y==0?x=0:x=3:$[1]==0&&$[2]==0?Y==0?x=1:x=2:$[1]==0&&$[3]==0?Y==0?x=1:x=3:Y==0?x=2:x=3}else if(V==4&&B==0){var Y=Math.floor(Math.random()*4);x=Y}else x=z;x==0?R.setCenter(A.getCenterX(),A.getCenterY()-A.getHeight()/2-f.DEFAULT_EDGE_LENGTH-R.getHeight()/2):x==1?R.setCenter(A.getCenterX()+A.getWidth()/2+f.DEFAULT_EDGE_LENGTH+R.getWidth()/2,A.getCenterY()):x==2?R.setCenter(A.getCenterX(),A.getCenterY()+A.getHeight()/2+f.DEFAULT_EDGE_LENGTH+R.getHeight()/2):R.setCenter(A.getCenterX()-A.getWidth()/2-f.DEFAULT_EDGE_LENGTH-R.getWidth()/2,A.getCenterY())},n.exports=S}),(function(n,i,a){var s={};s.layoutBase=a(0),s.CoSEConstants=a(1),s.CoSEEdge=a(2),s.CoSEGraph=a(3),s.CoSEGraphManager=a(4),s.CoSELayout=a(6),s.CoSENode=a(5),n.exports=s})])})})(f6)),f6.exports}var qkr=h6.exports,QRe;function Vkr(){return QRe||(QRe=1,(function(t,e){(function(n,i){t.exports=i(zkr())})(qkr,function(r){return(function(n){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=1)})([(function(n,i){n.exports=r}),(function(n,i,a){var s=a(0).layoutBase.LayoutConstants,o=a(0).layoutBase.FDLayoutConstants,l=a(0).CoSEConstants,u=a(0).CoSELayout,d=a(0).CoSENode,h=a(0).layoutBase.PointD,f=a(0).layoutBase.DimensionD,p={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function g(y,b){var E={};for(var S in y)E[S]=y[S];for(var S in b)E[S]=b[S];return E}function m(y){this.options=g(p,y),_(this.options)}var _=function(b){b.nodeRepulsion!=null&&(l.DEFAULT_REPULSION_STRENGTH=o.DEFAULT_REPULSION_STRENGTH=b.nodeRepulsion),b.idealEdgeLength!=null&&(l.DEFAULT_EDGE_LENGTH=o.DEFAULT_EDGE_LENGTH=b.idealEdgeLength),b.edgeElasticity!=null&&(l.DEFAULT_SPRING_STRENGTH=o.DEFAULT_SPRING_STRENGTH=b.edgeElasticity),b.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=b.nestingFactor),b.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=o.DEFAULT_GRAVITY_STRENGTH=b.gravity),b.numIter!=null&&(l.MAX_ITERATIONS=o.MAX_ITERATIONS=b.numIter),b.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=o.DEFAULT_GRAVITY_RANGE_FACTOR=b.gravityRange),b.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=b.gravityCompound),b.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=b.gravityRangeCompound),b.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.DEFAULT_COOLING_FACTOR_INCREMENTAL=b.initialEnergyOnIncremental),b.quality=="draft"?s.QUALITY=0:b.quality=="proof"?s.QUALITY=2:s.QUALITY=1,l.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=b.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!b.randomize,l.ANIMATE=o.ANIMATE=s.ANIMATE=b.animate,l.TILE=b.tile,l.TILING_PADDING_VERTICAL=typeof b.tilingPaddingVertical=="function"?b.tilingPaddingVertical.call():b.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof b.tilingPaddingHorizontal=="function"?b.tilingPaddingHorizontal.call():b.tilingPaddingHorizontal};m.prototype.run=function(){var y,b,E=this.options;this.idToLNode={};var S=this.layout=new u,T=this;T.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var C=S.newGraphManager();this.gm=C;var x=this.options.eles.nodes(),A=this.options.eles.edges();this.root=C.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(x),S);for(var R=0;R<A.length;R++){var I=A[R],L=this.idToLNode[I.data("source")],F=this.idToLNode[I.data("target")];if(L!==F&&L.getEdgesBetween(F).length==0){var O=C.add(S.newEdge(),L,F);O.id=I.id()}}var D=function(N,$){typeof N=="number"&&(N=$);var U=N.data("id"),B=T.idToLNode[U];return{x:B.getRect().getCenterX(),y:B.getRect().getCenterY()}},M=function P(){for(var N=function(){E.fit&&E.cy.fit(E.eles,E.padding),y||(y=!0,T.cy.one("layoutready",E.ready),T.cy.trigger({type:"layoutready",layout:T}))},$=T.options.refresh,U,B=0;B<$&&!U;B++)U=T.stopped||T.layout.tick();if(U){S.checkLayoutSuccess()&&!S.isSubLayout&&S.doPostLayout(),S.tilingPostLayout&&S.tilingPostLayout(),S.isLayoutFinished=!0,T.options.eles.nodes().positions(D),N(),T.cy.one("layoutstop",T.options.stop),T.cy.trigger({type:"layoutstop",layout:T}),b&&cancelAnimationFrame(b),y=!1;return}var V=T.layout.getPositionsData();E.eles.nodes().positions(function(z,G){if(typeof z=="number"&&(z=G),!z.isParent()){for(var Y=z.id(),W=V[Y],Q=z;W==null&&(W=V[Q.data("parent")]||V["DummyCompound_"+Q.data("parent")],V[Y]=W,Q=Q.parent()[0],Q!=null););return W!=null?{x:W.x,y:W.y}:{x:z.position("x"),y:z.position("y")}}}),N(),b=requestAnimationFrame(P)};return S.addListener("layoutstarted",function(){T.options.animate==="during"&&(b=requestAnimationFrame(M))}),S.runLayout(),this.options.animate!=="during"&&(T.options.eles.nodes().not(":parent").layoutPositions(T,T.options,D),y=!1),this},m.prototype.getTopMostNodes=function(y){for(var b={},E=0;E<y.length;E++)b[y[E].id()]=!0;var S=y.filter(function(T,C){typeof T=="number"&&(T=C);for(var x=T.parent()[0];x!=null;){if(b[x.id()])return!1;x=x.parent()[0]}return!0});return S},m.prototype.processChildrenList=function(y,b,E){for(var S=b.length,T=0;T<S;T++){var C=b[T],x=C.children(),A,R=C.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(C.outerWidth()!=null&&C.outerHeight()!=null?A=y.add(new d(E.graphManager,new h(C.position("x")-R.w/2,C.position("y")-R.h/2),new f(parseFloat(R.w),parseFloat(R.h)))):A=y.add(new d(this.graphManager)),A.id=C.data("id"),A.paddingLeft=parseInt(C.css("padding")),A.paddingTop=parseInt(C.css("padding")),A.paddingRight=parseInt(C.css("padding")),A.paddingBottom=parseInt(C.css("padding")),this.options.nodeDimensionsIncludeLabels&&C.isParent()){var I=C.boundingBox({includeLabels:!0,includeNodes:!1}).w,L=C.boundingBox({includeLabels:!0,includeNodes:!1}).h,F=C.css("text-halign");A.labelWidth=I,A.labelHeight=L,A.labelPos=F}if(this.idToLNode[C.data("id")]=A,isNaN(A.rect.x)&&(A.rect.x=0),isNaN(A.rect.y)&&(A.rect.y=0),x!=null&&x.length>0){var O;O=E.getGraphManager().add(E.newGraph(),A),this.processChildrenList(O,x,E)}}},m.prototype.stop=function(){return this.stopped=!0,this};var v=function(b){b("layout","cose-bilkent",m)};typeof cytoscape<"u"&&v(cytoscape),n.exports=v})])})})(h6)),h6.exports}var Hkr=Vkr();const Ykr=sd(Hkr);yg.use(Ykr);function sHe(t,e){t.forEach(r=>{const n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach(i=>{["id","label","height","width","padding","x","y"].includes(i)||(n[i]=r[i])}),e.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}k(sHe,"addNodes");function oHe(t,e){t.forEach(r=>{const n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(i=>{["id","start","end"].includes(i)||(n[i]=r[i])}),e.add({group:"edges",data:n})})}k(oHe,"addEdges");function lHe(t){return new Promise(e=>{const r=dr("body").append("div").attr("id","cy").attr("style","display:none"),n=yg({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),sHe(t.nodes,n),oHe(t.edges,n),n.nodes().forEach(function(a){a.layoutDimensions=()=>{const s=a.data();return{w:s.width,h:s.height}}});const i={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(i).run(),n.ready(a=>{Pe.info("Cytoscape ready",a),e(n)})})}k(lHe,"createCytoscapeInstance");function cHe(t){return t.nodes().map(e=>{const r=e.data(),n=e.position(),i={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach(a=>{a!=="id"&&(i[a]=r[a])}),i})}k(cHe,"extractPositionedNodes");function uHe(t){return t.edges().map(e=>{const r=e.data(),n=e._private.rscratch,i={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach(a=>{["id","source","target"].includes(a)||(i[a]=r[a])}),i})}k(uHe,"extractPositionedEdges");async function dHe(t,e){Pe.debug("Starting cose-bilkent layout algorithm");try{hHe(t);const r=await lHe(t),n=cHe(r),i=uHe(r);return Pe.debug(`Layout completed: ${n.length} nodes, ${i.length} edges`),{nodes:n,edges:i}}catch(r){throw Pe.error("Error in cose-bilkent layout algorithm:",r),r}}k(dHe,"executeCoseBilkentLayout");function hHe(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}k(hHe,"validateLayoutData");var Wkr=k(async(t,e,{insertCluster:r,insertEdge:n,insertEdgeLabel:i,insertMarkers:a,insertNode:s,log:o,positionEdgeLabel:l},{algorithm:u})=>{const d={},h={},f=e.select("g");a(f,t.markers,t.type,t.diagramId);const p=f.insert("g").attr("class","subgraphs"),g=f.insert("g").attr("class","edgePaths"),m=f.insert("g").attr("class","edgeLabels"),_=f.insert("g").attr("class","nodes");o.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async b=>{if(b.isGroup){const E={...b};h[b.id]=E,d[b.id]=E,await r(p,b)}else{const E={...b};d[b.id]=E;const S=await s(_,b,{config:t.config,dir:t.direction||"TB"}),T=S.node().getBBox();E.width=T.width,E.height=T.height,E.domId=S,o.debug(`Node ${b.id} dimensions: ${T.width}x${T.height}`)}})),o.debug("Running cose-bilkent layout algorithm");const v={...t,nodes:t.nodes.map(b=>{const E=d[b.id];return{...b,width:E.width,height:E.height}})},y=await dHe(v,t.config);o.debug("Positioning nodes based on layout results"),y.nodes.forEach(b=>{const E=d[b.id];E?.domId&&(E.domId.attr("transform",`translate(${b.x}, ${b.y})`),E.x=b.x,E.y=b.y,o.debug(`Positioned node ${E.id} at center (${b.x}, ${b.y})`))}),y.edges.forEach(b=>{const E=t.edges.find(S=>S.id===b.id);E&&(E.points=[{x:b.startX,y:b.startY},{x:b.midX,y:b.midY},{x:b.endX,y:b.endY}])}),o.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async b=>{await i(m,b);const E=d[b.start??""],S=d[b.end??""];if(E&&S){const T=y.edges.find(C=>C.id===b.id);if(T){o.debug("APA01 positionedEdge",T);const C={...b},x=n(g,C,h,t.type,E,S,t.diagramId);l(C,x)}else{const C={...b,points:[{x:E.x||0,y:E.y||0},{x:S.x||0,y:S.y||0}]},x=n(g,C,h,t.type,E,S,t.diagramId);l(C,x)}}})),o.debug("Cose-bilkent rendering completed")},"render"),Kkr=Wkr;const jkr=Object.freeze(Object.defineProperty({__proto__:null,render:Kkr},Symbol.toStringTag,{value:"Module"}));var k$=k((t,e)=>{const r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),e.attrs!==void 0)for(const n in e.attrs)r.attr(n,e.attrs[n]);return e.class&&r.attr("class",e.class),r},"drawRect"),fHe=k((t,e)=>{const r={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};k$(t,r).lower()},"drawBackgroundRect"),Xkr=k((t,e)=>{const r=e.text.replace(TR," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);const i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),ade=k((t,e,r,n)=>{const i=t.append("image");i.attr("x",e),i.attr("y",r);const a=pE.sanitizeUrl(n);i.attr("xlink:href",a)},"drawImage"),sde=k((t,e,r,n)=>{const i=t.append("use");i.attr("x",e),i.attr("y",r);const a=pE.sanitizeUrl(n);i.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),th=k(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),ode=k(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),pHe=k(()=>{let t=dr(".mermaidTooltip");return t.empty()&&(t=dr("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip"),w8=(function(){var t=k(function(Oe,je,ct,Fe){for(ct=ct||{},Fe=Oe.length;Fe--;ct[Oe[Fe]]=je);return ct},"o"),e=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],s=[1,63],o=[1,64],l=[1,65],u=[1,66],d=[1,67],h=[1,68],f=[1,69],p=[1,29],g=[1,30],m=[1,31],_=[1,32],v=[1,33],y=[1,34],b=[1,35],E=[1,36],S=[1,37],T=[1,38],C=[1,39],x=[1,40],A=[1,41],R=[1,42],I=[1,43],L=[1,44],F=[1,45],O=[1,46],D=[1,47],M=[1,48],P=[1,50],N=[1,51],$=[1,52],U=[1,53],B=[1,54],V=[1,55],z=[1,56],G=[1,57],Y=[1,58],W=[1,59],Q=[1,60],ie=[14,42],Z=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],re=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],K=[1,82],j=[1,83],se=[1,84],le=[1,85],_e=[12,14,42],ye=[12,14,33,42],Ue=[12,14,33,42,76,77,79,80],Se=[12,33],be=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ke={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:k(function(je,ct,Fe,Xe,et,Ie,we){var ce=Ie.length-1;switch(et){case 3:Xe.setDirection("TB");break;case 4:Xe.setDirection("BT");break;case 5:Xe.setDirection("RL");break;case 6:Xe.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:Xe.setC4Type(Ie[ce-3]);break;case 19:Xe.setTitle(Ie[ce].substring(6)),this.$=Ie[ce].substring(6);break;case 20:Xe.setAccDescription(Ie[ce].substring(15)),this.$=Ie[ce].substring(15);break;case 21:this.$=Ie[ce].trim(),Xe.setTitle(this.$);break;case 22:case 23:this.$=Ie[ce].trim(),Xe.setAccDescription(this.$);break;case 28:Ie[ce].splice(2,0,"ENTERPRISE"),Xe.addPersonOrSystemBoundary(...Ie[ce]),this.$=Ie[ce];break;case 29:Ie[ce].splice(2,0,"SYSTEM"),Xe.addPersonOrSystemBoundary(...Ie[ce]),this.$=Ie[ce];break;case 30:Xe.addPersonOrSystemBoundary(...Ie[ce]),this.$=Ie[ce];break;case 31:Ie[ce].splice(2,0,"CONTAINER"),Xe.addContainerBoundary(...Ie[ce]),this.$=Ie[ce];break;case 32:Xe.addDeploymentNode("node",...Ie[ce]),this.$=Ie[ce];break;case 33:Xe.addDeploymentNode("nodeL",...Ie[ce]),this.$=Ie[ce];break;case 34:Xe.addDeploymentNode("nodeR",...Ie[ce]),this.$=Ie[ce];break;case 35:Xe.popBoundaryParseStack();break;case 39:Xe.addPersonOrSystem("person",...Ie[ce]),this.$=Ie[ce];break;case 40:Xe.addPersonOrSystem("external_person",...Ie[ce]),this.$=Ie[ce];break;case 41:Xe.addPersonOrSystem("system",...Ie[ce]),this.$=Ie[ce];break;case 42:Xe.addPersonOrSystem("system_db",...Ie[ce]),this.$=Ie[ce];break;case 43:Xe.addPersonOrSystem("system_queue",...Ie[ce]),this.$=Ie[ce];break;case 44:Xe.addPersonOrSystem("external_system",...Ie[ce]),this.$=Ie[ce];break;case 45:Xe.addPersonOrSystem("external_system_db",...Ie[ce]),this.$=Ie[ce];break;case 46:Xe.addPersonOrSystem("external_system_queue",...Ie[ce]),this.$=Ie[ce];break;case 47:Xe.addContainer("container",...Ie[ce]),this.$=Ie[ce];break;case 48:Xe.addContainer("container_db",...Ie[ce]),this.$=Ie[ce];break;case 49:Xe.addContainer("container_queue",...Ie[ce]),this.$=Ie[ce];break;case 50:Xe.addContainer("external_container",...Ie[ce]),this.$=Ie[ce];break;case 51:Xe.addContainer("external_container_db",...Ie[ce]),this.$=Ie[ce];break;case 52:Xe.addContainer("external_container_queue",...Ie[ce]),this.$=Ie[ce];break;case 53:Xe.addComponent("component",...Ie[ce]),this.$=Ie[ce];break;case 54:Xe.addComponent("component_db",...Ie[ce]),this.$=Ie[ce];break;case 55:Xe.addComponent("component_queue",...Ie[ce]),this.$=Ie[ce];break;case 56:Xe.addComponent("external_component",...Ie[ce]),this.$=Ie[ce];break;case 57:Xe.addComponent("external_component_db",...Ie[ce]),this.$=Ie[ce];break;case 58:Xe.addComponent("external_component_queue",...Ie[ce]),this.$=Ie[ce];break;case 60:Xe.addRel("rel",...Ie[ce]),this.$=Ie[ce];break;case 61:Xe.addRel("birel",...Ie[ce]),this.$=Ie[ce];break;case 62:Xe.addRel("rel_u",...Ie[ce]),this.$=Ie[ce];break;case 63:Xe.addRel("rel_d",...Ie[ce]),this.$=Ie[ce];break;case 64:Xe.addRel("rel_l",...Ie[ce]),this.$=Ie[ce];break;case 65:Xe.addRel("rel_r",...Ie[ce]),this.$=Ie[ce];break;case 66:Xe.addRel("rel_b",...Ie[ce]),this.$=Ie[ce];break;case 67:Ie[ce].splice(0,1),Xe.addRel("rel",...Ie[ce]),this.$=Ie[ce];break;case 68:Xe.updateElStyle("update_el_style",...Ie[ce]),this.$=Ie[ce];break;case 69:Xe.updateRelStyle("update_rel_style",...Ie[ce]),this.$=Ie[ce];break;case 70:Xe.updateLayoutConfig("update_layout_config",...Ie[ce]),this.$=Ie[ce];break;case 71:this.$=[Ie[ce]];break;case 72:Ie[ce].unshift(Ie[ce-1]),this.$=Ie[ce];break;case 73:case 75:this.$=Ie[ce].trim();break;case 74:let Te={};Te[Ie[ce-1].trim()]=Ie[ce].trim(),this.$=Te;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q},{13:70,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q},{13:71,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q},{13:72,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q},{13:73,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q},{14:[1,74]},t(ie,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q}),t(ie,[2,14]),t(Z,[2,16],{12:[1,76]}),t(ie,[2,36],{12:[1,77]}),t(re,[2,19]),t(re,[2,20]),{25:[1,78]},{27:[1,79]},t(re,[2,23]),{35:80,75:81,76:K,77:j,79:se,80:le},{35:86,75:81,76:K,77:j,79:se,80:le},{35:87,75:81,76:K,77:j,79:se,80:le},{35:88,75:81,76:K,77:j,79:se,80:le},{35:89,75:81,76:K,77:j,79:se,80:le},{35:90,75:81,76:K,77:j,79:se,80:le},{35:91,75:81,76:K,77:j,79:se,80:le},{35:92,75:81,76:K,77:j,79:se,80:le},{35:93,75:81,76:K,77:j,79:se,80:le},{35:94,75:81,76:K,77:j,79:se,80:le},{35:95,75:81,76:K,77:j,79:se,80:le},{35:96,75:81,76:K,77:j,79:se,80:le},{35:97,75:81,76:K,77:j,79:se,80:le},{35:98,75:81,76:K,77:j,79:se,80:le},{35:99,75:81,76:K,77:j,79:se,80:le},{35:100,75:81,76:K,77:j,79:se,80:le},{35:101,75:81,76:K,77:j,79:se,80:le},{35:102,75:81,76:K,77:j,79:se,80:le},{35:103,75:81,76:K,77:j,79:se,80:le},{35:104,75:81,76:K,77:j,79:se,80:le},t(_e,[2,59]),{35:105,75:81,76:K,77:j,79:se,80:le},{35:106,75:81,76:K,77:j,79:se,80:le},{35:107,75:81,76:K,77:j,79:se,80:le},{35:108,75:81,76:K,77:j,79:se,80:le},{35:109,75:81,76:K,77:j,79:se,80:le},{35:110,75:81,76:K,77:j,79:se,80:le},{35:111,75:81,76:K,77:j,79:se,80:le},{35:112,75:81,76:K,77:j,79:se,80:le},{35:113,75:81,76:K,77:j,79:se,80:le},{35:114,75:81,76:K,77:j,79:se,80:le},{35:115,75:81,76:K,77:j,79:se,80:le},{20:116,29:49,30:61,32:62,34:s,36:o,37:l,38:u,39:d,40:h,41:f,43:23,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q},{12:[1,118],33:[1,117]},{35:119,75:81,76:K,77:j,79:se,80:le},{35:120,75:81,76:K,77:j,79:se,80:le},{35:121,75:81,76:K,77:j,79:se,80:le},{35:122,75:81,76:K,77:j,79:se,80:le},{35:123,75:81,76:K,77:j,79:se,80:le},{35:124,75:81,76:K,77:j,79:se,80:le},{35:125,75:81,76:K,77:j,79:se,80:le},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(ie,[2,15]),t(Z,[2,17],{21:22,19:130,22:e,23:r,24:n,26:i,28:a}),t(ie,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:n,26:i,28:a,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b,51:E,52:S,53:T,54:C,55:x,56:A,57:R,58:I,59:L,60:F,61:O,62:D,63:M,64:P,65:N,66:$,67:U,68:B,69:V,70:z,71:G,72:Y,73:W,74:Q}),t(re,[2,21]),t(re,[2,22]),t(_e,[2,39]),t(ye,[2,71],{75:81,35:132,76:K,77:j,79:se,80:le}),t(Ue,[2,73]),{78:[1,133]},t(Ue,[2,75]),t(Ue,[2,76]),t(_e,[2,40]),t(_e,[2,41]),t(_e,[2,42]),t(_e,[2,43]),t(_e,[2,44]),t(_e,[2,45]),t(_e,[2,46]),t(_e,[2,47]),t(_e,[2,48]),t(_e,[2,49]),t(_e,[2,50]),t(_e,[2,51]),t(_e,[2,52]),t(_e,[2,53]),t(_e,[2,54]),t(_e,[2,55]),t(_e,[2,56]),t(_e,[2,57]),t(_e,[2,58]),t(_e,[2,60]),t(_e,[2,61]),t(_e,[2,62]),t(_e,[2,63]),t(_e,[2,64]),t(_e,[2,65]),t(_e,[2,66]),t(_e,[2,67]),t(_e,[2,68]),t(_e,[2,69]),t(_e,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(Se,[2,28]),t(Se,[2,29]),t(Se,[2,30]),t(Se,[2,31]),t(Se,[2,32]),t(Se,[2,33]),t(Se,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Z,[2,18]),t(ie,[2,38]),t(ye,[2,72]),t(Ue,[2,74]),t(_e,[2,24]),t(_e,[2,35]),t(be,[2,25]),t(be,[2,26],{12:[1,138]}),t(be,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:k(function(je,ct){if(ct.recoverable)this.trace(je);else{var Fe=new Error(je);throw Fe.hash=ct,Fe}},"parseError"),parse:k(function(je){var ct=this,Fe=[0],Xe=[],et=[null],Ie=[],we=this.table,ce="",Te=0,fe=0,Be=2,me=1,Ye=Ie.slice.call(arguments,1),qe=Object.create(this.lexer),lt={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(lt.yy[it]=this.yy[it]);qe.setInput(je,lt.yy),lt.yy.lexer=qe,lt.yy.parser=this,typeof qe.yylloc>"u"&&(qe.yylloc={});var He=qe.yylloc;Ie.push(He);var Je=qe.options&&qe.options.ranges;typeof lt.yy.parseError=="function"?this.parseError=lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ht(De){Fe.length=Fe.length-2*De,et.length=et.length-De,Ie.length=Ie.length-De}k(ht,"popStack");function rt(){var De;return De=Xe.pop()||qe.lex()||me,typeof De!="number"&&(De instanceof Array&&(Xe=De,De=Xe.pop()),De=ct.symbols_[De]||De),De}k(rt,"lex");for(var $e,xe,pt,Ve,Ut={},kt,gt,Ct,mt;;){if(xe=Fe[Fe.length-1],this.defaultActions[xe]?pt=this.defaultActions[xe]:(($e===null||typeof $e>"u")&&($e=rt()),pt=we[xe]&&we[xe][$e]),typeof pt>"u"||!pt.length||!pt[0]){var qt="";mt=[];for(kt in we[xe])this.terminals_[kt]&&kt>Be&&mt.push("'"+this.terminals_[kt]+"'");qe.showPosition?qt="Parse error on line "+(Te+1)+`:
`+qe.showPosition()+`
Expecting `+mt.join(", ")+", got '"+(this.terminals_[$e]||$e)+"'":qt="Parse error on line "+(Te+1)+": Unexpected "+($e==me?"end of input":"'"+(this.terminals_[$e]||$e)+"'"),this.parseError(qt,{text:qe.match,token:this.terminals_[$e]||$e,line:qe.yylineno,loc:He,expected:mt})}if(pt[0]instanceof Array&&pt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xe+", token: "+$e);switch(pt[0]){case 1:Fe.push($e),et.push(qe.yytext),Ie.push(qe.yylloc),Fe.push(pt[1]),$e=null,fe=qe.yyleng,ce=qe.yytext,Te=qe.yylineno,He=qe.yylloc;break;case 2:if(gt=this.productions_[pt[1]][1],Ut.$=et[et.length-gt],Ut._$={first_line:Ie[Ie.length-(gt||1)].first_line,last_line:Ie[Ie.length-1].last_line,first_column:Ie[Ie.length-(gt||1)].first_column,last_column:Ie[Ie.length-1].last_column},Je&&(Ut._$.range=[Ie[Ie.length-(gt||1)].range[0],Ie[Ie.length-1].range[1]]),Ve=this.performAction.apply(Ut,[ce,fe,Te,lt.yy,pt[1],et,Ie].concat(Ye)),typeof Ve<"u")return Ve;gt&&(Fe=Fe.slice(0,-1*gt*2),et=et.slice(0,-1*gt),Ie=Ie.slice(0,-1*gt)),Fe.push(this.productions_[pt[1]][0]),et.push(Ut.$),Ie.push(Ut._$),Ct=we[Fe[Fe.length-2]][Fe[Fe.length-1]],Fe.push(Ct);break;case 3:return!0}}return!0},"parse")},Ae=(function(){var Oe={EOF:1,parseError:k(function(ct,Fe){if(this.yy.parser)this.yy.parser.parseError(ct,Fe);else throw new Error(ct)},"parseError"),setInput:k(function(je,ct){return this.yy=ct||this.yy||{},this._input=je,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var je=this._input[0];this.yytext+=je,this.yyleng++,this.offset++,this.match+=je,this.matched+=je;var ct=je.match(/(?:\r\n?|\n).*/g);return ct?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),je},"input"),unput:k(function(je){var ct=je.length,Fe=je.split(/(?:\r\n?|\n)/g);this._input=je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ct),this.offset-=ct;var Xe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Fe.length-1&&(this.yylineno-=Fe.length-1);var et=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Fe?(Fe.length===Xe.length?this.yylloc.first_column:0)+Xe[Xe.length-Fe.length].length-Fe[0].length:this.yylloc.first_column-ct},this.options.ranges&&(this.yylloc.range=[et[0],et[0]+this.yyleng-ct]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(je){this.unput(this.match.slice(je))},"less"),pastInput:k(function(){var je=this.matched.substr(0,this.matched.length-this.match.length);return(je.length>20?"...":"")+je.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var je=this.match;return je.length<20&&(je+=this._input.substr(0,20-je.length)),(je.substr(0,20)+(je.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var je=this.pastInput(),ct=new Array(je.length+1).join("-");return je+this.upcomingInput()+`
`+ct+"^"},"showPosition"),test_match:k(function(je,ct){var Fe,Xe,et;if(this.options.backtrack_lexer&&(et={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(et.yylloc.range=this.yylloc.range.slice(0))),Xe=je[0].match(/(?:\r\n?|\n).*/g),Xe&&(this.yylineno+=Xe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Xe?Xe[Xe.length-1].length-Xe[Xe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+je[0].length},this.yytext+=je[0],this.match+=je[0],this.matches=je,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(je[0].length),this.matched+=je[0],Fe=this.performAction.call(this,this.yy,this,ct,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Fe)return Fe;if(this._backtrack){for(var Ie in et)this[Ie]=et[Ie];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var je,ct,Fe,Xe;this._more||(this.yytext="",this.match="");for(var et=this._currentRules(),Ie=0;Ie<et.length;Ie++)if(Fe=this._input.match(this.rules[et[Ie]]),Fe&&(!ct||Fe[0].length>ct[0].length)){if(ct=Fe,Xe=Ie,this.options.backtrack_lexer){if(je=this.test_match(Fe,et[Ie]),je!==!1)return je;if(this._backtrack){ct=!1;continue}else return!1}else if(!this.options.flex)break}return ct?(je=this.test_match(ct,et[Xe]),je!==!1?je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var ct=this.next();return ct||this.lex()},"lex"),begin:k(function(ct){this.conditionStack.push(ct)},"begin"),popState:k(function(){var ct=this.conditionStack.length-1;return ct>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(ct){return ct=this.conditionStack.length-1-Math.abs(ct||0),ct>=0?this.conditionStack[ct]:"INITIAL"},"topState"),pushState:k(function(ct){this.begin(ct)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(ct,Fe,Xe,et){switch(Xe){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return Oe})();ke.lexer=Ae;function tt(){this.yy={}}return k(tt,"Parser"),tt.prototype=ke,ke.Parser=tt,new tt})();w8.parser=w8;var Qkr=w8,ep=[],Z_=[""],gu="global",Gf="",bg=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],o3=[],lde="",cde=!1,x8=4,A8=2,gHe,Zkr=k(function(){return gHe},"getC4Type"),Jkr=k(function(t){gHe=ta(t,vt())},"setC4Type"),e3r=k(function(t,e,r,n,i,a,s,o,l){if(t==null||e===void 0||e===null||r===void 0||r===null||n===void 0||n===null)return;let u={};const d=o3.find(h=>h.from===e&&h.to===r);if(d?u=d:o3.push(u),u.type=t,u.from=e,u.to=r,u.label={text:n},i==null)u.techn={text:""};else if(typeof i=="object"){let[h,f]=Object.entries(i)[0];u[h]={text:f}}else u.techn={text:i};if(a==null)u.descr={text:""};else if(typeof a=="object"){let[h,f]=Object.entries(a)[0];u[h]={text:f}}else u.descr={text:a};if(typeof s=="object"){let[h,f]=Object.entries(s)[0];u[h]=f}else u.sprite=s;if(typeof o=="object"){let[h,f]=Object.entries(o)[0];u[h]=f}else u.tags=o;if(typeof l=="object"){let[h,f]=Object.entries(l)[0];u[h]=f}else u.link=l;u.wrap=J1()},"addRel"),t3r=k(function(t,e,r,n,i,a,s){if(e===null||r===null)return;let o={};const l=ep.find(u=>u.alias===e);if(l&&e===l.alias?o=l:(o.alias=e,ep.push(o)),r==null?o.label={text:""}:o.label={text:r},n==null)o.descr={text:""};else if(typeof n=="object"){let[u,d]=Object.entries(n)[0];o[u]={text:d}}else o.descr={text:n};if(typeof i=="object"){let[u,d]=Object.entries(i)[0];o[u]=d}else o.sprite=i;if(typeof a=="object"){let[u,d]=Object.entries(a)[0];o[u]=d}else o.tags=a;if(typeof s=="object"){let[u,d]=Object.entries(s)[0];o[u]=d}else o.link=s;o.typeC4Shape={text:t},o.parentBoundary=gu,o.wrap=J1()},"addPersonOrSystem"),r3r=k(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=ep.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,ep.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.techn={text:""};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.techn={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]=h}else l.sprite=a;if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.wrap=J1(),l.typeC4Shape={text:t},l.parentBoundary=gu},"addContainer"),n3r=k(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=ep.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,ep.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.techn={text:""};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.techn={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]=h}else l.sprite=a;if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.wrap=J1(),l.typeC4Shape={text:t},l.parentBoundary=gu},"addComponent"),i3r=k(function(t,e,r,n,i){if(t===null||e===null)return;let a={};const s=bg.find(o=>o.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,bg.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"system"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];a[o]={text:l}}else a.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];a[o]=l}else a.tags=n;if(typeof i=="object"){let[o,l]=Object.entries(i)[0];a[o]=l}else a.link=i;a.parentBoundary=gu,a.wrap=J1(),Gf=gu,gu=t,Z_.push(Gf)},"addPersonOrSystemBoundary"),a3r=k(function(t,e,r,n,i){if(t===null||e===null)return;let a={};const s=bg.find(o=>o.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,bg.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"container"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];a[o]={text:l}}else a.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];a[o]=l}else a.tags=n;if(typeof i=="object"){let[o,l]=Object.entries(i)[0];a[o]=l}else a.link=i;a.parentBoundary=gu,a.wrap=J1(),Gf=gu,gu=t,Z_.push(Gf)},"addContainerBoundary"),s3r=k(function(t,e,r,n,i,a,s,o){if(e===null||r===null)return;let l={};const u=bg.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,bg.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.type={text:"node"};else if(typeof n=="object"){let[d,h]=Object.entries(n)[0];l[d]={text:h}}else l.type={text:n};if(i==null)l.descr={text:""};else if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]={text:h}}else l.descr={text:i};if(typeof s=="object"){let[d,h]=Object.entries(s)[0];l[d]=h}else l.tags=s;if(typeof o=="object"){let[d,h]=Object.entries(o)[0];l[d]=h}else l.link=o;l.nodeType=t,l.parentBoundary=gu,l.wrap=J1(),Gf=gu,gu=e,Z_.push(Gf)},"addDeploymentNode"),o3r=k(function(){gu=Gf,Z_.pop(),Gf=Z_.pop(),Z_.push(Gf)},"popBoundaryParseStack"),l3r=k(function(t,e,r,n,i,a,s,o,l,u,d){let h=ep.find(f=>f.alias===e);if(!(h===void 0&&(h=bg.find(f=>f.alias===e),h===void 0))){if(r!=null)if(typeof r=="object"){let[f,p]=Object.entries(r)[0];h[f]=p}else h.bgColor=r;if(n!=null)if(typeof n=="object"){let[f,p]=Object.entries(n)[0];h[f]=p}else h.fontColor=n;if(i!=null)if(typeof i=="object"){let[f,p]=Object.entries(i)[0];h[f]=p}else h.borderColor=i;if(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.shadowing=a;if(s!=null)if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.shape=s;if(o!=null)if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=p}else h.sprite=o;if(l!=null)if(typeof l=="object"){let[f,p]=Object.entries(l)[0];h[f]=p}else h.techn=l;if(u!=null)if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=p}else h.legendText=u;if(d!=null)if(typeof d=="object"){let[f,p]=Object.entries(d)[0];h[f]=p}else h.legendSprite=d}},"updateElStyle"),c3r=k(function(t,e,r,n,i,a,s){const o=o3.find(l=>l.from===e&&l.to===r);if(o!==void 0){if(n!=null)if(typeof n=="object"){let[l,u]=Object.entries(n)[0];o[l]=u}else o.textColor=n;if(i!=null)if(typeof i=="object"){let[l,u]=Object.entries(i)[0];o[l]=u}else o.lineColor=i;if(a!=null)if(typeof a=="object"){let[l,u]=Object.entries(a)[0];o[l]=parseInt(u)}else o.offsetX=parseInt(a);if(s!=null)if(typeof s=="object"){let[l,u]=Object.entries(s)[0];o[l]=parseInt(u)}else o.offsetY=parseInt(s)}},"updateRelStyle"),u3r=k(function(t,e,r){let n=x8,i=A8;if(typeof e=="object"){const a=Object.values(e)[0];n=parseInt(a)}else n=parseInt(e);if(typeof r=="object"){const a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(x8=n),i>=1&&(A8=i)},"updateLayoutConfig"),d3r=k(function(){return x8},"getC4ShapeInRow"),h3r=k(function(){return A8},"getC4BoundaryInRow"),f3r=k(function(){return gu},"getCurrentBoundaryParse"),p3r=k(function(){return Gf},"getParentBoundaryParse"),mHe=k(function(t){return t==null?ep:ep.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),g3r=k(function(t){return ep.find(e=>e.alias===t)},"getC4Shape"),m3r=k(function(t){return Object.keys(mHe(t))},"getC4ShapeKeys"),_He=k(function(t){return t==null?bg:bg.filter(e=>e.parentBoundary===t)},"getBoundaries"),_3r=_He,v3r=k(function(){return o3},"getRels"),y3r=k(function(){return lde},"getTitle"),b3r=k(function(t){cde=t},"setWrap"),J1=k(function(){return cde},"autoWrap"),E3r=k(function(){ep=[],bg=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Gf="",gu="global",Z_=[""],o3=[],Z_=[""],lde="",cde=!1,x8=4,A8=2},"clear"),S3r={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},T3r={FILLED:0,OPEN:1},C3r={LEFTOF:0,RIGHTOF:1,OVER:2},w3r=k(function(t){lde=ta(t,vt())},"setTitle"),Ste={addPersonOrSystem:t3r,addPersonOrSystemBoundary:i3r,addContainer:r3r,addContainerBoundary:a3r,addComponent:n3r,addDeploymentNode:s3r,popBoundaryParseStack:o3r,addRel:e3r,updateElStyle:l3r,updateRelStyle:c3r,updateLayoutConfig:u3r,autoWrap:J1,setWrap:b3r,getC4ShapeArray:mHe,getC4Shape:g3r,getC4ShapeKeys:m3r,getBoundaries:_He,getBoundarys:_3r,getCurrentBoundaryParse:f3r,getParentBoundaryParse:p3r,getRels:v3r,getTitle:y3r,getC4Type:Zkr,getC4ShapeInRow:d3r,getC4BoundaryInRow:h3r,setAccTitle:ms,getAccTitle:Fs,getAccDescription:Us,setAccDescription:Bs,getConfig:k(()=>vt().c4,"getConfig"),clear:E3r,LINETYPE:S3r,ARROWTYPE:T3r,PLACEMENT:C3r,setTitle:w3r,setC4Type:Jkr},ude=k(function(t,e){return k$(t,e)},"drawRect"),vHe=k(function(t,e,r,n,i,a){const s=t.append("image");s.attr("width",e),s.attr("height",r),s.attr("x",n),s.attr("y",i);let o=a.startsWith("data:image/png;base64")?a:pE.sanitizeUrl(a);s.attr("xlink:href",o)},"drawImage"),x3r=k((t,e,r,n)=>{const i=t.append("g");let a=0;for(let s of e){let o=s.textColor?s.textColor:"#444444",l=s.lineColor?s.lineColor:"#444444",u=s.offsetX?parseInt(s.offsetX):0,d=s.offsetY?parseInt(s.offsetY):0,h="";if(a===0){let p=i.append("line");p.attr("x1",s.startPoint.x),p.attr("y1",s.startPoint.y),p.attr("x2",s.endPoint.x),p.attr("y2",s.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",l),p.style("fill","none"),s.type!=="rel_b"&&p.attr("marker-end","url("+h+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+h+"#"+n+"-arrowend)"),a=-1}else{let p=i.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),s.type!=="rel_b"&&p.attr("marker-end","url("+h+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+h+"#"+n+"-arrowend)")}let f=r.messageFont();Um(r)(s.label.text,i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+d,s.label.width,s.label.height,{fill:o},f),s.techn&&s.techn.text!==""&&(f=r.messageFont(),Um(r)("["+s.techn.text+"]",i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+r.messageFontSize+5+d,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:o,"font-style":"italic"},f))}},"drawRels"),A3r=k(function(t,e,r){const n=t.append("g");let i=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",s=e.fontColor?e.fontColor:"black",o={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(o={"stroke-width":1});let l={x:e.x,y:e.y,fill:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};ude(n,l);let u=r.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=s,Um(r)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},u),e.type&&e.type.text!==""&&(u=r.boundaryFont(),u.fontColor=s,Um(r)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},u)),e.descr&&e.descr.text!==""&&(u=r.boundaryFont(),u.fontSize=u.fontSize-2,u.fontColor=s,Um(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},u))},"drawBoundary"),R3r=k(function(t,e,r){let n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],i=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const o=t.append("g");o.attr("class","person-man");const l=th();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=e.x,l.y=e.y,l.fill=n,l.width=e.width,l.height=e.height,l.stroke=i,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},ude(o,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2));break}let u=P3r(r,e.typeC4Shape.text);switch(o.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":vHe(o,48,48,e.x+e.width/2-24,e.y+e.image.Y,s);break}let d=r[e.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=a,Um(r)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},d),d=r[e.typeC4Shape.text+"Font"](),d.fontColor=a,e.techn&&e.techn?.text!==""?Um(r)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:a,"font-style":"italic"},d):e.type&&e.type.text!==""&&Um(r)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},d),e.descr&&e.descr.text!==""&&(d=r.personFont(),d.fontColor=a,Um(r)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},d)),e.height},"drawC4Shape"),O3r=k(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),I3r=k(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),N3r=k(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),k3r=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),D3r=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),M3r=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),L3r=k(function(t,e){const n=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),P3r=k((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),Um=(function(){function t(i,a,s,o,l,u,d){const h=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("text-anchor","middle").text(i);n(h,d)}k(t,"byText");function e(i,a,s,o,l,u,d,h){const{fontSize:f,fontFamily:p,fontWeight:g}=h,m=i.split(Cr.lineBreakRegex);for(let _=0;_<m.length;_++){const v=_*f-f*(m.length-1)/2,y=a.append("text").attr("x",s+l/2).attr("y",o).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",f).style("font-weight",g).style("font-family",p);y.append("tspan").attr("dy",v).text(m[_]).attr("alignment-baseline","mathematical"),n(y,d)}}k(e,"byTspan");function r(i,a,s,o,l,u,d,h){const f=a.append("switch"),g=f.append("foreignObject").attr("x",s).attr("y",o).attr("width",l).attr("height",u).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,f,s,o,l,u,d,h),n(g,d)}k(r,"byFo");function n(i,a){for(const s in a)a.hasOwnProperty(s)&&i.attr(s,a[s])}return k(n,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?r:i.textPlacement==="old"?t:e}})(),Pp={drawRect:ude,drawBoundary:A3r,drawC4Shape:R3r,drawRels:x3r,drawImage:vHe,insertArrowHead:k3r,insertArrowEnd:D3r,insertArrowFilledHead:M3r,insertArrowCrossHead:L3r,insertDatabaseIcon:O3r,insertComputerIcon:I3r,insertClockIcon:N3r},R8=0,O8=0,yHe=4,Tte=2;w8.yy=Ste;var An={},OC,bHe=(OC=class{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Cte(e.db.getConfig())}setData(e,r,n,i){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(e,r,n,i){e[r]===void 0?e[r]=n:e[r]=i(n,e[r])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+e.margin*2,n=r+e.width,i=this.nextData.starty+e.margin*2,a=i+e.height;(r>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>yHe)&&(r=this.nextData.startx+e.margin+An.nextLinePaddingX,i=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+e.height,this.nextData.cnt=1),e.x=r,e.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Cte(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},k(OC,"Bounds"),OC),Cte=k(function(t){Ro(An,t),t.fontFamily&&(An.personFontFamily=An.systemFontFamily=An.messageFontFamily=t.fontFamily),t.fontSize&&(An.personFontSize=An.systemFontSize=An.messageFontSize=t.fontSize),t.fontWeight&&(An.personFontWeight=An.systemFontWeight=An.messageFontWeight=t.fontWeight)},"setConf"),jO=k((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),g6=k(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),F3r=k(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function Dh(t,e,r,n,i){if(!e[t].width)if(r)e[t].text=bN(e[t].text,i,n),e[t].textLines=e[t].text.split(Cr.lineBreakRegex).length,e[t].width=i,e[t].height=K7(e[t].text,n);else{let a=e[t].text.split(Cr.lineBreakRegex);e[t].textLines=a.length;let s=0;e[t].height=0,e[t].width=0;for(const o of a)e[t].width=Math.max(pu(o,n),e[t].width),s=K7(o,n),e[t].height=e[t].height+s}}k(Dh,"calcC4ShapeTextWH");var EHe=k(function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=An.c4ShapeMargin-35;let n=e.wrap&&An.wrap,i=g6(An);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=pu(e.label.text,i);Dh("label",e,n,i,a),Pp.drawBoundary(t,e,An)},"drawBoundary"),SHe=k(function(t,e,r,n){let i=0;for(const a of n){i=0;const s=r[a];let o=jO(An,s.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,s.typeC4Shape.width=pu("«"+s.typeC4Shape.text+"»",o),s.typeC4Shape.height=o.fontSize+2,s.typeC4Shape.Y=An.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let l=s.wrap&&An.wrap,u=An.width-An.c4ShapePadding*2,d=jO(An,s.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",Dh("label",s,l,d,u),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let p=jO(An,s.typeC4Shape.text);Dh("type",s,l,p,u),s.type.Y=i+5,i=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let p=jO(An,s.techn.text);Dh("techn",s,l,p,u),s.techn.Y=i+5,i=s.techn.Y+s.techn.height}let h=i,f=s.label.width;if(s.descr&&s.descr.text!==""){let p=jO(An,s.typeC4Shape.text);Dh("descr",s,l,p,u),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,f=Math.max(s.label.width,s.descr.width),h=i-s.descr.textLines*5}f=f+An.c4ShapePadding,s.width=Math.max(s.width||An.width,f,An.width),s.height=Math.max(s.height||An.height,h,An.height),s.margin=s.margin||An.c4ShapeMargin,t.insert(s),Pp.drawC4Shape(e,s,An)}t.bumpLastMargin(An.c4ShapeMargin)},"drawC4ShapeArray"),IC,gh=(IC=class{constructor(e,r){this.x=e,this.y=r}},k(IC,"Point"),IC),ZRe=k(function(t,e){let r=t.x,n=t.y,i=e.x,a=e.y,s=r+t.width/2,o=n+t.height/2,l=Math.abs(r-i),u=Math.abs(n-a),d=u/l,h=t.height/t.width,f=null;return n==a&&r<i?f=new gh(r+t.width,o):n==a&&r>i?f=new gh(r,o):r==i&&n<a?f=new gh(s,n+t.height):r==i&&n>a&&(f=new gh(s,n)),r>i&&n<a?h>=d?f=new gh(r,o+d*t.width/2):f=new gh(s-l/u*t.height/2,n+t.height):r<i&&n<a?h>=d?f=new gh(r+t.width,o+d*t.width/2):f=new gh(s+l/u*t.height/2,n+t.height):r<i&&n>a?h>=d?f=new gh(r+t.width,o-d*t.width/2):f=new gh(s+t.height/2*l/u,n):r>i&&n>a&&(h>=d?f=new gh(r,o-t.width/2*d):f=new gh(s-t.height/2*l/u,n)),f},"getIntersectPoint"),B3r=k(function(t,e){let r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;let n=ZRe(t,r);r.x=t.x+t.width/2,r.y=t.y+t.height/2;let i=ZRe(e,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),U3r=k(function(t,e,r,n,i){let a=0;for(let s of e){a=a+1;let o=s.wrap&&An.wrap,l=F3r(An);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=a+": "+s.label.text);let d=pu(s.label.text,l);Dh("label",s,o,l,d),s.techn&&s.techn.text!==""&&(d=pu(s.techn.text,l),Dh("techn",s,o,l,d)),s.descr&&s.descr.text!==""&&(d=pu(s.descr.text,l),Dh("descr",s,o,l,d));let h=r(s.from),f=r(s.to),p=B3r(h,f);s.startPoint=p.startPoint,s.endPoint=p.endPoint}Pp.drawRels(t,e,An,i)},"drawRels");function dde(t,e,r,n,i){let a=new bHe(i);a.data.widthLimit=r.data.widthLimit/Math.min(Tte,n.length);for(let[s,o]of n.entries()){let l=0;o.image={width:0,height:0,Y:0},o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=l,l=o.image.Y+o.image.height);let u=o.wrap&&An.wrap,d=g6(An);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",Dh("label",o,u,d,a.data.widthLimit),o.label.Y=l+8,l=o.label.Y+o.label.height,o.type&&o.type.text!==""){o.type.text="["+o.type.text+"]";let g=g6(An);Dh("type",o,u,g,a.data.widthLimit),o.type.Y=l+5,l=o.type.Y+o.type.height}if(o.descr&&o.descr.text!==""){let g=g6(An);g.fontSize=g.fontSize-2,Dh("descr",o,u,g,a.data.widthLimit),o.descr.Y=l+20,l=o.descr.Y+o.descr.height}if(s==0||s%Tte===0){let g=r.data.startx+An.diagramMarginX,m=r.data.stopy+An.diagramMarginY+l;a.setData(g,g,m,m)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+An.diagramMarginX:a.data.startx,m=a.data.starty;a.setData(g,g,m,m)}a.name=o.alias;let h=i.db.getC4ShapeArray(o.alias),f=i.db.getC4ShapeKeys(o.alias);f.length>0&&SHe(a,t,h,f),e=o.alias;let p=i.db.getBoundaries(e);p.length>0&&dde(t,e,a,p,i),o.alias!=="global"&&EHe(t,o,a),r.data.stopy=Math.max(a.data.stopy+An.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+An.c4ShapeMargin,r.data.stopx),R8=Math.max(R8,r.data.stopx),O8=Math.max(O8,r.data.stopy)}}k(dde,"drawInsideBoundary");var $3r=k(function(t,e,r,n){An=vt().c4;const i=vt().securityLevel;let a;i==="sandbox"&&(a=dr("#i"+e));const s=dr(i==="sandbox"?a.nodes()[0].contentDocument.body:"body");let o=n.db;n.db.setWrap(An.wrap),yHe=o.getC4ShapeInRow(),Tte=o.getC4BoundaryInRow(),Pe.debug(`C:${JSON.stringify(An,null,2)}`);const l=i==="sandbox"?s.select(`[id="${e}"]`):dr(`[id="${e}"]`);Pp.insertComputerIcon(l,e),Pp.insertDatabaseIcon(l,e),Pp.insertClockIcon(l,e);let u=new bHe(n);u.setData(An.diagramMarginX,An.diagramMarginX,An.diagramMarginY,An.diagramMarginY),u.data.widthLimit=screen.availWidth,R8=An.diagramMarginX,O8=An.diagramMarginY;const d=n.db.getTitle();let h=n.db.getBoundaries("");dde(l,"",u,h,n),Pp.insertArrowHead(l,e),Pp.insertArrowEnd(l,e),Pp.insertArrowCrossHead(l,e),Pp.insertArrowFilledHead(l,e),U3r(l,n.db.getRels(),n.db.getC4Shape,n,e),u.data.stopx=R8,u.data.stopy=O8;const f=u.data;let g=f.stopy-f.starty+2*An.diagramMarginY;const _=f.stopx-f.startx+2*An.diagramMarginX;d&&l.append("text").text(d).attr("x",(f.stopx-f.startx)/2-4*An.diagramMarginX).attr("y",f.starty+An.diagramMarginY),Xo(l,g,_,An.useMaxWidth);const v=d?60:0;l.attr("viewBox",f.startx-An.diagramMarginX+" -"+(An.diagramMarginY+v)+" "+_+" "+(g+v)),Pe.debug("models:",f)},"draw"),JRe={drawPersonOrSystemArray:SHe,drawBoundary:EHe,setConf:Cte,draw:$3r},G3r=k(t=>`.person {
    stroke: ${t.personBorder};
    fill: ${t.personBkg};
  }
`,"getStyles"),z3r=G3r,q3r={parser:Qkr,db:Ste,renderer:JRe,styles:z3r,init:k(({c4:t,wrap:e})=>{JRe.setConf(t),Ste.setWrap(e)},"init")};const V3r=Object.freeze(Object.defineProperty({__proto__:null,diagram:q3r},Symbol.toStringTag,{value:"Module"}));var cD=k(()=>`
  /* Font Awesome icon styling - consolidated */
  .label-icon {
    display: inline-block;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
  }
  
  .node .label-icon path {
    fill: currentColor;
    stroke: revert;
    stroke-width: revert;
  }
`,"getIconStyles"),UR=k((t,e)=>{let r;return e==="sandbox"&&(r=dr("#i"+t)),dr(e==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)},"getDiagramElement"),CE=k((t,e,r,n)=>{t.attr("class",r);const{width:i,height:a,x:s,y:o}=H3r(t,e);Xo(t,a,i,n);const l=Y3r(s,o,i,a,e);t.attr("viewBox",l),Pe.debug(`viewBox configured: ${l} with padding: ${e}`)},"setupViewPortForSVG"),H3r=k((t,e)=>{const r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+e*2,height:r.height+e*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),Y3r=k((t,e,r,n,i)=>`${t-i} ${e-i} ${r} ${n}`,"createViewBox"),W3r="flowchart-",NC,K3r=(NC=class{constructor(){this.vertexCounter=0,this.config=vt(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=ms,this.setAccDescription=Bs,this.setDiagramTitle=ks,this.getAccTitle=Fs,this.getAccDescription=Us,this.getDiagramTitle=bs,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(e){return Cr.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,n,i,a,s,o={},l){if(!e||e.trim().length===0)return;let u;if(l!==void 0){let p;l.includes(`
`)?p=l+`
`:p=`{
`+l+`
}`,u=BU(p,{schema:FU})}const d=this.edges.find(p=>p.id===e);if(d){const p=u;p?.animate!==void 0&&(d.animate=p.animate),p?.animation!==void 0&&(d.animation=p.animation),p?.curve!==void 0&&(d.interpolate=p.curve);return}let h,f=this.vertices.get(e);if(f===void 0&&(r===void 0&&n===void 0&&i!==void 0&&i!==null&&Pe.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:W3r+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,r!==void 0?(this.config=vt(),h=this.sanitizeText(r.text.trim()),f.labelType=r.type,h.startsWith('"')&&h.endsWith('"')&&(h=h.substring(1,h.length-1)),f.text=h):f.text===void 0&&(f.text=e),n!==void 0&&(f.type=n),i?.forEach(p=>{f.styles.push(p)}),a?.forEach(p=>{f.classes.push(p)}),s!==void 0&&(f.dir=s),f.props===void 0?f.props=o:o!==void 0&&Object.assign(f.props,o),u!==void 0){if(u.shape){if(u.shape!==u.shape.toLowerCase()||u.shape.includes("_"))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);if(!tGe(u.shape))throw new Error(`No such shape: ${u.shape}.`);f.type=u?.shape}u?.label&&(f.text=u?.label,f.labelType=this.sanitizeNodeLabelType(u?.labelType)),u?.icon&&(f.icon=u?.icon,!u.label?.trim()&&f.text===e&&(f.text="")),u?.form&&(f.form=u?.form),u?.pos&&(f.pos=u?.pos),u?.img&&(f.img=u?.img,!u.label?.trim()&&f.text===e&&(f.text="")),u?.constraint&&(f.constraint=u.constraint),u.w&&(f.assetWidth=Number(u.w)),u.h&&(f.assetHeight=Number(u.h))}}addSingleLink(e,r,n,i){const o={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Pe.info("abc78 Got edge...",o);const l=n.text;if(l!==void 0&&(o.text=this.sanitizeText(l.text.trim()),o.text.startsWith('"')&&o.text.endsWith('"')&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=this.sanitizeNodeLabelType(l.type)),n!==void 0&&(o.type=n.type,o.stroke=n.stroke,o.length=n.length>10?10:n.length),i&&!this.edges.some(u=>u.id===i))o.id=i,o.isUserDefinedId=!0;else{const u=this.edges.filter(d=>d.start===o.start&&d.end===o.end);u.length===0?o.id=ZT(o.start,o.end,{counter:0,prefix:"L"}):o.id=ZT(o.start,o.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Pe.info("Pushing edge..."),this.edges.push(o);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.

Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,r,n){const i=this.isLinkData(n)?n.id.replace("@",""):void 0;Pe.info("addLink",e,r,i);for(const a of e)for(const s of r){const o=a===e[e.length-1],l=s===r[0];o&&l?this.addSingleLink(a,s,n,i):this.addSingleLink(a,s,n,void 0)}}updateLinkInterpolate(e,r){e.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(e,r){e.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(i=>i?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(e,r){const n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(i=>{let a=this.classes.get(i);a===void 0&&(a={id:i,styles:[],textStyles:[]},this.classes.set(i,a)),n?.forEach(s=>{if(/color/.exec(s)){const o=s.replace("fill","bgFill");a.textStyles.push(o)}a.styles.push(s)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,r){for(const n of e.split(",")){const i=this.vertices.get(n);i&&i.classes.push(r);const a=this.edges.find(o=>o.id===n);a&&a.classes.push(r);const s=this.subGraphLookup.get(n);s&&s.classes.push(r)}}setTooltip(e,r){if(r!==void 0){r=this.sanitizeText(r);for(const n of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(e,r,n){if(vt().securityLevel!=="loose"||r===void 0)return;let i=[];if(typeof n=="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<i.length;s++){let o=i[s].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),i[s]=o}}i.length===0&&i.push(e);const a=this.vertices.get(e);a&&(a.haveCallback=!0,this.funs.push(()=>{const s=this.lookUpDomId(e),o=document.querySelector(`[id="${s}"]`);o!==null&&o.addEventListener("click",()=>{ci.runFunc(r,...i)},!1)}))}setLink(e,r,n){e.split(",").forEach(i=>{const a=this.vertices.get(i);a!==void 0&&(a.link=ci.formatUrl(r,this.config),a.linkTarget=n)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach(i=>{this.setClickFun(i,r,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(r=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const r=pHe();dr(e).select("svg").selectAll("g.node").on("mouseover",a=>{const s=dr(a.currentTarget),o=s.attr("title");if(o===null)return;const l=a.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(s.attr("title")).style("left",window.scrollX+l.left+(l.right-l.left)/2+"px").style("top",window.scrollY+l.bottom+"px"),r.html(g1.sanitize(o)),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),dr(a.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=vt(),ys()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,n){let i=e.text.trim(),a=n.text;e===n&&/\s/.exec(n.text)&&(i=void 0);const o=k(f=>{const p={boolean:{},number:{},string:{}},g=[];let m;return{nodeList:f.filter(function(v){const y=typeof v;return v.stmt&&v.stmt==="dir"?(m=v.value,!1):v.trim()===""?!1:y in p?p[y].hasOwnProperty(v)?!1:p[y][v]=!0:g.includes(v)?!1:g.push(v)}),dir:m}},"uniq")(r.flat()),l=o.nodeList;let u=o.dir;const d=vt().flowchart??{};if(u=u??(d.inheritDir?this.getDirection()??vt().direction??void 0:void 0),this.version==="gen-1")for(let f=0;f<l.length;f++)l[f]=this.lookUpDomId(l[f]);i=i??"subGraph"+this.subCount,a=a||"",a=this.sanitizeText(a),this.subCount=this.subCount+1;const h={id:i,nodes:l,title:a.trim(),classes:[],dir:u,labelType:this.sanitizeNodeLabelType(n?.type)};return Pe.info("Adding",h.id,h.nodes,h.dir),h.nodes=this.makeUniq(h,this.subGraphs).nodes,this.subGraphs.push(h),this.subGraphLookup.set(i,h),i}getPosForId(e){for(const[r,n]of this.subGraphs.entries())if(n.id===e)return r;return-1}indexNodes2(e,r){const n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let i=0,a=1;for(;i<n.length;){const s=this.getPosForId(n[i]);if(s>=0){const o=this.indexNodes2(e,s);if(o.result)return{result:!0,count:a+o.count};a=a+o.count}i=i+1}return{result:!1,count:a}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let i="normal";return r.includes("=")&&(i="thick"),r.includes(".")&&(i="dotted"),{type:n,stroke:i}}countChar(e,r){const n=r.length;let i=0;for(let a=0;a<n;++a)r[a]===e&&++i;return i}destructEndLink(e){const r=e.trim();let n=r.slice(0,-1),i="arrow_open";switch(r.slice(-1)){case"x":i="arrow_cross",r.startsWith("x")&&(i="double_"+i,n=n.slice(1));break;case">":i="arrow_point",r.startsWith("<")&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle",r.startsWith("o")&&(i="double_"+i,n=n.slice(1));break}let a="normal",s=n.length-1;n.startsWith("=")&&(a="thick"),n.startsWith("~")&&(a="invisible");const o=this.countChar(".",n);return o&&(a="dotted",s=o),{type:i,stroke:a,length:s}}destructLink(e,r){const n=this.destructEndLink(e);let i;if(r){if(i=this.destructStartLink(r),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=n.length,i}return n}exists(e,r){for(const n of e)if(n.nodes.includes(r))return!0;return!1}makeUniq(e,r){const n=[];return e.nodes.forEach((i,a)=>{this.exists(r,i)||n.push(e.nodes[a])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find(n=>n.id===r)}destructEdgeType(e){let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(e,r,n,i,a,s){const o=n.get(e.id),l=i.get(e.id)??!1,u=this.findNode(r,e.id);if(u)u.cssStyles=e.styles,u.cssCompiledStyles=this.getCompiledStyles(e.classes),u.cssClasses=e.classes.join(" ");else{const d={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:o,padding:a.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:s,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};l?r.push({...d,isGroup:!0,shape:"rect"}):r.push({...d,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let r=[];for(const n of e){const i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(a=>a.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(a=>a.trim()))}return r}getData(){const e=vt(),r=[],n=[],i=this.getSubGraphs(),a=new Map,s=new Map;for(let u=i.length-1;u>=0;u--){const d=i[u];d.nodes.length>0&&s.set(d.id,!0);for(const h of d.nodes)a.set(h,d.id)}for(let u=i.length-1;u>=0;u--){const d=i[u];r.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:a.get(d.id),padding:8,cssCompiledStyles:this.getCompiledStyles(d.classes),cssClasses:d.classes.join(" "),shape:"rect",dir:d.dir,isGroup:!0,look:e.look})}this.getVertices().forEach(u=>{this.addNodeFromVertex(u,r,a,s,e,e.look||"classic")});const l=this.getEdges();return l.forEach((u,d)=>{const{arrowTypeStart:h,arrowTypeEnd:f}=this.destructEdgeType(u.type),p=[...l.defaultStyle??[]];u.style&&p.push(...u.style);const g={id:ZT(u.start,u.end,{counter:d,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelType:u.labelType,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":h,arrowTypeEnd:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:p,style:p,pattern:u.stroke,look:e.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(g)}),{nodes:r,edges:n,other:{},config:e}}defaultConfig(){return O7e.flowchart}},k(NC,"FlowDB"),NC),j3r=k(function(t,e){return e.db.getClasses()},"getClasses"),X3r=k(async function(t,e,r,n){Pe.info("REF0:"),Pe.info("Drawing state diagram (v2)",e);const{securityLevel:i,flowchart:a,layout:s}=vt();n.db.setDiagramId(e),Pe.debug("Before getData: ");const o=n.db.getData();Pe.debug("Data: ",o);const l=UR(e,i),u=n.db.getDirection();o.type=n.type,o.layoutAlgorithm=Y5(s),o.layoutAlgorithm==="dagre"&&s==="elk"&&Pe.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),o.direction=u,o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["point","circle","cross"],o.diagramId=e,Pe.debug("REF1:",o),await RR(o,l);const d=o.config.flowchart?.diagramPadding??8;ci.insertTitle(l,"flowchartTitleText",a?.titleTopMargin||0,n.db.getDiagramTitle()),CE(l,d,"flowchart",a?.useMaxWidth||!1)},"draw"),Q3r={getClasses:j3r,draw:X3r},wte=(function(){var t=k(function(Ot,Mt,Yt,er){for(Yt=Yt||{},er=Ot.length;er--;Yt[Ot[er]]=Mt);return Yt},"o"),e=[1,4],r=[1,3],n=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],s=[1,13],o=[1,14],l=[1,15],u=[1,16],d=[1,23],h=[1,25],f=[1,26],p=[1,27],g=[1,50],m=[1,49],_=[1,29],v=[1,30],y=[1,31],b=[1,32],E=[1,33],S=[1,45],T=[1,47],C=[1,43],x=[1,48],A=[1,44],R=[1,51],I=[1,46],L=[1,52],F=[1,53],O=[1,34],D=[1,35],M=[1,36],P=[1,37],N=[1,38],$=[1,58],U=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],B=[1,62],V=[1,61],z=[1,63],G=[8,9,11,75,77,78],Y=[1,79],W=[1,92],Q=[1,97],ie=[1,96],Z=[1,93],re=[1,89],K=[1,95],j=[1,91],se=[1,98],le=[1,94],_e=[1,99],ye=[1,90],Ue=[8,9,10,11,40,75,77,78],Se=[8,9,10,11,40,46,75,77,78],be=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ke=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Ae=[44,60,89,102,105,106,109,111,114,115,116],tt=[1,122],Oe=[1,123],je=[1,125],ct=[1,124],Fe=[44,60,62,74,89,102,105,106,109,111,114,115,116],Xe=[1,134],et=[1,148],Ie=[1,149],we=[1,150],ce=[1,151],Te=[1,136],fe=[1,138],Be=[1,142],me=[1,143],Ye=[1,144],qe=[1,145],lt=[1,146],it=[1,147],He=[1,152],Je=[1,153],ht=[1,132],rt=[1,133],$e=[1,140],xe=[1,135],pt=[1,139],Ve=[1,137],Ut=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],kt=[1,155],gt=[1,157],Ct=[8,9,11],mt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],qt=[1,177],De=[1,173],pr=[1,174],or=[1,178],ir=[1,175],gr=[1,176],dn=[77,116,119],st=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],jt=[10,106],nr=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],vr=[1,248],Sr=[1,246],yn=[1,250],ln=[1,244],xn=[1,245],nn=[1,247],Zr=[1,249],Jr=[1,251],Jn=[1,269],_a=[8,9,11,106],si=[8,9,10,11,60,84,105,106,109,110,111,112],Ta={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:k(function(Mt,Yt,er,Ht,Hr,ot,Li){var ut=ot.length-1;switch(Hr){case 2:this.$=[];break;case 3:(!Array.isArray(ot[ut])||ot[ut].length>0)&&ot[ut-1].push(ot[ut]),this.$=ot[ut-1];break;case 4:case 183:this.$=ot[ut];break;case 11:Ht.setDirection("TB"),this.$="TB";break;case 12:Ht.setDirection(ot[ut-1]),this.$=ot[ut-1];break;case 27:this.$=ot[ut-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Ht.addSubGraph(ot[ut-6],ot[ut-1],ot[ut-4]);break;case 34:this.$=Ht.addSubGraph(ot[ut-3],ot[ut-1],ot[ut-3]);break;case 35:this.$=Ht.addSubGraph(void 0,ot[ut-1],void 0);break;case 37:this.$=ot[ut].trim(),Ht.setAccTitle(this.$);break;case 38:case 39:this.$=ot[ut].trim(),Ht.setAccDescription(this.$);break;case 43:this.$=ot[ut-1]+ot[ut];break;case 44:this.$=ot[ut];break;case 45:Ht.addVertex(ot[ut-1][ot[ut-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ot[ut]),Ht.addLink(ot[ut-3].stmt,ot[ut-1],ot[ut-2]),this.$={stmt:ot[ut-1],nodes:ot[ut-1].concat(ot[ut-3].nodes)};break;case 46:Ht.addLink(ot[ut-2].stmt,ot[ut],ot[ut-1]),this.$={stmt:ot[ut],nodes:ot[ut].concat(ot[ut-2].nodes)};break;case 47:Ht.addLink(ot[ut-3].stmt,ot[ut-1],ot[ut-2]),this.$={stmt:ot[ut-1],nodes:ot[ut-1].concat(ot[ut-3].nodes)};break;case 48:this.$={stmt:ot[ut-1],nodes:ot[ut-1]};break;case 49:Ht.addVertex(ot[ut-1][ot[ut-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ot[ut]),this.$={stmt:ot[ut-1],nodes:ot[ut-1],shapeData:ot[ut]};break;case 50:this.$={stmt:ot[ut],nodes:ot[ut]};break;case 51:this.$=[ot[ut]];break;case 52:Ht.addVertex(ot[ut-5][ot[ut-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ot[ut-4]),this.$=ot[ut-5].concat(ot[ut]);break;case 53:this.$=ot[ut-4].concat(ot[ut]);break;case 54:this.$=ot[ut];break;case 55:this.$=ot[ut-2],Ht.setClass(ot[ut-2],ot[ut]);break;case 56:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"square");break;case 57:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"doublecircle");break;case 58:this.$=ot[ut-5],Ht.addVertex(ot[ut-5],ot[ut-2],"circle");break;case 59:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"ellipse");break;case 60:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"stadium");break;case 61:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"subroutine");break;case 62:this.$=ot[ut-7],Ht.addVertex(ot[ut-7],ot[ut-1],"rect",void 0,void 0,void 0,Object.fromEntries([[ot[ut-5],ot[ut-3]]]));break;case 63:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"cylinder");break;case 64:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"round");break;case 65:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"diamond");break;case 66:this.$=ot[ut-5],Ht.addVertex(ot[ut-5],ot[ut-2],"hexagon");break;case 67:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"odd");break;case 68:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"trapezoid");break;case 69:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"inv_trapezoid");break;case 70:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"lean_right");break;case 71:this.$=ot[ut-3],Ht.addVertex(ot[ut-3],ot[ut-1],"lean_left");break;case 72:this.$=ot[ut],Ht.addVertex(ot[ut]);break;case 73:ot[ut-1].text=ot[ut],this.$=ot[ut-1];break;case 74:case 75:ot[ut-2].text=ot[ut-1],this.$=ot[ut-2];break;case 76:this.$=ot[ut];break;case 77:var zn=Ht.destructLink(ot[ut],ot[ut-2]);this.$={type:zn.type,stroke:zn.stroke,length:zn.length,text:ot[ut-1]};break;case 78:var zn=Ht.destructLink(ot[ut],ot[ut-2]);this.$={type:zn.type,stroke:zn.stroke,length:zn.length,text:ot[ut-1],id:ot[ut-3]};break;case 79:this.$={text:ot[ut],type:"text"};break;case 80:this.$={text:ot[ut-1].text+""+ot[ut],type:ot[ut-1].type};break;case 81:this.$={text:ot[ut],type:"string"};break;case 82:this.$={text:ot[ut],type:"markdown"};break;case 83:var zn=Ht.destructLink(ot[ut]);this.$={type:zn.type,stroke:zn.stroke,length:zn.length};break;case 84:var zn=Ht.destructLink(ot[ut]);this.$={type:zn.type,stroke:zn.stroke,length:zn.length,id:ot[ut-1]};break;case 85:this.$=ot[ut-1];break;case 86:this.$={text:ot[ut],type:"text"};break;case 87:this.$={text:ot[ut-1].text+""+ot[ut],type:ot[ut-1].type};break;case 88:this.$={text:ot[ut],type:"string"};break;case 89:case 104:this.$={text:ot[ut],type:"markdown"};break;case 101:this.$={text:ot[ut],type:"text"};break;case 102:this.$={text:ot[ut-1].text+""+ot[ut],type:ot[ut-1].type};break;case 103:this.$={text:ot[ut],type:"text"};break;case 105:this.$=ot[ut-4],Ht.addClass(ot[ut-2],ot[ut]);break;case 106:this.$=ot[ut-4],Ht.setClass(ot[ut-2],ot[ut]);break;case 107:case 115:this.$=ot[ut-1],Ht.setClickEvent(ot[ut-1],ot[ut]);break;case 108:case 116:this.$=ot[ut-3],Ht.setClickEvent(ot[ut-3],ot[ut-2]),Ht.setTooltip(ot[ut-3],ot[ut]);break;case 109:this.$=ot[ut-2],Ht.setClickEvent(ot[ut-2],ot[ut-1],ot[ut]);break;case 110:this.$=ot[ut-4],Ht.setClickEvent(ot[ut-4],ot[ut-3],ot[ut-2]),Ht.setTooltip(ot[ut-4],ot[ut]);break;case 111:this.$=ot[ut-2],Ht.setLink(ot[ut-2],ot[ut]);break;case 112:this.$=ot[ut-4],Ht.setLink(ot[ut-4],ot[ut-2]),Ht.setTooltip(ot[ut-4],ot[ut]);break;case 113:this.$=ot[ut-4],Ht.setLink(ot[ut-4],ot[ut-2],ot[ut]);break;case 114:this.$=ot[ut-6],Ht.setLink(ot[ut-6],ot[ut-4],ot[ut]),Ht.setTooltip(ot[ut-6],ot[ut-2]);break;case 117:this.$=ot[ut-1],Ht.setLink(ot[ut-1],ot[ut]);break;case 118:this.$=ot[ut-3],Ht.setLink(ot[ut-3],ot[ut-2]),Ht.setTooltip(ot[ut-3],ot[ut]);break;case 119:this.$=ot[ut-3],Ht.setLink(ot[ut-3],ot[ut-2],ot[ut]);break;case 120:this.$=ot[ut-5],Ht.setLink(ot[ut-5],ot[ut-4],ot[ut]),Ht.setTooltip(ot[ut-5],ot[ut-2]);break;case 121:this.$=ot[ut-4],Ht.addVertex(ot[ut-2],void 0,void 0,ot[ut]);break;case 122:this.$=ot[ut-4],Ht.updateLink([ot[ut-2]],ot[ut]);break;case 123:this.$=ot[ut-4],Ht.updateLink(ot[ut-2],ot[ut]);break;case 124:this.$=ot[ut-8],Ht.updateLinkInterpolate([ot[ut-6]],ot[ut-2]),Ht.updateLink([ot[ut-6]],ot[ut]);break;case 125:this.$=ot[ut-8],Ht.updateLinkInterpolate(ot[ut-6],ot[ut-2]),Ht.updateLink(ot[ut-6],ot[ut]);break;case 126:this.$=ot[ut-6],Ht.updateLinkInterpolate([ot[ut-4]],ot[ut]);break;case 127:this.$=ot[ut-6],Ht.updateLinkInterpolate(ot[ut-4],ot[ut]);break;case 128:case 130:this.$=[ot[ut]];break;case 129:case 131:ot[ut-2].push(ot[ut]),this.$=ot[ut-2];break;case 133:this.$=ot[ut-1]+ot[ut];break;case 181:this.$=ot[ut];break;case 182:this.$=ot[ut-1]+""+ot[ut];break;case 184:this.$=ot[ut-1]+""+ot[ut];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:e,10:r,12:n},{1:[3]},t(i,a,{5:6}),{4:7,9:e,10:r,12:n},{4:8,9:e,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:_,85:v,86:y,87:b,88:E,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F,121:O,122:D,123:M,124:P,125:N},t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),{8:[1,55],9:[1,56],10:$,15:54,18:57},t(U,[2,3]),t(U,[2,4]),t(U,[2,5]),t(U,[2,6]),t(U,[2,7]),t(U,[2,8]),{8:B,9:V,11:z,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:B,9:V,11:z,21:68},{8:B,9:V,11:z,21:69},{8:B,9:V,11:z,21:70},{8:B,9:V,11:z,21:71},{8:B,9:V,11:z,21:72},{8:B,9:V,10:[1,73],11:z,21:74},t(U,[2,36]),{35:[1,75]},{37:[1,76]},t(U,[2,39]),t(G,[2,50],{18:77,39:78,10:$,40:Y}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:W,44:Q,60:ie,80:[1,87],89:Z,95:[1,84],97:[1,85],101:86,105:re,106:K,109:j,111:se,114:le,115:_e,116:ye,120:88},t(U,[2,185]),t(U,[2,186]),t(U,[2,187]),t(U,[2,188]),t(U,[2,189]),t(Ue,[2,51]),t(Ue,[2,54],{46:[1,100]}),t(Se,[2,72],{113:113,29:[1,101],44:g,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:m,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:S,102:T,105:C,106:x,109:A,111:R,114:I,115:L,116:F}),t(be,[2,181]),t(be,[2,142]),t(be,[2,143]),t(be,[2,144]),t(be,[2,145]),t(be,[2,146]),t(be,[2,147]),t(be,[2,148]),t(be,[2,149]),t(be,[2,150]),t(be,[2,151]),t(be,[2,152]),t(i,[2,12]),t(i,[2,18]),t(i,[2,19]),{9:[1,114]},t(ke,[2,26],{18:115,10:$}),t(U,[2,27]),{42:116,43:39,44:g,45:40,47:41,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},t(U,[2,40]),t(U,[2,41]),t(U,[2,42]),t(Ae,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:tt,81:Oe,116:je,119:ct},{75:[1,126],77:[1,127]},t(Fe,[2,83]),t(U,[2,28]),t(U,[2,29]),t(U,[2,30]),t(U,[2,31]),t(U,[2,32]),{10:Xe,12:et,14:Ie,27:we,28:128,32:ce,44:Te,60:fe,75:Be,80:[1,130],81:[1,131],83:141,84:me,85:Ye,86:qe,87:lt,88:it,89:He,90:Je,91:129,105:ht,109:rt,111:$e,114:xe,115:pt,116:Ve},t(Ut,a,{5:154}),t(U,[2,37]),t(U,[2,38]),t(G,[2,48],{44:kt}),t(G,[2,49],{18:156,10:$,40:gt}),t(Ue,[2,44]),{44:g,47:158,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},{102:[1,159],103:160,105:[1,161]},{44:g,47:162,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},{44:g,47:163,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},t(Ct,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(Ct,[2,115],{120:168,10:[1,167],14:W,44:Q,60:ie,89:Z,105:re,106:K,109:j,111:se,114:le,115:_e,116:ye}),t(Ct,[2,117],{10:[1,169]}),t(mt,[2,183]),t(mt,[2,170]),t(mt,[2,171]),t(mt,[2,172]),t(mt,[2,173]),t(mt,[2,174]),t(mt,[2,175]),t(mt,[2,176]),t(mt,[2,177]),t(mt,[2,178]),t(mt,[2,179]),t(mt,[2,180]),{44:g,47:170,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},{30:171,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:179,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:181,50:[1,180],67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:182,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:183,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:184,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{109:[1,185]},{30:186,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:187,65:[1,188],67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:189,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:190,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{30:191,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},t(be,[2,182]),t(i,[2,20]),t(ke,[2,25]),t(G,[2,46],{39:192,18:193,10:$,40:Y}),t(Ae,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{77:[1,197],79:198,116:je,119:ct},t(dn,[2,79]),t(dn,[2,81]),t(dn,[2,82]),t(dn,[2,168]),t(dn,[2,169]),{76:199,79:121,80:tt,81:Oe,116:je,119:ct},t(Fe,[2,84]),{8:B,9:V,10:Xe,11:z,12:et,14:Ie,21:201,27:we,29:[1,200],32:ce,44:Te,60:fe,75:Be,83:141,84:me,85:Ye,86:qe,87:lt,88:it,89:He,90:Je,91:202,105:ht,109:rt,111:$e,114:xe,115:pt,116:Ve},t(st,[2,101]),t(st,[2,103]),t(st,[2,104]),t(st,[2,157]),t(st,[2,158]),t(st,[2,159]),t(st,[2,160]),t(st,[2,161]),t(st,[2,162]),t(st,[2,163]),t(st,[2,164]),t(st,[2,165]),t(st,[2,166]),t(st,[2,167]),t(st,[2,90]),t(st,[2,91]),t(st,[2,92]),t(st,[2,93]),t(st,[2,94]),t(st,[2,95]),t(st,[2,96]),t(st,[2,97]),t(st,[2,98]),t(st,[2,99]),t(st,[2,100]),{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:_,85:v,86:y,87:b,88:E,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F,121:O,122:D,123:M,124:P,125:N},{10:$,18:204},{44:[1,205]},t(Ue,[2,43]),{10:[1,206],44:g,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:113,114:I,115:L,116:F},{10:[1,207]},{10:[1,208],106:[1,209]},t(jt,[2,128]),{10:[1,210],44:g,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:113,114:I,115:L,116:F},{10:[1,211],44:g,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:113,114:I,115:L,116:F},{80:[1,212]},t(Ct,[2,109],{10:[1,213]}),t(Ct,[2,111],{10:[1,214]}),{80:[1,215]},t(mt,[2,184]),{80:[1,216],98:[1,217]},t(Ue,[2,55],{113:113,44:g,60:m,89:S,102:T,105:C,106:x,109:A,111:R,114:I,115:L,116:F}),{31:[1,218],67:qt,82:219,116:or,117:ir,118:gr},t(nr,[2,86]),t(nr,[2,88]),t(nr,[2,89]),t(nr,[2,153]),t(nr,[2,154]),t(nr,[2,155]),t(nr,[2,156]),{49:[1,220],67:qt,82:219,116:or,117:ir,118:gr},{30:221,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{51:[1,222],67:qt,82:219,116:or,117:ir,118:gr},{53:[1,223],67:qt,82:219,116:or,117:ir,118:gr},{55:[1,224],67:qt,82:219,116:or,117:ir,118:gr},{57:[1,225],67:qt,82:219,116:or,117:ir,118:gr},{60:[1,226]},{64:[1,227],67:qt,82:219,116:or,117:ir,118:gr},{66:[1,228],67:qt,82:219,116:or,117:ir,118:gr},{30:229,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},{31:[1,230],67:qt,82:219,116:or,117:ir,118:gr},{67:qt,69:[1,231],71:[1,232],82:219,116:or,117:ir,118:gr},{67:qt,69:[1,234],71:[1,233],82:219,116:or,117:ir,118:gr},t(G,[2,45],{18:156,10:$,40:gt}),t(G,[2,47],{44:kt}),t(Ae,[2,75]),t(Ae,[2,74]),{62:[1,235],67:qt,82:219,116:or,117:ir,118:gr},t(Ae,[2,77]),t(dn,[2,80]),{77:[1,236],79:198,116:je,119:ct},{30:237,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},t(Ut,a,{5:238}),t(st,[2,102]),t(U,[2,35]),{43:239,44:g,45:40,47:41,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},{10:$,18:240},{10:vr,60:Sr,84:yn,92:241,105:ln,107:242,108:243,109:xn,110:nn,111:Zr,112:Jr},{10:vr,60:Sr,84:yn,92:252,104:[1,253],105:ln,107:242,108:243,109:xn,110:nn,111:Zr,112:Jr},{10:vr,60:Sr,84:yn,92:254,104:[1,255],105:ln,107:242,108:243,109:xn,110:nn,111:Zr,112:Jr},{105:[1,256]},{10:vr,60:Sr,84:yn,92:257,105:ln,107:242,108:243,109:xn,110:nn,111:Zr,112:Jr},{44:g,47:258,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},t(Ct,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(Ct,[2,116]),t(Ct,[2,118],{10:[1,262]}),t(Ct,[2,119]),t(Se,[2,56]),t(nr,[2,87]),t(Se,[2,57]),{51:[1,263],67:qt,82:219,116:or,117:ir,118:gr},t(Se,[2,64]),t(Se,[2,59]),t(Se,[2,60]),t(Se,[2,61]),{109:[1,264]},t(Se,[2,63]),t(Se,[2,65]),{66:[1,265],67:qt,82:219,116:or,117:ir,118:gr},t(Se,[2,67]),t(Se,[2,68]),t(Se,[2,70]),t(Se,[2,69]),t(Se,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Ae,[2,78]),{31:[1,266],67:qt,82:219,116:or,117:ir,118:gr},{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:_,85:v,86:y,87:b,88:E,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F,121:O,122:D,123:M,124:P,125:N},t(Ue,[2,53]),{43:268,44:g,45:40,47:41,60:m,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F},t(Ct,[2,121],{106:Jn}),t(_a,[2,130],{108:270,10:vr,60:Sr,84:yn,105:ln,109:xn,110:nn,111:Zr,112:Jr}),t(si,[2,132]),t(si,[2,134]),t(si,[2,135]),t(si,[2,136]),t(si,[2,137]),t(si,[2,138]),t(si,[2,139]),t(si,[2,140]),t(si,[2,141]),t(Ct,[2,122],{106:Jn}),{10:[1,271]},t(Ct,[2,123],{106:Jn}),{10:[1,272]},t(jt,[2,129]),t(Ct,[2,105],{106:Jn}),t(Ct,[2,106],{113:113,44:g,60:m,89:S,102:T,105:C,106:x,109:A,111:R,114:I,115:L,116:F}),t(Ct,[2,110]),t(Ct,[2,112],{10:[1,273]}),t(Ct,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:B,9:V,11:z,21:278},t(U,[2,34]),t(Ue,[2,52]),{10:vr,60:Sr,84:yn,105:ln,107:279,108:243,109:xn,110:nn,111:Zr,112:Jr},t(si,[2,133]),{14:W,44:Q,60:ie,89:Z,101:280,105:re,106:K,109:j,111:se,114:le,115:_e,116:ye,120:88},{14:W,44:Q,60:ie,89:Z,101:281,105:re,106:K,109:j,111:se,114:le,115:_e,116:ye,120:88},{98:[1,282]},t(Ct,[2,120]),t(Se,[2,58]),{30:283,67:qt,80:De,81:pr,82:172,116:or,117:ir,118:gr},t(Se,[2,66]),t(Ut,a,{5:284}),t(_a,[2,131],{108:270,10:vr,60:Sr,84:yn,105:ln,109:xn,110:nn,111:Zr,112:Jr}),t(Ct,[2,126],{120:168,10:[1,285],14:W,44:Q,60:ie,89:Z,105:re,106:K,109:j,111:se,114:le,115:_e,116:ye}),t(Ct,[2,127],{120:168,10:[1,286],14:W,44:Q,60:ie,89:Z,105:re,106:K,109:j,111:se,114:le,115:_e,116:ye}),t(Ct,[2,114]),{31:[1,287],67:qt,82:219,116:or,117:ir,118:gr},{6:11,7:12,8:s,9:o,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:h,36:f,38:p,42:28,43:39,44:g,45:40,47:41,60:m,84:_,85:v,86:y,87:b,88:E,89:S,102:T,105:C,106:x,109:A,111:R,113:42,114:I,115:L,116:F,121:O,122:D,123:M,124:P,125:N},{10:vr,60:Sr,84:yn,92:289,105:ln,107:242,108:243,109:xn,110:nn,111:Zr,112:Jr},{10:vr,60:Sr,84:yn,92:290,105:ln,107:242,108:243,109:xn,110:nn,111:Zr,112:Jr},t(Se,[2,62]),t(U,[2,33]),t(Ct,[2,124],{106:Jn}),t(Ct,[2,125],{106:Jn})],defaultActions:{},parseError:k(function(Mt,Yt){if(Yt.recoverable)this.trace(Mt);else{var er=new Error(Mt);throw er.hash=Yt,er}},"parseError"),parse:k(function(Mt){var Yt=this,er=[0],Ht=[],Hr=[null],ot=[],Li=this.table,ut="",zn=0,dc=0,hc=2,dp=1,qg=ot.slice.call(arguments,1),Ka=Object.create(this.lexer),Ou={yy:{}};for(var fc in this.yy)Object.prototype.hasOwnProperty.call(this.yy,fc)&&(Ou.yy[fc]=this.yy[fc]);Ka.setInput(Mt,Ou.yy),Ou.yy.lexer=Ka,Ou.yy.parser=this,typeof Ka.yylloc>"u"&&(Ka.yylloc={});var pd=Ka.yylloc;ot.push(pd);var eo=Ka.options&&Ka.options.ranges;typeof Ou.yy.parseError=="function"?this.parseError=Ou.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function hp(zr){er.length=er.length-2*zr,Hr.length=Hr.length-zr,ot.length=ot.length-zr}k(hp,"popStack");function ch(){var zr;return zr=Ht.pop()||Ka.lex()||dp,typeof zr!="number"&&(zr instanceof Array&&(Ht=zr,zr=Ht.pop()),zr=Yt.symbols_[zr]||zr),zr}k(ch,"lex");for(var wr,bl,Ki,Pi,Ca={},Es,to,Do,kr;;){if(bl=er[er.length-1],this.defaultActions[bl]?Ki=this.defaultActions[bl]:((wr===null||typeof wr>"u")&&(wr=ch()),Ki=Li[bl]&&Li[bl][wr]),typeof Ki>"u"||!Ki.length||!Ki[0]){var en="";kr=[];for(Es in Li[bl])this.terminals_[Es]&&Es>hc&&kr.push("'"+this.terminals_[Es]+"'");Ka.showPosition?en="Parse error on line "+(zn+1)+`:
`+Ka.showPosition()+`
Expecting `+kr.join(", ")+", got '"+(this.terminals_[wr]||wr)+"'":en="Parse error on line "+(zn+1)+": Unexpected "+(wr==dp?"end of input":"'"+(this.terminals_[wr]||wr)+"'"),this.parseError(en,{text:Ka.match,token:this.terminals_[wr]||wr,line:Ka.yylineno,loc:pd,expected:kr})}if(Ki[0]instanceof Array&&Ki.length>1)throw new Error("Parse Error: multiple actions possible at state: "+bl+", token: "+wr);switch(Ki[0]){case 1:er.push(wr),Hr.push(Ka.yytext),ot.push(Ka.yylloc),er.push(Ki[1]),wr=null,dc=Ka.yyleng,ut=Ka.yytext,zn=Ka.yylineno,pd=Ka.yylloc;break;case 2:if(to=this.productions_[Ki[1]][1],Ca.$=Hr[Hr.length-to],Ca._$={first_line:ot[ot.length-(to||1)].first_line,last_line:ot[ot.length-1].last_line,first_column:ot[ot.length-(to||1)].first_column,last_column:ot[ot.length-1].last_column},eo&&(Ca._$.range=[ot[ot.length-(to||1)].range[0],ot[ot.length-1].range[1]]),Pi=this.performAction.apply(Ca,[ut,dc,zn,Ou.yy,Ki[1],Hr,ot].concat(qg)),typeof Pi<"u")return Pi;to&&(er=er.slice(0,-1*to*2),Hr=Hr.slice(0,-1*to),ot=ot.slice(0,-1*to)),er.push(this.productions_[Ki[1]][0]),Hr.push(Ca.$),ot.push(Ca._$),Do=Li[er[er.length-2]][er[er.length-1]],er.push(Do);break;case 3:return!0}}return!0},"parse")},Vr=(function(){var Ot={EOF:1,parseError:k(function(Yt,er){if(this.yy.parser)this.yy.parser.parseError(Yt,er);else throw new Error(Yt)},"parseError"),setInput:k(function(Mt,Yt){return this.yy=Yt||this.yy||{},this._input=Mt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var Mt=this._input[0];this.yytext+=Mt,this.yyleng++,this.offset++,this.match+=Mt,this.matched+=Mt;var Yt=Mt.match(/(?:\r\n?|\n).*/g);return Yt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Mt},"input"),unput:k(function(Mt){var Yt=Mt.length,er=Mt.split(/(?:\r\n?|\n)/g);this._input=Mt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Yt),this.offset-=Yt;var Ht=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),er.length-1&&(this.yylineno-=er.length-1);var Hr=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:er?(er.length===Ht.length?this.yylloc.first_column:0)+Ht[Ht.length-er.length].length-er[0].length:this.yylloc.first_column-Yt},this.options.ranges&&(this.yylloc.range=[Hr[0],Hr[0]+this.yyleng-Yt]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(Mt){this.unput(this.match.slice(Mt))},"less"),pastInput:k(function(){var Mt=this.matched.substr(0,this.matched.length-this.match.length);return(Mt.length>20?"...":"")+Mt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var Mt=this.match;return Mt.length<20&&(Mt+=this._input.substr(0,20-Mt.length)),(Mt.substr(0,20)+(Mt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var Mt=this.pastInput(),Yt=new Array(Mt.length+1).join("-");return Mt+this.upcomingInput()+`
`+Yt+"^"},"showPosition"),test_match:k(function(Mt,Yt){var er,Ht,Hr;if(this.options.backtrack_lexer&&(Hr={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Hr.yylloc.range=this.yylloc.range.slice(0))),Ht=Mt[0].match(/(?:\r\n?|\n).*/g),Ht&&(this.yylineno+=Ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ht?Ht[Ht.length-1].length-Ht[Ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Mt[0].length},this.yytext+=Mt[0],this.match+=Mt[0],this.matches=Mt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Mt[0].length),this.matched+=Mt[0],er=this.performAction.call(this,this.yy,this,Yt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),er)return er;if(this._backtrack){for(var ot in Hr)this[ot]=Hr[ot];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Mt,Yt,er,Ht;this._more||(this.yytext="",this.match="");for(var Hr=this._currentRules(),ot=0;ot<Hr.length;ot++)if(er=this._input.match(this.rules[Hr[ot]]),er&&(!Yt||er[0].length>Yt[0].length)){if(Yt=er,Ht=ot,this.options.backtrack_lexer){if(Mt=this.test_match(er,Hr[ot]),Mt!==!1)return Mt;if(this._backtrack){Yt=!1;continue}else return!1}else if(!this.options.flex)break}return Yt?(Mt=this.test_match(Yt,Hr[Ht]),Mt!==!1?Mt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var Yt=this.next();return Yt||this.lex()},"lex"),begin:k(function(Yt){this.conditionStack.push(Yt)},"begin"),popState:k(function(){var Yt=this.conditionStack.length-1;return Yt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(Yt){return Yt=this.conditionStack.length-1-Math.abs(Yt||0),Yt>=0?this.conditionStack[Yt]:"INITIAL"},"topState"),pushState:k(function(Yt){this.begin(Yt)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(Yt,er,Ht,Hr){switch(Ht){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),er.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const ot=/\n\s*/g;return er.yytext=er.yytext.replace(ot,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return Yt.lex.firstGraph()&&this.begin("dir"),12;case 36:return Yt.lex.firstGraph()&&this.begin("dir"),12;case 37:return Yt.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:return 119;case 72:return this.popState(),77;case 73:return this.pushState("thickEdgeText"),75;case 74:return 119;case 75:return this.popState(),77;case 76:return this.pushState("dottedEdgeText"),75;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 116:return"TEXT";case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}};return Ot})();Ta.lexer=Vr;function Ze(){this.yy={}}return k(Ze,"Parser"),Ze.prototype=Ta,Ta.Parser=Ze,new Ze})();wte.parser=wte;var THe=wte,CHe=Object.assign({},THe);CHe.parse=t=>{const e=t.replace(/}\s*\n/g,`}
`);return THe.parse(e)};var Z3r=CHe,J3r=k((t,e)=>{const r=Jle,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Pf(n,i,a,e)},"fade"),e5r=k(t=>`.label {
    font-family: ${t.fontFamily};
    color: ${t.nodeTextColor||t.textColor};
  }
  .cluster-label text {
    fill: ${t.titleColor};
  }
  .cluster-label span {
    color: ${t.titleColor};
  }
  .cluster-label span p {
    background-color: transparent;
  }

  .label text,span {
    fill: ${t.nodeTextColor||t.textColor};
    color: ${t.nodeTextColor||t.textColor};
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${t.mainBkg};
    stroke: ${t.nodeBorder};
    stroke-width: ${t.strokeWidth??1}px;
  }
  .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
    text-anchor: middle;
  }
  // .flowchart-label .text-outer-tspan {
  //   text-anchor: middle;
  // }
  // .flowchart-label .text-inner-tspan {
  //   text-anchor: start;
  // }

  .node .katex path {
    fill: #000;
    stroke: #000;
    stroke-width: 1px;
  }

  .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }


  .root .anchor path {
    fill: ${t.lineColor} !important;
    stroke-width: 0;
    stroke: ${t.lineColor};
  }

  .arrowheadPath {
    fill: ${t.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${t.lineColor};
    stroke-width: ${t.strokeWidth??2}px;
  }

  .flowchart-link {
    stroke: ${t.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${t.edgeLabelBackground};
    p {
      background-color: ${t.edgeLabelBackground};
    }
    rect {
      opacity: 0.5;
      background-color: ${t.edgeLabelBackground};
      fill: ${t.edgeLabelBackground};
    }
    text-align: center;
  }

  /* For html labels only */
  .labelBkg {
    background-color: ${J3r(t.edgeLabelBackground,.5)};
    // background-color:
  }

  .cluster rect {
    fill: ${t.clusterBkg};
    stroke: ${t.clusterBorder};
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${t.titleColor};
  }

  .cluster span {
    color: ${t.titleColor};
  }
  /* .cluster div {
    color: ${t.titleColor};
  } */

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${t.fontFamily};
    font-size: 12px;
    background: ${t.tertiaryColor};
    border: 1px solid ${t.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .flowchartTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${t.textColor};
  }

  rect.text {
    fill: none;
    stroke-width: 0;
  }

  .icon-shape, .image-shape {
    background-color: ${t.edgeLabelBackground};
    p {
      background-color: ${t.edgeLabelBackground};
      padding: 2px;
    }
    .label rect {
      opacity: 0.5;
      background-color: ${t.edgeLabelBackground};
      fill: ${t.edgeLabelBackground};
    }
    text-align: center;
  }
  ${cD()}
`,"getStyles"),t5r=e5r,r5r={parser:Z3r,get db(){return new K3r},renderer:Q3r,styles:t5r,init:k(t=>{t.flowchart||(t.flowchart={}),t.layout&&KJ({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,KJ({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")};const hde=Object.freeze(Object.defineProperty({__proto__:null,diagram:r5r},Symbol.toStringTag,{value:"Module"}));var xte=(function(){var t=k(function(_e,ye,Ue,Se){for(Ue=Ue||{},Se=_e.length;Se--;Ue[_e[Se]]=ye);return Ue},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],n=[1,11],i=[1,12],a=[1,13],s=[1,23],o=[1,24],l=[1,25],u=[1,26],d=[1,27],h=[1,19],f=[1,28],p=[1,29],g=[1,20],m=[1,18],_=[1,21],v=[1,22],y=[1,36],b=[1,37],E=[1,38],S=[1,39],T=[1,40],C=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],x=[1,45],A=[1,46],R=[1,55],I=[40,48,50,51,52,70,71],L=[1,66],F=[1,64],O=[1,61],D=[1,65],M=[1,67],P=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],N=[65,66,67,68,69],$=[1,84],U=[1,83],B=[1,81],V=[1,82],z=[6,10,42,47],G=[6,10,13,41,42,47,48,49],Y=[1,92],W=[1,91],Q=[1,90],ie=[19,58],Z=[1,101],re=[1,100],K=[19,58,60,62],j={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:k(function(ye,Ue,Se,be,ke,Ae,tt){var Oe=Ae.length-1;switch(ke){case 1:break;case 2:this.$=[];break;case 3:Ae[Oe-1].push(Ae[Oe]),this.$=Ae[Oe-1];break;case 4:case 5:this.$=Ae[Oe];break;case 6:case 7:this.$=[];break;case 8:be.addEntity(Ae[Oe-4]),be.addEntity(Ae[Oe-2]),be.addRelationship(Ae[Oe-4],Ae[Oe],Ae[Oe-2],Ae[Oe-3]);break;case 9:be.addEntity(Ae[Oe-8]),be.addEntity(Ae[Oe-4]),be.addRelationship(Ae[Oe-8],Ae[Oe],Ae[Oe-4],Ae[Oe-5]),be.setClass([Ae[Oe-8]],Ae[Oe-6]),be.setClass([Ae[Oe-4]],Ae[Oe-2]);break;case 10:be.addEntity(Ae[Oe-6]),be.addEntity(Ae[Oe-2]),be.addRelationship(Ae[Oe-6],Ae[Oe],Ae[Oe-2],Ae[Oe-3]),be.setClass([Ae[Oe-6]],Ae[Oe-4]);break;case 11:be.addEntity(Ae[Oe-6]),be.addEntity(Ae[Oe-4]),be.addRelationship(Ae[Oe-6],Ae[Oe],Ae[Oe-4],Ae[Oe-5]),be.setClass([Ae[Oe-4]],Ae[Oe-2]);break;case 12:be.addEntity(Ae[Oe-3]),be.addAttributes(Ae[Oe-3],Ae[Oe-1]);break;case 13:be.addEntity(Ae[Oe-5]),be.addAttributes(Ae[Oe-5],Ae[Oe-1]),be.setClass([Ae[Oe-5]],Ae[Oe-3]);break;case 14:be.addEntity(Ae[Oe-2]);break;case 15:be.addEntity(Ae[Oe-4]),be.setClass([Ae[Oe-4]],Ae[Oe-2]);break;case 16:be.addEntity(Ae[Oe]);break;case 17:be.addEntity(Ae[Oe-2]),be.setClass([Ae[Oe-2]],Ae[Oe]);break;case 18:be.addEntity(Ae[Oe-6],Ae[Oe-4]),be.addAttributes(Ae[Oe-6],Ae[Oe-1]);break;case 19:be.addEntity(Ae[Oe-8],Ae[Oe-6]),be.addAttributes(Ae[Oe-8],Ae[Oe-1]),be.setClass([Ae[Oe-8]],Ae[Oe-3]);break;case 20:be.addEntity(Ae[Oe-5],Ae[Oe-3]);break;case 21:be.addEntity(Ae[Oe-7],Ae[Oe-5]),be.setClass([Ae[Oe-7]],Ae[Oe-2]);break;case 22:be.addEntity(Ae[Oe-3],Ae[Oe-1]);break;case 23:be.addEntity(Ae[Oe-5],Ae[Oe-3]),be.setClass([Ae[Oe-5]],Ae[Oe]);break;case 24:case 25:this.$=Ae[Oe].trim(),be.setAccTitle(this.$);break;case 26:case 27:this.$=Ae[Oe].trim(),be.setAccDescription(this.$);break;case 32:be.setDirection("TB");break;case 33:be.setDirection("BT");break;case 34:be.setDirection("RL");break;case 35:be.setDirection("LR");break;case 36:this.$=Ae[Oe-3],be.addClass(Ae[Oe-2],Ae[Oe-1]);break;case 37:case 38:case 59:case 67:this.$=[Ae[Oe]];break;case 39:case 40:this.$=Ae[Oe-2].concat([Ae[Oe]]);break;case 41:this.$=Ae[Oe-2],be.setClass(Ae[Oe-1],Ae[Oe]);break;case 42:this.$=Ae[Oe-3],be.addCssStyles(Ae[Oe-2],Ae[Oe-1]);break;case 43:this.$=[Ae[Oe]];break;case 44:Ae[Oe-2].push(Ae[Oe]),this.$=Ae[Oe-2];break;case 46:this.$=Ae[Oe-1]+Ae[Oe];break;case 54:case 79:case 80:this.$=Ae[Oe].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=Ae[Oe];break;case 60:Ae[Oe].push(Ae[Oe-1]),this.$=Ae[Oe];break;case 61:this.$={type:Ae[Oe-1],name:Ae[Oe]};break;case 62:this.$={type:Ae[Oe-2],name:Ae[Oe-1],keys:Ae[Oe]};break;case 63:this.$={type:Ae[Oe-2],name:Ae[Oe-1],comment:Ae[Oe]};break;case 64:this.$={type:Ae[Oe-3],name:Ae[Oe-2],keys:Ae[Oe-1],comment:Ae[Oe]};break;case 65:case 66:case 69:this.$=Ae[Oe];break;case 68:Ae[Oe-2].push(Ae[Oe]),this.$=Ae[Oe-2];break;case 70:this.$=Ae[Oe].replace(/"/g,"");break;case 71:this.$={cardA:Ae[Oe],relType:Ae[Oe-1],cardB:Ae[Oe-2]};break;case 72:this.$=be.Cardinality.ZERO_OR_ONE;break;case 73:this.$=be.Cardinality.ZERO_OR_MORE;break;case 74:this.$=be.Cardinality.ONE_OR_MORE;break;case 75:this.$=be.Cardinality.ONLY_ONE;break;case 76:this.$=be.Cardinality.MD_PARENT;break;case 77:this.$=be.Identification.NON_IDENTIFYING;break;case 78:this.$=be.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:n,26:i,28:a,29:14,30:15,31:16,32:17,33:s,34:o,35:l,36:u,37:d,40:h,43:f,44:p,48:g,50:m,51:_,52:v},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:r,24:n,26:i,28:a,29:14,30:15,31:16,32:17,33:s,34:o,35:l,36:u,37:d,40:h,43:f,44:p,48:g,50:m,51:_,52:v},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:y,66:b,67:E,68:S,69:T}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(C,[2,54]),t(C,[2,55]),t(C,[2,56]),t(C,[2,57]),t(C,[2,58]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:44,40:x,41:A},{16:47,40:x,41:A},{16:48,40:x,41:A},t(e,[2,4]),{11:49,40:h,48:g,50:m,51:_,52:v},{16:50,40:x,41:A},{18:51,19:[1,52],53:53,54:54,58:R},{11:56,40:h,48:g,50:m,51:_,52:v},{64:57,70:[1,58],71:[1,59]},t(I,[2,72]),t(I,[2,73]),t(I,[2,74]),t(I,[2,75]),t(I,[2,76]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:L,38:60,41:F,42:O,45:62,46:63,48:D,49:M},t(P,[2,37]),t(P,[2,38]),{16:68,40:x,41:A,42:O},{13:L,38:69,41:F,42:O,45:62,46:63,48:D,49:M},{13:[1,70],15:[1,71]},t(e,[2,17],{63:35,12:72,17:[1,73],42:O,65:y,66:b,67:E,68:S,69:T}),{19:[1,74]},t(e,[2,14]),{18:75,19:[2,59],53:53,54:54,58:R},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:y,66:b,67:E,68:S,69:T},t(N,[2,77]),t(N,[2,78]),{6:$,10:U,39:80,42:B,47:V},{40:[1,85],41:[1,86]},t(z,[2,43],{46:87,13:L,41:F,48:D,49:M}),t(G,[2,45]),t(G,[2,50]),t(G,[2,51]),t(G,[2,52]),t(G,[2,53]),t(e,[2,41],{42:O}),{6:$,10:U,39:88,42:B,47:V},{14:89,40:Y,50:W,72:Q},{16:93,40:x,41:A},{11:94,40:h,48:g,50:m,51:_,52:v},{18:95,19:[1,96],53:53,54:54,58:R},t(e,[2,12]),{19:[2,60]},t(ie,[2,61],{56:97,57:98,59:99,61:Z,62:re}),t([19,58,61,62],[2,66]),t(e,[2,22],{15:[1,103],17:[1,102]}),t([40,48,50,51,52],[2,71]),t(e,[2,36]),{13:L,41:F,45:104,46:63,48:D,49:M},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(P,[2,39]),t(P,[2,40]),t(G,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,79]),t(e,[2,80]),t(e,[2,81]),{13:[1,105],42:O},{13:[1,107],15:[1,106]},{19:[1,108]},t(e,[2,15]),t(ie,[2,62],{57:109,60:[1,110],62:re}),t(ie,[2,63]),t(K,[2,67]),t(ie,[2,70]),t(K,[2,69]),{18:111,19:[1,112],53:53,54:54,58:R},{16:113,40:x,41:A},t(z,[2,44],{46:87,13:L,41:F,48:D,49:M}),{14:114,40:Y,50:W,72:Q},{16:115,40:x,41:A},{14:116,40:Y,50:W,72:Q},t(e,[2,13]),t(ie,[2,64]),{59:117,61:Z},{19:[1,118]},t(e,[2,20]),t(e,[2,23],{17:[1,119],42:O}),t(e,[2,11]),{13:[1,120],42:O},t(e,[2,10]),t(K,[2,68]),t(e,[2,18]),{18:121,19:[1,122],53:53,54:54,58:R},{14:123,40:Y,50:W,72:Q},{19:[1,124]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:k(function(ye,Ue){if(Ue.recoverable)this.trace(ye);else{var Se=new Error(ye);throw Se.hash=Ue,Se}},"parseError"),parse:k(function(ye){var Ue=this,Se=[0],be=[],ke=[null],Ae=[],tt=this.table,Oe="",je=0,ct=0,Fe=2,Xe=1,et=Ae.slice.call(arguments,1),Ie=Object.create(this.lexer),we={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(we.yy[ce]=this.yy[ce]);Ie.setInput(ye,we.yy),we.yy.lexer=Ie,we.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var Te=Ie.yylloc;Ae.push(Te);var fe=Ie.options&&Ie.options.ranges;typeof we.yy.parseError=="function"?this.parseError=we.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(pt){Se.length=Se.length-2*pt,ke.length=ke.length-pt,Ae.length=Ae.length-pt}k(Be,"popStack");function me(){var pt;return pt=be.pop()||Ie.lex()||Xe,typeof pt!="number"&&(pt instanceof Array&&(be=pt,pt=be.pop()),pt=Ue.symbols_[pt]||pt),pt}k(me,"lex");for(var Ye,qe,lt,it,He={},Je,ht,rt,$e;;){if(qe=Se[Se.length-1],this.defaultActions[qe]?lt=this.defaultActions[qe]:((Ye===null||typeof Ye>"u")&&(Ye=me()),lt=tt[qe]&&tt[qe][Ye]),typeof lt>"u"||!lt.length||!lt[0]){var xe="";$e=[];for(Je in tt[qe])this.terminals_[Je]&&Je>Fe&&$e.push("'"+this.terminals_[Je]+"'");Ie.showPosition?xe="Parse error on line "+(je+1)+`:
`+Ie.showPosition()+`
Expecting `+$e.join(", ")+", got '"+(this.terminals_[Ye]||Ye)+"'":xe="Parse error on line "+(je+1)+": Unexpected "+(Ye==Xe?"end of input":"'"+(this.terminals_[Ye]||Ye)+"'"),this.parseError(xe,{text:Ie.match,token:this.terminals_[Ye]||Ye,line:Ie.yylineno,loc:Te,expected:$e})}if(lt[0]instanceof Array&&lt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qe+", token: "+Ye);switch(lt[0]){case 1:Se.push(Ye),ke.push(Ie.yytext),Ae.push(Ie.yylloc),Se.push(lt[1]),Ye=null,ct=Ie.yyleng,Oe=Ie.yytext,je=Ie.yylineno,Te=Ie.yylloc;break;case 2:if(ht=this.productions_[lt[1]][1],He.$=ke[ke.length-ht],He._$={first_line:Ae[Ae.length-(ht||1)].first_line,last_line:Ae[Ae.length-1].last_line,first_column:Ae[Ae.length-(ht||1)].first_column,last_column:Ae[Ae.length-1].last_column},fe&&(He._$.range=[Ae[Ae.length-(ht||1)].range[0],Ae[Ae.length-1].range[1]]),it=this.performAction.apply(He,[Oe,ct,je,we.yy,lt[1],ke,Ae].concat(et)),typeof it<"u")return it;ht&&(Se=Se.slice(0,-1*ht*2),ke=ke.slice(0,-1*ht),Ae=Ae.slice(0,-1*ht)),Se.push(this.productions_[lt[1]][0]),ke.push(He.$),Ae.push(He._$),rt=tt[Se[Se.length-2]][Se[Se.length-1]],Se.push(rt);break;case 3:return!0}}return!0},"parse")},se=(function(){var _e={EOF:1,parseError:k(function(Ue,Se){if(this.yy.parser)this.yy.parser.parseError(Ue,Se);else throw new Error(Ue)},"parseError"),setInput:k(function(ye,Ue){return this.yy=Ue||this.yy||{},this._input=ye,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var ye=this._input[0];this.yytext+=ye,this.yyleng++,this.offset++,this.match+=ye,this.matched+=ye;var Ue=ye.match(/(?:\r\n?|\n).*/g);return Ue?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ye},"input"),unput:k(function(ye){var Ue=ye.length,Se=ye.split(/(?:\r\n?|\n)/g);this._input=ye+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ue),this.offset-=Ue;var be=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Se.length-1&&(this.yylineno-=Se.length-1);var ke=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Se?(Se.length===be.length?this.yylloc.first_column:0)+be[be.length-Se.length].length-Se[0].length:this.yylloc.first_column-Ue},this.options.ranges&&(this.yylloc.range=[ke[0],ke[0]+this.yyleng-Ue]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(ye){this.unput(this.match.slice(ye))},"less"),pastInput:k(function(){var ye=this.matched.substr(0,this.matched.length-this.match.length);return(ye.length>20?"...":"")+ye.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var ye=this.match;return ye.length<20&&(ye+=this._input.substr(0,20-ye.length)),(ye.substr(0,20)+(ye.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var ye=this.pastInput(),Ue=new Array(ye.length+1).join("-");return ye+this.upcomingInput()+`
`+Ue+"^"},"showPosition"),test_match:k(function(ye,Ue){var Se,be,ke;if(this.options.backtrack_lexer&&(ke={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ke.yylloc.range=this.yylloc.range.slice(0))),be=ye[0].match(/(?:\r\n?|\n).*/g),be&&(this.yylineno+=be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:be?be[be.length-1].length-be[be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ye[0].length},this.yytext+=ye[0],this.match+=ye[0],this.matches=ye,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ye[0].length),this.matched+=ye[0],Se=this.performAction.call(this,this.yy,this,Ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Se)return Se;if(this._backtrack){for(var Ae in ke)this[Ae]=ke[Ae];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ye,Ue,Se,be;this._more||(this.yytext="",this.match="");for(var ke=this._currentRules(),Ae=0;Ae<ke.length;Ae++)if(Se=this._input.match(this.rules[ke[Ae]]),Se&&(!Ue||Se[0].length>Ue[0].length)){if(Ue=Se,be=Ae,this.options.backtrack_lexer){if(ye=this.test_match(Se,ke[Ae]),ye!==!1)return ye;if(this._backtrack){Ue=!1;continue}else return!1}else if(!this.options.flex)break}return Ue?(ye=this.test_match(Ue,ke[be]),ye!==!1?ye:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var Ue=this.next();return Ue||this.lex()},"lex"),begin:k(function(Ue){this.conditionStack.push(Ue)},"begin"),popState:k(function(){var Ue=this.conditionStack.length-1;return Ue>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(Ue){return Ue=this.conditionStack.length-1-Math.abs(Ue||0),Ue>=0?this.conditionStack[Ue]:"INITIAL"},"topState"),pushState:k(function(Ue){this.begin(Ue)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(Ue,Se,be,ke){switch(be){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return Se.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return Se.yytext[0];case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}};return _e})();j.lexer=se;function le(){this.yy={}}return k(le,"Parser"),le.prototype=j,j.Parser=le,new le})();xte.parser=xte;var n5r=xte,kC,i5r=(kC=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=ms,this.getAccTitle=Fs,this.setAccDescription=Bs,this.getAccDescription=Us,this.setDiagramTitle=ks,this.getDiagramTitle=bs,this.getConfig=k(()=>vt().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(e,r=""){return this.entities.has(e)?!this.entities.get(e)?.alias&&r&&(this.entities.get(e).alias=r,Pe.info(`Add alias '${r}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:r,shape:"erBox",look:vt().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),Pe.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,r){const n=this.addEntity(e);let i;for(i=r.length-1;i>=0;i--)r[i].keys||(r[i].keys=[]),r[i].comment||(r[i].comment=""),n.attributes.push(r[i]),Pe.debug("Added attribute ",r[i].name)}addRelationship(e,r,n,i){const a=this.entities.get(e),s=this.entities.get(n);if(!a||!s)return;const o={entityA:a.id,roleA:r,entityB:s.id,relSpec:i};this.relationships.push(o),Pe.debug("Added new relationship :",o)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let r=[];for(const n of e){const i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(a=>a.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(a=>a.trim()))}return r}addCssStyles(e,r){for(const n of e){const i=this.entities.get(n);if(!r||!i)return;for(const a of r)i.cssStyles.push(a)}}addClass(e,r){e.forEach(n=>{let i=this.classes.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.classes.set(n,i)),r&&r.forEach(function(a){if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)})})}setClass(e,r){for(const n of e){const i=this.entities.get(n);if(i)for(const a of r)i.cssClasses+=" "+a}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],ys()}getData(){const e=[],r=[],n=vt();let i=0;for(const s of this.entities.keys()){const o=this.entities.get(s);o&&(o.cssCompiledStyles=this.getCompiledStyles(o.cssClasses.split(" ")),o.colorIndex=i++,e.push(o))}let a=0;for(const s of this.relationships){const o={id:ZT(s.entityA,s.entityB,{prefix:"id",counter:a++}),type:"normal",curve:"basis",start:s.entityA,end:s.entityB,label:s.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:s.relSpec.cardB.toLowerCase(),arrowTypeEnd:s.relSpec.cardA.toLowerCase(),pattern:s.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:n.look,labelType:"markdown"};r.push(o)}return{nodes:e,edges:r,other:{},config:n,direction:"TB"}}},k(kC,"ErDB"),kC),wHe={};SU(wHe,{draw:()=>a5r});var a5r=k(async function(t,e,r,n){Pe.info("REF0:"),Pe.info("Drawing er diagram (unified)",e);const{securityLevel:i,er:a,layout:s}=vt(),o=n.db.getData(),l=UR(e,i);o.type=n.type,o.layoutAlgorithm=Y5(s),o.config.flowchart.nodeSpacing=a?.nodeSpacing||140,o.config.flowchart.rankSpacing=a?.rankSpacing||80,o.direction=n.db.getDirection();const{config:u}=o,{look:d}=u;d==="neo"?o.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:o.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],o.diagramId=e,await RR(o,l),o.layoutAlgorithm==="elk"&&l.select(".edges").lower();const h=l.selectAll('[id*="-background"]');Array.from(h).length>0&&h.each(function(){const p=dr(this),m=p.attr("id").replace("-background",""),_=l.select(`#${CSS.escape(m)}`);if(!_.empty()){const v=_.attr("transform");p.attr("transform",v)}});const f=8;ci.insertTitle(l,"erDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),CE(l,f,"erDiagram",a?.useMaxWidth??!0)},"draw"),eOe=k((t,e)=>{const r=Jle,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Pf(n,i,a,e)},"fade"),m6=new Set(["redux-color","redux-dark-color"]),s5r=k(t=>{const{theme:e,look:r,bkgColorArray:n,borderColorArray:i}=t;if(!m6.has(e))return"";const a=n?.length>0;let s="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)s+=`

    [data-look="${r}"][data-color-id="color-${o}"].node path {
    stroke: ${i[o]};
    ${a?`fill: ${n[o]};`:""}
    }

    [data-look="${r}"][data-color-id="color-${o}"].node  rect {
    stroke: ${i[o]};
    ${a?`fill: ${n[o]};`:""}
     }
    `;return s},"genColor"),o5r=k(t=>{const{look:e,theme:r,erEdgeLabelBackground:n,strokeWidth:i}=t;return`
    ${s5r(t)}
  .entityBox {
    fill: ${t.mainBkg};
    stroke: ${t.nodeBorder};
  }

  .relationshipLabelBox {
    fill: ${t.tertiaryColor};
    opacity: 0.7;
    background-color: ${t.tertiaryColor};
      rect {
        opacity: 0.5;
      }
  }

  .labelBkg {
    background-color: ${m6.has(r)&&n?n:eOe(t.tertiaryColor,.5)};
  }

  .edgeLabel {
    background-color: ${m6.has(r)&&n?n:t.edgeLabelBackground};
  }
  .edgeLabel .label rect {
    fill: ${m6.has(r)&&n?n:t.edgeLabelBackground};
  }
  .edgeLabel .label text {
    fill: ${t.textColor};
  }

  .edgeLabel .label {
    fill: ${t.nodeBorder};
    font-size: 14px;
  }

  .label {
    font-family: ${t.fontFamily};
    color: ${t.nodeTextColor||t.textColor};
  }

  .edge-pattern-dashed {
    stroke-dasharray: 8,8;
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon
  {
    fill: ${t.mainBkg};
    stroke: ${t.nodeBorder};
    stroke-width: ${e==="neo"?i:"1px"};
  }

  .relationshipLine {
    stroke: ${t.lineColor};
    stroke-width: ${e==="neo"?i:"1px"};
    fill: none;
  }

  .marker {
    fill: none !important;
    stroke: ${t.lineColor} !important;
    stroke-width: 1;
  }
  [data-look=neo].labelBkg {
    background-color: ${eOe(t.tertiaryColor,.5)};
  }
`},"getStyles"),l5r=o5r,c5r={parser:n5r,get db(){return new i5r},renderer:wHe,styles:l5r};const u5r=Object.freeze(Object.defineProperty({__proto__:null,diagram:c5r},Symbol.toStringTag,{value:"Module"}));function Lg(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}k(Lg,"populateCommonDb");var DC,fde=(DC=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},k(DC,"ImperativeState"),DC),d5r=Object.create,uD=Object.defineProperty,h5r=Object.getOwnPropertyDescriptor,pde=Object.getOwnPropertyNames,f5r=Object.getPrototypeOf,p5r=Object.prototype.hasOwnProperty,q=(t,e)=>uD(t,"name",{value:e,configurable:!0}),g5r=(t,e)=>function(){return t&&(e=(0,t[pde(t)[0]])(t=0)),e},vi=(t,e)=>function(){return e||(0,t[pde(t)[0]])((e={exports:{}}).exports,e),e.exports},ev=(t,e)=>{for(var r in e)uD(t,r,{get:e[r],enumerable:!0})},gde=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pde(e))!p5r.call(t,i)&&i!==r&&uD(t,i,{get:()=>e[i],enumerable:!(n=h5r(e,i))||n.enumerable});return t},D$=(t,e,r)=>(gde(t,e,"default"),r),mde=(t,e,r)=>(r=t!=null?d5r(f5r(t)):{},gde(uD(r,"default",{value:t,enumerable:!0}),t)),_de=t=>gde(uD({},"__esModule",{value:!0}),t),M$={};ev(M$,{AnnotatedTextEdit:()=>fm,ChangeAnnotation:()=>jv,ChangeAnnotationIdentifier:()=>Bl,CodeAction:()=>sre,CodeActionContext:()=>are,CodeActionKind:()=>ire,CodeActionTriggerKind:()=>GI,CodeDescription:()=>Pte,CodeLens:()=>ore,Color:()=>v6,ColorInformation:()=>Ite,ColorPresentation:()=>Nte,Command:()=>Kv,CompletionItem:()=>Yte,CompletionItemKind:()=>$te,CompletionItemLabelDetails:()=>Hte,CompletionItemTag:()=>zte,CompletionList:()=>Wte,CreateFile:()=>WS,DeleteFile:()=>jS,Diagnostic:()=>FI,DiagnosticRelatedInformation:()=>y6,DiagnosticSeverity:()=>Mte,DiagnosticTag:()=>Lte,DocumentHighlight:()=>Zte,DocumentHighlightKind:()=>Qte,DocumentLink:()=>cre,DocumentSymbol:()=>nre,DocumentUri:()=>Ate,EOL:()=>AHe,FoldingRange:()=>Dte,FoldingRangeKind:()=>kte,FormattingOptions:()=>lre,Hover:()=>Kte,InlayHint:()=>vre,InlayHintKind:()=>S6,InlayHintLabelPart:()=>T6,InlineCompletionContext:()=>Cre,InlineCompletionItem:()=>bre,InlineCompletionList:()=>Ere,InlineCompletionTriggerKind:()=>Sre,InlineValueContext:()=>_re,InlineValueEvaluatableExpression:()=>mre,InlineValueText:()=>pre,InlineValueVariableLookup:()=>gre,InsertReplaceEdit:()=>qte,InsertTextFormat:()=>Gte,InsertTextMode:()=>Vte,Location:()=>PI,LocationLink:()=>Ote,MarkedString:()=>$I,MarkupContent:()=>XS,MarkupKind:()=>E6,OptionalVersionedTextDocumentIdentifier:()=>UI,ParameterInformation:()=>jte,Position:()=>wa,Range:()=>ia,RenameFile:()=>KS,SelectedCompletionInfo:()=>Tre,SelectionRange:()=>ure,SemanticTokenModifiers:()=>hre,SemanticTokenTypes:()=>dre,SemanticTokens:()=>fre,SignatureInformation:()=>Xte,StringValue:()=>yre,SymbolInformation:()=>tre,SymbolKind:()=>Jte,SymbolTag:()=>ere,TextDocument:()=>xre,TextDocumentEdit:()=>BI,TextDocumentIdentifier:()=>Fte,TextDocumentItem:()=>Ute,TextEdit:()=>Rp,URI:()=>_6,VersionedTextDocumentIdentifier:()=>Bte,WorkspaceChange:()=>xHe,WorkspaceEdit:()=>b6,WorkspaceFolder:()=>wre,WorkspaceSymbol:()=>rre,integer:()=>Rte,uinteger:()=>LI});var Ate,_6,Rte,LI,wa,ia,PI,Ote,v6,Ite,Nte,kte,Dte,y6,Mte,Lte,Pte,FI,Kv,Rp,jv,Bl,fm,BI,WS,KS,jS,b6,XO,xX,xHe,Fte,Bte,UI,Ute,E6,XS,$te,Gte,zte,qte,Vte,Hte,Yte,Wte,$I,Kte,jte,Xte,Qte,Zte,Jte,ere,tre,rre,nre,ire,GI,are,sre,ore,lre,cre,ure,dre,hre,fre,pre,gre,mre,_re,S6,T6,vre,yre,bre,Ere,Sre,Tre,Cre,wre,AHe,xre,tOe,Xt,dD=g5r({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(i){function a(s){return typeof s=="string"}q(a,"is"),i.is=a})(Ate||(Ate={})),(function(i){function a(s){return typeof s=="string"}q(a,"is"),i.is=a})(_6||(_6={})),(function(i){i.MIN_VALUE=-2147483648,i.MAX_VALUE=2147483647;function a(s){return typeof s=="number"&&i.MIN_VALUE<=s&&s<=i.MAX_VALUE}q(a,"is"),i.is=a})(Rte||(Rte={})),(function(i){i.MIN_VALUE=0,i.MAX_VALUE=2147483647;function a(s){return typeof s=="number"&&i.MIN_VALUE<=s&&s<=i.MAX_VALUE}q(a,"is"),i.is=a})(LI||(LI={})),(function(i){function a(o,l){return o===Number.MAX_VALUE&&(o=LI.MAX_VALUE),l===Number.MAX_VALUE&&(l=LI.MAX_VALUE),{line:o,character:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.objectLiteral(l)&&Xt.uinteger(l.line)&&Xt.uinteger(l.character)}q(s,"is"),i.is=s})(wa||(wa={})),(function(i){function a(o,l,u,d){if(Xt.uinteger(o)&&Xt.uinteger(l)&&Xt.uinteger(u)&&Xt.uinteger(d))return{start:wa.create(o,l),end:wa.create(u,d)};if(wa.is(o)&&wa.is(l))return{start:o,end:l};throw new Error(`Range#create called with invalid arguments[${o}, ${l}, ${u}, ${d}]`)}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.objectLiteral(l)&&wa.is(l.start)&&wa.is(l.end)}q(s,"is"),i.is=s})(ia||(ia={})),(function(i){function a(o,l){return{uri:o,range:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.objectLiteral(l)&&ia.is(l.range)&&(Xt.string(l.uri)||Xt.undefined(l.uri))}q(s,"is"),i.is=s})(PI||(PI={})),(function(i){function a(o,l,u,d){return{targetUri:o,targetRange:l,targetSelectionRange:u,originSelectionRange:d}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.objectLiteral(l)&&ia.is(l.targetRange)&&Xt.string(l.targetUri)&&ia.is(l.targetSelectionRange)&&(ia.is(l.originSelectionRange)||Xt.undefined(l.originSelectionRange))}q(s,"is"),i.is=s})(Ote||(Ote={})),(function(i){function a(o,l,u,d){return{red:o,green:l,blue:u,alpha:d}}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.objectLiteral(l)&&Xt.numberRange(l.red,0,1)&&Xt.numberRange(l.green,0,1)&&Xt.numberRange(l.blue,0,1)&&Xt.numberRange(l.alpha,0,1)}q(s,"is"),i.is=s})(v6||(v6={})),(function(i){function a(o,l){return{range:o,color:l}}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.objectLiteral(l)&&ia.is(l.range)&&v6.is(l.color)}q(s,"is"),i.is=s})(Ite||(Ite={})),(function(i){function a(o,l,u){return{label:o,textEdit:l,additionalTextEdits:u}}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.objectLiteral(l)&&Xt.string(l.label)&&(Xt.undefined(l.textEdit)||Rp.is(l))&&(Xt.undefined(l.additionalTextEdits)||Xt.typedArray(l.additionalTextEdits,Rp.is))}q(s,"is"),i.is=s})(Nte||(Nte={})),(function(i){i.Comment="comment",i.Imports="imports",i.Region="region"})(kte||(kte={})),(function(i){function a(o,l,u,d,h,f){const p={startLine:o,endLine:l};return Xt.defined(u)&&(p.startCharacter=u),Xt.defined(d)&&(p.endCharacter=d),Xt.defined(h)&&(p.kind=h),Xt.defined(f)&&(p.collapsedText=f),p}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.objectLiteral(l)&&Xt.uinteger(l.startLine)&&Xt.uinteger(l.startLine)&&(Xt.undefined(l.startCharacter)||Xt.uinteger(l.startCharacter))&&(Xt.undefined(l.endCharacter)||Xt.uinteger(l.endCharacter))&&(Xt.undefined(l.kind)||Xt.string(l.kind))}q(s,"is"),i.is=s})(Dte||(Dte={})),(function(i){function a(o,l){return{location:o,message:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&PI.is(l.location)&&Xt.string(l.message)}q(s,"is"),i.is=s})(y6||(y6={})),(function(i){i.Error=1,i.Warning=2,i.Information=3,i.Hint=4})(Mte||(Mte={})),(function(i){i.Unnecessary=1,i.Deprecated=2})(Lte||(Lte={})),(function(i){function a(s){const o=s;return Xt.objectLiteral(o)&&Xt.string(o.href)}q(a,"is"),i.is=a})(Pte||(Pte={})),(function(i){function a(o,l,u,d,h,f){let p={range:o,message:l};return Xt.defined(u)&&(p.severity=u),Xt.defined(d)&&(p.code=d),Xt.defined(h)&&(p.source=h),Xt.defined(f)&&(p.relatedInformation=f),p}q(a,"create"),i.create=a;function s(o){var l;let u=o;return Xt.defined(u)&&ia.is(u.range)&&Xt.string(u.message)&&(Xt.number(u.severity)||Xt.undefined(u.severity))&&(Xt.integer(u.code)||Xt.string(u.code)||Xt.undefined(u.code))&&(Xt.undefined(u.codeDescription)||Xt.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(Xt.string(u.source)||Xt.undefined(u.source))&&(Xt.undefined(u.relatedInformation)||Xt.typedArray(u.relatedInformation,y6.is))}q(s,"is"),i.is=s})(FI||(FI={})),(function(i){function a(o,l,...u){let d={title:o,command:l};return Xt.defined(u)&&u.length>0&&(d.arguments=u),d}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&Xt.string(l.title)&&Xt.string(l.command)}q(s,"is"),i.is=s})(Kv||(Kv={})),(function(i){function a(u,d){return{range:u,newText:d}}q(a,"replace"),i.replace=a;function s(u,d){return{range:{start:u,end:u},newText:d}}q(s,"insert"),i.insert=s;function o(u){return{range:u,newText:""}}q(o,"del"),i.del=o;function l(u){const d=u;return Xt.objectLiteral(d)&&Xt.string(d.newText)&&ia.is(d.range)}q(l,"is"),i.is=l})(Rp||(Rp={})),(function(i){function a(o,l,u){const d={label:o};return l!==void 0&&(d.needsConfirmation=l),u!==void 0&&(d.description=u),d}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.objectLiteral(l)&&Xt.string(l.label)&&(Xt.boolean(l.needsConfirmation)||l.needsConfirmation===void 0)&&(Xt.string(l.description)||l.description===void 0)}q(s,"is"),i.is=s})(jv||(jv={})),(function(i){function a(s){const o=s;return Xt.string(o)}q(a,"is"),i.is=a})(Bl||(Bl={})),(function(i){function a(u,d,h){return{range:u,newText:d,annotationId:h}}q(a,"replace"),i.replace=a;function s(u,d,h){return{range:{start:u,end:u},newText:d,annotationId:h}}q(s,"insert"),i.insert=s;function o(u,d){return{range:u,newText:"",annotationId:d}}q(o,"del"),i.del=o;function l(u){const d=u;return Rp.is(d)&&(jv.is(d.annotationId)||Bl.is(d.annotationId))}q(l,"is"),i.is=l})(fm||(fm={})),(function(i){function a(o,l){return{textDocument:o,edits:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&UI.is(l.textDocument)&&Array.isArray(l.edits)}q(s,"is"),i.is=s})(BI||(BI={})),(function(i){function a(o,l,u){let d={kind:"create",uri:o};return l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)&&(d.options=l),u!==void 0&&(d.annotationId=u),d}q(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="create"&&Xt.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||Xt.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||Xt.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Bl.is(l.annotationId))}q(s,"is"),i.is=s})(WS||(WS={})),(function(i){function a(o,l,u,d){let h={kind:"rename",oldUri:o,newUri:l};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(h.options=u),d!==void 0&&(h.annotationId=d),h}q(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="rename"&&Xt.string(l.oldUri)&&Xt.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||Xt.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||Xt.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Bl.is(l.annotationId))}q(s,"is"),i.is=s})(KS||(KS={})),(function(i){function a(o,l,u){let d={kind:"delete",uri:o};return l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)&&(d.options=l),u!==void 0&&(d.annotationId=u),d}q(a,"create"),i.create=a;function s(o){let l=o;return l&&l.kind==="delete"&&Xt.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||Xt.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||Xt.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===void 0||Bl.is(l.annotationId))}q(s,"is"),i.is=s})(jS||(jS={})),(function(i){function a(s){let o=s;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(l=>Xt.string(l.kind)?WS.is(l)||KS.is(l)||jS.is(l):BI.is(l)))}q(a,"is"),i.is=a})(b6||(b6={})),XO=(t=class{constructor(a,s){this.edits=a,this.changeAnnotations=s}insert(a,s,o){let l,u;if(o===void 0?l=Rp.insert(a,s):Bl.is(o)?(u=o,l=fm.insert(a,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=fm.insert(a,s,u)),this.edits.push(l),u!==void 0)return u}replace(a,s,o){let l,u;if(o===void 0?l=Rp.replace(a,s):Bl.is(o)?(u=o,l=fm.replace(a,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=fm.replace(a,s,u)),this.edits.push(l),u!==void 0)return u}delete(a,s){let o,l;if(s===void 0?o=Rp.del(a):Bl.is(s)?(l=s,o=fm.del(a,s)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(s),o=fm.del(a,l)),this.edits.push(o),l!==void 0)return l}add(a){this.edits.push(a)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(a){if(a===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},q(t,"TextEditChangeImpl"),t),xX=(e=class{constructor(a){this._annotations=a===void 0?Object.create(null):a,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(a,s){let o;if(Bl.is(a)?o=a:(o=this.nextId(),s=a),this._annotations[o]!==void 0)throw new Error(`Id ${o} is already in use.`);if(s===void 0)throw new Error(`No annotation provided for id ${o}`);return this._annotations[o]=s,this._size++,o}nextId(){return this._counter++,this._counter.toString()}},q(e,"ChangeAnnotations"),e),xHe=(r=class{constructor(a){this._textEditChanges=Object.create(null),a!==void 0?(this._workspaceEdit=a,a.documentChanges?(this._changeAnnotations=new xX(a.changeAnnotations),a.changeAnnotations=this._changeAnnotations.all(),a.documentChanges.forEach(s=>{if(BI.is(s)){const o=new XO(s.edits,this._changeAnnotations);this._textEditChanges[s.textDocument.uri]=o}})):a.changes&&Object.keys(a.changes).forEach(s=>{const o=new XO(a.changes[s]);this._textEditChanges[s]=o})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(a){if(UI.is(a)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const s={uri:a.uri,version:a.version};let o=this._textEditChanges[s.uri];if(!o){const l=[],u={textDocument:s,edits:l};this._workspaceEdit.documentChanges.push(u),o=new XO(l,this._changeAnnotations),this._textEditChanges[s.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let s=this._textEditChanges[a];if(!s){let o=[];this._workspaceEdit.changes[a]=o,s=new XO(o),this._textEditChanges[a]=s}return s}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new xX,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(a,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;jv.is(s)||Bl.is(s)?l=s:o=s;let u,d;if(l===void 0?u=WS.create(a,o):(d=Bl.is(l)?l:this._changeAnnotations.manage(l),u=WS.create(a,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}renameFile(a,s,o,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;jv.is(o)||Bl.is(o)?u=o:l=o;let d,h;if(u===void 0?d=KS.create(a,s,l):(h=Bl.is(u)?u:this._changeAnnotations.manage(u),d=KS.create(a,s,l,h)),this._workspaceEdit.documentChanges.push(d),h!==void 0)return h}deleteFile(a,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;jv.is(s)||Bl.is(s)?l=s:o=s;let u,d;if(l===void 0?u=jS.create(a,o):(d=Bl.is(l)?l:this._changeAnnotations.manage(l),u=jS.create(a,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}},q(r,"WorkspaceChange"),r),(function(i){function a(o){return{uri:o}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&Xt.string(l.uri)}q(s,"is"),i.is=s})(Fte||(Fte={})),(function(i){function a(o,l){return{uri:o,version:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&Xt.string(l.uri)&&Xt.integer(l.version)}q(s,"is"),i.is=s})(Bte||(Bte={})),(function(i){function a(o,l){return{uri:o,version:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&Xt.string(l.uri)&&(l.version===null||Xt.integer(l.version))}q(s,"is"),i.is=s})(UI||(UI={})),(function(i){function a(o,l,u,d){return{uri:o,languageId:l,version:u,text:d}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&Xt.string(l.uri)&&Xt.string(l.languageId)&&Xt.integer(l.version)&&Xt.string(l.text)}q(s,"is"),i.is=s})(Ute||(Ute={})),(function(i){i.PlainText="plaintext",i.Markdown="markdown";function a(s){const o=s;return o===i.PlainText||o===i.Markdown}q(a,"is"),i.is=a})(E6||(E6={})),(function(i){function a(s){const o=s;return Xt.objectLiteral(s)&&E6.is(o.kind)&&Xt.string(o.value)}q(a,"is"),i.is=a})(XS||(XS={})),(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})($te||($te={})),(function(i){i.PlainText=1,i.Snippet=2})(Gte||(Gte={})),(function(i){i.Deprecated=1})(zte||(zte={})),(function(i){function a(o,l,u){return{newText:o,insert:l,replace:u}}q(a,"create"),i.create=a;function s(o){const l=o;return l&&Xt.string(l.newText)&&ia.is(l.insert)&&ia.is(l.replace)}q(s,"is"),i.is=s})(qte||(qte={})),(function(i){i.asIs=1,i.adjustIndentation=2})(Vte||(Vte={})),(function(i){function a(s){const o=s;return o&&(Xt.string(o.detail)||o.detail===void 0)&&(Xt.string(o.description)||o.description===void 0)}q(a,"is"),i.is=a})(Hte||(Hte={})),(function(i){function a(s){return{label:s}}q(a,"create"),i.create=a})(Yte||(Yte={})),(function(i){function a(s,o){return{items:s||[],isIncomplete:!!o}}q(a,"create"),i.create=a})(Wte||(Wte={})),(function(i){function a(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}q(a,"fromPlainText"),i.fromPlainText=a;function s(o){const l=o;return Xt.string(l)||Xt.objectLiteral(l)&&Xt.string(l.language)&&Xt.string(l.value)}q(s,"is"),i.is=s})($I||($I={})),(function(i){function a(s){let o=s;return!!o&&Xt.objectLiteral(o)&&(XS.is(o.contents)||$I.is(o.contents)||Xt.typedArray(o.contents,$I.is))&&(s.range===void 0||ia.is(s.range))}q(a,"is"),i.is=a})(Kte||(Kte={})),(function(i){function a(s,o){return o?{label:s,documentation:o}:{label:s}}q(a,"create"),i.create=a})(jte||(jte={})),(function(i){function a(s,o,...l){let u={label:s};return Xt.defined(o)&&(u.documentation=o),Xt.defined(l)?u.parameters=l:u.parameters=[],u}q(a,"create"),i.create=a})(Xte||(Xte={})),(function(i){i.Text=1,i.Read=2,i.Write=3})(Qte||(Qte={})),(function(i){function a(s,o){let l={range:s};return Xt.number(o)&&(l.kind=o),l}q(a,"create"),i.create=a})(Zte||(Zte={})),(function(i){i.File=1,i.Module=2,i.Namespace=3,i.Package=4,i.Class=5,i.Method=6,i.Property=7,i.Field=8,i.Constructor=9,i.Enum=10,i.Interface=11,i.Function=12,i.Variable=13,i.Constant=14,i.String=15,i.Number=16,i.Boolean=17,i.Array=18,i.Object=19,i.Key=20,i.Null=21,i.EnumMember=22,i.Struct=23,i.Event=24,i.Operator=25,i.TypeParameter=26})(Jte||(Jte={})),(function(i){i.Deprecated=1})(ere||(ere={})),(function(i){function a(s,o,l,u,d){let h={name:s,kind:o,location:{uri:u,range:l}};return d&&(h.containerName=d),h}q(a,"create"),i.create=a})(tre||(tre={})),(function(i){function a(s,o,l,u){return u!==void 0?{name:s,kind:o,location:{uri:l,range:u}}:{name:s,kind:o,location:{uri:l}}}q(a,"create"),i.create=a})(rre||(rre={})),(function(i){function a(o,l,u,d,h,f){let p={name:o,detail:l,kind:u,range:d,selectionRange:h};return f!==void 0&&(p.children=f),p}q(a,"create"),i.create=a;function s(o){let l=o;return l&&Xt.string(l.name)&&Xt.number(l.kind)&&ia.is(l.range)&&ia.is(l.selectionRange)&&(l.detail===void 0||Xt.string(l.detail))&&(l.deprecated===void 0||Xt.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))&&(l.tags===void 0||Array.isArray(l.tags))}q(s,"is"),i.is=s})(nre||(nre={})),(function(i){i.Empty="",i.QuickFix="quickfix",i.Refactor="refactor",i.RefactorExtract="refactor.extract",i.RefactorInline="refactor.inline",i.RefactorRewrite="refactor.rewrite",i.Source="source",i.SourceOrganizeImports="source.organizeImports",i.SourceFixAll="source.fixAll"})(ire||(ire={})),(function(i){i.Invoked=1,i.Automatic=2})(GI||(GI={})),(function(i){function a(o,l,u){let d={diagnostics:o};return l!=null&&(d.only=l),u!=null&&(d.triggerKind=u),d}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&Xt.typedArray(l.diagnostics,FI.is)&&(l.only===void 0||Xt.typedArray(l.only,Xt.string))&&(l.triggerKind===void 0||l.triggerKind===GI.Invoked||l.triggerKind===GI.Automatic)}q(s,"is"),i.is=s})(are||(are={})),(function(i){function a(o,l,u){let d={title:o},h=!0;return typeof l=="string"?(h=!1,d.kind=l):Kv.is(l)?d.command=l:d.edit=l,h&&u!==void 0&&(d.kind=u),d}q(a,"create"),i.create=a;function s(o){let l=o;return l&&Xt.string(l.title)&&(l.diagnostics===void 0||Xt.typedArray(l.diagnostics,FI.is))&&(l.kind===void 0||Xt.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||Kv.is(l.command))&&(l.isPreferred===void 0||Xt.boolean(l.isPreferred))&&(l.edit===void 0||b6.is(l.edit))}q(s,"is"),i.is=s})(sre||(sre={})),(function(i){function a(o,l){let u={range:o};return Xt.defined(l)&&(u.data=l),u}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&ia.is(l.range)&&(Xt.undefined(l.command)||Kv.is(l.command))}q(s,"is"),i.is=s})(ore||(ore={})),(function(i){function a(o,l){return{tabSize:o,insertSpaces:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&Xt.uinteger(l.tabSize)&&Xt.boolean(l.insertSpaces)}q(s,"is"),i.is=s})(lre||(lre={})),(function(i){function a(o,l,u){return{range:o,target:l,data:u}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.defined(l)&&ia.is(l.range)&&(Xt.undefined(l.target)||Xt.string(l.target))}q(s,"is"),i.is=s})(cre||(cre={})),(function(i){function a(o,l){return{range:o,parent:l}}q(a,"create"),i.create=a;function s(o){let l=o;return Xt.objectLiteral(l)&&ia.is(l.range)&&(l.parent===void 0||i.is(l.parent))}q(s,"is"),i.is=s})(ure||(ure={})),(function(i){i.namespace="namespace",i.type="type",i.class="class",i.enum="enum",i.interface="interface",i.struct="struct",i.typeParameter="typeParameter",i.parameter="parameter",i.variable="variable",i.property="property",i.enumMember="enumMember",i.event="event",i.function="function",i.method="method",i.macro="macro",i.keyword="keyword",i.modifier="modifier",i.comment="comment",i.string="string",i.number="number",i.regexp="regexp",i.operator="operator",i.decorator="decorator"})(dre||(dre={})),(function(i){i.declaration="declaration",i.definition="definition",i.readonly="readonly",i.static="static",i.deprecated="deprecated",i.abstract="abstract",i.async="async",i.modification="modification",i.documentation="documentation",i.defaultLibrary="defaultLibrary"})(hre||(hre={})),(function(i){function a(s){const o=s;return Xt.objectLiteral(o)&&(o.resultId===void 0||typeof o.resultId=="string")&&Array.isArray(o.data)&&(o.data.length===0||typeof o.data[0]=="number")}q(a,"is"),i.is=a})(fre||(fre={})),(function(i){function a(o,l){return{range:o,text:l}}q(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&ia.is(l.range)&&Xt.string(l.text)}q(s,"is"),i.is=s})(pre||(pre={})),(function(i){function a(o,l,u){return{range:o,variableName:l,caseSensitiveLookup:u}}q(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&ia.is(l.range)&&Xt.boolean(l.caseSensitiveLookup)&&(Xt.string(l.variableName)||l.variableName===void 0)}q(s,"is"),i.is=s})(gre||(gre={})),(function(i){function a(o,l){return{range:o,expression:l}}q(a,"create"),i.create=a;function s(o){const l=o;return l!=null&&ia.is(l.range)&&(Xt.string(l.expression)||l.expression===void 0)}q(s,"is"),i.is=s})(mre||(mre={})),(function(i){function a(o,l){return{frameId:o,stoppedLocation:l}}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.defined(l)&&ia.is(o.stoppedLocation)}q(s,"is"),i.is=s})(_re||(_re={})),(function(i){i.Type=1,i.Parameter=2;function a(s){return s===1||s===2}q(a,"is"),i.is=a})(S6||(S6={})),(function(i){function a(o){return{value:o}}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.objectLiteral(l)&&(l.tooltip===void 0||Xt.string(l.tooltip)||XS.is(l.tooltip))&&(l.location===void 0||PI.is(l.location))&&(l.command===void 0||Kv.is(l.command))}q(s,"is"),i.is=s})(T6||(T6={})),(function(i){function a(o,l,u){const d={position:o,label:l};return u!==void 0&&(d.kind=u),d}q(a,"create"),i.create=a;function s(o){const l=o;return Xt.objectLiteral(l)&&wa.is(l.position)&&(Xt.string(l.label)||Xt.typedArray(l.label,T6.is))&&(l.kind===void 0||S6.is(l.kind))&&l.textEdits===void 0||Xt.typedArray(l.textEdits,Rp.is)&&(l.tooltip===void 0||Xt.string(l.tooltip)||XS.is(l.tooltip))&&(l.paddingLeft===void 0||Xt.boolean(l.paddingLeft))&&(l.paddingRight===void 0||Xt.boolean(l.paddingRight))}q(s,"is"),i.is=s})(vre||(vre={})),(function(i){function a(s){return{kind:"snippet",value:s}}q(a,"createSnippet"),i.createSnippet=a})(yre||(yre={})),(function(i){function a(s,o,l,u){return{insertText:s,filterText:o,range:l,command:u}}q(a,"create"),i.create=a})(bre||(bre={})),(function(i){function a(s){return{items:s}}q(a,"create"),i.create=a})(Ere||(Ere={})),(function(i){i.Invoked=0,i.Automatic=1})(Sre||(Sre={})),(function(i){function a(s,o){return{range:s,text:o}}q(a,"create"),i.create=a})(Tre||(Tre={})),(function(i){function a(s,o){return{triggerKind:s,selectedCompletionInfo:o}}q(a,"create"),i.create=a})(Cre||(Cre={})),(function(i){function a(s){const o=s;return Xt.objectLiteral(o)&&_6.is(o.uri)&&Xt.string(o.name)}q(a,"is"),i.is=a})(wre||(wre={})),AHe=[`
`,`\r
`,"\r"],(function(i){function a(u,d,h,f){return new tOe(u,d,h,f)}q(a,"create"),i.create=a;function s(u){let d=u;return!!(Xt.defined(d)&&Xt.string(d.uri)&&(Xt.undefined(d.languageId)||Xt.string(d.languageId))&&Xt.uinteger(d.lineCount)&&Xt.func(d.getText)&&Xt.func(d.positionAt)&&Xt.func(d.offsetAt))}q(s,"is"),i.is=s;function o(u,d){let h=u.getText(),f=l(d,(g,m)=>{let _=g.range.start.line-m.range.start.line;return _===0?g.range.start.character-m.range.start.character:_}),p=h.length;for(let g=f.length-1;g>=0;g--){let m=f[g],_=u.offsetAt(m.range.start),v=u.offsetAt(m.range.end);if(v<=p)h=h.substring(0,_)+m.newText+h.substring(v,h.length);else throw new Error("Overlapping edit");p=_}return h}q(o,"applyEdits"),i.applyEdits=o;function l(u,d){if(u.length<=1)return u;const h=u.length/2|0,f=u.slice(0,h),p=u.slice(h);l(f,d),l(p,d);let g=0,m=0,_=0;for(;g<f.length&&m<p.length;)d(f[g],p[m])<=0?u[_++]=f[g++]:u[_++]=p[m++];for(;g<f.length;)u[_++]=f[g++];for(;m<p.length;)u[_++]=p[m++];return u}q(l,"mergeSort")})(xre||(xre={})),tOe=(n=class{constructor(a,s,o,l){this._uri=a,this._languageId=s,this._version=o,this._content=l,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(a){if(a){let s=this.offsetAt(a.start),o=this.offsetAt(a.end);return this._content.substring(s,o)}return this._content}update(a,s){this._content=a.text,this._version=s,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let a=[],s=this._content,o=!0;for(let l=0;l<s.length;l++){o&&(a.push(l),o=!1);let u=s.charAt(l);o=u==="\r"||u===`
`,u==="\r"&&l+1<s.length&&s.charAt(l+1)===`
`&&l++}o&&s.length>0&&a.push(s.length),this._lineOffsets=a}return this._lineOffsets}positionAt(a){a=Math.max(Math.min(a,this._content.length),0);let s=this.getLineOffsets(),o=0,l=s.length;if(l===0)return wa.create(0,a);for(;o<l;){let d=Math.floor((o+l)/2);s[d]>a?l=d:o=d+1}let u=o-1;return wa.create(u,a-s[u])}offsetAt(a){let s=this.getLineOffsets();if(a.line>=s.length)return this._content.length;if(a.line<0)return 0;let o=s[a.line],l=a.line+1<s.length?s[a.line+1]:this._content.length;return Math.max(Math.min(o+a.character,l),o)}get lineCount(){return this.getLineOffsets().length}},q(n,"FullTextDocument"),n),(function(i){const a=Object.prototype.toString;function s(v){return typeof v<"u"}q(s,"defined"),i.defined=s;function o(v){return typeof v>"u"}q(o,"undefined"),i.undefined=o;function l(v){return v===!0||v===!1}q(l,"boolean"),i.boolean=l;function u(v){return a.call(v)==="[object String]"}q(u,"string"),i.string=u;function d(v){return a.call(v)==="[object Number]"}q(d,"number"),i.number=d;function h(v,y,b){return a.call(v)==="[object Number]"&&y<=v&&v<=b}q(h,"numberRange"),i.numberRange=h;function f(v){return a.call(v)==="[object Number]"&&-2147483648<=v&&v<=2147483647}q(f,"integer"),i.integer=f;function p(v){return a.call(v)==="[object Number]"&&0<=v&&v<=2147483647}q(p,"uinteger"),i.uinteger=p;function g(v){return a.call(v)==="[object Function]"}q(g,"func"),i.func=g;function m(v){return v!==null&&typeof v=="object"}q(m,"objectLiteral"),i.objectLiteral=m;function _(v,y){return Array.isArray(v)&&v.every(y)}q(_,"typedArray"),i.typedArray=_})(Xt||(Xt={}))}}),wE=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}q(r,"RAL"),(function(n){function i(a){if(a===void 0)throw new Error("No runtime abstraction layer provided");e=a}q(i,"install"),n.install=i})(r||(r={})),t.default=r}}),hD=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(l){return l===!0||l===!1}q(e,"boolean"),t.boolean=e;function r(l){return typeof l=="string"||l instanceof String}q(r,"string"),t.string=r;function n(l){return typeof l=="number"||l instanceof Number}q(n,"number"),t.number=n;function i(l){return l instanceof Error}q(i,"error"),t.error=i;function a(l){return typeof l=="function"}q(a,"func"),t.func=a;function s(l){return Array.isArray(l)}q(s,"array"),t.array=s;function o(l){return s(l)&&l.every(u=>r(u))}q(o,"stringArray"),t.stringArray=o}}),$R=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var e=wE(),r;(function(o){const l={dispose(){}};o.None=function(){return l}})(r||(t.Event=r={}));var n=(a=class{add(l,u=null,d){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(l),this._contexts.push(u),Array.isArray(d)&&d.push({dispose:q(()=>this.remove(l,u),"dispose")})}remove(l,u=null){if(!this._callbacks)return;let d=!1;for(let h=0,f=this._callbacks.length;h<f;h++)if(this._callbacks[h]===l)if(this._contexts[h]===u){this._callbacks.splice(h,1),this._contexts.splice(h,1);return}else d=!0;if(d)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...l){if(!this._callbacks)return[];const u=[],d=this._callbacks.slice(0),h=this._contexts.slice(0);for(let f=0,p=d.length;f<p;f++)try{u.push(d[f].apply(h[f],l))}catch(g){(0,e.default)().console.error(g)}return u}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},q(a,"CallbackList"),a),i=(s=class{constructor(l){this._options=l}get event(){return this._event||(this._event=(l,u,d)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(l,u);const h={dispose:q(()=>{this._callbacks&&(this._callbacks.remove(l,u),h.dispose=s._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(d)&&d.push(h),h}),this._event}fire(l){this._callbacks&&this._callbacks.invoke.call(this._callbacks,l)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},q(s,"Emitter"),s);t.Emitter=i,i._noop=function(){}}}),L$=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var l,u;Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var e=wE(),r=hD(),n=$R(),i;(function(d){d.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),d.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function h(f){const p=f;return p&&(p===d.None||p===d.Cancelled||r.boolean(p.isCancellationRequested)&&!!p.onCancellationRequested)}q(h,"is"),d.is=h})(i||(t.CancellationToken=i={}));var a=Object.freeze(function(d,h){const f=(0,e.default)().timer.setTimeout(d.bind(h),0);return{dispose(){f.dispose()}}}),s=(l=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},q(l,"MutableToken"),l),o=(u=class{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}},q(u,"CancellationTokenSource"),u);t.CancellationTokenSource=o}}),RHe=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var F,O,D,M,P,N,$,U,B,V,z,G,Y,W,Q,ie,Z,re,K,j,se,le,_e,ye,Ue;Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var e=hD(),r;(function(Se){Se.ParseError=-32700,Se.InvalidRequest=-32600,Se.MethodNotFound=-32601,Se.InvalidParams=-32602,Se.InternalError=-32603,Se.jsonrpcReservedErrorRangeStart=-32099,Se.serverErrorStart=-32099,Se.MessageWriteError=-32099,Se.MessageReadError=-32098,Se.PendingResponseRejected=-32097,Se.ConnectionInactive=-32096,Se.ServerNotInitialized=-32002,Se.UnknownErrorCode=-32001,Se.jsonrpcReservedErrorRangeEnd=-32e3,Se.serverErrorEnd=-32e3})(r||(t.ErrorCodes=r={}));var n=(F=class extends Error{constructor(be,ke,Ae){super(ke),this.code=e.number(be)?be:r.UnknownErrorCode,this.data=Ae,Object.setPrototypeOf(this,F.prototype)}toJson(){const be={code:this.code,message:this.message};return this.data!==void 0&&(be.data=this.data),be}},q(F,"ResponseError"),F);t.ResponseError=n;var i=(O=class{constructor(be){this.kind=be}static is(be){return be===O.auto||be===O.byName||be===O.byPosition}toString(){return this.kind}},q(O,"ParameterStructures"),O);t.ParameterStructures=i,i.auto=new i("auto"),i.byPosition=new i("byPosition"),i.byName=new i("byName");var a=(D=class{constructor(be,ke){this.method=be,this.numberOfParams=ke}get parameterStructures(){return i.auto}},q(D,"AbstractMessageSignature"),D);t.AbstractMessageSignature=a;var s=(M=class extends a{constructor(be){super(be,0)}},q(M,"RequestType0"),M);t.RequestType0=s;var o=(P=class extends a{constructor(be,ke=i.auto){super(be,1),this._parameterStructures=ke}get parameterStructures(){return this._parameterStructures}},q(P,"RequestType"),P);t.RequestType=o;var l=(N=class extends a{constructor(be,ke=i.auto){super(be,1),this._parameterStructures=ke}get parameterStructures(){return this._parameterStructures}},q(N,"RequestType1"),N);t.RequestType1=l;var u=($=class extends a{constructor(be){super(be,2)}},q($,"RequestType2"),$);t.RequestType2=u;var d=(U=class extends a{constructor(be){super(be,3)}},q(U,"RequestType3"),U);t.RequestType3=d;var h=(B=class extends a{constructor(be){super(be,4)}},q(B,"RequestType4"),B);t.RequestType4=h;var f=(V=class extends a{constructor(be){super(be,5)}},q(V,"RequestType5"),V);t.RequestType5=f;var p=(z=class extends a{constructor(be){super(be,6)}},q(z,"RequestType6"),z);t.RequestType6=p;var g=(G=class extends a{constructor(be){super(be,7)}},q(G,"RequestType7"),G);t.RequestType7=g;var m=(Y=class extends a{constructor(be){super(be,8)}},q(Y,"RequestType8"),Y);t.RequestType8=m;var _=(W=class extends a{constructor(be){super(be,9)}},q(W,"RequestType9"),W);t.RequestType9=_;var v=(Q=class extends a{constructor(be,ke=i.auto){super(be,1),this._parameterStructures=ke}get parameterStructures(){return this._parameterStructures}},q(Q,"NotificationType"),Q);t.NotificationType=v;var y=(ie=class extends a{constructor(be){super(be,0)}},q(ie,"NotificationType0"),ie);t.NotificationType0=y;var b=(Z=class extends a{constructor(be,ke=i.auto){super(be,1),this._parameterStructures=ke}get parameterStructures(){return this._parameterStructures}},q(Z,"NotificationType1"),Z);t.NotificationType1=b;var E=(re=class extends a{constructor(be){super(be,2)}},q(re,"NotificationType2"),re);t.NotificationType2=E;var S=(K=class extends a{constructor(be){super(be,3)}},q(K,"NotificationType3"),K);t.NotificationType3=S;var T=(j=class extends a{constructor(be){super(be,4)}},q(j,"NotificationType4"),j);t.NotificationType4=T;var C=(se=class extends a{constructor(be){super(be,5)}},q(se,"NotificationType5"),se);t.NotificationType5=C;var x=(le=class extends a{constructor(be){super(be,6)}},q(le,"NotificationType6"),le);t.NotificationType6=x;var A=(_e=class extends a{constructor(be){super(be,7)}},q(_e,"NotificationType7"),_e);t.NotificationType7=A;var R=(ye=class extends a{constructor(be){super(be,8)}},q(ye,"NotificationType8"),ye);t.NotificationType8=R;var I=(Ue=class extends a{constructor(be){super(be,9)}},q(Ue,"NotificationType9"),Ue);t.NotificationType9=I;var L;(function(Se){function be(tt){const Oe=tt;return Oe&&e.string(Oe.method)&&(e.string(Oe.id)||e.number(Oe.id))}q(be,"isRequest"),Se.isRequest=be;function ke(tt){const Oe=tt;return Oe&&e.string(Oe.method)&&tt.id===void 0}q(ke,"isNotification"),Se.isNotification=ke;function Ae(tt){const Oe=tt;return Oe&&(Oe.result!==void 0||!!Oe.error)&&(e.string(Oe.id)||e.number(Oe.id)||Oe.id===null)}q(Ae,"isResponse"),Se.isResponse=Ae})(L||(t.Message=L={}))}}),OHe=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var a,s;var e;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var r;(function(o){o.None=0,o.First=1,o.AsOld=o.First,o.Last=2,o.AsNew=o.Last})(r||(t.Touch=r={}));var n=(a=class{constructor(){this[e]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(l){return this._map.has(l)}get(l,u=r.None){const d=this._map.get(l);if(d)return u!==r.None&&this.touch(d,u),d.value}set(l,u,d=r.None){let h=this._map.get(l);if(h)h.value=u,d!==r.None&&this.touch(h,d);else{switch(h={key:l,value:u,next:void 0,previous:void 0},d){case r.None:this.addItemLast(h);break;case r.First:this.addItemFirst(h);break;case r.Last:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(l,h),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const u=this._map.get(l);if(u)return this._map.delete(l),this.removeItem(u),this._size--,u.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,u){const d=this._state;let h=this._head;for(;h;){if(u?l.bind(u)(h.value,h.key,this):l(h.value,h.key,this),this._state!==d)throw new Error("LinkedMap got modified during iteration.");h=h.next}}keys(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:q(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:u.key,done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}values(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:q(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:u.value,done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}entries(){const l=this._state;let u=this._head;const d={[Symbol.iterator]:()=>d,next:q(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const h={value:[u.key,u.value],done:!1};return u=u.next,h}else return{value:void 0,done:!0}},"next")};return d}[(e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let u=this._head,d=this.size;for(;u&&d>l;)this._map.delete(u.key),u=u.next,d--;this._head=u,this._size=d,u&&(u.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const u=l.next,d=l.previous;if(!u||!d)throw new Error("Invalid list");u.previous=d,d.next=u}l.next=void 0,l.previous=void 0,this._state++}touch(l,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(u!==r.First&&u!==r.Last)){if(u===r.First){if(l===this._head)return;const d=l.next,h=l.previous;l===this._tail?(h.next=void 0,this._tail=h):(d.previous=h,h.next=d),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(u===r.Last){if(l===this._tail)return;const d=l.next,h=l.previous;l===this._head?(d.previous=void 0,this._head=d):(d.previous=h,h.next=d),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((u,d)=>{l.push([d,u])}),l}fromJSON(l){this.clear();for(const[u,d]of l)this.set(u,d)}},q(a,"LinkedMap"),a);t.LinkedMap=n;var i=(s=class extends n{constructor(l,u=1){super(),this._limit=l,this._ratio=Math.min(Math.max(0,u),1)}get limit(){return this._limit}set limit(l){this._limit=l,this.checkTrim()}get ratio(){return this._ratio}set ratio(l){this._ratio=Math.min(Math.max(0,l),1),this.checkTrim()}get(l,u=r.AsNew){return super.get(l,u)}peek(l){return super.get(l,r.None)}set(l,u){return super.set(l,u,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},q(s,"LRUCache"),s);t.LRUCache=i}}),m5r=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function n(i){return{dispose:i}}q(n,"create"),r.create=n})(e||(t.Disposable=e={}))}}),_5r=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var o,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=L$(),r;(function(h){h.Continue=0,h.Cancelled=1})(r||(r={}));var n=(o=class{constructor(){this.buffers=new Map}enableCancellation(f){if(f.id===null)return;const p=new SharedArrayBuffer(4),g=new Int32Array(p,0,1);g[0]=r.Continue,this.buffers.set(f.id,p),f.$cancellationData=p}async sendCancellation(f,p){const g=this.buffers.get(p);if(g===void 0)return;const m=new Int32Array(g,0,1);Atomics.store(m,0,r.Cancelled)}cleanup(f){this.buffers.delete(f)}dispose(){this.buffers.clear()}},q(o,"SharedArraySenderStrategy"),o);t.SharedArraySenderStrategy=n;var i=(l=class{constructor(f){this.data=new Int32Array(f,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},q(l,"SharedArrayBufferCancellationToken"),l),a=(u=class{constructor(f){this.token=new i(f)}cancel(){}dispose(){}},q(u,"SharedArrayBufferCancellationTokenSource"),u),s=(d=class{constructor(){this.kind="request"}createCancellationTokenSource(f){const p=f.$cancellationData;return p===void 0?new e.CancellationTokenSource:new a(p)}},q(d,"SharedArrayReceiverStrategy"),d);t.SharedArrayReceiverStrategy=s}}),IHe=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var e=wE(),r=(n=class{constructor(a=1){if(a<=0)throw new Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,e.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const s=a.thunk();s instanceof Promise?s.then(o=>{this._active--,a.resolve(o),this.runNext()},o=>{this._active--,a.reject(o),this.runNext()}):(this._active--,a.resolve(s),this.runNext())}catch(s){this._active--,a.reject(s),this.runNext()}}},q(n,"Semaphore"),n);t.Semaphore=r}}),v5r=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var e=wE(),r=hD(),n=$R(),i=IHe(),a;(function(h){function f(p){let g=p;return g&&r.func(g.listen)&&r.func(g.dispose)&&r.func(g.onError)&&r.func(g.onClose)&&r.func(g.onPartialMessage)}q(f,"is"),h.is=f})(a||(t.MessageReader=a={}));var s=(u=class{constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter,this.partialMessageEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(f){this.errorEmitter.fire(this.asError(f))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(f){this.partialMessageEmitter.fire(f)}asError(f){return f instanceof Error?f:new Error(`Reader received error. Reason: ${r.string(f.message)?f.message:"unknown"}`)}},q(u,"AbstractMessageReader"),u);t.AbstractMessageReader=s;var o;(function(h){function f(p){let g,m;const _=new Map;let v;const y=new Map;if(p===void 0||typeof p=="string")g=p??"utf-8";else{if(g=p.charset??"utf-8",p.contentDecoder!==void 0&&(m=p.contentDecoder,_.set(m.name,m)),p.contentDecoders!==void 0)for(const b of p.contentDecoders)_.set(b.name,b);if(p.contentTypeDecoder!==void 0&&(v=p.contentTypeDecoder,y.set(v.name,v)),p.contentTypeDecoders!==void 0)for(const b of p.contentTypeDecoders)y.set(b.name,b)}return v===void 0&&(v=(0,e.default)().applicationJson.decoder,y.set(v.name,v)),{charset:g,contentDecoder:m,contentDecoders:_,contentTypeDecoder:v,contentTypeDecoders:y}}q(f,"fromOptions"),h.fromOptions=f})(o||(o={}));var l=(d=class extends s{constructor(f,p){super(),this.readable=f,this.options=o.fromOptions(p),this.buffer=(0,e.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(f){this._partialMessageTimeout=f}get partialMessageTimeout(){return this._partialMessageTimeout}listen(f){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=f;const p=this.readable.onData(g=>{this.onData(g)});return this.readable.onError(g=>this.fireError(g)),this.readable.onClose(()=>this.fireClose()),p}onData(f){try{for(this.buffer.append(f);;){if(this.nextMessageLength===-1){const g=this.buffer.tryReadHeaders(!0);if(!g)return;const m=g.get("content-length");if(!m){this.fireError(new Error(`Header must provide a Content-Length property.
${JSON.stringify(Object.fromEntries(g))}`));return}const _=parseInt(m);if(isNaN(_)){this.fireError(new Error(`Content-Length value must be a number. Got ${m}`));return}this.nextMessageLength=_}const p=this.buffer.tryReadBody(this.nextMessageLength);if(p===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const g=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(p):p,m=await this.options.contentTypeDecoder.decode(g,this.options);this.callback(m)}).catch(g=>{this.fireError(g)})}}catch(p){this.fireError(p)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,e.default)().timer.setTimeout((f,p)=>{this.partialMessageTimer=void 0,f===this.messageToken&&(this.firePartialMessage({messageToken:f,waitingTime:p}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},q(d,"ReadableStreamMessageReader"),d);t.ReadableStreamMessageReader=l}}),y5r=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(t){var h,f;Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;var e=wE(),r=hD(),n=IHe(),i=$R(),a="Content-Length: ",s=`\r
`,o;(function(p){function g(m){let _=m;return _&&r.func(_.dispose)&&r.func(_.onClose)&&r.func(_.onError)&&r.func(_.write)}q(g,"is"),p.is=g})(o||(t.MessageWriter=o={}));var l=(h=class{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(g,m,_){this.errorEmitter.fire([this.asError(g),m,_])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(g){return g instanceof Error?g:new Error(`Writer received error. Reason: ${r.string(g.message)?g.message:"unknown"}`)}},q(h,"AbstractMessageWriter"),h);t.AbstractMessageWriter=l;var u;(function(p){function g(m){return m===void 0||typeof m=="string"?{charset:m??"utf-8",contentTypeEncoder:(0,e.default)().applicationJson.encoder}:{charset:m.charset??"utf-8",contentEncoder:m.contentEncoder,contentTypeEncoder:m.contentTypeEncoder??(0,e.default)().applicationJson.encoder}}q(g,"fromOptions"),p.fromOptions=g})(u||(u={}));var d=(f=class extends l{constructor(g,m){super(),this.writable=g,this.options=u.fromOptions(m),this.errorCount=0,this.writeSemaphore=new n.Semaphore(1),this.writable.onError(_=>this.fireError(_)),this.writable.onClose(()=>this.fireClose())}async write(g){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(g,this.options).then(_=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(_):_).then(_=>{const v=[];return v.push(a,_.byteLength.toString(),s),v.push(s),this.doWrite(g,v,_)},_=>{throw this.fireError(_),_}))}async doWrite(g,m,_){try{return await this.writable.write(m.join(""),"ascii"),this.writable.write(_)}catch(v){return this.handleError(v,g),Promise.reject(v)}}handleError(g,m){this.errorCount++,this.fireError(g,m,this.errorCount)}end(){this.writable.end()}},q(f,"WriteableStreamMessageWriter"),f);t.WriteableStreamMessageWriter=d}}),b5r=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var a;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,n=`\r
`,i=(a=class{constructor(o="utf-8"){this._encoding=o,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(o){const l=typeof o=="string"?this.fromString(o,this._encoding):o;this._chunks.push(l),this._totalLength+=l.byteLength}tryReadHeaders(o=!1){if(this._chunks.length===0)return;let l=0,u=0,d=0,h=0;e:for(;u<this._chunks.length;){const m=this._chunks[u];for(d=0;d<m.length;){switch(m[d]){case e:switch(l){case 0:l=1;break;case 2:l=3;break;default:l=0}break;case r:switch(l){case 1:l=2;break;case 3:l=4,d++;break e;default:l=0}break;default:l=0}d++}h+=m.byteLength,u++}if(l!==4)return;const f=this._read(h+d),p=new Map,g=this.toString(f,"ascii").split(n);if(g.length<2)return p;for(let m=0;m<g.length-2;m++){const _=g[m],v=_.indexOf(":");if(v===-1)throw new Error(`Message header must separate key and value using ':'
${_}`);const y=_.substr(0,v),b=_.substr(v+1).trim();p.set(o?y.toLowerCase():y,b)}return p}tryReadBody(o){if(!(this._totalLength<o))return this._read(o)}get numberOfBytes(){return this._totalLength}_read(o){if(o===0)return this.emptyBuffer();if(o>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===o){const h=this._chunks[0];return this._chunks.shift(),this._totalLength-=o,this.asNative(h)}if(this._chunks[0].byteLength>o){const h=this._chunks[0],f=this.asNative(h,o);return this._chunks[0]=h.slice(o),this._totalLength-=o,f}const l=this.allocNative(o);let u=0,d=0;for(;o>0;){const h=this._chunks[d];if(h.byteLength>o){const f=h.slice(0,o);l.set(f,u),u+=o,this._chunks[d]=h.slice(o),this._totalLength-=o,o-=o}else l.set(h,u),u+=h.byteLength,this._chunks.shift(),this._totalLength-=h.byteLength,o-=h.byteLength}return l}},q(a,"AbstractMessageBuffer"),a);t.AbstractMessageBuffer=i}}),E5r=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(t){var F,O;Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;var e=wE(),r=hD(),n=RHe(),i=OHe(),a=$R(),s=L$(),o;(function(D){D.type=new n.NotificationType("$/cancelRequest")})(o||(o={}));var l;(function(D){function M(P){return typeof P=="string"||typeof P=="number"}q(M,"is"),D.is=M})(l||(t.ProgressToken=l={}));var u;(function(D){D.type=new n.NotificationType("$/progress")})(u||(u={}));var d=(F=class{constructor(){}},q(F,"ProgressType"),F);t.ProgressType=d;var h;(function(D){function M(P){return r.func(P)}q(M,"is"),D.is=M})(h||(h={})),t.NullLogger=Object.freeze({error:q(()=>{},"error"),warn:q(()=>{},"warn"),info:q(()=>{},"info"),log:q(()=>{},"log")});var f;(function(D){D[D.Off=0]="Off",D[D.Messages=1]="Messages",D[D.Compact=2]="Compact",D[D.Verbose=3]="Verbose"})(f||(t.Trace=f={}));var p;(function(D){D.Off="off",D.Messages="messages",D.Compact="compact",D.Verbose="verbose"})(p||(t.TraceValues=p={})),(function(D){function M(N){if(!r.string(N))return D.Off;switch(N=N.toLowerCase(),N){case"off":return D.Off;case"messages":return D.Messages;case"compact":return D.Compact;case"verbose":return D.Verbose;default:return D.Off}}q(M,"fromString"),D.fromString=M;function P(N){switch(N){case D.Off:return"off";case D.Messages:return"messages";case D.Compact:return"compact";case D.Verbose:return"verbose";default:return"off"}}q(P,"toString"),D.toString=P})(f||(t.Trace=f={}));var g;(function(D){D.Text="text",D.JSON="json"})(g||(t.TraceFormat=g={})),(function(D){function M(P){return r.string(P)?(P=P.toLowerCase(),P==="json"?D.JSON:D.Text):D.Text}q(M,"fromString"),D.fromString=M})(g||(t.TraceFormat=g={}));var m;(function(D){D.type=new n.NotificationType("$/setTrace")})(m||(t.SetTraceNotification=m={}));var _;(function(D){D.type=new n.NotificationType("$/logTrace")})(_||(t.LogTraceNotification=_={}));var v;(function(D){D[D.Closed=1]="Closed",D[D.Disposed=2]="Disposed",D[D.AlreadyListening=3]="AlreadyListening"})(v||(t.ConnectionErrors=v={}));var y=(O=class extends Error{constructor(M,P){super(P),this.code=M,Object.setPrototypeOf(this,O.prototype)}},q(O,"ConnectionError"),O);t.ConnectionError=y;var b;(function(D){function M(P){const N=P;return N&&r.func(N.cancelUndispatched)}q(M,"is"),D.is=M})(b||(t.ConnectionStrategy=b={}));var E;(function(D){function M(P){const N=P;return N&&(N.kind===void 0||N.kind==="id")&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.dispose))}q(M,"is"),D.is=M})(E||(t.IdCancellationReceiverStrategy=E={}));var S;(function(D){function M(P){const N=P;return N&&N.kind==="request"&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.dispose))}q(M,"is"),D.is=M})(S||(t.RequestCancellationReceiverStrategy=S={}));var T;(function(D){D.Message=Object.freeze({createCancellationTokenSource(P){return new s.CancellationTokenSource}});function M(P){return E.is(P)||S.is(P)}q(M,"is"),D.is=M})(T||(t.CancellationReceiverStrategy=T={}));var C;(function(D){D.Message=Object.freeze({sendCancellation(P,N){return P.sendNotification(o.type,{id:N})},cleanup(P){}});function M(P){const N=P;return N&&r.func(N.sendCancellation)&&r.func(N.cleanup)}q(M,"is"),D.is=M})(C||(t.CancellationSenderStrategy=C={}));var x;(function(D){D.Message=Object.freeze({receiver:T.Message,sender:C.Message});function M(P){const N=P;return N&&T.is(N.receiver)&&C.is(N.sender)}q(M,"is"),D.is=M})(x||(t.CancellationStrategy=x={}));var A;(function(D){function M(P){const N=P;return N&&r.func(N.handleMessage)}q(M,"is"),D.is=M})(A||(t.MessageStrategy=A={}));var R;(function(D){function M(P){const N=P;return N&&(x.is(N.cancellationStrategy)||b.is(N.connectionStrategy)||A.is(N.messageStrategy))}q(M,"is"),D.is=M})(R||(t.ConnectionOptions=R={}));var I;(function(D){D[D.New=1]="New",D[D.Listening=2]="Listening",D[D.Closed=3]="Closed",D[D.Disposed=4]="Disposed"})(I||(I={}));function L(D,M,P,N){const $=P!==void 0?P:t.NullLogger;let U=0,B=0,V=0;const z="2.0";let G;const Y=new Map;let W;const Q=new Map,ie=new Map;let Z,re=new i.LinkedMap,K=new Map,j=new Set,se=new Map,le=f.Off,_e=g.Text,ye,Ue=I.New;const Se=new a.Emitter,be=new a.Emitter,ke=new a.Emitter,Ae=new a.Emitter,tt=new a.Emitter,Oe=N&&N.cancellationStrategy?N.cancellationStrategy:x.Message;function je(st){if(st===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+st.toString()}q(je,"createRequestQueueKey");function ct(st){return st===null?"res-unknown-"+(++V).toString():"res-"+st.toString()}q(ct,"createResponseQueueKey");function Fe(){return"not-"+(++B).toString()}q(Fe,"createNotificationQueueKey");function Xe(st,jt){n.Message.isRequest(jt)?st.set(je(jt.id),jt):n.Message.isResponse(jt)?st.set(ct(jt.id),jt):st.set(Fe(),jt)}q(Xe,"addMessageToQueue");function et(st){}q(et,"cancelUndispatched");function Ie(){return Ue===I.Listening}q(Ie,"isListening");function we(){return Ue===I.Closed}q(we,"isClosed");function ce(){return Ue===I.Disposed}q(ce,"isDisposed");function Te(){(Ue===I.New||Ue===I.Listening)&&(Ue=I.Closed,be.fire(void 0))}q(Te,"closeHandler");function fe(st){Se.fire([st,void 0,void 0])}q(fe,"readErrorHandler");function Be(st){Se.fire(st)}q(Be,"writeErrorHandler"),D.onClose(Te),D.onError(fe),M.onClose(Te),M.onError(Be);function me(){Z||re.size===0||(Z=(0,e.default)().timer.setImmediate(()=>{Z=void 0,qe()}))}q(me,"triggerMessageQueue");function Ye(st){n.Message.isRequest(st)?it(st):n.Message.isNotification(st)?Je(st):n.Message.isResponse(st)?He(st):ht(st)}q(Ye,"handleMessage");function qe(){if(re.size===0)return;const st=re.shift();try{const jt=N?.messageStrategy;A.is(jt)?jt.handleMessage(st,Ye):Ye(st)}finally{me()}}q(qe,"processMessageQueue");const lt=q(st=>{try{if(n.Message.isNotification(st)&&st.method===o.type.method){const jt=st.params.id,nr=je(jt),vr=re.get(nr);if(n.Message.isRequest(vr)){const yn=N?.connectionStrategy,ln=yn&&yn.cancelUndispatched?yn.cancelUndispatched(vr,et):void 0;if(ln&&(ln.error!==void 0||ln.result!==void 0)){re.delete(nr),se.delete(jt),ln.id=vr.id,pt(ln,st.method,Date.now()),M.write(ln).catch(()=>$.error("Sending response for canceled message failed."));return}}const Sr=se.get(jt);if(Sr!==void 0){Sr.cancel(),Ut(st);return}else j.add(jt)}Xe(re,st)}finally{me()}},"callback");function it(st){if(ce())return;function jt(nn,Zr,Jr){const Jn={jsonrpc:z,id:st.id};nn instanceof n.ResponseError?Jn.error=nn.toJson():Jn.result=nn===void 0?null:nn,pt(Jn,Zr,Jr),M.write(Jn).catch(()=>$.error("Sending response failed."))}q(jt,"reply");function nr(nn,Zr,Jr){const Jn={jsonrpc:z,id:st.id,error:nn.toJson()};pt(Jn,Zr,Jr),M.write(Jn).catch(()=>$.error("Sending response failed."))}q(nr,"replyError");function vr(nn,Zr,Jr){nn===void 0&&(nn=null);const Jn={jsonrpc:z,id:st.id,result:nn};pt(Jn,Zr,Jr),M.write(Jn).catch(()=>$.error("Sending response failed."))}q(vr,"replySuccess"),Ve(st);const Sr=Y.get(st.method);let yn,ln;Sr&&(yn=Sr.type,ln=Sr.handler);const xn=Date.now();if(ln||G){const nn=st.id??String(Date.now()),Zr=E.is(Oe.receiver)?Oe.receiver.createCancellationTokenSource(nn):Oe.receiver.createCancellationTokenSource(st);st.id!==null&&j.has(st.id)&&Zr.cancel(),st.id!==null&&se.set(nn,Zr);try{let Jr;if(ln)if(st.params===void 0){if(yn!==void 0&&yn.numberOfParams!==0){nr(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${st.method} defines ${yn.numberOfParams} params but received none.`),st.method,xn);return}Jr=ln(Zr.token)}else if(Array.isArray(st.params)){if(yn!==void 0&&yn.parameterStructures===n.ParameterStructures.byName){nr(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${st.method} defines parameters by name but received parameters by position`),st.method,xn);return}Jr=ln(...st.params,Zr.token)}else{if(yn!==void 0&&yn.parameterStructures===n.ParameterStructures.byPosition){nr(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${st.method} defines parameters by position but received parameters by name`),st.method,xn);return}Jr=ln(st.params,Zr.token)}else G&&(Jr=G(st.method,st.params,Zr.token));const Jn=Jr;Jr?Jn.then?Jn.then(_a=>{se.delete(nn),jt(_a,st.method,xn)},_a=>{se.delete(nn),_a instanceof n.ResponseError?nr(_a,st.method,xn):_a&&r.string(_a.message)?nr(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${st.method} failed with message: ${_a.message}`),st.method,xn):nr(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${st.method} failed unexpectedly without providing any details.`),st.method,xn)}):(se.delete(nn),jt(Jr,st.method,xn)):(se.delete(nn),vr(Jr,st.method,xn))}catch(Jr){se.delete(nn),Jr instanceof n.ResponseError?jt(Jr,st.method,xn):Jr&&r.string(Jr.message)?nr(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${st.method} failed with message: ${Jr.message}`),st.method,xn):nr(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${st.method} failed unexpectedly without providing any details.`),st.method,xn)}}else nr(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${st.method}`),st.method,xn)}q(it,"handleRequest");function He(st){if(!ce())if(st.id===null)st.error?$.error(`Received response message without id: Error is: 
${JSON.stringify(st.error,void 0,4)}`):$.error("Received response message without id. No further error information provided.");else{const jt=st.id,nr=K.get(jt);if(kt(st,nr),nr!==void 0){K.delete(jt);try{if(st.error){const vr=st.error;nr.reject(new n.ResponseError(vr.code,vr.message,vr.data))}else if(st.result!==void 0)nr.resolve(st.result);else throw new Error("Should never happen.")}catch(vr){vr.message?$.error(`Response handler '${nr.method}' failed with message: ${vr.message}`):$.error(`Response handler '${nr.method}' failed unexpectedly.`)}}}}q(He,"handleResponse");function Je(st){if(ce())return;let jt,nr;if(st.method===o.type.method){const vr=st.params.id;j.delete(vr),Ut(st);return}else{const vr=Q.get(st.method);vr&&(nr=vr.handler,jt=vr.type)}if(nr||W)try{if(Ut(st),nr)if(st.params===void 0)jt!==void 0&&jt.numberOfParams!==0&&jt.parameterStructures!==n.ParameterStructures.byName&&$.error(`Notification ${st.method} defines ${jt.numberOfParams} params but received none.`),nr();else if(Array.isArray(st.params)){const vr=st.params;st.method===u.type.method&&vr.length===2&&l.is(vr[0])?nr({token:vr[0],value:vr[1]}):(jt!==void 0&&(jt.parameterStructures===n.ParameterStructures.byName&&$.error(`Notification ${st.method} defines parameters by name but received parameters by position`),jt.numberOfParams!==st.params.length&&$.error(`Notification ${st.method} defines ${jt.numberOfParams} params but received ${vr.length} arguments`)),nr(...vr))}else jt!==void 0&&jt.parameterStructures===n.ParameterStructures.byPosition&&$.error(`Notification ${st.method} defines parameters by position but received parameters by name`),nr(st.params);else W&&W(st.method,st.params)}catch(vr){vr.message?$.error(`Notification handler '${st.method}' failed with message: ${vr.message}`):$.error(`Notification handler '${st.method}' failed unexpectedly.`)}else ke.fire(st)}q(Je,"handleNotification");function ht(st){if(!st){$.error("Received empty message.");return}$.error(`Received message which is neither a response nor a notification message:
${JSON.stringify(st,null,4)}`);const jt=st;if(r.string(jt.id)||r.number(jt.id)){const nr=jt.id,vr=K.get(nr);vr&&vr.reject(new Error("The received response has neither a result nor an error property."))}}q(ht,"handleInvalidMessage");function rt(st){if(st!=null)switch(le){case f.Verbose:return JSON.stringify(st,null,4);case f.Compact:return JSON.stringify(st);default:return}}q(rt,"stringifyTrace");function $e(st){if(!(le===f.Off||!ye))if(_e===g.Text){let jt;(le===f.Verbose||le===f.Compact)&&st.params&&(jt=`Params: ${rt(st.params)}

`),ye.log(`Sending request '${st.method} - (${st.id})'.`,jt)}else gt("send-request",st)}q($e,"traceSendingRequest");function xe(st){if(!(le===f.Off||!ye))if(_e===g.Text){let jt;(le===f.Verbose||le===f.Compact)&&(st.params?jt=`Params: ${rt(st.params)}

`:jt=`No parameters provided.

`),ye.log(`Sending notification '${st.method}'.`,jt)}else gt("send-notification",st)}q(xe,"traceSendingNotification");function pt(st,jt,nr){if(!(le===f.Off||!ye))if(_e===g.Text){let vr;(le===f.Verbose||le===f.Compact)&&(st.error&&st.error.data?vr=`Error data: ${rt(st.error.data)}

`:st.result?vr=`Result: ${rt(st.result)}

`:st.error===void 0&&(vr=`No result returned.

`)),ye.log(`Sending response '${jt} - (${st.id})'. Processing request took ${Date.now()-nr}ms`,vr)}else gt("send-response",st)}q(pt,"traceSendingResponse");function Ve(st){if(!(le===f.Off||!ye))if(_e===g.Text){let jt;(le===f.Verbose||le===f.Compact)&&st.params&&(jt=`Params: ${rt(st.params)}

`),ye.log(`Received request '${st.method} - (${st.id})'.`,jt)}else gt("receive-request",st)}q(Ve,"traceReceivedRequest");function Ut(st){if(!(le===f.Off||!ye||st.method===_.type.method))if(_e===g.Text){let jt;(le===f.Verbose||le===f.Compact)&&(st.params?jt=`Params: ${rt(st.params)}

`:jt=`No parameters provided.

`),ye.log(`Received notification '${st.method}'.`,jt)}else gt("receive-notification",st)}q(Ut,"traceReceivedNotification");function kt(st,jt){if(!(le===f.Off||!ye))if(_e===g.Text){let nr;if((le===f.Verbose||le===f.Compact)&&(st.error&&st.error.data?nr=`Error data: ${rt(st.error.data)}

`:st.result?nr=`Result: ${rt(st.result)}

`:st.error===void 0&&(nr=`No result returned.

`)),jt){const vr=st.error?` Request failed: ${st.error.message} (${st.error.code}).`:"";ye.log(`Received response '${jt.method} - (${st.id})' in ${Date.now()-jt.timerStart}ms.${vr}`,nr)}else ye.log(`Received response ${st.id} without active response promise.`,nr)}else gt("receive-response",st)}q(kt,"traceReceivedResponse");function gt(st,jt){if(!ye||le===f.Off)return;const nr={isLSPMessage:!0,type:st,message:jt,timestamp:Date.now()};ye.log(nr)}q(gt,"logLSPMessage");function Ct(){if(we())throw new y(v.Closed,"Connection is closed.");if(ce())throw new y(v.Disposed,"Connection is disposed.")}q(Ct,"throwIfClosedOrDisposed");function mt(){if(Ie())throw new y(v.AlreadyListening,"Connection is already listening")}q(mt,"throwIfListening");function qt(){if(!Ie())throw new Error("Call listen() first.")}q(qt,"throwIfNotListening");function De(st){return st===void 0?null:st}q(De,"undefinedToNull");function pr(st){if(st!==null)return st}q(pr,"nullToUndefined");function or(st){return st!=null&&!Array.isArray(st)&&typeof st=="object"}q(or,"isNamedParam");function ir(st,jt){switch(st){case n.ParameterStructures.auto:return or(jt)?pr(jt):[De(jt)];case n.ParameterStructures.byName:if(!or(jt))throw new Error("Received parameters by name but param is not an object literal.");return pr(jt);case n.ParameterStructures.byPosition:return[De(jt)];default:throw new Error(`Unknown parameter structure ${st.toString()}`)}}q(ir,"computeSingleParam");function gr(st,jt){let nr;const vr=st.numberOfParams;switch(vr){case 0:nr=void 0;break;case 1:nr=ir(st.parameterStructures,jt[0]);break;default:nr=[];for(let Sr=0;Sr<jt.length&&Sr<vr;Sr++)nr.push(De(jt[Sr]));if(jt.length<vr)for(let Sr=jt.length;Sr<vr;Sr++)nr.push(null);break}return nr}q(gr,"computeMessageParams");const dn={sendNotification:q((st,...jt)=>{Ct();let nr,vr;if(r.string(st)){nr=st;const yn=jt[0];let ln=0,xn=n.ParameterStructures.auto;n.ParameterStructures.is(yn)&&(ln=1,xn=yn);let nn=jt.length;const Zr=nn-ln;switch(Zr){case 0:vr=void 0;break;case 1:vr=ir(xn,jt[ln]);break;default:if(xn===n.ParameterStructures.byName)throw new Error(`Received ${Zr} parameters for 'by Name' notification parameter structure.`);vr=jt.slice(ln,nn).map(Jr=>De(Jr));break}}else{const yn=jt;nr=st.method,vr=gr(st,yn)}const Sr={jsonrpc:z,method:nr,params:vr};return xe(Sr),M.write(Sr).catch(yn=>{throw $.error("Sending notification failed."),yn})},"sendNotification"),onNotification:q((st,jt)=>{Ct();let nr;return r.func(st)?W=st:jt&&(r.string(st)?(nr=st,Q.set(st,{type:void 0,handler:jt})):(nr=st.method,Q.set(st.method,{type:st,handler:jt}))),{dispose:q(()=>{nr!==void 0?Q.delete(nr):W=void 0},"dispose")}},"onNotification"),onProgress:q((st,jt,nr)=>{if(ie.has(jt))throw new Error(`Progress handler for token ${jt} already registered`);return ie.set(jt,nr),{dispose:q(()=>{ie.delete(jt)},"dispose")}},"onProgress"),sendProgress:q((st,jt,nr)=>dn.sendNotification(u.type,{token:jt,value:nr}),"sendProgress"),onUnhandledProgress:Ae.event,sendRequest:q((st,...jt)=>{Ct(),qt();let nr,vr,Sr;if(r.string(st)){nr=st;const nn=jt[0],Zr=jt[jt.length-1];let Jr=0,Jn=n.ParameterStructures.auto;n.ParameterStructures.is(nn)&&(Jr=1,Jn=nn);let _a=jt.length;s.CancellationToken.is(Zr)&&(_a=_a-1,Sr=Zr);const si=_a-Jr;switch(si){case 0:vr=void 0;break;case 1:vr=ir(Jn,jt[Jr]);break;default:if(Jn===n.ParameterStructures.byName)throw new Error(`Received ${si} parameters for 'by Name' request parameter structure.`);vr=jt.slice(Jr,_a).map(Ta=>De(Ta));break}}else{const nn=jt;nr=st.method,vr=gr(st,nn);const Zr=st.numberOfParams;Sr=s.CancellationToken.is(nn[Zr])?nn[Zr]:void 0}const yn=U++;let ln;Sr&&(ln=Sr.onCancellationRequested(()=>{const nn=Oe.sender.sendCancellation(dn,yn);return nn===void 0?($.log(`Received no promise from cancellation strategy when cancelling id ${yn}`),Promise.resolve()):nn.catch(()=>{$.log(`Sending cancellation messages for id ${yn} failed`)})}));const xn={jsonrpc:z,id:yn,method:nr,params:vr};return $e(xn),typeof Oe.sender.enableCancellation=="function"&&Oe.sender.enableCancellation(xn),new Promise(async(nn,Zr)=>{const Jr=q(si=>{nn(si),Oe.sender.cleanup(yn),ln?.dispose()},"resolveWithCleanup"),Jn=q(si=>{Zr(si),Oe.sender.cleanup(yn),ln?.dispose()},"rejectWithCleanup"),_a={method:nr,timerStart:Date.now(),resolve:Jr,reject:Jn};try{await M.write(xn),K.set(yn,_a)}catch(si){throw $.error("Sending request failed."),_a.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,si.message?si.message:"Unknown reason")),si}})},"sendRequest"),onRequest:q((st,jt)=>{Ct();let nr=null;return h.is(st)?(nr=void 0,G=st):r.string(st)?(nr=null,jt!==void 0&&(nr=st,Y.set(st,{handler:jt,type:void 0}))):jt!==void 0&&(nr=st.method,Y.set(st.method,{type:st,handler:jt})),{dispose:q(()=>{nr!==null&&(nr!==void 0?Y.delete(nr):G=void 0)},"dispose")}},"onRequest"),hasPendingResponse:q(()=>K.size>0,"hasPendingResponse"),trace:q(async(st,jt,nr)=>{let vr=!1,Sr=g.Text;nr!==void 0&&(r.boolean(nr)?vr=nr:(vr=nr.sendNotification||!1,Sr=nr.traceFormat||g.Text)),le=st,_e=Sr,le===f.Off?ye=void 0:ye=jt,vr&&!we()&&!ce()&&await dn.sendNotification(m.type,{value:f.toString(st)})},"trace"),onError:Se.event,onClose:be.event,onUnhandledNotification:ke.event,onDispose:tt.event,end:q(()=>{M.end()},"end"),dispose:q(()=>{if(ce())return;Ue=I.Disposed,tt.fire(void 0);const st=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const jt of K.values())jt.reject(st);K=new Map,se=new Map,j=new Set,re=new i.LinkedMap,r.func(M.dispose)&&M.dispose(),r.func(D.dispose)&&D.dispose()},"dispose"),listen:q(()=>{Ct(),mt(),Ue=I.Listening,D.listen(lt)},"listen"),inspect:q(()=>{(0,e.default)().console.log("inspect")},"inspect")};return dn.onNotification(_.type,st=>{if(le===f.Off||!ye)return;const jt=le===f.Verbose||le===f.Compact;ye.log(st.message,jt?st.verbose:void 0)}),dn.onNotification(u.type,st=>{const jt=ie.get(st.token);jt?jt(st.value):Ae.fire(st)}),dn}q(L,"createMessageConnection"),t.createMessageConnection=L}}),Are=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;var e=RHe();Object.defineProperty(t,"Message",{enumerable:!0,get:q(function(){return e.Message},"get")}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:q(function(){return e.RequestType},"get")}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:q(function(){return e.RequestType0},"get")}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:q(function(){return e.RequestType1},"get")}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:q(function(){return e.RequestType2},"get")}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:q(function(){return e.RequestType3},"get")}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:q(function(){return e.RequestType4},"get")}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:q(function(){return e.RequestType5},"get")}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:q(function(){return e.RequestType6},"get")}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:q(function(){return e.RequestType7},"get")}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:q(function(){return e.RequestType8},"get")}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:q(function(){return e.RequestType9},"get")}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:q(function(){return e.ResponseError},"get")}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:q(function(){return e.ErrorCodes},"get")}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:q(function(){return e.NotificationType},"get")}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:q(function(){return e.NotificationType0},"get")}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:q(function(){return e.NotificationType1},"get")}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:q(function(){return e.NotificationType2},"get")}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:q(function(){return e.NotificationType3},"get")}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:q(function(){return e.NotificationType4},"get")}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:q(function(){return e.NotificationType5},"get")}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:q(function(){return e.NotificationType6},"get")}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:q(function(){return e.NotificationType7},"get")}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:q(function(){return e.NotificationType8},"get")}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:q(function(){return e.NotificationType9},"get")}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:q(function(){return e.ParameterStructures},"get")});var r=OHe();Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:q(function(){return r.LinkedMap},"get")}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:q(function(){return r.LRUCache},"get")}),Object.defineProperty(t,"Touch",{enumerable:!0,get:q(function(){return r.Touch},"get")});var n=m5r();Object.defineProperty(t,"Disposable",{enumerable:!0,get:q(function(){return n.Disposable},"get")});var i=$R();Object.defineProperty(t,"Event",{enumerable:!0,get:q(function(){return i.Event},"get")}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:q(function(){return i.Emitter},"get")});var a=L$();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:q(function(){return a.CancellationTokenSource},"get")}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:q(function(){return a.CancellationToken},"get")});var s=_5r();Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:q(function(){return s.SharedArraySenderStrategy},"get")}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:q(function(){return s.SharedArrayReceiverStrategy},"get")});var o=v5r();Object.defineProperty(t,"MessageReader",{enumerable:!0,get:q(function(){return o.MessageReader},"get")}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:q(function(){return o.AbstractMessageReader},"get")}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:q(function(){return o.ReadableStreamMessageReader},"get")});var l=y5r();Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:q(function(){return l.MessageWriter},"get")}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:q(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:q(function(){return l.WriteableStreamMessageWriter},"get")});var u=b5r();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:q(function(){return u.AbstractMessageBuffer},"get")});var d=E5r();Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:q(function(){return d.ConnectionStrategy},"get")}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:q(function(){return d.ConnectionOptions},"get")}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:q(function(){return d.NullLogger},"get")}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:q(function(){return d.createMessageConnection},"get")}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:q(function(){return d.ProgressToken},"get")}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:q(function(){return d.ProgressType},"get")}),Object.defineProperty(t,"Trace",{enumerable:!0,get:q(function(){return d.Trace},"get")}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:q(function(){return d.TraceValues},"get")}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:q(function(){return d.TraceFormat},"get")}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:q(function(){return d.SetTraceNotification},"get")}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:q(function(){return d.LogTraceNotification},"get")}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:q(function(){return d.ConnectionErrors},"get")}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:q(function(){return d.ConnectionError},"get")}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:q(function(){return d.CancellationReceiverStrategy},"get")}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:q(function(){return d.CancellationSenderStrategy},"get")}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:q(function(){return d.CancellationStrategy},"get")}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:q(function(){return d.MessageStrategy},"get")});var h=wE();t.RAL=h.default}}),S5r=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(t){var l,u,d;Object.defineProperty(t,"__esModule",{value:!0});var e=Are(),r=(l=class extends e.AbstractMessageBuffer{constructor(f="utf-8"){super(f),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return l.emptyBuffer}fromString(f,p){return new TextEncoder().encode(f)}toString(f,p){return p==="ascii"?this.asciiDecoder.decode(f):new TextDecoder(p).decode(f)}asNative(f,p){return p===void 0?f:f.slice(0,p)}allocNative(f){return new Uint8Array(f)}},q(l,"MessageBuffer"),l);r.emptyBuffer=new Uint8Array(0);var n=(u=class{constructor(f){this.socket=f,this._onData=new e.Emitter,this._messageListener=p=>{p.data.arrayBuffer().then(m=>{this._onData.fire(new Uint8Array(m))},()=>{(0,e.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(f){return this.socket.addEventListener("close",f),e.Disposable.create(()=>this.socket.removeEventListener("close",f))}onError(f){return this.socket.addEventListener("error",f),e.Disposable.create(()=>this.socket.removeEventListener("error",f))}onEnd(f){return this.socket.addEventListener("end",f),e.Disposable.create(()=>this.socket.removeEventListener("end",f))}onData(f){return this._onData.event(f)}},q(u,"ReadableStreamWrapper"),u),i=(d=class{constructor(f){this.socket=f}onClose(f){return this.socket.addEventListener("close",f),e.Disposable.create(()=>this.socket.removeEventListener("close",f))}onError(f){return this.socket.addEventListener("error",f),e.Disposable.create(()=>this.socket.removeEventListener("error",f))}onEnd(f){return this.socket.addEventListener("end",f),e.Disposable.create(()=>this.socket.removeEventListener("end",f))}write(f,p){if(typeof f=="string"){if(p!==void 0&&p!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${p}`);this.socket.send(f)}else this.socket.send(f);return Promise.resolve()}end(){this.socket.close()}},q(d,"WritableStreamWrapper"),d),a=new TextEncoder,s=Object.freeze({messageBuffer:Object.freeze({create:q(h=>new r(h),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:q((h,f)=>{if(f.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${f.charset}`);return Promise.resolve(a.encode(JSON.stringify(h,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:q((h,f)=>{if(!(h instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(f.charset).decode(h)))},"decode")})}),stream:Object.freeze({asReadableStream:q(h=>new n(h),"asReadableStream"),asWritableStream:q(h=>new i(h),"asWritableStream")}),console,timer:Object.freeze({setTimeout(h,f,...p){const g=setTimeout(h,f,...p);return{dispose:q(()=>clearTimeout(g),"dispose")}},setImmediate(h,...f){const p=setTimeout(h,0,...f);return{dispose:q(()=>clearTimeout(p),"dispose")}},setInterval(h,f,...p){const g=setInterval(h,f,...p);return{dispose:q(()=>clearInterval(g),"dispose")}}})});function o(){return s}q(o,"RIL"),(function(h){function f(){e.RAL.install(s)}q(f,"install"),h.install=f})(o||(o={})),t.default=o}}),GR=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(t){var l,u;var e=t&&t.__createBinding||(Object.create?(function(d,h,f,p){p===void 0&&(p=f);var g=Object.getOwnPropertyDescriptor(h,f);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:q(function(){return h[f]},"get")}),Object.defineProperty(d,p,g)}):(function(d,h,f,p){p===void 0&&(p=f),d[p]=h[f]})),r=t&&t.__exportStar||function(d,h){for(var f in d)f!=="default"&&!Object.prototype.hasOwnProperty.call(h,f)&&e(h,d,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0;var n=S5r();n.default.install();var i=Are();r(Are(),t);var a=(l=class extends i.AbstractMessageReader{constructor(h){super(),this._onData=new i.Emitter,this._messageListener=f=>{this._onData.fire(f.data)},h.addEventListener("error",f=>this.fireError(f)),h.onmessage=this._messageListener}listen(h){return this._onData.event(h)}},q(l,"BrowserMessageReader"),l);t.BrowserMessageReader=a;var s=(u=class extends i.AbstractMessageWriter{constructor(h){super(),this.port=h,this.errorCount=0,h.addEventListener("error",f=>this.fireError(f))}write(h){try{return this.port.postMessage(h),Promise.resolve()}catch(f){return this.handleError(f,h),Promise.reject(f)}}handleError(h,f){this.errorCount++,this.fireError(h,f,this.errorCount)}end(){}},q(u,"BrowserMessageWriter"),u);t.BrowserMessageWriter=s;function o(d,h,f,p){return f===void 0&&(f=i.NullLogger),i.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,i.createMessageConnection)(d,h,f,p)}q(o,"createMessageConnection"),t.createMessageConnection=o}}),rOe=vi({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(t,e){e.exports=GR()}}),Js=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(t){var l,u,d,h,f;Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;var e=GR(),r;(function(p){p.clientToServer="clientToServer",p.serverToClient="serverToClient",p.both="both"})(r||(t.MessageDirection=r={}));var n=(l=class{constructor(g){this.method=g}},q(l,"RegistrationType"),l);t.RegistrationType=n;var i=(u=class extends e.RequestType0{constructor(g){super(g)}},q(u,"ProtocolRequestType0"),u);t.ProtocolRequestType0=i;var a=(d=class extends e.RequestType{constructor(g){super(g,e.ParameterStructures.byName)}},q(d,"ProtocolRequestType"),d);t.ProtocolRequestType=a;var s=(h=class extends e.NotificationType0{constructor(g){super(g)}},q(h,"ProtocolNotificationType0"),h);t.ProtocolNotificationType0=s;var o=(f=class extends e.NotificationType{constructor(g){super(g,e.ParameterStructures.byName)}},q(f,"ProtocolNotificationType"),f);t.ProtocolNotificationType=o}}),vde=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(d){return d===!0||d===!1}q(e,"boolean"),t.boolean=e;function r(d){return typeof d=="string"||d instanceof String}q(r,"string"),t.string=r;function n(d){return typeof d=="number"||d instanceof Number}q(n,"number"),t.number=n;function i(d){return d instanceof Error}q(i,"error"),t.error=i;function a(d){return typeof d=="function"}q(a,"func"),t.func=a;function s(d){return Array.isArray(d)}q(s,"array"),t.array=s;function o(d){return s(d)&&d.every(h=>r(h))}q(o,"stringArray"),t.stringArray=o;function l(d,h){return Array.isArray(d)&&d.every(h)}q(l,"typedArray"),t.typedArray=l;function u(d){return d!==null&&typeof d=="object"}q(u,"objectLiteral"),t.objectLiteral=u}}),T5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;var e=Js(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ImplementationRequest=r={}))}}),C5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;var e=Js(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.TypeDefinitionRequest=r={}))}}),w5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;var e=Js(),r;(function(i){i.method="workspace/workspaceFolders",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(r||(t.WorkspaceFoldersRequest=r={}));var n;(function(i){i.method="workspace/didChangeWorkspaceFolders",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolNotificationType(i.method)})(n||(t.DidChangeWorkspaceFoldersNotification=n={}))}}),x5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;var e=Js(),r;(function(n){n.method="workspace/configuration",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ConfigurationRequest=r={}))}}),A5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;var e=Js(),r;(function(i){i.method="textDocument/documentColor",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.DocumentColorRequest=r={}));var n;(function(i){i.method="textDocument/colorPresentation",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.ColorPresentationRequest=n={}))}}),R5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;var e=Js(),r;(function(i){i.method="textDocument/foldingRange",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.FoldingRangeRequest=r={}));var n;(function(i){i.method="workspace/foldingRange/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(n||(t.FoldingRangeRefreshRequest=n={}))}}),O5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;var e=Js(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.DeclarationRequest=r={}))}}),I5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;var e=Js(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.SelectionRangeRequest=r={}))}}),N5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;var e=GR(),r=Js(),n;(function(s){s.type=new e.ProgressType;function o(l){return l===s.type}q(o,"is"),s.is=o})(n||(t.WorkDoneProgress=n={}));var i;(function(s){s.method="window/workDoneProgress/create",s.messageDirection=r.MessageDirection.serverToClient,s.type=new r.ProtocolRequestType(s.method)})(i||(t.WorkDoneProgressCreateRequest=i={}));var a;(function(s){s.method="window/workDoneProgress/cancel",s.messageDirection=r.MessageDirection.clientToServer,s.type=new r.ProtocolNotificationType(s.method)})(a||(t.WorkDoneProgressCancelNotification=a={}))}}),k5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;var e=Js(),r;(function(a){a.method="textDocument/prepareCallHierarchy",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.CallHierarchyPrepareRequest=r={}));var n;(function(a){a.method="callHierarchy/incomingCalls",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.CallHierarchyIncomingCallsRequest=n={}));var i;(function(a){a.method="callHierarchy/outgoingCalls",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.CallHierarchyOutgoingCallsRequest=i={}))}}),D5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;var e=Js(),r;(function(l){l.Relative="relative"})(r||(t.TokenFormat=r={}));var n;(function(l){l.method="textDocument/semanticTokens",l.type=new e.RegistrationType(l.method)})(n||(t.SemanticTokensRegistrationType=n={}));var i;(function(l){l.method="textDocument/semanticTokens/full",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(i||(t.SemanticTokensRequest=i={}));var a;(function(l){l.method="textDocument/semanticTokens/full/delta",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(a||(t.SemanticTokensDeltaRequest=a={}));var s;(function(l){l.method="textDocument/semanticTokens/range",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(s||(t.SemanticTokensRangeRequest=s={}));var o;(function(l){l.method="workspace/semanticTokens/refresh",l.messageDirection=e.MessageDirection.serverToClient,l.type=new e.ProtocolRequestType0(l.method)})(o||(t.SemanticTokensRefreshRequest=o={}))}}),M5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;var e=Js(),r;(function(n){n.method="window/showDocument",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ShowDocumentRequest=r={}))}}),L5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;var e=Js(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.LinkedEditingRangeRequest=r={}))}}),P5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;var e=Js(),r;(function(u){u.file="file",u.folder="folder"})(r||(t.FileOperationPatternKind=r={}));var n;(function(u){u.method="workspace/willCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(n||(t.WillCreateFilesRequest=n={}));var i;(function(u){u.method="workspace/didCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(i||(t.DidCreateFilesNotification=i={}));var a;(function(u){u.method="workspace/willRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(a||(t.WillRenameFilesRequest=a={}));var s;(function(u){u.method="workspace/didRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(s||(t.DidRenameFilesNotification=s={}));var o;(function(u){u.method="workspace/didDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(o||(t.DidDeleteFilesNotification=o={}));var l;(function(u){u.method="workspace/willDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(l||(t.WillDeleteFilesRequest=l={}))}}),F5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;var e=Js(),r;(function(a){a.document="document",a.project="project",a.group="group",a.scheme="scheme",a.global="global"})(r||(t.UniquenessLevel=r={}));var n;(function(a){a.$import="import",a.$export="export",a.local="local"})(n||(t.MonikerKind=n={}));var i;(function(a){a.method="textDocument/moniker",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.MonikerRequest=i={}))}}),B5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;var e=Js(),r;(function(a){a.method="textDocument/prepareTypeHierarchy",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.TypeHierarchyPrepareRequest=r={}));var n;(function(a){a.method="typeHierarchy/supertypes",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.TypeHierarchySupertypesRequest=n={}));var i;(function(a){a.method="typeHierarchy/subtypes",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(i||(t.TypeHierarchySubtypesRequest=i={}))}}),U5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;var e=Js(),r;(function(i){i.method="textDocument/inlineValue",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.InlineValueRequest=r={}));var n;(function(i){i.method="workspace/inlineValue/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(n||(t.InlineValueRefreshRequest=n={}))}}),$5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;var e=Js(),r;(function(a){a.method="textDocument/inlayHint",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.InlayHintRequest=r={}));var n;(function(a){a.method="inlayHint/resolve",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.InlayHintResolveRequest=n={}));var i;(function(a){a.method="workspace/inlayHint/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(i||(t.InlayHintRefreshRequest=i={}))}}),G5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;var e=GR(),r=vde(),n=Js(),i;(function(u){function d(h){const f=h;return f&&r.boolean(f.retriggerRequest)}q(d,"is"),u.is=d})(i||(t.DiagnosticServerCancellationData=i={}));var a;(function(u){u.Full="full",u.Unchanged="unchanged"})(a||(t.DocumentDiagnosticReportKind=a={}));var s;(function(u){u.method="textDocument/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(s||(t.DocumentDiagnosticRequest=s={}));var o;(function(u){u.method="workspace/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(o||(t.WorkspaceDiagnosticRequest=o={}));var l;(function(u){u.method="workspace/diagnostic/refresh",u.messageDirection=n.MessageDirection.serverToClient,u.type=new n.ProtocolRequestType0(u.method)})(l||(t.DiagnosticRefreshRequest=l={}))}}),z5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;var e=(dD(),_de(M$)),r=vde(),n=Js(),i;(function(g){g.Markup=1,g.Code=2;function m(_){return _===1||_===2}q(m,"is"),g.is=m})(i||(t.NotebookCellKind=i={}));var a;(function(g){function m(y,b){const E={executionOrder:y};return(b===!0||b===!1)&&(E.success=b),E}q(m,"create"),g.create=m;function _(y){const b=y;return r.objectLiteral(b)&&e.uinteger.is(b.executionOrder)&&(b.success===void 0||r.boolean(b.success))}q(_,"is"),g.is=_;function v(y,b){return y===b?!0:y==null||b===null||b===void 0?!1:y.executionOrder===b.executionOrder&&y.success===b.success}q(v,"equals"),g.equals=v})(a||(t.ExecutionSummary=a={}));var s;(function(g){function m(b,E){return{kind:b,document:E}}q(m,"create"),g.create=m;function _(b){const E=b;return r.objectLiteral(E)&&i.is(E.kind)&&e.DocumentUri.is(E.document)&&(E.metadata===void 0||r.objectLiteral(E.metadata))}q(_,"is"),g.is=_;function v(b,E){const S=new Set;return b.document!==E.document&&S.add("document"),b.kind!==E.kind&&S.add("kind"),b.executionSummary!==E.executionSummary&&S.add("executionSummary"),(b.metadata!==void 0||E.metadata!==void 0)&&!y(b.metadata,E.metadata)&&S.add("metadata"),(b.executionSummary!==void 0||E.executionSummary!==void 0)&&!a.equals(b.executionSummary,E.executionSummary)&&S.add("executionSummary"),S}q(v,"diff"),g.diff=v;function y(b,E){if(b===E)return!0;if(b==null||E===null||E===void 0||typeof b!=typeof E||typeof b!="object")return!1;const S=Array.isArray(b),T=Array.isArray(E);if(S!==T)return!1;if(S&&T){if(b.length!==E.length)return!1;for(let C=0;C<b.length;C++)if(!y(b[C],E[C]))return!1}if(r.objectLiteral(b)&&r.objectLiteral(E)){const C=Object.keys(b),x=Object.keys(E);if(C.length!==x.length||(C.sort(),x.sort(),!y(C,x)))return!1;for(let A=0;A<C.length;A++){const R=C[A];if(!y(b[R],E[R]))return!1}}return!0}q(y,"equalsMetadata")})(s||(t.NotebookCell=s={}));var o;(function(g){function m(v,y,b,E){return{uri:v,notebookType:y,version:b,cells:E}}q(m,"create"),g.create=m;function _(v){const y=v;return r.objectLiteral(y)&&r.string(y.uri)&&e.integer.is(y.version)&&r.typedArray(y.cells,s.is)}q(_,"is"),g.is=_})(o||(t.NotebookDocument=o={}));var l;(function(g){g.method="notebookDocument/sync",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.RegistrationType(g.method)})(l||(t.NotebookDocumentSyncRegistrationType=l={}));var u;(function(g){g.method="notebookDocument/didOpen",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=l.method})(u||(t.DidOpenNotebookDocumentNotification=u={}));var d;(function(g){function m(v){const y=v;return r.objectLiteral(y)&&e.uinteger.is(y.start)&&e.uinteger.is(y.deleteCount)&&(y.cells===void 0||r.typedArray(y.cells,s.is))}q(m,"is"),g.is=m;function _(v,y,b){const E={start:v,deleteCount:y};return b!==void 0&&(E.cells=b),E}q(_,"create"),g.create=_})(d||(t.NotebookCellArrayChange=d={}));var h;(function(g){g.method="notebookDocument/didChange",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=l.method})(h||(t.DidChangeNotebookDocumentNotification=h={}));var f;(function(g){g.method="notebookDocument/didSave",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=l.method})(f||(t.DidSaveNotebookDocumentNotification=f={}));var p;(function(g){g.method="notebookDocument/didClose",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=l.method})(p||(t.DidCloseNotebookDocumentNotification=p={}))}}),q5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequest=void 0;var e=Js(),r;(function(n){n.method="textDocument/inlineCompletion",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.InlineCompletionRequest=r={}))}}),V5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=void 0;var e=Js(),r=(dD(),_de(M$)),n=vde(),i=T5r();Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:q(function(){return i.ImplementationRequest},"get")});var a=C5r();Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:q(function(){return a.TypeDefinitionRequest},"get")});var s=w5r();Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:q(function(){return s.WorkspaceFoldersRequest},"get")}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:q(function(){return s.DidChangeWorkspaceFoldersNotification},"get")});var o=x5r();Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:q(function(){return o.ConfigurationRequest},"get")});var l=A5r();Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:q(function(){return l.DocumentColorRequest},"get")}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:q(function(){return l.ColorPresentationRequest},"get")});var u=R5r();Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:q(function(){return u.FoldingRangeRequest},"get")}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:q(function(){return u.FoldingRangeRefreshRequest},"get")});var d=O5r();Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:q(function(){return d.DeclarationRequest},"get")});var h=I5r();Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:q(function(){return h.SelectionRangeRequest},"get")});var f=N5r();Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:q(function(){return f.WorkDoneProgress},"get")}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:q(function(){return f.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:q(function(){return f.WorkDoneProgressCancelNotification},"get")});var p=k5r();Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:q(function(){return p.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:q(function(){return p.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:q(function(){return p.CallHierarchyPrepareRequest},"get")});var g=D5r();Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:q(function(){return g.TokenFormat},"get")}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:q(function(){return g.SemanticTokensRequest},"get")}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:q(function(){return g.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:q(function(){return g.SemanticTokensRangeRequest},"get")}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:q(function(){return g.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:q(function(){return g.SemanticTokensRegistrationType},"get")});var m=M5r();Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:q(function(){return m.ShowDocumentRequest},"get")});var _=L5r();Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:q(function(){return _.LinkedEditingRangeRequest},"get")});var v=P5r();Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:q(function(){return v.FileOperationPatternKind},"get")}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:q(function(){return v.DidCreateFilesNotification},"get")}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:q(function(){return v.WillCreateFilesRequest},"get")}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:q(function(){return v.DidRenameFilesNotification},"get")}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:q(function(){return v.WillRenameFilesRequest},"get")}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:q(function(){return v.DidDeleteFilesNotification},"get")}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:q(function(){return v.WillDeleteFilesRequest},"get")});var y=F5r();Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:q(function(){return y.UniquenessLevel},"get")}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:q(function(){return y.MonikerKind},"get")}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:q(function(){return y.MonikerRequest},"get")});var b=B5r();Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:q(function(){return b.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:q(function(){return b.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:q(function(){return b.TypeHierarchySupertypesRequest},"get")});var E=U5r();Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:q(function(){return E.InlineValueRequest},"get")}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:q(function(){return E.InlineValueRefreshRequest},"get")});var S=$5r();Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:q(function(){return S.InlayHintRequest},"get")}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:q(function(){return S.InlayHintResolveRequest},"get")}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:q(function(){return S.InlayHintRefreshRequest},"get")});var T=G5r();Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:q(function(){return T.DiagnosticServerCancellationData},"get")}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:q(function(){return T.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:q(function(){return T.DocumentDiagnosticRequest},"get")}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:q(function(){return T.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:q(function(){return T.DiagnosticRefreshRequest},"get")});var C=z5r();Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:q(function(){return C.NotebookCellKind},"get")}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:q(function(){return C.ExecutionSummary},"get")}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:q(function(){return C.NotebookCell},"get")}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:q(function(){return C.NotebookDocument},"get")}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:q(function(){return C.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:q(function(){return C.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:q(function(){return C.NotebookCellArrayChange},"get")}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:q(function(){return C.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:q(function(){return C.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:q(function(){return C.DidCloseNotebookDocumentNotification},"get")});var x=q5r();Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:q(function(){return x.InlineCompletionRequest},"get")});var A;(function(De){function pr(or){const ir=or;return n.string(ir)||n.string(ir.language)||n.string(ir.scheme)||n.string(ir.pattern)}q(pr,"is"),De.is=pr})(A||(t.TextDocumentFilter=A={}));var R;(function(De){function pr(or){const ir=or;return n.objectLiteral(ir)&&(n.string(ir.notebookType)||n.string(ir.scheme)||n.string(ir.pattern))}q(pr,"is"),De.is=pr})(R||(t.NotebookDocumentFilter=R={}));var I;(function(De){function pr(or){const ir=or;return n.objectLiteral(ir)&&(n.string(ir.notebook)||R.is(ir.notebook))&&(ir.language===void 0||n.string(ir.language))}q(pr,"is"),De.is=pr})(I||(t.NotebookCellTextDocumentFilter=I={}));var L;(function(De){function pr(or){if(!Array.isArray(or))return!1;for(let ir of or)if(!n.string(ir)&&!A.is(ir)&&!I.is(ir))return!1;return!0}q(pr,"is"),De.is=pr})(L||(t.DocumentSelector=L={}));var F;(function(De){De.method="client/registerCapability",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolRequestType(De.method)})(F||(t.RegistrationRequest=F={}));var O;(function(De){De.method="client/unregisterCapability",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolRequestType(De.method)})(O||(t.UnregistrationRequest=O={}));var D;(function(De){De.Create="create",De.Rename="rename",De.Delete="delete"})(D||(t.ResourceOperationKind=D={}));var M;(function(De){De.Abort="abort",De.Transactional="transactional",De.TextOnlyTransactional="textOnlyTransactional",De.Undo="undo"})(M||(t.FailureHandlingKind=M={}));var P;(function(De){De.UTF8="utf-8",De.UTF16="utf-16",De.UTF32="utf-32"})(P||(t.PositionEncodingKind=P={}));var N;(function(De){function pr(or){const ir=or;return ir&&n.string(ir.id)&&ir.id.length>0}q(pr,"hasId"),De.hasId=pr})(N||(t.StaticRegistrationOptions=N={}));var $;(function(De){function pr(or){const ir=or;return ir&&(ir.documentSelector===null||L.is(ir.documentSelector))}q(pr,"is"),De.is=pr})($||(t.TextDocumentRegistrationOptions=$={}));var U;(function(De){function pr(ir){const gr=ir;return n.objectLiteral(gr)&&(gr.workDoneProgress===void 0||n.boolean(gr.workDoneProgress))}q(pr,"is"),De.is=pr;function or(ir){const gr=ir;return gr&&n.boolean(gr.workDoneProgress)}q(or,"hasWorkDoneProgress"),De.hasWorkDoneProgress=or})(U||(t.WorkDoneProgressOptions=U={}));var B;(function(De){De.method="initialize",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(B||(t.InitializeRequest=B={}));var V;(function(De){De.unknownProtocolVersion=1})(V||(t.InitializeErrorCodes=V={}));var z;(function(De){De.method="initialized",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(z||(t.InitializedNotification=z={}));var G;(function(De){De.method="shutdown",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType0(De.method)})(G||(t.ShutdownRequest=G={}));var Y;(function(De){De.method="exit",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType0(De.method)})(Y||(t.ExitNotification=Y={}));var W;(function(De){De.method="workspace/didChangeConfiguration",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(W||(t.DidChangeConfigurationNotification=W={}));var Q;(function(De){De.Error=1,De.Warning=2,De.Info=3,De.Log=4,De.Debug=5})(Q||(t.MessageType=Q={}));var ie;(function(De){De.method="window/showMessage",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolNotificationType(De.method)})(ie||(t.ShowMessageNotification=ie={}));var Z;(function(De){De.method="window/showMessageRequest",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolRequestType(De.method)})(Z||(t.ShowMessageRequest=Z={}));var re;(function(De){De.method="window/logMessage",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolNotificationType(De.method)})(re||(t.LogMessageNotification=re={}));var K;(function(De){De.method="telemetry/event",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolNotificationType(De.method)})(K||(t.TelemetryEventNotification=K={}));var j;(function(De){De.None=0,De.Full=1,De.Incremental=2})(j||(t.TextDocumentSyncKind=j={}));var se;(function(De){De.method="textDocument/didOpen",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(se||(t.DidOpenTextDocumentNotification=se={}));var le;(function(De){function pr(ir){let gr=ir;return gr!=null&&typeof gr.text=="string"&&gr.range!==void 0&&(gr.rangeLength===void 0||typeof gr.rangeLength=="number")}q(pr,"isIncremental"),De.isIncremental=pr;function or(ir){let gr=ir;return gr!=null&&typeof gr.text=="string"&&gr.range===void 0&&gr.rangeLength===void 0}q(or,"isFull"),De.isFull=or})(le||(t.TextDocumentContentChangeEvent=le={}));var _e;(function(De){De.method="textDocument/didChange",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(_e||(t.DidChangeTextDocumentNotification=_e={}));var ye;(function(De){De.method="textDocument/didClose",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(ye||(t.DidCloseTextDocumentNotification=ye={}));var Ue;(function(De){De.method="textDocument/didSave",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(Ue||(t.DidSaveTextDocumentNotification=Ue={}));var Se;(function(De){De.Manual=1,De.AfterDelay=2,De.FocusOut=3})(Se||(t.TextDocumentSaveReason=Se={}));var be;(function(De){De.method="textDocument/willSave",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(be||(t.WillSaveTextDocumentNotification=be={}));var ke;(function(De){De.method="textDocument/willSaveWaitUntil",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(ke||(t.WillSaveTextDocumentWaitUntilRequest=ke={}));var Ae;(function(De){De.method="workspace/didChangeWatchedFiles",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolNotificationType(De.method)})(Ae||(t.DidChangeWatchedFilesNotification=Ae={}));var tt;(function(De){De.Created=1,De.Changed=2,De.Deleted=3})(tt||(t.FileChangeType=tt={}));var Oe;(function(De){function pr(or){const ir=or;return n.objectLiteral(ir)&&(r.URI.is(ir.baseUri)||r.WorkspaceFolder.is(ir.baseUri))&&n.string(ir.pattern)}q(pr,"is"),De.is=pr})(Oe||(t.RelativePattern=Oe={}));var je;(function(De){De.Create=1,De.Change=2,De.Delete=4})(je||(t.WatchKind=je={}));var ct;(function(De){De.method="textDocument/publishDiagnostics",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolNotificationType(De.method)})(ct||(t.PublishDiagnosticsNotification=ct={}));var Fe;(function(De){De.Invoked=1,De.TriggerCharacter=2,De.TriggerForIncompleteCompletions=3})(Fe||(t.CompletionTriggerKind=Fe={}));var Xe;(function(De){De.method="textDocument/completion",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Xe||(t.CompletionRequest=Xe={}));var et;(function(De){De.method="completionItem/resolve",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(et||(t.CompletionResolveRequest=et={}));var Ie;(function(De){De.method="textDocument/hover",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Ie||(t.HoverRequest=Ie={}));var we;(function(De){De.Invoked=1,De.TriggerCharacter=2,De.ContentChange=3})(we||(t.SignatureHelpTriggerKind=we={}));var ce;(function(De){De.method="textDocument/signatureHelp",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(ce||(t.SignatureHelpRequest=ce={}));var Te;(function(De){De.method="textDocument/definition",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Te||(t.DefinitionRequest=Te={}));var fe;(function(De){De.method="textDocument/references",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(fe||(t.ReferencesRequest=fe={}));var Be;(function(De){De.method="textDocument/documentHighlight",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Be||(t.DocumentHighlightRequest=Be={}));var me;(function(De){De.method="textDocument/documentSymbol",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(me||(t.DocumentSymbolRequest=me={}));var Ye;(function(De){De.method="textDocument/codeAction",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Ye||(t.CodeActionRequest=Ye={}));var qe;(function(De){De.method="codeAction/resolve",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(qe||(t.CodeActionResolveRequest=qe={}));var lt;(function(De){De.method="workspace/symbol",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(lt||(t.WorkspaceSymbolRequest=lt={}));var it;(function(De){De.method="workspaceSymbol/resolve",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(it||(t.WorkspaceSymbolResolveRequest=it={}));var He;(function(De){De.method="textDocument/codeLens",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(He||(t.CodeLensRequest=He={}));var Je;(function(De){De.method="codeLens/resolve",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Je||(t.CodeLensResolveRequest=Je={}));var ht;(function(De){De.method="workspace/codeLens/refresh",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolRequestType0(De.method)})(ht||(t.CodeLensRefreshRequest=ht={}));var rt;(function(De){De.method="textDocument/documentLink",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(rt||(t.DocumentLinkRequest=rt={}));var $e;(function(De){De.method="documentLink/resolve",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})($e||(t.DocumentLinkResolveRequest=$e={}));var xe;(function(De){De.method="textDocument/formatting",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(xe||(t.DocumentFormattingRequest=xe={}));var pt;(function(De){De.method="textDocument/rangeFormatting",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(pt||(t.DocumentRangeFormattingRequest=pt={}));var Ve;(function(De){De.method="textDocument/rangesFormatting",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Ve||(t.DocumentRangesFormattingRequest=Ve={}));var Ut;(function(De){De.method="textDocument/onTypeFormatting",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Ut||(t.DocumentOnTypeFormattingRequest=Ut={}));var kt;(function(De){De.Identifier=1})(kt||(t.PrepareSupportDefaultBehavior=kt={}));var gt;(function(De){De.method="textDocument/rename",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(gt||(t.RenameRequest=gt={}));var Ct;(function(De){De.method="textDocument/prepareRename",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(Ct||(t.PrepareRenameRequest=Ct={}));var mt;(function(De){De.method="workspace/executeCommand",De.messageDirection=e.MessageDirection.clientToServer,De.type=new e.ProtocolRequestType(De.method)})(mt||(t.ExecuteCommandRequest=mt={}));var qt;(function(De){De.method="workspace/applyEdit",De.messageDirection=e.MessageDirection.serverToClient,De.type=new e.ProtocolRequestType("workspace/applyEdit")})(qt||(t.ApplyWorkspaceEditRequest=qt={}))}}),H5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var e=GR();function r(n,i,a,s){return e.ConnectionStrategy.is(s)&&(s={connectionStrategy:s}),(0,e.createMessageConnection)(n,i,a,s)}q(r,"createProtocolConnection"),t.createProtocolConnection=r}}),Y5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(t){var e=t&&t.__createBinding||(Object.create?(function(a,s,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:q(function(){return s[o]},"get")}),Object.defineProperty(a,l,u)}):(function(a,s,o,l){l===void 0&&(l=o),a[l]=s[o]})),r=t&&t.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(GR(),t),r((dD(),_de(M$)),t),r(Js(),t),r(V5r(),t);var n=H5r();Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:q(function(){return n.createProtocolConnection},"get")});var i;(function(a){a.lspReservedErrorRangeStart=-32899,a.RequestFailed=-32803,a.ServerCancelled=-32802,a.ContentModified=-32801,a.RequestCancelled=-32800,a.lspReservedErrorRangeEnd=-32800})(i||(t.LSPErrorCodes=i={}))}}),W5r=vi({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(t){var e=t&&t.__createBinding||(Object.create?(function(a,s,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:q(function(){return s[o]},"get")}),Object.defineProperty(a,l,u)}):(function(a,s,o,l){l===void 0&&(l=o),a[l]=s[o]})),r=t&&t.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var n=rOe();r(rOe(),t),r(Y5r(),t);function i(a,s,o,l){return(0,n.createMessageConnection)(a,s,o,l)}q(i,"createProtocolConnection"),t.createProtocolConnection=i}}),NHe={};ev(NHe,{AbstractAstReflection:()=>Ede,AbstractCstNode:()=>Tfe,AbstractLangiumParser:()=>wfe,AbstractParserErrorMessageProvider:()=>Ett,AbstractThreadedAsyncParser:()=>_Ur,AstUtils:()=>Sde,BiMap:()=>fF,Cancellation:()=>ss,CompositeCstNodeImpl:()=>NG,ContextCache:()=>BG,CstNodeBuilder:()=>vtt,CstUtils:()=>yde,DEFAULT_TOKENIZE_OPTIONS:()=>qfe,DONE_RESULT:()=>eu,DatatypeSymbol:()=>cF,DefaultAstNodeDescriptionProvider:()=>Qtt,DefaultAstNodeLocator:()=>Jtt,DefaultAsyncParser:()=>_rt,DefaultCommentProvider:()=>mrt,DefaultConfigurationProvider:()=>ert,DefaultDocumentBuilder:()=>trt,DefaultDocumentValidator:()=>Xtt,DefaultHydrator:()=>yrt,DefaultIndexManager:()=>rrt,DefaultJsonSerializer:()=>Ytt,DefaultLangiumDocumentFactory:()=>Ftt,DefaultLangiumDocuments:()=>Btt,DefaultLangiumProfiler:()=>SUr,DefaultLexer:()=>Vfe,DefaultLexerErrorMessageProvider:()=>irt,DefaultLinker:()=>Utt,DefaultNameProvider:()=>$tt,DefaultReferenceDescriptionProvider:()=>Ztt,DefaultReferences:()=>Gtt,DefaultScopeComputation:()=>ztt,DefaultScopeProvider:()=>Htt,DefaultServiceRegistry:()=>Wtt,DefaultTokenBuilder:()=>MG,DefaultValueConverter:()=>kfe,DefaultWorkspaceLock:()=>vrt,DefaultWorkspaceManager:()=>nrt,Deferred:()=>S0,Disposable:()=>cb,DisposableCache:()=>FG,DocumentCache:()=>Vtt,DocumentState:()=>Ui,DocumentValidator:()=>xh,EMPTY_SCOPE:()=>fUr,EMPTY_STREAM:()=>kA,EmptyFileSystem:()=>tf,EmptyFileSystemProvider:()=>Srt,ErrorWithLocation:()=>V$,GrammarAST:()=>MHe,GrammarUtils:()=>Zde,IndentationAwareLexer:()=>yUr,IndentationAwareTokenBuilder:()=>Ert,JSDocDocumentationProvider:()=>grt,LangiumCompletionParser:()=>Stt,LangiumParser:()=>btt,LangiumParserErrorMessageProvider:()=>xfe,LeafCstNodeImpl:()=>lF,LexingMode:()=>qy,MapScope:()=>hUr,Module:()=>lne,MultiMap:()=>T0,MultiMapScope:()=>qtt,OperationCancelled:()=>Zp,ParserWorker:()=>vUr,ProfilingTask:()=>Crt,Reduction:()=>c3,RefResolving:()=>Jv,RegExpUtils:()=>ehe,RootCstNodeImpl:()=>Cfe,SimpleCache:()=>Bfe,StreamImpl:()=>Qp,StreamScope:()=>ine,TextDocument:()=>dF,TreeStreamImpl:()=>DA,URI:()=>Gd,UriTrie:()=>Pfe,UriUtils:()=>lu,VALIDATE_EACH_NODE:()=>jtt,ValidationCategory:()=>pF,ValidationRegistry:()=>Ktt,ValueConverter:()=>Fp,WorkspaceCache:()=>Ufe,assertCondition:()=>Jde,assertUnreachable:()=>tv,createCompletionParser:()=>Ofe,createDefaultCoreModule:()=>ih,createDefaultSharedCoreModule:()=>ah,createGrammarConfig:()=>vhe,createLangiumParser:()=>Ife,createParser:()=>kG,delayNextTick:()=>LG,diagnosticData:()=>zy,eagerLoad:()=>Qfe,getDiagnosticRange:()=>Gfe,indentationBuilderDefaultOptions:()=>une,inject:()=>Ds,interruptAndCheck:()=>Cl,isAstNode:()=>zo,isAstNodeDescription:()=>bde,isAstNodeWithComment:()=>$fe,isCompositeCstNode:()=>p0,isIMultiModeLexerDefinition:()=>GG,isJSDoc:()=>Yfe,isLeafCstNode:()=>xE,isLinkingError:()=>uy,isMultiReference:()=>sg,isNamed:()=>Ffe,isOperationCancelled:()=>HE,isReference:()=>ou,isRootCstNode:()=>P$,isTokenTypeArray:()=>$G,isTokenTypeDictionary:()=>gF,loadGrammarFromJson:()=>sh,parseJSDoc:()=>Hfe,prepareLangiumParser:()=>Nfe,setInterruptionPeriod:()=>Dfe,startCancelableOperation:()=>PG,stream:()=>Ga,toDiagnosticData:()=>zfe,toDiagnosticSeverity:()=>zN});var yde={};ev(yde,{DefaultNameRegexp:()=>Wde,RangeComparison:()=>Gp,compareRange:()=>Hde,findCommentNode:()=>Kde,findDeclarationNodeAtOffset:()=>JHe,findLeafNodeAtOffset:()=>q$,findLeafNodeBeforeOffset:()=>jde,flattenCst:()=>ZHe,getDatatypeNode:()=>QHe,getInteriorNodes:()=>rYe,getNextNode:()=>eYe,getPreviousNode:()=>Qde,getStartlineNode:()=>tYe,inRange:()=>Yde,isChildNode:()=>Vde,isCommentNode:()=>Y8,streamCst:()=>FA,toDocumentSegment:()=>BA,tokenToRange:()=>u3});function zo(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}q(zo,"isAstNode");function ou(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}q(ou,"isReference");function sg(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}q(sg,"isMultiReference");function bde(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}q(bde,"isAstNodeDescription");function uy(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}q(uy,"isLinkingError");var MC,Ede=(MC=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const r=this.types[e.container.$type];if(!r)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const n=r.properties[e.property]?.referenceType;if(!n)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){const r=this.types[e];return r||{name:e,properties:{},superTypes:[]}}isInstance(e,r){return zo(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});const i=n[r];if(i!==void 0)return i;{const a=this.types[e],s=a?a.superTypes.some(o=>this.isSubtype(o,r)):!1;return n[r]=s,s}}getAllSubTypes(e){const r=this.allSubtypes[e];if(r)return r;{const n=this.getAllTypes(),i=[];for(const a of n)this.isSubtype(a,e)&&i.push(a);return this.allSubtypes[e]=i,i}}},q(MC,"AbstractAstReflection"),MC);function p0(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}q(p0,"isCompositeCstNode");function xE(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}q(xE,"isLeafCstNode");function P$(t){return p0(t)&&typeof t.fullText=="string"}q(P$,"isRootCstNode");var $u,Qp=($u=class{constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){const e={state:this.startFn(),next:q(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){const e=[],r=this.iterator();let n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){const n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){return new $u(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return eu})}join(e=","){const r=this.iterator();let n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=e),n+=kHe(i.value)),a=!0;while(!i.done);return n}indexOf(e,r=0){const n=this.iterator();let i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===e)return i;a=n.next(),i++}return-1}every(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){const r=this.iterator();let n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new $u(this.startFn,r=>{const{done:n,value:i}=this.nextFn(r);return n?eu:{done:!1,value:e(i)}})}filter(e){return new $u(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return eu})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){const n=this.iterator();let i=r,a=n.next();for(;!a.done;)i===void 0?i=a.value:i=e(i,a.value),a=n.next();return i}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){const i=e.next();if(i.done)return n;const a=this.recursiveReduce(e,r,n);return a===void 0?i.value:r(a,i.value)}find(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){const r=this.iterator();let n=0,i=r.next();for(;!i.done;){if(e(i.value))return n;i=r.next(),n++}return-1}includes(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new $u(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:n,value:i}=this.nextFn(r.this);if(!n){const a=e(i);if(l3(a))r.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}}while(r.iterator);return eu})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const r=e>1?this.flat(e-1):this;return new $u(()=>({this:r.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:i,value:a}=r.nextFn(n.this);if(!i)if(l3(a))n.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}while(n.iterator);return eu})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new $u(()=>{const r=this.startFn();for(let n=0;n<e;n++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(e){return new $u(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?eu:this.nextFn(r.state)))}distinct(e){return new $u(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const i=e?e(n.value):n.value;if(!r.set.has(i))return r.set.add(i),n}while(!n.done);return eu})}exclude(e,r){const n=new Set;for(const i of e){const a=r?r(i):i;n.add(a)}return this.filter(i=>{const a=r?r(i):i;return!n.has(a)})}},q($u,"StreamImpl"),$u);function kHe(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}q(kHe,"toString");function l3(t){return!!t&&typeof t[Symbol.iterator]=="function"}q(l3,"isIterable");var kA=new Qp(()=>{},()=>eu),eu=Object.freeze({done:!0,value:void 0});function Ga(...t){if(t.length===1){const e=t[0];if(e instanceof Qp)return e;if(l3(e))return new Qp(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new Qp(()=>({index:0}),r=>r.index<e.length?{done:!1,value:e[r.index++]}:eu)}return t.length>1?new Qp(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){const r=t[e.collIndex++];l3(r)?e.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(e.array=r)}}while(e.iterator||e.array||e.collIndex<t.length);return eu}):kA}q(Ga,"stream");var LC,DA=(LC=class extends Qp{constructor(e,r,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(r(s.value)[Symbol.iterator]()),s}return eu})}iterator(){const e={state:this.startFn(),next:q(()=>this.nextFn(e.state),"next"),prune:q(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},q(LC,"TreeStreamImpl"),LC),c3;(function(t){function e(a){return a.reduce((s,o)=>s+o,0)}q(e,"sum"),t.sum=e;function r(a){return a.reduce((s,o)=>s*o,0)}q(r,"product"),t.product=r;function n(a){return a.reduce((s,o)=>Math.min(s,o))}q(n,"min"),t.min=n;function i(a){return a.reduce((s,o)=>Math.max(s,o))}q(i,"max"),t.max=i})(c3||(c3={}));var Sde={};ev(Sde,{assignMandatoryProperties:()=>Tde,copyAstNode:()=>k8,findRootNode:()=>sC,getContainerOfType:()=>AE,getDocument:()=>zf,getReferenceNodes:()=>I8,hasContainerOfType:()=>DHe,linkContentToContainer:()=>MA,streamAllContents:()=>V0,streamAst:()=>qf,streamContents:()=>fD,streamReferences:()=>LA});function MA(t,e={}){for(const[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((i,a)=>{zo(i)&&(i.$container=t,i.$containerProperty=r,i.$containerIndex=a,e.deep&&MA(i,e))}):zo(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&MA(n,e)))}q(MA,"linkContentToContainer");function AE(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}q(AE,"getContainerOfType");function DHe(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}q(DHe,"hasContainerOfType");function zf(t){const r=sC(t).$document;if(!r)throw new Error("AST node has no document.");return r}q(zf,"getDocument");function sC(t){for(;t.$container;)t=t.$container;return t}q(sC,"findRootNode");function I8(t){return ou(t)?t.ref?[t.ref]:[]:sg(t)?t.items.map(e=>e.ref):[]}q(I8,"getReferenceNodes");function fD(t,e){if(!t)throw new Error("Node must be an AstNode.");const r=e?.range;return new Qp(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndex<n.keys.length;){const i=n.keys[n.keyIndex];if(!i.startsWith("$")){const a=t[i];if(zo(a)){if(n.keyIndex++,N8(a,r))return{done:!1,value:a}}else if(Array.isArray(a)){for(;n.arrayIndex<a.length;){const s=n.arrayIndex++,o=a[s];if(zo(o)&&N8(o,r))return{done:!1,value:o}}n.arrayIndex=0}}n.keyIndex++}return eu})}q(fD,"streamContents");function V0(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new DA(t,r=>fD(r,e))}q(V0,"streamAllContents");function qf(t,e){if(t){if(e?.range&&!N8(t,e.range))return new DA(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new DA(t,r=>fD(r,e),{includeRoot:!0})}q(qf,"streamAst");function N8(t,e){if(!e)return!0;const r=t.$cstNode?.range;return r?Yde(r,e):!1}q(N8,"isAstNodeInRange");function LA(t){return new Qp(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const r=e.keys[e.keyIndex];if(!r.startsWith("$")){const n=t[r];if(ou(n)||sg(n))return e.keyIndex++,{done:!1,value:{reference:n,container:t,property:r}};if(Array.isArray(n)){for(;e.arrayIndex<n.length;){const i=e.arrayIndex++,a=n[i];if(ou(a)||sg(n))return{done:!1,value:{reference:a,container:t,property:r,index:i}}}e.arrayIndex=0}}e.keyIndex++}return eu})}q(LA,"streamReferences");function Tde(t,e){const r=t.getTypeMetaData(e.$type),n=e;for(const i of Object.values(r.properties))i.defaultValue!==void 0&&n[i.name]===void 0&&(n[i.name]=Cde(i.defaultValue))}q(Tde,"assignMandatoryProperties");function Cde(t){return Array.isArray(t)?[...t.map(Cde)]:t}q(Cde,"copyDefaultValue");function k8(t,e,r){const n={$type:t.$type};r&&(r.set(t,n),r.set(n,t));for(const[i,a]of Object.entries(t))if(!i.startsWith("$"))if(zo(a))n[i]=k8(a,e,r);else if(ou(a))n[i]=e(n,i,a.$refNode,a.$refText,a);else if(Array.isArray(a)){const s=[];for(const o of a)zo(o)?s.push(k8(o,e,r)):ou(o)?s.push(e(n,i,o.$refNode,o.$refText,o)):s.push(o);n[i]=s}else n[i]=a;return MA(n,{deep:!0}),n}q(k8,"copyAstNode");var MHe={};ev(MHe,{AbstractElement:()=>Pu,AbstractParserRule:()=>RN,AbstractRule:()=>TT,AbstractType:()=>Sd,Action:()=>b_,Alternatives:()=>ON,ArrayLiteral:()=>D8,ArrayType:()=>M8,Assignment:()=>E_,BooleanLiteral:()=>L8,CharacterRange:()=>S_,Condition:()=>T_,Conjunction:()=>IN,CrossReference:()=>C_,Disjunction:()=>NN,EndOfFile:()=>P8,Grammar:()=>vm,GrammarImport:()=>F8,Group:()=>dy,InferredType:()=>B8,InfixRule:()=>Np,InfixRuleOperatorList:()=>kN,InfixRuleOperators:()=>U8,Interface:()=>CT,Keyword:()=>wT,LangiumGrammarAstReflection:()=>qde,LangiumGrammarTerminals:()=>K5r,NamedArgument:()=>xT,NegatedToken:()=>hy,Negation:()=>$8,NumberLiteral:()=>G8,Parameter:()=>AT,ParameterReference:()=>z8,ParserRule:()=>cf,ReferenceType:()=>DN,RegexToken:()=>fy,ReturnType:()=>q8,RuleCall:()=>py,SimpleType:()=>RT,StringLiteral:()=>V8,TerminalAlternatives:()=>gy,TerminalElement:()=>Fu,TerminalGroup:()=>my,TerminalRule:()=>ym,TerminalRuleCall:()=>_y,Type:()=>MN,TypeAttribute:()=>vy,TypeDefinition:()=>yy,UnionType:()=>H8,UnorderedGroup:()=>LN,UntilToken:()=>by,ValueLiteral:()=>Ey,Wildcard:()=>OT,isAbstractElement:()=>F$,isAbstractParserRule:()=>RE,isAbstractRule:()=>LHe,isAbstractType:()=>PHe,isAction:()=>A1,isAlternatives:()=>B$,isArrayLiteral:()=>FHe,isArrayType:()=>wde,isAssignment:()=>g0,isBooleanLiteral:()=>xde,isCharacterRange:()=>Ade,isCondition:()=>BHe,isConjunction:()=>Rde,isCrossReference:()=>OE,isDisjunction:()=>Ode,isEndOfFile:()=>Ide,isGrammar:()=>UHe,isGrammarImport:()=>$He,isGroup:()=>IE,isInferredType:()=>pD,isInfixRule:()=>PA,isInfixRuleOperatorList:()=>GHe,isInfixRuleOperators:()=>zHe,isInterface:()=>Nde,isKeyword:()=>m0,isNamedArgument:()=>qHe,isNegatedToken:()=>kde,isNegation:()=>Dde,isNumberLiteral:()=>VHe,isParameter:()=>HHe,isParameterReference:()=>Mde,isParserRule:()=>bu,isReferenceType:()=>Lde,isRegexToken:()=>Pde,isReturnType:()=>Fde,isRuleCall:()=>_0,isSimpleType:()=>U$,isStringLiteral:()=>YHe,isTerminalAlternatives:()=>Bde,isTerminalElement:()=>WHe,isTerminalGroup:()=>Ude,isTerminalRule:()=>Jh,isTerminalRuleCall:()=>$$,isType:()=>G$,isTypeAttribute:()=>KHe,isTypeDefinition:()=>jHe,isUnionType:()=>$de,isUnorderedGroup:()=>z$,isUntilToken:()=>Gde,isValueLiteral:()=>XHe,isWildcard:()=>zde,reflection:()=>Kn});var K5r={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},Pu={$type:"AbstractElement",cardinality:"cardinality"};function F$(t){return Kn.isInstance(t,Pu.$type)}q(F$,"isAbstractElement");var RN={$type:"AbstractParserRule"};function RE(t){return Kn.isInstance(t,RN.$type)}q(RE,"isAbstractParserRule");var TT={$type:"AbstractRule"};function LHe(t){return Kn.isInstance(t,TT.$type)}q(LHe,"isAbstractRule");var Sd={$type:"AbstractType"};function PHe(t){return Kn.isInstance(t,Sd.$type)}q(PHe,"isAbstractType");var b_={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function A1(t){return Kn.isInstance(t,b_.$type)}q(A1,"isAction");var ON={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function B$(t){return Kn.isInstance(t,ON.$type)}q(B$,"isAlternatives");var D8={$type:"ArrayLiteral",elements:"elements"};function FHe(t){return Kn.isInstance(t,D8.$type)}q(FHe,"isArrayLiteral");var M8={$type:"ArrayType",elementType:"elementType"};function wde(t){return Kn.isInstance(t,M8.$type)}q(wde,"isArrayType");var E_={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function g0(t){return Kn.isInstance(t,E_.$type)}q(g0,"isAssignment");var L8={$type:"BooleanLiteral",true:"true"};function xde(t){return Kn.isInstance(t,L8.$type)}q(xde,"isBooleanLiteral");var S_={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function Ade(t){return Kn.isInstance(t,S_.$type)}q(Ade,"isCharacterRange");var T_={$type:"Condition"};function BHe(t){return Kn.isInstance(t,T_.$type)}q(BHe,"isCondition");var IN={$type:"Conjunction",left:"left",right:"right"};function Rde(t){return Kn.isInstance(t,IN.$type)}q(Rde,"isConjunction");var C_={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function OE(t){return Kn.isInstance(t,C_.$type)}q(OE,"isCrossReference");var NN={$type:"Disjunction",left:"left",right:"right"};function Ode(t){return Kn.isInstance(t,NN.$type)}q(Ode,"isDisjunction");var P8={$type:"EndOfFile",cardinality:"cardinality"};function Ide(t){return Kn.isInstance(t,P8.$type)}q(Ide,"isEndOfFile");var vm={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function UHe(t){return Kn.isInstance(t,vm.$type)}q(UHe,"isGrammar");var F8={$type:"GrammarImport",path:"path"};function $He(t){return Kn.isInstance(t,F8.$type)}q($He,"isGrammarImport");var dy={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function IE(t){return Kn.isInstance(t,dy.$type)}q(IE,"isGroup");var B8={$type:"InferredType",name:"name"};function pD(t){return Kn.isInstance(t,B8.$type)}q(pD,"isInferredType");var Np={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function PA(t){return Kn.isInstance(t,Np.$type)}q(PA,"isInfixRule");var kN={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function GHe(t){return Kn.isInstance(t,kN.$type)}q(GHe,"isInfixRuleOperatorList");var U8={$type:"InfixRuleOperators",precedences:"precedences"};function zHe(t){return Kn.isInstance(t,U8.$type)}q(zHe,"isInfixRuleOperators");var CT={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function Nde(t){return Kn.isInstance(t,CT.$type)}q(Nde,"isInterface");var wT={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function m0(t){return Kn.isInstance(t,wT.$type)}q(m0,"isKeyword");var xT={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function qHe(t){return Kn.isInstance(t,xT.$type)}q(qHe,"isNamedArgument");var hy={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function kde(t){return Kn.isInstance(t,hy.$type)}q(kde,"isNegatedToken");var $8={$type:"Negation",value:"value"};function Dde(t){return Kn.isInstance(t,$8.$type)}q(Dde,"isNegation");var G8={$type:"NumberLiteral",value:"value"};function VHe(t){return Kn.isInstance(t,G8.$type)}q(VHe,"isNumberLiteral");var AT={$type:"Parameter",name:"name"};function HHe(t){return Kn.isInstance(t,AT.$type)}q(HHe,"isParameter");var z8={$type:"ParameterReference",parameter:"parameter"};function Mde(t){return Kn.isInstance(t,z8.$type)}q(Mde,"isParameterReference");var cf={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function bu(t){return Kn.isInstance(t,cf.$type)}q(bu,"isParserRule");var DN={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function Lde(t){return Kn.isInstance(t,DN.$type)}q(Lde,"isReferenceType");var fy={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function Pde(t){return Kn.isInstance(t,fy.$type)}q(Pde,"isRegexToken");var q8={$type:"ReturnType",name:"name"};function Fde(t){return Kn.isInstance(t,q8.$type)}q(Fde,"isReturnType");var py={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function _0(t){return Kn.isInstance(t,py.$type)}q(_0,"isRuleCall");var RT={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function U$(t){return Kn.isInstance(t,RT.$type)}q(U$,"isSimpleType");var V8={$type:"StringLiteral",value:"value"};function YHe(t){return Kn.isInstance(t,V8.$type)}q(YHe,"isStringLiteral");var gy={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Bde(t){return Kn.isInstance(t,gy.$type)}q(Bde,"isTerminalAlternatives");var Fu={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function WHe(t){return Kn.isInstance(t,Fu.$type)}q(WHe,"isTerminalElement");var my={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Ude(t){return Kn.isInstance(t,my.$type)}q(Ude,"isTerminalGroup");var ym={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function Jh(t){return Kn.isInstance(t,ym.$type)}q(Jh,"isTerminalRule");var _y={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function $$(t){return Kn.isInstance(t,_y.$type)}q($$,"isTerminalRuleCall");var MN={$type:"Type",name:"name",type:"type"};function G$(t){return Kn.isInstance(t,MN.$type)}q(G$,"isType");var vy={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function KHe(t){return Kn.isInstance(t,vy.$type)}q(KHe,"isTypeAttribute");var yy={$type:"TypeDefinition"};function jHe(t){return Kn.isInstance(t,yy.$type)}q(jHe,"isTypeDefinition");var H8={$type:"UnionType",types:"types"};function $de(t){return Kn.isInstance(t,H8.$type)}q($de,"isUnionType");var LN={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function z$(t){return Kn.isInstance(t,LN.$type)}q(z$,"isUnorderedGroup");var by={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Gde(t){return Kn.isInstance(t,by.$type)}q(Gde,"isUntilToken");var Ey={$type:"ValueLiteral"};function XHe(t){return Kn.isInstance(t,Ey.$type)}q(XHe,"isValueLiteral");var OT={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function zde(t){return Kn.isInstance(t,OT.$type)}q(zde,"isWildcard");var PC,qde=(PC=class extends Ede{constructor(){super(...arguments),this.types={AbstractElement:{name:Pu.$type,properties:{cardinality:{name:Pu.cardinality}},superTypes:[]},AbstractParserRule:{name:RN.$type,properties:{},superTypes:[TT.$type,Sd.$type]},AbstractRule:{name:TT.$type,properties:{},superTypes:[]},AbstractType:{name:Sd.$type,properties:{},superTypes:[]},Action:{name:b_.$type,properties:{cardinality:{name:b_.cardinality},feature:{name:b_.feature},inferredType:{name:b_.inferredType},operator:{name:b_.operator},type:{name:b_.type,referenceType:Sd.$type}},superTypes:[Pu.$type]},Alternatives:{name:ON.$type,properties:{cardinality:{name:ON.cardinality},elements:{name:ON.elements,defaultValue:[]}},superTypes:[Pu.$type]},ArrayLiteral:{name:D8.$type,properties:{elements:{name:D8.elements,defaultValue:[]}},superTypes:[Ey.$type]},ArrayType:{name:M8.$type,properties:{elementType:{name:M8.elementType}},superTypes:[yy.$type]},Assignment:{name:E_.$type,properties:{cardinality:{name:E_.cardinality},feature:{name:E_.feature},operator:{name:E_.operator},predicate:{name:E_.predicate},terminal:{name:E_.terminal}},superTypes:[Pu.$type]},BooleanLiteral:{name:L8.$type,properties:{true:{name:L8.true,defaultValue:!1}},superTypes:[T_.$type,Ey.$type]},CharacterRange:{name:S_.$type,properties:{cardinality:{name:S_.cardinality},left:{name:S_.left},lookahead:{name:S_.lookahead},parenthesized:{name:S_.parenthesized,defaultValue:!1},right:{name:S_.right}},superTypes:[Fu.$type]},Condition:{name:T_.$type,properties:{},superTypes:[]},Conjunction:{name:IN.$type,properties:{left:{name:IN.left},right:{name:IN.right}},superTypes:[T_.$type]},CrossReference:{name:C_.$type,properties:{cardinality:{name:C_.cardinality},deprecatedSyntax:{name:C_.deprecatedSyntax,defaultValue:!1},isMulti:{name:C_.isMulti,defaultValue:!1},terminal:{name:C_.terminal},type:{name:C_.type,referenceType:Sd.$type}},superTypes:[Pu.$type]},Disjunction:{name:NN.$type,properties:{left:{name:NN.left},right:{name:NN.right}},superTypes:[T_.$type]},EndOfFile:{name:P8.$type,properties:{cardinality:{name:P8.cardinality}},superTypes:[Pu.$type]},Grammar:{name:vm.$type,properties:{imports:{name:vm.imports,defaultValue:[]},interfaces:{name:vm.interfaces,defaultValue:[]},isDeclared:{name:vm.isDeclared,defaultValue:!1},name:{name:vm.name},rules:{name:vm.rules,defaultValue:[]},types:{name:vm.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:F8.$type,properties:{path:{name:F8.path}},superTypes:[]},Group:{name:dy.$type,properties:{cardinality:{name:dy.cardinality},elements:{name:dy.elements,defaultValue:[]},guardCondition:{name:dy.guardCondition},predicate:{name:dy.predicate}},superTypes:[Pu.$type]},InferredType:{name:B8.$type,properties:{name:{name:B8.name}},superTypes:[Sd.$type]},InfixRule:{name:Np.$type,properties:{call:{name:Np.call},dataType:{name:Np.dataType},inferredType:{name:Np.inferredType},name:{name:Np.name},operators:{name:Np.operators},parameters:{name:Np.parameters,defaultValue:[]},returnType:{name:Np.returnType,referenceType:Sd.$type}},superTypes:[RN.$type]},InfixRuleOperatorList:{name:kN.$type,properties:{associativity:{name:kN.associativity},operators:{name:kN.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:U8.$type,properties:{precedences:{name:U8.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:CT.$type,properties:{attributes:{name:CT.attributes,defaultValue:[]},name:{name:CT.name},superTypes:{name:CT.superTypes,defaultValue:[],referenceType:Sd.$type}},superTypes:[Sd.$type]},Keyword:{name:wT.$type,properties:{cardinality:{name:wT.cardinality},predicate:{name:wT.predicate},value:{name:wT.value}},superTypes:[Pu.$type]},NamedArgument:{name:xT.$type,properties:{calledByName:{name:xT.calledByName,defaultValue:!1},parameter:{name:xT.parameter,referenceType:AT.$type},value:{name:xT.value}},superTypes:[]},NegatedToken:{name:hy.$type,properties:{cardinality:{name:hy.cardinality},lookahead:{name:hy.lookahead},parenthesized:{name:hy.parenthesized,defaultValue:!1},terminal:{name:hy.terminal}},superTypes:[Fu.$type]},Negation:{name:$8.$type,properties:{value:{name:$8.value}},superTypes:[T_.$type]},NumberLiteral:{name:G8.$type,properties:{value:{name:G8.value}},superTypes:[Ey.$type]},Parameter:{name:AT.$type,properties:{name:{name:AT.name}},superTypes:[]},ParameterReference:{name:z8.$type,properties:{parameter:{name:z8.parameter,referenceType:AT.$type}},superTypes:[T_.$type]},ParserRule:{name:cf.$type,properties:{dataType:{name:cf.dataType},definition:{name:cf.definition},entry:{name:cf.entry,defaultValue:!1},fragment:{name:cf.fragment,defaultValue:!1},inferredType:{name:cf.inferredType},name:{name:cf.name},parameters:{name:cf.parameters,defaultValue:[]},returnType:{name:cf.returnType,referenceType:Sd.$type}},superTypes:[RN.$type]},ReferenceType:{name:DN.$type,properties:{isMulti:{name:DN.isMulti,defaultValue:!1},referenceType:{name:DN.referenceType}},superTypes:[yy.$type]},RegexToken:{name:fy.$type,properties:{cardinality:{name:fy.cardinality},lookahead:{name:fy.lookahead},parenthesized:{name:fy.parenthesized,defaultValue:!1},regex:{name:fy.regex}},superTypes:[Fu.$type]},ReturnType:{name:q8.$type,properties:{name:{name:q8.name}},superTypes:[]},RuleCall:{name:py.$type,properties:{arguments:{name:py.arguments,defaultValue:[]},cardinality:{name:py.cardinality},predicate:{name:py.predicate},rule:{name:py.rule,referenceType:TT.$type}},superTypes:[Pu.$type]},SimpleType:{name:RT.$type,properties:{primitiveType:{name:RT.primitiveType},stringType:{name:RT.stringType},typeRef:{name:RT.typeRef,referenceType:Sd.$type}},superTypes:[yy.$type]},StringLiteral:{name:V8.$type,properties:{value:{name:V8.value}},superTypes:[Ey.$type]},TerminalAlternatives:{name:gy.$type,properties:{cardinality:{name:gy.cardinality},elements:{name:gy.elements,defaultValue:[]},lookahead:{name:gy.lookahead},parenthesized:{name:gy.parenthesized,defaultValue:!1}},superTypes:[Fu.$type]},TerminalElement:{name:Fu.$type,properties:{cardinality:{name:Fu.cardinality},lookahead:{name:Fu.lookahead},parenthesized:{name:Fu.parenthesized,defaultValue:!1}},superTypes:[Pu.$type]},TerminalGroup:{name:my.$type,properties:{cardinality:{name:my.cardinality},elements:{name:my.elements,defaultValue:[]},lookahead:{name:my.lookahead},parenthesized:{name:my.parenthesized,defaultValue:!1}},superTypes:[Fu.$type]},TerminalRule:{name:ym.$type,properties:{definition:{name:ym.definition},fragment:{name:ym.fragment,defaultValue:!1},hidden:{name:ym.hidden,defaultValue:!1},name:{name:ym.name},type:{name:ym.type}},superTypes:[TT.$type]},TerminalRuleCall:{name:_y.$type,properties:{cardinality:{name:_y.cardinality},lookahead:{name:_y.lookahead},parenthesized:{name:_y.parenthesized,defaultValue:!1},rule:{name:_y.rule,referenceType:ym.$type}},superTypes:[Fu.$type]},Type:{name:MN.$type,properties:{name:{name:MN.name},type:{name:MN.type}},superTypes:[Sd.$type]},TypeAttribute:{name:vy.$type,properties:{defaultValue:{name:vy.defaultValue},isOptional:{name:vy.isOptional,defaultValue:!1},name:{name:vy.name},type:{name:vy.type}},superTypes:[]},TypeDefinition:{name:yy.$type,properties:{},superTypes:[]},UnionType:{name:H8.$type,properties:{types:{name:H8.types,defaultValue:[]}},superTypes:[yy.$type]},UnorderedGroup:{name:LN.$type,properties:{cardinality:{name:LN.cardinality},elements:{name:LN.elements,defaultValue:[]}},superTypes:[Pu.$type]},UntilToken:{name:by.$type,properties:{cardinality:{name:by.cardinality},lookahead:{name:by.lookahead},parenthesized:{name:by.parenthesized,defaultValue:!1},terminal:{name:by.terminal}},superTypes:[Fu.$type]},ValueLiteral:{name:Ey.$type,properties:{},superTypes:[]},Wildcard:{name:OT.$type,properties:{cardinality:{name:OT.cardinality},lookahead:{name:OT.lookahead},parenthesized:{name:OT.parenthesized,defaultValue:!1}},superTypes:[Fu.$type]}}}},q(PC,"LangiumGrammarAstReflection"),PC),Kn=new qde;function QHe(t){let e=t,r=!1;for(;e;){const n=AE(e.grammarSource,bu);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}q(QHe,"getDatatypeNode");function FA(t){return new DA(t,e=>p0(e)?e.content:[],{includeRoot:!0})}q(FA,"streamCst");function ZHe(t){return FA(t).filter(xE)}q(ZHe,"flattenCst");function Vde(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}q(Vde,"isChildNode");function u3(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}q(u3,"tokenToRange");function BA(t){if(!t)return;const{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}q(BA,"toDocumentSegment");var Gp;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(Gp||(Gp={}));function Hde(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return Gp.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return Gp.After;const r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return r&&n?Gp.Inside:r?Gp.OverlapBack:n?Gp.OverlapFront:Gp.Outside}q(Hde,"compareRange");function Yde(t,e){return Hde(t,e)>Gp.After}q(Yde,"inRange");var Wde=/^[\w\p{L}]$/u;function JHe(t,e,r=Wde){if(t){if(e>0){const n=e-t.offset,i=t.text.charAt(n);r.test(i)||e--}return q$(t,e)}}q(JHe,"findDeclarationNodeAtOffset");function Kde(t,e){if(t){const r=Qde(t,!0);if(r&&Y8(r,e))return r;if(P$(t)){const n=t.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){const a=t.content[i];if(Y8(a,e))return a}}}}q(Kde,"findCommentNode");function Y8(t,e){return xE(t)&&e.includes(t.tokenType.name)}q(Y8,"isCommentNode");function q$(t,e){if(xE(t))return t;if(p0(t)){const r=Xde(t,e,!1);if(r)return q$(r,e)}}q(q$,"findLeafNodeAtOffset");function jde(t,e){if(xE(t))return t;if(p0(t)){const r=Xde(t,e,!0);if(r)return jde(r,e)}}q(jde,"findLeafNodeBeforeOffset");function Xde(t,e,r){let n=0,i=t.content.length-1,a;for(;n<=i;){const s=Math.floor((n+i)/2),o=t.content[s];if(o.offset<=e&&o.end>e)return o;o.end<=e?(a=r?o:void 0,n=s+1):i=s-1}return a}q(Xde,"binarySearch");function Qde(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);for(;n>0;){n--;const i=r.content[n];if(e||!i.hidden)return i}t=r}}q(Qde,"getPreviousNode");function eYe(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);const i=r.content.length-1;for(;n<i;){n++;const a=r.content[n];if(e||!a.hidden)return a}t=r}}q(eYe,"getNextNode");function tYe(t){if(t.range.start.character===0)return t;const e=t.range.start.line;let r=t,n;for(;t.container;){const i=t.container,a=n??i.content.indexOf(t);if(a===0?(t=i,n=void 0):(n=a-1,t=i.content[n]),t.range.start.line!==e)break;r=t}return r}q(tYe,"getStartlineNode");function rYe(t,e){const r=nYe(t,e);return r?r.parent.content.slice(r.a+1,r.b):[]}q(rYe,"getInteriorNodes");function nYe(t,e){const r=Rre(t),n=Rre(e);let i;for(let a=0;a<r.length&&a<n.length;a++){const s=r[a],o=n[a];if(s.parent===o.parent)i={parent:s.parent,a:s.index,b:o.index};else break}return i}q(nYe,"getCommonParent");function Rre(t){const e=[];for(;t.container;){const r=t.container,n=r.content.indexOf(t);e.push({parent:r,index:n}),t=r}return e.reverse()}q(Rre,"getParentChain");var Zde={};ev(Zde,{findAssignment:()=>dhe,findNameAssignment:()=>Q$,findNodeForKeyword:()=>uhe,findNodeForProperty:()=>K$,findNodesForKeyword:()=>dYe,findNodesForKeywordInternal:()=>X$,findNodesForProperty:()=>che,getActionAtElement:()=>fhe,getActionType:()=>ghe,getAllReachableRules:()=>W$,getAllRulesUsedForCrossReferences:()=>uYe,getCrossReferenceTerminal:()=>ohe,getEntryRule:()=>ihe,getExplicitRuleType:()=>mD,getHiddenRules:()=>ahe,getRuleType:()=>mhe,getRuleTypeName:()=>mYe,getTypeName:()=>Wb,isArrayCardinality:()=>fYe,isArrayOperator:()=>pYe,isCommentTerminal:()=>lhe,isDataType:()=>gYe,isDataTypeRule:()=>gD,isOptionalCardinality:()=>hYe,terminalRegex:()=>_D});var FC,V$=(FC=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}},q(FC,"ErrorWithLocation"),FC);function tv(t,e="Error: Got unexpected value."){throw new Error(e)}q(tv,"assertUnreachable");function Jde(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}q(Jde,"assertCondition");var ehe={};ev(ehe,{NEWLINE_REGEXP:()=>sYe,escapeRegExp:()=>zR,getTerminalParts:()=>lYe,isMultilineComment:()=>the,isWhitespace:()=>Y$,partialMatches:()=>rhe,partialRegExp:()=>nhe,whitespaceCharacters:()=>cYe});function ei(t){return t.charCodeAt(0)}q(ei,"cc");function C6(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}q(C6,"insertToSet");function QS(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}q(QS,"addFlag");function Xv(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}q(Xv,"ASSERT_EXISTS");function iYe(){throw Error("Internal Error - Should never get here!")}q(iYe,"ASSERT_NEVER_REACH_HERE");function Ore(t){return t.type==="Character"}q(Ore,"isCharacter");var W8=[];for(let t=ei("0");t<=ei("9");t++)W8.push(t);var K8=[ei("_")].concat(W8);for(let t=ei("a");t<=ei("z");t++)K8.push(t);for(let t=ei("A");t<=ei("Z");t++)K8.push(t);var nOe=[ei(" "),ei("\f"),ei(`
`),ei("\r"),ei("	"),ei("\v"),ei("	"),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei(" "),ei("\u2028"),ei("\u2029"),ei(" "),ei(" "),ei("　"),ei("\uFEFF")],j5r=/[0-9a-fA-F]/,jL=/[0-9]/,X5r=/[1-9]/,BC,aYe=(BC=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const r=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":QS(n,"global");break;case"i":QS(n,"ignoreCase");break;case"m":QS(n,"multiLine");break;case"u":QS(n,"unicode");break;case"y":QS(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){const e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){const e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}Xv(r);const n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return iYe()}quantifier(e=!1){let r;const n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:i,atMost:a}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;Xv(r);break}if(!(e===!0&&r===void 0)&&Xv(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e;const r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Xv(e))return e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[ei(`
`),ei("\r"),ei("\u2028"),ei("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=W8;break;case"D":e=W8,r=!0;break;case"s":e=nOe;break;case"S":e=nOe,r=!0;break;case"w":e=K8;break;case"W":e=K8,r=!0;break}if(Xv(e))return{type:"Set",value:e,complement:r}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=ei("\f");break;case"n":e=ei(`
`);break;case"r":e=ei("\r");break;case"t":e=ei("	");break;case"v":e=ei("\v");break}if(Xv(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:ei("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:ei(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const e=this.popChar();return{type:"Character",value:ei(e)}}}characterClass(){const e=[];let r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){const n=this.classAtom();if(n.type,Ore(n)&&this.isRangeDash()){this.consumeChar("-");const i=this.classAtom();if(i.type,Ore(i)){if(i.value<n.value)throw Error("Range out of order in character class");e.push({from:n.value,to:i.value})}else C6(n.value,e),e.push(ei("-")),C6(i.value,e)}else C6(n.value,e)}return this.consumeChar("]"),{type:"Set",complement:r,value:e}}classAtom(){switch(this.peekChar()){case"]":case`
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:ei("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;const r=this.disjunction();this.consumeChar(")");const n={type:"Group",capturing:e,value:r};return e&&(n.idx=this.groupIdx),n}positiveInteger(){let e=this.popChar();if(X5r.test(e)===!1)throw Error("Expecting a positive integer");for(;jL.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(jL.test(e)===!1)throw Error("Expecting an integer");for(;jL.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const e=this.popChar();switch(e){case`
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:ei(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return jL.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){const e=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let i=0;i<e;i++){const a=this.popChar();if(j5r.test(a)===!1)throw Error("Expecting a HexDecimal digits");r+=a}return{type:"Character",value:parseInt(r,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){const e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},q(BC,"RegExpParser"),BC),UC,H$=(UC=class{visitChildren(e){for(const r in e){const n=e[r];e.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},q(UC,"BaseRegExpVisitor"),UC),sYe=/\r?\n/gm,oYe=new aYe,$C,Q5r=($C=class extends H${constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const r=String.fromCharCode(e.value);if(!this.multiline&&r===`
`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const n=zR(r);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitSet(e){if(!this.multiline){const r=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(r);this.multiline=!!`
`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},q($C,"TerminalRegExpVisitor"),$C),$y=new Q5r;function lYe(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;const e=oYe.pattern(t),r=[];for(const n of e.value.value)$y.reset(t),$y.visit(n),r.push({start:$y.startRegexp,end:$y.endRegex});return r}catch{return[]}}q(lYe,"getTerminalParts");function the(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),$y.reset(t),$y.visit(oYe.pattern(t)),$y.multiline}catch{return!1}}q(the,"isMultilineComment");var cYe=`\f
\r	\v              \u2028\u2029  　\uFEFF`.split("");function Y$(t){const e=typeof t=="string"?new RegExp(t):t;return cYe.some(r=>e.test(r))}q(Y$,"isWhitespace");function zR(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}q(zR,"escapeRegExp");function rhe(t,e){const r=nhe(t),n=e.match(r);return!!n&&n[0].length>0}q(rhe,"partialMatches");function nhe(t){typeof t=="string"&&(t=new RegExp(t));const e=t,r=t.source;let n=0;function i(){let a="",s;function o(u){a+=r.substr(n,u),n+=u}q(o,"appendRaw");function l(u){a+="(?:"+r.substr(n,u)+"|$)",n+=u}for(q(l,"appendOptional");n<r.length;)switch(r[n]){case"\\":switch(r[n+1]){case"c":l(3);break;case"x":l(4);break;case"u":e.unicode?r[n+2]==="{"?l(r.indexOf("}",n)-n+1):l(6):l(2);break;case"p":case"P":e.unicode?l(r.indexOf("}",n)-n+1):l(2);break;case"k":l(r.indexOf(">",n)-n+1);break;default:l(2);break}break;case"[":s=/\[(?:\\.|.)*?\]/g,s.lastIndex=n,s=s.exec(r)||[],l(s[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":o(1);break;case"{":s=/\{\d+,?\d*\}/g,s.lastIndex=n,s=s.exec(r),s?o(s[0].length):l(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"|$)";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":s=n,n+=3,i(),a+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,i(),a+=r.substr(s,n-s);break;default:o(r.indexOf(">",n)-n+1),a+=i()+"|$)";break}break}else o(1),a+=i()+"|$)";break;case")":return++n,a;default:l(1);break}return a}return q(i,"process"),new RegExp(i(),t.flags)}q(nhe,"partialRegExp");function ihe(t){return t.rules.find(e=>bu(e)&&e.entry)}q(ihe,"getEntryRule");function ahe(t){return t.rules.filter(e=>Jh(e)&&e.hidden)}q(ahe,"getHiddenRules");function W$(t,e){const r=new Set,n=ihe(t);if(!n)return new Set(t.rules);const i=[n].concat(ahe(t));for(const s of i)she(s,r,e);const a=new Set;for(const s of t.rules)(r.has(s.name)||Jh(s)&&s.hidden)&&a.add(s);return a}q(W$,"getAllReachableRules");function she(t,e,r){e.add(t.name),V0(t).forEach(n=>{if(_0(n)||r&&$$(n)){const i=n.rule.ref;i&&!e.has(i.name)&&she(i,e,r)}})}q(she,"ruleDfs");function uYe(t){const e=new Set;return V0(t).forEach(r=>{OE(r)&&(bu(r.type.ref)&&e.add(r.type.ref),pD(r.type.ref)&&bu(r.type.ref.$container)&&e.add(r.type.ref.$container))}),e}q(uYe,"getAllRulesUsedForCrossReferences");function ohe(t){if(t.terminal)return t.terminal;if(t.type.ref)return Q$(t.type.ref)?.terminal}q(ohe,"getCrossReferenceTerminal");function lhe(t){return t.hidden&&!Y$(_D(t))}q(lhe,"isCommentTerminal");function che(t,e){return!t||!e?[]:j$(t,e,t.astNode,!0)}q(che,"findNodesForProperty");function K$(t,e,r){if(!t||!e)return;const n=j$(t,e,t.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}q(K$,"findNodeForProperty");function j$(t,e,r,n){if(!n){const i=AE(t.grammarSource,g0);if(i&&i.feature===e)return[t]}return p0(t)&&t.astNode===r?t.content.flatMap(i=>j$(i,e,r,!1)):[]}q(j$,"findNodesForPropertyInternal");function dYe(t,e){return t?X$(t,e,t?.astNode):[]}q(dYe,"findNodesForKeyword");function uhe(t,e,r){if(!t)return;const n=X$(t,e,t?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}q(uhe,"findNodeForKeyword");function X$(t,e,r){if(t.astNode!==r)return[];if(m0(t.grammarSource)&&t.grammarSource.value===e)return[t];const n=FA(t).iterator();let i;const a=[];do if(i=n.next(),!i.done){const s=i.value;s.astNode===r?m0(s.grammarSource)&&s.grammarSource.value===e&&a.push(s):n.prune()}while(!i.done);return a}q(X$,"findNodesForKeywordInternal");function dhe(t){const e=t.astNode;for(;e===t.container?.astNode;){const r=AE(t.grammarSource,g0);if(r)return r;t=t.container}}q(dhe,"findAssignment");function Q$(t){let e=t;return pD(e)&&(A1(e.$container)?e=e.$container.$container:RE(e.$container)?e=e.$container:tv(e.$container)),hhe(t,e,new Map)}q(Q$,"findNameAssignment");function hhe(t,e,r){function n(i,a){let s;return AE(i,g0)||(s=hhe(a,a,r)),r.set(t,s),s}if(q(n,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(const i of V0(e)){if(g0(i)&&i.feature.toLowerCase()==="name")return r.set(t,i),i;if(_0(i)&&bu(i.rule.ref))return n(i,i.rule.ref);if(U$(i)&&i.typeRef?.ref)return n(i,i.typeRef.ref)}}q(hhe,"findNameAssignmentInternal");function fhe(t){const e=t.$container;if(IE(e)){const r=e.elements,n=r.indexOf(t);for(let i=n-1;i>=0;i--){const a=r[i];if(A1(a))return a;{const s=V0(r[i]).find(A1);if(s)return s}}}if(F$(e))return fhe(e)}q(fhe,"getActionAtElement");function hYe(t,e){return t==="?"||t==="*"||IE(e)&&!!e.guardCondition}q(hYe,"isOptionalCardinality");function fYe(t){return t==="*"||t==="+"}q(fYe,"isArrayCardinality");function pYe(t){return t==="+="}q(pYe,"isArrayOperator");function gD(t){return phe(t,new Set)}q(gD,"isDataTypeRule");function phe(t,e){if(e.has(t))return!0;e.add(t);for(const r of V0(t))if(_0(r)){if(!r.rule.ref||bu(r.rule.ref)&&!phe(r.rule.ref,e)||PA(r.rule.ref))return!1}else{if(g0(r))return!1;if(A1(r))return!1}return!!t.definition}q(phe,"isDataTypeRuleInternal");function gYe(t){return j8(t.type,new Set)}q(gYe,"isDataType");function j8(t,e){if(e.has(t))return!0;if(e.add(t),wde(t))return!1;if(Lde(t))return!1;if($de(t))return t.types.every(r=>j8(r,e));if(U$(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){const r=t.typeRef.ref;return G$(r)?j8(r.type,e):!1}else return!1}else return!1}q(j8,"isDataTypeInternal");function mD(t){if(!Jh(t)){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.returnType){const e=t.returnType.ref;if(e)return e.name}}}q(mD,"getExplicitRuleType");function Wb(t){if(RE(t))return bu(t)&&gD(t)?t.name:mD(t)??t.name;if(Nde(t)||G$(t)||Fde(t))return t.name;if(A1(t)){const e=ghe(t);if(e)return e}else if(pD(t))return t.name;throw new Error("Cannot get name of Unknown Type")}q(Wb,"getTypeName");function ghe(t){if(t.inferredType)return t.inferredType.name;if(t.type?.ref)return Wb(t.type.ref)}q(ghe,"getActionType");function mYe(t){return Jh(t)?t.type?.name??"string":bu(t)&&gD(t)?t.name:mD(t)??t.name}q(mYe,"getRuleTypeName");function mhe(t){return Jh(t)?t.type?.name??"string":mD(t)??t.name}q(mhe,"getRuleType");function _D(t){const e={s:!1,i:!1,u:!1},r=NE(t.definition,e),n=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(r,n)}q(_D,"terminalRegex");var _he=/[\s\S]/.source;function NE(t,e){if(Bde(t))return _Ye(t);if(Ude(t))return vYe(t);if(Ade(t))return EYe(t);if($$(t)){const r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return og(NE(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}else{if(kde(t))return bYe(t);if(Gde(t))return yYe(t);if(Pde(t)){const r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),i=t.regex.substring(r+1);return e&&(e.i=i.includes("i"),e.s=i.includes("s"),e.u=i.includes("u")),og(n,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}else{if(zde(t))return og(_he,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized});throw new Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`)}}}q(NE,"abstractElementToRegex");function _Ye(t){return og(t.elements.map(e=>NE(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}q(_Ye,"terminalAlternativesToRegex");function vYe(t){return og(t.elements.map(e=>NE(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}q(vYe,"terminalGroupToRegex");function yYe(t){return og(`${_he}*?${NE(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}q(yYe,"untilTokenToRegex");function bYe(t){return og(`(?!${NE(t.terminal)})${_he}*?`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}q(bYe,"negateTokenToRegex");function EYe(t){return t.right?og(`[${w6(t.left)}-${w6(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1}):og(w6(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}q(EYe,"characterRangeToRegex");function w6(t){return zR(t.value)}q(w6,"keywordToRegex");function og(t,e){return(e.parenthesized||e.lookahead||e.wrap!==!1)&&(t=`(${e.lookahead??(e.parenthesized?"":"?:")}${t})`),e.cardinality?`${t}${e.cardinality}`:t}q(og,"withCardinality");function vhe(t){const e=[],r=t.Grammar;for(const n of r.rules)Jh(n)&&lhe(n)&&the(_D(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:Wde}}q(vhe,"createGrammarConfig");var Z5r=typeof global=="object"&&global&&global.Object===Object&&global,SYe=Z5r,J5r=typeof self=="object"&&self&&self.Object===Object&&self,eDr=SYe||J5r||Function("return this")(),Pg=eDr,tDr=Pg.Symbol,Yh=tDr,TYe=Object.prototype,rDr=TYe.hasOwnProperty,nDr=TYe.toString,QO=Yh?Yh.toStringTag:void 0;function CYe(t){var e=rDr.call(t,QO),r=t[QO];try{t[QO]=void 0;var n=!0}catch{}var i=nDr.call(t);return n&&(e?t[QO]=r:delete t[QO]),i}q(CYe,"getRawTag");var iDr=CYe,aDr=Object.prototype,sDr=aDr.toString;function wYe(t){return sDr.call(t)}q(wYe,"objectToString");var oDr=wYe,lDr="[object Null]",cDr="[object Undefined]",iOe=Yh?Yh.toStringTag:void 0;function xYe(t){return t==null?t===void 0?cDr:lDr:iOe&&iOe in Object(t)?iDr(t):oDr(t)}q(xYe,"baseGetTag");var rv=xYe;function AYe(t){return t!=null&&typeof t=="object"}q(AYe,"isObjectLike");var tp=AYe,uDr="[object Symbol]";function RYe(t){return typeof t=="symbol"||tp(t)&&rv(t)==uDr}q(RYe,"isSymbol");var Z$=RYe;function OYe(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}q(OYe,"arrayMap");var vD=OYe,dDr=Array.isArray,pa=dDr,aOe=Yh?Yh.prototype:void 0,sOe=aOe?aOe.toString:void 0;function yhe(t){if(typeof t=="string")return t;if(pa(t))return vD(t,yhe)+"";if(Z$(t))return sOe?sOe.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}q(yhe,"baseToString");var hDr=yhe,fDr=/\s/;function IYe(t){for(var e=t.length;e--&&fDr.test(t.charAt(e)););return e}q(IYe,"trimmedEndIndex");var pDr=IYe,gDr=/^\s+/;function NYe(t){return t&&t.slice(0,pDr(t)+1).replace(gDr,"")}q(NYe,"baseTrim");var mDr=NYe;function kYe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}q(kYe,"isObject");var Wh=kYe,oOe=NaN,_Dr=/^[-+]0x[0-9a-f]+$/i,vDr=/^0b[01]+$/i,yDr=/^0o[0-7]+$/i,bDr=parseInt;function DYe(t){if(typeof t=="number")return t;if(Z$(t))return oOe;if(Wh(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Wh(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=mDr(t);var r=vDr.test(t);return r||yDr.test(t)?bDr(t.slice(2),r?2:8):_Dr.test(t)?oOe:+t}q(DYe,"toNumber");var EDr=DYe,lOe=1/0,SDr=17976931348623157e292;function MYe(t){if(!t)return t===0?t:0;if(t=EDr(t),t===lOe||t===-lOe){var e=t<0?-1:1;return e*SDr}return t===t?t:0}q(MYe,"toFinite");var TDr=MYe;function LYe(t){var e=TDr(t),r=e%1;return e===e?r?e-r:e:0}q(LYe,"toInteger");var yD=LYe;function PYe(t){return t}q(PYe,"identity");var UA=PYe,CDr="[object AsyncFunction]",wDr="[object Function]",xDr="[object GeneratorFunction]",ADr="[object Proxy]";function FYe(t){if(!Wh(t))return!1;var e=rv(t);return e==wDr||e==xDr||e==CDr||e==ADr}q(FYe,"isFunction");var H0=FYe,RDr=Pg["__core-js_shared__"],AX=RDr,cOe=(function(){var t=/[^.]+$/.exec(AX&&AX.keys&&AX.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function BYe(t){return!!cOe&&cOe in t}q(BYe,"isMasked");var ODr=BYe,IDr=Function.prototype,NDr=IDr.toString;function UYe(t){if(t!=null){try{return NDr.call(t)}catch{}try{return t+""}catch{}}return""}q(UYe,"toSource");var kE=UYe,kDr=/[\\^$.*+?()[\]{}|]/g,DDr=/^\[object .+?Constructor\]$/,MDr=Function.prototype,LDr=Object.prototype,PDr=MDr.toString,FDr=LDr.hasOwnProperty,BDr=RegExp("^"+PDr.call(FDr).replace(kDr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $Ye(t){if(!Wh(t)||ODr(t))return!1;var e=H0(t)?BDr:DDr;return e.test(kE(t))}q($Ye,"baseIsNative");var UDr=$Ye;function GYe(t,e){return t?.[e]}q(GYe,"getValue");var $Dr=GYe;function zYe(t,e){var r=$Dr(t,e);return UDr(r)?r:void 0}q(zYe,"getNative");var DE=zYe,GDr=DE(Pg,"WeakMap"),Ire=GDr,uOe=Object.create,zDr=(function(){function t(){}return q(t,"object"),function(e){if(!Wh(e))return{};if(uOe)return uOe(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})(),qDr=zDr;function qYe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}q(qYe,"apply");var VDr=qYe;function VYe(){}q(VYe,"noop");var rl=VYe;function HYe(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}q(HYe,"copyArray");var HDr=HYe,YDr=800,WDr=16,KDr=Date.now;function YYe(t){var e=0,r=0;return function(){var n=KDr(),i=WDr-(n-r);if(r=n,i>0){if(++e>=YDr)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}q(YYe,"shortOut");var jDr=YYe;function WYe(t){return function(){return t}}q(WYe,"constant");var XDr=WYe,QDr=(function(){try{var t=DE(Object,"defineProperty");return t({},"",{}),t}catch{}})(),X8=QDr,ZDr=X8?function(t,e){return X8(t,"toString",{configurable:!0,enumerable:!1,value:XDr(e),writable:!0})}:UA,JDr=ZDr,e4r=jDr(JDr),t4r=e4r;function KYe(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}q(KYe,"arrayEach");var jYe=KYe;function XYe(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a<i;)if(e(t[a],a,t))return a;return-1}q(XYe,"baseFindIndex");var QYe=XYe;function ZYe(t){return t!==t}q(ZYe,"baseIsNaN");var r4r=ZYe;function JYe(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}q(JYe,"strictIndexOf");var n4r=JYe;function eWe(t,e,r){return e===e?n4r(t,e,r):QYe(t,r4r,r)}q(eWe,"baseIndexOf");var bhe=eWe;function tWe(t,e){var r=t==null?0:t.length;return!!r&&bhe(t,e,0)>-1}q(tWe,"arrayIncludes");var rWe=tWe,i4r=9007199254740991,a4r=/^(?:0|[1-9]\d*)$/;function nWe(t,e){var r=typeof t;return e=e??i4r,!!e&&(r=="number"||r!="symbol"&&a4r.test(t))&&t>-1&&t%1==0&&t<e}q(nWe,"isIndex");var J$=nWe;function iWe(t,e,r){e=="__proto__"&&X8?X8(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}q(iWe,"baseAssignValue");var Ehe=iWe;function aWe(t,e){return t===e||t!==t&&e!==e}q(aWe,"eq");var bD=aWe,s4r=Object.prototype,o4r=s4r.hasOwnProperty;function sWe(t,e,r){var n=t[e];(!(o4r.call(t,e)&&bD(n,r))||r===void 0&&!(e in t))&&Ehe(t,e,r)}q(sWe,"assignValue");var eG=sWe;function oWe(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var o=e[a],l=n?n(r[o],t[o],o,r,t):void 0;l===void 0&&(l=t[o]),i?Ehe(r,o,l):eG(r,o,l)}return r}q(oWe,"copyObject");var ED=oWe,dOe=Math.max;function lWe(t,e,r){return e=dOe(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=dOe(n.length-e,0),s=Array(a);++i<a;)s[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(s),VDr(t,this,o)}}q(lWe,"overRest");var l4r=lWe;function cWe(t,e){return t4r(l4r(t,e,UA),t+"")}q(cWe,"baseRest");var She=cWe,c4r=9007199254740991;function uWe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=c4r}q(uWe,"isLength");var The=uWe;function dWe(t){return t!=null&&The(t.length)&&!H0(t)}q(dWe,"isArrayLike");var Fg=dWe;function hWe(t,e,r){if(!Wh(r))return!1;var n=typeof e;return(n=="number"?Fg(r)&&J$(e,r.length):n=="string"&&e in r)?bD(r[e],t):!1}q(hWe,"isIterateeCall");var tG=hWe;function fWe(t){return She(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&tG(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,a)}return e})}q(fWe,"createAssigner");var u4r=fWe,d4r=Object.prototype;function pWe(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||d4r;return t===r}q(pWe,"isPrototype");var SD=pWe;function gWe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}q(gWe,"baseTimes");var h4r=gWe,f4r="[object Arguments]";function mWe(t){return tp(t)&&rv(t)==f4r}q(mWe,"baseIsArguments");var hOe=mWe,_We=Object.prototype,p4r=_We.hasOwnProperty,g4r=_We.propertyIsEnumerable,m4r=hOe((function(){return arguments})())?hOe:function(t){return tp(t)&&p4r.call(t,"callee")&&!g4r.call(t,"callee")},rG=m4r;function vWe(){return!1}q(vWe,"stubFalse");var _4r=vWe,yWe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fOe=yWe&&typeof module=="object"&&module&&!module.nodeType&&module,v4r=fOe&&fOe.exports===yWe,pOe=v4r?Pg.Buffer:void 0,y4r=pOe?pOe.isBuffer:void 0,b4r=y4r||_4r,d3=b4r,E4r="[object Arguments]",S4r="[object Array]",T4r="[object Boolean]",C4r="[object Date]",w4r="[object Error]",x4r="[object Function]",A4r="[object Map]",R4r="[object Number]",O4r="[object Object]",I4r="[object RegExp]",N4r="[object Set]",k4r="[object String]",D4r="[object WeakMap]",M4r="[object ArrayBuffer]",L4r="[object DataView]",P4r="[object Float32Array]",F4r="[object Float64Array]",B4r="[object Int8Array]",U4r="[object Int16Array]",$4r="[object Int32Array]",G4r="[object Uint8Array]",z4r="[object Uint8ClampedArray]",q4r="[object Uint16Array]",V4r="[object Uint32Array]",ds={};ds[P4r]=ds[F4r]=ds[B4r]=ds[U4r]=ds[$4r]=ds[G4r]=ds[z4r]=ds[q4r]=ds[V4r]=!0;ds[E4r]=ds[S4r]=ds[M4r]=ds[T4r]=ds[L4r]=ds[C4r]=ds[w4r]=ds[x4r]=ds[A4r]=ds[R4r]=ds[O4r]=ds[I4r]=ds[N4r]=ds[k4r]=ds[D4r]=!1;function bWe(t){return tp(t)&&The(t.length)&&!!ds[rv(t)]}q(bWe,"baseIsTypedArray");var H4r=bWe;function EWe(t){return function(e){return t(e)}}q(EWe,"baseUnary");var TD=EWe,SWe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,PN=SWe&&typeof module=="object"&&module&&!module.nodeType&&module,Y4r=PN&&PN.exports===SWe,RX=Y4r&&SYe.process,W4r=(function(){try{var t=PN&&PN.require&&PN.require("util").types;return t||RX&&RX.binding&&RX.binding("util")}catch{}})(),R1=W4r,gOe=R1&&R1.isTypedArray,K4r=gOe?TD(gOe):H4r,Che=K4r,j4r=Object.prototype,X4r=j4r.hasOwnProperty;function TWe(t,e){var r=pa(t),n=!r&&rG(t),i=!r&&!n&&d3(t),a=!r&&!n&&!i&&Che(t),s=r||n||i||a,o=s?h4r(t.length,String):[],l=o.length;for(var u in t)(e||X4r.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||J$(u,l)))&&o.push(u);return o}q(TWe,"arrayLikeKeys");var CWe=TWe;function wWe(t,e){return function(r){return t(e(r))}}q(wWe,"overArg");var xWe=wWe,Q4r=xWe(Object.keys,Object),Z4r=Q4r,J4r=Object.prototype,eMr=J4r.hasOwnProperty;function AWe(t){if(!SD(t))return Z4r(t);var e=[];for(var r in Object(t))eMr.call(t,r)&&r!="constructor"&&e.push(r);return e}q(AWe,"baseKeys");var RWe=AWe;function OWe(t){return Fg(t)?CWe(t):RWe(t)}q(OWe,"keys");var Yd=OWe,tMr=Object.prototype,rMr=tMr.hasOwnProperty,nMr=u4r(function(t,e){if(SD(e)||Fg(e)){ED(e,Yd(e),t);return}for(var r in e)rMr.call(e,r)&&eG(t,r,e[r])}),Wd=nMr;function IWe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}q(IWe,"nativeKeysIn");var iMr=IWe,aMr=Object.prototype,sMr=aMr.hasOwnProperty;function NWe(t){if(!Wh(t))return iMr(t);var e=SD(t),r=[];for(var n in t)n=="constructor"&&(e||!sMr.call(t,n))||r.push(n);return r}q(NWe,"baseKeysIn");var oMr=NWe;function kWe(t){return Fg(t)?CWe(t,!0):oMr(t)}q(kWe,"keysIn");var nG=kWe,lMr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cMr=/^\w*$/;function DWe(t,e){if(pa(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Z$(t)?!0:cMr.test(t)||!lMr.test(t)||e!=null&&t in Object(e)}q(DWe,"isKey");var whe=DWe,uMr=DE(Object,"create"),h3=uMr;function MWe(){this.__data__=h3?h3(null):{},this.size=0}q(MWe,"hashClear");var dMr=MWe;function LWe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}q(LWe,"hashDelete");var hMr=LWe,fMr="__lodash_hash_undefined__",pMr=Object.prototype,gMr=pMr.hasOwnProperty;function PWe(t){var e=this.__data__;if(h3){var r=e[t];return r===fMr?void 0:r}return gMr.call(e,t)?e[t]:void 0}q(PWe,"hashGet");var mMr=PWe,_Mr=Object.prototype,vMr=_Mr.hasOwnProperty;function FWe(t){var e=this.__data__;return h3?e[t]!==void 0:vMr.call(e,t)}q(FWe,"hashHas");var yMr=FWe,bMr="__lodash_hash_undefined__";function BWe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=h3&&e===void 0?bMr:e,this}q(BWe,"hashSet");var EMr=BWe;function ME(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}q(ME,"Hash");ME.prototype.clear=dMr;ME.prototype.delete=hMr;ME.prototype.get=mMr;ME.prototype.has=yMr;ME.prototype.set=EMr;var mOe=ME;function UWe(){this.__data__=[],this.size=0}q(UWe,"listCacheClear");var SMr=UWe;function $We(t,e){for(var r=t.length;r--;)if(bD(t[r][0],e))return r;return-1}q($We,"assocIndexOf");var iG=$We,TMr=Array.prototype,CMr=TMr.splice;function GWe(t){var e=this.__data__,r=iG(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():CMr.call(e,r,1),--this.size,!0}q(GWe,"listCacheDelete");var wMr=GWe;function zWe(t){var e=this.__data__,r=iG(e,t);return r<0?void 0:e[r][1]}q(zWe,"listCacheGet");var xMr=zWe;function qWe(t){return iG(this.__data__,t)>-1}q(qWe,"listCacheHas");var AMr=qWe;function VWe(t,e){var r=this.__data__,n=iG(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}q(VWe,"listCacheSet");var RMr=VWe;function LE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}q(LE,"ListCache");LE.prototype.clear=SMr;LE.prototype.delete=wMr;LE.prototype.get=xMr;LE.prototype.has=AMr;LE.prototype.set=RMr;var aG=LE,OMr=DE(Pg,"Map"),f3=OMr;function HWe(){this.size=0,this.__data__={hash:new mOe,map:new(f3||aG),string:new mOe}}q(HWe,"mapCacheClear");var IMr=HWe;function YWe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}q(YWe,"isKeyable");var NMr=YWe;function WWe(t,e){var r=t.__data__;return NMr(e)?r[typeof e=="string"?"string":"hash"]:r.map}q(WWe,"getMapData");var sG=WWe;function KWe(t){var e=sG(this,t).delete(t);return this.size-=e?1:0,e}q(KWe,"mapCacheDelete");var kMr=KWe;function jWe(t){return sG(this,t).get(t)}q(jWe,"mapCacheGet");var DMr=jWe;function XWe(t){return sG(this,t).has(t)}q(XWe,"mapCacheHas");var MMr=XWe;function QWe(t,e){var r=sG(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}q(QWe,"mapCacheSet");var LMr=QWe;function PE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}q(PE,"MapCache");PE.prototype.clear=IMr;PE.prototype.delete=kMr;PE.prototype.get=DMr;PE.prototype.has=MMr;PE.prototype.set=LMr;var oG=PE,PMr="Expected a function";function lG(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(PMr);var r=q(function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s},"memoized");return r.cache=new(lG.Cache||oG),r}q(lG,"memoize");lG.Cache=oG;var FMr=lG,BMr=500;function ZWe(t){var e=FMr(t,function(n){return r.size===BMr&&r.clear(),n}),r=e.cache;return e}q(ZWe,"memoizeCapped");var UMr=ZWe,$Mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GMr=/\\(\\)?/g,zMr=UMr(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace($Mr,function(r,n,i,a){e.push(i?a.replace(GMr,"$1"):n||r)}),e}),qMr=zMr;function JWe(t){return t==null?"":hDr(t)}q(JWe,"toString");var VMr=JWe;function eKe(t,e){return pa(t)?t:whe(t,e)?[t]:qMr(VMr(t))}q(eKe,"castPath");var cG=eKe;function tKe(t){if(typeof t=="string"||Z$(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}q(tKe,"toKey");var CD=tKe;function rKe(t,e){e=cG(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[CD(e[r++])];return r&&r==n?t:void 0}q(rKe,"baseGet");var xhe=rKe;function nKe(t,e,r){var n=t==null?void 0:xhe(t,e);return n===void 0?r:n}q(nKe,"get");var HMr=nKe;function iKe(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}q(iKe,"arrayPush");var Ahe=iKe,_Oe=Yh?Yh.isConcatSpreadable:void 0;function aKe(t){return pa(t)||rG(t)||!!(_Oe&&t&&t[_Oe])}q(aKe,"isFlattenable");var YMr=aKe;function Rhe(t,e,r,n,i){var a=-1,s=t.length;for(r||(r=YMr),i||(i=[]);++a<s;){var o=t[a];e>0&&r(o)?e>1?Rhe(o,e-1,r,n,i):Ahe(i,o):n||(i[i.length]=o)}return i}q(Rhe,"baseFlatten");var Ohe=Rhe;function sKe(t){var e=t==null?0:t.length;return e?Ohe(t,1):[]}q(sKe,"flatten");var Vf=sKe,WMr=xWe(Object.getPrototypeOf,Object),oKe=WMr;function lKe(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(i);++n<i;)a[n]=t[n+e];return a}q(lKe,"baseSlice");var cKe=lKe;function uKe(t,e,r,n){var i=-1,a=t==null?0:t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r}q(uKe,"arrayReduce");var KMr=uKe;function dKe(){this.__data__=new aG,this.size=0}q(dKe,"stackClear");var jMr=dKe;function hKe(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}q(hKe,"stackDelete");var XMr=hKe;function fKe(t){return this.__data__.get(t)}q(fKe,"stackGet");var QMr=fKe;function pKe(t){return this.__data__.has(t)}q(pKe,"stackHas");var ZMr=pKe,JMr=200;function gKe(t,e){var r=this.__data__;if(r instanceof aG){var n=r.__data__;if(!f3||n.length<JMr-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new oG(n)}return r.set(t,e),this.size=r.size,this}q(gKe,"stackSet");var eLr=gKe;function FE(t){var e=this.__data__=new aG(t);this.size=e.size}q(FE,"Stack");FE.prototype.clear=jMr;FE.prototype.delete=XMr;FE.prototype.get=QMr;FE.prototype.has=ZMr;FE.prototype.set=eLr;var FN=FE;function mKe(t,e){return t&&ED(e,Yd(e),t)}q(mKe,"baseAssign");var tLr=mKe;function _Ke(t,e){return t&&ED(e,nG(e),t)}q(_Ke,"baseAssignIn");var rLr=_Ke,vKe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vOe=vKe&&typeof module=="object"&&module&&!module.nodeType&&module,nLr=vOe&&vOe.exports===vKe,yOe=nLr?Pg.Buffer:void 0,bOe=yOe?yOe.allocUnsafe:void 0;function yKe(t,e){if(e)return t.slice();var r=t.length,n=bOe?bOe(r):new t.constructor(r);return t.copy(n),n}q(yKe,"cloneBuffer");var iLr=yKe;function bKe(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var s=t[r];e(s,r,t)&&(a[i++]=s)}return a}q(bKe,"arrayFilter");var Ihe=bKe;function EKe(){return[]}q(EKe,"stubArray");var SKe=EKe,aLr=Object.prototype,sLr=aLr.propertyIsEnumerable,EOe=Object.getOwnPropertySymbols,oLr=EOe?function(t){return t==null?[]:(t=Object(t),Ihe(EOe(t),function(e){return sLr.call(t,e)}))}:SKe,Nhe=oLr;function TKe(t,e){return ED(t,Nhe(t),e)}q(TKe,"copySymbols");var lLr=TKe,cLr=Object.getOwnPropertySymbols,uLr=cLr?function(t){for(var e=[];t;)Ahe(e,Nhe(t)),t=oKe(t);return e}:SKe,CKe=uLr;function wKe(t,e){return ED(t,CKe(t),e)}q(wKe,"copySymbolsIn");var dLr=wKe;function xKe(t,e,r){var n=e(t);return pa(t)?n:Ahe(n,r(t))}q(xKe,"baseGetAllKeys");var AKe=xKe;function RKe(t){return AKe(t,Yd,Nhe)}q(RKe,"getAllKeys");var Nre=RKe;function OKe(t){return AKe(t,nG,CKe)}q(OKe,"getAllKeysIn");var IKe=OKe,hLr=DE(Pg,"DataView"),kre=hLr,fLr=DE(Pg,"Promise"),Dre=fLr,pLr=DE(Pg,"Set"),oC=pLr,SOe="[object Map]",gLr="[object Object]",TOe="[object Promise]",COe="[object Set]",wOe="[object WeakMap]",xOe="[object DataView]",mLr=kE(kre),_Lr=kE(f3),vLr=kE(Dre),yLr=kE(oC),bLr=kE(Ire),Qv=rv;(kre&&Qv(new kre(new ArrayBuffer(1)))!=xOe||f3&&Qv(new f3)!=SOe||Dre&&Qv(Dre.resolve())!=TOe||oC&&Qv(new oC)!=COe||Ire&&Qv(new Ire)!=wOe)&&(Qv=q(function(t){var e=rv(t),r=e==gLr?t.constructor:void 0,n=r?kE(r):"";if(n)switch(n){case mLr:return xOe;case _Lr:return SOe;case vLr:return TOe;case yLr:return COe;case bLr:return wOe}return e},"getTag"));var $A=Qv,ELr=Object.prototype,SLr=ELr.hasOwnProperty;function NKe(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&SLr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}q(NKe,"initCloneArray");var TLr=NKe,CLr=Pg.Uint8Array,Q8=CLr;function kKe(t){var e=new t.constructor(t.byteLength);return new Q8(e).set(new Q8(t)),e}q(kKe,"cloneArrayBuffer");var khe=kKe;function DKe(t,e){var r=e?khe(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}q(DKe,"cloneDataView");var wLr=DKe,xLr=/\w*$/;function MKe(t){var e=new t.constructor(t.source,xLr.exec(t));return e.lastIndex=t.lastIndex,e}q(MKe,"cloneRegExp");var ALr=MKe,AOe=Yh?Yh.prototype:void 0,ROe=AOe?AOe.valueOf:void 0;function LKe(t){return ROe?Object(ROe.call(t)):{}}q(LKe,"cloneSymbol");var RLr=LKe;function PKe(t,e){var r=e?khe(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}q(PKe,"cloneTypedArray");var OLr=PKe,ILr="[object Boolean]",NLr="[object Date]",kLr="[object Map]",DLr="[object Number]",MLr="[object RegExp]",LLr="[object Set]",PLr="[object String]",FLr="[object Symbol]",BLr="[object ArrayBuffer]",ULr="[object DataView]",$Lr="[object Float32Array]",GLr="[object Float64Array]",zLr="[object Int8Array]",qLr="[object Int16Array]",VLr="[object Int32Array]",HLr="[object Uint8Array]",YLr="[object Uint8ClampedArray]",WLr="[object Uint16Array]",KLr="[object Uint32Array]";function FKe(t,e,r){var n=t.constructor;switch(e){case BLr:return khe(t);case ILr:case NLr:return new n(+t);case ULr:return wLr(t,r);case $Lr:case GLr:case zLr:case qLr:case VLr:case HLr:case YLr:case WLr:case KLr:return OLr(t,r);case kLr:return new n;case DLr:case PLr:return new n(t);case MLr:return ALr(t);case LLr:return new n;case FLr:return RLr(t)}}q(FKe,"initCloneByTag");var jLr=FKe;function BKe(t){return typeof t.constructor=="function"&&!SD(t)?qDr(oKe(t)):{}}q(BKe,"initCloneObject");var XLr=BKe,QLr="[object Map]";function UKe(t){return tp(t)&&$A(t)==QLr}q(UKe,"baseIsMap");var ZLr=UKe,OOe=R1&&R1.isMap,JLr=OOe?TD(OOe):ZLr,ePr=JLr,tPr="[object Set]";function $Ke(t){return tp(t)&&$A(t)==tPr}q($Ke,"baseIsSet");var rPr=$Ke,IOe=R1&&R1.isSet,nPr=IOe?TD(IOe):rPr,iPr=nPr,aPr=1,sPr=2,oPr=4,GKe="[object Arguments]",lPr="[object Array]",cPr="[object Boolean]",uPr="[object Date]",dPr="[object Error]",zKe="[object Function]",hPr="[object GeneratorFunction]",fPr="[object Map]",pPr="[object Number]",qKe="[object Object]",gPr="[object RegExp]",mPr="[object Set]",_Pr="[object String]",vPr="[object Symbol]",yPr="[object WeakMap]",bPr="[object ArrayBuffer]",EPr="[object DataView]",SPr="[object Float32Array]",TPr="[object Float64Array]",CPr="[object Int8Array]",wPr="[object Int16Array]",xPr="[object Int32Array]",APr="[object Uint8Array]",RPr="[object Uint8ClampedArray]",OPr="[object Uint16Array]",IPr="[object Uint32Array]",rs={};rs[GKe]=rs[lPr]=rs[bPr]=rs[EPr]=rs[cPr]=rs[uPr]=rs[SPr]=rs[TPr]=rs[CPr]=rs[wPr]=rs[xPr]=rs[fPr]=rs[pPr]=rs[qKe]=rs[gPr]=rs[mPr]=rs[_Pr]=rs[vPr]=rs[APr]=rs[RPr]=rs[OPr]=rs[IPr]=!0;rs[dPr]=rs[zKe]=rs[yPr]=!1;function BN(t,e,r,n,i,a){var s,o=e&aPr,l=e&sPr,u=e&oPr;if(r&&(s=i?r(t,n,i,a):r(t)),s!==void 0)return s;if(!Wh(t))return t;var d=pa(t);if(d){if(s=TLr(t),!o)return HDr(t,s)}else{var h=$A(t),f=h==zKe||h==hPr;if(d3(t))return iLr(t,o);if(h==qKe||h==GKe||f&&!i){if(s=l||f?{}:XLr(t),!o)return l?dLr(t,rLr(s,t)):lLr(t,tLr(s,t))}else{if(!rs[h])return i?t:{};s=jLr(t,h,o)}}a||(a=new FN);var p=a.get(t);if(p)return p;a.set(t,s),iPr(t)?t.forEach(function(_){s.add(BN(_,e,r,_,t,a))}):ePr(t)&&t.forEach(function(_,v){s.set(v,BN(_,e,r,v,t,a))});var g=u?l?IKe:Nre:l?nG:Yd,m=d?void 0:g(t);return jYe(m||t,function(_,v){m&&(v=_,_=t[v]),eG(s,v,BN(_,e,r,v,t,a))}),s}q(BN,"baseClone");var NPr=BN,kPr=4;function VKe(t){return NPr(t,kPr)}q(VKe,"clone");var sc=VKe;function HKe(t){for(var e=-1,r=t==null?0:t.length,n=0,i=[];++e<r;){var a=t[e];a&&(i[n++]=a)}return i}q(HKe,"compact");var wD=HKe,DPr="__lodash_hash_undefined__";function YKe(t){return this.__data__.set(t,DPr),this}q(YKe,"setCacheAdd");var MPr=YKe;function WKe(t){return this.__data__.has(t)}q(WKe,"setCacheHas");var LPr=WKe;function p3(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new oG;++e<r;)this.add(t[e])}q(p3,"SetCache");p3.prototype.add=p3.prototype.push=MPr;p3.prototype.has=LPr;var Dhe=p3;function KKe(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}q(KKe,"arraySome");var jKe=KKe;function XKe(t,e){return t.has(e)}q(XKe,"cacheHas");var Mhe=XKe,PPr=1,FPr=2;function QKe(t,e,r,n,i,a){var s=r&PPr,o=t.length,l=e.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&FPr?new Dhe:void 0;for(a.set(t,e),a.set(e,t);++h<o;){var g=t[h],m=e[h];if(n)var _=s?n(m,g,h,e,t,a):n(g,m,h,t,e,a);if(_!==void 0){if(_)continue;f=!1;break}if(p){if(!jKe(e,function(v,y){if(!Mhe(p,y)&&(g===v||i(g,v,r,n,a)))return p.push(y)})){f=!1;break}}else if(!(g===m||i(g,m,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}q(QKe,"equalArrays");var ZKe=QKe;function JKe(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}q(JKe,"mapToArray");var BPr=JKe;function eje(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}q(eje,"setToArray");var Lhe=eje,UPr=1,$Pr=2,GPr="[object Boolean]",zPr="[object Date]",qPr="[object Error]",VPr="[object Map]",HPr="[object Number]",YPr="[object RegExp]",WPr="[object Set]",KPr="[object String]",jPr="[object Symbol]",XPr="[object ArrayBuffer]",QPr="[object DataView]",NOe=Yh?Yh.prototype:void 0,OX=NOe?NOe.valueOf:void 0;function tje(t,e,r,n,i,a,s){switch(r){case QPr:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case XPr:return!(t.byteLength!=e.byteLength||!a(new Q8(t),new Q8(e)));case GPr:case zPr:case HPr:return bD(+t,+e);case qPr:return t.name==e.name&&t.message==e.message;case YPr:case KPr:return t==e+"";case VPr:var o=BPr;case WPr:var l=n&UPr;if(o||(o=Lhe),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;n|=$Pr,s.set(t,e);var d=ZKe(o(t),o(e),n,i,a,s);return s.delete(t),d;case jPr:if(OX)return OX.call(t)==OX.call(e)}return!1}q(tje,"equalByTag");var ZPr=tje,JPr=1,e6r=Object.prototype,t6r=e6r.hasOwnProperty;function rje(t,e,r,n,i,a){var s=r&JPr,o=Nre(t),l=o.length,u=Nre(e),d=u.length;if(l!=d&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in e:t6r.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var _=s;++h<l;){f=o[h];var v=t[f],y=e[f];if(n)var b=s?n(y,v,f,e,t,a):n(v,y,f,t,e,a);if(!(b===void 0?v===y||i(v,y,r,n,a):b)){m=!1;break}_||(_=f=="constructor")}if(m&&!_){var E=t.constructor,S=e.constructor;E!=S&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(t),a.delete(e),m}q(rje,"equalObjects");var r6r=rje,n6r=1,kOe="[object Arguments]",DOe="[object Array]",XL="[object Object]",i6r=Object.prototype,MOe=i6r.hasOwnProperty;function nje(t,e,r,n,i,a){var s=pa(t),o=pa(e),l=s?DOe:$A(t),u=o?DOe:$A(e);l=l==kOe?XL:l,u=u==kOe?XL:u;var d=l==XL,h=u==XL,f=l==u;if(f&&d3(t)){if(!d3(e))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new FN),s||Che(t)?ZKe(t,e,r,n,i,a):ZPr(t,e,l,r,n,i,a);if(!(r&n6r)){var p=d&&MOe.call(t,"__wrapped__"),g=h&&MOe.call(e,"__wrapped__");if(p||g){var m=p?t.value():t,_=g?e.value():e;return a||(a=new FN),i(m,_,r,n,a)}}return f?(a||(a=new FN),r6r(t,e,r,n,i,a)):!1}q(nje,"baseIsEqualDeep");var a6r=nje;function Phe(t,e,r,n,i){return t===e?!0:t==null||e==null||!tp(t)&&!tp(e)?t!==t&&e!==e:a6r(t,e,r,n,Phe,i)}q(Phe,"baseIsEqual");var ije=Phe,s6r=1,o6r=2;function aje(t,e,r,n){var i=r.length,a=i,s=!n;if(t==null)return!a;for(t=Object(t);i--;){var o=r[i];if(s&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<a;){o=r[i];var l=o[0],u=t[l],d=o[1];if(s&&o[2]){if(u===void 0&&!(l in t))return!1}else{var h=new FN;if(n)var f=n(u,d,l,t,e,h);if(!(f===void 0?ije(d,u,s6r|o6r,n,h):f))return!1}}return!0}q(aje,"baseIsMatch");var l6r=aje;function sje(t){return t===t&&!Wh(t)}q(sje,"isStrictComparable");var oje=sje;function lje(t){for(var e=Yd(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,oje(i)]}return e}q(lje,"getMatchData");var c6r=lje;function cje(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}q(cje,"matchesStrictComparable");var uje=cje;function dje(t){var e=c6r(t);return e.length==1&&e[0][2]?uje(e[0][0],e[0][1]):function(r){return r===t||l6r(r,t,e)}}q(dje,"baseMatches");var u6r=dje;function hje(t,e){return t!=null&&e in Object(t)}q(hje,"baseHasIn");var d6r=hje;function fje(t,e,r){e=cG(e,t);for(var n=-1,i=e.length,a=!1;++n<i;){var s=CD(e[n]);if(!(a=t!=null&&r(t,s)))break;t=t[s]}return a||++n!=i?a:(i=t==null?0:t.length,!!i&&The(i)&&J$(s,i)&&(pa(t)||rG(t)))}q(fje,"hasPath");var pje=fje;function gje(t,e){return t!=null&&pje(t,e,d6r)}q(gje,"hasIn");var h6r=gje,f6r=1,p6r=2;function mje(t,e){return whe(t)&&oje(e)?uje(CD(t),e):function(r){var n=HMr(r,t);return n===void 0&&n===e?h6r(r,t):ije(e,n,f6r|p6r)}}q(mje,"baseMatchesProperty");var g6r=mje;function _je(t){return function(e){return e?.[t]}}q(_je,"baseProperty");var m6r=_je;function vje(t){return function(e){return xhe(e,t)}}q(vje,"basePropertyDeep");var _6r=vje;function yje(t){return whe(t)?m6r(CD(t)):_6r(t)}q(yje,"property");var v6r=yje;function bje(t){return typeof t=="function"?t:t==null?UA:typeof t=="object"?pa(t)?g6r(t[0],t[1]):u6r(t):v6r(t)}q(bje,"baseIteratee");var Bg=bje;function Eje(t,e,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;){var s=t[i];e(n,s,r(s),t)}return n}q(Eje,"arrayAggregator");var y6r=Eje;function Sje(t){return function(e,r,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[t?o:++i];if(r(a[l],l,a)===!1)break}return e}}q(Sje,"createBaseFor");var b6r=Sje,E6r=b6r(),S6r=E6r;function Tje(t,e){return t&&S6r(t,e,Yd)}q(Tje,"baseForOwn");var T6r=Tje;function Cje(t,e){return function(r,n){if(r==null)return r;if(!Fg(r))return t(r,n);for(var i=r.length,a=e?i:-1,s=Object(r);(e?a--:++a<i)&&n(s[a],a,s)!==!1;);return r}}q(Cje,"createBaseEach");var C6r=Cje,w6r=C6r(T6r),BE=w6r;function wje(t,e,r,n){return BE(t,function(i,a,s){e(n,i,r(i),s)}),n}q(wje,"baseAggregator");var x6r=wje;function xje(t,e){return function(r,n){var i=pa(r)?y6r:x6r,a=e?e():{};return i(r,t,Bg(n),a)}}q(xje,"createAggregator");var A6r=xje,Aje=Object.prototype,R6r=Aje.hasOwnProperty,O6r=She(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&tG(e[0],e[1],i)&&(n=1);++r<n;)for(var a=e[r],s=nG(a),o=-1,l=s.length;++o<l;){var u=s[o],d=t[u];(d===void 0||bD(d,Aje[u])&&!R6r.call(t,u))&&(t[u]=a[u])}return t}),Fhe=O6r;function Rje(t){return tp(t)&&Fg(t)}q(Rje,"isArrayLikeObject");var LOe=Rje;function Oje(t,e,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}q(Oje,"arrayIncludesWith");var Ije=Oje,I6r=200;function Nje(t,e,r,n){var i=-1,a=rWe,s=!0,o=t.length,l=[],u=e.length;if(!o)return l;r&&(e=vD(e,TD(r))),n?(a=Ije,s=!1):e.length>=I6r&&(a=Mhe,s=!1,e=new Dhe(e));e:for(;++i<o;){var d=t[i],h=r==null?d:r(d);if(d=n||d!==0?d:0,s&&h===h){for(var f=u;f--;)if(e[f]===h)continue e;l.push(d)}else a(e,h,n)||l.push(d)}return l}q(Nje,"baseDifference");var N6r=Nje,k6r=She(function(t,e){return LOe(t)?N6r(t,Ohe(e,1,LOe,!0)):[]}),uG=k6r;function kje(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}q(kje,"last");var Kb=kje;function Dje(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:yD(e),cKe(t,e<0?0:e,n)):[]}q(Dje,"drop");var ql=Dje;function Mje(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:yD(e),e=n-e,cKe(t,0,e<0?0:e)):[]}q(Mje,"dropRight");var g3=Mje;function Lje(t){return typeof t=="function"?t:UA}q(Lje,"castFunction");var D6r=Lje;function Pje(t,e){var r=pa(t)?jYe:BE;return r(t,D6r(e))}q(Pje,"forEach");var ri=Pje;function Fje(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}q(Fje,"arrayEvery");var M6r=Fje;function Bje(t,e){var r=!0;return BE(t,function(n,i,a){return r=!!e(n,i,a),r}),r}q(Bje,"baseEvery");var L6r=Bje;function Uje(t,e,r){var n=pa(t)?M6r:L6r;return r&&tG(t,e,r)&&(e=void 0),n(t,Bg(e))}q(Uje,"every");var Hf=Uje;function $je(t,e){var r=[];return BE(t,function(n,i,a){e(n,i,a)&&r.push(n)}),r}q($je,"baseFilter");var Gje=$je;function zje(t,e){var r=pa(t)?Ihe:Gje;return r(t,Bg(e))}q(zje,"filter");var ef=zje;function qje(t){return function(e,r,n){var i=Object(e);if(!Fg(e)){var a=Bg(r);e=Yd(e),r=q(function(o){return a(i[o],o,i)},"predicate")}var s=t(e,r,n);return s>-1?i[a?e[s]:s]:void 0}}q(qje,"createFind");var P6r=qje,F6r=Math.max;function Vje(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:yD(r);return i<0&&(i=F6r(n+i,0)),QYe(t,Bg(e),i)}q(Vje,"findIndex");var B6r=Vje,U6r=P6r(B6r),GA=U6r;function Hje(t){return t&&t.length?t[0]:void 0}q(Hje,"head");var rp=Hje;function Yje(t,e){var r=-1,n=Fg(t)?Array(t.length):[];return BE(t,function(i,a,s){n[++r]=e(i,a,s)}),n}q(Yje,"baseMap");var $6r=Yje;function Wje(t,e){var r=pa(t)?vD:$6r;return r(t,Bg(e))}q(Wje,"map");var kn=Wje;function Kje(t,e){return Ohe(kn(t,e),1)}q(Kje,"flatMap");var Fh=Kje,G6r=Object.prototype,z6r=G6r.hasOwnProperty,q6r=A6r(function(t,e,r){z6r.call(t,r)?t[r].push(e):Ehe(t,r,[e])}),V6r=q6r,H6r=Object.prototype,Y6r=H6r.hasOwnProperty;function jje(t,e){return t!=null&&Y6r.call(t,e)}q(jje,"baseHas");var W6r=jje;function Xje(t,e){return t!=null&&pje(t,e,W6r)}q(Xje,"has");var jn=Xje,K6r="[object String]";function Qje(t){return typeof t=="string"||!pa(t)&&tp(t)&&rv(t)==K6r}q(Qje,"isString");var id=Qje;function Zje(t,e){return vD(e,function(r){return t[r]})}q(Zje,"baseValues");var j6r=Zje;function Jje(t){return t==null?[]:j6r(t,Yd(t))}q(Jje,"values");var ll=Jje,X6r=Math.max;function eXe(t,e,r,n){t=Fg(t)?t:ll(t),r=r&&!n?yD(r):0;var i=t.length;return r<0&&(r=X6r(i+r,0)),id(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&bhe(t,e,r)>-1}q(eXe,"includes");var Ru=eXe,Q6r=Math.max;function tXe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:yD(r);return i<0&&(i=Q6r(n+i,0)),bhe(t,e,i)}q(tXe,"indexOf");var POe=tXe,Z6r="[object Map]",J6r="[object Set]",e9r=Object.prototype,t9r=e9r.hasOwnProperty;function rXe(t){if(t==null)return!0;if(Fg(t)&&(pa(t)||typeof t=="string"||typeof t.splice=="function"||d3(t)||Che(t)||rG(t)))return!t.length;var e=$A(t);if(e==Z6r||e==J6r)return!t.size;if(SD(t))return!RWe(t).length;for(var r in t)if(t9r.call(t,r))return!1;return!0}q(rXe,"isEmpty");var os=rXe,r9r="[object RegExp]";function nXe(t){return tp(t)&&rv(t)==r9r}q(nXe,"baseIsRegExp");var n9r=nXe,FOe=R1&&R1.isRegExp,i9r=FOe?TD(FOe):n9r,v0=i9r;function iXe(t){return t===void 0}q(iXe,"isUndefined");var y0=iXe,a9r="Expected a function";function aXe(t){if(typeof t!="function")throw new TypeError(a9r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}q(aXe,"negate");var s9r=aXe;function sXe(t,e,r,n){if(!Wh(t))return t;e=cG(e,t);for(var i=-1,a=e.length,s=a-1,o=t;o!=null&&++i<a;){var l=CD(e[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=s){var d=o[l];u=n?n(d,l,o):void 0,u===void 0&&(u=Wh(d)?d:J$(e[i+1])?[]:{})}eG(o,l,u),o=o[l]}return t}q(sXe,"baseSet");var o9r=sXe;function oXe(t,e,r){for(var n=-1,i=e.length,a={};++n<i;){var s=e[n],o=xhe(t,s);r(o,s)&&o9r(a,cG(s,t),o)}return a}q(oXe,"basePickBy");var l9r=oXe;function lXe(t,e){if(t==null)return{};var r=vD(IKe(t),function(n){return[n]});return e=Bg(e),l9r(t,r,function(n,i){return e(n,i[0])})}q(lXe,"pickBy");var lp=lXe;function cXe(t,e,r,n,i){return i(t,function(a,s,o){r=n?(n=!1,a):e(r,a,s,o)}),r}q(cXe,"baseReduce");var c9r=cXe;function uXe(t,e,r){var n=pa(t)?KMr:c9r,i=arguments.length<3;return n(t,Bg(e),r,i,BE)}q(uXe,"reduce");var Kd=uXe;function dXe(t,e){var r=pa(t)?Ihe:Gje;return r(t,s9r(Bg(e)))}q(dXe,"reject");var dG=dXe;function hXe(t,e){var r;return BE(t,function(n,i,a){return r=e(n,i,a),!r}),!!r}q(hXe,"baseSome");var u9r=hXe;function fXe(t,e,r){var n=pa(t)?jKe:u9r;return r&&tG(t,e,r)&&(e=void 0),n(t,Bg(e))}q(fXe,"some");var pXe=fXe,d9r=1/0,h9r=oC&&1/Lhe(new oC([,-0]))[1]==d9r?function(t){return new oC(t)}:rl,f9r=h9r,p9r=200;function gXe(t,e,r){var n=-1,i=rWe,a=t.length,s=!0,o=[],l=o;if(r)s=!1,i=Ije;else if(a>=p9r){var u=e?null:f9r(t);if(u)return Lhe(u);s=!1,i=Mhe,l=new Dhe}else l=e?[]:o;e:for(;++n<a;){var d=t[n],h=e?e(d):d;if(d=r||d!==0?d:0,s&&h===h){for(var f=l.length;f--;)if(l[f]===h)continue e;e&&l.push(h),o.push(d)}else i(l,h,r)||(l!==o&&l.push(h),o.push(d))}return o}q(gXe,"baseUniq");var g9r=gXe;function mXe(t){return t&&t.length?g9r(t):[]}q(mXe,"uniq");var Bhe=mXe;function Z8(t){console&&console.error&&console.error(`Error: ${t}`)}q(Z8,"PRINT_ERROR");function Uhe(t){console&&console.warn&&console.warn(`Warning: ${t}`)}q(Uhe,"PRINT_WARNING");function $he(t){const e=new Date().getTime(),r=t();return{time:new Date().getTime()-e,value:r}}q($he,"timer");function Ghe(t){function e(){}q(e,"FakeConstructor"),e.prototype=t;const r=new e;function n(){return typeof r.bar}return q(n,"fakeAccess"),n(),n(),t}q(Ghe,"toFastProperties");function _Xe(t){return vXe(t)?t.LABEL:t.name}q(_Xe,"tokenLabel");function vXe(t){return id(t.LABEL)&&t.LABEL!==""}q(vXe,"hasTokenLabel");var GC,Ug=(GC=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),ri(this.definition,r=>{r.accept(e)})}},q(GC,"AbstractProduction"),GC),zC,Eu=(zC=class extends Ug{constructor(e){super([]),this.idx=1,Wd(this,lp(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},q(zC,"NonTerminal"),zC),qC,qR=(qC=class extends Ug{constructor(e){super(e.definition),this.orgText="",Wd(this,lp(e,r=>r!==void 0))}},q(qC,"Rule"),qC),VC,ad=(VC=class extends Ug{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Wd(this,lp(e,r=>r!==void 0))}},q(VC,"Alternative"),VC),HC,nc=(HC=class extends Ug{constructor(e){super(e.definition),this.idx=1,Wd(this,lp(e,r=>r!==void 0))}},q(HC,"Option"),HC),YC,rh=(YC=class extends Ug{constructor(e){super(e.definition),this.idx=1,Wd(this,lp(e,r=>r!==void 0))}},q(YC,"RepetitionMandatory"),YC),WC,nh=(WC=class extends Ug{constructor(e){super(e.definition),this.idx=1,Wd(this,lp(e,r=>r!==void 0))}},q(WC,"RepetitionMandatoryWithSeparator"),WC),KC,lo=(KC=class extends Ug{constructor(e){super(e.definition),this.idx=1,Wd(this,lp(e,r=>r!==void 0))}},q(KC,"Repetition"),KC),jC,hd=(jC=class extends Ug{constructor(e){super(e.definition),this.idx=1,Wd(this,lp(e,r=>r!==void 0))}},q(jC,"RepetitionWithSeparator"),jC),XC,fd=(XC=class extends Ug{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Wd(this,lp(e,r=>r!==void 0))}},q(XC,"Alternation"),XC),QC,gs=(QC=class{constructor(e){this.idx=1,Wd(this,lp(e,r=>r!==void 0))}accept(e){e.visit(this)}},q(QC,"Terminal"),QC);function yXe(t){return kn(t,UN)}q(yXe,"serializeGrammar");function UN(t){function e(r){return kn(r,UN)}if(q(e,"convertDefinition"),t instanceof Eu){const r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return id(t.label)&&(r.label=t.label),r}else{if(t instanceof ad)return{type:"Alternative",definition:e(t.definition)};if(t instanceof nc)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof rh)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof nh)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:UN(new gs({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof hd)return{type:"RepetitionWithSeparator",idx:t.idx,separator:UN(new gs({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof lo)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof fd)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof gs){const r={type:"Terminal",name:t.terminalType.name,label:_Xe(t.terminalType),idx:t.idx};id(t.label)&&(r.terminalLabel=t.label);const n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=v0(n)?n.source:n),r}else{if(t instanceof qR)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}q(UN,"serializeProduction");var ZC,VR=(ZC=class{visit(e){const r=e;switch(r.constructor){case Eu:return this.visitNonTerminal(r);case ad:return this.visitAlternative(r);case nc:return this.visitOption(r);case rh:return this.visitRepetitionMandatory(r);case nh:return this.visitRepetitionMandatoryWithSeparator(r);case hd:return this.visitRepetitionWithSeparator(r);case lo:return this.visitRepetition(r);case fd:return this.visitAlternation(r);case gs:return this.visitTerminal(r);case qR:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}},q(ZC,"GAstVisitor"),ZC);function bXe(t){return t instanceof ad||t instanceof nc||t instanceof lo||t instanceof rh||t instanceof nh||t instanceof hd||t instanceof gs||t instanceof qR}q(bXe,"isSequenceProd");function m3(t,e=[]){return t instanceof nc||t instanceof lo||t instanceof hd?!0:t instanceof fd?pXe(t.definition,n=>m3(n,e)):t instanceof Eu&&Ru(e,t)?!1:t instanceof Ug?(t instanceof Eu&&e.push(t),Hf(t.definition,n=>m3(n,e))):!1}q(m3,"isOptionalProd");function EXe(t){return t instanceof fd}q(EXe,"isBranchingProd");function bf(t){if(t instanceof Eu)return"SUBRULE";if(t instanceof nc)return"OPTION";if(t instanceof fd)return"OR";if(t instanceof rh)return"AT_LEAST_ONE";if(t instanceof nh)return"AT_LEAST_ONE_SEP";if(t instanceof hd)return"MANY_SEP";if(t instanceof lo)return"MANY";if(t instanceof gs)return"CONSUME";throw Error("non exhaustive match")}q(bf,"getProductionDslName");var JC,hG=(JC=class{walk(e,r=[]){ri(e.definition,(n,i)=>{const a=ql(e.definition,i+1);if(n instanceof Eu)this.walkProdRef(n,a,r);else if(n instanceof gs)this.walkTerminal(n,a,r);else if(n instanceof ad)this.walkFlat(n,a,r);else if(n instanceof nc)this.walkOption(n,a,r);else if(n instanceof rh)this.walkAtLeastOne(n,a,r);else if(n instanceof nh)this.walkAtLeastOneSep(n,a,r);else if(n instanceof hd)this.walkManySep(n,a,r);else if(n instanceof lo)this.walkMany(n,a,r);else if(n instanceof fd)this.walkOr(n,a,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){const i=r.concat(n);this.walk(e,i)}walkOption(e,r,n){const i=r.concat(n);this.walk(e,i)}walkAtLeastOne(e,r,n){const i=[new nc({definition:e.definition})].concat(r,n);this.walk(e,i)}walkAtLeastOneSep(e,r,n){const i=Mre(e,r,n);this.walk(e,i)}walkMany(e,r,n){const i=[new nc({definition:e.definition})].concat(r,n);this.walk(e,i)}walkManySep(e,r,n){const i=Mre(e,r,n);this.walk(e,i)}walkOr(e,r,n){const i=r.concat(n);ri(e.definition,a=>{const s=new ad({definition:[a]});this.walk(s,i)})}},q(JC,"RestWalker"),JC);function Mre(t,e,r){return[new nc({definition:[new gs({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}q(Mre,"restForRepetitionWithSeparator");function HR(t){if(t instanceof Eu)return HR(t.referencedRule);if(t instanceof gs)return CXe(t);if(bXe(t))return SXe(t);if(EXe(t))return TXe(t);throw Error("non exhaustive match")}q(HR,"first");function SXe(t){let e=[];const r=t.definition;let n=0,i=r.length>n,a,s=!0;for(;i&&s;)a=r[n],s=m3(a),e=e.concat(HR(a)),n=n+1,i=r.length>n;return Bhe(e)}q(SXe,"firstForSequence");function TXe(t){const e=kn(t.definition,r=>HR(r));return Bhe(Vf(e))}q(TXe,"firstForBranching");function CXe(t){return[t.terminalType]}q(CXe,"firstForTerminal");var wXe="_~IN~_",e2,m9r=(e2=class extends hG{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,n){}walkProdRef(e,r,n){const i=AXe(e.referencedRule,e.idx)+this.topProd.name,a=r.concat(n),s=new ad({definition:a}),o=HR(s);this.follows[i]=o}},q(e2,"ResyncFollowsWalker"),e2);function xXe(t){const e={};return ri(t,r=>{const n=new m9r(r).startWalking();Wd(e,n)}),e}q(xXe,"computeAllProdsFollows");function AXe(t,e){return t.name+e+wXe}q(AXe,"buildBetweenProdsFollowPrefix");var x6={},_9r=new aYe;function xD(t){const e=t.toString();if(x6.hasOwnProperty(e))return x6[e];{const r=_9r.pattern(e);return x6[e]=r,r}}q(xD,"getRegExpAst");function RXe(){x6={}}q(RXe,"clearRegExpParserCache");var OXe="Complement Sets are not supported for first char optimization",J8=`Unable to use "first char" lexer optimizations:
`;function IXe(t,e=!1){try{const r=xD(t);return eF(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===OXe)e&&Uhe(`${J8}	Unable to optimize: < ${t.toString()} >
	Complement Sets cannot be automatically optimized.
	This will disable the lexer's first char optimizations.
	See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";e&&(n=`
	This will disable the lexer's first char optimizations.
	See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Z8(`${J8}
	Failed parsing: < ${t.toString()} >
	Using the @chevrotain/regexp-to-ast library
	Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}q(IXe,"getOptimizedStartCodesIndices");function eF(t,e,r){switch(t.type){case"Disjunction":for(let i=0;i<t.value.length;i++)eF(t.value[i],e,r);break;case"Alternative":const n=t.value;for(let i=0;i<n.length;i++){const a=n[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const s=a;switch(s.type){case"Character":zI(s.value,e,r);break;case"Set":if(s.complement===!0)throw Error(OXe);ri(s.value,l=>{if(typeof l=="number")zI(l,e,r);else{const u=l;if(r===!0)for(let d=u.from;d<=u.to;d++)zI(d,e,r);else{for(let d=u.from;d<=u.to&&d<VI;d++)zI(d,e,r);if(u.to>=VI){const d=u.from>=VI?u.from:VI,h=u.to,f=b0(d),p=b0(h);for(let g=f;g<=p;g++)e[g]=g}}}});break;case"Group":eF(s.value,e,r);break;default:throw Error("Non Exhaustive Match")}const o=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&tF(s)===!1||s.type!=="Group"&&o===!1)break}break;default:throw Error("non exhaustive match!")}return ll(e)}q(eF,"firstCharOptimizedIndices");function zI(t,e,r){const n=b0(t);e[n]=n,r===!0&&NXe(t,e)}q(zI,"addOptimizedIdxToResult");function NXe(t,e){const r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){const i=b0(n.charCodeAt(0));e[i]=i}else{const i=r.toLowerCase();if(i!==r){const a=b0(i.charCodeAt(0));e[a]=a}}}q(NXe,"handleIgnoreCase");function Lre(t,e){return GA(t.value,r=>{if(typeof r=="number")return Ru(e,r);{const n=r;return GA(e,i=>n.from<=i&&i<=n.to)!==void 0}})}q(Lre,"findCode");function tF(t){const e=t.quantifier;return e&&e.atLeast===0?!0:t.value?pa(t.value)?Hf(t.value,tF):tF(t.value):!1}q(tF,"isWholeOptional");var t2,v9r=(t2=class extends H${constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){Ru(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?Lre(e,this.targetCharCodes)===void 0&&(this.found=!0):Lre(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},q(t2,"CharCodeFinder"),t2);function fG(t,e){if(e instanceof RegExp){const r=xD(e),n=new v9r(t);return n.visit(r),n.found}else return GA(e,r=>Ru(t,r.charCodeAt(0)))!==void 0}q(fG,"canMatchCharCode");var jb="PATTERN",qI="defaultMode",QL="modes",kXe=typeof new RegExp("(?:)").sticky=="boolean";function DXe(t,e){e=Fhe(e,{useSticky:kXe,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
`],tracer:q((y,b)=>b(),"tracer")});const r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{eQe()});let n;r("Reject Lexer.NA",()=>{n=dG(t,y=>y[jb]===mu.NA)});let i=!1,a;r("Transform Patterns",()=>{i=!1,a=kn(n,y=>{const b=y[jb];if(v0(b)){const E=b.source;return E.length===1&&E!=="^"&&E!=="$"&&E!=="."&&!b.ignoreCase?E:E.length===2&&E[0]==="\\"&&!Ru(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],E[1])?E[1]:e.useSticky?Fre(b):Pre(b)}else{if(H0(b))return i=!0,{exec:b};if(typeof b=="object")return i=!0,b;if(typeof b=="string"){if(b.length===1)return b;{const E=b.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),S=new RegExp(E);return e.useSticky?Fre(S):Pre(S)}}else throw Error("non exhaustive match")}})});let s,o,l,u,d;r("misc mapping",()=>{s=kn(n,y=>y.tokenTypeIdx),o=kn(n,y=>{const b=y.GROUP;if(b!==mu.SKIPPED){if(id(b))return b;if(y0(b))return!1;throw Error("non exhaustive match")}}),l=kn(n,y=>{const b=y.LONGER_ALT;if(b)return pa(b)?kn(b,S=>POe(n,S)):[POe(n,b)]}),u=kn(n,y=>y.PUSH_MODE),d=kn(n,y=>jn(y,"POP_MODE"))});let h;r("Line Terminator Handling",()=>{const y=Vhe(e.lineTerminatorCharacters);h=kn(n,b=>!1),e.positionTracking!=="onlyOffset"&&(h=kn(n,b=>jn(b,"LINE_BREAKS")?!!b.LINE_BREAKS:qhe(b,y)===!1&&fG(y,b.PATTERN)))});let f,p,g,m;r("Misc Mapping #2",()=>{f=kn(n,zhe),p=kn(a,ZXe),g=Kd(n,(y,b)=>{const E=b.GROUP;return id(E)&&E!==mu.SKIPPED&&(y[E]=[]),y},{}),m=kn(a,(y,b)=>({pattern:a[b],longerAlt:l[b],canLineTerminator:h[b],isCustom:f[b],short:p[b],group:o[b],push:u[b],pop:d[b],tokenTypeIdx:s[b],tokenType:n[b]}))});let _=!0,v=[];return e.safeMode||r("First Char Optimization",()=>{v=Kd(n,(y,b,E)=>{if(typeof b.PATTERN=="string"){const S=b.PATTERN.charCodeAt(0),T=b0(S);A6(y,T,m[E])}else if(pa(b.START_CHARS_HINT)){let S;ri(b.START_CHARS_HINT,T=>{const C=typeof T=="string"?T.charCodeAt(0):T,x=b0(C);S!==x&&(S=x,A6(y,x,m[E]))})}else if(v0(b.PATTERN))if(b.PATTERN.unicode)_=!1,e.ensureOptimizations&&Z8(`${J8}	Unable to analyze < ${b.PATTERN.toString()} > pattern.
	The regexp unicode flag is not currently supported by the regexp-to-ast library.
	This will disable the lexer's first char optimizations.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const S=IXe(b.PATTERN,e.ensureOptimizations);os(S)&&(_=!1),ri(S,T=>{A6(y,T,m[E])})}else e.ensureOptimizations&&Z8(`${J8}	TokenType: <${b.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
	This will disable the lexer's first char optimizations.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return y},[])}),{emptyGroups:g,patternIdxToConfig:m,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}q(DXe,"analyzeTokenTypes");function MXe(t,e){let r=[];const n=PXe(t);r=r.concat(n.errors);const i=FXe(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(LXe(a)),r=r.concat(qXe(a)),r=r.concat(VXe(a,e)),r=r.concat(HXe(a)),r}q(MXe,"validatePatterns");function LXe(t){let e=[];const r=ef(t,n=>v0(n[jb]));return e=e.concat(BXe(r)),e=e.concat($Xe(r)),e=e.concat(GXe(r)),e=e.concat(zXe(r)),e=e.concat(UXe(r)),e}q(LXe,"validateRegExpPattern");function PXe(t){const e=ef(t,i=>!jn(i,jb)),r=kn(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:co.MISSING_PATTERN,tokenTypes:[i]})),n=uG(t,e);return{errors:r,valid:n}}q(PXe,"findMissingPatterns");function FXe(t){const e=ef(t,i=>{const a=i[jb];return!v0(a)&&!H0(a)&&!jn(a,"exec")&&!id(a)}),r=kn(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:co.INVALID_PATTERN,tokenTypes:[i]})),n=uG(t,e);return{errors:r,valid:n}}q(FXe,"findInvalidPatterns");var y9r=/[^\\][$]/;function BXe(t){const i=class i extends H${constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}};q(i,"EndAnchorFinder");let e=i;const r=ef(t,a=>{const s=a.PATTERN;try{const o=xD(s),l=new e;return l.visit(o),l.found}catch{return y9r.test(s.source)}});return kn(r,a=>({message:`Unexpected RegExp Anchor Error:
	Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
	See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.`,type:co.EOI_ANCHOR_FOUND,tokenTypes:[a]}))}q(BXe,"findEndOfInputAnchor");function UXe(t){const e=ef(t,n=>n.PATTERN.test(""));return kn(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:co.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}q(UXe,"findEmptyMatchRegExps");var b9r=/[^\\[][\^]|^\^/;function $Xe(t){const i=class i extends H${constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}};q(i,"StartAnchorFinder");let e=i;const r=ef(t,a=>{const s=a.PATTERN;try{const o=xD(s),l=new e;return l.visit(o),l.found}catch{return b9r.test(s.source)}});return kn(r,a=>({message:`Unexpected RegExp Anchor Error:
	Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
	See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.`,type:co.SOI_ANCHOR_FOUND,tokenTypes:[a]}))}q($Xe,"findStartOfInputAnchor");function GXe(t){const e=ef(t,n=>{const i=n[jb];return i instanceof RegExp&&(i.multiline||i.global)});return kn(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:co.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}q(GXe,"findUnsupportedFlags");function zXe(t){const e=[];let r=kn(t,a=>Kd(t,(s,o)=>(a.PATTERN.source===o.PATTERN.source&&!Ru(e,o)&&o.PATTERN!==mu.NA&&(e.push(o),s.push(o)),s),[]));r=wD(r);const n=ef(r,a=>a.length>1);return kn(n,a=>{const s=kn(a,l=>l.name);return{message:`The same RegExp pattern ->${rp(a).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,type:co.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}})}q(zXe,"findDuplicatePatterns");function qXe(t){const e=ef(t,n=>{if(!jn(n,"GROUP"))return!1;const i=n.GROUP;return i!==mu.SKIPPED&&i!==mu.NA&&!id(i)});return kn(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:co.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}q(qXe,"findInvalidGroupType");function VXe(t,e){const r=ef(t,i=>i.PUSH_MODE!==void 0&&!Ru(e,i.PUSH_MODE));return kn(r,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:co.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}q(VXe,"findModesThatDoNotExist");function HXe(t){const e=[],r=Kd(t,(n,i,a)=>{const s=i.PATTERN;return s===mu.NA||(id(s)?n.push({str:s,idx:a,tokenType:i}):v0(s)&&WXe(s)&&n.push({str:s.source,idx:a,tokenType:i})),n},[]);return ri(t,(n,i)=>{ri(r,({str:a,idx:s,tokenType:o})=>{if(i<s&&YXe(a,n.PATTERN)){const l=`Token: ->${o.name}<- can never be matched.
Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:l,type:co.UNREACHABLE_PATTERN,tokenTypes:[n,o]})}})}),e}q(HXe,"findUnreachablePatterns");function YXe(t,e){if(v0(e)){if(KXe(e))return!1;const r=e.exec(t);return r!==null&&r.index===0}else{if(H0(e))return e(t,0,[],{});if(jn(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}q(YXe,"tryToMatchStrToPattern");function WXe(t){return GA([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>t.source.indexOf(r)!==-1)===void 0}q(WXe,"noMetaChar");function KXe(t){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(t.source)}q(KXe,"usesLookAheadOrBehind");function Pre(t){const e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}q(Pre,"addStartOfInput");function Fre(t){const e=t.ignoreCase?"iy":"y";return new RegExp(`${t.source}`,e)}q(Fre,"addStickyFlag");function jXe(t,e,r){const n=[];return jn(t,qI)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+qI+`> property in its definition
`,type:co.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),jn(t,QL)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+QL+`> property in its definition
`,type:co.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),jn(t,QL)&&jn(t,qI)&&!jn(t.modes,t.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${qI}: <${t.defaultMode}>which does not exist
`,type:co.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),jn(t,QL)&&ri(t.modes,(i,a)=>{ri(i,(s,o)=>{if(y0(s))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${a}> at index: <${o}>
`,type:co.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(jn(s,"LONGER_ALT")){const l=pa(s.LONGER_ALT)?s.LONGER_ALT:[s.LONGER_ALT];ri(l,u=>{!y0(u)&&!Ru(i,u)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${s.name}> outside of mode <${a}>
`,type:co.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}q(jXe,"performRuntimeChecks");function XXe(t,e,r){const n=[];let i=!1;const a=wD(Vf(ll(t.modes))),s=dG(a,l=>l[jb]===mu.NA),o=Vhe(r);return e&&ri(s,l=>{const u=qhe(l,o);if(u!==!1){const h={message:JXe(l,u),type:u.issue,tokenType:l};n.push(h)}else jn(l,"LINE_BREAKS")?l.LINE_BREAKS===!0&&(i=!0):fG(o,l.PATTERN)&&(i=!0)}),e&&!i&&n.push({message:`Warning: No LINE_BREAKS Found.
	This Lexer has been defined to track line and column information,
	But none of the Token Types can be identified as matching a line terminator.
	See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS 
	for details.`,type:co.NO_LINE_BREAKS_FLAGS}),n}q(XXe,"performWarningRuntimeChecks");function QXe(t){const e={},r=Yd(t);return ri(r,n=>{const i=t[n];if(pa(i))e[n]=[];else throw Error("non exhaustive match")}),e}q(QXe,"cloneEmptyGroups");function zhe(t){const e=t.PATTERN;if(v0(e))return!1;if(H0(e))return!0;if(jn(e,"exec"))return!0;if(id(e))return!1;throw Error("non exhaustive match")}q(zhe,"isCustomPattern");function ZXe(t){return id(t)&&t.length===1?t.charCodeAt(0):!1}q(ZXe,"isShortPattern");var E9r={test:q(function(t){const e=t.length;for(let r=this.lastIndex;r<e;r++){const n=t.charCodeAt(r);if(n===10)return this.lastIndex=r+1,!0;if(n===13)return t.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};function qhe(t,e){if(jn(t,"LINE_BREAKS"))return!1;if(v0(t.PATTERN)){try{fG(e,t.PATTERN)}catch(r){return{issue:co.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(id(t.PATTERN))return!1;if(zhe(t))return{issue:co.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}q(qhe,"checkLineBreaksIssues");function JXe(t,e){if(e.issue===co.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
	The problem is in the <${t.name}> Token Type
	 Root cause: ${e.errMsg}.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===co.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
	The problem is in the <${t.name}> Token Type
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}q(JXe,"buildLineBreakIssueMessage");function Vhe(t){return kn(t,r=>id(r)?r.charCodeAt(0):r)}q(Vhe,"getCharCodes");function A6(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}q(A6,"addToMapOfArrays");var VI=256,R6=[];function b0(t){return t<VI?t:R6[t]}q(b0,"charCodeToOptimizedIndex");function eQe(){if(os(R6)){R6=new Array(65536);for(let t=0;t<65536;t++)R6[t]=t>255?255+~~(t/255):t}}q(eQe,"initCharCodeToOptimizedIndexMap");function YR(t,e){const r=t.tokenTypeIdx;return r===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[r]===!0}q(YR,"tokenStructuredMatcher");function _3(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}q(_3,"tokenStructuredMatcherNoCategories");var BOe=1,tQe={};function WR(t){const e=rQe(t);nQe(e),aQe(e),iQe(e),ri(e,r=>{r.isParent=r.categoryMatches.length>0})}q(WR,"augmentTokenTypes");function rQe(t){let e=sc(t),r=t,n=!0;for(;n;){r=wD(Vf(kn(r,a=>a.CATEGORIES)));const i=uG(r,e);e=e.concat(i),os(i)?n=!1:r=i}return e}q(rQe,"expandCategories");function nQe(t){ri(t,e=>{Yhe(e)||(tQe[BOe]=e,e.tokenTypeIdx=BOe++),Bre(e)&&!pa(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Bre(e)||(e.CATEGORIES=[]),sQe(e)||(e.categoryMatches=[]),oQe(e)||(e.categoryMatchesMap={})})}q(nQe,"assignTokenDefaultProps");function iQe(t){ri(t,e=>{e.categoryMatches=[],ri(e.categoryMatchesMap,(r,n)=>{e.categoryMatches.push(tQe[n].tokenTypeIdx)})})}q(iQe,"assignCategoriesTokensProp");function aQe(t){ri(t,e=>{Hhe([],e)})}q(aQe,"assignCategoriesMapProp");function Hhe(t,e){ri(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),ri(e.CATEGORIES,r=>{const n=t.concat(e);Ru(n,r)||Hhe(n,r)})}q(Hhe,"singleAssignCategoriesToksMap");function Yhe(t){return jn(t,"tokenTypeIdx")}q(Yhe,"hasShortKeyProperty");function Bre(t){return jn(t,"CATEGORIES")}q(Bre,"hasCategoriesProperty");function sQe(t){return jn(t,"categoryMatches")}q(sQe,"hasExtendingTokensTypesProperty");function oQe(t){return jn(t,"categoryMatchesMap")}q(oQe,"hasExtendingTokensTypesMapProperty");function lQe(t){return jn(t,"tokenTypeIdx")}q(lQe,"isTokenType");var Ure={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,n,i,a){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}},co;(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(co||(co={}));var HI={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Ure,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(HI);var r2,mu=(r2=class{constructor(e,r=HI){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const s=new Array(this.traceInitIndent+1).join("	");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${i}>`);const{time:o,value:l}=$he(a),u=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&u(`${s}<-- <${i}> time: ${o}ms`),this.traceInitIndent--,l}else return a()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
a boolean 2nd argument is no longer supported`);this.config=Wd({},HI,r);const n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===HI.lineTerminatorsPattern)this.config.lineTerminatorsPattern=E9r;else if(this.config.lineTerminatorCharacters===HI.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),pa(e)?i={modes:{defaultMode:sc(e)},defaultMode:qI}:(a=!1,i=sc(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(jXe(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(XXe(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},ri(i.modes,(o,l)=>{i.modes[l]=dG(o,u=>y0(u))});const s=Yd(i.modes);if(ri(i.modes,(o,l)=>{this.TRACE_INIT(`Mode: <${l}> processing`,()=>{if(this.modes.push(l),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(MXe(o,s))}),os(this.lexerDefinitionErrors)){WR(o);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=DXe(o,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=u.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=u.charCodeToPatternIdxToConfig,this.emptyGroups=Wd({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=i.defaultMode,!os(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const l=kn(this.lexerDefinitionErrors,u=>u.message).join(`-----------------------
`);throw new Error(`Errors detected in definition of Lexer:
`+l)}ri(this.lexerDefinitionWarning,o=>{Uhe(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(kXe?(this.chopInput=UA,this.match=this.matchWithTest):(this.updateLastIndex=rl,this.match=this.matchWithExec),a&&(this.handleModes=rl),this.trackStartLines===!1&&(this.computeNewColumn=UA),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=rl),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const o=Kd(this.canModeBeOptimized,(l,u,d)=>(u===!1&&l.push(d),l),[]);if(r.ensureOptimizations&&!os(o))throw Error(`Lexer Modes: < ${o.join(", ")} > cannot be optimized.
	 Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
	 Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{RXe()}),this.TRACE_INIT("toFastProperties",()=>{Ghe(this)})})}tokenize(e,r=this.defaultMode){if(!os(this.lexerDefinitionErrors)){const i=kn(this.lexerDefinitionErrors,a=>a.message).join(`-----------------------
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
`+i)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let n,i,a,s,o,l,u,d,h,f,p,g,m,_,v;const y=e,b=y.length;let E=0,S=0;const T=this.hasCustom?0:Math.floor(e.length/10),C=new Array(T),x=[];let A=this.trackStartLines?1:void 0,R=this.trackStartLines?1:void 0;const I=QXe(this.emptyGroups),L=this.trackStartLines,F=this.config.lineTerminatorsPattern;let O=0,D=[],M=[];const P=[],N=[];Object.freeze(N);let $;function U(){return D}q(U,"getPossiblePatternsSlow");function B(W){const Q=b0(W),ie=M[Q];return ie===void 0?N:ie}q(B,"getPossiblePatternsOptimized");const V=q(W=>{if(P.length===1&&W.tokenType.PUSH_MODE===void 0){const Q=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(W);x.push({offset:W.startOffset,line:W.startLine,column:W.startColumn,length:W.image.length,message:Q})}else{P.pop();const Q=Kb(P);D=this.patternIdxToConfig[Q],M=this.charCodeToPatternIdxToConfig[Q],O=D.length;const ie=this.canModeBeOptimized[Q]&&this.config.safeMode===!1;M&&ie?$=B:$=U}},"pop_mode");function z(W){P.push(W),M=this.charCodeToPatternIdxToConfig[W],D=this.patternIdxToConfig[W],O=D.length,O=D.length;const Q=this.canModeBeOptimized[W]&&this.config.safeMode===!1;M&&Q?$=B:$=U}q(z,"push_mode"),z.call(this,r);let G;const Y=this.config.recoveryEnabled;for(;E<b;){l=null;const W=y.charCodeAt(E),Q=$(W),ie=Q.length;for(n=0;n<ie;n++){G=Q[n];const Z=G.pattern;u=null;const re=G.short;if(re!==!1?W===re&&(l=Z):G.isCustom===!0?(v=Z.exec(y,E,C,I),v!==null?(l=v[0],v.payload!==void 0&&(u=v.payload)):l=null):(this.updateLastIndex(Z,E),l=this.match(Z,e,E)),l!==null){if(o=G.longerAlt,o!==void 0){const K=o.length;for(a=0;a<K;a++){const j=D[o[a]],se=j.pattern;if(d=null,j.isCustom===!0?(v=se.exec(y,E,C,I),v!==null?(s=v[0],v.payload!==void 0&&(d=v.payload)):s=null):(this.updateLastIndex(se,E),s=this.match(se,e,E)),s&&s.length>l.length){l=s,u=d,G=j;break}}}break}}if(l!==null){if(h=l.length,f=G.group,f!==void 0&&(p=G.tokenTypeIdx,g=this.createTokenInstance(l,E,p,G.tokenType,A,R,h),this.handlePayload(g,u),f===!1?S=this.addToken(C,S,g):I[f].push(g)),e=this.chopInput(e,h),E=E+h,R=this.computeNewColumn(R,h),L===!0&&G.canLineTerminator===!0){let Z=0,re,K;F.lastIndex=0;do re=F.test(l),re===!0&&(K=F.lastIndex-1,Z++);while(re===!0);Z!==0&&(A=A+Z,R=h-K,this.updateTokenEndLineColumnLocation(g,f,K,Z,A,R,h))}this.handleModes(G,V,z,g)}else{const Z=E,re=A,K=R;let j=Y===!1;for(;j===!1&&E<b;)for(e=this.chopInput(e,1),E++,i=0;i<O;i++){const se=D[i],le=se.pattern,_e=se.short;if(_e!==!1?y.charCodeAt(E)===_e&&(j=!0):se.isCustom===!0?j=le.exec(y,E,C,I)!==null:(this.updateLastIndex(le,E),j=le.exec(e)!==null),j===!0)break}if(m=E-Z,R=this.computeNewColumn(R,m),_=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(y,Z,m,re,K,Kb(P)),x.push({offset:Z,line:re,column:K,length:m,message:_}),Y===!1)break}}return this.hasCustom||(C.length=S),{tokens:C,groups:I,errors:x}}handleModes(e,r,n,i){if(e.pop===!0){const a=e.push;r(i),a!==void 0&&n.call(this,a)}else e.push!==void 0&&n.call(this,e.push)}chopInput(e,r){return e.substring(r)}updateLastIndex(e,r){e.lastIndex=r}updateTokenEndLineColumnLocation(e,r,n,i,a,s,o){let l,u;r!==void 0&&(l=n===o-1,u=l?-1:0,i===1&&l===!0||(e.endLine=a+u,e.endColumn=s-1+-u))}computeNewColumn(e,r){return e+r}createOffsetOnlyToken(e,r,n,i){return{image:e,startOffset:r,tokenTypeIdx:n,tokenType:i}}createStartOnlyToken(e,r,n,i,a,s){return{image:e,startOffset:r,startLine:a,startColumn:s,tokenTypeIdx:n,tokenType:i}}createFullToken(e,r,n,i,a,s,o){return{image:e,startOffset:r,endOffset:r+o-1,startLine:a,endLine:a,startColumn:s,endColumn:s+o-1,tokenTypeIdx:n,tokenType:i}}addTokenUsingPush(e,r,n){return e.push(n),r}addTokenUsingMemberAccess(e,r,n){return e[r]=n,r++,r}handlePayloadNoCustom(e,r){}handlePayloadWithCustom(e,r){r!==null&&(e.payload=r)}matchWithTest(e,r,n){return e.test(r)===!0?r.substring(n,e.lastIndex):null}matchWithExec(e,r){const n=e.exec(r);return n!==null?n[0]:null}},q(r2,"Lexer"),r2);mu.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";mu.NA=/NOT_APPLICABLE/;function lb(t){return Whe(t)?t.LABEL:t.name}q(lb,"tokenLabel");function Whe(t){return id(t.LABEL)&&t.LABEL!==""}q(Whe,"hasTokenLabel");var S9r="parent",UOe="categories",$Oe="label",GOe="group",zOe="push_mode",qOe="pop_mode",VOe="longer_alt",HOe="line_breaks",YOe="start_chars_hint";function lC(t){return cQe(t)}q(lC,"createToken");function cQe(t){const e=t.pattern,r={};if(r.name=t.name,y0(e)||(r.PATTERN=e),jn(t,S9r))throw`The parent property is no longer supported.
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return jn(t,UOe)&&(r.CATEGORIES=t[UOe]),WR([r]),jn(t,$Oe)&&(r.LABEL=t[$Oe]),jn(t,GOe)&&(r.GROUP=t[GOe]),jn(t,qOe)&&(r.POP_MODE=t[qOe]),jn(t,zOe)&&(r.PUSH_MODE=t[zOe]),jn(t,VOe)&&(r.LONGER_ALT=t[VOe]),jn(t,HOe)&&(r.LINE_BREAKS=t[HOe]),jn(t,YOe)&&(r.START_CHARS_HINT=t[YOe]),r}q(cQe,"createTokenInternal");var O1=lC({name:"EOF",pattern:mu.NA});WR([O1]);function AD(t,e,r,n,i,a,s,o){return{image:e,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}q(AD,"createTokenInstance");function Khe(t,e){return YR(t,e)}q(Khe,"tokenMatcher");var IT={buildMismatchTokenMessage({expected:t,actual:e,previous:r,ruleName:n}){return`Expecting ${Whe(t)?`--> ${lb(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:r,customUserDescription:n,ruleName:i}){const a="Expecting: ",o=`
but found: '`+rp(e).image+"'";if(n)return a+n+o;{const l=Kd(t,(f,p)=>f.concat(p),[]),u=kn(l,f=>`[${kn(f,p=>lb(p)).join(", ")}]`),h=`one of these possible Token sequences:
${kn(u,(f,p)=>`  ${p+1}. ${f}`).join(`
`)}`;return a+h+o}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r,ruleName:n}){const i="Expecting: ",s=`
but found: '`+rp(e).image+"'";if(r)return i+r+s;{const l=`expecting at least one iteration which starts with one of these possible Token sequences::
  <${kn(t,u=>`[${kn(u,d=>lb(d)).join(",")}]`).join(" ,")}>`;return i+l+s}}};Object.freeze(IT);var T9r={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
inside top level rule: ->`+t.name+"<-"}},Gy={buildDuplicateFoundError(t,e){function r(d){return d instanceof gs?d.terminalType.name:d instanceof Eu?d.nonTerminalName:""}q(r,"getExtraProductionArgument");const n=t.name,i=rp(e),a=i.idx,s=bf(i),o=r(i),l=a>0;let u=`->${s}${l?a:""}<- ${o?`with argument: ->${o}<-`:""}
                  appears more than once (${e.length} times) in the top level rule: ->${n}<-.                  
                  For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES 
                  `;return u=u.replace(/[ \t]+/g," "),u=u.replace(/\s\s+/g,`
`),u},buildNamespaceConflictError(t){return`Namespace conflict found in grammar.
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>.
To resolve this make sure each Terminal and Non-Terminal names are unique
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){const e=kn(t.prefixPath,i=>lb(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix
in <OR${r}> inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
For Further details.`},buildAlternationAmbiguityError(t){const e=kn(t.prefixPath,i=>lb(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives.
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,n},buildEmptyRepetitionError(t){let e=bf(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens.
This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in <OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives:
<OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
 has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){const e=t.topLevelRule.name,r=kn(t.leftRecursionPath,a=>a.name),n=`${e} --> ${r.concat([e]).join(" --> ")}`;return`Left Recursion found in grammar.
rule: <${e}> can be invoked from itself (directly or indirectly)
without consuming any Tokens. The grammar path that causes this is: 
 ${n}
 To fix this refactor your grammar to remove the left recursion.
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof qR?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function uQe(t,e){const r=new C9r(t,e);return r.resolveRefs(),r.errors}q(uQe,"resolveGrammar");var n2,C9r=(n2=class extends VR{constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){ri(ll(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{const n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:Su.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},q(n2,"GastRefResolverVisitor"),n2),i2,w9r=(i2=class extends hG{constructor(e,r){super(),this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=sc(this.path.ruleStack).reverse(),this.occurrenceStack=sc(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){this.found||super.walk(e,r)}walkProdRef(e,r,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const i=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){os(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},q(i2,"AbstractNextPossibleTokensWalker"),i2),a2,x9r=(a2=class extends w9r{constructor(e,r){super(e,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const i=r.concat(n),a=new ad({definition:i});this.possibleTokTypes=HR(a),this.found=!0}}},q(a2,"NextAfterTokenWalker"),a2),s2,pG=(s2=class extends hG{constructor(e,r){super(),this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},q(s2,"AbstractNextTerminalAfterProductionWalker"),s2),o2,A9r=(o2=class extends pG{walkMany(e,r,n){if(e.idx===this.occurrence){const i=rp(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof gs&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,r,n)}},q(o2,"NextTerminalAfterManyWalker"),o2),l2,WOe=(l2=class extends pG{walkManySep(e,r,n){if(e.idx===this.occurrence){const i=rp(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof gs&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,r,n)}},q(l2,"NextTerminalAfterManySepWalker"),l2),c2,R9r=(c2=class extends pG{walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){const i=rp(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof gs&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,r,n)}},q(c2,"NextTerminalAfterAtLeastOneWalker"),c2),u2,KOe=(u2=class extends pG{walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){const i=rp(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof gs&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,r,n)}},q(u2,"NextTerminalAfterAtLeastOneSepWalker"),u2);function rF(t,e,r=[]){r=sc(r);let n=[],i=0;function a(o){return o.concat(ql(t,i+1))}q(a,"remainingPathWith");function s(o){const l=rF(a(o),e,r);return n.concat(l)}for(q(s,"getAlternativesForProd");r.length<e&&i<t.length;){const o=t[i];if(o instanceof ad)return s(o.definition);if(o instanceof Eu)return s(o.definition);if(o instanceof nc)n=s(o.definition);else if(o instanceof rh){const l=o.definition.concat([new lo({definition:o.definition})]);return s(l)}else if(o instanceof nh){const l=[new ad({definition:o.definition}),new lo({definition:[new gs({terminalType:o.separator})].concat(o.definition)})];return s(l)}else if(o instanceof hd){const l=o.definition.concat([new lo({definition:[new gs({terminalType:o.separator})].concat(o.definition)})]);n=s(l)}else if(o instanceof lo){const l=o.definition.concat([new lo({definition:o.definition})]);n=s(l)}else{if(o instanceof fd)return ri(o.definition,l=>{os(l.definition)===!1&&(n=s(l.definition))}),n;if(o instanceof gs)r.push(o.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:ql(t,i)}),n}q(rF,"possiblePathsFrom");function jhe(t,e,r,n){const i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE";let o=!1;const l=e.length,u=l-n-1,d=[],h=[];for(h.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!os(h);){const f=h.pop();if(f===s){o&&Kb(h).idx<=u&&h.pop();continue}const p=f.def,g=f.idx,m=f.ruleStack,_=f.occurrenceStack;if(os(p))continue;const v=p[0];if(v===i){const y={idx:g,def:ql(p),ruleStack:g3(m),occurrenceStack:g3(_)};h.push(y)}else if(v instanceof gs)if(g<l-1){const y=g+1,b=e[y];if(r(b,v.terminalType)){const E={idx:y,def:ql(p),ruleStack:m,occurrenceStack:_};h.push(E)}}else if(g===l-1)d.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:m,occurrenceStack:_}),o=!0;else throw Error("non exhaustive match");else if(v instanceof Eu){const y=sc(m);y.push(v.nonTerminalName);const b=sc(_);b.push(v.idx);const E={idx:g,def:v.definition.concat(a,ql(p)),ruleStack:y,occurrenceStack:b};h.push(E)}else if(v instanceof nc){const y={idx:g,def:ql(p),ruleStack:m,occurrenceStack:_};h.push(y),h.push(s);const b={idx:g,def:v.definition.concat(ql(p)),ruleStack:m,occurrenceStack:_};h.push(b)}else if(v instanceof rh){const y=new lo({definition:v.definition,idx:v.idx}),b=v.definition.concat([y],ql(p)),E={idx:g,def:b,ruleStack:m,occurrenceStack:_};h.push(E)}else if(v instanceof nh){const y=new gs({terminalType:v.separator}),b=new lo({definition:[y].concat(v.definition),idx:v.idx}),E=v.definition.concat([b],ql(p)),S={idx:g,def:E,ruleStack:m,occurrenceStack:_};h.push(S)}else if(v instanceof hd){const y={idx:g,def:ql(p),ruleStack:m,occurrenceStack:_};h.push(y),h.push(s);const b=new gs({terminalType:v.separator}),E=new lo({definition:[b].concat(v.definition),idx:v.idx}),S=v.definition.concat([E],ql(p)),T={idx:g,def:S,ruleStack:m,occurrenceStack:_};h.push(T)}else if(v instanceof lo){const y={idx:g,def:ql(p),ruleStack:m,occurrenceStack:_};h.push(y),h.push(s);const b=new lo({definition:v.definition,idx:v.idx}),E=v.definition.concat([b],ql(p)),S={idx:g,def:E,ruleStack:m,occurrenceStack:_};h.push(S)}else if(v instanceof fd)for(let y=v.definition.length-1;y>=0;y--){const b=v.definition[y],E={idx:g,def:b.definition.concat(ql(p)),ruleStack:m,occurrenceStack:_};h.push(E),h.push(s)}else if(v instanceof ad)h.push({idx:g,def:v.definition.concat(ql(p)),ruleStack:m,occurrenceStack:_});else if(v instanceof qR)h.push(dQe(v,g,m,_));else throw Error("non exhaustive match")}return d}q(jhe,"nextPossibleTokensAfter");function dQe(t,e,r,n){const i=sc(r);i.push(t.name);const a=sc(n);return a.push(1),{idx:e,def:t.definition,ruleStack:i,occurrenceStack:a}}q(dQe,"expandTopLevelRule");var Ys;(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(Ys||(Ys={}));function gG(t){if(t instanceof nc||t==="Option")return Ys.OPTION;if(t instanceof lo||t==="Repetition")return Ys.REPETITION;if(t instanceof rh||t==="RepetitionMandatory")return Ys.REPETITION_MANDATORY;if(t instanceof nh||t==="RepetitionMandatoryWithSeparator")return Ys.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof hd||t==="RepetitionWithSeparator")return Ys.REPETITION_WITH_SEPARATOR;if(t instanceof fd||t==="Alternation")return Ys.ALTERNATION;throw Error("non exhaustive match")}q(gG,"getProdType");function $re(t){const{occurrence:e,rule:r,prodType:n,maxLookahead:i}=t,a=gG(n);return a===Ys.ALTERNATION?RD(e,r,i):OD(e,r,a,i)}q($re,"getLookaheadPaths");function hQe(t,e,r,n,i,a){const s=RD(t,e,r),o=Qhe(s)?_3:YR;return a(s,n,o,i)}q(hQe,"buildLookaheadFuncForOr");function fQe(t,e,r,n,i,a){const s=OD(t,e,i,r),o=Qhe(s)?_3:YR;return a(s[0],o,n)}q(fQe,"buildLookaheadFuncForOptionalProd");function pQe(t,e,r,n){const i=t.length,a=Hf(t,s=>Hf(s,o=>o.length===1));if(e)return function(s){const o=kn(s,l=>l.GATE);for(let l=0;l<i;l++){const u=t[l],d=u.length,h=o[l];if(!(h!==void 0&&h.call(this)===!1))e:for(let f=0;f<d;f++){const p=u[f],g=p.length;for(let m=0;m<g;m++){const _=this.LA(m+1);if(r(_,p[m])===!1)continue e}return l}}};if(a&&!n){const s=kn(t,l=>Vf(l)),o=Kd(s,(l,u,d)=>(ri(u,h=>{jn(l,h.tokenTypeIdx)||(l[h.tokenTypeIdx]=d),ri(h.categoryMatches,f=>{jn(l,f)||(l[f]=d)})}),l),{});return function(){const l=this.LA(1);return o[l.tokenTypeIdx]}}else return function(){for(let s=0;s<i;s++){const o=t[s],l=o.length;e:for(let u=0;u<l;u++){const d=o[u],h=d.length;for(let f=0;f<h;f++){const p=this.LA(f+1);if(r(p,d[f])===!1)continue e}return s}}}}q(pQe,"buildAlternativesLookAheadFunc");function gQe(t,e,r){const n=Hf(t,a=>a.length===1),i=t.length;if(n&&!r){const a=Vf(t);if(a.length===1&&os(a[0].categoryMatches)){const o=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{const s=Kd(a,(o,l,u)=>(o[l.tokenTypeIdx]=!0,ri(l.categoryMatches,d=>{o[d]=!0}),o),[]);return function(){const o=this.LA(1);return s[o.tokenTypeIdx]===!0}}}else return function(){e:for(let a=0;a<i;a++){const s=t[a],o=s.length;for(let l=0;l<o;l++){const u=this.LA(l+1);if(e(u,s[l])===!1)continue e}return!0}return!1}}q(gQe,"buildSingleAlternativeLookaheadFunction");var d2,O9r=(d2=class extends hG{constructor(e,r,n){super(),this.topProd=e,this.targetOccurrence=r,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,n,i){return e.idx===this.targetOccurrence&&this.targetProdType===r?(this.restDef=n.concat(i),!0):!1}walkOption(e,r,n){this.checkIsTarget(e,Ys.OPTION,r,n)||super.walkOption(e,r,n)}walkAtLeastOne(e,r,n){this.checkIsTarget(e,Ys.REPETITION_MANDATORY,r,n)||super.walkOption(e,r,n)}walkAtLeastOneSep(e,r,n){this.checkIsTarget(e,Ys.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}walkMany(e,r,n){this.checkIsTarget(e,Ys.REPETITION,r,n)||super.walkOption(e,r,n)}walkManySep(e,r,n){this.checkIsTarget(e,Ys.REPETITION_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}},q(d2,"RestDefinitionFinderWalker"),d2),h2,mQe=(h2=class extends VR{constructor(e,r,n){super(),this.targetOccurrence=e,this.targetProdType=r,this.targetRef=n,this.result=[]}checkIsTarget(e,r){e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,Ys.OPTION)}visitRepetition(e){this.checkIsTarget(e,Ys.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Ys.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Ys.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Ys.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Ys.ALTERNATION)}},q(h2,"InsideDefinitionFinderVisitor"),h2);function Gre(t){const e=new Array(t);for(let r=0;r<t;r++)e[r]=[];return e}q(Gre,"initializeArrayOfArrays");function O6(t){let e=[""];for(let r=0;r<t.length;r++){const n=t[r],i=[];for(let a=0;a<e.length;a++){const s=e[a];i.push(s+"_"+n.tokenTypeIdx);for(let o=0;o<n.categoryMatches.length;o++){const l="_"+n.categoryMatches[o];i.push(s+l)}}e=i}return e}q(O6,"pathToHashKeys");function _Qe(t,e,r){for(let n=0;n<t.length;n++){if(n===r)continue;const i=t[n];for(let a=0;a<e.length;a++){const s=e[a];if(i[s]===!0)return!1}}return!0}q(_Qe,"isUniquePrefixHash");function Xhe(t,e){const r=kn(t,s=>rF([s],1)),n=Gre(r.length),i=kn(r,s=>{const o={};return ri(s,l=>{const u=O6(l.partialPath);ri(u,d=>{o[d]=!0})}),o});let a=r;for(let s=1;s<=e;s++){const o=a;a=Gre(o.length);for(let l=0;l<o.length;l++){const u=o[l];for(let d=0;d<u.length;d++){const h=u[d].partialPath,f=u[d].suffixDef,p=O6(h);if(_Qe(i,p,l)||os(f)||h.length===e){const m=n[l];if(nF(m,h)===!1){m.push(h);for(let _=0;_<p.length;_++){const v=p[_];i[l][v]=!0}}}else{const m=rF(f,s+1,h);a[l]=a[l].concat(m),ri(m,_=>{const v=O6(_.partialPath);ri(v,y=>{i[l][y]=!0})})}}}}return n}q(Xhe,"lookAheadSequenceFromAlternatives");function RD(t,e,r,n){const i=new mQe(t,Ys.ALTERNATION,n);return e.accept(i),Xhe(i.result,r)}q(RD,"getLookaheadPathsForOr");function OD(t,e,r,n){const i=new mQe(t,r);e.accept(i);const a=i.result,o=new O9r(e,t,r).startWalking(),l=new ad({definition:a}),u=new ad({definition:o});return Xhe([l,u],n)}q(OD,"getLookaheadPathsForOptionalProd");function nF(t,e){e:for(let r=0;r<t.length;r++){const n=t[r];if(n.length===e.length){for(let i=0;i<n.length;i++){const a=e[i],s=n[i];if((a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}q(nF,"containsPath");function vQe(t,e){return t.length<e.length&&Hf(t,(r,n)=>{const i=e[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}q(vQe,"isStrictPrefixOfPath");function Qhe(t){return Hf(t,e=>Hf(e,r=>Hf(r,n=>os(n.categoryMatches))))}q(Qhe,"areTokenCategoriesNotUsed");function yQe(t){const e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return kn(e,r=>Object.assign({type:Su.CUSTOM_LOOKAHEAD_VALIDATION},r))}q(yQe,"validateLookahead");function bQe(t,e,r,n){const i=Fh(t,l=>EQe(l,r)),a=NQe(t,e,r),s=Fh(t,l=>AQe(l,r)),o=Fh(t,l=>TQe(l,t,n,r));return i.concat(a,s,o)}q(bQe,"validateGrammar");function EQe(t,e){const r=new I9r;t.accept(r);const n=r.allProductions,i=V6r(n,SQe),a=lp(i,o=>o.length>1);return kn(ll(a),o=>{const l=rp(o),u=e.buildDuplicateFoundError(t,o),d=bf(l),h={message:u,type:Su.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:d,occurrence:l.idx},f=Zhe(l);return f&&(h.parameter=f),h})}q(EQe,"validateDuplicateProductions");function SQe(t){return`${bf(t)}_#_${t.idx}_#_${Zhe(t)}`}q(SQe,"identifyProductionForDuplicates");function Zhe(t){return t instanceof gs?t.terminalType.name:t instanceof Eu?t.nonTerminalName:""}q(Zhe,"getExtraProductionArgument");var f2,I9r=(f2=class extends VR{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},q(f2,"OccurrenceValidationCollector"),f2);function TQe(t,e,r,n){const i=[];if(Kd(e,(s,o)=>o.name===t.name?s+1:s,0)>1){const s=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});i.push({message:s,type:Su.DUPLICATE_RULE_NAME,ruleName:t.name})}return i}q(TQe,"validateRuleDoesNotAlreadyExist");function CQe(t,e,r){const n=[];let i;return Ru(e,t)||(i=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:Su.INVALID_RULE_OVERRIDE,ruleName:t})),n}q(CQe,"validateRuleIsOverridden");function Jhe(t,e,r,n=[]){const i=[],a=$N(e.definition);if(os(a))return[];{const s=t.name;Ru(a,t)&&i.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:Su.LEFT_RECURSION,ruleName:s});const l=uG(a,n.concat([t])),u=Fh(l,d=>{const h=sc(n);return h.push(d),Jhe(t,d,r,h)});return i.concat(u)}}q(Jhe,"validateNoLeftRecursion");function $N(t){let e=[];if(os(t))return e;const r=rp(t);if(r instanceof Eu)e.push(r.referencedRule);else if(r instanceof ad||r instanceof nc||r instanceof rh||r instanceof nh||r instanceof hd||r instanceof lo)e=e.concat($N(r.definition));else if(r instanceof fd)e=Vf(kn(r.definition,a=>$N(a.definition)));else if(!(r instanceof gs))throw Error("non exhaustive match");const n=m3(r),i=t.length>1;if(n&&i){const a=ql(t);return e.concat($N(a))}else return e}q($N,"getFirstNoneTerminal");var p2,efe=(p2=class extends VR{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},q(p2,"OrCollector"),p2);function wQe(t,e){const r=new efe;t.accept(r);const n=r.alternations;return Fh(n,a=>{const s=g3(a.definition);return Fh(s,(o,l)=>{const u=jhe([o],[],YR,1);return os(u)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:a,emptyChoiceIdx:l}),type:Su.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:a.idx,alternative:l+1}]:[]})})}q(wQe,"validateEmptyOrAlternative");function xQe(t,e,r){const n=new efe;t.accept(n);let i=n.alternations;return i=dG(i,s=>s.ignoreAmbiguities===!0),Fh(i,s=>{const o=s.idx,l=s.maxLookahead||e,u=RD(o,t,l,s),d=OQe(u,s,t,r),h=IQe(u,s,t,r);return d.concat(h)})}q(xQe,"validateAmbiguousAlternationAlternatives");var g2,N9r=(g2=class extends VR{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},q(g2,"RepetitionCollector"),g2);function AQe(t,e){const r=new efe;t.accept(r);const n=r.alternations;return Fh(n,a=>a.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:a}),type:Su.TOO_MANY_ALTS,ruleName:t.name,occurrence:a.idx}]:[])}q(AQe,"validateTooManyAlts");function RQe(t,e,r){const n=[];return ri(t,i=>{const a=new N9r;i.accept(a);const s=a.allProductions;ri(s,o=>{const l=gG(o),u=o.maxLookahead||e,d=o.idx,f=OD(d,i,l,u)[0];if(os(Vf(f))){const p=r.buildEmptyRepetitionError({topLevelRule:i,repetition:o});n.push({message:p,type:Su.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}q(RQe,"validateSomeNonEmptyLookaheadPath");function OQe(t,e,r,n){const i=[],a=Kd(t,(o,l,u)=>(e.definition[u].ignoreAmbiguities===!0||ri(l,d=>{const h=[u];ri(t,(f,p)=>{u!==p&&nF(f,d)&&e.definition[p].ignoreAmbiguities!==!0&&h.push(p)}),h.length>1&&!nF(i,d)&&(i.push(d),o.push({alts:h,path:d}))}),o),[]);return kn(a,o=>{const l=kn(o.alts,d=>d+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:l,prefixPath:o.path}),type:Su.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:o.alts}})}q(OQe,"checkAlternativesAmbiguities");function IQe(t,e,r,n){const i=Kd(t,(s,o,l)=>{const u=kn(o,d=>({idx:l,path:d}));return s.concat(u)},[]);return wD(Fh(i,s=>{if(e.definition[s.idx].ignoreAmbiguities===!0)return[];const l=s.idx,u=s.path,d=ef(i,f=>e.definition[f.idx].ignoreAmbiguities!==!0&&f.idx<l&&vQe(f.path,u));return kn(d,f=>{const p=[f.idx+1,l+1],g=e.idx===0?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:p,prefixPath:f.path}),type:Su.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:p}})}))}q(IQe,"checkPrefixAlternativesAmbiguities");function NQe(t,e,r){const n=[],i=kn(e,a=>a.name);return ri(t,a=>{const s=a.name;if(Ru(i,s)){const o=r.buildNamespaceConflictError(a);n.push({message:o,type:Su.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}q(NQe,"checkTerminalAndNoneTerminalsNameSpace");function kQe(t){const e=Fhe(t,{errMsgProvider:T9r}),r={};return ri(t.rules,n=>{r[n.name]=n}),uQe(r,e.errMsgProvider)}q(kQe,"resolveGrammar");function DQe(t){return t=Fhe(t,{errMsgProvider:Gy}),bQe(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}q(DQe,"validateGrammar");var MQe="MismatchedTokenException",LQe="NoViableAltException",PQe="EarlyExitException",FQe="NotAllInputParsedException",BQe=[MQe,LQe,PQe,FQe];Object.freeze(BQe);function v3(t){return Ru(BQe,t.name)}q(v3,"isRecognitionException");var m2,mG=(m2=class extends Error{constructor(e,r){super(e),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},q(m2,"RecognitionException"),m2),_2,UQe=(_2=class extends mG{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=MQe}},q(_2,"MismatchedTokenException"),_2),v2,k9r=(v2=class extends mG{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=LQe}},q(v2,"NoViableAltException"),v2),y2,D9r=(y2=class extends mG{constructor(e,r){super(e,r),this.name=FQe}},q(y2,"NotAllInputParsedException"),y2),b2,M9r=(b2=class extends mG{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=PQe}},q(b2,"EarlyExitException"),b2),IX={},$Qe="InRuleRecoveryException",E2,L9r=(E2=class extends Error{constructor(e){super(e),this.name=$Qe}},q(E2,"InRuleRecoveryException"),E2),S2,P9r=(S2=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=jn(e,"recoveryEnabled")?e.recoveryEnabled:E0.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=GQe)}getTokenToInsert(e){const r=AD(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,i){const a=this.findReSyncTokenType(),s=this.exportLexerState(),o=[];let l=!1;const u=this.LA(1);let d=this.LA(1);const h=q(()=>{const f=this.LA(0),p=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:u,previous:f,ruleName:this.getCurrRuleFullName()}),g=new UQe(p,u,this.LA(0));g.resyncedTokens=g3(o),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(d,i)){h();return}else if(n.call(this)){h(),e.apply(this,r);return}else this.tokenMatcher(d,a)?l=!0:(d=this.SKIP_TOKEN(),this.addToResyncTokens(d,o));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))}getFollowsForInRuleRecovery(e,r){const n=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new L9r("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||os(r))return!1;const n=this.LA(1);return GA(r,a=>this.tokenMatcher(n,a))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){const r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return Ru(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let r=this.LA(1),n=2;for(;;){const i=GA(e,a=>Khe(r,a));if(i!==void 0)return i;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return IX;const e=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return kn(e,(n,i)=>i===0?IX:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){const e=kn(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return Vf(e)}getFollowSetFromFollowKey(e){if(e===IX)return[O1];const r=e.ruleName+e.idxInCallingRule+wXe+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,O1)||r.push(e),r}reSyncTo(e){const r=[];let n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return g3(r)}attemptInRepetitionRecovery(e,r,n,i,a,s,o){}getCurrentGrammarPath(e,r){const n=this.getHumanReadableRuleStack(),i=sc(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return kn(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},q(S2,"Recoverable"),S2);function GQe(t,e,r,n,i,a,s){const o=this.getKeyForAutomaticLookahead(n,i);let l=this.firstAfterRepMap[o];if(l===void 0){const f=this.getCurrRuleFullName(),p=this.getGAstProductions()[f];l=new a(p,i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,d=l.occurrence;const h=l.isEndOfRule;this.RULE_STACK.length===1&&h&&u===void 0&&(u=O1,d=1),!(u===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,d,s)&&this.tryInRepetitionRecovery(t,e,r,u)}q(GQe,"attemptInRepetitionRecovery");var F9r=4,nv=8,zQe=1<<nv,qQe=2<<nv,zre=3<<nv,qre=4<<nv,Vre=5<<nv,I6=6<<nv;function N6(t,e,r){return r|e|t}q(N6,"getKeyForAutomaticLookahead");var T2,tfe=(T2=class{constructor(e){var r;this.maxLookahead=(r=e?.maxLookahead)!==null&&r!==void 0?r:E0.maxLookahead}validate(e){const r=this.validateNoLeftRecursion(e.rules);if(os(r)){const n=this.validateEmptyOrAlternatives(e.rules),i=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),a=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...r,...n,...i,...a]}return r}validateNoLeftRecursion(e){return Fh(e,r=>Jhe(r,r,Gy))}validateEmptyOrAlternatives(e){return Fh(e,r=>wQe(r,Gy))}validateAmbiguousAlternationAlternatives(e,r){return Fh(e,n=>xQe(n,r,Gy))}validateSomeNonEmptyLookaheadPath(e,r){return RQe(e,r,Gy)}buildLookaheadForAlternation(e){return hQe(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,pQe)}buildLookaheadForOptional(e){return fQe(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,gG(e.prodType),gQe)}},q(T2,"LLkLookaheadStrategy"),T2),C2,B9r=(C2=class{initLooksAhead(e){this.dynamicTokensEnabled=jn(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:E0.dynamicTokensEnabled,this.maxLookahead=jn(e,"maxLookahead")?e.maxLookahead:E0.maxLookahead,this.lookaheadStrategy=jn(e,"lookaheadStrategy")?e.lookaheadStrategy:new tfe({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){ri(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:n,repetition:i,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=VQe(r);ri(n,u=>{const d=u.idx===0?"":u.idx;this.TRACE_INIT(`${bf(u)}${d}`,()=>{const h=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:r,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),f=N6(this.fullRuleNameToShort[r.name],zQe,u.idx);this.setLaFuncCache(f,h)})}),ri(i,u=>{this.computeLookaheadFunc(r,u.idx,zre,"Repetition",u.maxLookahead,bf(u))}),ri(a,u=>{this.computeLookaheadFunc(r,u.idx,qQe,"Option",u.maxLookahead,bf(u))}),ri(s,u=>{this.computeLookaheadFunc(r,u.idx,qre,"RepetitionMandatory",u.maxLookahead,bf(u))}),ri(o,u=>{this.computeLookaheadFunc(r,u.idx,I6,"RepetitionMandatoryWithSeparator",u.maxLookahead,bf(u))}),ri(l,u=>{this.computeLookaheadFunc(r,u.idx,Vre,"RepetitionWithSeparator",u.maxLookahead,bf(u))})})})}computeLookaheadFunc(e,r,n,i,a,s){this.TRACE_INIT(`${s}${r===0?"":r}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),l=N6(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,r){const n=this.getLastExplicitRuleShortName();return N6(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},q(C2,"LooksAhead"),C2),w2,U9r=(w2=class extends VR{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},q(w2,"DslMethodsCollectorVisitor"),w2),ZL=new U9r;function VQe(t){ZL.reset(),t.accept(ZL);const e=ZL.dslMethods;return ZL.reset(),e}q(VQe,"collectMethods");function Hre(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffset<e.endOffset&&(t.endOffset=e.endOffset)}q(Hre,"setNodeLocationOnlyOffset");function Yre(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.startColumn=e.startColumn,t.startLine=e.startLine,t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine):t.endOffset<e.endOffset&&(t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine)}q(Yre,"setNodeLocationFull");function HQe(t,e,r){t.children[r]===void 0?t.children[r]=[e]:t.children[r].push(e)}q(HQe,"addTerminalToCst");function YQe(t,e,r){t.children[e]===void 0?t.children[e]=[r]:t.children[e].push(r)}q(YQe,"addNoneTerminalToCst");var $9r="name";function rfe(t,e){Object.defineProperty(t,$9r,{enumerable:!1,configurable:!0,writable:!1,value:e})}q(rfe,"defineNameProp");function WQe(t,e){const r=Yd(t),n=r.length;for(let i=0;i<n;i++){const a=r[i],s=t[a],o=s.length;for(let l=0;l<o;l++){const u=s[l];u.tokenTypeIdx===void 0&&this[u.name](u.children,e)}}}q(WQe,"defaultVisit");function KQe(t,e){const r=q(function(){},"derivedConstructor");rfe(r,t+"BaseSemantics");const n={visit:q(function(i,a){if(pa(i)&&(i=i[0]),!y0(i))return this[i.name](i.children,a)},"visit"),validateVisitor:q(function(){const i=XQe(this,e);if(!os(i)){const a=kn(i,s=>s.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
	${a.join(`

`).replace(/\n/g,`
	`)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=e,r}q(KQe,"createBaseSemanticVisitorConstructor");function jQe(t,e,r){const n=q(function(){},"derivedConstructor");rfe(n,t+"BaseSemanticsWithDefaults");const i=Object.create(r.prototype);return ri(e,a=>{i[a]=WQe}),n.prototype=i,n.prototype.constructor=n,n}q(jQe,"createBaseVisitorConstructorWithDefaults");var Wre;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(Wre||(Wre={}));function XQe(t,e){return QQe(t,e)}q(XQe,"validateVisitor");function QQe(t,e){const r=ef(e,i=>H0(t[i])===!1),n=kn(r,i=>({msg:`Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,type:Wre.MISSING_METHOD,methodName:i}));return wD(n)}q(QQe,"validateMissingCstMethods");var x2,G9r=(x2=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=jn(e,"nodeLocationTracking")?e.nodeLocationTracking:E0.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=rl,this.cstFinallyStateUpdate=rl,this.cstPostTerminal=rl,this.cstPostNonTerminal=rl,this.cstPostRule=rl;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Yre,this.setNodeLocationFromNode=Yre,this.cstPostRule=rl,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=rl,this.setNodeLocationFromNode=rl,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Hre,this.setNodeLocationFromNode=Hre,this.cstPostRule=rl,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=rl,this.setNodeLocationFromNode=rl,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=rl,this.setNodeLocationFromNode=rl,this.cstPostRule=rl,this.setInitialNodeLocation=rl;else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const r=this.LA(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];HQe(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];YQe(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(y0(this.baseCstVisitorConstructor)){const e=KQe(this.className,Yd(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(y0(this.baseCstVisitorWithDefaultsConstructor)){const e=jQe(this.className,Yd(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},q(x2,"TreeBuilder"),x2),A2,z9r=(A2=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):iF}LA(e){const r=this.currIdx+e;return r<0||this.tokVectorLength<=r?iF:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},q(A2,"LexerAdapter"),A2),R2,q9r=(R2=class{ACTION(e){return e.call(this)}consume(e,r,n){return this.consumeInternal(r,e,n)}subrule(e,r,n){return this.subruleInternal(r,e,n)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,n=aF){if(Ru(this.definedRulesNames,e)){const s={message:Gy.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Su.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);const i=this.defineRule(e,r,n);return this[e]=i,i}OVERRIDE_RULE(e,r,n=aF){const i=CQe(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);const a=this.defineRule(e,r,n);return this[e]=a,a}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,r),!0}catch(i){if(v3(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return yXe(ll(this.gastProductionsCache))}},q(R2,"RecognizerApi"),R2),O2,V9r=(O2=class{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=_3,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},jn(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
	See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
	For Further details.`);if(pa(e)){if(os(e))throw Error(`A Token Vocabulary cannot be empty.
	Note that the first argument for the parser constructor
	is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
	See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
	For Further details.`)}if(pa(e))this.tokensMap=Kd(e,(a,s)=>(a[s.name]=s,a),{});else if(jn(e,"modes")&&Hf(Vf(ll(e.modes)),lQe)){const a=Vf(ll(e.modes)),s=Bhe(a);this.tokensMap=Kd(s,(o,l)=>(o[l.name]=l,o),{})}else if(Wh(e))this.tokensMap=sc(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=O1;const n=jn(e,"modes")?Vf(ll(e.modes)):ll(e),i=Hf(n,a=>os(a.categoryMatches));this.tokenMatcher=i?_3:YR,WR(ll(this.tokensMap))}defineRule(e,r,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const i=jn(n,"resyncEnabled")?n.resyncEnabled:aF.resyncEnabled,a=jn(n,"recoveryValueFunc")?n.recoveryValueFunc:aF.recoveryValueFunc,s=this.ruleShortNameIdx<<F9r+nv;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;let o;return this.outputCst===!0?o=q(function(...d){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,d);const h=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(h),h}catch(h){return this.invokeRuleCatch(h,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):o=q(function(...d){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,d)}catch(h){return this.invokeRuleCatch(h,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(o,{ruleName:e,originalGrammarAction:r})}invokeRuleCatch(e,r,n){const i=this.RULE_STACK.length===1,a=r&&!this.isBackTracking()&&this.recoveryEnabled;if(v3(e)){const s=e;if(a){const o=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(o))if(s.resyncedTokens=this.reSyncTo(o),this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];return l.recoveredNode=!0,l}else return n(e);else{if(this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];l.recoveredNode=!0,s.partialCstResult=l}throw s}}else{if(i)return this.moveToTerminatedState(),n(e);throw s}}else throw e}optionInternal(e,r){const n=this.getKeyForAutomaticLookahead(qQe,r);return this.optionInternalLogic(e,r,n)}optionInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof e!="function"){a=e.DEF;const s=e.GATE;if(s!==void 0){const o=i;i=q(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=e;if(i.call(this)===!0)return a.call(this)}atLeastOneInternal(e,r){const n=this.getKeyForAutomaticLookahead(qre,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;const s=r.GATE;if(s!==void 0){const o=i;i=q(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=r;if(i.call(this)===!0){let s=this.doSingleRepetition(a);for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,Ys.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],i,qre,e,R9r)}atLeastOneSepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(I6,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){const i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);const o=q(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,i,KOe],o,I6,e,KOe)}else throw this.raiseEarlyExitException(e,Ys.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){const n=this.getKeyForAutomaticLookahead(zre,e);return this.manyInternalLogic(e,r,n)}manyInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;const o=r.GATE;if(o!==void 0){const l=i;i=q(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else a=r;let s=!0;for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],i,zre,e,A9r,s)}manySepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(Vre,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){const i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);const o=q(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,i,WOe],o,Vre,e,WOe)}}repetitionSepSecondInternal(e,r,n,i,a){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,i,a],n,I6,e,a)}doSingleRepetition(e){const r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){const n=this.getKeyForAutomaticLookahead(zQe,r),i=pa(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,i);if(s!==void 0)return i[s].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const e=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new D9r(r,e))}}subruleInternal(e,r,n){let i;try{const a=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=e.apply(this,a),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),i}catch(a){throw this.subruleInternalError(a,n,e.ruleName)}}subruleInternalError(e,r,n){throw v3(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,r,n){let i;try{const a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),i=a):this.consumeInternalError(e,a,n)}catch(a){i=this.consumeInternalRecovery(e,r,a)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,i),i}consumeInternalError(e,r,n){let i;const a=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new UQe(i,r,a))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){const i=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,i)}catch(a){throw a.name===$Qe?n:a}}else throw n}saveRecogState(){const e=this.errors,r=sc(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),O1)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},q(O2,"RecognizerEngine"),O2),I2,H9r=(I2=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=jn(e,"errorMessageProvider")?e.errorMessageProvider:E0.errorMessageProvider}SAVE_ERROR(e){if(v3(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:sc(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return sc(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){const i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],o=OD(e,a,r,this.maxLookahead)[0],l=[];for(let d=1;d<=this.maxLookahead;d++)l.push(this.LA(d));const u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:l,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new M9r(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){const n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=RD(e,i,this.maxLookahead),s=[];for(let u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));const o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:o,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new k9r(l,this.LA(1),o))}},q(I2,"ErrorHandler"),I2),N2,Y9r=(N2=class{initContentAssist(){}computeContentAssist(e,r){const n=this.gastProductionsCache[e];if(y0(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return jhe([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const r=rp(e.ruleStack),i=this.getGAstProductions()[r];return new x9r(i,e).startWalking()}},q(N2,"ContentAssist"),N2),_G={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(_G);var jOe=!0,XOe=Math.pow(2,nv)-1,ZQe=lC({name:"RECORDING_PHASE_TOKEN",pattern:mu.NA});WR([ZQe]);var JQe=AD(ZQe,`This IToken indicates the Parser is in Recording Phase
	See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(JQe);var W9r={name:`This CSTNode indicates the Parser is in Recording Phase
	See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},k2,K9r=(k2=class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const r=e>0?e:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,e,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,e,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${r}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,r,n){return this.consumeInternalRecord(r,e,n)},this.subrule=function(e,r,n){return this.subruleInternalRecord(r,e,n)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let r=0;r<10;r++){const n=r>0?r:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return iF}topLevelRuleRecord(e,r){try{const n=new qR({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+`
	 This error was thrown during the "grammar recording phase" For more info see:
	https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(e,r){return ZS.call(this,nc,e,r)}atLeastOneInternalRecord(e,r){ZS.call(this,rh,r,e)}atLeastOneSepFirstInternalRecord(e,r){ZS.call(this,nh,r,e,jOe)}manyInternalRecord(e,r){ZS.call(this,lo,r,e)}manySepFirstInternalRecord(e,r){ZS.call(this,hd,r,e,jOe)}orInternalRecord(e,r){return eZe.call(this,e,r)}subruleInternalRecord(e,r,n){if(y3(r),!e||jn(e,"ruleName")===!1){const o=new Error(`<SUBRULE${Kre(r)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
 inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}const i=Kb(this.recordingProdStack),a=e.ruleName,s=new Eu({idx:r,nonTerminalName:a,label:n?.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?W9r:_G}consumeInternalRecord(e,r,n){if(y3(r),!Yhe(e)){const s=new Error(`<CONSUME${Kre(r)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
 inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}const i=Kb(this.recordingProdStack),a=new gs({idx:r,terminalType:e,label:n?.LABEL});return i.definition.push(a),JQe}},q(k2,"GastRecorder"),k2);function ZS(t,e,r,n=!1){y3(r);const i=Kb(this.recordingProdStack),a=H0(e)?e:e.DEF,s=new t({definition:[],idx:r});return n&&(s.separator=e.SEP),jn(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),_G}q(ZS,"recordProd");function eZe(t,e){y3(e);const r=Kb(this.recordingProdStack),n=pa(t)===!1,i=n===!1?t:t.DEF,a=new fd({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});jn(t,"MAX_LOOKAHEAD")&&(a.maxLookahead=t.MAX_LOOKAHEAD);const s=pXe(i,o=>H0(o.GATE));return a.hasPredicates=s,r.definition.push(a),ri(i,o=>{const l=new ad({definition:[]});a.definition.push(l),jn(o,"IGNORE_AMBIGUITIES")?l.ignoreAmbiguities=o.IGNORE_AMBIGUITIES:jn(o,"GATE")&&(l.ignoreAmbiguities=!0),this.recordingProdStack.push(l),o.ALT.call(this),this.recordingProdStack.pop()}),_G}q(eZe,"recordOrProd");function Kre(t){return t===0?"":`${t}`}q(Kre,"getIdxSuffix");function y3(t){if(t<0||t>XOe){const e=new Error(`Invalid DSL Method idx value: <${t}>
	Idx value must be a none negative value smaller than ${XOe+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}q(y3,"assertMethodIdxIsValid");var D2,j9r=(D2=class{initPerformanceTracer(e){if(jn(e,"traceInitPerf")){const r=e.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=E0.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("	");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${n}--> <${e}>`);const{time:i,value:a}=$he(r),s=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(`${n}<-- <${e}> time: ${i}ms`),this.traceInitIndent--,a}else return r()}},q(D2,"PerformanceTracer"),D2);function tZe(t,e){e.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;const a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(t.prototype,i,a):t.prototype[i]=r.prototype[i]})})}q(tZe,"applyMixins");var iF=AD(O1,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(iF);var E0=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:IT,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),aF=Object.freeze({recoveryValueFunc:q(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),Su;(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Su||(Su={}));function jre(t=void 0){return function(){return t}}q(jre,"EMPTY_ALT");var db,nfe=(db=class{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.	\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{Ghe(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),ri(this.definedRulesNames,i=>{const s=this[i].originalGrammarAction;let o;this.TRACE_INIT(`${i} Rule`,()=>{o=this.topLevelRuleRecord(i,s)}),this.gastProductionsCache[i]=o})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=kQe({rules:ll(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(os(n)&&this.skipValidations===!1){const i=DQe({rules:ll(this.gastProductionsCache),tokenTypes:ll(this.tokensMap),errMsgProvider:Gy,grammarName:r}),a=yQe({lookaheadStrategy:this.lookaheadStrategy,rules:ll(this.gastProductionsCache),tokenTypes:ll(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),os(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const i=xXe(ll(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(i,{rules:ll(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(ll(this.gastProductionsCache))})),!db.DEFER_DEFINITION_ERRORS_HANDLING&&!os(this.definitionErrors))throw e=kn(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected:
 ${e.join(`
-------------------------------
`)}`)})}constructor(e,r){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(e,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),jn(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
	Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
	See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
	For further details.`);this.skipValidations=jn(r,"skipValidations")?r.skipValidations:E0.skipValidations}},q(db,"Parser"),db);nfe.DEFER_DEFINITION_ERRORS_HANDLING=!1;tZe(nfe,[P9r,B9r,G9r,z9r,V9r,q9r,H9r,Y9r,K9r,j9r]);var M2,X9r=(M2=class extends nfe{constructor(e,r=E0){const n=sc(r);n.outputCst=!1,super(e,n)}},q(M2,"EmbeddedActionsParser"),M2);function rZe(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}q(rZe,"arrayMap");var nZe=rZe;function iZe(){this.__data__=[],this.size=0}q(iZe,"listCacheClear");var Q9r=iZe;function aZe(t,e){return t===e||t!==t&&e!==e}q(aZe,"eq");var sZe=aZe;function oZe(t,e){for(var r=t.length;r--;)if(sZe(t[r][0],e))return r;return-1}q(oZe,"assocIndexOf");var vG=oZe,Z9r=Array.prototype,J9r=Z9r.splice;function lZe(t){var e=this.__data__,r=vG(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():J9r.call(e,r,1),--this.size,!0}q(lZe,"listCacheDelete");var e7r=lZe;function cZe(t){var e=this.__data__,r=vG(e,t);return r<0?void 0:e[r][1]}q(cZe,"listCacheGet");var t7r=cZe;function uZe(t){return vG(this.__data__,t)>-1}q(uZe,"listCacheHas");var r7r=uZe;function dZe(t,e){var r=this.__data__,n=vG(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}q(dZe,"listCacheSet");var n7r=dZe;function UE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}q(UE,"ListCache");UE.prototype.clear=Q9r;UE.prototype.delete=e7r;UE.prototype.get=t7r;UE.prototype.has=r7r;UE.prototype.set=n7r;var yG=UE;function hZe(){this.__data__=new yG,this.size=0}q(hZe,"stackClear");var i7r=hZe;function fZe(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}q(fZe,"stackDelete");var a7r=fZe;function pZe(t){return this.__data__.get(t)}q(pZe,"stackGet");var s7r=pZe;function gZe(t){return this.__data__.has(t)}q(gZe,"stackHas");var o7r=gZe,l7r=typeof global=="object"&&global&&global.Object===Object&&global,mZe=l7r,c7r=typeof self=="object"&&self&&self.Object===Object&&self,u7r=mZe||c7r||Function("return this")(),Y0=u7r,d7r=Y0.Symbol,Eg=d7r,_Ze=Object.prototype,h7r=_Ze.hasOwnProperty,f7r=_Ze.toString,ZO=Eg?Eg.toStringTag:void 0;function vZe(t){var e=h7r.call(t,ZO),r=t[ZO];try{t[ZO]=void 0;var n=!0}catch{}var i=f7r.call(t);return n&&(e?t[ZO]=r:delete t[ZO]),i}q(vZe,"getRawTag");var p7r=vZe,g7r=Object.prototype,m7r=g7r.toString;function yZe(t){return m7r.call(t)}q(yZe,"objectToString");var _7r=yZe,v7r="[object Null]",y7r="[object Undefined]",QOe=Eg?Eg.toStringTag:void 0;function bZe(t){return t==null?t===void 0?y7r:v7r:QOe&&QOe in Object(t)?p7r(t):_7r(t)}q(bZe,"baseGetTag");var KR=bZe;function EZe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}q(EZe,"isObject");var ife=EZe,b7r="[object AsyncFunction]",E7r="[object Function]",S7r="[object GeneratorFunction]",T7r="[object Proxy]";function SZe(t){if(!ife(t))return!1;var e=KR(t);return e==E7r||e==S7r||e==b7r||e==T7r}q(SZe,"isFunction");var TZe=SZe,C7r=Y0["__core-js_shared__"],NX=C7r,ZOe=(function(){var t=/[^.]+$/.exec(NX&&NX.keys&&NX.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function CZe(t){return!!ZOe&&ZOe in t}q(CZe,"isMasked");var w7r=CZe,x7r=Function.prototype,A7r=x7r.toString;function wZe(t){if(t!=null){try{return A7r.call(t)}catch{}try{return t+""}catch{}}return""}q(wZe,"toSource");var $E=wZe,R7r=/[\\^$.*+?()[\]{}|]/g,O7r=/^\[object .+?Constructor\]$/,I7r=Function.prototype,N7r=Object.prototype,k7r=I7r.toString,D7r=N7r.hasOwnProperty,M7r=RegExp("^"+k7r.call(D7r).replace(R7r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xZe(t){if(!ife(t)||w7r(t))return!1;var e=TZe(t)?M7r:O7r;return e.test($E(t))}q(xZe,"baseIsNative");var L7r=xZe;function AZe(t,e){return t?.[e]}q(AZe,"getValue");var P7r=AZe;function RZe(t,e){var r=P7r(t,e);return L7r(r)?r:void 0}q(RZe,"getNative");var jR=RZe,F7r=jR(Y0,"Map"),b3=F7r,B7r=jR(Object,"create"),E3=B7r;function OZe(){this.__data__=E3?E3(null):{},this.size=0}q(OZe,"hashClear");var U7r=OZe;function IZe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}q(IZe,"hashDelete");var $7r=IZe,G7r="__lodash_hash_undefined__",z7r=Object.prototype,q7r=z7r.hasOwnProperty;function NZe(t){var e=this.__data__;if(E3){var r=e[t];return r===G7r?void 0:r}return q7r.call(e,t)?e[t]:void 0}q(NZe,"hashGet");var V7r=NZe,H7r=Object.prototype,Y7r=H7r.hasOwnProperty;function kZe(t){var e=this.__data__;return E3?e[t]!==void 0:Y7r.call(e,t)}q(kZe,"hashHas");var W7r=kZe,K7r="__lodash_hash_undefined__";function DZe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=E3&&e===void 0?K7r:e,this}q(DZe,"hashSet");var j7r=DZe;function GE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}q(GE,"Hash");GE.prototype.clear=U7r;GE.prototype.delete=$7r;GE.prototype.get=V7r;GE.prototype.has=W7r;GE.prototype.set=j7r;var JOe=GE;function MZe(){this.size=0,this.__data__={hash:new JOe,map:new(b3||yG),string:new JOe}}q(MZe,"mapCacheClear");var X7r=MZe;function LZe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}q(LZe,"isKeyable");var Q7r=LZe;function PZe(t,e){var r=t.__data__;return Q7r(e)?r[typeof e=="string"?"string":"hash"]:r.map}q(PZe,"getMapData");var bG=PZe;function FZe(t){var e=bG(this,t).delete(t);return this.size-=e?1:0,e}q(FZe,"mapCacheDelete");var Z7r=FZe;function BZe(t){return bG(this,t).get(t)}q(BZe,"mapCacheGet");var J7r=BZe;function UZe(t){return bG(this,t).has(t)}q(UZe,"mapCacheHas");var e8r=UZe;function $Ze(t,e){var r=bG(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}q($Ze,"mapCacheSet");var t8r=$Ze;function zE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}q(zE,"MapCache");zE.prototype.clear=X7r;zE.prototype.delete=Z7r;zE.prototype.get=J7r;zE.prototype.has=e8r;zE.prototype.set=t8r;var EG=zE,r8r=200;function GZe(t,e){var r=this.__data__;if(r instanceof yG){var n=r.__data__;if(!b3||n.length<r8r-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new EG(n)}return r.set(t,e),this.size=r.size,this}q(GZe,"stackSet");var n8r=GZe;function qE(t){var e=this.__data__=new yG(t);this.size=e.size}q(qE,"Stack");qE.prototype.clear=i7r;qE.prototype.delete=a7r;qE.prototype.get=s7r;qE.prototype.has=o7r;qE.prototype.set=n8r;var k6=qE,i8r="__lodash_hash_undefined__";function zZe(t){return this.__data__.set(t,i8r),this}q(zZe,"setCacheAdd");var a8r=zZe;function qZe(t){return this.__data__.has(t)}q(qZe,"setCacheHas");var s8r=qZe;function S3(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new EG;++e<r;)this.add(t[e])}q(S3,"SetCache");S3.prototype.add=S3.prototype.push=a8r;S3.prototype.has=s8r;var VZe=S3;function HZe(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}q(HZe,"arraySome");var o8r=HZe;function YZe(t,e){return t.has(e)}q(YZe,"cacheHas");var WZe=YZe,l8r=1,c8r=2;function KZe(t,e,r,n,i,a){var s=r&l8r,o=t.length,l=e.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&c8r?new VZe:void 0;for(a.set(t,e),a.set(e,t);++h<o;){var g=t[h],m=e[h];if(n)var _=s?n(m,g,h,e,t,a):n(g,m,h,t,e,a);if(_!==void 0){if(_)continue;f=!1;break}if(p){if(!o8r(e,function(v,y){if(!WZe(p,y)&&(g===v||i(g,v,r,n,a)))return p.push(y)})){f=!1;break}}else if(!(g===m||i(g,m,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}q(KZe,"equalArrays");var jZe=KZe,u8r=Y0.Uint8Array,eIe=u8r;function XZe(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}q(XZe,"mapToArray");var d8r=XZe;function QZe(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}q(QZe,"setToArray");var afe=QZe,h8r=1,f8r=2,p8r="[object Boolean]",g8r="[object Date]",m8r="[object Error]",_8r="[object Map]",v8r="[object Number]",y8r="[object RegExp]",b8r="[object Set]",E8r="[object String]",S8r="[object Symbol]",T8r="[object ArrayBuffer]",C8r="[object DataView]",tIe=Eg?Eg.prototype:void 0,kX=tIe?tIe.valueOf:void 0;function ZZe(t,e,r,n,i,a,s){switch(r){case C8r:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T8r:return!(t.byteLength!=e.byteLength||!a(new eIe(t),new eIe(e)));case p8r:case g8r:case v8r:return sZe(+t,+e);case m8r:return t.name==e.name&&t.message==e.message;case y8r:case E8r:return t==e+"";case _8r:var o=d8r;case b8r:var l=n&h8r;if(o||(o=afe),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;n|=f8r,s.set(t,e);var d=jZe(o(t),o(e),n,i,a,s);return s.delete(t),d;case S8r:if(kX)return kX.call(t)==kX.call(e)}return!1}q(ZZe,"equalByTag");var w8r=ZZe;function JZe(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}q(JZe,"arrayPush");var eJe=JZe,x8r=Array.isArray,Tu=x8r;function tJe(t,e,r){var n=e(t);return Tu(t)?n:eJe(n,r(t))}q(tJe,"baseGetAllKeys");var A8r=tJe;function rJe(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var s=t[r];e(s,r,t)&&(a[i++]=s)}return a}q(rJe,"arrayFilter");var nJe=rJe;function iJe(){return[]}q(iJe,"stubArray");var R8r=iJe,O8r=Object.prototype,I8r=O8r.propertyIsEnumerable,rIe=Object.getOwnPropertySymbols,N8r=rIe?function(t){return t==null?[]:(t=Object(t),nJe(rIe(t),function(e){return I8r.call(t,e)}))}:R8r,k8r=N8r;function aJe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}q(aJe,"baseTimes");var D8r=aJe;function sJe(t){return t!=null&&typeof t=="object"}q(sJe,"isObjectLike");var zA=sJe,M8r="[object Arguments]";function oJe(t){return zA(t)&&KR(t)==M8r}q(oJe,"baseIsArguments");var nIe=oJe,lJe=Object.prototype,L8r=lJe.hasOwnProperty,P8r=lJe.propertyIsEnumerable,F8r=nIe((function(){return arguments})())?nIe:function(t){return zA(t)&&L8r.call(t,"callee")&&!P8r.call(t,"callee")},SG=F8r;function cJe(){return!1}q(cJe,"stubFalse");var B8r=cJe,uJe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iIe=uJe&&typeof module=="object"&&module&&!module.nodeType&&module,U8r=iIe&&iIe.exports===uJe,aIe=U8r?Y0.Buffer:void 0,$8r=aIe?aIe.isBuffer:void 0,G8r=$8r||B8r,sF=G8r,z8r=9007199254740991,q8r=/^(?:0|[1-9]\d*)$/;function dJe(t,e){var r=typeof t;return e=e??z8r,!!e&&(r=="number"||r!="symbol"&&q8r.test(t))&&t>-1&&t%1==0&&t<e}q(dJe,"isIndex");var hJe=dJe,V8r=9007199254740991;function fJe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=V8r}q(fJe,"isLength");var sfe=fJe,H8r="[object Arguments]",Y8r="[object Array]",W8r="[object Boolean]",K8r="[object Date]",j8r="[object Error]",X8r="[object Function]",Q8r="[object Map]",Z8r="[object Number]",J8r="[object Object]",eFr="[object RegExp]",tFr="[object Set]",rFr="[object String]",nFr="[object WeakMap]",iFr="[object ArrayBuffer]",aFr="[object DataView]",sFr="[object Float32Array]",oFr="[object Float64Array]",lFr="[object Int8Array]",cFr="[object Int16Array]",uFr="[object Int32Array]",dFr="[object Uint8Array]",hFr="[object Uint8ClampedArray]",fFr="[object Uint16Array]",pFr="[object Uint32Array]",hs={};hs[sFr]=hs[oFr]=hs[lFr]=hs[cFr]=hs[uFr]=hs[dFr]=hs[hFr]=hs[fFr]=hs[pFr]=!0;hs[H8r]=hs[Y8r]=hs[iFr]=hs[W8r]=hs[aFr]=hs[K8r]=hs[j8r]=hs[X8r]=hs[Q8r]=hs[Z8r]=hs[J8r]=hs[eFr]=hs[tFr]=hs[rFr]=hs[nFr]=!1;function pJe(t){return zA(t)&&sfe(t.length)&&!!hs[KR(t)]}q(pJe,"baseIsTypedArray");var gFr=pJe;function gJe(t){return function(e){return t(e)}}q(gJe,"baseUnary");var mFr=gJe,mJe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,GN=mJe&&typeof module=="object"&&module&&!module.nodeType&&module,_Fr=GN&&GN.exports===mJe,DX=_Fr&&mZe.process,vFr=(function(){try{var t=GN&&GN.require&&GN.require("util").types;return t||DX&&DX.binding&&DX.binding("util")}catch{}})(),sIe=vFr,oIe=sIe&&sIe.isTypedArray,yFr=oIe?mFr(oIe):gFr,ofe=yFr,bFr=Object.prototype,EFr=bFr.hasOwnProperty;function _Je(t,e){var r=Tu(t),n=!r&&SG(t),i=!r&&!n&&sF(t),a=!r&&!n&&!i&&ofe(t),s=r||n||i||a,o=s?D8r(t.length,String):[],l=o.length;for(var u in t)(e||EFr.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||hJe(u,l)))&&o.push(u);return o}q(_Je,"arrayLikeKeys");var SFr=_Je,TFr=Object.prototype;function vJe(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||TFr;return t===r}q(vJe,"isPrototype");var yJe=vJe;function bJe(t,e){return function(r){return t(e(r))}}q(bJe,"overArg");var CFr=bJe,wFr=CFr(Object.keys,Object),xFr=wFr,AFr=Object.prototype,RFr=AFr.hasOwnProperty;function EJe(t){if(!yJe(t))return xFr(t);var e=[];for(var r in Object(t))RFr.call(t,r)&&r!="constructor"&&e.push(r);return e}q(EJe,"baseKeys");var SJe=EJe;function TJe(t){return t!=null&&sfe(t.length)&&!TZe(t)}q(TJe,"isArrayLike");var TG=TJe;function CJe(t){return TG(t)?SFr(t):SJe(t)}q(CJe,"keys");var lfe=CJe;function wJe(t){return A8r(t,lfe,k8r)}q(wJe,"getAllKeys");var lIe=wJe,OFr=1,IFr=Object.prototype,NFr=IFr.hasOwnProperty;function xJe(t,e,r,n,i,a){var s=r&OFr,o=lIe(t),l=o.length,u=lIe(e),d=u.length;if(l!=d&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in e:NFr.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var _=s;++h<l;){f=o[h];var v=t[f],y=e[f];if(n)var b=s?n(y,v,f,e,t,a):n(v,y,f,t,e,a);if(!(b===void 0?v===y||i(v,y,r,n,a):b)){m=!1;break}_||(_=f=="constructor")}if(m&&!_){var E=t.constructor,S=e.constructor;E!=S&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(t),a.delete(e),m}q(xJe,"equalObjects");var kFr=xJe,DFr=jR(Y0,"DataView"),Xre=DFr,MFr=jR(Y0,"Promise"),Qre=MFr,LFr=jR(Y0,"Set"),cC=LFr,PFr=jR(Y0,"WeakMap"),Zre=PFr,cIe="[object Map]",FFr="[object Object]",uIe="[object Promise]",dIe="[object Set]",hIe="[object WeakMap]",fIe="[object DataView]",BFr=$E(Xre),UFr=$E(b3),$Fr=$E(Qre),GFr=$E(cC),zFr=$E(Zre),Zv=KR;(Xre&&Zv(new Xre(new ArrayBuffer(1)))!=fIe||b3&&Zv(new b3)!=cIe||Qre&&Zv(Qre.resolve())!=uIe||cC&&Zv(new cC)!=dIe||Zre&&Zv(new Zre)!=hIe)&&(Zv=q(function(t){var e=KR(t),r=e==FFr?t.constructor:void 0,n=r?$E(r):"";if(n)switch(n){case BFr:return fIe;case UFr:return cIe;case $Fr:return uIe;case GFr:return dIe;case zFr:return hIe}return e},"getTag"));var Jre=Zv,qFr=1,pIe="[object Arguments]",gIe="[object Array]",JL="[object Object]",VFr=Object.prototype,mIe=VFr.hasOwnProperty;function AJe(t,e,r,n,i,a){var s=Tu(t),o=Tu(e),l=s?gIe:Jre(t),u=o?gIe:Jre(e);l=l==pIe?JL:l,u=u==pIe?JL:u;var d=l==JL,h=u==JL,f=l==u;if(f&&sF(t)){if(!sF(e))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new k6),s||ofe(t)?jZe(t,e,r,n,i,a):w8r(t,e,l,r,n,i,a);if(!(r&qFr)){var p=d&&mIe.call(t,"__wrapped__"),g=h&&mIe.call(e,"__wrapped__");if(p||g){var m=p?t.value():t,_=g?e.value():e;return a||(a=new k6),i(m,_,r,n,a)}}return f?(a||(a=new k6),kFr(t,e,r,n,i,a)):!1}q(AJe,"baseIsEqualDeep");var HFr=AJe;function cfe(t,e,r,n,i){return t===e?!0:t==null||e==null||!zA(t)&&!zA(e)?t!==t&&e!==e:HFr(t,e,r,n,cfe,i)}q(cfe,"baseIsEqual");var RJe=cfe,YFr=1,WFr=2;function OJe(t,e,r,n){var i=r.length,a=i,s=!n;if(t==null)return!a;for(t=Object(t);i--;){var o=r[i];if(s&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<a;){o=r[i];var l=o[0],u=t[l],d=o[1];if(s&&o[2]){if(u===void 0&&!(l in t))return!1}else{var h=new k6;if(n)var f=n(u,d,l,t,e,h);if(!(f===void 0?RJe(d,u,YFr|WFr,n,h):f))return!1}}return!0}q(OJe,"baseIsMatch");var KFr=OJe;function IJe(t){return t===t&&!ife(t)}q(IJe,"isStrictComparable");var NJe=IJe;function kJe(t){for(var e=lfe(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,NJe(i)]}return e}q(kJe,"getMatchData");var jFr=kJe;function DJe(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}q(DJe,"matchesStrictComparable");var MJe=DJe;function LJe(t){var e=jFr(t);return e.length==1&&e[0][2]?MJe(e[0][0],e[0][1]):function(r){return r===t||KFr(r,t,e)}}q(LJe,"baseMatches");var XFr=LJe,QFr="[object Symbol]";function PJe(t){return typeof t=="symbol"||zA(t)&&KR(t)==QFr}q(PJe,"isSymbol");var CG=PJe,ZFr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JFr=/^\w*$/;function FJe(t,e){if(Tu(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||CG(t)?!0:JFr.test(t)||!ZFr.test(t)||e!=null&&t in Object(e)}q(FJe,"isKey");var ufe=FJe,eBr="Expected a function";function wG(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(eBr);var r=q(function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s},"memoized");return r.cache=new(wG.Cache||EG),r}q(wG,"memoize");wG.Cache=EG;var tBr=wG,rBr=500;function BJe(t){var e=tBr(t,function(n){return r.size===rBr&&r.clear(),n}),r=e.cache;return e}q(BJe,"memoizeCapped");var nBr=BJe,iBr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aBr=/\\(\\)?/g,sBr=nBr(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(iBr,function(r,n,i,a){e.push(i?a.replace(aBr,"$1"):n||r)}),e}),oBr=sBr,_Ie=Eg?Eg.prototype:void 0,vIe=_Ie?_Ie.toString:void 0;function dfe(t){if(typeof t=="string")return t;if(Tu(t))return nZe(t,dfe)+"";if(CG(t))return vIe?vIe.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}q(dfe,"baseToString");var lBr=dfe;function UJe(t){return t==null?"":lBr(t)}q(UJe,"toString");var cBr=UJe;function $Je(t,e){return Tu(t)?t:ufe(t,e)?[t]:oBr(cBr(t))}q($Je,"castPath");var GJe=$Je;function zJe(t){if(typeof t=="string"||CG(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}q(zJe,"toKey");var xG=zJe;function qJe(t,e){e=GJe(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[xG(e[r++])];return r&&r==n?t:void 0}q(qJe,"baseGet");var VJe=qJe;function HJe(t,e,r){var n=t==null?void 0:VJe(t,e);return n===void 0?r:n}q(HJe,"get");var uBr=HJe;function YJe(t,e){return t!=null&&e in Object(t)}q(YJe,"baseHasIn");var dBr=YJe;function WJe(t,e,r){e=GJe(e,t);for(var n=-1,i=e.length,a=!1;++n<i;){var s=xG(e[n]);if(!(a=t!=null&&r(t,s)))break;t=t[s]}return a||++n!=i?a:(i=t==null?0:t.length,!!i&&sfe(i)&&hJe(s,i)&&(Tu(t)||SG(t)))}q(WJe,"hasPath");var hBr=WJe;function KJe(t,e){return t!=null&&hBr(t,e,dBr)}q(KJe,"hasIn");var fBr=KJe,pBr=1,gBr=2;function jJe(t,e){return ufe(t)&&NJe(e)?MJe(xG(t),e):function(r){var n=uBr(r,t);return n===void 0&&n===e?fBr(r,t):RJe(e,n,pBr|gBr)}}q(jJe,"baseMatchesProperty");var mBr=jJe;function XJe(t){return t}q(XJe,"identity");var hfe=XJe;function QJe(t){return function(e){return e?.[t]}}q(QJe,"baseProperty");var _Br=QJe;function ZJe(t){return function(e){return VJe(e,t)}}q(ZJe,"basePropertyDeep");var vBr=ZJe;function JJe(t){return ufe(t)?_Br(xG(t)):vBr(t)}q(JJe,"property");var yBr=JJe;function eet(t){return typeof t=="function"?t:t==null?hfe:typeof t=="object"?Tu(t)?mBr(t[0],t[1]):XFr(t):yBr(t)}q(eet,"baseIteratee");var AG=eet;function tet(t){return function(e,r,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[t?o:++i];if(r(a[l],l,a)===!1)break}return e}}q(tet,"createBaseFor");var bBr=tet,EBr=bBr(),SBr=EBr;function ret(t,e){return t&&SBr(t,e,lfe)}q(ret,"baseForOwn");var TBr=ret;function net(t,e){return function(r,n){if(r==null)return r;if(!TG(r))return t(r,n);for(var i=r.length,a=e?i:-1,s=Object(r);(e?a--:++a<i)&&n(s[a],a,s)!==!1;);return r}}q(net,"createBaseEach");var CBr=net,wBr=CBr(TBr),RG=wBr;function iet(t,e){var r=-1,n=TG(t)?Array(t.length):[];return RG(t,function(i,a,s){n[++r]=e(i,a,s)}),n}q(iet,"baseMap");var xBr=iet;function aet(t,e){var r=Tu(t)?nZe:xBr;return r(t,AG(e))}q(aet,"map");var $m=aet;function set(t,e){var r=[];return RG(t,function(n,i,a){e(n,i,a)&&r.push(n)}),r}q(set,"baseFilter");var ABr=set;function oet(t,e){var r=Tu(t)?nJe:ABr;return r(t,AG(e))}q(oet,"filter");var RBr=oet;function Xb(t,e,r){return`${t.name}_${e}_${r}`}q(Xb,"buildATNKey");var I1=1,OBr=2,cet=4,uet=5,ID=7,IBr=8,NBr=9,kBr=10,DBr=11,det=12,L2,ffe=(L2=class{constructor(e){this.target=e}isEpsilon(){return!1}},q(L2,"AbstractTransition"),L2),P2,pfe=(P2=class extends ffe{constructor(e,r){super(e),this.tokenType=r}},q(P2,"AtomTransition"),P2),F2,het=(F2=class extends ffe{constructor(e){super(e)}isEpsilon(){return!0}},q(F2,"EpsilonTransition"),F2),B2,gfe=(B2=class extends ffe{constructor(e,r,n){super(e),this.rule=r,this.followState=n}isEpsilon(){return!0}},q(B2,"RuleTransition"),B2);function fet(t){const e={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};pet(e,t);const r=t.length;for(let n=0;n<r;n++){const i=t[n],a=iv(e,i,i);a!==void 0&&xet(e,i,a)}return e}q(fet,"createATN");function pet(t,e){const r=e.length;for(let n=0;n<r;n++){const i=e[n],a=fl(t,i,void 0,{type:OBr}),s=fl(t,i,void 0,{type:ID});a.stop=s,t.ruleToStartState.set(i,a),t.ruleToStopState.set(i,s)}}q(pet,"createRuleStartAndStopATNStates");function mfe(t,e,r){return r instanceof gs?OG(t,e,r.terminalType,r):r instanceof Eu?wet(t,e,r):r instanceof fd?yet(t,e,r):r instanceof nc?bet(t,e,r):r instanceof lo?get(t,e,r):r instanceof hd?met(t,e,r):r instanceof rh?_et(t,e,r):r instanceof nh?vet(t,e,r):iv(t,e,r)}q(mfe,"atom");function get(t,e,r){const n=fl(t,e,r,{type:uet});W0(t,n);const i=VE(t,e,n,r,iv(t,e,r));return vfe(t,e,r,i)}q(get,"repetition");function met(t,e,r){const n=fl(t,e,r,{type:uet});W0(t,n);const i=VE(t,e,n,r,iv(t,e,r)),a=OG(t,e,r.separator,r);return vfe(t,e,r,i,a)}q(met,"repetitionSep");function _et(t,e,r){const n=fl(t,e,r,{type:cet});W0(t,n);const i=VE(t,e,n,r,iv(t,e,r));return _fe(t,e,r,i)}q(_et,"repetitionMandatory");function vet(t,e,r){const n=fl(t,e,r,{type:cet});W0(t,n);const i=VE(t,e,n,r,iv(t,e,r)),a=OG(t,e,r.separator,r);return _fe(t,e,r,i,a)}q(vet,"repetitionMandatorySep");function yet(t,e,r){const n=fl(t,e,r,{type:I1});W0(t,n);const i=$m(r.definition,s=>mfe(t,e,s));return VE(t,e,n,r,...i)}q(yet,"alternation");function bet(t,e,r){const n=fl(t,e,r,{type:I1});W0(t,n);const i=VE(t,e,n,r,iv(t,e,r));return Eet(t,e,r,i)}q(bet,"option");function iv(t,e,r){const n=RBr($m(r.definition,i=>mfe(t,e,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:Cet(t,n)}q(iv,"block");function _fe(t,e,r,n,i){const a=n.left,s=n.right,o=fl(t,e,r,{type:DBr});W0(t,o);const l=fl(t,e,r,{type:det});return a.loopback=o,l.loopback=o,t.decisionMap[Xb(e,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,xo(s,o),i===void 0?(xo(o,a),xo(o,l)):(xo(o,l),xo(o,i.left),xo(i.right,a)),{left:a,right:l}}q(_fe,"plus");function vfe(t,e,r,n,i){const a=n.left,s=n.right,o=fl(t,e,r,{type:kBr});W0(t,o);const l=fl(t,e,r,{type:det}),u=fl(t,e,r,{type:NBr});return o.loopback=u,l.loopback=u,xo(o,a),xo(o,l),xo(s,u),i!==void 0?(xo(u,l),xo(u,i.left),xo(i.right,a)):xo(u,o),t.decisionMap[Xb(e,i?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}q(vfe,"star");function Eet(t,e,r,n){const i=n.left,a=n.right;return xo(i,a),t.decisionMap[Xb(e,"Option",r.idx)]=i,n}q(Eet,"optional");function W0(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}q(W0,"defineDecisionState");function VE(t,e,r,n,...i){const a=fl(t,e,n,{type:IBr,start:r});r.end=a;for(const o of i)o!==void 0?(xo(r,o.left),xo(o.right,a)):xo(r,a);const s={left:r,right:a};return t.decisionMap[Xb(e,Tet(n),n.idx)]=r,s}q(VE,"makeAlts");function Tet(t){if(t instanceof fd)return"Alternation";if(t instanceof nc)return"Option";if(t instanceof lo)return"Repetition";if(t instanceof hd)return"RepetitionWithSeparator";if(t instanceof rh)return"RepetitionMandatory";if(t instanceof nh)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}q(Tet,"getProdType");function Cet(t,e){const r=e.length;for(let a=0;a<r-1;a++){const s=e[a];let o;s.left.transitions.length===1&&(o=s.left.transitions[0]);const l=o instanceof gfe,u=o,d=e[a+1].left;s.left.type===I1&&s.right.type===I1&&o!==void 0&&(l&&u.followState===s.right||o.target===s.right)?(l?u.followState=d:o.target=d,Aet(t,s.right)):xo(s.right,d)}const n=e[0],i=e[r-1];return{left:n.left,right:i.right}}q(Cet,"makeBlock");function OG(t,e,r,n){const i=fl(t,e,n,{type:I1}),a=fl(t,e,n,{type:I1});return IG(i,new pfe(a,r)),{left:i,right:a}}q(OG,"tokenRef");function wet(t,e,r){const n=r.referencedRule,i=t.ruleToStartState.get(n),a=fl(t,e,r,{type:I1}),s=fl(t,e,r,{type:I1}),o=new gfe(i,n,s);return IG(a,o),{left:a,right:s}}q(wet,"ruleRef");function xet(t,e,r){const n=t.ruleToStartState.get(e);xo(n,r.left);const i=t.ruleToStopState.get(e);return xo(r.right,i),{left:n,right:i}}q(xet,"buildRuleHandle");function xo(t,e){const r=new het(e);IG(t,r)}q(xo,"epsilon");function fl(t,e,r,n){const i=Object.assign({atn:t,production:r,epsilonOnlyTransitions:!1,rule:e,transitions:[],nextTokenWithinRule:[],stateNumber:t.states.length},n);return t.states.push(i),i}q(fl,"newState");function IG(t,e){t.transitions.length===0&&(t.epsilonOnlyTransitions=e.isEpsilon()),t.transitions.push(e)}q(IG,"addTransition");function Aet(t,e){t.states.splice(t.states.indexOf(e),1)}q(Aet,"removeState");var oF={},U2,ene=(U2=class{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const r=yfe(e);r in this.map||(this.map[r]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return $m(this.configs,e=>e.alt)}get key(){let e="";for(const r in this.map)e+=r+":";return e}},q(U2,"ATNConfigSet"),U2);function yfe(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}q(yfe,"getATNConfigKey");function Ret(t,e,r){for(var n=-1,i=t.length;++n<i;){var a=t[n],s=e(a);if(s!=null&&(o===void 0?s===s&&!CG(s):r(s,o)))var o=s,l=a}return l}q(Ret,"baseExtremum");var MBr=Ret;function Oet(t,e){return t<e}q(Oet,"baseLt");var LBr=Oet;function Iet(t){return t&&t.length?MBr(t,hfe,LBr):void 0}q(Iet,"min");var PBr=Iet,yIe=Eg?Eg.isConcatSpreadable:void 0;function Net(t){return Tu(t)||SG(t)||!!(yIe&&t&&t[yIe])}q(Net,"isFlattenable");var FBr=Net;function bfe(t,e,r,n,i){var a=-1,s=t.length;for(r||(r=FBr),i||(i=[]);++a<s;){var o=t[a];e>0&&r(o)?e>1?bfe(o,e-1,r,n,i):eJe(i,o):n||(i[i.length]=o)}return i}q(bfe,"baseFlatten");var ket=bfe;function Det(t,e){return ket($m(t,e),1)}q(Det,"flatMap");var BBr=Det;function Met(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a<i;)if(e(t[a],a,t))return a;return-1}q(Met,"baseFindIndex");var UBr=Met;function Let(t){return t!==t}q(Let,"baseIsNaN");var $Br=Let;function Pet(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}q(Pet,"strictIndexOf");var GBr=Pet;function Fet(t,e,r){return e===e?GBr(t,e,r):UBr(t,$Br,r)}q(Fet,"baseIndexOf");var zBr=Fet;function Bet(t,e){var r=t==null?0:t.length;return!!r&&zBr(t,e,0)>-1}q(Bet,"arrayIncludes");var qBr=Bet;function Uet(t,e,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}q(Uet,"arrayIncludesWith");var VBr=Uet;function $et(){}q($et,"noop");var HBr=$et,YBr=1/0,WBr=cC&&1/afe(new cC([,-0]))[1]==YBr?function(t){return new cC(t)}:HBr,KBr=WBr,jBr=200;function Get(t,e,r){var n=-1,i=qBr,a=t.length,s=!0,o=[],l=o;if(r)s=!1,i=VBr;else if(a>=jBr){var u=e?null:KBr(t);if(u)return afe(u);s=!1,i=WZe,l=new VZe}else l=e?[]:o;e:for(;++n<a;){var d=t[n],h=e?e(d):d;if(d=r||d!==0?d:0,s&&h===h){for(var f=l.length;f--;)if(l[f]===h)continue e;e&&l.push(h),o.push(d)}else i(l,h,r)||(l!==o&&l.push(h),o.push(d))}return o}q(Get,"baseUniq");var XBr=Get;function zet(t,e){return t&&t.length?XBr(t,AG(e)):[]}q(zet,"uniqBy");var QBr=zet;function qet(t){var e=t==null?0:t.length;return e?ket(t,1):[]}q(qet,"flatten");var ZBr=qet;function Vet(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}q(Vet,"arrayEach");var JBr=Vet;function Het(t){return typeof t=="function"?t:hfe}q(Het,"castFunction");var eUr=Het;function Yet(t,e){var r=Tu(t)?JBr:RG;return r(t,eUr(e))}q(Yet,"forEach");var MX=Yet,tUr="[object Map]",rUr="[object Set]",nUr=Object.prototype,iUr=nUr.hasOwnProperty;function Wet(t){if(t==null)return!0;if(TG(t)&&(Tu(t)||typeof t=="string"||typeof t.splice=="function"||sF(t)||ofe(t)||SG(t)))return!t.length;var e=Jre(t);if(e==tUr||e==rUr)return!t.size;if(yJe(t))return!SJe(t).length;for(var r in t)if(iUr.call(t,r))return!1;return!0}q(Wet,"isEmpty");var aUr=Wet;function Ket(t,e,r,n){var i=-1,a=t==null?0:t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r}q(Ket,"arrayReduce");var sUr=Ket;function jet(t,e,r,n,i){return i(t,function(a,s,o){r=n?(n=!1,a):e(r,a,s,o)}),r}q(jet,"baseReduce");var oUr=jet;function Xet(t,e,r){var n=Tu(t)?sUr:oUr,i=arguments.length<3;return n(t,AG(e),r,i,RG)}q(Xet,"reduce");var bIe=Xet;function Qet(t,e){const r={};return n=>{const i=n.toString();let a=r[i];return a!==void 0||(a={atnStartState:t,decision:e,states:{}},r[i]=a),a}}q(Qet,"createDFACache");var $2,Zet=($2=class{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="";const r=this.predicates.length;for(let n=0;n<r;n++)e+=this.predicates[n]===!0?"1":"0";return e}},q($2,"PredicateSet"),$2),EIe=new Zet,G2,lUr=(G2=class extends tfe{constructor(e){var r;super(),this.logging=(r=e?.logging)!==null&&r!==void 0?r:(n=>console.log(n))}initialize(e){this.atn=fet(e.rules),this.dfas=Jet(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=Xb(n,"Alternation",r),d=this.atn.decisionMap[l].decision,h=$m($re({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),f=>$m(f,p=>p[0]));if(tne(h,!1)&&!a){const f=bIe(h,(p,g,m)=>(MX(g,_=>{_&&(p[_.tokenTypeIdx]=m,MX(_.categoryMatches,v=>{p[v]=m}))}),p),{});return i?function(p){var g;const m=this.LA(1),_=f[m.tokenTypeIdx];if(p!==void 0&&_!==void 0){const v=(g=p[_])===null||g===void 0?void 0:g.GATE;if(v!==void 0&&v.call(this)===!1)return}return _}:function(){const p=this.LA(1);return f[p.tokenTypeIdx]}}else return i?function(f){const p=new Zet,g=f===void 0?0:f.length;for(let _=0;_<g;_++){const v=f?.[_].GATE;p.set(_,v===void 0||v.call(this))}const m=D6.call(this,s,d,p,o);return typeof m=="number"?m:void 0}:function(){const f=D6.call(this,s,d,EIe,o);return typeof f=="number"?f:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:r,rule:n,prodType:i,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=Xb(n,i,r),d=this.atn.decisionMap[l].decision,h=$m($re({maxLookahead:1,occurrence:r,prodType:i,rule:n}),f=>$m(f,p=>p[0]));if(tne(h)&&h[0][0]&&!a){const f=h[0],p=ZBr(f);if(p.length===1&&aUr(p[0].categoryMatches)){const m=p[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===m}}else{const g=bIe(p,(m,_)=>(_!==void 0&&(m[_.tokenTypeIdx]=!0,MX(_.categoryMatches,v=>{m[v]=!0})),m),{});return function(){const m=this.LA(1);return g[m.tokenTypeIdx]===!0}}}return function(){const f=D6.call(this,s,d,EIe,o);return typeof f=="object"?!1:f===0}}},q(G2,"LLStarLookaheadStrategy"),G2);function tne(t,e=!0){const r=new Set;for(const n of t){const i=new Set;for(const a of n){if(a===void 0){if(e)break;return!1}const s=[a.tokenTypeIdx].concat(a.categoryMatches);for(const o of s)if(r.has(o)){if(!i.has(o))return!1}else r.add(o),i.add(o)}}return!0}q(tne,"isLL1Sequence");function Jet(t){const e=t.decisionStates.length,r=Array(e);for(let n=0;n<e;n++)r[n]=Qet(t.decisionStates[n],n);return r}q(Jet,"initATNSimulator");function D6(t,e,r,n){const i=t[e](r);let a=i.start;if(a===void 0){const o=utt(i.atnStartState);a=Sfe(i,Efe(o)),i.start=a}return ett.apply(this,[i,a,r,n])}q(D6,"adaptivePredict");function ett(t,e,r,n){let i=e,a=1;const s=[];let o=this.LA(a++);for(;;){let l=stt(i,o);if(l===void 0&&(l=ttt.apply(this,[t,i,o,a,r,n])),l===oF)return att(s,i,o);if(l.isAcceptState===!0)return l.prediction;i=l,s.push(o),o=this.LA(a++)}}q(ett,"performLookahead");function ttt(t,e,r,n,i,a){const s=ott(e.configs,r,i);if(s.size===0)return rne(t,e,r,oF),oF;let o=Efe(s);const l=ctt(s,i);if(l!==void 0)o.isAcceptState=!0,o.prediction=l,o.configs.uniqueAlt=l;else if(ptt(s)){const u=PBr(s.alts);o.isAcceptState=!0,o.prediction=u,o.configs.uniqueAlt=u,rtt.apply(this,[t,n,s.alts,a])}return o=rne(t,e,r,o),o}q(ttt,"computeLookaheadTarget");function rtt(t,e,r,n){const i=[];for(let u=1;u<=e;u++)i.push(this.LA(u).tokenType);const a=t.atnStartState,s=a.rule,o=a.production,l=ntt({topLevelRule:s,ambiguityIndices:r,production:o,prefixPath:i});n(l)}q(rtt,"reportLookaheadAmbiguity");function ntt(t){const e=$m(t.prefixPath,i=>lb(i)).join(", "),r=t.production.idx===0?"":t.production.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${itt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule,
<${e}> may appears as a prefix path in all these alternatives.
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,n}q(ntt,"buildAmbiguityError");function itt(t){if(t instanceof Eu)return"SUBRULE";if(t instanceof nc)return"OPTION";if(t instanceof fd)return"OR";if(t instanceof rh)return"AT_LEAST_ONE";if(t instanceof nh)return"AT_LEAST_ONE_SEP";if(t instanceof hd)return"MANY_SEP";if(t instanceof lo)return"MANY";if(t instanceof gs)return"CONSUME";throw Error("non exhaustive match")}q(itt,"getProductionDslName");function att(t,e,r){const n=BBr(e.configs.elements,a=>a.state.transitions),i=QBr(n.filter(a=>a instanceof pfe).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:t}}q(att,"buildAdaptivePredictError");function stt(t,e){return t.edges[e.tokenTypeIdx]}q(stt,"getExistingTargetState");function ott(t,e,r){const n=new ene,i=[];for(const s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===ID){i.push(s);continue}const o=s.state.transitions.length;for(let l=0;l<o;l++){const u=s.state.transitions[l],d=ltt(u,e);d!==void 0&&n.add({state:d,alt:s.alt,stack:s.stack})}}let a;if(i.length===0&&n.size===1&&(a=n),a===void 0){a=new ene;for(const s of n.elements)T3(s,a)}if(i.length>0&&!htt(a))for(const s of i)a.add(s);return a}q(ott,"computeReachSet");function ltt(t,e){if(t instanceof pfe&&Khe(e,t.tokenType))return t.target}q(ltt,"getReachableTarget");function ctt(t,e){let r;for(const n of t.elements)if(e.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}q(ctt,"getUniqueAlt");function Efe(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}q(Efe,"newDFAState");function rne(t,e,r,n){return n=Sfe(t,n),e.edges[r.tokenTypeIdx]=n,n}q(rne,"addDFAEdge");function Sfe(t,e){if(e===oF)return e;const r=e.configs.key,n=t.states[r];return n!==void 0?n:(e.configs.finalize(),t.states[r]=e,e)}q(Sfe,"addDFAState");function utt(t){const e=new ene,r=t.transitions.length;for(let n=0;n<r;n++){const a={state:t.transitions[n].target,alt:n,stack:[]};T3(a,e)}return e}q(utt,"computeStartState");function T3(t,e){const r=t.state;if(r.type===ID){if(t.stack.length>0){const i=[...t.stack],s={state:i.pop(),alt:t.alt,stack:i};T3(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);const n=r.transitions.length;for(let i=0;i<n;i++){const a=r.transitions[i],s=dtt(t,a);s!==void 0&&T3(s,e)}}q(T3,"closure");function dtt(t,e){if(e instanceof het)return{state:e.target,alt:t.alt,stack:t.stack};if(e instanceof gfe){const r=[...t.stack,e.followState];return{state:e.target,alt:t.alt,stack:r}}}q(dtt,"getEpsilonTarget");function htt(t){for(const e of t.elements)if(e.state.type===ID)return!0;return!1}q(htt,"hasConfigInRuleStopState");function ftt(t){for(const e of t.elements)if(e.state.type!==ID)return!1;return!0}q(ftt,"allConfigsInRuleStopStates");function ptt(t){if(ftt(t))return!0;const e=gtt(t.elements);return mtt(e)&&!_tt(e)}q(ptt,"hasConflictTerminatingPrediction");function gtt(t){const e=new Map;for(const r of t){const n=yfe(r,!1);let i=e.get(n);i===void 0&&(i={},e.set(n,i)),i[r.alt]=!0}return e}q(gtt,"getConflictingAltSets");function mtt(t){for(const e of Array.from(t.values()))if(Object.keys(e).length>1)return!0;return!1}q(mtt,"hasConflictingAltSet");function _tt(t){for(const e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}q(_tt,"hasStateAssociatedWithOneAlt");dD();var z2,vtt=(z2=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new Cfe(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const r=new NG;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){const n=new lF(e.startOffset,e.image.length,u3(e),e.tokenType,!r);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){const r=e.container;if(r){const n=r.content.indexOf(e);n>=0&&r.content.splice(n,1)}}addHiddenNodes(e){const r=[];for(const a of e){const s=new lF(a.startOffset,a.image.length,u3(a),a.tokenType,!0);s.root=this.rootNode,r.push(s)}let n=this.current,i=!1;if(n.content.length>0){n.content.push(...r);return}for(;n.container;){const a=n.container.content.indexOf(n);if(a>0){n.container.content.splice(a,0,...r),i=!0;break}n=n.container}i||this.rootNode.content.unshift(...r)}construct(e){const r=this.current;typeof e.$type=="string"&&!e.$infix&&(this.current.astNode=e),e.$cstNode=r;const n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},q(z2,"CstNodeBuilder"),z2),q2,Tfe=(q2=class{get hidden(){return!1}get astNode(){const e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},q(q2,"AbstractCstNode"),q2),V2,lF=(V2=class extends Tfe{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,r,n,i,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=i,this._length=r,this._range=n}},q(V2,"LeafCstNodeImpl"),V2),H2,NG=(H2=class extends Tfe{constructor(){super(...arguments),this.content=new cUr(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){const e=this.firstNonHiddenNode,r=this.lastNonHiddenNode;if(e&&r){if(this._rangeCache===void 0){const{range:n}=e,{range:i}=r;this._rangeCache={start:n.start,end:i.end.line<n.start.line?n.start:i.end}}return this._rangeCache}else return{start:wa.create(0,0),end:wa.create(0,0)}}get firstNonHiddenNode(){for(const e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){const r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},q(H2,"CompositeCstNodeImpl"),H2),hb,cUr=(hb=class extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,hb.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,r,...n){return this.addParents(n),super.splice(e,r,...n)}addParents(e){for(const r of e)r.container=this.parent}},q(hb,"CstNodeContainer"),hb),Y2,Cfe=(Y2=class extends NG{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},q(Y2,"RootCstNodeImpl"),Y2),cF=Symbol("Datatype");function M6(t){return t.$type===cF}q(M6,"isDataTypeNode");var SIe="​",ytt=q(t=>t.endsWith(SIe)?t:t+SIe,"withRuleSuffix"),W2,wfe=(W2=class{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const r=this.lexer.definition,n=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new dUr(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new Ttt(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},q(W2,"AbstractLangiumParser"),W2),K2,btt=(K2=class extends wfe{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new vtt,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){const n=this.computeRuleType(e);let i;PA(e)&&(i=e.name,this.registerPrecedenceMap(e));const a=this.wrapper.DEFINE_RULE(ytt(e.name),this.startImplementation(n,i,r).bind(this));return this.allRules.set(e.name,a),bu(e)&&e.entry&&(this.mainRule=a),a}registerPrecedenceMap(e){const r=e.name,n=new Map;for(let i=0;i<e.operators.precedences.length;i++){const a=e.operators.precedences[i];for(const s of a.operators)n.set(s.value,{precedence:i,rightAssoc:a.associativity==="right"})}this.operatorPrecedence.set(r,n)}computeRuleType(e){return PA(e)?Wb(e):e.fragment?void 0:gD(e)?cF:Wb(e)}parse(e,r={}){this.nodeBuilder.buildRootNode(e);const n=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=n.tokens;const i=r.rule?this.allRules.get(r.rule):this.mainRule;if(!i)throw new Error(r.rule?`No rule found with name '${r.rule}'`:"No main rule available.");const a=this.doParse(i);return this.nodeBuilder.addHiddenNodes(n.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,MA(a,{deep:!0}),{value:a,lexerErrors:n.errors,lexerReport:n.report,parserErrors:this.wrapper.errors}}doParse(e){let r=this.wrapper.rule(e);if(this.stack.length>0&&(r=this.construct()),r===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return r}startImplementation(e,r,n){return i=>{const a=!this.isRecording()&&e!==void 0;if(a){const s={$type:e};this.stack.push(s),e===cF?s.value="":r!==void 0&&(s.$infixName=r)}return n(i),a?this.construct():void 0}}extractHiddenTokens(e){const r=this.lexerResult.hidden;if(!r.length)return[];const n=e.startOffset;for(let i=0;i<r.length;i++)if(r[i].startOffset>n)return r.splice(0,i);return r.splice(0,r.length)}consume(e,r,n){const i=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(i)){const a=this.extractHiddenTokens(i);this.nodeBuilder.addHiddenNodes(a);const s=this.nodeBuilder.buildLeafNode(i,n),{assignment:o,crossRef:l}=this.getAssignment(n),u=this.current;if(o){const d=m0(n)?i.image:this.converter.convert(i.image,s);this.assign(o.operator,o.feature,d,s,l)}else if(M6(u)){let d=i.image;m0(n)||(d=this.converter.convert(d,s).toString()),u.value+=d}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,r,n,i,a){let s;!this.isRecording()&&!n&&(s=this.nodeBuilder.buildCompositeNode(i));let o;try{o=this.wrapper.wrapSubrule(e,r,a)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,i,s))}}performSubruleAssignment(e,r,n){const{assignment:i,crossRef:a}=this.getAssignment(r);if(i)this.assign(i.operator,i.feature,e,n,a);else if(!i){const s=this.current;if(M6(s))s.value+=e.toString();else if(typeof e=="object"&&e){const l=this.assignWithoutOverride(e,s);this.stack.pop(),this.stack.push(l)}}}action(e,r){if(!this.isRecording()){let n=this.current;if(r.feature&&r.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(r).content.push(n.$cstNode);const a={$type:e};this.stack.push(a),this.assign(r.operator,r.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):M6(e)?this.converter.convert(e.value,e.$cstNode):(Tde(this.astReflection,e),e)}constructInfix(e,r){const n=e.parts;if(!Array.isArray(n)||n.length===0)return;const i=e.operators;if(!Array.isArray(i)||n.length<2)return n[0];let a=0,s=-1;for(let m=0;m<i.length;m++){const _=i[m],v=r.get(_)??{precedence:1/0,rightAssoc:!1};v.precedence>s?(s=v.precedence,a=m):v.precedence===s&&(v.rightAssoc||(a=m))}const o=i.slice(0,a),l=i.slice(a+1),u=n.slice(0,a+1),d=n.slice(a+1),h={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:d,operators:l},p=this.constructInfix(h,r),g=this.constructInfix(f,r);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:i[a],right:g}}getAssignment(e){if(!this.assignmentMap.has(e)){const r=AE(e,g0);this.assignmentMap.set(e,{assignment:r,crossRef:r&&OE(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,n,i,a){const s=this.current;let o;switch(a==="single"&&typeof n=="string"?o=this.linker.buildReference(s,r,i,n):a==="multi"&&typeof n=="string"?o=this.linker.buildMultiReference(s,r,i,n):o=n,e){case"=":{s[r]=o;break}case"?=":{s[r]=!0;break}case"+=":Array.isArray(s[r])||(s[r]=[]),s[r].push(o)}}assignWithoutOverride(e,r){for(const[i,a]of Object.entries(r)){const s=e[i];s===void 0?e[i]=a:Array.isArray(s)&&Array.isArray(a)&&(a.push(...s),e[i]=a)}const n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},q(K2,"LangiumParser"),K2),j2,Ett=(j2=class{buildMismatchTokenMessage(e){return IT.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return IT.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return IT.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return IT.buildEarlyExitMessage(e)}},q(j2,"AbstractParserErrorMessageProvider"),j2),X2,xfe=(X2=class extends Ett{buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},q(X2,"LangiumParserErrorMessageProvider"),X2),Q2,Stt=(Q2=class extends wfe{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const r=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){const n=this.wrapper.DEFINE_RULE(ytt(e.name),this.startImplementation(r).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return r=>{const n=this.keepStackSize();try{e(r)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,n){this.wrapper.wrapConsume(e,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,r,n,i,a){this.before(i),this.wrapper.wrapSubrule(e,r,a),this.after(i)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const r=this.elementStack.lastIndexOf(e);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},q(Q2,"LangiumCompletionParser"),Q2),uUr={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new xfe},Z2,Ttt=(Z2=class extends X9r{constructor(e,r){const n=r&&"maxLookahead"in r;super(e,{...uUr,lookaheadStrategy:n?new tfe({maxLookahead:r.maxLookahead}):new lUr({logging:r.skipValidations?()=>{}:void 0}),...r})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r,n){return this.RULE(e,r,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r,void 0)}wrapSubrule(e,r,n){return this.subrule(e,r,{ARGS:[n]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}rule(e){return e.call(this,{})}},q(Z2,"ChevrotainWrapper"),Z2),J2,dUr=(J2=class extends Ttt{constructor(e,r,n){super(e,r),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,r,n){this.task.startSubTask(this.ruleName(r));try{return super.subrule(e,r,n)}finally{this.task.stopSubTask(this.ruleName(r))}}},q(J2,"ProfilerWrapper"),J2);function kG(t,e,r){return Ctt({parser:e,tokens:r,ruleNames:new Map},t),e}q(kG,"createParser");function Ctt(t,e){const r=W$(e,!1),n=Ga(e.rules).filter(bu).filter(a=>r.has(a));for(const a of n){const s={...t,consume:1,optional:1,subrule:1,many:1,or:1};t.parser.rule(a,N1(s,a.definition))}const i=Ga(e.rules).filter(PA).filter(a=>r.has(a));for(const a of i)t.parser.rule(a,wtt(t,a))}q(Ctt,"buildRules");function wtt(t,e){const r=e.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+e.call.rule.$refText);if(Jh(r))throw new Error("Cannot use terminal rule in infix expression");const n=e.operators.precedences.flatMap(p=>p.operators),i={$type:"Group",elements:[]},a={$container:i,$type:"Assignment",feature:"parts",operator:"+=",terminal:e.call},s={$container:i,$type:"Group",elements:[],cardinality:"*"};i.elements.push(a,s);const l={$container:s,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...a,$container:s};s.elements.push(l,u);const h=n.map(p=>t.tokens[p.value]).map((p,g)=>({ALT:q(()=>t.parser.consume(g,p,l),"ALT")}));let f;return p=>{f??(f=DG(t,r)),t.parser.subrule(0,f,!1,a,p),t.parser.many(0,{DEF:q(()=>{t.parser.alternatives(0,h),t.parser.subrule(1,f,!1,u,p)},"DEF")})}}q(wtt,"buildInfixRule");function N1(t,e,r=!1){let n;if(m0(e))n=ktt(t,e);else if(A1(e))n=xtt(t,e);else if(g0(e))n=N1(t,e.terminal);else if(OE(e))n=Afe(t,e);else if(_0(e))n=Att(t,e);else if(B$(e))n=Ott(t,e);else if(z$(e))n=Itt(t,e);else if(IE(e))n=Ntt(t,e);else if(Ide(e)){const i=t.consume++;n=q(()=>t.parser.consume(i,O1,e),"method")}else throw new V$(e.$cstNode,`Unexpected element type: ${e.$type}`);return Rfe(t,r?void 0:C3(e),n,e.cardinality)}q(N1,"buildElement");function xtt(t,e){const r=Wb(e);return()=>t.parser.action(r,e)}q(xtt,"buildAction");function Att(t,e){const r=e.rule.ref;if(RE(r)){const n=t.subrule++,i=bu(r)&&r.fragment,a=e.arguments.length>0?Rtt(r,e.arguments):()=>({});let s;return o=>{s??(s=DG(t,r)),t.parser.subrule(n,s,i,e,a(o))}}else if(Jh(r)){const n=t.consume++,i=uF(t,r.name);return()=>t.parser.consume(n,i,e)}else if(r)tv();else throw new V$(e.$cstNode,`Undefined rule: ${e.rule.$refText}`)}q(Att,"buildRuleCall");function Rtt(t,e){if(e.some(n=>n.calledByName)){const n=e.map(i=>({parameterName:i.parameter?.ref?.name,predicate:Cf(i.value)}));return i=>{const a={};for(const{parameterName:s,predicate:o}of n)s&&(a[s]=o(i));return a}}else{const n=e.map(i=>Cf(i.value));return i=>{const a={};for(let s=0;s<n.length;s++)if(s<t.parameters.length){const o=t.parameters[s].name,l=n[s];a[o]=l(i)}return a}}}q(Rtt,"buildRuleCallPredicate");function Cf(t){if(Ode(t)){const e=Cf(t.left),r=Cf(t.right);return n=>e(n)||r(n)}else if(Rde(t)){const e=Cf(t.left),r=Cf(t.right);return n=>e(n)&&r(n)}else if(Dde(t)){const e=Cf(t.value);return r=>!e(r)}else if(Mde(t)){const e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(xde(t)){const e=!!t.true;return()=>e}tv()}q(Cf,"buildPredicate");function Ott(t,e){if(e.elements.length===1)return N1(t,e.elements[0]);{const r=[];for(const i of e.elements){const a={ALT:N1(t,i,!0)},s=C3(i);s&&(a.GATE=Cf(s)),r.push(a)}const n=t.or++;return i=>t.parser.alternatives(n,r.map(a=>{const s={ALT:q(()=>a.ALT(i),"ALT")},o=a.GATE;return o&&(s.GATE=()=>o(i)),s}))}}q(Ott,"buildAlternatives");function Itt(t,e){if(e.elements.length===1)return N1(t,e.elements[0]);const r=[];for(const o of e.elements){const l={ALT:N1(t,o,!0)},u=C3(o);u&&(l.GATE=Cf(u)),r.push(l)}const n=t.or++,i=q((o,l)=>{const u=l.getRuleStack().join("-");return`uGroup_${o}_${u}`},"idFunc"),a=q(o=>t.parser.alternatives(n,r.map((l,u)=>{const d={ALT:q(()=>!0,"ALT")},h=t.parser;d.ALT=()=>{if(l.ALT(o),!h.isRecording()){const p=i(n,h);h.unorderedGroups.get(p)||h.unorderedGroups.set(p,[]);const g=h.unorderedGroups.get(p);typeof g?.[u]>"u"&&(g[u]=!0)}};const f=l.GATE;return f?d.GATE=()=>f(o):d.GATE=()=>!h.unorderedGroups.get(i(n,h))?.[u],d})),"alternatives"),s=Rfe(t,C3(e),a,"*");return o=>{s(o),t.parser.isRecording()||t.parser.unorderedGroups.delete(i(n,t.parser))}}q(Itt,"buildUnorderedGroup");function Ntt(t,e){const r=e.elements.map(n=>N1(t,n));return n=>r.forEach(i=>i(n))}q(Ntt,"buildGroup");function C3(t){if(IE(t))return t.guardCondition}q(C3,"getGuardCondition");function Afe(t,e,r=e.terminal){if(r)if(_0(r)&&bu(r.rule.ref)){const n=r.rule.ref,i=t.subrule++;let a;return s=>{a??(a=DG(t,n)),t.parser.subrule(i,a,!1,e,s)}}else if(_0(r)&&Jh(r.rule.ref)){const n=t.consume++,i=uF(t,r.rule.ref.name);return()=>t.parser.consume(n,i,e)}else if(m0(r)){const n=t.consume++,i=uF(t,r.value);return()=>t.parser.consume(n,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const i=Q$(e.type.ref)?.terminal;if(!i)throw new Error("Could not find name assignment for type: "+Wb(e.type.ref));return Afe(t,e,i)}}q(Afe,"buildCrossReference");function ktt(t,e){const r=t.consume++,n=t.tokens[e.value];if(!n)throw new Error("Could not find token for keyword: "+e.value);return()=>t.parser.consume(r,n,e)}q(ktt,"buildKeyword");function Rfe(t,e,r,n){const i=e&&Cf(e);if(!n)if(i){const a=t.or++;return s=>t.parser.alternatives(a,[{ALT:q(()=>r(s),"ALT"),GATE:q(()=>i(s),"GATE")},{ALT:jre(),GATE:q(()=>!i(s),"GATE")}])}else return r;if(n==="*"){const a=t.many++;return s=>t.parser.many(a,{DEF:q(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else if(n==="+"){const a=t.many++;if(i){const s=t.or++;return o=>t.parser.alternatives(s,[{ALT:q(()=>t.parser.atLeastOne(a,{DEF:q(()=>r(o),"DEF")}),"ALT"),GATE:q(()=>i(o),"GATE")},{ALT:jre(),GATE:q(()=>!i(o),"GATE")}])}else return s=>t.parser.atLeastOne(a,{DEF:q(()=>r(s),"DEF")})}else if(n==="?"){const a=t.optional++;return s=>t.parser.optional(a,{DEF:q(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else tv()}q(Rfe,"wrap");function DG(t,e){const r=Dtt(t,e),n=t.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}q(DG,"getRule");function Dtt(t,e){if(RE(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,i=e.$type;for(;!bu(n);)(IE(n)||B$(n)||z$(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,t.ruleNames.set(e,i),i}}q(Dtt,"getRuleName");function uF(t,e){const r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}q(uF,"getToken");function Ofe(t){const e=t.Grammar,r=t.parser.Lexer,n=new Stt(t);return kG(e,n,r.definition),n.finalize(),n}q(Ofe,"createCompletionParser");function Ife(t){const e=Nfe(t);return e.finalize(),e}q(Ife,"createLangiumParser");function Nfe(t){const e=t.Grammar,r=t.parser.Lexer,n=new btt(t);return kG(e,n,r.definition)}q(Nfe,"prepareLangiumParser");var ew,MG=(ew=class{constructor(){this.diagnostics=[]}buildTokens(e,r){const n=Ga(W$(e,!1)),i=this.buildTerminalTokens(n),a=this.buildKeywordTokens(n,i,r);return a.push(...i),a}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Jh).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){const r=_D(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,i={name:e.name,PATTERN:n};return typeof n=="function"&&(i.LINE_BREAKS=!0),e.hidden&&(i.GROUP=Y$(r)?mu.SKIPPED:"hidden"),i}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const r=new RegExp(e,e.flags+"y");return(n,i)=>(r.lastIndex=i,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(RE).flatMap(i=>V0(i).filter(m0)).distinct(i=>i.value).toArray().sort((i,a)=>a.value.length-i.value.length).map(i=>this.buildKeywordToken(i,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){const i=this.buildKeywordPattern(e,n),a={name:e.value,PATTERN:i,LONGER_ALT:this.findLongerAlt(e,r)};return typeof i=="function"&&(a.LINE_BREAKS=!0),a}buildKeywordPattern(e,r){return r?new RegExp(zR(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((n,i)=>{const a=i?.PATTERN;return a?.source&&rhe("^"+a.source+"$",e.value)&&n.push(i),n},[])}},q(ew,"DefaultTokenBuilder"),ew),tw,kfe=(tw=class{convert(e,r){let n=r.grammarSource;if(OE(n)&&(n=ohe(n)),_0(n)){const i=n.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,r)}return e}runConverter(e,r,n){switch(e.name.toUpperCase()){case"INT":return Fp.convertInt(r);case"STRING":return Fp.convertString(r);case"ID":return Fp.convertID(r)}switch(mhe(e)?.toLowerCase()){case"number":return Fp.convertNumber(r);case"boolean":return Fp.convertBoolean(r);case"bigint":return Fp.convertBigint(r);case"date":return Fp.convertDate(r);default:return r}}},q(tw,"DefaultValueConverter"),tw),Fp;(function(t){function e(u){let d="";for(let h=1;h<u.length-1;h++){const f=u.charAt(h);if(f==="\\"){const p=u.charAt(++h);d+=r(p)}else d+=f}return d}q(e,"convertString"),t.convertString=e;function r(u){switch(u){case"b":return"\b";case"f":return"\f";case"n":return`
`;case"r":return"\r";case"t":return"	";case"v":return"\v";case"0":return"\0";default:return u}}q(r,"convertEscapeCharacter");function n(u){return u.charAt(0)==="^"?u.substring(1):u}q(n,"convertID"),t.convertID=n;function i(u){return parseInt(u)}q(i,"convertInt"),t.convertInt=i;function a(u){return BigInt(u)}q(a,"convertBigint"),t.convertBigint=a;function s(u){return new Date(u)}q(s,"convertDate"),t.convertDate=s;function o(u){return Number(u)}q(o,"convertNumber"),t.convertNumber=o;function l(u){return u.toLowerCase()==="true"}q(l,"convertBoolean"),t.convertBoolean=l})(Fp||(Fp={}));var ss={};D$(ss,mde(L$()));function LG(){return new Promise(t=>{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}q(LG,"delayNextTick");var L6=0,Mtt=10;function PG(){return L6=performance.now(),new ss.CancellationTokenSource}q(PG,"startCancelableOperation");function Dfe(t){Mtt=t}q(Dfe,"setInterruptionPeriod");var Zp=Symbol("OperationCancelled");function HE(t){return t===Zp}q(HE,"isOperationCancelled");async function Cl(t){if(t===ss.CancellationToken.None)return;const e=performance.now();if(e-L6>=Mtt&&(L6=e,await LG(),L6=performance.now()),t.isCancellationRequested)throw Zp}q(Cl,"interruptAndCheck");var rw,S0=(rw=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}},q(rw,"Deferred"),rw),J_,TIe=(J_=class{constructor(e,r,n,i){this._uri=e,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const r=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(r,n)}return this._content}update(e,r){for(const n of e)if(J_.isIncremental(n)){const i=Lfe(n.range),a=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(s,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let u=this._lineOffsets;const d=nne(n.text,!1,a);if(l-o===d.length)for(let f=0,p=d.length;f<p;f++)u[f+o+1]=d[f];else d.length<1e4?u.splice(o+1,l-o,...d):this._lineOffsets=u=u.slice(0,o+1).concat(d,u.slice(l+1));const h=n.text.length-(s-a);if(h!==0)for(let f=o+1+d.length,p=u.length;f<p;f++)u[f]=u[f]+h}else if(J_.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=nne(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const r=this.getLineOffsets();let n=0,i=r.length;if(i===0)return{line:0,character:e};for(;n<i;){const s=Math.floor((n+i)/2);r[s]>e?i=s:n=s+1}const a=n-1;return e=this.ensureBeforeEOL(e,r[a]),{line:a,character:e-r[a]}}offsetAt(e){const r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;const n=r[e.line];if(e.character<=0)return n;const i=e.line+1<r.length?r[e.line+1]:this._content.length,a=Math.min(n+e.character,i);return this.ensureBeforeEOL(a,n)}ensureBeforeEOL(e,r){for(;e>r&&Mfe(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},q(J_,"FullTextDocument"),J_),dF;(function(t){function e(i,a,s,o){return new TIe(i,a,s,o)}q(e,"create"),t.create=e;function r(i,a,s){if(i instanceof TIe)return i.update(a,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}q(r,"update"),t.update=r;function n(i,a){const s=i.getText(),o=hF(a.map(Ltt),(d,h)=>{const f=d.range.start.line-h.range.start.line;return f===0?d.range.start.character-h.range.start.character:f});let l=0;const u=[];for(const d of o){const h=i.offsetAt(d.range.start);if(h<l)throw new Error("Overlapping edit");h>l&&u.push(s.substring(l,h)),d.newText.length&&u.push(d.newText),l=i.offsetAt(d.range.end)}return u.push(s.substr(l)),u.join("")}q(n,"applyEdits"),t.applyEdits=n})(dF||(dF={}));function hF(t,e){if(t.length<=1)return t;const r=t.length/2|0,n=t.slice(0,r),i=t.slice(r);hF(n,e),hF(i,e);let a=0,s=0,o=0;for(;a<n.length&&s<i.length;)e(n[a],i[s])<=0?t[o++]=n[a++]:t[o++]=i[s++];for(;a<n.length;)t[o++]=n[a++];for(;s<i.length;)t[o++]=i[s++];return t}q(hF,"mergeSort");function nne(t,e,r=0){const n=e?[r]:[];for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);Mfe(a)&&(a===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,n.push(r+i+1))}return n}q(nne,"computeLineOffsets");function Mfe(t){return t===13||t===10}q(Mfe,"isEOL");function Lfe(t){const e=t.start,r=t.end;return e.line>r.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}q(Lfe,"getWellformedRange");function Ltt(t){const e=Lfe(t.range);return e!==t.range?{newText:t.newText,range:e}:t}q(Ltt,"getWellformedEdit");var Ptt;(()=>{var t={975:F=>{function O(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}q(O,"e");function D(P,N){for(var $,U="",B=0,V=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)$=P.charCodeAt(G);else{if($===47)break;$=47}if($===47){if(!(V===G-1||z===1))if(V!==G-1&&z===2){if(U.length<2||B!==2||U.charCodeAt(U.length-1)!==46||U.charCodeAt(U.length-2)!==46){if(U.length>2){var Y=U.lastIndexOf("/");if(Y!==U.length-1){Y===-1?(U="",B=0):B=(U=U.slice(0,Y)).length-1-U.lastIndexOf("/"),V=G,z=0;continue}}else if(U.length===2||U.length===1){U="",B=0,V=G,z=0;continue}}N&&(U.length>0?U+="/..":U="..",B=2)}else U.length>0?U+="/"+P.slice(V+1,G):U=P.slice(V+1,G),B=G-V-1;V=G,z=0}else $===46&&z!==-1?++z:z=-1}return U}q(D,"r");var M={resolve:q(function(){for(var P,N="",$=!1,U=arguments.length-1;U>=-1&&!$;U--){var B;U>=0?B=arguments[U]:(P===void 0&&(P=process.cwd()),B=P),O(B),B.length!==0&&(N=B+"/"+N,$=B.charCodeAt(0)===47)}return N=D(N,!$),$?N.length>0?"/"+N:"/":N.length>0?N:"."},"resolve"),normalize:q(function(P){if(O(P),P.length===0)return".";var N=P.charCodeAt(0)===47,$=P.charCodeAt(P.length-1)===47;return(P=D(P,!N)).length!==0||N||(P="."),P.length>0&&$&&(P+="/"),N?"/"+P:P},"normalize"),isAbsolute:q(function(P){return O(P),P.length>0&&P.charCodeAt(0)===47},"isAbsolute"),join:q(function(){if(arguments.length===0)return".";for(var P,N=0;N<arguments.length;++N){var $=arguments[N];O($),$.length>0&&(P===void 0?P=$:P+="/"+$)}return P===void 0?".":M.normalize(P)},"join"),relative:q(function(P,N){if(O(P),O(N),P===N||(P=M.resolve(P))===(N=M.resolve(N)))return"";for(var $=1;$<P.length&&P.charCodeAt($)===47;++$);for(var U=P.length,B=U-$,V=1;V<N.length&&N.charCodeAt(V)===47;++V);for(var z=N.length-V,G=B<z?B:z,Y=-1,W=0;W<=G;++W){if(W===G){if(z>G){if(N.charCodeAt(V+W)===47)return N.slice(V+W+1);if(W===0)return N.slice(V+W)}else B>G&&(P.charCodeAt($+W)===47?Y=W:W===0&&(Y=0));break}var Q=P.charCodeAt($+W);if(Q!==N.charCodeAt(V+W))break;Q===47&&(Y=W)}var ie="";for(W=$+Y+1;W<=U;++W)W!==U&&P.charCodeAt(W)!==47||(ie.length===0?ie+="..":ie+="/..");return ie.length>0?ie+N.slice(V+Y):(V+=Y,N.charCodeAt(V)===47&&++V,N.slice(V))},"relative"),_makeLong:q(function(P){return P},"_makeLong"),dirname:q(function(P){if(O(P),P.length===0)return".";for(var N=P.charCodeAt(0),$=N===47,U=-1,B=!0,V=P.length-1;V>=1;--V)if((N=P.charCodeAt(V))===47){if(!B){U=V;break}}else B=!1;return U===-1?$?"/":".":$&&U===1?"//":P.slice(0,U)},"dirname"),basename:q(function(P,N){if(N!==void 0&&typeof N!="string")throw new TypeError('"ext" argument must be a string');O(P);var $,U=0,B=-1,V=!0;if(N!==void 0&&N.length>0&&N.length<=P.length){if(N.length===P.length&&N===P)return"";var z=N.length-1,G=-1;for($=P.length-1;$>=0;--$){var Y=P.charCodeAt($);if(Y===47){if(!V){U=$+1;break}}else G===-1&&(V=!1,G=$+1),z>=0&&(Y===N.charCodeAt(z)?--z==-1&&(B=$):(z=-1,B=G))}return U===B?B=G:B===-1&&(B=P.length),P.slice(U,B)}for($=P.length-1;$>=0;--$)if(P.charCodeAt($)===47){if(!V){U=$+1;break}}else B===-1&&(V=!1,B=$+1);return B===-1?"":P.slice(U,B)},"basename"),extname:q(function(P){O(P);for(var N=-1,$=0,U=-1,B=!0,V=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)U===-1&&(B=!1,U=z+1),G===46?N===-1?N=z:V!==1&&(V=1):N!==-1&&(V=-1);else if(!B){$=z+1;break}}return N===-1||U===-1||V===0||V===1&&N===U-1&&N===$+1?"":P.slice(N,U)},"extname"),format:q(function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(N,$){var U=$.dir||$.root,B=$.base||($.name||"")+($.ext||"");return U?U===$.root?U+B:U+"/"+B:B})(0,P)},"format"),parse:q(function(P){O(P);var N={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return N;var $,U=P.charCodeAt(0),B=U===47;B?(N.root="/",$=1):$=0;for(var V=-1,z=0,G=-1,Y=!0,W=P.length-1,Q=0;W>=$;--W)if((U=P.charCodeAt(W))!==47)G===-1&&(Y=!1,G=W+1),U===46?V===-1?V=W:Q!==1&&(Q=1):V!==-1&&(Q=-1);else if(!Y){z=W+1;break}return V===-1||G===-1||Q===0||Q===1&&V===G-1&&V===z+1?G!==-1&&(N.base=N.name=z===0&&B?P.slice(1,G):P.slice(z,G)):(z===0&&B?(N.name=P.slice(1,V),N.base=P.slice(1,G)):(N.name=P.slice(z,V),N.base=P.slice(z,G)),N.ext=P.slice(V,G)),z>0?N.dir=P.slice(0,z-1):B&&(N.dir="/"),N},"parse"),sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,F.exports=M}},e={};function r(F){var O=e[F];if(O!==void 0)return O.exports;var D=e[F]={exports:{}};return t[F](D,D.exports,r),D.exports}q(r,"r"),r.d=(F,O)=>{for(var D in O)r.o(O,D)&&!r.o(F,D)&&Object.defineProperty(F,D,{enumerable:!0,get:O[D]})},r.o=(F,O)=>Object.prototype.hasOwnProperty.call(F,O),r.r=F=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"__esModule",{value:!0})};var n={};let i;r.r(n),r.d(n,{URI:q(()=>f,"URI"),Utils:q(()=>R,"Utils")}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,s=/^\//,o=/^\/\//;function l(F,O){if(!F.scheme&&O)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${F.authority}", path: "${F.path}", query: "${F.query}", fragment: "${F.fragment}"}`);if(F.scheme&&!a.test(F.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(F.path){if(F.authority){if(!s.test(F.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(F.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}q(l,"a");const u="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,I=class I{static isUri(O){return O instanceof I||!!O&&typeof O.authority=="string"&&typeof O.fragment=="string"&&typeof O.path=="string"&&typeof O.query=="string"&&typeof O.scheme=="string"&&typeof O.fsPath=="string"&&typeof O.with=="function"&&typeof O.toString=="function"}scheme;authority;path;query;fragment;constructor(O,D,M,P,N,$=!1){typeof O=="object"?(this.scheme=O.scheme||u,this.authority=O.authority||u,this.path=O.path||u,this.query=O.query||u,this.fragment=O.fragment||u):(this.scheme=(function(U,B){return U||B?U:"file"})(O,$),this.authority=D||u,this.path=(function(U,B){switch(U){case"https":case"http":case"file":B?B[0]!==d&&(B=d+B):B=d}return B})(this.scheme,M||u),this.query=P||u,this.fragment=N||u,l(this,$))}get fsPath(){return y(this,!1)}with(O){if(!O)return this;let{scheme:D,authority:M,path:P,query:N,fragment:$}=O;return D===void 0?D=this.scheme:D===null&&(D=u),M===void 0?M=this.authority:M===null&&(M=u),P===void 0?P=this.path:P===null&&(P=u),N===void 0?N=this.query:N===null&&(N=u),$===void 0?$=this.fragment:$===null&&($=u),D===this.scheme&&M===this.authority&&P===this.path&&N===this.query&&$===this.fragment?this:new g(D,M,P,N,$)}static parse(O,D=!1){const M=h.exec(O);return M?new g(M[2]||u,T(M[4]||u),T(M[5]||u),T(M[7]||u),T(M[9]||u),D):new g(u,u,u,u,u)}static file(O){let D=u;if(i&&(O=O.replace(/\\/g,d)),O[0]===d&&O[1]===d){const M=O.indexOf(d,2);M===-1?(D=O.substring(2),O=d):(D=O.substring(2,M),O=O.substring(M)||d)}return new g("file",D,O,u,u)}static from(O){const D=new g(O.scheme,O.authority,O.path,O.query,O.fragment);return l(D,!0),D}toString(O=!1){return b(this,O)}toJSON(){return this}static revive(O){if(O){if(O instanceof I)return O;{const D=new g(O);return D._formatted=O.external,D._fsPath=O._sep===p?O.fsPath:null,D}}return O}};q(I,"l");let f=I;const p=i?1:void 0,L=class L extends f{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(O=!1){return O?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const O={$mid:1};return this._fsPath&&(O.fsPath=this._fsPath,O._sep=p),this._formatted&&(O.external=this._formatted),this.path&&(O.path=this.path),this.scheme&&(O.scheme=this.scheme),this.authority&&(O.authority=this.authority),this.query&&(O.query=this.query),this.fragment&&(O.fragment=this.fragment),O}};q(L,"d");let g=L;const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(F,O,D){let M,P=-1;for(let N=0;N<F.length;N++){const $=F.charCodeAt(N);if($>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===45||$===46||$===95||$===126||O&&$===47||D&&$===91||D&&$===93||D&&$===58)P!==-1&&(M+=encodeURIComponent(F.substring(P,N)),P=-1),M!==void 0&&(M+=F.charAt(N));else{M===void 0&&(M=F.substr(0,N));const U=m[$];U!==void 0?(P!==-1&&(M+=encodeURIComponent(F.substring(P,N)),P=-1),M+=U):P===-1&&(P=N)}}return P!==-1&&(M+=encodeURIComponent(F.substring(P))),M!==void 0?M:F}q(_,"m");function v(F){let O;for(let D=0;D<F.length;D++){const M=F.charCodeAt(D);M===35||M===63?(O===void 0&&(O=F.substr(0,D)),O+=m[M]):O!==void 0&&(O+=F[D])}return O!==void 0?O:F}q(v,"y");function y(F,O){let D;return D=F.authority&&F.path.length>1&&F.scheme==="file"?`//${F.authority}${F.path}`:F.path.charCodeAt(0)===47&&(F.path.charCodeAt(1)>=65&&F.path.charCodeAt(1)<=90||F.path.charCodeAt(1)>=97&&F.path.charCodeAt(1)<=122)&&F.path.charCodeAt(2)===58?O?F.path.substr(1):F.path[1].toLowerCase()+F.path.substr(2):F.path,i&&(D=D.replace(/\//g,"\\")),D}q(y,"v");function b(F,O){const D=O?v:_;let M="",{scheme:P,authority:N,path:$,query:U,fragment:B}=F;if(P&&(M+=P,M+=":"),(N||P==="file")&&(M+=d,M+=d),N){let V=N.indexOf("@");if(V!==-1){const z=N.substr(0,V);N=N.substr(V+1),V=z.lastIndexOf(":"),V===-1?M+=D(z,!1,!1):(M+=D(z.substr(0,V),!1,!1),M+=":",M+=D(z.substr(V+1),!1,!0)),M+="@"}N=N.toLowerCase(),V=N.lastIndexOf(":"),V===-1?M+=D(N,!1,!0):(M+=D(N.substr(0,V),!1,!0),M+=N.substr(V))}if($){if($.length>=3&&$.charCodeAt(0)===47&&$.charCodeAt(2)===58){const V=$.charCodeAt(1);V>=65&&V<=90&&($=`/${String.fromCharCode(V+32)}:${$.substr(3)}`)}else if($.length>=2&&$.charCodeAt(1)===58){const V=$.charCodeAt(0);V>=65&&V<=90&&($=`${String.fromCharCode(V+32)}:${$.substr(2)}`)}M+=D($,!0,!1)}return U&&(M+="?",M+=D(U,!1,!1)),B&&(M+="#",M+=O?B:_(B,!1,!1)),M}q(b,"b");function E(F){try{return decodeURIComponent(F)}catch{return F.length>3?F.substr(0,3)+E(F.substr(3)):F}}q(E,"C");const S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function T(F){return F.match(S)?F.replace(S,(O=>E(O))):F}q(T,"w");var C=r(975);const x=C.posix||C,A="/";var R;(function(F){F.joinPath=function(O,...D){return O.with({path:x.join(O.path,...D)})},F.resolvePath=function(O,...D){let M=O.path,P=!1;M[0]!==A&&(M=A+M,P=!0);let N=x.resolve(M,...D);return P&&N[0]===A&&!O.authority&&(N=N.substring(1)),O.with({path:N})},F.dirname=function(O){if(O.path.length===0||O.path===A)return O;let D=x.dirname(O.path);return D.length===1&&D.charCodeAt(0)===46&&(D=""),O.with({path:D})},F.basename=function(O){return x.basename(O.path)},F.extname=function(O){return x.extname(O.path)}})(R||(R={})),Ptt=n})();var{URI:Gd,Utils:JO}=Ptt,lu;(function(t){t.basename=JO.basename,t.dirname=JO.dirname,t.extname=JO.extname,t.joinPath=JO.joinPath,t.resolvePath=JO.resolvePath;const e=typeof process=="object"&&process?.platform==="win32";function r(s,o){return s?.toString()===o?.toString()}q(r,"equals"),t.equals=r;function n(s,o){const l=typeof s=="string"?Gd.parse(s).path:s.path,u=typeof o=="string"?Gd.parse(o).path:o.path,d=l.split("/").filter(m=>m.length>0),h=u.split("/").filter(m=>m.length>0);if(e){const m=/^[A-Z]:$/;if(d[0]&&m.test(d[0])&&(d[0]=d[0].toLowerCase()),h[0]&&m.test(h[0])&&(h[0]=h[0].toLowerCase()),d[0]!==h[0])return u.substring(1)}let f=0;for(;f<d.length&&d[f]===h[f];f++);const p="../".repeat(d.length-f),g=h.slice(f).join("/");return p+g}q(n,"relative"),t.relative=n;function i(s){return Gd.parse(s.toString()).toString()}q(i,"normalize"),t.normalize=i;function a(s,o){let l=typeof s=="string"?s:s.path,u=typeof o=="string"?o:o.path;return u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),l.charAt(l.length-1)==="/"&&(l=l.slice(0,-1)),u===l?!0:u.length<l.length||u.charAt(l.length)!=="/"?!1:u.startsWith(l)}q(a,"contains"),t.contains=a})(lu||(lu={}));var nw,Pfe=(nw=class{constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return lu.normalize(e)}clear(){this.root.children.clear()}insert(e,r){const n=this.getNode(this.normalizeUri(e),!0);n.element=r}delete(e){const r=this.getNode(this.normalizeUri(e),!1);r?.parent&&r.parent.children.delete(r.name)}has(e){return this.getNode(this.normalizeUri(e),!1)?.element!==void 0}hasNode(e){return this.getNode(this.normalizeUri(e),!1)!==void 0}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){const r=this.normalizeUri(e),n=this.getNode(r,!1);if(n)return{name:n.name,uri:lu.joinPath(Gd.parse(r),n.name).toString(),element:n.element}}findChildren(e){const r=this.normalizeUri(e),n=this.getNode(r,!1);return n?Array.from(n.children.values()).map(i=>({name:i.name,uri:lu.joinPath(Gd.parse(r),i.name).toString(),element:i.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const r=this.getNode(lu.normalize(e),!1);return r?this.collectValues(r):[]}getNode(e,r){const n=e.split("/");e.charAt(e.length-1)==="/"&&n.pop();let i=this.root;for(const a of n){let s=i.children.get(a);if(!s)if(r)s={name:a,children:new Map,parent:i},i.children.set(a,s);else return;i=s}return i}collectValues(e){const r=[];e.element&&r.push(e.element);for(const n of e.children.values())r.push(...this.collectValues(n));return r}},q(nw,"UriTrie"),nw),Ui;(function(t){t[t.Changed=0]="Changed",t[t.Parsed=1]="Parsed",t[t.IndexedContent=2]="IndexedContent",t[t.ComputedScopes=3]="ComputedScopes",t[t.Linked=4]="Linked",t[t.IndexedReferences=5]="IndexedReferences",t[t.Validated=6]="Validated"})(Ui||(Ui={}));var iw,Ftt=(iw=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=ss.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??Gd.parse(e.uri),ss.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromString(e,r,n){return ss.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r,n){if(typeof r=="string"){const i=this.parse(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else if("$model"in r){const i={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(i,e)}else{const i=this.parse(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){const i=await this.parseAsync(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else{const i=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}createLangiumDocument(e,r,n,i){let a;if(n)a={parseResult:e,uri:r,state:Ui.Parsed,references:[],textDocument:n};else{const s=this.createTextDocumentGetter(r,i);a={parseResult:e,uri:r,state:Ui.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=a,a}async update(e,r){const n=e.parseResult.value.$cstNode?.root.fullText,i=this.textDocuments?.get(e.uri.toString()),a=i?i.getText():await this.fileSystemProvider.readFile(e.uri);if(i)Object.defineProperty(e,"textDocument",{value:i});else{const s=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:s})}return n!==a&&(e.parseResult=await this.parseAsync(e.uri,a,r),e.parseResult.value.$document=e),e.state=Ui.Parsed,e}parse(e,r,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r,n)}parseAsync(e,r,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,n)}createTextDocumentGetter(e,r){const n=this.serviceRegistry;let i;return()=>i??(i=dF.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},q(iw,"DefaultLangiumDocumentFactory"),iw),aw,Btt=(aw=class{constructor(e){this.documentTrie=new Pfe,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Ga(this.documentTrie.all())}addDocument(e){const r=e.uri.toString();if(this.documentTrie.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentTrie.insert(r,e)}getDocument(e){const r=e.toString();return this.documentTrie.find(r)}getDocuments(e){const r=e.toString();return this.documentTrie.findAll(r)}async getOrCreateDocument(e,r){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(n),n)}createDocument(e,r,n){if(n)return this.langiumDocumentFactory.fromString(r,e,n).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(i),i}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&this.documentBuilder().resetToState(n,Ui.Changed),n}deleteDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&(n.state=Ui.Changed,this.documentTrie.delete(r)),n}deleteDocuments(e){const r=e.toString(),n=this.documentTrie.findAll(r);for(const i of n)i.state=Ui.Changed;return this.documentTrie.delete(r),n}},q(aw,"DefaultLangiumDocuments"),aw),Jv=Symbol("RefResolving"),sw,Utt=(sw=class{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,r=ss.CancellationToken.None){if(this.profiler?.isActive("linking")){const n=this.profiler.createTask("linking",this.languageId);n.start();try{for(const i of qf(e.parseResult.value))await Cl(r),LA(i).forEach(a=>{const s=`${i.$type}:${a.property}`;n.startSubTask(s);try{this.doLink(a,e)}finally{n.stopSubTask(s)}})}finally{n.stop()}}else for(const n of qf(e.parseResult.value))await Cl(r),LA(n).forEach(i=>this.doLink(i,e))}doLink(e,r){const n=e.reference;if("_ref"in n&&n._ref===void 0){n._ref=Jv;try{const i=this.getCandidate(e);if(uy(i))n._ref=i;else{n._nodeDescription=i;const a=this.loadAstNode(i);n._ref=a??this.createLinkingError(e,i)}}catch(i){console.error(`An error occurred while resolving reference to '${n.$refText}':`,i);const a=i.message??String(i);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${a}`}}r.references.push(n)}else if("_items"in n&&n._items===void 0){n._items=Jv;try{const i=this.getCandidates(e),a=[];if(uy(i))n._linkingError=i;else for(const s of i){const o=this.loadAstNode(s);o&&a.push({ref:o,$nodeDescription:s})}n._items=a}catch(i){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${i}`},n._items=[]}r.references.push(n)}}unlink(e){for(const r of e.references)"_ref"in r?(r._ref=void 0,delete r._nodeDescription):"_items"in r&&(r._items=void 0,delete r._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){const n=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(i=>`${i.documentUri}#${i.path}`).toArray();return n.length>0?n:this.createLinkingError(e)}buildReference(e,r,n,i){const a=this,s={$refNode:n,$refText:i,_ref:void 0,get ref(){if(zo(this._ref))return this._ref;if(bde(this._nodeDescription)){const o=a.loadAstNode(this._nodeDescription);this._ref=o??a.createLinkingError({reference:s,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=Jv;const o=sC(e).$document,l=a.getLinkedNode({reference:s,container:e,property:r});if(l.error&&o&&o.state<Ui.ComputedScopes)return this._ref=void 0;this._ref=l.node??l.error,this._nodeDescription=l.descr,o?.references.push(this)}else this._ref===Jv&&a.throwCyclicReferenceError(e,r,i);return zo(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return uy(this._ref)?this._ref:void 0}};return s}buildMultiReference(e,r,n,i){const a=this,s={$refNode:n,$refText:i,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(this._items===void 0){this._items=Jv;const o=sC(e).$document,l=a.getCandidates({reference:s,container:e,property:r}),u=[];if(uy(l))this._linkingError=l;else for(const d of l){const h=a.loadAstNode(d);h&&u.push({ref:h,$nodeDescription:d})}this._items=u,o?.references.push(this)}else this._items===Jv&&a.throwCyclicReferenceError(e,r,i);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(!(this.items.length>0))return this._linkingError=a.createLinkingError({reference:s,container:e,property:r})}};return s}throwCyclicReferenceError(e,r,n){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${r} (symbol '${n}')`)}getLinkedNode(e){try{const r=this.getCandidate(e);if(uy(r))return{error:r};const n=this.loadAstNode(r);return n?{node:n,descr:r}:{descr:r,error:this.createLinkingError(e,r)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);const n=r.message??String(r);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;const r=this.langiumDocuments().getDocument(e.documentUri);if(r)return this.astNodeLocator.getAstNode(r.parseResult.value,e.path)}createLinkingError(e,r){const n=sC(e.container).$document;n&&n.state<Ui.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${n.uri}).`);const i=this.reflection.getReferenceType(e);return{info:e,message:`Could not resolve reference to ${i} named '${e.reference.$refText}'.`,targetDescription:r}}},q(sw,"DefaultLinker"),sw);function Ffe(t){return typeof t.name=="string"}q(Ffe,"isNamed");var ow,$tt=(ow=class{getName(e){if(Ffe(e))return e.name}getNameNode(e){return K$(e.$cstNode,"name")}},q(ow,"DefaultNameProvider"),ow),lw,Gtt=(lw=class{constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=qf(e.Grammar).some(r=>OE(r)&&r.isMulti)}findDeclarations(e){if(e){const r=dhe(e),n=e.astNode;if(r&&n){const i=n[r.feature];if(ou(i)||sg(i))return I8(i);if(Array.isArray(i)){for(const a of i)if((ou(a)||sg(a))&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return I8(a)}}if(n){const i=this.nameProvider.getNameNode(n);if(i&&(i===e||Vde(e,i)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(r.head());if(n){for(const i of LA(n))if(sg(i.reference)&&i.reference.items.some(a=>a.ref===e))return i.reference.items.map(a=>a.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;const r=this.documents.getDocument(e.sourceUri);if(r)return this.nodeLocator.getAstNode(r.parseResult.value,e.sourcePath)}findDeclarationNodes(e){const r=this.findDeclarations(e),n=[];for(const i of r){const a=this.nameProvider.getNameNode(i)??i.$cstNode;a&&n.push(a)}return n}findReferences(e,r){const n=[];r.includeDeclaration&&n.push(...this.getSelfReferences(e));let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(i=i.filter(a=>lu.equals(a.sourceUri,r.documentUri))),n.push(...i),Ga(n)}getSelfReferences(e){const r=this.getSelfNodes(e),n=[];for(const i of r){const a=this.nameProvider.getNameNode(i);if(a){const s=zf(i),o=this.nodeLocator.getAstNodePath(i);n.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:BA(a),local:!0})}}return n}},q(lw,"DefaultReferences"),lw),cw,T0=(cw=class{constructor(e){if(this.map=new Map,e)for(const[r,n]of e)this.add(r,n)}get size(){return c3.sum(Ga(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);{const n=this.map.get(e);if(n){const i=n.indexOf(r);if(i>=0)return n.length===1?this.map.delete(e):n.splice(i,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const r=this.map.get(e);return r?Ga(r):kA}has(e,r){if(r===void 0)return this.map.has(e);{const n=this.map.get(e);return n?n.indexOf(r)>=0:!1}}add(e,r){return this.map.has(e)?this.map.get(e).push(r):this.map.set(e,[r]),this}addAll(e,r){return this.map.has(e)?this.map.get(e).push(...r):this.map.set(e,Array.from(r)),this}forEach(e){this.map.forEach((r,n)=>r.forEach(i=>e(i,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Ga(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return Ga(this.map.keys())}values(){return Ga(this.map.values()).flat()}entriesGroupedByKey(){return Ga(this.map.entries())}},q(cw,"MultiMap"),cw),uw,fF=(uw=class{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[r,n]of e)this.set(r,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const r=this.map.get(e);return r!==void 0?(this.map.delete(e),this.inverse.delete(r),!0):!1}},q(uw,"BiMap"),uw),dw,ztt=(dw=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=ss.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,n=fD,i=ss.CancellationToken.None){const a=[];this.addExportedSymbol(e,a,r);for(const s of n(e))await Cl(i),this.addExportedSymbol(s,a,r);return a}addExportedSymbol(e,r,n){const i=this.nameProvider.getName(e);i&&r.push(this.descriptions.createDescription(e,i,n))}async collectLocalSymbols(e,r=ss.CancellationToken.None){const n=e.parseResult.value,i=new T0;for(const a of V0(n))await Cl(r),this.addLocalSymbol(a,e,i);return i}addLocalSymbol(e,r,n){const i=e.$container;if(i){const a=this.nameProvider.getName(e);a&&n.add(i,this.descriptions.createDescription(e,a,r))}}},q(dw,"DefaultScopeComputation"),dw),hw,ine=(hw=class{constructor(e,r,n){this.elements=e,this.outerScope=r,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(i=>i.name.toLowerCase()===r):this.elements.find(i=>i.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(i=>i.name.toLowerCase()===r):this.elements.filter(i=>i.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},q(hw,"StreamScope"),hw),fw,hUr=(fw=class{constructor(e,r,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const i of e){const a=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.set(a,i)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r),i=n?[n]:[];return(this.concatOuterScope||i.length>0)&&this.outerScope?Ga(i).concat(this.outerScope.getElements(e)):Ga(i)}getAllElements(){let e=Ga(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},q(fw,"MapScope"),fw),pw,qtt=(pw=class{constructor(e,r,n){this.elements=new T0,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const i of e){const a=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.add(a,i)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);return(this.concatOuterScope||n.length===0)&&this.outerScope?Ga(n).concat(this.outerScope.getElements(e)):Ga(n)}getAllElements(){let e=Ga(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},q(pw,"MultiMapScope"),pw),fUr={getElement(){},getElements(){return kA},getAllElements(){return kA}},gw,FG=(gw=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},q(gw,"DisposableCache"),gw),mw,Bfe=(mw=class extends FG{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(r){const n=r();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},q(mw,"SimpleCache"),mw),_w,BG=(_w=class extends FG{constructor(e){super(),this.cache=new Map,this.converter=e??(r=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,n){this.throwIfDisposed(),this.cacheForContext(e).set(r,n)}get(e,r,n){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(r))return i.get(r);if(n){const a=n();return i.set(r,a),a}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){const r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){const r=this.converter(e);let n=this.cache.get(r);return n||(n=new Map,this.cache.set(r,n)),n}},q(_w,"ContextCache"),_w),vw,Vtt=(vw=class extends BG{constructor(e,r){super(n=>n.toString()),r?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(r,n=>{this.clear(n.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{for(const a of i)this.clear(a)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{const a=n.concat(i);for(const s of a)this.clear(s)}))}},q(vw,"DocumentCache"),vw),yw,Ufe=(yw=class extends Bfe{constructor(e,r){super(),r?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,i)=>{i.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},q(yw,"WorkspaceCache"),yw),bw,Htt=(bw=class{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new Ufe(e.shared)}getScope(e){const r=[],n=this.reflection.getReferenceType(e),i=zf(e.container).localSymbols;if(i){let s=e.container;do i.has(s)&&r.push(i.getStream(s).filter(o=>this.reflection.isSubtype(o.type,n))),s=s.$container;while(s)}let a=this.getGlobalScope(n,e);for(let s=r.length-1;s>=0;s--)a=this.createScope(r[s],a);return a}createScope(e,r,n){return new ine(Ga(e),r,n)}createScopeForNodes(e,r,n){const i=Ga(e).map(a=>{const s=this.nameProvider.getName(a);if(s)return this.descriptions.createDescription(a,s)}).nonNullable();return new ine(i,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new qtt(this.indexManager.allElements(e)))}},q(bw,"DefaultScopeProvider"),bw);function $fe(t){return typeof t.$comment=="string"}q($fe,"isAstNodeWithComment");function ane(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}q(ane,"isIntermediateReference");var Ew,Ytt=(Ew=class{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r){const n=r??{},i=r?.replacer,a=q((o,l)=>this.replacer(o,l,n),"defaultReplacer"),s=i?(o,l)=>i(o,l,a):a;try{return this.currentDocument=zf(e),JSON.stringify(e,s,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){const n=r??{},i=JSON.parse(e);return this.linkNode(i,i,n),i}replacer(e,r,{refText:n,sourceText:i,textRegions:a,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(ou(r)){const l=r.ref,u=n?r.$refText:void 0;if(l){const d=zf(l);let h="";this.currentDocument&&this.currentDocument!==d&&(o?h=o(d.uri,l):h=d.uri.toString());const f=this.astNodeLocator.getAstNodePath(l);return{$ref:`${h}#${f}`,$refText:u}}else return{$error:r.error?.message??"Could not resolve reference",$refText:u}}else if(sg(r)){const l=n?r.$refText:void 0,u=[];for(const d of r.items){const h=d.ref,f=zf(d.ref);let p="";this.currentDocument&&this.currentDocument!==f&&(o?p=o(f.uri,h):p=f.uri.toString());const g=this.astNodeLocator.getAstNodePath(h);u.push(`${p}#${g}`)}return{$refs:u,$refText:l}}else if(zo(r)){let l;if(a&&(l=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),i&&!e&&(l??(l={...r}),l.$sourceText=r.$cstNode?.text),s){l??(l={...r});const u=this.commentProvider.getComment(r);u&&(l.$comment=u.replace(/\r/g,""))}return l??r}else return r}addAstNodeRegionWithAssignmentsTo(e){const r=q(n=>({offset:n.offset,end:n.end,length:n.length,range:n.range}),"createDocumentSegment");if(e.$cstNode){const n=e.$textRegion=r(e.$cstNode),i=n.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{const s=che(e.$cstNode,a).map(r);s.length!==0&&(i[a]=s)}),e}}linkNode(e,r,n,i,a,s){for(const[l,u]of Object.entries(e))if(Array.isArray(u))for(let d=0;d<u.length;d++){const h=u[d];ane(h)?u[d]=this.reviveReference(e,l,r,h,n):zo(h)&&this.linkNode(h,r,n,e,l,d)}else ane(u)?e[l]=this.reviveReference(e,l,r,u,n):zo(u)&&this.linkNode(u,r,n,e,l);const o=e;o.$container=i,o.$containerProperty=a,o.$containerIndex=s}reviveReference(e,r,n,i,a){let s=i.$refText,o=i.$error,l;if(i.$ref){const u=this.getRefNode(n,i.$ref,a.uriConverter);if(zo(u))return s||(s=this.nameProvider.getName(u)),{$refText:s??"",ref:u};o=u}else if(i.$refs){const u=[];for(const d of i.$refs){const h=this.getRefNode(n,d,a.uriConverter);zo(h)&&u.push({ref:h})}if(u.length===0)l={$refText:s??"",items:u},o??(o="Could not resolve multi-reference");else return{$refText:s??"",items:u}}if(o)return l??(l={$refText:s??"",ref:void 0}),l.error={info:{container:e,property:r,reference:l},message:o},l}getRefNode(e,r,n){try{const i=r.indexOf("#");if(i===0){const l=this.astNodeLocator.getAstNode(e,r.substring(1));return l||"Could not resolve path: "+r}if(i<0){const l=n?n(r):Gd.parse(r),u=this.langiumDocuments.getDocument(l);return u?u.parseResult.value:"Could not find document for URI: "+r}const a=n?n(r.substring(0,i)):Gd.parse(r.substring(0,i)),s=this.langiumDocuments.getDocument(a);if(!s)return"Could not find document for URI: "+r;if(i===r.length-1)return s.parseResult.value;const o=this.astNodeLocator.getAstNode(s.parseResult.value,r.substring(i+1));return o||"Could not resolve URI: "+r}catch(i){return String(i)}}},q(Ew,"DefaultJsonSerializer"),Ew),Sw,Wtt=(Sw=class{get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){const r=e.LanguageMetaData;for(const n of r.fileExtensions)this.fileExtensionMap.has(n)&&console.warn(`The file extension ${n} is used by multiple languages. It is now assigned to '${r.languageId}'.`),this.fileExtensionMap.set(n,e);if(r.fileNames)for(const n of r.fileNames)this.fileNameMap.has(n)&&console.warn(`The file name ${n} is used by multiple languages. It is now assigned to '${r.languageId}'.`),this.fileNameMap.set(n,e);this.languageIdMap.set(r.languageId,e)}getServices(e){if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const r=this.textDocuments?.get(e)?.languageId;if(r!==void 0){const s=this.languageIdMap.get(r);if(s)return s}const n=lu.extname(e),i=lu.basename(e),a=this.fileNameMap.get(i)??this.fileExtensionMap.get(n);if(!a)throw r?new Error(`The service registry contains no services for the extension '${n}' for language '${r}'.`):new Error(`The service registry contains no services for the extension '${n}'.`);return a}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}},q(Sw,"DefaultServiceRegistry"),Sw);function zy(t){return{code:t}}q(zy,"diagnosticData");var pF;(function(t){t.defaults=["fast","slow","built-in"],t.all=t.defaults})(pF||(pF={}));var Tw,Ktt=(Tw=class{constructor(e){this.entries=new T0,this.knownCategories=new Set(pF.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,r=this,n="fast"){if(n==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(n);for(const[i,a]of Object.entries(e)){const s=a;if(Array.isArray(s))for(const o of s){const l={check:this.wrapValidationException(o,r),category:n};this.addEntry(i,l)}else if(typeof s=="function"){const o={check:this.wrapValidationException(s,r),category:n};this.addEntry(i,o)}else tv()}}wrapValidationException(e,r){return async(n,i,a)=>{await this.handleException(()=>e.call(r,n,i,a),"An error occurred during validation",i,n)}}async handleException(e,r,n,i){try{await e()}catch(a){if(HE(a))throw a;console.error(`${r}:`,a),a instanceof Error&&a.stack&&console.error(a.stack);const s=a instanceof Error?a.message:String(a);n("error",`${r}: ${s}`,{node:i})}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(const n of this.reflection.getAllSubTypes(e))this.entries.add(n,r)}getChecks(e,r){let n=Ga(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(i=>r.includes(i.category))),n.map(i=>i.check)}registerBeforeDocument(e,r=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",r))}registerAfterDocument(e,r=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",r))}wrapPreparationException(e,r,n){return async(i,a,s,o)=>{await this.handleException(()=>e.call(n,i,a,s,o),r,a,i)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},q(Tw,"ValidationRegistry"),Tw),jtt=Object.freeze({validateNode:!0,validateChildren:!0}),Cw,Xtt=(Cw=class{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,r={},n=ss.CancellationToken.None){const i=e.parseResult,a=[];if(await Cl(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(i,a,r),r.stopAfterLexingErrors&&a.some(s=>s.data?.code===xh.LexingError)||(this.processParsingErrors(i,a,r),r.stopAfterParsingErrors&&a.some(s=>s.data?.code===xh.ParsingError))||(this.processLinkingErrors(e,a,r),r.stopAfterLinkingErrors&&a.some(s=>s.data?.code===xh.LinkingError))))return a;try{a.push(...await this.validateAst(i.value,r,n))}catch(s){if(HE(s))throw s;console.error("An error occurred during validation:",s)}return await Cl(n),a}processLexingErrors(e,r,n){const i=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const a of i){const s=a.severity??"error",o={severity:zN(s),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:zfe(s),source:this.getSource()};r.push(o)}}processParsingErrors(e,r,n){for(const i of e.parserErrors){let a;if(isNaN(i.token.startOffset)){if("previousToken"in i){const s=i.previousToken;if(isNaN(s.startOffset)){const o={line:0,character:0};a={start:o,end:o}}else{const o={line:s.endLine-1,character:s.endColumn};a={start:o,end:o}}}}else a=u3(i.token);if(a){const s={severity:zN("error"),range:a,message:i.message,data:zy(xh.ParsingError),source:this.getSource()};r.push(s)}}}processLinkingErrors(e,r,n){for(const i of e.references){const a=i.error;if(a){const s={node:a.info.container,range:i.$refNode?.range,property:a.info.property,index:a.info.index,data:{code:xh.LinkingError,containerType:a.info.container.$type,property:a.info.property,refText:a.info.reference.$refText}};r.push(this.toDiagnostic("error",a.message,s))}}}async validateAst(e,r,n=ss.CancellationToken.None){const i=[],a=q((s,o,l)=>{i.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,r,a,n),await this.validateAstNodes(e,r,a,n),await this.validateAstAfter(e,r,a,n),i}async validateAstBefore(e,r,n,i=ss.CancellationToken.None){const a=this.validationRegistry.checksBefore;for(const s of a)await Cl(i),await s(e,n,r.categories??[],i)}async validateAstNodes(e,r,n,i=ss.CancellationToken.None){if(this.profiler?.isActive("validating")){const a=this.profiler.createTask("validating",this.languageId);a.start();try{const s=qf(e).iterator();for(const o of s){a.startSubTask(o.$type);const l=this.validateSingleNodeOptions(o,r);if(l.validateNode)try{const u=this.validationRegistry.getChecks(o.$type,r.categories);for(const d of u)await d(o,n,i)}finally{a.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{a.stop()}}else{const a=qf(e).iterator();for(const s of a){await Cl(i);const o=this.validateSingleNodeOptions(s,r);if(o.validateNode){const l=this.validationRegistry.getChecks(s.$type,r.categories);for(const u of l)await u(s,n,i)}o.validateChildren||a.prune()}}}validateSingleNodeOptions(e,r){return jtt}async validateAstAfter(e,r,n,i=ss.CancellationToken.None){const a=this.validationRegistry.checksAfter;for(const s of a)await Cl(i),await s(e,n,r.categories??[],i)}toDiagnostic(e,r,n){return{message:r,range:Gfe(n),severity:zN(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},q(Cw,"DefaultDocumentValidator"),Cw);function Gfe(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=K$(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=uhe(t.node.$cstNode,t.keyword,t.index)),e??(e=t.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}q(Gfe,"getDiagnosticRange");function zN(t){switch(t){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+t)}}q(zN,"toDiagnosticSeverity");function zfe(t){switch(t){case"error":return zy(xh.LexingError);case"warning":return zy(xh.LexingWarning);case"info":return zy(xh.LexingInfo);case"hint":return zy(xh.LexingHint);default:throw new Error("Invalid diagnostic severity: "+t)}}q(zfe,"toDiagnosticData");var xh;(function(t){t.LexingError="lexing-error",t.LexingWarning="lexing-warning",t.LexingInfo="lexing-info",t.LexingHint="lexing-hint",t.ParsingError="parsing-error",t.LinkingError="linking-error"})(xh||(xh={}));var ww,Qtt=(ww=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n){const i=n??zf(e);r??(r=this.nameProvider.getName(e));const a=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${a} has no name.`);let s;const o=q(()=>s??(s=BA(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return o()},selectionSegment:BA(e.$cstNode),type:e.$type,documentUri:i.uri,path:a}}},q(ww,"DefaultAstNodeDescriptionProvider"),ww),xw,Ztt=(xw=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=ss.CancellationToken.None){const n=[],i=e.parseResult.value;for(const a of qf(i))await Cl(r),LA(a).forEach(s=>{s.reference.error||n.push(...this.createInfoDescriptions(s))});return n}createInfoDescriptions(e){const r=e.reference;if(r.error||!r.$refNode)return[];let n=[];ou(r)&&r.$nodeDescription?n=[r.$nodeDescription]:sg(r)&&(n=r.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const i=zf(e.container).uri,a=this.nodeLocator.getAstNodePath(e.container),s=[],o=BA(r.$refNode);for(const l of n)s.push({sourceUri:i,sourcePath:a,targetUri:l.documentUri,targetPath:l.path,segment:o,local:lu.equals(l.documentUri,i)});return s}},q(xw,"DefaultReferenceDescriptionProvider"),xw),Aw,Jtt=(Aw=class{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const r=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return r+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?e+this.indexSeparator+r:e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((i,a)=>{if(!i||a.length===0)return i;const s=a.indexOf(this.indexSeparator);if(s>0){const o=a.substring(0,s),l=parseInt(a.substring(s+1));return i[o]?.[l]}return i[a]},e)}},q(Aw,"DefaultAstNodeLocator"),Aw),UG={};D$(UG,mde($R()));var Rw,ert=(Rw=class{constructor(e){this._ready=new S0,this.onConfigurationSectionUpdateEmitter=new UG.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){const r=this.serviceRegistry.all;e.register({section:r.map(n=>this.toSectionName(n.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const r=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((i,a)=>{this.updateSectionConfiguration(i.section,n[a])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([r,n])=>{this.updateSectionConfiguration(r,n),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:n})})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;const n=this.toSectionName(e);if(this.settings[n])return this.settings[n][r]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},q(Rw,"DefaultConfigurationProvider"),Rw),eP=mde(W5r()),cb;(function(t){function e(r){return{dispose:q(async()=>await r(),"dispose")}}q(e,"create"),t.create=e})(cb||(cb={}));var Ow,trt=(Ow=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new T0,this.documentPhaseListeners=new T0,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=Ui.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},n=ss.CancellationToken.None){for(const i of e){const a=i.uri.toString();if(i.state===Ui.Validated){if(typeof r.validation=="boolean"&&r.validation)this.resetToState(i,Ui.IndexedReferences);else if(typeof r.validation=="object"){const s=this.findMissingValidationCategories(i,r);s.length>0&&(this.buildState.set(a,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(a)?.result}),i.state=Ui.IndexedReferences)}}else this.buildState.delete(a)}this.currentState=Ui.Changed,await this.emitUpdate(e.map(i=>i.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=ss.CancellationToken.None){this.currentState=Ui.Changed;const i=[];for(const l of r){const u=this.langiumDocuments.deleteDocuments(l);for(const d of u)i.push(d.uri),this.cleanUpDeleted(d)}const a=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of a){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=Ui.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,Ui.Changed)}const s=Ga(a).concat(i).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,Ui.ComputedScopes)),await this.emitUpdate(a,i),await Cl(n);const o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state<Ui.Validated||!this.buildState.get(l.uri.toString())?.completed||this.resultsAreIncomplete(l,this.updateBuildOptions)).toArray());await this.buildDocuments(o,this.updateBuildOptions,n)}resultsAreIncomplete(e,r){return this.findMissingValidationCategories(e,r).length>=1}findMissingValidationCategories(e,r){const n=this.buildState.get(e.uri.toString()),i=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?i:new Set,s=r===void 0||r.validation===!0?i:typeof r.validation=="object"?r.validation.categories??i:[];return Ga(s).filter(o=>!a.has(o)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{const n=await this.fileSystemProvider.stat(e);if(n.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(n))return[e]}catch{}return[]}async emitUpdate(e,r){await Promise.all(this.updateListeners.map(n=>n(e,r)))}sortDocuments(e){let r=0,n=e.length-1;for(;r<n;){for(;r<e.length&&this.hasTextDocument(e[r]);)r++;for(;n>=0&&!this.hasTextDocument(e[n]);)n--;r<n&&([e[r],e[n]]=[e[n],e[r]])}return e}hasTextDocument(e){return!!this.textDocuments?.get(e.uri)}shouldRelink(e,r){return e.references.some(n=>n.error!==void 0)?!0:this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),cb.create(()=>{const r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case Ui.Changed:case Ui.Parsed:this.indexManager.removeContent(e.uri);case Ui.IndexedContent:e.localSymbols=void 0;case Ui.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case Ui.Linked:this.indexManager.removeReferences(e.uri);case Ui.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case Ui.Validated:}e.state>r&&(e.state=r)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=Ui.Changed}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,Ui.Parsed,n,s=>this.langiumDocumentFactory.update(s,n)),await this.runCancelable(e,Ui.IndexedContent,n,s=>this.indexManager.updateContent(s,n)),await this.runCancelable(e,Ui.ComputedScopes,n,async s=>{const o=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.localSymbols=await o.collectLocalSymbols(s,n)});const i=e.filter(s=>this.shouldLink(s));await this.runCancelable(i,Ui.Linked,n,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,n)),await this.runCancelable(i,Ui.IndexedReferences,n,s=>this.indexManager.updateReferences(s,n));const a=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(a,Ui.Validated,n,async s=>{await this.validate(s,n),this.markAsCompleted(s)})}markAsCompleted(e){const r=this.buildState.get(e.uri.toString());r&&(r.completed=!0)}prepareBuild(e,r){for(const n of e){const i=n.uri.toString(),a=this.buildState.get(i);(!a||a.completed)&&this.buildState.set(i,{completed:!1,options:r,result:a?.result})}}async runCancelable(e,r,n,i){for(const s of e)s.state<r&&(await Cl(n),await i(s),s.state=r,await this.notifyDocumentPhase(s,r,n));const a=e.filter(s=>s.state===r);await this.notifyBuildPhase(a,r,n),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),cb.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),cb.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let i;return r&&"path"in r?i=r:n=r,n??(n=ss.CancellationToken.None),i?this.awaitDocumentState(e,i,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,r,n){const i=this.langiumDocuments.getDocument(r);if(i){if(i.state>=e)return Promise.resolve(r);if(n.isCancellationRequested)return Promise.reject(Zp);if(this.currentState>=e&&e>i.state)return Promise.reject(new eP.ResponseError(eP.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${Ui[i.state]}, requiring ${Ui[e]}, but workspace state is already ${Ui[this.currentState]}. Returning undefined.`))}else return Promise.reject(new eP.ResponseError(eP.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));return new Promise((a,s)=>{const o=this.onDocumentPhase(e,u=>{lu.equals(u.uri,r)&&(o.dispose(),l.dispose(),a(u.uri))}),l=n.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(Zp)})})}awaitBuilderState(e,r){return this.currentState>=e?Promise.resolve():r.isCancellationRequested?Promise.reject(Zp):new Promise((n,i)=>{const a=this.onBuildPhase(e,()=>{a.dispose(),s.dispose(),n()}),s=r.onCancellationRequested(()=>{a.dispose(),s.dispose(),i(Zp)})})}async notifyDocumentPhase(e,r,n){const a=this.documentPhaseListeners.get(r).slice();for(const s of a)try{await Cl(n),await s(e,n)}catch(o){if(!HE(o))throw o}}async notifyBuildPhase(e,r,n){if(e.length===0)return;const a=this.buildPhaseListeners.get(r).slice();for(const s of a)await Cl(n),await s(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,r){const n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,i=this.getBuildOptions(e),a=typeof i.validation=="object"?{...i.validation}:{};a.categories=this.findMissingValidationCategories(e,i);const s=await n.validateDocument(e,a,r);e.diagnostics?e.diagnostics.push(...s):e.diagnostics=s;const o=this.buildState.get(e.uri.toString());o&&(o.result??(o.result={}),o.result.validationChecks?o.result.validationChecks=Ga(o.result.validationChecks).concat(a.categories).distinct().toArray():o.result.validationChecks=[...a.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},q(Ow,"DefaultDocumentBuilder"),Ow),Iw,rrt=(Iw=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new BG,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){const n=zf(e).uri,i=[];return this.referenceIndex.forEach(a=>{a.forEach(s=>{lu.equals(s.targetUri,n)&&s.targetPath===r&&i.push(s)})}),Ga(i)}allElements(e,r){let n=Ga(this.symbolIndex.keys());return r&&(n=n.filter(i=>!r||r.has(i))),n.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,r){return r?this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter(a=>this.astReflection.isSubtype(a.type,r))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r)}removeReferences(e){const r=e.toString();this.referenceIndex.delete(r)}async updateContent(e,r=ss.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),a=e.uri.toString();this.symbolIndex.set(a,i),this.symbolByTypeIndex.clear(a)}async updateReferences(e,r=ss.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,r){const n=this.referenceIndex.get(e.uri.toString());return n?n.some(i=>!i.local&&r.has(i.targetUri.toString())):!1}},q(Iw,"DefaultIndexManager"),Iw),Nw,nrt=(Nw=class{constructor(e){this.initialBuildOptions={},this._ready=new S0,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(r=>this.initializeWorkspace(this.folders??[],r))}async initializeWorkspace(e,r=ss.CancellationToken.None){const n=await this.performStartup(e);await Cl(r),await this.documentBuilder.build(n,this.initialBuildOptions,r)}async performStartup(e){const r=[],n=q(s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)},"collector");await this.loadAdditionalDocuments(e,n);const i=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,i)));const a=Ga(i).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(a,n),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async n=>{const i=await this.langiumDocuments.getOrCreateDocument(n);r(i)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return Gd.parse(e.uri)}async traverseFolder(e,r){try{const n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async i=>{this.shouldIncludeEntry(i)&&(i.isDirectory?await this.traverseFolder(i.uri,r):i.isFile&&r.push(i.uri))}))}catch(n){console.error("Failure to read directory content of "+e.toString(!0),n)}}async searchFolder(e){const r=[];return await this.traverseFolder(e,r),r}shouldIncludeEntry(e){const r=lu.basename(e.uri);return r.startsWith(".")?!1:e.isDirectory?r!=="node_modules"&&r!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},q(Nw,"DefaultWorkspaceManager"),Nw),kw,irt=(kw=class{buildUnexpectedCharactersMessage(e,r,n,i,a){return Ure.buildUnexpectedCharactersMessage(e,r,n,i,a)}buildUnableToPopLexerModeMessage(e){return Ure.buildUnableToPopLexerModeMessage(e)}},q(kw,"DefaultLexerErrorMessageProvider"),kw),qfe={mode:"full"},Dw,Vfe=(Dw=class{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const r=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);const n=gF(r)?Object.values(r):r,i=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new mu(n,{positionTracking:"full",skipValidations:i,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=qfe){const n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(gF(e))return e;const r=GG(e)?Object.values(e.modes).flat():e,n={};return r.forEach(i=>n[i.name]=i),n}},q(Dw,"DefaultLexer"),Dw);function $G(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}q($G,"isTokenTypeArray");function GG(t){return t&&"modes"in t&&"defaultMode"in t}q(GG,"isIMultiModeLexerDefinition");function gF(t){return!$G(t)&&!GG(t)}q(gF,"isTokenTypeDictionary");dD();function Hfe(t,e,r){let n,i;typeof t=="string"?(i=e,n=r):(i=t.range.start,n=e),i||(i=wa.create(0,0));const a=Wfe(t),s=zG(n),o=art({lines:a,position:i,options:s});return lrt({index:0,tokens:o,position:i})}q(Hfe,"parseJSDoc");function Yfe(t,e){const r=zG(e),n=Wfe(t);if(n.length===0)return!1;const i=n[0],a=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(i)&&!!o?.exec(a)}q(Yfe,"isJSDoc");function Wfe(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(sYe)}q(Wfe,"getLines");var CIe=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,pUr=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function art(t){const e=[];let r=t.position.line,n=t.position.character;for(let i=0;i<t.lines.length;i++){const a=i===0,s=i===t.lines.length-1;let o=t.lines[i],l=0;if(a&&t.options.start){const d=t.options.start?.exec(o);d&&(l=d.index+d[0].length)}else{const d=t.options.line?.exec(o);d&&(l=d.index+d[0].length)}if(s){const d=t.options.end?.exec(o);d&&(o=o.substring(0,d.index))}if(o=o.substring(0,ort(o)),mF(o,l)>=o.length){if(e.length>0){const d=wa.create(r,n);e.push({type:"break",content:"",range:ia.create(d,d)})}}else{CIe.lastIndex=l;const d=CIe.exec(o);if(d){const h=d[0],f=d[1],p=wa.create(r,n+l),g=wa.create(r,n+l+h.length);e.push({type:"tag",content:f,range:ia.create(p,g)}),l+=h.length,l=mF(o,l)}if(l<o.length){const h=o.substring(l),f=Array.from(h.matchAll(pUr));e.push(...srt(f,h,r,n+l))}}r++,n=0}return e.length>0&&e[e.length-1].type==="break"?e.slice(0,-1):e}q(art,"tokenize");function srt(t,e,r,n){const i=[];if(t.length===0){const a=wa.create(r,n),s=wa.create(r,n+e.length);i.push({type:"text",content:e,range:ia.create(a,s)})}else{let a=0;for(const o of t){const l=o.index,u=e.substring(a,l);u.length>0&&i.push({type:"text",content:e.substring(a,l),range:ia.create(wa.create(r,a+n),wa.create(r,l+n))});let d=u.length+1;const h=o[1];if(i.push({type:"inline-tag",content:h,range:ia.create(wa.create(r,a+d+n),wa.create(r,a+d+h.length+n))}),d+=h.length,o.length===4){d+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:ia.create(wa.create(r,a+d+n),wa.create(r,a+d+f.length+n))})}else i.push({type:"text",content:"",range:ia.create(wa.create(r,a+d+n),wa.create(r,a+d+n))});a=l+o[0].length}const s=e.substring(a);s.length>0&&i.push({type:"text",content:s,range:ia.create(wa.create(r,a+n),wa.create(r,a+n+s.length))})}return i}q(srt,"buildInlineTokens");var gUr=/\S/,mUr=/\s*$/;function mF(t,e){const r=t.substring(e).match(gUr);return r?e+r.index:t.length}q(mF,"skipWhitespace");function ort(t){const e=t.match(mUr);if(e&&typeof e.index=="number")return e.index}q(ort,"lastCharacter");function lrt(t){const e=wa.create(t.position.line,t.position.character);if(t.tokens.length===0)return new wIe([],ia.create(e,e));const r=[];for(;t.index<t.tokens.length;){const a=crt(t,r[r.length-1]);a&&r.push(a)}const n=r[0]?.range.start??e,i=r[r.length-1]?.range.end??e;return new wIe(r,ia.create(n,i))}q(lrt,"parseJSDocComment");function crt(t,e){const r=t.tokens[t.index];if(r.type==="tag")return jfe(t,!1);if(r.type==="text"||r.type==="inline-tag")return Kfe(t);urt(r,e),t.index++}q(crt,"parseJSDocElement");function urt(t,e){if(e){const r=new prt("",t.range);"inlines"in e?e.inlines.push(r):e.content.inlines.push(r)}}q(urt,"appendEmptyLine");function Kfe(t){let e=t.tokens[t.index];const r=e;let n=e;const i=[];for(;e&&e.type!=="break"&&e.type!=="tag";)i.push(drt(t)),n=e,e=t.tokens[t.index];return new sne(i,ia.create(r.range.start,n.range.end))}q(Kfe,"parseJSDocText");function drt(t){return t.tokens[t.index].type==="inline-tag"?jfe(t,!0):Xfe(t)}q(drt,"parseJSDocInline");function jfe(t,e){const r=t.tokens[t.index++],n=r.content.substring(1);if(t.tokens[t.index]?.type==="text")if(e){const a=Xfe(t);return new LX(n,new sne([a],a.range),e,ia.create(r.range.start,a.range.end))}else{const a=Kfe(t);return new LX(n,a,e,ia.create(r.range.start,a.range.end))}else{const a=r.range;return new LX(n,new sne([],a),e,a)}}q(jfe,"parseJSDocTag");function Xfe(t){const e=t.tokens[t.index++];return new prt(e.content,e.range)}q(Xfe,"parseJSDocLine");function zG(t){if(!t)return zG({start:"/**",end:"*/",line:"*"});const{start:e,end:r,line:n}=t;return{start:P6(e,!0),end:P6(r,!1),line:P6(n,!0)}}q(zG,"normalizeOptions");function P6(t,e){if(typeof t=="string"||typeof t=="object"){const r=typeof t=="string"?zR(t):t.source;return e?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}else return t}q(P6,"normalizeOption");var Mw,wIe=(Mw=class{constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find(r=>r.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const r of this.elements)if(e.length===0)e=r.toString();else{const n=r.toString();e+=one(e)+n}return e.trim()}toMarkdown(e){let r="";for(const n of this.elements)if(r.length===0)r=n.toMarkdown(e);else{const i=n.toMarkdown(e);r+=one(r)+i}return r.trim()}},q(Mw,"JSDocCommentImpl"),Mw),Lw,LX=(Lw=class{constructor(e,r,n,i){this.name=e,this.content=r,this.inline=n,this.range=i}toString(){let e=`@${this.name}`;const r=this.content.toString();return this.content.inlines.length===1?e=`${e} ${r}`:this.content.inlines.length>1&&(e=`${e}
${r}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){const r=this.content.toMarkdown(e);if(this.inline){const a=hrt(this.name,r,e??{});if(typeof a=="string")return a}let n="";e?.tag==="italic"||e?.tag===void 0?n="*":e?.tag==="bold"?n="**":e?.tag==="bold-italic"&&(n="***");let i=`${n}@${this.name}${n}`;return this.content.inlines.length===1?i=`${i} — ${r}`:this.content.inlines.length>1&&(i=`${i}
${r}`),this.inline?`{${i}}`:i}},q(Lw,"JSDocTagImpl"),Lw);function hrt(t,e,r){if(t==="linkplain"||t==="linkcode"||t==="link"){const n=e.indexOf(" ");let i=e;if(n>0){const s=mF(e,n);i=e.substring(s),e=e.substring(0,n)}return(t==="linkcode"||t==="link"&&r.link==="code")&&(i=`\`${i}\``),r.renderLink?.(e,i)??frt(e,i)}}q(hrt,"renderInlineTag");function frt(t,e){try{return Gd.parse(t,!0),`[${e}](${t})`}catch{return t}}q(frt,"renderLinkDefault");var Pw,sne=(Pw=class{constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;r<this.inlines.length;r++){const n=this.inlines[r],i=this.inlines[r+1];e+=n.toString(),i&&i.range.start.line>n.range.start.line&&(e+=`
`)}return e}toMarkdown(e){let r="";for(let n=0;n<this.inlines.length;n++){const i=this.inlines[n],a=this.inlines[n+1];r+=i.toMarkdown(e),a&&a.range.start.line>i.range.start.line&&(r+=`
`)}return r}},q(Pw,"JSDocTextImpl"),Pw),Fw,prt=(Fw=class{constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}},q(Fw,"JSDocLineImpl"),Fw);function one(t){return t.endsWith(`
`)?`
`:`

`}q(one,"fillNewlines");var Bw,grt=(Bw=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const r=this.commentProvider.getComment(e);if(r&&Yfe(r))return Hfe(r).toMarkdown({renderLink:q((i,a)=>this.documentationLinkRenderer(e,i,a),"renderLink"),renderTag:q(i=>this.documentationTagRenderer(e,i),"renderTag")})}documentationLinkRenderer(e,r,n){const i=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(i&&i.nameSegment){const a=i.nameSegment.range.start.line+1,s=i.nameSegment.range.start.character+1,o=i.documentUri.with({fragment:`L${a},${s}`});return`[${n}](${o.toString()})`}else return}documentationTagRenderer(e,r){}findNameInLocalSymbols(e,r){const i=zf(e).localSymbols;if(!i)return;let a=e;do{const o=i.getStream(a).find(l=>l.name===r);if(o)return o;a=a.$container}while(a)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(i=>i.name===r)}},q(Bw,"JSDocDocumentationProvider"),Bw),Uw,mrt=(Uw=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return $fe(e)?e.$comment:Kde(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},q(Uw,"DefaultCommentProvider"),Uw),$w,_rt=($w=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}},q($w,"DefaultAsyncParser"),$w),Gw,_Ur=(Gw=class{constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){const e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){const r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){const n=await this.acquireParserWorker(r),i=new S0;let a;const s=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(o=>{const l=this.hydrator.hydrate(o);i.resolve(l)}).catch(o=>{i.reject(o)}).finally(()=>{s.dispose(),clearTimeout(a)}),i.promise}terminateWorker(e){e.terminate();const r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(const n of this.workerPool)if(n.ready)return n.lock(),n;const r=new S0;return e.onCancellationRequested(()=>{const n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(Zp)}),this.queue.push(r),r.promise}},q(Gw,"AbstractThreadedAsyncParser"),Gw),zw,vUr=(zw=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,i){this.onReadyEmitter=new UG.Emitter,this.deferred=new S0,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=i,r(a=>{const s=a;this.deferred.resolve(s),this.unlock()}),n(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Zp),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new S0,this.sendMessage(e),this.deferred.promise}},q(zw,"ParserWorker"),zw),qw,vrt=(qw=class{constructor(){this.previousTokenSource=new ss.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const r=PG();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n=ss.CancellationToken.None){const i=new S0,a={action:r,deferred:i,cancellationToken:n};return e.push(a),this.performNextOperation(),i.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:r,deferred:n,cancellationToken:i})=>{try{const a=await Promise.resolve().then(()=>r(i));n.resolve(a)}catch(a){HE(a)?n.resolve(void 0):n.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},q(qw,"DefaultWorkspaceLock"),qw),Vw,yrt=(Vw=class{constructor(e){this.grammarElementIdMap=new fF,this.tokenTypeIdMap=new fF,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(r=>({...r,message:r.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const r=new Map,n=new Map;for(const i of qf(e))r.set(i,{});if(e.$cstNode)for(const i of FA(e.$cstNode))n.set(i,{});return{astNodes:r,cstNodes:n}}dehydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,r));for(const[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){const s=[];n[i]=s;for(const o of a)zo(o)?s.push(this.dehydrateAstNode(o,r)):ou(o)?s.push(this.dehydrateReference(o,r)):s.push(o)}else zo(a)?n[i]=this.dehydrateAstNode(a,r):ou(a)?n[i]=this.dehydrateReference(a,r):a!==void 0&&(n[i]=a);return n}dehydrateReference(e,r){const n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=r.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,r){const n=r.cstNodes.get(e);return P$(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),p0(e)?n.content=e.content.map(i=>this.dehydrateCstNode(i,r)):xE(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){const r=e.value,n=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,n)}}createHydrationContext(e){const r=new Map,n=new Map;for(const a of qf(e))r.set(a,{});let i;if(e.$cstNode)for(const a of FA(e.$cstNode)){let s;"fullText"in a?(s=new Cfe(a.fullText),i=s):"content"in a?s=new NG:"tokenType"in a&&(s=this.hydrateCstLeafNode(a)),s&&(n.set(a,s),s.root=i)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=r.cstNodes.get(e.$cstNode));for(const[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){const s=[];n[i]=s;for(const o of a)zo(o)?s.push(this.setParent(this.hydrateAstNode(o,r),n)):ou(o)?s.push(this.hydrateReference(o,n,i,r)):s.push(o)}else zo(a)?n[i]=this.setParent(this.hydrateAstNode(a,r),n):ou(a)?n[i]=this.hydrateReference(a,n,i,r):a!==void 0&&(n[i]=a);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,i){return this.linker.buildReference(r,n,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){const i=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=r.astNodes.get(e.astNode),p0(i))for(const a of e.content){const s=this.hydrateCstNode(a,r,n++);i.content.push(s)}return i}hydrateCstLeafNode(e){const r=this.getTokenType(e.tokenType),n=e.offset,i=e.length,a=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new lF(n,i,{start:{line:a,character:s},end:{line:o,character:l}},r,u)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const r of qf(this.grammar))F$(r)&&this.grammarElementIdMap.set(r,e++)}},q(Vw,"DefaultHydrator"),Vw);function ih(t){return{documentation:{CommentProvider:q(e=>new mrt(e),"CommentProvider"),DocumentationProvider:q(e=>new grt(e),"DocumentationProvider")},parser:{AsyncParser:q(e=>new _rt(e),"AsyncParser"),GrammarConfig:q(e=>vhe(e),"GrammarConfig"),LangiumParser:q(e=>Ife(e),"LangiumParser"),CompletionParser:q(e=>Ofe(e),"CompletionParser"),ValueConverter:q(()=>new kfe,"ValueConverter"),TokenBuilder:q(()=>new MG,"TokenBuilder"),Lexer:q(e=>new Vfe(e),"Lexer"),ParserErrorMessageProvider:q(()=>new xfe,"ParserErrorMessageProvider"),LexerErrorMessageProvider:q(()=>new irt,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:q(()=>new Jtt,"AstNodeLocator"),AstNodeDescriptionProvider:q(e=>new Qtt(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:q(e=>new Ztt(e),"ReferenceDescriptionProvider")},references:{Linker:q(e=>new Utt(e),"Linker"),NameProvider:q(()=>new $tt,"NameProvider"),ScopeProvider:q(e=>new Htt(e),"ScopeProvider"),ScopeComputation:q(e=>new ztt(e),"ScopeComputation"),References:q(e=>new Gtt(e),"References")},serializer:{Hydrator:q(e=>new yrt(e),"Hydrator"),JsonSerializer:q(e=>new Ytt(e),"JsonSerializer")},validation:{DocumentValidator:q(e=>new Xtt(e),"DocumentValidator"),ValidationRegistry:q(e=>new Ktt(e),"ValidationRegistry")},shared:q(()=>t.shared,"shared")}}q(ih,"createDefaultCoreModule");function ah(t){return{ServiceRegistry:q(e=>new Wtt(e),"ServiceRegistry"),workspace:{LangiumDocuments:q(e=>new Btt(e),"LangiumDocuments"),LangiumDocumentFactory:q(e=>new Ftt(e),"LangiumDocumentFactory"),DocumentBuilder:q(e=>new trt(e),"DocumentBuilder"),IndexManager:q(e=>new rrt(e),"IndexManager"),WorkspaceManager:q(e=>new nrt(e),"WorkspaceManager"),FileSystemProvider:q(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:q(()=>new vrt,"WorkspaceLock"),ConfigurationProvider:q(e=>new ert(e),"ConfigurationProvider")},profilers:{}}}q(ah,"createDefaultSharedCoreModule");var lne;(function(t){t.merge=(e,r)=>qA(qA({},e),r)})(lne||(lne={}));function Ds(t,e,r,n,i,a,s,o,l){const u=[t,e,r,n,i,a,s,o,l].reduce(qA,{});return Zfe(u)}q(Ds,"inject");var brt=Symbol("isProxy");function Qfe(t){if(t&&t[brt])for(const e of Object.values(t))Qfe(e);return t}q(Qfe,"eagerLoad");function Zfe(t,e){const r=new Proxy({},{deleteProperty:q(()=>!1,"deleteProperty"),set:q(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:q((n,i)=>i===brt?!0:cne(n,i,t,e||r),"get"),getOwnPropertyDescriptor:q((n,i)=>(cne(n,i,t,e||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:q((n,i)=>i in t,"has"),ownKeys:q(()=>[...Object.getOwnPropertyNames(t)],"ownKeys")});return r}q(Zfe,"_inject");var xIe=Symbol();function cne(t,e,r,n){if(e in t){if(t[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+t[e]);if(t[e]===xIe)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return t[e]}else if(e in r){const i=r[e];t[e]=xIe;try{t[e]=typeof i=="function"?i(n):Zfe(i,n)}catch(a){throw t[e]=a instanceof Error?a:void 0,a}return t[e]}else return}q(cne,"_resolve");function qA(t,e){if(e){for(const[r,n]of Object.entries(e))if(n!=null)if(typeof n=="object"){const i=t[r];typeof i=="object"&&i!==null?t[r]=qA(i,n):t[r]=qA({},n)}else t[r]=n}return t}q(qA,"_merge");var une={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},qy;(function(t){t.REGULAR="indentation-sensitive",t.IGNORE_INDENTATION="ignore-indentation"})(qy||(qy={}));var Hw,Ert=(Hw=class extends MG{constructor(e=une){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...une,...e},this.indentTokenType=lC({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=lC({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,r){const n=super.buildTokens(e,r);if(!$G(n))throw new Error("Invalid tokens built by default builder");const{indentTokenName:i,dedentTokenName:a,whitespaceTokenName:s,ignoreIndentationDelimiters:o}=this.options;let l,u,d;const h=[];for(const f of n){for(const[p,g]of o)f.name===p?f.PUSH_MODE=qy.IGNORE_INDENTATION:f.name===g&&(f.POP_MODE=!0);f.name===a?l=f:f.name===i?u=f:f.name===s?d=f:h.push(f)}if(!l||!u||!d)throw new Error("Some indentation/whitespace tokens not found!");return o.length>0?{modes:{[qy.REGULAR]:[l,u,...h,d],[qy.IGNORE_INDENTATION]:[...h,d]},defaultMode:qy.REGULAR}:[l,u,d,...h]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,r){return r===0||`\r
`.includes(e[r-1])}matchWhitespace(e,r,n,i){this.whitespaceRegExp.lastIndex=r;const a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,r,n,i){const a=this.getLineNumber(r,i);return AD(e,n,i,i+n.length,a,a,1,n.length)}getLineNumber(e,r){return e.substring(0,r).split(/\r\n|\r|\n/).length}indentMatcher(e,r,n,i){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,i);return a<=s?null:(this.indentationStack.push(a),o)}dedentMatcher(e,r,n,i){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,i);if(a>=s)return null;const l=this.indentationStack.lastIndexOf(a);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${r}. Current indentation stack: ${this.indentationStack}`,offset:r,length:o?.[0]?.length??0,line:this.getLineNumber(e,r),column:1}),null;const u=this.indentationStack.length-l-1,d=e.substring(0,r).match(/[\r\n]+$/)?.[0].length??1;for(let h=0;h<u;h++){const f=this.createIndentationTokenInstance(this.dedentTokenType,e,"",r-(d-1));n.push(f),this.indentationStack.pop()}return null}buildTerminalToken(e){const r=super.buildTerminalToken(e),{indentTokenName:n,dedentTokenName:i,whitespaceTokenName:a}=this.options;return r.name===n?this.indentTokenType:r.name===i?this.dedentTokenType:r.name===a?lC({name:a,pattern:this.whitespaceRegExp,group:mu.SKIPPED}):r}flushRemainingDedents(e){const r=[];for(;this.indentationStack.length>1;)r.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],r}},q(Hw,"IndentationAwareTokenBuilder"),Hw),Yw,yUr=(Yw=class extends Vfe{constructor(e){if(super(e),e.parser.TokenBuilder instanceof Ert)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,r=qfe){const n=super.tokenize(e),i=n.report;r?.mode==="full"&&n.tokens.push(...i.remainingDedents),i.remainingDedents=[];const{indentTokenType:a,dedentTokenType:s}=this.indentationTokenBuilder,o=a.tokenTypeIdx,l=s.tokenTypeIdx,u=[],d=n.tokens.length-1;for(let h=0;h<d;h++){const f=n.tokens[h],p=n.tokens[h+1];if(f.tokenTypeIdx===o&&p.tokenTypeIdx===l){h++;continue}u.push(f)}return d>=0&&u.push(n.tokens[d]),n.tokens=u,n}},q(Yw,"IndentationAwareLexer"),Yw),Jfe={};ev(Jfe,{AstUtils:()=>Sde,BiMap:()=>fF,Cancellation:()=>ss,ContextCache:()=>BG,CstUtils:()=>yde,DONE_RESULT:()=>eu,Deferred:()=>S0,Disposable:()=>cb,DisposableCache:()=>FG,DocumentCache:()=>Vtt,EMPTY_STREAM:()=>kA,ErrorWithLocation:()=>V$,GrammarUtils:()=>Zde,MultiMap:()=>T0,OperationCancelled:()=>Zp,Reduction:()=>c3,RegExpUtils:()=>ehe,SimpleCache:()=>Bfe,StreamImpl:()=>Qp,TreeStreamImpl:()=>DA,URI:()=>Gd,UriTrie:()=>Pfe,UriUtils:()=>lu,WorkspaceCache:()=>Ufe,assertCondition:()=>Jde,assertUnreachable:()=>tv,delayNextTick:()=>LG,interruptAndCheck:()=>Cl,isOperationCancelled:()=>HE,loadGrammarFromJson:()=>sh,setInterruptionPeriod:()=>Dfe,startCancelableOperation:()=>PG,stream:()=>Ga});D$(Jfe,UG);var Ww,Srt=(Ww=class{stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},q(Ww,"EmptyFileSystemProvider"),Ww),tf={fileSystemProvider:q(()=>new Srt,"fileSystemProvider")},bUr={Grammar:q(()=>{},"Grammar"),LanguageMetaData:q(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},EUr={AstReflection:q(()=>new qde,"AstReflection")};function Trt(){const t=Ds(ah(tf),EUr),e=Ds(ih({shared:t}),bUr);return t.ServiceRegistry.register(e),e}q(Trt,"createMinimalGrammarServices");function sh(t){const e=Trt(),r=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(r,Gd.parse(`memory:/${r.name??"grammar"}.langium`)),r}q(sh,"loadGrammarFromJson");D$(NHe,Jfe);var Kw,SUr=(Kw=class{constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new T0}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(r=>this.activeCategories.add(r)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(r=>this.activeCategories.delete(r)):this.activeCategories.clear()}createTask(e,r){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${r}'.`),new Crt(n=>this.records.add(e,this.dumpRecord(e,n)),r)}dumpRecord(e,r){console.info(`Task ${e}.${r.identifier} executed in ${r.duration.toFixed(2)}ms and ended at ${r.date.toISOString()}`);const n=[];for(const s of r.entries.keys()){const o=r.entries.get(s),l=o.reduce((u,d)=>u+d);n.push({name:`${r.identifier}.${s}`,count:o.length,duration:l})}const i=r.duration-n.map(s=>s.duration).reduce((s,o)=>s+o,0);n.push({name:r.identifier,count:1,duration:i}),n.sort((s,o)=>o.duration-s.duration);function a(s){return Math.round(100*s)/100}return q(a,"Round"),console.table(n.map(s=>({Element:s.name,Count:s.count,"Self %":a(100*s.duration/r.duration),"Time (ms)":a(s.duration)}))),r}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(r=>e.some(n=>n===r[0])).flatMap(r=>r[1])}},q(Kw,"DefaultLangiumProfiler"),Kw),jw,Crt=(jw=class{constructor(e,r){this.stack=[],this.entries=new T0,this.addRecord=e,this.identifier=r}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(r=>r.id).join(", ")}.`);const e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){const r=this.stack.pop();if(!r)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(r.id!==e)throw new Error(`Sub-Task "${r.id}" is not already stopped.`);const n=performance.now()-r.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=n);const i=n-r.content;this.entries.add(e,i)}},q(jw,"ProfilingTask"),jw),dne;(t=>{t.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(dne||(dne={}));var hne;(t=>{t.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(hne||(hne={}));var fne;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(fne||(fne={}));var pne;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(pne||(pne={}));var gne;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(gne||(gne={}));var mne;(t=>{t.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(mne||(mne={}));var _ne;(t=>{t.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(_ne||(_ne={}));var vne;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(vne||(vne={}));var yne;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(yne||(yne={}));var bne;(t=>{t.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(bne||(bne={}));({...dne.Terminals,...hne.Terminals,...fne.Terminals,...pne.Terminals,...gne.Terminals,...mne.Terminals,..._ne.Terminals,...yne.Terminals,...vne.Terminals,...bne.Terminals});var tP={$type:"Accelerator",name:"name",x:"x",y:"y"},rP={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},eI={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},PX={$type:"Annotations",x:"x",y:"y"},pm={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function TUr(t){return oh.isInstance(t,pm.$type)}q(TUr,"isArchitecture");var nP={$type:"Axis",label:"label",name:"name"},F6={$type:"Branch",name:"name",order:"order"};function CUr(t){return oh.isInstance(t,F6.$type)}q(CUr,"isBranch");var AIe={$type:"Checkout",branch:"branch"},iP={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},FX={$type:"ClassDefStatement",className:"className",styleText:"styleText"},JS={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function wUr(t){return oh.isInstance(t,JS.$type)}q(wUr,"isCommit");var aP={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},Dv={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},sP={$type:"Curve",entries:"entries",label:"label",name:"name"},oP={$type:"Deaccelerator",name:"name",x:"x",y:"y"},RIe={$type:"Decorator",strategy:"strategy"},ES={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},Sp={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},SS={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},Mv={$type:"EmFrame"},tI={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},OIe={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},BX={$type:"EmModelEntity",name:"name"};function xUr(t){return t==="rmo"||t==="readmodel"||t==="ui"||t==="cmd"||t==="command"||t==="evt"||t==="event"||t==="pcr"||t==="processor"}q(xUr,"isEmModelEntityType");var lP={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},gm={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function wrt(t){return oh.isInstance(t,gm.$type)}q(wrt,"isEmResetFrame");var u_={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},UX={$type:"Entry",axis:"axis",value:"value"},am={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},IIe={$type:"Evolution",stages:"stages"},cP={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},$X={$type:"Evolve",component:"component",target:"target"},ey={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function AUr(t){return oh.isInstance(t,ey.$type)}q(AUr,"isGitGraph");var rI={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},YI={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function RUr(t){return oh.isInstance(t,YI.$type)}q(RUr,"isInfo");var nI={$type:"Item",classSelector:"classSelector",name:"name"},GX={$type:"Junction",id:"id",in:"in"},iI={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},uP={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},Lv={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},eT={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function OUr(t){return oh.isInstance(t,eT.$type)}q(OUr,"isMerge");var dP={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},zX={$type:"Option",name:"name",value:"value"},tT={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function IUr(t){return oh.isInstance(t,tT.$type)}q(IUr,"isPacket");var rT={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function NUr(t){return oh.isInstance(t,rT.$type)}q(NUr,"isPacketBlock");var ty={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function kUr(t){return oh.isInstance(t,ty.$type)}q(kUr,"isPie");var B6={$type:"PieSection",label:"label",value:"value"};function DUr(t){return oh.isInstance(t,B6.$type)}q(DUr,"isPieSection");var qX={$type:"Pipeline",components:"components",parent:"parent"},hP={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},Pv={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},VX={$type:"Section",classSelector:"classSelector",name:"name"},TS={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},HX={$type:"Size",height:"height",width:"width"},CS={$type:"Statement"},nT={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function MUr(t){return oh.isInstance(t,nT.$type)}q(MUr,"isTreemap");var YX={$type:"TreemapRow",indent:"indent",item:"item"},WX={$type:"TreeNode",indent:"indent",name:"name"},aI={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Ul={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};function LUr(t){return oh.isInstance(t,Ul.$type)}q(LUr,"isWardley");var Xw,xrt=(Xw=class extends Ede{constructor(){super(...arguments),this.types={Accelerator:{name:tP.$type,properties:{name:{name:tP.name},x:{name:tP.x},y:{name:tP.y}},superTypes:[]},Anchor:{name:rP.$type,properties:{evolution:{name:rP.evolution},name:{name:rP.name},visibility:{name:rP.visibility}},superTypes:[]},Annotation:{name:eI.$type,properties:{number:{name:eI.number},text:{name:eI.text},x:{name:eI.x},y:{name:eI.y}},superTypes:[]},Annotations:{name:PX.$type,properties:{x:{name:PX.x},y:{name:PX.y}},superTypes:[]},Architecture:{name:pm.$type,properties:{accDescr:{name:pm.accDescr},accTitle:{name:pm.accTitle},edges:{name:pm.edges,defaultValue:[]},groups:{name:pm.groups,defaultValue:[]},junctions:{name:pm.junctions,defaultValue:[]},services:{name:pm.services,defaultValue:[]},title:{name:pm.title}},superTypes:[]},Axis:{name:nP.$type,properties:{label:{name:nP.label},name:{name:nP.name}},superTypes:[]},Branch:{name:F6.$type,properties:{name:{name:F6.name},order:{name:F6.order}},superTypes:[CS.$type]},Checkout:{name:AIe.$type,properties:{branch:{name:AIe.branch}},superTypes:[CS.$type]},CherryPicking:{name:iP.$type,properties:{id:{name:iP.id},parent:{name:iP.parent},tags:{name:iP.tags,defaultValue:[]}},superTypes:[CS.$type]},ClassDefStatement:{name:FX.$type,properties:{className:{name:FX.className},styleText:{name:FX.styleText}},superTypes:[]},Commit:{name:JS.$type,properties:{id:{name:JS.id},message:{name:JS.message},tags:{name:JS.tags,defaultValue:[]},type:{name:JS.type}},superTypes:[CS.$type]},Common:{name:aP.$type,properties:{accDescr:{name:aP.accDescr},accTitle:{name:aP.accTitle},title:{name:aP.title}},superTypes:[]},Component:{name:Dv.$type,properties:{decorator:{name:Dv.decorator},evolution:{name:Dv.evolution},inertia:{name:Dv.inertia,defaultValue:!1},label:{name:Dv.label},name:{name:Dv.name},visibility:{name:Dv.visibility}},superTypes:[]},Curve:{name:sP.$type,properties:{entries:{name:sP.entries,defaultValue:[]},label:{name:sP.label},name:{name:sP.name}},superTypes:[]},Deaccelerator:{name:oP.$type,properties:{name:{name:oP.name},x:{name:oP.x},y:{name:oP.y}},superTypes:[]},Decorator:{name:RIe.$type,properties:{strategy:{name:RIe.strategy}},superTypes:[]},Direction:{name:ES.$type,properties:{accDescr:{name:ES.accDescr},accTitle:{name:ES.accTitle},dir:{name:ES.dir},statements:{name:ES.statements,defaultValue:[]},title:{name:ES.title}},superTypes:[ey.$type]},Edge:{name:Sp.$type,properties:{lhsDir:{name:Sp.lhsDir},lhsGroup:{name:Sp.lhsGroup,defaultValue:!1},lhsId:{name:Sp.lhsId},lhsInto:{name:Sp.lhsInto,defaultValue:!1},rhsDir:{name:Sp.rhsDir},rhsGroup:{name:Sp.rhsGroup,defaultValue:!1},rhsId:{name:Sp.rhsId},rhsInto:{name:Sp.rhsInto,defaultValue:!1},title:{name:Sp.title}},superTypes:[]},EmDataEntity:{name:SS.$type,properties:{dataBlockValue:{name:SS.dataBlockValue},dataType:{name:SS.dataType},name:{name:SS.name}},superTypes:[]},EmFrame:{name:Mv.$type,properties:{},superTypes:[]},EmGwt:{name:tI.$type,properties:{givenStatements:{name:tI.givenStatements,defaultValue:[]},sourceFrame:{name:tI.sourceFrame,referenceType:Mv.$type},thenStatements:{name:tI.thenStatements,defaultValue:[]},whenStatements:{name:tI.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:OIe.$type,properties:{entityIdentifier:{name:OIe.entityIdentifier,referenceType:BX.$type}},superTypes:[]},EmModelEntity:{name:BX.$type,properties:{name:{name:BX.name}},superTypes:[]},EmNoteEntity:{name:lP.$type,properties:{dataBlockValue:{name:lP.dataBlockValue},dataType:{name:lP.dataType},sourceFrame:{name:lP.sourceFrame,referenceType:Mv.$type}},superTypes:[]},EmResetFrame:{name:gm.$type,properties:{dataInlineValue:{name:gm.dataInlineValue},dataReference:{name:gm.dataReference,referenceType:SS.$type},dataType:{name:gm.dataType},entityIdentifier:{name:gm.entityIdentifier},modelEntityType:{name:gm.modelEntityType},name:{name:gm.name},sourceFrames:{name:gm.sourceFrames,defaultValue:[],referenceType:Mv.$type}},superTypes:[Mv.$type]},EmTimeFrame:{name:u_.$type,properties:{dataInlineValue:{name:u_.dataInlineValue},dataReference:{name:u_.dataReference,referenceType:SS.$type},dataType:{name:u_.dataType},entityIdentifier:{name:u_.entityIdentifier},modelEntityType:{name:u_.modelEntityType},name:{name:u_.name},sourceFrames:{name:u_.sourceFrames,defaultValue:[],referenceType:Mv.$type}},superTypes:[Mv.$type]},Entry:{name:UX.$type,properties:{axis:{name:UX.axis,referenceType:nP.$type},value:{name:UX.value}},superTypes:[]},EventModel:{name:am.$type,properties:{accDescr:{name:am.accDescr},accTitle:{name:am.accTitle},dataEntities:{name:am.dataEntities,defaultValue:[]},frames:{name:am.frames,defaultValue:[]},gwtEntities:{name:am.gwtEntities,defaultValue:[]},modelEntities:{name:am.modelEntities,defaultValue:[]},noteEntities:{name:am.noteEntities,defaultValue:[]},title:{name:am.title}},superTypes:[]},Evolution:{name:IIe.$type,properties:{stages:{name:IIe.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:cP.$type,properties:{boundary:{name:cP.boundary},name:{name:cP.name},secondName:{name:cP.secondName}},superTypes:[]},Evolve:{name:$X.$type,properties:{component:{name:$X.component},target:{name:$X.target}},superTypes:[]},GitGraph:{name:ey.$type,properties:{accDescr:{name:ey.accDescr},accTitle:{name:ey.accTitle},statements:{name:ey.statements,defaultValue:[]},title:{name:ey.title}},superTypes:[]},Group:{name:rI.$type,properties:{icon:{name:rI.icon},id:{name:rI.id},in:{name:rI.in},title:{name:rI.title}},superTypes:[]},Info:{name:YI.$type,properties:{accDescr:{name:YI.accDescr},accTitle:{name:YI.accTitle},title:{name:YI.title}},superTypes:[]},Item:{name:nI.$type,properties:{classSelector:{name:nI.classSelector},name:{name:nI.name}},superTypes:[]},Junction:{name:GX.$type,properties:{id:{name:GX.id},in:{name:GX.in}},superTypes:[]},Label:{name:iI.$type,properties:{negX:{name:iI.negX,defaultValue:!1},negY:{name:iI.negY,defaultValue:!1},offsetX:{name:iI.offsetX},offsetY:{name:iI.offsetY}},superTypes:[]},Leaf:{name:uP.$type,properties:{classSelector:{name:uP.classSelector},name:{name:uP.name},value:{name:uP.value}},superTypes:[nI.$type]},Link:{name:Lv.$type,properties:{arrow:{name:Lv.arrow},from:{name:Lv.from},fromPort:{name:Lv.fromPort},linkLabel:{name:Lv.linkLabel},to:{name:Lv.to},toPort:{name:Lv.toPort}},superTypes:[]},Merge:{name:eT.$type,properties:{branch:{name:eT.branch},id:{name:eT.id},tags:{name:eT.tags,defaultValue:[]},type:{name:eT.type}},superTypes:[CS.$type]},Note:{name:dP.$type,properties:{evolution:{name:dP.evolution},text:{name:dP.text},visibility:{name:dP.visibility}},superTypes:[]},Option:{name:zX.$type,properties:{name:{name:zX.name},value:{name:zX.value,defaultValue:!1}},superTypes:[]},Packet:{name:tT.$type,properties:{accDescr:{name:tT.accDescr},accTitle:{name:tT.accTitle},blocks:{name:tT.blocks,defaultValue:[]},title:{name:tT.title}},superTypes:[]},PacketBlock:{name:rT.$type,properties:{bits:{name:rT.bits},end:{name:rT.end},label:{name:rT.label},start:{name:rT.start}},superTypes:[]},Pie:{name:ty.$type,properties:{accDescr:{name:ty.accDescr},accTitle:{name:ty.accTitle},sections:{name:ty.sections,defaultValue:[]},showData:{name:ty.showData,defaultValue:!1},title:{name:ty.title}},superTypes:[]},PieSection:{name:B6.$type,properties:{label:{name:B6.label},value:{name:B6.value}},superTypes:[]},Pipeline:{name:qX.$type,properties:{components:{name:qX.components,defaultValue:[]},parent:{name:qX.parent}},superTypes:[]},PipelineComponent:{name:hP.$type,properties:{evolution:{name:hP.evolution},label:{name:hP.label},name:{name:hP.name}},superTypes:[]},Radar:{name:Pv.$type,properties:{accDescr:{name:Pv.accDescr},accTitle:{name:Pv.accTitle},axes:{name:Pv.axes,defaultValue:[]},curves:{name:Pv.curves,defaultValue:[]},options:{name:Pv.options,defaultValue:[]},title:{name:Pv.title}},superTypes:[]},Section:{name:VX.$type,properties:{classSelector:{name:VX.classSelector},name:{name:VX.name}},superTypes:[nI.$type]},Service:{name:TS.$type,properties:{icon:{name:TS.icon},iconText:{name:TS.iconText},id:{name:TS.id},in:{name:TS.in},title:{name:TS.title}},superTypes:[]},Size:{name:HX.$type,properties:{height:{name:HX.height},width:{name:HX.width}},superTypes:[]},Statement:{name:CS.$type,properties:{},superTypes:[]},TreeNode:{name:WX.$type,properties:{indent:{name:WX.indent},name:{name:WX.name}},superTypes:[]},TreeView:{name:aI.$type,properties:{accDescr:{name:aI.accDescr},accTitle:{name:aI.accTitle},nodes:{name:aI.nodes,defaultValue:[]},title:{name:aI.title}},superTypes:[]},Treemap:{name:nT.$type,properties:{accDescr:{name:nT.accDescr},accTitle:{name:nT.accTitle},title:{name:nT.title},TreemapRows:{name:nT.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:YX.$type,properties:{indent:{name:YX.indent},item:{name:YX.item}},superTypes:[]},Wardley:{name:Ul.$type,properties:{accDescr:{name:Ul.accDescr},accelerators:{name:Ul.accelerators,defaultValue:[]},accTitle:{name:Ul.accTitle},anchors:{name:Ul.anchors,defaultValue:[]},annotation:{name:Ul.annotation,defaultValue:[]},annotations:{name:Ul.annotations,defaultValue:[]},components:{name:Ul.components,defaultValue:[]},deaccelerators:{name:Ul.deaccelerators,defaultValue:[]},evolution:{name:Ul.evolution},evolves:{name:Ul.evolves,defaultValue:[]},links:{name:Ul.links,defaultValue:[]},notes:{name:Ul.notes,defaultValue:[]},pipelines:{name:Ul.pipelines,defaultValue:[]},size:{name:Ul.size},title:{name:Ul.title}},superTypes:[]}}}},q(Xw,"MermaidAstReflection"),Xw),oh=new xrt,NIe,PUr=q(()=>NIe??(NIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),kIe,FUr=q(()=>kIe??(kIe=sh('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),DIe,BUr=q(()=>DIe??(DIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),MIe,UUr=q(()=>MIe??(MIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),LIe,$Ur=q(()=>LIe??(LIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),PIe,GUr=q(()=>PIe??(PIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),FIe,zUr=q(()=>FIe??(FIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),BIe,qUr=q(()=>BIe??(BIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),UIe,VUr=q(()=>UIe??(UIe=sh(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),$Ie,HUr=q(()=>$Ie??($Ie=sh(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),YUr={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},WUr={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},KUr={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},jUr={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},XUr={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},QUr={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ZUr={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},JUr={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},e$r={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},t$r={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},$g={AstReflection:q(()=>new xrt,"AstReflection")},r$r={Grammar:q(()=>PUr(),"Grammar"),LanguageMetaData:q(()=>YUr,"LanguageMetaData"),parser:{}},n$r={Grammar:q(()=>FUr(),"Grammar"),LanguageMetaData:q(()=>WUr,"LanguageMetaData"),parser:{}},i$r={Grammar:q(()=>BUr(),"Grammar"),LanguageMetaData:q(()=>KUr,"LanguageMetaData"),parser:{}},a$r={Grammar:q(()=>UUr(),"Grammar"),LanguageMetaData:q(()=>jUr,"LanguageMetaData"),parser:{}},s$r={Grammar:q(()=>$Ur(),"Grammar"),LanguageMetaData:q(()=>XUr,"LanguageMetaData"),parser:{}},o$r={Grammar:q(()=>GUr(),"Grammar"),LanguageMetaData:q(()=>QUr,"LanguageMetaData"),parser:{}},l$r={Grammar:q(()=>zUr(),"Grammar"),LanguageMetaData:q(()=>ZUr,"LanguageMetaData"),parser:{}},c$r={Grammar:q(()=>qUr(),"Grammar"),LanguageMetaData:q(()=>JUr,"LanguageMetaData"),parser:{}},u$r={Grammar:q(()=>VUr(),"Grammar"),LanguageMetaData:q(()=>e$r,"LanguageMetaData"),parser:{}},d$r={Grammar:q(()=>HUr(),"Grammar"),LanguageMetaData:q(()=>t$r,"LanguageMetaData"),parser:{}},h$r=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,f$r=/accTitle[\t ]*:([^\n\r]*)/,p$r=/title([\t ][^\n\r]*|)/,g$r={ACC_DESCR:h$r,ACC_TITLE:f$r,TITLE:p$r},Qw,XR=(Qw=class extends kfe{runConverter(e,r,n){let i=this.runCommonConverter(e,r,n);return i===void 0&&(i=this.runCustomConverter(e,r,n)),i===void 0?super.runConverter(e,r,n):i}runCommonConverter(e,r,n){const i=g$r[e.name];if(i===void 0)return;const a=i.exec(r);if(a!==null){if(a[1]!==void 0)return a[1].trim().replace(/[\t ]{2,}/gm," ");if(a[2]!==void 0)return a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
`)}}},q(Qw,"AbstractMermaidValueConverter"),Qw),Zw,ND=(Zw=class extends XR{runCustomConverter(e,r,n){}},q(Zw,"CommonValueConverter"),Zw),Jw,Gg=(Jw=class extends MG{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,r,n){const i=super.buildKeywordTokens(e,r,n);return i.forEach(a=>{this.keywords.has(a.name)&&a.PATTERN!==void 0&&(a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},q(Jw,"AbstractMermaidTokenBuilder"),Jw),ex;ex=class extends Gg{},q(ex,"CommonTokenBuilder");var tx,m$r=(tx=class extends Gg{constructor(){super(["radar-beta"])}},q(tx,"RadarTokenBuilder"),tx),Art={parser:{TokenBuilder:q(()=>new m$r,"TokenBuilder"),ValueConverter:q(()=>new ND,"ValueConverter")}};function Rrt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),l$r,Art);return e.ServiceRegistry.register(r),{shared:e,Radar:r}}q(Rrt,"createRadarServices");var rx,_$r=(rx=class extends Gg{constructor(){super(["treemap"])}},q(rx,"TreemapTokenBuilder"),rx),v$r=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,nx,y$r=(nx=class extends XR{runCustomConverter(e,r,n){if(e.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));if(e.name==="SEPARATOR")return r.substring(1,r.length-1);if(e.name==="STRING2")return r.substring(1,r.length-1);if(e.name==="INDENTATION")return r.length;if(e.name==="ClassDef"){if(typeof r!="string")return r;const i=v$r.exec(r);if(i)return{$type:"ClassDefStatement",className:i[1],styleText:i[2]||void 0}}}},q(nx,"TreemapValueConverter"),nx);function Ort(t){const e=t.validation.TreemapValidator,r=t.validation.ValidationRegistry;if(r){const n={Treemap:e.checkSingleRoot.bind(e)};r.register(n,e)}}q(Ort,"registerValidationChecks");var ix,b$r=(ix=class{checkSingleRoot(e,r){let n;for(const i of e.TreemapRows)i.item&&(n===void 0&&i.indent===void 0?n=0:i.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}):n!==void 0&&n>=parseInt(i.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}))}},q(ix,"TreemapValidator"),ix),Irt={parser:{TokenBuilder:q(()=>new _$r,"TokenBuilder"),ValueConverter:q(()=>new y$r,"ValueConverter")},validation:{TreemapValidator:q(()=>new b$r,"TreemapValidator")}};function Nrt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),c$r,Irt);return e.ServiceRegistry.register(r),Ort(r),{shared:e,Treemap:r}}q(Nrt,"createTreemapServices");var ax,E$r=(ax=class extends XR{runCustomConverter(e,r,n){if(e.name.toUpperCase()==="LINK_LABEL")return r.substring(1).trim()}},q(ax,"WardleyValueConverter"),ax),krt={parser:{ValueConverter:q(()=>new E$r,"ValueConverter")}};function Drt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),d$r,krt);return e.ServiceRegistry.register(r),{shared:e,Wardley:r}}q(Drt,"createWardleyServices");var sx,S$r=(sx=class extends Gg{constructor(){super(["gitGraph"])}},q(sx,"GitGraphTokenBuilder"),sx),Mrt={parser:{TokenBuilder:q(()=>new S$r,"TokenBuilder"),ValueConverter:q(()=>new ND,"ValueConverter")}};function Lrt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),i$r,Mrt);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}q(Lrt,"createGitGraphServices");var ox,T$r=(ox=class extends Gg{constructor(){super(["info","showInfo"])}},q(ox,"InfoTokenBuilder"),ox),Prt={parser:{TokenBuilder:q(()=>new T$r,"TokenBuilder"),ValueConverter:q(()=>new ND,"ValueConverter")}};function Frt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),a$r,Prt);return e.ServiceRegistry.register(r),{shared:e,Info:r}}q(Frt,"createInfoServices");var lx,C$r=(lx=class extends Gg{constructor(){super(["packet"])}},q(lx,"PacketTokenBuilder"),lx),Brt={parser:{TokenBuilder:q(()=>new C$r,"TokenBuilder"),ValueConverter:q(()=>new ND,"ValueConverter")}};function Urt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),s$r,Brt);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}q(Urt,"createPacketServices");var cx,w$r=(cx=class extends Gg{constructor(){super(["pie","showData"])}},q(cx,"PieTokenBuilder"),cx),ux,x$r=(ux=class extends XR{runCustomConverter(e,r,n){if(e.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},q(ux,"PieValueConverter"),ux),$rt={parser:{TokenBuilder:q(()=>new w$r,"TokenBuilder"),ValueConverter:q(()=>new x$r,"ValueConverter")}};function Grt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),o$r,$rt);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}q(Grt,"createPieServices");var dx,A$r=(dx=class extends XR{runCustomConverter(e,r,n){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="STRING2")return r.substring(1,r.length-1)}},q(dx,"TreeViewValueConverter"),dx),hx,R$r=(hx=class extends Gg{constructor(){super(["treeView-beta"])}},q(hx,"TreeViewTokenBuilder"),hx),zrt={parser:{TokenBuilder:q(()=>new R$r,"TokenBuilder"),ValueConverter:q(()=>new A$r,"ValueConverter")}};function qrt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),u$r,zrt);return e.ServiceRegistry.register(r),{shared:e,TreeView:r}}q(qrt,"createTreeViewServices");var fx,O$r=(fx=class extends Gg{constructor(){super(["architecture"])}},q(fx,"ArchitectureTokenBuilder"),fx),px,I$r=(px=class extends XR{runCustomConverter(e,r,n){if(e.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(e.name==="ARCH_TITLE"){let i=r.replace(/^\[|]$/g,"").trim();return(i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'"))&&(i=i.slice(1,-1),i=i.replace(/\\"/g,'"').replace(/\\'/g,"'")),i.trim()}}},q(px,"ArchitectureValueConverter"),px),Vrt={parser:{TokenBuilder:q(()=>new O$r,"TokenBuilder"),ValueConverter:q(()=>new I$r,"ValueConverter")}};function Hrt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),r$r,Vrt);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}q(Hrt,"createArchitectureServices");var gx,N$r=(gx=class extends Gg{constructor(){super(["eventmodeling"])}},q(gx,"EventModelingTokenBuilder"),gx),GIe=new Set(["cmd","command"]),zIe=new Set(["evt","event"]),KX=new Set(["rmo","readmodel"]),qIe=new Set(["pcr","processor"]),VIe=new Set(["ui"]);function Yrt(t){const e=t.validation.EventModelingValidator,r=t.validation.ValidationRegistry;if(r){const n={EmTimeFrame:e.checkSourceFrameTypes.bind(e),EmResetFrame:e.checkSourceFrameTypes.bind(e)};r.register(n,e)}}q(Yrt,"registerValidationChecks");var mx,k$r=(mx=class{checkSourceFrameTypes(e,r){e.sourceFrames.length!==0&&(GIe.has(e.modelEntityType)?this.validateSources(e,new Set([...VIe,...qIe]),"command","ui or processor",r):zIe.has(e.modelEntityType)?this.validateSources(e,GIe,"event","command",r):KX.has(e.modelEntityType)?this.validateSources(e,zIe,"read model","event",r):qIe.has(e.modelEntityType)?this.validateSources(e,KX,"processor","read model",r):VIe.has(e.modelEntityType)&&this.validateSources(e,KX,"ui","read model",r))}validateSources(e,r,n,i,a){for(const s of e.sourceFrames){const o=s.ref;o!==void 0&&!r.has(o.modelEntityType)&&a("error",`A ${n} can only receive input from a ${i}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},q(mx,"EventModelingValidator"),mx),Wrt={parser:{TokenBuilder:q(()=>new N$r,"TokenBuilder"),ValueConverter:q(()=>new ND,"ValueConverter")},validation:{EventModelingValidator:q(()=>new k$r,"EventModelingValidator")}};function Krt(t=tf){const e=Ds(ah(t),$g),r=Ds(ih({shared:e}),n$r,Wrt);return e.ServiceRegistry.register(r),Yrt(r),{shared:e,EventModel:r}}q(Krt,"createEventModelingServices");var _h={},D$r={info:q(async()=>{const{createInfoServices:t}=await Pn(async()=>{const{createInfoServices:r}=await Promise.resolve().then(()=>KZr);return{createInfoServices:r}},void 0,import.meta.url),e=t().Info.parser.LangiumParser;_h.info=e},"info"),packet:q(async()=>{const{createPacketServices:t}=await Pn(async()=>{const{createPacketServices:r}=await Promise.resolve().then(()=>jZr);return{createPacketServices:r}},void 0,import.meta.url),e=t().Packet.parser.LangiumParser;_h.packet=e},"packet"),pie:q(async()=>{const{createPieServices:t}=await Pn(async()=>{const{createPieServices:r}=await Promise.resolve().then(()=>XZr);return{createPieServices:r}},void 0,import.meta.url),e=t().Pie.parser.LangiumParser;_h.pie=e},"pie"),treeView:q(async()=>{const{createTreeViewServices:t}=await Pn(async()=>{const{createTreeViewServices:r}=await Promise.resolve().then(()=>QZr);return{createTreeViewServices:r}},void 0,import.meta.url),e=t().TreeView.parser.LangiumParser;_h.treeView=e},"treeView"),architecture:q(async()=>{const{createArchitectureServices:t}=await Pn(async()=>{const{createArchitectureServices:r}=await Promise.resolve().then(()=>ZZr);return{createArchitectureServices:r}},void 0,import.meta.url),e=t().Architecture.parser.LangiumParser;_h.architecture=e},"architecture"),gitGraph:q(async()=>{const{createGitGraphServices:t}=await Pn(async()=>{const{createGitGraphServices:r}=await Promise.resolve().then(()=>JZr);return{createGitGraphServices:r}},void 0,import.meta.url),e=t().GitGraph.parser.LangiumParser;_h.gitGraph=e},"gitGraph"),eventmodeling:q(async()=>{const{createEventModelingServices:t}=await Pn(async()=>{const{createEventModelingServices:r}=await Promise.resolve().then(()=>eJr);return{createEventModelingServices:r}},void 0,import.meta.url),e=t().EventModel.parser.LangiumParser;_h.eventmodeling=e},"eventmodeling"),radar:q(async()=>{const{createRadarServices:t}=await Pn(async()=>{const{createRadarServices:r}=await Promise.resolve().then(()=>tJr);return{createRadarServices:r}},void 0,import.meta.url),e=t().Radar.parser.LangiumParser;_h.radar=e},"radar"),treemap:q(async()=>{const{createTreemapServices:t}=await Pn(async()=>{const{createTreemapServices:r}=await Promise.resolve().then(()=>rJr);return{createTreemapServices:r}},void 0,import.meta.url),e=t().Treemap.parser.LangiumParser;_h.treemap=e},"treemap"),wardley:q(async()=>{const{createWardleyServices:t}=await Pn(async()=>{const{createWardleyServices:r}=await Promise.resolve().then(()=>nJr);return{createWardleyServices:r}},void 0,import.meta.url),e=t().Wardley.parser.LangiumParser;_h.wardley=e},"wardley")};async function cp(t,e){const r=D$r[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);_h[t]||await r();const i=_h[t].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new M$r(i);return i.value}q(cp,"parse");var _x,M$r=(_x=class extends Error{constructor(e){const r=e.lexerErrors.map(i=>{const a=i.line!==void 0&&!isNaN(i.line)?i.line:"?",s=i.column!==void 0&&!isNaN(i.column)?i.column:"?";return`Lexer error on line ${a}, column ${s}: ${i.message}`}).join(`
`),n=e.parserErrors.map(i=>{const a=i.token.startLine!==void 0&&!isNaN(i.token.startLine)?i.token.startLine:"?",s=i.token.startColumn!==void 0&&!isNaN(i.token.startColumn)?i.token.startColumn:"?";return`Parse error on line ${a}, column ${s}: ${i.message}`}).join(`
`);super(`Parsing failed: ${r} ${n}`),this.result=e}},q(_x,"MermaidParseError"),_x),Ha={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},L$r=Gi.gitGraph,YE=k(()=>_o({...L$r,...Ln().gitGraph}),"getConfig"),qr=new fde(()=>{const t=YE(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function qG(){return XBe({length:7})}k(qG,"getID");function jrt(t,e){const r=Object.create(null);return t.reduce((n,i)=>{const a=e(i);return r[a]||(r[a]=!0,n.push(i)),n},[])}k(jrt,"uniqBy");var P$r=k(function(t){qr.records.direction=t},"setDirection"),F$r=k(function(t){Pe.debug("options str",t),t=t?.trim(),t=t||"{}";try{qr.records.options=JSON.parse(t)}catch(e){Pe.error("error while parsing gitGraph options",e.message)}},"setOptions"),B$r=k(function(){return qr.records.options},"getOptions"),U$r=k(function(t){let e=t.msg,r=t.id;const n=t.type;let i=t.tags;Pe.info("commit",e,r,n,i),Pe.debug("Entering commit:",e,r,n,i);const a=YE();r=Cr.sanitizeText(r,a),e=Cr.sanitizeText(e,a),i=i?.map(o=>Cr.sanitizeText(o,a));const s={id:r||qr.records.seq+"-"+qG(),message:e,seq:qr.records.seq++,type:n??Ha.NORMAL,tags:i??[],parents:qr.records.head==null?[]:[qr.records.head.id],branch:qr.records.currBranch};qr.records.head=s,Pe.info("main branch",a.mainBranchName),qr.records.commits.has(s.id)&&Pe.warn(`Commit ID ${s.id} already exists`),qr.records.commits.set(s.id,s),qr.records.branches.set(qr.records.currBranch,s.id),Pe.debug("in pushCommit "+s.id)},"commit"),$$r=k(function(t){let e=t.name;const r=t.order;if(e=Cr.sanitizeText(e,YE()),qr.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);qr.records.branches.set(e,qr.records.head!=null?qr.records.head.id:null),qr.records.branchConfig.set(e,{name:e,order:r}),Xrt(e),Pe.debug("in createBranch")},"branch"),G$r=k(t=>{let e=t.branch,r=t.id;const n=t.type,i=t.tags,a=YE();e=Cr.sanitizeText(e,a),r&&(r=Cr.sanitizeText(r,a));const s=qr.records.branches.get(qr.records.currBranch),o=qr.records.branches.get(e),l=s?qr.records.commits.get(s):void 0,u=o?qr.records.commits.get(o):void 0;if(l&&u&&l.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(qr.records.currBranch===e){const f=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},f}if(l===void 0||!l){const f=new Error(`Incorrect usage of "merge". Current branch (${qr.records.currBranch})has no commits`);throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},f}if(!qr.records.branches.has(e)){const f=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},f}if(u===void 0||!u){const f=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},f}if(l===u){const f=new Error('Incorrect usage of "merge". Both branches have same head');throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},f}if(r&&qr.records.commits.has(r)){const f=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw f.hash={text:`merge ${e} ${r} ${n} ${i?.join(" ")}`,token:`merge ${e} ${r} ${n} ${i?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${n} ${i?.join(" ")}`]},f}const d=o||"",h={id:r||`${qr.records.seq}-${qG()}`,message:`merged branch ${e} into ${qr.records.currBranch}`,seq:qr.records.seq++,parents:qr.records.head==null?[]:[qr.records.head.id,d],branch:qr.records.currBranch,type:Ha.MERGE,customType:n,customId:!!r,tags:i??[]};qr.records.head=h,qr.records.commits.set(h.id,h),qr.records.branches.set(qr.records.currBranch,h.id),Pe.debug(qr.records.branches),Pe.debug("in mergeBranch")},"merge"),z$r=k(function(t){let e=t.id,r=t.targetId,n=t.tags,i=t.parent;Pe.debug("Entering cherryPick:",e,r,n);const a=YE();if(e=Cr.sanitizeText(e,a),r=Cr.sanitizeText(r,a),n=n?.map(l=>Cr.sanitizeText(l,a)),i=Cr.sanitizeText(i,a),!e||!qr.records.commits.has(e)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},l}const s=qr.records.commits.get(e);if(s===void 0||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=s.branch;if(s.type===Ha.MERGE&&!i)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!qr.records.commits.has(r)){if(o===qr.records.currBranch){const h=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const l=qr.records.branches.get(qr.records.currBranch);if(l===void 0||!l){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${qr.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const u=qr.records.commits.get(l);if(u===void 0||!u){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${qr.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const d={id:qr.records.seq+"-"+qG(),message:`cherry-picked ${s?.message} into ${qr.records.currBranch}`,seq:qr.records.seq++,parents:qr.records.head==null?[]:[qr.records.head.id,s.id],branch:qr.records.currBranch,type:Ha.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===Ha.MERGE?`|parent:${i}`:""}`]};qr.records.head=d,qr.records.commits.set(d.id,d),qr.records.branches.set(qr.records.currBranch,d.id),Pe.debug(qr.records.branches),Pe.debug("in cherryPick")}},"cherryPick"),Xrt=k(function(t){if(t=Cr.sanitizeText(t,YE()),qr.records.branches.has(t)){qr.records.currBranch=t;const e=qr.records.branches.get(qr.records.currBranch);e===void 0||!e?qr.records.head=null:qr.records.head=qr.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function Ene(t,e,r){const n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}k(Ene,"upsert");function epe(t){const e=t.reduce((i,a)=>i.seq>a.seq?i:a,t[0]);let r="";t.forEach(function(i){i===e?r+="	*":r+="	|"});const n=[r,e.id,e.seq];for(const i in qr.records.branches)qr.records.branches.get(i)===e.id&&n.push(i);if(Pe.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const i=qr.records.commits.get(e.parents[0]);Ene(t,e,i),e.parents[1]&&t.push(qr.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const i=qr.records.commits.get(e.parents[0]);Ene(t,e,i)}}t=jrt(t,i=>i.id),epe(t)}k(epe,"prettyPrintCommitHistory");var q$r=k(function(){Pe.debug(qr.records.commits);const t=Qrt()[0];epe([t])},"prettyPrint"),V$r=k(function(){qr.reset(),ys()},"clear"),H$r=k(function(){return[...qr.records.branchConfig.values()].map((e,r)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${r}`)}).sort((e,r)=>(e.order??0)-(r.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Y$r=k(function(){return qr.records.branches},"getBranches"),W$r=k(function(){return qr.records.commits},"getCommits"),Qrt=k(function(){const t=[...qr.records.commits.values()];return t.forEach(function(e){Pe.debug(e.id)}),t.sort((e,r)=>e.seq-r.seq),t},"getCommitsArray"),K$r=k(function(){return qr.records.currBranch},"getCurrentBranch"),j$r=k(function(){return qr.records.direction},"getDirection"),X$r=k(function(){return qr.records.head},"getHead"),Zrt={commitType:Ha,getConfig:YE,setDirection:P$r,setOptions:F$r,getOptions:B$r,commit:U$r,branch:$$r,merge:G$r,cherryPick:z$r,checkout:Xrt,prettyPrint:q$r,clear:V$r,getBranchesAsObjArray:H$r,getBranches:Y$r,getCommits:W$r,getCommitsArray:Qrt,getCurrentBranch:K$r,getDirection:j$r,getHead:X$r,setAccTitle:ms,getAccTitle:Fs,getAccDescription:Us,setAccDescription:Bs,setDiagramTitle:ks,getDiagramTitle:bs},Q$r=k((t,e)=>{Lg(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)Z$r(r,e)},"populate"),Z$r=k((t,e)=>{const n={Commit:k(i=>e.commit(J$r(i)),"Commit"),Branch:k(i=>e.branch(eGr(i)),"Branch"),Merge:k(i=>e.merge(tGr(i)),"Merge"),Checkout:k(i=>e.checkout(rGr(i)),"Checkout"),CherryPicking:k(i=>e.cherryPick(nGr(i)),"CherryPicking")}[t.$type];n?n(t):Pe.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),J$r=k(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?Ha[t.type]:Ha.NORMAL,tags:t.tags??void 0}),"parseCommit"),eGr=k(t=>({name:t.name,order:t.order??0}),"parseBranch"),tGr=k(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?Ha[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),rGr=k(t=>t.branch,"parseCheckout"),nGr=k(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),iGr={parse:k(async t=>{const e=await cp("gitGraph",t);Pe.debug(e),Q$r(e,Zrt)},"parse")},z_=10,q_=40,kp=4,Cm=2,Sy=8,VG=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Sne=12,tpe=new Set(["redux-color","redux-dark-color"]),aGr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Ty=k((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),Qu=new Map,rd=new Map,_F=30,WI=new Map,vF=[],wm=0,Xi="LR",sGr=k(()=>{Qu.clear(),rd.clear(),WI.clear(),wm=0,vF=[],Xi="LR"},"clear"),Jrt=k(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(n=>{const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=n.trim(),e.appendChild(i)}),e},"drawText"),ent=k(t=>{let e,r,n;return Xi==="BT"?(r=k((i,a)=>i<=a,"comparisonFunc"),n=1/0):(r=k((i,a)=>i>=a,"comparisonFunc"),n=0),t.forEach(i=>{const a=Xi==="TB"||Xi=="BT"?rd.get(i)?.y:rd.get(i)?.x;a!==void 0&&r(a,n)&&(e=i,n=a)}),e},"findClosestParent"),oGr=k(t=>{let e="",r=1/0;return t.forEach(n=>{const i=rd.get(n).y;i<=r&&(e=n,r=i)}),e||void 0},"findClosestParentBT"),lGr=k((t,e,r)=>{let n=r,i=r;const a=[];t.forEach(s=>{const o=e.get(s);if(!o)throw new Error(`Commit not found for key ${s}`);o.parents.length?(n=uGr(o),i=Math.max(n,i)):a.push(o),dGr(o,n)}),n=i,a.forEach(s=>{hGr(s,n,r)}),t.forEach(s=>{const o=e.get(s);if(o?.parents.length){const l=oGr(o.parents);n=rd.get(l).y-q_,n<=i&&(i=n);const u=Qu.get(o.branch).pos,d=n-z_;rd.set(o.id,{x:u,y:d})}})},"setParallelBTPos"),cGr=k(t=>{const e=ent(t.parents.filter(n=>n!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const r=rd.get(e)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),uGr=k(t=>cGr(t)+q_,"calculateCommitPosition"),dGr=k((t,e)=>{const r=Qu.get(t.branch);if(!r)throw new Error(`Branch not found for commit ${t.id}`);const n=r.pos,i=e+z_;return rd.set(t.id,{x:n,y:i}),{x:n,y:i}},"setCommitPosition"),hGr=k((t,e,r)=>{const n=Qu.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const i=e+r,a=n.pos;rd.set(t.id,{x:a,y:i})},"setRootPosition"),fGr=k((t,e,r,n,i,a)=>{const{theme:s}=vt(),o=VG.has(s??""),l=tpe.has(s??""),u=aGr.has(s??"");if(a===Ha.HIGHLIGHT)t.append("rect").attr("x",r.x-10+(o?3:0)).attr("y",r.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${e.id} commit-highlight${Ty(i,Sy,l)} ${n}-outer`),t.append("rect").attr("x",r.x-6+(o?2:0)).attr("y",r.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${e.id} commit${Ty(i,Sy,l)} ${n}-inner`);else if(a===Ha.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",o?7:10).attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",o?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",o?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${e.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",r.x),d.attr("cy",r.y),d.attr("r",o?7:10),d.attr("class",`commit ${e.id} commit${Ty(i,Sy,l)}`),a===Ha.MERGE){const h=t.append("circle");h.attr("cx",r.x),h.attr("cy",r.y),h.attr("r",o?5:6),h.attr("class",`commit ${n} ${e.id} commit${Ty(i,Sy,l)}`)}if(a===Ha.REVERSE){const h=t.append("path"),f=o?4:5;h.attr("d",`M ${r.x-f},${r.y-f}L${r.x+f},${r.y+f}M${r.x-f},${r.y+f}L${r.x+f},${r.y-f}`).attr("class",`commit ${n} ${e.id} commit${Ty(i,Sy,l)}`)}}},"drawCommitBullet"),pGr=k((t,e,r,n,i)=>{if(e.type!==Ha.CHERRY_PICK&&(e.customId&&e.type===Ha.MERGE||e.type!==Ha.MERGE)&&i.showCommitLabel){const a=t.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),o=a.append("text").attr("x",n).attr("y",r.y+25).attr("class","commit-label").text(e.id),l=o.node()?.getBBox();if(l&&(s.attr("x",r.posWithOffset-l.width/2-Cm).attr("y",r.y+13.5).attr("width",l.width+2*Cm).attr("height",l.height+2*Cm),Xi==="TB"||Xi==="BT"?(s.attr("x",r.x-(l.width+4*kp+5)).attr("y",r.y-12),o.attr("x",r.x-(l.width+4*kp)).attr("y",r.y+l.height-12)):o.attr("x",r.posWithOffset-l.width/2),i.rotateCommitLabel))if(Xi==="TB"||Xi==="BT")o.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),s.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{const u=-7.5-(l.width+10)/25*9.5,d=10+l.width/25*8.5;a.attr("transform","translate("+u+", "+d+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),gGr=k((t,e,r,n)=>{if(e.tags.length>0){let i=0,a=0,s=0;const o=[];for(const l of e.tags.reverse()){const u=t.insert("polygon"),d=t.append("circle"),h=t.append("text").attr("y",r.y-16-i).attr("class","tag-label").text(l),f=h.node()?.getBBox();if(!f)throw new Error("Tag bbox not found");a=Math.max(a,f.width),s=Math.max(s,f.height),h.attr("x",r.posWithOffset-f.width/2),o.push({tag:h,hole:d,rect:u,yOffset:i}),i+=20}for(const{tag:l,hole:u,rect:d,yOffset:h}of o){const f=s/2,p=r.y-19.2-h;if(d.attr("class","tag-label-bkg").attr("points",`
      ${n-a/2-kp/2},${p+Cm}  
      ${n-a/2-kp/2},${p-Cm}
      ${r.posWithOffset-a/2-kp},${p-f-Cm}
      ${r.posWithOffset+a/2+kp},${p-f-Cm}
      ${r.posWithOffset+a/2+kp},${p+f+Cm}
      ${r.posWithOffset-a/2-kp},${p+f+Cm}`),u.attr("cy",p).attr("cx",n-a/2+kp/2).attr("r",1.5).attr("class","tag-hole"),Xi==="TB"||Xi==="BT"){const g=n+h;d.attr("class","tag-label-bkg").attr("points",`
        ${r.x},${g+2}
        ${r.x},${g-2}
        ${r.x+z_},${g-f-2}
        ${r.x+z_+a+4},${g-f-2}
        ${r.x+z_+a+4},${g+f+2}
        ${r.x+z_},${g+f+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),u.attr("cx",r.x+kp/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),l.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+n+")")}}}},"drawCommitTags"),mGr=k(t=>{switch(t.customType??t.type){case Ha.NORMAL:return"commit-normal";case Ha.REVERSE:return"commit-reverse";case Ha.HIGHLIGHT:return"commit-highlight";case Ha.MERGE:return"commit-merge";case Ha.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),_Gr=k((t,e,r,n)=>{const i={x:0,y:0};if(t.parents.length>0){const a=ent(t.parents);if(a){const s=n.get(a)??i;return e==="TB"?s.y+q_:e==="BT"?(n.get(t.id)??i).y-q_:s.x+q_}}else return e==="TB"?_F:e==="BT"?(n.get(t.id)??i).y-q_:0;return 0},"calculatePosition"),vGr=k((t,e,r)=>{const n=Xi==="BT"&&r?e:e+z_,i=Qu.get(t.branch)?.pos,a=Xi==="TB"||Xi==="BT"?Qu.get(t.branch)?.pos:n;if(a===void 0||i===void 0)throw new Error(`Position were undefined for commit ${t.id}`);const s=VG.has(vt().theme??""),o=Xi==="TB"||Xi==="BT"?n:i+(s?Sne/2+1:-2);return{x:a,y:o,posWithOffset:n}},"getCommitPosition"),HIe=k((t,e,r,n)=>{const i=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let s=Xi==="TB"||Xi==="BT"?_F:0;const o=[...e.keys()],l=n.parallelCommits??!1,u=k((h,f)=>{const p=e.get(h)?.seq,g=e.get(f)?.seq;return p!==void 0&&g!==void 0?p-g:0},"sortKeys");let d=o.sort(u);Xi==="BT"&&(l&&lGr(d,e,s),d=d.reverse()),d.forEach(h=>{const f=e.get(h);if(!f)throw new Error(`Commit not found for key ${h}`);l&&(s=_Gr(f,Xi,s,rd));const p=vGr(f,s,l);if(r){const g=mGr(f),m=f.customType??f.type,_=Qu.get(f.branch)?.index??0;fGr(i,f,p,g,_,m),pGr(a,f,p,s,n),gGr(a,f,p,s)}Xi==="TB"||Xi==="BT"?rd.set(f.id,{x:p.x,y:p.posWithOffset}):rd.set(f.id,{x:p.posWithOffset,y:p.y}),s=Xi==="BT"&&l?s+q_:s+q_+z_,s>wm&&(wm=s)})},"drawCommits"),yGr=k((t,e,r,n,i)=>{const s=(Xi==="TB"||Xi==="BT"?r.x<n.x:r.y<n.y)?e.branch:t.branch,o=k(u=>u.branch===s,"isOnBranchToGetCurve"),l=k(u=>u.seq>t.seq&&u.seq<e.seq,"isBetweenCommits");return[...i.values()].some(u=>l(u)&&o(u))},"shouldRerouteArrow"),KI=k((t,e,r=0)=>{const n=t+Math.abs(t-e)/2;if(r>5)return n;if(vF.every(s=>Math.abs(s-n)>=10))return vF.push(n),n;const a=Math.abs(t-e);return KI(t,e-a/5,r+1)},"findLane"),bGr=k((t,e,r,n)=>{const{theme:i}=vt(),a=tpe.has(i??""),s=rd.get(e.id),o=rd.get(r.id);if(s===void 0||o===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`);const l=yGr(e,r,s,o,n);let u="",d="",h=0,f=0,p=Qu.get(r.branch)?.index;r.type===Ha.MERGE&&e.id!==r.parents[0]&&(p=Qu.get(e.branch)?.index);let g;if(l){u="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",h=10,f=10;const m=s.y<o.y?KI(s.y,o.y):KI(o.y,s.y),_=s.x<o.x?KI(s.x,o.x):KI(o.x,s.x);Xi==="TB"?s.x<o.x?g=`M ${s.x} ${s.y} L ${_-h} ${s.y} ${d} ${_} ${s.y+f} L ${_} ${o.y-h} ${u} ${_+f} ${o.y} L ${o.x} ${o.y}`:(p=Qu.get(e.branch)?.index,g=`M ${s.x} ${s.y} L ${_+h} ${s.y} ${u} ${_} ${s.y+f} L ${_} ${o.y-h} ${d} ${_-f} ${o.y} L ${o.x} ${o.y}`):Xi==="BT"?s.x<o.x?g=`M ${s.x} ${s.y} L ${_-h} ${s.y} ${u} ${_} ${s.y-f} L ${_} ${o.y+h} ${d} ${_+f} ${o.y} L ${o.x} ${o.y}`:(p=Qu.get(e.branch)?.index,g=`M ${s.x} ${s.y} L ${_+h} ${s.y} ${d} ${_} ${s.y-f} L ${_} ${o.y+h} ${u} ${_-f} ${o.y} L ${o.x} ${o.y}`):s.y<o.y?g=`M ${s.x} ${s.y} L ${s.x} ${m-h} ${u} ${s.x+f} ${m} L ${o.x-h} ${m} ${d} ${o.x} ${m+f} L ${o.x} ${o.y}`:(p=Qu.get(e.branch)?.index,g=`M ${s.x} ${s.y} L ${s.x} ${m+h} ${d} ${s.x+f} ${m} L ${o.x-h} ${m} ${u} ${o.x} ${m-f} L ${o.x} ${o.y}`)}else u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,Xi==="TB"?(s.x<o.x&&(r.type===Ha.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y-h} ${u} ${s.x+f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x-h} ${s.y} ${d} ${o.x} ${s.y+f} L ${o.x} ${o.y}`),s.x>o.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Ha.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y-h} ${d} ${s.x-f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x+h} ${s.y} ${u} ${o.x} ${s.y+f} L ${o.x} ${o.y}`),s.x===o.x&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):Xi==="BT"?(s.x<o.x&&(r.type===Ha.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y+h} ${d} ${s.x+f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x-h} ${s.y} ${u} ${o.x} ${s.y-f} L ${o.x} ${o.y}`),s.x>o.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Ha.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${s.x} ${o.y+h} ${u} ${s.x-f} ${o.y} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${o.x+h} ${s.y} ${d} ${o.x} ${s.y-f} L ${o.x} ${o.y}`),s.x===o.x&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):(s.y<o.y&&(r.type===Ha.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${o.x-h} ${s.y} ${d} ${o.x} ${s.y+f} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${s.x} ${o.y-h} ${u} ${s.x+f} ${o.y} L ${o.x} ${o.y}`),s.y>o.y&&(r.type===Ha.MERGE&&e.id!==r.parents[0]?g=`M ${s.x} ${s.y} L ${o.x-h} ${s.y} ${u} ${o.x} ${s.y-f} L ${o.x} ${o.y}`:g=`M ${s.x} ${s.y} L ${s.x} ${o.y+h} ${d} ${s.x+f} ${o.y} L ${o.x} ${o.y}`),s.y===o.y&&(g=`M ${s.x} ${s.y} L ${o.x} ${o.y}`));if(g===void 0)throw new Error("Line definition not found");t.append("path").attr("d",g).attr("class","arrow arrow"+Ty(p,Sy,a))},"drawArrow"),EGr=k((t,e)=>{const r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(n=>{const i=e.get(n);i.parents&&i.parents.length>0&&i.parents.forEach(a=>{bGr(r,e.get(a),i,e)})})},"drawArrows"),SGr=k((t,e,r,n)=>{const{look:i,theme:a,themeVariables:s}=vt(),{dropShadow:o,THEME_COLOR_LIMIT:l}=s,u=VG.has(a??""),d=tpe.has(a??""),h=t.append("g");e.forEach((f,p)=>{const g=Ty(p,u?l:Sy,d),m=Qu.get(f.name)?.pos;if(m===void 0)throw new Error(`Position not found for branch ${f.name}`);const _=Xi==="TB"||Xi==="BT"?m:u?m+Sne/2+1:m-2,v=h.append("line");v.attr("x1",0),v.attr("y1",_),v.attr("x2",wm),v.attr("y2",_),v.attr("class","branch branch"+g),Xi==="TB"?(v.attr("y1",_F),v.attr("x1",m),v.attr("y2",wm),v.attr("x2",m)):Xi==="BT"&&(v.attr("y1",wm),v.attr("x1",m),v.attr("y2",_F),v.attr("x2",m)),vF.push(_);const y=f.name,b=Jrt(y),E=h.insert("rect"),T=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+g);T.node().appendChild(b);const C=b.getBBox(),x=u?0:4,A=u?16:0,R=u?Sne:0;i==="neo"&&E.attr("data-look","neo"),E.attr("class","branchLabelBkg label"+g).attr("style",i==="neo"?`filter:${u?`url(#${n}-drop-shadow)`:o}`:"").attr("rx",x).attr("ry",x).attr("x",-C.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+10).attr("width",C.width+18+A).attr("height",C.height+4+R),T.attr("transform","translate("+(-C.width-14-(r.rotateCommitLabel===!0?30:0)+A/2)+", "+(_-C.height/2-2)+")"),Xi==="TB"?(E.attr("x",m-C.width/2-10).attr("y",0),T.attr("transform","translate("+(m-C.width/2-5)+", 0)"),u&&(E.attr("transform",`translate(${-A/2-3}, ${-R-10})`),T.attr("transform","translate("+(m-C.width/2-5)+", "+(-R*2+7)+")"))):Xi==="BT"?(E.attr("x",m-C.width/2-10).attr("y",wm),T.attr("transform","translate("+(m-C.width/2-5)+", "+wm+")"),u&&(E.attr("transform",`translate(${-A/2-3}, ${R+10})`),T.attr("transform","translate("+(m-C.width/2-5)+", "+(wm+R*2+4)+")"))):E.attr("transform","translate(-19, "+(_-12-R/2)+")")})},"drawBranches"),TGr=k(function(t,e,r,n,i){return Qu.set(t,{pos:e,index:r}),e+=50+(i?40:0)+(Xi==="TB"||Xi==="BT"?n.width/2:0),e},"setBranchPosition"),CGr=k(function(t,e,r,n){sGr(),Pe.debug("in gitgraph renderer",t+`
`,"id:",e,r);const i=n.db;if(!i.getConfig){Pe.error("getConfig method is not available on db");return}const a=i.getConfig(),s=a.rotateCommitLabel??!1;WI=i.getCommits();const o=i.getBranchesAsObjArray();Xi=i.getDirection();const l=dr(`[id="${e}"]`),{look:u,theme:d,themeVariables:h}=vt(),{useGradient:f,gradientStart:p,gradientStop:g,filterColor:m}=h;if(f){const v=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");v.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),v.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}u==="neo"&&VG.has(d??"")&&l.append("defs").append("filter").attr("id",e+"-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",m);let _=0;o.forEach((v,y)=>{const b=Jrt(v.name),E=l.append("g"),S=E.insert("g").attr("class","branchLabel"),T=S.insert("g").attr("class","label branch-label");T.node()?.appendChild(b);const C=b.getBBox();_=TGr(v.name,_,y,C,s),T.remove(),S.remove(),E.remove()}),HIe(l,WI,!1,a),a.showBranches&&SGr(l,o,a,e),EGr(l,WI),HIe(l,WI,!0,a),ci.insertTitle(l,"gitTitleText",a.titleTopMargin??0,i.getDiagramTitle()),lce(void 0,l,a.diagramPadding,a.useMaxWidth)},"draw"),wGr={draw:CGr},tnt=8,rnt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),xGr=new Set(["redux-color","redux-dark-color"]),AGr=new Set(["neo","neo-dark"]),RGr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),OGr=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),IGr=k(t=>{const{svgId:e}=t;let r="";if(t.useGradient&&e)for(let n=0;n<t.THEME_COLOR_LIMIT;n++)r+=`
      .label${n}  { fill: ${t.mainBkg}; stroke: url(${e}-gradient); stroke-width: ${t.strokeWidth};}
             `;return r},"genGitGraphGradient"),NGr=k(t=>{const e=Ln(),{theme:r,themeVariables:n}=e,{borderColorArray:i}=n,a=rnt.has(r);if(AGr.has(r)){let s="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(o===0)s+=`
        .branch-label${o} { fill: ${t.nodeBorder};}
        .commit${o} { stroke: ${t.nodeBorder};   }
        .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
        .arrow${o} { stroke: ${t.nodeBorder}; }
        .commit-bullets { fill: ${t.nodeBorder}; }
        .commit-cherry-pick${o} { stroke: ${t.nodeBorder}; }
        ${IGr(t)}`;else{const l=o%tnt;s+=`
        .branch-label${o} { fill: ${t["gitBranchLabel"+l]}; }
        .commit${o} { stroke: ${t["git"+l]}; fill: ${t["git"+l]}; }
        .commit-highlight${o} { stroke: ${t["gitInv"+l]}; fill: ${t["gitInv"+l]}; }
        .arrow${o} { stroke: ${t["git"+l]}; }
        `}return s}else if(xGr.has(r)){let s="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(o===0)s+=`
        .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
        .commit${o} { stroke: ${t.nodeBorder}; }
        .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
        .label${o}  { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }
        .arrow${o} { stroke: ${t.nodeBorder}; }
        .commit-bullets { fill: ${t.nodeBorder}; }
        `;else{const l=o%i.length;s+=`
        .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
        .commit${o} { stroke: ${i[l]}; fill: ${i[l]}; }
        .commit-highlight${o} { stroke: ${i[l]}; fill: ${i[l]}; }
        .label${o}  { fill: ${RGr.has(r)?t.mainBkg:i[l]}; stroke: ${i[l]};  stroke-width: ${t.strokeWidth}; }
        .arrow${o} { stroke: ${i[l]}; }
        `}return s}else{let s="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)s+=`
        .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }
        .commit${o} { stroke: ${t.nodeBorder};   }
        .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
        .label${o}  { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}
        .arrow${o} { stroke: ${t.nodeBorder}; }
        .commit-bullets { fill: ${t.nodeBorder}; }
        .commit-cherry-pick${o} { stroke: ${t.nodeBorder}; }
        `;return s}},"genColor"),kGr=k(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(e,r)=>r).map(e=>{const r=e%tnt;return`
        .branch-label${e} { fill: ${t["gitBranchLabel"+r]}; }
        .commit${e} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; }
        .commit-highlight${e} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; }
        .label${e}  { fill: ${t["git"+r]}; }
        .arrow${e} { stroke: ${t["git"+r]}; }
        `}).join(`
`)}`,"normalTheme"),DGr=k(t=>{const e=Ln(),{theme:r}=e,n=OGr.has(r);return`
  .commit-id,
  .commit-msg,
  .branch-label {
    fill: lightgrey;
    color: lightgrey;
    font-family: 'trebuchet ms', verdana, arial, sans-serif;
    font-family: var(--mermaid-font-family);
  }
  
  ${n?NGr(t):kGr(t)}

  .branch {
    stroke-width: ${t.strokeWidth};
    stroke: ${t.commitLineColor??t.lineColor};
    stroke-dasharray:  ${n?"4 2":"2"};
  }
  .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${n?t.nodeBorder:t.commitLabelColor}; ${n?`font-weight:${t.noteFontWeight};`:""}}
  .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${n?"transparent":t.commitLabelBackground}; opacity: ${n?"":.5};  }
  .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
  .tag-label-bkg { fill: ${n?t.mainBkg:t.tagLabelBackground}; stroke: ${n?t.nodeBorder:t.tagLabelBorder}; ${n?`filter:${t.dropShadow}`:""}  }
  .tag-hole { fill: ${t.textColor}; }

  .commit-merge {
    stroke: ${n?t.mainBkg:t.primaryColor};
    fill: ${n?t.mainBkg:t.primaryColor};
  }
  .commit-reverse {
    stroke: ${n?t.mainBkg:t.primaryColor};
    fill: ${n?t.mainBkg:t.primaryColor};
    stroke-width: ${n?t.strokeWidth:3};
  }
  .commit-highlight-outer {
  }
  .commit-highlight-inner {
    stroke: ${n?t.mainBkg:t.primaryColor};
    fill: ${n?t.mainBkg:t.primaryColor};
  }

  .arrow {
    /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
    stroke-width: ${rnt.has(r)?t.strokeWidth:8};
    stroke-linecap: round;
    fill: none
  }
  .gitTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${t.textColor};
  }
`},"getStyles"),MGr=DGr,LGr={parser:iGr,db:Zrt,renderer:wGr,styles:MGr};const PGr=Object.freeze(Object.defineProperty({__proto__:null,diagram:LGr},Symbol.toStringTag,{value:"Module"}));var U6={exports:{}},FGr=U6.exports,YIe;function BGr(){return YIe||(YIe=1,(function(t,e){(function(r,n){t.exports=n()})(FGr,(function(){var r="day";return function(n,i,a){var s=function(u){return u.add(4-u.isoWeekday(),r)},o=i.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),r);var d,h,f,p,g=s(this),m=(d=this.isoWeekYear(),h=this.$u,f=(h?a.utc:a)().year(d).startOf("year"),p=4-f.isoWeekday(),f.isoWeekday()>4&&(p+=7),f.add(p,r));return g.diff(m,"week")+1},o.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var l=o.startOf;o.startOf=function(u,d){var h=this.$utils(),f=!!h.u(d)||d;return h.p(u)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(u,d)}}}))})(U6)),U6.exports}var UGr=BGr();const $Gr=sd(UGr);var $6={exports:{}},GGr=$6.exports,WIe;function zGr(){return WIe||(WIe=1,(function(t,e){(function(r,n){t.exports=n()})(GGr,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},u=function(_){return(_=+_)+(_>68?1900:2e3)},d=function(_){return function(v){this[_]=+v}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var y=v.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b})(_)}],f=function(_){var v=l[_];return v&&(v.indexOf?v:v.s.concat(v.f))},p=function(_,v){var y,b=l.meridiem;if(b){for(var E=1;E<=24;E+=1)if(_.indexOf(b(E,0,v))>-1){y=E>12;break}}else y=_===(v?"pm":"PM");return y},g={A:[o,function(_){this.afternoon=p(_,!1)}],a:[o,function(_){this.afternoon=p(_,!0)}],Q:[i,function(_){this.month=3*(_-1)+1}],S:[i,function(_){this.milliseconds=100*+_}],SS:[a,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[a,d("day")],Do:[o,function(_){var v=l.ordinal,y=_.match(/\d+/);if(this.day=y[0],v)for(var b=1;b<=31;b+=1)v(b).replace(/\[|\]/g,"")===_&&(this.day=b)}],w:[s,d("week")],ww:[a,d("week")],M:[s,d("month")],MM:[a,d("month")],MMM:[o,function(_){var v=f("months"),y=(f("monthsShort")||v.map((function(b){return b.slice(0,3)}))).indexOf(_)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[o,function(_){var v=f("months").indexOf(_)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(_){this.year=u(_)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function m(_){var v,y;v=_,y=l&&l.formats;for(var b=(_=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(R,I,L){var F=L&&L.toUpperCase();return I||y[L]||r[L]||y[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(O,D,M){return D||M.slice(1)}))}))).match(n),E=b.length,S=0;S<E;S+=1){var T=b[S],C=g[T],x=C&&C[0],A=C&&C[1];b[S]=A?{regex:x,parser:A}:T.replace(/^\[|\]$/g,"")}return function(R){for(var I={},L=0,F=0;L<E;L+=1){var O=b[L];if(typeof O=="string")F+=O.length;else{var D=O.regex,M=O.parser,P=R.slice(F),N=D.exec(P)[0];M.call(I,N),R=R.replace(N,"")}}return(function($){var U=$.afternoon;if(U!==void 0){var B=$.hours;U?B<12&&($.hours+=12):B===12&&($.hours=0),delete $.afternoon}})(I),I}}return function(_,v,y){y.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(u=_.parseTwoDigitYear);var b=v.prototype,E=b.parse;b.parse=function(S){var T=S.date,C=S.utc,x=S.args;this.$u=C;var A=x[1];if(typeof A=="string"){var R=x[2]===!0,I=x[3]===!0,L=R||I,F=x[2];I&&(F=x[2]),l=this.$locale(),!R&&F&&(l=y.Ls[F]),this.$d=(function(P,N,$,U){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*P);var B=m(N)(P),V=B.year,z=B.month,G=B.day,Y=B.hours,W=B.minutes,Q=B.seconds,ie=B.milliseconds,Z=B.zone,re=B.week,K=new Date,j=G||(V||z?1:K.getDate()),se=V||K.getFullYear(),le=0;V&&!z||(le=z>0?z-1:K.getMonth());var _e,ye=Y||0,Ue=W||0,Se=Q||0,be=ie||0;return Z?new Date(Date.UTC(se,le,j,ye,Ue,Se,be+60*Z.offset*1e3)):$?new Date(Date.UTC(se,le,j,ye,Ue,Se,be)):(_e=new Date(se,le,j,ye,Ue,Se,be),re&&(_e=U(_e).week(re).toDate()),_e)}catch{return new Date("")}})(T,A,C,y),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),L&&T!=this.format(A)&&(this.$d=new Date("")),l={}}else if(A instanceof Array)for(var O=A.length,D=1;D<=O;D+=1){x[1]=A[D-1];var M=y.apply(this,x);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}D===O&&(this.$d=new Date(""))}else E.call(this,S)}}}))})($6)),$6.exports}var qGr=zGr();const VGr=sd(qGr);var G6={exports:{}},HGr=G6.exports,KIe;function YGr(){return KIe||(KIe=1,(function(t,e){(function(r,n){t.exports=n()})(HGr,(function(){return function(r,n){var i=n.prototype,a=i.format;i.format=function(s){var o=this,l=this.$locale();if(!this.isValid())return a.bind(this)(s);var u=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return l.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return l.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),h==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),h==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return h}}));return a.bind(this)(d)}}}))})(G6)),G6.exports}var WGr=YGr();const KGr=sd(WGr);var z6={exports:{}},jGr=z6.exports,jIe;function XGr(){return jIe||(jIe=1,(function(t,e){(function(r,n){t.exports=n()})(jGr,(function(){var r,n,i=1e3,a=6e4,s=36e5,o=864e5,l=31536e6,u=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,f={years:l,months:u,days:o,hours:s,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},p=function(T){return T instanceof E},g=function(T,C,x){return new E(T,x,C.$l)},m=function(T){return n.p(T)+"s"},_=function(T){return T<0},v=function(T){return _(T)?Math.ceil(T):Math.floor(T)},y=function(T){return Math.abs(T)},b=function(T,C){return T?_(T)?{negative:!0,format:""+y(T)+C}:{negative:!1,format:""+T+C}:{negative:!1,format:""}},E=(function(){function T(x,A,R){var I=this;if(this.$d={},this.$l=R,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),A)return g(x*f[m(A)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach((function(O){I.$d[m(O)]=x[O]})),this.calMilliseconds(),this;if(typeof x=="string"){var L=x.match(d);if(L){var F=L.slice(2).map((function(O){return O!=null?Number(O):0}));return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var C=T.prototype;return C.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce((function(A,R){return A+(x.$d[R]||0)*f[R]}),0)},C.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=v(x/l),x%=l,this.$d.months=v(x/u),x%=u,this.$d.days=v(x/o),x%=o,this.$d.hours=v(x/s),x%=s,this.$d.minutes=v(x/a),x%=a,this.$d.seconds=v(x/i),x%=i,this.$d.milliseconds=x},C.toISOString=function(){var x=b(this.$d.years,"Y"),A=b(this.$d.months,"M"),R=+this.$d.days||0;this.$d.weeks&&(R+=7*this.$d.weeks);var I=b(R,"D"),L=b(this.$d.hours,"H"),F=b(this.$d.minutes,"M"),O=this.$d.seconds||0;this.$d.milliseconds&&(O+=this.$d.milliseconds/1e3,O=Math.round(1e3*O)/1e3);var D=b(O,"S"),M=x.negative||A.negative||I.negative||L.negative||F.negative||D.negative,P=L.format||F.format||D.format?"T":"",N=(M?"-":"")+"P"+x.format+A.format+I.format+P+L.format+F.format+D.format;return N==="P"||N==="-P"?"P0D":N},C.toJSON=function(){return this.toISOString()},C.format=function(x){var A=x||"YYYY-MM-DDTHH:mm:ss",R={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return A.replace(h,(function(I,L){return L||String(R[I])}))},C.as=function(x){return this.$ms/f[m(x)]},C.get=function(x){var A=this.$ms,R=m(x);return R==="milliseconds"?A%=1e3:A=R==="weeks"?v(A/f[R]):this.$d[R],A||0},C.add=function(x,A,R){var I;return I=A?x*f[m(A)]:p(x)?x.$ms:g(x,this).$ms,g(this.$ms+I*(R?-1:1),this)},C.subtract=function(x,A){return this.add(x,A,!0)},C.locale=function(x){var A=this.clone();return A.$l=x,A},C.clone=function(){return g(this.$ms,this)},C.humanize=function(x){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},C.valueOf=function(){return this.asMilliseconds()},C.milliseconds=function(){return this.get("milliseconds")},C.asMilliseconds=function(){return this.as("milliseconds")},C.seconds=function(){return this.get("seconds")},C.asSeconds=function(){return this.as("seconds")},C.minutes=function(){return this.get("minutes")},C.asMinutes=function(){return this.as("minutes")},C.hours=function(){return this.get("hours")},C.asHours=function(){return this.as("hours")},C.days=function(){return this.get("days")},C.asDays=function(){return this.as("days")},C.weeks=function(){return this.get("weeks")},C.asWeeks=function(){return this.as("weeks")},C.months=function(){return this.get("months")},C.asMonths=function(){return this.as("months")},C.years=function(){return this.get("years")},C.asYears=function(){return this.as("years")},T})(),S=function(T,C,x){return T.add(C.years()*x,"y").add(C.months()*x,"M").add(C.days()*x,"d").add(C.hours()*x,"h").add(C.minutes()*x,"m").add(C.seconds()*x,"s").add(C.milliseconds()*x,"ms")};return function(T,C,x){r=x,n=x().$utils(),x.duration=function(I,L){var F=x.locale();return g(I,{$l:F},L)},x.isDuration=p;var A=C.prototype.add,R=C.prototype.subtract;C.prototype.add=function(I,L){return p(I)?S(this,I,1):A.bind(this)(I,L)},C.prototype.subtract=function(I,L){return p(I)?S(this,I,-1):R.bind(this)(I,L)}}}))})(z6)),z6.exports}var QGr=XGr();const ZGr=sd(QGr);var Tne=(function(){var t=k(function(F,O,D,M){for(D=D||{},M=F.length;M--;D[F[M]]=O);return D},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],i=[1,28],a=[1,29],s=[1,30],o=[1,31],l=[1,32],u=[1,33],d=[1,34],h=[1,9],f=[1,10],p=[1,11],g=[1,12],m=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],E=[1,20],S=[1,21],T=[1,22],C=[1,23],x=[1,25],A=[1,35],R={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:k(function(O,D,M,P,N,$,U){var B=$.length-1;switch(N){case 1:return $[B-1];case 2:this.$=[];break;case 3:$[B-1].push($[B]),this.$=$[B-1];break;case 4:case 5:this.$=$[B];break;case 6:case 7:this.$=[];break;case 8:P.setWeekday("monday");break;case 9:P.setWeekday("tuesday");break;case 10:P.setWeekday("wednesday");break;case 11:P.setWeekday("thursday");break;case 12:P.setWeekday("friday");break;case 13:P.setWeekday("saturday");break;case 14:P.setWeekday("sunday");break;case 15:P.setWeekend("friday");break;case 16:P.setWeekend("saturday");break;case 17:P.setDateFormat($[B].substr(11)),this.$=$[B].substr(11);break;case 18:P.enableInclusiveEndDates(),this.$=$[B].substr(18);break;case 19:P.TopAxis(),this.$=$[B].substr(8);break;case 20:P.setAxisFormat($[B].substr(11)),this.$=$[B].substr(11);break;case 21:P.setTickInterval($[B].substr(13)),this.$=$[B].substr(13);break;case 22:P.setExcludes($[B].substr(9)),this.$=$[B].substr(9);break;case 23:P.setIncludes($[B].substr(9)),this.$=$[B].substr(9);break;case 24:P.setTodayMarker($[B].substr(12)),this.$=$[B].substr(12);break;case 27:P.setDiagramTitle($[B].substr(6)),this.$=$[B].substr(6);break;case 28:this.$=$[B].trim(),P.setAccTitle(this.$);break;case 29:case 30:this.$=$[B].trim(),P.setAccDescription(this.$);break;case 31:P.addSection($[B].substr(8)),this.$=$[B].substr(8);break;case 33:P.addTask($[B-1],$[B]),this.$="task";break;case 34:this.$=$[B-1],P.setClickEvent($[B-1],$[B],null);break;case 35:this.$=$[B-2],P.setClickEvent($[B-2],$[B-1],$[B]);break;case 36:this.$=$[B-2],P.setClickEvent($[B-2],$[B-1],null),P.setLink($[B-2],$[B]);break;case 37:this.$=$[B-3],P.setClickEvent($[B-3],$[B-2],$[B-1]),P.setLink($[B-3],$[B]);break;case 38:this.$=$[B-2],P.setClickEvent($[B-2],$[B],null),P.setLink($[B-2],$[B-1]);break;case 39:this.$=$[B-3],P.setClickEvent($[B-3],$[B-1],$[B]),P.setLink($[B-3],$[B-2]);break;case 40:this.$=$[B-1],P.setLink($[B-1],$[B]);break;case 41:case 47:this.$=$[B-1]+" "+$[B];break;case 42:case 43:case 45:this.$=$[B-2]+" "+$[B-1]+" "+$[B];break;case 44:case 46:this.$=$[B-3]+" "+$[B-2]+" "+$[B-1]+" "+$[B];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:i,15:a,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:_,28:v,29:y,30:b,31:E,33:S,35:T,36:C,37:24,38:x,40:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:i,15:a,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:_,28:v,29:y,30:b,31:E,33:S,35:T,36:C,37:24,38:x,40:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:k(function(O,D){if(D.recoverable)this.trace(O);else{var M=new Error(O);throw M.hash=D,M}},"parseError"),parse:k(function(O){var D=this,M=[0],P=[],N=[null],$=[],U=this.table,B="",V=0,z=0,G=2,Y=1,W=$.slice.call(arguments,1),Q=Object.create(this.lexer),ie={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(ie.yy[Z]=this.yy[Z]);Q.setInput(O,ie.yy),ie.yy.lexer=Q,ie.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var re=Q.yylloc;$.push(re);var K=Q.options&&Q.options.ranges;typeof ie.yy.parseError=="function"?this.parseError=ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(je){M.length=M.length-2*je,N.length=N.length-je,$.length=$.length-je}k(j,"popStack");function se(){var je;return je=P.pop()||Q.lex()||Y,typeof je!="number"&&(je instanceof Array&&(P=je,je=P.pop()),je=D.symbols_[je]||je),je}k(se,"lex");for(var le,_e,ye,Ue,Se={},be,ke,Ae,tt;;){if(_e=M[M.length-1],this.defaultActions[_e]?ye=this.defaultActions[_e]:((le===null||typeof le>"u")&&(le=se()),ye=U[_e]&&U[_e][le]),typeof ye>"u"||!ye.length||!ye[0]){var Oe="";tt=[];for(be in U[_e])this.terminals_[be]&&be>G&&tt.push("'"+this.terminals_[be]+"'");Q.showPosition?Oe="Parse error on line "+(V+1)+`:
`+Q.showPosition()+`
Expecting `+tt.join(", ")+", got '"+(this.terminals_[le]||le)+"'":Oe="Parse error on line "+(V+1)+": Unexpected "+(le==Y?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Oe,{text:Q.match,token:this.terminals_[le]||le,line:Q.yylineno,loc:re,expected:tt})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_e+", token: "+le);switch(ye[0]){case 1:M.push(le),N.push(Q.yytext),$.push(Q.yylloc),M.push(ye[1]),le=null,z=Q.yyleng,B=Q.yytext,V=Q.yylineno,re=Q.yylloc;break;case 2:if(ke=this.productions_[ye[1]][1],Se.$=N[N.length-ke],Se._$={first_line:$[$.length-(ke||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(ke||1)].first_column,last_column:$[$.length-1].last_column},K&&(Se._$.range=[$[$.length-(ke||1)].range[0],$[$.length-1].range[1]]),Ue=this.performAction.apply(Se,[B,z,V,ie.yy,ye[1],N,$].concat(W)),typeof Ue<"u")return Ue;ke&&(M=M.slice(0,-1*ke*2),N=N.slice(0,-1*ke),$=$.slice(0,-1*ke)),M.push(this.productions_[ye[1]][0]),N.push(Se.$),$.push(Se._$),Ae=U[M[M.length-2]][M[M.length-1]],M.push(Ae);break;case 3:return!0}}return!0},"parse")},I=(function(){var F={EOF:1,parseError:k(function(D,M){if(this.yy.parser)this.yy.parser.parseError(D,M);else throw new Error(D)},"parseError"),setInput:k(function(O,D){return this.yy=D||this.yy||{},this._input=O,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var O=this._input[0];this.yytext+=O,this.yyleng++,this.offset++,this.match+=O,this.matched+=O;var D=O.match(/(?:\r\n?|\n).*/g);return D?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),O},"input"),unput:k(function(O){var D=O.length,M=O.split(/(?:\r\n?|\n)/g);this._input=O+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),M.length-1&&(this.yylineno-=M.length-1);var N=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:M?(M.length===P.length?this.yylloc.first_column:0)+P[P.length-M.length].length-M[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[N[0],N[0]+this.yyleng-D]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(O){this.unput(this.match.slice(O))},"less"),pastInput:k(function(){var O=this.matched.substr(0,this.matched.length-this.match.length);return(O.length>20?"...":"")+O.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var O=this.match;return O.length<20&&(O+=this._input.substr(0,20-O.length)),(O.substr(0,20)+(O.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var O=this.pastInput(),D=new Array(O.length+1).join("-");return O+this.upcomingInput()+`
`+D+"^"},"showPosition"),test_match:k(function(O,D){var M,P,N;if(this.options.backtrack_lexer&&(N={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(N.yylloc.range=this.yylloc.range.slice(0))),P=O[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+O[0].length},this.yytext+=O[0],this.match+=O[0],this.matches=O,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(O[0].length),this.matched+=O[0],M=this.performAction.call(this,this.yy,this,D,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var $ in N)this[$]=N[$];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var O,D,M,P;this._more||(this.yytext="",this.match="");for(var N=this._currentRules(),$=0;$<N.length;$++)if(M=this._input.match(this.rules[N[$]]),M&&(!D||M[0].length>D[0].length)){if(D=M,P=$,this.options.backtrack_lexer){if(O=this.test_match(M,N[$]),O!==!1)return O;if(this._backtrack){D=!1;continue}else return!1}else if(!this.options.flex)break}return D?(O=this.test_match(D,N[P]),O!==!1?O:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var D=this.next();return D||this.lex()},"lex"),begin:k(function(D){this.conditionStack.push(D)},"begin"),popState:k(function(){var D=this.conditionStack.length-1;return D>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(D){return D=this.conditionStack.length-1-Math.abs(D||0),D>=0?this.conditionStack[D]:"INITIAL"},"topState"),pushState:k(function(D){this.begin(D)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(D,M,P,N){switch(P){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return F})();R.lexer=I;function L(){this.yy={}}return k(L,"Parser"),L.prototype=R,R.Parser=L,new L})();Tne.parser=Tne;var JGr=Tne;wl.extend($Gr);wl.extend(VGr);wl.extend(KGr);var XIe={friday:5,saturday:6},Jp="",rpe="",npe=void 0,ipe="",kD=[],DD=[],ape=new Map,spe=[],yF=[],VA="",ope="",nnt=["active","done","crit","milestone","vert"],lpe=[],NT="",MD=!1,cpe=!1,upe="sunday",bF="saturday",Cne=0,ezr=k(function(){spe=[],yF=[],VA="",lpe=[],q6=0,xne=void 0,V6=void 0,nl=[],Jp="",rpe="",ope="",npe=void 0,ipe="",kD=[],DD=[],MD=!1,cpe=!1,Cne=0,ape=new Map,NT="",ys(),upe="sunday",bF="saturday"},"clear"),tzr=k(function(t){NT=t},"setDiagramId"),rzr=k(function(t){rpe=t},"setAxisFormat"),nzr=k(function(){return rpe},"getAxisFormat"),izr=k(function(t){npe=t},"setTickInterval"),azr=k(function(){return npe},"getTickInterval"),szr=k(function(t){ipe=t},"setTodayMarker"),ozr=k(function(){return ipe},"getTodayMarker"),lzr=k(function(t){Jp=t},"setDateFormat"),czr=k(function(){MD=!0},"enableInclusiveEndDates"),uzr=k(function(){return MD},"endDatesAreInclusive"),dzr=k(function(){cpe=!0},"enableTopAxis"),hzr=k(function(){return cpe},"topAxisEnabled"),fzr=k(function(t){ope=t},"setDisplayMode"),pzr=k(function(){return ope},"getDisplayMode"),gzr=k(function(){return Jp},"getDateFormat"),mzr=k(function(t){kD=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),_zr=k(function(){return kD},"getIncludes"),vzr=k(function(t){DD=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),yzr=k(function(){return DD},"getExcludes"),bzr=k(function(){return ape},"getLinks"),Ezr=k(function(t){VA=t,spe.push(t)},"addSection"),Szr=k(function(){return spe},"getSections"),Tzr=k(function(){let t=QIe();const e=10;let r=0;for(;!t&&r<e;)t=QIe(),r++;return yF=nl,yF},"getTasks"),int=k(function(t,e,r,n){const i=t.format(e.trim()),a=t.format("YYYY-MM-DD");return n.includes(i)||n.includes(a)?!1:r.includes("weekends")&&(t.isoWeekday()===XIe[bF]||t.isoWeekday()===XIe[bF]+1)||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(i)||r.includes(a)},"isInvalidDate"),Czr=k(function(t){upe=t},"setWeekday"),wzr=k(function(){return upe},"getWeekday"),xzr=k(function(t){bF=t},"setWeekend"),ant=k(function(t,e,r,n){if(!r.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=wl(t.startTime):i=wl(t.startTime,e,!0),i=i.add(1,"d");let a;t.endTime instanceof Date?a=wl(t.endTime):a=wl(t.endTime,e,!0);const[s,o]=Azr(i,a,e,r,n);t.endTime=s.toDate(),t.renderEndTime=o},"checkTaskDates"),Azr=k(function(t,e,r,n,i){let a=!1,s=null;const o=e.add(1e4,"d");for(;t<=e;){if(a||(s=e.toDate()),a=int(t,r,n,i),a&&(e=e.add(1,"d"),e>o))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,s]},"fixTaskDates"),wne=k(function(t,e,r){if(r=r.trim(),k(o=>{const l=o.trim();return l==="x"||l==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const a=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(a!==null){let o=null;for(const u of a.groups.ids.split(" ")){let d=WE(u);d!==void 0&&(!o||d.endTime>o.endTime)&&(o=d)}if(o)return o.endTime;const l=new Date;return l.setHours(0,0,0,0),l}let s=wl(r,e.trim(),!0);if(s.isValid())return s.toDate();{Pe.debug("Invalid date:"+r),Pe.debug("With date format:"+e.trim());const o=new Date(r);if(o===void 0||isNaN(o.getTime())||o.getFullYear()<-1e4||o.getFullYear()>1e4)throw new Error("Invalid date:"+r);return o}},"getStartDate"),snt=k(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),ont=k(function(t,e,r,n=!1){r=r.trim();const a=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(a!==null){let d=null;for(const f of a.groups.ids.split(" ")){let p=WE(f);p!==void 0&&(!d||p.startTime<d.startTime)&&(d=p)}if(d)return d.startTime;const h=new Date;return h.setHours(0,0,0,0),h}let s=wl(r,e.trim(),!0);if(s.isValid())return n&&(s=s.add(1,"d")),s.toDate();let o=wl(t);const[l,u]=snt(r);if(!Number.isNaN(l)){const d=o.add(l,u);d.isValid()&&(o=d)}return o.toDate()},"getEndDate"),q6=0,uC=k(function(t){return t===void 0?(q6=q6+1,"task"+q6):t},"parseId"),Rzr=k(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),i={};dpe(n,i,nnt);for(let s=0;s<n.length;s++)n[s]=n[s].trim();let a="";switch(n.length){case 1:i.id=uC(),i.startTime=t.endTime,a=n[0];break;case 2:i.id=uC(),i.startTime=wne(void 0,Jp,n[0]),a=n[1];break;case 3:i.id=uC(n[0]),i.startTime=wne(void 0,Jp,n[1]),a=n[2];break}return a&&(i.endTime=ont(i.startTime,Jp,a,MD),i.manualEndTime=wl(a,"YYYY-MM-DD",!0).isValid(),ant(i,Jp,DD,kD)),i},"compileData"),Ozr=k(function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),i={};dpe(n,i,nnt);for(let a=0;a<n.length;a++)n[a]=n[a].trim();switch(n.length){case 1:i.id=uC(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:n[0]};break;case 2:i.id=uC(),i.startTime={type:"getStartDate",startData:n[0]},i.endTime={data:n[1]};break;case 3:i.id=uC(n[0]),i.startTime={type:"getStartDate",startData:n[1]},i.endTime={data:n[2]};break}return i},"parseData"),xne,V6,nl=[],lnt={},Izr=k(function(t,e){const r={section:VA,type:VA,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},n=Ozr(V6,e);r.raw.startTime=n.startTime,r.raw.endTime=n.endTime,r.id=n.id,r.prevTaskId=V6,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,r.order=Cne,Cne++;const i=nl.push(r);V6=r.id,lnt[r.id]=i-1},"addTask"),WE=k(function(t){const e=lnt[t];return nl[e]},"findTaskById"),Nzr=k(function(t,e){const r={section:VA,type:VA,description:t,task:t,classes:[]},n=Rzr(xne,e);r.startTime=n.startTime,r.endTime=n.endTime,r.id=n.id,r.active=n.active,r.done=n.done,r.crit=n.crit,r.milestone=n.milestone,r.vert=n.vert,xne=r,yF.push(r)},"addTaskOrg"),QIe=k(function(){const t=k(function(r){const n=nl[r];let i="";switch(nl[r].raw.startTime.type){case"prevTaskEnd":{const a=WE(n.prevTaskId);n.startTime=a.endTime;break}case"getStartDate":i=wne(void 0,Jp,nl[r].raw.startTime.startData),i&&(nl[r].startTime=i);break}return nl[r].startTime&&(nl[r].endTime=ont(nl[r].startTime,Jp,nl[r].raw.endTime.data,MD),nl[r].endTime&&(nl[r].processed=!0,nl[r].manualEndTime=wl(nl[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),ant(nl[r],Jp,DD,kD))),nl[r].processed},"compileTask");let e=!0;for(const[r,n]of nl.entries())t(r),e=e&&n.processed;return e},"compileTasks"),kzr=k(function(t,e){let r=e;vt().securityLevel!=="loose"&&(r=pE.sanitizeUrl(e)),t.split(",").forEach(function(n){WE(n)!==void 0&&(unt(n,()=>{window.open(r,"_self")}),ape.set(n,r))}),cnt(t,"clickable")},"setLink"),cnt=k(function(t,e){t.split(",").forEach(function(r){let n=WE(r);n!==void 0&&n.classes.push(e)})},"setClass"),Dzr=k(function(t,e,r){if(vt().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<n.length;a++){let s=n[a].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),n[a]=s}}n.length===0&&n.push(t),WE(t)!==void 0&&unt(t,()=>{ci.runFunc(e,...n)})},"setClickFun"),unt=k(function(t,e){lpe.push(function(){const r=NT?`${NT}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=NT?`${NT}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),Mzr=k(function(t,e,r){t.split(",").forEach(function(n){Dzr(n,e,r)}),cnt(t,"clickable")},"setClickEvent"),Lzr=k(function(t){lpe.forEach(function(e){e(t)})},"bindFunctions"),Pzr={getConfig:k(()=>vt().gantt,"getConfig"),clear:ezr,setDateFormat:lzr,getDateFormat:gzr,enableInclusiveEndDates:czr,endDatesAreInclusive:uzr,enableTopAxis:dzr,topAxisEnabled:hzr,setAxisFormat:rzr,getAxisFormat:nzr,setTickInterval:izr,getTickInterval:azr,setTodayMarker:szr,getTodayMarker:ozr,setAccTitle:ms,getAccTitle:Fs,setDiagramTitle:ks,getDiagramTitle:bs,setDiagramId:tzr,setDisplayMode:fzr,getDisplayMode:pzr,setAccDescription:Bs,getAccDescription:Us,addSection:Ezr,getSections:Szr,getTasks:Tzr,addTask:Izr,findTaskById:WE,addTaskOrg:Nzr,setIncludes:mzr,getIncludes:_zr,setExcludes:vzr,getExcludes:yzr,setClickEvent:Mzr,setLink:kzr,getLinks:bzr,bindFunctions:Lzr,parseDuration:snt,isInvalidDate:int,setWeekday:Czr,getWeekday:wzr,setWeekend:xzr};function dpe(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(i){const a="^\\s*"+i+"\\s*$",s=new RegExp(a);t[0].match(s)&&(e[i]=!0,t.shift(1),n=!0)})}k(dpe,"getTaskTags");wl.extend(ZGr);var Fzr=k(function(){Pe.debug("Something is calling, setConf, remove the call")},"setConf"),ZIe={monday:Ik,tuesday:p8e,wednesday:g8e,thursday:Mb,friday:m8e,saturday:_8e,sunday:U5},Bzr=k((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((a,s)=>a.startTime-s.startTime||a.order-s.order),i=0;for(const a of n)for(let s=0;s<r.length;s++)if(a.startTime>=r[s]){r[s]=a.endTime,a.order=s+e,s>i&&(i=s);break}return i},"getMaxIntersections"),sm,jX=1e4,Uzr=k(function(t,e,r,n){const i=vt().gantt;n.db.setDiagramId(e);const a=vt().securityLevel;let s;a==="sandbox"&&(s=dr("#i"+e));const o=dr(a==="sandbox"?s.nodes()[0].contentDocument.body:"body"),l=a==="sandbox"?s.nodes()[0].contentDocument:document,u=l.getElementById(e);sm=u.parentElement.offsetWidth,sm===void 0&&(sm=1200),i.useWidth!==void 0&&(sm=i.useWidth);const d=n.db.getTasks();let h=[];for(const A of d)h.push(A.type);h=x(h);const f={};let p=2*i.topPadding;if(n.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const A={};for(const I of d)A[I.section]===void 0?A[I.section]=[I]:A[I.section].push(I);let R=0;for(const I of Object.keys(A)){const L=Bzr(A[I],R)+1;R+=L,p+=L*(i.barHeight+i.barGap),f[I]=L}}else{p+=d.length*(i.barHeight+i.barGap);for(const A of h)f[A]=d.filter(R=>R.type===A).length}u.setAttribute("viewBox","0 0 "+sm+" "+p);const g=o.select(`[id="${e}"]`),m=yfr().domain([xor(d,function(A){return A.startTime}),wor(d,function(A){return A.endTime})]).rangeRound([0,sm-i.leftPadding-i.rightPadding]);function _(A,R){const I=A.startTime,L=R.startTime;let F=0;return I>L?F=1:I<L&&(F=-1),F}k(_,"taskCompare"),d.sort(_),v(d,sm,p),Xo(g,p,sm,i.useMaxWidth),g.append("text").text(n.db.getDiagramTitle()).attr("x",sm/2).attr("y",i.titleTopMargin).attr("class","titleText");function v(A,R,I){const L=i.barHeight,F=L+i.barGap,O=i.topPadding,D=i.leftPadding,M=gA().domain([0,h.length]).range(["#00B9FA","#F95002"]).interpolate(jcr);b(F,O,D,R,I,A,n.db.getExcludes(),n.db.getIncludes()),S(D,O,R,I),y(A,F,O,D,L,M,R),T(F,O),C(D,O,R,I)}k(v,"makeGantt");function y(A,R,I,L,F,O,D){A.sort((B,V)=>B.vert===V.vert?0:B.vert?1:-1);const P=[...new Set(A.map(B=>B.order))].map(B=>A.find(V=>V.order===B));g.append("g").selectAll("rect").data(P).enter().append("rect").attr("x",0).attr("y",function(B,V){return V=B.order,V*R+I-2}).attr("width",function(){return D-i.rightPadding/2}).attr("height",R).attr("class",function(B){for(const[V,z]of h.entries())if(B.type===z)return"section section"+V%i.numberSectionStyles;return"section section0"}).enter();const N=g.append("g").selectAll("rect").data(A).enter(),$=n.db.getLinks();if(N.append("rect").attr("id",function(B){return e+"-"+B.id}).attr("rx",3).attr("ry",3).attr("x",function(B){return B.milestone?m(B.startTime)+L+.5*(m(B.endTime)-m(B.startTime))-.5*F:m(B.startTime)+L}).attr("y",function(B,V){return V=B.order,B.vert?i.gridLineStartPadding:V*R+I}).attr("width",function(B){return B.milestone?F:B.vert?.08*F:m(B.renderEndTime||B.endTime)-m(B.startTime)}).attr("height",function(B){return B.vert?d.length*(i.barHeight+i.barGap)+i.barHeight*2:F}).attr("transform-origin",function(B,V){return V=B.order,(m(B.startTime)+L+.5*(m(B.endTime)-m(B.startTime))).toString()+"px "+(V*R+I+.5*F).toString()+"px"}).attr("class",function(B){const V="task";let z="";B.classes.length>0&&(z=B.classes.join(" "));let G=0;for(const[W,Q]of h.entries())B.type===Q&&(G=W%i.numberSectionStyles);let Y="";return B.active?B.crit?Y+=" activeCrit":Y=" active":B.done?B.crit?Y=" doneCrit":Y=" done":B.crit&&(Y+=" crit"),Y.length===0&&(Y=" task"),B.milestone&&(Y=" milestone "+Y),B.vert&&(Y=" vert "+Y),Y+=G,Y+=" "+z,V+Y}),N.append("text").attr("id",function(B){return e+"-"+B.id+"-text"}).text(function(B){return B.task}).attr("font-size",i.fontSize).attr("x",function(B){let V=m(B.startTime),z=m(B.renderEndTime||B.endTime);if(B.milestone&&(V+=.5*(m(B.endTime)-m(B.startTime))-.5*F,z=V+F),B.vert)return m(B.startTime)+L;const G=this.getBBox().width;return G>z-V?z+G+1.5*i.leftPadding>D?V+L-5:z+L+5:(z-V)/2+V+L}).attr("y",function(B,V){return B.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:(V=B.order,V*R+i.barHeight/2+(i.fontSize/2-2)+I)}).attr("text-height",F).attr("class",function(B){const V=m(B.startTime);let z=m(B.endTime);B.milestone&&(z=V+F);const G=this.getBBox().width;let Y="";B.classes.length>0&&(Y=B.classes.join(" "));let W=0;for(const[ie,Z]of h.entries())B.type===Z&&(W=ie%i.numberSectionStyles);let Q="";return B.active&&(B.crit?Q="activeCritText"+W:Q="activeText"+W),B.done?B.crit?Q=Q+" doneCritText"+W:Q=Q+" doneText"+W:B.crit&&(Q=Q+" critText"+W),B.milestone&&(Q+=" milestoneText"),B.vert&&(Q+=" vertText"),G>z-V?z+G+1.5*i.leftPadding>D?Y+" taskTextOutsideLeft taskTextOutside"+W+" "+Q:Y+" taskTextOutsideRight taskTextOutside"+W+" "+Q+" width-"+G:Y+" taskText taskText"+W+" "+Q+" width-"+G}),vt().securityLevel==="sandbox"){let B;B=dr("#i"+e);const V=B.nodes()[0].contentDocument;N.filter(function(z){return $.has(z.id)}).each(function(z){var G=V.querySelector("#"+CSS.escape(e+"-"+z.id)),Y=V.querySelector("#"+CSS.escape(e+"-"+z.id+"-text"));const W=G.parentNode;var Q=V.createElement("a");Q.setAttribute("xlink:href",$.get(z.id)),Q.setAttribute("target","_top"),W.appendChild(Q),Q.appendChild(G),Q.appendChild(Y)})}}k(y,"drawRects");function b(A,R,I,L,F,O,D,M){if(D.length===0&&M.length===0)return;let P,N;for(const{startTime:G,endTime:Y}of O)(P===void 0||G<P)&&(P=G),(N===void 0||Y>N)&&(N=Y);if(!P||!N)return;if(wl(N).diff(wl(P),"year")>5){Pe.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const $=n.db.getDateFormat(),U=[];let B=null,V=wl(P);for(;V.valueOf()<=N;)n.db.isInvalidDate(V,$,D,M)?B?B.end=V:B={start:V,end:V}:B&&(U.push(B),B=null),V=V.add(1,"d");g.append("g").selectAll("rect").data(U).enter().append("rect").attr("id",G=>e+"-exclude-"+G.start.format("YYYY-MM-DD")).attr("x",G=>m(G.start.startOf("day"))+I).attr("y",i.gridLineStartPadding).attr("width",G=>m(G.end.endOf("day"))-m(G.start.startOf("day"))).attr("height",F-R-i.gridLineStartPadding).attr("transform-origin",function(G,Y){return(m(G.start)+I+.5*(m(G.end)-m(G.start))).toString()+"px "+(Y*A+.5*F).toString()+"px"}).attr("class","exclude-range")}k(b,"drawExcludeDays");function E(A,R,I,L){if(I<=0||A>R)return 1/0;const F=R-A,O=wl.duration({[L??"day"]:I}).asMilliseconds();return O<=0?1/0:Math.ceil(F/O)}k(E,"getEstimatedTickCount");function S(A,R,I,L){const F=n.db.getDateFormat(),O=n.db.getAxisFormat();let D;O?D=O:F==="D"?D="%d":D=i.axisFormat??"%Y-%m-%d";let M=Lor(m).tickSize(-L+R+i.gridLineStartPadding).tickFormat(F7(D));const N=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||i.tickInterval);if(N!==null){const $=parseInt(N[1],10);if(isNaN($)||$<=0)Pe.warn(`Invalid tick interval value: "${N[1]}". Skipping custom tick interval.`);else{const U=N[2],B=n.db.getWeekday()||i.weekday,V=m.domain(),z=V[0],G=V[1],Y=E(z,G,$,U);if(Y>jX)Pe.warn(`The tick interval "${$}${U}" would generate ${Y} ticks, which exceeds the maximum allowed (${jX}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(U){case"millisecond":M.ticks(mA.every($));break;case"second":M.ticks(P_.every($));break;case"minute":M.ticks(Rk.every($));break;case"hour":M.ticks(Ok.every($));break;case"day":M.ticks(Db.every($));break;case"week":M.ticks(ZIe[B].every($));break;case"month":M.ticks(Nk.every($));break}}}if(g.append("g").attr("class","grid").attr("transform","translate("+A+", "+(L-50)+")").call(M).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||i.topAxis){let $=Mor(m).tickSize(-L+R+i.gridLineStartPadding).tickFormat(F7(D));if(N!==null){const U=parseInt(N[1],10);if(isNaN(U)||U<=0)Pe.warn(`Invalid tick interval value: "${N[1]}". Skipping custom tick interval.`);else{const B=N[2],V=n.db.getWeekday()||i.weekday,z=m.domain(),G=z[0],Y=z[1];if(E(G,Y,U,B)<=jX)switch(B){case"millisecond":$.ticks(mA.every(U));break;case"second":$.ticks(P_.every(U));break;case"minute":$.ticks(Rk.every(U));break;case"hour":$.ticks(Ok.every(U));break;case"day":$.ticks(Db.every(U));break;case"week":$.ticks(ZIe[V].every(U));break;case"month":$.ticks(Nk.every(U));break}}}g.append("g").attr("class","grid").attr("transform","translate("+A+", "+R+")").call($).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}k(S,"makeGrid");function T(A,R){let I=0;const L=Object.keys(f).map(F=>[F,f[F]]);g.append("g").selectAll("text").data(L).enter().append(function(F){const O=F[0].split(Cr.lineBreakRegex),D=-(O.length-1)/2,M=l.createElementNS("http://www.w3.org/2000/svg","text");M.setAttribute("dy",D+"em");for(const[P,N]of O.entries()){const $=l.createElementNS("http://www.w3.org/2000/svg","tspan");$.setAttribute("alignment-baseline","central"),$.setAttribute("x","10"),P>0&&$.setAttribute("dy","1em"),$.textContent=N,M.appendChild($)}return M}).attr("x",10).attr("y",function(F,O){if(O>0)for(let D=0;D<O;D++)return I+=L[O-1][1],F[1]*A/2+I*A+R;else return F[1]*A/2+R}).attr("font-size",i.sectionFontSize).attr("class",function(F){for(const[O,D]of h.entries())if(F[0]===D)return"sectionTitle sectionTitle"+O%i.numberSectionStyles;return"sectionTitle"})}k(T,"vertLabels");function C(A,R,I,L){const F=n.db.getTodayMarker();if(F==="off")return;const O=g.append("g").attr("class","today"),D=new Date,M=O.append("line");M.attr("x1",m(D)+A).attr("x2",m(D)+A).attr("y1",i.titleTopMargin).attr("y2",L-i.titleTopMargin).attr("class","today"),F!==""&&M.attr("style",F.replace(/,/g,";"))}k(C,"drawToday");function x(A){const R={},I=[];for(let L=0,F=A.length;L<F;++L)Object.prototype.hasOwnProperty.call(R,A[L])||(R[A[L]]=!0,I.push(A[L]));return I}k(x,"checkUnique")},"draw"),$zr={setConf:Fzr,draw:Uzr},Gzr=k(t=>`
  .mermaid-main-font {
        font-family: ${t.fontFamily};
  }

  .exclude-range {
    fill: ${t.excludeBkgColor};
  }

  .section {
    stroke: none;
    opacity: 0.2;
  }

  .section0 {
    fill: ${t.sectionBkgColor};
  }

  .section2 {
    fill: ${t.sectionBkgColor2};
  }

  .section1,
  .section3 {
    fill: ${t.altSectionBkgColor};
    opacity: 0.2;
  }

  .sectionTitle0 {
    fill: ${t.titleColor};
  }

  .sectionTitle1 {
    fill: ${t.titleColor};
  }

  .sectionTitle2 {
    fill: ${t.titleColor};
  }

  .sectionTitle3 {
    fill: ${t.titleColor};
  }

  .sectionTitle {
    text-anchor: start;
    font-family: ${t.fontFamily};
  }


  /* Grid and axis */

  .grid .tick {
    stroke: ${t.gridColor};
    opacity: 0.8;
    shape-rendering: crispEdges;
  }

  .grid .tick text {
    font-family: ${t.fontFamily};
    fill: ${t.textColor};
  }

  .grid path {
    stroke-width: 0;
  }


  /* Today line */

  .today {
    fill: none;
    stroke: ${t.todayLineColor};
    stroke-width: 2px;
  }


  /* Task styling */

  /* Default task */

  .task {
    stroke-width: 2;
  }

  .taskText {
    text-anchor: middle;
    font-family: ${t.fontFamily};
  }

  .taskTextOutsideRight {
    fill: ${t.taskTextDarkColor};
    text-anchor: start;
    font-family: ${t.fontFamily};
  }

  .taskTextOutsideLeft {
    fill: ${t.taskTextDarkColor};
    text-anchor: end;
  }


  /* Special case clickable */

  .task.clickable {
    cursor: pointer;
  }

  .taskText.clickable {
    cursor: pointer;
    fill: ${t.taskTextClickableColor} !important;
    font-weight: bold;
  }

  .taskTextOutsideLeft.clickable {
    cursor: pointer;
    fill: ${t.taskTextClickableColor} !important;
    font-weight: bold;
  }

  .taskTextOutsideRight.clickable {
    cursor: pointer;
    fill: ${t.taskTextClickableColor} !important;
    font-weight: bold;
  }


  /* Specific task settings for the sections*/

  .taskText0,
  .taskText1,
  .taskText2,
  .taskText3 {
    fill: ${t.taskTextColor};
  }

  .task0,
  .task1,
  .task2,
  .task3 {
    fill: ${t.taskBkgColor};
    stroke: ${t.taskBorderColor};
  }

  .taskTextOutside0,
  .taskTextOutside2
  {
    fill: ${t.taskTextOutsideColor};
  }

  .taskTextOutside1,
  .taskTextOutside3 {
    fill: ${t.taskTextOutsideColor};
  }


  /* Active task */

  .active0,
  .active1,
  .active2,
  .active3 {
    fill: ${t.activeTaskBkgColor};
    stroke: ${t.activeTaskBorderColor};
  }

  .activeText0,
  .activeText1,
  .activeText2,
  .activeText3 {
    fill: ${t.taskTextDarkColor} !important;
  }


  /* Completed task */

  .done0,
  .done1,
  .done2,
  .done3 {
    stroke: ${t.doneTaskBorderColor};
    fill: ${t.doneTaskBkgColor};
    stroke-width: 2;
  }

  .doneText0,
  .doneText1,
  .doneText2,
  .doneText3 {
    fill: ${t.taskTextDarkColor} !important;
  }

  /* Done task text displayed outside the bar sits against the diagram background,
     not against the done-task bar, so it must use the outside/contrast color. */
  .doneText0.taskTextOutsideLeft,
  .doneText0.taskTextOutsideRight,
  .doneText1.taskTextOutsideLeft,
  .doneText1.taskTextOutsideRight,
  .doneText2.taskTextOutsideLeft,
  .doneText2.taskTextOutsideRight,
  .doneText3.taskTextOutsideLeft,
  .doneText3.taskTextOutsideRight {
    fill: ${t.taskTextOutsideColor} !important;
  }


  /* Tasks on the critical line */

  .crit0,
  .crit1,
  .crit2,
  .crit3 {
    stroke: ${t.critBorderColor};
    fill: ${t.critBkgColor};
    stroke-width: 2;
  }

  .activeCrit0,
  .activeCrit1,
  .activeCrit2,
  .activeCrit3 {
    stroke: ${t.critBorderColor};
    fill: ${t.activeTaskBkgColor};
    stroke-width: 2;
  }

  .doneCrit0,
  .doneCrit1,
  .doneCrit2,
  .doneCrit3 {
    stroke: ${t.critBorderColor};
    fill: ${t.doneTaskBkgColor};
    stroke-width: 2;
    cursor: pointer;
    shape-rendering: crispEdges;
  }

  .milestone {
    transform: rotate(45deg) scale(0.8,0.8);
  }

  .milestoneText {
    font-style: italic;
  }
  .doneCritText0,
  .doneCritText1,
  .doneCritText2,
  .doneCritText3 {
    fill: ${t.taskTextDarkColor} !important;
  }

  /* Done-crit task text outside the bar — same reasoning as doneText above. */
  .doneCritText0.taskTextOutsideLeft,
  .doneCritText0.taskTextOutsideRight,
  .doneCritText1.taskTextOutsideLeft,
  .doneCritText1.taskTextOutsideRight,
  .doneCritText2.taskTextOutsideLeft,
  .doneCritText2.taskTextOutsideRight,
  .doneCritText3.taskTextOutsideLeft,
  .doneCritText3.taskTextOutsideRight {
    fill: ${t.taskTextOutsideColor} !important;
  }

  .vert {
    stroke: ${t.vertLineColor};
  }

  .vertText {
    font-size: 15px;
    text-anchor: middle;
    fill: ${t.vertLineColor} !important;
  }

  .activeCritText0,
  .activeCritText1,
  .activeCritText2,
  .activeCritText3 {
    fill: ${t.taskTextDarkColor} !important;
  }

  .titleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${t.titleColor||t.textColor};
    font-family: ${t.fontFamily};
  }
`,"getStyles"),zzr=Gzr,qzr={parser:JGr,db:Pzr,renderer:$zr,styles:zzr};const Vzr=Object.freeze(Object.defineProperty({__proto__:null,diagram:qzr},Symbol.toStringTag,{value:"Module"}));var Hzr={parse:k(async t=>{const e=await cp("info",t);Pe.debug(e)},"parse")},Yzr={version:"11.15.0"},Wzr=k(()=>Yzr.version,"getVersion"),Kzr={getVersion:Wzr},jzr=k((t,e,r)=>{Pe.debug(`rendering info diagram
`+t);const n=ud(e);Xo(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),Xzr={draw:jzr},Qzr={parser:Hzr,db:Kzr,renderer:Xzr};const Zzr=Object.freeze(Object.defineProperty({__proto__:null,diagram:Qzr},Symbol.toStringTag,{value:"Module"}));var Jzr=Gi.pie,hpe={sections:new Map,showData:!1},EF=hpe.sections,fpe=hpe.showData,eqr=structuredClone(Jzr),tqr=k(()=>structuredClone(eqr),"getConfig"),rqr=k(()=>{EF=new Map,fpe=hpe.showData,ys()},"clear"),nqr=k(({label:t,value:e})=>{if(e<0)throw new Error(`"${t}" has invalid value: ${e}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);EF.has(t)||(EF.set(t,e),Pe.debug(`added new section: ${t}, with value: ${e}`))},"addSection"),iqr=k(()=>EF,"getSections"),aqr=k(t=>{fpe=t},"setShowData"),sqr=k(()=>fpe,"getShowData"),dnt={getConfig:tqr,clear:rqr,setDiagramTitle:ks,getDiagramTitle:bs,setAccTitle:ms,getAccTitle:Fs,setAccDescription:Bs,getAccDescription:Us,addSection:nqr,getSections:iqr,setShowData:aqr,getShowData:sqr},oqr=k((t,e)=>{Lg(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),lqr={parse:k(async t=>{const e=await cp("pie",t);Pe.debug(e),oqr(e,dnt)},"parse")},cqr=k(t=>`
  .pieCircle{
    stroke: ${t.pieStrokeColor};
    stroke-width : ${t.pieStrokeWidth};
    opacity : ${t.pieOpacity};
  }
  .pieOuterCircle{
    stroke: ${t.pieOuterStrokeColor};
    stroke-width: ${t.pieOuterStrokeWidth};
    fill: none;
  }
  .pieTitleText {
    text-anchor: middle;
    font-size: ${t.pieTitleTextSize};
    fill: ${t.pieTitleTextColor};
    font-family: ${t.fontFamily};
  }
  .slice {
    font-family: ${t.fontFamily};
    fill: ${t.pieSectionTextColor};
    font-size:${t.pieSectionTextSize};
    // fill: white;
  }
  .legend text {
    fill: ${t.pieLegendTextColor};
    font-family: ${t.fontFamily};
    font-size: ${t.pieLegendTextSize};
  }
`,"getStyles"),uqr=cqr,dqr=k(t=>{const e=[...t.values()].reduce((i,a)=>i+a,0),r=[...t.entries()].map(([i,a])=>({label:i,value:a})).filter(i=>i.value/e*100>=1);return Mfr().value(i=>i.value).sort(null)(r)},"createPieArcs"),hqr=k((t,e,r,n)=>{Pe.debug(`rendering pie chart
`+t);const i=n.db,a=vt(),s=_o(i.getConfig(),a.pie),o=40,l=18,u=4,d=450,h=d,f=ud(e),p=f.append("g");p.attr("transform","translate("+h/2+","+d/2+")");const{themeVariables:g}=a;let[m]=B0(g.pieOuterStrokeWidth);m??=2;const _=s.textPosition,v=Math.min(h,d)/2-o,y=vA().innerRadius(0).outerRadius(v),b=vA().innerRadius(v*_).outerRadius(v*_);p.append("circle").attr("cx",0).attr("cy",0).attr("r",v+m/2).attr("class","pieOuterCircle");const E=i.getSections(),S=dqr(E),T=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12];let C=0;E.forEach(B=>{C+=B});const x=S.filter(B=>(B.data.value/C*100).toFixed(0)!=="0"),A=ob(T).domain([...E.keys()]);p.selectAll("mySlices").data(x).enter().append("path").attr("d",y).attr("fill",B=>A(B.data.label)).attr("class","pieCircle"),p.selectAll("mySlices").data(x).enter().append("text").text(B=>(B.data.value/C*100).toFixed(0)+"%").attr("transform",B=>"translate("+b.centroid(B)+")").style("text-anchor","middle").attr("class","slice");const R=p.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),I=[...E.entries()].map(([B,V])=>({label:B,value:V})),L=p.selectAll(".legend").data(I).enter().append("g").attr("class","legend").attr("transform",(B,V)=>{const z=l+u,G=z*I.length/2,Y=12*l,W=V*z-G;return"translate("+Y+","+W+")"});L.append("rect").attr("width",l).attr("height",l).style("fill",B=>A(B.label)).style("stroke",B=>A(B.label)),L.append("text").attr("x",l+u).attr("y",l-u).text(B=>i.getShowData()?`${B.label} [${B.value}]`:B.label);const F=Math.max(...L.selectAll("text").nodes().map(B=>B?.getBoundingClientRect().width??0)),O=h+o+l+u+F,D=R.node()?.getBoundingClientRect().width??0,M=h/2-D/2,P=h/2+D/2,N=Math.min(0,M),U=Math.max(O,P)-N;f.attr("viewBox",`${N} 0 ${U} ${d}`),Xo(f,d,U,s.useMaxWidth)},"draw"),fqr={draw:hqr},pqr={parser:lqr,db:dnt,renderer:fqr,styles:uqr};const gqr=Object.freeze(Object.defineProperty({__proto__:null,diagram:pqr},Symbol.toStringTag,{value:"Module"}));var Ane=(function(){var t=k(function(fe,Be,me,Ye){for(me=me||{},Ye=fe.length;Ye--;me[fe[Ye]]=Be);return me},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],h=[1,36],f=[1,38],p=[1,35],g=[1,43],m=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],E=[1,19],S=[1,20],T=[1,21],C=[1,22],x=[1,24],A=[1,25],R=[1,26],I=[1,27],L=[1,28],F=[1,29],O=[1,32],D=[1,33],M=[1,34],P=[1,39],N=[1,40],$=[1,42],U=[1,44],B=[1,63],V=[1,62],z=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],G=[1,66],Y=[1,67],W=[1,68],Q=[1,69],ie=[1,70],Z=[1,71],re=[1,72],K=[1,73],j=[1,74],se=[1,75],le=[1,76],_e=[1,77],ye=[4,5,6,7,8,9,10,11,12,13,14,15,18],Ue=[1,91],Se=[1,92],be=[1,93],ke=[1,100],Ae=[1,94],tt=[1,97],Oe=[1,95],je=[1,96],ct=[1,98],Fe=[1,99],Xe=[1,103],et=[10,55,56,57],Ie=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],we={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:k(function(Be,me,Ye,qe,lt,it,He){var Je=it.length-1;switch(lt){case 23:this.$=it[Je];break;case 24:this.$=it[Je-1]+""+it[Je];break;case 26:this.$=it[Je-1]+it[Je];break;case 27:this.$=[it[Je].trim()];break;case 28:it[Je-2].push(it[Je].trim()),this.$=it[Je-2];break;case 29:this.$=it[Je-4],qe.addClass(it[Je-2],it[Je]);break;case 37:this.$=[];break;case 42:this.$=it[Je].trim(),qe.setDiagramTitle(this.$);break;case 43:this.$=it[Je].trim(),qe.setAccTitle(this.$);break;case 44:case 45:this.$=it[Je].trim(),qe.setAccDescription(this.$);break;case 46:qe.addSection(it[Je].substr(8)),this.$=it[Je].substr(8);break;case 47:qe.addPoint(it[Je-3],"",it[Je-1],it[Je],[]);break;case 48:qe.addPoint(it[Je-4],it[Je-3],it[Je-1],it[Je],[]);break;case 49:qe.addPoint(it[Je-4],"",it[Je-2],it[Je-1],it[Je]);break;case 50:qe.addPoint(it[Je-5],it[Je-4],it[Je-2],it[Je-1],it[Je]);break;case 51:qe.setXAxisLeftText(it[Je-2]),qe.setXAxisRightText(it[Je]);break;case 52:it[Je-1].text+=" ⟶ ",qe.setXAxisLeftText(it[Je-1]);break;case 53:qe.setXAxisLeftText(it[Je]);break;case 54:qe.setYAxisBottomText(it[Je-2]),qe.setYAxisTopText(it[Je]);break;case 55:it[Je-1].text+=" ⟶ ",qe.setYAxisBottomText(it[Je-1]);break;case 56:qe.setYAxisBottomText(it[Je]);break;case 57:qe.setQuadrant1Text(it[Je]);break;case 58:qe.setQuadrant2Text(it[Je]);break;case 59:qe.setQuadrant3Text(it[Je]);break;case 60:qe.setQuadrant4Text(it[Je]);break;case 64:this.$={text:it[Je],type:"text"};break;case 65:this.$={text:it[Je-1].text+""+it[Je],type:it[Je-1].type};break;case 66:this.$={text:it[Je],type:"text"};break;case 67:this.$={text:it[Je],type:"markdown"};break;case 68:this.$=it[Je];break;case 69:this.$=it[Je-1]+""+it[Je];break}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:n,56:i,57:a},{1:[3]},{18:e,26:8,27:2,28:r,55:n,56:i,57:a},{18:e,26:9,27:2,28:r,55:n,56:i,57:a},t(s,[2,33],{29:10}),t(o,[2,61]),t(o,[2,62]),t(o,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:h,10:f,12:p,13:g,14:m,15:_,18:v,25:y,35:b,37:E,39:S,41:T,42:C,48:x,50:A,51:R,52:I,53:L,54:F,60:O,61:D,63:M,64:P,65:N,66:$,67:U}),t(s,[2,34]),{27:46,55:n,56:i,57:a},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:h,10:f,12:p,13:g,14:m,15:_,18:v,25:y,35:b,37:E,39:S,41:T,42:C,48:x,50:A,51:R,52:I,53:L,54:F,60:O,61:D,63:M,64:P,65:N,66:$,67:U}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:h,10:f,12:p,13:g,14:m,15:_,43:52,58:31,60:O,61:D,63:M,64:P,65:N,66:$,67:U},{4:d,5:h,10:f,12:p,13:g,14:m,15:_,43:53,58:31,60:O,61:D,63:M,64:P,65:N,66:$,67:U},{4:d,5:h,10:f,12:p,13:g,14:m,15:_,43:54,58:31,60:O,61:D,63:M,64:P,65:N,66:$,67:U},{4:d,5:h,10:f,12:p,13:g,14:m,15:_,43:55,58:31,60:O,61:D,63:M,64:P,65:N,66:$,67:U},{4:d,5:h,10:f,12:p,13:g,14:m,15:_,43:56,58:31,60:O,61:D,63:M,64:P,65:N,66:$,67:U},{4:d,5:h,10:f,12:p,13:g,14:m,15:_,43:57,58:31,60:O,61:D,63:M,64:P,65:N,66:$,67:U},{4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,44:[1,58],47:[1,59],58:61,59:60,63:M,64:P,65:N,66:$,67:U},t(z,[2,64]),t(z,[2,66]),t(z,[2,67]),t(z,[2,70]),t(z,[2,71]),t(z,[2,72]),t(z,[2,73]),t(z,[2,74]),t(z,[2,75]),t(z,[2,76]),t(z,[2,77]),t(z,[2,78]),t(z,[2,79]),t(z,[2,80]),t(z,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:G,5:Y,6:W,7:Q,8:ie,9:Z,10:re,11:K,12:j,13:se,14:le,15:_e,21:64},t(l,[2,53],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,49:[1,78],63:M,64:P,65:N,66:$,67:U}),t(l,[2,56],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,49:[1,79],63:M,64:P,65:N,66:$,67:U}),t(l,[2,57],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,63:M,64:P,65:N,66:$,67:U}),t(l,[2,58],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,63:M,64:P,65:N,66:$,67:U}),t(l,[2,59],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,63:M,64:P,65:N,66:$,67:U}),t(l,[2,60],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,63:M,64:P,65:N,66:$,67:U}),{45:[1,80]},{44:[1,81]},t(z,[2,65]),t(z,[2,82]),t(z,[2,83]),t(z,[2,84]),{3:83,4:G,5:Y,6:W,7:Q,8:ie,9:Z,10:re,11:K,12:j,13:se,14:le,15:_e,18:[1,82]},t(ye,[2,23]),t(ye,[2,1]),t(ye,[2,2]),t(ye,[2,3]),t(ye,[2,4]),t(ye,[2,5]),t(ye,[2,6]),t(ye,[2,7]),t(ye,[2,8]),t(ye,[2,9]),t(ye,[2,10]),t(ye,[2,11]),t(ye,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:h,10:f,12:p,13:g,14:m,15:_,60:O,61:D,63:M,64:P,65:N,66:$,67:U}),t(l,[2,55],{58:31,43:85,4:d,5:h,10:f,12:p,13:g,14:m,15:_,60:O,61:D,63:M,64:P,65:N,66:$,67:U}),{46:[1,86]},{45:[1,87]},{4:Ue,5:Se,6:be,8:ke,11:Ae,13:tt,16:90,17:Oe,18:je,19:ct,20:Fe,22:89,23:88},t(ye,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,63:M,64:P,65:N,66:$,67:U}),t(l,[2,54],{59:60,58:61,4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:_,18:V,63:M,64:P,65:N,66:$,67:U}),t(l,[2,47],{22:89,16:90,23:101,4:Ue,5:Se,6:be,8:ke,11:Ae,13:tt,17:Oe,18:je,19:ct,20:Fe}),{46:[1,102]},t(l,[2,29],{10:Xe}),t(et,[2,27],{16:104,4:Ue,5:Se,6:be,8:ke,11:Ae,13:tt,17:Oe,18:je,19:ct,20:Fe}),t(Ie,[2,25]),t(Ie,[2,13]),t(Ie,[2,14]),t(Ie,[2,15]),t(Ie,[2,16]),t(Ie,[2,17]),t(Ie,[2,18]),t(Ie,[2,19]),t(Ie,[2,20]),t(Ie,[2,21]),t(Ie,[2,22]),t(l,[2,49],{10:Xe}),t(l,[2,48],{22:89,16:90,23:105,4:Ue,5:Se,6:be,8:ke,11:Ae,13:tt,17:Oe,18:je,19:ct,20:Fe}),{4:Ue,5:Se,6:be,8:ke,11:Ae,13:tt,16:90,17:Oe,18:je,19:ct,20:Fe,22:106},t(Ie,[2,26]),t(l,[2,50],{10:Xe}),t(et,[2,28],{16:104,4:Ue,5:Se,6:be,8:ke,11:Ae,13:tt,17:Oe,18:je,19:ct,20:Fe})],defaultActions:{8:[2,30],9:[2,31]},parseError:k(function(Be,me){if(me.recoverable)this.trace(Be);else{var Ye=new Error(Be);throw Ye.hash=me,Ye}},"parseError"),parse:k(function(Be){var me=this,Ye=[0],qe=[],lt=[null],it=[],He=this.table,Je="",ht=0,rt=0,$e=2,xe=1,pt=it.slice.call(arguments,1),Ve=Object.create(this.lexer),Ut={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Ut.yy[kt]=this.yy[kt]);Ve.setInput(Be,Ut.yy),Ut.yy.lexer=Ve,Ut.yy.parser=this,typeof Ve.yylloc>"u"&&(Ve.yylloc={});var gt=Ve.yylloc;it.push(gt);var Ct=Ve.options&&Ve.options.ranges;typeof Ut.yy.parseError=="function"?this.parseError=Ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(Sr){Ye.length=Ye.length-2*Sr,lt.length=lt.length-Sr,it.length=it.length-Sr}k(mt,"popStack");function qt(){var Sr;return Sr=qe.pop()||Ve.lex()||xe,typeof Sr!="number"&&(Sr instanceof Array&&(qe=Sr,Sr=qe.pop()),Sr=me.symbols_[Sr]||Sr),Sr}k(qt,"lex");for(var De,pr,or,ir,gr={},dn,st,jt,nr;;){if(pr=Ye[Ye.length-1],this.defaultActions[pr]?or=this.defaultActions[pr]:((De===null||typeof De>"u")&&(De=qt()),or=He[pr]&&He[pr][De]),typeof or>"u"||!or.length||!or[0]){var vr="";nr=[];for(dn in He[pr])this.terminals_[dn]&&dn>$e&&nr.push("'"+this.terminals_[dn]+"'");Ve.showPosition?vr="Parse error on line "+(ht+1)+`:
`+Ve.showPosition()+`
Expecting `+nr.join(", ")+", got '"+(this.terminals_[De]||De)+"'":vr="Parse error on line "+(ht+1)+": Unexpected "+(De==xe?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(vr,{text:Ve.match,token:this.terminals_[De]||De,line:Ve.yylineno,loc:gt,expected:nr})}if(or[0]instanceof Array&&or.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pr+", token: "+De);switch(or[0]){case 1:Ye.push(De),lt.push(Ve.yytext),it.push(Ve.yylloc),Ye.push(or[1]),De=null,rt=Ve.yyleng,Je=Ve.yytext,ht=Ve.yylineno,gt=Ve.yylloc;break;case 2:if(st=this.productions_[or[1]][1],gr.$=lt[lt.length-st],gr._$={first_line:it[it.length-(st||1)].first_line,last_line:it[it.length-1].last_line,first_column:it[it.length-(st||1)].first_column,last_column:it[it.length-1].last_column},Ct&&(gr._$.range=[it[it.length-(st||1)].range[0],it[it.length-1].range[1]]),ir=this.performAction.apply(gr,[Je,rt,ht,Ut.yy,or[1],lt,it].concat(pt)),typeof ir<"u")return ir;st&&(Ye=Ye.slice(0,-1*st*2),lt=lt.slice(0,-1*st),it=it.slice(0,-1*st)),Ye.push(this.productions_[or[1]][0]),lt.push(gr.$),it.push(gr._$),jt=He[Ye[Ye.length-2]][Ye[Ye.length-1]],Ye.push(jt);break;case 3:return!0}}return!0},"parse")},ce=(function(){var fe={EOF:1,parseError:k(function(me,Ye){if(this.yy.parser)this.yy.parser.parseError(me,Ye);else throw new Error(me)},"parseError"),setInput:k(function(Be,me){return this.yy=me||this.yy||{},this._input=Be,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var Be=this._input[0];this.yytext+=Be,this.yyleng++,this.offset++,this.match+=Be,this.matched+=Be;var me=Be.match(/(?:\r\n?|\n).*/g);return me?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Be},"input"),unput:k(function(Be){var me=Be.length,Ye=Be.split(/(?:\r\n?|\n)/g);this._input=Be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-me),this.offset-=me;var qe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ye.length-1&&(this.yylineno-=Ye.length-1);var lt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ye?(Ye.length===qe.length?this.yylloc.first_column:0)+qe[qe.length-Ye.length].length-Ye[0].length:this.yylloc.first_column-me},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-me]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(Be){this.unput(this.match.slice(Be))},"less"),pastInput:k(function(){var Be=this.matched.substr(0,this.matched.length-this.match.length);return(Be.length>20?"...":"")+Be.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var Be=this.match;return Be.length<20&&(Be+=this._input.substr(0,20-Be.length)),(Be.substr(0,20)+(Be.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var Be=this.pastInput(),me=new Array(Be.length+1).join("-");return Be+this.upcomingInput()+`
`+me+"^"},"showPosition"),test_match:k(function(Be,me){var Ye,qe,lt;if(this.options.backtrack_lexer&&(lt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(lt.yylloc.range=this.yylloc.range.slice(0))),qe=Be[0].match(/(?:\r\n?|\n).*/g),qe&&(this.yylineno+=qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qe?qe[qe.length-1].length-qe[qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Be[0].length},this.yytext+=Be[0],this.match+=Be[0],this.matches=Be,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Be[0].length),this.matched+=Be[0],Ye=this.performAction.call(this,this.yy,this,me,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ye)return Ye;if(this._backtrack){for(var it in lt)this[it]=lt[it];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Be,me,Ye,qe;this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),it=0;it<lt.length;it++)if(Ye=this._input.match(this.rules[lt[it]]),Ye&&(!me||Ye[0].length>me[0].length)){if(me=Ye,qe=it,this.options.backtrack_lexer){if(Be=this.test_match(Ye,lt[it]),Be!==!1)return Be;if(this._backtrack){me=!1;continue}else return!1}else if(!this.options.flex)break}return me?(Be=this.test_match(me,lt[qe]),Be!==!1?Be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var me=this.next();return me||this.lex()},"lex"),begin:k(function(me){this.conditionStack.push(me)},"begin"),popState:k(function(){var me=this.conditionStack.length-1;return me>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(me){return me=this.conditionStack.length-1-Math.abs(me||0),me>=0?this.conditionStack[me]:"INITIAL"},"topState"),pushState:k(function(me){this.begin(me)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(me,Ye,qe,lt){switch(qe){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return fe})();we.lexer=ce;function Te(){this.yy={}}return k(Te,"Parser"),Te.prototype=we,we.Parser=Te,new Te})();Ane.parser=Ane;var mqr=Ane,zc=SR(),vx,_qr=(vx=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Gi.quadrantChart?.chartWidth||500,chartWidth:Gi.quadrantChart?.chartHeight||500,titlePadding:Gi.quadrantChart?.titlePadding||10,titleFontSize:Gi.quadrantChart?.titleFontSize||20,quadrantPadding:Gi.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Gi.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Gi.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Gi.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Gi.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Gi.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Gi.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Gi.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Gi.quadrantChart?.pointLabelFontSize||12,pointRadius:Gi.quadrantChart?.pointRadius||5,xAxisPosition:Gi.quadrantChart?.xAxisPosition||"top",yAxisPosition:Gi.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:Gi.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:Gi.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:zc.quadrant1Fill,quadrant2Fill:zc.quadrant2Fill,quadrant3Fill:zc.quadrant3Fill,quadrant4Fill:zc.quadrant4Fill,quadrant1TextFill:zc.quadrant1TextFill,quadrant2TextFill:zc.quadrant2TextFill,quadrant3TextFill:zc.quadrant3TextFill,quadrant4TextFill:zc.quadrant4TextFill,quadrantPointFill:zc.quadrantPointFill,quadrantPointTextFill:zc.quadrantPointTextFill,quadrantXAxisTextFill:zc.quadrantXAxisTextFill,quadrantYAxisTextFill:zc.quadrantYAxisTextFill,quadrantTitleFill:zc.quadrantTitleFill,quadrantInternalBorderStrokeFill:zc.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:zc.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,Pe.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){Pe.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){Pe.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,n,i){const a=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,s={top:e==="top"&&r?a:0,bottom:e==="bottom"&&r?a:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,l={left:this.config.yAxisPosition==="left"&&n?o:0,right:this.config.yAxisPosition==="right"&&n?o:0},u=this.config.titleFontSize+this.config.titlePadding*2,d={top:i?u:0},h=this.config.quadrantPadding+l.left,f=this.config.quadrantPadding+s.top+d.top,p=this.config.chartWidth-this.config.quadrantPadding*2-l.left-l.right,g=this.config.chartHeight-this.config.quadrantPadding*2-s.top-s.bottom-d.top,m=p/2,_=g/2;return{xAxisSpace:s,yAxisSpace:l,titleSpace:d,quadrantSpace:{quadrantLeft:h,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:m,quadrantHeight:g,quadrantHalfHeight:_}}}getAxisLabels(e,r,n,i){const{quadrantSpace:a,titleSpace:s}=i,{quadrantHalfHeight:o,quadrantHeight:l,quadrantLeft:u,quadrantHalfWidth:d,quadrantTop:h,quadrantWidth:f}=a,p=!!this.data.xAxisRightText,g=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&r&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(p?d/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+h+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+d+(p?d/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+h+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+f+this.config.quadrantPadding,y:h+l-(g?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+f+this.config.quadrantPadding,y:h+o-(g?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),m}getQuadrants(e){const{quadrantSpace:r}=e,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:s}=r,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s,width:a,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s,width:a,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant4Fill}];for(const l of o)l.text.x=l.x+l.width/2,this.data.points.length===0?(l.text.y=l.y+l.height/2,l.text.horizontalPos="middle"):(l.text.y=l.y+this.config.quadrantTextTopPadding,l.text.horizontalPos="top");return o}getQuadrantPoints(e){const{quadrantSpace:r}=e,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:s}=r,o=gA().domain([0,1]).range([i,s+i]),l=gA().domain([0,1]).range([n+a,a]);return this.data.points.map(d=>{const h=this.classes.get(d.className);return h&&(d={...h,...d}),{x:o(d.x),y:l(d.y),fill:d.color??this.themeConfig.quadrantPointFill,radius:d.radius??this.config.pointRadius,text:{text:d.text,fill:this.themeConfig.quadrantPointTextFill,x:o(d.x),y:l(d.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:d.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:d.strokeWidth??"0px"}})}getBorders(e){const r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:i,quadrantHeight:a,quadrantLeft:s,quadrantHalfWidth:o,quadrantTop:l,quadrantWidth:u}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l,x2:s+u+r,y2:l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+u,y1:l+r,x2:s+u,y2:l+a-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l+a,x2:s+u+r,y2:l+a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+r,x2:s,y2:l+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+o,y1:l+r,x2:s+o,y2:l+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+i,x2:s+u-r,y2:l+i}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,a=this.calculateSpace(i,e,r,n);return{points:this.getQuadrantPoints(a),quadrants:this.getQuadrants(a),axisLabels:this.getAxisLabels(i,e,r,a),borderLines:this.getBorders(a),title:this.getTitle(n)}}},k(vx,"QuadrantBuilder"),vx),yx,fP=(yx=class extends Error{constructor(e,r,n){super(`value for ${e} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}},k(yx,"InvalidStyleError"),yx);function Rne(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}k(Rne,"validateHexCode");function hnt(t){return!/^\d+$/.test(t)}k(hnt,"validateNumber");function fnt(t){return!/^\d+px$/.test(t)}k(fnt,"validateSizeInPixels");var vqr=vt();function zg(t){return ta(t.trim(),vqr)}k(zg,"textSanitizer");var Zl=new _qr;function pnt(t){Zl.setData({quadrant1Text:zg(t.text)})}k(pnt,"setQuadrant1Text");function gnt(t){Zl.setData({quadrant2Text:zg(t.text)})}k(gnt,"setQuadrant2Text");function mnt(t){Zl.setData({quadrant3Text:zg(t.text)})}k(mnt,"setQuadrant3Text");function _nt(t){Zl.setData({quadrant4Text:zg(t.text)})}k(_nt,"setQuadrant4Text");function vnt(t){Zl.setData({xAxisLeftText:zg(t.text)})}k(vnt,"setXAxisLeftText");function ynt(t){Zl.setData({xAxisRightText:zg(t.text)})}k(ynt,"setXAxisRightText");function bnt(t){Zl.setData({yAxisTopText:zg(t.text)})}k(bnt,"setYAxisTopText");function Ent(t){Zl.setData({yAxisBottomText:zg(t.text)})}k(Ent,"setYAxisBottomText");function HG(t){const e={};for(const r of t){const[n,i]=r.trim().split(/\s*:\s*/);if(n==="radius"){if(hnt(i))throw new fP(n,i,"number");e.radius=parseInt(i)}else if(n==="color"){if(Rne(i))throw new fP(n,i,"hex code");e.color=i}else if(n==="stroke-color"){if(Rne(i))throw new fP(n,i,"hex code");e.strokeColor=i}else if(n==="stroke-width"){if(fnt(i))throw new fP(n,i,"number of pixels (eg. 10px)");e.strokeWidth=i}else throw new Error(`style named ${n} is not supported.`)}return e}k(HG,"parseStyles");function Snt(t,e,r,n,i){const a=HG(i);Zl.addPoints([{x:r,y:n,text:zg(t.text),className:e,...a}])}k(Snt,"addPoint");function Tnt(t,e){Zl.addClass(t,HG(e))}k(Tnt,"addClass");function Cnt(t){Zl.setConfig({chartWidth:t})}k(Cnt,"setWidth");function wnt(t){Zl.setConfig({chartHeight:t})}k(wnt,"setHeight");function xnt(){const t=vt(),{themeVariables:e,quadrantChart:r}=t;return r&&Zl.setConfig(r),Zl.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),Zl.setData({titleText:bs()}),Zl.build()}k(xnt,"getQuadrantData");var yqr=k(function(){Zl.clear(),ys()},"clear"),bqr={setWidth:Cnt,setHeight:wnt,setQuadrant1Text:pnt,setQuadrant2Text:gnt,setQuadrant3Text:mnt,setQuadrant4Text:_nt,setXAxisLeftText:vnt,setXAxisRightText:ynt,setYAxisTopText:bnt,setYAxisBottomText:Ent,parseStyles:HG,addPoint:Snt,addClass:Tnt,getQuadrantData:xnt,clear:yqr,setAccTitle:ms,getAccTitle:Fs,setDiagramTitle:ks,getDiagramTitle:bs,getAccDescription:Us,setAccDescription:Bs},Eqr=k((t,e,r,n)=>{function i(x){return x==="top"?"hanging":"middle"}k(i,"getDominantBaseLine");function a(x){return x==="left"?"start":"middle"}k(a,"getTextAnchor");function s(x){return`translate(${x.x}, ${x.y}) rotate(${x.rotation||0})`}k(s,"getTransformation");const o=vt();Pe.debug(`Rendering quadrant chart
`+t);const l=o.securityLevel;let u;l==="sandbox"&&(u=dr("#i"+e));const h=dr(l==="sandbox"?u.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`),f=h.append("g").attr("class","main"),p=o.quadrantChart?.chartWidth??500,g=o.quadrantChart?.chartHeight??500;Xo(h,g,p,o.quadrantChart?.useMaxWidth??!0),h.attr("viewBox","0 0 "+p+" "+g),n.db.setHeight(g),n.db.setWidth(p);const m=n.db.getQuadrantData(),_=f.append("g").attr("class","quadrants"),v=f.append("g").attr("class","border"),y=f.append("g").attr("class","data-points"),b=f.append("g").attr("class","labels"),E=f.append("g").attr("class","title");m.title&&E.append("text").attr("x",0).attr("y",0).attr("fill",m.title.fill).attr("font-size",m.title.fontSize).attr("dominant-baseline",i(m.title.horizontalPos)).attr("text-anchor",a(m.title.verticalPos)).attr("transform",s(m.title)).text(m.title.text),m.borderLines&&v.selectAll("line").data(m.borderLines).enter().append("line").attr("x1",x=>x.x1).attr("y1",x=>x.y1).attr("x2",x=>x.x2).attr("y2",x=>x.y2).style("stroke",x=>x.strokeFill).style("stroke-width",x=>x.strokeWidth);const S=_.selectAll("g.quadrant").data(m.quadrants).enter().append("g").attr("class","quadrant");S.append("rect").attr("x",x=>x.x).attr("y",x=>x.y).attr("width",x=>x.width).attr("height",x=>x.height).attr("fill",x=>x.fill),S.append("text").attr("x",0).attr("y",0).attr("fill",x=>x.text.fill).attr("font-size",x=>x.text.fontSize).attr("dominant-baseline",x=>i(x.text.horizontalPos)).attr("text-anchor",x=>a(x.text.verticalPos)).attr("transform",x=>s(x.text)).text(x=>x.text.text),b.selectAll("g.label").data(m.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(x=>x.text).attr("fill",x=>x.fill).attr("font-size",x=>x.fontSize).attr("dominant-baseline",x=>i(x.horizontalPos)).attr("text-anchor",x=>a(x.verticalPos)).attr("transform",x=>s(x));const C=y.selectAll("g.data-point").data(m.points).enter().append("g").attr("class","data-point");C.append("circle").attr("cx",x=>x.x).attr("cy",x=>x.y).attr("r",x=>x.radius).attr("fill",x=>x.fill).attr("stroke",x=>x.strokeColor).attr("stroke-width",x=>x.strokeWidth),C.append("text").attr("x",0).attr("y",0).text(x=>x.text.text).attr("fill",x=>x.text.fill).attr("font-size",x=>x.text.fontSize).attr("dominant-baseline",x=>i(x.text.horizontalPos)).attr("text-anchor",x=>a(x.text.verticalPos)).attr("transform",x=>s(x.text))},"draw"),Sqr={draw:Eqr},Tqr={parser:mqr,db:bqr,renderer:Sqr,styles:k(()=>"","styles")};const Cqr=Object.freeze(Object.defineProperty({__proto__:null,diagram:Tqr},Symbol.toStringTag,{value:"Module"}));var One=(function(){var t=k(function(D,M,P,N){for(P=P||{},N=D.length;N--;P[D[N]]=M);return P},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],i=[1,5],a=[1,6],s=[1,7],o=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],u=[1,26],d=[1,28],h=[1,29],f=[1,30],p=[1,31],g=[1,32],m=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],E=[1,43],S=[1,42],T=[1,47],C=[1,50],x=[1,10,12,14,16,18,19,21,23,34,35,36],A=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],I=[1,64],L={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:k(function(M,P,N,$,U,B,V){var z=B.length-1;switch(U){case 5:$.setOrientation(B[z]);break;case 9:$.setDiagramTitle(B[z].text.trim());break;case 12:$.setLineData({text:"",type:"text"},B[z]);break;case 13:$.setLineData(B[z-1],B[z]);break;case 14:$.setBarData({text:"",type:"text"},B[z]);break;case 15:$.setBarData(B[z-1],B[z]);break;case 16:this.$=B[z].trim(),$.setAccTitle(this.$);break;case 17:case 18:this.$=B[z].trim(),$.setAccDescription(this.$);break;case 19:this.$=B[z-1];break;case 20:this.$=[Number(B[z-2]),...B[z]];break;case 21:this.$=[Number(B[z])];break;case 22:$.setXAxisTitle(B[z]);break;case 23:$.setXAxisTitle(B[z-1]);break;case 24:$.setXAxisTitle({type:"text",text:""});break;case 25:$.setXAxisBand(B[z]);break;case 26:$.setXAxisRangeData(Number(B[z-2]),Number(B[z]));break;case 27:this.$=B[z-1];break;case 28:this.$=[B[z-2],...B[z]];break;case 29:this.$=[B[z]];break;case 30:$.setYAxisTitle(B[z]);break;case 31:$.setYAxisTitle(B[z-1]);break;case 32:$.setYAxisTitle({type:"text",text:""});break;case 33:$.setYAxisRangeData(Number(B[z-2]),Number(B[z]));break;case 37:this.$={text:B[z],type:"text"};break;case 38:this.$={text:B[z],type:"text"};break;case 39:this.$={text:B[z],type:"markdown"};break;case 40:this.$=B[z];break;case 41:this.$=B[z-1]+""+B[z];break}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:n,34:i,35:a,36:s}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:n,34:i,35:a,36:s}),t(e,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:i,35:a,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(o,[2,34]),t(o,[2,35]),t(o,[2,36]),{1:[2,1]},t(e,r,{4:2,7:4,3:21,5:n,34:i,35:a,36:s}),{1:[2,3]},t(o,[2,5]),t(e,[2,7],{4:22,34:i,35:a,36:s}),{11:23,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b},{11:39,13:38,24:E,27:S,29:40,30:41,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b},{11:45,15:44,27:T,33:46,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b},{11:49,17:48,24:C,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b},{11:52,17:51,24:C,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b},{20:[1,53]},{22:[1,54]},t(x,[2,18]),{1:[2,2]},t(x,[2,8]),t(x,[2,9]),t(A,[2,37],{40:55,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b}),t(A,[2,38]),t(A,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(x,[2,10]),t(x,[2,22],{30:41,29:56,24:E,27:S}),t(x,[2,24]),t(x,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b},t(x,[2,11]),t(x,[2,30],{33:60,27:T}),t(x,[2,32]),{31:[1,61]},t(x,[2,12]),{17:62,24:C},{25:63,27:I},t(x,[2,14]),{17:65,24:C},t(x,[2,16]),t(x,[2,17]),t(R,[2,41]),t(x,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(x,[2,31]),{27:[1,69]},t(x,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(x,[2,15]),t(x,[2,26]),t(x,[2,27]),{11:59,32:72,37:24,38:l,39:u,40:27,41:d,42:h,43:f,44:p,45:g,46:m,47:_,48:v,49:y,50:b},t(x,[2,33]),t(x,[2,19]),{25:73,27:I},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:k(function(M,P){if(P.recoverable)this.trace(M);else{var N=new Error(M);throw N.hash=P,N}},"parseError"),parse:k(function(M){var P=this,N=[0],$=[],U=[null],B=[],V=this.table,z="",G=0,Y=0,W=2,Q=1,ie=B.slice.call(arguments,1),Z=Object.create(this.lexer),re={yy:{}};for(var K in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K)&&(re.yy[K]=this.yy[K]);Z.setInput(M,re.yy),re.yy.lexer=Z,re.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var j=Z.yylloc;B.push(j);var se=Z.options&&Z.options.ranges;typeof re.yy.parseError=="function"?this.parseError=re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function le(Fe){N.length=N.length-2*Fe,U.length=U.length-Fe,B.length=B.length-Fe}k(le,"popStack");function _e(){var Fe;return Fe=$.pop()||Z.lex()||Q,typeof Fe!="number"&&(Fe instanceof Array&&($=Fe,Fe=$.pop()),Fe=P.symbols_[Fe]||Fe),Fe}k(_e,"lex");for(var ye,Ue,Se,be,ke={},Ae,tt,Oe,je;;){if(Ue=N[N.length-1],this.defaultActions[Ue]?Se=this.defaultActions[Ue]:((ye===null||typeof ye>"u")&&(ye=_e()),Se=V[Ue]&&V[Ue][ye]),typeof Se>"u"||!Se.length||!Se[0]){var ct="";je=[];for(Ae in V[Ue])this.terminals_[Ae]&&Ae>W&&je.push("'"+this.terminals_[Ae]+"'");Z.showPosition?ct="Parse error on line "+(G+1)+`:
`+Z.showPosition()+`
Expecting `+je.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'":ct="Parse error on line "+(G+1)+": Unexpected "+(ye==Q?"end of input":"'"+(this.terminals_[ye]||ye)+"'"),this.parseError(ct,{text:Z.match,token:this.terminals_[ye]||ye,line:Z.yylineno,loc:j,expected:je})}if(Se[0]instanceof Array&&Se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ue+", token: "+ye);switch(Se[0]){case 1:N.push(ye),U.push(Z.yytext),B.push(Z.yylloc),N.push(Se[1]),ye=null,Y=Z.yyleng,z=Z.yytext,G=Z.yylineno,j=Z.yylloc;break;case 2:if(tt=this.productions_[Se[1]][1],ke.$=U[U.length-tt],ke._$={first_line:B[B.length-(tt||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(tt||1)].first_column,last_column:B[B.length-1].last_column},se&&(ke._$.range=[B[B.length-(tt||1)].range[0],B[B.length-1].range[1]]),be=this.performAction.apply(ke,[z,Y,G,re.yy,Se[1],U,B].concat(ie)),typeof be<"u")return be;tt&&(N=N.slice(0,-1*tt*2),U=U.slice(0,-1*tt),B=B.slice(0,-1*tt)),N.push(this.productions_[Se[1]][0]),U.push(ke.$),B.push(ke._$),Oe=V[N[N.length-2]][N[N.length-1]],N.push(Oe);break;case 3:return!0}}return!0},"parse")},F=(function(){var D={EOF:1,parseError:k(function(P,N){if(this.yy.parser)this.yy.parser.parseError(P,N);else throw new Error(P)},"parseError"),setInput:k(function(M,P){return this.yy=P||this.yy||{},this._input=M,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var M=this._input[0];this.yytext+=M,this.yyleng++,this.offset++,this.match+=M,this.matched+=M;var P=M.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),M},"input"),unput:k(function(M){var P=M.length,N=M.split(/(?:\r\n?|\n)/g);this._input=M+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var $=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===$.length?this.yylloc.first_column:0)+$[$.length-N.length].length-N[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(M){this.unput(this.match.slice(M))},"less"),pastInput:k(function(){var M=this.matched.substr(0,this.matched.length-this.match.length);return(M.length>20?"...":"")+M.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var M=this.match;return M.length<20&&(M+=this._input.substr(0,20-M.length)),(M.substr(0,20)+(M.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var M=this.pastInput(),P=new Array(M.length+1).join("-");return M+this.upcomingInput()+`
`+P+"^"},"showPosition"),test_match:k(function(M,P){var N,$,U;if(this.options.backtrack_lexer&&(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(U.yylloc.range=this.yylloc.range.slice(0))),$=M[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+M[0].length},this.yytext+=M[0],this.match+=M[0],this.matches=M,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(M[0].length),this.matched+=M[0],N=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var B in U)this[B]=U[B];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var M,P,N,$;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),B=0;B<U.length;B++)if(N=this._input.match(this.rules[U[B]]),N&&(!P||N[0].length>P[0].length)){if(P=N,$=B,this.options.backtrack_lexer){if(M=this.test_match(N,U[B]),M!==!1)return M;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(M=this.test_match(P,U[$]),M!==!1?M:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var P=this.next();return P||this.lex()},"lex"),begin:k(function(P){this.conditionStack.push(P)},"begin"),popState:k(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:k(function(P){this.begin(P)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(P,N,$,U){switch($){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\)                                    \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+                  \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return D})();L.lexer=F;function O(){this.yy={}}return k(O,"Parser"),O.prototype=L,L.Parser=O,new O})();One.parser=One;var wqr=One;function Ine(t){return t.type==="bar"}k(Ine,"isBarPlot");function ppe(t){return t.type==="band"}k(ppe,"isBandAxisData");function dC(t){return t.type==="linear"}k(dC,"isLinearAxisData");var bx,Ant=(bx=class{constructor(e){this.parentGroup=e}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((a,s)=>Math.max(s.length,a),0)*r,height:r};const n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const a of e){const s=wUe(i,1,a),o=s?s.width:a.length*r,l=s?s.height:r;n.width=Math.max(n.width,o),n.height=Math.max(n.height,l)}return i.remove(),n}},k(bx,"TextDimensionCalculatorWithFont"),bx),JIe=.7,eNe=.2,Ex,Rnt=(Ex=class{constructor(e,r,n,i){this.axisConfig=e,this.title=r,this.textDimensionCalculator=n,this.axisThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(e){this.range=e,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){const e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){JIe*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(JIe*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let r=e.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=eNe*e.width;this.outerPadding=Math.min(n.width/2,i);const a=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-r}calculateSpaceIfDrawnVertical(e){let r=e.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=eNe*e.height;this.outerPadding=Math.min(n.height/2,i);const a=n.width+this.axisConfig.labelPadding*2;a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width-r,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${r},${this.getScaleValue(n)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(n)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForBottomAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r} L ${this.getScaleValue(n)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForTopAxis(){const e=[];if(this.showAxisLine){const r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(n)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},k(Ex,"BaseAxis"),Ex),Sx,xqr=(Sx=class extends Rnt{constructor(e,r,n,i,a){super(e,i,a,r),this.categories=n,this.scale=cee().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=cee().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Pe.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},k(Sx,"BandAxis"),Sx),Tx,Aqr=(Tx=class extends Rnt{constructor(e,r,n,i,a){super(e,i,a,r),this.domain=n,this.scale=gA().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const e=[...this.domain];this.axisPosition==="left"&&e.reverse(),this.scale=gA().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},k(Tx,"LinearAxis"),Tx);function Nne(t,e,r,n){const i=new Ant(n);return ppe(t)?new xqr(e,r,t.categories,t.title,i):new Aqr(e,r,[t.min,t.max],t.title,i)}k(Nne,"getAxis");var Cx,Rqr=(Cx=class{constructor(e,r,n,i){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=n,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){const r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(r.width,e.width),i=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const e=[];return this.showChartTitle&&e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}},k(Cx,"ChartTitle"),Cx);function Ont(t,e,r,n){const i=new Ant(n);return new Rqr(i,t,e,r)}k(Ont,"getChartTitleComponent");var wx,Oqr=(wx=class{constructor(e,r,n,i,a){this.plotData=e,this.xAxis=r,this.yAxis=n,this.orientation=i,this.plotIndex=a}getDrawableElement(){const e=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]);let r;return this.orientation==="horizontal"?r=Dk().y(n=>n[0]).x(n=>n[1])(e):r=Dk().x(n=>n[0]).y(n=>n[1])(e),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},k(wx,"LinePlot"),wx),xx,Iqr=(xx=class{constructor(e,r,n,i,a,s){this.barData=e,this.boundingRect=r,this.xAxis=n,this.yAxis=i,this.orientation=a,this.plotIndex=s}getDrawableElement(){const e=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),i=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:this.boundingRect.x,y:a[0]-i,height:n,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:a[0]-i,y:a[1],width:n,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},k(xx,"BarPlot"),xx),Ax,Nqr=(Ax=class{constructor(e,r,n){this.chartConfig=e,this.chartData=r,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(e,r){this.xAxis=e,this.yAxis=r}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const e=[];for(const[r,n]of this.chartData.plots.entries())switch(n.type){case"line":{const i=new Oqr(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break;case"bar":{const i=new Iqr(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break}return e}},k(Ax,"BasePlot"),Ax);function Int(t,e,r){return new Nqr(t,e,r)}k(Int,"getPlotComponent");var Rx,kqr=(Rx=class{constructor(e,r,n,i){this.chartConfig=e,this.chartData=r,this.componentStore={title:Ont(e,r,n,i),plot:Int(e,r,n),xAxis:Nne(r.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},i),yAxis:Nne(r.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},i)}}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:a,height:s});e-=o.width,r-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=o.height,r-=o.height,this.componentStore.xAxis.setAxisPosition("bottom"),o=this.componentStore.xAxis.calculateSpace({width:e,height:r}),r-=o.height,this.componentStore.yAxis.setAxisPosition("left"),o=this.componentStore.yAxis.calculateSpace({width:e,height:r}),n=o.width,e-=o.width,e>0&&(a+=e,e=0),r>0&&(s+=r,r=0),this.componentStore.plot.calculateSpace({width:a,height:s}),this.componentStore.plot.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:i+s}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(l=>Ine(l))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=0,s=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:s,height:o});e-=l.width,r-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),n=l.height,r-=l.height,this.componentStore.xAxis.setAxisPosition("left"),l=this.componentStore.xAxis.calculateSpace({width:e,height:r}),e-=l.width,i=l.width,this.componentStore.yAxis.setAxisPosition("top"),l=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=l.height,a=n+l.height,e>0&&(s+=e,e=0),r>0&&(o+=r,r=0),this.componentStore.plot.calculateSpace({width:s,height:o}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(u=>Ine(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const r of Object.values(this.componentStore))e.push(...r.getDrawableElements());return e}},k(Rx,"Orchestrator"),Rx),Ox,Dqr=(Ox=class{static build(e,r,n,i){return new kqr(e,r,n,i).getDrawableElement()}},k(Ox,"XYChartBuilder"),Ox),w3=0,Nnt,x3=_pe(),A3=mpe(),Na=vpe(),kne=A3.plotColorPalette.split(",").map(t=>t.trim()),YG=!1,gpe=!1;function mpe(){const t=SR(),e=Ln();return _o(t.xyChart,e.themeVariables.xyChart)}k(mpe,"getChartDefaultThemeConfig");function _pe(){const t=Ln();return _o(Gi.xyChart,t.xyChart)}k(_pe,"getChartDefaultConfig");function vpe(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}k(vpe,"getChartDefaultData");function WG(t){const e=Ln();return ta(t.trim(),e)}k(WG,"textSanitizer");function knt(t){Nnt=t}k(knt,"setTmpSVGG");function Dnt(t){t==="horizontal"?x3.chartOrientation="horizontal":x3.chartOrientation="vertical"}k(Dnt,"setOrientation");function Mnt(t){Na.xAxis.title=WG(t.text)}k(Mnt,"setXAxisTitle");function ype(t,e){Na.xAxis={type:"linear",title:Na.xAxis.title,min:t,max:e},YG=!0}k(ype,"setXAxisRangeData");function Lnt(t){Na.xAxis={type:"band",title:Na.xAxis.title,categories:t.map(e=>WG(e.text))},YG=!0}k(Lnt,"setXAxisBand");function Pnt(t){Na.yAxis.title=WG(t.text)}k(Pnt,"setYAxisTitle");function Fnt(t,e){Na.yAxis={type:"linear",title:Na.yAxis.title,min:t,max:e},gpe=!0}k(Fnt,"setYAxisRangeData");function Bnt(t){const e=Math.min(...t),r=Math.max(...t),n=dC(Na.yAxis)?Na.yAxis.min:1/0,i=dC(Na.yAxis)?Na.yAxis.max:-1/0;Na.yAxis={type:"linear",title:Na.yAxis.title,min:Math.min(n,e),max:Math.max(i,r)}}k(Bnt,"setYAxisRangeFromPlotData");function bpe(t){let e=[];if(t.length===0)return e;if(!YG){const r=dC(Na.xAxis)?Na.xAxis.min:1/0,n=dC(Na.xAxis)?Na.xAxis.max:-1/0;ype(Math.min(r,1),Math.max(n,t.length))}if(gpe||Bnt(t),ppe(Na.xAxis)&&(e=Na.xAxis.categories.map((r,n)=>[r,t[n]])),dC(Na.xAxis)){const r=Na.xAxis.min,n=Na.xAxis.max,i=(n-r)/(t.length-1),a=[];for(let s=r;s<=n;s+=i)a.push(`${s}`);e=a.map((s,o)=>[s,t[o]])}return e}k(bpe,"transformDataWithoutCategory");function Epe(t){return kne[t===0?0:t%kne.length]}k(Epe,"getPlotColorFromPalette");function Unt(t,e){const r=bpe(e);Na.plots.push({type:"line",strokeFill:Epe(w3),strokeWidth:2,data:r}),w3++}k(Unt,"setLineData");function $nt(t,e){const r=bpe(e);Na.plots.push({type:"bar",fill:Epe(w3),data:r}),w3++}k($nt,"setBarData");function Gnt(){if(Na.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Na.title=bs(),Dqr.build(x3,Na,A3,Nnt)}k(Gnt,"getDrawableElem");function znt(){return A3}k(znt,"getChartThemeConfig");function qnt(){return x3}k(qnt,"getChartConfig");function Vnt(){return Na}k(Vnt,"getXYChartData");var Mqr=k(function(){ys(),w3=0,x3=_pe(),Na=vpe(),A3=mpe(),kne=A3.plotColorPalette.split(",").map(t=>t.trim()),YG=!1,gpe=!1},"clear"),Lqr={getDrawableElem:Gnt,clear:Mqr,setAccTitle:ms,getAccTitle:Fs,setDiagramTitle:ks,getDiagramTitle:bs,getAccDescription:Us,setAccDescription:Bs,setOrientation:Dnt,setXAxisTitle:Mnt,setXAxisRangeData:ype,setXAxisBand:Lnt,setYAxisTitle:Pnt,setYAxisRangeData:Fnt,setLineData:Unt,setBarData:$nt,setTmpSVGG:knt,getChartThemeConfig:znt,getChartConfig:qnt,getXYChartData:Vnt},Pqr=k((t,e,r,n)=>{const i=n.db,a=i.getChartThemeConfig(),s=i.getChartConfig(),o=i.getXYChartData().plots[0].data.map(v=>v[1]);function l(v){return v==="top"?"text-before-edge":"middle"}k(l,"getDominantBaseLine");function u(v){return v==="left"?"start":v==="right"?"end":"middle"}k(u,"getTextAnchor");function d(v){return`translate(${v.x}, ${v.y}) rotate(${v.rotation||0})`}k(d,"getTextTransformation"),Pe.debug(`Rendering xychart chart
`+t);const h=ud(e),f=h.append("g").attr("class","main"),p=f.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");Xo(h,s.height,s.width,!0),h.attr("viewBox",`0 0 ${s.width} ${s.height}`),p.attr("fill",a.backgroundColor),i.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));const g=i.getDrawableElem(),m={};function _(v){let y=f,b="";for(const[E]of v.entries()){let S=f;E>0&&m[b]&&(S=m[b]),b+=v[E],y=m[b],y||(y=m[b]=S.append("g").attr("class",v[E]))}return y}k(_,"getGroup");for(const v of g){if(v.data.length===0)continue;const y=_(v.groupTexts);switch(v.type){case"rect":if(y.selectAll("rect").data(v.data).enter().append("rect").attr("x",b=>b.x).attr("y",b=>b.y).attr("width",b=>b.width).attr("height",b=>b.height).attr("fill",b=>b.fill).attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth),s.showDataLabel){const b=s.showDataLabelOutsideBar;if(s.chartOrientation==="horizontal"){let E=function(I,L){const{data:F,label:O}=I;return L*O.length*S<=F.width-T};k(E,"fitsHorizontally");const S=.7,T=10,C=v.data.map((I,L)=>({data:I,label:o[L].toString()})).filter(I=>I.data.width>0&&I.data.height>0),x=C.map(I=>{const{data:L}=I;let F=L.height*.7;for(;!E(I,F)&&F>0;)F-=1;return F}),A=Math.floor(Math.min(...x)),R=k(I=>b?I.data.x+I.data.width+T:I.data.x+I.data.width-T,"determineLabelXPosition");y.selectAll("text").data(C).enter().append("text").attr("x",R).attr("y",I=>I.data.y+I.data.height/2).attr("text-anchor",b?"start":"end").attr("dominant-baseline","middle").attr("fill",a.dataLabelColor).attr("font-size",`${A}px`).text(I=>I.label)}else{let E=function(R,I,L){const{data:F,label:O}=R,M=I*O.length*.7,P=F.x+F.width/2,N=P-M/2,$=P+M/2,U=N>=F.x&&$<=F.x+F.width,B=F.y+L+I<=F.y+F.height;return U&&B};k(E,"fitsInBar");const S=10,T=v.data.map((R,I)=>({data:R,label:o[I].toString()})).filter(R=>R.data.width>0&&R.data.height>0),C=T.map(R=>{const{data:I,label:L}=R;let F=I.width/(L.length*.7);for(;!E(R,F,S)&&F>0;)F-=1;return F}),x=Math.floor(Math.min(...C)),A=k(R=>b?R.data.y-S:R.data.y+S,"determineLabelYPosition");y.selectAll("text").data(T).enter().append("text").attr("x",R=>R.data.x+R.data.width/2).attr("y",A).attr("text-anchor","middle").attr("dominant-baseline",b?"auto":"hanging").attr("fill",a.dataLabelColor).attr("font-size",`${x}px`).text(R=>R.label)}}break;case"text":y.selectAll("text").data(v.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",b=>b.fill).attr("font-size",b=>b.fontSize).attr("dominant-baseline",b=>l(b.verticalPos)).attr("text-anchor",b=>u(b.horizontalPos)).attr("transform",b=>d(b)).text(b=>b.text);break;case"path":y.selectAll("path").data(v.data).enter().append("path").attr("d",b=>b.path).attr("fill",b=>b.fill?b.fill:"none").attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break}}},"draw"),Fqr={draw:Pqr},Bqr={parser:wqr,db:Lqr,renderer:Fqr};const Uqr=Object.freeze(Object.defineProperty({__proto__:null,diagram:Bqr},Symbol.toStringTag,{value:"Module"}));var Dne=(function(){var t=k(function(Ie,we,ce,Te){for(ce=ce||{},Te=Ie.length;Te--;ce[Ie[Te]]=we);return ce},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],o=[2,7],l=[1,26],u=[1,27],d=[1,28],h=[1,29],f=[1,33],p=[1,34],g=[1,35],m=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],E=[1,32],S=[1,30],T=[1,39],C=[1,40],x=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],A=[1,61],R=[89,90],I=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],L=[27,29],F=[1,70],O=[1,71],D=[1,72],M=[1,73],P=[1,74],N=[1,75],$=[1,76],U=[1,83],B=[1,80],V=[1,84],z=[1,85],G=[1,86],Y=[1,87],W=[1,88],Q=[1,89],ie=[1,90],Z=[1,91],re=[1,92],K=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],j=[63,64],se=[1,101],le=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],_e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ye=[1,110],Ue=[1,106],Se=[1,107],be=[1,108],ke=[1,109],Ae=[1,111],tt=[1,116],Oe=[1,117],je=[1,114],ct=[1,115],Fe={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:k(function(we,ce,Te,fe,Be,me,Ye){var qe=me.length-1;switch(Be){case 4:this.$=me[qe].trim(),fe.setAccTitle(this.$);break;case 5:case 6:this.$=me[qe].trim(),fe.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:fe.setDirection("TB");break;case 18:fe.setDirection("BT");break;case 19:fe.setDirection("RL");break;case 20:fe.setDirection("LR");break;case 21:fe.addRequirement(me[qe-3],me[qe-4]);break;case 22:fe.addRequirement(me[qe-5],me[qe-6]),fe.setClass([me[qe-5]],me[qe-3]);break;case 23:fe.setNewReqId(me[qe-2]);break;case 24:fe.setNewReqText(me[qe-2]);break;case 25:fe.setNewReqRisk(me[qe-2]);break;case 26:fe.setNewReqVerifyMethod(me[qe-2]);break;case 29:this.$=fe.RequirementType.REQUIREMENT;break;case 30:this.$=fe.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=fe.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=fe.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=fe.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=fe.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=fe.RiskLevel.LOW_RISK;break;case 36:this.$=fe.RiskLevel.MED_RISK;break;case 37:this.$=fe.RiskLevel.HIGH_RISK;break;case 38:this.$=fe.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=fe.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=fe.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=fe.VerifyType.VERIFY_TEST;break;case 42:fe.addElement(me[qe-3]);break;case 43:fe.addElement(me[qe-5]),fe.setClass([me[qe-5]],me[qe-3]);break;case 44:fe.setNewElementType(me[qe-2]);break;case 45:fe.setNewElementDocRef(me[qe-2]);break;case 48:fe.addRelationship(me[qe-2],me[qe],me[qe-4]);break;case 49:fe.addRelationship(me[qe-2],me[qe-4],me[qe]);break;case 50:this.$=fe.Relationships.CONTAINS;break;case 51:this.$=fe.Relationships.COPIES;break;case 52:this.$=fe.Relationships.DERIVES;break;case 53:this.$=fe.Relationships.SATISFIES;break;case 54:this.$=fe.Relationships.VERIFIES;break;case 55:this.$=fe.Relationships.REFINES;break;case 56:this.$=fe.Relationships.TRACES;break;case 57:this.$=me[qe-2],fe.defineClass(me[qe-1],me[qe]);break;case 58:fe.setClass(me[qe-1],me[qe]);break;case 59:fe.setClass([me[qe-2]],me[qe]);break;case 60:case 62:this.$=[me[qe]];break;case 61:case 63:this.$=me[qe-2].concat([me[qe]]);break;case 64:this.$=me[qe-2],fe.setCssStyle(me[qe-1],me[qe]);break;case 65:this.$=[me[qe]];break;case 66:me[qe-2].push(me[qe]),this.$=me[qe-2];break;case 68:this.$=me[qe-1]+me[qe];break}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:n,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:n,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(a,[2,6]),{3:12,4:2,6:e,9:r,11:n,13:i},{1:[2,2]},{4:17,5:s,7:13,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},t(a,[2,4]),t(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:43,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:44,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:45,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:46,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:47,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:48,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:49,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{4:17,5:s,7:50,8:o,9:r,11:n,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:h,25:23,33:25,41:f,42:p,43:g,44:m,45:_,46:v,54:y,72:b,74:E,77:S,89:T,90:C},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(x,[2,17]),t(x,[2,18]),t(x,[2,19]),t(x,[2,20]),{30:60,33:62,75:A,89:T,90:C},{30:63,33:62,75:A,89:T,90:C},{30:64,33:62,75:A,89:T,90:C},t(R,[2,29]),t(R,[2,30]),t(R,[2,31]),t(R,[2,32]),t(R,[2,33]),t(R,[2,34]),t(I,[2,81]),t(I,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t(L,[2,79]),t(L,[2,80]),{27:[1,67],29:[1,68]},t(L,[2,85]),t(L,[2,86]),{62:69,65:F,66:O,67:D,68:M,69:P,70:N,71:$},{62:77,65:F,66:O,67:D,68:M,69:P,70:N,71:$},{30:78,33:62,75:A,89:T,90:C},{73:79,75:U,76:B,78:81,79:82,80:V,81:z,82:G,83:Y,84:W,85:Q,86:ie,87:Z,88:re},t(K,[2,60]),t(K,[2,62]),{73:93,75:U,76:B,78:81,79:82,80:V,81:z,82:G,83:Y,84:W,85:Q,86:ie,87:Z,88:re},{30:94,33:62,75:A,76:B,89:T,90:C},{5:[1,95]},{30:96,33:62,75:A,89:T,90:C},{5:[1,97]},{30:98,33:62,75:A,89:T,90:C},{63:[1,99]},t(j,[2,50]),t(j,[2,51]),t(j,[2,52]),t(j,[2,53]),t(j,[2,54]),t(j,[2,55]),t(j,[2,56]),{64:[1,100]},t(x,[2,59],{76:B}),t(x,[2,64],{76:se}),{33:103,75:[1,102],89:T,90:C},t(le,[2,65],{79:104,75:U,80:V,81:z,82:G,83:Y,84:W,85:Q,86:ie,87:Z,88:re}),t(_e,[2,67]),t(_e,[2,69]),t(_e,[2,70]),t(_e,[2,71]),t(_e,[2,72]),t(_e,[2,73]),t(_e,[2,74]),t(_e,[2,75]),t(_e,[2,76]),t(_e,[2,77]),t(_e,[2,78]),t(x,[2,57],{76:se}),t(x,[2,58],{76:B}),{5:ye,28:105,31:Ue,34:Se,36:be,38:ke,40:Ae},{27:[1,112],76:B},{5:tt,40:Oe,56:113,57:je,59:ct},{27:[1,118],76:B},{33:119,89:T,90:C},{33:120,89:T,90:C},{75:U,78:121,79:82,80:V,81:z,82:G,83:Y,84:W,85:Q,86:ie,87:Z,88:re},t(K,[2,61]),t(K,[2,63]),t(_e,[2,68]),t(x,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:ye,28:126,31:Ue,34:Se,36:be,38:ke,40:Ae},t(x,[2,28]),{5:[1,127]},t(x,[2,42]),{32:[1,128]},{32:[1,129]},{5:tt,40:Oe,56:130,57:je,59:ct},t(x,[2,47]),{5:[1,131]},t(x,[2,48]),t(x,[2,49]),t(le,[2,66],{79:104,75:U,80:V,81:z,82:G,83:Y,84:W,85:Q,86:ie,87:Z,88:re}),{33:132,89:T,90:C},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(x,[2,27]),{5:ye,28:145,31:Ue,34:Se,36:be,38:ke,40:Ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(x,[2,46]),{5:tt,40:Oe,56:152,57:je,59:ct},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(x,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(x,[2,43]),{5:ye,28:159,31:Ue,34:Se,36:be,38:ke,40:Ae},{5:ye,28:160,31:Ue,34:Se,36:be,38:ke,40:Ae},{5:ye,28:161,31:Ue,34:Se,36:be,38:ke,40:Ae},{5:ye,28:162,31:Ue,34:Se,36:be,38:ke,40:Ae},{5:tt,40:Oe,56:163,57:je,59:ct},{5:tt,40:Oe,56:164,57:je,59:ct},t(x,[2,23]),t(x,[2,24]),t(x,[2,25]),t(x,[2,26]),t(x,[2,44]),t(x,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:k(function(we,ce){if(ce.recoverable)this.trace(we);else{var Te=new Error(we);throw Te.hash=ce,Te}},"parseError"),parse:k(function(we){var ce=this,Te=[0],fe=[],Be=[null],me=[],Ye=this.table,qe="",lt=0,it=0,He=2,Je=1,ht=me.slice.call(arguments,1),rt=Object.create(this.lexer),$e={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&($e.yy[xe]=this.yy[xe]);rt.setInput(we,$e.yy),$e.yy.lexer=rt,$e.yy.parser=this,typeof rt.yylloc>"u"&&(rt.yylloc={});var pt=rt.yylloc;me.push(pt);var Ve=rt.options&&rt.options.ranges;typeof $e.yy.parseError=="function"?this.parseError=$e.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ut(st){Te.length=Te.length-2*st,Be.length=Be.length-st,me.length=me.length-st}k(Ut,"popStack");function kt(){var st;return st=fe.pop()||rt.lex()||Je,typeof st!="number"&&(st instanceof Array&&(fe=st,st=fe.pop()),st=ce.symbols_[st]||st),st}k(kt,"lex");for(var gt,Ct,mt,qt,De={},pr,or,ir,gr;;){if(Ct=Te[Te.length-1],this.defaultActions[Ct]?mt=this.defaultActions[Ct]:((gt===null||typeof gt>"u")&&(gt=kt()),mt=Ye[Ct]&&Ye[Ct][gt]),typeof mt>"u"||!mt.length||!mt[0]){var dn="";gr=[];for(pr in Ye[Ct])this.terminals_[pr]&&pr>He&&gr.push("'"+this.terminals_[pr]+"'");rt.showPosition?dn="Parse error on line "+(lt+1)+`:
`+rt.showPosition()+`
Expecting `+gr.join(", ")+", got '"+(this.terminals_[gt]||gt)+"'":dn="Parse error on line "+(lt+1)+": Unexpected "+(gt==Je?"end of input":"'"+(this.terminals_[gt]||gt)+"'"),this.parseError(dn,{text:rt.match,token:this.terminals_[gt]||gt,line:rt.yylineno,loc:pt,expected:gr})}if(mt[0]instanceof Array&&mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+gt);switch(mt[0]){case 1:Te.push(gt),Be.push(rt.yytext),me.push(rt.yylloc),Te.push(mt[1]),gt=null,it=rt.yyleng,qe=rt.yytext,lt=rt.yylineno,pt=rt.yylloc;break;case 2:if(or=this.productions_[mt[1]][1],De.$=Be[Be.length-or],De._$={first_line:me[me.length-(or||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(or||1)].first_column,last_column:me[me.length-1].last_column},Ve&&(De._$.range=[me[me.length-(or||1)].range[0],me[me.length-1].range[1]]),qt=this.performAction.apply(De,[qe,it,lt,$e.yy,mt[1],Be,me].concat(ht)),typeof qt<"u")return qt;or&&(Te=Te.slice(0,-1*or*2),Be=Be.slice(0,-1*or),me=me.slice(0,-1*or)),Te.push(this.productions_[mt[1]][0]),Be.push(De.$),me.push(De._$),ir=Ye[Te[Te.length-2]][Te[Te.length-1]],Te.push(ir);break;case 3:return!0}}return!0},"parse")},Xe=(function(){var Ie={EOF:1,parseError:k(function(ce,Te){if(this.yy.parser)this.yy.parser.parseError(ce,Te);else throw new Error(ce)},"parseError"),setInput:k(function(we,ce){return this.yy=ce||this.yy||{},this._input=we,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var we=this._input[0];this.yytext+=we,this.yyleng++,this.offset++,this.match+=we,this.matched+=we;var ce=we.match(/(?:\r\n?|\n).*/g);return ce?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),we},"input"),unput:k(function(we){var ce=we.length,Te=we.split(/(?:\r\n?|\n)/g);this._input=we+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ce),this.offset-=ce;var fe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Te.length-1&&(this.yylineno-=Te.length-1);var Be=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Te?(Te.length===fe.length?this.yylloc.first_column:0)+fe[fe.length-Te.length].length-Te[0].length:this.yylloc.first_column-ce},this.options.ranges&&(this.yylloc.range=[Be[0],Be[0]+this.yyleng-ce]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(we){this.unput(this.match.slice(we))},"less"),pastInput:k(function(){var we=this.matched.substr(0,this.matched.length-this.match.length);return(we.length>20?"...":"")+we.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var we=this.match;return we.length<20&&(we+=this._input.substr(0,20-we.length)),(we.substr(0,20)+(we.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var we=this.pastInput(),ce=new Array(we.length+1).join("-");return we+this.upcomingInput()+`
`+ce+"^"},"showPosition"),test_match:k(function(we,ce){var Te,fe,Be;if(this.options.backtrack_lexer&&(Be={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Be.yylloc.range=this.yylloc.range.slice(0))),fe=we[0].match(/(?:\r\n?|\n).*/g),fe&&(this.yylineno+=fe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:fe?fe[fe.length-1].length-fe[fe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+we[0].length},this.yytext+=we[0],this.match+=we[0],this.matches=we,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(we[0].length),this.matched+=we[0],Te=this.performAction.call(this,this.yy,this,ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Te)return Te;if(this._backtrack){for(var me in Be)this[me]=Be[me];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var we,ce,Te,fe;this._more||(this.yytext="",this.match="");for(var Be=this._currentRules(),me=0;me<Be.length;me++)if(Te=this._input.match(this.rules[Be[me]]),Te&&(!ce||Te[0].length>ce[0].length)){if(ce=Te,fe=me,this.options.backtrack_lexer){if(we=this.test_match(Te,Be[me]),we!==!1)return we;if(this._backtrack){ce=!1;continue}else return!1}else if(!this.options.flex)break}return ce?(we=this.test_match(ce,Be[fe]),we!==!1?we:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var ce=this.next();return ce||this.lex()},"lex"),begin:k(function(ce){this.conditionStack.push(ce)},"begin"),popState:k(function(){var ce=this.conditionStack.length-1;return ce>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(ce){return ce=this.conditionStack.length-1-Math.abs(ce||0),ce>=0?this.conditionStack[ce]:"INITIAL"},"topState"),pushState:k(function(ce){this.begin(ce)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(ce,Te,fe,Be){switch(fe){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return Te.yytext=Te.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return Ie})();Fe.lexer=Xe;function et(){this.yy={}}return k(et,"Parser"),et.prototype=Fe,Fe.Parser=et,new et})();Dne.parser=Dne;var $qr=Dne,Ix,Gqr=(Ix=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=ms,this.getAccTitle=Fs,this.setAccDescription=Bs,this.getAccDescription=Us,this.setDiagramTitle=ks,this.getDiagramTitle=bs,this.getConfig=k(()=>vt().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,r){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),Pe.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,r,n){this.relations.push({type:e,src:r,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,ys()}setCssStyle(e,r){for(const n of e){const i=this.requirements.get(n)??this.elements.get(n);if(!r||!i)return;for(const a of r)a.includes(",")?i.cssStyles.push(...a.split(",")):i.cssStyles.push(a)}}setClass(e,r){for(const n of e){const i=this.requirements.get(n)??this.elements.get(n);if(i)for(const a of r){i.classes.push(a);const s=this.classes.get(a)?.styles;s&&i.cssStyles.push(...s)}}}defineClass(e,r){for(const n of e){let i=this.classes.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.classes.set(n,i)),r&&r.forEach(function(a){if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)}),this.requirements.forEach(a=>{a.classes.includes(n)&&a.cssStyles.push(...r.flatMap(s=>s.split(",")))}),this.elements.forEach(a=>{a.classes.includes(n)&&a.cssStyles.push(...r.flatMap(s=>s.split(",")))})}}getClasses(){return this.classes}getData(){const e=vt(),r=[],n=[];for(const i of this.requirements.values()){const a=i;a.id=i.name,a.cssStyles=i.cssStyles,a.cssClasses=i.classes.join(" "),a.shape="requirementBox",a.look=e.look,a.colorIndex=r.length,r.push(a)}for(const i of this.elements.values()){const a=i;a.shape="requirementBox",a.look=e.look,a.id=i.name,a.cssStyles=i.cssStyles,a.cssClasses=i.classes.join(" "),a.colorIndex=r.length,r.push(a)}for(const i of this.relations){let a=0;const s=i.type===this.Relationships.CONTAINS,o={id:`${i.src}-${i.dst}-${a}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`&lt;&lt;${i.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",s?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:s?"normal":"dashed",arrowTypeStart:s?"requirement_contains":"",arrowTypeEnd:s?"":"requirement_arrow",look:e.look,labelType:"markdown"};n.push(o),a++}return{nodes:r,edges:n,other:{},config:e,direction:this.getDirection()}}},k(Ix,"RequirementDB"),Ix),zqr=k(t=>{const e=Ln(),{themeVariables:r,look:n}=e,{bkgColorArray:i,borderColorArray:a}=r;if(!a?.length)return"";let s="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)s+=`

    [data-look="${n}"][data-color-id="color-${o}"].node path {
    stroke: ${a[o]};
    fill: ${i?.length?i[o]:""};
    }

    [data-look="${n}"][data-color-id="color-${o}"].node  rect {
    stroke: ${a[o]};
    fill: ${i?.length?i[o]:""};
     }
    `;return s},"genColor"),qqr=k(t=>{const e=Ln(),{look:r,themeVariables:n}=e,{requirementEdgeLabelBackground:i}=n;return`
  ${zqr(t)}
  marker {
    fill: ${t.relationColor};
    stroke: ${t.relationColor};
  }

  marker.cross {
    stroke: ${t.lineColor};
  }

  svg {
    font-family: ${t.fontFamily};
    font-size: ${t.fontSize};
  }

  .reqBox {
    fill: ${t.requirementBackground};
    fill-opacity: 1.0;
    stroke: ${t.requirementBorderColor};
    stroke-width: ${t.requirementBorderSize};
  }
  
  .reqTitle, .reqLabel{
    fill:  ${t.requirementTextColor};
  }
  .reqLabelBox {
    fill: ${t.relationLabelBackground};
    fill-opacity: 1.0;
  }

  .req-title-line {
    stroke: ${t.requirementBorderColor};
    stroke-width: ${t.requirementBorderSize};
  }
  .relationshipLine {
    stroke: ${t.relationColor};
    stroke-width: ${r==="neo"?t.strokeWidth:"1px"};
  }
  .relationshipLabel {
    fill: ${t.relationLabelColor};
  }
    .edgeLabel {
    background-color: ${t.edgeLabelBackground};
  }
  .edgeLabel .label rect {
    fill: ${t.edgeLabelBackground};
  }
  .edgeLabel .label text {
    fill: ${t.relationLabelColor};
  }
  .divider {
    stroke: ${t.nodeBorder};
    stroke-width: 1;
  }
  .label {
    font-family: ${t.fontFamily};
    color: ${t.nodeTextColor||t.textColor};
  }
  .label text,span {
    fill: ${t.nodeTextColor||t.textColor};
    color: ${t.nodeTextColor||t.textColor};
  }
  .labelBkg {
    background-color: ${i??t.edgeLabelBackground};
  }

`},"getStyles"),Vqr=qqr,Hnt={};SU(Hnt,{draw:()=>Hqr});var Hqr=k(async function(t,e,r,n){Pe.info("REF0:"),Pe.info("Drawing requirement diagram (unified)",e);const{securityLevel:i,state:a,layout:s,look:o}=vt(),l=n.db.getData(),u=UR(e,i);l.type=n.type,l.layoutAlgorithm=Y5(s),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=o==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],l.diagramId=e,await RR(l,u);const d=8;ci.insertTitle(u,"requirementDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),CE(u,d,"requirementDiagram",a?.useMaxWidth??!0)},"draw"),Yqr={parser:$qr,get db(){return new Gqr},renderer:Hnt,styles:Vqr};const Wqr=Object.freeze(Object.defineProperty({__proto__:null,diagram:Yqr},Symbol.toStringTag,{value:"Module"}));var Mne=(function(){var t=k(function(it,He,Je,ht){for(Je=Je||{},ht=it.length;ht--;Je[it[ht]]=He);return Je},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],o=[1,12],l=[1,14],u=[1,15],d=[1,17],h=[1,18],f=[1,19],p=[1,25],g=[1,26],m=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],E=[1,32],S=[1,33],T=[1,34],C=[1,35],x=[1,36],A=[1,37],R=[1,38],I=[1,39],L=[1,40],F=[1,42],O=[1,43],D=[1,44],M=[1,45],P=[1,46],N=[1,47],$=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],U=[1,74],B=[1,80],V=[1,81],z=[1,82],G=[1,83],Y=[1,84],W=[1,85],Q=[1,86],ie=[1,87],Z=[1,88],re=[1,89],K=[1,90],j=[1,91],se=[1,92],le=[1,93],_e=[1,94],ye=[1,95],Ue=[1,96],Se=[1,97],be=[1,98],ke=[1,99],Ae=[1,100],tt=[1,101],Oe=[1,102],je=[1,103],ct=[1,104],Fe=[1,105],Xe=[2,78],et=[4,5,17,51,53,54],Ie=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Te=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],fe=[5,52],Be=[70,71,72,73],me=[1,151],Ye={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:k(function(He,Je,ht,rt,$e,xe,pt){var Ve=xe.length-1;switch($e){case 3:return rt.apply(xe[Ve]),xe[Ve];case 4:case 10:this.$=[];break;case 5:case 11:xe[Ve-1].push(xe[Ve]),this.$=xe[Ve-1];break;case 6:case 7:case 12:case 13:this.$=xe[Ve];break;case 8:case 9:case 14:this.$=[];break;case 16:xe[Ve].type="createParticipant",this.$=xe[Ve];break;case 17:xe[Ve-1].unshift({type:"boxStart",boxData:rt.parseBoxData(xe[Ve-2])}),xe[Ve-1].push({type:"boxEnd",boxText:xe[Ve-2]}),this.$=xe[Ve-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(xe[Ve-2]),sequenceIndexStep:Number(xe[Ve-1]),sequenceVisible:!0,signalType:rt.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(xe[Ve-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:rt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:rt.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:rt.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:rt.LINETYPE.ACTIVE_START,actor:xe[Ve-1].actor};break;case 24:this.$={type:"activeEnd",signalType:rt.LINETYPE.ACTIVE_END,actor:xe[Ve-1].actor};break;case 30:rt.setDiagramTitle(xe[Ve].substring(6)),this.$=xe[Ve].substring(6);break;case 31:rt.setDiagramTitle(xe[Ve].substring(7)),this.$=xe[Ve].substring(7);break;case 32:this.$=xe[Ve].trim(),rt.setAccTitle(this.$);break;case 33:case 34:this.$=xe[Ve].trim(),rt.setAccDescription(this.$);break;case 35:xe[Ve-1].unshift({type:"loopStart",loopText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.LOOP_START}),xe[Ve-1].push({type:"loopEnd",loopText:xe[Ve-2],signalType:rt.LINETYPE.LOOP_END}),this.$=xe[Ve-1];break;case 36:xe[Ve-1].unshift({type:"rectStart",color:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.RECT_START}),xe[Ve-1].push({type:"rectEnd",color:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.RECT_END}),this.$=xe[Ve-1];break;case 37:xe[Ve-1].unshift({type:"optStart",optText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.OPT_START}),xe[Ve-1].push({type:"optEnd",optText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.OPT_END}),this.$=xe[Ve-1];break;case 38:xe[Ve-1].unshift({type:"altStart",altText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.ALT_START}),xe[Ve-1].push({type:"altEnd",signalType:rt.LINETYPE.ALT_END}),this.$=xe[Ve-1];break;case 39:xe[Ve-1].unshift({type:"parStart",parText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.PAR_START}),xe[Ve-1].push({type:"parEnd",signalType:rt.LINETYPE.PAR_END}),this.$=xe[Ve-1];break;case 40:xe[Ve-1].unshift({type:"parStart",parText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.PAR_OVER_START}),xe[Ve-1].push({type:"parEnd",signalType:rt.LINETYPE.PAR_END}),this.$=xe[Ve-1];break;case 41:xe[Ve-1].unshift({type:"criticalStart",criticalText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.CRITICAL_START}),xe[Ve-1].push({type:"criticalEnd",signalType:rt.LINETYPE.CRITICAL_END}),this.$=xe[Ve-1];break;case 42:xe[Ve-1].unshift({type:"breakStart",breakText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.BREAK_START}),xe[Ve-1].push({type:"breakEnd",optText:rt.parseMessage(xe[Ve-2]),signalType:rt.LINETYPE.BREAK_END}),this.$=xe[Ve-1];break;case 44:this.$=xe[Ve-3].concat([{type:"option",optionText:rt.parseMessage(xe[Ve-1]),signalType:rt.LINETYPE.CRITICAL_OPTION},xe[Ve]]);break;case 46:this.$=xe[Ve-3].concat([{type:"and",parText:rt.parseMessage(xe[Ve-1]),signalType:rt.LINETYPE.PAR_AND},xe[Ve]]);break;case 48:this.$=xe[Ve-3].concat([{type:"else",altText:rt.parseMessage(xe[Ve-1]),signalType:rt.LINETYPE.ALT_ELSE},xe[Ve]]);break;case 49:xe[Ve-3].draw="participant",xe[Ve-3].type="addParticipant",xe[Ve-3].description=rt.parseMessage(xe[Ve-1]),this.$=xe[Ve-3];break;case 50:xe[Ve-1].draw="participant",xe[Ve-1].type="addParticipant",this.$=xe[Ve-1];break;case 51:xe[Ve-3].draw="actor",xe[Ve-3].type="addParticipant",xe[Ve-3].description=rt.parseMessage(xe[Ve-1]),this.$=xe[Ve-3];break;case 52:case 57:xe[Ve-1].draw="actor",xe[Ve-1].type="addParticipant",this.$=xe[Ve-1];break;case 53:xe[Ve-1].type="destroyParticipant",this.$=xe[Ve-1];break;case 54:xe[Ve-3].draw="participant",xe[Ve-3].type="addParticipant",xe[Ve-3].description=rt.parseMessage(xe[Ve-1]),this.$=xe[Ve-3];break;case 55:xe[Ve-1].draw="participant",xe[Ve-1].type="addParticipant",this.$=xe[Ve-1];break;case 56:xe[Ve-3].draw="actor",xe[Ve-3].type="addParticipant",xe[Ve-3].description=rt.parseMessage(xe[Ve-1]),this.$=xe[Ve-3];break;case 58:this.$=[xe[Ve-1],{type:"addNote",placement:xe[Ve-2],actor:xe[Ve-1].actor,text:xe[Ve]}];break;case 59:xe[Ve-2]=[].concat(xe[Ve-1],xe[Ve-1]).slice(0,2),xe[Ve-2][0]=xe[Ve-2][0].actor,xe[Ve-2][1]=xe[Ve-2][1].actor,this.$=[xe[Ve-1],{type:"addNote",placement:rt.PLACEMENT.OVER,actor:xe[Ve-2].slice(0,2),text:xe[Ve]}];break;case 60:this.$=[xe[Ve-1],{type:"addLinks",actor:xe[Ve-1].actor,text:xe[Ve]}];break;case 61:this.$=[xe[Ve-1],{type:"addALink",actor:xe[Ve-1].actor,text:xe[Ve]}];break;case 62:this.$=[xe[Ve-1],{type:"addProperties",actor:xe[Ve-1].actor,text:xe[Ve]}];break;case 63:this.$=[xe[Ve-1],{type:"addDetails",actor:xe[Ve-1].actor,text:xe[Ve]}];break;case 66:this.$=[xe[Ve-2],xe[Ve]];break;case 67:this.$=xe[Ve];break;case 68:this.$=rt.PLACEMENT.LEFTOF;break;case 69:this.$=rt.PLACEMENT.RIGHTOF;break;case 70:this.$=[xe[Ve-4],xe[Ve-1],{type:"addMessage",from:xe[Ve-4].actor,to:xe[Ve-1].actor,signalType:xe[Ve-3],msg:xe[Ve],activate:!0},{type:"activeStart",signalType:rt.LINETYPE.ACTIVE_START,actor:xe[Ve-1].actor}];break;case 71:this.$=[xe[Ve-4],xe[Ve-1],{type:"addMessage",from:xe[Ve-4].actor,to:xe[Ve-1].actor,signalType:xe[Ve-3],msg:xe[Ve]},{type:"activeEnd",signalType:rt.LINETYPE.ACTIVE_END,actor:xe[Ve-4].actor}];break;case 72:this.$=[xe[Ve-4],xe[Ve-1],{type:"addMessage",from:xe[Ve-4].actor,to:xe[Ve-1].actor,signalType:xe[Ve-3],msg:xe[Ve],activate:!0,centralConnection:rt.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:rt.LINETYPE.CENTRAL_CONNECTION,actor:xe[Ve-1].actor}];break;case 73:this.$=[xe[Ve-4],xe[Ve-1],{type:"addMessage",from:xe[Ve-4].actor,to:xe[Ve-1].actor,signalType:xe[Ve-2],msg:xe[Ve],activate:!1,centralConnection:rt.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:rt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:xe[Ve-4].actor}];break;case 74:this.$=[xe[Ve-5],xe[Ve-1],{type:"addMessage",from:xe[Ve-5].actor,to:xe[Ve-1].actor,signalType:xe[Ve-3],msg:xe[Ve],activate:!0,centralConnection:rt.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:rt.LINETYPE.CENTRAL_CONNECTION,actor:xe[Ve-1].actor},{type:"centralConnectionReverse",signalType:rt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:xe[Ve-5].actor}];break;case 75:this.$=[xe[Ve-3],xe[Ve-1],{type:"addMessage",from:xe[Ve-3].actor,to:xe[Ve-1].actor,signalType:xe[Ve-2],msg:xe[Ve]}];break;case 76:this.$={type:"addParticipant",actor:xe[Ve-1],config:xe[Ve]};break;case 77:this.$=xe[Ve-1].trim();break;case 78:this.$={type:"addParticipant",actor:xe[Ve]};break;case 79:this.$=rt.LINETYPE.SOLID_OPEN;break;case 80:this.$=rt.LINETYPE.DOTTED_OPEN;break;case 81:this.$=rt.LINETYPE.SOLID;break;case 82:this.$=rt.LINETYPE.SOLID_TOP;break;case 83:this.$=rt.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=rt.LINETYPE.STICK_TOP;break;case 85:this.$=rt.LINETYPE.STICK_BOTTOM;break;case 86:this.$=rt.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=rt.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=rt.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=rt.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=rt.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=rt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=rt.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=rt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=rt.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=rt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=rt.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=rt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=rt.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=rt.LINETYPE.DOTTED;break;case 100:this.$=rt.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=rt.LINETYPE.SOLID_CROSS;break;case 102:this.$=rt.LINETYPE.DOTTED_CROSS;break;case 103:this.$=rt.LINETYPE.SOLID_POINT;break;case 104:this.$=rt.LINETYPE.DOTTED_POINT;break;case 105:this.$=rt.parseMessage(xe[Ve].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},t($,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},t($,[2,7]),t($,[2,8]),t($,[2,9]),t($,[2,15]),{13:49,51:R,53:I,54:L},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:N},{23:56,73:N},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t($,[2,30]),t($,[2,31]),{33:[1,62]},{35:[1,63]},t($,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:U},{23:75,55:76,73:U},{23:77,73:N},{69:78,72:[1,79],78:B,79:V,80:z,81:G,82:Y,83:W,84:Q,85:ie,86:Z,87:re,88:K,89:j,90:se,91:le,92:_e,93:ye,94:Ue,95:Se,96:be,97:ke,98:Ae,99:tt,100:Oe,101:je,102:ct,103:Fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:N},{23:111,73:N},{23:112,73:N},{23:113,73:N},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Xe),t($,[2,6]),t($,[2,16]),t(et,[2,10],{11:114}),t($,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t($,[2,22]),{5:[1,118]},{5:[1,119]},t($,[2,25]),t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,32]),t($,[2,33]),t(Ie,i,{7:120}),t(Ie,i,{7:121}),t(Ie,i,{7:122}),t(we,i,{41:123,7:124}),t(ce,i,{43:125,7:126}),t(ce,i,{7:126,43:127}),t(Te,i,{46:128,7:129}),t(Ie,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(fe,Xe,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:N},{69:146,78:B,79:V,80:z,81:G,82:Y,83:W,84:Q,85:ie,86:Z,87:re,88:K,89:j,90:se,91:le,92:_e,93:ye,94:Ue,95:Se,96:be,97:ke,98:Ae,99:tt,100:Oe,101:je,102:ct,103:Fe},t(Be,[2,79]),t(Be,[2,80]),t(Be,[2,81]),t(Be,[2,82]),t(Be,[2,83]),t(Be,[2,84]),t(Be,[2,85]),t(Be,[2,86]),t(Be,[2,87]),t(Be,[2,88]),t(Be,[2,89]),t(Be,[2,90]),t(Be,[2,91]),t(Be,[2,92]),t(Be,[2,93]),t(Be,[2,94]),t(Be,[2,95]),t(Be,[2,96]),t(Be,[2,97]),t(Be,[2,98]),t(Be,[2,99]),t(Be,[2,100]),t(Be,[2,101]),t(Be,[2,102]),t(Be,[2,103]),t(Be,[2,104]),{23:147,73:N},{23:149,60:148,73:N},{73:[2,68]},{73:[2,69]},{58:150,104:me},{58:152,104:me},{58:153,104:me},{58:154,104:me},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:R,53:I,54:L},{5:[1,160]},t($,[2,20]),t($,[2,21]),t($,[2,23]),t($,[2,24]),{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},{17:[1,164]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,50:[1,165],51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},{17:[1,166]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,49:[1,167],51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},{17:[1,168]},{17:[1,169]},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,48:[1,170],51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},{4:a,5:s,8:8,9:10,10:o,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:h,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:m,34:_,36:v,37:y,38:b,39:E,40:S,42:T,44:C,45:x,47:A,51:R,53:I,54:L,56:F,61:O,62:D,63:M,64:P,73:N},{16:[1,172]},t($,[2,50]),{16:[1,173]},t($,[2,55]),t(fe,[2,76]),{76:[1,174]},{16:[1,175]},t($,[2,52]),{16:[1,176]},t($,[2,57]),t($,[2,53]),{23:177,73:N},{23:178,73:N},{23:179,73:N},{58:180,104:me},{23:181,72:[1,182],73:N},{58:183,104:me},{58:184,104:me},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t($,[2,17]),t(et,[2,11]),{13:186,51:R,53:I,54:L},t(et,[2,13]),t(et,[2,14]),t($,[2,19]),t($,[2,35]),t($,[2,36]),t($,[2,37]),t($,[2,38]),{16:[1,187]},t($,[2,39]),{16:[1,188]},t($,[2,40]),t($,[2,41]),{16:[1,189]},t($,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:me},{58:196,104:me},{58:197,104:me},{5:[2,75]},{58:198,104:me},{23:199,73:N},{5:[2,58]},{5:[2,59]},{23:200,73:N},t(et,[2,12]),t(we,i,{7:124,41:201}),t(ce,i,{7:126,43:202}),t(Te,i,{7:129,46:203}),t($,[2,49]),t($,[2,54]),t(fe,[2,77]),t($,[2,51]),t($,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:me},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:k(function(He,Je){if(Je.recoverable)this.trace(He);else{var ht=new Error(He);throw ht.hash=Je,ht}},"parseError"),parse:k(function(He){var Je=this,ht=[0],rt=[],$e=[null],xe=[],pt=this.table,Ve="",Ut=0,kt=0,gt=2,Ct=1,mt=xe.slice.call(arguments,1),qt=Object.create(this.lexer),De={yy:{}};for(var pr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pr)&&(De.yy[pr]=this.yy[pr]);qt.setInput(He,De.yy),De.yy.lexer=qt,De.yy.parser=this,typeof qt.yylloc>"u"&&(qt.yylloc={});var or=qt.yylloc;xe.push(or);var ir=qt.options&&qt.options.ranges;typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gr(Jr){ht.length=ht.length-2*Jr,$e.length=$e.length-Jr,xe.length=xe.length-Jr}k(gr,"popStack");function dn(){var Jr;return Jr=rt.pop()||qt.lex()||Ct,typeof Jr!="number"&&(Jr instanceof Array&&(rt=Jr,Jr=rt.pop()),Jr=Je.symbols_[Jr]||Jr),Jr}k(dn,"lex");for(var st,jt,nr,vr,Sr={},yn,ln,xn,nn;;){if(jt=ht[ht.length-1],this.defaultActions[jt]?nr=this.defaultActions[jt]:((st===null||typeof st>"u")&&(st=dn()),nr=pt[jt]&&pt[jt][st]),typeof nr>"u"||!nr.length||!nr[0]){var Zr="";nn=[];for(yn in pt[jt])this.terminals_[yn]&&yn>gt&&nn.push("'"+this.terminals_[yn]+"'");qt.showPosition?Zr="Parse error on line "+(Ut+1)+`:
`+qt.showPosition()+`
Expecting `+nn.join(", ")+", got '"+(this.terminals_[st]||st)+"'":Zr="Parse error on line "+(Ut+1)+": Unexpected "+(st==Ct?"end of input":"'"+(this.terminals_[st]||st)+"'"),this.parseError(Zr,{text:qt.match,token:this.terminals_[st]||st,line:qt.yylineno,loc:or,expected:nn})}if(nr[0]instanceof Array&&nr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+jt+", token: "+st);switch(nr[0]){case 1:ht.push(st),$e.push(qt.yytext),xe.push(qt.yylloc),ht.push(nr[1]),st=null,kt=qt.yyleng,Ve=qt.yytext,Ut=qt.yylineno,or=qt.yylloc;break;case 2:if(ln=this.productions_[nr[1]][1],Sr.$=$e[$e.length-ln],Sr._$={first_line:xe[xe.length-(ln||1)].first_line,last_line:xe[xe.length-1].last_line,first_column:xe[xe.length-(ln||1)].first_column,last_column:xe[xe.length-1].last_column},ir&&(Sr._$.range=[xe[xe.length-(ln||1)].range[0],xe[xe.length-1].range[1]]),vr=this.performAction.apply(Sr,[Ve,kt,Ut,De.yy,nr[1],$e,xe].concat(mt)),typeof vr<"u")return vr;ln&&(ht=ht.slice(0,-1*ln*2),$e=$e.slice(0,-1*ln),xe=xe.slice(0,-1*ln)),ht.push(this.productions_[nr[1]][0]),$e.push(Sr.$),xe.push(Sr._$),xn=pt[ht[ht.length-2]][ht[ht.length-1]],ht.push(xn);break;case 3:return!0}}return!0},"parse")},qe=(function(){var it={EOF:1,parseError:k(function(Je,ht){if(this.yy.parser)this.yy.parser.parseError(Je,ht);else throw new Error(Je)},"parseError"),setInput:k(function(He,Je){return this.yy=Je||this.yy||{},this._input=He,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var He=this._input[0];this.yytext+=He,this.yyleng++,this.offset++,this.match+=He,this.matched+=He;var Je=He.match(/(?:\r\n?|\n).*/g);return Je?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),He},"input"),unput:k(function(He){var Je=He.length,ht=He.split(/(?:\r\n?|\n)/g);this._input=He+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Je),this.offset-=Je;var rt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var $e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ht?(ht.length===rt.length?this.yylloc.first_column:0)+rt[rt.length-ht.length].length-ht[0].length:this.yylloc.first_column-Je},this.options.ranges&&(this.yylloc.range=[$e[0],$e[0]+this.yyleng-Je]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(He){this.unput(this.match.slice(He))},"less"),pastInput:k(function(){var He=this.matched.substr(0,this.matched.length-this.match.length);return(He.length>20?"...":"")+He.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var He=this.match;return He.length<20&&(He+=this._input.substr(0,20-He.length)),(He.substr(0,20)+(He.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var He=this.pastInput(),Je=new Array(He.length+1).join("-");return He+this.upcomingInput()+`
`+Je+"^"},"showPosition"),test_match:k(function(He,Je){var ht,rt,$e;if(this.options.backtrack_lexer&&($e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($e.yylloc.range=this.yylloc.range.slice(0))),rt=He[0].match(/(?:\r\n?|\n).*/g),rt&&(this.yylineno+=rt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:rt?rt[rt.length-1].length-rt[rt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+He[0].length},this.yytext+=He[0],this.match+=He[0],this.matches=He,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(He[0].length),this.matched+=He[0],ht=this.performAction.call(this,this.yy,this,Je,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var xe in $e)this[xe]=$e[xe];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var He,Je,ht,rt;this._more||(this.yytext="",this.match="");for(var $e=this._currentRules(),xe=0;xe<$e.length;xe++)if(ht=this._input.match(this.rules[$e[xe]]),ht&&(!Je||ht[0].length>Je[0].length)){if(Je=ht,rt=xe,this.options.backtrack_lexer){if(He=this.test_match(ht,$e[xe]),He!==!1)return He;if(this._backtrack){Je=!1;continue}else return!1}else if(!this.options.flex)break}return Je?(He=this.test_match(Je,$e[rt]),He!==!1?He:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var Je=this.next();return Je||this.lex()},"lex"),begin:k(function(Je){this.conditionStack.push(Je)},"begin"),popState:k(function(){var Je=this.conditionStack.length-1;return Je>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(Je){return Je=this.conditionStack.length-1-Math.abs(Je||0),Je>=0?this.conditionStack[Je]:"INITIAL"},"topState"),pushState:k(function(Je){this.begin(Je)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(Je,ht,rt,$e){switch(rt){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:return ht.yytext=ht.yytext.trim(),73;case 12:return ht.yytext=ht.yytext.trim(),this.begin("ALIAS"),73;case 13:return ht.yytext=ht.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return ht.yytext=ht.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return ht.yytext=ht.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return it})();Ye.lexer=qe;function lt(){this.yy={}}return k(lt,"Parser"),lt.prototype=Ye,Ye.Parser=lt,new lt})();Mne.parser=Mne;var Kqr=Mne,jqr={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},Xqr={FILLED:0,OPEN:1},Qqr={LEFTOF:0,RIGHTOF:1,OVER:2},pP={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},Nx,Zqr=(Nx=class{constructor(){this.state=new fde(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=ms,this.setAccDescription=Bs,this.setDiagramTitle=ks,this.getAccTitle=Fs,this.getAccDescription=Us,this.getDiagramTitle=bs,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(vt().wrap),this.LINETYPE=jqr,this.ARROWTYPE=Xqr,this.PLACEMENT=Qqr}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,r,n,i,a){let s=this.state.records.currentBox,o;if(a!==void 0){let u;a.includes(`
`)?u=a+`
`:u=`{
`+a+`
}`,o=BU(u,{schema:FU})}i=o?.type??i,o?.alias&&(!n||n.text===r)&&(n={text:o.alias,wrap:n?.wrap,type:i});const l=this.state.records.actors.get(e);if(l){if(this.state.records.currentBox&&l.box&&this.state.records.currentBox!==l.box)throw new Error(`A same participant should only be defined in one Box: ${l.name} can't be in '${l.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(s=l.box?l.box:this.state.records.currentBox,l.box=s,l&&r===l.name&&n==null)return}if(n?.text==null&&(n={text:r,type:i}),(i==null||n.text==null)&&(n={text:r,type:i}),this.state.records.actors.set(e,{box:s,name:r,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??"participant"}),this.state.records.prevActor){const u=this.state.records.actors.get(this.state.records.prevActor);u&&(u.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let r,n=0;if(!e)return 0;for(r=0;r<this.state.records.messages.length;r++)this.state.records.messages[r].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[r].from===e&&n++,this.state.records.messages[r].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[r].from===e&&n--;return n}addMessage(e,r,n,i){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:n.text,wrap:n.wrap??this.autoWrap(),answer:i})}addSignal(e,r,n,i,a=!1,s){if(i===this.LINETYPE.ACTIVE_END&&this.activationCount(e??"")<1){const l=new Error("Trying to inactivate an inactive participant ("+e+")");throw l.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},l}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:n?.text??"",wrap:n?.wrap??this.autoWrap(),type:i,activate:a,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();const r=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(r===void 0?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:vt().sequence?.wrap??!1}clear(){this.state.reset(),ys()}parseMessage(e){const r=e.trim(),{wrap:n,cleanedText:i}=this.extractWrap(r),a={text:i,wrap:n};return Pe.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);let n=r?.[1]?r[1].trim():"transparent",i=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",n)||(n="transparent",i=e.trim());else{const o=new Option().style;o.color=n,o.color!==n&&(n="transparent",i=e.trim())}const{wrap:a,cleanedText:s}=this.extractWrap(i);return{text:s?ta(s,vt()):void 0,color:n,wrap:a}}addNote(e,r,n){const i={actor:e,placement:r,message:n.text,wrap:n.wrap??this.autoWrap()},a=[].concat(e,e);this.state.records.notes.push(i),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a[0],to:a[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(e,r){const n=this.getActor(e);try{let i=ta(r.text,vt());i=i.replace(/&equals;/g,"="),i=i.replace(/&amp;/g,"&");const a=JSON.parse(i);this.insertLinks(n,a)}catch(i){Pe.error("error while parsing actor link text",i)}}addALink(e,r){const n=this.getActor(e);try{const i={};let a=ta(r.text,vt());const s=a.indexOf("@");a=a.replace(/&equals;/g,"="),a=a.replace(/&amp;/g,"&");const o=a.slice(0,s-1).trim(),l=a.slice(s+1).trim();i[o]=l,this.insertLinks(n,i)}catch(i){Pe.error("error while parsing actor link text",i)}}insertLinks(e,r){if(e.links==null)e.links=r;else for(const n in r)e.links[n]=r[n]}addProperties(e,r){const n=this.getActor(e);try{const i=ta(r.text,vt()),a=JSON.parse(i);this.insertProperties(n,a)}catch(i){Pe.error("error while parsing actor properties text",i)}}insertProperties(e,r){if(e.properties==null)e.properties=r;else for(const n in r)e.properties[n]=r[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,r){const n=this.getActor(e),i=document.getElementById(r.text);try{const a=i.innerHTML,s=JSON.parse(a);s.properties&&this.insertProperties(n,s.properties),s.links&&this.insertLinks(n,s.links)}catch(a){Pe.error("error while parsing actor details text",a)}}getActorProperty(e,r){if(e?.properties!==void 0)return e.properties[r]}apply(e){if(Array.isArray(e))e.forEach(r=>{this.apply(r)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnection":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnectionReverse":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"altStart":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":ms(e.text);break;case"parStart":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return vt().sequence}},k(Nx,"SequenceDB"),Nx),Jqr=k(t=>{const e=t.dropShadow??"none",{look:r}=vt();return`.actor {
    stroke: ${t.actorBorder};
    fill: ${t.actorBkg};
    stroke-width: ${t.strokeWidth??1};
  }

  rect.actor.outer-path[data-look="neo"] {
      filter: ${e};
  }

  rect.note[data-look="neo"] {
      stroke:${t.noteBorderColor};
      fill:${t.noteBkgColor};
      filter: ${e};
  }

  text.actor > tspan {
    fill: ${t.actorTextColor};
    stroke: none;
  }

  .actor-line {
    stroke: ${t.actorLineColor};
  }

  .innerArc {
    stroke-width: 1.5;
    stroke-dasharray: none;
  }

  .messageLine0 {
    stroke-width: 1.5;
    stroke-dasharray: none;
    stroke: ${t.signalColor};
  }

  .messageLine1 {
    stroke-width: 1.5;
    stroke-dasharray: 2, 2;
    stroke: ${t.signalColor};
  }

  [id$="-arrowhead"] path {
    fill: ${t.signalColor};
    stroke: ${t.signalColor};
  }

  .sequenceNumber {
    fill: ${t.sequenceNumberColor};
  }

  [id$="-sequencenumber"] {
    fill: ${t.signalColor};
  }

  [id$="-crosshead"] path {
    fill: ${t.signalColor};
    stroke: ${t.signalColor};
  }

  .messageText {
    fill: ${t.signalTextColor};
    stroke: none;
  }

  .labelBox {
    stroke: ${t.labelBoxBorderColor};
    fill: ${t.labelBoxBkgColor};
    filter: ${r==="neo"?e:"none"};
  }

  .labelText, .labelText > tspan {
    fill: ${t.labelTextColor};
    stroke: none;
  }

  .loopText, .loopText > tspan {
    fill: ${t.loopTextColor};
    stroke: none;
  }

  .sectionTitle, .sectionTitle > tspan {
    fill: ${t.loopTextColor};
    stroke: none;
  }

  .loopLine {
    stroke-width: 2px;
    stroke-dasharray: 2, 2;
    stroke: ${t.labelBoxBorderColor};
    fill: ${t.labelBoxBorderColor};
  }

  .note {
    //stroke: #decc93;
    stroke: ${t.noteBorderColor};
    fill: ${t.noteBkgColor};
  }

  .noteText, .noteText > tspan {
    fill: ${t.noteTextColor};
    stroke: none;
    ${t.noteFontWeight?`font-weight: ${t.noteFontWeight};`:""}
  }

  .activation0 {
    fill: ${t.activationBkgColor};
    stroke: ${t.activationBorderColor};
  }

  .activation1 {
    fill: ${t.activationBkgColor};
    stroke: ${t.activationBorderColor};
  }

  .activation2 {
    fill: ${t.activationBkgColor};
    stroke: ${t.activationBorderColor};
  }

  .actorPopupMenu {
    position: absolute;
  }

  .actorPopupMenuPanel {
    position: absolute;
    fill: ${t.actorBkg};
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
  .actor-man circle, line {
    fill: ${t.actorBkg};
    stroke-width: 2px;
  }

  g rect.rect {
    filter: ${e};
    stroke: ${t.nodeBorder};
  }
`},"getStyles"),eVr=Jqr,Vy=36,av="actor-top",sv="actor-bottom",KG="actor-box",Qb="actor-man",K0=new Set(["redux-color","redux-dark-color"]),R3=k(function(t,e){const r=k$(t,e);return Ln().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),tVr=k(function(t,e,r,n,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,s=e.actorCnt,o=e.rectData;var l="none";i&&(l="block !important");const u=t.append("g");u.attr("id","actor"+s+"_popup"),u.attr("class","actorPopupMenu"),u.attr("display",l);var d="";o.class!==void 0&&(d=" "+o.class);let h=o.width>r?o.width:r;const f=u.append("rect");if(f.attr("class","actorPopupMenuPanel"+d),f.attr("x",o.x),f.attr("y",o.height),f.attr("fill",o.fill),f.attr("stroke",o.stroke),f.attr("width",h),f.attr("height",o.height),f.attr("rx",o.rx),f.attr("ry",o.ry),a!=null){var p=20;for(let _ in a){var g=u.append("a"),m=pE.sanitizeUrl(a[_]);g.attr("xlink:href",m),g.attr("target","_blank"),CVr(n)(_,g,o.x+10,o.height+p,h,20,{class:"actor"},n),p+=30}}return f.attr("height",p),{height:o.height+p,width:h}},"drawPopup"),jG=k(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),SF=k(async function(t,e,r=null){let n=t.append("foreignObject");const i=await xU(e.text,Ln()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(n.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),e.class==="noteText"){const o=t.node().firstChild;o.setAttribute("height",s.height+2*e.textMargin);const l=o.getBBox();n.attr("x",Math.round(l.x+l.width/2-s.width/2)).attr("y",Math.round(l.y+l.height/2-s.height/2))}else if(r){let{startx:o,stopx:l,starty:u}=r;if(o>l){const d=o;o=l,l=d}n.attr("x",Math.round(o+Math.abs(o-l)/2-s.width/2)),e.class==="loopText"?n.attr("y",Math.round(u)):n.attr("y",Math.round(u-s.height))}return[n]},"drawKatex"),HA=k(function(t,e){let r=0,n=0;const i=e.text.split(Cr.lineBreakRegex),[a,s]=B0(e.fontSize);let o=[],l=0,u=k(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":u=k(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":u=k(()=>Math.round(e.y+(r+n+e.textMargin)/2),"yfunc");break;case"bottom":case"end":u=k(()=>Math.round(e.y+(r+n+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[d,h]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(l=d*a);const f=t.append("text");f.attr("x",e.x),f.attr("y",u()),e.anchor!==void 0&&f.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&f.style("font-family",e.fontFamily),s!==void 0&&f.style("font-size",s),e.fontWeight!==void 0&&f.style("font-weight",e.fontWeight),e.fill!==void 0&&f.attr("fill",e.fill),e.class!==void 0&&f.attr("class",e.class),e.dy!==void 0?f.attr("dy",e.dy):l!==0&&f.attr("dy",l);const p=h||zBe;if(e.tspan){const g=f.append("tspan");g.attr("x",e.x),e.fill!==void 0&&g.attr("fill",e.fill),g.text(p)}else f.text(p);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(n+=(f._groups||f)[0][0].getBBox().height,r=n),o.push(f)}return o},"drawText"),Ynt=k(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}k(r,"genPoints");const n=t.append("polygon");return n.attr("points",r(e.x,e.y,e.width,e.height,7)),n.attr("class","labelBox"),e.y=e.y+e.height/2,HA(t,e),n},"drawLabel"),ea=-1,Wnt=k((t,e,r,n)=>{t.select&&r.forEach(i=>{const a=e.get(i),s=t.select("#actor"+a.actorCnt);!n.mirrorActors&&a.stopy?s.attr("y2",a.stopy+a.height/2):n.mirrorActors&&s.attr("y2",a.stopy)})},"fixLifeLineHeights"),rVr=k(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(ea++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",jG(`actor${ea}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+ea).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=ea,e.links!=null&&g.attr("id","root-"+ea),l==="neo"&&g.attr("data-look","neo"));const m=th();var _="actor";e.properties?.class?_=e.properties.class:m.fill="#eaeaea",n?_+=` ${sv}`:_+=` ${av}`,m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.class=_,m.rx=3,m.ry=3,m.name=e.name,l==="neo"&&(m.rx=6,m.ry=6);const v=R3(g,m),y=i.get(e.name)??0;if(K0.has(u)&&(v.style("stroke",f[y%f.length]),v.style("fill",h[y%f.length])),l==="neo"&&v.attr("filter","url(#drop-shadow)"),e.rectData=m,e.properties?.icon){const E=e.properties.icon.trim();E.charAt(0)==="@"?sde(g,m.x+m.width-20,m.y+10,E.substr(1)):ade(g,m.x+m.width-20,m.y+10,E)}n||(g.attr("data-et","participant"),g.attr("data-type","participant"),g.attr("data-id",e.name)),j0(r,ko(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${KG}`},r);let b=e.height;if(v.node){const E=v.node().getBBox();e.height=E.height,b=E.height}return b},"drawActorTypeParticipant"),nVr=k(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(ea++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",jG(`actor${ea}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+ea).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=ea,e.links!=null&&g.attr("id","root-"+ea),l==="neo"&&g.attr("data-look","neo"));const m=th();var _="actor";e.properties?.class?_=e.properties.class:m.fill="#eaeaea",n?_+=` ${sv}`:_+=` ${av}`,m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.class=_,m.name=e.name;const v=6,y={...m,x:m.x+-v,y:m.y+ +v,class:"actor"},b=R3(g,m),E=R3(g,y);e.rectData=m,l==="neo"&&g.attr("filter","url(#drop-shadow)");const S=i.get(e.name)??0;if(K0.has(u)&&(b.style("stroke",f[S%f.length]),b.style("fill",h[S%f.length]),E.style("stroke",f[S%f.length]),E.style("fill",h[S%f.length])),e.properties?.icon){const C=e.properties.icon.trim();C.charAt(0)==="@"?sde(g,m.x+m.width-20,m.y+10,C.substr(1)):ade(g,m.x+m.width-20,m.y+10,C)}j0(r,ko(e.description))(e.description,g,m.x-v,m.y+v,m.width,m.height,{class:`actor ${KG}`},r);let T=e.height;if(b.node){const C=b.node().getBBox();e.height=C.height,T=C.height}return n||(g.attr("data-et","participant"),g.attr("data-type","collections"),g.attr("data-id",e.name)),T},"drawActorTypeCollections"),iVr=k(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();let g=p;n||(ea++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",jG(`actor${ea}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+ea).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),g=p.append("g"),e.actorCnt=ea,e.links!=null&&g.attr("id","root-"+ea),l==="neo"&&g.attr("data-look","neo"));const m=th();let _="actor";e.properties?.class?_=e.properties.class:m.fill="#eaeaea",n?_+=` ${sv}`:_+=` ${av}`,g.attr("class",_),m.x=e.x,m.y=a,m.width=e.width,m.height=e.height,m.name=e.name;const v=m.height/2,y=v/(2.5+m.height/50),b=g.append("g"),E=g.append("g"),S=`M ${m.x},${m.y+v}
    a ${y},${v} 0 0 0 0,${m.height}
    h ${m.width-2*y}
    a ${y},${v} 0 0 0 0,-${m.height}
    Z
  `;b.append("path").attr("d",S),E.append("path").attr("d",`M ${m.x},${m.y+v}
      a ${y},${v} 0 0 0 0,${m.height}`),b.attr("transform",`translate(${y}, ${-(m.height/2)})`),E.attr("transform",`translate(${m.width-y}, ${-m.height/2})`),e.rectData=m,l==="neo"&&b.attr("filter","url(#drop-shadow)");const T=i.get(e.name)??0;if(K0.has(u)&&(b.style("stroke",f[T%f.length]),b.style("fill",h[T%f.length]),E.style("stroke",f[T%f.length]),E.style("fill",h[T%f.length])),e.properties?.icon){const A=e.properties.icon.trim(),R=m.x+m.width-20,I=m.y+10;A.charAt(0)==="@"?sde(g,R,I,A.substr(1)):ade(g,R,I,A)}j0(r,ko(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${KG}`},r);let C=e.height;const x=b.select("path:last-child");if(x.node()){const A=x.node().getBBox();e.height=A.height,C=A.height}return n||(g.attr("data-et","participant"),g.attr("data-type","queue"),g.attr("data-id",e.name)),C},"drawActorTypeQueue"),aVr=k(function(t,e,r,n,i,a){const s=n?e.stopy:e.starty,o=e.x+e.width/2,l=s+75,{look:u,theme:d,themeVariables:h}=r,{bkgColorArray:f,borderColorArray:p,actorBorder:g,actorBkg:m}=h,_=t.append("g").lower();n||(ea++,_.append("line").attr("id","actor"+ea).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ea);const v=t.append("g");let y=Qb;n?y+=` ${sv}`:y+=` ${av}`,v.attr("class",y),v.attr("name",e.name);const b=th();b.x=e.x,b.y=s,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor";const E=e.x+e.width/2,S=s+32,T=22;v.append("defs").append("marker").attr("id",i+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),v.append("circle").attr("cx",E).attr("cy",S).attr("r",T).attr("filter",`${u==="neo"?"url(#drop-shadow)":""}`),v.append("line").attr("marker-end","url(#"+i+"-filled-head-control)").attr("transform",`translate(${E}, ${S-T})`);const C=a.get(e.name)??0;K0.has(d)?(v.style("stroke",p[C%p.length]),v.style("fill",f[C%p.length])):(v.style("stroke",g),v.style("fill",m));const x=v.node().getBBox();return e.height=x.height+2*(r?.sequence?.labelBoxHeight??0),j0(r,ko(e.description))(e.description,v,b.x,b.y+T+(n?5:12),b.width,b.height,{class:`actor ${Qb}`},r),n||(v.attr("data-et","participant"),v.attr("data-type","control"),v.attr("data-id",e.name)),e.height},"drawActorTypeControl"),sVr=k(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+75,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower(),g=t.append("g");let m="actor";n?m+=` ${sv}`:m+=` ${av}`,g.attr("class",m),g.attr("name",e.name);const _=th();_.x=e.x,_.y=a,_.fill="#eaeaea",_.width=e.width,_.height=e.height,_.class="actor";const v=e.x+e.width/2,y=a+(n?10:25),b=22;g.append("circle").attr("cx",v).attr("cy",y).attr("r",b).attr("width",e.width).attr("height",e.height),g.append("line").attr("x1",v-b).attr("x2",v+b).attr("y1",y+b).attr("y2",y+b).attr("stroke-width",2),l==="neo"&&g.attr("filter","url(#drop-shadow)");const E=i.get(e.name)??0;K0.has(u)&&(g.style("stroke",f[E%f.length]),g.style("fill",h[E%f.length]));const S=g.node().getBBox();return e.height=S.height+(r?.sequence?.labelBoxHeight??0),n||(ea++,p.append("line").attr("id","actor"+ea).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ea),j0(r,ko(e.description))(e.description,g,_.x,_.y+(n?15:30),_.width,_.height,{class:`actor ${Qb}`},r),n?g.attr("transform",`translate(0, ${b})`):(g.attr("transform",`translate(0, ${b/2-5})`),g.attr("data-et","participant"),g.attr("data-type","entity"),g.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),oVr=k(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+e.height+2*r.boxTextMargin,{theme:l,themeVariables:u,look:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=u,g=t.append("g").lower();let m=g;n||(ea++,Object.keys(e.links||{}).length&&!r.forceMenus&&m.attr("onclick",jG(`actor${ea}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+ea).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),m=g.append("g"),e.actorCnt=ea,e.links!=null&&m.attr("id","root-"+ea),d==="neo"&&m.attr("data-look","neo"));const _=th();let v="actor";e.properties?.class?v=e.properties.class:_.fill="#eaeaea",n?v+=` ${sv}`:v+=` ${av}`,_.x=e.x,_.y=a,_.width=e.width,_.height=e.height,_.class=v,_.name=e.name,_.x=e.x,_.y=a;const y=_.width/3,b=_.width/3,E=y/2,S=E/(2.5+y/50),T=m.append("g");T.attr("class",v);const C=`
  M ${_.x},${_.y+S}
  a ${E},${S} 0 0 0 ${y},0
  a ${E},${S} 0 0 0 -${y},0
  l 0,${b-2*S}
  a ${E},${S} 0 0 0 ${y},0
  l 0,-${b-2*S}
`;T.append("path").attr("d",C),d==="neo"&&T.attr("filter","url(#drop-shadow)");const x=i.get(e.name)??0;K0.has(l)?(T.style("stroke",f[x%f.length]),T.style("fill",h[x%f.length])):T.style("stroke",p),T.attr("transform",`translate(${y}, ${S})`),e.rectData=_,j0(r,ko(e.description))(e.description,m,_.x,_.y+35,_.width,_.height,{class:`actor ${KG}`},r);const A=T.select("path:last-child");if(A.node()){const R=A.node().getBBox();e.height=R.height+(r.sequence.labelBoxHeight??0)}return n||(m.attr("data-et","participant"),m.attr("data-type","database"),m.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),lVr=k(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+80,l=22,u=t.append("g").lower(),{look:d,theme:h,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:g,actorBorder:m}=f;n||(ea++,u.append("line").attr("id","actor"+ea).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ea);const _=t.append("g");let v=Qb;n?v+=` ${sv}`:v+=` ${av}`,_.attr("class",v),_.attr("name",e.name);const y=th();y.x=e.x,y.y=a,y.fill="#eaeaea",y.width=e.width,y.height=e.height,y.class="actor",_.append("line").attr("id","actor-man-torso"+ea).attr("x1",e.x+e.width/2-l*2.5).attr("y1",a+12).attr("x2",e.x+e.width/2-15).attr("y2",a+12),_.append("line").attr("id","actor-man-arms"+ea).attr("x1",e.x+e.width/2-l*2.5).attr("y1",a+2).attr("x2",e.x+e.width/2-l*2.5).attr("y2",a+22),_.append("circle").attr("cx",e.x+e.width/2).attr("cy",a+12).attr("r",l),d==="neo"&&_.attr("filter","url(#drop-shadow)");const b=i.get(e.name)??0;K0.has(h)?(_.style("stroke",g[b%g.length]),_.style("fill",p[b%g.length])):_.style("stroke",m);const E=_.node().getBBox();return e.height=E.height+(r.sequence.labelBoxHeight??0),j0(r,ko(e.description))(e.description,_,y.x,y.y+15,y.width,y.height,{class:`actor ${Qb}`},r),_.attr("transform",`translate(0,${l/2+10})`),n||(_.attr("data-et","participant"),_.attr("data-type","boundary"),_.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),cVr=k(function(t,e,r,n,i){const a=n?e.stopy:e.starty,s=e.x+e.width/2,o=a+80,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=d,g=t.append("g").lower();n||(ea++,g.append("line").attr("id","actor"+ea).attr("x1",s).attr("y1",o).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=ea);const m=t.append("g");let _=Qb;n?_+=` ${sv}`:_+=` ${av}`,m.attr("class",_),m.attr("name",e.name),n||m.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);const v=l==="neo"?.5:1,y=l==="neo"?a+(1-v)*30:a;m.append("line").attr("id","actor-man-torso"+ea).attr("x1",s).attr("y1",y+25*v).attr("x2",s).attr("y2",y+45*v),m.append("line").attr("id","actor-man-arms"+ea).attr("x1",s-Vy/2*v).attr("y1",y+33*v).attr("x2",s+Vy/2*v).attr("y2",y+33*v),m.append("line").attr("x1",s-Vy/2*v).attr("y1",y+60*v).attr("x2",s).attr("y2",y+45*v),m.append("line").attr("x1",s).attr("y1",y+45*v).attr("x2",s+(Vy/2-2)*v).attr("y2",y+60*v);const b=m.append("circle");b.attr("cx",e.x+e.width/2),b.attr("cy",y+10*v),b.attr("r",15*v),b.attr("width",e.width*v),b.attr("height",e.height*v);const E=m.node().getBBox();e.height=E.height;const S=th();S.x=e.x,S.y=y,S.fill="#eaeaea",S.width=e.width,S.height=e.height/v,S.class="actor",S.rx=3,S.ry=3;const T=i.get(e.name)??0;return K0.has(u)?(m.style("stroke",f[T%f.length]),m.style("fill",h[T%f.length])):m.style("stroke",p),j0(r,ko(e.description))(e.description,m,S.x,y+35*v-(l==="neo"?10:0),S.width,S.height,{class:`actor ${Qb}`},r),e.height},"drawActorTypeActor"),uVr=k(async function(t,e,r,n,i,a,s){const o=s??new Map([...a.db.getActors().values()].map((l,u)=>[l.name,u]));switch(e.type){case"actor":return await cVr(t,e,r,n,o);case"participant":return await rVr(t,e,r,n,o);case"boundary":return await lVr(t,e,r,n,o);case"control":return await aVr(t,e,r,n,i,o);case"entity":return await sVr(t,e,r,n,o);case"database":return await oVr(t,e,r,n,o);case"collections":return await nVr(t,e,r,n,o);case"queue":return await iVr(t,e,r,n,o)}},"drawActor"),dVr=k(function(t,e,r){const i=t.append("g");Knt(i,e),e.name&&j0(r)(e.name,i,e.x,e.y+r.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),i.lower()},"drawBox"),hVr=k(function(t){return t.append("g")},"anchorElement"),fVr=k(function(t,e,r,n,i,a,s){const{theme:o,themeVariables:l}=n,{bkgColorArray:u,borderColorArray:d,mainBkg:h}=l,f=th(),p=e.anchored,g=e.actor;f.x=e.startx,f.y=e.starty,f.class="activation"+i%3,f.width=e.stopx-e.startx,f.height=r-e.starty;const m=R3(p,f),v=(s??new Map([...a.db.getActors().values()].map((y,b)=>[y.name,b]))).get(g)??0;K0.has(o)&&(m.style("stroke",d[v%d.length]),m.style("fill",u[v%d.length]??h))},"drawActivation"),pVr=k(async function(t,e,r,n,i){const{boxMargin:a,boxTextMargin:s,labelBoxHeight:o,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:h}=n,f=t.append("g").attr("data-et","control-structure").attr("data-id","i"+i.id),p=k(function(_,v,y,b){return f.append("line").attr("x1",_).attr("y1",v).attr("x2",y).attr("y2",b).attr("class","loopLine")},"drawLoopLine");p(e.startx,e.starty,e.stopx,e.starty),p(e.stopx,e.starty,e.stopx,e.stopy),p(e.startx,e.stopy,e.stopx,e.stopy),p(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(_){p(e.startx,_.y,e.stopx,_.y).style("stroke-dasharray","3, 3")});let g=ode();g.text=r,g.x=e.startx,g.y=e.starty,g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=Math.max(l??0,50),g.height=o+(n.look==="neo"?15:0)||20,g.textMargin=s,g.class="labelText",Ynt(f,g),g=jnt(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+a+s,g.anchor="middle",g.valign="middle",g.textMargin=s,g.class="loopText",g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.wrap=!0;let m=ko(g.text)?await SF(f,g,e):HA(f,g);if(e.sectionTitles!==void 0){for(const[_,v]of Object.entries(e.sectionTitles))if(v.message){g.text=v.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[_].y+a+s,g.class="sectionTitle",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=u,g.fontSize=d,g.fontWeight=h,g.wrap=e.wrap,ko(g.text)?(e.starty=e.sections[_].y,await SF(f,g,e)):HA(f,g);let y=Math.round(m.map(b=>(b._groups||b)[0][0].getBBox().height).reduce((b,E)=>b+E));e.sections[_].height+=y-(a+s)}}return e.height=Math.round(e.stopy-e.starty),f},"drawLoop"),Knt=k(function(t,e){fHe(t,e)},"drawBackgroundRect"),gVr=k(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),mVr=k(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),_Vr=k(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),vVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),yVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",15.5).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")},"insertArrowFilledHead"),bVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),EVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),SVr=k(function(t,e){const{theme:r}=e;t.append("defs").append("filter").attr("id","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",`${r==="redux"||r==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),jnt=k(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),TVr=k(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),j0=(function(){function t(a,s,o,l,u,d,h){const f=s.append("text").attr("x",o+u/2).attr("y",l+d/2+5).style("text-anchor","middle").text(a);i(f,h)}k(t,"byText");function e(a,s,o,l,u,d,h,f){const{actorFontSize:p,actorFontFamily:g,actorFontWeight:m}=f,[_,v]=B0(p),y=a.split(Cr.lineBreakRegex);for(let b=0;b<y.length;b++){const E=b*_-_*(y.length-1)/2,S=s.append("text").attr("x",o+u/2).attr("y",l).style("text-anchor","middle").style("font-size",v).style("font-weight",m).style("font-family",g);S.append("tspan").attr("x",o+u/2).attr("dy",E).text(y[b]),S.attr("y",l+d/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(S,h)}}k(e,"byTspan");function r(a,s,o,l,u,d,h,f){const p=s.append("switch"),m=p.append("foreignObject").attr("x",o).attr("y",l).attr("width",u).attr("height",d).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),e(a,p,o,l,u,d,h,f),i(m,h)}k(r,"byFo");async function n(a,s,o,l,u,d,h,f){const p=await P5(a,Ln()),g=s.append("switch"),_=g.append("foreignObject").attr("x",o+u/2-p.width/2).attr("y",l+d/2-p.height/2).attr("width",p.width).attr("height",p.height).append("xhtml:div").style("height","100%").style("width","100%");_.append("div").style("text-align","center").style("vertical-align","middle").html(await xU(a,Ln())),e(a,g,o,l,u,d,h,f),i(_,h)}k(n,"byKatex");function i(a,s){for(const o in s)s.hasOwnProperty(o)&&a.attr(o,s[o])}return k(i,"_setTextAttrs"),function(a,s=!1){return s?n:a.textPlacement==="fo"?r:a.textPlacement==="old"?t:e}})(),CVr=(function(){function t(i,a,s,o,l,u,d){const h=a.append("text").attr("x",s).attr("y",o).style("text-anchor","start").text(i);n(h,d)}k(t,"byText");function e(i,a,s,o,l,u,d,h){const{actorFontSize:f,actorFontFamily:p,actorFontWeight:g}=h,m=i.split(Cr.lineBreakRegex);for(let _=0;_<m.length;_++){const v=_*f-f*(m.length-1)/2,y=a.append("text").attr("x",s).attr("y",o).style("text-anchor","start").style("font-size",f).style("font-weight",g).style("font-family",p);y.append("tspan").attr("x",s).attr("dy",v).text(m[_]),y.attr("y",o+u/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(y,d)}}k(e,"byTspan");function r(i,a,s,o,l,u,d,h){const f=a.append("switch"),g=f.append("foreignObject").attr("x",s).attr("y",o).attr("width",l).attr("height",u).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,f,s,o,l,u,d,h),n(g,d)}k(r,"byFo");function n(i,a){for(const s in a)a.hasOwnProperty(s)&&i.attr(s,a[s])}return k(n,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?r:i.textPlacement==="old"?t:e}})(),wVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),xVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),AVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),RVr=k(function(t,e){t.append("defs").append("marker").attr("id",e+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),ns={drawRect:R3,drawText:HA,drawLabel:Ynt,drawActor:uVr,drawBox:dVr,drawPopup:tVr,anchorElement:hVr,drawActivation:fVr,drawLoop:pVr,drawBackgroundRect:Knt,insertArrowHead:vVr,insertArrowFilledHead:yVr,insertSequenceNumber:bVr,insertArrowCrossHead:EVr,insertDatabaseIcon:gVr,insertComputerIcon:mVr,insertClockIcon:_Vr,getTextObj:jnt,getNoteRect:TVr,fixLifeLineHeights:Wnt,sanitizeUrl:pE.sanitizeUrl,insertDropShadow:SVr,insertSolidTopArrowHead:wVr,insertSolidBottomArrowHead:xVr,insertStickTopArrowHead:AVr,insertStickBottomArrowHead:RVr},Pt={},mr={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:k(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(t=>t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},"getHeight"),clear:k(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:k(function(t){this.boxes.push(t)},"addBox"),addActor:k(function(t){this.actors.push(t)},"addActor"),addLoop:k(function(t){this.loops.push(t)},"addLoop"),addMessage:k(function(t){this.messages.push(t)},"addMessage"),addNote:k(function(t){this.notes.push(t)},"addNote"),lastActor:k(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:k(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:k(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:k(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:k(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Znt(vt())},"init"),updateVal:k(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:k(function(t,e,r,n){const i=this;let a=0;function s(o){return k(function(u){a++;const d=i.sequenceItems.length-a+1;i.updateVal(u,"starty",e-d*Pt.boxMargin,Math.min),i.updateVal(u,"stopy",n+d*Pt.boxMargin,Math.max),i.updateVal(mr.data,"startx",t-d*Pt.boxMargin,Math.min),i.updateVal(mr.data,"stopx",r+d*Pt.boxMargin,Math.max),o!=="activation"&&(i.updateVal(u,"startx",t-d*Pt.boxMargin,Math.min),i.updateVal(u,"stopx",r+d*Pt.boxMargin,Math.max),i.updateVal(mr.data,"starty",e-d*Pt.boxMargin,Math.min),i.updateVal(mr.data,"stopy",n+d*Pt.boxMargin,Math.max))},"updateItemBounds")}k(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:k(function(t,e,r,n){const i=Cr.getMin(t,r),a=Cr.getMax(t,r),s=Cr.getMin(e,n),o=Cr.getMax(e,n);this.updateVal(mr.data,"startx",i,Math.min),this.updateVal(mr.data,"starty",s,Math.min),this.updateVal(mr.data,"stopx",a,Math.max),this.updateVal(mr.data,"stopy",o,Math.max),this.updateBounds(i,s,a,o)},"insert"),newActivation:k(function(t,e,r){const n=r.get(t.from),i=XG(t.from).length||0,a=n.x+n.width/2+(i-1)*Pt.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Pt.activationWidth,stopy:void 0,actor:t.from,anchored:ns.anchorElement(e)})},"newActivation"),endActivation:k(function(t){const e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:k(function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:k(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:k(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:k(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:k(function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:mr.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:k(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:k(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:k(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=Cr.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:k(function(){return this.verticalPos},"getVerticalPos"),getBounds:k(function(){return{bounds:this.data,models:this.models}},"getBounds")},OVr=k(async function(t,e,r){mr.bumpVerticalPos(Pt.boxMargin),e.height=Pt.boxMargin,e.starty=mr.getVerticalPos();const n=th();n.x=e.startx,n.y=e.starty,n.width=e.width||Pt.width,n.class="note";const i=t.append("g");i.attr("data-et","note"),i.attr("data-id","i"+r);const a=ns.drawRect(i,n),s=ode();s.x=e.startx,s.y=e.starty,s.width=n.width,s.dy="1em",s.text=e.message,s.class="noteText",s.fontFamily=Pt.noteFontFamily,s.fontSize=Pt.noteFontSize,s.fontWeight=Pt.noteFontWeight,s.anchor=Pt.noteAlign,s.textMargin=Pt.noteMargin,s.valign="center";const o=ko(s.text)?await SF(i,s):HA(i,s),l=Math.round(o.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,d)=>u+d));a.attr("height",l+2*Pt.noteMargin),e.height+=l+2*Pt.noteMargin,mr.bumpVerticalPos(l+2*Pt.noteMargin),e.stopy=e.starty+l+2*Pt.noteMargin,e.stopx=e.startx+n.width,mr.insert(e.startx,e.starty,e.stopx,e.stopy),mr.models.addNote(e)},"drawNote"),tNe=k(function(t,e,r,n,i,a,s){const o=n.db.getActors(),l=o.get(e.from),u=o.get(e.to),d=r.sequenceVisible;let h=l.x+l.width/2,f=u.x+u.width/2;const p=h<=f,g=rit(e,n),m=t.append("g"),_=16.5,v=k((T,C)=>{const x=T?_:-_;return C?-x:x},"getCircleOffset"),y=k(T=>{m.append("circle").attr("cx",T).attr("cy",s).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:b,CENTRAL_CONNECTION_REVERSE:E,CENTRAL_CONNECTION_DUAL:S}=n.db.LINETYPE;if(d)switch(e.centralConnection){case b:g&&(f+=v(p,!0));break;case E:g||(h+=v(p,!1));break;case S:g?f+=v(p,!0):h+=v(p,!1);break}switch(e.centralConnection){case b:y(f);break;case E:y(h);break;case S:y(h),y(f);break}},"drawCentralConnection"),Zb=k(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),iT=k(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),Lne=k(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function Xnt(t,e){mr.bumpVerticalPos(10);const{startx:r,stopx:n,message:i}=e,a=Cr.splitBreaks(i).length,s=ko(i),o=s?await P5(i,vt()):ci.calculateTextDimensions(i,Zb(Pt));if(!s){const h=o.height/a;e.height+=h,mr.bumpVerticalPos(h)}let l,u=o.height-10;const d=o.width;if(r===n){l=mr.getVerticalPos()+u,Pt.rightAngles||(u+=Pt.boxMargin,l=mr.getVerticalPos()+u),u+=30;const h=Cr.getMax(d/2,Pt.width/2);mr.insert(r-h,mr.getVerticalPos()-10+u,n+h,mr.getVerticalPos()+30+u)}else u+=Pt.boxMargin,l=mr.getVerticalPos()+u,mr.insert(r,l-10,n,l);return mr.bumpVerticalPos(u),e.height+=u,e.stopy=e.starty+e.height,mr.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),l}k(Xnt,"boundMessage");var IVr=k(async function(t,e,r,n,i,a){const{startx:s,stopx:o,starty:l,message:u,type:d,sequenceIndex:h,sequenceVisible:f}=e,p=ci.calculateTextDimensions(u,Zb(Pt)),g=ode();g.x=Math.min(s,o),g.y=l+10,g.width=Math.abs(o-s),g.class="messageText",g.dy="1em",g.text=u,g.fontFamily=Pt.messageFontFamily,g.fontSize=Pt.messageFontSize,g.fontWeight=Pt.messageFontWeight,g.anchor=Pt.messageAlign,g.valign="center",g.textMargin=Pt.wrapPadding,g.tspan=!1,ko(g.text)?await SF(t,g,{startx:s,stopx:o,starty:r}):HA(t,g);const m=p.width;let _;if(s===o){const y=f||Pt.showSequenceNumbers,b=rit(i,n),E=FVr(i,n),S=s+(y&&(b||E)?10:0);Pt.rightAngles?_=t.append("path").attr("d",`M  ${S},${r} H ${s+Cr.getMax(Pt.width/2,m/2)} V ${r+25} H ${s}`):_=t.append("path").attr("d","M "+S+","+r+" C "+(S+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)),XX(i,n)&&tNe(t,i,e,n,s,o,r)}else _=t.append("line"),_.attr("x1",s),_.attr("y1",r),_.attr("x2",o),_.attr("y2",r),XX(i,n)&&tNe(t,i,e,n,s,o,r);d===n.db.LINETYPE.DOTTED||d===n.db.LINETYPE.DOTTED_CROSS||d===n.db.LINETYPE.DOTTED_POINT||d===n.db.LINETYPE.DOTTED_OPEN||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===n.db.LINETYPE.SOLID_TOP_DOTTED||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===n.db.LINETYPE.STICK_TOP_DOTTED||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(_.style("stroke-dasharray","3, 3"),_.attr("class","messageLine1")):_.attr("class","messageLine0"),_.attr("data-et","message"),_.attr("data-id","i"+e.id),_.attr("data-from",e.from),_.attr("data-to",e.to);let v="";if(Pt.arrowMarkerAbsolute&&(v=wU(!0)),_.attr("stroke-width",2),_.attr("stroke","none"),_.style("fill","none"),(d===n.db.LINETYPE.SOLID_TOP||d===n.db.LINETYPE.SOLID_TOP_DOTTED)&&_.attr("marker-end","url("+v+"#"+a+"-solidTopArrowHead)"),(d===n.db.LINETYPE.SOLID_BOTTOM||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&_.attr("marker-end","url("+v+"#"+a+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.STICK_TOP||d===n.db.LINETYPE.STICK_TOP_DOTTED)&&_.attr("marker-end","url("+v+"#"+a+"-stickTopArrowHead)"),(d===n.db.LINETYPE.STICK_BOTTOM||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED)&&_.attr("marker-end","url("+v+"#"+a+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&_.attr("marker-start","url("+v+"#"+a+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr("marker-start","url("+v+"#"+a+"-solidTopArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&_.attr("marker-start","url("+v+"#"+a+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr("marker-start","url("+v+"#"+a+"-stickTopArrowHead)"),(d===n.db.LINETYPE.SOLID||d===n.db.LINETYPE.DOTTED)&&_.attr("marker-end","url("+v+"#"+a+"-arrowhead)"),(d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(_.attr("marker-start","url("+v+"#"+a+"-arrowhead)"),_.attr("marker-end","url("+v+"#"+a+"-arrowhead)")),(d===n.db.LINETYPE.SOLID_POINT||d===n.db.LINETYPE.DOTTED_POINT)&&_.attr("marker-end","url("+v+"#"+a+"-filled-head)"),(d===n.db.LINETYPE.SOLID_CROSS||d===n.db.LINETYPE.DOTTED_CROSS)&&_.attr("marker-end","url("+v+"#"+a+"-crosshead)"),f||Pt.showSequenceNumbers){const y=d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED,b=d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,E=6,S=XX(i,n);let T=s,C=o;y?(s<o?T=s+E*2:(T=s-E+(S?-5:0),T+=i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),_.attr("x1",T)):b?(o>s?C=o-2*E:(C=o-E,T+=i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),C+=S?15:0,_.attr("x2",C),_.attr("x1",T)):_.attr("x1",s+E);let x=0;const A=s===o,R=s<=o;A?x=e.fromBounds+1:b?x=R?e.toBounds-1:e.fromBounds+1:x=R?e.fromBounds+1:e.toBounds-1;let I="12px";const L=h.toString().length;L>5?I="7px":L>3&&(I="9px"),t.append("line").attr("x1",x).attr("y1",r).attr("x2",x).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+v+"#"+a+"-sequencenumber)"),t.append("text").attr("x",x).attr("y",r+4).attr("font-family","sans-serif").attr("font-size",I).attr("text-anchor","middle").attr("class","sequenceNumber").text(h)}},"drawMessage"),NVr=k(function(t,e,r,n,i,a,s){let o=0,l=0,u,d=0;for(const h of n){const f=e.get(h),p=f.box;u&&u!=p&&(s||mr.models.addBox(u),l+=Pt.boxMargin+u.margin),p&&p!=u&&(s||(p.x=o+l,p.y=i),l+=p.margin),f.width=Cr.getMax(f.width||Pt.width,Pt.width),f.height=Cr.getMax(f.height||Pt.height,Pt.height),f.margin=f.margin||Pt.actorMargin,d=Cr.getMax(d,f.height),r.get(f.name)&&(l+=f.width/2),f.x=o+l,f.starty=mr.getVerticalPos(),mr.insert(f.x,i,f.x+f.width,f.height),o+=f.width+l,f.box&&(f.box.width=o+p.margin-f.box.x),l=f.margin,u=f.box,mr.models.addActor(f)}u&&!s&&mr.models.addBox(u),mr.bumpVerticalPos(d)},"addActorRenderingData"),Pne=k(async function(t,e,r,n,i,a,s){if(n){let o=0;mr.bumpVerticalPos(Pt.boxMargin*2);for(const l of r){const u=e.get(l);u.stopy||(u.stopy=mr.getVerticalPos());const d=await ns.drawActor(t,u,Pt,!0,i,a,s);o=Cr.getMax(o,d)}mr.bumpVerticalPos(o+Pt.boxMargin)}else for(const o of r){const l=e.get(o);await ns.drawActor(t,l,Pt,!1,i,a,s)}},"drawActors"),Qnt=k(function(t,e,r,n){let i=0,a=0;for(const s of r){const o=e.get(s),l=DVr(o),u=ns.drawPopup(t,o,l,Pt,Pt.forceMenus,n);u.height>i&&(i=u.height),u.width+o.x>a&&(a=u.width+o.x)}return{maxHeight:i,maxWidth:a}},"drawActorsPopup"),Znt=k(function(t){Ro(Pt,t),t.fontFamily&&(Pt.actorFontFamily=Pt.noteFontFamily=Pt.messageFontFamily=t.fontFamily),t.fontSize&&(Pt.actorFontSize=Pt.noteFontSize=Pt.messageFontSize=t.fontSize),t.fontWeight&&(Pt.actorFontWeight=Pt.noteFontWeight=Pt.messageFontWeight=t.fontWeight)},"setConf"),XG=k(function(t){return mr.activations.filter(function(e){return e.actor===t})},"actorActivations"),rNe=k(function(t,e){const r=e.get(t),n=XG(t),i=n.reduce(function(s,o){return Cr.getMin(s,o.startx)},r.x+r.width/2-1),a=n.reduce(function(s,o){return Cr.getMax(s,o.stopx)},r.x+r.width/2+1);return[i,a]},"activationBounds");function of(t,e,r,n,i){mr.bumpVerticalPos(r);let a=n;if(e.id&&e.message&&t[e.id]){const s=t[e.id].width,o=Zb(Pt);e.message=ci.wrapLabel(`[${e.message}]`,s-2*Pt.wrapPadding,o),e.width=s,e.wrap=!0;const l=ci.calculateTextDimensions(e.message,o),u=Cr.getMax(l.height,Pt.labelBoxHeight);a=n+u,Pe.debug(`${u} - ${e.message}`)}i(e),mr.bumpVerticalPos(a)}k(of,"adjustLoopHeightForWrap");function Jnt(t,e,r,n,i,a,s){function o(d,h){d.x<i.get(t.from).x?(mr.insert(e.stopx-h,e.starty,e.startx,e.stopy+d.height/2+Pt.noteMargin),e.stopx=e.stopx+h):(mr.insert(e.startx,e.starty,e.stopx+h,e.stopy+d.height/2+Pt.noteMargin),e.stopx=e.stopx-h)}k(o,"receiverAdjustment");function l(d,h){d.x<i.get(t.to).x?(mr.insert(e.startx-h,e.starty,e.stopx,e.stopy+d.height/2+Pt.noteMargin),e.startx=e.startx+h):(mr.insert(e.stopx,e.starty,e.startx+h,e.stopy+d.height/2+Pt.noteMargin),e.startx=e.startx-h)}k(l,"senderAdjustment");const u=[pP.ACTOR,pP.CONTROL,pP.ENTITY,pP.DATABASE];if(a.get(t.to)==n){const d=i.get(t.to),h=u.includes(d.type)?Vy/2+3:d.width/2+3;o(d,h),d.starty=r-d.height/2,mr.bumpVerticalPos(d.height/2)}else if(s.get(t.from)==n){const d=i.get(t.from);if(Pt.mirrorActors){const h=u.includes(d.type)?Vy/2:d.width/2;l(d,h)}d.stopy=r-d.height/2,mr.bumpVerticalPos(d.height/2)}else if(s.get(t.to)==n){const d=i.get(t.to);if(Pt.mirrorActors){const h=u.includes(d.type)?Vy/2+3:d.width/2+3;o(d,h)}d.stopy=r-d.height/2,mr.bumpVerticalPos(d.height/2)}}k(Jnt,"adjustCreatedDestroyedData");var kVr=k(async function(t,e,r,n){const{securityLevel:i,sequence:a,look:s}=vt();Pt=a;let o;i==="sandbox"&&(o=dr("#i"+e));const l=dr(i==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=i==="sandbox"?o.nodes()[0].contentDocument:document;mr.init(),Pe.debug(n.db);const d=i==="sandbox"?l.select(`[id="${e}"]`):dr(`[id="${e}"]`),h=n.db.getActors(),f=n.db.getCreatedActors(),p=n.db.getDestroyedActors(),g=n.db.getBoxes();let m=n.db.getActorKeys();const _=n.db.getMessages(),v=n.db.getDiagramTitle(),y=n.db.hasAtLeastOneBox(),b=n.db.hasAtLeastOneBoxWithTitle(),E=await eit(h,_,n);if(Pt.height=await tit(h,E,g),ns.insertComputerIcon(d,e),ns.insertDatabaseIcon(d,e),ns.insertClockIcon(d,e),y&&(mr.bumpVerticalPos(Pt.boxMargin),b&&mr.bumpVerticalPos(g[0].textMaxHeight)),Pt.hideUnusedParticipants===!0){const B=new Set;_.forEach(V=>{B.add(V.from),B.add(V.to)}),m=m.filter(V=>B.has(V))}const S=new Map(m.map((B,V)=>[h.get(B)?.name??B,V]));NVr(d,h,f,m,0,_,!1);const T=await UVr(_,h,E,n);ns.insertArrowHead(d,e),ns.insertArrowCrossHead(d,e),ns.insertArrowFilledHead(d,e),ns.insertSequenceNumber(d,e),ns.insertSolidTopArrowHead(d,e),ns.insertSolidBottomArrowHead(d,e),ns.insertStickTopArrowHead(d,e),ns.insertStickBottomArrowHead(d,e),s==="neo"&&ns.insertDropShadow(d,Pt);function C(B,V){const z=mr.endActivation(B);z.starty+18>V&&(z.starty=V-6,V+=12),ns.drawActivation(d,z,V,Pt,XG(B.from).length,n,S),mr.insert(z.startx,V-10,z.stopx,V)}k(C,"activeEnd");let x=1,A=1;const R=[],I=[];let L=0;for(const B of _){let V,z,G;switch(B.type){case n.db.LINETYPE.NOTE:mr.resetVerticalPos(),z=B.noteModel,await OVr(d,z,B.id);break;case n.db.LINETYPE.ACTIVE_START:mr.newActivation(B,d,h);break;case n.db.LINETYPE.CENTRAL_CONNECTION:mr.newActivation(B,d,h);break;case n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:mr.newActivation(B,d,h);break;case n.db.LINETYPE.ACTIVE_END:C(B,mr.getVerticalPos());break;case n.db.LINETYPE.LOOP_START:of(T,B,Pt.boxMargin,Pt.boxMargin+Pt.boxTextMargin,Y=>mr.newLoop(Y));break;case n.db.LINETYPE.LOOP_END:V=mr.endLoop(),await ns.drawLoop(d,V,"loop",Pt,B),mr.bumpVerticalPos(V.stopy-mr.getVerticalPos()),mr.models.addLoop(V);break;case n.db.LINETYPE.RECT_START:of(T,B,Pt.boxMargin,Pt.boxMargin,Y=>mr.newLoop(void 0,Y.message));break;case n.db.LINETYPE.RECT_END:V=mr.endLoop(),I.push(V),mr.models.addLoop(V),mr.bumpVerticalPos(V.stopy-mr.getVerticalPos());break;case n.db.LINETYPE.OPT_START:of(T,B,Pt.boxMargin,Pt.boxMargin+Pt.boxTextMargin,Y=>mr.newLoop(Y));break;case n.db.LINETYPE.OPT_END:V=mr.endLoop(),await ns.drawLoop(d,V,"opt",Pt,B),mr.bumpVerticalPos(V.stopy-mr.getVerticalPos()),mr.models.addLoop(V);break;case n.db.LINETYPE.ALT_START:of(T,B,Pt.boxMargin,Pt.boxMargin+Pt.boxTextMargin,Y=>mr.newLoop(Y));break;case n.db.LINETYPE.ALT_ELSE:of(T,B,Pt.boxMargin+Pt.boxTextMargin,Pt.boxMargin,Y=>mr.addSectionToLoop(Y));break;case n.db.LINETYPE.ALT_END:V=mr.endLoop(),await ns.drawLoop(d,V,"alt",Pt,B),mr.bumpVerticalPos(V.stopy-mr.getVerticalPos()),mr.models.addLoop(V);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:of(T,B,Pt.boxMargin,Pt.boxMargin+Pt.boxTextMargin,Y=>mr.newLoop(Y)),mr.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:of(T,B,Pt.boxMargin+Pt.boxTextMargin,Pt.boxMargin,Y=>mr.addSectionToLoop(Y));break;case n.db.LINETYPE.PAR_END:V=mr.endLoop(),await ns.drawLoop(d,V,"par",Pt,B),mr.bumpVerticalPos(V.stopy-mr.getVerticalPos()),mr.models.addLoop(V);break;case n.db.LINETYPE.AUTONUMBER:x=B.message.start||x,A=B.message.step||A,B.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:of(T,B,Pt.boxMargin,Pt.boxMargin+Pt.boxTextMargin,Y=>mr.newLoop(Y));break;case n.db.LINETYPE.CRITICAL_OPTION:of(T,B,Pt.boxMargin+Pt.boxTextMargin,Pt.boxMargin,Y=>mr.addSectionToLoop(Y));break;case n.db.LINETYPE.CRITICAL_END:V=mr.endLoop(),await ns.drawLoop(d,V,"critical",Pt,B),mr.bumpVerticalPos(V.stopy-mr.getVerticalPos()),mr.models.addLoop(V);break;case n.db.LINETYPE.BREAK_START:of(T,B,Pt.boxMargin,Pt.boxMargin+Pt.boxTextMargin,Y=>mr.newLoop(Y));break;case n.db.LINETYPE.BREAK_END:V=mr.endLoop(),await ns.drawLoop(d,V,"break",Pt,B),mr.bumpVerticalPos(V.stopy-mr.getVerticalPos()),mr.models.addLoop(V);break;default:try{G=B.msgModel,G.starty=mr.getVerticalPos(),G.sequenceIndex=x,G.sequenceVisible=n.db.showSequenceNumbers(),G.id=B.id,G.from=B.from,G.to=B.to;const Y=await Xnt(d,G);Jnt(B,G,Y,L,h,f,p),R.push({messageModel:G,lineStartY:Y,msg:B}),mr.models.addMessage(G)}catch(Y){Pe.error("error while drawing message",Y)}}[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.SOLID_TOP,n.db.LINETYPE.SOLID_BOTTOM,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.SOLID_TOP_DOTTED,n.db.LINETYPE.SOLID_BOTTOM_DOTTED,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(B.type)&&(x=Math.round((x+A)*100)/100),L++}Pe.debug("createdActors",f),Pe.debug("destroyedActors",p),await Pne(d,h,m,!1,e,n,S);for(const B of R)await IVr(d,B.messageModel,B.lineStartY,n,B.msg,e);Pt.mirrorActors&&await Pne(d,h,m,!0,e,n,S),I.forEach(B=>ns.drawBackgroundRect(d,B)),Wnt(d,h,m,Pt);for(const B of mr.models.boxes){B.height=mr.getVerticalPos()-B.y,mr.insert(B.x,B.y,B.x+B.width,B.height);const V=Pt.boxMargin*2;B.startx=B.x-V,B.starty=B.y-V*.25,B.stopx=B.startx+B.width+2*V,B.stopy=B.starty+B.height+V*.75,B.stroke="rgb(0,0,0, 0.5)",ns.drawBox(d,B,Pt)}y&&mr.bumpVerticalPos(Pt.boxMargin);const F=Qnt(d,h,m,u),{bounds:O}=mr.getBounds();O.startx===void 0&&(O.startx=0),O.starty===void 0&&(O.starty=0),O.stopx===void 0&&(O.stopx=0),O.stopy===void 0&&(O.stopy=0);let D=O.stopy-O.starty;D<F.maxHeight&&(D=F.maxHeight);let M=D+2*Pt.diagramMarginY;Pt.mirrorActors&&(M=M-Pt.boxMargin+Pt.bottomMarginAdj);let P=O.stopx-O.startx;P<F.maxWidth&&(P=F.maxWidth);const N=P+2*Pt.diagramMarginX;v&&d.append("text").text(v).attr("x",(O.stopx-O.startx)/2-2*Pt.diagramMarginX).attr("y",-25),Xo(d,M,N,Pt.useMaxWidth);const $=v?40:0,U=h.size&&s==="neo"?30:0;d.attr("viewBox",O.startx-Pt.diagramMarginX+" -"+(Pt.diagramMarginY+$)+" "+N+" "+(M+$+U)),Pe.debug("models:",mr.models)},"draw");async function eit(t,e,r){const n={};for(const i of e)if(t.get(i.to)&&t.get(i.from)){const a=t.get(i.to);if(i.placement===r.db.PLACEMENT.LEFTOF&&!a.prevActor||i.placement===r.db.PLACEMENT.RIGHTOF&&!a.nextActor)continue;const s=i.placement!==void 0,o=!s,l=s?iT(Pt):Zb(Pt),u=i.wrap?ci.wrapLabel(i.message,Pt.width-2*Pt.wrapPadding,l):i.message,h=(ko(u)?await P5(i.message,vt()):ci.calculateTextDimensions(u,l)).width+2*Pt.wrapPadding;o&&i.from===a.nextActor?n[i.to]=Cr.getMax(n[i.to]||0,h):o&&i.from===a.prevActor?n[i.from]=Cr.getMax(n[i.from]||0,h):o&&i.from===i.to?(n[i.from]=Cr.getMax(n[i.from]||0,h/2),n[i.to]=Cr.getMax(n[i.to]||0,h/2)):i.placement===r.db.PLACEMENT.RIGHTOF?n[i.from]=Cr.getMax(n[i.from]||0,h):i.placement===r.db.PLACEMENT.LEFTOF?n[a.prevActor]=Cr.getMax(n[a.prevActor]||0,h):i.placement===r.db.PLACEMENT.OVER&&(a.prevActor&&(n[a.prevActor]=Cr.getMax(n[a.prevActor]||0,h/2)),a.nextActor&&(n[i.from]=Cr.getMax(n[i.from]||0,h/2)))}return Pe.debug("maxMessageWidthPerActor:",n),n}k(eit,"getMaxMessageWidthPerActor");var DVr=k(function(t){let e=0;const r=Lne(Pt);for(const n in t.links){const a=ci.calculateTextDimensions(n,r).width+2*Pt.wrapPadding+2*Pt.boxMargin;e<a&&(e=a)}return e},"getRequiredPopupWidth");async function tit(t,e,r){let n=0;for(const a of t.keys()){const s=t.get(a);s.wrap&&(s.description=ci.wrapLabel(s.description,Pt.width-2*Pt.wrapPadding,Lne(Pt)));const o=ko(s.description)?await P5(s.description,vt()):ci.calculateTextDimensions(s.description,Lne(Pt));s.width=s.wrap?Pt.width:Cr.getMax(Pt.width,o.width+2*Pt.wrapPadding),s.height=s.wrap?Cr.getMax(o.height,Pt.height):Pt.height,n=Cr.getMax(n,s.height)}for(const a in e){const s=t.get(a);if(!s)continue;const o=t.get(s.nextActor);if(!o){const h=e[a]+Pt.actorMargin-s.width/2;s.margin=Cr.getMax(h,Pt.actorMargin);continue}const u=e[a]+Pt.actorMargin-s.width/2-o.width/2;s.margin=Cr.getMax(u,Pt.actorMargin)}let i=0;return r.forEach(a=>{const s=Zb(Pt);let o=a.actorKeys.reduce((h,f)=>h+=t.get(f).width+(t.get(f).margin||0),0);const l=Pt.boxMargin*8;o+=l,o-=2*Pt.boxTextMargin,a.wrap&&(a.name=ci.wrapLabel(a.name,o-2*Pt.wrapPadding,s));const u=ci.calculateTextDimensions(a.name,s);i=Cr.getMax(u.height,i);const d=Cr.getMax(o,u.width+2*Pt.wrapPadding);if(a.margin=Pt.boxTextMargin,o<d){const h=(d-o)/2;a.margin+=h}}),r.forEach(a=>a.textMaxHeight=i),Cr.getMax(n,Pt.height)}k(tit,"calculateActorMargins");var MVr=k(async function(t,e,r){const n=e.get(t.from),i=e.get(t.to),a=n.x,s=i.x,o=t.wrap&&t.message;let l=ko(t.message)?await P5(t.message,vt()):ci.calculateTextDimensions(o?ci.wrapLabel(t.message,Pt.width,iT(Pt)):t.message,iT(Pt));const u={width:o?Pt.width:Cr.getMax(Pt.width,l.width+2*Pt.noteMargin),height:0,startx:n.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===r.db.PLACEMENT.RIGHTOF?(u.width=o?Cr.getMax(Pt.width,l.width):Cr.getMax(n.width/2+i.width/2,l.width+2*Pt.noteMargin),u.startx=a+(n.width+Pt.actorMargin)/2):t.placement===r.db.PLACEMENT.LEFTOF?(u.width=o?Cr.getMax(Pt.width,l.width+2*Pt.noteMargin):Cr.getMax(n.width/2+i.width/2,l.width+2*Pt.noteMargin),u.startx=a-u.width+(n.width-Pt.actorMargin)/2):t.to===t.from?(l=ci.calculateTextDimensions(o?ci.wrapLabel(t.message,Cr.getMax(Pt.width,n.width),iT(Pt)):t.message,iT(Pt)),u.width=o?Cr.getMax(Pt.width,n.width):Cr.getMax(n.width,Pt.width,l.width+2*Pt.noteMargin),u.startx=a+(n.width-u.width)/2):(u.width=Math.abs(a+n.width/2-(s+i.width/2))+Pt.actorMargin,u.startx=a<s?a+n.width/2-Pt.actorMargin/2:s+i.width/2-Pt.actorMargin/2),o&&(u.message=ci.wrapLabel(t.message,u.width-2*Pt.wrapPadding,iT(Pt))),Pe.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]`),u},"buildNoteModel"),LVr=4,XX=k(function(t,e){const{CENTRAL_CONNECTION:r,CENTRAL_CONNECTION_REVERSE:n,CENTRAL_CONNECTION_DUAL:i}=e.db.LINETYPE;return[r,n,i].includes(t.centralConnection)},"hasCentralConnection"),PVr=k(function(t,e,r){const{CENTRAL_CONNECTION_REVERSE:n,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:s}=e.db.LINETYPE;let o=0;return(t.centralConnection===n||t.centralConnection===i)&&(o+=LVr),(t.centralConnection===n||t.centralConnection===i)&&(t.type===a||t.type===s)&&(o+=r?0:-6),o},"calculateCentralConnectionOffset"),rit=k(function(t,e){const{SOLID_ARROW_TOP_REVERSE:r,SOLID_ARROW_TOP_REVERSE_DOTTED:n,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:a,STICK_ARROW_TOP_REVERSE:s,STICK_ARROW_TOP_REVERSE_DOTTED:o,STICK_ARROW_BOTTOM_REVERSE:l,STICK_ARROW_BOTTOM_REVERSE_DOTTED:u}=e.db.LINETYPE;return[r,n,i,a,s,o,l,u].includes(t.type)},"isReverseArrowType"),FVr=k(function(t,e){const{BIDIRECTIONAL_SOLID:r,BIDIRECTIONAL_DOTTED:n}=e.db.LINETYPE;return[r,n].includes(t.type)},"isBidirectionalArrowType"),BVr=k(function(t,e,r){const{look:n}=vt();if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type))return{};const[i,a]=rNe(t.from,e),[s,o]=rNe(t.to,e),l=i<=s;let u=l?a:i,d=l?s:o;n==="neo"&&(t.type!==r.db.LINETYPE.SOLID_OPEN&&(d+=l?-3:3),(t.type===r.db.LINETYPE.BIDIRECTIONAL_SOLID||t.type===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(u+=l?3:-3)),u+=PVr(t,r,l);const h=Math.abs(s-o)>2,f=k(_=>l?-_:_,"adjustValue");t.from===t.to?d=u:(t.activate&&!h&&(d+=f(Pt.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(d+=f(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(u-=f(3)));const p=[i,a,s,o],g=Math.abs(u-d);t.wrap&&t.message&&(t.message=ci.wrapLabel(t.message,Cr.getMax(g+2*Pt.wrapPadding,Pt.width),Zb(Pt)));const m=ci.calculateTextDimensions(t.message,Zb(Pt));return{width:Cr.getMax(t.wrap?0:m.width+2*Pt.wrapPadding,g+2*Pt.wrapPadding,Pt.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,p),toBounds:Math.max.apply(null,p)}},"buildMessageModel"),UVr=k(async function(t,e,r,n){const i={},a=[];let s,o,l;for(const u of t){switch(u.type){case n.db.LINETYPE.LOOP_START:case n.db.LINETYPE.ALT_START:case n.db.LINETYPE.OPT_START:case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:case n.db.LINETYPE.CRITICAL_START:case n.db.LINETYPE.BREAK_START:a.push({id:u.id,msg:u.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case n.db.LINETYPE.ALT_ELSE:case n.db.LINETYPE.PAR_AND:case n.db.LINETYPE.CRITICAL_OPTION:u.message&&(s=a.pop(),i[s.id]=s,i[u.id]=s,a.push(s));break;case n.db.LINETYPE.LOOP_END:case n.db.LINETYPE.ALT_END:case n.db.LINETYPE.OPT_END:case n.db.LINETYPE.PAR_END:case n.db.LINETYPE.CRITICAL_END:case n.db.LINETYPE.BREAK_END:s=a.pop(),i[s.id]=s;break;case n.db.LINETYPE.ACTIVE_START:{const h=e.get(u.from?u.from:u.to.actor),f=XG(u.from?u.from:u.to.actor).length,p=h.x+h.width/2+(f-1)*Pt.activationWidth/2,g={startx:p,stopx:p+Pt.activationWidth,actor:u.from,enabled:!0};mr.activations.push(g)}break;case n.db.LINETYPE.ACTIVE_END:{const h=mr.activations.map(f=>f.actor).lastIndexOf(u.from);mr.activations.splice(h,1).splice(0,1)}break}u.placement!==void 0?(o=await MVr(u,e,n),u.noteModel=o,a.forEach(h=>{s=h,s.from=Cr.getMin(s.from,o.startx),s.to=Cr.getMax(s.to,o.startx+o.width),s.width=Cr.getMax(s.width,Math.abs(s.from-s.to))-Pt.labelBoxWidth})):(l=BVr(u,e,n),u.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach(h=>{if(s=h,l.startx===l.stopx){const f=e.get(u.from),p=e.get(u.to);s.from=Cr.getMin(f.x-l.width/2,f.x-f.width/2,s.from),s.to=Cr.getMax(p.x+l.width/2,p.x+f.width/2,s.to),s.width=Cr.getMax(s.width,Math.abs(s.to-s.from))-Pt.labelBoxWidth}else s.from=Cr.getMin(l.startx,s.from),s.to=Cr.getMax(l.stopx,s.to),s.width=Cr.getMax(s.width,l.width)-Pt.labelBoxWidth}))}return mr.activations=[],Pe.debug("Loop type widths:",i),i},"calculateLoopBounds"),$Vr={bounds:mr,drawActors:Pne,drawActorsPopup:Qnt,setConf:Znt,draw:kVr},GVr={parser:Kqr,get db(){return new Zqr},renderer:$Vr,styles:eVr,init:k(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,KJ({sequence:{wrap:t.wrap}}))},"init")};const zVr=Object.freeze(Object.defineProperty({__proto__:null,diagram:GVr},Symbol.toStringTag,{value:"Module"}));var Fne=(function(){var t=k(function(Xe,et,Ie,we){for(Ie=Ie||{},we=Xe.length;we--;Ie[Xe[we]]=et);return Ie},"o"),e=[1,18],r=[1,19],n=[1,20],i=[1,41],a=[1,26],s=[1,42],o=[1,24],l=[1,25],u=[1,32],d=[1,33],h=[1,34],f=[1,45],p=[1,35],g=[1,36],m=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],E=[1,30],S=[1,31],T=[1,44],C=[1,46],x=[1,43],A=[1,47],R=[1,9],I=[1,8,9],L=[1,58],F=[1,59],O=[1,60],D=[1,61],M=[1,62],P=[1,63],N=[1,64],$=[1,8,9,41],U=[1,77],B=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],V=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],z=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],Y=[13,60,68,69,70,71,72,86,100,102,103],W=[1,103],Q=[1,121],ie=[1,117],Z=[1,113],re=[1,119],K=[1,114],j=[1,115],se=[1,116],le=[1,118],_e=[1,120],ye=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],Se=[12,39],be=[1,8,9,39,41,44,46],ke=[1,8,9,22],Ae=[1,153],tt=[1,8,9,61],Oe=[1,8,9,22,50,60,61,82,86,87,88,89,90],je={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:k(function(et,Ie,we,ce,Te,fe,Be){var me=fe.length-1;switch(Te){case 8:this.$=fe[me-1];break;case 9:case 10:case 13:case 15:this.$=fe[me];break;case 11:case 14:this.$=fe[me-2]+"."+fe[me];break;case 12:case 16:this.$=fe[me-1]+fe[me];break;case 17:case 18:this.$=fe[me-1]+"~"+fe[me]+"~";break;case 19:ce.addRelation(fe[me]);break;case 20:fe[me-1].title=ce.cleanupLabel(fe[me]),ce.addRelation(fe[me-1]);break;case 31:this.$=fe[me].trim(),ce.setAccTitle(this.$);break;case 32:case 33:this.$=fe[me].trim(),ce.setAccDescription(this.$);break;case 34:ce.addClassesToNamespace(fe[me-3],fe[me-1][0],fe[me-1][1]),ce.popNamespace();break;case 35:ce.addClassesToNamespace(fe[me-4],fe[me-1][0],fe[me-1][1]),ce.popNamespace();break;case 36:this.$=ce.addNamespace(fe[me]);break;case 37:this.$=ce.addNamespace(fe[me-1],fe[me]);break;case 38:this.$=[[fe[me]],[]];break;case 39:this.$=[[fe[me-1]],[]];break;case 40:fe[me][0].unshift(fe[me-2]),this.$=fe[me];break;case 41:this.$=[[],[fe[me]]];break;case 42:this.$=[[],[fe[me-1]]];break;case 43:fe[me][1].unshift(fe[me-2]),this.$=fe[me];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=fe[me];break;case 48:ce.setCssClass(fe[me-2],fe[me]);break;case 49:ce.addMembers(fe[me-3],fe[me-1]);break;case 51:ce.setCssClass(fe[me-5],fe[me-3]),ce.addMembers(fe[me-5],fe[me-1]);break;case 52:ce.addAnnotation(fe[me-3],fe[me-1]);break;case 53:ce.addAnnotation(fe[me-6],fe[me-4]),ce.addMembers(fe[me-6],fe[me-1]);break;case 54:ce.addAnnotation(fe[me-5],fe[me-3]);break;case 55:this.$=fe[me],ce.addClass(fe[me]);break;case 56:this.$=fe[me-1],ce.addClass(fe[me-1]),ce.setClassLabel(fe[me-1],fe[me]);break;case 60:ce.addAnnotation(fe[me],fe[me-2]);break;case 61:case 74:this.$=[fe[me]];break;case 62:fe[me].push(fe[me-1]),this.$=fe[me];break;case 63:break;case 64:ce.addMember(fe[me-1],ce.cleanupLabel(fe[me]));break;case 65:break;case 66:break;case 67:this.$={id1:fe[me-2],id2:fe[me],relation:fe[me-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:fe[me-3],id2:fe[me],relation:fe[me-1],relationTitle1:fe[me-2],relationTitle2:"none"};break;case 69:this.$={id1:fe[me-3],id2:fe[me],relation:fe[me-2],relationTitle1:"none",relationTitle2:fe[me-1]};break;case 70:this.$={id1:fe[me-4],id2:fe[me],relation:fe[me-2],relationTitle1:fe[me-3],relationTitle2:fe[me-1]};break;case 71:this.$=ce.addNote(fe[me],fe[me-1]);break;case 72:this.$=ce.addNote(fe[me]);break;case 73:this.$=fe[me-2],ce.defineClass(fe[me-1],fe[me]);break;case 75:this.$=fe[me-2].concat([fe[me]]);break;case 76:ce.setDirection("TB");break;case 77:ce.setDirection("BT");break;case 78:ce.setDirection("RL");break;case 79:ce.setDirection("LR");break;case 80:this.$={type1:fe[me-2],type2:fe[me],lineType:fe[me-1]};break;case 81:this.$={type1:"none",type2:fe[me],lineType:fe[me-1]};break;case 82:this.$={type1:fe[me-1],type2:"none",lineType:fe[me]};break;case 83:this.$={type1:"none",type2:"none",lineType:fe[me]};break;case 84:this.$=ce.relationType.AGGREGATION;break;case 85:this.$=ce.relationType.EXTENSION;break;case 86:this.$=ce.relationType.COMPOSITION;break;case 87:this.$=ce.relationType.DEPENDENCY;break;case 88:this.$=ce.relationType.LOLLIPOP;break;case 89:this.$=ce.lineType.LINE;break;case 90:this.$=ce.lineType.DOTTED_LINE;break;case 91:case 97:this.$=fe[me-2],ce.setClickEvent(fe[me-1],fe[me]);break;case 92:case 98:this.$=fe[me-3],ce.setClickEvent(fe[me-2],fe[me-1]),ce.setTooltip(fe[me-2],fe[me]);break;case 93:this.$=fe[me-2],ce.setLink(fe[me-1],fe[me]);break;case 94:this.$=fe[me-3],ce.setLink(fe[me-2],fe[me-1],fe[me]);break;case 95:this.$=fe[me-3],ce.setLink(fe[me-2],fe[me-1]),ce.setTooltip(fe[me-2],fe[me]);break;case 96:this.$=fe[me-4],ce.setLink(fe[me-3],fe[me-2],fe[me]),ce.setTooltip(fe[me-3],fe[me-1]);break;case 99:this.$=fe[me-3],ce.setClickEvent(fe[me-2],fe[me-1],fe[me]);break;case 100:this.$=fe[me-4],ce.setClickEvent(fe[me-3],fe[me-2],fe[me-1]),ce.setTooltip(fe[me-3],fe[me]);break;case 101:this.$=fe[me-3],ce.setLink(fe[me-2],fe[me]);break;case 102:this.$=fe[me-4],ce.setLink(fe[me-3],fe[me-1],fe[me]);break;case 103:this.$=fe[me-4],ce.setLink(fe[me-3],fe[me-1]),ce.setTooltip(fe[me-3],fe[me]);break;case 104:this.$=fe[me-5],ce.setLink(fe[me-4],fe[me-2],fe[me]),ce.setTooltip(fe[me-4],fe[me-1]);break;case 105:this.$=fe[me-2],ce.setCssStyle(fe[me-1],fe[me]);break;case 106:ce.setCssClass(fe[me-1],fe[me]);break;case 107:this.$=[fe[me]];break;case 108:fe[me-2].push(fe[me]),this.$=fe[me-2];break;case 110:this.$=fe[me-1]+fe[me];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:_,75:v,76:y,78:b,82:E,83:S,86:T,100:C,102:x,103:A},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(R,[2,5],{8:[1,48]}),{8:[1,49]},t(I,[2,19],{22:[1,50]}),t(I,[2,21]),t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,30]),{34:[1,51]},{36:[1,52]},t(I,[2,33]),t(I,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:L,69:F,70:O,71:D,72:M,73:P,74:N}),{39:[1,65]},t($,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(I,[2,65]),t(I,[2,66]),{16:69,60:f,86:T,100:C,102:x},{16:39,17:40,19:70,60:f,86:T,100:C,102:x,103:A},{16:39,17:40,19:71,60:f,86:T,100:C,102:x,103:A},{16:39,17:40,19:72,60:f,86:T,100:C,102:x,103:A},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:T,100:C,102:x,103:A},{13:U,55:76},{58:78,60:[1,79]},t(I,[2,76]),t(I,[2,77]),t(I,[2,78]),t(I,[2,79]),t(B,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:f,86:T,100:C,102:x,103:A}),t(B,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:T,100:C,102:x,103:A},{16:39,17:40,19:87,60:f,86:T,100:C,102:x,103:A},t(V,[2,133]),t(V,[2,134]),t(V,[2,135]),t(V,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(R,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:r,37:n,42:i,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:_,75:v,76:y,78:b,82:E,83:S,86:T,100:C,102:x,103:A}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:_,75:v,76:y,78:b,82:E,83:S,86:T,100:C,102:x,103:A},t(I,[2,20]),t(I,[2,31]),t(I,[2,32]),{13:[1,91],16:39,17:40,19:90,60:f,86:T,100:C,102:x,103:A},{53:92,66:56,67:57,68:L,69:F,70:O,71:D,72:M,73:P,74:N},t(I,[2,64]),{67:93,73:P,74:N},t(z,[2,83],{66:94,68:L,69:F,70:O,71:D,72:M}),t(G,[2,84]),t(G,[2,85]),t(G,[2,86]),t(G,[2,87]),t(G,[2,88]),t(Y,[2,89]),t(Y,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:s,54:u,56:d},{16:100,60:f,86:T,100:C,102:x},{41:[1,102],45:101,51:W},{16:104,60:f,86:T,100:C,102:x},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Q,50:ie,59:110,60:Z,82:re,84:111,85:112,86:K,87:j,88:se,89:le,90:_e},{60:[1,122]},{13:U,55:123},t($,[2,72]),t($,[2,138]),{22:Q,50:ie,59:124,60:Z,61:[1,125],82:re,84:111,85:112,86:K,87:j,88:se,89:le,90:_e},t(ye,[2,74]),{16:39,17:40,19:126,60:f,86:T,100:C,102:x,103:A},t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),{11:127,12:Ue,39:[2,36]},t(Se,[2,9],{16:85,17:86,15:130,18:[1,129],60:f,86:T,100:C,102:x,103:A}),t(Se,[2,10]),t(be,[2,55],{11:131,12:Ue}),t(R,[2,7]),{9:[1,132]},t(ke,[2,67]),{16:39,17:40,19:133,60:f,86:T,100:C,102:x,103:A},{13:[1,135],16:39,17:40,19:134,60:f,86:T,100:C,102:x,103:A},t(z,[2,82],{66:136,68:L,69:F,70:O,71:D,72:M}),t(z,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:s,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t($,[2,48],{39:[1,142]}),{41:[1,143]},t($,[2,50]),{41:[2,61],45:144,51:W},{47:[1,145]},{16:39,17:40,19:146,60:f,86:T,100:C,102:x,103:A},t(I,[2,91],{13:[1,147]}),t(I,[2,93],{13:[1,149],77:[1,148]}),t(I,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(I,[2,105],{61:Ae}),t(tt,[2,107],{85:154,22:Q,50:ie,60:Z,82:re,86:K,87:j,88:se,89:le,90:_e}),t(Oe,[2,109]),t(Oe,[2,111]),t(Oe,[2,112]),t(Oe,[2,113]),t(Oe,[2,114]),t(Oe,[2,115]),t(Oe,[2,116]),t(Oe,[2,117]),t(Oe,[2,118]),t(Oe,[2,119]),t(I,[2,106]),t($,[2,71]),t(I,[2,73],{61:Ae}),{60:[1,155]},t(B,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:f,86:T,100:C,102:x,103:A},t(Se,[2,12]),t(be,[2,56]),{1:[2,4]},t(ke,[2,69]),t(ke,[2,68]),{16:39,17:40,19:158,60:f,86:T,100:C,102:x,103:A},t(z,[2,80]),t($,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:s,54:u,56:d},{45:163,51:W},t($,[2,49]),{41:[2,62]},t($,[2,52],{39:[1,164]}),t(I,[2,60]),t(I,[2,92]),t(I,[2,94]),t(I,[2,95],{77:[1,165]}),t(I,[2,98]),t(I,[2,99],{13:[1,166]}),t(I,[2,101],{13:[1,168],77:[1,167]}),{22:Q,50:ie,60:Z,82:re,84:169,85:112,86:K,87:j,88:se,89:le,90:_e},t(Oe,[2,110]),t(ye,[2,75]),{14:[1,170]},t(Se,[2,11]),t(ke,[2,70]),t($,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:W},t(I,[2,96]),t(I,[2,100]),t(I,[2,102]),t(I,[2,103],{77:[1,174]}),t(tt,[2,108],{85:154,22:Q,50:ie,60:Z,82:re,86:K,87:j,88:se,89:le,90:_e}),t(be,[2,8]),t($,[2,51]),{41:[1,175]},t($,[2,54]),t(I,[2,104]),t($,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:k(function(et,Ie){if(Ie.recoverable)this.trace(et);else{var we=new Error(et);throw we.hash=Ie,we}},"parseError"),parse:k(function(et){var Ie=this,we=[0],ce=[],Te=[null],fe=[],Be=this.table,me="",Ye=0,qe=0,lt=2,it=1,He=fe.slice.call(arguments,1),Je=Object.create(this.lexer),ht={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(ht.yy[rt]=this.yy[rt]);Je.setInput(et,ht.yy),ht.yy.lexer=Je,ht.yy.parser=this,typeof Je.yylloc>"u"&&(Je.yylloc={});var $e=Je.yylloc;fe.push($e);var xe=Je.options&&Je.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(gr){we.length=we.length-2*gr,Te.length=Te.length-gr,fe.length=fe.length-gr}k(pt,"popStack");function Ve(){var gr;return gr=ce.pop()||Je.lex()||it,typeof gr!="number"&&(gr instanceof Array&&(ce=gr,gr=ce.pop()),gr=Ie.symbols_[gr]||gr),gr}k(Ve,"lex");for(var Ut,kt,gt,Ct,mt={},qt,De,pr,or;;){if(kt=we[we.length-1],this.defaultActions[kt]?gt=this.defaultActions[kt]:((Ut===null||typeof Ut>"u")&&(Ut=Ve()),gt=Be[kt]&&Be[kt][Ut]),typeof gt>"u"||!gt.length||!gt[0]){var ir="";or=[];for(qt in Be[kt])this.terminals_[qt]&&qt>lt&&or.push("'"+this.terminals_[qt]+"'");Je.showPosition?ir="Parse error on line "+(Ye+1)+`:
`+Je.showPosition()+`
Expecting `+or.join(", ")+", got '"+(this.terminals_[Ut]||Ut)+"'":ir="Parse error on line "+(Ye+1)+": Unexpected "+(Ut==it?"end of input":"'"+(this.terminals_[Ut]||Ut)+"'"),this.parseError(ir,{text:Je.match,token:this.terminals_[Ut]||Ut,line:Je.yylineno,loc:$e,expected:or})}if(gt[0]instanceof Array&&gt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+Ut);switch(gt[0]){case 1:we.push(Ut),Te.push(Je.yytext),fe.push(Je.yylloc),we.push(gt[1]),Ut=null,qe=Je.yyleng,me=Je.yytext,Ye=Je.yylineno,$e=Je.yylloc;break;case 2:if(De=this.productions_[gt[1]][1],mt.$=Te[Te.length-De],mt._$={first_line:fe[fe.length-(De||1)].first_line,last_line:fe[fe.length-1].last_line,first_column:fe[fe.length-(De||1)].first_column,last_column:fe[fe.length-1].last_column},xe&&(mt._$.range=[fe[fe.length-(De||1)].range[0],fe[fe.length-1].range[1]]),Ct=this.performAction.apply(mt,[me,qe,Ye,ht.yy,gt[1],Te,fe].concat(He)),typeof Ct<"u")return Ct;De&&(we=we.slice(0,-1*De*2),Te=Te.slice(0,-1*De),fe=fe.slice(0,-1*De)),we.push(this.productions_[gt[1]][0]),Te.push(mt.$),fe.push(mt._$),pr=Be[we[we.length-2]][we[we.length-1]],we.push(pr);break;case 3:return!0}}return!0},"parse")},ct=(function(){var Xe={EOF:1,parseError:k(function(Ie,we){if(this.yy.parser)this.yy.parser.parseError(Ie,we);else throw new Error(Ie)},"parseError"),setInput:k(function(et,Ie){return this.yy=Ie||this.yy||{},this._input=et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var et=this._input[0];this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et;var Ie=et.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},"input"),unput:k(function(et){var Ie=et.length,we=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),we.length-1&&(this.yylineno-=we.length-1);var Te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:we?(we.length===ce.length?this.yylloc.first_column:0)+ce[ce.length-we.length].length-we[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[Te[0],Te[0]+this.yyleng-Ie]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(et){this.unput(this.match.slice(et))},"less"),pastInput:k(function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var et=this.pastInput(),Ie=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
`+Ie+"^"},"showPosition"),test_match:k(function(et,Ie){var we,ce,Te;if(this.options.backtrack_lexer&&(Te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Te.yylloc.range=this.yylloc.range.slice(0))),ce=et[0].match(/(?:\r\n?|\n).*/g),ce&&(this.yylineno+=ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ce?ce[ce.length-1].length-ce[ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(et[0].length),this.matched+=et[0],we=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),we)return we;if(this._backtrack){for(var fe in Te)this[fe]=Te[fe];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var et,Ie,we,ce;this._more||(this.yytext="",this.match="");for(var Te=this._currentRules(),fe=0;fe<Te.length;fe++)if(we=this._input.match(this.rules[Te[fe]]),we&&(!Ie||we[0].length>Ie[0].length)){if(Ie=we,ce=fe,this.options.backtrack_lexer){if(et=this.test_match(we,Te[fe]),et!==!1)return et;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(et=this.test_match(Ie,Te[ce]),et!==!1?et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var Ie=this.next();return Ie||this.lex()},"lex"),begin:k(function(Ie){this.conditionStack.push(Ie)},"begin"),popState:k(function(){var Ie=this.conditionStack.length-1;return Ie>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},"topState"),pushState:k(function(Ie){this.begin(Ie)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(Ie,we,ce,Te){switch(ce){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 44:return this.popState(),41;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return Xe})();je.lexer=ct;function Fe(){this.yy={}}return k(Fe,"Parser"),Fe.prototype=je,je.Parser=Fe,new Fe})();Fne.parser=Fne;var nit=Fne,nNe=["#","+","~","-",""],kx,iNe=(kx=class{constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";const n=ta(e,vt());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+v_(this.id);this.memberType==="method"&&(e+=`(${v_(this.parameters.trim())})`,this.returnType&&(e+=" : "+v_(this.returnType))),e=e.trim();const r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(a){const s=a[1]?a[1].trim():"";if(nNe.includes(s)&&(this.visibility=s),this.id=a[2],this.parameters=a[3]?a[3].trim():"",r=a[4]?a[4].trim():"",this.returnType=a[5]?a[5].trim():"",r===""){const o=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(o)&&(r=o,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const i=e.length,a=e.substring(0,1),s=e.substring(i-1);nNe.includes(a)&&(this.visibility=a),/[$*]/.exec(s)&&(r=s),this.id=e.substring(this.visibility===""?0:1,r===""?i:i-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const n=`${this.visibility?"\\"+this.visibility:""}${v_(this.id)}${this.memberType==="method"?`(${v_(this.parameters)})${this.returnType?" : "+v_(this.returnType):""}`:""}`;this.text=n.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},k(kx,"ClassMember"),kx),gP="classId-",aNe=0,Fv=k(t=>Cr.sanitizeText(t,vt()),"sanitizeText"),e1,iit=(e1=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=k(e=>{const r=pHe();dr(e).select("svg").selectAll("g").filter(function(){return dr(this).attr("title")!==null}).on("mouseover",a=>{const s=dr(a.currentTarget),o=s.attr("title");if(!o)return;const l=a.currentTarget.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.html(g1.sanitize(o)).style("left",`${window.scrollX+l.left+l.width/2}px`).style("top",`${window.scrollY+l.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),dr(a.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=ms,this.getAccTitle=Fs,this.setAccDescription=Bs,this.getAccDescription=Us,this.setDiagramTitle=ks,this.getDiagramTitle=bs,this.getConfig=k(()=>vt().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(e){const r=Cr.sanitizeText(e,vt());let n="",i=r;if(r.indexOf("~")>0){const a=r.split("~");i=Fv(a[0]),n=Fv(a[1])}return{className:i,type:n}}setClassLabel(e,r){const n=Cr.sanitizeText(e,vt());r&&(r=Fv(r));const{className:i}=this.splitClassNameAndType(n);this.classes.get(i).label=r,this.classes.get(i).text=`${r}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(e){const r=Cr.sanitizeText(e,vt()),{className:n,type:i}=this.splitClassNameAndType(r);if(this.classes.has(n))return;const a=Cr.sanitizeText(n,vt());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`&lt;${i}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:gP+a+"-"+aNe}),aNe++}addInterface(e,r){const n={id:`interface${this.interfaces.length}`,label:e,classId:r};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){const r=Cr.sanitizeText(e,vt());if(this.classes.has(r)){const n=this.classes.get(r).domId;return this.diagramId?`${this.diagramId}-${n}`:n}throw new Error("Class not found: "+r)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",ys()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){const r=typeof e=="number"?`note${e}`:e;return this.notes.get(r)}getNotes(){return this.notes}addRelation(e){Pe.debug("Adding relation: "+JSON.stringify(e));const r=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!r.includes(e.relation.type2)?(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1=`interface${this.interfaces.length-1}`):e.relation.type2===this.relationType.LOLLIPOP&&!r.includes(e.relation.type1)?(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2=`interface${this.interfaces.length-1}`):(this.addClass(e.id1),this.addClass(e.id2)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=Cr.sanitizeText(e.relationTitle1.trim(),vt()),e.relationTitle2=Cr.sanitizeText(e.relationTitle2.trim(),vt()),this.relations.push(e)}addAnnotation(e,r){const n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(r)}addMember(e,r){this.addClass(e);const n=this.splitClassNameAndType(e).className,i=this.classes.get(n);if(typeof r=="string"){const a=r.trim();a.startsWith("<<")&&a.endsWith(">>")?i.annotations.push(Fv(a.substring(2,a.length-2))):a.indexOf(")")>0?i.methods.push(new iNe(a,"method")):a&&i.members.push(new iNe(a,"attribute"))}}addMembers(e,r){Array.isArray(r)&&(r.reverse(),r.forEach(n=>this.addMember(e,n)))}addNote(e,r){const n=this.notes.size,i={id:`note${n}`,class:r,text:e,index:n};return this.notes.set(i.id,i),i.id}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),Fv(e.trim())}setCssClass(e,r){e.split(",").forEach(n=>{let i=n;/\d/.exec(n[0])&&(i=gP+i);const a=this.classes.get(i);a&&(a.cssClasses+=" "+r)})}defineClass(e,r){for(const n of e){let i=this.styleClasses.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,i)),r&&r.forEach(a=>{if(/color/.exec(a)){const s=a.replace("fill","bgFill");i.textStyles.push(s)}i.styles.push(a)}),this.classes.forEach(a=>{a.cssClasses.includes(n)&&a.styles.push(...r.flatMap(s=>s.split(",")))})}}setTooltip(e,r){e.split(",").forEach(n=>{r!==void 0&&(this.classes.get(n).tooltip=Fv(r))})}getTooltip(e,r){return r&&this.namespaces.has(r)?this.namespaces.get(r).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,r,n){const i=vt();e.split(",").forEach(a=>{let s=a;/\d/.exec(a[0])&&(s=gP+s);const o=this.classes.get(s);o&&(o.link=ci.formatUrl(r,i),i.securityLevel==="sandbox"?o.linkTarget="_top":typeof n=="string"?o.linkTarget=Fv(n):o.linkTarget="_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,r,n){e.split(",").forEach(i=>{this.setClickFunc(i,r,n),this.classes.get(i).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,r,n){const i=Cr.sanitizeText(e,vt());if(vt().securityLevel!=="loose"||r===void 0)return;const s=i;if(this.classes.has(s)){let o=[];if(typeof n=="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l<o.length;l++){let u=o[l].trim();u.startsWith('"')&&u.endsWith('"')&&(u=u.substr(1,u.length-2)),o[l]=u}}o.length===0&&o.push(s),this.functions.push(()=>{const l=this.lookUpDomId(s),u=document.querySelector(`[id="${l}"]`);u!==null&&u.addEventListener("click",()=>{ci.runFunc(r,...o)},!1)})}}bindFunctions(e){this.functions.forEach(r=>{r(e)})}escapeHtml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,r){const n=r.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){const r=e.split("."),n=new Array(r.length);n[0]=r[0];for(let i=1;i<r.length;i++)n[i]=`${n[i-1]}.${r[i]}`;return n}createNamespaceNode(e,r,n,i=!1){return{id:e,label:r,classes:new Map,notes:new Map,children:new Map,domId:gP+e+"-"+this.namespaceCounter++,parent:n,explicit:i}}linkParentChild(e,r){const n=this.namespaces.get(e),i=this.namespaces.get(r);!n||!i||(n.children.has(r)||n.children.set(r,i),i.parent??=e)}addNamespace(e,r){const n=e1.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(n),this.namespaces.has(n)){const s=this.namespaces.get(n);return s.explicit=!0,r&&(s.label=r),n}const i=n.split("."),a=e1.getAncestorIds(n);for(let s=0;s<a.length;s++){const o=a[s],l=s>0?a[s-1]:void 0,u=s===a.length-1,d=u&&r?r:i[s];this.namespaces.has(o)?u&&(this.namespaces.get(o).explicit=!0):this.namespaces.set(o,this.createNamespaceNode(o,d,l,u)),l&&this.linkParentChild(l,o)}return n}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,r,n){if(this.namespaces.has(e)){for(const i of r){const{className:a}=this.splitClassNameAndType(i),s=this.getClass(a);s.parent=e,this.namespaces.get(e).classes.set(a,s)}for(const i of n){const a=this.getNote(i);a.parent=e,this.namespaces.get(e).notes.set(i,a)}}}setCssStyle(e,r){const n=this.classes.get(e);if(!(!r||!n))for(const i of r)i.includes(",")?n.styles.push(...i.split(",")):n.styles.push(i)}getArrowMarker(e){let r;switch(e){case 0:r="aggregation";break;case 1:r="extension";break;case 2:r="composition";break;case 3:r="dependency";break;case 4:r="lollipop";break;default:r="none"}return r}resolveExplicitAncestor(e){let r=e;for(;r;){const n=this.namespaces.get(r);if(!n)return;if(n.explicit)return r;r=n.parent}}getData(){const e=[],r=[],n=vt(),i=n.class?.hierarchicalNamespaces??!0;for(const s of this.namespaces.values()){if(!i&&!s.explicit)continue;const o={id:s.id,label:i?s.label:s.id,isGroup:!0,padding:n.class.padding??16,shape:"rect",cssStyles:[],look:n.look,parentId:i?s.parent:void 0};e.push(o)}for(const s of this.classes.values()){const o=i?s.parent:this.resolveExplicitAncestor(s.parent),l={...s,type:void 0,isGroup:!1,parentId:o,look:n.look};e.push(l)}for(const s of this.notes.values()){const o=i?s.parent:this.resolveExplicitAncestor(s.parent),l={id:s.id,label:s.text,isGroup:!1,shape:"note",padding:n.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:o,labelType:"markdown"};e.push(l);const u=this.classes.get(s.class)?.id;if(u){const d={id:`edgeNote${s.index}`,start:s.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:n.look};r.push(d)}}for(const s of this.interfaces){const o={id:s.id,label:s.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:n.look};e.push(o)}let a=0;for(const s of this.relations){a++;const o={id:ZT(s.id1,s.id2,{prefix:"id",counter:a}),start:s.id1,end:s.id2,type:"normal",label:s.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(s.relation.type1),arrowTypeEnd:this.getArrowMarker(s.relation.type2),startLabelRight:s.relationTitle1==="none"?"":s.relationTitle1,endLabelLeft:s.relationTitle2==="none"?"":s.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:s.style||"",pattern:s.relation.lineType==1?"dashed":"solid",look:n.look,labelType:"markdown"};r.push(o)}return{nodes:e,edges:r,other:{},config:n,direction:this.getDirection()}}},k(e1,"ClassDB"),e1),qVr=k(t=>`g.classGroup text {
  fill: ${t.nodeBorder||t.classText};
  stroke: none;
  font-family: ${t.fontFamily};
  font-size: 10px;

  .title {
    font-weight: bolder;
  }

}

  .cluster-label text {
    fill: ${t.titleColor};
  }
  .cluster-label span {
    color: ${t.titleColor};
  }
  .cluster-label span p {
    background-color: transparent;
  }

  .cluster rect {
    fill: ${t.clusterBkg};
    stroke: ${t.clusterBorder};
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${t.titleColor};
  }

  .cluster span {
    color: ${t.titleColor};
  }

.nodeLabel, .edgeLabel {
  color: ${t.classText};
}

.noteLabel .nodeLabel, .noteLabel .edgeLabel {
  color: ${t.noteTextColor};
}
.edgeLabel .label rect {
  fill: ${t.mainBkg};
}
.label text {
  fill: ${t.classText};
}

.labelBkg {
  background: ${t.mainBkg};
}
.edgeLabel .label span {
  background: ${t.mainBkg};
}

.classTitle {
  font-weight: bolder;
}
.node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${t.mainBkg};
    stroke: ${t.nodeBorder};
    stroke-width: ${t.strokeWidth};
  }


.divider {
  stroke: ${t.nodeBorder};
  stroke-width: 1;
}

g.clickable {
  cursor: pointer;
}

g.classGroup rect {
  fill: ${t.mainBkg};
  stroke: ${t.nodeBorder};
}

g.classGroup line {
  stroke: ${t.nodeBorder};
  stroke-width: 1;
}

.classLabel .box {
  stroke: none;
  stroke-width: 0;
  fill: ${t.mainBkg};
  opacity: 0.5;
}

.classLabel .label {
  fill: ${t.nodeBorder};
  font-size: 10px;
}

.relation {
  stroke: ${t.lineColor};
  stroke-width: ${t.strokeWidth};
  fill: none;
}

.dashed-line{
  stroke-dasharray: 3;
}

.dotted-line{
  stroke-dasharray: 1 2;
}

[id$="-compositionStart"], .composition {
  fill: ${t.lineColor} !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-compositionEnd"], .composition {
  fill: ${t.lineColor} !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-dependencyStart"], .dependency {
  fill: ${t.lineColor} !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-dependencyEnd"], .dependency {
  fill: ${t.lineColor} !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-extensionStart"], .extension {
  fill: transparent !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-extensionEnd"], .extension {
  fill: transparent !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-aggregationStart"], .aggregation {
  fill: transparent !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-aggregationEnd"], .aggregation {
  fill: transparent !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-lollipopStart"], .lollipop {
  fill: ${t.mainBkg} !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

[id$="-lollipopEnd"], .lollipop {
  fill: ${t.mainBkg} !important;
  stroke: ${t.lineColor} !important;
  stroke-width: 1;
}

.edgeTerminals {
  font-size: 11px;
  line-height: initial;
}

.classTitleText {
  text-anchor: middle;
  font-size: 18px;
  fill: ${t.textColor};
}

.edgeLabel[data-look="neo"] {
  background-color: ${t.edgeLabelBackground};
  p {
    background-color: ${t.edgeLabelBackground};
  }
  rect {
    opacity: 0.5;
    background-color: ${t.edgeLabelBackground};
    fill: ${t.edgeLabelBackground};
  }
  text-align: center;
}
  ${cD()}
`,"getStyles"),ait=qVr,VVr=k((t,e="TB")=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),HVr=k(function(t,e){return e.db.getClasses()},"getClasses"),YVr=k(async function(t,e,r,n){Pe.info("REF0:"),Pe.info("Drawing class diagram (v3)",e);const{securityLevel:i,state:a,layout:s}=vt();n.db.setDiagramId(e);const o=n.db.getData(),l=UR(e,i);o.type=n.type,o.layoutAlgorithm=Y5(s),o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=e,await RR(o,l);const u=8;ci.insertTitle(l,"classDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),CE(l,u,"classDiagram",a?.useMaxWidth??!0)},"draw"),sit={getClasses:HVr,draw:YVr,getDir:VVr},WVr={parser:nit,get db(){return new iit},renderer:sit,styles:ait,init:k(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const KVr=Object.freeze(Object.defineProperty({__proto__:null,diagram:WVr},Symbol.toStringTag,{value:"Module"}));var jVr={parser:nit,get db(){return new iit},renderer:sit,styles:ait,init:k(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const XVr=Object.freeze(Object.defineProperty({__proto__:null,diagram:jVr},Symbol.toStringTag,{value:"Module"}));var Bne=(function(){var t=k(function($,U,B,V){for(B=B||{},V=$.length;V--;B[$[V]]=U);return B},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],o=[1,16],l=[1,17],u=[1,18],d=[1,19],h=[1,33],f=[1,20],p=[1,21],g=[1,22],m=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],E=[1,29],S=[1,30],T=[1,31],C=[1,32],x=[1,35],A=[1,36],R=[1,37],I=[1,38],L=[1,34],F=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],O=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],D=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],M={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:k(function(U,B,V,z,G,Y,W){var Q=Y.length-1;switch(G){case 3:return z.setRootDoc(Y[Q]),Y[Q];case 4:this.$=[];break;case 5:Y[Q]!="nl"&&(Y[Q-1].push(Y[Q]),this.$=Y[Q-1]);break;case 6:case 7:this.$=Y[Q];break;case 8:this.$="nl";break;case 12:this.$=Y[Q];break;case 13:const K=Y[Q-1];K.description=z.trimColon(Y[Q]),this.$=K;break;case 14:this.$={stmt:"relation",state1:Y[Q-2],state2:Y[Q]};break;case 15:const j=z.trimColon(Y[Q]);this.$={stmt:"relation",state1:Y[Q-3],state2:Y[Q-1],description:j};break;case 19:this.$={stmt:"state",id:Y[Q-3],type:"default",description:"",doc:Y[Q-1]};break;case 20:var ie=Y[Q],Z=Y[Q-2].trim();if(Y[Q].match(":")){var re=Y[Q].split(":");ie=re[0],Z=[Z,re[1]]}this.$={stmt:"state",id:ie,type:"default",description:Z};break;case 21:this.$={stmt:"state",id:Y[Q-3],type:"default",description:Y[Q-5],doc:Y[Q-1]};break;case 22:this.$={stmt:"state",id:Y[Q],type:"fork"};break;case 23:this.$={stmt:"state",id:Y[Q],type:"join"};break;case 24:this.$={stmt:"state",id:Y[Q],type:"choice"};break;case 25:this.$={stmt:"state",id:z.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:Y[Q-1].trim(),note:{position:Y[Q-2].trim(),text:Y[Q].trim()}};break;case 29:this.$=Y[Q].trim(),z.setAccTitle(this.$);break;case 30:case 31:this.$=Y[Q].trim(),z.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:Y[Q-3],url:Y[Q-2],tooltip:Y[Q-1]};break;case 33:this.$={stmt:"click",id:Y[Q-3],url:Y[Q-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:Y[Q-1].trim(),classes:Y[Q].trim()};break;case 36:this.$={stmt:"style",id:Y[Q-1].trim(),styleClass:Y[Q].trim()};break;case 37:this.$={stmt:"applyClass",id:Y[Q-1].trim(),styleClass:Y[Q].trim()};break;case 38:z.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:z.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:z.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:z.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:Y[Q].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:Y[Q-2].trim(),classes:[Y[Q].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:Y[Q-2].trim(),classes:[Y[Q].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,22:d,24:h,25:f,26:p,27:g,28:m,29:_,32:25,33:v,35:y,37:b,38:E,41:S,45:T,48:C,51:x,52:A,53:R,54:I,57:L},t(F,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:o,17:l,19:u,22:d,24:h,25:f,26:p,27:g,28:m,29:_,32:25,33:v,35:y,37:b,38:E,41:S,45:T,48:C,51:x,52:A,53:R,54:I,57:L},t(F,[2,7]),t(F,[2,8]),t(F,[2,9]),t(F,[2,10]),t(F,[2,11]),t(F,[2,12],{14:[1,40],15:[1,41]}),t(F,[2,16]),{18:[1,42]},t(F,[2,18],{20:[1,43]}),{23:[1,44]},t(F,[2,22]),t(F,[2,23]),t(F,[2,24]),t(F,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(F,[2,28]),{34:[1,49]},{36:[1,50]},t(F,[2,31]),{13:51,24:h,57:L},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(O,[2,44],{58:[1,56]}),t(O,[2,45],{58:[1,57]}),t(F,[2,38]),t(F,[2,39]),t(F,[2,40]),t(F,[2,41]),t(F,[2,6]),t(F,[2,13]),{13:58,24:h,57:L},t(F,[2,17]),t(D,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(F,[2,29]),t(F,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(F,[2,14],{14:[1,71]}),{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,21:[1,72],22:d,24:h,25:f,26:p,27:g,28:m,29:_,32:25,33:v,35:y,37:b,38:E,41:S,45:T,48:C,51:x,52:A,53:R,54:I,57:L},t(F,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(F,[2,34]),t(F,[2,35]),t(F,[2,36]),t(F,[2,37]),t(O,[2,46]),t(O,[2,47]),t(F,[2,15]),t(F,[2,19]),t(D,i,{7:78}),t(F,[2,26]),t(F,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:u,21:[1,81],22:d,24:h,25:f,26:p,27:g,28:m,29:_,32:25,33:v,35:y,37:b,38:E,41:S,45:T,48:C,51:x,52:A,53:R,54:I,57:L},t(F,[2,32]),t(F,[2,33]),t(F,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:k(function(U,B){if(B.recoverable)this.trace(U);else{var V=new Error(U);throw V.hash=B,V}},"parseError"),parse:k(function(U){var B=this,V=[0],z=[],G=[null],Y=[],W=this.table,Q="",ie=0,Z=0,re=2,K=1,j=Y.slice.call(arguments,1),se=Object.create(this.lexer),le={yy:{}};for(var _e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_e)&&(le.yy[_e]=this.yy[_e]);se.setInput(U,le.yy),le.yy.lexer=se,le.yy.parser=this,typeof se.yylloc>"u"&&(se.yylloc={});var ye=se.yylloc;Y.push(ye);var Ue=se.options&&se.options.ranges;typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(we){V.length=V.length-2*we,G.length=G.length-we,Y.length=Y.length-we}k(Se,"popStack");function be(){var we;return we=z.pop()||se.lex()||K,typeof we!="number"&&(we instanceof Array&&(z=we,we=z.pop()),we=B.symbols_[we]||we),we}k(be,"lex");for(var ke,Ae,tt,Oe,je={},ct,Fe,Xe,et;;){if(Ae=V[V.length-1],this.defaultActions[Ae]?tt=this.defaultActions[Ae]:((ke===null||typeof ke>"u")&&(ke=be()),tt=W[Ae]&&W[Ae][ke]),typeof tt>"u"||!tt.length||!tt[0]){var Ie="";et=[];for(ct in W[Ae])this.terminals_[ct]&&ct>re&&et.push("'"+this.terminals_[ct]+"'");se.showPosition?Ie="Parse error on line "+(ie+1)+`:
`+se.showPosition()+`
Expecting `+et.join(", ")+", got '"+(this.terminals_[ke]||ke)+"'":Ie="Parse error on line "+(ie+1)+": Unexpected "+(ke==K?"end of input":"'"+(this.terminals_[ke]||ke)+"'"),this.parseError(Ie,{text:se.match,token:this.terminals_[ke]||ke,line:se.yylineno,loc:ye,expected:et})}if(tt[0]instanceof Array&&tt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+ke);switch(tt[0]){case 1:V.push(ke),G.push(se.yytext),Y.push(se.yylloc),V.push(tt[1]),ke=null,Z=se.yyleng,Q=se.yytext,ie=se.yylineno,ye=se.yylloc;break;case 2:if(Fe=this.productions_[tt[1]][1],je.$=G[G.length-Fe],je._$={first_line:Y[Y.length-(Fe||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(Fe||1)].first_column,last_column:Y[Y.length-1].last_column},Ue&&(je._$.range=[Y[Y.length-(Fe||1)].range[0],Y[Y.length-1].range[1]]),Oe=this.performAction.apply(je,[Q,Z,ie,le.yy,tt[1],G,Y].concat(j)),typeof Oe<"u")return Oe;Fe&&(V=V.slice(0,-1*Fe*2),G=G.slice(0,-1*Fe),Y=Y.slice(0,-1*Fe)),V.push(this.productions_[tt[1]][0]),G.push(je.$),Y.push(je._$),Xe=W[V[V.length-2]][V[V.length-1]],V.push(Xe);break;case 3:return!0}}return!0},"parse")},P=(function(){var $={EOF:1,parseError:k(function(B,V){if(this.yy.parser)this.yy.parser.parseError(B,V);else throw new Error(B)},"parseError"),setInput:k(function(U,B){return this.yy=B||this.yy||{},this._input=U,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var U=this._input[0];this.yytext+=U,this.yyleng++,this.offset++,this.match+=U,this.matched+=U;var B=U.match(/(?:\r\n?|\n).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),U},"input"),unput:k(function(U){var B=U.length,V=U.split(/(?:\r\n?|\n)/g);this._input=U+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var z=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),V.length-1&&(this.yylineno-=V.length-1);var G=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:V?(V.length===z.length?this.yylloc.first_column:0)+z[z.length-V.length].length-V[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(U){this.unput(this.match.slice(U))},"less"),pastInput:k(function(){var U=this.matched.substr(0,this.matched.length-this.match.length);return(U.length>20?"...":"")+U.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var U=this.match;return U.length<20&&(U+=this._input.substr(0,20-U.length)),(U.substr(0,20)+(U.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var U=this.pastInput(),B=new Array(U.length+1).join("-");return U+this.upcomingInput()+`
`+B+"^"},"showPosition"),test_match:k(function(U,B){var V,z,G;if(this.options.backtrack_lexer&&(G={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(G.yylloc.range=this.yylloc.range.slice(0))),z=U[0].match(/(?:\r\n?|\n).*/g),z&&(this.yylineno+=z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:z?z[z.length-1].length-z[z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.matches=U,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(U[0].length),this.matched+=U[0],V=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),V)return V;if(this._backtrack){for(var Y in G)this[Y]=G[Y];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var U,B,V,z;this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),Y=0;Y<G.length;Y++)if(V=this._input.match(this.rules[G[Y]]),V&&(!B||V[0].length>B[0].length)){if(B=V,z=Y,this.options.backtrack_lexer){if(U=this.test_match(V,G[Y]),U!==!1)return U;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(U=this.test_match(B,G[z]),U!==!1?U:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var B=this.next();return B||this.lex()},"lex"),begin:k(function(B){this.conditionStack.push(B)},"begin"),popState:k(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:k(function(B){this.begin(B)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(B,V,z,G){function Y(){const W=V.yytext.indexOf("%%");if(W===0)return!1;if(W>0){const Q=V.yytext.slice(0,W),ie=V.yytext.slice(W);ie&&B.lexer.unput(ie),V.yytext=Q}return!0}switch(k(Y,"processId"),z){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 33:return this.pushState("SCALE"),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),V.yytext=V.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),V.yytext=V.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:return Y()?(this.popState(),"ID"):void 0;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:return 19;case 53:this.popState();break;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 56:break;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 62:break;case 63:return"NOTE_TEXT";case 64:return Y()?(this.popState(),"ID"):void 0;case 65:return Y()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 66:return this.popState(),V.yytext=V.yytext.substr(2).trim(),31;case 67:return this.popState(),V.yytext=V.yytext.slice(0,-8).trim(),31;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 57;case 72:return Y()?24:void 0;case 73:return V.yytext=V.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return $})();M.lexer=P;function N(){this.yy={}}return k(N,"Parser"),N.prototype=M,M.Parser=N,new N})();Bne.parser=Bne;var oit=Bne,QVr="TB",lit="TB",sNe="dir",aT="state",wS="root",Une="relation",ZVr="classDef",JVr="style",eHr="applyClass",qN="default",cit="divider",uit="fill:none",dit="fill: #333",hit="c",fit="markdown",pit="normal",QX="rect",ZX="rectWithTitle",tHr="stateStart",rHr="stateEnd",oNe="divider",lNe="roundedWithTitle",nHr="note",iHr="noteGroup",LD="statediagram",aHr="state",sHr=`${LD}-${aHr}`,git="transition",oHr="note",lHr="note-edge",cHr=`${git} ${lHr}`,uHr=`${LD}-${oHr}`,dHr="cluster",hHr=`${LD}-${dHr}`,fHr="cluster-alt",pHr=`${LD}-${fHr}`,mit="parent",_it="note",gHr="state",Spe="----",mHr=`${Spe}${_it}`,cNe=`${Spe}${mit}`,vit=k((t,e=lit)=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),_Hr=k(function(t,e){return e.db.getClasses()},"getClasses"),vHr=k(async function(t,e,r,n){Pe.info("REF0:"),Pe.info("Drawing state diagram (v2)",e);const{securityLevel:i,state:a,layout:s}=vt();n.db.extract(n.db.getRootDocV2());const o=n.db.getData(),l=UR(e,i);o.type=n.type,o.layoutAlgorithm=s,o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,vt().look==="neo"?o.markers=["barbNeo"]:o.markers=["barb"],o.diagramId=e,await RR(o,l);const d=8;try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((f,p)=>{const g=typeof p=="string"?p:typeof p?.id=="string"?p.id:"";if(!g){Pe.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(p));return}const m=l.node()?.querySelectorAll("g");let _;if(m?.forEach(E=>{E.textContent?.trim()===g&&(_=E)}),!_){Pe.warn("⚠️ Could not find node matching text:",g);return}const v=_.parentNode;if(!v){Pe.warn("⚠️ Node has no parent, cannot wrap:",g);return}const y=document.createElementNS("http://www.w3.org/2000/svg","a"),b=f.url.replace(/^"+|"+$/g,"");if(y.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",b),y.setAttribute("target","_blank"),f.tooltip){const E=f.tooltip.replace(/^"+|"+$/g,"");y.setAttribute("title",E)}v.replaceChild(y,_),y.appendChild(_),Pe.info("🔗 Wrapped node in <a> tag for:",g,f.url)})}catch(h){Pe.error("❌ Error injecting clickable links:",h)}ci.insertTitle(l,"statediagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),CE(l,d,LD,a?.useMaxWidth??!0)},"draw"),yHr={getClasses:_Hr,draw:vHr,getDir:vit},H6=new Map,I_=0;function Y6(t="",e=0,r="",n=Spe){const i=r!==null&&r.length>0?`${n}${r}`:"";return`${gHr}-${t}${i}-${e}`}k(Y6,"stateDomId");var bHr=k((t,e,r,n,i,a,s,o)=>{Pe.trace("items",e),e.forEach(l=>{switch(l.stmt){case aT:XI(t,l,r,n,i,a,s,o);break;case qN:XI(t,l,r,n,i,a,s,o);break;case Une:{XI(t,l.state1,r,n,i,a,s,o),XI(t,l.state2,r,n,i,a,s,o);const u=s==="neo",d={id:"edge"+I_,start:l.state1.id,end:l.state2.id,arrowhead:"normal",arrowTypeEnd:u?"arrow_barb_neo":"arrow_barb",style:uit,labelStyle:"",label:Cr.sanitizeText(l.description??"",vt()),arrowheadStyle:dit,labelpos:hit,labelType:fit,thickness:pit,classes:git,look:s};i.push(d),I_++}break}})},"setupDoc"),uNe=k((t,e=lit)=>{let r=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir");function jI(t,e,r){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(i=>{const a=r.get(i);a&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...a.styles])}));const n=t.find(i=>i.id===e.id);n?Object.assign(n,e):t.push(e)}k(jI,"insertOrUpdateNode");function yit(t){return t?.classes?.join(" ")??""}k(yit,"getClassesFromDbInfo");function bit(t){return t?.styles??[]}k(bit,"getStylesFromDbInfo");var XI=k((t,e,r,n,i,a,s,o)=>{const l=e.id,u=r.get(l),d=yit(u),h=bit(u),f=vt();if(Pe.info("dataFetcher parsedItem",e,u,h),l!=="root"){let p=QX;e.start===!0?p=tHr:e.start===!1&&(p=rHr),e.type!==qN&&(p=e.type),H6.get(l)||H6.set(l,{id:l,shape:p,description:Cr.sanitizeText(l,f),cssClasses:`${d} ${sHr}`,cssStyles:h});const g=H6.get(l);e.description&&(Array.isArray(g.description)?(g.shape=ZX,g.description.push(e.description)):g.description?.length&&g.description.length>0?(g.shape=ZX,g.description===l?g.description=[e.description]:g.description=[g.description,e.description]):(g.shape=QX,g.description=e.description),g.description=Cr.sanitizeTextOrArray(g.description,f)),g.description?.length===1&&g.shape===ZX&&(g.type==="group"?g.shape=lNe:g.shape=QX),!g.type&&e.doc&&(Pe.info("Setting cluster for XCX",l,uNe(e)),g.type="group",g.isGroup=!0,g.dir=uNe(e),g.shape=e.type===cit?oNe:lNe,g.cssClasses=`${g.cssClasses} ${hHr} ${a?pHr:""}`);const m={labelStyle:"",shape:g.shape,label:g.description,cssClasses:g.cssClasses,cssCompiledStyles:[],cssStyles:g.cssStyles,id:l,dir:g.dir,domId:Y6(l,I_),type:g.type,isGroup:g.type==="group",padding:8,rx:10,ry:10,look:s,labelType:"markdown"};if(m.shape===oNe&&(m.label=""),t&&t.id!=="root"&&(Pe.trace("Setting node ",l," to be child of its parent ",t.id),m.parentId=t.id),m.centerLabel=!0,e.note){const _={labelStyle:"",shape:nHr,label:e.note.text,labelType:"markdown",cssClasses:uHr,cssStyles:[],cssCompiledStyles:[],id:l+mHr+"-"+I_,domId:Y6(l,I_,_it),type:g.type,isGroup:g.type==="group",padding:f.flowchart?.padding,look:s,position:e.note.position},v=l+cNe,y={labelStyle:"",shape:iHr,label:e.note.text,cssClasses:g.cssClasses,cssStyles:[],id:l+cNe,domId:Y6(l,I_,mit),type:"group",isGroup:!0,padding:16,look:s,position:e.note.position};I_++,y.id=v,_.parentId=v,jI(n,y,o),jI(n,_,o),jI(n,m,o);let b=l,E=_.id;e.note.position==="left of"&&(b=_.id,E=l),i.push({id:b+"-"+E,start:b,end:E,arrowhead:"none",arrowTypeEnd:"",style:uit,labelStyle:"",classes:cHr,arrowheadStyle:dit,labelpos:hit,labelType:fit,thickness:pit,look:s})}else jI(n,m,o)}e.doc&&(Pe.trace("Adding nodes children "),bHr(e,e.doc,r,n,i,!a,s,o))},"dataFetcher"),EHr=k(()=>{H6.clear(),I_=0},"reset"),qc={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},dNe=k(()=>new Map,"newClassesList"),hNe=k(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),mP=k(t=>JSON.parse(JSON.stringify(t)),"clone"),fb,Cy=(fb=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=dNe(),this.documents={root:hNe()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=Fs,this.setAccTitle=ms,this.getAccDescription=Us,this.setAccDescription=Bs,this.setDiagramTitle=ks,this.getDiagramTitle=bs,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(e){this.clear(!0);for(const i of Array.isArray(e)?e:e.doc)switch(i.stmt){case aT:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case Une:this.addRelation(i.state1,i.state2,i.description);break;case ZVr:this.addStyleClass(i.id.trim(),i.classes);break;case JVr:this.handleStyleDef(i);break;case eHr:this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip);break}const r=this.getStates(),n=vt();EHr(),XI(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,n.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(e){const r=e.id.trim().split(","),n=e.styleClass.split(",");for(const i of r){let a=this.getState(i);if(!a){const s=i.trim();this.addState(s),a=this.getState(s)}a&&(a.styles=n.map(s=>s.replace(/;/g,"")?.trim()))}}setRootDoc(e){Pe.info("Setting root doc",e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,r,n){if(r.stmt===Une){this.docTranslator(e,r.state1,!0),this.docTranslator(e,r.state2,!1);return}if(r.stmt===aT&&(r.id===qc.START_NODE?(r.id=e.id+(n?"_start":"_end"),r.start=n):r.id=r.id.trim()),r.stmt!==wS&&r.stmt!==aT||!r.doc)return;const i=[];let a=[];for(const s of r.doc)if(s.type===cit){const o=mP(s);o.doc=mP(a),i.push(o),a=[]}else a.push(s);if(i.length>0&&a.length>0){const s={stmt:aT,id:KBe(),type:"divider",doc:mP(a)};i.push(mP(s)),r.doc=i}r.doc.forEach(s=>this.docTranslator(r,s,!0))}getRootDocV2(){return this.docTranslator({id:wS,stmt:wS},{id:wS,stmt:wS,doc:this.rootDoc},!0),{id:wS,doc:this.rootDoc}}addState(e,r=qN,n=void 0,i=void 0,a=void 0,s=void 0,o=void 0,l=void 0){const u=e?.trim();if(!this.currentDocument.states.has(u))Pe.info("Adding state ",u,i),this.currentDocument.states.set(u,{stmt:aT,id:u,descriptions:[],type:r,doc:n,note:a,classes:[],styles:[],textStyles:[]});else{const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.doc||(d.doc=n),d.type||(d.type=r)}if(i&&(Pe.info("Setting state description",u,i),(Array.isArray(i)?i:[i]).forEach(h=>this.addDescription(u,h.trim()))),a){const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.note=a,d.note.text=Cr.sanitizeText(d.note.text,vt())}s&&(Pe.info("Setting state classes",u,s),(Array.isArray(s)?s:[s]).forEach(h=>this.setCssClass(u,h.trim()))),o&&(Pe.info("Setting state styles",u,o),(Array.isArray(o)?o:[o]).forEach(h=>this.setStyle(u,h.trim()))),l&&(Pe.info("Setting state styles",u,o),(Array.isArray(l)?l:[l]).forEach(h=>this.setTextStyle(u,h.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:hNe()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=dNe(),e||(this.links=new Map,ys())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){Pe.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,r,n){this.links.set(e,{url:r,tooltip:n}),Pe.warn("Adding link",e,r,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===qc.START_NODE?(this.startEndCount++,`${qc.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",r=qN){return e===qc.START_NODE?qc.START_TYPE:r}endIdIfNeeded(e=""){return e===qc.END_NODE?(this.startEndCount++,`${qc.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",r=qN){return e===qc.END_NODE?qc.END_TYPE:r}addRelationObjs(e,r,n=""){const i=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type),s=this.startIdIfNeeded(r.id.trim()),o=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(i,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(s,o,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:Cr.sanitizeText(n,vt())})}addRelation(e,r,n){if(typeof e=="object"&&typeof r=="object")this.addRelationObjs(e,r,n);else if(typeof e=="string"&&typeof r=="string"){const i=this.startIdIfNeeded(e.trim()),a=this.startTypeIfNeeded(e),s=this.endIdIfNeeded(r.trim()),o=this.endTypeIfNeeded(r);this.addState(i,a),this.addState(s,o),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:n?Cr.sanitizeText(n,vt()):void 0})}}addDescription(e,r){const n=this.currentDocument.states.get(e),i=r.startsWith(":")?r.replace(":","").trim():r;n?.descriptions?.push(Cr.sanitizeText(i,vt()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,r=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});const n=this.classes.get(e);r&&n&&r.split(qc.STYLECLASS_SEP).forEach(i=>{const a=i.replace(/([^;]*);/,"$1").trim();if(RegExp(qc.COLOR_KEYWORD).exec(i)){const o=a.replace(qc.FILL_KEYWORD,qc.BG_FILL).replace(qc.COLOR_KEYWORD,qc.FILL_KEYWORD);n.textStyles.push(o)}n.styles.push(a)})}getClasses(){return this.classes}setCssClass(e,r){e.split(",").forEach(n=>{let i=this.getState(n);if(!i){const a=n.trim();this.addState(a),i=this.getState(a)}i?.classes?.push(r)})}setStyle(e,r){this.getState(e)?.styles?.push(r)}setTextStyle(e,r){this.getState(e)?.textStyles?.push(r)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===sNe)}getDirection(){return this.getDirectionStatement()?.value??QVr}setDirection(e){const r=this.getDirectionStatement();r?r.value=e:this.rootDoc.unshift({stmt:sNe,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=vt();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:vit(this.getRootDocV2())}}getConfig(){return vt().state}},k(fb,"StateDB"),fb.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},fb),SHr=k(t=>`
defs [id$="-barbEnd"] {
    fill: ${t.transitionColor};
    stroke: ${t.transitionColor};
  }
g.stateGroup text {
  fill: ${t.nodeBorder};
  stroke: none;
  font-size: 10px;
}
g.stateGroup text {
  fill: ${t.textColor};
  stroke: none;
  font-size: 10px;

}
g.stateGroup .state-title {
  font-weight: bolder;
  fill: ${t.stateLabelColor};
}

g.stateGroup rect {
  fill: ${t.mainBkg};
  stroke: ${t.nodeBorder};
}

g.stateGroup line {
  stroke: ${t.lineColor};
  stroke-width: ${t.strokeWidth||1};
}

.transition {
  stroke: ${t.transitionColor};
  stroke-width: ${t.strokeWidth||1};
  fill: none;
}

.stateGroup .composit {
  fill: ${t.background};
  border-bottom: 1px
}

.stateGroup .alt-composit {
  fill: #e0e0e0;
  border-bottom: 1px
}

.state-note {
  stroke: ${t.noteBorderColor};
  fill: ${t.noteBkgColor};

  text {
    fill: ${t.noteTextColor};
    stroke: none;
    font-size: 10px;
  }
}

.stateLabel .box {
  stroke: none;
  stroke-width: 0;
  fill: ${t.mainBkg};
  opacity: 0.5;
}

.edgeLabel .label rect {
  fill: ${t.labelBackgroundColor};
  opacity: 0.5;
}
.edgeLabel {
  background-color: ${t.edgeLabelBackground};
  p {
    background-color: ${t.edgeLabelBackground};
  }
  rect {
    opacity: 0.5;
    background-color: ${t.edgeLabelBackground};
    fill: ${t.edgeLabelBackground};
  }
  text-align: center;
}
.edgeLabel .label text {
  fill: ${t.transitionLabelColor||t.tertiaryTextColor};
}
.label div .edgeLabel {
  color: ${t.transitionLabelColor||t.tertiaryTextColor};
}

.stateLabel text {
  fill: ${t.stateLabelColor};
  font-size: 10px;
  font-weight: bold;
}

.node circle.state-start {
  fill: ${t.specialStateColor};
  stroke: ${t.specialStateColor};
}

.node .fork-join {
  fill: ${t.specialStateColor};
  stroke: ${t.specialStateColor};
}

.node circle.state-end {
  fill: ${t.innerEndBackground};
  stroke: ${t.background};
  stroke-width: 1.5
}
.end-state-inner {
  fill: ${t.compositeBackground||t.background};
  // stroke: ${t.background};
  stroke-width: 1.5
}

.node rect {
  fill: ${t.stateBkg||t.mainBkg};
  stroke: ${t.stateBorder||t.nodeBorder};
  stroke-width: ${t.strokeWidth||1}px;
}
.node polygon {
  fill: ${t.mainBkg};
  stroke: ${t.stateBorder||t.nodeBorder};;
  stroke-width: ${t.strokeWidth||1}px;
}
[id$="-barbEnd"] {
  fill: ${t.lineColor};
}

.statediagram-cluster rect {
  fill: ${t.compositeTitleBackground};
  stroke: ${t.stateBorder||t.nodeBorder};
  stroke-width: ${t.strokeWidth||1}px;
}

.cluster-label, .nodeLabel {
  color: ${t.stateLabelColor};
  // line-height: 1;
}

.statediagram-cluster rect.outer {
  rx: 5px;
  ry: 5px;
}
.statediagram-state .divider {
  stroke: ${t.stateBorder||t.nodeBorder};
}

.statediagram-state .title-state {
  rx: 5px;
  ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
  fill: ${t.compositeBackground||t.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
  fill: ${t.altBackground?t.altBackground:"#efefef"};
}

.statediagram-cluster .inner {
  rx:0;
  ry:0;
}

.statediagram-state rect.basic {
  rx: 5px;
  ry: 5px;
}
.statediagram-state rect.divider {
  stroke-dasharray: 10,10;
  fill: ${t.altBackground?t.altBackground:"#efefef"};
}

.note-edge {
  stroke-dasharray: 5;
}

.statediagram-note rect {
  fill: ${t.noteBkgColor};
  stroke: ${t.noteBorderColor};
  stroke-width: 1px;
  rx: 0;
  ry: 0;
}
.statediagram-note rect {
  fill: ${t.noteBkgColor};
  stroke: ${t.noteBorderColor};
  stroke-width: 1px;
  rx: 0;
  ry: 0;
}

.statediagram-note text {
  fill: ${t.noteTextColor};
}

.statediagram-note .nodeLabel {
  color: ${t.noteTextColor};
}
.statediagram .edgeLabel {
  color: red; // ${t.noteTextColor};
}

[id$="-dependencyStart"], [id$="-dependencyEnd"] {
  fill: ${t.lineColor};
  stroke: ${t.lineColor};
  stroke-width: ${t.strokeWidth||1};
}

.statediagramTitleText {
  text-anchor: middle;
  font-size: 18px;
  fill: ${t.textColor};
}

[data-look="neo"].statediagram-cluster rect {
  fill: ${t.mainBkg};
  stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};
  stroke-width: ${t.strokeWidth??1};
}
[data-look="neo"].statediagram-cluster rect.outer {
  rx: ${t.radius}px;
  ry: ${t.radius}px;
  filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}
}
`,"getStyles"),Eit=SHr,THr=k(t=>t.append("circle").attr("class","start-state").attr("r",vt().state.sizeUnit).attr("cx",vt().state.padding+vt().state.sizeUnit).attr("cy",vt().state.padding+vt().state.sizeUnit),"drawStartState"),CHr=k(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",vt().state.textHeight).attr("class","divider").attr("x2",vt().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),wHr=k((t,e)=>{const r=t.append("text").attr("x",2*vt().state.padding).attr("y",vt().state.textHeight+2*vt().state.padding).attr("font-size",vt().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();return t.insert("rect",":first-child").attr("x",vt().state.padding).attr("y",vt().state.padding).attr("width",n.width+2*vt().state.padding).attr("height",n.height+2*vt().state.padding).attr("rx",vt().state.radius),r},"drawSimpleState"),xHr=k((t,e)=>{const r=k(function(f,p,g){const m=f.append("tspan").attr("x",2*vt().state.padding).text(p);g||m.attr("dy",vt().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*vt().state.padding).attr("y",vt().state.textHeight+1.3*vt().state.padding).attr("font-size",vt().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),a=i.height,s=t.append("text").attr("x",vt().state.padding).attr("y",a+vt().state.padding*.4+vt().state.dividerMargin+vt().state.textHeight).attr("class","state-description");let o=!0,l=!0;e.descriptions.forEach(function(f){o||(r(s,f,l),l=!1),o=!1});const u=t.append("line").attr("x1",vt().state.padding).attr("y1",vt().state.padding+a+vt().state.dividerMargin/2).attr("y2",vt().state.padding+a+vt().state.dividerMargin/2).attr("class","descr-divider"),d=s.node().getBBox(),h=Math.max(d.width,i.width);return u.attr("x2",h+3*vt().state.padding),t.insert("rect",":first-child").attr("x",vt().state.padding).attr("y",vt().state.padding).attr("width",h+2*vt().state.padding).attr("height",d.height+a+2*vt().state.padding).attr("rx",vt().state.radius),t},"drawDescrState"),AHr=k((t,e,r)=>{const n=vt().state.padding,i=2*vt().state.padding,a=t.node().getBBox(),s=a.width,o=a.x,l=t.append("text").attr("x",0).attr("y",vt().state.titleShift).attr("font-size",vt().state.fontSize).attr("class","state-title").text(e.id),d=l.node().getBBox().width+i;let h=Math.max(d,s);h===s&&(h=h+i);let f;const p=t.node().getBBox();e.doc,f=o-n,d>s&&(f=(s-h)/2+n),Math.abs(o-p.x)<n&&d>s&&(f=o-(d-s)/2);const g=1-vt().state.textHeight;return t.insert("rect",":first-child").attr("x",f).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",p.height+vt().state.textHeight+vt().state.titleShift+1).attr("rx","0"),l.attr("x",f+n),d<=s&&l.attr("x",o+(h-i)/2-d/2+n),t.insert("rect",":first-child").attr("x",f).attr("y",vt().state.titleShift-vt().state.textHeight-vt().state.padding).attr("width",h).attr("height",vt().state.textHeight*3).attr("rx",vt().state.radius),t.insert("rect",":first-child").attr("x",f).attr("y",vt().state.titleShift-vt().state.textHeight-vt().state.padding).attr("width",h).attr("height",p.height+3+2*vt().state.textHeight).attr("rx",vt().state.radius),t},"addTitleAndBox"),RHr=k(t=>(t.append("circle").attr("class","end-state-outer").attr("r",vt().state.sizeUnit+vt().state.miniPadding).attr("cx",vt().state.padding+vt().state.sizeUnit+vt().state.miniPadding).attr("cy",vt().state.padding+vt().state.sizeUnit+vt().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",vt().state.sizeUnit).attr("cx",vt().state.padding+vt().state.sizeUnit+2).attr("cy",vt().state.padding+vt().state.sizeUnit+2)),"drawEndState"),OHr=k((t,e)=>{let r=vt().state.forkWidth,n=vt().state.forkHeight;if(e.parentId){let i=r;r=n,n=i}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",vt().state.padding).attr("y",vt().state.padding)},"drawForkJoinState"),IHr=k((t,e,r,n)=>{let i=0;const a=n.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let s=t.replace(/\r\n/g,"<br/>");s=s.replace(/\n/g,"<br/>");const o=s.split(Cr.lineBreakRegex);let l=1.25*vt().state.noteMargin;for(const u of o){const d=u.trim();if(d.length>0){const h=a.append("tspan");if(h.text(d),l===0){const f=h.node().getBBox();l+=f.height}i+=l,h.attr("x",e+vt().state.noteMargin),h.attr("y",r+i+1.25*vt().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},"_drawLongText"),NHr=k((t,e)=>{e.attr("class","state-note");const r=e.append("rect").attr("x",0).attr("y",vt().state.padding),n=e.append("g"),{textWidth:i,textHeight:a}=IHr(t,0,0,n);return r.attr("height",a+2*vt().state.noteMargin),r.attr("width",i+vt().state.noteMargin*2),r},"drawNote"),fNe=k(function(t,e){const r=e.id,n={id:r,label:e.id,width:0,height:0},i=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&THr(i),e.type==="end"&&RHr(i),(e.type==="fork"||e.type==="join")&&OHr(i,e),e.type==="note"&&NHr(e.note.text,i),e.type==="divider"&&CHr(i),e.type==="default"&&e.descriptions.length===0&&wHr(i,e),e.type==="default"&&e.descriptions.length>0&&xHr(i,e);const a=i.node().getBBox();return n.width=a.width+2*vt().state.padding,n.height=a.height+2*vt().state.padding,n},"drawState"),pNe=0,kHr=k(function(t,e,r){const n=k(function(l){switch(l){case Cy.relationType.AGGREGATION:return"aggregation";case Cy.relationType.EXTENSION:return"extension";case Cy.relationType.COMPOSITION:return"composition";case Cy.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(l=>!Number.isNaN(l.y));const i=e.points,a=Dk().x(function(l){return l.x}).y(function(l){return l.y}).curve(Mk),s=t.append("path").attr("d",a(i)).attr("id","edge"+pNe).attr("class","transition");let o="";if(vt().state.arrowMarkerAbsolute&&(o=wU(!0)),s.attr("marker-end","url("+o+"#"+n(Cy.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const l=t.append("g").attr("class","stateLabel"),{x:u,y:d}=ci.calcLabelPosition(e.points),h=Cr.getRows(r.title);let f=0;const p=[];let g=0,m=0;for(let y=0;y<=h.length;y++){const b=l.append("text").attr("text-anchor","middle").text(h[y]).attr("x",u).attr("y",d+f),E=b.node().getBBox();g=Math.max(g,E.width),m=Math.min(m,E.x),Pe.info(E.x,u,d+f),f===0&&(f=b.node().getBBox().height,Pe.info("Title height",f,d)),p.push(b)}let _=f*h.length;if(h.length>1){const y=(h.length-1)*f*.5;p.forEach((b,E)=>b.attr("y",d+E*f-y)),_=f*h.length}const v=l.node().getBBox();l.insert("rect",":first-child").attr("class","box").attr("x",u-g/2-vt().state.padding/2).attr("y",d-_/2-vt().state.padding/2-3.5).attr("width",g+vt().state.padding).attr("height",_+vt().state.padding),Pe.info(v)}pNe++},"drawEdge"),xd,JX={},DHr=k(function(){},"setConf"),MHr=k(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),LHr=k(function(t,e,r,n){xd=vt().state;const i=vt().securityLevel;let a;i==="sandbox"&&(a=dr("#i"+e));const s=dr(i==="sandbox"?a.nodes()[0].contentDocument.body:"body"),o=i==="sandbox"?a.nodes()[0].contentDocument:document;Pe.debug("Rendering diagram "+t);const l=s.select(`[id='${e}']`);MHr(l);const u=n.db.getRootDoc(),d=l.append("g").attr("id",e+"-root");Sit(u,d,void 0,!1,s,o,n);const h=xd.padding,f=l.node().getBBox(),p=f.width+h*2,g=f.height+h*2,m=p*1.75;Xo(l,g,m,xd.useMaxWidth),l.attr("viewBox",`${f.x-xd.padding}  ${f.y-xd.padding} `+p+" "+g)},"draw"),PHr=k(t=>t?t.length*xd.fontSizeFactor:1,"getLabelWidth"),Sit=k((t,e,r,n,i,a,s)=>{const o=new dd({compound:!0,multigraph:!0});let l,u=!0;for(l=0;l<t.length;l++)if(t[l].stmt==="relation"){u=!1;break}r?o.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:u?1:xd.edgeLengthFactor,nodeSep:u?1:50,isMultiGraph:!0}):o.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:u?1:xd.edgeLengthFactor,nodeSep:u?1:50,ranker:"tight-tree",isMultiGraph:!0}),o.setDefaultEdgeLabel(function(){return{}});const d=s.db.getStates(),h=s.db.getRelations(),f=Object.keys(d);for(const v of f){const y=d[v];r&&(y.parentId=r);let b;if(y.doc){let E=e.append("g").attr("id",y.id).attr("class","stateGroup");b=Sit(y.doc,E,y.id,!n,i,a,s);{E=AHr(E,y,n);let S=E.node().getBBox();b.width=S.width,b.height=S.height+xd.padding/2,JX[y.id]={y:xd.compositTitleSize}}}else b=fNe(e,y,o);if(y.note){const E={descriptions:[],id:y.id+"-note",note:y.note,type:"note"},S=fNe(e,E,o);y.note.position==="left of"?(o.setNode(b.id+"-note",S),o.setNode(b.id,b)):(o.setNode(b.id,b),o.setNode(b.id+"-note",S)),o.setParent(b.id,b.id+"-group"),o.setParent(b.id+"-note",b.id+"-group")}else o.setNode(b.id,b)}Pe.debug("Count=",o.nodeCount(),o);let p=0;h.forEach(function(v){p++,Pe.debug("Setting edge",v),o.setEdge(v.id1,v.id2,{relation:v,width:PHr(v.title),height:xd.labelHeight*Cr.getRows(v.title).length,labelpos:"c"},"id"+p)}),oqe(o),Pe.debug("Graph after layout",o.nodes());const g=e.node();o.nodes().forEach(function(v){v!==void 0&&o.node(v)!==void 0?(Pe.warn("Node "+v+": "+JSON.stringify(o.node(v))),i.select("#"+g.id+" #"+v).attr("transform","translate("+(o.node(v).x-o.node(v).width/2)+","+(o.node(v).y+(JX[v]?JX[v].y:0)-o.node(v).height/2)+" )"),i.select("#"+g.id+" #"+v).attr("data-x-shift",o.node(v).x-o.node(v).width/2),a.querySelectorAll("#"+g.id+" #"+v+" .divider").forEach(b=>{const E=b.parentElement;let S=0,T=0;E&&(E.parentElement&&(S=E.parentElement.getBBox().width),T=parseInt(E.getAttribute("data-x-shift"),10),Number.isNaN(T)&&(T=0)),b.setAttribute("x1",0-T+8),b.setAttribute("x2",S-T-8)})):Pe.debug("No Node "+v+": "+JSON.stringify(o.node(v)))});let m=g.getBBox();o.edges().forEach(function(v){v!==void 0&&o.edge(v)!==void 0&&(Pe.debug("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(o.edge(v))),kHr(e,o.edge(v),o.edge(v).relation))}),m=g.getBBox();const _={id:r||"root",label:r||"root",width:0,height:0};return _.width=m.width+2*xd.padding,_.height=m.height+2*xd.padding,Pe.debug("Doc rendered",_,o),_},"renderDoc"),FHr={setConf:DHr,draw:LHr},BHr={parser:oit,get db(){return new Cy(1)},renderer:FHr,styles:Eit,init:k(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const UHr=Object.freeze(Object.defineProperty({__proto__:null,diagram:BHr},Symbol.toStringTag,{value:"Module"}));var $Hr={parser:oit,get db(){return new Cy(2)},renderer:yHr,styles:Eit,init:k(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const GHr=Object.freeze(Object.defineProperty({__proto__:null,diagram:$Hr},Symbol.toStringTag,{value:"Module"}));var $ne=(function(){var t=k(function(h,f,p,g){for(p=p||{},g=h.length;g--;p[h[g]]=f);return p},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],n=[1,10],i=[1,11],a=[1,12],s=[1,13],o=[1,14],l={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:k(function(f,p,g,m,_,v,y){var b=v.length-1;switch(_){case 1:return v[b-1];case 2:this.$=[];break;case 3:v[b-1].push(v[b]),this.$=v[b-1];break;case 4:case 5:this.$=v[b];break;case 6:case 7:this.$=[];break;case 8:m.setDiagramTitle(v[b].substr(6)),this.$=v[b].substr(6);break;case 9:this.$=v[b].trim(),m.setAccTitle(this.$);break;case 10:case 11:this.$=v[b].trim(),m.setAccDescription(this.$);break;case 12:m.addSection(v[b].substr(8)),this.$=v[b].substr(8);break;case 13:m.addTask(v[b-1],v[b]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:n,14:i,16:a,17:s,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:n,14:i,16:a,17:s,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:k(function(f,p){if(p.recoverable)this.trace(f);else{var g=new Error(f);throw g.hash=p,g}},"parseError"),parse:k(function(f){var p=this,g=[0],m=[],_=[null],v=[],y=this.table,b="",E=0,S=0,T=2,C=1,x=v.slice.call(arguments,1),A=Object.create(this.lexer),R={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(R.yy[I]=this.yy[I]);A.setInput(f,R.yy),R.yy.lexer=A,R.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var L=A.yylloc;v.push(L);var F=A.options&&A.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(W){g.length=g.length-2*W,_.length=_.length-W,v.length=v.length-W}k(O,"popStack");function D(){var W;return W=m.pop()||A.lex()||C,typeof W!="number"&&(W instanceof Array&&(m=W,W=m.pop()),W=p.symbols_[W]||W),W}k(D,"lex");for(var M,P,N,$,U={},B,V,z,G;;){if(P=g[g.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((M===null||typeof M>"u")&&(M=D()),N=y[P]&&y[P][M]),typeof N>"u"||!N.length||!N[0]){var Y="";G=[];for(B in y[P])this.terminals_[B]&&B>T&&G.push("'"+this.terminals_[B]+"'");A.showPosition?Y="Parse error on line "+(E+1)+`:
`+A.showPosition()+`
Expecting `+G.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Y="Parse error on line "+(E+1)+": Unexpected "+(M==C?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Y,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:L,expected:G})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+M);switch(N[0]){case 1:g.push(M),_.push(A.yytext),v.push(A.yylloc),g.push(N[1]),M=null,S=A.yyleng,b=A.yytext,E=A.yylineno,L=A.yylloc;break;case 2:if(V=this.productions_[N[1]][1],U.$=_[_.length-V],U._$={first_line:v[v.length-(V||1)].first_line,last_line:v[v.length-1].last_line,first_column:v[v.length-(V||1)].first_column,last_column:v[v.length-1].last_column},F&&(U._$.range=[v[v.length-(V||1)].range[0],v[v.length-1].range[1]]),$=this.performAction.apply(U,[b,S,E,R.yy,N[1],_,v].concat(x)),typeof $<"u")return $;V&&(g=g.slice(0,-1*V*2),_=_.slice(0,-1*V),v=v.slice(0,-1*V)),g.push(this.productions_[N[1]][0]),_.push(U.$),v.push(U._$),z=y[g[g.length-2]][g[g.length-1]],g.push(z);break;case 3:return!0}}return!0},"parse")},u=(function(){var h={EOF:1,parseError:k(function(p,g){if(this.yy.parser)this.yy.parser.parseError(p,g);else throw new Error(p)},"parseError"),setInput:k(function(f,p){return this.yy=p||this.yy||{},this._input=f,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var p=f.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},"input"),unput:k(function(f){var p=f.length,g=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===m.length?this.yylloc.first_column:0)+m[m.length-g.length].length-g[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(f){this.unput(this.match.slice(f))},"less"),pastInput:k(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var f=this.pastInput(),p=new Array(f.length+1).join("-");return f+this.upcomingInput()+`
`+p+"^"},"showPosition"),test_match:k(function(f,p){var g,m,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),m=f[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],g=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var v in _)this[v]=_[v];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,p,g,m;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),v=0;v<_.length;v++)if(g=this._input.match(this.rules[_[v]]),g&&(!p||g[0].length>p[0].length)){if(p=g,m=v,this.options.backtrack_lexer){if(f=this.test_match(g,_[v]),f!==!1)return f;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(f=this.test_match(p,_[m]),f!==!1?f:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var p=this.next();return p||this.lex()},"lex"),begin:k(function(p){this.conditionStack.push(p)},"begin"),popState:k(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:k(function(p){this.begin(p)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(p,g,m,_){switch(m){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();l.lexer=u;function d(){this.yy={}}return k(d,"Parser"),d.prototype=l,l.Parser=d,new d})();$ne.parser=$ne;var zHr=$ne,YA="",Tpe=[],O3=[],I3=[],qHr=k(function(){Tpe.length=0,O3.length=0,YA="",I3.length=0,ys()},"clear"),VHr=k(function(t){YA=t,Tpe.push(t)},"addSection"),HHr=k(function(){return Tpe},"getSections"),YHr=k(function(){let t=gNe();const e=100;let r=0;for(;!t&&r<e;)t=gNe(),r++;return O3.push(...I3),O3},"getTasks"),WHr=k(function(){const t=[];return O3.forEach(r=>{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),KHr=k(function(t,e){const r=e.substr(1).split(":");let n=0,i=[];r.length===1?(n=Number(r[0]),i=[]):(n=Number(r[0]),i=r[1].split(","));const a=i.map(o=>o.trim()),s={section:YA,type:YA,people:a,task:t,score:n};I3.push(s)},"addTask"),jHr=k(function(t){const e={section:YA,type:YA,description:t,task:t,classes:[]};O3.push(e)},"addTaskOrg"),gNe=k(function(){const t=k(function(r){return I3[r].processed},"compileTask");let e=!0;for(const[r,n]of I3.entries())t(r),e=e&&n.processed;return e},"compileTasks"),XHr=k(function(){return WHr()},"getActors"),mNe={getConfig:k(()=>vt().journey,"getConfig"),clear:qHr,setDiagramTitle:ks,getDiagramTitle:bs,setAccTitle:ms,getAccTitle:Fs,setAccDescription:Bs,getAccDescription:Us,addSection:VHr,getSections:HHr,getTasks:YHr,addTask:KHr,addTaskOrg:jHr,getActors:XHr},QHr=k(t=>`.label {
    font-family: ${t.fontFamily};
    color: ${t.textColor};
  }
  .mouth {
    stroke: #666;
  }

  line {
    stroke: ${t.textColor}
  }

  .legend {
    fill: ${t.textColor};
    font-family: ${t.fontFamily};
  }

  .label text {
    fill: #333;
  }
  .label {
    color: ${t.textColor}
  }

  .face {
    ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
    stroke: #999;
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${t.mainBkg};
    stroke: ${t.nodeBorder};
    stroke-width: 1px;
  }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${t.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${t.lineColor};
    stroke-width: 1.5px;
  }

  .flowchart-link {
    stroke: ${t.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${t.edgeLabelBackground};
    rect {
      opacity: 0.5;
    }
    text-align: center;
  }

  .cluster rect {
  }

  .cluster text {
    fill: ${t.titleColor};
  }

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${t.fontFamily};
    font-size: 12px;
    background: ${t.tertiaryColor};
    border: 1px solid ${t.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .task-type-0, .section-type-0  {
    ${t.fillType0?`fill: ${t.fillType0}`:""};
  }
  .task-type-1, .section-type-1  {
    ${t.fillType0?`fill: ${t.fillType1}`:""};
  }
  .task-type-2, .section-type-2  {
    ${t.fillType0?`fill: ${t.fillType2}`:""};
  }
  .task-type-3, .section-type-3  {
    ${t.fillType0?`fill: ${t.fillType3}`:""};
  }
  .task-type-4, .section-type-4  {
    ${t.fillType0?`fill: ${t.fillType4}`:""};
  }
  .task-type-5, .section-type-5  {
    ${t.fillType0?`fill: ${t.fillType5}`:""};
  }
  .task-type-6, .section-type-6  {
    ${t.fillType0?`fill: ${t.fillType6}`:""};
  }
  .task-type-7, .section-type-7  {
    ${t.fillType0?`fill: ${t.fillType7}`:""};
  }

  .actor-0 {
    ${t.actor0?`fill: ${t.actor0}`:""};
  }
  .actor-1 {
    ${t.actor1?`fill: ${t.actor1}`:""};
  }
  .actor-2 {
    ${t.actor2?`fill: ${t.actor2}`:""};
  }
  .actor-3 {
    ${t.actor3?`fill: ${t.actor3}`:""};
  }
  .actor-4 {
    ${t.actor4?`fill: ${t.actor4}`:""};
  }
  .actor-5 {
    ${t.actor5?`fill: ${t.actor5}`:""};
  }
  ${cD()}
`,"getStyles"),ZHr=QHr,Cpe=k(function(t,e){return k$(t,e)},"drawRect"),JHr=k(function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(l){const u=vA().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}k(a,"smile");function s(l){const u=vA().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}k(s,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return k(o,"ambivalent"),e.score>3?a(i):e.score<3?s(i):o(i),n},"drawFace"),Tit=k(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),Cit=k(function(t,e){return Xkr(t,e)},"drawText"),eYr=k(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}k(r,"genPoints");const n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,Cit(t,e)},"drawLabel"),tYr=k(function(t,e,r){const n=t.append("g"),i=th();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,Cpe(n,i),wit(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),Gne=-1,rYr=k(function(t,e,r,n){const i=e.x+r.width/2,a=t.append("g");Gne++,a.append("line").attr("id",n+"-task"+Gne).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),JHr(a,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=th();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,Cpe(a,o);let l=e.x+14;e.people.forEach(u=>{const d=e.actors[u].color,h={cx:l,cy:e.y,r:7,fill:d,stroke:"#000",title:u,pos:e.actors[u].position};Tit(a,h),l+=10}),wit(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),nYr=k(function(t,e){fHe(t,e)},"drawBackgroundRect"),wit=(function(){function t(i,a,s,o,l,u,d,h){const f=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(i);n(f,d)}k(t,"byText");function e(i,a,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=i.split(/<br\s*\/?>/gi);for(let _=0;_<m.length;_++){const v=_*p-p*(m.length-1)/2,y=a.append("text").attr("x",s+l/2).attr("y",o).attr("fill",f).style("text-anchor","middle").style("font-size",p).style("font-family",g);y.append("tspan").attr("x",s+l/2).attr("dy",v).text(m[_]),y.attr("y",o+u/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(y,d)}}k(e,"byTspan");function r(i,a,s,o,l,u,d,h){const f=a.append("switch"),g=f.append("foreignObject").attr("x",s).attr("y",o).attr("width",l).attr("height",u).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,f,s,o,l,u,d,h),n(g,d)}k(r,"byFo");function n(i,a){for(const s in a)s in a&&i.attr(s,a[s])}return k(n,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?r:i.textPlacement==="old"?t:e}})(),iYr=k(function(t,e){Gne=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),N3={drawRect:Cpe,drawCircle:Tit,drawSection:tYr,drawText:Cit,drawLabel:eYr,drawTask:rYr,drawBackgroundRect:nYr,initGraphics:iYr},aYr=k(function(t){Object.keys(t).forEach(function(r){df[r]=t[r]})},"setConf"),Gm={},W6=0;function xit(t){const e=vt().journey,r=e.maxLabelWidth;W6=0;let n=60;Object.keys(Gm).forEach(i=>{const a=Gm[i].color,s={cx:20,cy:n,r:7,fill:a,stroke:"#000",pos:Gm[i].position};N3.drawCircle(t,s);let o=t.append("text").attr("visibility","hidden").text(i);const l=o.node().getBoundingClientRect().width;o.remove();let u=[];if(l<=r)u=[i];else{const d=i.split(" ");let h="";o=t.append("text").attr("visibility","hidden"),d.forEach(f=>{const p=h?`${h} ${f}`:f;if(o.text(p),o.node().getBoundingClientRect().width>r){if(h&&u.push(h),h=f,o.text(f),o.node().getBoundingClientRect().width>r){let m="";for(const _ of f)m+=_,o.text(m+"-"),o.node().getBoundingClientRect().width>r&&(u.push(m.slice(0,-1)+"-"),m=_);h=m}}else h=p}),h&&u.push(h),o.remove()}u.forEach((d,h)=>{const f={x:40,y:n+7+h*20,fill:"#666",text:d,textMargin:e.boxTextMargin??5},g=N3.drawText(t,f).node().getBoundingClientRect().width;g>W6&&g>e.leftMargin-g&&(W6=g)}),n+=Math.max(20,u.length*20)})}k(xit,"drawActorLegend");var df=vt().journey,w_=0,sYr=k(function(t,e,r,n){const i=vt(),a=i.journey.titleColor,s=i.journey.titleFontSize,o=i.journey.titleFontFamily,l=i.securityLevel;let u;l==="sandbox"&&(u=dr("#i"+e));const d=dr(l==="sandbox"?u.nodes()[0].contentDocument.body:"body");bh.init();const h=d.select("#"+e);N3.initGraphics(h,e);const f=n.db.getTasks(),p=n.db.getDiagramTitle(),g=n.db.getActors();for(const E in Gm)delete Gm[E];let m=0;g.forEach(E=>{Gm[E]={color:df.actorColours[m%df.actorColours.length],position:m},m++}),xit(h),w_=df.leftMargin+W6,bh.insert(0,0,w_,Object.keys(Gm).length*50),oYr(h,f,0,e);const _=bh.getBounds();p&&h.append("text").text(p).attr("x",w_).attr("font-size",s).attr("font-weight","bold").attr("y",25).attr("fill",a).attr("font-family",o);const v=_.stopy-_.starty+2*df.diagramMarginY,y=w_+_.stopx+2*df.diagramMarginX;Xo(h,v,y,df.useMaxWidth),h.append("line").attr("x1",w_).attr("y1",df.height*4).attr("x2",y-w_-4).attr("y2",df.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const b=p?70:0;h.attr("viewBox",`${_.startx} -25 ${y} ${v+b}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",v+b+25)},"draw"),bh={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:k(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:k(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:k(function(t,e,r,n){const i=vt().journey,a=this;let s=0;function o(l){return k(function(d){s++;const h=a.sequenceItems.length-s+1;a.updateVal(d,"starty",e-h*i.boxMargin,Math.min),a.updateVal(d,"stopy",n+h*i.boxMargin,Math.max),a.updateVal(bh.data,"startx",t-h*i.boxMargin,Math.min),a.updateVal(bh.data,"stopx",r+h*i.boxMargin,Math.max),l!=="activation"&&(a.updateVal(d,"startx",t-h*i.boxMargin,Math.min),a.updateVal(d,"stopx",r+h*i.boxMargin,Math.max),a.updateVal(bh.data,"starty",e-h*i.boxMargin,Math.min),a.updateVal(bh.data,"stopy",n+h*i.boxMargin,Math.max))},"updateItemBounds")}k(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:k(function(t,e,r,n){const i=Math.min(t,r),a=Math.max(t,r),s=Math.min(e,n),o=Math.max(e,n);this.updateVal(bh.data,"startx",i,Math.min),this.updateVal(bh.data,"starty",s,Math.min),this.updateVal(bh.data,"stopx",a,Math.max),this.updateVal(bh.data,"stopy",o,Math.max),this.updateBounds(i,s,a,o)},"insert"),bumpVerticalPos:k(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:k(function(){return this.verticalPos},"getVerticalPos"),getBounds:k(function(){return this.data},"getBounds")},eQ=df.sectionFills,_Ne=df.sectionColours,oYr=k(function(t,e,r,n){const i=vt().journey;let a="";const s=i.height*2+i.diagramMarginY,o=r+s;let l=0,u="#CCC",d="black",h=0;for(const[f,p]of e.entries()){if(a!==p.section){u=eQ[l%eQ.length],h=l%eQ.length,d=_Ne[l%_Ne.length];let m=0;const _=p.section;for(let y=f;y<e.length&&e[y].section==_;y++)m=m+1;const v={x:f*i.taskMargin+f*i.width+w_,y:50,text:p.section,fill:u,num:h,colour:d,taskCount:m};N3.drawSection(t,v,i),a=p.section,l++}const g=p.people.reduce((m,_)=>(Gm[_]&&(m[_]=Gm[_]),m),{});p.x=f*i.taskMargin+f*i.width+w_,p.y=o,p.width=i.diagramMarginX,p.height=i.diagramMarginY,p.colour=d,p.fill=u,p.num=h,p.actors=g,N3.drawTask(t,p,i,n),bh.insert(p.x,p.y,p.x+p.width+i.taskMargin,450)}},"drawTasks"),vNe={setConf:aYr,draw:sYr},lYr={parser:zHr,db:mNe,renderer:vNe,styles:ZHr,init:k(t=>{vNe.setConf(t.journey),mNe.clear()},"init")};const cYr=Object.freeze(Object.defineProperty({__proto__:null,diagram:lYr},Symbol.toStringTag,{value:"Module"}));var zne=(function(){var t=k(function(f,p,g,m){for(g=g||{},m=f.length;m--;g[f[m]]=p);return g},"o"),e=[6,11,13,14,15,17,19,20,23,24],r=[1,12],n=[1,13],i=[1,14],a=[1,15],s=[1,16],o=[1,19],l=[1,20],u={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:k(function(p,g,m,_,v,y,b){var E=y.length-1;switch(v){case 1:return y[E-1];case 3:_.setDirection("LR");break;case 4:_.setDirection("TD");break;case 5:this.$=[];break;case 6:y[E-1].push(y[E]),this.$=y[E-1];break;case 7:case 8:this.$=y[E];break;case 9:case 10:this.$=[];break;case 11:_.getCommonDb().setDiagramTitle(y[E].substr(6)),this.$=y[E].substr(6);break;case 12:this.$=y[E].trim(),_.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=y[E].trim(),_.getCommonDb().setAccDescription(this.$);break;case 15:_.addSection(y[E].substr(8)),this.$=y[E].substr(8);break;case 18:_.addTask(y[E],0,""),this.$=y[E];break;case 19:_.addEvent(y[E].substr(2)),this.$=y[E];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:n,17:i,19:a,20:s,21:17,22:18,23:o,24:l},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:r,15:n,17:i,19:a,20:s,21:17,22:18,23:o,24:l},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:k(function(p,g){if(g.recoverable)this.trace(p);else{var m=new Error(p);throw m.hash=g,m}},"parseError"),parse:k(function(p){var g=this,m=[0],_=[],v=[null],y=[],b=this.table,E="",S=0,T=0,C=2,x=1,A=y.slice.call(arguments,1),R=Object.create(this.lexer),I={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(I.yy[L]=this.yy[L]);R.setInput(p,I.yy),I.yy.lexer=R,I.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var F=R.yylloc;y.push(F);var O=R.options&&R.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D(Q){m.length=m.length-2*Q,v.length=v.length-Q,y.length=y.length-Q}k(D,"popStack");function M(){var Q;return Q=_.pop()||R.lex()||x,typeof Q!="number"&&(Q instanceof Array&&(_=Q,Q=_.pop()),Q=g.symbols_[Q]||Q),Q}k(M,"lex");for(var P,N,$,U,B={},V,z,G,Y;;){if(N=m[m.length-1],this.defaultActions[N]?$=this.defaultActions[N]:((P===null||typeof P>"u")&&(P=M()),$=b[N]&&b[N][P]),typeof $>"u"||!$.length||!$[0]){var W="";Y=[];for(V in b[N])this.terminals_[V]&&V>C&&Y.push("'"+this.terminals_[V]+"'");R.showPosition?W="Parse error on line "+(S+1)+`:
`+R.showPosition()+`
Expecting `+Y.join(", ")+", got '"+(this.terminals_[P]||P)+"'":W="Parse error on line "+(S+1)+": Unexpected "+(P==x?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(W,{text:R.match,token:this.terminals_[P]||P,line:R.yylineno,loc:F,expected:Y})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+P);switch($[0]){case 1:m.push(P),v.push(R.yytext),y.push(R.yylloc),m.push($[1]),P=null,T=R.yyleng,E=R.yytext,S=R.yylineno,F=R.yylloc;break;case 2:if(z=this.productions_[$[1]][1],B.$=v[v.length-z],B._$={first_line:y[y.length-(z||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(z||1)].first_column,last_column:y[y.length-1].last_column},O&&(B._$.range=[y[y.length-(z||1)].range[0],y[y.length-1].range[1]]),U=this.performAction.apply(B,[E,T,S,I.yy,$[1],v,y].concat(A)),typeof U<"u")return U;z&&(m=m.slice(0,-1*z*2),v=v.slice(0,-1*z),y=y.slice(0,-1*z)),m.push(this.productions_[$[1]][0]),v.push(B.$),y.push(B._$),G=b[m[m.length-2]][m[m.length-1]],m.push(G);break;case 3:return!0}}return!0},"parse")},d=(function(){var f={EOF:1,parseError:k(function(g,m){if(this.yy.parser)this.yy.parser.parseError(g,m);else throw new Error(g)},"parseError"),setInput:k(function(p,g){return this.yy=g||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var g=p.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},"input"),unput:k(function(p){var g=p.length,m=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===_.length?this.yylloc.first_column:0)+_[_.length-m.length].length-m[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(p){this.unput(this.match.slice(p))},"less"),pastInput:k(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var p=this.pastInput(),g=new Array(p.length+1).join("-");return p+this.upcomingInput()+`
`+g+"^"},"showPosition"),test_match:k(function(p,g){var m,_,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),_=p[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],m=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var y in v)this[y]=v[y];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,g,m,_;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),y=0;y<v.length;y++)if(m=this._input.match(this.rules[v[y]]),m&&(!g||m[0].length>g[0].length)){if(g=m,_=y,this.options.backtrack_lexer){if(p=this.test_match(m,v[y]),p!==!1)return p;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(p=this.test_match(g,v[_]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var g=this.next();return g||this.lex()},"lex"),begin:k(function(g){this.conditionStack.push(g)},"begin"),popState:k(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:k(function(g){this.begin(g)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(g,m,_,v){switch(_){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return f})();u.lexer=d;function h(){this.yy={}}return k(h,"Parser"),h.prototype=u,u.Parser=h,new h})();zne.parser=zne;var uYr=zne,Ait={};SU(Ait,{addEvent:()=>Fit,addSection:()=>Dit,addTask:()=>Pit,addTaskOrg:()=>Bit,clear:()=>Iit,default:()=>dYr,getCommonDb:()=>Oit,getDirection:()=>kit,getSections:()=>Mit,getTasks:()=>Lit,setDirection:()=>Nit});var WA="",Rit=0,wpe="LR",xpe=[],TF=[],KA=[],Oit=k(()=>rce,"getCommonDb"),Iit=k(function(){xpe.length=0,TF.length=0,WA="",KA.length=0,wpe="LR",ys()},"clear"),Nit=k(function(t){wpe=t},"setDirection"),kit=k(function(){return wpe},"getDirection"),Dit=k(function(t){WA=t,xpe.push(t)},"addSection"),Mit=k(function(){return xpe},"getSections"),Lit=k(function(){let t=yNe();const e=100;let r=0;for(;!t&&r<e;)t=yNe(),r++;return TF.push(...KA),TF},"getTasks"),Pit=k(function(t,e,r){const n={id:Rit++,section:WA,type:WA,task:t,score:e||0,events:r?[r]:[]};KA.push(n)},"addTask"),Fit=k(function(t){KA.find(r=>r.id===Rit-1).events.push(t)},"addEvent"),Bit=k(function(t){const e={section:WA,type:WA,description:t,task:t,classes:[]};TF.push(e)},"addTaskOrg"),yNe=k(function(){const t=k(function(r){return KA[r].processed},"compileTask");let e=!0;for(const[r,n]of KA.entries())t(r),e=e&&n.processed;return e},"compileTasks"),dYr={clear:Iit,getCommonDb:Oit,getDirection:kit,setDirection:Nit,addSection:Dit,getSections:Mit,getTasks:Lit,addTask:Pit,addTaskOrg:Bit,addEvent:Fit},Uit=0,QG=k(function(t,e){const r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},"drawRect"),hYr=k(function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(l){const u=vA().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}k(a,"smile");function s(l){const u=vA().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",u).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}k(s,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return k(o,"ambivalent"),e.score>3?a(i):e.score<3?s(i):o(i),n},"drawFace"),fYr=k(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),$it=k(function(t,e){const r=e.text.replace(/<br\s*\/?>/gi," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class!==void 0&&n.attr("class",e.class);const i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),pYr=k(function(t,e){function r(i,a,s,o,l){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+o-l)+" "+(i+s-l*1.2)+","+(a+o)+" "+i+","+(a+o)}k(r,"genPoints");const n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,$it(t,e)},"drawLabel"),gYr=k(function(t,e,r){const n=t.append("g"),i=Ape();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width,i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,QG(n,i),Git(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),qne=-1,mYr=k(function(t,e,r,n){const i=e.x+r.width/2,a=t.append("g");qne++,a.append("line").attr("id",n+"-task"+qne).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),hYr(a,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=Ape();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,QG(a,o),Git(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),_Yr=k(function(t,e){QG(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),vYr=k(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Ape=k(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Git=(function(){function t(i,a,s,o,l,u,d,h){const f=a.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(i);n(f,d)}k(t,"byText");function e(i,a,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=i.split(/<br\s*\/?>/gi);for(let _=0;_<m.length;_++){const v=_*p-p*(m.length-1)/2,y=a.append("text").attr("x",s+l/2).attr("y",o).attr("fill",f).style("text-anchor","middle").style("font-size",p).style("font-family",g);y.append("tspan").attr("x",s+l/2).attr("dy",v).text(m[_]),y.attr("y",o+u/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(y,d)}}k(e,"byTspan");function r(i,a,s,o,l,u,d,h){const f=a.append("switch"),g=f.append("foreignObject").attr("x",s).attr("y",o).attr("width",l).attr("height",u).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,f,s,o,l,u,d,h),n(g,d)}k(r,"byFo");function n(i,a){for(const s in a)s in a&&i.attr(s,a[s])}return k(n,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?r:i.textPlacement==="old"?t:e}})(),yYr=k(function(t,e){Uit=0,qne=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function Rpe(t,e){t.each(function(){var r=dr(this),n=r.text().split(/(\s+|<br>)/).reverse(),i,a=[],s=1.1,o=r.attr("y"),l=parseFloat(r.attr("dy")),u=r.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",l+"em");for(let d=0;d<n.length;d++)i=n[n.length-1-d],a.push(i),u.text(a.join(" ").trim()),(u.node().getComputedTextLength()>e||i==="<br>")&&(a.pop(),u.text(a.join(" ").trim()),i==="<br>"?a=[""]:a=[i],u=r.append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em").text(i))})}k(Rpe,"wrap");var bYr=k(function(t,e,r,n,i,a=!1){const{theme:s,look:o}=n,l=s?.includes("redux"),u=n?.themeVariables?.THEME_COLOR_LIMIT??12,d=r%u-1,h=t.append("g");e.section=d,h.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+d));const f=h.append("g"),p=h.append("g"),m=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Rpe,e.width).node().getBBox(),_=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;if(e.height=m.height+_*1.1*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),l&&p.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),SYr(f,e,d,i,n),o==="neo"&&(h.attr("data-look","neo"),l)){const v=s.includes("dark"),y=t.node()?.ownerSVGElement??t.node(),b=dr(y),E=b.attr("id")??"",S=E?`${E}-drop-shadow`:"drop-shadow";if(b.select(`#${S}`).empty()){const T=b.select("defs");(T.empty()?b.append("defs"):T).append("filter").attr("id",S).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",v?"0.2":"0.06").attr("flood-color",v?"#FFFFFF":"#000000")}}return e},"drawNode"),EYr=k(function(t,e,r){const n=t.append("g"),a=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Rpe,e.width).node().getBBox(),s=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;return n.remove(),a.height+s*1.1*.5+e.padding},"getVirtualNodeHeight"),SYr=k(function(t,e,r,n,i){const{theme:a}=i,s=a?.includes("redux")?0:5,o=5,l=s>0?`M0 ${e.height-o} v${-e.height+2*o} q0,-${s},${s},-${s} h${e.width-2*o} q${s},0,${s},${s} v${e.height-o} H0 Z`:`M0 ${e.height-o} v${-(e.height-o)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",n+"-node-"+Uit++).attr("class","node-bkg node-"+e.type).attr("d",l),a?.includes("redux")||t.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),Zu={drawRect:QG,drawCircle:fYr,drawSection:gYr,drawText:$it,drawLabel:pYr,drawTask:mYr,drawBackgroundRect:_Yr,getTextObj:vYr,getNoteRect:Ape,initGraphics:yYr,drawNode:bYr,getVirtualNodeHeight:EYr},TYr=k(function(t,e,r,n){const i=vt(),{look:a,theme:s,themeVariables:o}=i,{useGradient:l,gradientStart:u,gradientStop:d}=o,h=i.timeline?.leftMargin??50;Pe.debug("timeline",n.db);const f=i.securityLevel;let p;f==="sandbox"&&(p=dr("#i"+e));const m=dr(f==="sandbox"?p.nodes()[0].contentDocument.body:"body").select("#"+e);m.append("g");const _=n.db.getTasks(),v=n.db.getCommonDb().getDiagramTitle();Pe.debug("task",_),Zu.initGraphics(m,e);const y=n.db.getSections();Pe.debug("sections",y);let b=0,E=0,S=0,T=0,C=50+h,x=50;T=50;let A=0,R=!0;y.forEach(function(D){const M={number:A,descr:D,section:A,width:150,padding:20,maxHeight:b},P=Zu.getVirtualNodeHeight(m,M,i);Pe.debug("sectionHeight before draw",P),b=Math.max(b,P+20)});let I=0,L=0;Pe.debug("tasks.length",_.length);for(const[D,M]of _.entries()){const P={number:D,descr:M,section:M.section,width:150,padding:20,maxHeight:E},N=Zu.getVirtualNodeHeight(m,P,i);Pe.debug("taskHeight before draw",N),E=Math.max(E,N+20),I=Math.max(I,M.events.length);let $=0;for(const U of M.events){const B={descr:U,section:M.section,number:M.section,width:150,padding:20,maxHeight:50};$+=Zu.getVirtualNodeHeight(m,B,i)}M.events.length>0&&($+=(M.events.length-1)*10),L=Math.max(L,$)}Pe.debug("maxSectionHeight before draw",b),Pe.debug("maxTaskHeight before draw",E),y&&y.length>0?y.forEach(D=>{const M=_.filter(U=>U.section===D),P={number:A,descr:D,section:A,width:200*Math.max(M.length,1)-50,padding:20,maxHeight:b};Pe.debug("sectionNode",P);const N=m.append("g"),$=Zu.drawNode(N,P,A,i,e);Pe.debug("sectionNode output",$),N.attr("transform",`translate(${C}, ${T})`),x+=b+50,M.length>0&&bNe(m,M,A,C,x,E,i,I,L,b,!1,e),C+=200*Math.max(M.length,1),x=T,A++}):(R=!1,bNe(m,_,A,C,x,E,i,I,L,b,!0,e));const F=m.node().getBBox();if(Pe.debug("bounds",F),v&&m.append("text").text(v).attr("x",a==="neo"?F.x*2+h:F.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),S=R?b+E+150:E+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",h).attr("y1",S).attr("x2",F.width+3*h).attr("y2",S).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),a==="neo"&&l&&s!=="neutral"){const D=m.select("defs"),P=(D.empty()?m.append("defs"):D).append("linearGradient").attr("id",m.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");P.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),P.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}CR(void 0,m,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),bNe=k(function(t,e,r,n,i,a,s,o,l,u,d,h){for(const f of e){const p={descr:f.task,section:r,number:r,width:150,padding:20,maxHeight:a};Pe.debug("taskNode",p);const g=t.append("g").attr("class","taskWrapper"),_=Zu.drawNode(g,p,r,s,h).height;if(Pe.debug("taskHeight after draw",_),g.attr("transform",`translate(${n}, ${i})`),a=Math.max(a,_),f.events){const v=t.append("g").attr("class","lineWrapper");let y=a;i+=100,y=y+CYr(t,f.events,r,n,i,s,h),i-=100,v.append("line").attr("x1",n+190/2).attr("y1",i+a).attr("x2",n+190/2).attr("y2",i+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${h}-arrowhead)`).attr("stroke-dasharray","5,5")}n=n+200,d&&!s.timeline?.disableMulticolor&&r++}i=i-10},"drawTasks"),CYr=k(function(t,e,r,n,i,a,s){let o=0;const l=i;i=i+100;for(const u of e){const d={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};Pe.debug("eventNode",d);const h=t.append("g").attr("class","eventWrapper"),p=Zu.drawNode(h,d,r,a,s,!0).height;o=o+p,h.attr("transform",`translate(${n}, ${i})`),i=i+10+p}return i=l,o},"drawEvents"),wYr={setConf:k(()=>{},"setConf"),draw:TYr},ZG=200,km=5,xYr=ZG+km*2,Ope=ZG+100,AYr=Ope+km*2,zit=10,RYr=0,ENe=20,qit=20,SNe=30,Vit=50,OYr=k(function(t,e,r,n){const i=vt(),a=i.timeline?.leftMargin??50;Pe.debug("timeline",n.db);const s=ud(e);s.append("g");const o=n.db.getTasks(),l=n.db.getCommonDb().getDiagramTitle();Pe.debug("task",o),Zu.initGraphics(s);const u=n.db.getSections();Pe.debug("sections",u);let d=0,h=0;const f=50+a;let p=50;const g=p,m=f,_=xYr+qit,v=AYr+Vit,y=m+_;let b=0;const E=u&&u.length>0,S=E?y:f+_,T=Math.max(50,_+v-km*2);u.forEach(function(D){const M={number:b,descr:D,section:b,width:T,padding:km,maxHeight:d},P=Zu.getVirtualNodeHeight(s,M,i);Pe.debug("sectionHeight before draw",P),d=Math.max(d,P)});let C=0;Pe.debug("tasks.length",o.length);for(const[D,M]of o.entries()){const P={number:D,descr:M,section:M.section,width:ZG,padding:km,maxHeight:h},N=Zu.getVirtualNodeHeight(s,P,i);Pe.debug("taskHeight before draw",N),h=Math.max(h,N);let $=0;for(const U of M.events){const B={descr:U,section:M.section,number:M.section,width:Ope,padding:km,maxHeight:50};$+=Zu.getVirtualNodeHeight(s,B,i)}M.events.length>0&&($+=(M.events.length-1)*zit),C=Math.max(C,$)+RYr}Pe.debug("maxSectionHeight before draw",d),Pe.debug("maxTaskHeight before draw",h);const A=Math.max(h,C)+SNe;E?u.forEach(D=>{const M=o.filter(G=>G.section===D),P={number:b,descr:D,section:b,width:T,padding:km,maxHeight:d};Pe.debug("sectionNode",P);const N=s.append("g"),$=Zu.drawNode(N,P,b,i);Pe.debug("sectionNode output",$);const U=S-_;N.attr("transform",`translate(${U}, ${p})`);const B=p+$.height+ENe;M.length>0&&TNe(s,M,b,S,B,h,i,A,!1);const V=M.length,z=$.height+ENe+A*Math.max(V,1)-(V>0?SNe*2:0);p+=z,b++}):TNe(s,o,b,S,p,h,i,A,!0);let R=s.node()?.getBBox();if(!R)throw new Error("bbox not found");if(Pe.debug("bounds",R),l){if(s.append("text").text(l).attr("x",R.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),R=s.node()?.getBBox(),!R)throw new Error("bbox not found");Pe.debug("bounds after title",R)}const[I]=B0(i.fontSize),L=(I??16)*2,F=(I??16)*.5+20,O=s.append("g").attr("class","lineWrapper");O.append("line").attr("x1",S).attr("y1",g-L).attr("x2",S).attr("y2",R.y+R.height+F).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),O.lower(),CR(void 0,s,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),TNe=k(function(t,e,r,n,i,a,s,o,l){for(const u of e){const d={descr:u.task,section:r,number:r,width:ZG,padding:km,maxHeight:a};Pe.debug("taskNode",d);const h=t.append("g").attr("class","taskWrapper"),f=Zu.drawNode(h,d,r,s),p=f.height;Pe.debug("taskHeight after draw",p);const g=n-qit-f.width;if(h.attr("transform",`translate(${g}, ${i})`),a=Math.max(a,p),u.events&&u.events.length>0){const m=i,_=n+Vit;IYr(t,u.events,r,n,_,m,s)}i=i+o,l&&!s.timeline?.disableMulticolor&&r++}},"drawTasks"),IYr=k(function(t,e,r,n,i,a,s){let o=a;for(const l of e){const u={descr:l,section:r,number:r,width:Ope,padding:km,maxHeight:0};Pe.debug("eventNode",u);const d=t.append("g").attr("class","eventWrapper"),f=Zu.drawNode(d,u,r,s).height;d.attr("transform",`translate(${i}, ${o})`);const p=t.append("g").attr("class","lineWrapper"),g=o+f/2;p.append("line").attr("x1",n).attr("y1",g).attr("x2",i).attr("y2",g).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+f+zit}return o-a},"drawEvents"),NYr={setConf:k(()=>{},"setConf"),draw:OYr},kYr=k(t=>{const{theme:e}=Ln(),r=e?.includes("dark"),n=e?.includes("color"),i=t.svgId?.replace(/^#/,"")??"",a=i?`url(#${i}-drop-shadow)`:t.dropShadow??"none";let s="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++){const l=`${17-3*o}`,u=n?t.borderColorArray[o]:t.mainBkg,d=n?t.borderColorArray[o]:t.nodeBorder;s+=`
    .section-${o-1} rect,
    .section-${o-1} path,
    .section-${o-1} circle {
      fill: ${r&&n?t.mainBkg:u};
      stroke: ${d};
      stroke-width: ${t.strokeWidth};
      filter: ${a};
    }

    .section-${o-1} text {
      fill: ${t.nodeBorder};
      font-weight: ${t.fontWeight}
    }

    .node-icon-${o-1} {
      font-size: 40px;
      color: ${t["cScaleLabel"+o]};
    }

    .section-edge-${o-1} {
      stroke: ${t["cScale"+o]};
    }

    .edge-depth-${o-1} {
      stroke-width: ${l};
    }

    .section-${o-1} line {
      stroke: ${t["cScaleInv"+o]};
      stroke-width: 3;
    }

    .lineWrapper line {
      stroke: ${t.nodeBorder};
      stroke-width:${t.strokeWidth}
    }

    .disabled,
    .disabled circle,
    .disabled text {
      fill: ${t.tertiaryColor??"lightgray"};
    }

    .disabled text {
      fill: ${t.clusterBorder??"#efefef"};
    }
    `}return s},"genReduxSections"),DYr=k(t=>{let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)t["lineColor"+r]=t["lineColor"+r]||t["cScaleInv"+r],wu(t["lineColor"+r])?t["lineColor"+r]=Zt(t["lineColor"+r],20):t["lineColor"+r]=Jt(t["lineColor"+r],20);for(let r=0;r<t.THEME_COLOR_LIMIT;r++){const n=""+(17-3*r);e+=`
    .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} path  {
      fill: ${t["cScale"+r]};
    }
    .section-${r-1} text {
     fill: ${t["cScaleLabel"+r]};
    }
    .node-icon-${r-1} {
      font-size: 40px;
      color: ${t["cScaleLabel"+r]};
    }
    .section-edge-${r-1}{
      stroke: ${t["cScale"+r]};
    }
    .edge-depth-${r-1}{
      stroke-width: ${n};
    }
    .section-${r-1} line {
      stroke: ${t["cScaleInv"+r]} ;
      stroke-width: 3;
    }

    .lineWrapper line{
      stroke: ${t["cScaleLabel"+r]} ;
    }

    .disabled, .disabled circle, .disabled text {
      fill: ${t.tertiaryColor??"lightgray"};
    }
    .disabled text {
      fill: ${t.clusterBorder??"#efefef"};
    }
    `}return e},"genSections"),MYr=k(t=>{const{theme:e}=Ln(),r=e?.includes("redux"),n=e==="neutral",i=t.svgId?.replace(/^#/,"")??"";let a="";if(t.useGradient&&i&&t.THEME_COLOR_LIMIT&&!n)for(let s=0;s<t.THEME_COLOR_LIMIT;s++)a+=`
      .section-${s-1}[data-look="neo"] rect,
      .section-${s-1}[data-look="neo"] path,
      .section-${s-1}[data-look="neo"] circle {
        fill: ${t.mainBkg};
        stroke: url(#${i}-gradient);
        stroke-width: 2;
      }
      .section-${s-1}[data-look="neo"] line {
        stroke: url(#${i}-gradient);
        stroke-width: 2;
      }`;return`
  .edge {
    stroke-width: 3;
  }
  ${r?kYr(t):DYr(t)}
  ${a}
  .section-root rect, .section-root path, .section-root circle  {
    fill: ${t.git0};
  }
  .section-root text {
    fill: ${t.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .eventWrapper  {
   filter: brightness(120%);
  }
`},"getStyles"),LYr=MYr,PYr={setConf:k(()=>{},"setConf"),draw:k((t,e,r,n)=>(n?.db?.getDirection?.()??"LR")==="TD"?NYr.draw(t,e,r,n):wYr.draw(t,e,r,n),"draw")},FYr={db:Ait,renderer:PYr,parser:uYr,styles:LYr};const BYr=Object.freeze(Object.defineProperty({__proto__:null,diagram:FYr},Symbol.toStringTag,{value:"Module"})),$l=[];for(let t=0;t<256;++t)$l.push((t+256).toString(16).slice(1));function UYr(t,e=0){return($l[t[e+0]]+$l[t[e+1]]+$l[t[e+2]]+$l[t[e+3]]+"-"+$l[t[e+4]]+$l[t[e+5]]+"-"+$l[t[e+6]]+$l[t[e+7]]+"-"+$l[t[e+8]]+$l[t[e+9]]+"-"+$l[t[e+10]]+$l[t[e+11]]+$l[t[e+12]]+$l[t[e+13]]+$l[t[e+14]]+$l[t[e+15]]).toLowerCase()}let tQ;const $Yr=new Uint8Array(16);function GYr(){if(!tQ){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");tQ=crypto.getRandomValues.bind(crypto)}return tQ($Yr)}const zYr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),CNe={randomUUID:zYr};function qYr(t,e,r){t=t||{};const n=t.random??t.rng?.()??GYr();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,UYr(n)}function VYr(t,e,r){return CNe.randomUUID&&!t?CNe.randomUUID():qYr(t)}var Vne=(function(){var t=k(function(E,S,T,C){for(T=T||{},C=E.length;C--;T[E[C]]=S);return T},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],o=[1,19],l=[6,7,8],u=[1,26],d=[1,24],h=[1,25],f=[6,7,11],p=[1,6,13,15,16,19,22],g=[1,33],m=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:k(function(S,T,C,x,A,R,I){var L=R.length-1;switch(A){case 6:case 7:return x;case 8:x.getLogger().trace("Stop NL ");break;case 9:x.getLogger().trace("Stop EOF ");break;case 11:x.getLogger().trace("Stop NL2 ");break;case 12:x.getLogger().trace("Stop EOF2 ");break;case 15:x.getLogger().info("Node: ",R[L].id),x.addNode(R[L-1].length,R[L].id,R[L].descr,R[L].type);break;case 16:x.getLogger().trace("Icon: ",R[L]),x.decorateNode({icon:R[L]});break;case 17:case 21:x.decorateNode({class:R[L]});break;case 18:x.getLogger().trace("SPACELIST");break;case 19:x.getLogger().trace("Node: ",R[L].id),x.addNode(0,R[L].id,R[L].descr,R[L].type);break;case 20:x.decorateNode({icon:R[L]});break;case 25:x.getLogger().trace("node found ..",R[L-2]),this.$={id:R[L-1],descr:R[L-1],type:x.getType(R[L-2],R[L])};break;case 26:this.$={id:R[L],descr:R[L],type:x.nodeType.DEFAULT};break;case 27:x.getLogger().trace("node found ..",R[L-3]),this.$={id:R[L-3],descr:R[L-1],type:x.getType(R[L-2],R[L])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},{6:r,9:22,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},{6:u,7:d,10:23,11:h},t(f,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:o}),t(f,[2,18]),t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),t(f,[2,23]),t(f,[2,24]),t(f,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:h},{1:[2,7],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:o},t(p,[2,14],{7:g,11:m}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(f,[2,15]),t(f,[2,16]),t(f,[2,17]),{20:[1,35]},{21:[1,36]},t(p,[2,13],{7:g,11:m}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(f,[2,25]),t(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:k(function(S,T){if(T.recoverable)this.trace(S);else{var C=new Error(S);throw C.hash=T,C}},"parseError"),parse:k(function(S){var T=this,C=[0],x=[],A=[null],R=[],I=this.table,L="",F=0,O=0,D=2,M=1,P=R.slice.call(arguments,1),N=Object.create(this.lexer),$={yy:{}};for(var U in this.yy)Object.prototype.hasOwnProperty.call(this.yy,U)&&($.yy[U]=this.yy[U]);N.setInput(S,$.yy),$.yy.lexer=N,$.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var B=N.yylloc;R.push(B);var V=N.options&&N.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(_e){C.length=C.length-2*_e,A.length=A.length-_e,R.length=R.length-_e}k(z,"popStack");function G(){var _e;return _e=x.pop()||N.lex()||M,typeof _e!="number"&&(_e instanceof Array&&(x=_e,_e=x.pop()),_e=T.symbols_[_e]||_e),_e}k(G,"lex");for(var Y,W,Q,ie,Z={},re,K,j,se;;){if(W=C[C.length-1],this.defaultActions[W]?Q=this.defaultActions[W]:((Y===null||typeof Y>"u")&&(Y=G()),Q=I[W]&&I[W][Y]),typeof Q>"u"||!Q.length||!Q[0]){var le="";se=[];for(re in I[W])this.terminals_[re]&&re>D&&se.push("'"+this.terminals_[re]+"'");N.showPosition?le="Parse error on line "+(F+1)+`:
`+N.showPosition()+`
Expecting `+se.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":le="Parse error on line "+(F+1)+": Unexpected "+(Y==M?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(le,{text:N.match,token:this.terminals_[Y]||Y,line:N.yylineno,loc:B,expected:se})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+Y);switch(Q[0]){case 1:C.push(Y),A.push(N.yytext),R.push(N.yylloc),C.push(Q[1]),Y=null,O=N.yyleng,L=N.yytext,F=N.yylineno,B=N.yylloc;break;case 2:if(K=this.productions_[Q[1]][1],Z.$=A[A.length-K],Z._$={first_line:R[R.length-(K||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(K||1)].first_column,last_column:R[R.length-1].last_column},V&&(Z._$.range=[R[R.length-(K||1)].range[0],R[R.length-1].range[1]]),ie=this.performAction.apply(Z,[L,O,F,$.yy,Q[1],A,R].concat(P)),typeof ie<"u")return ie;K&&(C=C.slice(0,-1*K*2),A=A.slice(0,-1*K),R=R.slice(0,-1*K)),C.push(this.productions_[Q[1]][0]),A.push(Z.$),R.push(Z._$),j=I[C[C.length-2]][C[C.length-1]],C.push(j);break;case 3:return!0}}return!0},"parse")},y=(function(){var E={EOF:1,parseError:k(function(T,C){if(this.yy.parser)this.yy.parser.parseError(T,C);else throw new Error(T)},"parseError"),setInput:k(function(S,T){return this.yy=T||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var T=S.match(/(?:\r\n?|\n).*/g);return T?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:k(function(S){var T=S.length,C=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===x.length?this.yylloc.first_column:0)+x[x.length-C.length].length-C[0].length:this.yylloc.first_column-T},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-T]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(S){this.unput(this.match.slice(S))},"less"),pastInput:k(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var S=this.pastInput(),T=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
`+T+"^"},"showPosition"),test_match:k(function(S,T){var C,x,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),x=S[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],C=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var R in A)this[R]=A[R];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,T,C,x;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),R=0;R<A.length;R++)if(C=this._input.match(this.rules[A[R]]),C&&(!T||C[0].length>T[0].length)){if(T=C,x=R,this.options.backtrack_lexer){if(S=this.test_match(C,A[R]),S!==!1)return S;if(this._backtrack){T=!1;continue}else return!1}else if(!this.options.flex)break}return T?(S=this.test_match(T,A[x]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var T=this.next();return T||this.lex()},"lex"),begin:k(function(T){this.conditionStack.push(T)},"begin"),popState:k(function(){var T=this.conditionStack.length-1;return T>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(T){return T=this.conditionStack.length-1-Math.abs(T||0),T>=0?this.conditionStack[T]:"INITIAL"},"topState"),pushState:k(function(T){this.begin(T)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(T,C,x,A){switch(x){case 0:return T.getLogger().trace("Found comment",C.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:T.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return T.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:T.getLogger().trace("end icon"),this.popState();break;case 10:return T.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return T.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return T.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return T.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:T.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return T.getLogger().trace("description:",C.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),T.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),T.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),T.getLogger().trace("node end ...",C.yytext),"NODE_DEND";case 30:return this.popState(),T.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),T.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),T.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),T.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),T.getLogger().trace("node end (("),"NODE_DEND";case 35:return T.getLogger().trace("Long description:",C.yytext),20;case 36:return T.getLogger().trace("Long description:",C.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return E})();v.lexer=y;function b(){this.yy={}}return k(b,"Parser"),b.prototype=v,v.Parser=b,new b})();Vne.parser=Vne;var HYr=Vne,YYr=12,om={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Dx,WYr=(Dx=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=om,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level<e)return this.nodes[r];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,r,n,i){Pe.info("addNode",e,r,n,i);let a=!1;this.nodes.length===0?(this.baseLevel=e,e=0,a=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,a=!1);const s=vt();let o=s.mindmap?.padding??Gi.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2;break}const l={id:this.count++,nodeId:ta(r,s),level:e,descr:ta(n,s),type:i,children:[],width:s.mindmap?.maxNodeWidth??Gi.mindmap.maxNodeWidth,padding:o,isRoot:a},u=this.getParent(e);if(u)u.children.push(l),this.nodes.push(l);else if(a)this.nodes.push(l);else throw new Error(`There can be only one root. No parent could be found for ("${l.descr}")`)}getType(e,r){switch(Pe.debug("In get type",e,r),e){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const r=vt(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=ta(e.icon,r)),e.class&&(n.class=ta(e.class,r))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,r){if(e.level===0?e.section=void 0:e.section=r,e.children)for(const[n,i]of e.children.entries()){const a=e.level===0?n%(YYr-1):r;this.assignSections(i,a)}}flattenNodes(e,r){const n=vt(),i=["mindmap-node"];e.isRoot===!0?i.push("section-root","section--1"):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);const a=i.join(" "),s=k(l=>{const d=(n.theme?.toLowerCase()??"").includes("redux");switch(l){case om.CIRCLE:return"mindmapCircle";case om.RECT:return"rect";case om.ROUNDED_RECT:return"rounded";case om.CLOUD:return"cloud";case om.BANG:return"bang";case om.HEXAGON:return"hexagon";case om.DEFAULT:return d?"rounded":"defaultMindmapNode";case om.NO_BORDER:default:return"rect"}},"getShapeFromType"),o={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:a,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(r.push(o),e.children)for(const l of e.children)this.flattenNodes(l,r)}generateEdges(e,r){if(!e.children)return;const n=vt();for(const i of e.children){let a="edge";i.section!==void 0&&(a+=` section-edge-${i.section}`);const s=e.level+1;a+=` edge-depth-${s}`;const o={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:a,depth:e.level,section:i.section};r.push(o),this.generateEdges(i,r)}}getData(){const e=this.getMindmap(),r=vt(),i=Ysr().layout!==void 0,a=r;if(i||(a.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:a};Pe.debug("getData: mindmapRoot",e,r),this.assignSections(e);const s=[],o=[];this.flattenNodes(e,s),this.generateEdges(e,o),Pe.debug(`getData: processed ${s.length} nodes and ${o.length} edges`);const l=new Map;for(const u of s)l.set(u.id,{shape:u.shape,width:u.width,height:u.height,padding:u.padding});return{nodes:s,edges:o,config:a,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:"mindmap",diagramId:"mindmap-"+VYr()}}getLogger(){return Pe}},k(Dx,"MindmapDB"),Dx),KYr=k(async(t,e,r,n)=>{Pe.debug(`Rendering mindmap diagram
`+t);const i=n.db,a=i.getData(),s=UR(e,a.config.securityLevel);if(a.type=n.type,a.layoutAlgorithm=Y5(a.config.layout,{fallback:"cose-bilkent"}),a.diagramId=e,!i.getMindmap())return;a.nodes.forEach(f=>{f.shape==="rounded"?(f.radius=15,f.taper=15,f.stroke="none",f.width=0,f.padding=15):f.shape==="circle"?f.padding=10:f.shape==="rect"?(f.width=0,f.padding=10):f.shape==="hexagon"&&(f.width=0,f.height=0)}),await RR(a,s);const{themeVariables:l}=Ln(),{useGradient:u,gradientStart:d,gradientStop:h}=l;if(u&&d&&h){const f=s.attr("id"),p=s.append("defs").append("linearGradient").attr("id",`${f}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");p.append("stop").attr("offset","0%").attr("stop-color",d).attr("stop-opacity",1),p.append("stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}CE(s,a.config.mindmap?.padding??Gi.mindmap.padding,"mindmapDiagram",a.config.mindmap?.useMaxWidth??Gi.mindmap.useMaxWidth)},"draw"),jYr={draw:KYr},XYr=k(t=>{const{theme:e,look:r}=t;let n="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)t["lineColor"+i]=t["lineColor"+i]||t["cScaleInv"+i],wu(t["lineColor"+i])?t["lineColor"+i]=Zt(t["lineColor"+i],20):t["lineColor"+i]=Jt(t["lineColor"+i],20);for(let i=0;i<t.THEME_COLOR_LIMIT;i++){const a=""+(r==="neo"?Math.max(10-(i-1)*2,2):17-3*i);n+=`
    .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path  {
      fill: ${t["cScale"+i]};
    }
    .section-${i-1} text {
     fill: ${t["cScaleLabel"+i]};
    }
     .section-${i-1} span {
     color: ${t["cScaleLabel"+i]};
    }
    .node-icon-${i-1} {
      font-size: 40px;
      color: ${t["cScaleLabel"+i]};
    }
    .section-edge-${i-1}{
      stroke: ${t["cScale"+i]};
    }
    .edge-depth-${i-1}{
      stroke-width: ${a};
    }
    .section-${i-1} line {
      stroke: ${t["cScaleInv"+i]} ;
      stroke-width: 3;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }
    [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
      fill: ${e==="redux"||e==="redux-dark"||e==="neutral"?t.mainBkg:t["cScale"+i]};
      stroke: ${e==="redux"||e==="redux-dark"?t.nodeBorder:t["cScale"+i]};
      stroke-width: ${t.strokeWidth??2}px;
    }
    [data-look="neo"].section-edge-${i-1}{
      stroke: ${e?.includes("redux")||e==="neo-dark"?t.nodeBorder:t["cScale"+i]};
    }
    [data-look="neo"].mindmap-node.section-${i-1} text {
     fill: ${e==="redux"||e==="redux-dark"?t.nodeBorder:t["cScaleLabel"+(e==="neutral"?1:i)]};
    }
    `}return n},"genSections"),QYr=k((t,e,r)=>{let n="";for(let i=0;i<t;i++)n+=`
    [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
      stroke: url(${e}-gradient);
      fill: ${r};
    }
    .section-${i-1} line {
      stroke-width: 0;
    }`;return n},"genGradient"),ZYr=k(t=>{const{theme:e}=t,r=t.svgId,n=t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none";return`
  .edge {
    stroke-width: 3;
  }
  ${XYr(t)}
  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {
    fill: ${t.git0};
  }
  .section-root text {
    fill: ${t.gitBranchLabel0};
  }
  .section-root span {
    color: ${e?.includes("redux")?t.nodeBorder:t.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .mindmap-node-label {
    dy: 1em;
    alignment-baseline: middle;
    text-anchor: middle;
    dominant-baseline: middle;
    text-align: center;
  }
  [data-look="neo"].mindmap-node  {
    filter: ${n};
  }
  [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon  {
    fill: ${e?.includes("redux")?t.mainBkg:t.git0};
  }
  [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
    fill:  ${e?.includes("redux")?t.nodeBorder:t["cScaleLabel"+(e==="neutral"?1:0)]};
  }
  ${t.useGradient&&r&&t.mainBkg?QYr(t.THEME_COLOR_LIMIT,r,t.mainBkg):""}
`},"getStyles"),JYr=ZYr,eWr={get db(){return new WYr},renderer:jYr,parser:HYr,styles:JYr};const tWr=Object.freeze(Object.defineProperty({__proto__:null,diagram:eWr},Symbol.toStringTag,{value:"Module"}));var Hne=(function(){var t=k(function(C,x,A,R){for(A=A||{},R=C.length;R--;A[C[R]]=x);return A},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],o=[1,19],l=[6,7,8],u=[1,26],d=[1,24],h=[1,25],f=[6,7,11],p=[1,31],g=[6,7,11,24],m=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],E={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:k(function(x,A,R,I,L,F,O){var D=F.length-1;switch(L){case 6:case 7:return I;case 8:I.getLogger().trace("Stop NL ");break;case 9:I.getLogger().trace("Stop EOF ");break;case 11:I.getLogger().trace("Stop NL2 ");break;case 12:I.getLogger().trace("Stop EOF2 ");break;case 15:I.getLogger().info("Node: ",F[D-1].id),I.addNode(F[D-2].length,F[D-1].id,F[D-1].descr,F[D-1].type,F[D]);break;case 16:I.getLogger().info("Node: ",F[D].id),I.addNode(F[D-1].length,F[D].id,F[D].descr,F[D].type);break;case 17:I.getLogger().trace("Icon: ",F[D]),I.decorateNode({icon:F[D]});break;case 18:case 23:I.decorateNode({class:F[D]});break;case 19:I.getLogger().trace("SPACELIST");break;case 20:I.getLogger().trace("Node: ",F[D-1].id),I.addNode(0,F[D-1].id,F[D-1].descr,F[D-1].type,F[D]);break;case 21:I.getLogger().trace("Node: ",F[D].id),I.addNode(0,F[D].id,F[D].descr,F[D].type);break;case 22:I.decorateNode({icon:F[D]});break;case 27:I.getLogger().trace("node found ..",F[D-2]),this.$={id:F[D-1],descr:F[D-1],type:I.getType(F[D-2],F[D])};break;case 28:this.$={id:F[D],descr:F[D],type:0};break;case 29:I.getLogger().trace("node found ..",F[D-3]),this.$={id:F[D-3],descr:F[D-1],type:I.getType(F[D-2],F[D])};break;case 30:this.$=F[D-1]+F[D];break;case 31:this.$=F[D];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},{6:r,9:22,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},{6:u,7:d,10:23,11:h},t(f,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:o}),t(f,[2,19]),t(f,[2,21],{15:30,24:p}),t(f,[2,22]),t(f,[2,23]),t(g,[2,25]),t(g,[2,26]),t(g,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:h},{1:[2,7],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:o},t(m,[2,14],{7:_,11:v}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(f,[2,16],{15:37,24:p}),t(f,[2,17]),t(f,[2,18]),t(f,[2,20],{24:b}),t(g,[2,31]),{21:[1,39]},{22:[1,40]},t(m,[2,13],{7:_,11:v}),t(y,[2,11]),t(y,[2,12]),t(f,[2,15],{24:b}),t(g,[2,30]),{22:[1,41]},t(g,[2,27]),t(g,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:k(function(x,A){if(A.recoverable)this.trace(x);else{var R=new Error(x);throw R.hash=A,R}},"parseError"),parse:k(function(x){var A=this,R=[0],I=[],L=[null],F=[],O=this.table,D="",M=0,P=0,N=2,$=1,U=F.slice.call(arguments,1),B=Object.create(this.lexer),V={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(V.yy[z]=this.yy[z]);B.setInput(x,V.yy),V.yy.lexer=B,V.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var G=B.yylloc;F.push(G);var Y=B.options&&B.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(Se){R.length=R.length-2*Se,L.length=L.length-Se,F.length=F.length-Se}k(W,"popStack");function Q(){var Se;return Se=I.pop()||B.lex()||$,typeof Se!="number"&&(Se instanceof Array&&(I=Se,Se=I.pop()),Se=A.symbols_[Se]||Se),Se}k(Q,"lex");for(var ie,Z,re,K,j={},se,le,_e,ye;;){if(Z=R[R.length-1],this.defaultActions[Z]?re=this.defaultActions[Z]:((ie===null||typeof ie>"u")&&(ie=Q()),re=O[Z]&&O[Z][ie]),typeof re>"u"||!re.length||!re[0]){var Ue="";ye=[];for(se in O[Z])this.terminals_[se]&&se>N&&ye.push("'"+this.terminals_[se]+"'");B.showPosition?Ue="Parse error on line "+(M+1)+`:
`+B.showPosition()+`
Expecting `+ye.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":Ue="Parse error on line "+(M+1)+": Unexpected "+(ie==$?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(Ue,{text:B.match,token:this.terminals_[ie]||ie,line:B.yylineno,loc:G,expected:ye})}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+ie);switch(re[0]){case 1:R.push(ie),L.push(B.yytext),F.push(B.yylloc),R.push(re[1]),ie=null,P=B.yyleng,D=B.yytext,M=B.yylineno,G=B.yylloc;break;case 2:if(le=this.productions_[re[1]][1],j.$=L[L.length-le],j._$={first_line:F[F.length-(le||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(le||1)].first_column,last_column:F[F.length-1].last_column},Y&&(j._$.range=[F[F.length-(le||1)].range[0],F[F.length-1].range[1]]),K=this.performAction.apply(j,[D,P,M,V.yy,re[1],L,F].concat(U)),typeof K<"u")return K;le&&(R=R.slice(0,-1*le*2),L=L.slice(0,-1*le),F=F.slice(0,-1*le)),R.push(this.productions_[re[1]][0]),L.push(j.$),F.push(j._$),_e=O[R[R.length-2]][R[R.length-1]],R.push(_e);break;case 3:return!0}}return!0},"parse")},S=(function(){var C={EOF:1,parseError:k(function(A,R){if(this.yy.parser)this.yy.parser.parseError(A,R);else throw new Error(A)},"parseError"),setInput:k(function(x,A){return this.yy=A||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var A=x.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:k(function(x){var A=x.length,R=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var I=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),R.length-1&&(this.yylineno-=R.length-1);var L=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:R?(R.length===I.length?this.yylloc.first_column:0)+I[I.length-R.length].length-R[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(x){this.unput(this.match.slice(x))},"less"),pastInput:k(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var x=this.pastInput(),A=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
`+A+"^"},"showPosition"),test_match:k(function(x,A){var R,I,L;if(this.options.backtrack_lexer&&(L={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(L.yylloc.range=this.yylloc.range.slice(0))),I=x[0].match(/(?:\r\n?|\n).*/g),I&&(this.yylineno+=I.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:I?I[I.length-1].length-I[I.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+x[0].length},this.yytext+=x[0],this.match+=x[0],this.matches=x,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(x[0].length),this.matched+=x[0],R=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var F in L)this[F]=L[F];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var x,A,R,I;this._more||(this.yytext="",this.match="");for(var L=this._currentRules(),F=0;F<L.length;F++)if(R=this._input.match(this.rules[L[F]]),R&&(!A||R[0].length>A[0].length)){if(A=R,I=F,this.options.backtrack_lexer){if(x=this.test_match(R,L[F]),x!==!1)return x;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(x=this.test_match(A,L[I]),x!==!1?x:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var A=this.next();return A||this.lex()},"lex"),begin:k(function(A){this.conditionStack.push(A)},"begin"),popState:k(function(){var A=this.conditionStack.length-1;return A>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(A){return A=this.conditionStack.length-1-Math.abs(A||0),A>=0?this.conditionStack[A]:"INITIAL"},"topState"),pushState:k(function(A){this.begin(A)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(A,R,I,L){switch(I){case 0:return this.pushState("shapeData"),R.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const F=/\n\s*/g;return R.yytext=R.yytext.replace(F,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return A.getLogger().trace("Found comment",R.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:A.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return A.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:A.getLogger().trace("end icon"),this.popState();break;case 16:return A.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return A.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return A.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return A.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:A.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return A.getLogger().trace("description:",R.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),A.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),A.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),A.getLogger().trace("node end ...",R.yytext),"NODE_DEND";case 36:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),A.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),A.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";case 41:return A.getLogger().trace("Long description:",R.yytext),21;case 42:return A.getLogger().trace("Long description:",R.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return C})();E.lexer=S;function T(){this.yy={}}return k(T,"Parser"),T.prototype=E,E.Parser=T,new T})();Hne.parser=Hne;var rWr=Hne,Eh=[],Ipe=[],Yne=0,Npe={},nWr=k(()=>{Eh=[],Ipe=[],Yne=0,Npe={}},"clear"),iWr=k(t=>{if(Eh.length===0)return null;const e=Eh[0].level;let r=null;for(let n=Eh.length-1;n>=0;n--)if(Eh[n].level===e&&!r&&(r=Eh[n]),Eh[n].level<e)throw new Error('Items without section detected, found section ("'+Eh[n].label+'")');return t===r?.level?null:r},"getSection"),Hit=k(function(){return Ipe},"getSections"),aWr=k(function(){const t=[],e=[],r=Hit(),n=vt();for(const i of r){const a={id:i.id,label:ta(i.label??"",n),labelType:"markdown",isGroup:!0,ticket:i.ticket,shape:"kanbanSection",level:i.level,look:n.look};e.push(a);const s=Eh.filter(o=>o.parentId===i.id);for(const o of s){const l={id:o.id,parentId:i.id,label:ta(o.label??"",n),labelType:"markdown",isGroup:!1,ticket:o?.ticket,priority:o?.priority,assigned:o?.assigned,icon:o?.icon,shape:"kanbanItem",level:o.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(l)}}return{nodes:e,edges:t,other:{},config:vt()}},"getData"),sWr=k((t,e,r,n,i)=>{const a=vt();let s=a.mindmap?.padding??Gi.mindmap.padding;switch(n){case cl.ROUNDED_RECT:case cl.RECT:case cl.HEXAGON:s*=2}const o={id:ta(e,a)||"kbn"+Yne++,level:t,label:ta(r,a),width:a.mindmap?.maxNodeWidth??Gi.mindmap.maxNodeWidth,padding:s,isGroup:!1};if(i!==void 0){let u;i.includes(`
`)?u=i+`
`:u=`{
`+i+`
}`;const d=BU(u,{schema:FU});if(d.shape&&(d.shape!==d.shape.toLowerCase()||d.shape.includes("_")))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);d?.shape&&d.shape==="kanbanItem"&&(o.shape=d?.shape),d?.label&&(o.label=d?.label),d?.icon&&(o.icon=d?.icon.toString()),d?.assigned&&(o.assigned=d?.assigned.toString()),d?.ticket&&(o.ticket=d?.ticket.toString()),d?.priority&&(o.priority=d?.priority)}const l=iWr(t);l?o.parentId=l.id||"kbn"+Yne++:Ipe.push(o),Eh.push(o)},"addNode"),cl={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},oWr=k((t,e)=>{switch(Pe.debug("In get type",t,e),t){case"[":return cl.RECT;case"(":return e===")"?cl.ROUNDED_RECT:cl.CLOUD;case"((":return cl.CIRCLE;case")":return cl.CLOUD;case"))":return cl.BANG;case"{{":return cl.HEXAGON;default:return cl.DEFAULT}},"getType"),lWr=k((t,e)=>{Npe[t]=e},"setElementForId"),cWr=k(t=>{if(!t)return;const e=vt(),r=Eh[Eh.length-1];t.icon&&(r.icon=ta(t.icon,e)),t.class&&(r.cssClasses=ta(t.class,e))},"decorateNode"),uWr=k(t=>{switch(t){case cl.DEFAULT:return"no-border";case cl.RECT:return"rect";case cl.ROUNDED_RECT:return"rounded-rect";case cl.CIRCLE:return"circle";case cl.CLOUD:return"cloud";case cl.BANG:return"bang";case cl.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),dWr=k(()=>Pe,"getLogger"),hWr=k(t=>Npe[t],"getElementById"),fWr={clear:nWr,addNode:sWr,getSections:Hit,getData:aWr,nodeType:cl,getType:oWr,setElementForId:lWr,decorateNode:cWr,type2Str:uWr,getLogger:dWr,getElementById:hWr},pWr=fWr,gWr=k(async(t,e,r,n)=>{Pe.debug(`Rendering kanban diagram
`+t);const a=n.db.getData(),s=vt();s.htmlLabels=!1;const o=ud(e);for(const _ of a.nodes)_.domId=`${e}-${_.id}`;const l=o.append("g");l.attr("class","sections");const u=o.append("g");u.attr("class","items");const d=a.nodes.filter(_=>_.isGroup);let h=0;const f=10,p=[];let g=25;for(const _ of d){const v=s?.kanban?.sectionWidth||200;h=h+1,_.x=v*h+(h-1)*f/2,_.width=v,_.y=0,_.height=v*3,_.rx=5,_.ry=5,_.cssClasses=_.cssClasses+" section-"+h;const y=await oue(l,_);g=Math.max(g,y?.labelBBox?.height),p.push(y)}let m=0;for(const _ of d){const v=p[m];m=m+1;const y=s?.kanban?.sectionWidth||200,b=-y*3/2+g;let E=b;const S=a.nodes.filter(x=>x.parentId===_.id);for(const x of S){if(x.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");x.x=_.x,x.width=y-1.5*f;const R=(await XU(u,x,{config:s})).node().getBBox();x.y=E+R.height/2,await $ee(x),E=x.y+R.height/2+f/2}const T=v.cluster.select("rect"),C=Math.max(E-b+3*f,50)+(g-25);T.attr("height",C)}CR(void 0,o,s.mindmap?.padding??Gi.kanban.padding,s.mindmap?.useMaxWidth??Gi.kanban.useMaxWidth)},"draw"),mWr={draw:gWr},_Wr=k(t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],wu(t["lineColor"+n])?t["lineColor"+n]=Zt(t["lineColor"+n],20):t["lineColor"+n]=Jt(t["lineColor"+n],20);const r=k((n,i)=>t.darkMode?Jt(n,i):Zt(n,i),"adjuster");for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`
    .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path  {
      fill: ${r(t["cScale"+n],10)};
      stroke: ${r(t["cScale"+n],10)};

    }
    .section-${n-1} text {
     fill: ${t["cScaleLabel"+n]};
    }
    .node-icon-${n-1} {
      font-size: 40px;
      color: ${t["cScaleLabel"+n]};
    }
    .section-edge-${n-1}{
      stroke: ${t["cScale"+n]};
    }
    .edge-depth-${n-1}{
      stroke-width: ${i};
    }
    .section-${n-1} line {
      stroke: ${t["cScaleInv"+n]} ;
      stroke-width: 3;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${t.background};
    stroke: ${t.nodeBorder};
    stroke-width: 1px;
  }

  .kanban-ticket-link {
    fill: ${t.background};
    stroke: ${t.nodeBorder};
    text-decoration: underline;
  }
    `}return e},"genSections"),vWr=k(t=>`
  .edge {
    stroke-width: 3;
  }
  ${_Wr(t)}
  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {
    fill: ${t.git0};
  }
  .section-root text {
    fill: ${t.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .cluster-label, .label {
    color: ${t.textColor};
    fill: ${t.textColor};
    }
  .kanban-label {
    dy: 1em;
    alignment-baseline: middle;
    text-anchor: middle;
    dominant-baseline: middle;
    text-align: center;
  }
    ${cD()}
`,"getStyles"),yWr=vWr,bWr={db:pWr,renderer:mWr,parser:rWr,styles:yWr};const EWr=Object.freeze(Object.defineProperty({__proto__:null,diagram:bWr},Symbol.toStringTag,{value:"Module"}));function wNe(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function Yit(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function rQ(t,e){let r=0;if(e===void 0)for(let n of t)(n=+n)&&(r+=n);else{let n=-1;for(let i of t)(i=+e(i,++n,t))&&(r+=i)}return r}function SWr(t){return t.target.depth}function TWr(t){return t.depth}function CWr(t,e){return e-1-t.height}function Wit(t,e){return t.sourceLinks.length?t.depth:e-1}function wWr(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Yit(t.sourceLinks,SWr)-1:0}function _P(t){return function(){return t}}function xNe(t,e){return CF(t.source,e.source)||t.index-e.index}function ANe(t,e){return CF(t.target,e.target)||t.index-e.index}function CF(t,e){return t.y0-e.y0}function nQ(t){return t.value}function xWr(t){return t.index}function AWr(t){return t.nodes}function RWr(t){return t.links}function RNe(t,e){const r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function ONe({nodes:t}){for(const e of t){let r=e.y0,n=r;for(const i of e.sourceLinks)i.y0=r+i.width/2,r+=i.width;for(const i of e.targetLinks)i.y1=n+i.width/2,n+=i.width}}function OWr(){let t=0,e=0,r=1,n=1,i=24,a=8,s,o=xWr,l=Wit,u,d,h=AWr,f=RWr,p=6;function g(){const D={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return m(D),_(D),v(D),y(D),S(D),ONe(D),D}g.update=function(D){return ONe(D),D},g.nodeId=function(D){return arguments.length?(o=typeof D=="function"?D:_P(D),g):o},g.nodeAlign=function(D){return arguments.length?(l=typeof D=="function"?D:_P(D),g):l},g.nodeSort=function(D){return arguments.length?(u=D,g):u},g.nodeWidth=function(D){return arguments.length?(i=+D,g):i},g.nodePadding=function(D){return arguments.length?(a=s=+D,g):a},g.nodes=function(D){return arguments.length?(h=typeof D=="function"?D:_P(D),g):h},g.links=function(D){return arguments.length?(f=typeof D=="function"?D:_P(D),g):f},g.linkSort=function(D){return arguments.length?(d=D,g):d},g.size=function(D){return arguments.length?(t=e=0,r=+D[0],n=+D[1],g):[r-t,n-e]},g.extent=function(D){return arguments.length?(t=+D[0][0],r=+D[1][0],e=+D[0][1],n=+D[1][1],g):[[t,e],[r,n]]},g.iterations=function(D){return arguments.length?(p=+D,g):p};function m({nodes:D,links:M}){for(const[N,$]of D.entries())$.index=N,$.sourceLinks=[],$.targetLinks=[];const P=new Map(D.map((N,$)=>[o(N,$,D),N]));for(const[N,$]of M.entries()){$.index=N;let{source:U,target:B}=$;typeof U!="object"&&(U=$.source=RNe(P,U)),typeof B!="object"&&(B=$.target=RNe(P,B)),U.sourceLinks.push($),B.targetLinks.push($)}if(d!=null)for(const{sourceLinks:N,targetLinks:$}of D)N.sort(d),$.sort(d)}function _({nodes:D}){for(const M of D)M.value=M.fixedValue===void 0?Math.max(rQ(M.sourceLinks,nQ),rQ(M.targetLinks,nQ)):M.fixedValue}function v({nodes:D}){const M=D.length;let P=new Set(D),N=new Set,$=0;for(;P.size;){for(const U of P){U.depth=$;for(const{target:B}of U.sourceLinks)N.add(B)}if(++$>M)throw new Error("circular link");P=N,N=new Set}}function y({nodes:D}){const M=D.length;let P=new Set(D),N=new Set,$=0;for(;P.size;){for(const U of P){U.height=$;for(const{source:B}of U.targetLinks)N.add(B)}if(++$>M)throw new Error("circular link");P=N,N=new Set}}function b({nodes:D}){const M=wNe(D,$=>$.depth)+1,P=(r-t-i)/(M-1),N=new Array(M);for(const $ of D){const U=Math.max(0,Math.min(M-1,Math.floor(l.call(null,$,M))));$.layer=U,$.x0=t+U*P,$.x1=$.x0+i,N[U]?N[U].push($):N[U]=[$]}if(u)for(const $ of N)$.sort(u);return N}function E(D){const M=Yit(D,P=>(n-e-(P.length-1)*s)/rQ(P,nQ));for(const P of D){let N=e;for(const $ of P){$.y0=N,$.y1=N+$.value*M,N=$.y1+s;for(const U of $.sourceLinks)U.width=U.value*M}N=(n-N+s)/(P.length+1);for(let $=0;$<P.length;++$){const U=P[$];U.y0+=N*($+1),U.y1+=N*($+1)}L(P)}}function S(D){const M=b(D);s=Math.min(a,(n-e)/(wNe(M,P=>P.length)-1)),E(M);for(let P=0;P<p;++P){const N=Math.pow(.99,P),$=Math.max(1-N,(P+1)/p);C(M,N,$),T(M,N,$)}}function T(D,M,P){for(let N=1,$=D.length;N<$;++N){const U=D[N];for(const B of U){let V=0,z=0;for(const{source:Y,value:W}of B.targetLinks){let Q=W*(B.layer-Y.layer);V+=F(Y,B)*Q,z+=Q}if(!(z>0))continue;let G=(V/z-B.y0)*M;B.y0+=G,B.y1+=G,I(B)}u===void 0&&U.sort(CF),x(U,P)}}function C(D,M,P){for(let N=D.length,$=N-2;$>=0;--$){const U=D[$];for(const B of U){let V=0,z=0;for(const{target:Y,value:W}of B.sourceLinks){let Q=W*(Y.layer-B.layer);V+=O(B,Y)*Q,z+=Q}if(!(z>0))continue;let G=(V/z-B.y0)*M;B.y0+=G,B.y1+=G,I(B)}u===void 0&&U.sort(CF),x(U,P)}}function x(D,M){const P=D.length>>1,N=D[P];R(D,N.y0-s,P-1,M),A(D,N.y1+s,P+1,M),R(D,n,D.length-1,M),A(D,e,0,M)}function A(D,M,P,N){for(;P<D.length;++P){const $=D[P],U=(M-$.y0)*N;U>1e-6&&($.y0+=U,$.y1+=U),M=$.y1+s}}function R(D,M,P,N){for(;P>=0;--P){const $=D[P],U=($.y1-M)*N;U>1e-6&&($.y0-=U,$.y1-=U),M=$.y0-s}}function I({sourceLinks:D,targetLinks:M}){if(d===void 0){for(const{source:{sourceLinks:P}}of M)P.sort(ANe);for(const{target:{targetLinks:P}}of D)P.sort(xNe)}}function L(D){if(d===void 0)for(const{sourceLinks:M,targetLinks:P}of D)M.sort(ANe),P.sort(xNe)}function F(D,M){let P=D.y0-(D.sourceLinks.length-1)*s/2;for(const{target:N,width:$}of D.sourceLinks){if(N===M)break;P+=$+s}for(const{source:N,width:$}of M.targetLinks){if(N===D)break;P-=$}return P}function O(D,M){let P=M.y0-(M.targetLinks.length-1)*s/2;for(const{source:N,width:$}of M.targetLinks){if(N===D)break;P+=$+s}for(const{target:N,width:$}of D.sourceLinks){if(N===M)break;P-=$}return P}return g}var Wne=Math.PI,Kne=2*Wne,ry=1e-6,IWr=Kne-ry;function jne(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Kit(){return new jne}jne.prototype=Kit.prototype={constructor:jne,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,r,n,i){t=+t,e=+e,r=+r,n=+n,i=+i;var a=this._x1,s=this._y1,o=r-t,l=n-e,u=a-t,d=s-e,h=u*u+d*d;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>ry)if(!(Math.abs(d*o-l*u)>ry)||!i)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var f=r-a,p=n-s,g=o*o+l*l,m=f*f+p*p,_=Math.sqrt(g),v=Math.sqrt(h),y=i*Math.tan((Wne-Math.acos((g+h-m)/(2*_*v)))/2),b=y/v,E=y/_;Math.abs(b-1)>ry&&(this._+="L"+(t+b*u)+","+(e+b*d)),this._+="A"+i+","+i+",0,0,"+ +(d*f>u*p)+","+(this._x1=t+E*o)+","+(this._y1=e+E*l)}},arc:function(t,e,r,n,i,a){t=+t,e=+e,r=+r,a=!!a;var s=r*Math.cos(n),o=r*Math.sin(n),l=t+s,u=e+o,d=1^a,h=a?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>ry||Math.abs(this._y1-u)>ry)&&(this._+="L"+l+","+u),r&&(h<0&&(h=h%Kne+Kne),h>IWr?this._+="A"+r+","+r+",0,1,"+d+","+(t-s)+","+(e-o)+"A"+r+","+r+",0,1,"+d+","+(this._x1=l)+","+(this._y1=u):h>ry&&(this._+="A"+r+","+r+",0,"+ +(h>=Wne)+","+d+","+(this._x1=t+r*Math.cos(i))+","+(this._y1=e+r*Math.sin(i))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function INe(t){return function(){return t}}function NWr(t){return t[0]}function kWr(t){return t[1]}var DWr=Array.prototype.slice;function MWr(t){return t.source}function LWr(t){return t.target}function PWr(t){var e=MWr,r=LWr,n=NWr,i=kWr,a=null;function s(){var o,l=DWr.call(arguments),u=e.apply(this,l),d=r.apply(this,l);if(a||(a=o=Kit()),t(a,+n.apply(this,(l[0]=u,l)),+i.apply(this,l),+n.apply(this,(l[0]=d,l)),+i.apply(this,l)),o)return a=null,o+""||null}return s.source=function(o){return arguments.length?(e=o,s):e},s.target=function(o){return arguments.length?(r=o,s):r},s.x=function(o){return arguments.length?(n=typeof o=="function"?o:INe(+o),s):n},s.y=function(o){return arguments.length?(i=typeof o=="function"?o:INe(+o),s):i},s.context=function(o){return arguments.length?(a=o??null,s):a},s}function FWr(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function BWr(){return PWr(FWr)}function UWr(t){return[t.source.x1,t.y0]}function $Wr(t){return[t.target.x0,t.y1]}function GWr(){return BWr().source(UWr).target($Wr)}var Xne=(function(){var t=k(function(o,l,u,d){for(u=u||{},d=o.length;d--;u[o[d]]=l);return u},"o"),e=[1,9],r=[1,10],n=[1,5,10,12],i={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:k(function(l,u,d,h,f,p,g){var m=p.length-1;switch(f){case 7:const _=h.findOrCreateNode(p[m-4].trim().replaceAll('""','"')),v=h.findOrCreateNode(p[m-2].trim().replaceAll('""','"')),y=parseFloat(p[m].trim());h.addLink(_,v,y);break;case 8:case 9:case 11:this.$=p[m];break;case 10:this.$=p[m-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(n,[2,8]),t(n,[2,9]),{19:[1,16]},t(n,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:r},{15:18,16:7,17:8,18:e,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(n,[2,10]),{15:21,16:7,17:8,18:e,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:k(function(l,u){if(u.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=u,d}},"parseError"),parse:k(function(l){var u=this,d=[0],h=[],f=[null],p=[],g=this.table,m="",_=0,v=0,y=2,b=1,E=p.slice.call(arguments,1),S=Object.create(this.lexer),T={yy:{}};for(var C in this.yy)Object.prototype.hasOwnProperty.call(this.yy,C)&&(T.yy[C]=this.yy[C]);S.setInput(l,T.yy),T.yy.lexer=S,T.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var x=S.yylloc;p.push(x);var A=S.options&&S.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(V){d.length=d.length-2*V,f.length=f.length-V,p.length=p.length-V}k(R,"popStack");function I(){var V;return V=h.pop()||S.lex()||b,typeof V!="number"&&(V instanceof Array&&(h=V,V=h.pop()),V=u.symbols_[V]||V),V}k(I,"lex");for(var L,F,O,D,M={},P,N,$,U;;){if(F=d[d.length-1],this.defaultActions[F]?O=this.defaultActions[F]:((L===null||typeof L>"u")&&(L=I()),O=g[F]&&g[F][L]),typeof O>"u"||!O.length||!O[0]){var B="";U=[];for(P in g[F])this.terminals_[P]&&P>y&&U.push("'"+this.terminals_[P]+"'");S.showPosition?B="Parse error on line "+(_+1)+`:
`+S.showPosition()+`
Expecting `+U.join(", ")+", got '"+(this.terminals_[L]||L)+"'":B="Parse error on line "+(_+1)+": Unexpected "+(L==b?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(B,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:x,expected:U})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+L);switch(O[0]){case 1:d.push(L),f.push(S.yytext),p.push(S.yylloc),d.push(O[1]),L=null,v=S.yyleng,m=S.yytext,_=S.yylineno,x=S.yylloc;break;case 2:if(N=this.productions_[O[1]][1],M.$=f[f.length-N],M._$={first_line:p[p.length-(N||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(N||1)].first_column,last_column:p[p.length-1].last_column},A&&(M._$.range=[p[p.length-(N||1)].range[0],p[p.length-1].range[1]]),D=this.performAction.apply(M,[m,v,_,T.yy,O[1],f,p].concat(E)),typeof D<"u")return D;N&&(d=d.slice(0,-1*N*2),f=f.slice(0,-1*N),p=p.slice(0,-1*N)),d.push(this.productions_[O[1]][0]),f.push(M.$),p.push(M._$),$=g[d[d.length-2]][d[d.length-1]],d.push($);break;case 3:return!0}}return!0},"parse")},a=(function(){var o={EOF:1,parseError:k(function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},"parseError"),setInput:k(function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:k(function(l){var u=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===h.length?this.yylloc.first_column:0)+h[h.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(l){this.unput(this.match.slice(l))},"less"),pastInput:k(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
`+u+"^"},"showPosition"),test_match:k(function(l,u){var d,h,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),h=l[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var p in f)this[p]=f[p];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,u,d,h;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length;p++)if(d=this._input.match(this.rules[f[p]]),d&&(!u||d[0].length>u[0].length)){if(u=d,h=p,this.options.backtrack_lexer){if(l=this.test_match(d,f[p]),l!==!1)return l;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(l=this.test_match(u,f[h]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var u=this.next();return u||this.lex()},"lex"),begin:k(function(u){this.conditionStack.push(u)},"begin"),popState:k(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:k(function(u){this.begin(u)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(u,d,h,f){switch(h){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return o})();i.lexer=a;function s(){this.yy={}}return k(s,"Parser"),s.prototype=i,i.Parser=s,new s})();Xne.parser=Xne;var wF=Xne,JG=[],ez=[],xF=new Map,zWr=k(()=>{JG=[],ez=[],xF=new Map,ys()},"clear"),Mx,qWr=(Mx=class{constructor(e,r,n=0){this.source=e,this.target=r,this.value=n}},k(Mx,"SankeyLink"),Mx),VWr=k((t,e,r)=>{JG.push(new qWr(t,e,r))},"addLink"),Lx,HWr=(Lx=class{constructor(e){this.ID=e}},k(Lx,"SankeyNode"),Lx),YWr=k(t=>{t=Cr.sanitizeText(t,vt());let e=xF.get(t);return e===void 0&&(e=new HWr(t),xF.set(t,e),ez.push(e)),e},"findOrCreateNode"),WWr=k(()=>ez,"getNodes"),KWr=k(()=>JG,"getLinks"),jWr=k(()=>({nodes:ez.map(t=>({id:t.ID})),links:JG.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),XWr={nodesMap:xF,getConfig:k(()=>vt().sankey,"getConfig"),getNodes:WWr,getLinks:KWr,getGraph:jWr,addLink:VWr,findOrCreateNode:YWr,getAccTitle:Fs,setAccTitle:ms,getAccDescription:Us,setAccDescription:Bs,getDiagramTitle:bs,setDiagramTitle:ks,clear:zWr},zm,NNe=(zm=class{static next(e){return new zm(e+ ++zm.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},k(zm,"Uid"),zm.count=0,zm),QWr={left:TWr,right:CWr,center:wWr,justify:Wit},ZWr=k(t=>{let e=0,r=0;for(const n of t){const i=n.value??0;i>e&&(e=i,r=n.layer??0)}return r},"findCentralNodeLayer"),JWr=k(function(t,e,r,n){const{securityLevel:i,sankey:a}=vt(),s=O7e.sankey;let o;i==="sandbox"&&(o=dr("#i"+e));const l=dr(i==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=i==="sandbox"?l.select(`[id="${e}"]`):dr(`[id="${e}"]`),d=a?.width??s.width,h=a?.height??s.width,f=a?.useMaxWidth??s.useMaxWidth,p=a?.nodeAlignment??s.nodeAlignment,g=a?.prefix??s.prefix,m=a?.suffix??s.suffix,_=a?.showValues??s.showValues,v=a?.nodeWidth??s.nodeWidth??10,y=a?.nodePadding??s.nodePadding??12,b=a?.labelStyle??s.labelStyle??"legacy",E=a?.nodeColors??{},S=n.db.getGraph(),T=QWr[p];OWr().nodeId(N=>N.id).nodeWidth(v).nodePadding(y+(_?15:0)).nodeAlign(T).extent([[0,0],[d,h]])(S);const x=ZWr(S.nodes),A=ob(Efr),R=k(N=>E[N]??A(N),"getNodeColor");u.append("g").attr("class","nodes").selectAll(".node").data(S.nodes).join("g").attr("class","node").attr("id",N=>(N.uid=NNe.next("node-")).id).attr("transform",function(N){return"translate("+N.x0+","+N.y0+")"}).attr("x",N=>N.x0).attr("y",N=>N.y0).append("rect").attr("height",N=>N.y1-N.y0).attr("width",N=>N.x1-N.x0).attr("fill",N=>R(N.id));const I=k(({id:N,value:$})=>_?`${N}
${g}${Math.round($*100)/100}${m}`:N,"getText"),L=k(N=>b==="outlined"?(N.layer??0)<x?{x:N.x0-6,anchor:"end"}:{x:N.x1+6,anchor:"start"}:N.x0<d/2?{x:N.x1+6,anchor:"start"}:{x:N.x0-6,anchor:"end"},"getLabelPosition"),F=u.append("g").attr("class","node-labels").attr("font-size",14),O=k(N=>F.selectAll(N?`.${N}`:"text").data(S.nodes).join("text").attr("class",N??null).attr("x",$=>L($).x).attr("y",$=>($.y1+$.y0)/2).attr("dy",`${_?"0":"0.35"}em`).attr("text-anchor",$=>L($).anchor).text(I),"appendLabel");b==="outlined"?(O("sankey-label-bg"),O("sankey-label-fg")):O();const D=u.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(S.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),M=a?.linkColor??"gradient";if(M==="gradient"){const N=D.append("linearGradient").attr("id",$=>($.uid=NNe.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",$=>$.source.x1).attr("x2",$=>$.target.x0);N.append("stop").attr("offset","0%").attr("stop-color",$=>R($.source.id)),N.append("stop").attr("offset","100%").attr("stop-color",$=>R($.target.id))}let P;switch(M){case"gradient":P=k(N=>N.uid,"coloring");break;case"source":P=k(N=>R(N.source.id),"coloring");break;case"target":P=k(N=>R(N.target.id),"coloring");break;default:P=M}D.append("path").attr("d",GWr()).attr("stroke",P).attr("stroke-width",N=>Math.max(1,N.width)),CR(void 0,u,0,f)},"draw"),eKr={draw:JWr},tKr=k(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),"prepareTextForParsing"),rKr=k(t=>`.label {
    font-family: ${t.fontFamily};
  }

  .node-labels {
    font-family: ${t.fontFamily};
  }

  /* Outlined label style - background stroke for better readability */
  .sankey-label-bg {
    stroke: ${t.mainBkg||t.background||"#fff"};
    stroke-width: 4px;
    stroke-linejoin: round;
    paint-order: stroke;
  }

  /* Foreground label text */
  .sankey-label-fg {
    fill: ${t.textColor};
  }

  /* Node styling */
  .node rect {
    shape-rendering: crispEdges;
  }

  /* Link styling */
  .link {
    fill: none;
    stroke-opacity: 0.5;
    mix-blend-mode: multiply;
  }
`,"getStyles"),nKr=rKr,iKr=wF.parse.bind(wF);wF.parse=t=>iKr(tKr(t));var aKr={styles:nKr,parser:wF,db:XWr,renderer:eKr};const sKr=Object.freeze(Object.defineProperty({__proto__:null,diagram:aKr},Symbol.toStringTag,{value:"Module"}));var oKr=Gi.packet,Px,jit=(Px=class{constructor(){this.packet=[],this.setAccTitle=ms,this.getAccTitle=Fs,this.setDiagramTitle=ks,this.getDiagramTitle=bs,this.getAccDescription=Us,this.setAccDescription=Bs}getConfig(){const e=_o({...oKr,...Ln().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){ys(),this.packet=[]}},k(Px,"PacketDB"),Px),lKr=1e4,cKr=k((t,e)=>{Lg(t,e);let r=-1,n=[],i=1;const{bitsPerRow:a}=e.getConfig();for(let{start:s,end:o,bits:l,label:u}of t.blocks){if(s!==void 0&&o!==void 0&&o<s)throw new Error(`Packet block ${s} - ${o} is invalid. End must be greater than start.`);if(s??=r+1,s!==r+1)throw new Error(`Packet block ${s} - ${o??s} is not contiguous. It should start from ${r+1}.`);if(l===0)throw new Error(`Packet block ${s} is invalid. Cannot have a zero bit field.`);for(o??=s+(l??1)-1,l??=o-s+1,r=o,Pe.debug(`Packet block ${s} - ${r} with label ${u}`);n.length<=a+1&&e.getPacket().length<lKr;){const[d,h]=uKr({start:s,end:o,bits:l,label:u},i,a);if(n.push(d),d.end+1===i*a&&(e.pushWord(n),n=[],i++),!h)break;({start:s,end:o,bits:l,label:u}=h)}}e.pushWord(n)},"populate"),uKr=k((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const n=e*r-1,i=e*r;return[{start:t.start,end:n,label:t.label,bits:n-t.start},{start:i,end:t.end,label:t.label,bits:t.end-i}]},"getNextFittingBlock"),Xit={parser:{yy:void 0},parse:k(async t=>{const e=await cp("packet",t),r=Xit.parser?.yy;if(!(r instanceof jit))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Pe.debug(e),cKr(e,r)},"parse")},dKr=k((t,e,r,n)=>{const i=n.db,a=i.getConfig(),{rowHeight:s,paddingY:o,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),h=i.getDiagramTitle(),f=s+o,p=f*(d.length+1)-(h?0:s),g=l*u+2,m=ud(e);m.attr("viewBox",`0 0 ${g} ${p}`),Xo(m,p,g,a.useMaxWidth);for(const[_,v]of d.entries())hKr(m,v,_,a);m.append("text").text(h).attr("x",g/2).attr("y",p-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),hKr=k((t,e,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:o,showBits:l})=>{const u=t.append("g"),d=r*(n+a)+a;for(const h of e){const f=h.start%o*s+1,p=(h.end-h.start+1)*s-i;if(u.append("rect").attr("x",f).attr("y",d).attr("width",p).attr("height",n).attr("class","packetBlock"),u.append("text").attr("x",f+p/2).attr("y",d+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(h.label),!l)continue;const g=h.end===h.start,m=d-2;u.append("text").attr("x",f+(g?p/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(h.start),g||u.append("text").attr("x",f+p).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(h.end)}},"drawWord"),fKr={draw:dKr},pKr={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},gKr=k(({packet:t}={})=>{const e=_o(pKr,t);return`
	.packetByte {
		font-size: ${e.byteFontSize};
	}
	.packetByte.start {
		fill: ${e.startByteColor};
	}
	.packetByte.end {
		fill: ${e.endByteColor};
	}
	.packetLabel {
		fill: ${e.labelColor};
		font-size: ${e.labelFontSize};
	}
	.packetTitle {
		fill: ${e.titleColor};
		font-size: ${e.titleFontSize};
	}
	.packetBlock {
		stroke: ${e.blockStrokeColor};
		stroke-width: ${e.blockStrokeWidth};
		fill: ${e.blockFillColor};
	}
	`},"styles"),mKr={parser:Xit,get db(){return new jit},renderer:fKr,styles:gKr};const _Kr=Object.freeze(Object.defineProperty({__proto__:null,diagram:mKr},Symbol.toStringTag,{value:"Module"}));var sT={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},Qit={axes:[],curves:[],options:sT},KE=structuredClone(Qit),vKr=Gi.radar,yKr=k(()=>_o({...vKr,...Ln().radar}),"getConfig"),Zit=k(()=>KE.axes,"getAxes"),bKr=k(()=>KE.curves,"getCurves"),EKr=k(()=>KE.options,"getOptions"),SKr=k(t=>{KE.axes=t.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),TKr=k(t=>{KE.curves=t.map(e=>({name:e.name,label:e.label??e.name,entries:CKr(e.entries)}))},"setCurves"),CKr=k(t=>{if(t[0].axis==null)return t.map(r=>r.value);const e=Zit();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(r=>{const n=t.find(i=>i.axis?.$refText===r.name);if(n===void 0)throw new Error("Missing entry for axis "+r.label);return n.value})},"computeCurveEntries"),wKr=k(t=>{const e=t.reduce((r,n)=>(r[n.name]=n,r),{});KE.options={showLegend:e.showLegend?.value??sT.showLegend,ticks:e.ticks?.value??sT.ticks,max:e.max?.value??sT.max,min:e.min?.value??sT.min,graticule:e.graticule?.value??sT.graticule}},"setOptions"),xKr=k(()=>{ys(),KE=structuredClone(Qit)},"clear"),QI={getAxes:Zit,getCurves:bKr,getOptions:EKr,setAxes:SKr,setCurves:TKr,setOptions:wKr,getConfig:yKr,clear:xKr,setAccTitle:ms,getAccTitle:Fs,setDiagramTitle:ks,getDiagramTitle:bs,getAccDescription:Us,setAccDescription:Bs},AKr=k(t=>{Lg(t,QI);const{axes:e,curves:r,options:n}=t;QI.setAxes(e),QI.setCurves(r),QI.setOptions(n)},"populate"),RKr={parse:k(async t=>{const e=await cp("radar",t);Pe.debug(e),AKr(e)},"parse")},OKr=k((t,e,r,n)=>{const i=n.db,a=i.getAxes(),s=i.getCurves(),o=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=ud(e),h=IKr(d,l),f=o.max??Math.max(...s.map(m=>Math.max(...m.entries))),p=o.min,g=Math.min(l.width,l.height)/2;NKr(h,a,g,o.ticks,o.graticule),kKr(h,a,g,l),Jit(h,a,s,p,f,o.graticule,l),rat(h,s,o.showLegend,l),h.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),IKr=k((t,e)=>{const r=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,i={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return Xo(t,n,r,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${r} ${n}`),t.append("g").attr("transform",`translate(${i.x}, ${i.y})`)},"drawFrame"),NKr=k((t,e,r,n,i)=>{if(i==="circle")for(let a=0;a<n;a++){const s=r*(a+1)/n;t.append("circle").attr("r",s).attr("class","radarGraticule")}else if(i==="polygon"){const a=e.length;for(let s=0;s<n;s++){const o=r*(s+1)/n,l=e.map((u,d)=>{const h=2*d*Math.PI/a-Math.PI/2,f=o*Math.cos(h),p=o*Math.sin(h);return`${f},${p}`}).join(" ");t.append("polygon").attr("points",l).attr("class","radarGraticule")}}},"drawGraticule"),kKr=k((t,e,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a].label,o=2*a*Math.PI/i-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",r*n.axisScaleFactor*Math.cos(o)).attr("y2",r*n.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),t.append("text").text(s).attr("x",r*n.axisLabelFactor*Math.cos(o)).attr("y",r*n.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes");function Jit(t,e,r,n,i,a,s){const o=e.length,l=Math.min(s.width,s.height)/2;r.forEach((u,d)=>{if(u.entries.length!==o)return;const h=u.entries.map((f,p)=>{const g=2*Math.PI*p/o-Math.PI/2,m=eat(f,n,i,l),_=m*Math.cos(g),v=m*Math.sin(g);return{x:_,y:v}});a==="circle"?t.append("path").attr("d",tat(h,s.curveTension)).attr("class",`radarCurve-${d}`):a==="polygon"&&t.append("polygon").attr("points",h.map(f=>`${f.x},${f.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}k(Jit,"drawCurves");function eat(t,e,r,n){const i=Math.min(Math.max(t,e),r);return n*(i-e)/(r-e)}k(eat,"relativeRadius");function tat(t,e){const r=t.length;let n=`M${t[0].x},${t[0].y}`;for(let i=0;i<r;i++){const a=t[(i-1+r)%r],s=t[i],o=t[(i+1)%r],l=t[(i+2)%r],u={x:s.x+(o.x-a.x)*e,y:s.y+(o.y-a.y)*e},d={x:o.x-(l.x-s.x)*e,y:o.y-(l.y-s.y)*e};n+=` C${u.x},${u.y} ${d.x},${d.y} ${o.x},${o.y}`}return`${n} Z`}k(tat,"closedRoundCurve");function rat(t,e,r,n){if(!r)return;const i=(n.width/2+n.marginRight)*3/4,a=-(n.height/2+n.marginTop)*3/4,s=20;e.forEach((o,l)=>{const u=t.append("g").attr("transform",`translate(${i}, ${a+l*s})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${l}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}k(rat,"drawLegend");var DKr={draw:OKr},MKr=k((t,e)=>{let r="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=t[`cScale${n}`];r+=`
		.radarCurve-${n} {
			color: ${i};
			fill: ${i};
			fill-opacity: ${e.curveOpacity};
			stroke: ${i};
			stroke-width: ${e.curveStrokeWidth};
		}
		.radarLegendBox-${n} {
			fill: ${i};
			fill-opacity: ${e.curveOpacity};
			stroke: ${i};
		}
		`}return r},"genIndexStyles"),LKr=k(t=>{const e=SR(),r=Ln(),n=_o(e,r.themeVariables),i=_o(n.radar,t);return{themeVariables:n,radarOptions:i}},"buildRadarStyleOptions"),PKr=k(({radar:t}={})=>{const{themeVariables:e,radarOptions:r}=LKr(t);return`
	.radarTitle {
		font-size: ${e.fontSize};
		color: ${e.titleColor};
		dominant-baseline: hanging;
		text-anchor: middle;
	}
	.radarAxisLine {
		stroke: ${r.axisColor};
		stroke-width: ${r.axisStrokeWidth};
	}
	.radarAxisLabel {
		dominant-baseline: middle;
		text-anchor: middle;
		font-size: ${r.axisLabelFontSize}px;
		color: ${r.axisColor};
	}
	.radarGraticule {
		fill: ${r.graticuleColor};
		fill-opacity: ${r.graticuleOpacity};
		stroke: ${r.graticuleColor};
		stroke-width: ${r.graticuleStrokeWidth};
	}
	.radarLegendText {
		text-anchor: start;
		font-size: ${r.legendFontSize}px;
		dominant-baseline: hanging;
	}
	${MKr(e,r)}
	`},"styles"),FKr={parser:RKr,db:QI,renderer:DKr,styles:PKr};const BKr=Object.freeze(Object.defineProperty({__proto__:null,diagram:FKr},Symbol.toStringTag,{value:"Module"}));var Qne=(function(){var t=k(function(b,E,S,T){for(S=S||{},T=b.length;T--;S[b[T]]=E);return S},"o"),e=[1,15],r=[1,7],n=[1,13],i=[1,14],a=[1,19],s=[1,16],o=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],h=[1,23],f=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],g=[8,10,15,16,21,27,28,29,30,31,39,43,46],m=[1,49],_={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:k(function(E,S,T,C,x,A,R){var I=A.length-1;switch(x){case 4:C.getLogger().debug("Rule: separator (NL) ");break;case 5:C.getLogger().debug("Rule: separator (Space) ");break;case 6:C.getLogger().debug("Rule: separator (EOF) ");break;case 7:C.getLogger().debug("Rule: hierarchy: ",A[I-1]),C.setHierarchy(A[I-1]);break;case 8:C.getLogger().debug("Stop NL ");break;case 9:C.getLogger().debug("Stop EOF ");break;case 10:C.getLogger().debug("Stop NL2 ");break;case 11:C.getLogger().debug("Stop EOF2 ");break;case 12:C.getLogger().debug("Rule: statement: ",A[I]),typeof A[I].length=="number"?this.$=A[I]:this.$=[A[I]];break;case 13:C.getLogger().debug("Rule: statement #2: ",A[I-1]),this.$=[A[I-1]].concat(A[I]);break;case 14:C.getLogger().debug("Rule: link: ",A[I],E),this.$={edgeTypeStr:A[I],label:""};break;case 15:C.getLogger().debug("Rule: LABEL link: ",A[I-3],A[I-1],A[I]),this.$={edgeTypeStr:A[I],label:A[I-1]};break;case 18:const L=parseInt(A[I]),F=C.generateId();this.$={id:F,type:"space",label:"",width:L,children:[]};break;case 23:C.getLogger().debug("Rule: (nodeStatement link node) ",A[I-2],A[I-1],A[I]," typestr: ",A[I-1].edgeTypeStr);const O=C.edgeStrToEdgeData(A[I-1].edgeTypeStr),D=C.edgeStrToEdgeStartData(A[I-1].edgeTypeStr),M=C.edgeStrToThickness(A[I-1].edgeTypeStr),P=C.edgeStrToPattern(A[I-1].edgeTypeStr);this.$=[{id:A[I-2].id,label:A[I-2].label,type:A[I-2].type,directions:A[I-2].directions},{id:A[I-2].id+"-"+A[I].id,start:A[I-2].id,end:A[I].id,label:A[I-1].label,type:"edge",thickness:M,pattern:P,directions:A[I].directions,arrowTypeEnd:O,arrowTypeStart:D},{id:A[I].id,label:A[I].label,type:C.typeStr2Type(A[I].typeStr),directions:A[I].directions}];break;case 24:C.getLogger().debug("Rule: nodeStatement (abc88 node size) ",A[I-1],A[I]),this.$={id:A[I-1].id,label:A[I-1].label,type:C.typeStr2Type(A[I-1].typeStr),directions:A[I-1].directions,widthInColumns:parseInt(A[I],10)};break;case 25:C.getLogger().debug("Rule: nodeStatement (node) ",A[I]),this.$={id:A[I].id,label:A[I].label,type:C.typeStr2Type(A[I].typeStr),directions:A[I].directions,widthInColumns:1};break;case 26:C.getLogger().debug("APA123",this?this:"na"),C.getLogger().debug("COLUMNS: ",A[I]),this.$={type:"column-setting",columns:A[I]==="auto"?-1:parseInt(A[I])};break;case 27:C.getLogger().debug("Rule: id-block statement : ",A[I-2],A[I-1]),C.generateId(),this.$={...A[I-2],type:"composite",children:A[I-1]};break;case 28:C.getLogger().debug("Rule: blockStatement : ",A[I-2],A[I-1],A[I]);const N=C.generateId();this.$={id:N,type:"composite",label:"",children:A[I-1]};break;case 29:C.getLogger().debug("Rule: node (NODE_ID separator): ",A[I]),this.$={id:A[I]};break;case 30:C.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",A[I-1],A[I]),this.$={id:A[I-1],label:A[I].label,typeStr:A[I].typeStr,directions:A[I].directions};break;case 31:C.getLogger().debug("Rule: dirList: ",A[I]),this.$=[A[I]];break;case 32:C.getLogger().debug("Rule: dirList: ",A[I-1],A[I]),this.$=[A[I-1]].concat(A[I]);break;case 33:C.getLogger().debug("Rule: nodeShapeNLabel: ",A[I-2],A[I-1],A[I]),this.$={typeStr:A[I-2]+A[I],label:A[I-1]};break;case 34:C.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",A[I-3],A[I-2]," #3:",A[I-1],A[I]),this.$={typeStr:A[I-3]+A[I],label:A[I-2],directions:A[I-1]};break;case 35:case 36:this.$={type:"classDef",id:A[I-1].trim(),css:A[I].trim()};break;case 37:this.$={type:"applyClass",id:A[I-1].trim(),styleClass:A[I].trim()};break;case 38:this.$={type:"applyStyles",id:A[I-1].trim(),stylesStr:A[I].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:e,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{8:[1,20]},t(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:e,21:r,28:n,29:i,31:a,39:s,43:o,46:l}),t(d,[2,16],{14:22,15:h,16:f}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(p,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,31:a},{10:e,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(g,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},t(p,[2,24]),{10:e,11:37,13:4,14:22,15:h,16:f,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:o,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(g,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{36:[1,47]},{33:48,34:m},{15:[1,50]},t(d,[2,27]),t(g,[2,33]),{38:[1,51]},{33:52,34:m,38:[2,31]},{31:[2,15]},t(g,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:k(function(E,S){if(S.recoverable)this.trace(E);else{var T=new Error(E);throw T.hash=S,T}},"parseError"),parse:k(function(E){var S=this,T=[0],C=[],x=[null],A=[],R=this.table,I="",L=0,F=0,O=2,D=1,M=A.slice.call(arguments,1),P=Object.create(this.lexer),N={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(N.yy[$]=this.yy[$]);P.setInput(E,N.yy),N.yy.lexer=P,N.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var U=P.yylloc;A.push(U);var B=P.options&&P.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function V(le){T.length=T.length-2*le,x.length=x.length-le,A.length=A.length-le}k(V,"popStack");function z(){var le;return le=C.pop()||P.lex()||D,typeof le!="number"&&(le instanceof Array&&(C=le,le=C.pop()),le=S.symbols_[le]||le),le}k(z,"lex");for(var G,Y,W,Q,ie={},Z,re,K,j;;){if(Y=T[T.length-1],this.defaultActions[Y]?W=this.defaultActions[Y]:((G===null||typeof G>"u")&&(G=z()),W=R[Y]&&R[Y][G]),typeof W>"u"||!W.length||!W[0]){var se="";j=[];for(Z in R[Y])this.terminals_[Z]&&Z>O&&j.push("'"+this.terminals_[Z]+"'");P.showPosition?se="Parse error on line "+(L+1)+`:
`+P.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[G]||G)+"'":se="Parse error on line "+(L+1)+": Unexpected "+(G==D?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(se,{text:P.match,token:this.terminals_[G]||G,line:P.yylineno,loc:U,expected:j})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+G);switch(W[0]){case 1:T.push(G),x.push(P.yytext),A.push(P.yylloc),T.push(W[1]),G=null,F=P.yyleng,I=P.yytext,L=P.yylineno,U=P.yylloc;break;case 2:if(re=this.productions_[W[1]][1],ie.$=x[x.length-re],ie._$={first_line:A[A.length-(re||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(re||1)].first_column,last_column:A[A.length-1].last_column},B&&(ie._$.range=[A[A.length-(re||1)].range[0],A[A.length-1].range[1]]),Q=this.performAction.apply(ie,[I,F,L,N.yy,W[1],x,A].concat(M)),typeof Q<"u")return Q;re&&(T=T.slice(0,-1*re*2),x=x.slice(0,-1*re),A=A.slice(0,-1*re)),T.push(this.productions_[W[1]][0]),x.push(ie.$),A.push(ie._$),K=R[T[T.length-2]][T[T.length-1]],T.push(K);break;case 3:return!0}}return!0},"parse")},v=(function(){var b={EOF:1,parseError:k(function(S,T){if(this.yy.parser)this.yy.parser.parseError(S,T);else throw new Error(S)},"parseError"),setInput:k(function(E,S){return this.yy=S||this.yy||{},this._input=E,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var S=E.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},"input"),unput:k(function(E){var S=E.length,T=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var C=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1&&(this.yylineno-=T.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===C.length?this.yylloc.first_column:0)+C[C.length-T.length].length-T[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(E){this.unput(this.match.slice(E))},"less"),pastInput:k(function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var E=this.pastInput(),S=new Array(E.length+1).join("-");return E+this.upcomingInput()+`
`+S+"^"},"showPosition"),test_match:k(function(E,S){var T,C,x;if(this.options.backtrack_lexer&&(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(x.yylloc.range=this.yylloc.range.slice(0))),C=E[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(E[0].length),this.matched+=E[0],T=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),T)return T;if(this._backtrack){for(var A in x)this[A]=x[A];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var E,S,T,C;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),A=0;A<x.length;A++)if(T=this._input.match(this.rules[x[A]]),T&&(!S||T[0].length>S[0].length)){if(S=T,C=A,this.options.backtrack_lexer){if(E=this.test_match(T,x[A]),E!==!1)return E;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(E=this.test_match(S,x[C]),E!==!1?E:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var S=this.next();return S||this.lex()},"lex"),begin:k(function(S){this.conditionStack.push(S)},"begin"),popState:k(function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:k(function(S){this.begin(S)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(S,T,C,x){switch(C){case 0:return S.getLogger().debug("Found block-beta"),10;case 1:return S.getLogger().debug("Found id-block"),29;case 2:return S.getLogger().debug("Found block"),10;case 3:S.getLogger().debug(".",T.yytext);break;case 4:S.getLogger().debug("_",T.yytext);break;case 5:return 5;case 6:return T.yytext=-1,28;case 7:return T.yytext=T.yytext.replace(/columns\s+/,""),S.getLogger().debug("COLUMNS (LEX)",T.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:S.getLogger().debug("LEX: POPPING STR:",T.yytext),this.popState();break;case 13:return S.getLogger().debug("LEX: STR end:",T.yytext),"STR";case 14:return T.yytext=T.yytext.replace(/space\:/,""),S.getLogger().debug("SPACE NUM (LEX)",T.yytext),21;case 15:return T.yytext="1",S.getLogger().debug("COLUMNS (LEX)",T.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),S.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),S.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),S.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),S.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),S.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),S.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),S.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),S.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),S.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),S.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),S.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),S.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),S.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),S.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),S.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),S.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),S.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return S.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return S.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return S.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return S.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return S.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return S.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return S.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return S.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return S.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return S.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return S.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return S.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),S.getLogger().debug("LEX ARR START"),37;case 74:return S.getLogger().debug("Lex: NODE_ID",T.yytext),31;case 75:return S.getLogger().debug("Lex: EOF",T.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:S.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:S.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return S.getLogger().debug("LEX: NODE_DESCR:",T.yytext),"NODE_DESCR";case 83:S.getLogger().debug("LEX POPPING"),this.popState();break;case 84:S.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return T.yytext=T.yytext.replace(/^,\s*/,""),S.getLogger().debug("Lex (right): dir:",T.yytext),"DIR";case 86:return T.yytext=T.yytext.replace(/^,\s*/,""),S.getLogger().debug("Lex (left):",T.yytext),"DIR";case 87:return T.yytext=T.yytext.replace(/^,\s*/,""),S.getLogger().debug("Lex (x):",T.yytext),"DIR";case 88:return T.yytext=T.yytext.replace(/^,\s*/,""),S.getLogger().debug("Lex (y):",T.yytext),"DIR";case 89:return T.yytext=T.yytext.replace(/^,\s*/,""),S.getLogger().debug("Lex (up):",T.yytext),"DIR";case 90:return T.yytext=T.yytext.replace(/^,\s*/,""),S.getLogger().debug("Lex (down):",T.yytext),"DIR";case 91:return T.yytext="]>",S.getLogger().debug("Lex (ARROW_DIR end):",T.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return S.getLogger().debug("Lex: LINK","#"+T.yytext+"#"),15;case 93:return S.getLogger().debug("Lex: LINK",T.yytext),15;case 94:return S.getLogger().debug("Lex: LINK",T.yytext),15;case 95:return S.getLogger().debug("Lex: LINK",T.yytext),15;case 96:return S.getLogger().debug("Lex: START_LINK",T.yytext),this.pushState("LLABEL"),16;case 97:return S.getLogger().debug("Lex: START_LINK",T.yytext),this.pushState("LLABEL"),16;case 98:return S.getLogger().debug("Lex: START_LINK",T.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return S.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),S.getLogger().debug("Lex: LINK","#"+T.yytext+"#"),15;case 102:return this.popState(),S.getLogger().debug("Lex: LINK",T.yytext),15;case 103:return this.popState(),S.getLogger().debug("Lex: LINK",T.yytext),15;case 104:return S.getLogger().debug("Lex: COLON",T.yytext),T.yytext=T.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return b})();_.lexer=v;function y(){this.yy={}}return k(y,"Parser"),y.prototype=_,_.Parser=y,new y})();Qne.parser=Qne;var UKr=Qne,Yf=new Map,kpe=[],Zne=new Map,kNe="color",DNe="fill",$Kr="bgFill",nat=",",GKr=vt(),AF=new Map,Dpe="",zKr=k(t=>Cr.sanitizeText(t,GKr),"sanitizeText"),qKr=k(function(t,e=""){let r=AF.get(t);r||(r={id:t,styles:[],textStyles:[]},AF.set(t,r)),e?.split(nat).forEach(n=>{const i=n.replace(/([^;]*);/,"$1").trim();if(RegExp(kNe).exec(n)){const s=i.replace(DNe,$Kr).replace(kNe,DNe);r.textStyles.push(s)}r.styles.push(i)})},"addStyleClass"),VKr=k(function(t,e=""){const r=Yf.get(t);e!=null&&(r.styles=e.split(nat))},"addStyle2Node"),HKr=k(function(t,e){t.split(",").forEach(function(r){let n=Yf.get(r);if(n===void 0){const i=r.trim();n={id:i,type:"na",children:[]},Yf.set(i,n)}n.classes||(n.classes=[]),n.classes.push(e)})},"setCssClass"),iat=k((t,e)=>{const r=t.flat(),n=[],a=r.find(s=>s?.type==="column-setting")?.columns??-1;for(const s of r){if(typeof a=="number"&&a>0&&s.type!=="column-setting"&&typeof s.widthInColumns=="number"&&s.widthInColumns>a&&Pe.warn(`Block ${s.id} width ${s.widthInColumns} exceeds configured column width ${a}`),s.label&&(s.label=zKr(s.label)),s.type==="classDef"){qKr(s.id,s.css);continue}if(s.type==="applyClass"){HKr(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){s?.stylesStr&&VKr(s.id,s?.stylesStr);continue}if(s.type==="column-setting")e.columns=s.columns??-1;else if(s.type==="edge"){const o=(Zne.get(s.id)??0)+1;Zne.set(s.id,o),s.id=o+"-"+s.id,kpe.push(s)}else{s.label||(s.type==="composite"?s.label="":s.label=s.id);const o=Yf.get(s.id);if(o===void 0?Yf.set(s.id,s):(s.type!=="na"&&(o.type=s.type),s.label!==s.id&&(o.label=s.label)),s.children&&iat(s.children,s),s.type==="space"){const l=s.width??1;for(let u=0;u<l;u++){const d=agr(s);d.id=d.id+"-"+u,Yf.set(d.id,d),n.push(d)}}else o===void 0&&n.push(s)}}e.children=n},"populateBlockDatabase"),Mpe=[],VN={id:"root",type:"composite",children:[],columns:-1},YKr=k(()=>{Pe.debug("Clear called"),ys(),VN={id:"root",type:"composite",children:[],columns:-1},Yf=new Map([["root",VN]]),Mpe=[],AF=new Map,kpe=[],Zne=new Map,Dpe=""},"clear");function aat(t){switch(Pe.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return Pe.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}k(aat,"typeStr2Type");function sat(t){return Pe.debug("typeStr2Type",t),t==="=="?"thick":"normal"}k(sat,"edgeTypeStr2Type");function oat(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}k(oat,"edgeStrToEdgeData");function lat(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}k(lat,"edgeStrToEdgeStartData");function cat(t){return t.includes("==")?"thick":"normal"}k(cat,"edgeStrToThickness");function uat(t){return t.includes(".-")?"dotted":"solid"}k(uat,"edgeStrToPattern");var MNe=0,WKr=k(()=>(MNe++,"id-"+Math.random().toString(36).substr(2,12)+"-"+MNe),"generateId"),KKr=k(t=>{VN.children=t,iat(t,VN),Mpe=VN.children},"setHierarchy"),jKr=k(t=>{const e=Yf.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),XKr=k(()=>[...Yf.values()],"getBlocksFlat"),QKr=k(()=>Mpe||[],"getBlocks"),ZKr=k(()=>kpe,"getEdges"),JKr=k(t=>Yf.get(t),"getBlock"),ejr=k(t=>{Yf.set(t.id,t)},"setBlock"),tjr=k(t=>{Dpe=t},"setDiagramId"),rjr=k(()=>Dpe,"getDiagramId"),njr=k(()=>Pe,"getLogger"),ijr=k(function(){return AF},"getClasses"),ajr={getConfig:k(()=>Ln().block,"getConfig"),typeStr2Type:aat,edgeTypeStr2Type:sat,edgeStrToEdgeData:oat,edgeStrToEdgeStartData:lat,edgeStrToThickness:cat,edgeStrToPattern:uat,getLogger:njr,getBlocksFlat:XKr,getBlocks:QKr,getEdges:ZKr,setHierarchy:KKr,getBlock:JKr,setBlock:ejr,getColumns:jKr,getClasses:ijr,clear:YKr,generateId:WKr,setDiagramId:tjr,getDiagramId:rjr},sjr=ajr,iQ=k((t,e)=>{const r=Jle,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Pf(n,i,a,e)},"fade"),ojr=k(t=>`.label {
    font-family: ${t.fontFamily};
    color: ${t.nodeTextColor||t.textColor};
  }
  .cluster-label text {
    fill: ${t.titleColor};
  }
  .cluster-label span,p {
    color: ${t.titleColor};
  }



  .label text,span,p {
    fill: ${t.nodeTextColor||t.textColor};
    color: ${t.nodeTextColor||t.textColor};
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${t.mainBkg};
    stroke: ${t.nodeBorder};
    stroke-width: 1px;
  }
  .flowchart-label text {
    text-anchor: middle;
  }
  // .flowchart-label .text-outer-tspan {
  //   text-anchor: middle;
  // }
  // .flowchart-label .text-inner-tspan {
  //   text-anchor: start;
  // }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${t.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${t.lineColor};
    stroke-width: 2.0px;
  }

  .flowchart-link {
    stroke: ${t.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${t.edgeLabelBackground};
    /*
     * This is for backward compatibility with existing code that didn't
     * add a \`<p>\` around edge labels.
     *
     * TODO: We should probably remove this in a future release.
     */
    p {
      margin: 0;
      padding: 0;
      display: inline;
    }
    rect {
      opacity: 0.5;
      background-color: ${t.edgeLabelBackground};
      fill: ${t.edgeLabelBackground};
    }
    text-align: center;
  }

  /* For html labels only */
  .labelBkg {
    background-color: ${t.edgeLabelBackground};
  }

  .node .cluster {
    // fill: ${iQ(t.mainBkg,.5)};
    fill: ${iQ(t.clusterBkg,.5)};
    stroke: ${iQ(t.clusterBorder,.2)};
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${t.titleColor};
  }

  .cluster span,p {
    color: ${t.titleColor};
  }
  /* .cluster div {
    color: ${t.titleColor};
  } */

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${t.fontFamily};
    font-size: 12px;
    background: ${t.tertiaryColor};
    border: 1px solid ${t.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .flowchartTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${t.textColor};
  }
  ${cD()}
`,"getStyles"),ljr=ojr,cjr=k((t,e,r,n)=>{e.forEach(i=>{yjr[i](t,r,n)})},"insertMarkers"),ujr=k((t,e,r)=>{Pe.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),djr=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),hjr=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),fjr=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),pjr=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),gjr=k((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),mjr=k((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),_jr=k((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),vjr=k((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),yjr={extension:ujr,composition:djr,aggregation:hjr,dependency:fjr,lollipop:pjr,point:gjr,circle:mjr,cross:_jr,barb:vjr},bjr=cjr,Co=vt()?.block?.padding??8;function Jne(t,e){if(t===0||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(t===1)return{px:0,py:e};const r=e%t,n=Math.floor(e/t);return{px:r,py:n}}k(Jne,"calculateBlockPosition");var Ejr=k(t=>{let e=0,r=0;for(const n of t.children){const{width:i,height:a,x:s,y:o}=n.size??{width:0,height:0,x:0,y:0};if(Pe.debug("getMaxChildSize abc95 child:",n.id,"width:",i,"height:",a,"x:",s,"y:",o,n.type),n.type==="space")continue;const l=i/(n.widthInColumns??1);l>e&&(e=l),a>r&&(r=a)}return{width:e,height:r}},"getMaxChildSize");function RF(t,e,r=0,n=0){Pe.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",r),t?.size?.width||(t.size={width:r,height:n,x:0,y:0});let i=0,a=0;if(t.children?.length>0){for(const p of t.children)RF(p,e);const s=Ejr(t);i=s.width,a=s.height,Pe.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",i,a);for(const p of t.children)p.size&&(Pe.debug(`abc95 Setting size of children of ${t.id} id=${p.id} ${i} ${a} ${JSON.stringify(p.size)}`),p.size.width=i*(p.widthInColumns??1)+Co*((p.widthInColumns??1)-1),p.size.height=a,p.size.x=0,p.size.y=0,Pe.debug(`abc95 updating size of ${t.id} children child:${p.id} maxWidth:${i} maxHeight:${a}`));for(const p of t.children)RF(p,e,i,a);const o=t.columns??-1;let l=0;for(const p of t.children)l+=p.widthInColumns??1;let u=t.children.length;o>0&&o<l&&(u=o);const d=Math.ceil(l/u);let h=u*(i+Co)+Co,f=d*(a+Co)+Co;if(h<r){Pe.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${r} siblingHeight ${n} width ${h}`),h=r,f=n;const p=(r-u*Co-Co)/u,g=(n-d*Co-Co)/d;Pe.debug("Size indata abc88",t.id,"childWidth",p,"maxWidth",i),Pe.debug("Size indata abc88",t.id,"childHeight",g,"maxHeight",a),Pe.debug("Size indata abc88 xSize",u,"padding",Co);for(const m of t.children)m.size&&(m.size.width=p,m.size.height=g,m.size.x=0,m.size.y=0)}if(Pe.debug(`abc95 (finale calc) ${t.id} xSize ${u} ySize ${d} columns ${o}${t.children.length} width=${Math.max(h,t.size?.width||0)}`),h<(t?.size?.width||0)){h=t?.size?.width||0;const p=o>0?Math.min(t.children.length,o):t.children.length;if(p>0){const g=(h-p*Co-Co)/p;Pe.debug("abc95 (growing to fit) width",t.id,h,t.size?.width,g);for(const m of t.children)m.size&&(m.size.width=g)}}t.size={width:h,height:f,x:0,y:0}}Pe.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}k(RF,"setBlockSizes");function Lpe(t,e){Pe.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);const r=t.columns??-1;if(Pe.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){const n=t?.children[0]?.size?.width??0,i=t.children.length*n+(t.children.length-1)*Co;Pe.debug("widthOfChildren 88",i,"posX");const a=new Map;{let d=0;for(const h of t.children){if(!h.size)continue;const{py:f}=Jne(r,d),p=a.get(f)??0;h.size.height>p&&a.set(f,h.size.height);let g=h?.widthInColumns??1;r>0&&(g=Math.min(g,r-d%r)),d+=g}}const s=new Map;{let d=0;const h=[...a.keys()].sort((f,p)=>f-p);for(const f of h)s.set(f,d),d+=(a.get(f)??0)+Co}let o=0;Pe.debug("abc91 block?.size?.x",t.id,t?.size?.x);let l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-Co,u=0;for(const d of t.children){const h=t;if(!d.size)continue;const{width:f,height:p}=d.size,{px:g,py:m}=Jne(r,o);if(m!=u&&(u=m,l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-Co,Pe.debug("New row in layout for block",t.id," and child ",d.id,u)),Pe.debug(`abc89 layout blocks (child) id: ${d.id} Pos: ${o} (px, py) ${g},${m} (${h?.size?.x},${h?.size?.y}) parent: ${h.id} width: ${f}${Co}`),h.size){const v=f/2;d.size.x=l+Co+v,Pe.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${l} new startingPosX${d.size.x} ${v} padding=${Co} width=${f} halfWidth=${v} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(d?.widthInColumns??1)/2}`),l=d.size.x+v;const y=s.get(m)??0,b=a.get(m)??p;d.size.y=h.size.y-h.size.height/2+y+b/2+Co,Pe.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${l}${Co}${v}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${f*(d?.widthInColumns??1)/2}`)}d.children&&Lpe(d);let _=d?.widthInColumns??1;r>0&&(_=Math.min(_,r-o%r)),o+=_,Pe.debug("abc88 columnsPos",d,o)}}Pe.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}k(Lpe,"layoutBlocks");function Ppe(t,{minX:e,minY:r,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){const{x:a,y:s,width:o,height:l}=t.size;a-o/2<e&&(e=a-o/2),s-l/2<r&&(r=s-l/2),a+o/2>n&&(n=a+o/2),s+l/2>i&&(i=s+l/2)}if(t.children)for(const a of t.children)({minX:e,minY:r,maxX:n,maxY:i}=Ppe(a,{minX:e,minY:r,maxX:n,maxY:i}));return{minX:e,minY:r,maxX:n,maxY:i}}k(Ppe,"findBounds");function dat(t){const e=t.getBlock("root");if(!e)return;RF(e,t,0,0),Lpe(e),Pe.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:n,maxX:i,maxY:a}=Ppe(e),s=a-n,o=i-r;return{x:r,y:n,width:o,height:s}}k(dat,"layout");var Sjr=k(async(t,e,r,n=!1,i=!1)=>{let a=e||"";typeof a=="object"&&(a=a[0]);const s=vt(),o=Da(s);return await xu(t,a,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Rf=Sjr,Tjr=k((t,e,r,n,i)=>{e.arrowTypeStart&&LNe(t,"start",e.arrowTypeStart,r,n,i),e.arrowTypeEnd&&LNe(t,"end",e.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),Cjr={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},LNe=k((t,e,r,n,i,a)=>{const s=Cjr[r];if(!s){Pe.warn(`Unknown arrow type: ${r}`);return}const o=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${i}_${a}-${s}${o})`)},"addEdgeMarker"),eie={},Tc={},wjr=k(async(t,e)=>{const r=vt(),n=Da(r),i=t.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label"),s=e.labelType==="markdown",o=await xu(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:s,isNode:!1,markdown:s,width:s?void 0:Number.POSITIVE_INFINITY},r);a.node().appendChild(o);let l=o.getBBox(),u=l;if(n){const h=o.children[0],f=dr(o);l=h.getBoundingClientRect(),u=l,f.attr("width",l.width),f.attr("height",l.height)}else{const h=dr(o).select("text").node();h&&typeof h.getBBox=="function"&&(u=h.getBBox())}a.attr("transform",Vp(u,n)),eie[e.id]=i,e.width=l.width,e.height=l.height;let d;if(e.startLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Rf(f,e.startLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],_=dr(p);g=m.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}f.attr("transform",Vp(g,n)),Tc[e.id]||(Tc[e.id]={}),Tc[e.id].startLeft=h,ZI(d,e.startLabelLeft)}if(e.startLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Rf(f,e.startLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],_=dr(p);g=m.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}f.attr("transform",Vp(g,n)),Tc[e.id]||(Tc[e.id]={}),Tc[e.id].startRight=h,ZI(d,e.startLabelRight)}if(e.endLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Rf(h,e.endLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],_=dr(p);g=m.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}f.attr("transform",Vp(g,n)),Tc[e.id]||(Tc[e.id]={}),Tc[e.id].endLeft=h,ZI(d,e.endLabelLeft)}if(e.endLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await Rf(h,e.endLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],_=dr(p);g=m.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}f.attr("transform",Vp(g,n)),Tc[e.id]||(Tc[e.id]={}),Tc[e.id].endRight=h,ZI(d,e.endLabelRight)}return o},"insertEdgeLabel");function ZI(t,e){Da(vt())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}k(ZI,"setTerminalWidth");var xjr=k((t,e)=>{Pe.debug("Moving label abc88 ",t.id,t.label,eie[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=vt(),{subGraphTitleTotalMargin:i}=q5(n);if(t.label){const a=eie[t.id];let s=t.x,o=t.y;if(r){const l=ci.calcLabelPosition(r);Pe.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+i/2})`)}if(t.startLabelLeft){const a=Tc[t.id].startLeft;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=Tc[t.id].startRight;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=Tc[t.id].endLeft;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=Tc[t.id].endRight;let s=t.x,o=t.y;if(r){const l=ci.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),Ajr=k((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return i>=s||a>=o},"outsideNode"),Rjr=k((t,e,r)=>{Pe.debug(`intersection calc abc89:
  outsidePoint: ${JSON.stringify(e)}
  insidePoint : ${JSON.stringify(r)}
  node        : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.x<e.x?s-a:s+a;const l=t.height/2,u=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*l){let h=r.y<e.y?e.y-l-i:i-l-e.y;o=d*h/u;const f={x:r.x<e.x?r.x+o:r.x-d+o,y:r.y<e.y?r.y+u-h:r.y-u+h};return o===0&&(f.x=e.x,f.y=e.y),d===0&&(f.x=e.x),u===0&&(f.y=e.y),Pe.debug(`abc89 topp/bott calc, Q ${u}, q ${h}, R ${d}, r ${o}`,f),f}else{r.x<e.x?o=e.x-s-n:o=n-s-e.x;let h=u*o/d,f=r.x<e.x?r.x+d-o:r.x-d+o,p=r.y<e.y?r.y+h:r.y-h;return Pe.debug(`sides calc abc89, Q ${u}, q ${h}, R ${d}, r ${o}`,{_x:f,_y:p}),o===0&&(f=e.x,p=e.y),d===0&&(f=e.x),u===0&&(p=e.y),{x:f,y:p}}},"intersection"),PNe=k((t,e)=>{Pe.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(!Ajr(e,a)&&!i){const s=Rjr(e,n,a);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)||r.push(s),i=!0}else n=a,i||r.push(a)}),r},"cutPathAtIntersect"),Ojr=k(function(t,e,r,n,i,a,s){let o=r.points;Pe.debug("abc88 InsertEdge: edge=",r,"e=",e);let l=!1;const u=a.node(e.v);var d=a.node(e.w);d?.intersect&&u?.intersect&&(o=o.slice(1,r.points.length-1),o.unshift(u.intersect(o[0])),o.push(d.intersect(o[o.length-1]))),r.toCluster&&(Pe.debug("to cluster abc88",n[r.toCluster]),o=PNe(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(Pe.debug("from cluster abc88",n[r.fromCluster]),o=PNe(o.reverse(),n[r.fromCluster].node).reverse(),l=!0);const h=o.filter(E=>!Number.isNaN(E.y));let f=Mk;r.curve&&(i==="graph"||i==="flowchart")&&(f=r.curve);const{x:p,y:g}=OBe(r),m=Dk().x(p).y(g).curve(f);let _;switch(r.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-thick";break;default:_=""}switch(r.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break}const v=t.append("path").attr("d",m(h)).attr("id",r.id).attr("class"," "+_+(r.classes?" "+r.classes:"")).attr("style",r.style);let y="";(vt().flowchart.arrowMarkerAbsolute||vt().state.arrowMarkerAbsolute)&&(y=wU(!0)),Tjr(v,r,y,s,i);let b={};return l&&(b.updatedPath=o),b.originalPath=r.points,b},"insertEdge"),Ijr=k(t=>{const e=new Set;for(const r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r);break}return e},"expandAndDeduplicateDirections"),Njr=k((t,e,r,n)=>{const i=Ijr(t),a=2,s=e.height+2*r.padding,o=s/a,l=n??e.width+2*o+r.padding,u=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:o,y:0},{x:l/2,y:2*u},{x:l-o,y:0},{x:l,y:0},{x:l,y:-s/3},{x:l+2*u,y:-s/2},{x:l,y:-2*s/3},{x:l,y:-s},{x:l-o,y:-s},{x:l/2,y:-s-2*u},{x:o,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*u,y:-s/2},{x:0,y:-s/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:o,y:0},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:o,y:-s},{x:0,y:-s/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:o,y:-s},{x:l-o,y:-s},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-o},{x:l,y:-s+o},{x:0,y:-s}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-o},{x:0,y:-s+o},{x:l,y:-s}]:i.has("right")&&i.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s},{x:0,y:-s/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-s+u},{x:0,y:-s+u},{x:l/2,y:-s},{x:l,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u},{x:l,y:-u}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-o},{x:0,y:-s}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-o},{x:l,y:-s}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:i.has("right")?[{x:o,y:-u},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s+u}]:i.has("left")?[{x:o,y:0},{x:o,y:-u},{x:l-o,y:-u},{x:l-o,y:-s+u},{x:o,y:-s+u},{x:o,y:-s},{x:0,y:-s/2}]:i.has("up")?[{x:o,y:-u},{x:o,y:-s+u},{x:0,y:-s+u},{x:l/2,y:-s},{x:l,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:o,y:-u},{x:o,y:-s+u},{x:l-o,y:-s+u},{x:l-o,y:-u},{x:l,y:-u}]:[{x:0,y:0}]},"getArrowPoints");function hat(t,e){return t.intersect(e)}k(hat,"intersectNode");var kjr=hat;function fat(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,o=a-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x<i&&(u=-u);var d=Math.abs(e*r*o/l);return n.y<a&&(d=-d),{x:i+u,y:a+d}}k(fat,"intersectEllipse");var pat=fat;function gat(t,e,r){return pat(t,e,e,r)}k(gat,"intersectCircle");var Djr=gat;function mat(t,e,r,n){var i,a,s,o,l,u,d,h,f,p,g,m,_,v,y;if(i=e.y-t.y,s=t.x-e.x,l=e.x*t.y-t.x*e.y,f=i*r.x+s*r.y+l,p=i*n.x+s*n.y+l,!(f!==0&&p!==0&&tie(f,p))&&(a=n.y-r.y,o=r.x-n.x,u=n.x*r.y-r.x*n.y,d=a*t.x+o*t.y+u,h=a*e.x+o*e.y+u,!(d!==0&&h!==0&&tie(d,h))&&(g=i*o-a*s,g!==0)))return m=Math.abs(g/2),_=s*u-o*l,v=_<0?(_-m)/g:(_+m)/g,_=a*l-i*u,y=_<0?(_-m)/g:(_+m)/g,{x:v,y}}k(mat,"intersectLine");function tie(t,e){return t*e>0}k(tie,"sameSign");var Mjr=mat,Ljr=_at;function _at(t,e,r){var n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(g){s=Math.min(s,g.x),o=Math.min(o,g.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));for(var l=n-t.width/2-s,u=i-t.height/2-o,d=0;d<e.length;d++){var h=e[d],f=e[d<e.length-1?d+1:0],p=Mjr(t,r,{x:l+h.x,y:u+h.y},{x:l+f.x,y:u+f.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(g,m){var _=g.x-r.x,v=g.y-r.y,y=Math.sqrt(_*_+v*v),b=m.x-r.x,E=m.y-r.y,S=Math.sqrt(b*b+E*E);return y<S?-1:y===S?0:1}),a[0]):t}k(_at,"intersectPolygon");var Pjr=k((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=a===0?0:o*i/a,u=o):(i<0&&(s=-s),l=s,u=i===0?0:s*a/i),{x:r+l,y:n+u}},"intersectRect"),Fjr=Pjr,$s={node:kjr,circle:Djr,ellipse:pat,polygon:Ljr,rect:Fjr},Dl=k(async(t,e,r,n)=>{const i=vt();let a;const s=e.useHtmlLabels||Da(i);r?a=r:a="node default";const o=t.insert("g").attr("class",a).attr("id",e.domId||e.id),l=o.insert("g").attr("class","label").attr("style",e.labelStyle);let u;e.labelText===void 0?u="":u=typeof e.labelText=="string"?e.labelText:e.labelText[0];let d;e.labelType==="markdown"?d=xu(l,ta(u0(u),i),{useHtmlLabels:s,width:e.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):d=await Rf(l,ta(u0(u),i),e.labelStyle,!1,n);let h=d.getBBox();const f=e.padding/2;if(Da(i)){const p=d.children[0],g=dr(d);await Wce(p,u),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return s?l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):l.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:o,bbox:h,halfPadding:f,label:l}},"labelHelper"),bo=k((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function up(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}k(up,"insertPolygonShape");var Bjr=k(async(t,e)=>{e.useHtmlLabels||Da(vt())||(e.centerLabel=!0);const{shapeSvg:n,bbox:i,halfPadding:a}=await Dl(t,e,"node "+e.classes,!0);Pe.info("Classes = ",e.classes);const s=n.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),bo(e,s),e.intersect=function(o){return $s.rect(e,o)},n},"note"),Ujr=Bjr,FNe=k(t=>t?" "+t:"","formatClass"),lh=k((t,e)=>`${e||"node default"}${FNe(t.classes)} ${FNe(t.class)}`,"getClassesFromNode"),BNe=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=i+a,o=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];Pe.info("Question main (Circle)");const l=up(r,s,s,o);return l.attr("style",e.style),bo(e,l),e.intersect=function(u){return Pe.warn("Intersect called"),$s.polygon(e,o,u)},r},"question"),$jr=k((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=28,i=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(s){return $s.circle(e,14,s)},r},"choice"),Gjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=4,a=e.positioned?e.height:n.height+e.padding,s=a/i,o=e.positioned?e.width:n.width+2*s+e.padding,l=[{x:s,y:0},{x:o-s,y:0},{x:o,y:-a/2},{x:o-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],u=up(r,o,a,l);return u.attr("style",e.style),bo(e,u),e.intersect=function(d){return $s.polygon(e,l,d)},r},"hexagon"),zjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,void 0,!0),i=2,a=n.height+2*e.padding,s=a/i,o=n.width+2*s+e.padding,u=e.positioned&&(e.widthInColumns??1)>1&&e.width>o?e.width:o,d=Njr(e.directions,n,e,u),h=up(r,u,a,d);return h.attr("style",e.style),bo(e,h),e.intersect=function(f){return $s.polygon(e,d,f)},r},"block_arrow"),qjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return up(r,i,a,s).attr("style",e.style),e.width=i+a,e.height=a,e.intersect=function(l){return $s.polygon(e,s,l)},r},"rect_left_inv_arrow"),Vjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],o=up(r,i,a,s);return o.attr("style",e.style),bo(e,o),e.intersect=function(l){return $s.polygon(e,s,l)},r},"lean_right"),Hjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],o=up(r,i,a,s);return o.attr("style",e.style),bo(e,o),e.intersect=function(l){return $s.polygon(e,s,l)},r},"lean_left"),Yjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],o=up(r,i,a,s);return o.attr("style",e.style),bo(e,o),e.intersect=function(l){return $s.polygon(e,s,l)},r},"trapezoid"),Wjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],o=up(r,i,a,s);return o.attr("style",e.style),bo(e,o),e.intersect=function(l){return $s.polygon(e,s,l)},r},"inv_trapezoid"),Kjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],o=up(r,i,a,s);return o.attr("style",e.style),bo(e,o),e.intersect=function(l){return $s.polygon(e,s,l)},r},"rect_right_inv_arrow"),jjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=i/2,s=a/(2.5+i/50),o=n.height+s+e.padding,l="M 0,"+s+" a "+a+","+s+" 0,0,0 "+i+" 0 a "+a+","+s+" 0,0,0 "+-i+" 0 l 0,"+o+" a "+a+","+s+" 0,0,0 "+i+" 0 l 0,"+-o,u=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-i/2+","+-(o/2+s)+")");return bo(e,u),e.intersect=function(d){const h=$s.rect(e,d),f=h.x-e.x;if(a!=0&&(Math.abs(f)<e.width/2||Math.abs(f)==e.width/2&&Math.abs(h.y-e.y)>e.height/2-s)){let p=s*s*(1-f*f/(a*a));p!=0&&(p=Math.sqrt(p)),p=s-p,d.y-e.y>0&&(p=-p),h.y+=p}return h},r},"cylinder"),Xjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Dl(t,e,"node "+e.classes+" "+e.class,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,o=e.positioned?e.height:n.height+e.padding,l=e.positioned?-s/2:-n.width/2-i,u=e.positioned?-o/2:-n.height/2-i;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",u).attr("width",s).attr("height",o),e.props){const d=new Set(Object.keys(e.props));e.props.borders&&(tz(a,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{Pe.warn(`Unknown node property ${h}`)})}return bo(e,a),e.intersect=function(d){return $s.rect(e,d)},r},"rect"),Qjr=k(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Dl(t,e,"node "+e.classes,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,o=e.positioned?e.height:n.height+e.padding,l=e.positioned?-s/2:-n.width/2-i,u=e.positioned?-o/2:-n.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",u).attr("width",s).attr("height",o),e.props){const d=new Set(Object.keys(e.props));e.props.borders&&(tz(a,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{Pe.warn(`Unknown node property ${h}`)})}return bo(e,a),e.intersect=function(d){return $s.rect(e,d)},r},"composite"),Zjr=k(async(t,e)=>{const{shapeSvg:r}=await Dl(t,e,"label",!0);Pe.trace("Classes = ",e.class);const n=r.insert("rect",":first-child"),i=0,a=0;if(n.attr("width",i).attr("height",a),r.attr("class","label edgeLabel"),e.props){const s=new Set(Object.keys(e.props));e.props.borders&&(tz(n,e.props.borders,i,a),s.delete("borders")),s.forEach(o=>{Pe.warn(`Unknown node property ${o}`)})}return bo(e,n),e.intersect=function(s){return $s.rect(e,s)},r},"labelRect");function tz(t,e,r,n){const i=[],a=k(o=>{i.push(o,0)},"addBorder"),s=k(o=>{i.push(0,o)},"skipBorder");e.includes("t")?(Pe.debug("add top border"),a(r)):s(r),e.includes("r")?(Pe.debug("add right border"),a(n)):s(n),e.includes("b")?(Pe.debug("add bottom border"),a(r)):s(r),e.includes("l")?(Pe.debug("add left border"),a(n)):s(n),t.attr("stroke-dasharray",i.join(" "))}k(tz,"applyNodePropertyBorders");var Jjr=k(async(t,e)=>{let r;e.classes?r="node "+e.classes:r="node default";const n=t.insert("g").attr("class",r).attr("id",e.domId||e.id),i=n.insert("rect",":first-child"),a=n.insert("line"),s=n.insert("g").attr("class","label"),o=e.labelText.flat?e.labelText.flat():e.labelText;let l="";typeof o=="object"?l=o[0]:l=o,Pe.info("Label text abc79",l,o,typeof o=="object");const u=await Rf(s,l,e.labelStyle,!0,!0);let d={width:0,height:0};if(Da(vt())){const m=u.children[0],_=dr(u);d=m.getBoundingClientRect(),_.attr("width",d.width),_.attr("height",d.height)}Pe.info("Text 2",o);const h=o.slice(1,o.length);let f=u.getBBox();const p=await Rf(s,h.join?h.join("<br/>"):h,e.labelStyle,!0,!0);if(Da(vt())){const m=p.children[0],_=dr(p);d=m.getBoundingClientRect(),_.attr("width",d.width),_.attr("height",d.height)}const g=e.padding/2;return dr(p).attr("transform","translate( "+(d.width>f.width?0:(f.width-d.width)/2)+", "+(f.height+g+5)+")"),dr(u).attr("transform","translate( "+(d.width<f.width?0:-(f.width-d.width)/2)+", 0)"),d=s.node().getBBox(),s.attr("transform","translate("+-d.width/2+", "+(-d.height/2-g+3)+")"),i.attr("class","outer title-state").attr("x",-d.width/2-g).attr("y",-d.height/2-g).attr("width",d.width+e.padding).attr("height",d.height+e.padding),a.attr("class","divider").attr("x1",-d.width/2-g).attr("x2",d.width/2+g).attr("y1",-d.height/2-g+f.height+g).attr("y2",-d.height/2-g+f.height+g),bo(e,i),e.intersect=function(m){return $s.rect(e,m)},n},"rectWithTitle"),eXr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.height+e.padding,a=n.width+i/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return bo(e,s),e.intersect=function(o){return $s.rect(e,o)},r},"stadium"),tXr=k(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Dl(t,e,lh(e,void 0),!0),a=r.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),Pe.info("Circle main"),bo(e,a),e.intersect=function(s){return Pe.info("Circle intersect",e,n.width/2+i,s),$s.circle(e,n.width/2+i,s)},r},"circle"),rXr=k(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:i}=await Dl(t,e,lh(e,void 0),!0),a=5,s=r.insert("g",":first-child"),o=s.insert("circle"),l=s.insert("circle");return s.attr("class",e.class),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i+a).attr("width",n.width+e.padding+a*2).attr("height",n.height+e.padding+a*2),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),Pe.info("DoubleCircle main"),bo(e,o),e.intersect=function(u){return Pe.info("DoubleCircle intersect",e,n.width/2+i+a,u),$s.circle(e,n.width/2+i+a,u)},r},"doublecircle"),nXr=k(async(t,e)=>{const{shapeSvg:r,bbox:n}=await Dl(t,e,lh(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],o=up(r,i,a,s);return o.attr("style",e.style),bo(e,o),e.intersect=function(l){return $s.polygon(e,s,l)},r},"subroutine"),iXr=k((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),bo(e,n),e.intersect=function(i){return $s.circle(e,7,i)},r},"start"),UNe=k((t,e,r)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let i=70,a=10;r==="LR"&&(i=10,a=70);const s=n.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return bo(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(o){return $s.rect(e,o)},n},"forkJoin"),aXr=k((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),bo(e,i),e.intersect=function(a){return $s.circle(e,7,a)},r},"end"),sXr=k(async(t,e)=>{const r=e.padding/2,n=4,i=8;let a;e.classes?a="node "+e.classes:a="node default";const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),o=s.insert("rect",":first-child"),l=s.insert("line"),u=s.insert("line");let d=0,h=n;const f=s.insert("g").attr("class","label");let p=0;const g=e.classData.annotations?.[0],m=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",_=await Rf(f,m,e.labelStyle,!0,!0);let v=_.getBBox();if(Da(vt())){const x=_.children[0],A=dr(_);v=x.getBoundingClientRect(),A.attr("width",v.width),A.attr("height",v.height)}e.classData.annotations[0]&&(h+=v.height+n,d+=v.width);let y=e.classData.label;e.classData.type!==void 0&&e.classData.type!==""&&(Da(vt())?y+="&lt;"+e.classData.type+"&gt;":y+="<"+e.classData.type+">");const b=await Rf(f,y,e.labelStyle,!0,!0);dr(b).attr("class","classTitle");let E=b.getBBox();if(Da(vt())){const x=b.children[0],A=dr(b);E=x.getBoundingClientRect(),A.attr("width",E.width),A.attr("height",E.height)}h+=E.height+n,E.width>d&&(d=E.width);const S=[];e.classData.members.forEach(async x=>{const A=x.getDisplayDetails();let R=A.displayText;Da(vt())&&(R=R.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const I=await Rf(f,R,A.cssStyle?A.cssStyle:e.labelStyle,!0,!0);let L=I.getBBox();if(Da(vt())){const F=I.children[0],O=dr(I);L=F.getBoundingClientRect(),O.attr("width",L.width),O.attr("height",L.height)}L.width>d&&(d=L.width),h+=L.height+n,S.push(I)}),h+=i;const T=[];if(e.classData.methods.forEach(async x=>{const A=x.getDisplayDetails();let R=A.displayText;Da(vt())&&(R=R.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const I=await Rf(f,R,A.cssStyle?A.cssStyle:e.labelStyle,!0,!0);let L=I.getBBox();if(Da(vt())){const F=I.children[0],O=dr(I);L=F.getBoundingClientRect(),O.attr("width",L.width),O.attr("height",L.height)}L.width>d&&(d=L.width),h+=L.height+n,T.push(I)}),h+=i,g){let x=(d-v.width)/2;dr(_).attr("transform","translate( "+(-1*d/2+x)+", "+-1*h/2+")"),p=v.height+n}let C=(d-E.width)/2;return dr(b).attr("transform","translate( "+(-1*d/2+C)+", "+(-1*h/2+p)+")"),p+=E.height+n,l.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+i+p).attr("y2",-h/2-r+i+p),p+=i,S.forEach(x=>{dr(x).attr("transform","translate( "+-d/2+", "+(-1*h/2+p+i/2)+")");const A=x?.getBBox();p+=(A?.height??0)+n}),p+=i,u.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+i+p).attr("y2",-h/2-r+i+p),p+=i,T.forEach(x=>{dr(x).attr("transform","translate( "+-d/2+", "+(-1*h/2+p)+")");const A=x?.getBBox();p+=(A?.height??0)+n}),o.attr("style",e.style).attr("class","outer title-state").attr("x",-d/2-r).attr("y",-(h/2)-r).attr("width",d+e.padding).attr("height",h+e.padding),bo(e,o),e.intersect=function(x){return $s.rect(e,x)},s},"class_box"),$Ne={rhombus:BNe,composite:Qjr,question:BNe,rect:Xjr,labelRect:Zjr,rectWithTitle:Jjr,choice:$jr,circle:tXr,doublecircle:rXr,stadium:eXr,hexagon:Gjr,block_arrow:zjr,rect_left_inv_arrow:qjr,lean_right:Vjr,lean_left:Hjr,trapezoid:Yjr,inv_trapezoid:Wjr,rect_right_inv_arrow:Kjr,cylinder:jjr,start:iXr,end:aXr,note:Ujr,subroutine:nXr,fork:UNe,join:UNe,class_box:sXr},K6={},vat=k(async(t,e,r)=>{let n,i;if(e.link){let a;vt().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=await $Ne[e.shape](n,e,r)}else i=await $Ne[e.shape](t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),K6[e.id]=n,e.haveCallback&&K6[e.id].attr("class",K6[e.id].attr("class")+" clickable"),n},"insertNode"),oXr=k(t=>{const e=K6[t.id];Pe.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode");function Fpe(t,e,r=!1){const n=t;let i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i=i+" flowchart-label";let a=0,s="",o;switch(n.type){case"round":a=5,s="rect";break;case"composite":a=0,s="composite",o=0;break;case"square":s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"block_arrow":s="block_arrow";break;case"odd":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"rect_left_inv_arrow":s="rect_left_inv_arrow";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"group":s="rect";break;case"doublecircle":s="doublecircle";break;default:s="rect"}const l=Hce(n?.styles??[]),u=n.label,d=n.size??{width:0,height:0,x:0,y:0},h=e.getDiagramId();return{labelStyle:l.labelStyle,shape:s,labelText:u,rx:a,ry:a,class:i,style:l.style,id:n.id,domId:h?`${h}-${n.id}`:n.id,directions:n.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:r,intersect:void 0,type:n.type,padding:o??Ln()?.block?.padding??0,widthInColumns:n.widthInColumns??1}}k(Fpe,"getNodeFromBlock");async function yat(t,e,r){const n=Fpe(e,r,!1);if(n.type==="group")return;const i=Ln(),a=await vat(t,n,{config:i}),s=a.node().getBBox(),o=r.getBlock(n.id);o.size={width:s.width,height:s.height,x:0,y:0,node:a},r.setBlock(o),a.remove()}k(yat,"calculateBlockSize");async function bat(t,e,r){const n=Fpe(e,r,!0);if(r.getBlock(n.id).type!=="space"){const a=Ln();await vat(t,n,{config:a}),e.intersect=n?.intersect,oXr(n)}}k(bat,"insertBlockPositioned");async function rz(t,e,r,n){for(const i of e)await n(t,i,r),i.children&&await rz(t,i.children,r,n)}k(rz,"performOperations");async function Eat(t,e,r){await rz(t,e,r,yat)}k(Eat,"calculateBlockSizes");async function Sat(t,e,r){await rz(t,e,r,bat)}k(Sat,"insertBlocks");async function Tat(t,e,r,n,i){const a=new dd({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const s of r)s.size&&a.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(const s of e)if(s.start&&s.end){const o=n.getBlock(s.start),l=n.getBlock(s.end);if(o?.size&&l?.size){const u=o.size,d=l.size,h=[{x:u.x,y:u.y},{x:u.x+(d.x-u.x)/2,y:u.y+(d.y-u.y)/2},{x:d.x,y:d.y}],f=i?`${i}-${s.id}`:s.id,p=s.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",g=s.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",m=`${p} ${g} flowchart-link LS-a1 LE-b1`;Ojr(t,{v:s.start,w:s.end,name:f},{...s,id:f,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m},void 0,"block",a,i),s.label&&(await wjr(t,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m}),xjr({...s,x:h[1].x,y:h[1].y},{originalPath:h}))}}}k(Tat,"insertEdges");var lXr=k(function(t,e){return e.db.getClasses()},"getClasses"),cXr=k(async function(t,e,r,n){const{securityLevel:i,block:a}=Ln(),s=n.db;s.setDiagramId(e);let o;i==="sandbox"&&(o=dr("#i"+e));const l=dr(i==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=i==="sandbox"?l.select(`[id="${e}"]`):dr(`[id="${e}"]`);bjr(u,["point","circle","cross"],n.type,e);const h=s.getBlocks(),f=s.getBlocksFlat(),p=s.getEdges(),g=u.insert("g").attr("class","block");await Eat(g,h,s);const m=dat(s);if(await Sat(g,h,s),await Tat(g,p,f,s,e),m){const _=m,v=Math.max(1,Math.round(.125*(_.width/_.height))),y=_.height+v+10,b=_.width+10,{useMaxWidth:E}=a;Xo(u,y,b,!!E),Pe.debug("Here Bounds",m,_),u.attr("viewBox",`${_.x-5} ${_.y-5} ${_.width+10} ${_.height+10}`)}},"draw"),uXr={draw:cXr,getClasses:lXr},dXr={parser:UKr,db:sjr,renderer:uXr,styles:ljr};const hXr=Object.freeze(Object.defineProperty({__proto__:null,diagram:dXr},Symbol.toStringTag,{value:"Module"}));var Bp=new fde(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),fXr=k(()=>{Bp.reset(),ys()},"clear"),pXr=k(()=>Bp.records.stack[0],"getRoot"),gXr=k(()=>Bp.records.cnt,"getCount"),mXr=Gi.treeView,_Xr=k(()=>_o(mXr,Ln().treeView),"getConfig"),vXr=k((t,e)=>{for(;t<=Bp.records.stack[Bp.records.stack.length-1].level;)Bp.records.stack.pop();const r={id:Bp.records.cnt++,level:t,name:e,children:[]};Bp.records.stack[Bp.records.stack.length-1].children.push(r),Bp.records.stack.push(r)},"addNode"),yXr={clear:fXr,addNode:vXr,getRoot:pXr,getCount:gXr,getConfig:_Xr,getAccTitle:Fs,getAccDescription:Us,getDiagramTitle:bs,setAccDescription:Bs,setAccTitle:ms,setDiagramTitle:ks},rie=yXr,bXr=k(t=>{Lg(t,rie),t.nodes.map(e=>rie.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),EXr={parse:k(async t=>{const e=await cp("treeView",t);Pe.debug(e),bXr(e)},"parse")},SXr=k((t,e,r,n,i)=>{const a=n.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:s,width:o}=a.node().getBBox(),l=s+i.paddingY*2,u=o+i.paddingX*2;a.attr("x",t+i.paddingX),a.attr("y",e+l/2),r.BBox={x:t,y:e,width:u,height:l}},"positionLabel"),GNe=k((t,e,r,n,i,a)=>t.append("line").attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),TXr=k((t,e,r)=>{let n=0,i=0;const a=k((o,l,u,d)=>{const h=d*(u.rowIndent+u.paddingX);SXr(h,n,l,o,u);const{height:f,width:p}=l.BBox;GNe(o,h-u.rowIndent,n+f/2,h,n+f/2,u.lineThickness),i=Math.max(i,h+p),n+=f},"drawNode"),s=k((o,l=0)=>{a(t,o,r,l),o.children.forEach(f=>{s(f,l+1)});const{x:u,y:d,height:h}=o.BBox;if(o.children.length){const{y:f,height:p}=o.children[o.children.length-1].BBox;GNe(t,u+r.paddingX,d+h,u+r.paddingX,f+p/2+r.lineThickness/2,r.lineThickness)}},"processNode");return s(e),{totalHeight:n,totalWidth:i}},"drawTree"),CXr=k((t,e,r,n)=>{Pe.debug(`Rendering treeView diagram
`+t);const i=n.db,a=i.getRoot(),s=i.getConfig(),o=ud(e),l=o.append("g");l.attr("class","tree-view");const{totalHeight:u,totalWidth:d}=TXr(l,a,s);o.attr("viewBox",`-${s.lineThickness/2} 0 ${d} ${u}`),Xo(o,u,d,s.useMaxWidth)},"draw"),wXr={draw:CXr},xXr=wXr,AXr={labelFontSize:"16px",labelColor:"black",lineColor:"black"},RXr=k(({treeView:t})=>{const{labelFontSize:e,labelColor:r,lineColor:n}=_o(AXr,t);return`
    .treeView-node-label {
        font-size: ${e};
        fill: ${r};
    }
    .treeView-node-line {
        stroke: ${n};
    }
    `},"styles"),OXr=RXr,IXr={db:rie,renderer:xXr,parser:EXr,styles:OXr};const NXr=Object.freeze(Object.defineProperty({__proto__:null,diagram:IXr},Symbol.toStringTag,{value:"Module"}));var j6={exports:{}},X6={exports:{}},Q6={exports:{}},kXr=Q6.exports,zNe;function DXr(){return zNe||(zNe=1,(function(t,e){(function(n,i){t.exports=i()})(kXr,function(){return(function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.i=function(a){return a},i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:o})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=28)})([(function(r,n,i){function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,r.exports=a}),(function(r,n,i){var a=i(2),s=i(8),o=i(9);function l(d,h,f){a.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=d,this.target=h}l.prototype=Object.create(a.prototype);for(var u in a)l[u]=a[u];l.prototype.getSource=function(){return this.source},l.prototype.getTarget=function(){return this.target},l.prototype.isInterGraph=function(){return this.isInterGraph},l.prototype.getLength=function(){return this.length},l.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},l.prototype.getBendpoints=function(){return this.bendpoints},l.prototype.getLca=function(){return this.lca},l.prototype.getSourceInLca=function(){return this.sourceInLca},l.prototype.getTargetInLca=function(){return this.targetInLca},l.prototype.getOtherEnd=function(d){if(this.source===d)return this.target;if(this.target===d)return this.source;throw"Node is not incident with this edge"},l.prototype.getOtherEndInGraph=function(d,h){for(var f=this.getOtherEnd(d),p=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==p)break;f=f.getOwner().getParent()}return null},l.prototype.updateLength=function(){var d=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),d),this.isOverlapingSourceAndTarget||(this.lengthX=d[0]-d[2],this.lengthY=d[1]-d[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},l.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=l}),(function(r,n,i){function a(s){this.vGraphObject=s}r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(13),l=i(0),u=i(16),d=i(5);function h(p,g,m,_){m==null&&_==null&&(_=g),a.call(this,_),p.graphManager!=null&&(p=p.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=_,this.edges=[],this.graphManager=p,m!=null&&g!=null?this.rect=new o(g.x,g.y,m.width,m.height):this.rect=new o}h.prototype=Object.create(a.prototype);for(var f in a)h[f]=a[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(p){this.rect.width=p},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(p){this.rect.height=p},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new d(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new d(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(p,g){this.rect.x=p.x,this.rect.y=p.y,this.rect.width=g.width,this.rect.height=g.height},h.prototype.setCenter=function(p,g){this.rect.x=p-this.rect.width/2,this.rect.y=g-this.rect.height/2},h.prototype.setLocation=function(p,g){this.rect.x=p,this.rect.y=g},h.prototype.moveBy=function(p,g){this.rect.x+=p,this.rect.y+=g},h.prototype.getEdgeListToNode=function(p){var g=[],m=this;return m.edges.forEach(function(_){if(_.target==p){if(_.source!=m)throw"Incorrect edge source!";g.push(_)}}),g},h.prototype.getEdgesBetween=function(p){var g=[],m=this;return m.edges.forEach(function(_){if(!(_.source==m||_.target==m))throw"Incorrect edge source and/or target";(_.target==p||_.source==p)&&g.push(_)}),g},h.prototype.getNeighborsList=function(){var p=new Set,g=this;return g.edges.forEach(function(m){if(m.source==g)p.add(m.target);else{if(m.target!=g)throw"Incorrect incidency!";p.add(m.source)}}),p},h.prototype.withChildren=function(){var p=new Set,g,m;if(p.add(this),this.child!=null)for(var _=this.child.getNodes(),v=0;v<_.length;v++)g=_[v],m=g.withChildren(),m.forEach(function(y){p.add(y)});return p},h.prototype.getNoOfChildren=function(){var p=0,g;if(this.child==null)p=1;else for(var m=this.child.getNodes(),_=0;_<m.length;_++)g=m[_],p+=g.getNoOfChildren();return p==0&&(p=1),p},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},h.prototype.scatter=function(){var p,g,m=-l.INITIAL_WORLD_BOUNDARY,_=l.INITIAL_WORLD_BOUNDARY;p=l.WORLD_CENTER_X+u.nextDouble()*(_-m)+m;var v=-l.INITIAL_WORLD_BOUNDARY,y=l.INITIAL_WORLD_BOUNDARY;g=l.WORLD_CENTER_Y+u.nextDouble()*(y-v)+v,this.rect.x=p,this.rect.y=g},h.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var p=this.getChild();if(p.updateBounds(!0),this.rect.x=p.getLeft(),this.rect.y=p.getTop(),this.setWidth(p.getRight()-p.getLeft()),this.setHeight(p.getBottom()-p.getTop()),l.NODE_DIMENSIONS_INCLUDE_LABELS){var g=p.getRight()-p.getLeft(),m=p.getBottom()-p.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(g+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>g?(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(g+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(m+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>m?(this.rect.y-=(this.labelHeight-m)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(m+this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(p){var g=this.rect.x;g>l.WORLD_BOUNDARY?g=l.WORLD_BOUNDARY:g<-l.WORLD_BOUNDARY&&(g=-l.WORLD_BOUNDARY);var m=this.rect.y;m>l.WORLD_BOUNDARY?m=l.WORLD_BOUNDARY:m<-l.WORLD_BOUNDARY&&(m=-l.WORLD_BOUNDARY);var _=new d(g,m),v=p.inverseTransformPoint(_);this.setLocation(v.x,v.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h}),(function(r,n,i){var a=i(0);function s(){}for(var o in a)s[o]=a[o];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=s}),(function(r,n,i){function a(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(s){this.x=s},a.prototype.setY=function(s){this.y=s},a.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(0),l=i(7),u=i(3),d=i(1),h=i(13),f=i(12),p=i(11);function g(_,v,y){a.call(this,y),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=_,v!=null&&v instanceof l?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}g.prototype=Object.create(a.prototype);for(var m in a)g[m]=a[m];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(_,v,y){if(v==null&&y==null){var b=_;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(b)>-1)throw"Node already in graph!";return b.owner=this,this.getNodes().push(b),b}else{var E=_;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(y)>-1))throw"Source or target not in graph!";if(!(v.owner==y.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=y.owner?null:(E.source=v,E.target=y,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),y!=v&&y.edges.push(E),E)}},g.prototype.remove=function(_){var v=_;if(_ instanceof u){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var y=v.edges.slice(),b,E=y.length,S=0;S<E;S++)b=y[S],b.isInterGraph?this.graphManager.remove(b):b.source.owner.remove(b);var T=this.nodes.indexOf(v);if(T==-1)throw"Node not in owner node list!";this.nodes.splice(T,1)}else if(_ instanceof d){var b=_;if(b==null)throw"Edge is null!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.owner!=null&&b.target.owner!=null&&b.source.owner==this&&b.target.owner==this))throw"Source and/or target owner is invalid!";var C=b.source.edges.indexOf(b),x=b.target.edges.indexOf(b);if(!(C>-1&&x>-1))throw"Source and/or target doesn't know this edge!";b.source.edges.splice(C,1),b.target!=b.source&&b.target.edges.splice(x,1);var T=b.source.owner.getEdges().indexOf(b);if(T==-1)throw"Not in owner's edge list!";b.source.owner.getEdges().splice(T,1)}},g.prototype.updateLeftTop=function(){for(var _=s.MAX_VALUE,v=s.MAX_VALUE,y,b,E,S=this.getNodes(),T=S.length,C=0;C<T;C++){var x=S[C];y=x.getTop(),b=x.getLeft(),_>y&&(_=y),v>b&&(v=b)}return _==s.MAX_VALUE?null:(S[0].getParent().paddingLeft!=null?E=S[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=_-E,new f(this.left,this.top))},g.prototype.updateBounds=function(_){for(var v=s.MAX_VALUE,y=-s.MAX_VALUE,b=s.MAX_VALUE,E=-s.MAX_VALUE,S,T,C,x,A,R=this.nodes,I=R.length,L=0;L<I;L++){var F=R[L];_&&F.child!=null&&F.updateBounds(),S=F.getLeft(),T=F.getRight(),C=F.getTop(),x=F.getBottom(),v>S&&(v=S),y<T&&(y=T),b>C&&(b=C),E<x&&(E=x)}var O=new h(v,b,y-v,E-b);v==s.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),R[0].getParent().paddingLeft!=null?A=R[0].getParent().paddingLeft:A=this.margin,this.left=O.x-A,this.right=O.x+O.width+A,this.top=O.y-A,this.bottom=O.y+O.height+A},g.calculateBounds=function(_){for(var v=s.MAX_VALUE,y=-s.MAX_VALUE,b=s.MAX_VALUE,E=-s.MAX_VALUE,S,T,C,x,A=_.length,R=0;R<A;R++){var I=_[R];S=I.getLeft(),T=I.getRight(),C=I.getTop(),x=I.getBottom(),v>S&&(v=S),y<T&&(y=T),b>C&&(b=C),E<x&&(E=x)}var L=new h(v,b,y-v,E-b);return L},g.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},g.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},g.prototype.calcEstimatedSize=function(){for(var _=0,v=this.nodes,y=v.length,b=0;b<y;b++){var E=v[b];_+=E.calcEstimatedSize()}return _==0?this.estimatedSize=o.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=_/Math.sqrt(this.nodes.length),this.estimatedSize},g.prototype.updateConnected=function(){var _=this;if(this.nodes.length==0){this.isConnected=!0;return}var v=new p,y=new Set,b=this.nodes[0],E,S,T=b.withChildren();for(T.forEach(function(L){v.push(L),y.add(L)});v.length!==0;){b=v.shift(),E=b.getEdges();for(var C=E.length,x=0;x<C;x++){var A=E[x];if(S=A.getOtherEndInGraph(b,this),S!=null&&!y.has(S)){var R=S.withChildren();R.forEach(function(L){v.push(L),y.add(L)})}}}if(this.isConnected=!1,y.size>=this.nodes.length){var I=0;y.forEach(function(L){L.owner==_&&I++}),I==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,i){var a,s=i(1);function o(l){a=i(6),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(l,u);return this.setRootGraph(d),this.rootGraph},o.prototype.add=function(l,u,d,h,f){if(d==null&&h==null&&f==null){if(l==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return l.parent=u,u.child=l,l}else{f=d,h=u,d=l;var p=h.getOwner(),g=f.getOwner();if(!(p!=null&&p.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(p==g)return d.isInterGraph=!1,p.add(d,h,f);if(d.isInterGraph=!0,d.source=h,d.target=f,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},o.prototype.remove=function(l){if(l instanceof a){var u=l;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var h,f=d.length,p=0;p<f;p++)h=d[p],u.remove(h);var g=[];g=g.concat(u.getNodes());var m;f=g.length;for(var p=0;p<f;p++)m=g[p],u.remove(m);u==this.rootGraph&&this.setRootGraph(null);var _=this.graphs.indexOf(u);this.graphs.splice(_,1),u.parent=null}else if(l instanceof s){if(h=l,h==null)throw"Edge is null!";if(!h.isInterGraph)throw"Not an inter-graph edge!";if(!(h.source!=null&&h.target!=null))throw"Source and/or target is null!";if(!(h.source.edges.indexOf(h)!=-1&&h.target.edges.indexOf(h)!=-1))throw"Source and/or target doesn't know this edge!";var _=h.source.edges.indexOf(h);if(h.source.edges.splice(_,1),_=h.target.edges.indexOf(h),h.target.edges.splice(_,1),!(h.source.owner!=null&&h.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(h.source.owner.getGraphManager().edges.indexOf(h)==-1)throw"Not in owner graph manager's edge list!";var _=h.source.owner.getGraphManager().edges.indexOf(h);h.source.owner.getGraphManager().edges.splice(_,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(this.allNodes==null){for(var l=[],u=this.getGraphs(),d=u.length,h=0;h<d;h++)l=l.concat(u[h].getNodes());this.allNodes=l}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(this.allEdges==null){var l=[],u=this.getGraphs();u.length;for(var d=0;d<u.length;d++)l=l.concat(u[d].getEdges());l=l.concat(this.edges),this.allEdges=l}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(l){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=l},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(l){if(l.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=l,l.parent==null&&(l.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(l,u){if(!(l!=null&&u!=null))throw"assert failed";if(l==u)return!0;var d=l.getOwner(),h;do{if(h=d.getParent(),h==null)break;if(h==u)return!0;if(d=h.getOwner(),d==null)break}while(!0);d=u.getOwner();do{if(h=d.getParent(),h==null)break;if(h==l)return!0;if(d=h.getOwner(),d==null)break}while(!0);return!1},o.prototype.calcLowestCommonAncestors=function(){for(var l,u,d,h,f,p=this.getAllEdges(),g=p.length,m=0;m<g;m++){if(l=p[m],u=l.source,d=l.target,l.lca=null,l.sourceInLca=u,l.targetInLca=d,u==d){l.lca=u.getOwner();continue}for(h=u.getOwner();l.lca==null;){for(l.targetInLca=d,f=d.getOwner();l.lca==null;){if(f==h){l.lca=f;break}if(f==this.rootGraph)break;if(l.lca!=null)throw"assert failed";l.targetInLca=f.getParent(),f=l.targetInLca.getOwner()}if(h==this.rootGraph)break;l.lca==null&&(l.sourceInLca=h.getParent(),h=l.sourceInLca.getOwner())}if(l.lca==null)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(l,u){if(l==u)return l.getOwner();var d=l.getOwner();do{if(d==null)break;var h=u.getOwner();do{if(h==null)break;if(h==d)return h;h=h.getParent().getOwner()}while(!0);d=d.getParent().getOwner()}while(!0);return d},o.prototype.calcInclusionTreeDepths=function(l,u){l==null&&u==null&&(l=this.rootGraph,u=1);for(var d,h=l.getNodes(),f=h.length,p=0;p<f;p++)d=h[p],d.inclusionTreeDepth=u,d.child!=null&&this.calcInclusionTreeDepths(d.child,u+1)},o.prototype.includesInvalidEdge=function(){for(var l,u=[],d=this.edges.length,h=0;h<d;h++)l=this.edges[h],this.isOneAncestorOfOther(l.source,l.target)&&u.push(l);for(var h=0;h<u.length;h++)this.remove(u[h]);return!1},r.exports=o}),(function(r,n,i){var a=i(12);function s(){}s.calcSeparationAmount=function(o,l,u,d){if(!o.intersects(l))throw"assert failed";var h=new Array(2);this.decideDirectionsForOverlappingNodes(o,l,h),u[0]=Math.min(o.getRight(),l.getRight())-Math.max(o.x,l.x),u[1]=Math.min(o.getBottom(),l.getBottom())-Math.max(o.y,l.y),o.getX()<=l.getX()&&o.getRight()>=l.getRight()?u[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(u[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?u[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(u[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var f=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(f=1);var p=f*u[0],g=u[1]/f;u[0]<g?g=u[0]:p=u[1],u[0]=-1*h[0]*(g/2+d),u[1]=-1*h[1]*(p/2+d)},s.decideDirectionsForOverlappingNodes=function(o,l,u){o.getCenterX()<l.getCenterX()?u[0]=-1:u[0]=1,o.getCenterY()<l.getCenterY()?u[1]=-1:u[1]=1},s.getIntersection2=function(o,l,u){var d=o.getCenterX(),h=o.getCenterY(),f=l.getCenterX(),p=l.getCenterY();if(o.intersects(l))return u[0]=d,u[1]=h,u[2]=f,u[3]=p,!0;var g=o.getX(),m=o.getY(),_=o.getRight(),v=o.getX(),y=o.getBottom(),b=o.getRight(),E=o.getWidthHalf(),S=o.getHeightHalf(),T=l.getX(),C=l.getY(),x=l.getRight(),A=l.getX(),R=l.getBottom(),I=l.getRight(),L=l.getWidthHalf(),F=l.getHeightHalf(),O=!1,D=!1;if(d===f){if(h>p)return u[0]=d,u[1]=m,u[2]=f,u[3]=R,!1;if(h<p)return u[0]=d,u[1]=y,u[2]=f,u[3]=C,!1}else if(h===p){if(d>f)return u[0]=g,u[1]=h,u[2]=x,u[3]=p,!1;if(d<f)return u[0]=_,u[1]=h,u[2]=T,u[3]=p,!1}else{var M=o.height/o.width,P=l.height/l.width,N=(p-h)/(f-d),$=void 0,U=void 0,B=void 0,V=void 0,z=void 0,G=void 0;if(-M===N?d>f?(u[0]=v,u[1]=y,O=!0):(u[0]=_,u[1]=m,O=!0):M===N&&(d>f?(u[0]=g,u[1]=m,O=!0):(u[0]=b,u[1]=y,O=!0)),-P===N?f>d?(u[2]=A,u[3]=R,D=!0):(u[2]=x,u[3]=C,D=!0):P===N&&(f>d?(u[2]=T,u[3]=C,D=!0):(u[2]=I,u[3]=R,D=!0)),O&&D)return!1;if(d>f?h>p?($=this.getCardinalDirection(M,N,4),U=this.getCardinalDirection(P,N,2)):($=this.getCardinalDirection(-M,N,3),U=this.getCardinalDirection(-P,N,1)):h>p?($=this.getCardinalDirection(-M,N,1),U=this.getCardinalDirection(-P,N,3)):($=this.getCardinalDirection(M,N,2),U=this.getCardinalDirection(P,N,4)),!O)switch($){case 1:V=m,B=d+-S/N,u[0]=B,u[1]=V;break;case 2:B=b,V=h+E*N,u[0]=B,u[1]=V;break;case 3:V=y,B=d+S/N,u[0]=B,u[1]=V;break;case 4:B=v,V=h+-E*N,u[0]=B,u[1]=V;break}if(!D)switch(U){case 1:G=C,z=f+-F/N,u[2]=z,u[3]=G;break;case 2:z=I,G=p+L*N,u[2]=z,u[3]=G;break;case 3:G=R,z=f+F/N,u[2]=z,u[3]=G;break;case 4:z=A,G=p+-L*N,u[2]=z,u[3]=G;break}}return!1},s.getCardinalDirection=function(o,l,u){return o>l?u:1+u%4},s.getIntersection=function(o,l,u,d){if(d==null)return this.getIntersection2(o,l,u);var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,_=u.y,v=d.x,y=d.y,b=void 0,E=void 0,S=void 0,T=void 0,C=void 0,x=void 0,A=void 0,R=void 0,I=void 0;return S=g-f,C=h-p,A=p*f-h*g,T=y-_,x=m-v,R=v*_-m*y,I=S*x-T*C,I===0?null:(b=(C*R-x*A)/I,E=(T*A-S*R)/I,new a(b,E))},s.angleOfVector=function(o,l,u,d){var h=void 0;return o!==u?(h=Math.atan((d-l)/(u-o)),u<o?h+=Math.PI:d<l&&(h+=this.TWO_PI)):d<l?h=this.ONE_AND_HALF_PI:h=this.HALF_PI,h},s.doIntersect=function(o,l,u,d){var h=o.x,f=o.y,p=l.x,g=l.y,m=u.x,_=u.y,v=d.x,y=d.y,b=(p-h)*(y-_)-(v-m)*(g-f);if(b===0)return!1;var E=((y-_)*(v-h)+(m-v)*(y-f))/b,S=((f-g)*(v-h)+(p-h)*(y-f))/b;return 0<E&&E<1&&0<S&&S<1},s.findCircleLineIntersections=function(o,l,u,d,h,f,p){var g=(u-o)*(u-o)+(d-l)*(d-l),m=2*((o-h)*(u-o)+(l-f)*(d-l)),_=(o-h)*(o-h)+(l-f)*(l-f)-p*p,v=m*m-4*g*_;if(v>=0){var y=(-m+Math.sqrt(m*m-4*g*_))/(2*g),b=(-m-Math.sqrt(m*m-4*g*_))/(2*g),E=null;return y>=0&&y<=1?[y]:b>=0&&b<=1?[b]:E}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,r.exports=s}),(function(r,n,i){function a(){}a.sign=function(s){return s>0?1:s<0?-1:0},a.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},a.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=a}),(function(r,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,n,i){var a=(function(){function h(f,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,m.key,m)}}return function(f,p,g){return p&&h(f.prototype,p),g&&h(f,g),f}})();function s(h,f){if(!(h instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(f){return{value:f,next:null,prev:null}},l=function(f,p,g,m){return f!==null?f.next=p:m.head=p,g!==null?g.prev=p:m.tail=p,p.prev=f,p.next=g,m.length++,p},u=function(f,p){var g=f.prev,m=f.next;return g!==null?g.next=m:p.head=m,m!==null?m.prev=g:p.tail=g,f.prev=f.next=null,p.length--,f},d=(function(){function h(f){var p=this;s(this,h),this.length=0,this.head=null,this.tail=null,f?.forEach(function(g){return p.push(g)})}return a(h,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(p,g){return l(g.prev,o(p),g,this)}},{key:"insertAfter",value:function(p,g){return l(g,o(p),g.next,this)}},{key:"insertNodeBefore",value:function(p,g){return l(g.prev,p,g,this)}},{key:"insertNodeAfter",value:function(p,g){return l(g,p,g.next,this)}},{key:"push",value:function(p){return l(this.tail,o(p),null,this)}},{key:"unshift",value:function(p){return l(null,o(p),this.head,this)}},{key:"remove",value:function(p){return u(p,this)}},{key:"pop",value:function(){return u(this.tail,this).value}},{key:"popNode",value:function(){return u(this.tail,this)}},{key:"shift",value:function(){return u(this.head,this).value}},{key:"shiftNode",value:function(){return u(this.head,this)}},{key:"get_object_at",value:function(p){if(p<=this.length()){for(var g=1,m=this.head;g<p;)m=m.next,g++;return m.value}}},{key:"set_object_at",value:function(p,g){if(p<=this.length()){for(var m=1,_=this.head;m<p;)_=_.next,m++;_.value=g}}}]),h})();r.exports=d}),(function(r,n,i){function a(s,o,l){this.x=null,this.y=null,s==null&&o==null&&l==null?(this.x=0,this.y=0):typeof s=="number"&&typeof o=="number"&&l==null?(this.x=s,this.y=o):s.constructor.name=="Point"&&o==null&&l==null&&(l=s,this.x=l.x,this.y=l.y)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.getLocation=function(){return new a(this.x,this.y)},a.prototype.setLocation=function(s,o,l){s.constructor.name=="Point"&&o==null&&l==null?(l=s,this.setLocation(l.x,l.y)):typeof s=="number"&&typeof o=="number"&&l==null&&(parseInt(s)==s&&parseInt(o)==o?this.move(s,o):(this.x=Math.floor(s+.5),this.y=Math.floor(o+.5)))},a.prototype.move=function(s,o){this.x=s,this.y=o},a.prototype.translate=function(s,o){this.x+=s,this.y+=o},a.prototype.equals=function(s){if(s.constructor.name=="Point"){var o=s;return this.x==o.x&&this.y==o.y}return this==s},a.prototype.toString=function(){return new a().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=a}),(function(r,n,i){function a(s,o,l,u){this.x=0,this.y=0,this.width=0,this.height=0,s!=null&&o!=null&&l!=null&&u!=null&&(this.x=s,this.y=o,this.width=l,this.height=u)}a.prototype.getX=function(){return this.x},a.prototype.setX=function(s){this.x=s},a.prototype.getY=function(){return this.y},a.prototype.setY=function(s){this.y=s},a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(s){this.width=s},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(s){this.height=s},a.prototype.getRight=function(){return this.x+this.width},a.prototype.getBottom=function(){return this.y+this.height},a.prototype.intersects=function(s){return!(this.getRight()<s.x||this.getBottom()<s.y||s.getRight()<this.x||s.getBottom()<this.y)},a.prototype.getCenterX=function(){return this.x+this.width/2},a.prototype.getMinX=function(){return this.getX()},a.prototype.getMaxX=function(){return this.getX()+this.width},a.prototype.getCenterY=function(){return this.y+this.height/2},a.prototype.getMinY=function(){return this.getY()},a.prototype.getMaxY=function(){return this.getY()+this.height},a.prototype.getWidthHalf=function(){return this.width/2},a.prototype.getHeightHalf=function(){return this.height/2},r.exports=a}),(function(r,n,i){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function s(){}s.lastID=0,s.createID=function(o){return s.isPrimitive(o)?o:(o.uniqueID!=null||(o.uniqueID=s.getString(),s.lastID++),o.uniqueID)},s.getString=function(o){return o==null&&(o=s.lastID),"Object#"+o},s.isPrimitive=function(o){var l=typeof o>"u"?"undefined":a(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,i){function a(m){if(Array.isArray(m)){for(var _=0,v=Array(m.length);_<m.length;_++)v[_]=m[_];return v}else return Array.from(m)}var s=i(0),o=i(7),l=i(3),u=i(1),d=i(6),h=i(5),f=i(17),p=i(29);function g(m){p.call(this),this.layoutQuality=s.QUALITY,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=s.DEFAULT_INCREMENTAL,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,m!=null&&(this.isRemoteUse=m)}g.RANDOM_SEED=1,g.prototype=Object.create(p.prototype),g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},g.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},g.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},g.prototype.newGraphManager=function(){var m=new o(this);return this.graphManager=m,m},g.prototype.newGraph=function(m){return new d(null,this.graphManager,m)},g.prototype.newNode=function(m){return new l(this.graphManager,m)},g.prototype.newEdge=function(m){return new u(null,null,m)},g.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},g.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var m;return this.checkLayoutSuccess()?m=!1:m=this.layout(),s.ANIMATE==="during"?!1:(m&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,m)},g.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},g.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var m=this.graphManager.getAllEdges(),_=0;_<m.length;_++)m[_];for(var v=this.graphManager.getRoot().getNodes(),_=0;_<v.length;_++)v[_];this.update(this.graphManager.getRoot())}},g.prototype.update=function(m){if(m==null)this.update2();else if(m instanceof l){var _=m;if(_.getChild()!=null)for(var v=_.getChild().getNodes(),y=0;y<v.length;y++)update(v[y]);if(_.vGraphObject!=null){var b=_.vGraphObject;b.update(_)}}else if(m instanceof u){var E=m;if(E.vGraphObject!=null){var S=E.vGraphObject;S.update(E)}}else if(m instanceof d){var T=m;if(T.vGraphObject!=null){var C=T.vGraphObject;C.update(T)}}},g.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=s.QUALITY,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=s.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},g.prototype.transform=function(m){if(m==null)this.transform(new h(0,0));else{var _=new f,v=this.graphManager.getRoot().updateLeftTop();if(v!=null){_.setWorldOrgX(m.x),_.setWorldOrgY(m.y),_.setDeviceOrgX(v.x),_.setDeviceOrgY(v.y);for(var y=this.getAllNodes(),b,E=0;E<y.length;E++)b=y[E],b.transform(_)}}},g.prototype.positionNodesRandomly=function(m){if(m==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var _,v,y=m.getNodes(),b=0;b<y.length;b++)_=y[b],v=_.getChild(),v==null||v.getNodes().length==0?_.scatter():(this.positionNodesRandomly(v),_.updateBounds())},g.prototype.getFlatForest=function(){for(var m=[],_=!0,v=this.graphManager.getRoot().getNodes(),y=!0,b=0;b<v.length;b++)v[b].getChild()!=null&&(y=!1);if(!y)return m;var E=new Set,S=[],T=new Map,C=[];for(C=C.concat(v);C.length>0&&_;){for(S.push(C[0]);S.length>0&&_;){var x=S[0];S.splice(0,1),E.add(x);for(var A=x.getEdges(),b=0;b<A.length;b++){var R=A[b].getOtherEnd(x);if(T.get(x)!=R)if(!E.has(R))S.push(R),T.set(R,x);else{_=!1;break}}}if(!_)m=[];else{var I=[].concat(a(E));m.push(I);for(var b=0;b<I.length;b++){var L=I[b],F=C.indexOf(L);F>-1&&C.splice(F,1)}E=new Set,T=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var _=[],v=m.source,y=this.graphManager.calcLowestCommonAncestor(m.source,m.target),b=0;b<m.bendpoints.length;b++){var E=this.newNode(null);E.setRect(new Point(0,0),new Dimension(1,1)),y.add(E);var S=this.newEdge(null);this.graphManager.add(S,v,E),_.add(E),v=E}var S=this.newEdge(null);return this.graphManager.add(S,v,m.target),this.edgeToDummyNodes.set(m,_),m.isInterGraph()?this.graphManager.remove(m):y.remove(m),_},g.prototype.createBendpointsFromDummyNodes=function(){var m=[];m=m.concat(this.graphManager.getAllEdges()),m=[].concat(a(this.edgeToDummyNodes.keys())).concat(m);for(var _=0;_<m.length;_++){var v=m[_];if(v.bendpoints.length>0){for(var y=this.edgeToDummyNodes.get(v),b=0;b<y.length;b++){var E=y[b],S=new h(E.getCenterX(),E.getCenterY()),T=v.bendpoints.get(b);T.x=S.x,T.y=S.y,E.getOwner().remove(E)}this.graphManager.add(v,v.source,v.target)}}},g.transform=function(m,_,v,y){if(v!=null&&y!=null){var b=_;if(m<=50){var E=_/v;b-=(_-E)/50*(50-m)}else{var S=_*y;b+=(S-_)/50*(m-50)}return b}else{var T,C;return m<=50?(T=9*_/500,C=_/10):(T=9*_/50,C=-8*_),T*m+C}},g.findCenterOfTree=function(m){var _=[];_=_.concat(m);var v=[],y=new Map,b=!1,E=null;(_.length==1||_.length==2)&&(b=!0,E=_[0]);for(var S=0;S<_.length;S++){var T=_[S],C=T.getNeighborsList().size;y.set(T,T.getNeighborsList().size),C==1&&v.push(T)}var x=[];for(x=x.concat(v);!b;){var A=[];A=A.concat(x),x=[];for(var S=0;S<_.length;S++){var T=_[S],R=_.indexOf(T);R>=0&&_.splice(R,1);var I=T.getNeighborsList();I.forEach(function(O){if(v.indexOf(O)<0){var D=y.get(O),M=D-1;M==1&&x.push(O),y.set(O,M)}})}v=v.concat(x),(_.length==1||_.length==2)&&(b=!0,E=_[0])}return E},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,n,i){var a=i(5);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,u=this.lworldExtX;return u!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/u),l},s.prototype.transformY=function(o){var l=0,u=this.lworldExtY;return u!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/u),l},s.prototype.inverseTransformX=function(o){var l=0,u=this.ldeviceExtX;return u!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/u),l},s.prototype.inverseTransformY=function(o){var l=0,u=this.ldeviceExtY;return u!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/u),l},s.prototype.inverseTransformPoint=function(o){var l=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,i){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);g<p.length;g++)m[g]=p[g];return m}else return Array.from(p)}var s=i(15),o=i(4),l=i(0),u=i(8),d=i(9);function h(){s.call(this),this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=o.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=o.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=o.MAX_ITERATIONS}h.prototype=Object.create(s.prototype);for(var f in s)h[f]=s[f];h.prototype.initParameters=function(){s.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var p,g,m,_,v,y,b,E=this.getGraphManager().getAllEdges(),S=0;S<E.length;S++)p=E[S],g=p.idealLength,p.isInterGraph&&(_=p.getSource(),v=p.getTarget(),y=p.getSourceInLca().getEstimatedSize(),b=p.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(p.idealLength+=y+b-2*l.SIMPLE_NODE_SIZE),m=p.getLca().getInclusionTreeDepth(),p.idealLength+=g*o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(_.getInclusionTreeDepth()+v.getInclusionTreeDepth()-2*m))},h.prototype.initSpringEmbedder=function(){var p=this.getAllNodes().length;this.incremental?(p>o.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(p>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(p-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var p=this.getAllEdges(),g,m=0;m<p.length;m++)g=p[m],this.calcSpringForce(g,g.idealLength)},h.prototype.calcRepulsionForces=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,_,v,y,b=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),E=new Set,m=0;m<b.length;m++)v=b[m],this.calculateRepulsionForceOfANode(v,E,p,g),E.add(v);else for(m=0;m<b.length;m++)for(v=b[m],_=m+1;_<b.length;_++)y=b[_],v.getOwner()==y.getOwner()&&this.calcRepulsionForce(v,y)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;m<g.length;m++)p=g[m],this.calcGravitationalForce(p)},h.prototype.moveNodes=function(){for(var p=this.getAllNodes(),g,m=0;m<p.length;m++)g=p[m],g.move()},h.prototype.calcSpringForce=function(p,g){var m=p.getSource(),_=p.getTarget(),v,y,b,E;if(this.uniformLeafNodeSizes&&m.getChild()==null&&_.getChild()==null)p.updateLengthSimple();else if(p.updateLength(),p.isOverlapingSourceAndTarget)return;v=p.getLength(),v!=0&&(y=p.edgeElasticity*(v-g),b=y*(p.lengthX/v),E=y*(p.lengthY/v),m.springForceX+=b,m.springForceY+=E,_.springForceX-=b,_.springForceY-=E)},h.prototype.calcRepulsionForce=function(p,g){var m=p.getRect(),_=g.getRect(),v=new Array(2),y=new Array(4),b,E,S,T,C,x,A;if(m.intersects(_)){u.calcSeparationAmount(m,_,v,o.DEFAULT_EDGE_LENGTH/2),x=2*v[0],A=2*v[1];var R=p.noOfChildren*g.noOfChildren/(p.noOfChildren+g.noOfChildren);p.repulsionForceX-=R*x,p.repulsionForceY-=R*A,g.repulsionForceX+=R*x,g.repulsionForceY+=R*A}else this.uniformLeafNodeSizes&&p.getChild()==null&&g.getChild()==null?(b=_.getCenterX()-m.getCenterX(),E=_.getCenterY()-m.getCenterY()):(u.getIntersection(m,_,y),b=y[2]-y[0],E=y[3]-y[1]),Math.abs(b)<o.MIN_REPULSION_DIST&&(b=d.sign(b)*o.MIN_REPULSION_DIST),Math.abs(E)<o.MIN_REPULSION_DIST&&(E=d.sign(E)*o.MIN_REPULSION_DIST),S=b*b+E*E,T=Math.sqrt(S),C=(p.nodeRepulsion/2+g.nodeRepulsion/2)*p.noOfChildren*g.noOfChildren/S,x=C*b/T,A=C*E/T,p.repulsionForceX-=x,p.repulsionForceY-=A,g.repulsionForceX+=x,g.repulsionForceY+=A},h.prototype.calcGravitationalForce=function(p){var g,m,_,v,y,b,E,S;g=p.getOwner(),m=(g.getRight()+g.getLeft())/2,_=(g.getTop()+g.getBottom())/2,v=p.getCenterX()-m,y=p.getCenterY()-_,b=Math.abs(v)+p.getWidth()/2,E=Math.abs(y)+p.getHeight()/2,p.getOwner()==this.graphManager.getRoot()?(S=g.getEstimatedSize()*this.gravityRangeFactor,(b>S||E>S)&&(p.gravitationForceX=-this.gravityConstant*v,p.gravitationForceY=-this.gravityConstant*y)):(S=g.getEstimatedSize()*this.compoundGravityRangeFactor,(b>S||E>S)&&(p.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,p.gravitationForceY=-this.gravityConstant*y*this.compoundGravityConstant))},h.prototype.isConverged=function(){var p,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),p=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,p||g},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var p,g=this.graphManager.getAllNodes(),m=0;m<g.length;m++)p=g[m],p.noOfChildren=p.getNoOfChildren()},h.prototype.calcGrid=function(p){var g=0,m=0;g=parseInt(Math.ceil((p.getRight()-p.getLeft())/this.repulsionRange)),m=parseInt(Math.ceil((p.getBottom()-p.getTop())/this.repulsionRange));for(var _=new Array(g),v=0;v<g;v++)_[v]=new Array(m);for(var v=0;v<g;v++)for(var y=0;y<m;y++)_[v][y]=new Array;return _},h.prototype.addNodeToGrid=function(p,g,m){var _=0,v=0,y=0,b=0;_=parseInt(Math.floor((p.getRect().x-g)/this.repulsionRange)),v=parseInt(Math.floor((p.getRect().width+p.getRect().x-g)/this.repulsionRange)),y=parseInt(Math.floor((p.getRect().y-m)/this.repulsionRange)),b=parseInt(Math.floor((p.getRect().height+p.getRect().y-m)/this.repulsionRange));for(var E=_;E<=v;E++)for(var S=y;S<=b;S++)this.grid[E][S].push(p),p.setGridCoordinates(_,v,y,b)},h.prototype.updateGrid=function(){var p,g,m=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),p=0;p<m.length;p++)g=m[p],this.addNodeToGrid(g,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(p,g,m,_){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&m||_){var v=new Set;p.surrounding=new Array;for(var y,b=this.grid,E=p.startX-1;E<p.finishX+2;E++)for(var S=p.startY-1;S<p.finishY+2;S++)if(!(E<0||S<0||E>=b.length||S>=b[0].length)){for(var T=0;T<b[E][S].length;T++)if(y=b[E][S][T],!(p.getOwner()!=y.getOwner()||p==y)&&!g.has(y)&&!v.has(y)){var C=Math.abs(p.getCenterX()-y.getCenterX())-(p.getWidth()/2+y.getWidth()/2),x=Math.abs(p.getCenterY()-y.getCenterY())-(p.getHeight()/2+y.getHeight()/2);C<=this.repulsionRange&&x<=this.repulsionRange&&v.add(y)}}p.surrounding=[].concat(a(v))}for(E=0;E<p.surrounding.length;E++)this.calcRepulsionForce(p,p.surrounding[E])},h.prototype.calcRepulsionRange=function(){return 0},r.exports=h}),(function(r,n,i){var a=i(1),s=i(4);function o(u,d,h){a.call(this,u,d,h),this.idealLength=s.DEFAULT_EDGE_LENGTH,this.edgeElasticity=s.DEFAULT_SPRING_STRENGTH}o.prototype=Object.create(a.prototype);for(var l in a)o[l]=a[l];r.exports=o}),(function(r,n,i){var a=i(3),s=i(4);function o(u,d,h,f){a.call(this,u,d,h,f),this.nodeRepulsion=s.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}o.prototype=Object.create(a.prototype);for(var l in a)o[l]=a[l];o.prototype.setGridCoordinates=function(u,d,h,f){this.startX=u,this.finishX=d,this.startY=h,this.finishY=f},r.exports=o}),(function(r,n,i){function a(s,o){this.width=0,this.height=0,s!==null&&o!==null&&(this.height=o,this.width=s)}a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(s){this.width=s},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(s){this.height=s},r.exports=a}),(function(r,n,i){var a=i(14);function s(){this.map={},this.keys=[]}s.prototype.put=function(o,l){var u=a.createID(o);this.contains(u)||(this.map[u]=l,this.keys.push(o))},s.prototype.contains=function(o){return a.createID(o),this.map[o]!=null},s.prototype.get=function(o){var l=a.createID(o);return this.map[l]},s.prototype.keySet=function(){return this.keys},r.exports=s}),(function(r,n,i){var a=i(14);function s(){this.set={}}s.prototype.add=function(o){var l=a.createID(o);this.contains(l)||(this.set[l]=o)},s.prototype.remove=function(o){delete this.set[a.createID(o)]},s.prototype.clear=function(){this.set={}},s.prototype.contains=function(o){return this.set[a.createID(o)]==o},s.prototype.isEmpty=function(){return this.size()===0},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAllTo=function(o){for(var l=Object.keys(this.set),u=l.length,d=0;d<u;d++)o.push(this.set[l[d]])},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAll=function(o){for(var l=o.length,u=0;u<l;u++){var d=o[u];this.add(d)}},r.exports=s}),(function(r,n,i){function a(){}a.multMat=function(s,o){for(var l=[],u=0;u<s.length;u++){l[u]=[];for(var d=0;d<o[0].length;d++){l[u][d]=0;for(var h=0;h<s[0].length;h++)l[u][d]+=s[u][h]*o[h][d]}}return l},a.transpose=function(s){for(var o=[],l=0;l<s[0].length;l++){o[l]=[];for(var u=0;u<s.length;u++)o[l][u]=s[u][l]}return o},a.multCons=function(s,o){for(var l=[],u=0;u<s.length;u++)l[u]=s[u]*o;return l},a.minusOp=function(s,o){for(var l=[],u=0;u<s.length;u++)l[u]=s[u]-o[u];return l},a.dotProduct=function(s,o){for(var l=0,u=0;u<s.length;u++)l+=s[u]*o[u];return l},a.mag=function(s){return Math.sqrt(this.dotProduct(s,s))},a.normalize=function(s){for(var o=[],l=this.mag(s),u=0;u<s.length;u++)o[u]=s[u]/l;return o},a.multGamma=function(s){for(var o=[],l=0,u=0;u<s.length;u++)l+=s[u];l*=-1/s.length;for(var d=0;d<s.length;d++)o[d]=l+s[d];return o},a.multL=function(s,o,l){for(var u=[],d=[],h=[],f=0;f<o[0].length;f++){for(var p=0,g=0;g<o.length;g++)p+=-.5*o[g][f]*s[g];d[f]=p}for(var m=0;m<l.length;m++){for(var _=0,v=0;v<l.length;v++)_+=l[m][v]*d[v];h[m]=_}for(var y=0;y<o.length;y++){for(var b=0,E=0;E<o[0].length;E++)b+=o[y][E]*h[E];u[y]=b}return u},r.exports=a}),(function(r,n,i){var a=(function(){function u(d,h){for(var f=0;f<h.length;f++){var p=h[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,h,f){return h&&u(d.prototype,h),f&&u(d,f),d}})();function s(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}var o=i(11),l=(function(){function u(d,h){s(this,u),(h!==null||h!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var f=void 0;d instanceof o?f=d.size():f=d.length,this._quicksort(d,0,f-1)}return a(u,[{key:"_quicksort",value:function(h,f,p){if(f<p){var g=this._partition(h,f,p);this._quicksort(h,f,g),this._quicksort(h,g+1,p)}}},{key:"_partition",value:function(h,f,p){for(var g=this._get(h,f),m=f,_=p;;){for(;this.compareFunction(g,this._get(h,_));)_--;for(;this.compareFunction(this._get(h,m),g);)m++;if(m<_)this._swap(h,m,_),m++,_--;else return _}}},{key:"_get",value:function(h,f){return h instanceof o?h.get_object_at(f):h[f]}},{key:"_set",value:function(h,f,p){h instanceof o?h.set_object_at(f,p):h[f]=p}},{key:"_swap",value:function(h,f,p){var g=this._get(h,f);this._set(h,f,this._get(h,p)),this._set(h,p,g)}},{key:"_defaultCompareFunction",value:function(h,f){return f>h}}]),u})();r.exports=l}),(function(r,n,i){function a(){}a.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var o=Math.min(this.m,this.n);this.s=(function(mt){for(var qt=[];mt-- >0;)qt.push(0);return qt})(Math.min(this.m+1,this.n)),this.U=(function(mt){var qt=function De(pr){if(pr.length==0)return 0;for(var or=[],ir=0;ir<pr[0];ir++)or.push(De(pr.slice(1)));return or};return qt(mt)})([this.m,o]),this.V=(function(mt){var qt=function De(pr){if(pr.length==0)return 0;for(var or=[],ir=0;ir<pr[0];ir++)or.push(De(pr.slice(1)));return or};return qt(mt)})([this.n,this.n]);for(var l=(function(mt){for(var qt=[];mt-- >0;)qt.push(0);return qt})(this.n),u=(function(mt){for(var qt=[];mt-- >0;)qt.push(0);return qt})(this.m),d=!0,h=Math.min(this.m-1,this.n),f=Math.max(0,Math.min(this.n-2,this.m)),p=0;p<Math.max(h,f);p++){if(p<h){this.s[p]=0;for(var g=p;g<this.m;g++)this.s[p]=a.hypot(this.s[p],s[g][p]);if(this.s[p]!==0){s[p][p]<0&&(this.s[p]=-this.s[p]);for(var m=p;m<this.m;m++)s[m][p]/=this.s[p];s[p][p]+=1}this.s[p]=-this.s[p]}for(var _=p+1;_<this.n;_++){if((function(mt,qt){return mt&&qt})(p<h,this.s[p]!==0)){for(var v=0,y=p;y<this.m;y++)v+=s[y][p]*s[y][_];v=-v/s[p][p];for(var b=p;b<this.m;b++)s[b][_]+=v*s[b][p]}l[_]=s[p][_]}if((function(mt,qt){return qt})(d,p<h))for(var E=p;E<this.m;E++)this.U[E][p]=s[E][p];if(p<f){l[p]=0;for(var S=p+1;S<this.n;S++)l[p]=a.hypot(l[p],l[S]);if(l[p]!==0){l[p+1]<0&&(l[p]=-l[p]);for(var T=p+1;T<this.n;T++)l[T]/=l[p];l[p+1]+=1}if(l[p]=-l[p],(function(mt,qt){return mt&&qt})(p+1<this.m,l[p]!==0)){for(var C=p+1;C<this.m;C++)u[C]=0;for(var x=p+1;x<this.n;x++)for(var A=p+1;A<this.m;A++)u[A]+=l[x]*s[A][x];for(var R=p+1;R<this.n;R++)for(var I=-l[R]/l[p+1],L=p+1;L<this.m;L++)s[L][R]+=I*u[L]}for(var F=p+1;F<this.n;F++)this.V[F][p]=l[F]}}var O=Math.min(this.n,this.m+1);h<this.n&&(this.s[h]=s[h][h]),this.m<O&&(this.s[O-1]=0),f+1<O&&(l[f]=s[f][O-1]),l[O-1]=0;{for(var D=h;D<o;D++){for(var M=0;M<this.m;M++)this.U[M][D]=0;this.U[D][D]=1}for(var P=h-1;P>=0;P--)if(this.s[P]!==0){for(var N=P+1;N<o;N++){for(var $=0,U=P;U<this.m;U++)$+=this.U[U][P]*this.U[U][N];$=-$/this.U[P][P];for(var B=P;B<this.m;B++)this.U[B][N]+=$*this.U[B][P]}for(var V=P;V<this.m;V++)this.U[V][P]=-this.U[V][P];this.U[P][P]=1+this.U[P][P];for(var z=0;z<P-1;z++)this.U[z][P]=0}else{for(var G=0;G<this.m;G++)this.U[G][P]=0;this.U[P][P]=1}}for(var Y=this.n-1;Y>=0;Y--){if((function(mt,qt){return mt&&qt})(Y<f,l[Y]!==0))for(var W=Y+1;W<o;W++){for(var Q=0,ie=Y+1;ie<this.n;ie++)Q+=this.V[ie][Y]*this.V[ie][W];Q=-Q/this.V[Y+1][Y];for(var Z=Y+1;Z<this.n;Z++)this.V[Z][W]+=Q*this.V[Z][Y]}for(var re=0;re<this.n;re++)this.V[re][Y]=0;this.V[Y][Y]=1}for(var K=O-1,j=Math.pow(2,-52),se=Math.pow(2,-966);O>0;){var le=void 0,_e=void 0;for(le=O-2;le>=-1&&le!==-1;le--)if(Math.abs(l[le])<=se+j*(Math.abs(this.s[le])+Math.abs(this.s[le+1]))){l[le]=0;break}if(le===O-2)_e=4;else{var ye=void 0;for(ye=O-1;ye>=le&&ye!==le;ye--){var Ue=(ye!==O?Math.abs(l[ye]):0)+(ye!==le+1?Math.abs(l[ye-1]):0);if(Math.abs(this.s[ye])<=se+j*Ue){this.s[ye]=0;break}}ye===le?_e=3:ye===O-1?_e=1:(_e=2,le=ye)}switch(le++,_e){case 1:{var Se=l[O-2];l[O-2]=0;for(var be=O-2;be>=le;be--){var ke=a.hypot(this.s[be],Se),Ae=this.s[be]/ke,tt=Se/ke;this.s[be]=ke,be!==le&&(Se=-tt*l[be-1],l[be-1]=Ae*l[be-1]);for(var Oe=0;Oe<this.n;Oe++)ke=Ae*this.V[Oe][be]+tt*this.V[Oe][O-1],this.V[Oe][O-1]=-tt*this.V[Oe][be]+Ae*this.V[Oe][O-1],this.V[Oe][be]=ke}}break;case 2:{var je=l[le-1];l[le-1]=0;for(var ct=le;ct<O;ct++){var Fe=a.hypot(this.s[ct],je),Xe=this.s[ct]/Fe,et=je/Fe;this.s[ct]=Fe,je=-et*l[ct],l[ct]=Xe*l[ct];for(var Ie=0;Ie<this.m;Ie++)Fe=Xe*this.U[Ie][ct]+et*this.U[Ie][le-1],this.U[Ie][le-1]=-et*this.U[Ie][ct]+Xe*this.U[Ie][le-1],this.U[Ie][ct]=Fe}}break;case 3:{var we=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[O-1]),Math.abs(this.s[O-2])),Math.abs(l[O-2])),Math.abs(this.s[le])),Math.abs(l[le])),ce=this.s[O-1]/we,Te=this.s[O-2]/we,fe=l[O-2]/we,Be=this.s[le]/we,me=l[le]/we,Ye=((Te+ce)*(Te-ce)+fe*fe)/2,qe=ce*fe*(ce*fe),lt=0;(function(mt,qt){return mt||qt})(Ye!==0,qe!==0)&&(lt=Math.sqrt(Ye*Ye+qe),Ye<0&&(lt=-lt),lt=qe/(Ye+lt));for(var it=(Be+ce)*(Be-ce)+lt,He=Be*me,Je=le;Je<O-1;Je++){var ht=a.hypot(it,He),rt=it/ht,$e=He/ht;Je!==le&&(l[Je-1]=ht),it=rt*this.s[Je]+$e*l[Je],l[Je]=rt*l[Je]-$e*this.s[Je],He=$e*this.s[Je+1],this.s[Je+1]=rt*this.s[Je+1];for(var xe=0;xe<this.n;xe++)ht=rt*this.V[xe][Je]+$e*this.V[xe][Je+1],this.V[xe][Je+1]=-$e*this.V[xe][Je]+rt*this.V[xe][Je+1],this.V[xe][Je]=ht;if(ht=a.hypot(it,He),rt=it/ht,$e=He/ht,this.s[Je]=ht,it=rt*l[Je]+$e*this.s[Je+1],this.s[Je+1]=-$e*l[Je]+rt*this.s[Je+1],He=$e*l[Je+1],l[Je+1]=rt*l[Je+1],Je<this.m-1)for(var pt=0;pt<this.m;pt++)ht=rt*this.U[pt][Je]+$e*this.U[pt][Je+1],this.U[pt][Je+1]=-$e*this.U[pt][Je]+rt*this.U[pt][Je+1],this.U[pt][Je]=ht}l[O-2]=it}break;case 4:{if(this.s[le]<=0){this.s[le]=this.s[le]<0?-this.s[le]:0;for(var Ve=0;Ve<=K;Ve++)this.V[Ve][le]=-this.V[Ve][le]}for(;le<K&&!(this.s[le]>=this.s[le+1]);){var Ut=this.s[le];if(this.s[le]=this.s[le+1],this.s[le+1]=Ut,le<this.n-1)for(var kt=0;kt<this.n;kt++)Ut=this.V[kt][le+1],this.V[kt][le+1]=this.V[kt][le],this.V[kt][le]=Ut;if(le<this.m-1)for(var gt=0;gt<this.m;gt++)Ut=this.U[gt][le+1],this.U[gt][le+1]=this.U[gt][le],this.U[gt][le]=Ut;le++}O--}break}}var Ct={U:this.U,V:this.V,S:this.s};return Ct},a.hypot=function(s,o){var l=void 0;return Math.abs(s)>Math.abs(o)?(l=o/s,l=Math.abs(s)*Math.sqrt(1+l*l)):o!=0?(l=s/o,l=Math.abs(o)*Math.sqrt(1+l*l)):l=0,l},r.exports=a}),(function(r,n,i){var a=(function(){function l(u,d){for(var h=0;h<d.length;h++){var f=d[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,d,h){return d&&l(u.prototype,d),h&&l(u,h),u}})();function s(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var o=(function(){function l(u,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=u,this.sequence2=d,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=p,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var g=0;g<this.iMax;g++){this.grid[g]=new Array(this.jMax);for(var m=0;m<this.jMax;m++)this.grid[g][m]=0}this.tracebackGrid=new Array(this.iMax);for(var _=0;_<this.iMax;_++){this.tracebackGrid[_]=new Array(this.jMax);for(var v=0;v<this.jMax;v++)this.tracebackGrid[_][v]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return a(l,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var d=1;d<this.jMax;d++)this.grid[0][d]=this.grid[0][d-1]+this.gap_penalty,this.tracebackGrid[0][d]=[!1,!1,!0];for(var h=1;h<this.iMax;h++)this.grid[h][0]=this.grid[h-1][0]+this.gap_penalty,this.tracebackGrid[h][0]=[!1,!0,!1];for(var f=1;f<this.iMax;f++)for(var p=1;p<this.jMax;p++){var g=void 0;this.sequence1[f-1]===this.sequence2[p-1]?g=this.grid[f-1][p-1]+this.match_score:g=this.grid[f-1][p-1]+this.mismatch_penalty;var m=this.grid[f-1][p]+this.gap_penalty,_=this.grid[f][p-1]+this.gap_penalty,v=[g,m,_],y=this.arrayAllMaxIndexes(v);this.grid[f][p]=v[y[0]],this.tracebackGrid[f][p]=[y.includes(0),y.includes(1),y.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var d=[];for(d.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});d[0];){var h=d[0],f=this.tracebackGrid[h.pos[0]][h.pos[1]];f[0]&&d.push({pos:[h.pos[0]-1,h.pos[1]-1],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),f[1]&&d.push({pos:[h.pos[0]-1,h.pos[1]],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:"-"+h.seq2}),f[2]&&d.push({pos:[h.pos[0],h.pos[1]-1],seq1:"-"+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),h.pos[0]===0&&h.pos[1]===0&&this.alignments.push({sequence1:h.seq1,sequence2:h.seq2}),d.shift()}return this.alignments}},{key:"getAllIndexes",value:function(d,h){for(var f=[],p=-1;(p=d.indexOf(h,p+1))!==-1;)f.push(p);return f}},{key:"arrayAllMaxIndexes",value:function(d){return this.getAllIndexes(d,Math.max.apply(null,d))}}]),l})();r.exports=o}),(function(r,n,i){var a=function(){};a.FDLayout=i(18),a.FDLayoutConstants=i(4),a.FDLayoutEdge=i(19),a.FDLayoutNode=i(20),a.DimensionD=i(21),a.HashMap=i(22),a.HashSet=i(23),a.IGeometry=i(8),a.IMath=i(9),a.Integer=i(10),a.Point=i(12),a.PointD=i(5),a.RandomSeed=i(16),a.RectangleD=i(13),a.Transform=i(17),a.UniqueIDGeneretor=i(14),a.Quicksort=i(25),a.LinkedList=i(11),a.LGraphObject=i(2),a.LGraph=i(6),a.LEdge=i(1),a.LGraphManager=i(7),a.LNode=i(3),a.Layout=i(15),a.LayoutConstants=i(0),a.NeedlemanWunsch=i(27),a.Matrix=i(24),a.SVD=i(26),r.exports=a}),(function(r,n,i){function a(){this.listeners=[]}var s=a.prototype;s.addListener=function(o,l){this.listeners.push({event:o,callback:l})},s.removeListener=function(o,l){for(var u=this.listeners.length;u>=0;u--){var d=this.listeners[u];d.event===o&&d.callback===l&&this.listeners.splice(u,1)}},s.emit=function(o,l){for(var u=0;u<this.listeners.length;u++){var d=this.listeners[u];o===d.event&&d.callback(l)}},r.exports=a})])})})(Q6)),Q6.exports}var MXr=X6.exports,qNe;function LXr(){return qNe||(qNe=1,(function(t,e){(function(n,i){t.exports=i(DXr())})(MXr,function(r){return(()=>{var n={45:((o,l,u)=>{var d={};d.layoutBase=u(551),d.CoSEConstants=u(806),d.CoSEEdge=u(767),d.CoSEGraph=u(880),d.CoSEGraphManager=u(578),d.CoSELayout=u(765),d.CoSENode=u(991),d.ConstraintHandler=u(902),o.exports=d}),806:((o,l,u)=>{var d=u(551).FDLayoutConstants;function h(){}for(var f in d)h[f]=d[f];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,o.exports=h}),767:((o,l,u)=>{var d=u(551).FDLayoutEdge;function h(p,g,m){d.call(this,p,g,m)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),880:((o,l,u)=>{var d=u(551).LGraph;function h(p,g,m){d.call(this,p,g,m)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),578:((o,l,u)=>{var d=u(551).LGraphManager;function h(p){d.call(this,p)}h.prototype=Object.create(d.prototype);for(var f in d)h[f]=d[f];o.exports=h}),765:((o,l,u)=>{var d=u(551).FDLayout,h=u(578),f=u(880),p=u(991),g=u(767),m=u(806),_=u(902),v=u(551).FDLayoutConstants,y=u(551).LayoutConstants,b=u(551).Point,E=u(551).PointD,S=u(551).DimensionD,T=u(551).Layout,C=u(551).Integer,x=u(551).IGeometry,A=u(551).LGraph,R=u(551).Transform,I=u(551).LinkedList;function L(){d.call(this),this.toBeTiled={},this.constraints={}}L.prototype=Object.create(d.prototype);for(var F in d)L[F]=d[F];L.prototype.newGraphManager=function(){var O=new h(this);return this.graphManager=O,O},L.prototype.newGraph=function(O){return new f(null,this.graphManager,O)},L.prototype.newNode=function(O){return new p(this.graphManager,O)},L.prototype.newEdge=function(O){return new g(null,null,O)},L.prototype.initParameters=function(){d.prototype.initParameters.call(this,arguments),this.isSubLayout||(m.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=m.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=m.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=v.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=v.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=v.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},L.prototype.initSpringEmbedder=function(){d.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/v.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},L.prototype.layout=function(){var O=y.DEFAULT_CREATE_BENDS_AS_NEEDED;return O&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},L.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(m.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var D=new Set(this.getAllNodes()),M=this.nodesWithGravity.filter(function($){return D.has($)});this.graphManager.setAllNodesToApplyGravitation(M)}}else{var O=this.getFlatForest();if(O.length>0)this.positionNodesRadially(O);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var D=new Set(this.getAllNodes()),M=this.nodesWithGravity.filter(function(P){return D.has(P)});this.graphManager.setAllNodesToApplyGravitation(M),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(_.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),m.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},L.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%v.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var O=new Set(this.getAllNodes()),D=this.nodesWithGravity.filter(function(N){return O.has(N)});this.graphManager.setAllNodesToApplyGravitation(D),this.graphManager.updateBounds(),this.updateGrid(),m.PURE_INCREMENTAL?this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),m.PURE_INCREMENTAL?this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var M=!this.isTreeGrowing&&!this.isGrowthFinished,P=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(M,P),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},L.prototype.getPositionsData=function(){for(var O=this.graphManager.getAllNodes(),D={},M=0;M<O.length;M++){var P=O[M].rect,N=O[M].id;D[N]={id:N,x:P.getCenterX(),y:P.getCenterY(),w:P.width,h:P.height}}return D},L.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var O=!1;if(v.ANIMATE==="during")this.emit("layoutstarted");else{for(;!O;)O=this.tick();this.graphManager.updateBounds()}},L.prototype.moveNodes=function(){for(var O=this.getAllNodes(),D,M=0;M<O.length;M++)D=O[M],D.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var M=0;M<O.length;M++)D=O[M],D.move()},L.prototype.initConstraintVariables=function(){var O=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var D=this.graphManager.getAllNodes(),M=0;M<D.length;M++){var P=D[M];this.idToNodeMap.set(P.id,P)}var N=function Z(re){for(var K=re.getChild().getNodes(),j,se=0,le=0;le<K.length;le++)j=K[le],j.getChild()==null?O.fixedNodeSet.has(j.id)&&(se+=100):se+=Z(j);return se};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(K){O.fixedNodeSet.add(K.nodeId)});for(var D=this.graphManager.getAllNodes(),P,M=0;M<D.length;M++)if(P=D[M],P.getChild()!=null){var $=N(P);$>0&&(P.fixedNodeWeight=$)}}if(this.constraints.relativePlacementConstraint){var U=new Map,B=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(Z){O.fixedNodesOnHorizontal.add(Z),O.fixedNodesOnVertical.add(Z)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var V=this.constraints.alignmentConstraint.vertical,M=0;M<V.length;M++)this.dummyToNodeForVerticalAlignment.set("dummy"+M,[]),V[M].forEach(function(re){U.set(re,"dummy"+M),O.dummyToNodeForVerticalAlignment.get("dummy"+M).push(re),O.fixedNodeSet.has(re)&&O.fixedNodesOnHorizontal.add("dummy"+M)});if(this.constraints.alignmentConstraint.horizontal)for(var z=this.constraints.alignmentConstraint.horizontal,M=0;M<z.length;M++)this.dummyToNodeForHorizontalAlignment.set("dummy"+M,[]),z[M].forEach(function(re){B.set(re,"dummy"+M),O.dummyToNodeForHorizontalAlignment.get("dummy"+M).push(re),O.fixedNodeSet.has(re)&&O.fixedNodesOnVertical.add("dummy"+M)})}if(m.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(Z){var re,K,j;for(j=Z.length-1;j>=2*Z.length/3;j--)re=Math.floor(Math.random()*(j+1)),K=Z[j],Z[j]=Z[re],Z[re]=K;return Z},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(Z){if(Z.left){var re=U.has(Z.left)?U.get(Z.left):Z.left,K=U.has(Z.right)?U.get(Z.right):Z.right;O.nodesInRelativeHorizontal.includes(re)||(O.nodesInRelativeHorizontal.push(re),O.nodeToRelativeConstraintMapHorizontal.set(re,[]),O.dummyToNodeForVerticalAlignment.has(re)?O.nodeToTempPositionMapHorizontal.set(re,O.idToNodeMap.get(O.dummyToNodeForVerticalAlignment.get(re)[0]).getCenterX()):O.nodeToTempPositionMapHorizontal.set(re,O.idToNodeMap.get(re).getCenterX())),O.nodesInRelativeHorizontal.includes(K)||(O.nodesInRelativeHorizontal.push(K),O.nodeToRelativeConstraintMapHorizontal.set(K,[]),O.dummyToNodeForVerticalAlignment.has(K)?O.nodeToTempPositionMapHorizontal.set(K,O.idToNodeMap.get(O.dummyToNodeForVerticalAlignment.get(K)[0]).getCenterX()):O.nodeToTempPositionMapHorizontal.set(K,O.idToNodeMap.get(K).getCenterX())),O.nodeToRelativeConstraintMapHorizontal.get(re).push({right:K,gap:Z.gap}),O.nodeToRelativeConstraintMapHorizontal.get(K).push({left:re,gap:Z.gap})}else{var j=B.has(Z.top)?B.get(Z.top):Z.top,se=B.has(Z.bottom)?B.get(Z.bottom):Z.bottom;O.nodesInRelativeVertical.includes(j)||(O.nodesInRelativeVertical.push(j),O.nodeToRelativeConstraintMapVertical.set(j,[]),O.dummyToNodeForHorizontalAlignment.has(j)?O.nodeToTempPositionMapVertical.set(j,O.idToNodeMap.get(O.dummyToNodeForHorizontalAlignment.get(j)[0]).getCenterY()):O.nodeToTempPositionMapVertical.set(j,O.idToNodeMap.get(j).getCenterY())),O.nodesInRelativeVertical.includes(se)||(O.nodesInRelativeVertical.push(se),O.nodeToRelativeConstraintMapVertical.set(se,[]),O.dummyToNodeForHorizontalAlignment.has(se)?O.nodeToTempPositionMapVertical.set(se,O.idToNodeMap.get(O.dummyToNodeForHorizontalAlignment.get(se)[0]).getCenterY()):O.nodeToTempPositionMapVertical.set(se,O.idToNodeMap.get(se).getCenterY())),O.nodeToRelativeConstraintMapVertical.get(j).push({bottom:se,gap:Z.gap}),O.nodeToRelativeConstraintMapVertical.get(se).push({top:j,gap:Z.gap})}});else{var G=new Map,Y=new Map;this.constraints.relativePlacementConstraint.forEach(function(Z){if(Z.left){var re=U.has(Z.left)?U.get(Z.left):Z.left,K=U.has(Z.right)?U.get(Z.right):Z.right;G.has(re)?G.get(re).push(K):G.set(re,[K]),G.has(K)?G.get(K).push(re):G.set(K,[re])}else{var j=B.has(Z.top)?B.get(Z.top):Z.top,se=B.has(Z.bottom)?B.get(Z.bottom):Z.bottom;Y.has(j)?Y.get(j).push(se):Y.set(j,[se]),Y.has(se)?Y.get(se).push(j):Y.set(se,[j])}});var W=function(re,K){var j=[],se=[],le=new I,_e=new Set,ye=0;return re.forEach(function(Ue,Se){if(!_e.has(Se)){j[ye]=[],se[ye]=!1;var be=Se;for(le.push(be),_e.add(be),j[ye].push(be);le.length!=0;){be=le.shift(),K.has(be)&&(se[ye]=!0);var ke=re.get(be);ke.forEach(function(Ae){_e.has(Ae)||(le.push(Ae),_e.add(Ae),j[ye].push(Ae))})}ye++}}),{components:j,isFixed:se}},Q=W(G,O.fixedNodesOnHorizontal);this.componentsOnHorizontal=Q.components,this.fixedComponentsOnHorizontal=Q.isFixed;var ie=W(Y,O.fixedNodesOnVertical);this.componentsOnVertical=ie.components,this.fixedComponentsOnVertical=ie.isFixed}}},L.prototype.updateDisplacements=function(){var O=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(ie){var Z=O.idToNodeMap.get(ie.nodeId);Z.displacementX=0,Z.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var D=this.constraints.alignmentConstraint.vertical,M=0;M<D.length;M++){for(var P=0,N=0;N<D[M].length;N++){if(this.fixedNodeSet.has(D[M][N])){P=0;break}P+=this.idToNodeMap.get(D[M][N]).displacementX}for(var $=P/D[M].length,N=0;N<D[M].length;N++)this.idToNodeMap.get(D[M][N]).displacementX=$}if(this.constraints.alignmentConstraint.horizontal)for(var U=this.constraints.alignmentConstraint.horizontal,M=0;M<U.length;M++){for(var B=0,N=0;N<U[M].length;N++){if(this.fixedNodeSet.has(U[M][N])){B=0;break}B+=this.idToNodeMap.get(U[M][N]).displacementY}for(var V=B/U[M].length,N=0;N<U[M].length;N++)this.idToNodeMap.get(U[M][N]).displacementY=V}}if(this.constraints.relativePlacementConstraint)if(m.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(ie){if(!O.fixedNodesOnHorizontal.has(ie)){var Z=0;O.dummyToNodeForVerticalAlignment.has(ie)?Z=O.idToNodeMap.get(O.dummyToNodeForVerticalAlignment.get(ie)[0]).displacementX:Z=O.idToNodeMap.get(ie).displacementX,O.nodeToRelativeConstraintMapHorizontal.get(ie).forEach(function(re){if(re.right){var K=O.nodeToTempPositionMapHorizontal.get(re.right)-O.nodeToTempPositionMapHorizontal.get(ie)-Z;K<re.gap&&(Z-=re.gap-K)}else{var K=O.nodeToTempPositionMapHorizontal.get(ie)-O.nodeToTempPositionMapHorizontal.get(re.left)+Z;K<re.gap&&(Z+=re.gap-K)}}),O.nodeToTempPositionMapHorizontal.set(ie,O.nodeToTempPositionMapHorizontal.get(ie)+Z),O.dummyToNodeForVerticalAlignment.has(ie)?O.dummyToNodeForVerticalAlignment.get(ie).forEach(function(re){O.idToNodeMap.get(re).displacementX=Z}):O.idToNodeMap.get(ie).displacementX=Z}}),this.nodesInRelativeVertical.forEach(function(ie){if(!O.fixedNodesOnHorizontal.has(ie)){var Z=0;O.dummyToNodeForHorizontalAlignment.has(ie)?Z=O.idToNodeMap.get(O.dummyToNodeForHorizontalAlignment.get(ie)[0]).displacementY:Z=O.idToNodeMap.get(ie).displacementY,O.nodeToRelativeConstraintMapVertical.get(ie).forEach(function(re){if(re.bottom){var K=O.nodeToTempPositionMapVertical.get(re.bottom)-O.nodeToTempPositionMapVertical.get(ie)-Z;K<re.gap&&(Z-=re.gap-K)}else{var K=O.nodeToTempPositionMapVertical.get(ie)-O.nodeToTempPositionMapVertical.get(re.top)+Z;K<re.gap&&(Z+=re.gap-K)}}),O.nodeToTempPositionMapVertical.set(ie,O.nodeToTempPositionMapVertical.get(ie)+Z),O.dummyToNodeForHorizontalAlignment.has(ie)?O.dummyToNodeForHorizontalAlignment.get(ie).forEach(function(re){O.idToNodeMap.get(re).displacementY=Z}):O.idToNodeMap.get(ie).displacementY=Z}});else{for(var M=0;M<this.componentsOnHorizontal.length;M++){var z=this.componentsOnHorizontal[M];if(this.fixedComponentsOnHorizontal[M])for(var N=0;N<z.length;N++)this.dummyToNodeForVerticalAlignment.has(z[N])?this.dummyToNodeForVerticalAlignment.get(z[N]).forEach(function(re){O.idToNodeMap.get(re).displacementX=0}):this.idToNodeMap.get(z[N]).displacementX=0;else{for(var G=0,Y=0,N=0;N<z.length;N++)if(this.dummyToNodeForVerticalAlignment.has(z[N])){var W=this.dummyToNodeForVerticalAlignment.get(z[N]);G+=W.length*this.idToNodeMap.get(W[0]).displacementX,Y+=W.length}else G+=this.idToNodeMap.get(z[N]).displacementX,Y++;for(var Q=G/Y,N=0;N<z.length;N++)this.dummyToNodeForVerticalAlignment.has(z[N])?this.dummyToNodeForVerticalAlignment.get(z[N]).forEach(function(re){O.idToNodeMap.get(re).displacementX=Q}):this.idToNodeMap.get(z[N]).displacementX=Q}}for(var M=0;M<this.componentsOnVertical.length;M++){var z=this.componentsOnVertical[M];if(this.fixedComponentsOnVertical[M])for(var N=0;N<z.length;N++)this.dummyToNodeForHorizontalAlignment.has(z[N])?this.dummyToNodeForHorizontalAlignment.get(z[N]).forEach(function(K){O.idToNodeMap.get(K).displacementY=0}):this.idToNodeMap.get(z[N]).displacementY=0;else{for(var G=0,Y=0,N=0;N<z.length;N++)if(this.dummyToNodeForHorizontalAlignment.has(z[N])){var W=this.dummyToNodeForHorizontalAlignment.get(z[N]);G+=W.length*this.idToNodeMap.get(W[0]).displacementY,Y+=W.length}else G+=this.idToNodeMap.get(z[N]).displacementY,Y++;for(var Q=G/Y,N=0;N<z.length;N++)this.dummyToNodeForHorizontalAlignment.has(z[N])?this.dummyToNodeForHorizontalAlignment.get(z[N]).forEach(function(le){O.idToNodeMap.get(le).displacementY=Q}):this.idToNodeMap.get(z[N]).displacementY=Q}}}},L.prototype.calculateNodesToApplyGravitationTo=function(){var O=[],D,M=this.graphManager.getGraphs(),P=M.length,N;for(N=0;N<P;N++)D=M[N],D.updateConnected(),D.isConnected||(O=O.concat(D.getNodes()));return O},L.prototype.createBendpoints=function(){var O=[];O=O.concat(this.graphManager.getAllEdges());var D=new Set,M;for(M=0;M<O.length;M++){var P=O[M];if(!D.has(P)){var N=P.getSource(),$=P.getTarget();if(N==$)P.getBendpoints().push(new E),P.getBendpoints().push(new E),this.createDummyNodesForBendpoints(P),D.add(P);else{var U=[];if(U=U.concat(N.getEdgeListToNode($)),U=U.concat($.getEdgeListToNode(N)),!D.has(U[0])){if(U.length>1){var B;for(B=0;B<U.length;B++){var V=U[B];V.getBendpoints().push(new E),this.createDummyNodesForBendpoints(V)}}U.forEach(function(z){D.add(z)})}}}if(D.size==O.length)break}},L.prototype.positionNodesRadially=function(O){for(var D=new b(0,0),M=Math.ceil(Math.sqrt(O.length)),P=0,N=0,$=0,U=new E(0,0),B=0;B<O.length;B++){B%M==0&&($=0,N=P,B!=0&&(N+=m.DEFAULT_COMPONENT_SEPERATION),P=0);var V=O[B],z=T.findCenterOfTree(V);D.x=$,D.y=N,U=L.radialLayout(V,z,D),U.y>P&&(P=Math.floor(U.y)),$=Math.floor(U.x+m.DEFAULT_COMPONENT_SEPERATION)}this.transform(new E(y.WORLD_CENTER_X-U.x/2,y.WORLD_CENTER_Y-U.y/2))},L.radialLayout=function(O,D,M){var P=Math.max(this.maxDiagonalInTree(O),m.DEFAULT_RADIAL_SEPARATION);L.branchRadialLayout(D,null,0,359,0,P);var N=A.calculateBounds(O),$=new R;$.setDeviceOrgX(N.getMinX()),$.setDeviceOrgY(N.getMinY()),$.setWorldOrgX(M.x),$.setWorldOrgY(M.y);for(var U=0;U<O.length;U++){var B=O[U];B.transform($)}var V=new E(N.getMaxX(),N.getMaxY());return $.inverseTransformPoint(V)},L.branchRadialLayout=function(O,D,M,P,N,$){var U=(P-M+1)/2;U<0&&(U+=180);var B=(U+M)%360,V=B*x.TWO_PI/360,z=N*Math.cos(V),G=N*Math.sin(V);O.setCenter(z,G);var Y=[];Y=Y.concat(O.getEdges());var W=Y.length;D!=null&&W--;for(var Q=0,ie=Y.length,Z,re=O.getEdgesBetween(D);re.length>1;){var K=re[0];re.splice(0,1);var j=Y.indexOf(K);j>=0&&Y.splice(j,1),ie--,W--}D!=null?Z=(Y.indexOf(re[0])+1)%ie:Z=0;for(var se=Math.abs(P-M)/W,le=Z;Q!=W;le=++le%ie){var _e=Y[le].getOtherEnd(O);if(_e!=D){var ye=(M+Q*se)%360,Ue=(ye+se)%360;L.branchRadialLayout(_e,O,ye,Ue,N+$,$),Q++}}},L.maxDiagonalInTree=function(O){for(var D=C.MIN_VALUE,M=0;M<O.length;M++){var P=O[M],N=P.getDiagonal();N>D&&(D=N)}return D},L.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},L.prototype.groupZeroDegreeMembers=function(){var O=this,D={};this.memberGroups={},this.idToDummyNode={};for(var M=[],P=this.graphManager.getAllNodes(),N=0;N<P.length;N++){var $=P[N],U=$.getParent();this.getNodeDegreeWithChildren($)===0&&(U.id==null||!this.getToBeTiled(U))&&M.push($)}for(var N=0;N<M.length;N++){var $=M[N],B=$.getParent().id;typeof D[B]>"u"&&(D[B]=[]),D[B]=D[B].concat($)}Object.keys(D).forEach(function(V){if(D[V].length>1){var z="DummyCompound_"+V;O.memberGroups[z]=D[V];var G=D[V][0].getParent(),Y=new p(O.graphManager);Y.id=z,Y.paddingLeft=G.paddingLeft||0,Y.paddingRight=G.paddingRight||0,Y.paddingBottom=G.paddingBottom||0,Y.paddingTop=G.paddingTop||0,O.idToDummyNode[z]=Y;var W=O.getGraphManager().add(O.newGraph(),Y),Q=G.getChild();Q.add(Y);for(var ie=0;ie<D[V].length;ie++){var Z=D[V][ie];Q.remove(Z),W.add(Z)}}})},L.prototype.clearCompounds=function(){var O={},D={};this.performDFSOnCompounds();for(var M=0;M<this.compoundOrder.length;M++)D[this.compoundOrder[M].id]=this.compoundOrder[M],O[this.compoundOrder[M].id]=[].concat(this.compoundOrder[M].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[M].getChild()),this.compoundOrder[M].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(O,D)},L.prototype.clearZeroDegreeMembers=function(){var O=this,D=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(M){var P=O.idToDummyNode[M];if(D[M]=O.tileNodes(O.memberGroups[M],P.paddingLeft+P.paddingRight),P.rect.width=D[M].width,P.rect.height=D[M].height,P.setCenter(D[M].centerX,D[M].centerY),P.labelMarginLeft=0,P.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var N=P.rect.width,$=P.rect.height;P.labelWidth&&(P.labelPosHorizontal=="left"?(P.rect.x-=P.labelWidth,P.setWidth(N+P.labelWidth),P.labelMarginLeft=P.labelWidth):P.labelPosHorizontal=="center"&&P.labelWidth>N?(P.rect.x-=(P.labelWidth-N)/2,P.setWidth(P.labelWidth),P.labelMarginLeft=(P.labelWidth-N)/2):P.labelPosHorizontal=="right"&&P.setWidth(N+P.labelWidth)),P.labelHeight&&(P.labelPosVertical=="top"?(P.rect.y-=P.labelHeight,P.setHeight($+P.labelHeight),P.labelMarginTop=P.labelHeight):P.labelPosVertical=="center"&&P.labelHeight>$?(P.rect.y-=(P.labelHeight-$)/2,P.setHeight(P.labelHeight),P.labelMarginTop=(P.labelHeight-$)/2):P.labelPosVertical=="bottom"&&P.setHeight($+P.labelHeight))}})},L.prototype.repopulateCompounds=function(){for(var O=this.compoundOrder.length-1;O>=0;O--){var D=this.compoundOrder[O],M=D.id,P=D.paddingLeft,N=D.paddingTop,$=D.labelMarginLeft,U=D.labelMarginTop;this.adjustLocations(this.tiledMemberPack[M],D.rect.x,D.rect.y,P,N,$,U)}},L.prototype.repopulateZeroDegreeMembers=function(){var O=this,D=this.tiledZeroDegreePack;Object.keys(D).forEach(function(M){var P=O.idToDummyNode[M],N=P.paddingLeft,$=P.paddingTop,U=P.labelMarginLeft,B=P.labelMarginTop;O.adjustLocations(D[M],P.rect.x,P.rect.y,N,$,U,B)})},L.prototype.getToBeTiled=function(O){var D=O.id;if(this.toBeTiled[D]!=null)return this.toBeTiled[D];var M=O.getChild();if(M==null)return this.toBeTiled[D]=!1,!1;for(var P=M.getNodes(),N=0;N<P.length;N++){var $=P[N];if(this.getNodeDegree($)>0)return this.toBeTiled[D]=!1,!1;if($.getChild()==null){this.toBeTiled[$.id]=!1;continue}if(!this.getToBeTiled($))return this.toBeTiled[D]=!1,!1}return this.toBeTiled[D]=!0,!0},L.prototype.getNodeDegree=function(O){O.id;for(var D=O.getEdges(),M=0,P=0;P<D.length;P++){var N=D[P];N.getSource().id!==N.getTarget().id&&(M=M+1)}return M},L.prototype.getNodeDegreeWithChildren=function(O){var D=this.getNodeDegree(O);if(O.getChild()==null)return D;for(var M=O.getChild().getNodes(),P=0;P<M.length;P++){var N=M[P];D+=this.getNodeDegreeWithChildren(N)}return D},L.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},L.prototype.fillCompexOrderByDFS=function(O){for(var D=0;D<O.length;D++){var M=O[D];M.getChild()!=null&&this.fillCompexOrderByDFS(M.getChild().getNodes()),this.getToBeTiled(M)&&this.compoundOrder.push(M)}},L.prototype.adjustLocations=function(O,D,M,P,N,$,U){D+=P+$,M+=N+U;for(var B=D,V=0;V<O.rows.length;V++){var z=O.rows[V];D=B;for(var G=0,Y=0;Y<z.length;Y++){var W=z[Y];W.rect.x=D,W.rect.y=M,D+=W.rect.width+O.horizontalPadding,W.rect.height>G&&(G=W.rect.height)}M+=G+O.verticalPadding}},L.prototype.tileCompoundMembers=function(O,D){var M=this;this.tiledMemberPack=[],Object.keys(O).forEach(function(P){var N=D[P];if(M.tiledMemberPack[P]=M.tileNodes(O[P],N.paddingLeft+N.paddingRight),N.rect.width=M.tiledMemberPack[P].width,N.rect.height=M.tiledMemberPack[P].height,N.setCenter(M.tiledMemberPack[P].centerX,M.tiledMemberPack[P].centerY),N.labelMarginLeft=0,N.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var $=N.rect.width,U=N.rect.height;N.labelWidth&&(N.labelPosHorizontal=="left"?(N.rect.x-=N.labelWidth,N.setWidth($+N.labelWidth),N.labelMarginLeft=N.labelWidth):N.labelPosHorizontal=="center"&&N.labelWidth>$?(N.rect.x-=(N.labelWidth-$)/2,N.setWidth(N.labelWidth),N.labelMarginLeft=(N.labelWidth-$)/2):N.labelPosHorizontal=="right"&&N.setWidth($+N.labelWidth)),N.labelHeight&&(N.labelPosVertical=="top"?(N.rect.y-=N.labelHeight,N.setHeight(U+N.labelHeight),N.labelMarginTop=N.labelHeight):N.labelPosVertical=="center"&&N.labelHeight>U?(N.rect.y-=(N.labelHeight-U)/2,N.setHeight(N.labelHeight),N.labelMarginTop=(N.labelHeight-U)/2):N.labelPosVertical=="bottom"&&N.setHeight(U+N.labelHeight))}})},L.prototype.tileNodes=function(O,D){var M=this.tileNodesByFavoringDim(O,D,!0),P=this.tileNodesByFavoringDim(O,D,!1),N=this.getOrgRatio(M),$=this.getOrgRatio(P),U;return $<N?U=P:U=M,U},L.prototype.getOrgRatio=function(O){var D=O.width,M=O.height,P=D/M;return P<1&&(P=1/P),P},L.prototype.calcIdealRowWidth=function(O,D){var M=m.TILING_PADDING_VERTICAL,P=m.TILING_PADDING_HORIZONTAL,N=O.length,$=0,U=0,B=0;O.forEach(function(ie){$+=ie.getWidth(),U+=ie.getHeight(),ie.getWidth()>B&&(B=ie.getWidth())});var V=$/N,z=U/N,G=Math.pow(M-P,2)+4*(V+P)*(z+M)*N,Y=(P-M+Math.sqrt(G))/(2*(V+P)),W;D?(W=Math.ceil(Y),W==Y&&W++):W=Math.floor(Y);var Q=W*(V+P)-P;return B>Q&&(Q=B),Q+=P*2,Q},L.prototype.tileNodesByFavoringDim=function(O,D,M){var P=m.TILING_PADDING_VERTICAL,N=m.TILING_PADDING_HORIZONTAL,$=m.TILING_COMPARE_BY,U={rows:[],rowWidth:[],rowHeight:[],width:0,height:D,verticalPadding:P,horizontalPadding:N,centerX:0,centerY:0};$&&(U.idealRowWidth=this.calcIdealRowWidth(O,M));var B=function(Z){return Z.rect.width*Z.rect.height},V=function(Z,re){return B(re)-B(Z)};O.sort(function(ie,Z){var re=V;return U.idealRowWidth?(re=$,re(ie.id,Z.id)):re(ie,Z)});for(var z=0,G=0,Y=0;Y<O.length;Y++){var W=O[Y];z+=W.getCenterX(),G+=W.getCenterY()}U.centerX=z/O.length,U.centerY=G/O.length;for(var Y=0;Y<O.length;Y++){var W=O[Y];if(U.rows.length==0)this.insertNodeToRow(U,W,0,D);else if(this.canAddHorizontal(U,W.rect.width,W.rect.height)){var Q=U.rows.length-1;U.idealRowWidth||(Q=this.getShortestRowIndex(U)),this.insertNodeToRow(U,W,Q,D)}else this.insertNodeToRow(U,W,U.rows.length,D);this.shiftToLastRow(U)}return U},L.prototype.insertNodeToRow=function(O,D,M,P){var N=P;if(M==O.rows.length){var $=[];O.rows.push($),O.rowWidth.push(N),O.rowHeight.push(0)}var U=O.rowWidth[M]+D.rect.width;O.rows[M].length>0&&(U+=O.horizontalPadding),O.rowWidth[M]=U,O.width<U&&(O.width=U);var B=D.rect.height;M>0&&(B+=O.verticalPadding);var V=0;B>O.rowHeight[M]&&(V=O.rowHeight[M],O.rowHeight[M]=B,V=O.rowHeight[M]-V),O.height+=V,O.rows[M].push(D)},L.prototype.getShortestRowIndex=function(O){for(var D=-1,M=Number.MAX_VALUE,P=0;P<O.rows.length;P++)O.rowWidth[P]<M&&(D=P,M=O.rowWidth[P]);return D},L.prototype.getLongestRowIndex=function(O){for(var D=-1,M=Number.MIN_VALUE,P=0;P<O.rows.length;P++)O.rowWidth[P]>M&&(D=P,M=O.rowWidth[P]);return D},L.prototype.canAddHorizontal=function(O,D,M){if(O.idealRowWidth){var P=O.rows.length-1,N=O.rowWidth[P];return N+D+O.horizontalPadding<=O.idealRowWidth}var $=this.getShortestRowIndex(O);if($<0)return!0;var U=O.rowWidth[$];if(U+O.horizontalPadding+D<=O.width)return!0;var B=0;O.rowHeight[$]<M&&$>0&&(B=M+O.verticalPadding-O.rowHeight[$]);var V;O.width-U>=D+O.horizontalPadding?V=(O.height+B)/(U+D+O.horizontalPadding):V=(O.height+B)/O.width,B=M+O.verticalPadding;var z;return O.width<D?z=(O.height+B)/D:z=(O.height+B)/O.width,z<1&&(z=1/z),V<1&&(V=1/V),V<z},L.prototype.shiftToLastRow=function(O){var D=this.getLongestRowIndex(O),M=O.rowWidth.length-1,P=O.rows[D],N=P[P.length-1],$=N.width+O.horizontalPadding;if(O.width-O.rowWidth[M]>$&&D!=M){P.splice(-1,1),O.rows[M].push(N),O.rowWidth[D]=O.rowWidth[D]-$,O.rowWidth[M]=O.rowWidth[M]+$,O.width=O.rowWidth[instance.getLongestRowIndex(O)];for(var U=Number.MIN_VALUE,B=0;B<P.length;B++)P[B].height>U&&(U=P[B].height);D>0&&(U+=O.verticalPadding);var V=O.rowHeight[D]+O.rowHeight[M];O.rowHeight[D]=U,O.rowHeight[M]<N.height+O.verticalPadding&&(O.rowHeight[M]=N.height+O.verticalPadding);var z=O.rowHeight[D]+O.rowHeight[M];O.height+=z-V,this.shiftToLastRow(O)}},L.prototype.tilingPreLayout=function(){m.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},L.prototype.tilingPostLayout=function(){m.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},L.prototype.reduceTrees=function(){for(var O=[],D=!0,M;D;){var P=this.graphManager.getAllNodes(),N=[];D=!1;for(var $=0;$<P.length;$++)if(M=P[$],M.getEdges().length==1&&!M.getEdges()[0].isInterGraph&&M.getChild()==null){if(m.PURE_INCREMENTAL){var U=M.getEdges()[0].getOtherEnd(M),B=new S(M.getCenterX()-U.getCenterX(),M.getCenterY()-U.getCenterY());N.push([M,M.getEdges()[0],M.getOwner(),B])}else N.push([M,M.getEdges()[0],M.getOwner()]);D=!0}if(D==!0){for(var V=[],z=0;z<N.length;z++)N[z][0].getEdges().length==1&&(V.push(N[z]),N[z][0].getOwner().remove(N[z][0]));O.push(V),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=O},L.prototype.growTree=function(O){for(var D=O.length,M=O[D-1],P,N=0;N<M.length;N++)P=M[N],this.findPlaceforPrunedNode(P),P[2].add(P[0]),P[2].add(P[1],P[1].source,P[1].target);O.splice(O.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},L.prototype.findPlaceforPrunedNode=function(O){var D,M,P=O[0];if(P==O[1].source?M=O[1].target:M=O[1].source,m.PURE_INCREMENTAL)P.setCenter(M.getCenterX()+O[3].getWidth(),M.getCenterY()+O[3].getHeight());else{var N=M.startX,$=M.finishX,U=M.startY,B=M.finishY,V=0,z=0,G=0,Y=0,W=[V,G,z,Y];if(U>0)for(var Q=N;Q<=$;Q++)W[0]+=this.grid[Q][U-1].length+this.grid[Q][U].length-1;if($<this.grid.length-1)for(var Q=U;Q<=B;Q++)W[1]+=this.grid[$+1][Q].length+this.grid[$][Q].length-1;if(B<this.grid[0].length-1)for(var Q=N;Q<=$;Q++)W[2]+=this.grid[Q][B+1].length+this.grid[Q][B].length-1;if(N>0)for(var Q=U;Q<=B;Q++)W[3]+=this.grid[N-1][Q].length+this.grid[N][Q].length-1;for(var ie=C.MAX_VALUE,Z,re,K=0;K<W.length;K++)W[K]<ie?(ie=W[K],Z=1,re=K):W[K]==ie&&Z++;if(Z==3&&ie==0)W[0]==0&&W[1]==0&&W[2]==0?D=1:W[0]==0&&W[1]==0&&W[3]==0?D=0:W[0]==0&&W[2]==0&&W[3]==0?D=3:W[1]==0&&W[2]==0&&W[3]==0&&(D=2);else if(Z==2&&ie==0){var j=Math.floor(Math.random()*2);W[0]==0&&W[1]==0?j==0?D=0:D=1:W[0]==0&&W[2]==0?j==0?D=0:D=2:W[0]==0&&W[3]==0?j==0?D=0:D=3:W[1]==0&&W[2]==0?j==0?D=1:D=2:W[1]==0&&W[3]==0?j==0?D=1:D=3:j==0?D=2:D=3}else if(Z==4&&ie==0){var j=Math.floor(Math.random()*4);D=j}else D=re;D==0?P.setCenter(M.getCenterX(),M.getCenterY()-M.getHeight()/2-v.DEFAULT_EDGE_LENGTH-P.getHeight()/2):D==1?P.setCenter(M.getCenterX()+M.getWidth()/2+v.DEFAULT_EDGE_LENGTH+P.getWidth()/2,M.getCenterY()):D==2?P.setCenter(M.getCenterX(),M.getCenterY()+M.getHeight()/2+v.DEFAULT_EDGE_LENGTH+P.getHeight()/2):P.setCenter(M.getCenterX()-M.getWidth()/2-v.DEFAULT_EDGE_LENGTH-P.getWidth()/2,M.getCenterY())}},o.exports=L}),991:((o,l,u)=>{var d=u(551).FDLayoutNode,h=u(551).IMath;function f(g,m,_,v){d.call(this,g,m,_,v)}f.prototype=Object.create(d.prototype);for(var p in d)f[p]=d[p];f.prototype.calculateDisplacement=function(){var g=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},f.prototype.propogateDisplacementToChildren=function(g,m){for(var _=this.getChild().getNodes(),v,y=0;y<_.length;y++)v=_[y],v.getChild()==null?(v.displacementX+=g,v.displacementY+=m):v.propogateDisplacementToChildren(g,m)},f.prototype.move=function(){var g=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},f.prototype.setPred1=function(g){this.pred1=g},f.prototype.getPred1=function(){return pred1},f.prototype.getPred2=function(){return pred2},f.prototype.setNext=function(g){this.next=g},f.prototype.getNext=function(){return next},f.prototype.setProcessed=function(g){this.processed=g},f.prototype.isProcessed=function(){return processed},o.exports=f}),902:((o,l,u)=>{function d(_){if(Array.isArray(_)){for(var v=0,y=Array(_.length);v<_.length;v++)y[v]=_[v];return y}else return Array.from(_)}var h=u(806),f=u(551).LinkedList,p=u(551).Matrix,g=u(551).SVD;function m(){}m.handleConstraints=function(_){var v={};v.fixedNodeConstraint=_.constraints.fixedNodeConstraint,v.alignmentConstraint=_.constraints.alignmentConstraint,v.relativePlacementConstraint=_.constraints.relativePlacementConstraint;for(var y=new Map,b=new Map,E=[],S=[],T=_.getAllNodes(),C=0,x=0;x<T.length;x++){var A=T[x];A.getChild()==null&&(b.set(A.id,C++),E.push(A.getCenterX()),S.push(A.getCenterY()),y.set(A.id,A))}v.relativePlacementConstraint&&v.relativePlacementConstraint.forEach(function(Te){!Te.gap&&Te.gap!=0&&(Te.left?Te.gap=h.DEFAULT_EDGE_LENGTH+y.get(Te.left).getWidth()/2+y.get(Te.right).getWidth()/2:Te.gap=h.DEFAULT_EDGE_LENGTH+y.get(Te.top).getHeight()/2+y.get(Te.bottom).getHeight()/2)});var R=function(fe,Be){return{x:fe.x-Be.x,y:fe.y-Be.y}},I=function(fe){var Be=0,me=0;return fe.forEach(function(Ye){Be+=E[b.get(Ye)],me+=S[b.get(Ye)]}),{x:Be/fe.size,y:me/fe.size}},L=function(fe,Be,me,Ye,qe){function lt(pt,Ve){var Ut=new Set(pt),kt=!0,gt=!1,Ct=void 0;try{for(var mt=Ve[Symbol.iterator](),qt;!(kt=(qt=mt.next()).done);kt=!0){var De=qt.value;Ut.add(De)}}catch(pr){gt=!0,Ct=pr}finally{try{!kt&&mt.return&&mt.return()}finally{if(gt)throw Ct}}return Ut}var it=new Map;fe.forEach(function(pt,Ve){it.set(Ve,0)}),fe.forEach(function(pt,Ve){pt.forEach(function(Ut){it.set(Ut.id,it.get(Ut.id)+1)})});var He=new Map,Je=new Map,ht=new f;it.forEach(function(pt,Ve){pt==0?(ht.push(Ve),me||(Be=="horizontal"?He.set(Ve,b.has(Ve)?E[b.get(Ve)]:Ye.get(Ve)):He.set(Ve,b.has(Ve)?S[b.get(Ve)]:Ye.get(Ve)))):He.set(Ve,Number.NEGATIVE_INFINITY),me&&Je.set(Ve,new Set([Ve]))}),me&&qe.forEach(function(pt){var Ve=[];if(pt.forEach(function(gt){me.has(gt)&&Ve.push(gt)}),Ve.length>0){var Ut=0;Ve.forEach(function(gt){Be=="horizontal"?(He.set(gt,b.has(gt)?E[b.get(gt)]:Ye.get(gt)),Ut+=He.get(gt)):(He.set(gt,b.has(gt)?S[b.get(gt)]:Ye.get(gt)),Ut+=He.get(gt))}),Ut=Ut/Ve.length,pt.forEach(function(gt){me.has(gt)||He.set(gt,Ut)})}else{var kt=0;pt.forEach(function(gt){Be=="horizontal"?kt+=b.has(gt)?E[b.get(gt)]:Ye.get(gt):kt+=b.has(gt)?S[b.get(gt)]:Ye.get(gt)}),kt=kt/pt.length,pt.forEach(function(gt){He.set(gt,kt)})}});for(var rt=function(){var Ve=ht.shift(),Ut=fe.get(Ve);Ut.forEach(function(kt){if(He.get(kt.id)<He.get(Ve)+kt.gap)if(me&&me.has(kt.id)){var gt=void 0;if(Be=="horizontal"?gt=b.has(kt.id)?E[b.get(kt.id)]:Ye.get(kt.id):gt=b.has(kt.id)?S[b.get(kt.id)]:Ye.get(kt.id),He.set(kt.id,gt),gt<He.get(Ve)+kt.gap){var Ct=He.get(Ve)+kt.gap-gt;Je.get(Ve).forEach(function(mt){He.set(mt,He.get(mt)-Ct)})}}else He.set(kt.id,He.get(Ve)+kt.gap);it.set(kt.id,it.get(kt.id)-1),it.get(kt.id)==0&&ht.push(kt.id),me&&Je.set(kt.id,lt(Je.get(Ve),Je.get(kt.id)))})};ht.length!=0;)rt();if(me){var $e=new Set;fe.forEach(function(pt,Ve){pt.length==0&&$e.add(Ve)});var xe=[];Je.forEach(function(pt,Ve){if($e.has(Ve)){var Ut=!1,kt=!0,gt=!1,Ct=void 0;try{for(var mt=pt[Symbol.iterator](),qt;!(kt=(qt=mt.next()).done);kt=!0){var De=qt.value;me.has(De)&&(Ut=!0)}}catch(ir){gt=!0,Ct=ir}finally{try{!kt&&mt.return&&mt.return()}finally{if(gt)throw Ct}}if(!Ut){var pr=!1,or=void 0;xe.forEach(function(ir,gr){ir.has([].concat(d(pt))[0])&&(pr=!0,or=gr)}),pr?pt.forEach(function(ir){xe[or].add(ir)}):xe.push(new Set(pt))}}}),xe.forEach(function(pt,Ve){var Ut=Number.POSITIVE_INFINITY,kt=Number.POSITIVE_INFINITY,gt=Number.NEGATIVE_INFINITY,Ct=Number.NEGATIVE_INFINITY,mt=!0,qt=!1,De=void 0;try{for(var pr=pt[Symbol.iterator](),or;!(mt=(or=pr.next()).done);mt=!0){var ir=or.value,gr=void 0;Be=="horizontal"?gr=b.has(ir)?E[b.get(ir)]:Ye.get(ir):gr=b.has(ir)?S[b.get(ir)]:Ye.get(ir);var dn=He.get(ir);gr<Ut&&(Ut=gr),gr>gt&&(gt=gr),dn<kt&&(kt=dn),dn>Ct&&(Ct=dn)}}catch(xn){qt=!0,De=xn}finally{try{!mt&&pr.return&&pr.return()}finally{if(qt)throw De}}var st=(Ut+gt)/2-(kt+Ct)/2,jt=!0,nr=!1,vr=void 0;try{for(var Sr=pt[Symbol.iterator](),yn;!(jt=(yn=Sr.next()).done);jt=!0){var ln=yn.value;He.set(ln,He.get(ln)+st)}}catch(xn){nr=!0,vr=xn}finally{try{!jt&&Sr.return&&Sr.return()}finally{if(nr)throw vr}}})}return He},F=function(fe){var Be=0,me=0,Ye=0,qe=0;if(fe.forEach(function(Je){Je.left?E[b.get(Je.left)]-E[b.get(Je.right)]>=0?Be++:me++:S[b.get(Je.top)]-S[b.get(Je.bottom)]>=0?Ye++:qe++}),Be>me&&Ye>qe)for(var lt=0;lt<b.size;lt++)E[lt]=-1*E[lt],S[lt]=-1*S[lt];else if(Be>me)for(var it=0;it<b.size;it++)E[it]=-1*E[it];else if(Ye>qe)for(var He=0;He<b.size;He++)S[He]=-1*S[He]},O=function(fe){var Be=[],me=new f,Ye=new Set,qe=0;return fe.forEach(function(lt,it){if(!Ye.has(it)){Be[qe]=[];var He=it;for(me.push(He),Ye.add(He),Be[qe].push(He);me.length!=0;){He=me.shift();var Je=fe.get(He);Je.forEach(function(ht){Ye.has(ht.id)||(me.push(ht.id),Ye.add(ht.id),Be[qe].push(ht.id))})}qe++}}),Be},D=function(fe){var Be=new Map;return fe.forEach(function(me,Ye){Be.set(Ye,[])}),fe.forEach(function(me,Ye){me.forEach(function(qe){Be.get(Ye).push(qe),Be.get(qe.id).push({id:Ye,gap:qe.gap,direction:qe.direction})})}),Be},M=function(fe){var Be=new Map;return fe.forEach(function(me,Ye){Be.set(Ye,[])}),fe.forEach(function(me,Ye){me.forEach(function(qe){Be.get(qe.id).push({id:Ye,gap:qe.gap,direction:qe.direction})})}),Be},P=[],N=[],$=!1,U=!1,B=new Set,V=new Map,z=new Map,G=[];if(v.fixedNodeConstraint&&v.fixedNodeConstraint.forEach(function(Te){B.add(Te.nodeId)}),v.relativePlacementConstraint&&(v.relativePlacementConstraint.forEach(function(Te){Te.left?(V.has(Te.left)?V.get(Te.left).push({id:Te.right,gap:Te.gap,direction:"horizontal"}):V.set(Te.left,[{id:Te.right,gap:Te.gap,direction:"horizontal"}]),V.has(Te.right)||V.set(Te.right,[])):(V.has(Te.top)?V.get(Te.top).push({id:Te.bottom,gap:Te.gap,direction:"vertical"}):V.set(Te.top,[{id:Te.bottom,gap:Te.gap,direction:"vertical"}]),V.has(Te.bottom)||V.set(Te.bottom,[]))}),z=D(V),G=O(z)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(v.fixedNodeConstraint&&v.fixedNodeConstraint.length>1)v.fixedNodeConstraint.forEach(function(Te,fe){P[fe]=[Te.position.x,Te.position.y],N[fe]=[E[b.get(Te.nodeId)],S[b.get(Te.nodeId)]]}),$=!0;else if(v.alignmentConstraint)(function(){var Te=0;if(v.alignmentConstraint.vertical){for(var fe=v.alignmentConstraint.vertical,Be=function(He){var Je=new Set;fe[He].forEach(function($e){Je.add($e)});var ht=new Set([].concat(d(Je)).filter(function($e){return B.has($e)})),rt=void 0;ht.size>0?rt=E[b.get(ht.values().next().value)]:rt=I(Je).x,fe[He].forEach(function($e){P[Te]=[rt,S[b.get($e)]],N[Te]=[E[b.get($e)],S[b.get($e)]],Te++})},me=0;me<fe.length;me++)Be(me);$=!0}if(v.alignmentConstraint.horizontal){for(var Ye=v.alignmentConstraint.horizontal,qe=function(He){var Je=new Set;Ye[He].forEach(function($e){Je.add($e)});var ht=new Set([].concat(d(Je)).filter(function($e){return B.has($e)})),rt=void 0;ht.size>0?rt=E[b.get(ht.values().next().value)]:rt=I(Je).y,Ye[He].forEach(function($e){P[Te]=[E[b.get($e)],rt],N[Te]=[E[b.get($e)],S[b.get($e)]],Te++})},lt=0;lt<Ye.length;lt++)qe(lt);$=!0}v.relativePlacementConstraint&&(U=!0)})();else if(v.relativePlacementConstraint){for(var Y=0,W=0,Q=0;Q<G.length;Q++)G[Q].length>Y&&(Y=G[Q].length,W=Q);if(Y<z.size/2)F(v.relativePlacementConstraint),$=!1,U=!1;else{var ie=new Map,Z=new Map,re=[];G[W].forEach(function(Te){V.get(Te).forEach(function(fe){fe.direction=="horizontal"?(ie.has(Te)?ie.get(Te).push(fe):ie.set(Te,[fe]),ie.has(fe.id)||ie.set(fe.id,[]),re.push({left:Te,right:fe.id})):(Z.has(Te)?Z.get(Te).push(fe):Z.set(Te,[fe]),Z.has(fe.id)||Z.set(fe.id,[]),re.push({top:Te,bottom:fe.id}))})}),F(re),U=!1;var K=L(ie,"horizontal"),j=L(Z,"vertical");G[W].forEach(function(Te,fe){N[fe]=[E[b.get(Te)],S[b.get(Te)]],P[fe]=[],K.has(Te)?P[fe][0]=K.get(Te):P[fe][0]=E[b.get(Te)],j.has(Te)?P[fe][1]=j.get(Te):P[fe][1]=S[b.get(Te)]}),$=!0}}if($){for(var se=void 0,le=p.transpose(P),_e=p.transpose(N),ye=0;ye<le.length;ye++)le[ye]=p.multGamma(le[ye]),_e[ye]=p.multGamma(_e[ye]);var Ue=p.multMat(le,p.transpose(_e)),Se=g.svd(Ue);se=p.multMat(Se.V,p.transpose(Se.U));for(var be=0;be<b.size;be++){var ke=[E[be],S[be]],Ae=[se[0][0],se[1][0]],tt=[se[0][1],se[1][1]];E[be]=p.dotProduct(ke,Ae),S[be]=p.dotProduct(ke,tt)}U&&F(v.relativePlacementConstraint)}}if(h.ENFORCE_CONSTRAINTS){if(v.fixedNodeConstraint&&v.fixedNodeConstraint.length>0){var Oe={x:0,y:0};v.fixedNodeConstraint.forEach(function(Te,fe){var Be={x:E[b.get(Te.nodeId)],y:S[b.get(Te.nodeId)]},me=Te.position,Ye=R(me,Be);Oe.x+=Ye.x,Oe.y+=Ye.y}),Oe.x/=v.fixedNodeConstraint.length,Oe.y/=v.fixedNodeConstraint.length,E.forEach(function(Te,fe){E[fe]+=Oe.x}),S.forEach(function(Te,fe){S[fe]+=Oe.y}),v.fixedNodeConstraint.forEach(function(Te){E[b.get(Te.nodeId)]=Te.position.x,S[b.get(Te.nodeId)]=Te.position.y})}if(v.alignmentConstraint){if(v.alignmentConstraint.vertical)for(var je=v.alignmentConstraint.vertical,ct=function(fe){var Be=new Set;je[fe].forEach(function(qe){Be.add(qe)});var me=new Set([].concat(d(Be)).filter(function(qe){return B.has(qe)})),Ye=void 0;me.size>0?Ye=E[b.get(me.values().next().value)]:Ye=I(Be).x,Be.forEach(function(qe){B.has(qe)||(E[b.get(qe)]=Ye)})},Fe=0;Fe<je.length;Fe++)ct(Fe);if(v.alignmentConstraint.horizontal)for(var Xe=v.alignmentConstraint.horizontal,et=function(fe){var Be=new Set;Xe[fe].forEach(function(qe){Be.add(qe)});var me=new Set([].concat(d(Be)).filter(function(qe){return B.has(qe)})),Ye=void 0;me.size>0?Ye=S[b.get(me.values().next().value)]:Ye=I(Be).y,Be.forEach(function(qe){B.has(qe)||(S[b.get(qe)]=Ye)})},Ie=0;Ie<Xe.length;Ie++)et(Ie)}v.relativePlacementConstraint&&(function(){var Te=new Map,fe=new Map,Be=new Map,me=new Map,Ye=new Map,qe=new Map,lt=new Set,it=new Set;if(B.forEach(function(Mt){lt.add(Mt),it.add(Mt)}),v.alignmentConstraint){if(v.alignmentConstraint.vertical)for(var He=v.alignmentConstraint.vertical,Je=function(Yt){Be.set("dummy"+Yt,[]),He[Yt].forEach(function(er){Te.set(er,"dummy"+Yt),Be.get("dummy"+Yt).push(er),B.has(er)&&lt.add("dummy"+Yt)}),Ye.set("dummy"+Yt,E[b.get(He[Yt][0])])},ht=0;ht<He.length;ht++)Je(ht);if(v.alignmentConstraint.horizontal)for(var rt=v.alignmentConstraint.horizontal,$e=function(Yt){me.set("dummy"+Yt,[]),rt[Yt].forEach(function(er){fe.set(er,"dummy"+Yt),me.get("dummy"+Yt).push(er),B.has(er)&&it.add("dummy"+Yt)}),qe.set("dummy"+Yt,S[b.get(rt[Yt][0])])},xe=0;xe<rt.length;xe++)$e(xe)}var pt=new Map,Ve=new Map,Ut=function(Yt){V.get(Yt).forEach(function(er){var Ht=void 0,Hr=void 0;er.direction=="horizontal"?(Ht=Te.get(Yt)?Te.get(Yt):Yt,Te.get(er.id)?Hr={id:Te.get(er.id),gap:er.gap,direction:er.direction}:Hr=er,pt.has(Ht)?pt.get(Ht).push(Hr):pt.set(Ht,[Hr]),pt.has(Hr.id)||pt.set(Hr.id,[])):(Ht=fe.get(Yt)?fe.get(Yt):Yt,fe.get(er.id)?Hr={id:fe.get(er.id),gap:er.gap,direction:er.direction}:Hr=er,Ve.has(Ht)?Ve.get(Ht).push(Hr):Ve.set(Ht,[Hr]),Ve.has(Hr.id)||Ve.set(Hr.id,[]))})},kt=!0,gt=!1,Ct=void 0;try{for(var mt=V.keys()[Symbol.iterator](),qt;!(kt=(qt=mt.next()).done);kt=!0){var De=qt.value;Ut(De)}}catch(Mt){gt=!0,Ct=Mt}finally{try{!kt&&mt.return&&mt.return()}finally{if(gt)throw Ct}}var pr=D(pt),or=D(Ve),ir=O(pr),gr=O(or),dn=M(pt),st=M(Ve),jt=[],nr=[];ir.forEach(function(Mt,Yt){jt[Yt]=[],Mt.forEach(function(er){dn.get(er).length==0&&jt[Yt].push(er)})}),gr.forEach(function(Mt,Yt){nr[Yt]=[],Mt.forEach(function(er){st.get(er).length==0&&nr[Yt].push(er)})});var vr=L(pt,"horizontal",lt,Ye,jt),Sr=L(Ve,"vertical",it,qe,nr),yn=function(Yt){Be.get(Yt)?Be.get(Yt).forEach(function(er){E[b.get(er)]=vr.get(Yt)}):E[b.get(Yt)]=vr.get(Yt)},ln=!0,xn=!1,nn=void 0;try{for(var Zr=vr.keys()[Symbol.iterator](),Jr;!(ln=(Jr=Zr.next()).done);ln=!0){var Jn=Jr.value;yn(Jn)}}catch(Mt){xn=!0,nn=Mt}finally{try{!ln&&Zr.return&&Zr.return()}finally{if(xn)throw nn}}var _a=function(Yt){me.get(Yt)?me.get(Yt).forEach(function(er){S[b.get(er)]=Sr.get(Yt)}):S[b.get(Yt)]=Sr.get(Yt)},si=!0,Ta=!1,Vr=void 0;try{for(var Ze=Sr.keys()[Symbol.iterator](),Ot;!(si=(Ot=Ze.next()).done);si=!0){var Jn=Ot.value;_a(Jn)}}catch(Mt){Ta=!0,Vr=Mt}finally{try{!si&&Ze.return&&Ze.return()}finally{if(Ta)throw Vr}}})()}for(var we=0;we<T.length;we++){var ce=T[we];ce.getChild()==null&&ce.setCenter(E[b.get(ce.id)],S[b.get(ce.id)])}},o.exports=m}),551:(o=>{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return n[o](u,u.exports,a),u.exports}var s=a(45);return s})()})})(X6)),X6.exports}var PXr=j6.exports,VNe;function FXr(){return VNe||(VNe=1,(function(t,e){(function(n,i){t.exports=i(LXr())})(PXr,function(r){return(()=>{var n={658:(o=>{o.exports=Object.assign!=null?Object.assign.bind(Object):function(l){for(var u=arguments.length,d=Array(u>1?u-1:0),h=1;h<u;h++)d[h-1]=arguments[h];return d.forEach(function(f){Object.keys(f).forEach(function(p){return l[p]=f[p]})}),l}}),548:((o,l,u)=>{var d=(function(){function p(g,m){var _=[],v=!0,y=!1,b=void 0;try{for(var E=g[Symbol.iterator](),S;!(v=(S=E.next()).done)&&(_.push(S.value),!(m&&_.length===m));v=!0);}catch(T){y=!0,b=T}finally{try{!v&&E.return&&E.return()}finally{if(y)throw b}}return _}return function(g,m){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return p(g,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=u(140).layoutBase.LinkedList,f={};f.getTopMostNodes=function(p){for(var g={},m=0;m<p.length;m++)g[p[m].id()]=!0;var _=p.filter(function(v,y){typeof v=="number"&&(v=y);for(var b=v.parent()[0];b!=null;){if(g[b.id()])return!1;b=b.parent()[0]}return!0});return _},f.connectComponents=function(p,g,m,_){var v=new h,y=new Set,b=[],E=void 0,S=void 0,T=void 0,C=!1,x=1,A=[],R=[],I=function(){var F=p.collection();R.push(F);var O=m[0],D=p.collection();D.merge(O).merge(O.descendants().intersection(g)),b.push(O),D.forEach(function(N){v.push(N),y.add(N),F.merge(N)});for(var M=function(){O=v.shift();var $=p.collection();O.neighborhood().nodes().forEach(function(z){g.intersection(O.edgesWith(z)).length>0&&$.merge(z)});for(var U=0;U<$.length;U++){var B=$[U];if(E=m.intersection(B.union(B.ancestors())),E!=null&&!y.has(E[0])){var V=E.union(E.descendants());V.forEach(function(z){v.push(z),y.add(z),F.merge(z),m.has(z)&&b.push(z)})}}};v.length!=0;)M();if(F.forEach(function(N){g.intersection(N.connectedEdges()).forEach(function($){F.has($.source())&&F.has($.target())&&F.merge($)})}),b.length==m.length&&(C=!0),!C||C&&x>1){S=b[0],T=S.connectedEdges().length,b.forEach(function(N){N.connectedEdges().length<T&&(T=N.connectedEdges().length,S=N)}),A.push(S.id());var P=p.collection();P.merge(b[0]),b.forEach(function(N){P.merge(N)}),b=[],m=m.difference(P),x++}};do I();while(!C);return _&&A.length>0&&_.set("dummy"+(_.size+1),A),R},f.relocateComponent=function(p,g,m){if(!m.fixedNodeConstraint){var _=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,y=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY;if(m.quality=="draft"){var E=!0,S=!1,T=void 0;try{for(var C=g.nodeIndexes[Symbol.iterator](),x;!(E=(x=C.next()).done);E=!0){var A=x.value,R=d(A,2),I=R[0],L=R[1],F=m.cy.getElementById(I);if(F){var O=F.boundingBox(),D=g.xCoords[L]-O.w/2,M=g.xCoords[L]+O.w/2,P=g.yCoords[L]-O.h/2,N=g.yCoords[L]+O.h/2;D<_&&(_=D),M>v&&(v=M),P<y&&(y=P),N>b&&(b=N)}}}catch(z){S=!0,T=z}finally{try{!E&&C.return&&C.return()}finally{if(S)throw T}}var $=p.x-(v+_)/2,U=p.y-(b+y)/2;g.xCoords=g.xCoords.map(function(z){return z+$}),g.yCoords=g.yCoords.map(function(z){return z+U})}else{Object.keys(g).forEach(function(z){var G=g[z],Y=G.getRect().x,W=G.getRect().x+G.getRect().width,Q=G.getRect().y,ie=G.getRect().y+G.getRect().height;Y<_&&(_=Y),W>v&&(v=W),Q<y&&(y=Q),ie>b&&(b=ie)});var B=p.x-(v+_)/2,V=p.y-(b+y)/2;Object.keys(g).forEach(function(z){var G=g[z];G.setCenter(G.getCenterX()+B,G.getCenterY()+V)})}}},f.calcBoundingBox=function(p,g,m,_){for(var v=Number.MAX_SAFE_INTEGER,y=Number.MIN_SAFE_INTEGER,b=Number.MAX_SAFE_INTEGER,E=Number.MIN_SAFE_INTEGER,S=void 0,T=void 0,C=void 0,x=void 0,A=p.descendants().not(":parent"),R=A.length,I=0;I<R;I++){var L=A[I];S=g[_.get(L.id())]-L.width()/2,T=g[_.get(L.id())]+L.width()/2,C=m[_.get(L.id())]-L.height()/2,x=m[_.get(L.id())]+L.height()/2,v>S&&(v=S),y<T&&(y=T),b>C&&(b=C),E<x&&(E=x)}var F={};return F.topLeftX=v,F.topLeftY=b,F.width=y-v,F.height=E-b,F},f.calcParentsWithoutChildren=function(p,g){var m=p.collection();return g.nodes(":parent").forEach(function(_){var v=!1;_.children().forEach(function(y){y.css("display")!="none"&&(v=!0)}),v||m.merge(_)}),m},o.exports=f}),816:((o,l,u)=>{var d=u(548),h=u(140).CoSELayout,f=u(140).CoSENode,p=u(140).layoutBase.PointD,g=u(140).layoutBase.DimensionD,m=u(140).layoutBase.LayoutConstants,_=u(140).layoutBase.FDLayoutConstants,v=u(140).CoSEConstants,y=function(E,S){var T=E.cy,C=E.eles,x=C.nodes(),A=C.edges(),R=void 0,I=void 0,L=void 0,F={};E.randomize&&(R=S.nodeIndexes,I=S.xCoords,L=S.yCoords);var O=function(z){return typeof z=="function"},D=function(z,G){return O(z)?z(G):z},M=d.calcParentsWithoutChildren(T,C),P=function V(z,G,Y,W){for(var Q=G.length,ie=0;ie<Q;ie++){var Z=G[ie],re=null;Z.intersection(M).length==0&&(re=Z.children());var K=void 0,j=Z.layoutDimensions({nodeDimensionsIncludeLabels:W.nodeDimensionsIncludeLabels});if(Z.outerWidth()!=null&&Z.outerHeight()!=null)if(W.randomize)if(!Z.isParent())K=z.add(new f(Y.graphManager,new p(I[R.get(Z.id())]-j.w/2,L[R.get(Z.id())]-j.h/2),new g(parseFloat(j.w),parseFloat(j.h))));else{var se=d.calcBoundingBox(Z,I,L,R);Z.intersection(M).length==0?K=z.add(new f(Y.graphManager,new p(se.topLeftX,se.topLeftY),new g(se.width,se.height))):K=z.add(new f(Y.graphManager,new p(se.topLeftX,se.topLeftY),new g(parseFloat(j.w),parseFloat(j.h))))}else K=z.add(new f(Y.graphManager,new p(Z.position("x")-j.w/2,Z.position("y")-j.h/2),new g(parseFloat(j.w),parseFloat(j.h))));else K=z.add(new f(this.graphManager));if(K.id=Z.data("id"),K.nodeRepulsion=D(W.nodeRepulsion,Z),K.paddingLeft=parseInt(Z.css("padding")),K.paddingTop=parseInt(Z.css("padding")),K.paddingRight=parseInt(Z.css("padding")),K.paddingBottom=parseInt(Z.css("padding")),W.nodeDimensionsIncludeLabels&&(K.labelWidth=Z.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,K.labelHeight=Z.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,K.labelPosVertical=Z.css("text-valign"),K.labelPosHorizontal=Z.css("text-halign")),F[Z.data("id")]=K,isNaN(K.rect.x)&&(K.rect.x=0),isNaN(K.rect.y)&&(K.rect.y=0),re!=null&&re.length>0){var le=void 0;le=Y.getGraphManager().add(Y.newGraph(),K),V(le,re,Y,W)}}},N=function(z,G,Y){for(var W=0,Q=0,ie=0;ie<Y.length;ie++){var Z=Y[ie],re=F[Z.data("source")],K=F[Z.data("target")];if(re&&K&&re!==K&&re.getEdgesBetween(K).length==0){var j=G.add(z.newEdge(),re,K);j.id=Z.id(),j.idealLength=D(E.idealEdgeLength,Z),j.edgeElasticity=D(E.edgeElasticity,Z),W+=j.idealLength,Q++}}E.idealEdgeLength!=null&&(Q>0?v.DEFAULT_EDGE_LENGTH=_.DEFAULT_EDGE_LENGTH=W/Q:O(E.idealEdgeLength)?v.DEFAULT_EDGE_LENGTH=_.DEFAULT_EDGE_LENGTH=50:v.DEFAULT_EDGE_LENGTH=_.DEFAULT_EDGE_LENGTH=E.idealEdgeLength,v.MIN_REPULSION_DIST=_.MIN_REPULSION_DIST=_.DEFAULT_EDGE_LENGTH/10,v.DEFAULT_RADIAL_SEPARATION=_.DEFAULT_EDGE_LENGTH)},$=function(z,G){G.fixedNodeConstraint&&(z.constraints.fixedNodeConstraint=G.fixedNodeConstraint),G.alignmentConstraint&&(z.constraints.alignmentConstraint=G.alignmentConstraint),G.relativePlacementConstraint&&(z.constraints.relativePlacementConstraint=G.relativePlacementConstraint)};E.nestingFactor!=null&&(v.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=_.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=E.nestingFactor),E.gravity!=null&&(v.DEFAULT_GRAVITY_STRENGTH=_.DEFAULT_GRAVITY_STRENGTH=E.gravity),E.numIter!=null&&(v.MAX_ITERATIONS=_.MAX_ITERATIONS=E.numIter),E.gravityRange!=null&&(v.DEFAULT_GRAVITY_RANGE_FACTOR=_.DEFAULT_GRAVITY_RANGE_FACTOR=E.gravityRange),E.gravityCompound!=null&&(v.DEFAULT_COMPOUND_GRAVITY_STRENGTH=_.DEFAULT_COMPOUND_GRAVITY_STRENGTH=E.gravityCompound),E.gravityRangeCompound!=null&&(v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=_.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=E.gravityRangeCompound),E.initialEnergyOnIncremental!=null&&(v.DEFAULT_COOLING_FACTOR_INCREMENTAL=_.DEFAULT_COOLING_FACTOR_INCREMENTAL=E.initialEnergyOnIncremental),E.tilingCompareBy!=null&&(v.TILING_COMPARE_BY=E.tilingCompareBy),E.quality=="proof"?m.QUALITY=2:m.QUALITY=0,v.NODE_DIMENSIONS_INCLUDE_LABELS=_.NODE_DIMENSIONS_INCLUDE_LABELS=m.NODE_DIMENSIONS_INCLUDE_LABELS=E.nodeDimensionsIncludeLabels,v.DEFAULT_INCREMENTAL=_.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!E.randomize,v.ANIMATE=_.ANIMATE=m.ANIMATE=E.animate,v.TILE=E.tile,v.TILING_PADDING_VERTICAL=typeof E.tilingPaddingVertical=="function"?E.tilingPaddingVertical.call():E.tilingPaddingVertical,v.TILING_PADDING_HORIZONTAL=typeof E.tilingPaddingHorizontal=="function"?E.tilingPaddingHorizontal.call():E.tilingPaddingHorizontal,v.DEFAULT_INCREMENTAL=_.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!0,v.PURE_INCREMENTAL=!E.randomize,m.DEFAULT_UNIFORM_LEAF_NODE_SIZES=E.uniformNodeDimensions,E.step=="transformed"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,v.ENFORCE_CONSTRAINTS=!1,v.APPLY_LAYOUT=!1),E.step=="enforced"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!0,v.APPLY_LAYOUT=!1),E.step=="cose"&&(v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!1,v.APPLY_LAYOUT=!0),E.step=="all"&&(E.randomize?v.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:v.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,v.ENFORCE_CONSTRAINTS=!0,v.APPLY_LAYOUT=!0),E.fixedNodeConstraint||E.alignmentConstraint||E.relativePlacementConstraint?v.TREE_REDUCTION_ON_INCREMENTAL=!1:v.TREE_REDUCTION_ON_INCREMENTAL=!0;var U=new h,B=U.newGraphManager();return P(B.addRoot(),d.getTopMostNodes(x),U,E),N(U,B,A),$(U,E),U.runLayout(),F};o.exports={coseLayout:y}}),212:((o,l,u)=>{var d=(function(){function E(S,T){for(var C=0;C<T.length;C++){var x=T[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,T,C){return T&&E(S.prototype,T),C&&E(S,C),S}})();function h(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}var f=u(658),p=u(548),g=u(657),m=g.spectralLayout,_=u(816),v=_.coseLayout,y=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(S){return 4500},idealEdgeLength:function(S){return 50},edgeElasticity:function(S){return .45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),b=(function(){function E(S){h(this,E),this.options=f({},y,S)}return d(E,[{key:"run",value:function(){var T=this,C=this.options,x=C.cy,A=C.eles,R=[],I=[],L=void 0,F=[];C.fixedNodeConstraint&&(!Array.isArray(C.fixedNodeConstraint)||C.fixedNodeConstraint.length==0)&&(C.fixedNodeConstraint=void 0),C.alignmentConstraint&&(C.alignmentConstraint.vertical&&(!Array.isArray(C.alignmentConstraint.vertical)||C.alignmentConstraint.vertical.length==0)&&(C.alignmentConstraint.vertical=void 0),C.alignmentConstraint.horizontal&&(!Array.isArray(C.alignmentConstraint.horizontal)||C.alignmentConstraint.horizontal.length==0)&&(C.alignmentConstraint.horizontal=void 0)),C.relativePlacementConstraint&&(!Array.isArray(C.relativePlacementConstraint)||C.relativePlacementConstraint.length==0)&&(C.relativePlacementConstraint=void 0);var O=C.fixedNodeConstraint||C.alignmentConstraint||C.relativePlacementConstraint;O&&(C.tile=!1,C.packComponents=!1);var D=void 0,M=!1;if(x.layoutUtilities&&C.packComponents&&(D=x.layoutUtilities("get"),D||(D=x.layoutUtilities()),M=!0),A.nodes().length>0)if(M){var $=p.getTopMostNodes(C.eles.nodes());if(L=p.connectComponents(x,C.eles,$),L.forEach(function(Ue){var Se=Ue.boundingBox();F.push({x:Se.x1+Se.w/2,y:Se.y1+Se.h/2})}),C.randomize&&L.forEach(function(Ue){C.eles=Ue,R.push(m(C))}),C.quality=="default"||C.quality=="proof"){var U=x.collection();if(C.tile){var B=new Map,V=[],z=[],G=0,Y={nodeIndexes:B,xCoords:V,yCoords:z},W=[];if(L.forEach(function(Ue,Se){Ue.edges().length==0&&(Ue.nodes().forEach(function(be,ke){U.merge(Ue.nodes()[ke]),be.isParent()||(Y.nodeIndexes.set(Ue.nodes()[ke].id(),G++),Y.xCoords.push(Ue.nodes()[0].position().x),Y.yCoords.push(Ue.nodes()[0].position().y))}),W.push(Se))}),U.length>1){var Q=U.boundingBox();F.push({x:Q.x1+Q.w/2,y:Q.y1+Q.h/2}),L.push(U),R.push(Y);for(var ie=W.length-1;ie>=0;ie--)L.splice(W[ie],1),R.splice(W[ie],1),F.splice(W[ie],1)}}L.forEach(function(Ue,Se){C.eles=Ue,I.push(v(C,R[Se])),p.relocateComponent(F[Se],I[Se],C)})}else L.forEach(function(Ue,Se){p.relocateComponent(F[Se],R[Se],C)});var Z=new Set;if(L.length>1){var re=[],K=A.filter(function(Ue){return Ue.css("display")=="none"});L.forEach(function(Ue,Se){var be=void 0;if(C.quality=="draft"&&(be=R[Se].nodeIndexes),Ue.nodes().not(K).length>0){var ke={};ke.edges=[],ke.nodes=[];var Ae=void 0;Ue.nodes().not(K).forEach(function(tt){if(C.quality=="draft")if(!tt.isParent())Ae=be.get(tt.id()),ke.nodes.push({x:R[Se].xCoords[Ae]-tt.boundingbox().w/2,y:R[Se].yCoords[Ae]-tt.boundingbox().h/2,width:tt.boundingbox().w,height:tt.boundingbox().h});else{var Oe=p.calcBoundingBox(tt,R[Se].xCoords,R[Se].yCoords,be);ke.nodes.push({x:Oe.topLeftX,y:Oe.topLeftY,width:Oe.width,height:Oe.height})}else I[Se][tt.id()]&&ke.nodes.push({x:I[Se][tt.id()].getLeft(),y:I[Se][tt.id()].getTop(),width:I[Se][tt.id()].getWidth(),height:I[Se][tt.id()].getHeight()})}),Ue.edges().forEach(function(tt){var Oe=tt.source(),je=tt.target();if(Oe.css("display")!="none"&&je.css("display")!="none")if(C.quality=="draft"){var ct=be.get(Oe.id()),Fe=be.get(je.id()),Xe=[],et=[];if(Oe.isParent()){var Ie=p.calcBoundingBox(Oe,R[Se].xCoords,R[Se].yCoords,be);Xe.push(Ie.topLeftX+Ie.width/2),Xe.push(Ie.topLeftY+Ie.height/2)}else Xe.push(R[Se].xCoords[ct]),Xe.push(R[Se].yCoords[ct]);if(je.isParent()){var we=p.calcBoundingBox(je,R[Se].xCoords,R[Se].yCoords,be);et.push(we.topLeftX+we.width/2),et.push(we.topLeftY+we.height/2)}else et.push(R[Se].xCoords[Fe]),et.push(R[Se].yCoords[Fe]);ke.edges.push({startX:Xe[0],startY:Xe[1],endX:et[0],endY:et[1]})}else I[Se][Oe.id()]&&I[Se][je.id()]&&ke.edges.push({startX:I[Se][Oe.id()].getCenterX(),startY:I[Se][Oe.id()].getCenterY(),endX:I[Se][je.id()].getCenterX(),endY:I[Se][je.id()].getCenterY()})}),ke.nodes.length>0&&(re.push(ke),Z.add(Se))}});var j=D.packComponents(re,C.randomize).shifts;if(C.quality=="draft")R.forEach(function(Ue,Se){var be=Ue.xCoords.map(function(Ae){return Ae+j[Se].dx}),ke=Ue.yCoords.map(function(Ae){return Ae+j[Se].dy});Ue.xCoords=be,Ue.yCoords=ke});else{var se=0;Z.forEach(function(Ue){Object.keys(I[Ue]).forEach(function(Se){var be=I[Ue][Se];be.setCenter(be.getCenterX()+j[se].dx,be.getCenterY()+j[se].dy)}),se++})}}}else{var P=C.eles.boundingBox();if(F.push({x:P.x1+P.w/2,y:P.y1+P.h/2}),C.randomize){var N=m(C);R.push(N)}C.quality=="default"||C.quality=="proof"?(I.push(v(C,R[0])),p.relocateComponent(F[0],I[0],C)):p.relocateComponent(F[0],R[0],C)}var le=function(Se,be){if(C.quality=="default"||C.quality=="proof"){typeof Se=="number"&&(Se=be);var ke=void 0,Ae=void 0,tt=Se.data("id");return I.forEach(function(je){tt in je&&(ke={x:je[tt].getRect().getCenterX(),y:je[tt].getRect().getCenterY()},Ae=je[tt])}),C.nodeDimensionsIncludeLabels&&(Ae.labelWidth&&(Ae.labelPosHorizontal=="left"?ke.x+=Ae.labelWidth/2:Ae.labelPosHorizontal=="right"&&(ke.x-=Ae.labelWidth/2)),Ae.labelHeight&&(Ae.labelPosVertical=="top"?ke.y+=Ae.labelHeight/2:Ae.labelPosVertical=="bottom"&&(ke.y-=Ae.labelHeight/2))),ke==null&&(ke={x:Se.position("x"),y:Se.position("y")}),{x:ke.x,y:ke.y}}else{var Oe=void 0;return R.forEach(function(je){var ct=je.nodeIndexes.get(Se.id());ct!=null&&(Oe={x:je.xCoords[ct],y:je.yCoords[ct]})}),Oe==null&&(Oe={x:Se.position("x"),y:Se.position("y")}),{x:Oe.x,y:Oe.y}}};if(C.quality=="default"||C.quality=="proof"||C.randomize){var _e=p.calcParentsWithoutChildren(x,A),ye=A.filter(function(Ue){return Ue.css("display")=="none"});C.eles=A.not(ye),A.nodes().not(":parent").not(ye).layoutPositions(T,C,le),_e.length>0&&_e.forEach(function(Ue){Ue.position(le(Ue))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),E})();o.exports=b}),657:((o,l,u)=>{var d=u(548),h=u(140).layoutBase.Matrix,f=u(140).layoutBase.SVD,p=function(m){var _=m.cy,v=m.eles,y=v.nodes(),b=v.nodes(":parent"),E=new Map,S=new Map,T=new Map,C=[],x=[],A=[],R=[],I=[],L=[],F=[],O=[],D=void 0,M=1e8,P=1e-9,N=m.piTol,$=m.samplingType,U=m.nodeSeparation,B=void 0,V=function(){for(var fe=0,Be=0,me=!1;Be<B;){fe=Math.floor(Math.random()*D),me=!1;for(var Ye=0;Ye<Be;Ye++)if(R[Ye]==fe){me=!0;break}if(!me)R[Be]=fe,Be++;else continue}},z=function(fe,Be,me){for(var Ye=[],qe=0,lt=0,it=0,He=void 0,Je=[],ht=0,rt=1,$e=0;$e<D;$e++)Je[$e]=M;for(Ye[lt]=fe,Je[fe]=0;lt>=qe;){it=Ye[qe++];for(var xe=C[it],pt=0;pt<xe.length;pt++)He=S.get(xe[pt]),Je[He]==M&&(Je[He]=Je[it]+1,Ye[++lt]=He);L[it][Be]=Je[it]*U}if(me){for(var Ve=0;Ve<D;Ve++)L[Ve][Be]<I[Ve]&&(I[Ve]=L[Ve][Be]);for(var Ut=0;Ut<D;Ut++)I[Ut]>ht&&(ht=I[Ut],rt=Ut)}return rt},G=function(fe){var Be=void 0;if(fe){Be=Math.floor(Math.random()*D);for(var Ye=0;Ye<D;Ye++)I[Ye]=M;for(var qe=0;qe<B;qe++)R[qe]=Be,Be=z(Be,qe,fe)}else{V();for(var me=0;me<B;me++)z(R[me],me,fe)}for(var lt=0;lt<D;lt++)for(var it=0;it<B;it++)L[lt][it]*=L[lt][it];for(var He=0;He<B;He++)F[He]=[];for(var Je=0;Je<B;Je++)for(var ht=0;ht<B;ht++)F[Je][ht]=L[R[ht]][Je]},Y=function(){for(var fe=f.svd(F),Be=fe.S,me=fe.U,Ye=fe.V,qe=Be[0]*Be[0]*Be[0],lt=[],it=0;it<B;it++){lt[it]=[];for(var He=0;He<B;He++)lt[it][He]=0,it==He&&(lt[it][He]=Be[it]/(Be[it]*Be[it]+qe/(Be[it]*Be[it])))}O=h.multMat(h.multMat(Ye,lt),h.transpose(me))},W=function(){for(var fe=void 0,Be=void 0,me=[],Ye=[],qe=[],lt=[],it=0;it<D;it++)me[it]=Math.random(),Ye[it]=Math.random();me=h.normalize(me),Ye=h.normalize(Ye);for(var He=P,Je=P,ht=void 0;;){for(var rt=0;rt<D;rt++)qe[rt]=me[rt];if(me=h.multGamma(h.multL(h.multGamma(qe),L,O)),fe=h.dotProduct(qe,me),me=h.normalize(me),He=h.dotProduct(qe,me),ht=Math.abs(He/Je),ht<=1+N&&ht>=1)break;Je=He}for(var $e=0;$e<D;$e++)qe[$e]=me[$e];for(Je=P;;){for(var xe=0;xe<D;xe++)lt[xe]=Ye[xe];if(lt=h.minusOp(lt,h.multCons(qe,h.dotProduct(qe,lt))),Ye=h.multGamma(h.multL(h.multGamma(lt),L,O)),Be=h.dotProduct(lt,Ye),Ye=h.normalize(Ye),He=h.dotProduct(lt,Ye),ht=Math.abs(He/Je),ht<=1+N&&ht>=1)break;Je=He}for(var pt=0;pt<D;pt++)lt[pt]=Ye[pt];x=h.multCons(qe,Math.sqrt(Math.abs(fe))),A=h.multCons(lt,Math.sqrt(Math.abs(Be)))};d.connectComponents(_,v,d.getTopMostNodes(y),E),b.forEach(function(Te){d.connectComponents(_,v,d.getTopMostNodes(Te.descendants().intersection(v)),E)});for(var Q=0,ie=0;ie<y.length;ie++)y[ie].isParent()||S.set(y[ie].id(),Q++);var Z=!0,re=!1,K=void 0;try{for(var j=E.keys()[Symbol.iterator](),se;!(Z=(se=j.next()).done);Z=!0){var le=se.value;S.set(le,Q++)}}catch(Te){re=!0,K=Te}finally{try{!Z&&j.return&&j.return()}finally{if(re)throw K}}for(var _e=0;_e<S.size;_e++)C[_e]=[];b.forEach(function(Te){for(var fe=Te.children().intersection(v);fe.nodes(":childless").length==0;)fe=fe.nodes()[0].children().intersection(v);var Be=0,me=fe.nodes(":childless")[0].connectedEdges().length;fe.nodes(":childless").forEach(function(Ye,qe){Ye.connectedEdges().length<me&&(me=Ye.connectedEdges().length,Be=qe)}),T.set(Te.id(),fe.nodes(":childless")[Be].id())}),y.forEach(function(Te){var fe=void 0;Te.isParent()?fe=S.get(T.get(Te.id())):fe=S.get(Te.id()),Te.neighborhood().nodes().forEach(function(Be){v.intersection(Te.edgesWith(Be)).length>0&&(Be.isParent()?C[fe].push(T.get(Be.id())):C[fe].push(Be.id()))})});var ye=function(fe){var Be=S.get(fe),me=void 0;E.get(fe).forEach(function(Ye){_.getElementById(Ye).isParent()?me=T.get(Ye):me=Ye,C[Be].push(me),C[S.get(me)].push(fe)})},Ue=!0,Se=!1,be=void 0;try{for(var ke=E.keys()[Symbol.iterator](),Ae;!(Ue=(Ae=ke.next()).done);Ue=!0){var tt=Ae.value;ye(tt)}}catch(Te){Se=!0,be=Te}finally{try{!Ue&&ke.return&&ke.return()}finally{if(Se)throw be}}D=S.size;var Oe=void 0;if(D>2){B=D<m.sampleSize?D:m.sampleSize;for(var je=0;je<D;je++)L[je]=[];for(var ct=0;ct<B;ct++)O[ct]=[];return m.quality=="draft"||m.step=="all"?(G($),Y(),W(),Oe={nodeIndexes:S,xCoords:x,yCoords:A}):(S.forEach(function(Te,fe){x.push(_.getElementById(fe).position("x")),A.push(_.getElementById(fe).position("y"))}),Oe={nodeIndexes:S,xCoords:x,yCoords:A}),Oe}else{var Fe=S.keys(),Xe=_.getElementById(Fe.next().value),et=Xe.position(),Ie=Xe.outerWidth();if(x.push(et.x),A.push(et.y),D==2){var we=_.getElementById(Fe.next().value),ce=we.outerWidth();x.push(et.x+Ie/2+ce/2+m.idealEdgeLength),A.push(et.y)}return Oe={nodeIndexes:S,xCoords:x,yCoords:A},Oe}};o.exports={spectralLayout:p}}),579:((o,l,u)=>{var d=u(212),h=function(p){p&&p("layout","fcose",d)};typeof cytoscape<"u"&&h(cytoscape),o.exports=h}),140:(o=>{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return n[o](u,u.exports,a),u.exports}var s=a(579);return s})()})})(j6)),j6.exports}var BXr=FXr();const UXr=sd(BXr);var HNe={L:"left",R:"right",T:"top",B:"bottom"},YNe={L:k(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:k(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:k(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:k(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},vP={L:k((t,e)=>t-e+2,"L"),R:k((t,e)=>t-2,"R"),T:k((t,e)=>t-e+2,"T"),B:k((t,e)=>t-2,"B")},$Xr=k(function(t){return tu(t)?t==="L"?"R":"L":t==="T"?"B":"T"},"getOppositeArchitectureDirection"),WNe=k(function(t){const e=t;return e==="L"||e==="R"||e==="T"||e==="B"},"isArchitectureDirection"),tu=k(function(t){const e=t;return e==="L"||e==="R"},"isArchitectureDirectionX"),k1=k(function(t){const e=t;return e==="T"||e==="B"},"isArchitectureDirectionY"),Bpe=k(function(t,e){const r=tu(t)&&k1(e),n=k1(t)&&tu(e);return r||n},"isArchitectureDirectionXY"),GXr=k(function(t){const e=t[0],r=t[1],n=tu(e)&&k1(r),i=k1(e)&&tu(r);return n||i},"isArchitecturePairXY"),zXr=k(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),nie=k(function(t,e){const r=`${t}${e}`;return zXr(r)?r:void 0},"getArchitectureDirectionPair"),qXr=k(function([t,e],r){const n=r[0],i=r[1];return tu(n)?k1(i)?[t+(n==="L"?-1:1),e+(i==="T"?1:-1)]:[t+(n==="L"?-1:1),e]:tu(i)?[t+(i==="L"?1:-1),e+(n==="T"?1:-1)]:[t,e+(n==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),VXr=k(function(t){return t==="LT"||t==="TL"?[1,1]:t==="BL"||t==="LB"?[1,-1]:t==="BR"||t==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),HXr=k(function(t,e){return Bpe(t,e)?"bend":tu(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),YXr=k(function(t){return t.type==="service"},"isArchitectureService"),WXr=k(function(t){return t.type==="junction"},"isArchitectureJunction"),Cat=k(t=>t.data(),"edgeData"),kT=k(t=>t.data(),"nodeData"),KXr=Gi.architecture,Fx,wat=(Fx=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=ms,this.getAccTitle=Fs,this.setDiagramTitle=ks,this.getDiagramTitle=bs,this.getAccDescription=Us,this.setAccDescription=Bs,this.clear()}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",ys()}addService({id:e,icon:r,in:n,title:i,iconText:a}){if(this.registeredIds[e]!==void 0)throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw new Error(`The service [${e}] cannot be placed within itself`);if(this.registeredIds[n]===void 0)throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[n]==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"service",icon:r,iconText:a,title:i,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(YXr)}addJunction({id:e,in:r}){if(this.registeredIds[e]!==void 0)throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds[e]}`);if(r!==void 0){if(e===r)throw new Error(`The junction [${e}] cannot be placed within itself`);if(this.registeredIds[r]===void 0)throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[r]==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"junction",edges:[],in:r}}getJunctions(){return Object.values(this.nodes).filter(WXr)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:r,in:n,title:i}){if(this.registeredIds?.[e]!==void 0)throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw new Error(`The group [${e}] cannot be placed within itself`);if(this.registeredIds?.[n]===void 0)throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[n]==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds[e]="group",this.groups[e]={id:e,icon:r,title:i,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:e,rhsId:r,lhsDir:n,rhsDir:i,lhsInto:a,rhsInto:s,lhsGroup:o,rhsGroup:l,title:u}){if(!WNe(n))throw new Error(`Invalid direction given for left hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(n)}`);if(!WNe(i))throw new Error(`Invalid direction given for right hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(i)}`);if(this.nodes[e]===void 0&&this.groups[e]===void 0)throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[r]===void 0&&this.groups[r]===void 0)throw new Error(`The right-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);const d=this.nodes[e].in,h=this.nodes[r].in;if(o&&d&&h&&d==h)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(l&&d&&h&&d==h)throw new Error(`The right-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const f={lhsId:e,lhsDir:n,lhsInto:a,lhsGroup:o,rhsId:r,rhsDir:i,rhsInto:s,rhsGroup:l,title:u};this.edges.push(f),this.nodes[e]&&this.nodes[r]&&(this.nodes[e].edges.push(this.edges[this.edges.length-1]),this.nodes[r].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const e={},r=Object.entries(this.nodes).reduce((l,[u,d])=>(l[u]=d.edges.reduce((h,f)=>{const p=this.getNode(f.lhsId)?.in,g=this.getNode(f.rhsId)?.in;if(p&&g&&p!==g){const m=HXr(f.lhsDir,f.rhsDir);m!=="bend"&&(e[p]??={},e[p][g]=m,e[g]??={},e[g][p]=m)}if(f.lhsId===u){const m=nie(f.lhsDir,f.rhsDir);m&&(h[m]=f.rhsId)}else{const m=nie(f.rhsDir,f.lhsDir);m&&(h[m]=f.lhsId)}return h},{}),l),{}),n=Object.keys(r)[0],i={[n]:1},a=Object.keys(r).reduce((l,u)=>u===n?l:{...l,[u]:1},{}),s=k(l=>{const u={[l]:[0,0]},d=[l];for(;d.length>0;){const h=d.shift();if(h){i[h]=1,delete a[h];const f=r[h],[p,g]=u[h];Object.entries(f).forEach(([m,_])=>{i[_]||(u[_]=qXr([p,g],m),d.push(_))})}}return u},"BFS"),o=[s(n)];for(;Object.keys(a).length>0;)o.push(s(Object.keys(a)[0]));this.dataStructures={adjList:r,spatialMaps:o,groupAlignments:e}}return this.dataStructures}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}getConfig(){return _o({...KXr,...Ln().architecture})}getConfigField(e){return this.getConfig()[e]}},k(Fx,"ArchitectureDB"),Fx),jXr=k((t,e)=>{Lg(t,e),t.groups.map(r=>e.addGroup(r)),t.services.map(r=>e.addService({...r,type:"service"})),t.junctions.map(r=>e.addJunction({...r,type:"junction"})),t.edges.map(r=>e.addEdge(r))},"populateDb"),xat={parser:{yy:void 0},parse:k(async t=>{const e=await cp("architecture",t);Pe.debug(e);const r=xat.parser?.yy;if(!(r instanceof wat))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");jXr(e,r)},"parse")},XXr=k(t=>`
  .edge {
    stroke-width: ${t.archEdgeWidth};
    stroke: ${t.archEdgeColor};
    fill: none;
  }

  .arrow {
    fill: ${t.archEdgeArrowColor};
  }

  .node-bkg {
    fill: none;
    stroke: ${t.archGroupBorderColor};
    stroke-width: ${t.archGroupBorderWidth};
    stroke-dasharray: 8;
  }
  .node-icon-text {
    display: flex; 
    align-items: center;
  }
  
  .node-icon-text > div {
    color: #fff;
    margin: 1px;
    height: fit-content;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
`,"getStyles"),QXr=XXr,xS=k(t=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${t}</g>`,"wrapIcon"),k3={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:xS('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:xS('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:xS('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:xS('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:xS('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:dUe,blank:{body:xS("")}}},ZXr=k(async function(t,e,r,n){const i=r.getConfigField("padding"),a=r.getConfigField("iconSize"),s=a/2,o=a/6,l=o/2;await Promise.all(e.edges().map(async u=>{const{source:d,sourceDir:h,sourceArrow:f,sourceGroup:p,target:g,targetDir:m,targetArrow:_,targetGroup:v,label:y}=Cat(u);let{x:b,y:E}=u[0].sourceEndpoint();const{x:S,y:T}=u[0].midpoint();let{x:C,y:x}=u[0].targetEndpoint();const A=i+4;if(p&&(tu(h)?b+=h==="L"?-A:A:E+=h==="T"?-A:A+18),v&&(tu(m)?C+=m==="L"?-A:A:x+=m==="T"?-A:A+18),!p&&r.getNode(d)?.type==="junction"&&(tu(h)?b+=h==="L"?s:-s:E+=h==="T"?s:-s),!v&&r.getNode(g)?.type==="junction"&&(tu(m)?C+=m==="L"?s:-s:x+=m==="T"?s:-s),u[0]._private.rscratch){const R=t.insert("g");if(R.insert("path").attr("d",`M ${b},${E} L ${S},${T} L${C},${x} `).attr("class","edge").attr("id",`${n}-${ZT(d,g,{prefix:"L"})}`),f){const I=tu(h)?vP[h](b,o):b-l,L=k1(h)?vP[h](E,o):E-l;R.insert("polygon").attr("points",YNe[h](o)).attr("transform",`translate(${I},${L})`).attr("class","arrow")}if(_){const I=tu(m)?vP[m](C,o):C-l,L=k1(m)?vP[m](x,o):x-l;R.insert("polygon").attr("points",YNe[m](o)).attr("transform",`translate(${I},${L})`).attr("class","arrow")}if(y){const I=Bpe(h,m)?"XY":tu(h)?"X":"Y";let L=0;I==="X"?L=Math.abs(b-C):I==="Y"?L=Math.abs(E-x)/1.5:L=Math.abs(b-C)/2;const F=R.append("g");if(await xu(F,y,{useHtmlLabels:!1,width:L,classes:"architecture-service-label"},vt()),F.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),I==="X")F.attr("transform","translate("+S+", "+T+")");else if(I==="Y")F.attr("transform","translate("+S+", "+T+") rotate(-90)");else if(I==="XY"){const O=nie(h,m);if(O&&GXr(O)){const D=F.node().getBoundingClientRect(),[M,P]=VXr(O);F.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*M*P*45})`);const N=F.node().getBoundingClientRect();F.attr("transform",`
                translate(${S}, ${T-D.height/2})
                translate(${M*N.width/2}, ${P*N.height/2})
                rotate(${-1*M*P*45}, 0, ${D.height/2})
              `)}}}}}))},"drawEdges"),JXr=k(async function(t,e,r,n){const a=r.getConfigField("padding")*.75,s=r.getConfigField("fontSize"),l=r.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async u=>{const d=kT(u);if(d.type==="group"){const{h,w:f,x1:p,y1:g}=u.boundingBox(),m=t.append("rect");m.attr("id",`${n}-group-${d.id}`).attr("x",p+l).attr("y",g+l).attr("width",f).attr("height",h).attr("class","node-bkg");const _=t.append("g");let v=p,y=g;if(d.icon){const b=_.append("g");b.html(`<g>${await v1(d.icon,{height:a,width:a,fallbackPrefix:k3.prefix})}</g>`),b.attr("transform","translate("+(v+l+1)+", "+(y+l+1)+")"),v+=a,y+=s/2-1-2}if(d.label){const b=_.append("g");await xu(b,d.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},vt()),b.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),b.attr("transform","translate("+(v+l+4)+", "+(y+l+2)+")")}r.setElementForId(d.id,m)}}))},"drawGroups"),eQr=k(async function(t,e,r,n){const i=vt();for(const a of r){const s=e.append("g"),o=t.getConfigField("iconSize");if(a.title){const h=s.append("g");await xu(h,a.title,{useHtmlLabels:!1,width:o*1.5,classes:"architecture-service-label"},i),h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),h.attr("transform","translate("+o/2+", "+o+")")}const l=s.append("g");if(a.icon)l.html(`<g>${await v1(a.icon,{height:o,width:o,fallbackPrefix:k3.prefix})}</g>`);else if(a.iconText){l.html(`<g>${await v1("blank",{height:o,width:o,fallbackPrefix:k3.prefix})}</g>`);const p=l.append("g").append("foreignObject").attr("width",o).attr("height",o).append("div").attr("class","node-icon-text").attr("style",`height: ${o}px;`).append("div").html(ta(a.iconText,i)),g=parseInt(window.getComputedStyle(p.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;p.attr("style",`-webkit-line-clamp: ${Math.floor((o-2)/g)};`)}else l.append("path").attr("class","node-bkg").attr("id",`${n}-node-${a.id}`).attr("d",`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);s.attr("id",`${n}-service-${a.id}`).attr("class","architecture-service");const{width:u,height:d}=s.node().getBBox();a.width=u,a.height=d,t.setElementForId(a.id,s)}return 0},"drawServices"),tQr=k(function(t,e,r,n){r.forEach(i=>{const a=e.append("g"),s=t.getConfigField("iconSize");a.append("g").append("rect").attr("id",`${n}-node-${i.id}`).attr("fill-opacity","0").attr("width",s).attr("height",s),a.attr("class","architecture-junction");const{width:l,height:u}=a._groups[0][0].getBBox();a.width=l,a.height=u,t.setElementForId(i.id,a)})},"drawJunctions");fUe([{name:k3.prefix,icons:k3}]);yg.use(UXr);function Aat(t,e,r){t.forEach(n=>{e.add({group:"nodes",data:{type:"service",id:n.id,icon:n.icon,label:n.title,parent:n.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}k(Aat,"addServices");function Rat(t,e,r){t.forEach(n=>{e.add({group:"nodes",data:{type:"junction",id:n.id,parent:n.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}k(Rat,"addJunctions");function Oat(t,e){e.nodes().map(r=>{const n=kT(r);if(n.type==="group")return;n.x=r.position().x,n.y=r.position().y,t.getElementById(n.id).attr("transform","translate("+(n.x||0)+","+(n.y||0)+")")})}k(Oat,"positionNodes");function Iat(t,e){t.forEach(r=>{e.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}k(Iat,"addGroups");function Nat(t,e){t.forEach(r=>{const{lhsId:n,rhsId:i,lhsInto:a,lhsGroup:s,rhsInto:o,lhsDir:l,rhsDir:u,rhsGroup:d,title:h}=r,f=Bpe(r.lhsDir,r.rhsDir)?"segments":"straight",p={id:`${n}-${i}`,label:h,source:n,sourceDir:l,sourceArrow:a,sourceGroup:s,sourceEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%",target:i,targetDir:u,targetArrow:o,targetGroup:d,targetEndpoint:u==="L"?"0 50%":u==="R"?"100% 50%":u==="T"?"50% 0":"50% 100%"};e.add({group:"edges",data:p,classes:f})})}k(Nat,"addEdges");function kat(t,e,r){const n=k((o,l)=>Object.entries(o).reduce((u,[d,h])=>{let f=0;const p=Object.entries(h);if(p.length===1)return u[d]=p[0][1],u;for(let g=0;g<p.length-1;g++)for(let m=g+1;m<p.length;m++){const[_,v]=p[g],[y,b]=p[m];if(r[_]?.[y]===l)u[d]??=[],u[d]=[...u[d],...v,...b];else if(_==="default"||y==="default")u[d]??=[],u[d]=[...u[d],...v,...b];else{const S=`${d}-${f++}`;u[S]=v;const T=`${d}-${f++}`;u[T]=b}}return u},{}),"flattenAlignments"),i=e.map(o=>{const l={},u={};return Object.entries(o).forEach(([d,[h,f]])=>{const p=t.getNode(d)?.in??"default";l[f]??={},l[f][p]??=[],l[f][p].push(d),u[h]??={},u[h][p]??=[],u[h][p].push(d)}),{horiz:Object.values(n(l,"horizontal")).filter(d=>d.length>1),vert:Object.values(n(u,"vertical")).filter(d=>d.length>1)}}),[a,s]=i.reduce(([o,l],{horiz:u,vert:d})=>[[...o,...u],[...l,...d]],[[],[]]);return{horizontal:a,vertical:s}}k(kat,"getAlignments");function Dat(t,e){const r=[],n=k(a=>`${a[0]},${a[1]}`,"posToStr"),i=k(a=>a.split(",").map(s=>parseInt(s)),"strToPos");return t.forEach(a=>{const s=Object.fromEntries(Object.entries(a).map(([d,h])=>[n(h),d])),o=[n([0,0])],l={},u={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;o.length>0;){const d=o.shift();if(d){l[d]=1;const h=s[d];if(h){const f=i(d);Object.entries(u).forEach(([p,g])=>{const m=n([f[0]+g[0],f[1]+g[1]]),_=s[m];_&&!l[m]&&(o.push(m),r.push({[HNe[p]]:_,[HNe[$Xr(p)]]:h,gap:1.5*e.getConfigField("iconSize")}))})}}}}),r}k(Dat,"getRelativeConstraints");function Mat(t,e,r,n,i,{spatialMaps:a,groupAlignments:s}){return new Promise(o=>{const l=dr("body").append("div").attr("id","cy").attr("style","display:none"),u=yg({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${i.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${i.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),Iat(r,u),Aat(t,u,i),Rat(e,u,i),Nat(n,u);const d=kat(i,a,s),h=Dat(a,i),f=i.getConfigField("iconSize"),p=i.getConfigField("idealEdgeLengthMultiplier")*f,g=.5*f,m=i.getConfigField("edgeElasticity"),_=u.layout({name:"fcose",quality:"proof",randomize:i.getConfigField("randomize"),nodeSeparation:i.getConfigField("nodeSeparation"),numIter:i.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(v){const[y,b]=v.connectedNodes(),{parent:E}=kT(y),{parent:S}=kT(b);return E===S?p:g},edgeElasticity(v){const[y,b]=v.connectedNodes(),{parent:E}=kT(y),{parent:S}=kT(b);return E===S?m:.001},alignmentConstraint:d,relativePlacementConstraint:h});_.one("layoutstop",()=>{function v(y,b,E,S){let T,C;const{x,y:A}=y,{x:R,y:I}=b;C=(S-A+(x-E)*(A-I)/(x-R))/Math.sqrt(1+Math.pow((A-I)/(x-R),2)),T=Math.sqrt(Math.pow(S-A,2)+Math.pow(E-x,2)-Math.pow(C,2));const L=Math.sqrt(Math.pow(R-x,2)+Math.pow(I-A,2));T=T/L;let F=(R-x)*(S-A)-(I-A)*(E-x);switch(!0){case F>=0:F=1;break;case F<0:F=-1;break}let O=(R-x)*(E-x)+(I-A)*(S-A);switch(!0){case O>=0:O=1;break;case O<0:O=-1;break}return C=Math.abs(C)*F,T=T*O,{distances:C,weights:T}}k(v,"getSegmentWeights"),u.startBatch();for(const y of Object.values(u.edges()))if(y.data?.()){const{x:b,y:E}=y.source().position(),{x:S,y:T}=y.target().position();if(b!==S&&E!==T){const C=y.sourceEndpoint(),x=y.targetEndpoint(),{sourceDir:A}=Cat(y),[R,I]=k1(A)?[C.x,x.y]:[x.x,C.y],{weights:L,distances:F}=v(C,x,R,I);y.style("segment-distances",F),y.style("segment-weights",L)}}u.endBatch(),_.run()}),_.run(),u.ready(v=>{Pe.info("Ready",v),o(u)})})}k(Mat,"layoutArchitecture");var rQr=k(async(t,e,r,n)=>{const i=n.db;i.setDiagramId(e);const a=i.getServices(),s=i.getJunctions(),o=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=ud(e),h=d.append("g");h.attr("class","architecture-edges");const f=d.append("g");f.attr("class","architecture-services");const p=d.append("g");p.attr("class","architecture-groups"),await eQr(i,f,a,e),tQr(i,f,s,e);const g=await Mat(a,s,o,l,i,u);await ZXr(h,g,i,e),await JXr(p,g,i,e),Oat(i,g),CR(void 0,d,i.getConfigField("padding"),i.getConfigField("useMaxWidth"))},"draw"),nQr={draw:rQr},iQr={parser:xat,get db(){return new wat},renderer:nQr,styles:QXr};const aQr=Object.freeze(Object.defineProperty({__proto__:null,diagram:iQr},Symbol.toStringTag,{value:"Module"}));var Lat="position frame",Pat="frame positioned",iie="position relation",Fat="relation positioned",sQr=k(function(t){Pe.debug("options str",t)},"setOptions"),oQr=k(function(){return{}},"getOptions"),lQr=k(function(){Bat(),ys()},"clear");function Bat(){Upe={}}k(Bat,"reset");var cQr=Gi.eventmodeling,uQr=k(()=>_o({...cQr,...Ln().eventmodeling}),"getConfig"),Upe={};function Uat(){let t=dQr;const{ast:e}=Upe,r=$pe();if(!e)throw new Error("No data for EventModel");return e.frames.forEach((n,i)=>{const a=Yat(n,e.dataEntities,r);t=J6(t,{$kind:Lat,index:i,frame:n,textProps:a});let s;Zat(n)?(Pe.debug("source frame",n.sourceFrames),s=e.frames.filter(o=>n.sourceFrames.some(l=>l.$refText===o.name)),s.forEach(o=>{t=J6(t,{$kind:iie,index:i,frame:n,sourceFrame:o})})):t=J6(t,{$kind:iie,index:i,frame:n})}),t={...t,sortedSwimlanesArray:Gpe(t.swimlanes)},t}k(Uat,"getState");function $at(t){Upe.ast=t}k($at,"setAst");var va={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function $pe(){return va}k($pe,"getDiagramProps");var dQr={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function Gat(t){const e=t.split(".");if(e.length===2)return e[0]}k(Gat,"extractNamespace");function zat(t){const e=t.split(".");return e.length===2?e[1]:t}k(zat,"extractName");function qat(t,e){if(!(!e||e.length===0))return Object.values(t).find(r=>r.namespace===e)}k(qat,"findSwimlaneByNamespace");function Z6(t,e,r){return Math.max(e,...Object.keys(t).filter(n=>{const i=Number.parseInt(n);return i>e&&i<r}).map(n=>Number.parseInt(n)))+1}k(Z6,"findNextAvailableIndex");function Vat(t,e){const r=Gat(t.entityIdentifier),n=qat(e,r);switch(t.modelEntityType){case"ui":case"pcr":case"processor":return n?{index:n.index,label:n.namespace||va.labelUiAutomation}:r?{index:Z6(e,0,100),label:va.labelUiAutomationPrefix+r}:{index:0,label:va.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return n?{index:n.index,label:n.namespace||va.labelCommandReadModel}:r?{index:Z6(e,100,200),label:va.labelCommandReadModelPrefix+r}:{index:100,label:va.labelCommandReadModel};default:return n?{index:n.index,label:n.namespace||va.labelEvents}:r?{index:Z6(e,200,300),label:va.labelEventsPrefix+r}:{index:200,label:va.labelEvents}}}k(Vat,"calculateSwimlaneProps");function Hat(t){const{themeVariables:e}=Ln();switch(t.modelEntityType){case"ui":return{fill:e.emUiFill??"white",stroke:e.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:e.emProcessorFill??"#edb3f6",stroke:e.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:e.emReadModelFill??"#d3f1a2",stroke:e.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:e.emCommandFill??"#bcd6fe",stroke:e.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:e.emEventFill??"#ffb778",stroke:e.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}k(Hat,"calculateEntityVisualProps");function Yat(t,e,r){const n=Ln(),i=ta(zat(t.entityIdentifier)??"",n);let a;const s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let l=`<b>${bN(i,r.textMaxWidth,s)}</b>`;if(t.dataInlineValue&&(a=t.dataInlineValue,a=a.substring(a.indexOf("{")+1),a=a.substring(0,a.lastIndexOf("}")-1),a=ta(a,n),a=bN(a,r.textMaxWidth,s),a=a.replaceAll(" ","&nbsp;")),t.dataReference){const g=e.find(m=>m.name===t.dataReference?.$refText);g&&(a=g.dataBlockValue,a=a.substring(a.indexOf(`{
`)+2),a=a.substring(0,a.lastIndexOf("}")-1),a=ta(a,n),a=bN(a,r.textMaxWidth,s),a=a.replaceAll(" ","&nbsp;"),a+="<br/>")}const u=a!==void 0;u&&(l+=`<br/><br/><code style="text-align: left; display: block;max-width:${r.textMaxWidth}px">${a}</code>`);const d={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},h=qU(l,d),f=u?h.width/3:h.width,p={content:l,width:f,height:h.height};return Pe.debug(`[${t.name}] ${t.entityIdentifier} text`,p),p}k(Yat,"calculateTextProps");function Wat(t,e){const r=e,n=Hat(r.frame),i={width:r.textProps.width+2*va.boxTextPadding,height:r.textProps.height+2*va.boxTextPadding};return[{$kind:Pat,frame:r.frame,index:r.index,visual:n,dimension:i,textProps:r.textProps}]}k(Wat,"decidePositionFrame");function Kat(t,e,r){return e===void 0?va.contentStartX:e.index===t.index&&t.r?t.r+va.boxPadding:r===void 0?va.contentStartX:r.r-va.boxOverlap+va.boxPadding}k(Kat,"calculateX");function jat(t,e){const r=[...t.map(n=>n.r),e];return Math.max(...r)}k(jat,"calculateMaxRight");function Gpe(t){return Object.values(t).sort((e,r)=>e.index-r.index)}k(Gpe,"sortedSwimlanesArray");function Xat(t,e){const r=e,n=Vat(r.frame,t.swimlanes);let i;n.index in t.swimlanes?i=t.swimlanes[n.index]:i={index:n.index,label:n.label,r:0,y:n.index*va.swimlaneMinHeight+va.swimlaneGap,height:va.swimlaneMinHeight,maxHeight:va.swimlaneMinHeight};const a=t.boxes.length>0?t.boxes[t.boxes.length-1]:void 0,s=t.previousSwimlaneNumber!==void 0?t.swimlanes[t.previousSwimlaneNumber]:void 0,o={width:Math.max(va.boxMinWidth,Math.min(va.boxMaxWidth,r.dimension.width))+2*va.boxPadding,height:Math.max(va.boxMinHeight,Math.min(va.boxMaxHeight,r.dimension.height))+2*va.boxPadding},l=Kat(i,s,a),u=l+o.width+va.boxPadding,d=jat(Object.values(t.swimlanes),u);i.r=l+o.width,i.maxHeight=Math.max(i.maxHeight,o.height),i.height=Math.max(va.swimlaneMinHeight,i.maxHeight)+2*va.swimlanePadding;const h={x:l,y:va.swimlanePadding+i.y,r:u,dimension:o,leftSibling:!1,swimlane:i,visual:r.visual,text:r.textProps.content,frame:r.frame,index:r.index},f={...t,boxes:[...t.boxes,h],swimlanes:{...t.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:n.index,previousFrame:r.frame,maxR:d},p=Gpe(f.swimlanes);p.length>0&&(p[0].y=0);for(let g=1;g<p.length;g++){const m=p[g],_=p[g-1];m.y=_.y+_.height+va.swimlaneGap}return f}k(Xat,"evolveFramePositioned");function Qat(t,e){return t===0&&e.sourceFrames.length===0}k(Qat,"isFirstFrame");function Zat(t){return t.sourceFrames!==void 0&&t.sourceFrames!==null&&t.sourceFrames.length>0}k(Zat,"hasSourceFrame");function aie(t,e){if(e!=null)return t.find(r=>r.frame.name===e.name)}k(aie,"findBoxByFrame");function Jat(t,e,r){if(!(r<0))for(let n=r;n>=0;n--){const i=t[n];if(i.swimlane.index!==e)return i}}k(Jat,"findBoxByLineIndex");function est(t,e){const r=e;if(wrt(r.frame)||Qat(r.index,r.frame))return[];const n=aie(t.boxes,r.frame);if(n===void 0)throw new Error(`Target box not found for frame ${r.frame.name}`);let i;return r.sourceFrame?i=aie(t.boxes,r.sourceFrame):i=Jat(t.boxes,n.swimlane.index,r.index-1),i===void 0?[]:[{$kind:Fat,frame:r.frame,index:r.index,sourceBox:i,targetBox:n}]}k(est,"decidePositionRelation");function tst(t,e){const r=e,n={visual:{fill:"none",stroke:"#000"},source:{x:r.sourceBox.x,y:r.sourceBox.y},target:{x:r.targetBox.x,y:r.targetBox.y},sourceBox:r.sourceBox,targetBox:r.targetBox};return{...t,relations:[...t.relations,n]}}k(tst,"evolveRelationPositioned");var hQr={[Lat]:Wat,[iie]:est},fQr={[Pat]:Xat,[Fat]:tst};function rst(t,e){const r=hQr[e.$kind];if(r==null)return[];const n=r(t,e);return Pe.debug("decided events",n),n}k(rst,"decide");function nst(t,e){const r=e.reduce((n,i)=>{const a=fQr[i.$kind];return a==null?n:a(n,i)},t);return Pe.debug("evolve events",{state:t,newState:r,events:e}),r}k(nst,"evolve");function J6(t,e){const r=rst(t,e);return nst(t,r)}k(J6,"dispatch");var sie={getConfig:uQr,setOptions:sQr,getOptions:oQr,clear:lQr,setAccTitle:ms,getAccTitle:Fs,getAccDescription:Us,setAccDescription:Bs,setDiagramTitle:ks,getDiagramTitle:bs,setAst:$at,getDiagramProps:$pe,getState:Uat},pQr={parse:k(async t=>{const e=await cp("eventmodeling",t);Pe.debug(e),sie.setAst(e),Lg(e,sie)},"parse")},gQr=vt(),mQr=gQr?.eventmodeling;function ist(t,e){return r=>{const n=r.swimlane.y+e.swimlanePadding,i=t.append("g").attr("class","em-box");i.append("rect").attr("x",r.x).attr("y",n).attr("rx","3").attr("width",r.dimension.width).attr("height",r.dimension.height).attr("stroke",r.visual.stroke).attr("fill",r.visual.fill),i.append("foreignObject").attr("x",r.x+e.boxPadding).attr("y",n+10).attr("width",r.dimension.width-2*e.boxPadding).attr("height",r.dimension.height-2*e.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(r.text)}}k(ist,"renderD3Box");function ast(t,e){return t>e}k(ast,"dirUpwards");function sst(t,e,r,n){return i=>{const a=i.sourceBox.swimlane.y+e.swimlanePadding,s=i.targetBox.swimlane.y+e.swimlanePadding,o=ast(a,s),l=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3;let d,h;Pe.debug(`rendering relation up=${o} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),o?(d=a,h=s+i.targetBox.dimension.height):(d=a+i.sourceBox.dimension.height,h=s);const f=n.emRelationStroke??i.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",i.visual.fill).attr("stroke",f).attr("stroke-width","1").attr("marker-end",`url(#${r})`).attr("d",`M${l} ${d} L${u} ${h}`)}}k(sst,"renderD3Relation");function ost(t,e,r,n){return i=>{const a=t.append("g").attr("class","em-swimlane"),s=n.emSwimlaneBackgroundOdd??"rgb(250,250,250)",o=n.emSwimlaneBackgroundStroke??"rgb(240,240,240)";a.append("rect").attr("x",0).attr("y",i.y).attr("rx","3").attr("width",e+r.swimlanePadding).attr("height",i.height).attr("fill",s).attr("stroke",o),a.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",i.y+30).text(i.label)}}k(ost,"renderD3Swimlane");var _Qr=k(function(t,e,r,n){if(Pe.debug("in eventmodeling renderer",t+`
`,"id:",e,r),!mQr)throw new Error("EventModeling config not found");const i=n.db,{themeVariables:a,eventmodeling:s}=vt(),o=dr(`[id="${e}"]`),l=i.getDiagramProps(),u=i.getState(),d=`em-arrowhead-${e}`,h=a.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(ost(o,u.maxR,l,a)),u.boxes.forEach(ist(o,l)),u.relations.forEach(sst(o,l,d,a)),o.append("defs").append("marker").attr("id",d).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",h),lce(void 0,o,s?.padding??30,s?.useMaxWidth)},"draw"),vQr={draw:_Qr},yQr=k(t=>"","getStyles"),bQr=yQr,EQr={parser:pQr,db:sie,renderer:vQr,styles:bQr};const SQr=Object.freeze(Object.defineProperty({__proto__:null,diagram:EQr},Symbol.toStringTag,{value:"Module"}));var oie=(function(){var t=k(function(v,y,b,E){for(b=b||{},E=v.length;E--;b[v[E]]=y);return b},"o"),e=[1,4],r=[1,14],n=[1,12],i=[1,13],a=[6,7,8],s=[1,20],o=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],h=[1,23],f=[1,24],p=[1,6,7,11,13,14],g={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:k(function(y,b,E,S,T,C,x){var A=C.length-1;switch(T){case 6:case 7:return S;case 15:S.addNode(C[A-1].length,C[A].trim());break;case 16:S.addNode(0,C[A].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:i},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:r,12:15,13:n,14:i},{6:r,9:16,12:11,13:n,14:i},{6:s,7:o,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:o,10:22,11:l},{1:[2,7],6:r,12:15,13:n,14:i},t(d,[2,14],{7:h,11:f}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(u,[2,15]),t(d,[2,13],{7:h,11:f}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:k(function(y,b){if(b.recoverable)this.trace(y);else{var E=new Error(y);throw E.hash=b,E}},"parseError"),parse:k(function(y){var b=this,E=[0],S=[],T=[null],C=[],x=this.table,A="",R=0,I=0,L=2,F=1,O=C.slice.call(arguments,1),D=Object.create(this.lexer),M={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(M.yy[P]=this.yy[P]);D.setInput(y,M.yy),M.yy.lexer=D,M.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var N=D.yylloc;C.push(N);var $=D.options&&D.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(j){E.length=E.length-2*j,T.length=T.length-j,C.length=C.length-j}k(U,"popStack");function B(){var j;return j=S.pop()||D.lex()||F,typeof j!="number"&&(j instanceof Array&&(S=j,j=S.pop()),j=b.symbols_[j]||j),j}k(B,"lex");for(var V,z,G,Y,W={},Q,ie,Z,re;;){if(z=E[E.length-1],this.defaultActions[z]?G=this.defaultActions[z]:((V===null||typeof V>"u")&&(V=B()),G=x[z]&&x[z][V]),typeof G>"u"||!G.length||!G[0]){var K="";re=[];for(Q in x[z])this.terminals_[Q]&&Q>L&&re.push("'"+this.terminals_[Q]+"'");D.showPosition?K="Parse error on line "+(R+1)+`:
`+D.showPosition()+`
Expecting `+re.join(", ")+", got '"+(this.terminals_[V]||V)+"'":K="Parse error on line "+(R+1)+": Unexpected "+(V==F?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(K,{text:D.match,token:this.terminals_[V]||V,line:D.yylineno,loc:N,expected:re})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+V);switch(G[0]){case 1:E.push(V),T.push(D.yytext),C.push(D.yylloc),E.push(G[1]),V=null,I=D.yyleng,A=D.yytext,R=D.yylineno,N=D.yylloc;break;case 2:if(ie=this.productions_[G[1]][1],W.$=T[T.length-ie],W._$={first_line:C[C.length-(ie||1)].first_line,last_line:C[C.length-1].last_line,first_column:C[C.length-(ie||1)].first_column,last_column:C[C.length-1].last_column},$&&(W._$.range=[C[C.length-(ie||1)].range[0],C[C.length-1].range[1]]),Y=this.performAction.apply(W,[A,I,R,M.yy,G[1],T,C].concat(O)),typeof Y<"u")return Y;ie&&(E=E.slice(0,-1*ie*2),T=T.slice(0,-1*ie),C=C.slice(0,-1*ie)),E.push(this.productions_[G[1]][0]),T.push(W.$),C.push(W._$),Z=x[E[E.length-2]][E[E.length-1]],E.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var v={EOF:1,parseError:k(function(b,E){if(this.yy.parser)this.yy.parser.parseError(b,E);else throw new Error(b)},"parseError"),setInput:k(function(y,b){return this.yy=b||this.yy||{},this._input=y,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var y=this._input[0];this.yytext+=y,this.yyleng++,this.offset++,this.match+=y,this.matched+=y;var b=y.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),y},"input"),unput:k(function(y){var b=y.length,E=y.split(/(?:\r\n?|\n)/g);this._input=y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===S.length?this.yylloc.first_column:0)+S[S.length-E.length].length-E[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(y){this.unput(this.match.slice(y))},"less"),pastInput:k(function(){var y=this.matched.substr(0,this.matched.length-this.match.length);return(y.length>20?"...":"")+y.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var y=this.match;return y.length<20&&(y+=this._input.substr(0,20-y.length)),(y.substr(0,20)+(y.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var y=this.pastInput(),b=new Array(y.length+1).join("-");return y+this.upcomingInput()+`
`+b+"^"},"showPosition"),test_match:k(function(y,b){var E,S,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),S=y[0].match(/(?:\r\n?|\n).*/g),S&&(this.yylineno+=S.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+y[0].length},this.yytext+=y[0],this.match+=y[0],this.matches=y,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(y[0].length),this.matched+=y[0],E=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var C in T)this[C]=T[C];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var y,b,E,S;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),C=0;C<T.length;C++)if(E=this._input.match(this.rules[T[C]]),E&&(!b||E[0].length>b[0].length)){if(b=E,S=C,this.options.backtrack_lexer){if(y=this.test_match(E,T[C]),y!==!1)return y;if(this._backtrack){b=!1;continue}else return!1}else if(!this.options.flex)break}return b?(y=this.test_match(b,T[S]),y!==!1?y:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var b=this.next();return b||this.lex()},"lex"),begin:k(function(b){this.conditionStack.push(b)},"begin"),popState:k(function(){var b=this.conditionStack.length-1;return b>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(b){return b=this.conditionStack.length-1-Math.abs(b||0),b>=0?this.conditionStack[b]:"INITIAL"},"topState"),pushState:k(function(b){this.begin(b)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(b,E,S,T){switch(S){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return v})();g.lexer=m;function _(){this.yy={}}return k(_,"Parser"),_.prototype=g,g.Parser=_,new _})();oie.parser=oie;var TQr=oie,Bx,CQr=(Bx=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,ys()}getRoot(){return this.root}addNode(e,r){const n=Cr.sanitizeText(r,vt());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],ks(n);return}this.baseLevel??=e;let i=e-this.baseLevel+1;for(i<=0&&(i=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=i;)this.stack.pop();const a=this.stack[this.stack.length-1].node,s={text:n,children:[]};a.children.push(s),this.stack.push({level:i,node:s})}getAccTitle(){return Fs()}setAccTitle(e){ms(e)}getAccDescription(){return Us()}setAccDescription(e){Bs(e)}getDiagramTitle(){return bs()}setDiagramTitle(e){ks(e)}},k(Bx,"IshikawaDB"),Bx),wQr=14,AS=250,xQr=30,AQr=60,RQr=5,lst=82*Math.PI/180,KNe=Math.cos(lst),jNe=Math.sin(lst),XNe=k((t,e,r)=>{const n=t.node().getBBox(),i=n.width+e*2,a=n.height+e*2;Xo(t,a,i,r),t.attr("viewBox",`${n.x-e} ${n.y-e} ${i} ${a}`)},"applyPaddedViewBox"),OQr=k((t,e,r,n)=>{const a=n.db.getRoot();if(!a)return;const s=vt(),{look:o,handDrawnSeed:l,themeVariables:u}=s,d=B0(s.fontSize)[0]??wQr,h=o==="handDrawn",f=a.children??[],p=s.ishikawa?.diagramPadding??20,g=s.ishikawa?.useMaxWidth??!1,m=ud(e),_=m.append("g").attr("class","ishikawa"),v=h?mn.svg(m.node()):void 0,y=v?{roughSvg:v,seed:l??0,lineColor:u?.lineColor??"#333",fillColor:u?.mainBkg??"#fff"}:void 0,b=`ishikawa-arrow-${e}`;h||_.append("defs").append("marker").attr("id",b).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let E=0,S=AS;const T=h?void 0:hC(_,E,S,E,S,"ishikawa-spine");if(IQr(_,E,S,a.text,d,y),!f.length){h&&hC(_,E,S,E,S,"ishikawa-spine",y),XNe(m,p,g);return}E-=20;const C=f.filter((M,P)=>P%2===0),x=f.filter((M,P)=>P%2===1),A=QNe(C),R=QNe(x),I=A.total+R.total;let L=AS,F=AS;if(I>0){const M=AS*2,P=AS*.3;L=Math.max(P,M*(A.total/I)),F=Math.max(P,M*(R.total/I))}const O=d*2;L=Math.max(L,A.max*O),F=Math.max(F,R.max*O),S=Math.max(L,AS),T&&T.attr("y1",S).attr("y2",S),_.select(".ishikawa-head-group").attr("transform",`translate(0,${S})`);const D=Math.ceil(f.length/2);for(let M=0;M<D;M++){const P=_.append("g").attr("class","ishikawa-pair");for(const[N,$,U]of[[f[M*2],-1,L],[f[M*2+1],1,F]])N&&DQr(P,N,E,S,$,U,d,y);E=P.selectAll("text").nodes().reduce((N,$)=>Math.min(N,$.getBBox().x),1/0)}if(h)hC(_,E,S,0,S,"ishikawa-spine",y);else{T.attr("x1",E);const M=`url(#${b})`;_.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",M)}XNe(m,p,g)},"draw"),QNe=k(t=>{const e=k(r=>r.children.reduce((n,i)=>n+1+e(i),0),"countDescendants");return t.reduce((r,n)=>{const i=e(n);return r.total+=i,r.max=Math.max(r.max,i),r},{total:0,max:0})},"sideStats"),IQr=k((t,e,r,n,i,a)=>{const s=Math.max(6,Math.floor(110/(i*.6))),o=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${r})`),l=OF(o,cst(n,s),0,0,"ishikawa-head-label","start",i),u=l.node().getBBox(),d=Math.max(60,u.width+6),h=Math.max(40,u.height*2+40),f=`M 0 ${-h/2} L 0 ${h/2} Q ${d*2.4} 0 0 ${-h/2} Z`;if(a){const p=a.roughSvg.path(f,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});o.insert(()=>p,":first-child").attr("class","ishikawa-head")}else o.insert("path",":first-child").attr("class","ishikawa-head").attr("d",f);l.attr("transform",`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},"drawHead"),NQr=k((t,e)=>{const r=[],n=[],i=k((a,s,o)=>{const l=e===-1?[...a].reverse():a;for(const u of l){const d=r.length,h=u.children??[];r.push({depth:o,text:cst(u.text,15),parentIndex:s,childCount:h.length}),o%2===0?(n.push(d),h.length&&i(h,d,o+1)):(h.length&&i(h,d,o+1),n.push(d))}},"walk");return i(t,-1,2),{entries:r,yOrder:n}},"flattenTree"),kQr=k((t,e,r,n,i,a,s)=>{const o=t.append("g").attr("class","ishikawa-label-group"),u=OF(o,e,r,n+11*i,"ishikawa-label cause","middle",a).node().getBBox();if(s){const d=s.roughSvg.rectangle(u.x-20,u.y-2,u.width+40,u.height+4,{roughness:1.5,seed:s.seed,fill:s.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:s.lineColor,strokeWidth:2});o.insert(()=>d,":first-child").attr("class","ishikawa-label-box")}else o.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",u.x-20).attr("y",u.y-2).attr("width",u.width+40).attr("height",u.height+4)},"drawCauseLabel"),aQ=k((t,e,r,n,i,a)=>{const s=Math.sqrt(n*n+i*i);if(s===0)return;const o=n/s,l=i/s,u=6,d=-l*u,h=o*u,f=e,p=r,g=`M ${f} ${p} L ${f-o*u*2+d} ${p-l*u*2+h} L ${f-o*u*2-d} ${p-l*u*2-h} Z`,m=a.roughSvg.path(g,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>m)},"drawArrowMarker"),DQr=k((t,e,r,n,i,a,s,o)=>{const l=e.children??[],u=a*(l.length?1:.2),d=-KNe*u,h=jNe*u*i,f=r+d,p=n+h;if(hC(t,r,n,f,p,"ishikawa-branch",o),o&&aQ(t,r,n,r-f,n-p,o),kQr(t,e.text,f,p,i,s,o),!l.length)return;const{entries:g,yOrder:m}=NQr(l,i),_=g.length,v=new Array(_);for(const[T,C]of m.entries())v[C]=n+h*((T+1)/(_+1));const y=new Map;y.set(-1,{x0:r,y0:n,x1:f,y1:p,childCount:l.length,childrenDrawn:0});const b=-KNe,E=jNe*i,S=i<0?"ishikawa-label up":"ishikawa-label down";for(const[T,C]of g.entries()){const x=v[T],A=y.get(C.parentIndex),R=t.append("g").attr("class","ishikawa-sub-group");let I=0,L=0,F=0;if(C.depth%2===0){const O=A.y1-A.y0;I=ZNe(A.x0,A.x1,O?(x-A.y0)/O:.5),L=x,F=I-(C.childCount>0?AQr+C.childCount*RQr:xQr),hC(R,I,x,F,x,"ishikawa-sub-branch",o),o&&aQ(R,I,x,1,0,o),OF(R,C.text,F,x,"ishikawa-label align","end",s)}else{const O=A.childrenDrawn++;I=ZNe(A.x0,A.x1,(A.childCount-O)/(A.childCount+1)),L=A.y0,F=I+b*((x-L)/E),hC(R,I,L,F,x,"ishikawa-sub-branch",o),o&&aQ(R,I,L,I-F,L-x,o),OF(R,C.text,F,x,S,"end",s)}C.childCount>0&&y.set(T,{x0:I,y0:L,x1:F,y1:x,childCount:C.childCount,childrenDrawn:0})}},"drawBranch"),MQr=k(t=>t.split(/<br\s*\/?>|\n/),"splitLines"),cst=k((t,e)=>{if(t.length<=e)return t;const r=[];for(const n of t.split(/\s+/)){const i=r.length-1;i>=0&&r[i].length+1+n.length<=e?r[i]+=" "+n:r.push(n)}return r.join(`
`)},"wrapText"),OF=k((t,e,r,n,i,a,s)=>{const o=MQr(e),l=s*1.05,u=t.append("text").attr("class",i).attr("text-anchor",a).attr("x",r).attr("y",n-(o.length-1)*l/2);for(const[d,h]of o.entries())u.append("tspan").attr("x",r).attr("dy",d===0?0:l).text(h);return u},"drawMultilineText"),ZNe=k((t,e,r)=>t+(e-t)*r,"lerp"),hC=k((t,e,r,n,i,a,s)=>{if(s){const o=s.roughSvg.line(e,r,n,i,{roughness:1.5,seed:s.seed,stroke:s.lineColor,strokeWidth:2});t.append(()=>o).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",i)},"drawLine"),LQr={draw:OQr},PQr=k(t=>`
.ishikawa .ishikawa-spine,
.ishikawa .ishikawa-branch,
.ishikawa .ishikawa-sub-branch {
  stroke: ${t.lineColor};
  stroke-width: 2;
  fill: none;
}

.ishikawa .ishikawa-sub-branch {
  stroke-width: 1;
}

.ishikawa .ishikawa-arrow {
  fill: ${t.lineColor};
}

.ishikawa .ishikawa-head {
  fill: ${t.mainBkg};
  stroke: ${t.lineColor};
  stroke-width: 2;
}

.ishikawa .ishikawa-label-box {
  fill: ${t.mainBkg};
  stroke: ${t.lineColor};
  stroke-width: 2;
}

.ishikawa text {
  font-family: ${t.fontFamily};
  font-size: ${t.fontSize};
  fill: ${t.textColor};
}

.ishikawa .ishikawa-head-label {
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 14px;
}

.ishikawa .ishikawa-label {
  text-anchor: end;
}

.ishikawa .ishikawa-label.cause {
  text-anchor: middle;
  dominant-baseline: middle;
}

.ishikawa .ishikawa-label.align {
  text-anchor: end;
  dominant-baseline: middle;
}

.ishikawa .ishikawa-label.up {
  dominant-baseline: baseline;
}

.ishikawa .ishikawa-label.down {
  dominant-baseline: hanging;
}
`,"getStyles"),FQr=PQr,BQr={parser:TQr,get db(){return new CQr},renderer:LQr,styles:FQr};const UQr=Object.freeze(Object.defineProperty({__proto__:null,diagram:BQr},Symbol.toStringTag,{value:"Module"})),ust=1e-10;function nz(t,e){const r=GQr(t),n=r.filter(o=>$Qr(o,t));let i=0,a=0;const s=[];if(n.length>1){const o=hst(n);for(let u=0;u<n.length;++u){const d=n[u];d.angle=Math.atan2(d.x-o.x,d.y-o.y)}n.sort((u,d)=>d.angle-u.angle);let l=n[n.length-1];for(let u=0;u<n.length;++u){const d=n[u];a+=(l.x+d.x)*(d.y-l.y);const h={x:(d.x+l.x)/2,y:(d.y+l.y)/2};let f=null;for(let p=0;p<d.parentIndex.length;++p)if(l.parentIndex.includes(d.parentIndex[p])){const g=t[d.parentIndex[p]],m=Math.atan2(d.x-g.x,d.y-g.y),_=Math.atan2(l.x-g.x,l.y-g.y);let v=_-m;v<0&&(v+=2*Math.PI);const y=_-v/2;let b=nd(h,{x:g.x+g.radius*Math.sin(y),y:g.y+g.radius*Math.cos(y)});b>g.radius*2&&(b=g.radius*2),(f==null||f.width>b)&&(f={circle:g,width:b,p1:d,p2:l,large:b>g.radius,sweep:!0})}f!=null&&(s.push(f),i+=lie(f.circle.radius,f.width),l=d)}}else{let o=t[0];for(let u=1;u<t.length;++u)t[u].radius<o.radius&&(o=t[u]);let l=!1;for(let u=0;u<t.length;++u)if(nd(t[u],o)>Math.abs(o.radius-t[u].radius)){l=!0;break}l?i=a=0:(i=o.radius*o.radius*Math.PI,s.push({circle:o,p1:{x:o.x,y:o.y+o.radius},p2:{x:o.x-ust,y:o.y+o.radius},width:o.radius*2,large:!0,sweep:!0}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=n,e.intersectionPoints=r),i+a}function $Qr(t,e){return e.every(r=>nd(t,r)<r.radius+ust)}function GQr(t){const e=[];for(let r=0;r<t.length;++r)for(let n=r+1;n<t.length;++n){const i=dst(t[r],t[n]);for(const a of i)a.parentIndex=[r,n],e.push(a)}return e}function lie(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function nd(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function zpe(t,e,r){if(r>=t+e)return 0;if(r<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const n=t-(r*r-e*e+t*t)/(2*r),i=e-(r*r-t*t+e*e)/(2*r);return lie(t,n)+lie(e,i)}function dst(t,e){const r=nd(t,e),n=t.radius,i=e.radius;if(r>=n+i||r<=Math.abs(n-i))return[];const a=(n*n-i*i+r*r)/(2*r),s=Math.sqrt(n*n-a*a),o=t.x+a*(e.x-t.x)/r,l=t.y+a*(e.y-t.y)/r,u=-(e.y-t.y)*(s/r),d=-(e.x-t.x)*(s/r);return[{x:o+u,y:l-d},{x:o-u,y:l+d}]}function hst(t){const e={x:0,y:0};for(const r of t)e.x+=r.x,e.y+=r.y;return e.x/=t.length,e.y/=t.length,e}function zQr(t,e,r,n){n=n||{};const i=n.maxIterations||100,a=n.tolerance||1e-10,s=t(e),o=t(r);let l=r-e;if(s*o>0)throw"Initial bisect points must have opposite signs";if(s===0)return e;if(o===0)return r;for(let u=0;u<i;++u){l/=2;const d=e+l,h=t(d);if(h*s>=0&&(e=d),Math.abs(l)<a||h===0)return d}return e+l}function cie(t){const e=new Array(t);for(let r=0;r<t;++r)e[r]=0;return e}function JNe(t,e){return cie(t).map(()=>cie(e))}function fC(t,e){let r=0;for(let n=0;n<t.length;++n)r+=t[n]*e[n];return r}function uie(t){return Math.sqrt(fC(t,t))}function die(t,e,r){for(let n=0;n<e.length;++n)t[n]=e[n]*r}function Dm(t,e,r,n,i){for(let a=0;a<t.length;++a)t[a]=e*r[a]+n*i[a]}function fst(t,e,r){r=r||{};const n=r.maxIterations||e.length*200,i=r.nonZeroDelta||1.05,a=r.zeroDelta||.001,s=r.minErrorDelta||1e-6,o=r.minErrorDelta||1e-5,l=r.rho!==void 0?r.rho:1,u=r.chi!==void 0?r.chi:2,d=r.psi!==void 0?r.psi:-.5,h=r.sigma!==void 0?r.sigma:.5;let f;const p=e.length,g=new Array(p+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(let S=0;S<p;++S){const T=e.slice();T[S]=T[S]?T[S]*i:a,g[S+1]=T,g[S+1].fx=t(T),g[S+1].id=S+1}function m(S){for(let T=0;T<S.length;T++)g[p][T]=S[T];g[p].fx=S.fx}const _=(S,T)=>S.fx-T.fx,v=e.slice(),y=e.slice(),b=e.slice(),E=e.slice();for(let S=0;S<n;++S){if(g.sort(_),r.history){const C=g.map(x=>{const A=x.slice();return A.fx=x.fx,A.id=x.id,A});C.sort((x,A)=>x.id-A.id),r.history.push({x:g[0].slice(),fx:g[0].fx,simplex:C})}f=0;for(let C=0;C<p;++C)f=Math.max(f,Math.abs(g[0][C]-g[1][C]));if(Math.abs(g[0].fx-g[p].fx)<s&&f<o)break;for(let C=0;C<p;++C){v[C]=0;for(let x=0;x<p;++x)v[C]+=g[x][C];v[C]/=p}const T=g[p];if(Dm(y,1+l,v,-l,T),y.fx=t(y),y.fx<g[0].fx)Dm(E,1+u,v,-u,T),E.fx=t(E),E.fx<y.fx?m(E):m(y);else if(y.fx>=g[p-1].fx){let C=!1;if(y.fx>T.fx?(Dm(b,1+d,v,-d,T),b.fx=t(b),b.fx<T.fx?m(b):C=!0):(Dm(b,1-d*l,v,d*l,T),b.fx=t(b),b.fx<y.fx?m(b):C=!0),C){if(h>=1)break;for(let x=1;x<g.length;++x)Dm(g[x],1-h,g[0],h,g[x]),g[x].fx=t(g[x])}}else m(y)}return g.sort(_),{fx:g[0].fx,x:g[0]}}function qQr(t,e,r,n,i,a,s){const o=r.fx,l=fC(r.fxprime,e);let u=o,d=o,h=l,f=0;i=i||1,a=a||1e-6,s=s||.1;function p(g,m,_){for(let v=0;v<16;++v)if(i=(g+m)/2,Dm(n.x,1,r.x,i,e),u=n.fx=t(n.x,n.fxprime),h=fC(n.fxprime,e),u>o+a*i*l||u>=_)m=i;else{if(Math.abs(h)<=-s*l)return i;h*(m-g)>=0&&(m=g),g=i,_=u}return 0}for(let g=0;g<10;++g){if(Dm(n.x,1,r.x,i,e),u=n.fx=t(n.x,n.fxprime),h=fC(n.fxprime,e),u>o+a*i*l||g&&u>=d)return p(f,i,d);if(Math.abs(h)<=-s*l)return i;if(h>=0)return p(i,f,u);d=u,f=i,i*=2}return i}function VQr(t,e,r){let n={x:e.slice(),fx:0,fxprime:e.slice()},i={x:e.slice(),fx:0,fxprime:e.slice()};const a=e.slice();let s,o,l=1,u;r=r||{},u=r.maxIterations||e.length*20,n.fx=t(n.x,n.fxprime),s=n.fxprime.slice(),die(s,n.fxprime,-1);for(let d=0;d<u;++d){if(l=qQr(t,s,n,i,l),r.history&&r.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:l}),!l)die(s,n.fxprime,-1);else{Dm(a,1,i.fxprime,-1,n.fxprime);const h=fC(n.fxprime,n.fxprime),f=Math.max(0,fC(a,i.fxprime)/h);Dm(s,f,s,-1,i.fxprime),o=n,n=i,i=o}if(uie(n.fxprime)<=1e-5)break}return r.history&&r.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:l}),n}function pst(t,e={}){e.maxIterations=e.maxIterations||500;const r=e.initialLayout||KQr,n=e.lossFunction||jA,i=HQr(t,e),a=r(i,e),s=Object.keys(a),o=[];for(const d of s)o.push(a[d].x),o.push(a[d].y);const u=fst(d=>{const h={};for(let f=0;f<s.length;++f){const p=s[f];h[p]={x:d[2*f],y:d[2*f+1],radius:a[p].radius}}return n(h,i)},o,e).x;for(let d=0;d<s.length;++d){const h=s[d];a[h].x=u[2*d],a[h].y=u[2*d+1]}return a}const gst=1e-10;function hie(t,e,r){return Math.min(t,e)*Math.min(t,e)*Math.PI<=r+gst?Math.abs(t-e):zQr(n=>zpe(t,e,n)-r,0,t+e)}function HQr(t,e={}){const r=e.distinct,n=t.map(o=>Object.assign({},o));function i(o){return o.join(";")}if(r){const o=new Map;for(const l of n)for(let u=0;u<l.sets.length;u++){const d=String(l.sets[u]);o.set(d,l.size+(o.get(d)||0));for(let h=u+1;h<l.sets.length;h++){const f=String(l.sets[h]),p=`${d};${f}`,g=`${f};${d}`;o.set(p,l.size+(o.get(p)||0)),o.set(g,l.size+(o.get(g)||0))}}for(const l of n)l.sets.length<3&&(l.size=o.get(i(l.sets)))}const a=[],s=new Set;for(const o of n)if(o.sets.length===1)a.push(o.sets[0]);else if(o.sets.length===2){const l=o.sets[0],u=o.sets[1];s.add(i(o.sets)),s.add(i([u,l]))}a.sort((o,l)=>o===l?0:o<l?-1:1);for(let o=0;o<a.length;++o){const l=a[o];for(let u=o+1;u<a.length;++u){const d=a[u];s.has(i([l,d]))||n.push({sets:[l,d],size:0})}}return n}function YQr(t,e,r){const n=JNe(e.length,e.length),i=JNe(e.length,e.length);return t.filter(a=>a.sets.length===2).forEach(a=>{const s=r[a.sets[0]],o=r[a.sets[1]],l=Math.sqrt(e[s].size/Math.PI),u=Math.sqrt(e[o].size/Math.PI),d=hie(l,u,a.size);n[s][o]=n[o][s]=d;let h=0;a.size+1e-10>=Math.min(e[s].size,e[o].size)?h=1:a.size<=1e-10&&(h=-1),i[s][o]=i[o][s]=h}),{distances:n,constraints:i}}function WQr(t,e,r,n){for(let a=0;a<e.length;++a)e[a]=0;let i=0;for(let a=0;a<r.length;++a){const s=t[2*a],o=t[2*a+1];for(let l=a+1;l<r.length;++l){const u=t[2*l],d=t[2*l+1],h=r[a][l],f=n[a][l],p=(u-s)*(u-s)+(d-o)*(d-o),g=Math.sqrt(p),m=p-h*h;f>0&&g<=h||f<0&&g>=h||(i+=2*m*m,e[2*a]+=4*m*(s-u),e[2*a+1]+=4*m*(o-d),e[2*l]+=4*m*(u-s),e[2*l+1]+=4*m*(d-o))}}return i}function KQr(t,e={}){let r=XQr(t,e);const n=e.lossFunction||jA;if(t.length>=8){const i=jQr(t,e),a=n(i,t),s=n(r,t);a+1e-8<s&&(r=i)}return r}function jQr(t,e={}){const r=e.restarts||10,n=[],i={};for(const f of t)f.sets.length===1&&(i[f.sets[0]]=n.length,n.push(f));let{distances:a,constraints:s}=YQr(t,n,i);const o=uie(a.map(uie))/a.length;a=a.map(f=>f.map(p=>p/o));const l=(f,p)=>WQr(f,p,a,s);let u=null;for(let f=0;f<r;++f){const p=cie(a.length*2).map(Math.random),g=VQr(l,p,e);(!u||g.fx<u.fx)&&(u=g)}const d=u.x,h={};for(let f=0;f<n.length;++f){const p=n[f];h[p.sets[0]]={x:d[2*f]*o,y:d[2*f+1]*o,radius:Math.sqrt(p.size/Math.PI)}}if(e.history)for(const f of e.history)die(f.x,o);return h}function XQr(t,e){const r=e&&e.lossFunction?e.lossFunction:jA,n={},i={};for(const h of t)if(h.sets.length===1){const f=h.sets[0];n[f]={x:1e10,y:1e10,rowid:n.length,size:h.size,radius:Math.sqrt(h.size/Math.PI)},i[f]=[]}t=t.filter(h=>h.sets.length===2);for(const h of t){let f=h.weight!=null?h.weight:1;const p=h.sets[0],g=h.sets[1];h.size+gst>=Math.min(n[p].size,n[g].size)&&(f=0),i[p].push({set:g,size:h.size,weight:f}),i[g].push({set:p,size:h.size,weight:f})}const a=[];Object.keys(i).forEach(h=>{let f=0;for(let p=0;p<i[h].length;++p)f+=i[h][p].size*i[h][p].weight;a.push({set:h,size:f})});function s(h,f){return f.size-h.size}a.sort(s);const o={};function l(h){return h.set in o}function u(h,f){n[f].x=h.x,n[f].y=h.y,o[f]=!0}u({x:0,y:0},a[0].set);for(let h=1;h<a.length;++h){const f=a[h].set,p=i[f].filter(l),g=n[f];if(p.sort(s),p.length===0)throw"ERROR: missing pairwise overlap information";const m=[];for(var d=0;d<p.length;++d){const y=n[p[d].set],b=hie(g.radius,y.radius,p[d].size);m.push({x:y.x+b,y:y.y}),m.push({x:y.x-b,y:y.y}),m.push({y:y.y+b,x:y.x}),m.push({y:y.y-b,x:y.x});for(let E=d+1;E<p.length;++E){const S=n[p[E].set],T=hie(g.radius,S.radius,p[E].size),C=dst({x:y.x,y:y.y,radius:b},{x:S.x,y:S.y,radius:T});m.push(...C)}}let _=1e50,v=m[0];for(const y of m){n[f].x=y.x,n[f].y=y.y;const b=r(n,t);b<_&&(_=b,v=y)}u(v,f)}return n}function jA(t,e){let r=0;for(const n of e){if(n.sets.length===1)continue;let i;if(n.sets.length===2){const s=t[n.sets[0]],o=t[n.sets[1]];i=zpe(s.radius,o.radius,nd(s,o))}else i=nz(n.sets.map(s=>t[s]));const a=n.weight!=null?n.weight:1;r+=a*(i-n.size)*(i-n.size)}return r}function mst(t,e){let r=0;for(const n of e){if(n.sets.length===1)continue;let i;if(n.sets.length===2){const o=t[n.sets[0]],l=t[n.sets[1]];i=zpe(o.radius,l.radius,nd(o,l))}else i=nz(n.sets.map(o=>t[o]));const a=n.weight!=null?n.weight:1,s=Math.log((i+1)/(n.size+1));r+=a*s*s}return r}function QQr(t,e,r){if(r==null?t.sort((i,a)=>a.radius-i.radius):t.sort(r),t.length>0){const i=t[0].x,a=t[0].y;for(const s of t)s.x-=i,s.y-=a}if(t.length===2&&nd(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-e,a=Math.cos(i),s=Math.sin(i);for(const o of t){const l=o.x,u=o.y;o.x=a*l-s*u,o.y=s*l+a*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-e;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const a=t[1].y/(1e-10+t[1].x);for(const s of t){var n=(s.x+a*s.y)/(1+a*a);s.x=2*n-s.x,s.y=2*n*a-s.y}}}}function ZQr(t){t.forEach(i=>{i.parent=i});function e(i){return i.parent!==i&&(i.parent=e(i.parent)),i.parent}function r(i,a){const s=e(i),o=e(a);s.parent=o}for(let i=0;i<t.length;++i)for(let a=i+1;a<t.length;++a){const s=t[i].radius+t[a].radius;nd(t[i],t[a])+1e-10<s&&r(t[a],t[i])}const n=new Map;for(let i=0;i<t.length;++i){const a=e(t[i]).parent.setid;n.has(a)||n.set(a,[]),n.get(a).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(n.values())}function fie(t){const e=r=>{const n=t.reduce((a,s)=>Math.max(a,s[r]+s.radius),Number.NEGATIVE_INFINITY),i=t.reduce((a,s)=>Math.min(a,s[r]-s.radius),Number.POSITIVE_INFINITY);return{max:n,min:i}};return{xRange:e("x"),yRange:e("y")}}function _st(t,e,r){e==null&&(e=Math.PI/2);let n=bst(t).map(u=>Object.assign({},u));const i=ZQr(n);for(const u of i){QQr(u,e,r);const d=fie(u);u.size=(d.xRange.max-d.xRange.min)*(d.yRange.max-d.yRange.min),u.bounds=d}i.sort((u,d)=>d.size-u.size),n=i[0];let a=n.bounds;const s=(a.xRange.max-a.xRange.min)/50;function o(u,d,h){if(!u)return;const f=u.bounds;let p,g;if(d)p=a.xRange.max-f.xRange.min+s;else{p=a.xRange.max-f.xRange.max;const m=(f.xRange.max-f.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;m<0&&(p+=m)}if(h)g=a.yRange.max-f.yRange.min+s;else{g=a.yRange.max-f.yRange.max;const m=(f.yRange.max-f.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;m<0&&(g+=m)}for(const m of u)m.x+=p,m.y+=g,n.push(m)}let l=1;for(;l<i.length;)o(i[l],!0,!1),o(i[l+1],!1,!0),o(i[l+2],!0,!0),l+=3,a=fie(n);return yst(n)}function vst(t,e,r,n,i){const a=bst(t);e-=2*n,r-=2*n;const{xRange:s,yRange:o}=fie(a);if(s.max===s.min||o.max===o.min)return console.log("not scaling solution: zero size detected"),t;let l,u;if(i){const p=Math.sqrt(i/Math.PI)*2;l=e/p,u=r/p}else l=e/(s.max-s.min),u=r/(o.max-o.min);const d=Math.min(u,l),h=(e-(s.max-s.min)*d)/2,f=(r-(o.max-o.min)*d)/2;return yst(a.map(p=>({radius:d*p.radius,x:n+h+(p.x-s.min)*d,y:n+f+(p.y-o.min)*d,setid:p.setid})))}function yst(t){const e={};for(const r of t)e[r.setid]=r;return e}function bst(t){return Object.keys(t).map(r=>Object.assign(t[r],{setid:r}))}function JQr(t={}){let e=!1,r=600,n=350,i=15,a=1e3,s=Math.PI/2,o=!0,l=null,u=!0,d=!0,h=null,f=null,p=!1,g=null,m=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,_={},v=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],y=0,b=function(C){if(C in _)return _[C];var x=_[C]=v[y];return y+=1,y>=v.length&&(y=0),x},E=pst,S=jA;function T(C){let x=C.datum();const A=new Set;x.forEach(Q=>{Q.size==0&&Q.sets.length==1&&A.add(Q.sets[0])}),x=x.filter(Q=>!Q.sets.some(ie=>A.has(ie)));let R={},I={};if(x.length>0){let Q=E(x,{lossFunction:S,distinct:p});o&&(Q=_st(Q,s,f)),R=vst(Q,r,n,i,l),I=Sst(R,x,m)}const L={};x.forEach(Q=>{Q.label&&(L[Q.sets]=Q.label)});function F(Q){if(Q.sets in L)return L[Q.sets];if(Q.sets.length==1)return""+Q.sets[0]}C.selectAll("svg").data([R]).enter().append("svg");const O=C.select("svg");e?O.attr("viewBox",`0 0 ${r} ${n}`):O.attr("width",r).attr("height",n);const D={};let M=!1;O.selectAll(".venn-area path").each(function(Q){const ie=this.getAttribute("d");Q.sets.length==1&&ie&&!p&&(M=!0,D[Q.sets[0]]=rZr(ie))});function P(Q){return ie=>{const Z=Q.sets.map(re=>{let K=D[re],j=R[re];return K||(K={x:r/2,y:n/2,radius:1}),j||(j={x:r/2,y:n/2,radius:1}),{x:K.x*(1-ie)+j.x*ie,y:K.y*(1-ie)+j.y*ie,radius:K.radius*(1-ie)+j.radius*ie}});return eke(Z,g)}}const N=O.selectAll(".venn-area").data(x,Q=>Q.sets),$=N.enter().append("g").attr("class",Q=>`venn-area venn-${Q.sets.length==1?"circle":"intersection"}${Q.colour||Q.color?" venn-coloured":""}`).attr("data-venn-sets",Q=>Q.sets.join("_")),U=$.append("path"),B=$.append("text").attr("class","label").text(Q=>F(Q)).attr("text-anchor","middle").attr("dy",".35em").attr("x",r/2).attr("y",n/2);d&&(U.style("fill-opacity","0").filter(Q=>Q.sets.length==1).style("fill",Q=>Q.colour?Q.colour:Q.color?Q.color:b(Q.sets)).style("fill-opacity",".25"),B.style("fill",Q=>Q.colour||Q.color?"#FFF":t.textFill?t.textFill:Q.sets.length==1?b(Q.sets):"#444"));function V(Q){return typeof Q.transition=="function"?Q.transition("venn").duration(a):Q}let z=C;M&&typeof z.transition=="function"?(z=V(C),z.selectAll("path").attrTween("d",P)):z.selectAll("path").attr("d",Q=>eke(Q.sets.map(ie=>R[ie])),g);const G=z.selectAll("text").filter(Q=>Q.sets in I).text(Q=>F(Q)).attr("x",Q=>Math.floor(I[Q.sets].x)).attr("y",Q=>Math.floor(I[Q.sets].y));u&&(M?"on"in G?G.on("end",sQ(R,F)):G.each("end",sQ(R,F)):G.each(sQ(R,F)));const Y=V(N.exit()).remove();typeof N.transition=="function"&&Y.selectAll("path").attrTween("d",P);const W=Y.selectAll("text").attr("x",r/2).attr("y",n/2);return h!==null&&(B.style("font-size","0px"),G.style("font-size",h),W.style("font-size","0px")),{circles:R,textCentres:I,nodes:N,enter:$,update:z,exit:Y}}return T.wrap=function(C){return arguments.length?(u=C,T):u},T.useViewBox=function(){return e=!0,T},T.width=function(C){return arguments.length?(r=C,T):r},T.height=function(C){return arguments.length?(n=C,T):n},T.padding=function(C){return arguments.length?(i=C,T):i},T.distinct=function(C){return arguments.length?(p=C,T):p},T.colours=function(C){return arguments.length?(b=C,T):b},T.colors=function(C){return arguments.length?(b=C,T):b},T.fontSize=function(C){return arguments.length?(h=C,T):h},T.round=function(C){return arguments.length?(g=C,T):g},T.duration=function(C){return arguments.length?(a=C,T):a},T.layoutFunction=function(C){return arguments.length?(E=C,T):E},T.normalize=function(C){return arguments.length?(o=C,T):o},T.scaleToFit=function(C){return arguments.length?(l=C,T):l},T.styled=function(C){return arguments.length?(d=C,T):d},T.orientation=function(C){return arguments.length?(s=C,T):s},T.orientationOrder=function(C){return arguments.length?(f=C,T):f},T.lossFunction=function(C){return arguments.length?(S=C==="default"?jA:C==="logRatio"?mst:C,T):S},T}function sQ(t,e){return function(r){const n=this,i=t[r.sets[0]].radius||50,a=e(r)||"",s=a.split(/\s+/).reverse(),l=(a.length+s.length)/3;let u=s.pop(),d=[u],h=0;const f=1.1;n.textContent=null;const p=[];function g(b){const E=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return E.textContent=b,p.push(E),n.append(E),E}let m=g(u);for(;u=s.pop(),!!u;){d.push(u);const b=d.join(" ");m.textContent=b,b.length>l&&m.getComputedTextLength()>i&&(d.pop(),m.textContent=d.join(" "),d=[u],m=g(u),h++)}const _=.35-h*f/2,v=n.getAttribute("x"),y=n.getAttribute("y");p.forEach((b,E)=>{b.setAttribute("x",v),b.setAttribute("y",y),b.setAttribute("dy",`${_+E*f}em`)})}}function oQ(t,e,r){let n=e[0].radius-nd(e[0],t);for(let i=1;i<e.length;++i){const a=e[i].radius-nd(e[i],t);a<=n&&(n=a)}for(let i=0;i<r.length;++i){const a=nd(r[i],t)-r[i].radius;a<=n&&(n=a)}return n}function Est(t,e,r){const n=[];for(const d of t)n.push({x:d.x,y:d.y}),n.push({x:d.x+d.radius/2,y:d.y}),n.push({x:d.x-d.radius/2,y:d.y}),n.push({x:d.x,y:d.y+d.radius/2}),n.push({x:d.x,y:d.y-d.radius/2});let i=n[0],a=oQ(n[0],t,e);for(let d=1;d<n.length;++d){const h=oQ(n[d],t,e);h>=a&&(i=n[d],a=h)}const s=fst(d=>-1*oQ({x:d[0],y:d[1]},t,e),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,o={x:r?0:s[0],y:s[1]};let l=!0;for(const d of t)if(nd(o,d)>d.radius){l=!1;break}for(const d of e)if(nd(o,d)<d.radius){l=!1;break}if(l)return o;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return nz(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:e.length?Est(t,[]):hst(u.arcs.map(d=>d.p1))}function eZr(t){const e={},r=Object.keys(t);for(const n of r)e[n]=[];for(let n=0;n<r.length;n++){const i=r[n],a=t[i];for(let s=n+1;s<r.length;++s){const o=r[s],l=t[o],u=nd(a,l);u+l.radius<=a.radius+1e-10?e[o].push(i):u+a.radius<=l.radius+1e-10&&e[i].push(o)}}return e}function Sst(t,e,r){const n={},i=eZr(t);for(let a=0;a<e.length;++a){const s=e[a].sets,o={},l={};for(let f=0;f<s.length;++f){o[s[f]]=!0;const p=i[s[f]];for(let g=0;g<p.length;++g)l[p[g]]=!0}const u=[],d=[];for(let f in t)f in o?u.push(t[f]):f in l||d.push(t[f]);const h=Est(u,d,r);n[s]=h,h.disjoint&&e[a].size>0&&console.log("WARNING: area "+s+" not represented on screen")}return n}function tZr(t,e,r){const n=[];return n.push(`
M`,t,e),n.push(`
m`,-r,0),n.push(`
a`,r,r,0,1,0,r*2,0),n.push(`
a`,r,r,0,1,0,-r*2,0),n.join(" ")}function rZr(t){const e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}function Tst(t){if(t.length===0)return[];const e={};return nz(t,e),e.arcs}function Cst(t,e){if(t.length===0)return"M 0 0";const r=Math.pow(10,e||0),n=e!=null?a=>Math.round(a*r)/r:a=>a;if(t.length==1){const a=t[0].circle;return tZr(n(a.x),n(a.y),n(a.radius))}const i=[`
M`,n(t[0].p2.x),n(t[0].p2.y)];for(const a of t){const s=n(a.circle.radius);i.push(`
A`,s,s,0,a.large?1:0,a.sweep?1:0,n(a.p1.x),n(a.p1.y))}return i.join(" ")}function eke(t,e){return Cst(Tst(t),e)}function nZr(t,e={}){const{lossFunction:r,layoutFunction:n=pst,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:s,width:o=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:h=!1,distinct:f,round:p=2}=e;let g=n(t,{lossFunction:r==="default"||!r?jA:r==="logRatio"?mst:r,distinct:f});i&&(g=_st(g,a,s));const m=vst(g,o,l,u,d),_=Sst(m,t,h),v=new Map(Object.keys(m).map(E=>[E,{set:E,x:m[E].x,y:m[E].y,radius:m[E].radius}])),y=t.map(E=>{const S=E.sets.map(x=>v.get(x)),T=Tst(S),C=Cst(T,p);return{circles:S,arcs:T,path:C,area:E,has:new Set(E.sets)}});function b(E){let S="";for(const T of y)T.has.size>E.length&&E.every(C=>T.has.has(C))&&(S+=" "+T.path);return S}return y.map(({circles:E,arcs:S,path:T,area:C})=>({data:C,text:_[C.sets],circles:E,arcs:S,path:T,distinctPath:T+b(C.sets)}))}var pie=(function(){var t=k(function(y,b,E,S){for(E=E||{},S=y.length;S--;E[y[S]]=b);return E},"o"),e=[5,8],r=[7,8,11,12,17,19,22,24],n=[1,17],i=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],o=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],h=[1,58],f=[1,59],p=[1,60],g=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],m={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:k(function(b,E,S,T,C,x,A){var R=x.length-1;switch(C){case 1:return x[R-1];case 2:case 3:case 4:this.$=[];break;case 5:x[R-1].push(x[R]),this.$=x[R-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=x[R];break;case 8:T.setDiagramTitle(x[R].substr(6)),this.$=x[R].substr(6);break;case 9:T.addSubsetData([x[R]],void 0,void 0),T.setIndentMode&&T.setIndentMode(!0);break;case 10:T.addSubsetData([x[R-1]],x[R],void 0),T.setIndentMode&&T.setIndentMode(!0);break;case 11:T.addSubsetData([x[R-2]],void 0,parseFloat(x[R])),T.setIndentMode&&T.setIndentMode(!0);break;case 12:T.addSubsetData([x[R-3]],x[R-2],parseFloat(x[R])),T.setIndentMode&&T.setIndentMode(!0);break;case 13:if(x[R].length<2)throw new Error("union requires multiple identifiers");T.validateUnionIdentifiers&&T.validateUnionIdentifiers(x[R]),T.addSubsetData(x[R],void 0,void 0),T.setIndentMode&&T.setIndentMode(!0);break;case 14:if(x[R-1].length<2)throw new Error("union requires multiple identifiers");T.validateUnionIdentifiers&&T.validateUnionIdentifiers(x[R-1]),T.addSubsetData(x[R-1],x[R],void 0),T.setIndentMode&&T.setIndentMode(!0);break;case 15:if(x[R-2].length<2)throw new Error("union requires multiple identifiers");T.validateUnionIdentifiers&&T.validateUnionIdentifiers(x[R-2]),T.addSubsetData(x[R-2],void 0,parseFloat(x[R])),T.setIndentMode&&T.setIndentMode(!0);break;case 16:if(x[R-3].length<2)throw new Error("union requires multiple identifiers");T.validateUnionIdentifiers&&T.validateUnionIdentifiers(x[R-3]),T.addSubsetData(x[R-3],x[R-2],parseFloat(x[R])),T.setIndentMode&&T.setIndentMode(!0);break;case 17:case 18:case 19:T.addTextData(x[R-1],x[R],void 0);break;case 20:case 21:T.addTextData(x[R-2],x[R-1],x[R]);break;case 23:T.addStyleData(x[R-1],x[R]);break;case 24:case 25:case 26:var I=T.getCurrentSets();if(!I)throw new Error("text requires set");T.addTextData(I,x[R],void 0);break;case 27:case 28:var I=T.getCurrentSets();if(!I)throw new Error("text requires set");T.addTextData(I,x[R-1],x[R]);break;case 29:case 41:this.$=[x[R]];break;case 30:case 42:this.$=[...x[R-2],x[R]];break;case 31:this.$=[x[R-2],x[R]];break;case 33:this.$=x[R].join(" ");break;case 34:this.$=[x[R]];break;case 35:x[R-1].push(x[R]),this.$=x[R-1];break;case 43:case 44:this.$=x[R];break}},"anonymous"),table:[t(e,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(r,[2,4],{6:5}),t(e,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(r,[2,5]),t(r,[2,6]),t(r,[2,7]),t(r,[2,8]),{13:16,20:n,21:i},{13:20,18:19,20:n,21:i},{13:20,18:21,20:n,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:i},t(r,[2,9],{14:[1,27],15:[1,28]}),t(a,[2,43]),t(a,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:s},t(r,[2,22]),t(r,[2,24],{14:[1,35]}),t(r,[2,25],{14:[1,36]}),t(r,[2,26]),{20:o,25:37,26:38,27:s},t(r,[2,10],{15:[1,40]}),{16:[1,41]},t(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:i},t(r,[2,17],{14:[1,45]}),t(r,[2,18],{14:[1,46]}),t(r,[2,19]),t(r,[2,27]),t(r,[2,28]),t(r,[2,23],{27:[1,47]}),t(l,[2,29]),{15:[1,48]},{16:[1,49]},t(r,[2,11]),{16:[1,50]},t(r,[2,15]),t(a,[2,42]),t(r,[2,20]),t(r,[2,21]),{20:o,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:h,32:f,33:p},t(r,[2,12]),t(r,[2,16]),t(l,[2,30]),t(l,[2,31]),t(l,[2,32]),t(l,[2,33],{30:61,16:u,20:d,31:h,32:f,33:p}),t(g,[2,34]),t(g,[2,36]),t(g,[2,37]),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,35])],defaultActions:{6:[2,1]},parseError:k(function(b,E){if(E.recoverable)this.trace(b);else{var S=new Error(b);throw S.hash=E,S}},"parseError"),parse:k(function(b){var E=this,S=[0],T=[],C=[null],x=[],A=this.table,R="",I=0,L=0,F=2,O=1,D=x.slice.call(arguments,1),M=Object.create(this.lexer),P={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(P.yy[N]=this.yy[N]);M.setInput(b,P.yy),P.yy.lexer=M,P.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var $=M.yylloc;x.push($);var U=M.options&&M.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function B(se){S.length=S.length-2*se,C.length=C.length-se,x.length=x.length-se}k(B,"popStack");function V(){var se;return se=T.pop()||M.lex()||O,typeof se!="number"&&(se instanceof Array&&(T=se,se=T.pop()),se=E.symbols_[se]||se),se}k(V,"lex");for(var z,G,Y,W,Q={},ie,Z,re,K;;){if(G=S[S.length-1],this.defaultActions[G]?Y=this.defaultActions[G]:((z===null||typeof z>"u")&&(z=V()),Y=A[G]&&A[G][z]),typeof Y>"u"||!Y.length||!Y[0]){var j="";K=[];for(ie in A[G])this.terminals_[ie]&&ie>F&&K.push("'"+this.terminals_[ie]+"'");M.showPosition?j="Parse error on line "+(I+1)+`:
`+M.showPosition()+`
Expecting `+K.join(", ")+", got '"+(this.terminals_[z]||z)+"'":j="Parse error on line "+(I+1)+": Unexpected "+(z==O?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(j,{text:M.match,token:this.terminals_[z]||z,line:M.yylineno,loc:$,expected:K})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+z);switch(Y[0]){case 1:S.push(z),C.push(M.yytext),x.push(M.yylloc),S.push(Y[1]),z=null,L=M.yyleng,R=M.yytext,I=M.yylineno,$=M.yylloc;break;case 2:if(Z=this.productions_[Y[1]][1],Q.$=C[C.length-Z],Q._$={first_line:x[x.length-(Z||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(Z||1)].first_column,last_column:x[x.length-1].last_column},U&&(Q._$.range=[x[x.length-(Z||1)].range[0],x[x.length-1].range[1]]),W=this.performAction.apply(Q,[R,L,I,P.yy,Y[1],C,x].concat(D)),typeof W<"u")return W;Z&&(S=S.slice(0,-1*Z*2),C=C.slice(0,-1*Z),x=x.slice(0,-1*Z)),S.push(this.productions_[Y[1]][0]),C.push(Q.$),x.push(Q._$),re=A[S[S.length-2]][S[S.length-1]],S.push(re);break;case 3:return!0}}return!0},"parse")},_=(function(){var y={EOF:1,parseError:k(function(E,S){if(this.yy.parser)this.yy.parser.parseError(E,S);else throw new Error(E)},"parseError"),setInput:k(function(b,E){return this.yy=E||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:k(function(b){var E=b.length,S=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===T.length?this.yylloc.first_column:0)+T[T.length-S.length].length-S[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(b){this.unput(this.match.slice(b))},"less"),pastInput:k(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var b=this.pastInput(),E=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
`+E+"^"},"showPosition"),test_match:k(function(b,E){var S,T,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),T=b[0].match(/(?:\r\n?|\n).*/g),T&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],S=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var x in C)this[x]=C[x];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,E,S,T;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),x=0;x<C.length;x++)if(S=this._input.match(this.rules[C[x]]),S&&(!E||S[0].length>E[0].length)){if(E=S,T=x,this.options.backtrack_lexer){if(b=this.test_match(S,C[x]),b!==!1)return b;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(b=this.test_match(E,C[T]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var E=this.next();return E||this.lex()},"lex"),begin:k(function(E){this.conditionStack.push(E)},"begin"),popState:k(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:k(function(E){this.begin(E)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:k(function(E,S,T,C){switch(T){case 0:break;case 1:break;case 2:break;case 3:if(E.getIndentMode&&E.getIndentMode())return E.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:E.setIndentMode&&E.setIndentMode(!1),this.begin("INITIAL"),this.unput(S.yytext);break;case 6:return this.begin("bol"),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(E.consumeIndentText)E.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return S.yytext=S.yytext.slice(2,-2),14;case 17:return S.yytext=S.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return y})();m.lexer=_;function v(){this.yy={}}return k(v,"Parser"),v.prototype=m,m.Parser=v,new v})();pie.parser=pie;var iZr=pie,qpe=[],Vpe=[],Hpe=[],Ype=new Set,Wpe,Kpe=!1,aZr=k((t,e,r)=>{const n=iz(t).sort(),i=r??10/Math.pow(t.length,2);Wpe=n,n.length===1&&Ype.add(n[0]),qpe.push({sets:n,size:i,label:e?D3(e):void 0})},"addSubsetData"),sZr=k(()=>qpe,"getSubsetData"),D3=k(t=>{const e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),oZr=k(t=>t&&D3(t),"normalizeStyleValue"),lZr=k((t,e,r)=>{const n=D3(e);Vpe.push({sets:iz(t).sort(),id:n,label:r?D3(r):void 0})},"addTextData"),cZr=k((t,e)=>{const r=iz(t).sort(),n={};for(const[i,a]of e)n[i]=oZr(a)??a;Hpe.push({targets:r,styles:n})},"addStyleData"),uZr=k(()=>Hpe,"getStyleData"),iz=k(t=>t.map(e=>D3(e)),"normalizeIdentifierList"),dZr=k(t=>{const r=iz(t).filter(n=>!Ype.has(n));if(r.length>0)throw new Error(`unknown set identifier: ${r.join(", ")}`)},"validateUnionIdentifiers"),hZr=k(()=>Vpe,"getTextData"),fZr=k(()=>Wpe,"getCurrentSets"),pZr=k(()=>Kpe,"getIndentMode"),gZr=k(t=>{Kpe=t},"setIndentMode"),mZr=Gi.venn;function wst(){return _o(mZr,Ln().venn)}k(wst,"getConfig");var _Zr=k(()=>{ys(),qpe.length=0,Vpe.length=0,Hpe.length=0,Ype.clear(),Wpe=void 0,Kpe=!1},"customClear"),vZr={getConfig:wst,clear:_Zr,setAccTitle:ms,getAccTitle:Fs,setDiagramTitle:ks,getDiagramTitle:bs,getAccDescription:Us,setAccDescription:Bs,addSubsetData:aZr,getSubsetData:sZr,addTextData:lZr,addStyleData:cZr,validateUnionIdentifiers:dZr,getTextData:hZr,getStyleData:uZr,getCurrentSets:fZr,getIndentMode:pZr,setIndentMode:gZr},yZr=k(t=>`
  .venn-title {
    font-size: 32px;
    fill: ${t.vennTitleTextColor};
    font-family: ${t.fontFamily};
  }

  .venn-circle text {
    font-size: 48px;
    font-family: ${t.fontFamily};
  }

  .venn-intersection text {
    font-size: 48px;
    fill: ${t.vennSetTextColor};
    font-family: ${t.fontFamily};
  }

  .venn-text-node {
    font-family: ${t.fontFamily};
    color: ${t.vennSetTextColor};
  }
`,"getStyles"),bZr=yZr;function xst(t){const e=new Map;for(const r of t){const n=r.targets.join("|"),i=e.get(n);i?Object.assign(i,r.styles):e.set(n,{...r.styles})}return e}k(xst,"buildStyleByKey");var EZr=k((t,e,r,n)=>{const i=n.db,a=i.getConfig?.(),{themeVariables:s,look:o,handDrawnSeed:l}=Ln(),u=o==="handDrawn",d=[s.venn1,s.venn2,s.venn3,s.venn4,s.venn5,s.venn6,s.venn7,s.venn8].filter(Boolean),h=i.getDiagramTitle?.(),f=i.getSubsetData(),p=i.getTextData(),g=xst(i.getStyleData()),m=a?.width??800,_=a?.height??450,y=m/1600,b=h?48*y:0,E=s.primaryTextColor??s.textColor,S=ud(e);S.attr("viewBox",`0 0 ${m} ${_}`),h&&S.append("text").text(h).attr("class","venn-title").attr("font-size",`${32*y}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*y).style("fill",s.vennTitleTextColor||s.titleColor);const T=dr(document.createElement("div")),C=JQr().width(m).height(_-b);T.datum(f).call(C);const x=u?mn.svg(T.select("svg").node()):void 0,A=nZr(f,{width:m,height:_-b,padding:a?.padding??15}),R=new Map;for(const O of A){const D=x_([...O.data.sets].sort());R.set(D,O)}p.length>0&&Ast(a,R,T,p,y,g);const I=wu(s.background||"#f4f4f4");T.selectAll(".venn-circle").each(function(O,D){const M=dr(this),N=x_([...O.sets].sort()),$=g.get(N),U=$?.fill||d[D%d.length]||s.primaryColor;M.classed(`venn-set-${D%8}`,!0);const B=$?.["fill-opacity"]??.1,V=$?.stroke||U,z=$?.["stroke-width"]||`${5*y}`;if(u&&x){const Y=R.get(N);if(Y&&Y.circles.length>0){const W=Y.circles[0],Q=x.circle(W.x,W.y,W.radius*2,{roughness:.7,seed:l,fill:OCe(U,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+D*60,stroke:V,strokeWidth:parseFloat(String(z))});M.select("path").remove(),M.node()?.insertBefore(Q,M.select("text").node())}}else M.select("path").style("fill",U).style("fill-opacity",B).style("stroke",V).style("stroke-width",z).style("stroke-opacity",.95);const G=$?.color||(I?Zt(U,30):Jt(U,30));M.select("text").style("font-size",`${48*y}px`).style("fill",G)}),u&&x?T.selectAll(".venn-intersection").each(function(O){const D=dr(this),P=x_([...O.sets].sort()),N=g.get(P),$=N?.fill;if($){const U=D.select("path"),B=U.attr("d");if(B){const V=x.path(B,{roughness:.7,seed:l,fill:OCe($,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),z=U.node();z?.parentNode?.insertBefore(V,z),U.remove()}}else D.select("path").style("fill-opacity",0);D.select("text").style("font-size",`${48*y}px`).style("fill",N?.color??s.vennSetTextColor??E)}):(T.selectAll(".venn-intersection text").style("font-size",`${48*y}px`).style("fill",O=>{const M=x_([...O.sets].sort());return g.get(M)?.color??s.vennSetTextColor??E}),T.selectAll(".venn-intersection path").style("fill-opacity",O=>{const M=x_([...O.sets].sort());return g.get(M)?.fill?1:0}).style("fill",O=>{const M=x_([...O.sets].sort());return g.get(M)?.fill??"transparent"}));const L=S.append("g").attr("transform",`translate(0, ${b})`),F=T.select("svg").node();if(F&&"childNodes"in F)for(const O of[...F.childNodes])L.node()?.appendChild(O);Xo(S,_,m,a?.useMaxWidth??!0)},"draw");function x_(t){return t.join("|")}k(x_,"stableSetsKey");function Ast(t,e,r,n,i,a){const s=t?.useDebugLayout??!1,l=r.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(const d of n){const h=x_(d.sets),f=u.get(h);f?f.push(d):u.set(h,[d])}for(const[d,h]of u.entries()){const f=e.get(d);if(!f?.text)continue;const p=f.text.x,g=f.text.y,m=Math.min(...f.circles.map(O=>O.radius)),_=Math.min(...f.circles.map(O=>O.radius-Math.hypot(p-O.x,g-O.y)));let v=Number.isFinite(_)?Math.max(0,_):0;v===0&&Number.isFinite(m)&&(v=m*.6);const y=l.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);s&&y.append("circle").attr("class","venn-text-debug-circle").attr("cx",p).attr("cy",g).attr("r",v).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);const b=Math.max(80*i,v*2*.95),E=Math.max(60*i,v*2*.95),C=(f.data.label&&f.data.label.length>0?Math.min(32*i,v*.25):0)+(h.length<=2?30*i:0),x=p-b/2,A=g-E/2+C,R=Math.max(1,Math.ceil(Math.sqrt(h.length))),I=Math.max(1,Math.ceil(h.length/R)),L=b/R,F=E/I;for(const[O,D]of h.entries()){const M=O%R,P=Math.floor(O/R),N=x+L*(M+.5),$=A+F*(P+.5);s&&y.append("rect").attr("class","venn-text-debug-cell").attr("x",x+L*M).attr("y",A+F*P).attr("width",L).attr("height",F).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);const U=L*.9,B=F*.9,V=y.append("foreignObject").attr("class","venn-text-node-fo").attr("width",U).attr("height",B).attr("x",N-U/2).attr("y",$-B/2).attr("overflow","visible"),z=a.get(D.id)?.color,G=V.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(D.label??D.id);z&&G.style("color",z)}}}k(Ast,"renderTextNodes");var SZr={draw:EZr},TZr={parser:iZr,db:vZr,renderer:SZr,styles:bZr};const CZr=Object.freeze(Object.defineProperty({__proto__:null,diagram:TZr},Symbol.toStringTag,{value:"Module"}));var Ux,Rst=(Ux=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ms,this.getAccTitle=Fs,this.setDiagramTitle=ks,this.getDiagramTitle=bs,this.getAccDescription=Us,this.setAccDescription=Bs}getNodes(){return this.nodes}getConfig(){const e=Gi,r=Ln();return _o({...e.treemap,...r.treemap??{}})}addNode(e,r){this.nodes.push(e),this.levels.set(e,r),r===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,r){const n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},i=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i&&i.forEach(a=>{Kce(a)&&(n?.textStyles?n.textStyles.push(a):n.textStyles=[a]),n?.styles?n.styles.push(a):n.styles=[a]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){ys(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},k(Ux,"TreeMapDB"),Ux);function Ost(t){if(!t.length)return[];const e=[],r=[];return t.forEach(n=>{const i={name:n.name,children:n.type==="Leaf"?void 0:[]};for(i.classSelector=n?.classSelector,n?.cssCompiledStyles&&(i.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(i.value=n.value);r.length>0&&r[r.length-1].level>=n.level;)r.pop();if(r.length===0)e.push(i);else{const a=r[r.length-1].node;a.children?a.children.push(i):a.children=[i]}n.type!=="Leaf"&&r.push({node:i,level:n.level})}),e}k(Ost,"buildHierarchy");var wZr=k((t,e)=>{Lg(t,e);const r=[];for(const a of t.TreemapRows??[])a.$type==="ClassDefStatement"&&e.addClass(a.className??"",a.styleText??"");for(const a of t.TreemapRows??[]){const s=a.item;if(!s)continue;const o=a.indent?parseInt(a.indent):0,l=xZr(s),u=s.classSelector?e.getStylesForClass(s.classSelector):[],d=u.length>0?u:void 0,h={level:o,name:l,type:s.$type,value:s.value,classSelector:s.classSelector,cssCompiledStyles:d};r.push(h)}const n=Ost(r),i=k((a,s)=>{for(const o of a)e.addNode(o,s),o.children&&o.children.length>0&&i(o.children,s+1)},"addNodesRecursively");i(n,0)},"populate"),xZr=k(t=>t.name?String(t.name):"","getItemName"),Ist={parser:{yy:void 0},parse:k(async t=>{try{const r=await cp("treemap",t);Pe.debug("Treemap AST:",r);const n=Ist.parser?.yy;if(!(n instanceof Rst))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");wZr(r,n)}catch(e){throw Pe.error("Error parsing treemap:",e),e}},"parse")},AZr=10,RS=10,sI=25,RZr=k((t,e,r,n)=>{const i=n.db,a=i.getConfig(),s=a.padding??AZr,o=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:u}=Ln();if(!l)return;const d=o?30:0,h=ud(e),f=a.nodeWidth?a.nodeWidth*RS:960,p=a.nodeHeight?a.nodeHeight*RS:500,g=f,m=p+d;h.attr("viewBox",`0 0 ${g} ${m}`),Xo(h,m,g,a.useMaxWidth);let _;try{const O=a.valueFormat||",";if(O==="$0,0")_=k(D=>"$"+oy(",")(D),"valueFormat");else if(O.startsWith("$")&&O.includes(",")){const D=/\.\d+/.exec(O),M=D?D[0]:"";_=k(P=>"$"+oy(","+M)(P),"valueFormat")}else if(O.startsWith("$")){const D=O.substring(1);_=k(M=>"$"+oy(D||"")(M),"valueFormat")}else _=oy(O)}catch(O){Pe.error("Error creating format function:",O),_=oy(",")}const v=ob().range(["transparent",u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),y=ob().range(["transparent",u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),b=ob().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);o&&h.append("text").attr("x",g/2).attr("y",d/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(o);const E=h.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),S=_ce(l).sum(O=>O.value??0).sort((O,D)=>(D.value??0)-(O.value??0)),C=jdr().size([f,p]).paddingTop(O=>O.children&&O.children.length>0?sI+RS:0).paddingInner(s).paddingLeft(O=>O.children&&O.children.length>0?RS:0).paddingRight(O=>O.children&&O.children.length>0?RS:0).paddingBottom(O=>O.children&&O.children.length>0?RS:0).round(!0)(S),x=C.descendants().filter(O=>O.children&&O.children.length>0),A=E.selectAll(".treemapSection").data(x).enter().append("g").attr("class","treemapSection").attr("transform",O=>`translate(${O.x0},${O.y0})`);A.append("rect").attr("width",O=>O.x1-O.x0).attr("height",sI).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",O=>O.depth===0?"display: none;":""),A.append("clipPath").attr("id",(O,D)=>`clip-section-${e}-${D}`).append("rect").attr("width",O=>Math.max(0,O.x1-O.x0-12)).attr("height",sI),A.append("rect").attr("width",O=>O.x1-O.x0).attr("height",O=>O.y1-O.y0).attr("class",(O,D)=>`treemapSection section${D}`).attr("fill",O=>v(O.data.name)).attr("fill-opacity",.6).attr("stroke",O=>y(O.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",O=>{if(O.depth===0)return"display: none;";const D=cn({cssCompiledStyles:O.data.cssCompiledStyles});return D.nodeStyles+";"+D.borderStyles.join(";")}),A.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",sI/2).attr("dominant-baseline","middle").text(O=>O.depth===0?"":O.data.name).attr("font-weight","bold").attr("style",O=>{if(O.depth===0)return"display: none;";const D="dominant-baseline: middle; font-size: 12px; fill:"+b(O.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",M=cn({cssCompiledStyles:O.data.cssCompiledStyles});return D+M.labelStyles.replace("color:","fill:")}).each(function(O){if(O.depth===0)return;const D=dr(this),M=O.data.name;D.text(M);const P=O.x1-O.x0,N=6;let $;a.showValues!==!1&&O.value?$=P-10-30-10-N:$=P-N-6;const B=Math.max(15,$),V=D.node();if(V.getComputedTextLength()>B){let Y=M;for(;Y.length>0;){if(Y=M.substring(0,Y.length-1),Y.length===0){D.text("..."),V.getComputedTextLength()>B&&D.text("");break}if(D.text(Y+"..."),V.getComputedTextLength()<=B)break}}}),a.showValues!==!1&&A.append("text").attr("class","treemapSectionValue").attr("x",O=>O.x1-O.x0-10).attr("y",sI/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(O=>O.value?_(O.value):"").attr("font-style","italic").attr("style",O=>{if(O.depth===0)return"display: none;";const D="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+b(O.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",M=cn({cssCompiledStyles:O.data.cssCompiledStyles});return D+M.labelStyles.replace("color:","fill:")});const R=C.leaves(),I=E.selectAll(".treemapLeafGroup").data(R).enter().append("g").attr("class",(O,D)=>`treemapNode treemapLeafGroup leaf${D}${O.data.classSelector?` ${O.data.classSelector}`:""}x`).attr("transform",O=>`translate(${O.x0},${O.y0})`);I.append("rect").attr("width",O=>O.x1-O.x0).attr("height",O=>O.y1-O.y0).attr("class","treemapLeaf").attr("fill",O=>O.parent?v(O.parent.data.name):v(O.data.name)).attr("style",O=>cn({cssCompiledStyles:O.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",O=>O.parent?v(O.parent.data.name):v(O.data.name)).attr("stroke-width",3),I.append("clipPath").attr("id",(O,D)=>`clip-${e}-${D}`).append("rect").attr("width",O=>Math.max(0,O.x1-O.x0-4)).attr("height",O=>Math.max(0,O.y1-O.y0-4)),I.append("text").attr("class","treemapLabel").attr("x",O=>(O.x1-O.x0)/2).attr("y",O=>(O.y1-O.y0)/2).attr("style",O=>{const D="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+b(O.data.name)+";",M=cn({cssCompiledStyles:O.data.cssCompiledStyles});return D+M.labelStyles.replace("color:","fill:")}).attr("clip-path",(O,D)=>`url(#clip-${e}-${D})`).text(O=>O.data.name).each(function(O){const D=dr(this),M=O.x1-O.x0,P=O.y1-O.y0,N=D.node(),$=4,U=M-2*$,B=P-2*$;if(U<10||B<10){D.style("display","none");return}let V=parseInt(D.style("font-size"),10);const z=8,G=28,Y=.6,W=6,Q=2;for(;N.getComputedTextLength()>U&&V>z;)V--,D.style("font-size",`${V}px`);let ie=Math.max(W,Math.min(G,Math.round(V*Y))),Z=V+Q+ie;for(;Z>B&&V>z&&(V--,ie=Math.max(W,Math.min(G,Math.round(V*Y))),!(ie<W&&V===z));)D.style("font-size",`${V}px`),Z=V+Q+ie;D.style("font-size",`${V}px`),(N.getComputedTextLength()>U||V<z||B<V)&&D.style("display","none")}),a.showValues!==!1&&I.append("text").attr("class","treemapValue").attr("x",D=>(D.x1-D.x0)/2).attr("y",function(D){return(D.y1-D.y0)/2}).attr("style",D=>{const M="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+b(D.data.name)+";",P=cn({cssCompiledStyles:D.data.cssCompiledStyles});return M+P.labelStyles.replace("color:","fill:")}).attr("clip-path",(D,M)=>`url(#clip-${e}-${M})`).text(D=>D.value?_(D.value):"").each(function(D){const M=dr(this),P=this.parentNode;if(!P){M.style("display","none");return}const N=dr(P).select(".treemapLabel");if(N.empty()||N.style("display")==="none"){M.style("display","none");return}const $=parseFloat(N.style("font-size")),U=28,B=.6,V=6,z=2,G=Math.max(V,Math.min(U,Math.round($*B)));M.style("font-size",`${G}px`);const W=(D.y1-D.y0)/2+$/2+z;M.attr("y",W);const Q=D.x1-D.x0,re=D.y1-D.y0-4,K=Q-8;M.node().getComputedTextLength()>K||W+G>re||G<V?M.style("display","none"):M.style("display",null)});const F=a.diagramPadding??8;CE(h,F,"flowchart",a?.useMaxWidth||!1)},"draw"),OZr=k(function(t,e){return e.db.getClasses()},"getClasses"),IZr={draw:RZr,getClasses:OZr},NZr={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},kZr=k(({treemap:t}={})=>{const e=SR(),r=Ln(),n=_o(e,r.themeVariables),i=_o(NZr,t),a=i.titleColor??n.titleColor,s=i.labelColor??n.textColor,o=i.valueColor??n.textColor;return`
  .treemapNode.section {
    stroke: ${i.sectionStrokeColor};
    stroke-width: ${i.sectionStrokeWidth};
    fill: ${i.sectionFillColor};
  }
  .treemapNode.leaf {
    stroke: ${i.leafStrokeColor};
    stroke-width: ${i.leafStrokeWidth};
    fill: ${i.leafFillColor};
  }
  .treemapLabel {
    fill: ${s};
    font-size: ${i.labelFontSize};
  }
  .treemapValue {
    fill: ${o};
    font-size: ${i.valueFontSize};
  }
  .treemapTitle {
    fill: ${a};
    font-size: ${i.titleFontSize};
  }
  `},"getStyles"),DZr=kZr,MZr={parser:Ist,get db(){return new Rst},renderer:IZr,styles:DZr};const LZr=Object.freeze(Object.defineProperty({__proto__:null,diagram:MZr},Symbol.toStringTag,{value:"Module"}));var IF=k((t,e)=>{const r=t<=1?t*100:t;if(r<0||r>100)throw new Error(`${e} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${t}`);return r},"toPercent"),Bv=k((t,e,r)=>({x:IF(e,`${r} evolution`),y:IF(t,`${r} visibility`)}),"toCoordinates"),tke=k(t=>{if(t){if(t==="+<>")return"bidirectional";if(t==="+<")return"backward";if(t==="+>")return"forward"}},"getFlowFromPort"),PZr=k(t=>{if(!t?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(t)?.[1];return t.includes("<>")?{flow:"bidirectional",label:r}:t.includes("<")?{flow:"backward",label:r}:t.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),FZr=k((t,e)=>{if(Lg(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){const r=t.evolution.stages.map(i=>i.secondName?`${i.name.trim()} / ${i.secondName.trim()}`:i.name.trim()),n=t.evolution.stages.filter(i=>i.boundary!==void 0).map(i=>i.boundary);e.updateAxes({stages:r,stageBoundaries:n})}if(t.anchors.forEach(r=>{const n=Bv(r.visibility,r.evolution,`Anchor "${r.name}"`);e.addNode(r.name,r.name,n.x,n.y,"anchor")}),t.components.forEach(r=>{const n=Bv(r.visibility,r.evolution,`Component "${r.name}"`),i=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,a=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,s=r.decorator?.strategy;e.addNode(r.name,r.name,n.x,n.y,"component",i,a,r.inertia,s)}),t.notes.forEach(r=>{const n=Bv(r.visibility,r.evolution,`Note "${r.text}"`);e.addNote(r.text,n.x,n.y)}),t.pipelines.forEach(r=>{const n=e.getNode(r.parent);if(!n||typeof n.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const i=n.y;e.startPipeline(r.parent),r.components.forEach(a=>{const s=`${r.parent}_${a.name}`,o=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,l=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,u=IF(a.evolution,`Pipeline component "${a.name}" evolution`);e.addNode(s,a.name,u,i,"pipeline-component",o,l),e.addPipelineComponent(r.parent,s)})}),t.links.forEach(r=>{const n=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let i=tke(r.fromPort)??tke(r.toPort);const{flow:a,label:s}=PZr(r.arrow);!i&&a&&(i=a);const o=r.linkLabel,l=s??o;e.addLink(e.resolveNodeId(r.from),e.resolveNodeId(r.to),n,l,i)}),t.evolves.forEach(r=>{const n=e.getNode(r.component);if(n?.y!==void 0){const i=IF(r.target,`Evolve target for "${r.component}"`);e.addTrend(r.component,i,n.y)}}),t.annotations.length>0){const r=t.annotations[0],n=Bv(r.x,r.y,"Annotations box");e.setAnnotationsBox(n.x,n.y)}t.annotation.forEach(r=>{const n=Bv(r.x,r.y,`Annotation ${r.number}`);e.addAnnotation(r.number,[{x:n.x,y:n.y}],r.text)}),t.accelerators.forEach(r=>{const n=Bv(r.x,r.y,`Accelerator "${r.name}"`);e.addAccelerator(r.name,n.x,n.y)}),t.deaccelerators.forEach(r=>{const n=Bv(r.x,r.y,`Deaccelerator "${r.name}"`);e.addDeaccelerator(r.name,n.x,n.y)})},"populateDb"),Nst={parser:{yy:void 0},parse:k(async t=>{const e=await cp("wardley",t);Pe.debug(e);const r=Nst.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");FZr(e,r)},"parse")},$x,BZr=($x=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(e){const r=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...r,...e,className:e.className??r.className,labelOffsetX:e.labelOffsetX??r.labelOffsetX,labelOffsetY:e.labelOffsetY??r.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const r=this.nodes.get(e);r&&(r.isPipelineParent=!0)}addPipelineComponent(e,r){const n=this.pipelines.get(e);n&&n.componentIds.push(r);const i=this.nodes.get(r);i&&(i.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,r){this.annotationsBox={x:e,y:r}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,r){this.size={width:e,height:r}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[r,n]of this.nodes)if(n.label===e)return r;return e}build(){const e=[];for(const r of this.nodes.values()){if(typeof r.x!="number"||typeof r.y!="number")throw new Error(`Node "${r.label}" is missing coordinates`);e.push(r)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k($x,"WardleyBuilder"),$x),Pc=new BZr;function kst(){return vt()["wardley-beta"]}k(kst,"getConfig");function Dst(t,e,r,n,i,a,s,o,l){Pc.addNode({id:t,label:e,x:r,y:n,className:i,labelOffsetX:a,labelOffsetY:s,inertia:o,sourceStrategy:l})}k(Dst,"addNode");function Mst(t,e,r=!1,n,i){Pc.addLink({source:t,target:e,dashed:r,label:n,flow:i})}k(Mst,"addLink");function Lst(t,e,r){Pc.addTrend({nodeId:t,targetX:e,targetY:r})}k(Lst,"addTrend");function Pst(t,e,r){Pc.addAnnotation({number:t,coordinates:e,text:r})}k(Pst,"addAnnotation");function Fst(t,e,r){Pc.addNote({text:t,x:e,y:r})}k(Fst,"addNote");function Bst(t,e,r){Pc.addAccelerator({name:t,x:e,y:r})}k(Bst,"addAccelerator");function Ust(t,e,r){Pc.addDeaccelerator({name:t,x:e,y:r})}k(Ust,"addDeaccelerator");function $st(t,e){Pc.setAnnotationsBox(t,e)}k($st,"setAnnotationsBox");function Gst(t,e){Pc.setSize(t,e)}k(Gst,"setSize");function zst(t){Pc.startPipeline(t)}k(zst,"startPipeline");function qst(t,e){Pc.addPipelineComponent(t,e)}k(qst,"addPipelineComponent");function Vst(t){Pc.setAxes(t)}k(Vst,"updateAxes");function Hst(t){return Pc.getNode(t)}k(Hst,"getNode");function Yst(t){return Pc.resolveNodeId(t)}k(Yst,"resolveNodeId");function Wst(){return Pc.build()}k(Wst,"getWardleyData");function Kst(){Pc.clear(),ys()}k(Kst,"clear");var UZr={getConfig:kst,addNode:Dst,addLink:Mst,addTrend:Lst,addAnnotation:Pst,addNote:Fst,addAccelerator:Bst,addDeaccelerator:Ust,setAnnotationsBox:$st,setSize:Gst,startPipeline:zst,addPipelineComponent:qst,updateAxes:Vst,getNode:Hst,resolveNodeId:Yst,getWardleyData:Wst,clear:Kst,setAccTitle:ms,getAccTitle:Fs,setDiagramTitle:ks,getDiagramTitle:bs,getAccDescription:Us,setAccDescription:Bs},$Zr=["Genesis","Custom Built","Product","Commodity"],GZr=k(()=>{const{themeVariables:t}=vt();return{backgroundColor:t.wardley?.backgroundColor??t.background??"#fff",axisColor:t.wardley?.axisColor??"#000",axisTextColor:t.wardley?.axisTextColor??t.primaryTextColor??"#222",gridColor:t.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:t.wardley?.componentFill??"#fff",componentStroke:t.wardley?.componentStroke??"#000",componentLabelColor:t.wardley?.componentLabelColor??t.primaryTextColor??"#222",linkStroke:t.wardley?.linkStroke??"#000",evolutionStroke:t.wardley?.evolutionStroke??"#dc3545",annotationStroke:t.wardley?.annotationStroke??"#000",annotationTextColor:t.wardley?.annotationTextColor??t.primaryTextColor??"#222",annotationFill:t.wardley?.annotationFill??t.background??"#fff"}},"getTheme"),zZr=k(()=>{const t=vt()["wardley-beta"];return{width:t?.width??900,height:t?.height??600,padding:t?.padding??48,nodeRadius:t?.nodeRadius??6,nodeLabelOffset:t?.nodeLabelOffset??8,axisFontSize:t?.axisFontSize??12,labelFontSize:t?.labelFontSize??10,showGrid:t?.showGrid??!1,useMaxWidth:t?.useMaxWidth??!0}},"getConfigValues"),qZr=k((t,e,r,n)=>{Pe.debug(`Rendering Wardley map
`+t);const i=zZr(),a=GZr(),s=i.nodeRadius*1.6,o=n.db,l=o.getWardleyData(),u=o.getDiagramTitle(),d=l.size?.width??i.width,h=l.size?.height??i.height,f=ud(e);f.selectAll("*").remove(),Xo(f,h,d,i.useMaxWidth),f.attr("viewBox",`0 0 ${d} ${h}`);const p=f.append("g").attr("class","wardley-map"),g=f.append("defs");g.append("marker").attr("id",`arrow-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.evolutionStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-end-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.linkStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-start-${e}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",a.linkStroke).attr("stroke","none"),p.append("rect").attr("class","wardley-background").attr("width",d).attr("height",h).attr("fill",a.backgroundColor);const m=d-i.padding*2,_=h-i.padding*2;u&&p.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",i.padding/2).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const v=k(N=>i.padding+N/100*m,"projectX"),y=k(N=>h-i.padding-N/100*_,"projectY"),b=p.append("g").attr("class","wardley-axes");b.append("line").attr("x1",i.padding).attr("x2",d-i.padding).attr("y1",h-i.padding).attr("y2",h-i.padding).attr("stroke",a.axisColor).attr("stroke-width",1),b.append("line").attr("x1",i.padding).attr("x2",i.padding).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke",a.axisColor).attr("stroke-width",1);const E=l.axes.xLabel??"Evolution",S=l.axes.yLabel??"Visibility";b.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",i.padding+m/2).attr("y",h-i.padding/4).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(E),b.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",i.padding/3).attr("y",i.padding+_/2).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${i.padding/3} ${i.padding+_/2})`).text(S);const T=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:$Zr;if(T.length>0){const N=p.append("g").attr("class","wardley-stages"),$=l.axes.stageBoundaries,U=[];if($&&$.length===T.length){let B=0;$.forEach(V=>{U.push({start:B,end:V}),B=V})}else{const B=1/T.length;T.forEach((V,z)=>{U.push({start:z*B,end:(z+1)*B})})}T.forEach((B,V)=>{const z=U[V],G=i.padding+z.start*m,Y=i.padding+z.end*m,W=(G+Y)/2;V>0&&N.append("line").attr("x1",G).attr("x2",G).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),N.append("text").attr("class","wardley-stage-label").attr("x",W).attr("y",h-i.padding/1.5).attr("fill",a.axisTextColor).attr("font-size",i.axisFontSize-2).attr("text-anchor","middle").text(B)})}if(i.showGrid){const N=p.append("g").attr("class","wardley-grid");for(let $=1;$<4;$++){const U=$/4,B=i.padding+m*U;N.append("line").attr("x1",B).attr("x2",B).attr("y1",i.padding).attr("y2",h-i.padding).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6"),N.append("line").attr("x1",i.padding).attr("x2",d-i.padding).attr("y1",h-i.padding-_*U).attr("y2",h-i.padding-_*U).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6")}}const C=new Map;if(l.nodes.forEach(N=>{C.set(N.id,{x:v(N.x),y:y(N.y),node:N})}),l.pipelines.length>0){const N=p.append("g").attr("class","wardley-pipelines"),$=p.append("g").attr("class","wardley-pipeline-links");l.pipelines.forEach(U=>{if(U.componentIds.length===0)return;const B=U.componentIds.map(Y=>({id:Y,pos:C.get(Y),node:l.nodes.find(W=>W.id===Y)})).filter(Y=>Y.pos&&Y.node).sort((Y,W)=>Y.node.x-W.node.x);for(let Y=0;Y<B.length-1;Y++){const W=B[Y],Q=B[Y+1];$.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",W.pos.x).attr("y1",W.pos.y).attr("x2",Q.pos.x).attr("y2",Q.pos.y).attr("stroke",a.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let V=1/0,z=-1/0,G=0;if(U.componentIds.forEach(Y=>{const W=C.get(Y);W&&(V=Math.min(V,W.x),z=Math.max(z,W.x),G=W.y)}),V!==1/0&&z!==-1/0){const W=i.nodeRadius*4,Q=G-W/2,ie=C.get(U.nodeId);if(ie){const Z=(V+z)/2;ie.x=Z,ie.y=Q-s/6}N.append("rect").attr("class","wardley-pipeline-box").attr("x",V-15).attr("y",Q).attr("width",z-V+30).attr("height",W).attr("fill","none").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const x=p.append("g").attr("class","wardley-links"),A=new Map;l.pipelines.forEach(N=>{A.set(N.nodeId,new Set(N.componentIds))});const R=l.links.filter(N=>!(!C.has(N.source)||!C.has(N.target)||A.get(N.target)?.has(N.source)));x.selectAll("line").data(R).enter().append("line").attr("class",N=>`wardley-link${N.dashed?" wardley-link--dashed":""}`).attr("x1",N=>{const $=C.get(N.source),U=C.get(N.target),V=l.nodes.find(W=>W.id===N.source).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,z=U.x-$.x,G=U.y-$.y,Y=Math.sqrt(z*z+G*G);return $.x+z/Y*V}).attr("y1",N=>{const $=C.get(N.source),U=C.get(N.target),V=l.nodes.find(W=>W.id===N.source).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,z=U.x-$.x,G=U.y-$.y,Y=Math.sqrt(z*z+G*G);return $.y+G/Y*V}).attr("x2",N=>{const $=C.get(N.source),U=C.get(N.target),V=l.nodes.find(W=>W.id===N.target).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,z=$.x-U.x,G=$.y-U.y,Y=Math.sqrt(z*z+G*G);return U.x+z/Y*V}).attr("y2",N=>{const $=C.get(N.source),U=C.get(N.target),V=l.nodes.find(W=>W.id===N.target).isPipelineParent?s/Math.sqrt(2):i.nodeRadius,z=$.x-U.x,G=$.y-U.y,Y=Math.sqrt(z*z+G*G);return U.y+G/Y*V}).attr("stroke",a.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",N=>N.dashed?"6 6":null).attr("marker-end",N=>N.flow==="forward"||N.flow==="bidirectional"?`url(#link-arrow-end-${e})`:null).attr("marker-start",N=>N.flow==="backward"||N.flow==="bidirectional"?`url(#link-arrow-start-${e})`:null),x.selectAll("text").data(R.filter(N=>N.label)).enter().append("text").attr("class","wardley-link-label").attr("x",N=>{const $=C.get(N.source),U=C.get(N.target),B=($.x+U.x)/2,V=U.y-$.y,z=U.x-$.x,G=Math.sqrt(z*z+V*V),Y=8,W=V/G;return B+W*Y}).attr("y",N=>{const $=C.get(N.source),U=C.get(N.target),B=($.y+U.y)/2,V=U.x-$.x,z=U.y-$.y,G=Math.sqrt(V*V+z*z),Y=8,W=-V/G;return B+W*Y}).attr("fill",a.axisTextColor).attr("font-size",i.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",N=>{const $=C.get(N.source),U=C.get(N.target),B=($.x+U.x)/2,V=($.y+U.y)/2,z=U.x-$.x,G=U.y-$.y,Y=Math.sqrt(z*z+G*G),W=8,Q=G/Y,ie=-z/Y,Z=B+Q*W,re=V+ie*W;let K=Math.atan2(G,z)*180/Math.PI;return(K>90||K<-90)&&(K+=180),`rotate(${K} ${Z} ${re})`}).text(N=>N.label);const I=p.append("g").attr("class","wardley-trends"),L=l.trends.map(N=>{const $=C.get(N.nodeId);if(!$)return null;const U=v(N.targetX),B=y(N.targetY),V=U-$.x,z=B-$.y,G=Math.sqrt(V*V+z*z),Y=i.nodeRadius+2,W=G>Y?U-V/G*Y:U,Q=G>Y?B-z/G*Y:B;return{origin:$,targetX:U,targetY:B,adjustedX2:W,adjustedY2:Q}}).filter(N=>N!==null);I.selectAll("line").data(L).enter().append("line").attr("class","wardley-trend").attr("x1",N=>N.origin.x).attr("y1",N=>N.origin.y).attr("x2",N=>N.adjustedX2).attr("y2",N=>N.adjustedY2).attr("stroke",a.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${e})`);const O=p.append("g").attr("class","wardley-nodes").selectAll("g").data(l.nodes).enter().append("g").attr("class",N=>["wardley-node",N.className?`wardley-node--${N.className}`:""].filter(Boolean).join(" "));O.filter(N=>N.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",N=>C.get(N.id).x).attr("cy",N=>C.get(N.id).y).attr("r",i.nodeRadius*2).attr("fill","#666").attr("stroke",a.componentStroke).attr("stroke-width",1),O.filter(N=>N.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",N=>C.get(N.id).x).attr("cy",N=>C.get(N.id).y).attr("r",i.nodeRadius*2).attr("fill","#ccc").attr("stroke",a.componentStroke).attr("stroke-width",1),O.filter(N=>N.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",N=>C.get(N.id).x).attr("cy",N=>C.get(N.id).y).attr("r",i.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const D=O.filter(N=>N.sourceStrategy==="market");D.append("circle").attr("class","wardley-market-overlay").attr("cx",N=>C.get(N.id).x).attr("cy",N=>C.get(N.id).y).attr("r",i.nodeRadius*2).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),O.filter(N=>!N.isPipelineParent&&N.sourceStrategy!=="market"&&N.className!=="anchor").append("circle").attr("cx",N=>C.get(N.id).x).attr("cy",N=>C.get(N.id).y).attr("r",i.nodeRadius).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1);const M=i.nodeRadius*.7,P=i.nodeRadius*1.2;if(D.append("line").attr("class","wardley-market-line").attr("x1",N=>C.get(N.id).x).attr("y1",N=>C.get(N.id).y-P).attr("x2",N=>C.get(N.id).x-P*Math.cos(Math.PI/6)).attr("y2",N=>C.get(N.id).y+P*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),D.append("line").attr("class","wardley-market-line").attr("x1",N=>C.get(N.id).x-P*Math.cos(Math.PI/6)).attr("y1",N=>C.get(N.id).y+P*Math.sin(Math.PI/6)).attr("x2",N=>C.get(N.id).x+P*Math.cos(Math.PI/6)).attr("y2",N=>C.get(N.id).y+P*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),D.append("line").attr("class","wardley-market-line").attr("x1",N=>C.get(N.id).x+P*Math.cos(Math.PI/6)).attr("y1",N=>C.get(N.id).y+P*Math.sin(Math.PI/6)).attr("x2",N=>C.get(N.id).x).attr("y2",N=>C.get(N.id).y-P).attr("stroke",a.componentStroke).attr("stroke-width",1),D.append("circle").attr("class","wardley-market-dot").attr("cx",N=>C.get(N.id).x).attr("cy",N=>C.get(N.id).y-P).attr("r",M).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),D.append("circle").attr("class","wardley-market-dot").attr("cx",N=>C.get(N.id).x-P*Math.cos(Math.PI/6)).attr("cy",N=>C.get(N.id).y+P*Math.sin(Math.PI/6)).attr("r",M).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),D.append("circle").attr("class","wardley-market-dot").attr("cx",N=>C.get(N.id).x+P*Math.cos(Math.PI/6)).attr("cy",N=>C.get(N.id).y+P*Math.sin(Math.PI/6)).attr("r",M).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),O.filter(N=>N.isPipelineParent===!0).append("rect").attr("x",N=>C.get(N.id).x-s/2).attr("y",N=>C.get(N.id).y-s/2).attr("width",s).attr("height",s).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1),O.filter(N=>N.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",N=>{const $=C.get(N.id);let U=N.isPipelineParent?s/2+15:i.nodeRadius+15;return N.sourceStrategy&&(U+=i.nodeRadius+10),$.x+U}).attr("y1",N=>{const $=C.get(N.id),U=N.isPipelineParent?s:i.nodeRadius*2;return $.y-U/2}).attr("x2",N=>{const $=C.get(N.id);let U=N.isPipelineParent?s/2+15:i.nodeRadius+15;return N.sourceStrategy&&(U+=i.nodeRadius+10),$.x+U}).attr("y2",N=>{const $=C.get(N.id),U=N.isPipelineParent?s:i.nodeRadius*2;return $.y+U/2}).attr("stroke",a.componentStroke).attr("stroke-width",6),O.append("text").attr("x",N=>{const $=C.get(N.id);if(N.className==="anchor")return N.labelOffsetX!==void 0?$.x+N.labelOffsetX:$.x;let U=i.nodeLabelOffset;N.sourceStrategy&&N.labelOffsetX===void 0&&(U+=10);const B=N.labelOffsetX??U;return $.x+B}).attr("y",N=>{const $=C.get(N.id);if(N.className==="anchor")return N.labelOffsetY!==void 0?$.y+N.labelOffsetY:$.y-3;let U=-i.nodeLabelOffset;N.sourceStrategy&&N.labelOffsetY===void 0&&(U-=10);const B=N.labelOffsetY??U;return $.y+B}).attr("class","wardley-node-label").attr("fill",N=>N.className==="evolved"?a.evolutionStroke:N.className==="anchor"?"#000":a.componentLabelColor).attr("font-size",i.labelFontSize).attr("font-weight",N=>N.className==="anchor"?"bold":"normal").attr("text-anchor",N=>N.className==="anchor"?"middle":"start").attr("dominant-baseline",N=>N.className==="anchor"?"middle":"auto").text(N=>N.label),l.annotations.length>0){const N=p.append("g").attr("class","wardley-annotations");if(l.annotations.forEach($=>{const U=$.coordinates.map(B=>({x:v(B.x),y:y(B.y)}));if(U.length>1)for(let B=0;B<U.length-1;B++)N.append("line").attr("class","wardley-annotation-line").attr("x1",U[B].x).attr("y1",U[B].y).attr("x2",U[B+1].x).attr("y2",U[B+1].y).attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");U.forEach(B=>{const V=N.append("g").attr("class","wardley-annotation");V.append("circle").attr("cx",B.x).attr("cy",B.y).attr("r",10).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5),V.append("text").attr("x",B.x).attr("y",B.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text($.number)})}),l.annotationsBox){let $=v(l.annotationsBox.x),U=y(l.annotationsBox.y);const B=10,V=16,z=11,G=N.append("g").attr("class","wardley-annotations-box"),Y=[...l.annotations].filter(Q=>Q.text).sort((Q,ie)=>Q.number-ie.number),W=[];if(Y.forEach((Q,ie)=>{const Z=G.append("text").attr("x",$+B).attr("y",U+B+(ie+1)*V).attr("font-size",z).attr("fill",a.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${Q.number}. ${Q.text}`);W.push(Z)}),W.length>0){let Q=0,ie=0;W.forEach(_e=>{const ye=_e.node(),Ue=ye.getComputedTextLength();Q=Math.max(Q,Ue);const Se=ye.getBBox();ie=Math.max(ie,Se.height)});const Z=Q+B*2+105,re=Y.length*V+B*2+ie/2,K=i.padding,j=d-i.padding-Z,se=i.padding,le=h-i.padding-re;$=Math.max(K,Math.min($,j)),U=Math.max(se,Math.min(U,le)),W.forEach((_e,ye)=>{_e.attr("x",$+B).attr("y",U+B+(ye+1)*V)}),G.insert("rect","text").attr("x",$).attr("y",U).attr("width",Z).attr("height",re).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(l.notes.length>0){const N=p.append("g").attr("class","wardley-notes");l.notes.forEach($=>{const U=v($.x),B=y($.y);N.append("text").attr("x",U).attr("y",B).attr("text-anchor","start").attr("font-size",11).attr("fill",a.axisTextColor).attr("font-weight","bold").text($.text)})}if(l.accelerators.length>0){const N=p.append("g").attr("class","wardley-accelerators");l.accelerators.forEach($=>{const U=v($.x),B=y($.y),V=60,z=30,G=20,Y=`
        M ${U} ${B-z/2}
        L ${U+V-G} ${B-z/2}
        L ${U+V-G} ${B-z/2-8}
        L ${U+V} ${B}
        L ${U+V-G} ${B+z/2+8}
        L ${U+V-G} ${B+z/2}
        L ${U} ${B+z/2}
        Z
      `;N.append("path").attr("d",Y).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),N.append("text").attr("x",U+V/2).attr("y",B+z/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text($.name)})}if(l.deaccelerators.length>0){const N=p.append("g").attr("class","wardley-deaccelerators");l.deaccelerators.forEach($=>{const U=v($.x),B=y($.y),V=60,z=30,G=20,Y=`
        M ${U+V} ${B-z/2}
        L ${U+G} ${B-z/2}
        L ${U+G} ${B-z/2-8}
        L ${U} ${B}
        L ${U+G} ${B+z/2+8}
        L ${U+G} ${B+z/2}
        L ${U+V} ${B+z/2}
        Z
      `;N.append("path").attr("d",Y).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),N.append("text").attr("x",U+V/2).attr("y",B+z/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text($.name)})}},"draw"),VZr={draw:qZr},HZr=k(({wardley:t}={})=>{const e=SR(),r=Ln(),n=_o(e,r.themeVariables),i=_o(n.wardley,t);return`
  .wardley-background {
    fill: ${i.backgroundColor};
  }
  .wardley-axes line, .wardley-axes path {
    stroke: ${i.axisColor};
  }
  .wardley-axis-label {
    fill: ${i.axisTextColor};
  }
  .wardley-stage-label {
    fill: ${i.axisTextColor};
  }
  .wardley-grid line {
    stroke: ${i.gridColor};
  }
  .wardley-node circle {
    fill: ${i.componentFill};
    stroke: ${i.componentStroke};
  }
  .wardley-node-label {
    fill: ${i.componentLabelColor};
  }
  .wardley-link {
    stroke: ${i.linkStroke};
  }
  .wardley-link--dashed {
    stroke-dasharray: 4 4;
  }
  .wardley-link-label {
    fill: ${i.axisTextColor};
  }
  .wardley-trend line {
    stroke: ${i.evolutionStroke};
  }
  .wardley-annotation-line {
    stroke: ${i.annotationStroke};
  }
  .wardley-annotation circle {
    fill: ${i.annotationFill};
    stroke: ${i.annotationStroke};
  }
  .wardley-annotation text {
    fill: ${i.annotationTextColor};
  }
  .wardley-annotations-box rect {
    fill: ${i.annotationFill};
    stroke: ${i.annotationStroke};
  }
  .wardley-annotations-box text {
    fill: ${i.annotationTextColor};
  }
  .wardley-pipeline-box {
    stroke: ${i.componentStroke};
  }
  .wardley-notes text {
    fill: ${i.axisTextColor};
  }
  `},"styles"),YZr={parser:Nst,db:UZr,renderer:VZr,styles:HZr};const WZr=Object.freeze(Object.defineProperty({__proto__:null,diagram:YZr},Symbol.toStringTag,{value:"Module"})),KZr=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:Prt,createInfoServices:Frt},Symbol.toStringTag,{value:"Module"})),jZr=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:Brt,createPacketServices:Urt},Symbol.toStringTag,{value:"Module"})),XZr=Object.freeze(Object.defineProperty({__proto__:null,PieModule:$rt,createPieServices:Grt},Symbol.toStringTag,{value:"Module"})),QZr=Object.freeze(Object.defineProperty({__proto__:null,TreeViewModule:zrt,createTreeViewServices:qrt},Symbol.toStringTag,{value:"Module"})),ZZr=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:Vrt,createArchitectureServices:Hrt},Symbol.toStringTag,{value:"Module"})),JZr=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:Mrt,createGitGraphServices:Lrt},Symbol.toStringTag,{value:"Module"})),eJr=Object.freeze(Object.defineProperty({__proto__:null,EventModelingModule:Wrt,createEventModelingServices:Krt},Symbol.toStringTag,{value:"Module"})),tJr=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:Art,createRadarServices:Rrt},Symbol.toStringTag,{value:"Module"})),rJr=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:Irt,createTreemapServices:Nrt},Symbol.toStringTag,{value:"Module"})),nJr=Object.freeze(Object.defineProperty({__proto__:null,WardleyModule:krt,createWardleyServices:Drt},Symbol.toStringTag,{value:"Module"}));export{hut as app,cJr as start};
            "0x2b42afe706cffd9a"            @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-400:oklch(75% .183 55.934);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-800:oklch(47% .157 37.304);--color-orange-900:oklch(40.8% .123 38.172);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-50:oklch(98.2% .018 155.826);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-950:oklch(26.6% .065 152.934);--color-cyan-50:oklch(98.4% .019 200.873);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-950:oklch(30.2% .056 229.695);--color-blue-50:oklch(97% .014 254.604);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-950:oklch(28.2% .091 267.935);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-50:oklch(97.1% .014 343.198);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-600:oklch(59.2% .249 .584);--color-pink-950:oklch(28.4% .109 3.907);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-foreground:var(--foreground)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground);scrollbar-width:thin;scrollbar-gutter:stable;overflow:hidden}*{scrollbar-width:thin;scrollbar-color:transparent transparent}:hover{scrollbar-color:hsl(var(--muted-foreground)/.3)transparent}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:0 0;border-radius:3px;transition:background .2s}:hover::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3)}::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}:where(code,pre,kbd,samp){font-family:var(--font-mono)}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6a7282;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#155dfc;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6a7282;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;-webkit-print-color-adjust:unset;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:#155dfc;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6a7282;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media(forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media(forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media(forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1{top:calc(var(--spacing)*1)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-3\.5{top:calc(var(--spacing)*3.5)}.top-4{top:calc(var(--spacing)*4)}.top-4\.5{top:calc(var(--spacing)*4.5)}.top-10{top:calc(var(--spacing)*10)}.top-\[50\%\]{top:50%}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-8{right:calc(var(--spacing)*8)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-3{bottom:calc(var(--spacing)*3)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-8{bottom:calc(var(--spacing)*8)}.bottom-32{bottom:calc(var(--spacing)*32)}.bottom-44{bottom:calc(var(--spacing)*44)}.bottom-\[calc\(50dvh-7rem\)\]{bottom:calc(50dvh - 7rem)}.left-0{left:calc(var(--spacing)*0)}.left-0\!{left:calc(var(--spacing)*0)!important}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-4{left:calc(var(--spacing)*4)}.left-\[50\%\]{left:50%}.left-\[calc\(var\(--sidebar-width\)\+0\.75rem\)\]{left:calc(var(--sidebar-width) + .75rem)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-9999{z-index:9999}.z-999999{z-index:999999}.z-\[20\]{z-index:20}.z-\[900\]{z-index:900}.z-\[1000\]{z-index:1000}.z-\[9999\]{z-index:9999}.z-\[999999\]{z-index:999999}.z-\[1000000\]{z-index:1000000}.z-\[1000001\]{z-index:1000001}.z-\[var\(--layer-popover\,1000000\)\]{z-index:var(--layer-popover,1000000)}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.-my-1{margin-block:calc(var(--spacing)*-1)}.-my-2{margin-block:calc(var(--spacing)*-2)}.-my-4{margin-block:calc(var(--spacing)*-4)}.my-1{margin-block:calc(var(--spacing)*1)}.my-1\.5{margin-block:calc(var(--spacing)*1.5)}.my-2{margin-block:calc(var(--spacing)*2)}.my-3{margin-block:calc(var(--spacing)*3)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-0{margin-top:calc(var(--spacing)*0)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.-mr-1{margin-right:calc(var(--spacing)*-1)}.-mr-1\.5{margin-right:calc(var(--spacing)*-1.5)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-auto{margin-right:auto}.mb-0\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-11{margin-left:calc(var(--spacing)*11)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.block\!{display:block!important}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-full{width:100%;height:100%}.h-\(--bits-select-anchor-height\){height:var(--bits-select-anchor-height)}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-24{height:calc(var(--spacing)*24)}.h-40{height:calc(var(--spacing)*40)}.h-48{height:calc(var(--spacing)*48)}.h-\[1\.15rem\]{height:1.15rem}.h-\[400px\]{height:400px}.h-\[500px\]{height:500px}.h-\[calc\(100vh-21rem\)\]{height:calc(100vh - 21rem)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.h-svh{height:100svh}.\!max-h-\[50vh\]{max-height:50vh!important}.\!max-h-\[80dvh\]{max-height:80dvh!important}.max-h-\(--bits-dropdown-menu-content-available-height\){max-height:var(--bits-dropdown-menu-content-available-height)}.max-h-\(--bits-select-content-available-height\){max-height:var(--bits-select-content-available-height)}.max-h-24{max-height:calc(var(--spacing)*24)}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-48{max-height:calc(var(--spacing)*48)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-80{max-height:calc(var(--spacing)*80)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[100dvh\]{max-height:100dvh}.max-h-full{max-height:100%}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.min-h-9{min-height:calc(var(--spacing)*9)}.min-h-12{min-height:calc(var(--spacing)*12)}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-\[10rem\]{min-height:10rem}.min-h-\[48px\]{min-height:48px}.min-h-\[60px\]{min-height:60px}.min-h-\[200px\]{min-height:200px}.min-h-fit{min-height:fit-content}.min-h-full{min-height:100%}.min-h-svh{min-height:100svh}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing)*0)}.w-1{width:calc(var(--spacing)*1)}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-5\/6{width:83.3333%}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-32{width:calc(var(--spacing)*32)}.w-36{width:calc(var(--spacing)*36)}.w-40{width:calc(var(--spacing)*40)}.w-48{width:calc(var(--spacing)*48)}.w-52{width:calc(var(--spacing)*52)}.w-60{width:calc(var(--spacing)*60)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-96{width:calc(var(--spacing)*96)}.w-\[10rem\]{width:10rem}.w-\[56rem\]{width:56rem}.w-\[calc\(100dvw-1\.5rem\)\]{width:calc(100dvw - 1.5rem)}.w-\[calc\(100vw-2rem\)\]{width:calc(100vw - 2rem)}.w-\[calc\(var\(--sidebar-width-icon\)\+1\.5rem\)\]{width:calc(var(--sidebar-width-icon) + 1.5rem)}.w-\[var\(--bits-popover-anchor-width\)\]{width:var(--bits-popover-anchor-width)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.\!max-w-4xl{max-width:var(--container-4xl)!important}.\!max-w-\[60rem\]{max-width:60rem!important}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-24{max-width:calc(var(--spacing)*24)}.max-w-36{max-width:calc(var(--spacing)*36)}.max-w-72{max-width:calc(var(--spacing)*72)}.max-w-\[17rem\]{max-width:17rem}.max-w-\[48rem\]{max-width:48rem}.max-w-\[56rem\]{max-width:56rem}.max-w-\[80\%\]{max-width:80%}.max-w-\[80vw\]{max-width:80vw}.max-w-\[85vw\]{max-width:85vw}.max-w-\[100vw\]{max-width:100vw}.max-w-\[150px\]{max-width:150px}.max-w-\[300px\]{max-width:300px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-full\!{max-width:100%!important}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-xs{max-width:var(--container-xs)}.min-w-\(--bits-select-anchor-width\){min-width:var(--bits-select-anchor-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-\[3\.5rem\]{min-width:3.5rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[200px\]{min-width:200px}.min-w-fit{min-width:fit-content}.min-w-max{min-width:max-content}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.origin-\(--bits-dropdown-menu-content-transform-origin\){transform-origin:var(--bits-dropdown-menu-content-transform-origin)}.origin-\(--bits-popover-content-transform-origin\){transform-origin:var(--bits-popover-content-transform-origin)}.origin-\(--bits-select-content-transform-origin\){transform-origin:var(--bits-select-content-transform-origin)}.origin-\(--bits-tooltip-content-transform-origin\){transform-origin:var(--bits-tooltip-content-transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.\!cursor-not-allowed{cursor:not-allowed!important}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-start{justify-items:start}.\!gap-3{gap:calc(var(--spacing)*3)!important}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-0\.75{gap:calc(var(--spacing)*.75)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-1\.25{gap:calc(var(--spacing)*1.25)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}.gap-10{gap:calc(var(--spacing)*10)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*12)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*12)*calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*-1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*-1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-0\.5{row-gap:calc(var(--spacing)*.5)}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-end{justify-self:flex-end}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[1\.125rem\]{border-radius:1.125rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none\!{border-radius:0!important}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-3xl{border-top-left-radius:var(--radius-3xl);border-top-right-radius:var(--radius-3xl)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-t-lg\!{border-top-left-radius:var(--radius)!important;border-top-right-radius:var(--radius)!important}.\!border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.\!border-dashed{--tw-border-style:dashed!important;border-style:dashed!important}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.\!border-border\/50{border-color:var(--border)!important}@supports (color:color-mix(in lab,red,red)){.\!border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)!important}}.border-amber-500\/40{border-color:#f99c0066}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/40{border-color:color-mix(in oklab,var(--color-amber-500)40%,transparent)}}.border-border,.border-border\/30{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/30{border-color:color-mix(in oklab,var(--border)30%,transparent)}}.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-current{border-color:currentColor}.border-destructive,.border-destructive\/40{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/40{border-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.border-destructive\/50{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,var(--destructive)50%,transparent)}}.border-green-500{border-color:var(--color-green-500)}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-purple-200{border-color:var(--color-purple-200)}.border-red-500\/50{border-color:#fb2c3680}@supports (color:color-mix(in lab,red,red)){.border-red-500\/50{border-color:color-mix(in oklab,var(--color-red-500)50%,transparent)}}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-accent,.bg-accent\/50{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/50{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.bg-amber-400\/10{background-color:#fcbb001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-400\/10{background-color:color-mix(in oklab,var(--color-amber-400)10%,transparent)}}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/10{background-color:color-mix(in oklab,var(--color-amber-500)10%,transparent)}}.bg-amber-500\/20{background-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/20{background-color:color-mix(in oklab,var(--color-amber-500)20%,transparent)}}.bg-background,.bg-background\/5{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/5{background-color:color-mix(in oklab,var(--background)5%,transparent)}}.bg-background\/25{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/25{background-color:color-mix(in oklab,var(--background)25%,transparent)}}.bg-background\/70{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/70{background-color:color-mix(in oklab,var(--background)70%,transparent)}}.bg-background\/80{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/80{background-color:color-mix(in oklab,var(--background)80%,transparent)}}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.bg-black\/5{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-black\/85{background-color:#000000d9}@supports (color:color-mix(in lab,red,red)){.bg-black\/85{background-color:color-mix(in oklab,var(--color-black)85%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-border,.bg-border\/20{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border\/20{background-color:color-mix(in oklab,var(--border)20%,transparent)}}.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border\/50{background-color:color-mix(in oklab,var(--border)50%,transparent)}}.bg-card{background-color:var(--card)}.bg-cyan-50{background-color:var(--color-cyan-50)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.bg-destructive\/15{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/15{background-color:color-mix(in oklab,var(--destructive)15%,transparent)}}.bg-destructive\/20{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/20{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.bg-foreground,.bg-foreground\/5{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/5{background-color:color-mix(in oklab,var(--foreground)5%,transparent)}}.bg-foreground\/15{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/15{background-color:color-mix(in oklab,var(--foreground)15%,transparent)}}.bg-foreground\/20{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/20{background-color:color-mix(in oklab,var(--foreground)20%,transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab,var(--muted-foreground)10%,transparent)}}.bg-muted-foreground\/15{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/15{background-color:color-mix(in oklab,var(--muted-foreground)15%,transparent)}}.bg-muted-foreground\/50{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/50{background-color:color-mix(in oklab,var(--muted-foreground)50%,transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted)20%,transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/30{background-color:color-mix(in oklab,var(--muted)30%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-muted\/60{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/60{background-color:color-mix(in oklab,var(--muted)60%,transparent)}}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-pink-50{background-color:var(--color-pink-50)}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/5{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/5{background-color:color-mix(in oklab,var(--primary)5%,transparent)}}.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/10{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-200\/60{background-color:#e9d5ff99}@supports (color:color-mix(in lab,red,red)){.bg-purple-200\/60{background-color:color-mix(in oklab,var(--color-purple-200)60%,transparent)}}.bg-purple-300\/50{background-color:#d9b3ff80}@supports (color:color-mix(in lab,red,red)){.bg-purple-300\/50{background-color:color-mix(in oklab,var(--color-purple-300)50%,transparent)}}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500)10%,transparent)}}.bg-red-400\/10{background-color:#ff65681a}@supports (color:color-mix(in lab,red,red)){.bg-red-400\/10{background-color:color-mix(in oklab,var(--color-red-400)10%,transparent)}}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-sidebar\/50{background-color:var(--sidebar)}@supports (color:color-mix(in lab,red,red)){.bg-sidebar\/50{background-color:color-mix(in oklab,var(--sidebar)50%,transparent)}}.bg-transparent{background-color:#0000}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500)10%,transparent)}}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-muted{--tw-gradient-from:var(--muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.fill-muted-foreground{fill:var(--muted-foreground)}.fill-white{fill:var(--color-white)}.stroke-muted-foreground{stroke:var(--muted-foreground)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.p-px{padding:1px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-0\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\.75{padding-inline:calc(var(--spacing)*3.75)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-0\.75{padding-block:calc(var(--spacing)*.75)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.\!ps-2{padding-inline-start:calc(var(--spacing)*2)!important}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-10{padding-top:calc(var(--spacing)*10)}.pt-13{padding-top:calc(var(--spacing)*13)}.pt-14{padding-top:calc(var(--spacing)*14)}.pt-24{padding-top:calc(var(--spacing)*24)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-0\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-2\.25{padding-bottom:calc(var(--spacing)*2.25)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pb-10{padding-bottom:calc(var(--spacing)*10)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-7\.5{--tw-leading:calc(var(--spacing)*7.5);line-height:calc(var(--spacing)*7.5)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.\!text-red-400{color:var(--color-red-400)!important}.text-accent-foreground{color:var(--accent-foreground)}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-blue-600{color:var(--color-blue-600)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-cyan-600{color:var(--color-cyan-600)}.text-destructive{color:var(--destructive)}.text-foreground,.text-foreground\/80{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\/80{color:color-mix(in oklab,var(--foreground)80%,transparent)}}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-muted-foreground,.text-muted-foreground\/50{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/50{color:color-mix(in oklab,var(--muted-foreground)50%,transparent)}}.text-muted-foreground\/60{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/60{color:color-mix(in oklab,var(--muted-foreground)60%,transparent)}}.text-muted-foreground\/70{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/70{color:color-mix(in oklab,var(--muted-foreground)70%,transparent)}}.text-muted-foreground\/80{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/80{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.text-orange-600{color:var(--color-orange-600)}.text-orange-800{color:var(--color-orange-800)}.text-pink-600{color:var(--color-pink-600)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-900{color:var(--color-purple-900)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-white\!{color:var(--color-white)!important}.text-white\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.text-yellow-600{color:var(--color-yellow-600)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.mix-blend-difference{mix-blend-mode:difference}.shadow-\[0_0_0_1px_var\(--sidebar-border\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--sidebar-border));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none\!{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-muted{--tw-ring-color:var(--muted)}.ring-ring\/10{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.ring-ring\/10{--tw-ring-color:color-mix(in oklab,var(--ring)10%,transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring\/50{outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.outline-ring\/50{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-lg\!{--tw-backdrop-blur:blur(var(--blur-lg))!important;-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)!important;backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)!important}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-none\!{--tw-backdrop-blur: !important;-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)!important;backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)!important}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\,opacity\]{transition-property:left,right,width,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.delay-300{transition-delay:.3s}.\!duration-0{--tw-duration:0s!important;transition-duration:0s!important}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.delay-300{--tw-animation-delay:.3s;animation-delay:.3s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.running{animation-play-state:running}.group-focus-within\:opacity-100:is(:where(.group):focus-within *),.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\:flex:is(:where(.group):hover *){display:flex}.group-hover\:hidden:is(:where(.group):hover *){display:none}.group-hover\:fill-destructive:is(:where(.group):hover *){fill:var(--destructive)}.group-hover\:stroke-destructive:is(:where(.group):hover *){stroke:var(--destructive)}.group-hover\:stroke-foreground:is(:where(.group):hover *){stroke:var(--foreground)}.group-hover\:pr-6:is(:where(.group):hover *){padding-right:calc(var(--spacing)*6)}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/expand\:opacity-100:is(:where(.group\/expand):hover *),.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing)*8)}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing)*-8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing)*8)!important;height:calc(var(--spacing)*8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offcanvas\]\:pointer-events-none:is(:where(.group)[data-collapsible=offcanvas] *){pointer-events:none}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-0\.775\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width)*-.775)}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-0\.775\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width)*-.775)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[collapsible\=offcanvas\]\:opacity-0:is(:where(.group)[data-collapsible=offcanvas] *){opacity:0}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing)*-4)}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing)*0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[state\=open\]\:-rotate-180:is(:where(.group)[data-state=open] *){rotate:-180deg}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing)*1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing)*2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing)*1)}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\:left-\[calc\(1\/2\*100\%-1px\)\]:after{content:var(--tw-content);left:calc(50% - 1px)}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.first\:ml-4:first-child{margin-left:calc(var(--spacing)*4)}.last\:mr-4:last-child{margin-right:calc(var(--spacing)*4)}.focus-within\:border-border:focus-within{border-color:var(--border)}.focus-within\:shadow-md:focus-within{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-accent\!:hover{background-color:var(--accent)!important}.hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/50:hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.hover\:bg-amber-400\/20:hover{background-color:#fcbb0033}@supports (color:color-mix(in lab,red,red)){.hover\:bg-amber-400\/20:hover{background-color:color-mix(in oklab,var(--color-amber-400)20%,transparent)}}.hover\:bg-background\/45:hover{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-background\/45:hover{background-color:color-mix(in oklab,var(--background)45%,transparent)}}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.hover\:bg-destructive\/10\!:hover{background-color:var(--destructive)!important}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/10\!:hover{background-color:color-mix(in oklab,var(--destructive)10%,transparent)!important}}.hover\:bg-destructive\/30:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/30:hover{background-color:color-mix(in oklab,var(--destructive)30%,transparent)}}.hover\:bg-destructive\/80:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/80:hover{background-color:color-mix(in oklab,var(--destructive)80%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-foreground\/10:hover{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-foreground\/10:hover{background-color:color-mix(in oklab,var(--foreground)10%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-muted-foreground\/10:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted-foreground\/10:hover{background-color:color-mix(in oklab,var(--muted-foreground)10%,transparent)}}.hover\:bg-muted-foreground\/15:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted-foreground\/15:hover{background-color:color-mix(in oklab,var(--muted-foreground)15%,transparent)}}.hover\:bg-muted-foreground\/20:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted-foreground\/20:hover{background-color:color-mix(in oklab,var(--muted-foreground)20%,transparent)}}.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.hover\:bg-muted\/80:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/80:hover{background-color:color-mix(in oklab,var(--muted)80%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-red-400\/20:hover{background-color:#ff656833}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-400\/20:hover{background-color:color-mix(in oklab,var(--color-red-400)20%,transparent)}}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:bg-sidebar-border\/50:hover{background-color:var(--sidebar-border)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-sidebar-border\/50:hover{background-color:color-mix(in oklab,var(--sidebar-border)50%,transparent)}}.hover\:bg-transparent:hover{background-color:#0000}.hover\:fill-destructive:hover{fill:var(--destructive)}.hover\:stroke-destructive:hover{stroke:var(--destructive)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-destructive:hover{color:var(--destructive)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-red-400:hover{color:var(--color-red-400)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_var\(--sidebar-accent\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--sidebar-accent));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-muted:focus{background-color:var(--muted)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-primary:focus{--tw-ring-color:var(--primary)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus-visible\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-accent:active{background-color:var(--accent)}.active\:bg-muted-foreground\/25:active{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.active\:bg-muted-foreground\/25:active{background-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:bg-sidebar-border:active{background-color:var(--sidebar-border)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-0:disabled{opacity:0}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:opacity-100:disabled{opacity:1}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing)*4)1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\[highlighted\]\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-\[multiline\]\:py-2\.5[data-multiline]{padding-block:calc(var(--spacing)*2.5)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:-translate-x-1\/2[data-side=bottom]{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:-translate-y-\[calc\(-50\%_\+_1px\)\][data-side=bottom]{--tw-translate-y: calc((-50% + 1px)*-1) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:-translate-y-\[calc\(50\%_-_3px\)\][data-side=left]{--tw-translate-y: calc((50% - 3px)*-1) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:translate-x-\[calc\(50\%_\+_2px\)\][data-side=right]{--tw-translate-x: calc(50% + 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:translate-y-1\/2[data-side=right]{--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:translate-x-1\/2[data-side=top]{--tw-translate-x: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:translate-y-\[calc\(-50\%_\+_2px\)\][data-side=top]{--tw-translate-y: calc(-50% + 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab,var(--destructive)90%,transparent)}}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fill-mode-forwards[data-state=closed]{--tw-animation-fill-mode:forwards;animation-fill-mode:forwards}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-bottom-full[data-state=closed]{--tw-exit-translate-y: 100% }.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:bg-transparent\![data-state=open]{background-color:#0000!important}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100% }.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}@media(hover:hover){.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--sidebar-accent-foreground)}}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:data-highlighted\:text-destructive[data-variant=destructive][data-highlighted]{color:var(--destructive)}@media not all and (min-width:48rem){.max-md\:hidden{display:none}}@media(min-width:40rem){.sm\:top-\[50\%\]{top:50%}.sm\:right-auto{right:auto}.sm\:bottom-auto{bottom:auto}.sm\:left-\[50\%\]{left:50%}.sm\:mt-0{margin-top:calc(var(--spacing)*0)}.sm\:flex{display:flex}.sm\:max-h-\[100vh\]{max-height:100vh}.sm\:w-auto{width:auto}.sm\:w-max{width:max-content}.sm\:max-w-6xl{max-width:var(--container-6xl)}.sm\:max-w-\[calc\(100vw-2rem\)\]{max-width:calc(100vw - 2rem)}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.sm\:translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.sm\:data-\[state\=closed\]\:slide-out-to-bottom-0[data-state=closed]{--tw-exit-translate-y: 0% }.sm\:data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.sm\:data-\[state\=open\]\:slide-in-from-bottom-0[data-state=open]{--tw-enter-translate-y: 0% }.sm\:data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}}@media(min-width:48rem){.md\:absolute{position:absolute}.md\:top-8{top:calc(var(--spacing)*8)}.md\:left-8{left:calc(var(--spacing)*8)}.md\:left-\[calc\(var\(--sidebar-width\)-3\.25rem\)\]{left:calc(var(--sidebar-width) - 3.25rem)}.md\:z-0{z-index:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-6{height:calc(var(--spacing)*6)}.md\:h-\[90vh\]{height:90vh}.md\:max-h-\[100vh\]{max-height:100vh}.md\:w-\(--sidebar-width\){width:var(--sidebar-width)}.md\:w-6{width:calc(var(--spacing)*6)}.md\:w-\[calc\(var\(--sidebar-width\)\+0\.75rem\)\]{width:calc(var(--sidebar-width) + .75rem)}.md\:w-auto{width:auto}.md\:max-w-3xl{max-width:var(--container-3xl)}.md\:max-w-32{max-width:calc(var(--spacing)*32)}.md\:max-w-\[90vw\]\!{max-width:90vw!important}.md\:max-w-\[min\(calc\(100cqw-9rem\)\,25rem\)\]{max-width:min(100cqw - 9rem,25rem)}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}.md\:gap-2{gap:calc(var(--spacing)*2)}:where(.md\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.md\:p-6{padding:calc(var(--spacing)*6)}.md\:p-8{padding:calc(var(--spacing)*8)}.md\:px-0{padding-inline:calc(var(--spacing)*0)}.md\:px-6{padding-inline:calc(var(--spacing)*6)}.md\:px-8{padding-inline:calc(var(--spacing)*8)}.md\:\!py-3{padding-block:calc(var(--spacing)*3)!important}.md\:py-2{padding-block:calc(var(--spacing)*2)}.md\:py-8{padding-block:calc(var(--spacing)*8)}.md\:pt-0{padding-top:calc(var(--spacing)*0)}.md\:pt-4{padding-top:calc(var(--spacing)*4)}.md\:pt-6{padding-top:calc(var(--spacing)*6)}.md\:pt-28{padding-top:calc(var(--spacing)*28)}.md\:pt-32{padding-top:calc(var(--spacing)*32)}.md\:pb-2{padding-bottom:calc(var(--spacing)*2)}.md\:pl-8{padding-left:calc(var(--spacing)*8)}.md\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.md\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:group-data-\[collapsible\=offcanvas\]\:pointer-events-auto:is(:where(.group)[data-collapsible=offcanvas] *){pointer-events:auto}.md\:group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing)*2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing)*2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}.dark\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\:border-border\/20:is(.dark *){border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.dark\:border-border\/20:is(.dark *){border-color:color-mix(in oklab,var(--border)20%,transparent)}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:border-muted:is(.dark *){border-color:var(--muted)}.dark\:border-purple-800:is(.dark *){border-color:var(--color-purple-800)}.dark\:bg-blue-950:is(.dark *){background-color:var(--color-blue-950)}.dark\:bg-cyan-950:is(.dark *){background-color:var(--color-cyan-950)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-destructive\/70:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/70:is(.dark *){background-color:color-mix(in oklab,var(--destructive)70%,transparent)}}.dark\:bg-foreground\/10:is(.dark *){background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-foreground\/10:is(.dark *){background-color:color-mix(in oklab,var(--foreground)10%,transparent)}}.dark\:bg-green-950:is(.dark *){background-color:var(--color-green-950)}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:bg-muted-foreground\/15:is(.dark *){background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-muted-foreground\/15:is(.dark *){background-color:color-mix(in oklab,var(--muted-foreground)15%,transparent)}}.dark\:bg-muted\/75:is(.dark *){background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-muted\/75:is(.dark *){background-color:color-mix(in oklab,var(--muted)75%,transparent)}}.dark\:bg-orange-900:is(.dark *){background-color:var(--color-orange-900)}.dark\:bg-orange-950:is(.dark *){background-color:var(--color-orange-950)}.dark\:bg-pink-950:is(.dark *){background-color:var(--color-pink-950)}.dark\:bg-primary\/8:is(.dark *){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-primary\/8:is(.dark *){background-color:color-mix(in oklab,var(--primary)8%,transparent)}}.dark\:bg-primary\/15:is(.dark *){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-primary\/15:is(.dark *){background-color:color-mix(in oklab,var(--primary)15%,transparent)}}.dark\:bg-purple-500\/20:is(.dark *){background-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-purple-500\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-purple-500)20%,transparent)}}.dark\:bg-purple-700\/50:is(.dark *){background-color:#8200da80}@supports (color:color-mix(in lab,red,red)){.dark\:bg-purple-700\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-purple-700)50%,transparent)}}.dark\:bg-purple-800\/40:is(.dark *){background-color:#6e11b066}@supports (color:color-mix(in lab,red,red)){.dark\:bg-purple-800\/40:is(.dark *){background-color:color-mix(in oklab,var(--color-purple-800)40%,transparent)}}.dark\:bg-purple-950:is(.dark *){background-color:var(--color-purple-950)}.dark\:bg-secondary:is(.dark *){background-color:var(--secondary)}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\:text-blue-400:is(.dark *){color:var(--color-blue-400)}.dark\:text-cyan-400:is(.dark *){color:var(--color-cyan-400)}.dark\:text-foreground:is(.dark *){color:var(--foreground)}.dark\:text-green-400:is(.dark *){color:var(--color-green-400)}.dark\:text-orange-200:is(.dark *){color:var(--color-orange-200)}.dark\:text-orange-400:is(.dark *){color:var(--color-orange-400)}.dark\:text-pink-400:is(.dark *){color:var(--color-pink-400)}.dark\:text-purple-100:is(.dark *){color:var(--color-purple-100)}.dark\:text-purple-300:is(.dark *){color:var(--color-purple-300)}.dark\:text-purple-400:is(.dark *){color:var(--color-purple-400)}.dark\:text-secondary-foreground:is(.dark *){color:var(--secondary-foreground)}.dark\:text-yellow-400:is(.dark *){color:var(--color-yellow-400)}.dark\:text-yellow-500:is(.dark *){color:var(--color-yellow-500)}.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:color-mix(in oklab,var(--ring)20%,transparent)}}.dark\:outline-ring\/40:is(.dark *){outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.dark\:outline-ring\/40:is(.dark *){outline-color:color-mix(in oklab,var(--ring)40%,transparent)}}.dark\:focus-within\:border-border:is(.dark *):focus-within{border-color:var(--border)}@media(hover:hover){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:bg-muted-foreground\/25:is(.dark *):hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted-foreground\/25:is(.dark *):hover{background-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}.dark\:hover\:bg-muted\/30:is(.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted\/30:is(.dark *):hover{background-color:color-mix(in oklab,var(--muted)30%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *)[data-state=checked]{background-color:var(--primary-foreground)}.dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *)[data-state=unchecked]{background-color:var(--foreground)}.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:color-mix(in oklab,var(--input)80%,transparent)}}.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-8 svg:not([class*=size-]){width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\:not\(\:first-child\)\]\:mt-1:not(:first-child){margin-top:calc(var(--spacing)*1)}.\[\&\:not\(\:first-child\)\]\:mt-2:not(:first-child){margin-top:calc(var(--spacing)*2)}.\[\&\:not\(\:first-child\)\]\:last\:mr-4:not(:first-child):last-child{margin-right:calc(var(--spacing)*4)}.\[\&\:not\(\:last-child\)\]\:first\:ml-4:not(:last-child):first-child{margin-left:calc(var(--spacing)*4)}.\[\&\>\*\]\:flex-1>*{flex:1}@media(min-width:40rem){.sm\:\[\&\>\*\]\:flex-none>*{flex:none}}.\[\&\>\*\:first-child\]\:rounded-r-none>:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.\[\&\>\*\:last-child\]\:rounded-l-none>:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.\[\&\>\*\:not\(\:first-child\)\:not\(\:last-child\)\]\:rounded-none>:not(:first-child):not(:last-child){border-radius:0}@media(hover:hover){.hover\:\[\&\>kbd\]\:opacity-100:hover>kbd{opacity:1}}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}@media(hover:hover){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing)*-2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing)*-2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}@media(hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-foreground\/25:hover{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-foreground\/25:hover{background-color:color-mix(in oklab,var(--foreground)25%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(95% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(95% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(87.5% 0 0);--input:oklch(92% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0);--code-background:oklch(98.5% 0 0);--code-foreground:oklch(14.5% 0 0);--font-mono:ui-monospace,SFMono-Regular,"SF Mono",Monaco,"Cascadia Code","Roboto Mono",Consolas,"Liberation Mono",Menlo,monospace;--layer-popover:1000000;--chat-form-area-height:8rem;--chat-form-area-offset:2rem;--max-message-height:max(24rem,min(80dvh,calc(100dvh - var(--chat-form-area-height) - 12rem)))}@media(min-width:640px){:root{--chat-form-area-height:24rem;--chat-form-area-offset:12rem}}.dark{--background:oklch(16% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(29% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.3);--input:oklch(100% 0 0/.3);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0);--code-background:oklch(22.5% 0 0);--code-foreground:oklch(87.5% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}a.svelte-1q39rn8,button.svelte-1q39rn8{cursor:pointer}[data-select-viewport],[data-combobox-viewport]{scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch!important}[data-combobox-viewport]::-webkit-scrollbar{display:none!important}[data-select-viewport]::-webkit-scrollbar{display:none!important}[data-scroll-area-viewport]{scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch!important}[data-scroll-area-viewport]::-webkit-scrollbar{display:none!important}:where([data-scroll-area-viewport]){display:flex;flex-direction:column;align-items:stretch}:where([data-scroll-area-content]){flex-grow:1}html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}@media(hover:none)and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY( calc(var(--lift) * var(--offset) + var(--lift) * -100%) );opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media(max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 87%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 93%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 84%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 43%, 17%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 9%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media(prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}.agentic-content.svelte-1uhcmx5{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:48rem}.agentic-text.svelte-1uhcmx5{width:100%}.agentic-turn.svelte-1uhcmx5{position:relative;border:1.5px dashed var(--muted-foreground);border-radius:.75rem;padding:1rem;transition:background .1s}.agentic-turn-label.svelte-1uhcmx5{position:absolute;top:-1rem;left:.75rem;padding:0 .375rem;background:var(--background);font-size:.7rem;font-weight:500;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em}.turn-stats.svelte-1uhcmx5{margin-top:.75rem;padding-top:.5rem;border-top:1px solid hsl(var(--muted) / .5)}.processing-container.svelte-3902tz{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.processing-text.svelte-3902tz{background:linear-gradient(90deg,var(--muted-foreground),var(--foreground),var(--muted-foreground));background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:svelte-3902tz-shine 1s linear infinite;font-weight:500;font-size:.875rem}@keyframes svelte-3902tz-shine{to{background-position:-200% 0}}.raw-output.svelte-3902tz{width:100%;max-width:48rem;margin-top:1.5rem;padding:1rem 1.25rem;border-radius:1rem;background:hsl(var(--muted) / .3);color:var(--foreground);font-size:.875rem;line-height:1.6;white-space:pre-wrap;word-break:break-word}.chat-processing-info-container.svelte-1ktvj8d{position:sticky;top:0;z-index:10;padding:0 1rem .75rem;opacity:0;transform:translateY(50%);transition:opacity .3s ease-out,transform .3s ease-out}.chat-processing-info-container.visible.svelte-1ktvj8d{opacity:1;transform:translateY(0)}.chat-processing-info-content.svelte-1ktvj8d{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;justify-content:center;max-width:48rem;margin:0 auto}.chat-processing-info-detail.svelte-1ktvj8d{color:var(--muted-foreground);font-size:.75rem;padding:.25rem .75rem;border-radius:.375rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace;white-space:nowrap}@media(max-width:768px){.chat-processing-info-content.svelte-1ktvj8d{gap:.5rem}.chat-processing-info-detail.svelte-1ktvj8d{font-size:.7rem;padding:.2rem .5rem}}@font-face{font-family:KaTeX_AMS;src:url(data:font/woff2;base64,d09GMgABAAAAAG2sAA4AAAAA+ZAAAG1TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAhlQIMAmcDBEICoOjbILCdAE2AiQDh3oLhAoABCAFiHAHkiEMgScbF8Yn2LYMqH+3gyd/6PAsswO12yEpWsM7RgaCjQOA0H9txf//n5dUxtAmsKQoiOrc/H9QyJEtsi2GVCpzFfRhZqLYbDKTtn0lSwsTw4QD7NnnQk643jskZDh6Xt7UYM3oxmzbFmaT31X7vZ1Ofhd9hkIf+BQk6AtGG/a+RmtE9xoXbdSFR9FOxB/VXmLkD83DqE4FExWNqd74/RMZBmGaKMQcZltI/65kuqt4ilq1coTJWyVukOiXfAqeKn6l+6QPtVT6rXYGto38SU7e4Uk3/727jLss7jIhrCQkYayEBAhDSEIYIWEkIewlIIiKCAiyxLFBwYljonXt6i7Ouoq1ra1dalvbWmuH/b91/tecWqj/pqac+1YCofNIkRQIBX76ptq8ukczdzwgMCUWWoodMkGQZ3ft6nyKqwI7KeFue1/SHUtaOwqw7TgF5tndJCoYCgA/+62qM3gYoIgYOam9285l9XfxkH/iu38HrbRFKJSoMJjBJjCgES++/OTHN6DBBueVEIYT2GWyRdAHtyHtUsaeIRvdS2u75fbihomUAGb5+yWIaWaO3JdsU7GIyb0Pb3poSrpKiYBzf7AK9SlVxD/8A+daldCmPrcJza8x8r/LpGgixmTJrFgX5G/8hAdL7CvF8O5+/iWvIDC3577J0maohbY0WFRACoy8qQwAew8Jnz+kDUr+8xf1F7W6anTmtgm0NQg6e6tf/qrhuxkLWVNIFCiMTKl8UgjTfNcN7gVSWtZyl4UhlL8cYBua79sSxvP/f68dTriql0Yh2+tr9L60ggEc4ek/vtP37WQoJx1Z1ph7B8h2XBh32wMgafuz3v4knSQuXEi4hGlue4EKF2tbQ/h7aMVcJjZv2b0jkEgFvr0tEdh6F9Id3/nfT1/78gFJ/RH5/llAOTlhNnfzEn7FlJJ28JoSvbym8F5GheQjYKiQfgjuZCkAfDdk1Juq3ISb0T1TwELasbb7P1WtdgDbm1O1FzalorsYu27wByCAGYCABqINDCmZhIJFUPKjYNpLg7aXoCgqbsqJ3KCTLmr3QghNEWMdq/46b9FdWx6EtZzNJndz2JcOq/87oSq6oisQtlqcQhiEgYeeMVcn97chl3h0QokzTZhIacRK0sfKpBUp06NxFAVNXtef5/fLZj+4LfFZimSKiBMyIeh+OG6P4XxkooIDrPkPY8tKb5EfFxapYBItbkYApP10JSqA3NoKgKXGiuGQeYGojtgD/Lr5/7Ig80pXqASMUvLebfJPPzYXK86kRESeAJC4usAODr9E4Lj1TR7/Xb7NRGMFbLC+7PSB13yR611fdKPZu1/bg96lvlAESkFlK9EUOpMjVxksDq+Xt25A6ZyZS7meWzK+TCjzlCll4bJpMiMGR6AyuSItXRMLJwBJYYkVOqPVp6ptZOZ0ZvLJJhOi4CtcFTP7b9O+W882Lndm+0r8f1q+/b7jN+9f60ZTcnr8ATGZUr9W/Yi68p7tJCnTZ86eO5UMf6zuOaBEppXFygy9FTqHUtelb27riSDThFL1p+586nVdWJ9p75b+Wh/ZqsVut3Hr9q15y1PWVPin/xWab5/m0NEa9sudNv6sYfKfeEwe/I+/ec22retH161dsXzx0GB/X/vJ0JfzQafdqpSi/BhfLgrCh4M3L56wwUEBivr929cvOumgveaaaaqJpIGKBTzE/dzDnQwApMR4uBhTDaqDEqP67wC2NRUXGv2x24RUnAmCBD77wM2zZsdO/z9mLUNBRuAMXQPeXALO+RvSLr8Fapfpdx9HyM47Ip6uMMGkYihHznuCPIIE6bQASkLUGUJQUkYzRCBe/AxRoDlBZ+5d04o8IkYtyEylRdFNIvw0BlmJCKvUkHI2bpGuLkaltH7iXaItZ/b65hOcIqItT6cdYEUSZIZja4XadViIIoIGBQwIFiEhox7WoQEv1phY/tb66Si7wy5p28Gv+LsNvgcUdTnXmHnW4eiBR50ZpLs3FHikhn6RYTMVu2QVVdHRxSqMkBdXDcQwo04lBMow5QgU4UeziWWIOFkcEtgDgWVsetVwUfaKex2mS0KGtOIlVcqXdmqSEYZZGsg+CwopajOkAl2Q4qkpi3TWAYtJiWHgvJ80io3RWh0jiqjQO4o60GjLNQK2FTf+KpHa9pYviciSr0MaRdXrpOTDEGuXBhbEvEmgvwwbdeJoR/RSM6SDOKdagHQ2wqrxpAKC6yyJSGdE+OaT3t4FDnCezOHwkiLlRuUW+mLwYke/GgMtPiYJXZ30/Qcx0/3JYoUKYMiwSIpHbSL7VGjanAP3bsEKfjn6dvOJus/qHGgx7L30Ub4qgSkHiAPNWuqEPSLodh28E2+TnupcUJCubVa6SzMksBsIwoWv96O8o6RGwibZGZE1ROKatM1SuKRIRfapSDIil4pB2pAsycWbT6FQ3jv2guxaxo/B04cPw5uP0z7n9zW8E/NRAJefDW6ZIKyUZFjDIsS1uMwkoo5wTkDUL1pa0SWlI/JiO3iJaHuZzlgsR0KIUpDFmNGF/Q2DMmrRZe105IoFgDupQ0iCuF+oOv+OCXCtQLY/BXKToktOUrITYVHEC9eF60LKHVFVGRD/syOsCn8guCSWJ2yGQhQgCDGIuJW8jIS8gjx5FfnyHhTIEgplGUWygmJZRYmMBrWYQEgWupJW3nwKglnC53MGb7OD6iCTMHz0Bydl+PyaBNe4RrJ7wupsmuMuSaRIkGH4YMgxFBhKDF8MPwx/jACs5qEQYLvfotBYpGtBdSSs6lhcYRMUrqvCYcRutOtHRA2gj5yGktbl8t4+jToJUJg6CQunb7vselHdLlSd7YZ5S5VpWmkaxCEtsMJ/IBzXsMB2ZEEYjKZ2hkD4D6pEZ1fWi1ZnE35EIoBt9JPwCRIEb2ORmH2w/TpXun/gE4+VqfooFESEjlkWBD7nzNirvHg35SghHLlrb33SVqc6e3cyTo4GgfBb9PRR/BupvXRhiZFMTh3nkARsZ93nHcT0YzaoS5qe8RFg6ZWlXn8eTih221wZ5dtLptfbCoPIPn6+9KLMy5OWxmueem96EQpjI6QyNQdu9SWHNF7vWnoGSbBSlaWX1t0uGOzdt/CLxLrYiAEVmDKmsUsCqqeiZV1BSj4W2U201K6nTRENe7KxgpgY5agZvmyvG/ac5pFBMnoBDg25zMYRSJNUubF+lqwwi23xLjOlYGdT6vXRXJvz6glG7copS17LGU09Pxu/JjnQFjQ+5rRseKajXT1qOislLpYWMdRuYAHbNltUOjPleXvDxw9cvbAxQNt+9zgBjI7DVpvAmMiSEwrtEmbdP7CrxFmq1lhiw6FIrSy/n8g61BaApSGTI5iV9SjxJBRGjys63bN3i34pQ2JwNbvjtqw7XzQ5b2xR8iCIDmnMFA2fOS9DLSW9JSSzJTj5eQvOc+POcK+I9ruSur0FBcCZO4xUSlYw6oXSikC4LfEg9HJGMt5RCvo1tiiNSSpaNAxLmhyk7wORDBk1iRIrWwBqAyA5sskuTtAgkiRvTZC/L0QK1qAhWQY5IqAxCKRkDZpGlmg5gxnNAZAKGS2JEidXAFoDQIS68gY7KG0Wc28hB23jHeSga/EectA31wEKum70oW1GbAsj8MG47QsF0U76IyDKNILNIsh8jhqaRSjLUF+hWLGuVrKJINsI3e5JsA9wCHAMcKog5whyidBdQ5JbkHuQR5BnBXlFkHeE3Ucp/DKfb29IW24pXfX/IN55M50iVhPdqMe37B8zxoFL8M+UMlhmyLTL0kt6bLI+0Mk92zvEdqGgQcuMirJGIQB1xD6huvNRiTyCI7TPwY0g7xMcQYKD2oEB2dYo2kJbOsi4SUsoSQK46lg8skEwZdE8LeqWHno2ynI2ysZBvVuG0zyaeayDulNLVZcktUybRDVzcBCdCpsy9JDpjb78MVftMQBHcNjXmYmPMOU9F9pnISP5ma/ANaLYfzi/lm555m9OtXNCeWkx5azqOJTsT0y7ij8C597MNMlFlKOjkiHfiY0jFL20PfW9TZQ7odxrGn7oqPp/T0bnnTvuQ7uDH2N1hb15zTZ3q0XfHzy6s91UpdmS23dvz/YfuHzZdYVI4mw0bA9b3PXcc/S5To7TvYf29SrOUjz9zn4EW9TdUoGzzvYzVGiosOhp0DCAtl5fVbsfVbPeQ5qnOmAdVKyrVsZYBWhvyxsaIRCYydEghut0QAO+rdyRo050ccD9gtdu0VXd1QtnyHXazV9NKY0sgQP7VhBQYw9T798IdUnGyNiDBRAAsiYNinzojGIhgi0EBENu+TGC0CQLMlmdSZOihlnb5e24jIvooNB8CIIg8oMQAgGhU7D6ufIkOilOFierk4WFBkAXMH5gQJ6G7LTHOWfMMPZQCsQwkBXizepGCJBETFCR5zzPo1KU4h1/56mqEFj37Yhm7VAMa33f9P3a5+Zzp6qtqnaLdjE9Xl2JGtF8kG7KN5Sv6J319g37fP8RlvCeuZzKWWn0C0pRwFUQiGybtAmT6Wcjo3z9yEhYMpmnIstVUYCoRqHm8wgwefy4vxCWRAWdUosDuLrpttvchp4IqYoR6x9hyggh00UATsPDw/Q1IG8VnMUYQVSrjVfcWRKhm5UsyYArgOA5m7wSEGSW5VmW5VoWHB6OBJjZIi6AfoNp5s08tRRXFV0BAsmCWTBNtGVus8L0uUZfnsF0hcm2I522KAgg7xPCfuYuV7h/ly69ZL+/lQP0CnZjVki9S7Tp1gNEI1R0Rhb1xNUHAYY2hLq/zrJqgWgUYOeYHEGGqcgWi3zQXd3CDM0r2W8AZiwyaLLALMUTE8ZURuB+LOe8BqSCWwwAuKFYQkay9ATmXUIt2gLSjo7gGjvUQKAANSZP2qHgRMnYktOZqyvsQUxQkR82UfoLRD3LntTgJkZwbBiiCpnEfrvLA7DuYMTiHbAqZD8YufAQ8G92MORwAFCj5RUeFTkAGBACiGoBxGFat/GW1CguMEmao3NeYqwmJCqcwbDTAuLLp3kEblAC3So/HDQRLse7TLsWkm9C9zntkG31BVGI3RDKaxlnPMJ4vIsrh8d1NuZ8EKcIBstDBqPJ77cLEAA3o0NbDC/0By6ISZg80UOMcaVx1GmSKAhwybcuVz4TfDS3SR4iIRHM2i/ODQkN4+Y722ZOY1wqOhpm/GUdCNxfjuOuzT4uqh3EvISEQQCv+2Ua5roySQW+PugTKCT8NLcxpm7pTk1TmSgmk4fC/NJ8dxBXC2DIsPe+qdFNs03vztHoEihC8109szPXmkC7zGcywAq2Yl3tX12uQD6PdyykfyoBFV2uFMgYAcFvMOb7zE1+r4niAgFLQLdAKjpph/YnaTeK20EivH8VD5oxgRA1ggeLqljklQgYagyTjqKDOvp8hXxUrBFSvcyGZdYcjCHxMhlgUG/OMNIiP+5yMUYR7JgsmwHi+yXRzG++PiGagObKHegQsCW+dl4+78UOh+ERehDmIv5GvesEiYT+f0IFanDRjL7SOCN4hUmH1VGGeIFRRWl4p/FjC6H7yDyINA/XhWGbhLN984juFp4Oi52Z6mee4YOw5xfKY95DxV60GiCZh6SB8Ykmhio6XR8EknhVmTdbDZ5zD88IF1hzmXBPV6WhM88hfL4rznEtDP6EYU99wBc+SqIRUBWfRTBxsaOooPgaRvSlKzijEZLj7xYsmC0eQdaKntecpn2pUxnVnziBi4lmhXGLbhIf+ujDtf3dr2kilpijWmv0qyf8WDOjMDuLQF28qpyLam4j3IewzhQHWh9N2qGSJ7QhudSucGbxBrxQwaizrfBkjNPlNM2ITwfCglrbu7LA3hPxf1jpwftyYv2DaM4DGIqLNLIk4UITAA2jgzFRtLpmmlgfWYwk2gg4JXFqToet1/26vGpl/FBxhHe6fOnBVzuNgINKmHUAkiT/h501dce7eRsvEGDOXgcxXqkoKHou5XcuNU2NDCtUCTAejqkoQmtfOur9rZpwe30nkgSx32582eownm9gp/iaou5HLGdJ35VinkE4UdMMUQIIbjGuAsn0UtVR/wrCBhxtJf6gQtI3rjCbZ7MxXnMTWMQXxWXhZ/86gCeadB/bKVGEZdxkf118HFCEd9mN1YlbvwQIElvkaRvx78TCs6/eam5V9QYlLYnX4Hd7pUzx/Ym44sl0azlKvcsKh5ooQq96Q0UH7XmUFL48LQVC+++nNRMEvZ1GKYq+qG1bjtqfMhGux9Ol8bzA/NokZbG7TBK1aILB+OBtkaA4IC9zRpPUko/UCoRGDqarF3frDOhu6rkqBqtekSjsatR9VvTtl+hbw8c8F+JPl8zl5qWUyREGmfZC6WDdi5ZCAt20mGBBm6K4IxLwbBUz9k/JJ3DK4+dJ8QEVHKmGoj5Z/VF4UmMCBWahwOSbrLOTNXy0Q4fR6PYgKlzFbsK0QXvJSekTx46hCnsCGWEIYW9yL4GiHMoBW4x/Ryar4iVMPjbh8smI4sqG6seMLfhaGS3tORDUhAsQZYXjx4kaO2/8SN9HB4Fhdv2yW43cHjynWC1ysUumUGWcs0eQn9AWySszOWdCw/D4zSIEWKwNGvCbLCHv9z5sbY8jeVRGCwCpYnsU+dnPH6E1ZPwmi95g2LTTlqbhX/9RRTkG7q9qgFLr7EST+UUwhHcinhdvlD06wO4P9RvEHrXPKgYErdGfBD5XnoebrEnX+GYFz7QQT+D9gQwzl3DFs8naQ8tQyrq1AMBNkaC4FYUIdUv0RTFHbAHmuDrDB0gRdB2fyFur+RevCPhYoEgeObV5TO5rxtB/vrz4AbUtjrRvhGdo/avko4KL6gAvlwW6VvR1PcIzcABoPkBFyCraJy66uok7orCFFQizxT9PUHcBS1dw4VIE4DrPeaXZ3NFTEYHB9qFp+TR1HFaP+yPuKWmIoZOfmk6bSxx9ND/S3gj05fpBdCs9gRK7Mo4V/MYpBZMi09ovAjAUJLnIQFrbhll0AygQGodCaV8FT8VnSHBhGTr9hOYcOX4je+ARy9c24HDEY5UH0ZsgoUwGJ/J5iYal0T8jKM1vUJZU0EiGJIy177ecjPjP0ifVItSoTcwqoJi+qG16kF4EFKzb8DSFPcoahTKPEh0kDQnebMwjmEBQ/Cxll9KNqrZIq+YE2Evw8IwTryO0/5WFkn34rJh4UQM2+d7RUFFdLlHl8sFmtRwZM1kIwws27CFVBFkcgEkU8uBbTTTTko5pl92lI1zKWKgRBFucb94+j5NhPupkI6TbfSzw8kv0CsfqgU02f7S7gc2qzm2ztc/JXDKmQZr6qjSFKfOVecSJ10nwl4NjgOpkgwkrJLioisGQqBfL8eWRCLIxoRT6ROr8uoZyHLUI31cHsdGk/SpWwnwJwxMBAJMatvSieczDgLLhs0punP9M9GMiFT9l/05P9Co3/b1aXAyRvcycsXUVEvILzOU7FmNflZ+U0+H9MGoUjK+vfM978EpTm/TLZaEYPLl354CxyotKGysmeSuQp+Juv9qJ6kwKwB680nj//V5UR6pEgx5PR1Ig7Ir9CdZSRAIAKi6YWkBMmPvdUux1Db9d0SZ40BgiOOTlnS5+eRwJlbg6EUmuYQsMolcCPoOr+mg1etsFQ1bx8DEX+8dAYHtBbcj0iIqd1KbCT68lFRQ58wQjlYRkZ9LKfmnPuEPUoQu1N3swBoLfh5qDKuqKQDEg8EYi/gEtnjUQMn1SiHQsjppthq4JbQCn7mFW5X15KsrsWukQy+w4QV3vbCibRmdJGb5hY8uDG5GIoFzlSHURqjjDAZWGmfJ4lexPWS5bYuMRKn67TpfaScsjvv5QKaB278Yce4AKLGu9Ug/AhjQKeCVQnC17CbBl3gr2PtCjIRyj4Izso9nc7MR8NcUKQ9x9bwqEJU2KjPeyMjMC3wDBJFqYU0lID6M6IKsQFP+nkNP4/vpzAbUDlsAmTnRlvFdQW/QT6Qg2Ot9Zuk24CKvet4ReglPIYsiFpSu0LcTUEhDE1lb5r8zt2Jg/CriK0oye/vRFGPDDm0sig7fPKyC4AI4ItuDm11innfV320gkpy6vfB5n0jiaKlZw80eHadZZml8EkEwKTqDjgB5MDxQAglM9BCnXBRJ5iiy1bpXjnbZFNC2axMbfZ0PFRH9L0+QR1HuX7aC6agDB7uwxEPol1qDDSjBrLoqucNaIhf+T9xUT9whF+CpH7MRWfYNBAEG55ymOgehd79izwzGhrzsFAg3aWyVrsgV6lfw8Sk5LlBJZns7cJy/Ya5iv1PbXhtK8RBPT7NKTl0mJVIH2TXkLMDNGBlB+h4xumcT+o8tmIGYmXpPLFfK4Hc3a1n3LMcPoVYdtLJxH3jXN1x+/vpqueyznmDrWBNuJSCKiFwjno+57724rS7vfzf4Hl2HmP/fxUWB0uZPcjOv0F9GsNMPOYy9q5wlwDIEYGIWKDhpBMNpjEUgzEjwdn+8drrTHK4dSzeNdQWDU8JnpXUWFTph4eiWshCm0r9iYkLIwuMK8SoacwCRP2uF4DhNNTXfcaYtdbcAYOLl6UDjGBCYbrLIFOgejbjuRCJ1YmbtM4AEqaeWk/to8FR/3Xz6MyVoTyES71cbxasUKeDZWwjSFVAOoP3TALYwReYDZ8HBvWTxSVUDDYpFf7iTTjvNGjaHqre5qj54LgGsVjA0n8tmFOK3u2yTb3oYVzKpM3Fujw7X2pSJPbRYcaiQKomu0PzaWlKm0hWOUw/pvpHm14XBxNE2sFOd72e2V05hg1Y7DPnZcntRDltfMsXGXg63rRRul36uEzcQrEaYUm1bqGNLrCrYrFOvhd0ucbm894LC6maz3mUEEQXgexWsrWK/WitSqpf+LQNgW2FQac3HEsksCVRbK7F/g0p3LeTNqvqiFrevrmfo8eStDk267s3BXHUjUIYveAkvcQsdjbwic+Il2e2WJAVznbAjirRukAo5JEf8EwbHYk7aPWFfHHcVX551eJk5rzFe3cWvCacMLZcgfAxPpwu08mMi8eeqxS4uC2bbQXbJpWrkVTyAbE/qZCIRX5nC6V6p8eY2NIKIkf2H0DLsCLkvhBXrZVDKJlkANtZ/ifRXgIkYC6Ig1N9eYjIveZjIZZnf4BvOEjCCWEWxvv9WsdsMmKCVyMI1mPS0u5RS16WoF9nHpWcJD1TcYV2tcMORZ2O22lGxlClt80GdZ1MaGSA+CxIx88WrHE5SwVbamJPyhGvDV6NQVCPkuVQKKlPGFsDRpqfUe7kH+DDLsb1+p+VPBTHutjVfK2PL7HBTQ/krXs8jiGuKsrmgzpm1ooRSSnACdqYiaymYoKhgurAWx18ArQkcYdjct6U8ZKKcGz+23ZZchh6n46rSDgqsE7fAACyNzJpZqD0eTWNycO5yM1MaMUzKjVLukljy8gnqlp7RrmsWw9YPRhsl/PHgm41q2Fow1QpoNS/2hEk2SeVMpyVjAc67gDhOIK9LhJXueA3aPfJU9c9i4T2Fom7GjlkfpzxJZVy7z9dl8+up5+QvLJGEUHKLngySgjJHF97BE1p0ty+mQD0LKLhJlGDOgwLgTYT7j+3w/YB6YicRCzAdoOoHqpCk4Ap4HF8p+6AXPIZp1PpS1+vRxaeTmle9MoEvGb0LDhNkTYhk0DN50IZJttVTI2ZF5xxazDKzx71YCKGUO6YE8IoXJ5K5byX8IjelO5KhXxsbyeVpoWwlo49AzjYE8LbVypIuAjkUittedtQhP1LkupaWIHsVPYVQpmpOjUcsM2ftiP2ETuXFzDPPIOzo3fS6zVLVqc3i9jO/0y5EkaFb9FS8OUUy3oVHtjMeGFebmBNA4Za3UzqlX4anEmKEfhqLZI+qAl0/VL15gNO3XSyGbti+TQ5R29Df7PUuSQin51htZ+bsIwkWZmTrGOzssVzB/X+bNRB9WSc9il7k4oXqG4rXLP6Uy8qRGLvWCzImVxddguspOmlNENdrNcms/THkCy9kbPC3G8ry3fC5sMrznNnwV2nuvz9ZoP+AAoW10H7J3CWY01fqNnBhOaRfKlv/z66CyqTajFZ0jWRAndoM9f4SE5MQWP80OnMkeTnoUH8g+1PeNwaVR5Gjm/43Z+1L1Fs60eH0G81YAUbj87Lrt8QWiJU1AaRBksVXzynPrl+pb7PbWgA6fwou4o8VYXscOQMMui6HSxiOt85iRlpscFPvYgM+1TXPDRsfiRf16mmMPxFxZOMTwFPapIy2BI08y8XDCV8XDHK8H7yldju0F9nXZEqdIk3Z0bSxYvlVt5U0HwwsxIea8ulCA/0SjyEFVe2vzoUirmkSnVW2+PHWQ2OadqKms1cP1BzTg5lLJnlMc2UsG/1Mjj0bCCCD+QVpWMpHKszbiOHLzR+meIzXErw3rOZ5RUEXWD0PwSmv5NrbO1/6GI3J+oDxZPqcjn6D9mIGeZ/SLRGQftheEUmlbFXBrKkDsMkpRaby5orc4TnEgnmfkeHDo9ZZqansFqS00SaKOxTpWUjl51plu4peKszuOivYyYbFvvTNLtUYqsHV1JXQ4qTJPkUKuMenfsqocJxqbNaFYAxxFLqavN6p904Vjn6Kqu3eo962HyVvgAcytN4mJ1KLZnlPG2zVZ1ovRmkvn92n8vwUsffb9M1xYzHmtTO2XYYXUTkSBlcdTb8Q9GambMXtwrGPcv3KnYSUIUlNWO5o326yf0Fcw6yu3AV7POSo3AWDzLaoUSF9YKmlllnfItyDwH6F7e4Jj5j/b0cuWKxTRpIy1Lx+iEHrzKz73BHx9cXPSk5ziUEh4zZiyQ8f81tcR0rvJ+D9XAy3aR4Auj6yml0Aqdzz70G5B1s2Gu+82ryiytOA5d//z0rHvvvum2iLjfPolWIwxtrAOk+XVD/WiWqxGhYYv0xFzGElNnsl4Pa5+YvWtbsduCyhQY9FitCnAcojYDqsE9l2Cq/pKe+UKnRwSRW4HQxtpI3M8VoZ32sCY2UGpo6ZKErhf6KjForbKK3qtF2u5oemsUsmbUkobUaOGOpfRYyjWxib19N4HuWFA4R4a8cI0Eu2MqYN6XbW34IQv4+UgkKZv1b2LBzJvekafAEgSEoBatyctEWvU4lhxf8rDcF1NvmmGwBNpWx1VvjPBM4Uj+bjr0v1moPnV9RwzfDfCa3yK+e3cvEoNZLT87LP3otZTYopMk4iKhjcMMgwRDr9uPxr29lygmJ5ZBYIpH8S88bgMR9FczZAAVp59G+ul0KL651MngdEhLlif9SH7ubbtckApGU85TF6Ain1aZD9R8Q06k0y7XKVtfbWBNzlJRWUu86/tcHDKPc/7EUp6uVcwrWKgQwbiYLKd8As/r9v42hirC0mDslcptVSymaYYI1WuT+POH9u1xI+hddnOXsf8W7rirb2eACw1fBlCdl79ixpNS79utjnRwYEKaFiG+ChppgvbwQj08kPg3a3dSJ6AEqgtlutgVrtfvcdzMGblphiFbYy0LuLdAP6R5ZfE3ydoI+EVglQTAKg3kK9DPnox/J9fC4qC3e41ah8XTDqmlJ6GvUtdc1er2BERS+0EaPkACq/UsmIRTgOJVZEhGbN96RKGmDNsdrdSJI2fBgmQHu93wXRVBzF4GfkYd0SPIcsGRZ3kge8FkxlWjMQMVw3/JgoZNRRAdhUi1F58lAiT43qjc9xVFPpPArrz0mj6tziryoKX/YfR8EwYeqz8Gkg2NRQNNvnFuy444kc0O4OYenm3A/hss8L+hhQhU0/D/Ryqkt2UZyxp8EQUEsSUBMJoZCZcvrMHPOADPVs/E9nnDk9ArvV2uTzw9DotRTNxVwl90MM/OSkomqHvr0/7WlY1uubXAYBvdVfPRip36Tl1MkT2vt1UTeRRJa8s++9u3/Oea04WaDgrpecO5j0fE2eM6O7olHTHTxaJtlAyMVTs5okV3BhwPrDi1Sev2Cji8cqe09DMq1Vyxysmsnz2tWrXU4C9FhK9LV8leh1usMwmaBnv/MHq88Mot0keZ0Lketc0eS6Pd73nntCltyw8yyQy9tH9pfqrzxuoOk8czB7m4DiSuSCOAFI3Y9Erbm095+woMWqym5nHdqDYihSe7gWeHft6TzqTwoXdddaiSfkH6Y7UryBd9Y/yagd+W8uk/jjy/d7xbu2BsTFqC+3aJO1E4mV9OHfoO77juK99EWoczaHH+1qekTW5lddeqJoqnVfOweFMV0+j4Ubz7mGfrX/LS01mW7IlKy2OZE3FLvGR4SIDltxCdU3anQYoZEB+F3xoD6WtDPuo1kXGQDTTvmG/n0b7Qfj7QtAUhuGcGWWiGmV4ql0ALbm2ZMYijcZzjsc22+hfxRBr2zHiArh/Yi/8TFA1LIE4ntEnP9lJlIkmPMWBgdtO9Oyv5W++0lvA60n1jF90dX7qJizSh+K8VZf+xg3w2N50l6sW3hBYuQA340fCBGOBxh5tKhO9vONWfq1ZDYrUBTPQk0a5ihVN7EFm5k4hF/2BF0yV4YGFukJcQcPZDtLGGD0LMsyEwmsgFpWnNCGf1zzDrRw4JZLjSuzweOGmD4LwsVpQ9wdsBd/3ah78VLEaZn1j0hLZXHIEAGijr+8fUbLYdINw8316zo2cdNfw+63gzR2qeyeeBgFgYYY8pLhwqp/7BUSwG8lzmpAG1pVud7qvqYrR079lNOpyVe9xB8Dsy+YgIZk0xmeNkG31AHqptqGe+f1FVPECg9GXCp2WUcj7JN595N/iNElXu2DoaNDI3uZDsA7zHNRWws8BdZpzip4YLogSEcOqdyT4uSzvT8vLBYHFyuF+PK7dCsC9YjiZIQBR3XUZbjPUFj3/PB6ZdQEbmstFrRHQPfG54NGwbLejsAy9spBQOxTdv2iOjHEnXkDUwhLBDS721w8ei6iHOmuSQg6MOGtc9nJji0aqJAqLV2In4LRh1MWU7UqB0ry0Rwy9bCUnuLrMbj6aTYqdKJdxZtDMmRBdk+1jV6OLR6tVeMnHsUs9jOUaAINsjqXjsU8/rY7uYiO5RtgD5gXc9Mm2Hk0eSNXuE1bIXK5A7uJtTgF9ftDVdwhJNlld3me7Rp1PVW9aD2pk/293RZPyZ1IX1l6iGUBib9vjH0Dzyon+FfdM4EIXrIc/nWNgExPR0S+kM3Lbb/svm6pBNT8j+JpJUtNNxCXQTPLcOrkklci8Z7+x3DEPZoA1zn+BSa/dVyN71ao4ZuuXWpl4B0YRFXEuXtp5yWzb30KOgRnAY9ZoY5ZdVSPlMrC+T2cAhHM+ooNjx3GODoiYmUktvXzOhmGSoydVwz9PtrsO0m8qeqLvAmfBjeee68qSF5TUoeGKnxuOqe1cUW4nh9VRCrYgLxje/xIrNycjsc88k4Yf6apv2I6lm/h+iQ39N0vHODXGcK6wvWGmgj9eGJ092Je9BvzDMyTgUWGMZDAZK57tyTuZGl373uaGAQUapfmXHKYBVG/BTc5Sc8X3mIVdlZ32zmE/vL0EHkbN3E14e1PZb2nLC90NLkHSGZdtN9CwdsqV2w36P9j5oRIruSAxzvYDFwrhwE2592z8HWOL0yUVcn9PpO5T4SvqiaTnxTf8dNlJLmhOatwa6aPPOqsUW8bHGzKmbscbKqgwlpAN+RjRoJrmKWW4ktZyASqFdjNDwTS+VYgOi3L4YuewQHl2y4A9grCXnQQjoVejw6TbhmNqorCu6kUpUZPECnIaKN1wCg//hdb4MfSxKmayMM/0dQKvH2QKF7hgOIwxAs19JVD7Evc57qRg9Pmo7+u2QFWeuzah4V0On/MJPfPrJrEq1jYFHDrwJ7sTlBZ6+VRIQ/hHunSLOGzAXNPcTZK8p+eGIshxIElqP2aRErzgr53OlBDzIIamRPg1Vjh0AfNMnWF14WsUPDfs0VbcyReQVXLZXjaTkzKO2e3Ujk4XWEloaea87XBTRC3fx2fdxAhh0IBh566HccNF4bZRoP5d19+y0nLSTwELdqolvJMu5pmsFU5enjoh9Z0fbKP1P6dtKudHq2ienzyVKfwWz1OH/aA1yfydn1727lXGm0FDS9Pa+lxBWMd+EdHiGsnWvZl/zdemOv8JGLcqKDB7afaZ1CuF5T46flFetk7gDzWsLBhZ4P3Yu+OG/DCQid+6q48Wp40K5mmzWYgqEaASimKRI8cVBrvHNGRJVhhqdh1ZFJMBsMXHO820Ue0ha5NGB1C3XKGNkOFUzjrzfms3+qqKkW4HBjNbl4QmCpZaXMTmdf2xcfsyCXNrdaIqtT1A5yr73UHnfCBgOuhqJSgCo0c6Mt2ob18hhNuOSBbk8J253ZZ0p9s1U3OF+PqyupHpeXo/He7z3swt79jqVf1QVmXa0ICUI8kU4yDfO68GgrRZGyHG8/tb+NNIG0BUZd3yKBWt154y24SRabxknYhX580AnLaYuPbHTXxWvzqdHXpQizuAqZ49NTbThnWErT9UtVmrk/Ex+2ULharAFvpvMwbdcycK0nXM/q+hg/3la+CncsoNy5aAtP1NWsaOztLWJ6HX+4X6TFUy+iZg6F8P7aTAMiNkn8d+Fe0An5lxCsmkqsYv/1pb+G3NmcxM0KtstKWwzMrPDSUdNXr/896A8XOFZ7wyknVpvrKBLfsAga3dyfY+SxetQMszk2jKXVROtg8v/UK2U5ojNryvsHcdsI0vj5mL8TT355zi4EEamOTO/JJNDDcHyuvSCN/cbT0vaSfbt+r7YNSwycL3qf2diOtHXU0rggtgtGV3/pSkzvJojx+3iczqDfxmL32900Kn2ZRPsu6msJFcnQzIgDDSWHhGu+ocg7oTUOM3hiVe2OUmJ2KwPqfX28O+TVfFfaa9ob6kUQ3NfyRyd893vbzoYFxjvjdhdJIE1Dc7e0yFrKD0c1Pgqa/noduBlddBYs+fX2JjKSPUuUg15Yc7n4/IbMiZ9wOlnpeO6ISzRa8DErmUS/R40IbW2y3QEti80tTHkR1gl/7sweyYfuOWfmcxPfUOdhSIaBfl1kLq8F9W/0RG8aaLzGj4zoEa4IO9U1a7aVxVrriH/B4sqTRyq2uF/C0+V97R7s9d2Ct8vWCPuf+1ejL6Qp7nkmp8XqsI/e5hV1zqGX4dcjGznfWkNY7tJrAfq+QOA4/vrg/bkTG7NpI9NVCBigFWtgxbq2/3ffELg25q43ioA6oQZ+hQzlnR47WkijK6Mc3KAPxY6sVk4uHNgih8s7KtwSPlNUDinCE73wFS/7AttI/0/qPt/U8qYGZkz92OhUYoebHE52J+qrOyD/MJ7C9S0/rHo+kJnWESD+2mhVP3pK/9NA3r798hBPI+UgJACjJIiIYGSpQCSxM7E1OYL5jq34ik7KgUuixLoQGR3VbHL2Cy7HaRpT/w3YYsu6tkXuEk9BYs8XIws2kYq9P5jM/R0h7hD0knINc5NSPcZL9cFXmwyM3pJnjZsjj0toyrOgEEWXbTW3cfQGAktB2X9Ke3JVhnJ8OOQDoG6MWHoGSnZiEfNcjlctzrwStlw//L5mPF+m64cWK+sfRHlKy1eadKfGespUKVHhk/RXXzysn8AgXaNm/pzzMvhifFl6sn1eVxEUkXy73vXn6WJnt6juh0H9Cs+Y85yMLXPwrg3U5OgkhtPbpvUVDNtHaBvBCBb+t/l9XwTc7lqUBC0W13d9Jg+fKrN/wEUHGw4rqTzdsnPfYhcKCrqlykRm5oYHRq/64rqqTU1a5iAXWiMT2X/fAIOERcZjFPQPo4tWXOIAElEcDgsDqAIVIC5akraSiVWQqPsJm96Z8IxWQgJRVprMtwcyHcMuoakVRKICkWCoIjfVPMh118z4OODnpGYnxPxvS5vCNUxDQvx+YHZKCXgCau9i+lX6zFcmcbVdX2qiLvmuSOPZle2j3alsQfSnBdCAY3k59kRV5ya/5oRhS2D8Mv+s2Yqs0eSteLbd51/Zw8e/D67DJHwRD7PhW+pulefqdge7OwvRyNCbM7MJOGMySIvpmTG9Esdc29r69nZXSqX5og/dmmjPsvr5klNgLRJJRkPRlU5hq72VOii79WH2KI90knYNwfgdqhPpz6nNbtuPSaC2YhkgzPJpNTs7NXbiouS0qoE36yanFPpsaBcY5gpbT7OA9KUSVIIQ+/T6M3b4k+DA9aGhWF6MTuXNJdrEMUGrLFLKG3p23OJFZxaL5cAAiKR3j4GkAcDNVP9QWMhN28YP2qsmAgw7tFuMied+Qhe/4FhsduVNBKeEp9IICflgfpK6m/iblQQjN+7BOoGMgV/0Zl+LGK7pD6EeVK6ExETRrOPpzq1mU3Th7V+qtPNIK2NnYN1SvpnETIZep4G9bzdExuUOa/JWZmH1jgZjqhDtYe3eUMPHuvjySp61ZfRsLD0SLU24XwfgHlVSXiVGBsFqZI8VVFrQ1Auv2yzoIPpAYdeYBq+b5zOMVl71UuP8Yao8cW9FMI52K9G8EmONuInQtKNeD78ToCUXzSGhV5VB2VaaAkxMeTWZUrq5LCW7+BlzJpILkuzwfngO9AuifvsKiA0AhoCILzA2xZ2fJco50O2Cmr5B5cesEn0NgZ/Iz82I904kiHxHuhS5b/Wvdm95IvIixs4e87Lu5icB4w8GcKVUCo8hmOX+ZwhSFfGozQtX5m5GC6wU2uyeSVjjBIVe59rxb9TWclH4s/825jwbpM+RrElJxz5tWU6GJoV535I7oUueps2aF3ccu6FA5WaOals933STd2qrS3P09w/U3MRTvnvpnbG+2v3IrMAttch9UbboF5Zm90XNxZd8XvmvD5ba2qs0OvceBsauWgPV1vukRsXJF2W/Px526cR+taR0p1JGPEcoKv3BvphE90oruK6KMfRi7iGV77pFt79PBS4YY+o65Ul8m0CpQqEFJRhVZWpl5JfYYKQLTf2p05wjj1gZ7uhIs7M/qgT3WsGUk+C0ppCVnWrASaFLJViC2IBEaKDxgjpdjAPun2Xj0tH64UhEK17g9P6Z/nndzM54iq6kXes+PIRXSmbwASBUxvQKh/5OCCbXyheflbNxgZgVB8YoDldSjKuQqHyjdwEumABZhIBvq21ItPOlzEs1hUiCBYD+MrknRDaJQPk67+ZNJKEupao5GVUtAs72b1VqV/zErQV1+9cPALgIqDZkkJ9jZifsU9rYlO8uTtXTWVPyVlJTtHj+9/en887LP69+r6iZ0vej3w3M4MSKBsJtMfFkSZXBFkX0WardAkyIDrAHnzrdyPS2U3fkVbR0HdLwH6cNRwW9cuMZgkvI/zqRyAR4MbGJaZmcrUaztOmWbvRrSTJhER5pFcmrggn2GE5IJmP4bXBPGN2oCAaw9g+UtVa9ZTY59VdEhromF7MZ6mMYVxD4D/NPeE20oyr91cJ53Cl5VLViG2v9UCCtrp3xUIknBm0V9pYO4yQJnYhFUurONEubVncBES8IkTLWSFk8489v8d3Jy8T5S+ZT/l1rQVFoS2zpNFLdp9bj4PasO9gCc1/lsYbxCF0WgApaLiidJ2EA64pewerqv3UX8aBdZ8fbnMhbmTaMhZaeLGbiYj54ADdatkXHM3TVqUWkpJSokWaxgNaDS8JBtmN30hnuJD4FwLfsxf5ePGZe4AmTkOzfEf1K2j7ROJzxVfeWObZpWa56nG61hpMR1l5xaZiorwEjPnG7VVZRabCosUcfeFujZr6sMNfukSw8zw6PAiiXhTT2YRRy9Znau6m5zN9YHY+JrcK9fWOJ9RuT7JWRP37lkLqc9WO6+vdTqdj47BXhqy2eJ90h17e6qpHfn5CXfHWqUF47PnotyA33jaaH27VPkJ89kCKEQEypVgsgUi8gJJzajLVtUpIvKEvPfDANWHYNFiX/BHkJs5TkPkrAII/KqgIlRCvVoqIdKoPG3zR+yneET9bNed/KosIgv0O2Q54k8qeYb0+jPzqfXyuRP99g8aR+cbcN7kkryFkjdYNPxrAuXTZiVaPBGpzb6AMpxKM3rxXMT7pKcuAhnRnMmuSBujiyynFupd50CaoaR+0z+IxADpYxyTNjM5QPmbHEBQPlq6Vj63A80RN3UG+6ACImiDgME9w3NAeOFH2/knINEihJERd91Ob430Pw8GF7pnwH931wdp0NLyorz/P3g4I1BbVKtUh0OPgjgURdwuSehHhUC1rz3MfNfF46+8htpiSjNG82voEnuBvXRmKrwICy9dlrvoP9x2+j4edj2E3/DMqTK5nXqYE8Wz57hJP+gespQGzQ/Shg1heNfXS3HSTXtKY0jgZIqMX8dwRC720WkVAbfB+CeTmdg57QUvL2lm+8YQqgvCtDl1q+aYxCm+c+UB8p91atlJ8odMn5dus9WXN7/+OV0vOdstlcI6ksYOnCAk3mq7H5Kb7RP5TaWTQzG+vPsI95JSBWaVsPhTemllqngOUVVmAVXqhe8oiGan8UAlYwEvN4+X5OHw/2ZtbKRCWaQMSgTndIhyhjIGfvYqfNraw75yd1/fISk32Vw2J9GXCm4/YlPSg61YpqvcXCIlFzLApi1Y/N+roU2lJ9VcFKU7Nc0Wa3OKzQ2uR6SRPrqejs3s7pxTvzDPxZnIAidd1QFUTyGNBgLJOpUmSvpjHWtGPUTTwMy4QIkWLFNDKJze4N4rozYhiaA2xFOPBIgXe6iACobzTvBIJGBzOIO7CNtHZwyr1801MqUXV7FP0b1ybqcfRdBN6RfJkjRX989kGEGtNX5HVFX+F1zsQDNU+yCwHqRcgnr+08TRwWeDfo3juz1dPkxORjoO8uG/QY0ewTBm7+wWf6ormjr9t4jTDO0bvVwh5pJ0k7Y0pYD4zljH4L7SzYhuUMEc2/3Uicuw9MuSLxR1OFYHauWN4VZcQN+LsbYT///Z+NY5dP90JSnis8ZcSwsZCl63Nx36lOj0Dw4lRcSVq5c2A+3tz8MukscZidbHgR0aeOCn1xXK+VQDtT+/DZpP1fkVsRAYn17UYmJkUHGmr88Q4BoNSPi8uwG1RAUdIvINi/dfKqPy84tIF76CRL9ABQcu6RrYeetJoc8TkmJJvKhKravd/Sn3qKv/czotyOtBkRFME5pknzBkt4YkXvCOWcugj9ERCkwyEOvH1MNM0i2eFBYtO5z7vKkpG/XgF5H4ejpjqq7eUd3oe+nuN9cXN8Qltx5ien/OwzbQGWvUwyPEtpEOiqD/21jb4nt9127cZmI9S/7Z/b/CJZd9jUkJ0FsKAUShLpx2Wxb3/4GKtVFZ2UM/sf/w6QOEOTTN1rRmrYlGX08n/xZWbk2dOxPM8YO8oMEeXrsG5rVRWDMN/Obqmg7KijNXtk1dqHuN9uTU1r21z2r3CsIgozdu8R587BvNFh3Lgs0uIXcYVDjnQRu3AlTQYYw/ikTpENQ/BtJBQwO3/qtcMswHbmZMf0NdR6G73wP0YcJPTev2mVuljEoEx/XMnJRSHxdWMWbH7DyFXfqGuOaBdDTKYLYTXDIzGioYicnnV464e0BBAtoGSZcAOzwsPavdXG1IOeG/m5BolkDQhUAEVO09mMRWkKQbSXNLcB64UpMjmx3HFnaR9L105rD6ptBqP9xNRvftaOoAaVDqRt9AZ20jNqrtvsijh0hztclPwBzHsTHCoWk2FxM7meys8vJcD5hZlds0l7+3+Vs23akZdzYSO7tKfPx8kXVUmAE6m0BHBqSuQ/IRXfaf1UIhEsG/OTltvrOkPbMSAqOhqvPFQ4Cx0TddHW+YIdLxefJU62UWycFLJQSAUB5rkM7v8r4Wnnu9X3aYf7IqpVkg0nBU1vZgmw8/BL+fE21awAjhlrbLKGHJwXPr/Z7pg9NCLDEo54IUD8G4FdlH6CEu6ZQdPoWjyKjUEJv32gyyJ8LzvLvm43cOOYSAkJTiHJJ1OdXC833wTagwxDICQ4LhkW1bjwSkYEs/HAhQ98zmHOtTlX6+KdVDEFLkNvr7w53758+cUek6XBQicLfwZibneC6xfyToCSYdNL13jv/sjS7Fye48H09i0bXLi4nDMunhmaxC80eHzPmcmZ4+PPdkolKfWbWAunDbh9swPw4vE4zkrUjSHD2UyeP49S13XEvziw2QEILmb5cnVHw3/xjbePAwX2LFq1xn4W6Ldc/dKRJJMZM0+oIi8d47Nn14AciL2gHf8T24Z45aeUolYbnSm4/4w8J83WvtAJCx7Sc5iayakhB/TV6IBDZTODaqqeYxW5gLpAMjEAwagjOHaBa6yGWNuU8VkSyRnmNkeIuyf9Gafqnycl2QzAlISKIZLuDyfbQTHxWqbGo2d23NCZKfA6QSuNIKh/XeDgoFRyW2qX/v81MkCb2pvAgTkbrvFx3mU/NzXlX4YY9sLC8Mf2frwhn8QwInKjFicDkDshi4KB8pLHzBYry7hPIyuBZ42xppCNeKQnqDuwghu53pwXoQ4GDzObozqqTXfm6+XgpiQ8hcVkKIKEbNbTGyw2wN0kHvBZab3qwZLGY81btT0onI5MR3NHoTkvL6GQUxq74ijHQ5h5LSfGEv0zlyOi3s277XkuJk7q8lmgJ1CvGLnfG/DfsRTJAr8Tf/PaS82P3KcjbDpSG6MCzFxSK+8kDR9Wm34XjL9icLJhfSVttnfOQoi38/+jiV1mV0/5RRbwvDqPZ0WwqQl0O+tDncjWzRopQ3C86Bc1TlBsUIUl8HFnyDfbOgATQqt/QKstdBN+C2H1VO47mxLEHW/P5Z85ISg5tOzP1ksVAuZo3KjIHvwoyerTE4LUvFfbVDqCT4DDjtj/yISGWslBJ5iD8CTrYVxRTGLhUpxcwhp97fGPjM4Gn2YOmlKaz5vlyh/kyJDsQFr6IovjI3XaJTRudoyP0HaW5UH+8R2ia8ge5gzszrEL7FSS7Ba3N29n3AWksyKaggHqlxusdMBNZLa71R+lmMtUM6Wz5T5mKI6xW5ItU7k9nx3zkQ/y/LoKRI1nIpFDIvTyOFfvvGPHP9WugJdM/iulk5fqUt6pUCb3qCX4tPTU+1BwPK9Sl5Tggko6jSwGJLZY3Frdw/Dsd4QdrID9rM+Oo/hiWe8/jpy6uLGL+J+grSeknDPE/J8B/x1drMH0Zo0Au7R1cWtBY3yqTgTpp46nXkFtZ44yh/z8fg/pR4atD7NeC9Y1DlyRxupuHHH6aeoMH7H9wD1+5mkiGEcNdfS80V5pY798D185kYgNDdzT4Vj2orCbUbGFukWcGI4G3njRcb1MvqsQWKWgNEbpOz1HPm/M2kvZmjIWy19XcLa76/dTCTGogUs4n4OTm2hkbQkgbaForf9LGghRzi4RlByS6ekTO+FnEs5fXT0Lcf3zUiKsz+7Cn4ECgVynUn/hb+veEb2berAsyHMqRVi1mFeBzOKniD1sXlYkRmuq8vSj+HIYIIs8M/r3ys1i/D31Esw11aF++pcM0zA9P2XrNLNbg93jhAckS2nUw8ZXpPrZwsyWjJquXWZrVklJDy2p7pKThzp8TDU9pqDahwhDx2fewIAbeOAg9Xe8X1Vi+FLwHwrRVq65BIYL1RfdAHcQLEgH9YL7aHZ0ZkSsOo2DmcGmgcn7mVDHv/6+1yCsP1YkW0f0Vx6AvWixK1X1l0xUVXnFp2/v37tK3Mgw8zCZSxUvxnbMHzq+Bq2AiIfMee2n6bCS8b3p8vpeGu9xJS/cpK1PawMAShJIwUq/zLUxPuuTIo5Xd+Acoi4x3aaQVfXrti7AdX1iuEIoi82XGwpmvQEi3ODKHLdtQPKQM1wMl1Ak2gcqh+h4weIs60RA921Rzc8QaBIqFCXl49jSSq4kEYuVVWXR9PEnUG7zLRw2xlqeDrp2h0WH0woF+HwTzAfhRRUDooEUHku3qjTwXSB/Cxz/Id8tSKwuzMPIsxI5mptAINbBQ3wsdl8v+fSrqbqG9vUrPVipIcgSW1562q6vURV9xIjXc1i2BecNjIdsl4r/lnYyX7SBIj941nZSQw0hoyfMqiNM3WbzFEjYlP5ynUoPpH0atmoHtXPc23NiRKbOyq6aypVs8alpzLtI9VL5qrmtm7fn37kPO1ZHiWutrC7nKqigo5kbfZqCyPCaxvmXJTotrAlZm01rSw4QHV8CgyMioZGA6zpmlNMq5BnWh62YZFpZbAYlB0dNHIft6GBXpVUZSymjvBH+WuXwIi2LFGullP0V9KLg/4ACADifcIboFrAZdC+Xeio5cKQ6wepi0MLAz8dw+KRMqa6rgw48iaI39YQyC1t2PiXwql1XdaQqABmuY2sASsz/3oDYjp8fLg0yqdOLps+4NW4TW58pM6waYdrBaxi+zT41RcRGOajl1OSyrsxmgNIcXlAdeS2OQ6YZIXZR+DURefrTKutmXReVEpLsPZQXM/4DTpgREKPBk85sabz4eZhMzWRuSlNxZxNzH2UZK8hOtIdsS18oDQ4gYa1l2YlnT5mIlJE+HU45/KXMSMvPDU/LnDPLXAOGqRzFgizLsDcGclaPby82D+fn8NUr0P2Xi36qO+DM+GlcxizyBPTmu6ffbjZB9b2H9FHl3DzBpaNI2RUzKY5HO97DsOVc4LSHeLz6yeY8uy5/Z07NvTEfybYkZd+Ad0xC/lwAd1qESyTZ8dwM2K1dwDff71Lu7yvifWcnE0z4fG+a7sutG7uJtlDU8J57ae3Dzfo2IGObaZ3UqLpjGLGlZlePZ9tHvp/iznuvtr7v/O9PDzuqe58OOJgGz9NokErfvgQIofQv+gLlwx4/+a1rXbGpil4Cw8xp/un5qqsDhFIojgI6eG5nfzLGILD0zunc4/duyKVt3zh06N4AgUiV7k7gLn98Zw2Kk9q93cfzowqwd3HLInCONu2IzRBQF2YEB63PW49MXYeJYb1wdNL4sOMxbo/KpFIuRN36b1/QPEQxfWiHpgcNGyyXtyqOEwcKDqY+JjOOh+uVPEmT8hIpHUcTF6p0x9MyULikRI0Uze9fpFg4PkDrbLQ2Kgf/2mPhAtPf6EyVirHhxc9Npdz/OTQ/6Ih/6Z98NHvZbBnhoAA+/v5bUiIdJEx96dI/mRfpW8Xt+8LM3Izr2JDmkItyLv3nugH9nEGF/KGh088J4CRaJKiaGRrw00ZwR8zPk4IyDIbI6prvcViSD1q/3rRllLx1mNoG9gVPXEbLCXG56oRkHEFtZLBrqTKYjyLQ8d6AfP2SQfdoQP5X48d/1rvcH3e/YzmvczRlVPDOV2g/mJanQA9DewqOu8bv9X1NWo942pNgcVUSnvDwyOgst/+SsSCDqevGSou5u3Co4d558o1BT+KD3+6RYmK6/XFW7P7tCCzQJv3jeRKAD2y+XWtMATfDNtQqP0dA8tSR4/W6Eix4CBGf+hjuztkP+Y5e+SkLYbPGChUUu498cUMpOFgvGZ5TrzquWJw5+vzmJkra5y29gbXJDiYPJxikVmUoxpvVK9rWQBm8dDopaRsLf3OZs1bF+0ZIsydx/YDyplSgr7eY0kXZKmMRFnrZf/eFtjQXbvXvcoyTvMVhO5buFCsBQPXAbPQB/NY3ejhcIQltrCdQkj/YlI+BpiTTiy2DJthS7cVipkUCzueq0B9vYJLZPXo9nYLTpEIIST3k5sx4isQqvGl7LgDIZkvseHvGVXRkYyvBa2zQG2lQvb2uC2SVHqCrBioVfG0CQQmc+eqpGke1vHiDMY6pHklQz5A+GNHCmiKxJn/UQhKHwafcH5OjuLj4l2f0v1jl4GcLdTbOanixcDY2DVxD7waDmNGx1oCZ6FGQMiGFPBECbzqkRhiEwWnf30ytxddzuyv46WyZAwURVUcLkABk8xWO9S2qPTrVGDLS3qnWzWDnW1k8H0WJ2lPeUdiHzHOP3dtQTkculxNvO4VCgE3dInoGWAjxcEQmELMEkHPwczW8AJkyQ/ZzRLs8wfbOydaXNYnVboMNsQ7BaGCOQ/BvX39+59udd9eoa1t38W8fiktSB7A1GdPUM8pXrh+kK1mvb/JIHj1Y1xzrhjRF4ihurn6N38lY9XKwzxyvXugiBTIm1HTfzGmrgRYUS4cF5idDufx/Ft7ufzimmJCf+6uq/3jTfAPPJQmu+f60DksHhqoB8hUolUEENwuYjnkACJ1K1TjvL3DIABxGdMx+ZX8SMipxbkzKFI13rMR2FWVkvtEa9lDWS6So309PhXHjAj3bvae5d3JreCEgOjccdo62yHtU0Kb84aPZFJULENGCoocUbn5dYbMvD66AG9m7gvi/2Pj3Arw0TYEGw/88MLMuiDKY9OOXJ8MBNtSEk6y3HQY+mh+6oYHVFcatrpZL+EJcboloqkaQs+NSx0mu7PSU8S/mZjzZrNtnuDOu+IuDDOgz/qdiFYXLosr9mmlDT/k5m1gkoaArJ3NiRwqlQBfxAkn/BRqkoYkpKY3BzwiM1LPo4sG6ELAey3+bf9fvZ7yhN84XZDPBWwAWzYiLObwgMev4DwRnFjXXKgYD02QadJywM3oVoa9hmGqiWh4wgX3FcLXdV5QYc3H/Wv9N1aEqTKeJBhrA0r2VGdZNLkB92vZB+2ma1mPMF5l1IoUGFOq6hIoVw6C9Or6y3yD93NsS8yPVOVXE81K2o/PwzGeOznpj/ZiKAucrGdoOI3MZoWJGYMbdKb2VocMCfBsQQXIp6S+EXZ3Bj7rKqaErpNYGNaCdHJfvLC9QXdLqqMTf62ffnDIbCYAcpFv1C5fOascqM0yo5AX1SWc06Wg/pCBPTqBxjYBI70BpHS5wI5Jhccy55oumDzyipGGo9+UwQppwUG0MEXN+5yHI3YDTb/2MRmLAXu7nFnTr0CYbQ1pY8x1hhzGBxcymAu3Qw2xa2h4xM3Gxli0ghi9zgxVj7v0UNePgtzmsDuXeDXPBY+BnbtBqYa7mDRi3NxJtOnpub8+eZGYoO7z95SE1TsLIYIlClJ5lTP711MJwrL6oedb0ptCIYePmZO8WIiINaLpWJXWVh+IM4+dJe5u6ncXCVu4t83RLlz3d1IsdsbbTwQvo7B766d8g5E7Et3NPylYmAPnq/wPXzoB//UpelezEV0VDYmTjXX/NsiELZ8vyXycnVjxry3y7uBoik9rwW1uWUrGD2s4NHlKdJf/nvxt6RMLvv1hK4iXsJBjInZ/PNJcWEBQ4cZL1USILtvQ7EJjKoAykI02Sn7J1CK8cbUW2MGzbmWPImNwuXTeV1YVKx4jw+SlFL+9K2wckHkB+KprheuL7pAH0cSE56/Eyp9Z/13admXM2Wcy5NxyT4w93Q5SohciSqrAsr9W8GhTXcdndgPPp1mmSew93pIiPiT2Wa9NO1mctCD2IcMJLyoS7P9Sjv/s+smjsJUbUFwJoLKMyi673APFsdLn5p1dpXQLaucAoMsgWlw7VqFgE2IqnpwF3y89sbPmnoCPgtK25adX+8kbmNUvySlMT0NfM/GbxbkgScxlU8Y71iMKZ/QLFUWdJj9P7jRVsoLq/3CCS5+S/qV2pSOUPIbnVNVpKGUsoNS5F8oWFI2fSEnIT3DSOd4NZtrLBnPWjlrfxmugorKdnvAPYhfdmihlq8XuJLA8Y6alhm6x12a9mNisPzJ5FxieByfnhrACl+yYn8kiRyiBIqITuupoUw6fRgz6T9wTcquzU4v5M0u5hJ3Yd9p6lzJwZp007TI9BTHQVPFoPKKa2TJdJE48iM/GXH96tujLm+vXm/jHv74PklFuX2EyX5+kJGWKLkjTQvS44aD4Gw67R+tuqaA/t+4LImeNs1b4y0Jms+e6lpcBPPxNBBXewTsYREIOGiY7M8YUQc6yTMfcyfcBT/YUJab3R4suP25Yjcf19aQNXyg6cfEYVZJnptws/zb3+Wbe4R0DYM4t722M72ztn3uHxtuzmYD8vo64fXbvQtKb2fcLh6xwG8VIV+G+myNPewR+m++Pn5NS/qXfhH7MsXaUarQl/4Md6LgwtcUDlWRfy6Z1FCOtpFVYvkKKuvP2s1cuIlE4n76YL7O/Hpx9bug+eaM/mJD8f1EFbApJUPb02ZoF+q9F2oVVC5JCwZKh8hKFuN4ayAt/hrzZcKf4ueJU+zJdWHmOwb7ObA/pS2lY/IhzyFQya8kpUPeC2kkl6rQhtX7a7bov2pwoKtMEBso5w0x/z4/VFrdvncPmOS/m3PvGWGnCPBgJWkB1oFEOb96dDfY+4RRA5szaZe+S8dNs4DbRA7PZiyKa57weFjF/4Jv7TPUodWWMt+9veGfWh/u/lmL2ScoTIJBYZ+ctXg/16f2n76374jED/mWOnz2TKsOuC6+10kKg2DWP/GxJV6H47zgmaMXDpevTtwA6/PncsZJ6aKolugpsPo0bVM4fFRNVPIrZS0HADn/f2QEm+SidQ+H+8r/TJHSCJLlJEuDiwMDsz8LLdY1bLVss5JVGG0zHU8YQ9LH0jeQ4W8qZh9sCM2P70qV9UxLkvbBPRlg9gH4/lrEMZtJjfrXQMk0LqKzIy2yIG7om77ceDJ7+mrLbVa90y8lCo4oFrQxSPSaa7Yvh0QKT/6MLDUkScGCD5uil2u7Aby965nJiTHX2j75VKxXFpDVdOypa9RSJDxCvZOFOTXSsGlx67bIcyHsil4Qq7n7Cqz8EMLyn2AUGzuNUaEV83HuP6eeHQGx71wwZ1h5yK1pa2LXwGWG5QmwipjAqcuMW+ci2k5N1xbL5lQIqjrp9s27Y4dTPpA5cbrkf5TtdzdGL1MWQ11U+7xyWMl1VuxM742NWvqVl7msBSHzOQNtT3g38rSWik8QVZDSAWHuJzBz08AnbPp+vmx1IkyeAE+qwOiT2Z53357nuGMZjoYbq5i8IyNF7z4r7qoJcKUujbR4cZkukrTMprOZ3LB9bzwq105EqowA9sntN64f7oSdo0+P0c9h6KJfKtZwGLM+6fuZgp2jM3eCSsWfRbLPM+cGbYzWzVwQCnYejqDvb4zuFO6sePFRbP9BGfH+wYmVPX8XGAF5A9U4T7A66hdZJb8SeLXL26mAy9kR88N9zhexbY82hocmyFye9kX2RaKN6C4ml6T5tHu1g2qMtUOi/hkcJ5o5LpGC48LgarKPZ9zOZuwK46ebaUxXW/uuLF8el0fL0xUUTKtRfF7WXNOwTqWp9Tc3bhbyme3ejJRE06mYWYibcS2D7xWXzHwgc3RAYFdjNzAyYHl32Qw3l6MhPFu1gsq6Di4jTR4PIwQbuMNGCv0mXTDpVVIV8fsMIfBsO6Dz75nsOcHj0fMSEma1vmZSmqnNyVoqfrPnH7yuLpGR4rUEHD8owq1NZ1NW9a8iK80IfNVrhWvVvkbQAm3Qewzd1Om1hMUV0NNfpBZ8qCwU2WpK2mK8G2oaJybqDtp6FzvDYO5S+7pR56WWRHFqvNuZfBEGDaNebdGSxhYXIZdiH+ZSdh39WpRKSwCMzLyjSE3bdQe/6wp7tLUF/plRMyGB5rFakEHuPXNgv6BqsvIjTQSD/hmGQn7R6cLjkBY8Gk30SJL7CAo2gckkaXmeJfI18d+k6ApdsnQZ0cKCTCqfxzFDigh1fKWpO+p/GZR3NdjK6WHgEqSYRG6VZTYdu0Wca4bIdwsCgnK/coj9ZxNncGqmfPzzqG+TdT6r5EZ7niRNhk1gFKIvWTJ9foypVzow/1o/QVpJINcHUHg9iW4FjExQs0A8VXc2uPlsKr+5zcWSlJRMOAa7cjjDucABDioLyGQ6/qtoyz81PBc/76z5q/ovKN0LxieZ7OfjW0HzfYkkzdMiQ+5+/JzNmHwMBEW2BQYNPV2kz6d3V3PT6kx11zPy5qwn4Y3vgKNAPDW2ve/vp9B8CEllaxJLfcsUuUiCI0fnWbE1xCeJcPR1OImB0kBvi7cVXr2GZFJ3wF05VI2mxFNdXqleFoAUFz9nMydrq0H5TzXqto0QWRN0rHTjuhMBvKJvCr8EiCwHGpXZOmFBnalOkJMR4QCOvLbxTTOZkPfMN8x1w5tFm8FugIDSTF5jAyuD7i6mb7aUTudc06oWgS39tnRsU2klPtrNLUzi7mc/p4fEqWwINoHRuHKvkDYwt6bQPSRY7cnAjsC5JaFNjWAS2Gu6Q/Ptk5OEVDi2oILevHGM7MFsia4PBnmO/WKremDS+Ne/56aWbfLm8rw3pZZODzlOMboZTD4iolj5vcGGYmexZZzg4lfNYCaVQmq971PRH0ATXujo+EQZMUdNC8LnQW8DjRONhsWAC+Lfiacay9sD2ssbLbO8sr/NAm7ai5F+zVWcNIMzlT8rPCWcKE9MsaTXcx3yYF2RcOEqouTWbutOm9onJtqr9ba3JzL11fOu6GrVB48/FfPuD00sche7Lz67J1OZuefsYuV2np34tDhwnX29X+BJ38AOhIWQ1kVoODT7bKdCES7n5sJm9JCEgYdQDVTBsav7JEY6O5HDHiN3fm/OC5X8Qo6xXaZwuFRy5tixJ29GqEfocwJN9nI15iIjOEPF8B+i86U5JEK6bq4kwcl1JkjmrlUf5bBA8tGYVGCurehep1zD3xMH+A0eXA+LB+nha/Lkelo8Sc+akA9gh1SThXV6Oegqb1/XXq4d4pko7LHxE+dfv7tMIaNyDKSid6F236+Lqmtg3xC9cabzTN/i/sF+wOgDwM/hW2Ypi3+r5brRZHdQzGkcZ21ZG0LgPT5vvrqdW3/OzxnofLXrpXUXVqKrfy5+Xv9V/zj9ntWYUlO/Bp+W/3CokoavK09QYmE1klg9uH5gNPcJxUMl+Xav6lndATrnM8btg4bOC5ziHqcpPg4EnGP/ddWcHW3YAXY9YTGmmuZP7wRbEo+fF01PDlgKhnDsS3+ls8xZngnsk7g3LCtbP81gqWp1c2GBahCxs5vNWPof+P/o6ipqAimUdKPBUVaA7U0aXrpqyTAYedVkfz8naxznNIHOrqoyVQ1unLc3nDOHW2iAWUYwdo7916uFjgxZHdfGuP5xm0F4P4AjeHbzzBl299xkiHqr9xbnl4PyybnFMq9biEQGjrs1jltQnRjsq8ZEWm0ou8kXfIG8fQU7orMJ/8whQKXfeKNiBZOiwfs/YTMMpChSwcBxRy9E/GzCCcJUguNJ8Bz9/3Bc4MFMJaiMBD3Cmj2dUveduNdujhbcn262T3Ob85k+6mSpYJojedgNIGnpseCLXHoaAtYVq/RGTcCZAIEgYGKbTRCSNpQJph2PjFh/Bfc4AHCmNRV8GrvbcOHDkYFxpvvnFmAFolu0SU7Di1m/6WawKHZbql/rr43P6dgZIhsYFjW9lFtmv7VsiQLVH936m4n/88kL1xcg4jRjaopE4x69e304jMpIIme9bf2dZuCw8sHDMw8KkhjYOcz/2ScC8ybBZoIMn2r1EoK2WGoCIP6+bjocpxx2enqreV7ePDX9mniKXVRkTUukqzRzbNK6mtramhqr1ZuKn8UoPGVhflEx+4XrC/YLNPhKHsXLx6neJk7NCSYYwS924o8sqqiI/e4yhkmC2R5dVg0/eDnVNlyByyGyxkbN/jWRZ4ImcEEwWzSf/eioRl06D0V1dQ2AchEKHoqdIzmT2PN9l+VW/5flBJEb/e9gzDEQ5dBaBRCB2Od0zARlOm7Wmi3ZXerEHAg/4dqt67YHUC4C7N23D79BFkIUv0nHnNJ2SkdXbEAttiRowuifK6Y80lqjHOC+WOrCCPGOM9xo4Qta3iVoLLq7fYHClv3WskRvDsuTqN7ny0StWfdLq9+EtXTU9/48U/ufbNaLzilgD+aJ6KqT7vpXp0mI4Pcjbq8KZQrEPO6ROUR8T2wP+lLBrRPW8XhaOeeNsyEqKZt1BNTI6XQ+mUDaUFY+V4H+EDs/bkEbcYTLEwuYq0Ijbt/HERgU1IToX510V9FFPO6RbFZUkrOB85sMON7ZDs+UyzJZL/6zKLq0iaHm/mMPSse3vGAxX45vLev6ByUVPX+VbR1/Cex0o4GGMC6q3+CVzMlhuUXU7GcMdHnqHRqR2KBI/e+5eApNFxFbsdKy5yCHL2782FsNBqZBOPht3lx1ir0vBtmjo965ERp+oSRCXuLmZ1/XKaO7k8z8IsqtydVsceOBxWzrtn8DVQm6HNGBA43ixoklzNTOhs5U5pIJkO5kLocLugpVSekDseRIGu02mAwpn/tjcMeNbRy0Oh/0aFovbjpwQFRriiw06WqFB8H+mH20N3uLQC2ak+Ck24ltiVGNdLRZD9EyULYRZ82/hEBAoeiRq3UBF9fvSjh3pFHceHiFS9oXM6aZKcxfOF9+Ya6pCug5VO0GTpxcCo5zacs5ikXLE1aYKhnMWbEkh76chrmi2or+q9p63nPUy2dmj9BrbuwocADOUhp9qdWKhOUxu5MMz/X51k1nvdbF1Xh7DcXOBfN9iTMYta+fvxYu4/lwfOQ+AQaVBH3EwZwy4IqIgYla72IJUo3YGcKZ9MHdhuaYm9PrI20BF4AT4zzCKG7DXqMSE9eklo4JVlNC2yUobZFsbOqk8KSf1xgcxOhnMbpT4D5q462q0sqcdCIR1V+DotVuIzwtS6uICsS4fDwL4EvxpbvzhKsdgaSDSQC/illyyWLGAPnnxWnzRqPG1EdduFzc/xGZEBrOKz+GfeTdynwZuhYhdbYex29hKuV94wiTUSkLfoTwSE6/5PHZ5P+VetAr72SAfkDVlGNncb3/wzDOqvB/hGMTGPPa24uNzhoARSDdNFsJV5uGP529Ye/LPgUY+jkklxL8CVnJYI4AVjW/DtjP4jfdnM7b7A6WjD+fokl7XrhaFC0v3+UrP04Ax8/wvOITmQ9ljo4uHX4WIwMYKYl1df/gbpPl9afdAscC8VSX2NiEuxuby3krPUWFO5HpYp+Mi5mXSQvbW3iSpB7BlfnBUHXMUBcizd5CBHLx/Rhj5vd/RCY2y1fPnAmzz8ZI17zfQnzTqv15TOhb4luceQk6YCrCI0K/QAohiATkXKH0C0GBdQbl5aP+mjrfMYcnYzJLT0ltmYek1uI/vp/JwPbj3MCsX7VVO3z/x0DkO5bwo1j4F27ojkW0IwNpHICd0mteAkilacsI503/Kv9KMmQS9nEJue9xG+vakv/Xq/DyIPujHoGAEll7+PCe5zFJKv87IpPjjqVlNNQma8tOHP4BOnFM/Z1Rd+TSF+zBSxcSqkkzTuPtP3GPmsS5SE//CorULNnkB9mXNm0tomlL3FivGu/DaKaNUos0FZke1qyV3X2FVO6GMHpBdB90EmeI0k+3W39v4sl5FuTpndbwO1E9UadbBppmROkgovdKl2cHpikv5+f65/nDgo+5JKgXRxm9lhiKAiHEA0O6mGP4kBoKWyOWOjHcqb5atCU1akFEt0nJwvYRofWDs+FWK41t4ZGbRDJ3kkWlQAK0RX9YwZ5//KlEY5c7fC0T/7oczkJQRf4tCF26wVYdTdgHuz3SNcuugY9AGCCdOHPAduuuq6Hk6hyYVoNjZzmuCemf+OlgT1AUm6COToTl5Wupvxw+AuD86N5pmruv4MX8D/P8ZqoXkiYGj2BY7i4zCEqGq11ZMF27/II4tdy2xOS93Zr/FsJ1yfmxX37e05/rgLzVhzZJx1unIddyK0Phq7uysZQVCZllHmkHyNrU6PyA2ceufFtPYUE1Wp2XKB1JrAiBHmke6VGbYOpgY0HQZnMuaXhq/HniXKNG2eDboILeOT/9RLtdHwbXJQNrO34Tp7P9kjc5k2qwHm6EZIUqbW3j2q69jbbmd0PFxe1yVxMxq0yesgpE5/lSeYLxBfvJsrKBKnv0K6XeHHkKI7m0xwGJA8VWziMf+SOby6pGsPsqYdfzKiUjq70rRCZztne6LKunO0ua5pnltHg6pT3dsizv9OwvD/fPM4uOPj3V3HT6VE0DTUVZyvjkJnulu8u+X17uXPXoiNf8C6Yt0en2hchFStL1LP6SMUCnOfc7ORwnXTTQ5DdNqaEf21TfemeaPdyQW5ro/GO2SFYzO50mqprgsJ20+GxTsq/GX7y/4Pr++tbzsekg4aj06BH1Tted6t27dvfTNEtMzISLcZO0hmMrec3PSXcpTrPBPo0oiK0ZelShA1pr9hEvTy09iYE1xctZdBAOZGuX5v+E2b0LaN4cy2zRlebD07Q6VGoKdgZDBXxNhQPAMS5NIyI2iabPwZNTvUDhGqpj8t7j4s7fY4Fy3ksmtcdVvyh+cQEbN4EFwl4PKvNlJUbHnfHbjDd5tZt+I5Gvv3EiUeCQCH+BKmBudRYIgQlnF1x3+N0DAuBYWvIYwLg4rFqAaVf3PZd2XO65mZNCoaZk99xShFI1R32jatzKjqDTIq6+6Xy8idJyZPYJAF9OR142wpdO0LQYFssAhZLllBV5U9bP7UGhj1LTVdCWDQVJilmC64EU2uUww9zc9gzKj/yGsMs0ZpEnnJvTma9R+vCeEd3g1oUWjGDSePmts3OO/l8zXOKSREzcWePCSpYldSS2Y6iPpfioB+0TtwALRKAfOjOKePgDuHyJ4jzopKBIGNlKnGrA7pKoRLdFmrN++1DYoT0mUK+y9ZeXsR4KUTK8V75sRRbRL5WjHYlSVyfZVhRg3WSY8NDZ7W+UvjoO6fnjC9BWd3/W7sR54twDtEk649vPBGZbGCPMZhbQKjDokzS82i2eejDarqX99E9JXmb7vNxeg5FwIHxKrakA9lptGznxuA0l1KxqY1nX1CocrP/77b/mT8pcngL6Z4adbC7Y7WhThbGfw5BN9/BKLi5MCvL92BB8tNYRo0Ky984UsRPLCpICfIlO63ZtQLLf6xXIncaTA3lTuy9N2TtrUk4KTpmwVjz+Z+ZL8Ze/xJFxFEh1ef3aDPZ0+/m24/3aRuOSZHbbPtPrNy6zxw34BKI0YyBANNn0gJQVJvJ//1vTbYWJO5E8Jn0Sw1P2QyAdvh6gHT5UckVdflvoPB7RK0Cv/vl1RnmBCch53RgyJ9nGoJ16QrJYhXiy9IzkiG4QUk/X11bRpyEwLwN8fsL305k7sUvltNJ/CskBBnYWV0U/MAyzmLPKox4mD4mnEp+Lnyeyz/zvwDng26Mk+r59DRuvksU9wkguawcQIaBqHjtGSuMeyqpw9hp71H0V7nYpwi7SLpA7QAF7KjFPoY0UyOqbNpA4lbyVoGITzZNlcUks7pGsksEahmSVZ908DMLOY/Sq+aKieYLOOGFT4fDihpRmcUabcy7VWB2X6lOCIHTYJzw0YVPfwwyr7a1/5vf6ZiiKg/rjrHLRf5Vg9Ge/aGCBO8XmP1gma8TADz6qAX297F7O9bnSn4WgZt034DqLuUvND4F8RQK4fCFEEdEdvwhaetDP0HnjE3Yhdhz9s8+6kSf9u/YF20wagopQRYmdamnNSVKScDEzDBOZ6Q9JIzUbROwY9hpjhBNoQAejVZpgGGSK2mNGx+xG2zC+09IL1PyG0QpNtJWbkE4dKlktzBSOf9j56LdBO6DaPiLcpY7IBgbqIzq/+lHTau76Lz/dkQpHCeUY6Lp7nk37CIntcJqI0zhVYpDoh7+RkcHKa7sSsTNP/sczH7aoAwikw9Cv3q797tWN8M+nlxEUkkvLD8wZviwnleuJ53Z5pckYvUoQs9rM++/kYYs6ms9fXBv5zo67cc1j17t0kGdE33QB9i+CmKMGz0COJ8cvBNqDV5rmxrRitQ3F9mF0yFuxxQYcNXHX+0Z3gl3noQ3fT0uSfu5jpd0OJhm43JzqvF07U6TD5f8DGr58Cnj5m1NCycXg2RF2KQ07g9N+W5z4T+5ucG1tTbaxgrchKT9XOc7ME1SASrTXigYEHKlNPtvHw3qBxufhThmCbOyimV4lVq1B+6xIbu7DDBphbGpDdlPnywn8DFhmB/P04AQFcw8/scsVAUHsP8XPOevZmXZgpCDQJ5/FzOMGB7lYyuAEL2lz9mQH1Py617D1gxlJTUzsczpEhMrYw+9dzf8pfHVXMz9mri54IHvBnYOlB6pU7D/oZnGzwuvj966m/M49ZcviqMySNDb21NX8OYSd6h1srEpz8ZAJeOell5Z49JpMK+1Vfu3+7fC74WS7gpJ1dZ8naoSMOQLO5JzO0Zgwl+8I6bxo1SJkX2a2V1RloaIQHsvKD8gaKdg5jO6Ufl5z3BlYHzlA5vWS0YAq3xI4R0dH6YfY5BmKqalT5lFyvq6n6ibgKaeRq54LDq9xl4LBwxz/HL+DjgoiN28HNGw2bgFfN/ypCBnQUwoDS4NkJoz4lpGS6TZ2q5cy0hQErkgYTpJV07Hq3TegV55fW9r0WYbqzyKgOhQSKLYfY+60vTfEEVsixpH2qM5oGXlrn/57K7R8zZ3QnPvvV6SEh0DYIVnYGQ0cbPHULmlaqX+UGaInvksUVVbyEraG+CRzC+SLQS2NA2+6DCRdStD27IECFieRBHFXsrd3098z3sHlKyRhbo6CUdPoGXB2ksmYvAKuSi1SK/z+++fi50/feiWQiTj9Bkb3N48oBEhsKHKPfpJUmRUxp372BQgTEgSZl7MtkUmzajKYtMa/VAF+Z10pT642rheNUOtQKNW7mOznVeWjlaCKKn4LmKm02QZ2yD0EDvH5BiOVfg6jLOTDiSnx1H1MX/P3+vVgksGc3LMLhKWGpjnzwHAOZ7CLyEpSIY8fMuhTI0jNYIOdpEtdGFHzkcqfyKzkpCTSubArl9Paw2cCd2oM4C682bPFuNru+aDiy4qnCE3v8r3w1vxbQUHhx9lXAGS00M2ZfzBTxDsoZ02pQ4B600hmD3Xmc4blrl4WLyu8eIlzpBvgZtzoS/CjmMd9rQrV6lhxfk8xDnX0KFPIo5H+P4vEhkQTH9A0K/D+CcUWOL1hSjz1MsSUaML6sPrYOxIKvqlVLzI6uhRQdVF97NoxIAUTGIWHCmkOkFWkYDLeEm+FO3a8cH1Rf/WoQ03jkogAutFSzWoIOVbr6hX7bC/gLO4is5OAvab3fV0NDwyzhEl++eUL1xePtXLjrxkC95yGfMH66eaQzAdPqMInpsRT13k5V+rnOSU2BNuH00iozYAA0mm0jNrAje0cYzOlrszSM4oLHPbUOBVCCQvUc1YuWdg7e3plid3sDmltwsnC7LQEbxfUQGZs2zCysGNGKiQrZG0cW7li8aL5M0No1PmhBge657dURfOJjLmN9ZWlOUbKGeXkjrHlfTEQrUWOV2f7QUQXy840RvBgWPz4hpX97fFuOkxddV6aGt95iBXLeufNaVJA3HF7moZARhJJ0yJCJEI2jIO2NlYUT1mLj0hBTUWhw2qKCPJk/ShjTWxbu3rxQE+DN+R3mPmd9bnOjFDKoXKybeakBCns09PeUBgf9mRedpopgnYEEmvXDHY01rjhPodavXLJgrkzwsVh2tvqiuV04v5tliR9pFpCWtDZPmtGaYiIcdflC8NB35uG27JVEgJufOsCOdPjqI2AZRMcGaUIWrgMCAEEYCS/763yxxKX2D8wF/QlSD6dik0XDcKfU/+pcX/0p2YQBhAA/MAJRijIxz09jd5/BNujVwHvwD8gDI1hGvQPAXkACGQDwCsbpYXPQSqKzigDKIkkHAB8+BbQA9eV4IEeAqSbIwwcWaAQiMxbEAQ8XYjEss8HAKAvAUbhcnjAEQJCRBX9BTDRo0CiRg1APIAK93z/e7EPAAD4c8r/W5QBopYC1JAHWCQP5AEIWsDqkA3v3zgXqQ5iJNINfOFboA+9o9GXILK+rnckJQfobDKsAT7URhDlpC601cG3FDIgBGUAne4Mt4Jztv4GrFhqIgNwqPNHtJGhvtVfR40A+qiSZkUD1iRCcAA0qjQrMSXQQsco8gBEbnUBX4ICKHz/Cg6wxFWIbAAipbjtSD1fpJLUb6uTXObjOOY4cEP4FqRCtjR7vE1Q2rkuK21oStLPjtpKM+VIRYKKIrd772/otQ9aMvQoOYLRKE/QG6AweXsNsuGClJC/gSPojKAYNKUnXqKGA10Ar1l2lU5iPp2ezyLOmsiJQYDBt4WjGaElZ7sLrSd78AORJHjaAqzKh6jSoB5SFoIEmxRY2tfpBKYqhDlZJO63iHCROXvAoW3MbmQzk4zginAKWA6jnRQBgKvPYdnCUpVxM11bzVk5fBtwHMT1fRyC49hxKKOf4yhkQTmOyhiO2TTncex2CerL5dDmTVlCJDlT0EgUDeCCcldBRCjn0/xLMyxbAjU41cMUWJpikHATLU2fztrq2gU8hT8yLCalzK6TwaGlcgDDpMw76yrSLFg5jt/UNzV5E0nHlRUN4irTDFMZMjwKC3C+ugwQZB7/eLo0cwFMSX6NGIQFCjNbm1o2CaepQyCiLltIlxlUM1Vcl1Fusc8r3xiC5XPMTTmAB0NAYaqBk4Aw/yMF7ry0imuz1DnwKB0/8HnyM5odA/IyVdTAgC85II8nBgZg/NS5g8LKM2QJPVf1Nae1RDAzYxBCpZlcxVDhbDWeqQeGMWCAE8NDBG09EEOSRzr83F4Y5GunHKwAv6mjlwGYERhdUALBOZpFYXDcfNnYgmM+4ylDWEwpmsGcV6GZMyXGkQU4hOw4mdf9oKGGnqfjleqU3l+EcYH13gEGk7NzcHJx8/Dy8QsIFszvrhFRMXEJSSlpGVk5eYO4stZiPwbqU8evVymUKrVGq9MbjCYzymJjHJxL8PgCoUgskcrkRsYmpmbmCqVKrdHq9Nas27Bpy7Ydu4YS51frOQV9OAKJQmOwODwhrYVEplBpdAaTxeZweXyBUCSWSGVyhVKlpq6hqaWto6unb2BoZGxiamZuYWllbWNrZ+/gaLXZHU6X2+P1+T0thGAEEoXGYHF4ApFEplBpdAaTxeZweXyBUCSWSGVyhVKl1mTS6vQGo8lssdrsDidBUjTDcrwgSrKiarphszucLrfHa8Ly+ZHhzwQ6BAk/FAIrf6lmoE+jOQxHRR6xO80YTQ7YEUIe2iFcM7JvTibKwj8IfrCiiOaXb2mNW6/B366zHKlUbCYgrLSJzQJImVQ2LpswoYwLqbSxcTmpYnKhTPMEuCh/b0awreLa3+NBonzS/w8weHKbCySH16hTRyFMvFX93pOgvShw59MOOtbOoZcFNaLSxuVDhCmLTlXGhbZxaQARpkwbG5cOkAup4jJAKmPjMgFyIbWxnfVyETDxuFQXfV+J2gdHtLHcBiGVNjYuByDChDIupLJxuQAp40IqXZ4Jnyf4vbT/TRshhNT8XeEKlaTlMXmFV3jj74MuFhDxdMcdgvHvZ1dvkbq0Wi42xupMTIgZ937nFN6WIasxqUk0YSvfqrTpWJf9gTIupIqeRBAxKVUpSSnpKE8autN3Io/rIVCDcaGNjUsESBkX8r/aamA5BSbtuYchXJ53CL68+BfNhwHdeARAEDC/OsqiQsZwhoeeY8YzqN40YFIfVwL8ehqgAJgOy+GQLfeQfijXWqgs+W2cwsCwWe8gz/2w7/jOGawHQIp7pSJrd7P67iiHCjkBp+D7gUOUZYeR5+FRaiUNmEw=) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Caligraphic;src:url(data:font/woff2;base64,d09GMgABAAAAABsAAA4AAAAAMGwAABqtAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAARAgsCZwMEQgKszSpDQE2AiQDfAtAAAQgBYkeB2gMgScbEypFRoWNAyACZ5bg/0uCNkYI5h+2VRUoeEajERW2lYBwWNviN1V2EP6v4zgONhql3j2nIyu3GtF8X/kCJazh0Hqc+zSfiSiwoxQjJJkdnrb575KjjyOOMI4oCQETY0SqWFg9rNrMxd+cm5vL/LUsf6U/K/e/OlP/dZNWybIDaMc+ApatAsJ6tyav2wFPBZwAUbHbqTz//ZGe/+5PMDGOZqJLaw1IsVPhglVkW4028b775t5+7O6rCxyDv1Omr8ZUnjCZd27GbjKBj1CCFIA32QNVeD51JRdVwgp85Yd37AAdOKSlQ5CC0q1vi/qK2l315GML3fybt5AdMa2I0LppovMnoZRuyfKn+JaJ00/09h+IdlhGoMXZrbuvQRAsDYjJ2fn/n+vT3vuSoRQAl1zRozAVusa8uZlMH2TmTDL/dwNLyRJl8v9+SHEZVMGj3LOqNLNI6lduezwJXe0rZJ1fYctC2so+hqongMmnhqft9rtXTaRruUqQIZj5FrPjq3d9ARy67oMB8M11JwDbeqFvFQMGjxsJz58B4AfSt9/5FhWXoU7gxTiKMJ2rMVEnGWBnK2KVwHcANtcL7UlJp6GH21AOSTANW69sdPTaNQ3z5fqvH+k1Lpt6g7ug6x31YP9QDDi/7govrAKo8f0gsnoFBDer4He/PJkHmF7iWJqaZ2BP14QQkhjpkbEW0AAIaK8FkASiK4AAU8cFMNSqLUAg9SmyeWvCdRFTYnQZ3uy6rO8SmHsnAs+A2U016PVJC3c6jA715IEFZrcVbE2ePhBgqmvFaaMbnQIq/HFoZakTGNAeJJDSL3wWZI7hVI3UwqICmn+1prTE/qgPXrwF8bDz2w/1mqZeqbjWpHf3ydWsyn0JklWSakzV0fIYcyiHAyxmZCzNlvQGHBkNxdgojoZlQ3YQQxg5A7DD4wgQ94CSB2llYSpLyaecpStSRpbnucJkaQh1CkARAhAI3yEyqgsFGKQvoJ5qgcUtD8schDljbQCqBTjufIFYkVljJ0ZUtmvKoLN6nN8J2Mi6pk5pmP+rk5EdUw6at33cMmkneA02CN47vyhDj5PSsQpYgM1OC2C+gciyzakAjqcl4PEY6DuANVojNiTrgoCjK1SWiqcUbw2m3dg7nYyDlr0sgb57bSsIuOtXlMvzdn4oFBAA9Sj9RtukRt0HKmbWwhzgRS4A8aDbC7Ur/GM8dNMINnoLAiosc8pfFKS4Tm2N2vDaFgiR4U6hM54UkFhzIgi5clD9ZYW5AKnFuCZlAxEXbHROKVeoJBptQ8QoTbse3Al6Sgqrez6jP73wFP5ETwwQL9r2q7tPnrGrIZ5Zggyo7r6gujxQc4ii93LA7rLwGcmJQNsqIL7lJxzzoO6aLRI+IUdWx5s619gBXOf2azYg5BAy180NsLYpXJ41A3BDe0AELGmhlF6umRQTGVz2PJQ56SMwB9+AqpN4Kd+dFNHEjQnnHBEguWSgliWzwdbOwZNQIEMG0k4B3TMI5AwGBUNAyVBQMQySGA7JjAUpjIBUxp5ngcowELyu7nmVEuhjaHjb1mpUkZm/L7RVDObfYWMwwTrgLgJq50+k1oOJamRQg4paVNShoh4VDahoREUTKppRMQ11oR1SVS6k5yLyKt1UdJfbFKrYW7fjQEjE+sWMCpwQGYqoqaY5nfCbbqkMCeBqPKZZMF0a72g4RxlLW33/NoB1M3DadNuFmZBPAOZmYULtpMSOgCKnje+nQHYGNoXeN53LmWkL8mHJhlQyhBEAAvQLKshBeacqyL0mAeJobKIbGRbZMykxAmiHZtlys2VobEUSf2SW70RzbW5KWzdf1948AGTQl4f60zY/deaJHy47x43dRKomN71E/pCUfjvgRtMpEtpXy0TvjT9FdVZNtyLP7ge3cFdyKI3WMdBBpPcjMAhaeo1vpz4oY61gTPWWoExGUvF9g65hUpkalHWQ5ozC4eCbq8thtINGuVWqpAZUZOXTMU9g3iPQnAxziXTOQn1PTBGudgElUsxhLKtAqzlPpbALx04MMgUnMdtLbOyiGoRz4ynVvpRKrXn9SUl+LdTQw13cbvk3TIPNjTa9I5qy2m97PmwRnFd+vC9Tx3dNrgMvNE5kcn5qmn7L7AQvVSizI212Qi/2vXrHbO3c72OTHT93AORF4GwQ5EfD7NRqh9jkXtMDzhLHJIS6QNambhZgVYJnDgOq1HVVKil1Lk4+jMzpubt2S9f2r2LYzASN1tnHK50ztm2GbcgXIvNAXoccGRX5Pmz1jkCthwUWudL+91sw6OKGXc0evZLiZSXIAHr1yFmSGHB/QumJgKyvUsqg0TIk0nypsj3Etx65JV1EhQGqBaHGULotPmaQAtOC0GL02qckbUDHANwbIPQMlG/PYAGDhQwWMVQcGw9L6AZSC8KMoXJb/KwgBaUFYcXQdX5Yo8EaLdbosMYAawyxxghrjLFrJ5kWk3qq9WDNnKGg5ujbJ+SLFxm2sCzBWJUA69k03nFjDm7NcXeXkMMegcw8oGAekcNpNtkvnk3jxTReTePNMYR7CdCXIB+5EnyawZcZfJvBj6PgWwL8Slj4b6O5v3AzV3HVEwoLF77QqlXqhga/5SrR9YDozqa/tAfYAATqa4Q2VqrqEsdgAOIe4LzYVFEPngQwBTs7ZyVoJ7BmffUDBOgMrDo3Dqq6sn44Wqz1RhJ1xU566XCLryarbbRykItx0VPuyQ3Yxd8Ad74zJyN+JImvSiM9Ys3w9IdNC5JYgPxzcyN4S+wNW67Xkfq+WKrGWOjHxISiejg70COSgO/Bums90UcIEbzAnpFMlq0zZHyz32ZneWS872ihMA52tRCgaKdPfiME4GO8KxDgxWeuM00M8By/XCqhRd/MqhEgbKSRz7NmhhGgiQPeO0GIszl8aMs37M8WsTVEjxTtqzPh8Gy4eRjbsSLE3SI09UBCgJ73fHBmQHVNV5T8L+C1YMiaTAGhPHlEhilK4RfsxivCLR3Fm5BV11LQt7cykwlsoSjUrgGmdgrnNICs5ahPyz+r1fHLVizQulvG6SMFgxuoP42+msrU7ZsRhRhP+VK0cwY18SScUt2zA7Tj1pCnQR3NbXLOoIb4rDQBVh9dZ5i3IDxqupFMciu4fGikzDaqAj/y1NZibI7tTbgAyytdgcNNl2OJoknyPApRulb4uZ4U5xl9sck66iG+I72HilS6I0BewWBPp5r7H5UsqkNb0KzezvQt6ke0eDJNJDdlaQCwo2vF0wjuX1jwRp2N5wC19dnqgpV9nqXq0riAoDyirLiJUYO4kaaE4jzAnzq2CapHA3srPhZHags/SRo+kDA6t0ok5RyOZxgX1/Q5oYXtSr7TR+3osupu3x3H0q6mrkdkIE2Xh1FETz+0pb9IRs0+URzTEfi2+rQ8ahenieav9nGYxxRt0yyZc7QInrC2qEwAVrwdQjsqkcbDnWuWVI+UmTB5Sy0zO5VWOKdwG5EZdu77qcaTZSGvj8YnWp3pS1N0gfPV2kuqOaMlFbk7YB1CNodrQzxQvCiSRs7KVtrIhwrX3wR32qp6Q/hU5fiWYlseuXmNw8MQrTPcW9QKO2uCcxAb1AR8JI1MuWkw5+RT/LMQtBn5wJkLN6L+F4nGPU7tnen3Z2Yb00zaSqwJMBG0UD9pNmsbhbBw3yu8Z/p4cO87up9DodwiFAV/1B/0kS+ZNgIOwATn/iqpvsBUGEJFo2+kLzSgkIimIFR4bMilAxdj43AdzSGTPCxB/2m7Lf2j415BapsAJgYhMLpfHNHNbsSXA0ni5fnFZi3JFL4HMu3wNtz8GfH/W1I87rWfueGBq9ZNsdDnlsfVHjnHAvmzytbCu1lnxjbSDKBVex/6sORpBeiqMXl7boECSVaenxoqoNjn3MN2RXFDZ309uvCK2pVaXD9VtumBSkr7T1ViFggXKGMIg/Vps0I76qlDD6AOacOaEYst2mGizeKKaZZbQes27eAWKeeS2ltXSocfK0y0UAvcqRqhGgSoFIsrnEhtoWkxNVPNlrC44YpQ02o4BSic8YrG9VgI1kz4/2khxt+MYLG2qhdaEGaOyXtLv3AMI7Y6NXnLNDIq8XHr+kAN9baMRPFGesFF6d20Rb2ymm8FzqKwBV5CFEJoqkUfQjVy4T8wF4qq+077v1WFMbsZuDsVOlGeoXxRTetnzp3nz6uet/HlWtQTPmtgO9ko3JIxBqrsp3OAqkVp4ulSUWYHX+WPOib5RO423Le2kQdxhuR7LVYf4cw3N9LiAxBqALF/3nDHKMmGwbpHl77ZaG6JZfSDuq5a4M/Fjovzfs+NTMMMyeNPeKy0PbmcrwNOs2iqtDCWwaj/EbuixigV4bc3xDg/ifNPrN69xOkUDJLBtAi+kzDA+0pg1TN4on73vqBI7rcl8Q1UwdGK8yBZn3gKdysIXa8Qq/PdKKqRAzy/rWhUNHjBBa8IVQtDLGhGBVepdqXLOojQeeFFB6QA3zEuW3CHs7m/ogEd9neS58cc4g36RkWIIu8N8c2eZ0Frn8WzH14osMheehJ9rW4vQn9xqj9o4tosHsPR4gujnFxm65V6P6wVtrluTydfI2fD88vQwl8jE+lxVW5Kv+Mf3Uv/Kn7ymYksepj6XumEzM+TcLoWXGC7w/S1TbkDfJkRhlwDcow83zmz+67JVyLJPE7uvjcfg48ivHkqaUbiFYTJsjsG2eiqO2a4f7BVzz4cTEkG7pd30omq3btA7lLz1F11tI1WlTRinGZkA4Ggwq8qdxL5D9BUKidMZnRp+htXC34Sj75/Y2GWOrjm1Pp4IOaOJrtv762a44/KipTPymBEGLzXz/0kd3Y02BcqJ/azZJQwdP/rnLVp8qdU6k/KTma2L6hGVAOuOvvIgC+JIm61xRQ9xnOy80akaYOSppL+u2M+MCvDTfeoxFzD9n1tBR1EO9U3sW4wRSuYjHZve+AbiXN3yudOuzju1xZdkvkYpUyCz9zUKxXqjInCcKRWuEIsHvDmfuEtRCF84HMubtg38Ydzff2HvHc4bEOcElUVZH3uN6TSFKL4oLoit966kgUFgFIRBrBL9Fa5tSK7ZSR6buhN7q4G88YriAgD8CiL/rL9g/Uwds9EcYlLXncfoblHJSKfzdgZK+Uc1dgeX57SIPIo+ieqXMc0vr353vufn/cG8AoCyD3RnSY+PfvHZCVXLsAuo5LfDhjdG6aMSUFtqSxNRuE56+BDn74UQxaw1QjbVpPuNhe98z1+iEuV333ANZzzfX8oy0vKXiqWHCZyyrLUWIXDL+oG53WY+FlTY/xW3YLn0HsozXmK4C6we3aXwszf/7CH2ni4eMJn+5TasBdjtVvqEQtVpu+Xvsamdv4VNuICp+AnaYc0DiLpyqFZJladKNIsvqpquRi1QSoRpurbmjpQPnd90BXjHjVGfBz/0v1sIaUZWMbLmH9ZXQ209aXnBhl7y9B4q0ot6Jg+0ZHZlbsM4+4iap8cY0Tj+feHLsppSkAtdsG4+QEZxX4ts+xC1wCLpM2ISBHGI3TTADQ0nBZ87eCjEZNKTqEX0nqiXwnKBfE0k5nzYWUY96uVMolmT7l7GlF/cdoOcxG8VdHdCy9/1REH7beltlx5ofjqPy8apen4n0yFskIWgSG3+0u2+GjeuqNKSFXA9+IlKAe2WLObzv4dTcNzfpaLULrrE28kuYRZBUNShzUv6da3CNbqRyofD4EQ9/qQcsBy1Ve+uRt0z9+lUVII/VhbcEvV0YfBn/NWHtl5Pk/my3WXpj2g3/nsVkt9FXvDG2/K8CfWYFmoqy6vUI6lpHr3Gg+ink+b2g9nFGwU9JdV9OE+tZIWYT5VeTinOtSb8l+CXD8b/VotkJteOlrRbTc2G5rNFwQphf0r8mvN5bn8WFI0oVRd//+3GTTekTwc/5M/N+efNUk5/gRNLZV2qjb5b02uPHE6ZP1JRRIt4fOWS8putFVww+lzK1VSlsmys7JZWflq66c1l4pOXqSlYumKq5HyHeV1zrthEtNbH8ydfpmrECo+U9+avzy0p2yYk0KlbytpW/0VT6y9/rXEMdEs8aFMxMre/drbJzJkja99mL6npHHJzvIw5vSlCc2K5vnqLL2MRDSo8oqSxb/33TRvu/GUIjHYlDK6SlzGbV9sqHcbZCRC/7mlKcyd0bqreFPUR+QT9+BVBkuFDJvsyljcfyJ/v+cmyQk3Mhm0aQTznsIfoqc0IRjprqncvOaxxYOkeplUJ4r/oNIUZ/cV8ODr52ZUFF+XserxmloxW1xp69iVv0p6FkG/ej9UePaXd3Y+OUP44vR/qVH7oGW7t0Y7F7ohdLNfbRRfjY3m4PYtIrPwehbTk3eL6G7Wtk+Pp7KW1UgKxO5LjU8aa2+48UUwICj3w/A7hpWwNVCestMk12u1IXmcH0SJ85J71QOe5zNfvBcABEG9oXQt1xV/OctvLl8yWf2OO5055j2ftz8sPi7QoI8kq1aL7uXiN99XyZGLcMOzN313Pq+USKB8dLbJf6Q6aV+3eMulCaw2PlImeeovfHtsz71PaRRiDN7+jaNkT2eMR8lTfikWVq28y1ylK960rtYykT+VIqrjTw+T1S1M9m/K1oNnezMAfs5PU9jv0zKZTgQZKlfcf41GTSlT42T56z75SkXTYzvGFAFBJm8adq1ehQX0dw1eW8ZHIZqL8paZj93+k3Mtq3nJ45hIKHuLyHlPSZFd75TTAfyXZOlPIV59e0nWFtfKTbXTpfNcGPLiH6KmiSpx99q2Sl2Rtb451hhdnaGJSLqS/MqIhl4Rdah5X3AwWFLal/3XuVGNdlcRa5WhXvXl3TNqEZ4zW/vEshf/50xPllUQfTi/bWyqtbChuKTn+lRBsKIsgLKy8HvIJBF+dopDSTgY9CNWxdLMA/29AvHmKMJlLWy189/RZKnyqV05/nbTY30L3wxlGYv/XkZYh1+zyilE2nb65u05S6SzsZPFar+pnPXblxt/kopY+vW1T1SOrsY/T9Gl+9ZNylBYLHkw9pSmiftZwIA/rVamCq7/+OaEgS+Q9kTmqvIWle+dkaSY/u7XhWSxgtO0mC3serOkZFWdtTXTRywfQTnypftDNihJhDox+tlQJs+u4NZd0yg/+/jmlh+mzGsfsxQ0jZQbuzNnfdyRZYMZynd10SplD17wHC3CTeJY15Ljfv5H9SBRD+Ze/qySI6eUs0eDLNiBQCSOMQpGmHA87Hqapss1of09Mr+OkovpGXVEHBi+HYo9+9mqcsy0p+etLNxodFFJ62LWUhZJFeYYk8KbUiPZ1726LjX7sFNO1pZm3PupeyR3+/nzn0cMKlpEM5FhiW1Gt/fbMrJ/1XjX/WPhOR/D+HMl+qCiIx6v3rNuWvJx5sD3zfYCg33Q1PR9JyUhhW7cGVOIJQ/Sy6QVqD1UI1m8DjRDyftG4n2zr+pZaS5Krk1eJbqHS7gD5QUp6x2P//9ad02pTcmisvMa4vliVldoFJe3ymPZJufWlkLy3Sy7Mlmg6bm/dmJb22FzAIE6ILoo08WDTgMY3u9ufpP5zC39aGJjVvc7nUYOK303rVNroqalvI+cxXlkKifmaC+7/sztgegdjyX25/GfynvUsBaH3rwBf/WTjw8kMIlegJHFx1M7/cd0xN04kS4Tyf+61JxPcK+OOZ+6CPPXo1DUXJ8rrEVJKx+Hp2IOffJRpaKEpQrkHKx9EYNE56GGuzTshFQtF0ummGLOUb2uY0B/Yg1RQeWwOXhp+ngguRaVfOIjhRngng4xW+WX06Wmv2KeF8dfr4ZQ3ItFq9eT55XsuSo8mianyNrSokZ5ZrMsa8zaTN1ExDUEBIee7x2yjV9mJ09oOGcEqreKGE7GfzvktOF965FNN42s29ze4hu6RZgVKbyUwdIMSQTh04sPqQlmf2FgYbgaEwuJa2ydq7Oae6ABHypcixbTCiLjSB8HJ+UkbsQfaouNchTJD6IKXeAnRCbiXa5q6WytYVAuBuYe58F0QpPCIhOL8kB1bMfI47vaX4bVpvjg9Y3ZqTSJpUlLd66uFDzkMX+LJmffyltQiLgPPmfePTI7PJf+Ic7Hi9Y2ZnT4fZveqYNxAAC4vSyQDGCX5VaGC3U1CXvh7fnZ6j0rlfBdHGUFGe16tRx8v8Dgcr/HTBMWBawWkRXTdfMhnze4VFYebaUCq8Jg2UjLzfLT8JMVgK183HJgtbgyBRAAn/v+cPw3aZuw4DdCiHyZ14DV+hsXz49x7bNuxopaSaLAv8o0HLnMzQUaF0tD1f9ftLP+ZkWqv7lUDdrD31NEbhnrW051kWQ1SbXRx46s81x5B39es/1ZCMhKD3MkzIulDDnXXybLkzSSXDCd99G6i6I2MNQz/Xs9MuZuijjl1h90cbH7GwBQJrePgu2z2+S2L1KueGAzmW05BDTZFY47umkQjePTYIRHpyFinp2Gsg75NIx/BLfF96fxa/nYOFWBzPwpYMSoFZbr06PXOIZJgrkPXRwsdrO9SSeNZAR1GXORw4hVvGCXTHTSauii00ez40S4xykTc2VJVHd4R1/YoZOWD1mhRMLqx+q1CehBv7ze1mFU9p3L/UYMzslwf8ewcbk8qrsianv+HzUP47Fte9hyLrI2rpeTY4yETnYu8wU5fsjuWTlR9Ih7a5gOPWl9ZOayy2AWY09ZH8hfXGDq03K7IR0l7NXfy2m5QddvZAmzbBuK3Bqw3q7jfv0MpJXiKX35xYw4PKJVTnbzOzHizswo02Fo8wWlRuSkq7Xbj3mTVQJ2y6kDl7uMpa10gkocw06c0J05aSZL3eUlLBIrUblRl/UjbB/zhNZNaBDXnuHG4y9ndJjM3JKDHS4l9R6adEfk2KdSx2uchyMZJzlaZTqLxySklKPIq7Rz8tkk/shPVy4s5tqFbV7zWs+lnfrf0ldNR8/AyMQsjYWVjV16C33fLhkyZcmWI5dbnnwFCgfMmrjqczh8DlDyAZ6M+wUI2nG6Cv2dn14vANZfsr60C6ueeSjEubuBquXE9gvx+iQXBFsywRk/AQIEH3Vj/rz+qne+Xg+dzBTdRYA7MkxPqgXjQ+YeYgY0428kqg1oc6pbBSgkSPuArs09zO2PdeWfsc4lCO4A) format("woff2");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Caligraphic;src:url(data:font/woff2;base64,d09GMgABAAAAABr8AA4AAAAAMFAAABqnAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAARAgsCZwMEQgKswioXgE2AiQDfAtAAAQgBYkwB2gMgScb9ilFhbBxAEHgXHWC/y8HnMgQOkOZ9yIilmjBiFGLB6Wgda61ylHEir4Wxxl7sNM+3bmMN1fXoyprq19rVad70JFv/v5lBwS+IQMHi/FMses8tgwwh+l1phGSzA7Qzf9T13Vdurx0S2uIU3OrBqEBeMQepL09Ah/CrLK1mX3U7hCbqq29l20kFm3E5LVySCKKiCjUEL93mcoNoKQrZZQJst9uSnPZNG0516JJlXzrA9gAKw1QB9evdWcsjwfwHOpMXce7VbacB3TQeWBWrBKMhGs7Z33GEqBjMZXJUm95+Lja+103UARhs9plrcjOkiQS0HWYNon2QWCbLITEv7q47Y6lQKlnrSBu+v2mYP+zXcb3qvxYyiY2sbB1FbKH7xIWuHSWfy20ySGE0lXjcdP89G5Ri9oVEnCfmUOXI/cxC63DfdNe6cxKv63RR65Jd2OpvAISgEPIaq74Zla/SHKR7lx097vORS69obzwUpt7YXYAbJgGwAAYxk1QUADksbFUB65sghRP22evsfU/eJmMcgi9AcL7kVcAQMNf96lZCRT7J8Dc13cH/7Kqk7unTwLkB65/37nAzEHdqleK5AC2/5PejBjqGyUhLM8p1aEfJJf7C42xQFjddY6qecaYdcrNN+pgNCXq9Zed37yUEwypO66JUG8w/Da/bhhKvd5z9wMwAFeuFqKFM6BnbQHoxRuHoHEY7vyAYt4toBDOMWlTtT7vamMA3AEgVx2git5mAAGqPMgAgQ2bDDCoPYSHLilbgk/y3iZoqLRJlyMgbu4TCA+IZWiBnO53kHP0Ft6NGwYQy46dDG3cIEBk2/F1sPSWAZy6PelE6iwDshgcIaQjswqi0sSb1dQSzq8Cyd50Bu1m3a+BbjkDOMj6WzeV07HQkEmJgaOEsEvm2++EkqiHFoZPJanBlEUsGnA+RwOKQ5Ue4OwNoVQEl6gQCIm9yMwpAAUQ7AM4dwAOdmz0io5KuaTyIJxxpa94ljOaVEXaIACjSCIgdxEispUMNFBNQEJoCXSuOtC9BeatNkYAljOgeTcEMUv0qqVJFLev46AXDzd3HbSSGbp5UqQ+9mtMluYAJFtzflWHdXEsRgiOC0ei4Sn59GMZ6ACDEx3g8AYsz/CWCcDxuACoOgBYi0EvtSoDFPQabPbPEKmSoQYcZZka+Wr4JRwdo0dY23HDIGBuziifMJaAke0USPDqgqipUJv1EBhHZhGocTgyFwMOoF/Z2hfWPAG0ywhsdQ1siix3yOqSXD10YqPZyLjJwEGC3BZq8HoGLtoSROBwfiavk3kr4Erx3HJpA14EbnZOSGeI1KKmAh49xUqTZhD4hCQWNl1C6pXcBavB+wbw+9fcwsYh0KY5/CkFSMAAtyqkWANgxYIXJbYMCjZxjshdBWDKBDgckvK4JJBg45DZr3NLhufLMl+rAeTxwjkv4LAHrvfMLaC2LVieNgHC9xVAAlj5AVVPd0wIlQBXbzqQ3lINtrdgeYBlS/5UMjIk/XJBrLVAgOCCAVaSoC1iThy/IxlESEASM4ilAkGiIJAqGLwUAjJFA7lCQaHooFQYqBRjrj+Yhu8FWl7YdEw5wKdFY+quAZPaRO7rM41tevftQ6OgwInp9gOsHB9IbJYmeqOhGg01aKhFQx0a6tHQBw0NaOiLhn5ofSZQwVwwL+EhKVPpi5TYUjWKqXR7LYDSCHPpeMgKot7WSW1wmOQGv+2KokEAW3HfSOyWrcL7IVhLiaZJ7e5Lsn5gnrZdtS8I9CSBOcFQYi9brl8eYAyJxhtA+gfcreF+wZMpSJOUP5QQUEG9NGIALKZ+RaHIrxQZ7J/UAbI/d4owJEjSQDn1APhFMzwXh3Y8ywK5Xd19L8Lbzq6aXBzPEA4A6Ze4Bkh4FqafOBGyASYn9qLJExXR7p4jIqJ8FxNQo6xVJVT2llUdZ+4QsTHTIsvGxsR23CZOihrNmBtf9si6Fd/1it+cvgOhbxk0hnYz3SBoEt/xtqibBKalk2TchEnNwNkACu+Cs6N6WgsLZkA8Kq9PCwE041UgmTcqMCxKHXUTl4OSIRISJnMGLRMxF5MjbVERcLVK48k6kdkdrVKIqgi4MR5z6XIq2OhpB6HwupCJARrU3eZ+hCmiudWiL5Emnvu7xgTUTdzEf6ezxdjLWGcOMOVgGn5iMd2qXhdHheTJokMT0LNjX7yuV/fuNLHNmm/aBYRHy3k3EBEjtVOpHWO0f7IYUOawLEJcBKRl6mcEzA8gvM0BMXV5poJynnSTxiPhK2I/3dHc/lv0iplSo3726oIntSmbGUbChYS5wEIEhxNVs88wvKGkNssFJvlJ/YcdsNArF+z2kNILSR5OQQK0GyCU6qlA2FvSwNxwiymnJmoqoIXpYHaAtN5iUIlO2M6oVIDWQKNCrCruKEcCvAYGFYtHHArChMkJyKOAxQmp6kpVU6iuUEMh0zVuqUUr2Bp4VMhVxV31SMCngb8Ky26Hh27HQbfjotvx0O34WDgBup0QCydC96IYCUUiaRNpAFndFC3Jsl8YEAZyJKwKRQt2yhYM1SwUZRxrNwobN8pv3yFAhxil29PVHwQCj1dbNE5uNM5uNC5uNK5uNG5uNO5uNB5tMXi6MXi5MXi7Mfi4Mfi6Mfi5MX0/fowfcHP7UdmFQcq59xqjjRQ5/aHWnmDtduBL+3uMCgTmKI47reJHD8tiRwB+INoJEzaDCKRdemkBEdrmh3spgLSc077F04tNbkFDboJ+eqm1IC69tDHPvhPmmpKamDQmkj+E5d/4Tu6TA+FTshgqVN9jzhRQ8O9kvoJEnvuSBd0hmRUcqhM7QaUFWdtZkVnAf+3elkL9O63dwgMl4cY0C+Ga9QI6vGoo0KlCTsxGp28fSBlXcrNYcXiCmhQkHRUqPgVbYif8w1QLTj42Axp4Arkz5ARj4MXIUlrr0xSADOXlJqjRQMS/ycacPJS5iTu1EzN4cOwHlQho8hqNGqhQ3c9likzihFJs24Ayg/Rmdgy85r+/WknFkCKr+Pm+sNKpKVjSUmZKTvW4ZJlYzt4sUFTD7mPcR6BHYjp4LIdxDk9Oah8Xw3j4JFK6tBhysk8Di/Z1Ad0iFzCGeNSU1SsEoqRgqBl3UAYuy3u2kkVPCHBDYsXgERRFq7OP01h30cfqn5M0CfsB74e1Wm2WXMPyrG8YcYkUzGCW+IIyDYFqll45oEr9jptVdGS4XsHIPcp2tjR3FS82e+uui2RDSP5Tmg/hnByYp6kyhacU1MlUEwoO9mMb74D5qAuGP2L0nwYYgxeR4fn30xrpv/ByV2XyIw573p8UsbOvQ5TJnOQ8iseoF6Ln4Sg947thepyBXBWLalVaTlLzUOYAciwA+yeO2laJBLD/p+RGJikw1JuG2+p4DAUHC/4NocgOee3JA5Quj2oairoKy7DJNYYerONfC1Zo3tgIqnNF23Awhhf2D7cborglVYaqt35v7YXn8rb4hVSyaLWal547QfmF60CnGk4ZOJDV61yXy81HneOmx1olgQtbosSGg7q5dCUnUVEmp7H8UDT3fOSz6a05ieI9r15OV1icCmM1+50eX6fYpAXKskfunq8mk2xae0rPpwzbx4kI+cxSLl7j1lv6i7jCXFErDljKyvcDKjRwjyodC76gbZt5cpeaUNEpcgljGaa5fII6nhpsIpAntjLbZO3gvqbg23gz44+QAHcklfdHwB4tnDQrAqb8UuCuYJvHxszjgFFOu+t+3iu9qpqX5SffMMk5nGyUfSimdfGgqI74v2beFqNOKtx78sUUsUM13t6fZML60vi3JxyKl2jTJBxY00jTtJ/Pqo+ygk9ZvbxMU4XmaU1U7ZlPdT+qajiiQESACtzticug79z/CNBHrUdmUhRGnI5jZdd06X8LTT5OPkzSlDVvwPtl5MbbfPf152HUgU1g4x0mgHpYYMO2Yfb/fXxpDireE+S8K3PQQl+yYU6uS0XbbEoPFWpKJjVS8sCe/P9RaZWJnHw9nYsMhQKRUJnozkGl0p7a/YFdx3Xn5YDhteQxBU3VjPenHJ5VJ93MKJfk0Tp5a6r6awzxGr41c1BacXWsEvKhvv48TLcEag0H1l6hWJ33tMp13v99hWjkOLxdFlhU66EZJEfbrNyT11x6nAzLyN7uVmpNWVfeY9uyKGqjHZV6cubq2FXW8lx6oyjTil9O9EyW+GEn0mdHT9a6AYXwNrH2lDCGONxggJgUFi9q6i5ODyVS5x0Lij+eU2R4S65DXdDMbi7UAyXjUvMmjNKVJgd8bVlIrN6fpYzE74BrocLmD5PDtjxEXmdpKKPHwjgNDupAPuWrkA+8L2TMRKGiySdK5bs00G1UllCHyCmJGQK3fhD3KFMFXgcGy/7DnrsAeAvFfjlFLN2tbMB7Xc2WxIL/2S05F23Mz2X9u7iOz8otXgI5WM4ME2yGrV2H6RwY3GN/k28yRES1vOkdvYEtol44MsGL1RdHXPJdX61WF4vQWm320idYycUT1C1gU7XuWk1hVm+HgkkENnTuo8ntgsfcVGEj7A3SLfgdRudZ8CjygtoK+/Z3JAN5gomh4rCyZpZ2K5WOJWnG20H1OYUEwCrXNKPjGkddjXpiiYi0Z84y3UW3rH5/8O1U0CsRJT+Axq+T6IldZUHlOyuwDuByHWaWHb+u46AVpxBl9L/wdlJqB4Y/p9pqO2ADXso/Y+FqwRwhw5qR0rT6Ret7EKPz6Ih4ollMmudtJtYiabefJYu2qThcNhx6bsaeOKFA/Sx48otyEoSnTgEuaj6UjAvV5Pr+BifSrkRtjZ2eO7Mp6xIIHlpyAbPksZi8T5+fndCZKt/5wo/Obk08LA422lLpkLlUt/Rpm67w7d2nHKwPhZYZi8TV5vNeJ1AlAsPS3e9Jgvwk12PxTIEXQVwCZdeL4dnldeN4HdIqUZovD5dOa3uS4X/lsseVHabaKE7Y0llJqOWpvDdiy1Qx/c0qR7pxMIbgpvNvnHDQSPT9CIeJh1udKzMTnZ+mhM4I58bqV5RWxM1wudFMBleUAkUjqkZ9wvXjM3+hM0P528Y+d7DFU2Tmyyn64H5Tc21JVntGsi310neo9iVjBQ2EhZDQva++CVXcF3layeiqqEH1LNXQUP2sup2iTwuANGs1yvzPNnNLd/kPEgiE9DBQ/JKovgGGgfuul1Gc/CXZPSyIwy5X30y79EDXD1WYlqXJlyUIOV7Y28Z0H7ftn/jZaYkoTNEKDC1sWc+eP3lcJr1xAtuYU6xyXZNbdg9+lBD4d28OZp7OUGryH0hMqWFRWcFpGxQCLhP7zeZal5MW54m361L8qztdKFHbSXGZSMr/WT4a0MvfEe/9FKhX+Hodl3I5+CKkHqiCwYlkmqL0CBcaO3Y6bFi4EecT4Yd18fvWt7oC9JnCjNFQOmPkfTbTlcyXfspAgmO1OdnHTSe8VhVD8eiCqMyEmgS9aJl3hn2zo0fCZuLSct+VxhR3Z4d8uU8ydPpvBL/znQ3buicBE4MhVI4MdboSArMIHplwakaT8aK8d8fePsUti19lX2ECjMlCit3/aTk48+6D814Qaq5MAbNTV8L5qH+sxhSyvKl14D81Y1hkKT+7LLPE+qCVxcMc7A5ZDtg/UC9Icp4eu/cExWfCM0MX+63Vz8GrMQET1uowbfbIiDuWzdjS2BHoFmRN9McZ7dpFargNaKv3KtZUhOTfe05yiRBNmW5CHQSatOeD+BB+MsxwvyNGM4QmuZsAKwCGOGX1aydJ0Hw2ZYb7B1VuAy5S1XTm7eHf+ckgv9+/33uGsDBCUVyocbAqM+HDRUv600duBvKZdLs4uc5nRxkMBaYDuhXL6KwPQs/7mI81LfIeedcXiry1A2j8sLWtdxYC8zvTRfzXGdal8jzV+O7+6Mdb+uOH1cLgdKPuE8rW/fyjlQVJxaLIVFeU7vFXsgLhI8P2nGf/r2xPAmpLRJrCFJoz/ZlCkNEZ4xu/tQbFzy6CuGxVAbPOq95vg3mqIg3sSBPQVwrANbYpfqs04wkPkRli3/NjFf4f69oe5kqMw/qfQKmTmxtGXZcJrSheVV2xOXYr4bd5QebvfJKD2X0mpGayqBhTykDG9USYDml+3/JiWrJiv+oCW+71BvsdpUVg8aHy118Z2qTx8g6ui1HeVLgwtFhcIv7Avt3btylBysYh2Whj3umPYmW3tlBUfvH9ylEpyWGwvw/U5gsyjXv9CyjH7vy8Ogzaj0TZyniErP4W8ONy0HVnNdnO8HTvk4EH7n+WSIPSUrVjpvwgf0S5aISYTL/XEoBOT8iKxNHuCi82wYq9Wey84sC9vr/to5DRcRp9DXVaEpdXNHv7hbRsuCi/2oZifS0GlzR11HfD1WuaFfalQUMT4jEK82opF9MD3vTRaXHa2v09evclx37JgYpVJHqB6pSQ8lN9dCTPnXe/Jo3yZH4ueRsTOr6fz6Gr3ZY97sPBSwILE/npykHtNOMW09T6wDwM+hFmDbL9z8wis6177Ikin4khD4Lvs0CgAKqaRXjvAWOSsdKn2divG+wByXRqZ9h264JvZ6L55wuLBmtSxEneLfsOdxhckriwK9/GjS+mMGa9KTNhwlDORrcF5TFpuknns8yt25j1GDU3zyGItxftrh4nShK43EWJLanCscBIVtLUkW9BAY52KpMMGSXNPGuf+7NAyo36jUqoj36z0EpXYM4gx7hpj9ZFpUOiYD6E7+qclEPrcZ3Uelss12YrvKTfFfxu6Nq34YajchtKO99GerPRYH+QS7XAvyh08wZP9ZiS0tRUt1tcOk6TcTs3xvhr030BCzt1ZrI+KGC0MmBsb357SMKGqkzWY5XLWeFYRDGI5vEHCyMc/i7RFXWCuIJyih21aQM8HzZBM/zYnLrqZ7F+x1e12hIVjc8iCfy7wOOLHflARHi1oaDgiCEnud8wOlCcxVdk5xbUsxNvhbFMRMIbcLhUz9di+wyVaJeS/H707B+XSCbrvjuxVLRNwbQUfiSoDGXaEGDjsr2GsyoRinLQC5NOiPkmoXO5GFQoFb9W/JGfvKQ+Bd7Zr5FqMUfk/9L78lxMUYCVFeccuZ1DEpA0kiN59yqOVBdLEh0sP+dwY6K3cV4My3iSP7ywKXFyX3RWsjbq1IhaxGS4P1vt9KsQYz5BsbWT9VnXVaRI1RiY4O1B1gr5pHjmwbQxjniaFf1s5CcvHoP9y8/fH9bUAVVQx1lpqTZZF7uFxWHSxmuy+AnisK/sH0J5c3nVrZc+DeXT9C13gy9jHK522zedsXWbvkElLh4hcao3RAYHabzivlBnRM7+aqHaX6MVCxPMB7+IHld0SZ4VtOG5lWGrzpnwu20w8hdhNuzmhHQvfcPhstNLdcGkaKYowTQMavI7FjW53X6zf2LzOsPaTN47ydjoBcaG7+cJuCMcUeQlVDLA/UkWsaMw+/8MRp2EALdRTeULDsaEE8qbP5ESYdaXVuJRsCuIGSGcsnBPSkF1QWlGURZISFHFEHtP1K2w/G9nIxwuKhkgOQqPX5c0o6uGNxbkFg7tLWxZWLja0YbBOjGScVtA6OKFye737J9AzYOQ1K5NXuWRXMWnMsKW+mUWyj0SmkuqJFvOga2LJ3xVhkAJ9M/sT3lJsC54lf4jUTyJLeZkDRDl3IFyO1GmyNlg4KCuWlEnn0Cg4x5ruNKcuaIZG88QoDTw1qLSk3wWNZVDcIcV0o0ypc9vzITwWTnzaSC9mDEQe82H1v+9ldmHbYUFycLPf+An0ZIZKJYWCtLHZ7cm9vBZWjncC+saN/4tlu6X6WetCrs7N+8mSJ/St+4kdxOEZieRLGag1p1rdef1SFhgAgMaN7TWtGAT1wr8xmJLhbojWXRq6sF45URZ88Kvm5pT0hbU9VowkVBmcRjEIxId25VI25g5nBn7N5JX44rgfV0c1z1t4azjaCAbJ5ZvnTs0rd/yfhsmju4e/LGmacI76SQnIxWX6/Tray4+3sRn0pE5yonxj0GKbnTjLszhOHyfTyYWt1TXrQHZH44IYW44gM+WorTFQN+EwU6Pi4qsY+TQ1ULmyuz3y7MINgOSif+ITi8mF6lDaxn1uFm5KgUFHoB5dDacCO06khoXLYZs/ociVKDoEKLZEYfdixjTUYzQzhI6TKijuNohCCWgzriiRDaoY7Q6D9R+gGYAOowVOtVCm5k610fzQR1E076QE6kjMN9/HAFzaK7J93mYroIT+RvGgb8EAMA43brzr6uNfsxOpBMWhvmY0DS6MVOgGDkAtf/f08jmd9mJqPzNJjrAFfx9EfCcskVUcQCiCQNk3Mz35G8vR8DS8PLOj21n7m/KDqLeAfIF5WeTC+84clZdzUxk5ci8qevKH6ol3WvSbghqLVVP6Pwd5gCg0hc0vXRKzJvj9YnhbAxdYGCLAQDAZoBsIkht80QI2+WJsGwPJyJsp51I44z8XdHxiaxGV6y8WbaghwMu7ToM6tKoXoMeFINqvjKxsbBaGKOErWVpilutbh1uy5hjAtZyteAAwyYNx2niYLRVENo5BbUe4xibeNSUkVaDUjTMfahQBZe0mPVip0cHN55JtlqDewH25KXjtWvT88pd3ta6taYkXmk4yuwejLsdrcn5qu2Cy2lPrEycIxTuObgO5d5g2410tQFk+5Q/nnYmgXzpOVABOzJXi9T/MGLSyhOSBk2SB/QidP+QaL5EbslxV7Pybp7t5gFwQKn1awzPUgDbbli5T8yrQRE9JSWdR+v2k0ulWcPlSnfvNsY5CtZx/4FdPqVYELYaSuzGGuy1NSFZKkhbayRJkhqqGTp0Nnewe6ohDNiGAvFNAW7d/QjFo8/bxhLrrNKyKwWT9TiuxcqSZT3C4ZR5kTsCm1mtWzWV3JFNtKYgelqA//ibZYiXqhtB7l5ydKqy6Vb9R/Rl09LR82Hgy4+/AEYm5hL6tW0CBQkWIpRdmHARIkUdRO+tGi33X1tUygu4vu4OgOD88gv8m32jPgDQ/+4a8nsz/0ogIL4ZRboRbPmBHWPMTBWG5gKnfCMY4D5rddbudr/jvVAONcpQPY4BG5rYKGXJ3OVOYpOALXxm9eUEujvRITYCsv1eeHQ6muad3bXklVbTAdwFAAA=) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Fraktur;src:url(data:font/woff2;base64,d09GMgABAAAAACxUAA4AAAAATOAAACv9AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgQQIPAmcDBEICudA03sBNgIkA4J8C4FAAAQgBYh+B4IgDIEnG2lBRSNqcB4ITQHdu0RUbnZP/r8lUBmydvB0DNUbAkiKJigoTnOMpurE0ASqy534BeGfhRiOg8VTz57vjrPSVW8fG2f5iKpZ7asUP0v0x15a8Td2nOeNkGS2tUe753/OSTbJQhd7oX2Q+DtVau0OdPcreAdobvWxjQGLaBYFC8ZYJaskxug06hURfYx8xah+oz/Tjyq/iar98Ht2XwCNi/FoUaKNTMVIIKWBXZSDL/y399c3tXriPZrZZY8UyYDiEEi2Y2+AzdfT7xIFV1ulj2OSfqVfMMosNoHEhoRtmbqnD/xeVU0dptKQ8pHLZD0ypbkw7UhJSbc7LhWwaA2zhhnb9EH3/BcIUGhbt9yALO4vomb5++UQ08yE3JdsU7GIybsPb3poSrpKoc2UW/cXhmJqRYpCvL8xHoRQ2Yik+q/eVYpZ50xZItp1HsdW03gQJLIehxDQ4//f1JL+P5K3TFrpvAISgEOINJYvmpG9tx55c7a0Td7ybPmatN482Vdt79WCUnhF17BbSq8s71h4AmAACUB5ISQAhtGEBgdQdCyV3mM4T6mrwDgyt6XWkN4dm9gUgQTIPZvnzbUE57t6jgV8rU8ErgfphyyM80jjpqeBX2H49jufz+wza3OOAe2fLdLMLlk/+jmVc8tKAdD/VTlIdS1cAC8Ei8RxBXa/0zKYfEZbVarVSKk3x6608r31/UKWqbA4uecZ1cmcW/6evp//4ZZ97xtf+8qXvvCZx78Z2VjUUJDrxPcIszD6PL783nw6esP2VcxSu/zOtLZEdyUWhLEBX88QnH+luvwV2H+Zne/jHHnBHdnTuREj62ay77wnlhDjpBtAMi5qRQLTal6RIV58RQH0h2LmxgVtmSdi1MIzrZYO3SRzewF6RmabesqzxcBdXYzKNvU9nxMcgtmLm/eQB0SHfJq2OwkxOxzYkKQurSADIlhkYG0MkkSht+rQgy+JlPnX0DmNcjwbU20HT+G2+Tt8CLq8WDn7rM5HL5KDnxYOvjcU4aWenSmRoXlIb9FbGl5aCnPkqyUHh8emSPOF80QGwsBsNOt/GrLT44yYG4hpS+5bpiPSDDcP01kkM6mmZ5asNeuTkUInvAB70UwoahUtYAxKTz2ouR72SlMaU+f9t4mqosJcYwi/6I6iAHM56Vxgd7pXOzxabd/x1omcfj2UovTudcq8EeK6S5sWxLyBoy8DC0dNwp5uFTVoczSAQw1madtUQKzXSeTOnPSWpW5Pjg0ADgacnUlZ26dvzujKhB276RM5GOwxGTfWJZ884NYmU9JTlKMQ67EoPWKc2xX0iEvUgrKE6TJHo1ZG4ZI6PZvjV5Fm+0FEwxkEzKknO/RHRGyvB+/E25KXSIjCXdtc7/UqRphMgBPySyV65psaowyca0Uxg1gr4sg8Kc6krMvtCmNG5NWqtS6QJ83h63Yo8r2zx/RrWTQhP7kRvm6t085PSv7SBRTkuGPmVBWpKOMwt3x2LeEGowhpTkDhqygYhild81XV7UVtL1/nPSedDLD+xHcFY8hp0lA36gRsLmF8xgJcs45EYuQvpbT92Iq4UMDb24E5U4wZmNI3UqWIp+WFixLLNVFVEqDQnFRKYSB4LZYfGUUTFBSjYkkTgjJhqBABVSKhRiyoEwUNoqFJDLSIPdoNEoO2VNXX7SCoSc8NRkvrdy/Qm6gfN+/R21H93GcpLjAMXydJ5XjNRI2P2AZTbIuK7VCxPSp2QMWOqNgJFTujYhdU7Io60RNokhZ6hSLLFVo7RBtWXUv25G2kN9gr2Ksd9kkfAFNENC9pWVr3uUsJRwD0NVb5EvRts64T+7SLlWbH4al5muyH0dzlJvoDr8CPDMAFsYltsw4p4DTOyyP5x6mqeyfLpX+a9XefDAQaTH3IEuPid6jiINS3moqDi3skzr5Eh6CwJI46OES7BlP4nK/u2uUnhH3X8UZNh8EpzV5fouBQEMl3aU9Lv+NFn7x4MpYuRwe5pwFNHvy7lWEZ1CqnqUxLOODqbiU6+jwcSr2qTvn56pJpZ1tyiNyu1B7KJFKxzorY4RkDUxPJ2Astpj7qlXRyLGJnV7dcLgkG2mWZpGUndDgZtGyHhnYZMRMiuJgiBiRneXrqFnQosyXEuVCJznQ1c9NWcTgdHMaQlUVWmuX/vSNsOjLmBJhmFsmBkflxhwyytea15ocajXh311oAWkoWSitvbPD5+8UIZEPGJyImLO0HRh3jEUjsRBzl1HV7Xpj90RDURGrPk5cY1t2mBTRWl95pZuS45Zg7brr1TY8tP+dSj3ocODS0Lj0eHBY5XRjPdjMPLh6gYs3eQzDBRsLRZCZ/YaJn6j5L0tmCBrUsm/gen4ji9LgSSVr/IqZMZn6xruzBjSw7z5khb1Bh0iiGBjF8ckNbhrzMmUc1OOCUZLHuywGN3Lxm9Q1s356phWkooEqag9ibDg55w4zHQ7ItqDHJ7QphciaSOs0ZeWAWBmASsECRABKFUCYIRQ5/ojIBGoVQJwQNHBLpEzQVwDoCQltBOLIE4hKIRyA+QQRmcUmISyJcEuOKRA6PpHgkwyM5nlVAwyolVqmwSo1VGqzSYpUOq/TYJQMKeUG0xow0qaROSIsZ8vEJMlNzFMjBIgZlGQOsFpBRjGt1cKOO2ArjgLvEAfYxwCEGftx7jSfVeFaNF9V4TQi4xQD3GPgDeoNPNfhSg281+EkI+MYAvxgm/iT8ul+3S1EtD7KreP4g3nkzHdHUFBvrix67TTUE5aKRocyJrtL3ArqcB6JLoPiNk+nFPl5njwid712g8/p8j8wFJiYso1bWyKnNNKb11SdkE2pqSxvTRtKbALDfwEkaz/UHO45bLDa9gjTaC2ppx0ilaRA6BafkG8cUpHTajRoTBEOHjT4W5bOcWDKaY4Wap2NeDyEaL7Ho9U5iAEs0p9wQCIAvxkOxPCLAAuOh5QSAALAheCMfBmVAkCViOYmNgykQUgUNAscKeDR2cXldTXFhcUGnMZEqRO4t+QuevO/5z5ofjwmkpBIeJyk0XhJBadLyUiqxu+n1taFeFV8IZpW5hZEqAxUlzzdHFeCwLNDDpRiySN/ZGesrCRyJPlJJehFhUo+5QFF0E3GSYW9MCjmJXyKVqALAOaA0TQc1orDnAjuxMKVYyO3XcWG8ZExVneJ00+6pMx9bsw/OZq55a6XR+n3baWrO3D+V7J50f1b/6Yl7FZ9e/KzirsIFNCQkkJPSJRhCceXfP7/4BXe4XdH7Z/kvV/R/17rZe8MD15GmMKMfF8YFVKfeVesLbQlc6NNIfkoPCBJYvvLFp3rIyrdFsTX30efnwDPUbA6gKwWyS1acJlWHzuPtZXG0LuLoM2MRoS+xRvhUcIe3RU909Zzo+U6q0FD8e/ypD6V+lOo7RHBFqu3ZVdFOY8Wfm7Oi9IDSannNHBDqUq+tHInI3w9Nsq29j5ZWRP3PBwSk/IUGPkNvOZ00eVoPfBdwZa8kzn3I7/hSrtxSCvwKA3LZ4cBBn8qQdxWl/o+meHTPRRkoZW7qKf7F33/e9AV+5kOJYSfOWs60RHAasSD8ATKtAJ7vVv1f42RRJW21o6cL7hVGhJHOxUcCHaVKCn5lAyrg6XsnTqwG5aEuQM2av+O06Ab0Wrd+ZGqnlnahMBverxpYCphET+f2ud8SZKzMX0UYoeJ9h5lyxM0/ya3BJg5ZfUhdFsVh+7SfWzgca0I0UExaV5FPFfY4Xb1k3DgWX0C7epDMrOA46PBqjPO8KsZ/bjhADi2feK2sSakhCFCXYiMYg3SJfW86vIubrRz8G29T1UZ/v9SFcFbTEjLdSoq18VrJVL0KyxQg/OowzMEBEU6aT3SsJD1rvyCj4OHhqGhbYSs4CfZHBJKidj2PPPPn0siWVE+usD1/JpS8YFgM13BmqWWMmrPmYFx/p9T+hlDk55f3wbC6iSgA6+VaCBekWnUULwS2y1bVuftIz12xqsiZz1K7SXMQGYwHZgKrV5ULH4m26UvBHby+gMbnTGdERztnREk+Xlrh4GeW95XYR0XbQTsk0dTC+PS4MF4Rq991MuTPMsU4hui3omZlx3bWanVL/UF/DEOJuYyUPQ4Hw9yos2V/RhSvt1A/ZFwo53/vR0Zbg03wXciabRwbS+I34/f49VYDc56F4TnPJEXvDSEnKfbdAInptM6qDWcsQeRcMyMZSxj22blwIlWYXnB4GJofGw/joPsA+xXfHcMEjRXzx0vHT2mSkMHMU2g7EjZeKiNtYV/SINXYd/07Jt6mnZ6oJqQWmZvFuLwXmyuNA6krHRvgvNS1hTQUU8XyqzPmySVsT7ZpBhbmZgzd6zGtXrGNj0Q6p8mDXbsVFWnb8UucZy+D5waXCnWj2p5GEWbhJec2+PsLgWy7LO/xGZPqPGEsunmQhvaokkR1l9XV9bfqe1yTTJXcTlo2zeXVn3tHbCWbFECC57mRyJrMjAZk0cYf6rVCbCO3C6i1Xv5Q3uSSJXqWHV/R6oQ4Mqh/kdmXB/FvM7Lcdrxxg81mhTxyeEiPNbsbt+v3Beaz83D0VDQEJ8NzktWtpnviuEvzZrgKnh/syns0au4yOzlbKBQNDfd+2d1fM+tAvosoVsk7OzdH8Hk34s9ttfiScUyGw/M2Wpni19c8NWFm+dPgeeLVj6milyjG3S2DpRlGOgYTcsx0LHBhWf1l6nXEQ0g9v/tn8kG0h2YTm++wzRA+vyvP5JvJJAy83eiUGRVsWtrnEGFc5ovB+ntrKOOzFRnfEeUfUzYdxb6a10LPwX85JXCkFnpd7x2WcRl1LRR/6qL2iJbHVd2m1nWswbzJw5MTnNxqfNOY4BlkWZsfHla9vMcwYxCvmz+nZRtSJf5RyhBBgQ35ZToljHTWMhb/q5RgY39lejN2kS09wmuMhfgx9GRYGK82BT6s5hCMI8/uhCBSOF3af2ads0hDYLwxeohhEqBpYeLREvg555bYj3C/5HNtiU831MJ2S7ptKEwrm3Z/y9K+BwKiHzShD6K9kw2/44cbuxSdq73r4mL4S5TW43/YXq6lw2KAwKGUiZbyFqxJQNu2NisHxhQOQ0ONa7OeM193WVvBY6g5/SCDi4PNjqnLPo3sb4caYDLYZdt4fQB/Nt4TkzLktPsCpPgc+oaZ/rXXa5nEXEdqrk7uurZpGEINzMEoRCTfqV5Yuy9phMd4yn1ijbzDFEAS0o1/KKFp/KM16SaC/+4PVXHg5y/t5IXRhcv9wwNhdUYBmSINfSkSmm9vJD7CP+/Q4nfa1iRgqbanlDQpDbAlRekfrqzaPTp2O4XcWCzfiX+UdQByH1smU62bgLkNM20TSMOh4pON5XSZeU+/D68VVi3kBbEhe+ySx0BlYEom1rWL664I1rK3t0F4R7mbOiVEEj148CQ28rpp4RCFOilERKgPi9uiLYtwNZRZsRGBF9C/2+yyYy7T0a5T2t0jOUmoVbMcTvwR3o8jHCMH73LlO/fse9QkrqXxvLttWg3vqKtVt4vJy/IWu5F3JLpSsvOc1DMoOHDWCZn7lembbSul2zsdF1gWtQMuWyEIINZJXmJi6AP5HUX/w4R+T9Ip0dOg+LlJh8nACEj+Y4H29CKaWBUAlEAOmPMaqxSLv9UNTOlYBk8HRWhHDy2K7eMCjR+udE4YXPmKbzdKOjPotrWqxa6BgmMUITI4CnTckXXksla7EfYMAfFeabXueqxV3sXJ/lKz1sk9j6Kmhs2UZBW1IXznb8gi0sAUbKwb51W+Tj2/WlGs3QFDHOlCoIRxqCre8Tg7EVOqs9T+Qpw/RyaguP0V76/Havdii9T+OWI9Xnd7oHIU0cVcTz4gXCRuRZLGSxpQELT1iw2GlXEcEHVjHxloe/ojrFkmkXMUq41hEGISVUYEapOiM2c0XRmaFwaUiPF0PU6PMrRniD3U4aNuLiROVgC5qyyACpKbH5rT1z6UMeEtQz6UNNo1EORGVduaAl4XPrKqHSkKgCHu6TsJydtlgj722ZFH9hT+RDi1qhtNB9NTqQzj2iS+9hVGEaWv2WddaUHaQwJa3iEPxpeEYsAUxfeueQLRhZWgVBUfKrkwmdnszFEVHSO1V6Np8TVr+FUFwZYDR8uamVGEmZ+x+MHdjDp6ZuNmiq1cm+L8B7D9hyv3kEe+jtWWFYGRuzlwCm2cQGnOXmKfeoFDlmggl6rKop0aDpmUlL3veeyQ/C7LSgsCz+XkGA560r1XqeTUDIycNXT0N0K/LWzxLHm3nBd/SM3QYcax8J0+SEJxYbOe32VpkbmnDnHi599VbIy9qWs12hO8VeMyvRYxtDZ3nY2F6SUtiL3RzDLY9yDMXmI6EuqbY+mNVHTxUYuWDLxvyZhul4CassNDBYdKsyZb5qGOdh51Twtq841ahZd4hjF3urdyOJT0BQYH0e6BhgrK0Dy7PemvBxND7369/fajb7gu+VfehkuvoQRD9gZIr5wVCu6w7bsx/oMXGvdv02+mMMS/qKwvMR+g9XonP5KzMmAy/MaZPScg08pfDDidfPm3x6PswFz/80wYOXoTOiuTn5bn9F1TKs5/3C06/iCduqACxfmajElyQNyTmM0dVA6/dAVEibs+ir+ZyMWJoQkwrqwIfQt0oilniWb8MMAz50dTiJGkz8iTYphbHm5Zprw1HbIqB+QN2bX9EUOgIS67IU9UGVVdcrtUxPjcLC3/PTgW6fj9ikf0t5oHYy2e231i6XNCz8ScqCi9KSurIzQQuCGGBdJ2Fn0TS9gJZ9FBPsplIHm0dD2q/BlU0+pJTAMqEhkLopGLtR5KGD6aH9dsQbXR9wPtz6De5Rxaj21HhkMd6TLYj1v/ZGXepK3AZE7gTBoHcPWmdEXulZfGls+uSpyifGhYLn1Co5x4zUL6tOeLX6wtMOBNas9PdWKEsTe3jkcGRu6akyLcdWtwAon9Do79uIBdz2RLgmoTA1DQvviH/icwvUj3xPnPP4D0Qi85f1m7jPTqvFcA9W9NuPGJQPbq5e5Y97i3c+3u998QJhTmhgkbn1MXo1pG5oMab1OoQNmS4XMYUaG0oDNH8L0UgW3IwxX/A4HedAvPNQP4r3mLepYNRJh3OPwYj/i0O0pi6hwVckNTmmo2NIfhBazSgffArwKaV7WhvPGwo/X4Y+OZBtUjJ8sRaq23u/r5sxxlDGnVyTh7JEI7F56NNtc06Csqo2Hg1vY2rvOqg1x3J1g6C17Kcp8VNSd86z4Xm3yuNQ9B+R+S044SxLoNk7aRNXfCvXZd3LN0JKEE27jGxrbBgN4SdarUh2sAXP/iUakyzF3ADcNDgnVNGl+oPWtLnJ7uUkfkEj8mJurqf/6lFXPzGOv6R7eWdKGs+U0sfbVTqU/W2zWgQ/d6bUtQzAIwRC8CPyS3/on9jgn87UvzsppQc1WN0djZGKJ3JhXBoK7u+MhgYizpHj/rnqoP9L5pTxeMV+vbL2mYbCtb4jEnPHSHBrKsLaJLuPrm2puMmk0bbXMNqoR7+bMLuua1v0Z9HGRU19WChz/YXOVzLXTjvyr3avXpTpsC1PheLJ/CLqcc1h2hkI/oDoMa3ie+FXcLPcGFChBLULa7FHzpGAMdGv/88Degs16hVCy0W5rpClOdSeV3axdnvXTSBbBV3Cblzx+LWmQtnGo7nyWn4xUg29wvtl5rNrBIohjf/2Dhyd5Dhs52p8TJKr3doU/BndscYguXDbfVkXgPhzcZKhILGz3pqo6b241xX7zNcPx4+7uMfoRFqW62WDcN+34+A6h3NR/tDVUZv7bXRFKyB9MeG+cPPzJs8mSvhrJaOohSpt5bg6o+GddteOVGGUxZQ2FYdXX+fk1SN3Pj93pWbeAZVIhiIpPAuGdbC9uKY2Fb1e3QmrbW3BXiLL3Sm4wMZVISiLtjC6NJYbHnFfv+pHmqm5pMZIjaP7UiuhyNbteWRfAZrgB1gUTeIkFwB0jVxUYb/cb31Yn3aEzmYmKp6s4M3Fm+tTnSEllazhuq0O5v/YpzqT4wmNkRFyfFC+3ALCv5Cg7lqTASa3dptzxT+S5doLGiYqItmWA29OKekM2iKWidnGmLNQa//HCkOelZPu7t7UlPeyQt9OMaIzHxTFue2NCVZH2y7X0ctr2HagVanvsCBo1XLqerR4ogTzFcJxV1vadJioc4BxkVuGocr5m4cWd5S52GuLX1inpPo3+gcTbLq/WqBqt2t1VvKyf1SGFvCBZx86RF8ITWXYmnsheRgfOCjaMEpslcdeqlGRipsWKX0EXUp3tXG1wOp02PLvGT0CfxqAuVXToHwYeh4JaR2PvLdaAGK0J752Xmi7M7ThGHWiHCpqiRstOpaiAv2YmK9g81Uv3o1b90CnF4t+7GYF8V3I5uJGukgCJU/rWfkSq5SOFR2oz0gcib9y72+R593hU/yO1zpxyNMzGfLTpmZ20MfEkPr9ImMrI5xl6JOaH2B3ebcJVE/n4w5+aeZ3Eubji4dUdrNppNuxwtzUHBFgmyNJ7/4otfpu+uBGUW7F+zkcNu/YkxbBCiFH/cahL5XqmFn+I2fjrjNCgEFvnLIU9mE9oSVxloBnNbnS0tF/cQX5rdu1I+mHduEFd5UGv9cciAQn/IOueFsMpeWQ1lmApFHpkCaNk+0xutE/UwjXBmhbmqoOi7xW6VwUjh8U+aCMiPF1G3ZY5mvU9BHgWxTVtLYWsoTG1tOFO1olalEcGnmO03dozVGMSg1kZsj7Kf2uCwsiQUaBJCPiE1RjVS6uYWAaPjuE1fmAedCSklRomo6oUKisVT32yZCjrtctmTsvTssg7nV96TkXVbpLDFXXbQR6m7hunHdpQm3BR7S2+9MQgbhToHPEqxiglHxZu74yzbZ5FwKdEmkFRzw89ruO9VBC+3d1bWooE8cRmrruKDZR6vu8dmVmIc61b2UFfh3uxG4CJbpltEbmjrRdfr/2GyqhE+qDcHYhIC68S12MwSxiLBKYKt3GZiCUc2Kkd4dIzNsf4f/2Fv6YAJpkBLXbIoi7ZZ7jse6PCSmlXQhmKCUoE4KsVtR5VCbEVCu0SuMmsk/NrtIhjg6fec6fb1fhe6MYmcFyM7tXiDQTdPfcMycXgfiUaR/Fsand1qnSrb+Oj2dyDyo93E/ny/mbYa5fyXDiOL/K/zdkZ3PNx6V8Q/8r3i5/armx/7rMMEFfwl/M9a8yQHbCe4Js2MclaChHtuK5686ux5mIPOxXf1klG9z83YjKYO/WRrrd9RYV3Y0U1+Z8vVKjxmDOEVpN1RDKUg33os52MUcwtQcetdbxzxMomw+/+BFJvDiFITyfyAbAv1Y+31w+V1z80kivRGdawOOUqgNe4fpqRwzrZeJ+1rEkq8l46pXh9oMHDYiAIi0XJ6vNHZFWj4fr9Z5sBypE3hw2UI0nitBOA2IC9kdnPxJ0sLbXdeWUyjneoqXC2xBwlpw2L/oNvcrYzxzdpXDQLdiDXeswyc1aEo2lBVLIeWrpt5b5QD/aDQUk9lGbxPWk5ovQQr3eOrvmakppFesh0kxTjzYRQc8PeqFYHjBN/FCM3qjH2sT11VaLAVd7kwP8Nnlonkh8mIOQswuKtXf0H8fK9L2avCd7HV+2c6ja3WJ9bOHeVRNr888xm+bFNTqWzNDRg7NZcqEMz21FdZ4hxPzfgJfQ4JuxJJGVxDRQ8LH/3kiZlZdHk9Q/A16FmjpUbMoqJTEhsly7KI/q12ZrOL6dpzG/Bcp/gRZf9X2ji+xWLuFmsdw57EkiXN7CcuzIu+TcS+lh4XxysOsCc6JmRWXtk14HCzytLYLW5wSDVYfWlaEfnsNE8M51X/33lUQCMLN2+BCyW3XrU7lEl/zq4KiA/sE1qsbTSJgN4iCIECOUtM18jqgIuRkR7oq2uNbRJG4F7Gf/zqLr1LfpGDlJvEQkXa/e/zi5JoTdzogn6UuoByJ/yGdHN4cvC9bR3Jjvje9fM7PItk7biHY+p6GtdAszzetTLuxAOyj9ePj8zKFbHSTSECz2IIeMicofiQiIu23Dp90G7stlWcsfNpTYv2nW6I1Iu0RQ+o2P/d7E55c9B6j0XI6qR2Hj5onlVE70z3sb/h6M27gc5HyWZk9rxOyHqNDAyHB6BL/aQOfenyDzdASyGdBe7iX6cJ8I8UD3ptcxa0p+nK23YJM4Ps6N6MbcN/PFC/wTQw+Glfet8ehFioavKRAfEJd0voh/8umGRPExF/FqYqEKzHcW+7/OVKD6y+leyan3B5y6WayephpaKmtvrWHyP+dvXMKgGn1EP3WWUSEZUUvx8dosBiNXQJ3zw0HDNMaWe0QuxFDMGLWaTkQ3XXuuwGwUIbTe5qJZZ1gx62S3+jVnKIxfDcBZ6Io9M80WAKiLef/P8DREV0zlwjGzYXdGO13M4icjZxvcfOzelmUHy4FpoL9LuNE0XJdrqYFRbtPclQSOsXs31lPgkb7uBYbYJDWyddvwZ4YTIT7uL8D/cxr0oghds+MeUvkpfv+rH+IFjwopOjMLCF5/m8OrMOhoGxH369BqbDvKmvhyjlpiU1v7/4VXmsed0vf06XI4PlvqBUzXSRcQ8jNWAq758Hj37anolJnkLSYkq/f58cpTHTRYvT2+UG1eKO1xZqpEuRZmt7wFc0FCgyNA7N5z33z2J82SbgrR7RvyQeprLpyPKepbJVy9ob+L8HudjDkeuBw57gnZ72lk9ljR8xs73OTp0mzngM1G1ikgEH7MYjqvlCkjupDTorrPybk0o206MJB7N+wbIjNmG1x8TIZi8zUcU/HfiWdHTEb90H/LP5VKHUzWSbe/uDPOqp+0c+e1JEOnz/wS5wI4T3VkkebAxOZu5odUWZGWJJA7T4CExooq7H28E2rmv/3TjfCIOq/HZoJlZd7mJNl4GN5yXGyzAVFLYbBXz0YCWUugrpGoK0vbYG2H51NQg3PdLmKJpAr4YA3Pepj5757XX73aNAv+9yH64mnzuEHAswBy0/e6FG4ijMOKnj68Eh45re75Zic/+/aphD/bR8o+IOBvTOwscTn6dYNMU4IrM73s0JqN+D9n26Dtqtwnn7bG3/PNPFp+s6xMM9W9hzCwjYbCznPAno4DFvA6ThOqiFV+g+v7KDj14YtDD/NZpVrtRTtzudUCDnmYT+uX1BqXOvmywL7hI5NC7FgFLIz3/lpSH+2pg4q/RXZjQryuf0H2tLK+zVqko/kPoT2NW1etzr5luFTotbGi1JHEk6o44h/rXpIuH8jpLlqy983Dy5ezpR/ceSG6hG0D8bJot+n/gW0VvxZv+LCm6jccoSyYA+c/qQTQhzJO0QBBwB2HwO/mssoy4FzA/eW7rCxUUw/8DyHm87NJhOF7q5WXRgyOJnx3gjEc4dpn27nH+B1dDW4ZMVdy+sjaWLTK6ClAMcF8N8UUXQYoC881fu4qqU8QU/Oc9qvYvpcEWHw/PjOoQZbuxxFa+/CWooMCh1Tl/+32bVk+NlDzfPAffwsO5OwyNKNasWQEfOGBs7fY4AOFhXVeAKNxLr9YvWDxWkPcg8D7LkYQn4LiLpsM/4XB+A4PMXN2tLC9Ke3bi5TY3D/p8+z74fxeTG0cUQsFxGzTU8/ZffMXfCb4+AugcLbgZet/wKcdkJrtwnE7wfPPSAplZ1XG2m494LhBoLD/T0JsxFZuKqJfcGFzUApInvaTgqnrNqxTw5SBvZ1FPjzodkty8ueoeJtDtkPs6ht6e+X4/KdSOWgiKzZXDgv7F19U6aFVniTaoLrOenQIUb4Pes3Hozdephn738mYcZRQ0j16x2jEW0vtyNbfLcyHdO2C2jtSBY6RwIrlo1N1qZn9G+8txkRrpJBg+KTOr68qsc4PVFOlNfouD+joQOWDGyj7w43XK0jObiudWERiakYUgEfILKW+hv8tfvuBET5IeoTuT764B/6RHp6XzuIHpupzqrd4la8UWyA7hAhzVLbO8nVTwIMT7pEvY6NaCfdvWLCwEgbzFY5TgV9hKAjZsVdksFD845KphpmFRPOEfJXTaW33jqolN2GfFxHGrmvuawgr1OKui7I/08fkn30atdmVYao5Ww+FaHEX/YKjhPbvWFO9cECl86MwUBFR8Cf7PrOEjofWPjmCKmIwG8yoeXP3+YoKCPdTzr07yQrdI+R7h6fDoZrqZ2JpmE43mPwMVTJe/YRSEADnx0eSYrbjBOkdRX9zYIqGenBRbWON/FSrn1nP9Ozm/aSBCNpT0iVu17REj4ueSBe/++Ha680mpkz6czc4BfWzcWOJns4dxZxenenGWFzo+CoM/MG/Y3XyO88N7ZrqLfgYGD4+VvwfqfhJAtCJAMmd4xVtPupwVc8UamwtktRYQqIoz3ltW12hT5bYpuMSfAMDHfAF7z/dOFsAmW9sgK67ajmc1xBVL4HmltfFpHkyuJ8NR9FHHby6WovNB9LA69trpc4OGC/hs4mD3hIeduhLggwScXSGp57UYH/PIaeFlptY0JEOfwyw1AWtztq7TuoXeJC+tsR9FFCq1ryU+fVrFmDftEj9PA8pN9eFAFpE4vwqDny4OFoEZa8OQqJwl0IHCmN+k4u46o24IlpCun6DVUV/J+soHf9PabZQv/7vJSUxpWX3Lz5lqXefRa9X4mJiMpyHsX8yvMRgX+HxHrBoqnkFwuO93WpnjLy376AtNV0pxnUYGMQJLyzqE3ceMX6lM6OwH3PaSglJyMIBhmOBqEZpvK+SvTJjaQaN3W58jyn+h8YqZnVaoQnDLwMMQWMmXsP4uuzfCjWcWA/vuXF8tMTt+8eWeJKiPKPIXSxipB++9+pw7Tcb/6ZylkGEldz8LyTUmgdsV3iEedb9QtkRS9B9zPSAdQ+NKXS/KenquyYXOelWcwrXlmLTPfPqepi/YpruzKujpxcn7ZkUX88p3ilXtbUkG1WVVoNHvA1u6czTNd2WdgBBcKrYnnT7WOTxvsEYav+Y144uEud17OX4GCTX9EdnvmvW9SLZ+INKVDrUKlrD6cyWdRKsl439FIRPEhy7Ig599zm9YZy1i9PouxCeJqFGuJ6PeIPNycm+MfCHPNjJGSqHyZhZtABYXvUG1zF5akO4rRUxtz3/eBg7zmmNzPnViZ8+mGuUW/d10S3rr4CX1AHzl/5uPfXaDPql4Y+ors9sj9zD+SotER+1r1B5mXn7+H+c6DQeaUH7I3eXusFbPh5XUy5NP21wIrn7p8O/rgMXZ7zy1krWlOWq2IUMbB7bptiKRZuCF8t0o6rvUNvWsRfDWt5krPRyzutClQwDwTELHKXjJ/3hmqr7o3QgeMaK/gDZ70T/JI6acouTznH/fpn9NGvUbsrVR5eWsxFr23YqtKFoAb1GJzd48LBCx91VDZMJ3y9tVPmVxC345VFAw12m7WKy9YqlcrFUYbJqGUvP3mc5XdwkOHx8A4RR4PHcXct5s+zpWIPDlxbE1Lh6KI3qMStFKHFENDUNeieZsyFNmvOPB47FngBng60ACypXJPz0eaZIjJ6d06VGPiVjzZvlkJJcSab1OPbEjUM5o+shafoCTbjWjiPNqeyoZ4oj6XVZAHmErzKYdMxQxpgZs6XS2jlkkJOsOV8soMnC7mlBXnPVYeZErZJbQ9V5pL7yShsIzb5CuHTU1FpzelKnBSLd7RaqxUUHPdOi+JwMvN626K6HFUh6FMIrWasgLVaoElSfMfb1u3CcjpbWp5mxYDmSb5+VbNFdmyZPt6uR6dGjFDdnIlSs1aIPmeKWGEHtHGjXtBB/WgHrtJZKhzO7aNpE+vFwOi9TjTPY5n3GsSumnZlT19RL/ONq3YTleH1NC0MPaoDUZoD4XWj740qsOqcPhv5gvxizR9fC380v0y2S8C+Un9+O+TCgNpLc3wsHT62AG/sMzak7/KX+gr+mkH/m5Jp/r9B6c3EYTi7Lxu8qnsyGSsPkGtsRErF2VqDr7AShQiC0sQkZLmoahI9j9Rgdb6WifC5D6dehbyVIC63mfvj1A6xJR6D7zvNLXnyeEHrbo+/hQyUJ0DZfoYocXMdxT3u5D38J4OxWAnoIw9Gaw/gp/eR+05aP0JXKdeBg+hfWVQM+XwMT+9hGjeEasZ43/6hD/ndajxlrVJPNPkZfr4zhOkZ47mvsP6Om4StUZXLR//MRbLG6DlZr90Ra+aAVzLqftWg/I6UM2gy5vjTypPw/8Y8E6H1DSGXNUh53SoOcy5otEfwtfH4x9QFI6fhugHdyl7HEB91cMpZ9vryNFkh5F7gOeLSNWei5jx3EXCeHcvktrHXGQZm+7rq7yL/NqanW810L8/Ydan34RBHdq0G0bDk8XXOTnp5WqI9lwWZ9JYtBiS570BQjpiC88qLmxazskDE4MoP0VGiWru9lkZxWjMZTTHYo8J7hLDwbgGNoNU7DJsBIsmfbq93KaP7zWsG26bFiOWGPL91aIpGRAt11yOR8EaJEDpy8mIH15V8OGVt47BiG7zdleq12drVPLAVBNT4BO+tYRLpsrVGTsXxXpkMNeuU/PxlkHNr0SPH5t6RlNdkhtkFrXGuTC6h3RAc2mCvjFK+agaa0aL5KVpamX0zD16jGWuYz7dGw4p4KECW/nYioMpmhTv1laWPhzCZhyxmmFYNGBWi4Kckwcdn375WuUbepSgcA6sSIrBNTZdpMkYhVyHboVNLHs1aqyMUcco8KyTowWJkx55P3HJ5Q7Jxo/3B40sMYD53WQf+BI+Np5ydp7TnWZ39DWw6v94HFQki83h8vgCoQgcAhIKGgYWDh4BEQkZBQ0DCxsHFw+fQDkhETEJ175dcgpKFSqpqGloVdGppmdgZGFlY+fg5OLm4VXLxy8gKCQsIiomLiEpJa0ujCfwJAmSZJEiTYZsfeC8Q3puTO/7s6yKc31ifWP9Yv1jA2KDn20I3B94JRhOE908fIj+oa3NxWnozacKoet24bNnyJkfkahKs/klRsvlRrBViKd7gXbjH9vT5YPFp0ZfXpwF60nn4UsG8xDGHxKXOi2XumJOo8l797r5b9npyc4GhoKuT1F24SF545H38LO1fhbjtwE=) format("woff2");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Fraktur;src:url(data:font/woff2;base64,d09GMgABAAAAACw0AA4AAAAATMwAACveAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAfAg8CZwMEQgK5xDSdgE2AiQDgwALgUIABCAFiRAHgioMgScb/EBVR3PYOMDMhnYKxf8fFtiSIaHn8uBqZxlbyxkM3OXUlIyppAnE69Ca2oSKP4dSyqmpMJxDueUGUqabk+3eX3cv5AYffV4uA/vPU2237MaD8coRkswO0DY76qiSlGoFpAxMkApJARPFqOm0F26t63RdfmRsX35t/RWLD/1Hnfa+JENk4hC6QadITnrIW2maD7el623h+WINfX/vJjIRFtBIlijDLjITY9gpoJaVBRKqtvt/32Zf1a5X7Xp3E4iNYSEjTkZEb1fNDs9557DnZF3g7R/8QhMT8JiAR0ZfxKq7V37Xf9RpLgCq8NVfIPuACj5S4gKmOdI/lBsfDVvmjt6mJ7dsoF65eQiHrYAeUN++5a9tzsArs8yE7Ele0z3EZPfgTw9NSdcBz+fu+/Gx3ZZAIs8081rwz3Pv/rBO2PaQsyLt6b0czulxWbz+b2lK54+kK+taUHrlpdIE0BCyO3s678ysztbIRTt7TcV52nVb7R3QyVXFtbAUXAv3ykV2v5J0VBpNWC0AVUQNSAAMox2QCmAAoQ0GmuW1LAuixhwXiyjo5N91maj0OlNVOSkhxoABE+ix/aYNAYBmdzZCAKB39QwAWNu4f8g3y0CB+tKLAb+Q8ONPXpqqsyQLKgh+ajBBF0rVzUAEgA0nMACA/K3PARAoLhQGNCtxSDUGrt2iI+mDBYkUK1WuRr15Dkxn17XZVsFlgyda1EmPTq/j81L/7G/7m/66Z/qr/qKnv5U1EoCoaVVEwCGgX/tsHc7VVre6cDbqhL+w8nvmyZSALzYRosM72HuHUG++WuyuI39yfyj/8gjm6b2edA81PldaAz+AkssFSOlMCALa5U8IBtasQ3BQdskXRgJTQkByzni2UDJ+0C7B+LFOMA2MpTSDuKwXrMVKZ9BppvRQfmEvNlxPUSWPTRFI4KjFwHv7W4pY2LxI5PFAREvqJIqj47yKMsKmQvXy1yIXq0xqCdQ9q2ccl+o3S/kq/654f9mglyhw2Jx/+CTkq1SaIQ/RLtWFC1aIo42H/lD+t1aQpE5nbQEmm3gf7SedyMB+wBwma8BHC7zaU60aKuCmv3mS3rmpJnaIOyXdi2SpgELEDiTPI2KykRAKKCEITzOCxoqFZga6GaW1gEoI1ekqoXC9NjY0hhhtKiPIs+ZWrxSUkbY8dVLe/n2S8EV3AJHPrKuotCqWRQvh8sYSU+RENdpVCA2ocK0A8zbSvRUzTMB+oRRs/Af0mYQ2KrICwuy1WbsT6b5QkLwsMjLhyuu9SRSVeZSJWdXxg4zSeDJNVRYFd4sh3FGS96pvdZcL1PyiKl3ruHRbEtx9ZnmmDbEmiaM/C6i4QTYxy3NpzYJvWuprxVpWdQgHnrXWeHSnQrgoBoF0eDCN9uuaEbhd8JG7QUOeKnXX1KU7kR7yXoVHR/mtCtWGuK6Pw4/Wi6+yzMNquK6jIHtmDz8c40qXUHDGEB5+6ZPh8yJQNfBCDHOZG++cwC0ALTGB+868E/0QbvK/OnvKHWkebu0wlRBiGtMvOYHD3UVFrVfGZ9V48oAeCLgMInBekND5OYsQeGzzo4VvhhLYZmAZqBhyt+lKA7xgKDDG0IDCowZVH05O8C/W5yREDI9oLUQiMKEUM5RhjqpYoBpWUB2rqIE11MQ6auFK5wQchECo5fCjZYpAb0tGXdacjmmMw9+XnTUOwz8PWxsBpsLaLKheH0lVYiV0oA1dUOiBQh8UBqAwBIURKOSgsAUKY9DMHBTHLVr4HNJCJU1YybMkFdmcubkCWMTLGO0nLkG0WzmkaU43OL9XL8YUBWi75ZD2dm/Nu1pYjrwiUWIfi63mjpOqF8zsgl7g79hDUK1nD1iCAlHlwTTiK9RFqze84Xclsvhh2QfFtGtFEijzxyjEAaKxOMThCykQa0OFR/AsxQsUJQn0lkxuP/97YI+bkj1XpbcfZopDoWh4NcQxgBjJEhf+0kfX92a6hsG13/nciOL88O8KTmZSpPQmqGZkJOG2sBReXtlLoS1txd3cUhVTbudJUt6Te5C846AyaZkreS2fpp0IuoyhMM1WtRZPFTFX7spKWinTjCfzTrqhipTc+WwlJKG262jDuKLcZ84nluIpKztWQmRdsFPOo+V0BUBDzrZTQij1Zim5SnK8YWg8S0AKGTtA5iahbDsX0E1qoVvVL/DZRhSzVtOOXQTFIxZU19ba/4Fp8WVFzkdDxizy17zA00avMfedU9bwVk+7l2CKqFRZ/YS2oqpiKZbIFxKueS5/df2qqqz/WkHVcne7BI5jXu8KOIm8vRGm7WB++ILqSjFCMYfWCcQsNTP981OYZhxA4tTgwbkU8QaI/wZedgamWtWR/Y3Y5TKxjBSz28e8oTRrZmlBi5514niNGvpcU7dZmrfEphJHwAszSn5RYJkbQ92m/dFVeZl7BQ+qxXFAqdfA0Q96syfECVNEO3mvUibeIq7jeFPJe4cCuEnwHnMR0hQAHYcZgvAMm6RClgJg4+Q7uCRAGcENEfKGAfihsEAYEw4xBEcYgmMMYQkwrHEKdpyBHedgZ4UgPMcluHAFLlyDizfoYBVqwRbqYBUagC00BFtoBLbQGGyhCdgWTeHJqR/5rCsOsYTnINnC9foKlLFsxyCIVhGE1hEgymYOoaphG6awC1Nz3wIKHWIYh44RoFME6DyHMKVwCTO4hhncwgzu0Qo9IkB9BPQJjRxeYQ7vMIdPmMM3WqFfBOgfQWYt//Bv/N4+fqjrhWjxtWWttIhZg96A71Tq7+yAMGhA3Ry1chs0beziJ7gXQPQmqC9hAlsJCmXxhjlakzWAdXGsIl0lwq1DpXJkXR5AF25VW05eX1cSXzdQIfr5HYW0DPOowzSD0Zlur1nXTNmeXhlqbU132k7amfRIKYNmIQeVN4O9Z6/N55WZ8sjc0OJ+z/ri9m6y8n3AGrM59XZ8+DRxpU6pJj3N3nRlrL033WHk4+1Za94Rvl/vtfOuqLv7Yjya7H859Pyx7vFHpvoX9OJ8V298vUsxxNcuLr/yzVCdWg1WCPzlAC5DeSrS9MLHBnCoSZShLTkS+HfSzri9b2ppnfBMEe8z7eKYfEZt19lBLmTEIV1dxbmklf6ean1NdTYtkDkCBhOITn25lY0VChjrQ3ysByc9bz8a4FNkGMzA4SZH4itT/T7Lx1j/ylS8xk5hk5u4DLGRGcNHBg9W2o+UH5fOearuUAvt21f2uAvejdOu3LnhwHebvvOVU1/9Tut3v3pWdZg4CtNwylQdEb/8Xuv3zVDd6IBwp/wnh/JXS0Dv700wcEw3TgfHCMiVF24IofImgwB4nmqJ49h6Fs5oZBDxy/AdhZs4uwSwOcCBaFSKDmb/XI4odlijTrXWulQjJEiZfrtWl2t+oCBdh3pW6tuzTSTYDIqJmzjwgoYYEQH4Thil17AbAu17je/VGQbt+onjq537pBT5gAB5Q4xgxp5y1fz8/HgIhQBF/weimL6w8h2u+wo2LjvQU0ttct1dNT8zu1c/P4mrI5CfjZ6ZmOFXPPBzn9e5bh/uI0gZ4Xv4esTYlNPXYmj6f5uN/9vlh8oqju2ahmOJ6+sb++33Wr8PoZg2djT3lrKevFk3col1xA05HPucY13b60v60w1A5OLFOP9qiHG5IHWhULtlnXpehhUGhmM9PF5Ol/N3wrKqDImhjRfHEeFVtnAUbWUCZzLvySuXPw8b/uviJocmdvqUdB1nxXIymh5+H8Ad03V6dKLoXCIhgWZeIV7G19Lls8iZYiM1AnBcM7T6qeCU6LSbXI3dHqoTiVNefyLThTRPe9Q5pSxeji8qSMsrwQGqW3tzVIE5whLIdsqZbUzGa0txJJ3OxxtX/8W03tU2OEK8blJV3SucXqmYHP7rdURbwelMjCFWHa1qB4JHGuGQAGXxfB5WpcusM4552mZvAV5tvjJBeKBmF4cK/h5NI42wl+/EmCzirhqdmjii5R6jhzS3+VgrQqChU+65LFyJ+gXOzW0jf4S0uLjhLqNwzDIuzT9ELq8j6v2tywu7Nj6+Q/V8riyaOjfMmY+d+xwdCl6ofHp9nFqfNEdxGSKAjkhjQtolXFAmTerVfOvR4TvU+C3zFpmo1DaiUkwlLviPsgDty9RCigAOxE3qfOFPld69ukWXsxW7Pjuqx7xGk8vCH/TJ7JxHPuvYfWe5BmH7RTKjcUJHq1yisrTVwNOWOzAwkBPBvwUUscd0fZnqsaKiPU1jAQ/mDTYIeHON02lqfnDQdB1owQZyTGIyPb5axW6r82gsn5i3186nTvSUCND9S1mId0mwBdoT8d5HOp220DjWiB2dTvfXCbSAcI6P5h9NFdaYlv5DOvVyvtN1TOWVrA6Ps8BavzDlo91K4HkEjIX47GUt12ILAwoZFDPWYLt8mDezcjI0MmBpKyVCepfQXjlP8548z9H0EtPVZOR37o5Nq+UGisjX977j8c7Jo5NayOb+7HZ04ULBHtbHq0PwUGO8Nx/PW1I2zajdk12SiMU1G6fdVeplk90juU2C68sCkV3tTgh/iZOvW2gUScw5Xz2FurWFVKqc4Yqyenlxj2q30RPbFW2C0aY9BoqWKq6IPam/TnJm7gN3jcBX6LyenE9SUejZ5fG9YQMTYVE5tWpSl4enqU65IPhQz8GCahQcJn4TEonoHdgVzUi23snVNaqdquqM2DS/1JbBjmzCJzkxX1ieb+bqalLezCscymaLIa5rBNZu85SijYxMELavdEfB9jjhIqQ7a0UPAZGLupX1AlghqNFWI9wRkBEuf6d68/VyIcSwa57YoPXtUgF5DilSP1hMWGbu5oFkrJh8NCI/Fu0CFiJfLyC8To42YGymdvOX8pgTQNnjcWHPZ/p2m8mlZNX+ZCw7D6KWPtcRJAi3Mm25XF0OIvWeaT9kSOZH7TzNHeLAsGw2FHDZGsefmFRGDKHI+xdtPgI/JN8/NMlyfjRRZaiVT+YvSFLlWJCFfMbDIo20oKwLEiQ74yc7in8+Tvz1+btI5yRzaWIezdbWr9ah1sz33HvbrmA/cUv4LHt8Q63XLe1wNqwbIPqEcUt8vOEo4dEmtB6vUfjtLy9va3/M9YtZNRhDn8fGvb4fBKld27pAFS+woO4J8Ri9KTwGu7DtXRf7u8anqZdNzI3LNNQyoP8GB/ibPW7y8bJLcOZaOO3f6Ym185wJZrtnooV1Vze6AMliZMvRzEOlNIFtertPnUdk03f97QwvcUHgUTxr/xfCJbTRG+Q0VR1OZ+OMFw0wbwbKZpEsCZDnydsJ31BR+MY35+mE4cjZb7whJf9Y9TJw+KF2rQeH8+LNbB/UfDHtlIFhFmY8iGs+8j7m9rCrYikaRm3e1+/2zyrBaLMk5VR/goyB9dFRnBaNJfyw+Ukd4EE+/xCknEFuSHNWXeR+MK4NMN49b19q7/t6aXJvMMtE2uqTvMoa1605CuHjy6qAoBzT7ZG0hctiHC55VPP55qXQ1dcHQXEFHHwWbNJK33aZyEWQPLH0YTVmpU3qFn+vzyuqXB4Lj7SqIinSzOsXscVWIz0V4sY9T3b/uPq8lBPi3SegAsO2S4tq0uG2QFPmVT/WB5+y9bzqFiiG3ZHz1m07jBa2JfiT3KV43ZIcAbYtz4ckEowcDFRyKTx7MQh9Hz3Rrj0f98sFYL241P6ZMWesvxv98/K22BfnO4gLaBNB1Yfxcp59MfcsCLRlIeian/ZYgVE+KB/fuIvMy/rpIZQjp51W0J6BareRigHk4ULB8cPQcykoMsceZLPYRX1dr8J30DRCoDeBlru1eGQLDO6mdAsgKF+FibYX/CaddajGEWeaepwF2CKNkyYu3zARHSeooJjYp+xZsNaD4QwaDpcz2YvBhi3HFR+DzVtBH4qoPkvn7iU+fdH+AGOD/fj96bhLsjTXit+wJUQO+nhqP0/SkyjhWUZCQZVbofRsFIe0NMcphWc7OE+6+5F94sEPby5ez5cXB2WHGvupLyYcgtyR0EHe2t/zMhiXMsgw9WPZFZUEqnWi7rSDrMBCnLRSHJADSl54GuKJstKSES6XVsqVFBNnYMbhVfi4Pch4ofKdwYsI1SxFXe5VxDfupn1QA9SemRz6OiIbSaeScyB3KxGwoP7ivq6+6JQEBuv1GIREQRrTPnBhpm0Ue24Fla55eUNVP4wiIbmY9/+RUrOl5OPZh5CqKYWG3/3iHXq0PLbCxKOf4+Kb6IGBszrpUfgZWyYIBdKpc13mhjK9zfXTvwy9xINza54y13uXzoQhODSE58DmpxA2Wgb5Kv/yDOZlnOKj/x10EAn0jmGEZSrbU8jXfa+Pj3cjhV9iMXk0iHvwKXGL2RqyXev5GzM9lVkK5Oy29sS3PQslXGjMu6PrwJamYlbNuvUiIHxPUtGK6R3K7loMFj5kW+Ov9ae5hj3LUW6ddyIwVJt2aRP5ov1bIl2TVqpNv6gdsYjF90I0jYkxydFrjuJt08QlYn8vXo14ZAjfCurNtOnTX2/JuMXNS23hMGChAU5iNZOH5IdmNpVb9qGnsYvzFLQbR2luIN8FBzTpvfnKCgHVuh8MsgS0W7jMtHjQGtd4zLAzVUCZOZK4mZTh2MHoLwInZE32Hz8xfQI5ACXpGjKTAdFAGEzkS+xxLQwpXcOSauRBcT9KeJ66wymUiXBujDHruQztBSuKKcco0QIC5UXUnf4ZTZQ/YcvMqXlJbn+r0lMc6GudiVts4YRpf4kr2eGWX1fY7unCBqZj74JF1cEcw6yaH2X3bxz/SLuycwUrunn98i3WqYS52V031+Vv3nJ1ty77KJNzPc41Y6ovk19g4AkBIk9IKGI9CeYeYjoQ4WXEOLl1zVJqs+LdcVr2hHBLObSGuJAdNlrA2CvZz8pOGmEhzBxWRB6waI4y/VSWX9jyvmgVJb1RY3CBe59XLCJ8fN0ahnRdOx25Wt6naCqu+2b9lefaiHvPjvPANdQip1E7nJ/fps0bAns+VFvieez37eF2MrU7S2wcl0m0YfD5Hza3bQJ9jMLWxx944JtveZiRxffVTPHoQRD+o58+uCzQtOtcMpQaj9Ys3Pm4Vz3fXTXPNncq2DaKUn2yA1uzFgUl9tGcTihhFIx3p0H1r41Ye+T91m7bc1sbYZg+8AvXNqZlA7+5btvakBAQNUPaTa0Jr+odZeyZ5+3DYgMERfoXCf71oczfFvM2bl/U5HQqHllEumCyzWOLVbYjKhCiD/fP4/GV8Rx+1qOQ36m3F+qawflfWmFHYzXQ1G+UhdWLyH7uE6CjV8EQnPly1/W/QT9u7jrUkTcZQRgZd2H5T9ZAW33AX90xX+U27HzCoA5kMr4ya6SsiM72g29fmsy8zQ8DPmdtHHKuMeFstEaaKqs3Tqb0PrXKkxVVN1aet1iG5o9QNSfID+aNbi6pjpmlH6MUb75Jws4f/N2dO37hdi/E5uPHYmjwy+pr+pTR7EsXjG6h3b6zGTftNqXto53FyXVDGX9L0i/dF/rVNuCrsyaDHu4V3MLmHeYbIqfSYLM872Qm3ZjWlki1szSGSM2tqhXFhvLtiJOT2veO9/c3N09zVrpcT2+e0cUDK0LoVzT1+eX2zpIyFC365wiXtnShtKPbpwhm/fiznvQqZR2OfeoLClNTLeQIbZtQb7u2t21D/PiWqA66MCPL/Vapmflml5oxxbCWnxLZ5coSj5TPEEgeWOVP5JqH/ZYip6NI9tHdtz0DNMFh1Iayi4dzT82+8EXEzoM3jjc8Unf9tbM2BG+mK4QJCv5Ow4ZeGDf91rbStqjq9qPeaGaK57WecMw73uFJd7pVNpOSeFX7FVVhs//96I9c3Lm133dkU6X55Mn+QpO7Ne1qBlnsohc9Eotfe2W+a3UV0gd6vHMyA0Xq4hxiopflmVd8b8ECBnaLqpKrFcViaWWVtaalI5NjO4UPMy0caxu93y9/7niiLFRf7VRXt8bry+aNXr4l+37fiP8ZtDPtFVSL5uwK0ySnBpPmd4JiY3HU5Oquc+WUIywYTGJ2t1hlyK4qzH8MzTjBcImmzxujpkU2NP+Vcq7e5HDxbz2/Cpg1UbkjHKIGqKhkRPO2BYOx+BrN3pgm635DaYFmazIR8F9oUMXiVrBX8+jgfhY1OcqKbCnzVHGGVLK7yPOd96cAmy2ZPLbX452Bd3qWRSP/r9W5Ol3UCKNnc3Ikf8P+s+WMhGhtQWmhPjjrHluRuUWnkf757B5sCnyqP/9VOmst3WZrKcU/g7ZKTw4is3i05p30WdrX0HwBfyGPXAZYNETxQZc2FmfVJIuOy7dFIpHwhXplPGVz82ft9nprTxKZI3QP/Q/y/WCvZGxw1aunVnPoyHiv31x3bKK5uDBeQgItFGb90/1IKBtiC5oMrC1CGj7KKH0Hyi911pUzRK5tb4qL56PXP15VidImai+PuS0p/q5HqGTzWELRamw0Ctj711kS94NkweTMpDwHnKo7v6ufZn9loX2wNrWr7VexZVzdGomcT+XUxss84tnel7t9ah6rU3X3ad+l2spyaIjHiF2Ymm3fteSKuWMcovb3inJmWLs3HE4k0vEaW+FAWVe0grktYXsb1ds5u6BgUAgoX5Y869PVnqrGbJtJtndJvP2tASHX+ew8Sxk391W3Spl519T0yqqnbeDm/nsntux4b04XX99iAMpyQ7fL21U6x2FkN1RNqRrGB2U5IHr/ebetSvXXti8WfIqrN27EqPr9bZbcHiOfqjo8Gvy4Z7eIZ515R8H/eOysMI+8iYOjOYOVyscqzAUawmpR36lMpk/VgLL9cjfbkeg28exGm5EjnaUNl659tSMoVo51XffFHHr5eO7eRmN+pLAo/1MDllzgD1keithqrfJ7Zmxiddjxy66UcbCGKkGN1Rz3QrjEUxQ7zopgqe4L4nFdKb43d/iqA0/PuakNBscaeBFboQXzroJ+8aU8usn8ipBSI0sfXpjhV+CrOWrEn7Y2h8uZDlhKSxcuD9M5M88Lpdit4RUWrnvF0VpkW3eWs6L7FGrwlUekmry6ebr0E8Fyjjgv8hz0Wc/bC66+jadv4t+dZfNqD2uzxUr3+qroggECzIrkV1JGuLhnyPBepuGSpqDKUsjaV+rYJqE3ZbBTlQ1VtnfAI4W3q/UaBzdc22HXcVEHn2BmTRJ//fn/lV1TkZtkyiB1Q3fhQuC0iej59eEL+Fev+ZgefQjvlO0r3z5v2xeMrN7f33W18ekrRlgtsKiNzuUX9n3hBGiHEucO1bvOkZNbJSLpw/NlHfnCh8tOTpIDpEBKWZ1YadcWsLMvCZ6i5VjL5t/bV0vHvNCBRt6kakXAxbBInhcOWIXg0azvKyNRtcp46LEtUirLTFh7M3CB68Xb3lJto29oL18OHGuMKrbkP3NaRP3IQbXws8OOcUKyZJMqco28bEjL/O52QQVupYnNbd21KSE61Fd/R5hx8mu6uND/UYzF0qZoNXg+EoNy6QxKd9UYaR+OsxTd2PcCwo5oVOvdtIjpo5Rv++qBqJdvaZDdwpcYZ38qFyPEoJq1SHaQ+jIw8PmLx9BGf/1cj12vFjTsFXFUxs/I1fEQl+8iiPIDOmWc2mQOCrpue+ngrn+XQVRu1l2lFSe6Ixam14pos1/EvFA/86jDoiqRzF9ZY5Xps61s/EjwWsjB4XqG5KGR9S6saUjZgomujJd52JZ3+5hoKOq1/3deb0NQts7uioJPff1RKjbhanUK69r4l08SQ3UCBaCdEmPYb80QnC0+4qR0QBmkqAqTRU1cy/CBG1xm0U7tovNTK/B2hGDjMeu7qRCXa5o8RRHNyx4sa+GB52uea1/sSc+09oeeYKmeRrokdtJRbdpdZsfUY4gk6xI6YaB7NDfhMF9BnhlhR9lII2l5pnwQDq0kZ94R5XF+J43r/XfmZpptHOXD858ikWKKIunSqbaNLJwXuCPK9eRSE608w49HrI9GUOF/3vk/n6Phci6rpOagq8RrHZnjXCqxT3g8ooJJ95aururkGdHRh57l7n9jgxgzw6NiNC7Q6J+amxft21tX696/OdOwQPRzpNDiLxLt4csVY9IcSwVYv/x8XadXYlxll2u95imnrWBjljD2wcts7uBEA60uk/azwyVJXRHH/9Ss3CzXxni2im79C5Lc4pt0W3Iqx7FvWl0poTrO+tmsc4OYxlyFGXxtZO7CI3zNgXIZ497GYHLJs/ZyUeayStE6tHgqWmqRRM/rcn/O9IrXFzElydCloP0t9Ibx5MNTbG+BFvkWPoB1Qhjcm7QNneDYN7Wug8xQbZGeM1R2mcFjY8Zth9xRfodNiIfs3LljeA/yJWRvm0kVfV5KmCa9V5AwyFl7GEpR5NXBKI4HllYbO8u19obzZY4KxeaHkOroMmfGKaxpJ/tfxYJYHargt5vnqB02cXFxHGaRLuGkjc7dvAM2gW4VJyLGTogq0RhmpTxe6Y7Z7TtfDBjX7Fzqg3SAHFRYtDS75JnCWMX1nJTkbZeaI+qycCnyKEztKZMSNktz1/28c9Cs3FcqdwufhR6AVdw6ki1/9E1BhdUAM3m1igi5tgBSHV3uzNh5X1xlozxm1kVDGD9hy34v9OkZehwCgxQOLzUVBF5fQcTOBi1Fpx8bihgnfRfcn9ZCcvAxfq29SJdzjz4nqcJbgp0E965Ts/f2G2hm21aT8Wen89jQcfcaZ2VXsVdhKQ+BjWuTsUlXi4tf2+Gi73ZjIsXq7Ewq73t0xOD5OxULTKFLo6Ecr+gjqwMzdFWRu4dorVB9unk5u6qooZ88n6FnwQ5YmgdqsjoMvJypDZCieOEk5fVHHyMlDsVFhSZYdE4S9xp/m/SAV4znXm5qL8v+mps9F42yq2wNpIUY0i8XmRg/nGJ4XTF0ut3yF6NfbfvLPB4c7klNGJ+SKV9gkpXP+ctL+DiD9B2hzqOXhynVmmi116nbCtJfH8YRhnHMLmNTZhQceqriGc00GbuY6U8zwEdf//Gg8/1Pv/2qC3Slzo3vfZ1bOkxNneg4w7YKhwiZ1hp8yUhd97yeXJcb+MuUYIsoXnGuXGGy4LNQK+MjcRzkzbmsFgceiksnPNoKSYE2b4xavzTSmBPx7Ma7Ds+Aa2Aknx78MFDFYcJ/qua5Cp93cf9AtdacHmUX2+Ge4uTjR1qvv24ILN1u5WVb5xZ1qCvMXRYZuLH7qfUNFZtyFQWIudGqn8Ufal4oFoOR7z99h4pO6gJLrFjLms0tNMGH72dXKzL4c+ul7gC6AYz0HMx87tSvXeksxPvYtvx3IEKBWxZM2IJ5QTfLUxL3V4WKU6/9CIGyUe/Ww97tpC3O1lXLWEnUJ1sAb/J7N4rdT63KOGJtmpqNfJvGoKU6dfVOXf8VkLhUFHY6E7BKcQuhyaquLzjjIDrlsZ7JLCBKp9o5C2v6HbYRXE1rRGT+tcHaFA0GbaJBafZac29oOaphiLibk6xy5mOuP/73ZV4XPGUTs9ErYXLhC/CrJl/Ik5/CPH9uC6LxIsM7WA3HDAhrTEBPT7dvm5sONjufYqeKoh0hkN33DrNZsgRp61PlXGulqJqaKw0mryReDws4J9ffXbMSEXt8zwbU8RxrqM77W+JdA7UH1hId2VecABGil77qqG/c8jtiFx++YM+XfW8cQtX1vMddkeqsr+VOO5aW/QN6YOaVPkjSPvywSex0VI6Fn8xlt8ZSDR9NXQGgA5c/OPxbjrNUKbh9hGnJR8HP/msp5DQuTkIuX7yaFdq4qFPvRW547AxiLozkB4+PjDfdXCqvyr8fUysL+8cafn5Se2Fh57gW41ulVCHGHrw6cmg7xHrpCwLpQcz11tqv1pld2wNZb76Kzr4SCNvzgm3l7bDIruNPz6klQ8HzczZ0kW8jYwHYQsiGxJoVCOjgzefHe/Mj4xEfPL7tSEUO7D1q+1DcEz97rrUQlh4Wv92ShP7SDR7Jriy6eYA84c9NO30GBz6gH6DVj/nx4O8XiU21toFahbRioTFS5ECdOBnMOYZ6qlK2/exnn9+v/nhsTX4+DCoJBz+jZYlnMAxhyvmyKxvuKl46Z0XnOsUAcOI3bY9p4xIlIvTrn0+htl0K555EvtxrK2i3ROpUOfPoDX2lReWTdu0wpevba1fmm6uKN8ObLyfZ5StNUCZqemF3XObIxp7DHTtJFwheWfCazGVKKCmb2jZ8k+odQwETpQ1PZmpn18Hn/5hXMPKfTOZ71KGpCvh08uxJA12IxlKk0ioTAGN3Nhop6JYidyIR29FSpZ4msGcaavxtiP/0JcIfyTjw+uKZk63ZWPt4NzQFXP9RGL9IJ5sawy8An6R+d58Bj3zcgmtdiZxQ4Afq7YV5cxte+9hX0JQWnjnQ8rLStYFPheIjd+dU/1WGxWCnWLUZbbUZZg0HoCGw4RYTlsSsI4uDwY8f0Bgfi9a3bl+BsHRwqZlnrs49cwH0Bd6BvgBVQbvoHJETU6XMX/BF54eog73rWj/+r7WJUag8YSbDnmquVFr4yLqwo8Ktz0KvM+vxwFqJ8a7H89eJqRpNqQY3D+adIQgVTjS5BAEKiCj5LEiCuAVyZVbIpS77Svbsf6jnR7oT5VCrGbkKgP3tFPIscH8HzUD6Tri1/Q/TGxqFSw5H3+9jlzM1t55rjOa7RN+i4ULoG3FLoaPMCib+h7hB3BhVBPiXaF2HO2c9pq52M7d9w9Do7qqv/ycKx+BJH9qKyXxFo1v1dAY+T/uGx/P3cYwVFDZNDuSnjQtPeKs3RqP/foJ1WflMDodBrTCedrlc+haDjvZzVdzNil8NuhKr/hlMHWXxXHoZh9NtKUUNU399iMaX4OiGtJQhsV/5dCYvImKA7tWPKBKFl0J8XXEVgy3FZenTQnpecAg89ZjEE0A35ObK4x+5bLdKm5HZ4YD7yY9yJKvrRcksiXu5tgldKAYjsk0WNRGV1PmXGYC7z2O5NYWL+I6CE1bfSxp1T98yJedef1cl5b898QJV7iFZl61gxOvKT3CKGrENJyJmILyT5Ai/JMwuY5vK24dealtGbnqKnrdtdVHtd0FkUpPv6VBzuw0oEfD+GG6COKddqnA3NRSh+J6EVPPNkNvmut/8ZPYSjry04oM8a6vVIz8jNq3TD14CzhkXrEZoW10OWf2BqWS+SfuVTkofvLI43IDjwkmDJG+z7QWChWCXD7IqZmRZK6jkD8I93gxyUQoV4KQbSuumgeP1dy9k4FC7CFzVUBNDjBwth2qfADN/0v2t3tqHCS88kwkjdtzKn6TpR/ugQE1ksr0uBKH/k/zdneGHcw7jI+1DlOYPYPcJ4ItA4uMWwtAIckKFH6jf5HP1j22Z8RuW9pcHdRML4n005SXV/hY9rAeod35NwiChUH3ONBELB0TB405reTEbDcupywgAsl8HA1GIgIJFKBggBB0FQn3TJBwCgIpiQCFAhRgcHken4gQBuE4V89ikZhy8z+NquZiGAGA4RcghY9qnyTh0MRrK0SAcSoQ4tlNeZmOkT0hG3GVCDYQRBieUgmelIEdU4i9Ti/RirLDIukYbVARNTNVIYUA65NbgRYQQLie4yGfO7mhmodxpE4eOFBIpy3VqDhUNCDbpynNheZbtaR2PiqDwLH6tOJsAU+QYRc5SZHgFCSoIOIITiyQbBcEyVSWgQRQURIggAjaHQR5opiJ6Pp4jE3CZaOXAcKd5LBJM3uayqRRl1AoqjFIOgGJIggehXiGAmWldThbguGwaSeFThRT9rJAAIaBITVXw6Ujbmp9Dj6LjIQYRSAjpChQ8QgdMxyAAAnh6XC8NTPw/JZb804mwOwAACxb6N42Dzt743yO/bgKAAgXIqara65Ya2Z6mvke6S2u30SPbVTNkCz3qF2RZyjWgUt9b+gRYZYW5V9946Dj1p7mIVDr+/G0EsAVzOIEhSFjADAaQn1jzGbBNiw9evf10Utd74mGQrloUDxWya4d4NcMOZNb6oB+UCqcU/XPtRardBCNbttviDsXO9hJgQ+v0r1Rh7cOslX1rKMcd6Wj1frc/FuxKwYZuNPSezZ/AXr2rggDxrODKH6xs4ogDLw+4hQZ8YSCE1fezAjNM6ZqFLCJAyV3XH5xo5q6T/hHzdN+IH7sQAKoAwDCAQC4WY/KHWSb6IZlTgGvATIX837zI73pTFi9uZtwHTanFSgA3f9FBQjF2KVgzALWY1kGWM4kDagut32NBRjROOAQ4FYLt0KlQBM+cCuPx1qlwqmSdimBN2Zrg4Kn46szip0pgHO4p9eozpl+HNu0GCSg0UwpLL++xi6ivVJd7Cti0GJCgcxKKaAgttJnTXJ27V7dOA6N+ko4RCqnXydOqwWKlZbLTY4xXgWh+QgOH/uB0GTSENLzTNkm7gfY7aO8XbLChIbQRMK7BTs2sSmXrUO9XlTiNa7yflFCvpaNhtFjSwZ22OukQWr3a99gcGviwKC1kt6WBMgibKndPlNklRh6ORo80Wu06RccoDVHfkjLKcJWDjXWJrpXelcLT3GyP6EDHBfTyAVLpMO/KEIT1jAIBaT3Vh5Iwz8aIEr72gAoakdBKR3bojwnEaLfgzQTCAGRgiGeQcAE23qLCcvOhDOqTKFW/tk8N5FbBC1ODrzK4I5A2DLyDWbJJ98CK5PA0rLQIdWhBmmECpWXaF6j2kQOaA6ipdDBwDYbp3XQ/+rWCHHySCaj6Rmd7em2N/1PjdQUOAQ0DCwePgIiEjIIqCw0dAxMLWzYOLh4BEQkpGTkFJZUcudQ0tGx7o+kZGJnkK1CoiFmxEqXKVLCwsXNwcnHz8PLxCwiqEhIWERUTVy0hKaVGrbpAgcc8HhgEDkFAQAgSgoKgIRjk0Pn/x8csRWNi8uxYRBfRRwwRY8QUyT9YAeB9hzfCCU+Q9fsX6N/NAi48kGuPGQGq8/wnEwXBbIfFal/U2gdeAQKbETqM/b4HDGB76NPkXgKXk987UQbn8k4HtmRcel9Nj/aeB30xyOie/RDtJ3W9SxsFIaje0ezl/bjuoU7/k5KZAGwb) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Main;src:url(data:font/woff2;base64,d09GMgABAAAAAGLsAA4AAAAAybQAAGKQAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAhjwIWgmcDBEICoLGeIH6TQE2AiQDiFwLhDIABCAFiGYHjhkMgTIbXaAnxF175HI78Kb8Z553wo1x9jiQOhKMomZRVlmy//8/JekYww39AE2j6j8ky0WRjpFwiFyY86CAwykDjjUChwYd8q3z9AHJlLpPmSGzVKKJ2XoZM+GVtChwW0pH7YMyyekx8ooFtWZfsbo8QxDfEGQ4icXiQsDt6HHDedmvlS1hvd1v+yAZai/1/rqsL/8Q8CYJsv9QS6jxmu/WSU9GimNPFEdGXEbulZTI9mlKtZ2DhqHPqYY3Uc7PWsM5Pu4IjX2SOzw/t97/2/6i/18SSzaithH9WSQ5xqgc9ERoA6VEsUHCSE4sTu+MM+70Qk7PuDLqPL02L70qBt38PgnBQkIgQKCG1mn9mVVOXMcvNow6zXe+Hg89R+3PzB64dyVWwPvSE2/LAw4DTuS4OIJeFoUb7gzltJyRkwPJTgqCwpMQLSvwcAFBs/ubuf4GZCu0iSVj4oCztgNAO9L0Vf5d+4Rn5/2mltTdL2l9KDAkPPY4zMWUSBqlnb11Oe+el2F8x/YdGwILGCxSmjIMNJsDBN9vLX+SmQUS5vS9syVhq8QCkHUFdqr/p1f5V1XTHl8fL4gJgPXBfq+uDBYVkAJfmVS3zw7QgUPjhYR9G9IEpVvfFvUWZZ666svHyQ/eD9tgcX/CwzFvnjKiESah9ZspUzkp8ESkO1UO6JftCwR24PZ2GbtNmN/g9fFP/LsthGJIzVBMie3z5HA4ZhSFDW0A5ewSVatVIKcB9SuFMr9C2Yyzp/keZc44Vh303+918yLvpbjuERojS/MgJEJt4s4B9wu16VZsG58Ei2fQXfnenAD/ac2082YKyRyCKh2rkgd0snJ3NvRnLjnAzRwmpdyVkhLmNkdgi7qywkYVXGWFqTMVwlS6/p+qZTvkalOnvWrdrV2FXHR37tzZTefS5eAPQA7+gAEDUjcYUDII8s4SuLtPBKRnCtQGUSk4xaSlNlIXtU65u+emibFrXXRuW1/Tt/b7ls7u5ObTF7qKlxiz18pc6l5oRZg0ZaAbxUPIWhTKYZRk/tdqdSG5JfFMSKYt//U58zkX76jOmY9gMreIiPdg1sgQWuKxrFU1gcTojUXbeIAQAeu112//30/9dzGj3Xbycow1iIQScsHL6Nqf2nHst77SfVH3F7XrGYWBID0wGGUBHE/zJBIAP7hGANblQz+0BANTSXF6P/Dj1Hd/xJ9xZhWJ0EP2j5J1KJbTkZUBG28UAKCv3A0AGe5TQgTEGw1kdcQK+tX39EOcRgWWY4+9DjrsmDPS//uezz32J9RGbsblpbyWH+cPK11BhTVVMzVXcSlxSIbIaDKeTCzzl8llaplOdlfOlnPlmFwk95PHyLfK98tn5W/Kz8s/kN9WAAVBQVJQFHQFpvBRSBQyhVKhUoQqkhV6hUlhUdgVmQqnokpRq2hWLFUMKVYpNii2KvYpDireU1xW/Kh4oaQrlaoTqtdVb6reVf2o9qgXBj4L/Dvw35DUkKNfyObnATJQ5YM4Ku7iD7iu/h58Bb4HPyCM/619hIMyWEaVYTKRzE8m+4fRw4fk5+Tv4BpgkDtQBV/hf+7A42sUTYolikHFyroxxUu4gB/MfnGKUvGslWqIBfrTzvn2/wua+a9/dmb67JmTr760ad3KbjveJn3kw+95t+c+22t5TFrZinpbXE9dtVVn7vO11lht2KAmHBgDeeG3LZfTTjnphCMOm3XIAfvtM2mTURutt9oqPbq08ShTIk+udA4RwlGQx4uRHLHFnNTw+kzfXsoSlbDdbnEo+AOQ0hFNu/ggAK9Yf/Y/d8FGRaLhlncWfo8Nb16Z+uiNTcRh/923O6P+JEMDJbgVJga8Pwb25Xtq1z8DN9bYfYxL5FsPRJ5ODDHkxUJ2nPcE9whWMh4AlFXUihBMy7IignjxFRWg31PmL53Slh4RoxY032ppNVdE/LoCqRGxTT3xxWpAjQajMhve8ILuwV44vbyBs0t08JIn08p+cDXs2iAT2hjBXUowYEBaT6TVOtuhB390eLv8c+gmxsliQm03+MoZt/mvgMrlu1n36sXdPtGSO4vzO4+GAs3Us6utGs3lJzhRIj9mYYn8dz0JsWOEqRjJIr9FtlQ0KxtB5KRcEFwPBBfmtg+50/k4GR+nY0cW0vBYlee1s/pkhOEs9MQeAyVFraIKTEDsqR9DnV3A0JQG+s77cl4ehdbXFEnERe8pWsBVx207XCii0jWpdv3DD07k9OtDijIZbRHn7RA7l+YWxLyBJ9cB0VFibcf1KuqgydEAUIiJMds0FRCML5CIekvCvqLe7bQJIO22uTjG8vzZmPRJMfDiuLgVwWDOyWqiaz5piLU0iRxqwIchUkjsMbiQi4q+pyWoBYNe9Ldy0luKimed8fXvhK3rsvlFDiw7ITY4c7s9NiPKbhe8E29rnno4Cmrs8mVNs6KDjgM057u1jV2ZmgC13HXhxIq49GA9clscY3mRi0qXEfmpOmUq+tsXeP81FDwY212yoawqeni/Hd5/WeE63x3znt5HAYLfuNgyhFXphrkTI9fC93JOD+GigIqPWPquSnzX+W/dZNPpenlTqBwnI8iw7GDayDlrqTKEAYFaSfgOLQBcsDEhCY5+YUr7v7QApwq0+zVQmGJC25TMiIoiHkXLp4ErF0RVvSf+/oS1+BMl/4m1O6Z7JQoIomLo8pBEeUQqeYVU85jU8iqp5zXSyOskzhskyZtTJYT6odTK+69BUBO+3lJou3HQclKOfdx7eLI99vl5S3GKk/CxTVgPdgEUFPmGDClyKAoomlC0oGhD0YGiC0UPij40OwKaZGXj/MiooBVfO2zDCTdAHOVrdYIMj453j8/LFMAMkYwkrcud+sql6DwnM3MnKvbYbrYdxGm3qGlhEu6bh868b1Yub20AT1BPbuIUbLNrLyAMHMuKIiD/QZkZv5D1spECPz8vW0CDGXZFsOI/oIrbqK80FXe6UUdFo7R3FwWJdNSNJihuKdNv89/7tsYJYcfd4/aaDjsJLlxc0917IJDf4exi/7AuqlDx97U42s0jA5q8Ay9kv4baVJVaVFCkHj69P+k9uQx7WM+nbovz+arpvWyHELlQVjKNvCVvqhjv6cxHpH0wYy9UmXo2PDc5xHgvN1DdT4LKWVmmad11mnD6aOURWnidERMUsEXEGAhf9WQHdtDEeQvybiubdS96lR1uc/mABhtCXc2gpFlPnzz0SGR8CrBBiGD5SMwcMUmm0fPdDDUa8a64i8BUwq2u5sGmt89bzAAum+lWpNDSvXx8DMQXDjA+uRnobiG86gRSAwRSe/uQoXNzC2isLpPkjzL3Xbzk3HXbL/VWrPxxr8C92Fh2De5HTrXJr9cz73TrosaaE01OeUDmppNJV4m0N92Gw/mCBrWsmw5Po5A61O5rnc7/FbMMBn/gPgz1l42sO58rY94wsjMzYC8IobOBM4x5mTovlnAf5/qDm/zwAG7diQtSaKt7IedvXUAB0BviNiYu5mn3V18i8PVdQY1pLipRw5eRzM6De+ZdwQDAtMFVjgc2kBCGnB7Jsc/HCthEQphy+TPsESckzAVsUQFhKeiVCk987YHegAfYCnpnD7t8r/YYlhAETotyHHBJAZMlBIUzKibscM3b1zp4AEMwJiiAJdA2eABHuOeiEB8849WGyLf7fBR00OMeQzFOEiYF5CoCODFAJT1iBinlUcbLcgiO6BAeqSNAnQDpeZ6ULixdWbqx9BqCegOod0D6AZPRJ0dfHH1z9BOC+gWoP8Dx/5jwaz2r7aO2NuDG8XMQ77yZjmgMqWx3qwfqe6oEAQjsxmYg1UF7huADxR4fjnkC9DcApwQAEL7BDDz1FZg3hrAWcSCtKMZqcT0PAg+VJDYrTRq7GMCLeFG6XgrM4+iEYhQOFOjJABLvVyKsuFwa23oFT/A80NKSGkFEAMWNB0mUsgKPB1ETa1iVcraxYhZKTBSoF78oDZePhaD9q4vCvlWvP3euEDJxzP/2y7bdqOfLIsPClVH1+GyqXhz7kzbnw8AWdpYw2tig19hYjyk5CpzN8sYkKNe1eVmVDWczsU74rXbZvrYcbhiuwfGG3XDKgeiQ4QXV8Xat0GoehDe2pdeyE16e6R4Obyx2Nq5b1/KXBrUC1+nWL+rToWtfWZiCMprZNDwl+o7Z5BwLp+q4Ts555hMZ0F5Io/hkp8+saw8wjht1c/bamaV4TDJ7vL6ypNf4f+Sv9mQyPHv+YI+eYX9zkefZE784Xly9bJ8XDWNLNve5L8zdfVa67llhiM5m0JNBy2Iirg77B73BsddjdDBu54wKh3l5UAli+LmXndFw5A9pP4m9OpVepBNdi4gRWYSTiPGI0qqT+vXA5NtGSoQhnIiFobB5UfOZV/DEekZNHJTNfuVc1Wlb72lUHc0vXThzNVme7rIO8y3Vws5cCkZGL6Jb2FMBBtwnlFAkxj/+XPx4HqeAk8lTP06cw3aAPClo+u8Uwq+VGEaQCpI3/U4knoCYCK3FEN1whOfxpTM5J9xHYI+Di/Bx8n3Ur21FgJbXTd+2ybLMS1ymObOG8f+mAjP9pGCSKWCnhgnOZGi9KcKG5cWpsQfxlndxQgPg1XAiS8BJNBfvhuzRHTHBGs06cBzJANFrBA3qHA1dyLQpATq/yIJoJnG3GRTRqxW/OEAybMvPgCcgKkjdd5D129htiYywVehBhNB/4HxcEF5cRooGQKCOXdGGbC97tXm7622lZK6ZvvjPMOctJqP4KrzqANEdYVqJtJxH6jU6NBg2NwB65c7J252mX3aJfS0kYDGARSZsJOPFpkRySzikJlTXCu1HIp08CtQ5qs93sJfbqcGzzGyFFMJNgaggx+E0NJWn6FqUEUp2aiX4kYdCkb47ZAoSM0guhTNx5OSut9HqZW+zQj3QMxqMr+l+fByi4GFgFdmtdYWXHPc0lpIwhUzOkCfAgnfvAjSJVhF3kvBwBuiAsXiIHWAgw4VfDCwSJIMcFu55eicHkULTdtWXk7VyBfFZwbcbxHAO6WnmrII5UODqgmG5ba2X5Y1WDx8n9P79ygBpgov/xzGh40BBu3AZ4hm9WEiW/KA1WwD5pRvYNaFCHqRg1nf9DU2HBkToBzlNlDOhX/qcjgFM/yRSNYeE2h720tOqXWBNTdTEJzHhohAND8MEaZuAAUScqkL7DZHEJbQLHGndRF9Ip5gDM1bStQn45VDsrQVWdLLV9MMRdvHW/vK4V85G5XSSy+FnD7IbqfX0IaVTn7xGGlw2Cz3FHYekEsqnQGxkE0ZGClc1Fy6htI+HVYh33oGwqSHWQJpLqejC8tW4CCenldCI5NUwgkGEIMfXeQZ47FR9eb/peIxkR4OiCZBWTb3Krpwn2boxcJI2PUVysVMa2OOFiAbSh/4gLwBdYAm7MITDt2USeO/xhsrRJaE2aFDMJnACi7JF5NBbYhhSlkgRiBkyE6PuwTTpmi/2/TMrTKvvzJU1mBGhFeXYKWTzNcTgS9gDlDE5mvJCv527RDZu66gIu6PK2wpiUtMqgt1e7qlrTsg9IBcg/wLP/MJxYF8T4ceKf+1g+XgEa5QEs4l7q2prscoG5KEtapJGVHM7KcxA4CSiru2asFCgLv2SP4biy39XoBfEz3+OWy2S2fTFj376U8rMt5rwCUPlu39QNP6PhYdOh9qaGjXnTOL6r5Q9i1mqJuY87LX1Ec2rbOXRvEDBj87Ck5BSTcjQEONIWmcNBkCf2jdZ5T1B+DO2xQTAC85LFAJqdEZjkKaOMDXnPvZCitTNs0x/PN7zFihqolHniAAtbdxDqm0B8+rYC3IciUhQEvJjLrgoMP+HAE6AVnCWwP3g6/XXLpIb/cozXNQHB9ibU8yV5xk97LrVYLYoPsrgl9DZZo4CYMWVREYBaT99U3l6FgszvC5ePsViAYAmC47AZt32NSQhvyATbK5Um/ZsoEJMkJQfiEEj4Yn7g2gnRksGqroqJ9NHr0/7j6dLoaHpcGp3JG7WNYN4PW01J/Dkvj3q70qHwyDjUNAgZ6lrxCiAb4pLsmNUMHu3OSnjtvzZU72BBk/cCBOQwtXCFX62GeyVEbWmcjw4b8O2nK7ENHCdkxH2pdSRUbrSMjLw7qhxWc+Qh3r2q/ngHxsGFkFlshpYim/zYG6k/KillSaE18f9R3CK75qi8fkN+L5upW6AvtqaUF7KR1fMVfgN8pLgzC5Huk088NtrPka30XeCAs+MgFH3jGFzlWPkeJK0fOOcxfbJUU+pA9zJTUF8IwnG6G84X/8ZSWFfVVwZJMP6lzRjX1nS0O4RTdhfzjeOPWiAmOK5MWlLsZQyYmJzKh5hIJGrKFuUjlgy0hpxXI64UoqKWEgvxrnS17uhqhHvRxqvkAz42NeRjLJlfjcbkU7jS+QrKaQw62EmLir3yNawsLVXKwFnpXVTPLw28bUkc9xM/cZpX3kCyU9pCXsYvAmdTbGhFCfFLP+BDm5MhsSKDx+3Gyn583mQZHBWjLKaAWJrKHTA6QiVn95K7qlV6TIXKSpc8ZSiaq20XtGsLgZ5C8QKaJK9DUyFmUNPSbccjcjgaGGd4pCYyZz+dBedY3pwGDggDabVC71xL8OKQ158oB1UtgRov1gYGDoYl3ffK+GQW1vAoYnFslUi94sc5yNVL4OYus1dY2y264ZCr8HT+d8wvmMPng0UI89STzDd+CcREGpEciSvidzKnxmDvaf2F/wTk1kYkM45oj7iqeJNhd4mVQKBN8bjnwYsSk6Ve+FvKcW861sB5ntjWpVbhbxsMdOx6AApQAFTqdwfVf20/xswIaYfJ/E6qqF9aDw79wkYPGVP1NOYaq5xloKsHzcAemwF/gomsQPzMzOUjSEF0f9i0HhMh8bjRS/jWKeRVn16xXWks6A3DHz48OGJoHljEjP3OpQyIDo7RMuq0y+ZgekLsLdAjk3E9ugt/pTusYdpWi7pxbxsIzUFHLB1nf9wtegL9cx9VkYBv7aMtMIEk13sW4UhpB/ztF4UYUY6OcuhyKKNT7cqhaxXzC8ZAQnpPE6Uh7V7tDTV66BL+zwSLOaFI0cKUXGmB1EX3uidS0dRv/feMQkKFjjj5h4dUrtQAMuRgrwV6s5oJmeWXNiwm2xOkY76gyJQBgu0xC3hC5w5T5FR/FlWJ6aFb+dRoEU0W0V+jWNvP0nPI+w2axub9oExpIlgmQuCSYWwb0OAzhukdgoItxgQFLfKbxhrUv2DTOvfQAyD1WyyiIII17FLBWTDizGiu61YbafYPU1IJI4RDyeQzr4SziRKMqzhGv8BoBDe3c6jIsOa/w1Ffw8FNZdWea18JBexZn/zwC8hkvYbzP8JYOFFrcUWqzm+qNujT9IVydsY/1hOoRB9KSGwoFsP3MLxaWW4wq4rAd9XOLrVZxSa25t8ShWqlL/hM0zZorMiuYL8An8X/fcC8xh/AHnfpIAHUoRKa83q3cZuKf5SA6mT9zEFPRZv7V1GWncHUfrvMc9q19AhWyAK2lM3kd6CJvZreNcSUESwB7ebMjwD5CsQulgRSDPvTSPBYWcfu+0l7lw9Y8HBg+D+TSRgKXPoW4zUXtFuNoYSw87ZXDp5IwYNoGnRtyzlUu9T3240rRfTxgtJRdMzPYXBc5ShDEvUPEeUIghJXtXLZgLryU5AsagSu5DL8fI3/NwOtSvlTljzaXYbCy57tf6M3ASDKLx5wJ9wV2vRrqXfeJJEUo0/w27XWLT3Gt6bL7v1lZPungaPD7GrggZvHR18D0csCn6a17R73pMaueG7NrGjq+q3PitJAlPGuEIua06990WXS38cfy8QNa+pmeMvBYP1SoNH8lou6ZlDJkCXHguANo48WLRdhoo8Pta759QhYt/RA2EQfC1QHjogByLo2/EdMlo6kdZkLX1TbZ0SvUPAhLT1p/LZF2jJWRQ1tgBp1VqBXUBm9FACFs6m3OY4m8jpXa8w8HcTw+IQuK5kkAxm7vMQHIvKs9nPd33zeActkCOddJqijJXWOnYeJYA1oCOwMic0uhmU/vJVjXgHwqenO9ax4QRuT0v4F1nZ7Y2z8MAUNCrrY/c4L2MZaknSQ3JYdaf5csdnuOJNiWGZ9hYTasAY1l7mHS5wOsjzN/rIlbLNYr+1ggUNndYdMcRmkWoDgQMxGuCbqtzw069ki1axpz9OUcbCk+e7ONL8YvOinl/40MLtj4PSznKBr2SgbdwOvj5lCt9oRNkXSICiDqezXx4WW8GuY8D1RkouVVmJRpCySGNhajvFhcQmKpkYxVZeFMPRfhzFhQY7hBNQKwFEZ6FuQgfqIoQ1eq3Le/uImlXhAmKX8UxXr7KwoIl642b6MqTluGZbhdzTqEEdRnhm5odcxfwC3hPM49PrgjLpKuqciMOkdGYspVHGjUKMDRwVrfK74N1RYRPFOMPQa96GTXiyFATB29CY4cpXfmcNhRQtVfTvqSLKy45sQG71P4kf7mOraU/ZygCFpl1oSIZUtlpNFk6kbwfKAeSEtxtEjW5MpNreYLbGp3UFOXU1BZ3TieJscsREpDzIr7Et9qs7DkBgJLXtC9ERKFwNUuQUi4EV3kY+gQUoiKoXtvlT2B3r2EcGkiWylvaH6/wOfsRtpLubgu2NX7x5w37S9IEPHANq32slur+/2X7ve49DGj5gA5REFxFrQ4FkCa+rvghD5c9D0Eb23HGjir9hWNDwQm8Tp+Y7p97sECfb692NgLDBu+fuwcu9p1fX0Asxb/TjqZvJ1hMbkLcOFG42y1jDOG7lVzxXSm5MEbSIrFoy3lOlSM3P7k0bvxQo7h97g6Dux5arXJ3l23/iGMyBeI0RUSry5Q0u1u9PchFrRoXdBEdFX1pIWSNOvEJoAMsP76qRI4I/ZjIZ8HSqUI8eHWPvUHU5Ln67i2mWhBm3I4/HIj+LUyD6WffPZcLxAKIs9XO9IwYMEBc4GWW/pYzA6n24+D0XGxZcVqALLvaKnpdYmhQQ3BYgfALl60gbyI8RCx0xwE021IY8BXXgM1REFMTgjTQwUIVCmn7UJgOYXuLboMv3UUDEZln8Da0C0rCEBvC1E2eBSJldPeABZWH2TV7lwjq/uiSTes1ngtBKZgeCavATNIbFDLWVl3IVRZsL3+gcOFj/6IcoVIUkdCzT+Bf/9lTGDsJZxJiyjrRgGFKqCqS6fKJzCJYPQEkhcpphqdvLkUBu0dfhNuGVrG5ygjmKQ+WltUIKExT4WSJCde3TwJmmCG+iu73Yml+je662ni3nUS0Wv0muSpbvd9VR042wvetqDuHrnprmqkUYTE5WVSuSs9vY4WEpoLjLoAEy8wf4ow+pjkAPyvWWEZaXYgDZHdEC8DcX9C1xdNe0f0/lSqnC1DeA/ElZGCQvC+EwgPDZ4F9aZCRub6LJI6xff5oGY59XsZH5t+z3r1c7Z2k1O8+m7et7ZnP2umzioGkZcY8A9rdFuA3yIbasBez8obeWDpCAEn3dxynZnNMeo2qfEznj/oEHS1Ze+/5wImcyw3yFYa1n1uQZqH5E6d0ZpLqpTgvgIrEBQCoZV0nQbraAQxraEIItUnqUUzOJ6VRbRFkCNsHl2lMB8VMDWPJKFjgGlsBDI+Qo3UZbA7vdeoUxI6BJcB8U4FU6pWf5dIt4pLGpEQUm26LVJHudHt4pSI07jkCrCA3HelGrUQNdaTmq1ITri1lLwJphOL3mjJjwUwDfVDQLOzPVlS1b2cnIWThLFYQK6V4ltUlwdDtMejGM/SEyeCD7K/vUehHRqzyak7AGSE3g8CSKy7dYKCOLqGIIHMn4sYjSRkpseKS1ZF3plomAQFmX9FBHS/tea7SitrCjmzPGVSSO8CwMB/jqQ/LKeFs/3MeGNFmKhhhvPzPm1bggiNASP+Xgpc+ZUebeddzwUOYZjGiJUHMxun3NuEEV4xOMc1TR5K+wfryBs+sSIVW2RH5fQG4l5kPSSXfCV3NQPEj0OltgXQf8M3SJ2JmBYmUtZwES8LMpSNLZwhNOvHTSyS/tEmTvQvrIAQjTb4mqaAJQjPOpP/jTS8Yp06z5RVGPH8S6bKgOnkLaCWTK6oE6+MY6zFgZXmNtmRDOlqv3IGa23WxRCogLaWxDm7zQp7ukk2WvaKaOAenWT+qYHbkl3IUlhqXW1I7yA92NoOnUj4YFwa0CwpqstJYkKLWIiSPwLib2IJRHSNrYTzGlCsLWCiAKhZNypCibQhleRe/G/cHYdHaI2eC4nk2spNgC/HQsGqfa+c9Y+ieCrrllmwFmkQnlAmOBPaoYUt1gGyi5ObB4nRIbolfATyKbyFJaK1dJ4/7A+suvMn4pNsiXxqGa8FiLOdUDNlBE6lUhNX+h7RENSKuxjFmd6Sik574Sd8c3TTo6gYIU2Tf6TCkO0ug6uz+Rrsh+OVYoh1wKyyehRYssbdRRqovjTKgVrSFF1V/OeHxIgZvzOqDDat63HZraVSMCJ37wVN7OvOb2X4bE4uBYMQ5sjT3U3boT04/b9a56xpCU8V8EMgBOO0QC4gTfh9DEG6UwrfMKCuFnt1IZnab71a8rvEsvi292ADqelWDczqXOzGMWoWOETiKIoWE+jP+DGYKCgeGSuOP0We8ATrz8kMG+ooV5ZKPQcF0jdbvfzZWf9wvF96ButE3+Ipp/EVka3aA6o1DJhqgh8zdfjb8GzDCaHs+eAcbGJkYB1oX8zeFGHpnYXXDbeK5765vtZvNDiOnfaOrpvI7dgrInwh+h0di5vrrFU+wyOZd1w8LFMJgr10zW+u9Yt3I3sBHu42xwYd9MgMTWctK+M/aCnGtsA1zJjLDm6vxDG7EporRe2iIHEqB4iocL1HrHt9yVWX13Lw1A/BMMTjTvhFrOSkOzt+SFiWfKZOhpl8XqN3bnlS6EnT/rjRnn8YVfSgYH7a35lPS+JskzvZ3lD/SQ7q3ocRSIglflytWhMwwZi9qvuvGcLgnIf9pWfZmLoriAZLTFzVw63SC0v+ACF+1sL5/tGefFZ+12XI+LbxAyN+d0cZsT624Mq15r+eM6MNqAlauFDBP/a7WdriRagRmVA0Hf2pwn+EqP8x3h9SeFmbMb5QuzSps6fa4IC8IXmqaTE+c1kHCyVr1sfqCmBBdmtbAeDm8/ddVtD5kbwurL4Ucd3xEQBkJZSyCCa7dcIVxsdpzrpHWKmDxxYar26+Irp8waNGutJxq+AjoqudVddONWpzlg1ecJvl3hDErt3EHp+jwVOrHg/AahO7NxbDPtD3dVf+pGlfiAT8NzF6mTLjuAv40T27Jsw4iyQ/FEXkha9flIsSxcCQ/VMhx5Na9GAiHNCZZyBywuFzgjOhBoWTyD9lEcJx8ZklSamD699HzJiYzg7d6Q0IG0Yd0mQs+3efnWxj827NJjE/zRQjSi4nxGZeQD/Ku8h8ejgUcMVZhgU0GUTcAJKYpZ/kxG8vIIkqtzDA1v0DExI7PcO0RQT106CWS0oiLPE8DVzTAQWHKWRuFIXmHkrIqMCUBlQW+TBiYu0zIUr2qTOuQKsJdMcNldFkdi436T8v5F8UcRvymeSOGIKoV7kfkx+HjJ4D2Wi/0iNX3r4EsKX9ZemNCXc8FHuj8dXsaSExUPKnzy+umZFLmmvyRlL+eSfdT1qXyr+0XYYS8u7O9Arc8k3KRtOalM8YoKD/z/EHVKcRLN95xTVNIxqyqRT6u2F/QTacx0GJyC1aqoEZEQqewiIOMKat1GucQ294NyIrS30lm9QnGwWQOF2HmC0Fgwu7omn2saSytpD0hDe637eSZibjqdwf5LyBPkjYkWpbe0o45XGD7OcfcWIPuhclawO5Y+4ZMhebH5KsW/qdfKgDEQMWJ/+hHpYyBH3FK4yJ3pLLxGwNApjGnCHX21/fsONIb8PLvRZHyHNPEAoTFkWdMp+i016/EqAWn9BoXucpJBiGACoUtpUCh9yqwGyQkliCWhaxfxAmTvS/5nAwBfYkqbANmmNoAFkdZgwGalf10q7pj4JxJc4yoP9YFSao7PeS1d7DP5DLWC8EbC/SgNvivO8d7ojcC7n5A1qfAQ4I2W9tfexj7SHjzAHgTHdLqWra27K19rInCJobCc+Rjji/6g5YQZ1oMRkjElrlIVAkDY9cCRBmF5Iajo+pSsjY2v9kcIzKlMty1a0evZ7fx4diI7ooFlyh9IDzN2QjeIso90Eo/KyxtlaJzEHYmzLvI3pBiEH0Ha/JA/nIElY67304cP5aXTxJI965DhDcQIrrak71UISr9Cxi1CWzmTNIs1YMW0O3syYzaZ5rN4IsFFxwhkG4Z2uk+ZE8fLqzEG7K+fqJ3T2frbYWShGGt/6ZfhbfMv2pV/c0IIikz8nb+i/S2jvfFLf6PsyTisHFTH9bDwmbnY+pW/MX44aFtRUvwbknqFtIuT3NZq3//NP6V/ywFxYr3wLTkRz12Z9sT/0u3cl4MvtMECRf1CtjTCDL10FaTz0y1HS8EJT3gL2qXTP64X5T+o2gUW4UdAIzb+KiYsT1WpNf0SvixdlRomA8Z19UdOIxMADkvMThzL5tLSIGrHXu9dsc74MDeUWYa9M5t9zQ0xG9ntteuq9BJXQLJG2qT1VaQbmbmrespkFS8fXfFgZnzp358vZgeGeY979/cyPJj98kgYQHjzoVgOTng+Ht6Hf8KXBx5fnP1FmAoUa3A2pprlQG5xrj5TYx4NMcDfmtG9pPkNznQthwrqhzPZEp+nb/CsZvyjhnhC5RqTGv7nN7OnnKEVlcJnkiEV8LfWVZuMMX/EnMKwr2TRx5q8lKkG5XvFfQXbCqc7dlqgHlTseGpE/rOk7ynVv35BPrwcMsqhmNixncBOU1xsMXBwcJ/IUgQeRe6FfCJIq9m4ga0kis5XwueaXpBblsB9wSXBp2eV/baHlJvL0cZxezipVX05EnxSIamh7whtorngxKPrBv+ZHncLJ9fkHamUlzinrfDsziRvcY7vgGXXC3nnYhscnapXBcQxK9Tsky4LycJOnVPwgftfQeiP+D9NrVW86mdGb4LZYONNU+I4S9XPzWvmlxhI/RwitgP15G4fuBo00J1v/dz6laq73f4I8ygfFzTH0cvxLH+JIUXY3P5LKvBYTlOPg48r97HgYNJdy4xr40CtVviArnfV76MPkYLoulSjYytM1+MVgcS3c6RcR+VDHOQ1lCqvzc76p/jb14fTxvbc6ldzQvtGpM/71LzW2C81K/lFxbxvjGPFKcVgAn/3eNjwSyKJRqz5Gelas+p7THJ+pXLFrxemNLKAmZj6prx0ZAlH81ZIMGjCwLZqvpSKA8VSIgf8sXQAdRBRRK0fEZ/O7YP6hL8lMNvqIjzcV9cVljlm9FVrZTIvOUrqxR457t1Wu+Iae2kMzmgiuiE2TldSenrhbHfaPTMXEpU8HYVOOs6drssqy2mvVj0K4jYDkWxRkAxOub083nRqSSaynqGjFrK2ifqy4eWVE0G/l5MH8FjYhqbZP2tB0UDjIO1PgyqK5km8Rf4u3PJmC3GnPp65O6KCxtoCb9oLN7UuxVsssLvGz496g6oCMF7/Mt+OC/cowml4pZn3sUNKiZg4khV/Abee5+XCoUShpWECVfaBDNoeIrYj9LIkL8Cv8mRyJM4w8iwyxczfDSj09nl0cIJ7CHSNV4+Gs5ssVH11U/tdBzqqwrIER0k+g1cAnvqoidBl60e1hphfGPT5Mwb72kFuFKC34h3goUoN4Fi06Q+UpAtW0h/Y6Ddw9pXozhSxsCNkBWJ7NY7xrLLxPXpmS4NQlQJJWw9FVlgmJCvDVwrjGIR7lIZurQl2snQwa1NjhSRt+TViBozLRPQ+eWURfMOAySGcjuvNL6IcfsQ2GYYQDOQG+cqYXsQOO4+EIGUnF0VBTZwsOAggEmbg1Gz1HuJaannf9KIbvQQq8lUc/1CTbmtfwMn4NXymHjYtLm+5sV9e4B+ADf2J0j170fGn+B6t7pgOFHbK6HLFtSUwhR3TjsEGLSaOxWLbAKZiq+U/BKh+TPufokqyX1fpYrLipUOi8vSkA7TZD8jIwX/5eaIoCBoSCQPua1pnO+XBeQaXQcshwGWloJHH9X6UDHgOvpUL9/eBJpTTwgtZG7JG1oSu5TA5LF3mH3BlVUhtQE/gYJSXy0SZjRzLynUCHlZcD+qTIX4a3/Id4oBOyEOL14A1ycGrVsuggs/gMig5pIF5RbiWXjG60g7oG1zUKMMkaZ1E/FotmQvZ1pjNoZcoUEc7oQTT2LnJZlvNihQRIRqPIg0L6mVYpQaTF8m4tRfEovH8AaA1//oYuZrNqPOS04mssfZYp6cMgqcNLoteWeOUW7d2lWMO3oKW72Tl5bv+dS4euQuTC7bxaAOV/jpXunQGgkhwW+BYUchhqXk+r8aTN28JbnYnV7K0wiX2vK84TMAk8nn65+ZuhkRC4a2ZdIYI4u/W1t0li6V9B7L00QnzVsu6mPxN2kF9B7W/9JjvZ6oKC339Hhbk3IM5yCiFHWyKUGXz8m26tFBnY8vslq1pbf9bcerPTfnHEbzi/3UMJjyPvymIklAGSqgEnEgUtxSl4tUVkc2T+TEep9fyny8zZOyoITr+xmPl777MofJXhD6Z2/8rcn7mSAqxhZmzDxRYkhtimlDrTZojUYgISuyJ3yKkLQ9Zm/UR/FxSOJE0n85Is5szuPhOGc7myE8WY2e/Pp658X78/v0lJ+UcdlnK4rucQWt0FGL/DoY1CKHxzCwq2ir+oHf45Ua2D4v02eeh9RMQt2vz0pfPYT6ITMOnoXxeA9SSq22nCG7wJY1LQqGloc3+/C/51GptSy7Ea+Cjf/H4T7EuaXM/RaY9nTx+B29mb1q+WZkB+/bO8IaCGDgMggYeX2B0wN9fiMOt/lEd0v+zMSnHx7DhDAkZechapX04lSjIj4QIOiFf/SXC2NeqbUUcbumCuxpq9KJ3xX6MMwNsWfUTZO6TIYyppFMObrv0tf8AypQz/USEfQh1PUvdetSH93Fa3AaFJb5r6nj4XnGDA10YXuKKOanvaFyVGvhBNMUEenVbllTQAmJ3/gV5KcAhXsgNpHzpStMx8aGff4Zb7Vycuyo97gBLkIjJ5cM4cuc/1axSU7/cR/V1vidCb3We/uYlo2lkVh9+PC2xWb/hwuA2OFYJ4UTM9zOIeETsA6NV1W0dP//O2yFJsqclY87HRIXxVyT7d3N7bra7M+lPMdo6pP06m5dN0wjyUdtwZl2bXl8XF/B5xucqTXcn8fT9IENQd0K8+hqZE5jjxtCpL8kv9sBJAY6YsN9DA08rYwLOyBWzCAYPT6JMvLVMjB++d/iezKUhMhGx1qjCbt0qwovKivBP7vHHT9tLFgDK4DfyrfJYmczUkhD98NwhXpCKJlh2NlfunGoYYgnT0NkSkKvjGFVWH3d2pu9vudV8ztqMsm6Owt+3GkpI4AAX5zle29da4Zlo7TDV6rlrhLJZZFP6A0GoOYT9eWmwSKFMOLxO2ZtQ9n9mrK+ZrXX6py5OKo5zb50Ye3WYDv1E8kpye4Rym8x/UhYKbpgDxEeu/9a/LAWkd3TG6f+u7QF2E2WeyBqUbAptl3fsfGaR3DMK8mo5BhQnwnICLJUSqCumCBQuCZqAVohEKG/PyXXhNkpvODAT+T8hlSHeshh96J4c6sOvlWL9xddW7P8kpSQWs7Mcy9wVBT3JsZuVstUtDnXnlC3GHU5rXxOfkY+1ylO3AoHvWJdVzVyPO0IjVA4wXQIjeZ8mJ2ak0I4lzsrDhBG7hoiLMMjq2LE20DBbmzDcU5XsyQxt3SBU7/rWeX+D+7dsW4kpVVokk3TLQgCrLTJl7wvUuZ5dLQ/NymlYeD6w/K+y/RSH2QwrdZkcdVD4udR2un12fm7/QsUafKY0R6XqOl6/StvykAwRIMhcr8hjvG6E4VpGAEV7LZ4BmBTzNst2xQiDORJl3m7YArm+1AMxPGKqtQFrxco12KB5BMnPaMT4cYb6+hun4Y8/b+DzCmXDeiJUF1OWu5kcJieJu+lCmWt6UcK4Vb9VWc9gclj9K2OiRpiMEYVlu2kbsvfn5DoZl/9uY6xjDf/HcL0hsPXxnmGYRPcxajGe1ugrZ1q4zhTToggRNnfhG7nCLEAA54tgqezCA+PvQJX6B8o7r+IzG1/eN9m1s9G/7Me49cd3T60aDF8VEKDdX8w7+7Lplf1XZ9jj/j5iKXvNqekxqjDmndWsI7tZK8kBhYndsxp22jGgA1BeyWu68s4appvsl/t6snOZYCCPHWbzY3FtaP8QXLZK2Y/rDmWYqt+ZkiaMUoLmempvUPHoaBj6o9kUkGMQ+i8y/dEMwdHROB1dvx1l4uFh0NY3C+bz8wEcFo7nflcLopZrl8E1/0IU9UL8y8f9bmJH+udCAZfEqxiWguvPf7pr8n8ppHGKo/kf/IV7dbtbIkeiq8pLf3a5wEAF5nOrM5/fABqZ1dVgoJhHMwyim269NJttUF7qM8PpuBbVAgNbvsaQA7QR2hpqXlJFT338OoszRq+I0Vuc6/1aS9mRts+0dI88RO5hFZhMRUVrD92ZQccwoQhRL8SffAs0P/rH3j2uHbQV3bjkSGhl7XkGnuBeXSRoTbfqsovAxTRORjkxD1MMXAoromT3nT8pxvAgHBM5zhArZUSbpxzlf83JmIJxAhQi5BCW494wL76AiPr+DBFxIuRPzU52mign8qzPkUO6YzuMjNY6ZUTY7/ZJXbot4vkfVfo//KenAnl4EM4LnJr2/2MVjqwK7+nbXedoyxFsxYQNUbkpnh61wyeTcI2Y+9uuEa3r2bmUI3jJqerwQYsN9aub+UDoXuzDQd8XwzG6UZw9d5gB/Pr1BDrurHULjXLStMHvKTKq27ZDwcC9Oi/OUOzYpmPJ75TfMVvEZjBFSYGCkPUKvY6Jt+vacaZuz2640iJH2lQPp1/jmSNTgP7ir+tx9kuHGD8xWf16Ag3P+e0CHQ/pfmvoX4eaIvcx+sgtznWJdu+G6XUWnI6upP6Ejl6DyXhTh6epZCtk26czRxqGjl2LxGno0slNTDxACUHnEUjjGp/z4sign0RETLkmNMYdR40sfJVOE+PMpwQZHtA8pEftxBs/3KBOEGnGzkOFHy4Euo7kdU7lUKeLso4CHAIz9CEQAh4gFpt7+IKeP3PoMJPj1bO4YrhDgS54Haw6eakrctRqMPU4xtPKCMpnvg/ppFKyX6zPCa7UHl3J2ruHM0wNUFJZvRlZdZ7ZwD0r2TPb2YOYOMfHGNb+dJzurqpz51qITkiG2FTOy91qqq8PlcBhMzXWQBnVbduuo+YRceeUFbq9xlfZvNs35juNrQW7VQMqvvTiEQtaM0G6OM0Nau8/uJwcMxGZQ9FqUPoCLhrg3h5kUZivoFZCGAEGX/Aj1JvukbJ4R3MbVYBw2XD52yObvLqZkuInKocP5dATx6/p2oP/jssMQ56gXkUNhDAXHkhR4JIj4MHWRNuUNone1/7d1b/9gk+VlMwEhdPWKLZuCeUH7917hAGmKS0kBiNhhcvDgItrVPyYnL3ciWl463kMa0xYjIUpsNVp+DM/7qrW6/Gcnz6/ZU4EXrypQJirTp43ZwKzi1kg0DhXUQp1cSej02xi7W6FzMAtbnLI9yZWWyxESiup+v+azQc5WlRrFB8XGeV8ntbDpKZ58ly6oxFS73PDdrnsRV45zeDPC/ohpHk5r1/RYQ2rgZ3KFkRFC1BeG4dPc4VLSO/JRIIO8n5B9iK8nyEER6i1Bo0fsTUscCvOaX/n7XYOvjUwrJXopzFQaxEcSTgS95364BqZ4hlvb3/b2Vhdinz8fhKT9yl4QKXo0+PTj4o2UMCN614cyT5iXOg5TsE9K6Kb//Q3dBqicjr9DSfwXxs8OF2xagfKxAvLH1R88sZZbYe+/H4hjiToXlF0Uzjo0S9gMl7SEeljTdopyYIdnQaBcKgXdYYtWqhYqAhb5ERt2ASVJdCucMCSrKSdPtb2yFKcjg6ODzLx8HBo1+6U6ZTpvPeaYwPt3A3V4oiterDzKxpu+Kl6uHpVuCEuu2Z0QU2ldXtQC46E3MScRTNQLUac/tXqzp+p+ICrNacV+uZmSuG+jv1eKLkWj0pjqc5cmNGQ0QiFR+BImWLL1iwwcNs7veSN5rmWYt20zkr6q3vCLSkFQyc4IJUap6EdNXMUvLl5b+/rtxZQswaQGkmTNJp2QsgBUF8CJIPZDCbHmU4TLP+jqQaSSikwRwBRUFQ7I+JivYlEyJQJJpeKGGMkCoz0/fV0X0pDS0MKkvohU8bEWv0vfX1wG4WBMnlDkAg7gIiOpuxr/8FAliXsWcrZtRjmQIRTjx6dIkAcJCUKj0JeyBSL4xSHckvT6s2JStp0lqyfhPISfo1V6EiPBVKrXGryS6iOKB1407okE67seajhjQhEM/Kli6SH8TW3sHZoAaEMYS2jSI8UE4oJEOJvCSqoXdTbYIyr+nZTToEpMb3gC2l4OE+vZeK78uuykmjdv+SvMIR9WF9sd1LU640RLneGyiVR+1GT/PTpHTy+vJoKJygrE+3FlyuS+urvG83dx2vkJr1bJj5PeoGUH4GsSCFarbnxl0qhn0rhLymQQDD1q30irrsSF1SzLdV56bR+37zXKio2+iOLZwNb6KcehkEfqvlJvN+JWW83ULonvy8OaXXRCxuLuZParVuoWSlpZpKTrtr3dtoEV8ohQb/ixxzelQ2sYinWVW6gLSv1fbr3LyXzY0r03NIFN6i4RW/CTUk08V8L8EwS3Ips6itUSLsSO6W+1wjBWisxIbYd9+rzcaSGFRoZ0d7YXZeQOFXjdfxx8kYcdlsXzD8nwMY1hi6ODNav5KLro73qDF8JJWWis8N4p5nBKwvIKagErbnUEmtmWIUpLsIUVx7GItZE1a0eBjICNJUwuWYYUdNjpcYgy6S/TApXfCETRsr423GEll4xqeQLm9YxA49Ar5EhZBrsWdSWyzkmstoiD/iAkRELTp1rbXEhhxUjSOQC3yhbyi4RWLBAqnKjZaEIi0VcBMRW9d6EgnigiLBaRlbgOOV4/YK5ik0cnySEDosZOKV+OqPeJCP/X2GnmH5LSutKzI2KkDRI/Yel2D+EMXoCK537we0GU7RAgCfNzXC6PjdRilO/aiKPsvR7IATPf/XM7jjrwo12nHK8pAml4uwv4qzxtkp9iwWnzDU33aCg4wtJCO5FDkVc4J3bcsKBrx8lQ0geF3ctrH+6B4G3xVqbrI7Ize7T3XQGXNkvgSYmDHezUGp5NUYqa925Q3mXFVS5kxu24ooqr6Qlgxevqx72JPYV4QnmZpqz2z1tDL7gfJ5mOnLtWPexa0dM+i0U6etUHYRguNOodNd0Lbs636le88Dw/usu+9tvF9Fyx6zSerX7Rf7QcqUp3eShbAseORVR/d/fjXVtnZVUtvSFlf7FiLMn3or2ol56LEfjfCXtq41qPKEqwxJWulZDGQ/Arf7chQqYMq7HqMvIpQUFOG2ud4EXU5dwmEwKICitE89+8fVDHoXX4OrPLxYa6eesijeJ9JCcZUujrokCqTS5UVosfcjCzorQhtfG+Cj1NVxDjVBcJOZNnMlIf6WUVrBkclsho47H1+oqHpxBpr0s/O21+NqNYCIIwu77BXYTA2S4QiVwBxTPiZcK3Ybx1WlRRPnvj1UFSODrZYRyAnLsJAKax28HsAOKd0NJbALJh7NgK01V7kcop0/fbWhgm0kY5Bav2ZecGa6gd33AUL9wQSQTR0bPzuXY2hHcKoxLXJGsaw/oNERoVwTo2pMTV8QJrTjluKd1joprort07QSo7hsIEolwZOHZuTykP3E5Q8L1y6p/Xw+iuAqOlmAgkYm8C8VcetSAr7lBt3wpKL4QNLNYqmXAyccrUxXWhHrXmU6WKQv5Z/mpOHmwsBql4GIxTCh7Brl9DJGLEnDk67ky9yAZrzz2TnCCwWkpyMUpx6saUCruFyKG4KQgVSh8o7TIqiI52aZIdbpr+4On+KHsahCzdFqG4khuLf+QoDpqaTIxvq/jP09K1yzMUCSEG77p+CiqQ4OTXV8U6x81fwsrjec4ARlifRlfovAXZwdRzEgkCaYfJFDeeUe7l8eAsMGXBw+HtualaRamo5BUigDOFRi5dEk+w2eiAQOH9XkGd4j+17foZqsIflr1Dn0HX6P4aj0YWgeqia1p3Pp+0mG9nMOAIMDgcBNcJMArMwXkgDoU82hFg3cLzojBSrbURwyxiEQgPGYOvg4KFAXgujn4mBAQiSxI7CNjg5WCOuTNL7aEjHz6KdbJ429BMr+ViweerNn1svVlJaR5ic/Yngz4xyhZaD2nitSHqLorgVtJLz9cil96ag2cehRGPsk/dl35YpVQoTgr021RcFMsdRKZT36xf35FriCnyDk6JN+pGZT9TAwJ3sqC4rUeMmESigmQEUjqiUCBdWlZDiFUnq8Mz16cKRQ/F/pkTTqBBXsRh3972a8VcwE4JAwMUElDWHRUOJbBcwqD8175IVhyZ0nIuNA/Oib064qMJ06m37YD655PfhOZI6bEI/R3KP+PmL+XKR4oE0+0sV54MxXfGx8qAr4N+PIDSm6rISiQoeYReR4B38NrbeXzQCOPj+xfubKgdr+XIw2xTPsl8GLVnLfZfr0ByE+wKEfoc3mfa99lSr4iDiegjMj1bB+YmcR4Q7gdr/LnHEMeJkWJK7+gBRHhl3IF+qytrHFZ4hdRRI50WyR7FjUiwXOL6o9T8GiZunRLt6pUj/cSub4/wz7jIk/Lj093UCAHZCQHXCPVXrwUwcCDcEYeg/9OwPcpRZSMaYTbgGEEnACFCgFBh+d8fzCyK7ILCgvDX20gK6MHYwYhG+WCr7+Ewotpa+to7+jo7IZUZEGd6xttR0eYbntnp+zkRQGfIOR1fFPo5AkJDF88KRNpZde4ttYVHAIyK9dmQRD8+x6JQWrJb4zMDc8+lN9TafXlaCBo7vHWh0Rd+umebP62eNmAo+zXv+uydrlsAiKXsPWQ7cQeI6eDHuk2M0pc+dyK1+Dtv+78hfNxt6QIbZxLeAQRDu8zb9UuukG20bbAta4EZLGfJNzunG+Iy4jaswb1KRWh4e2uOxOd4noLcUNpW01p9MfNcjFbLJoXCwnkr7Hu2Czf/IxvFLRiFmrWcvORxsjeCDdiQWR+RKj/J5oeSa3yvNOi13Dd35dVN3hruZPaLVuYxKy0jCyH0Jw+weVbjFROeXR6e4MtJiqkjHZTslZeHsrSyRy6wyS+gpyZlqH+GQSSKsvHsprJvfSPiIkHW+9IZDPKGFWdjBp3W0zg9E9Sl/NpBT+EnA0N2xAY9qxPYyd41sjjxxrq69ZC9h/eCVofHnw5POhIaOAzmvyCtiyD4M0Q/Dsy7EntM3tGtPYTISEHblw9eY3LinBrzkUDEsQq2HE9J3u3m1Aw5l4/bHwzMHW+peSHeEjnzqCFvw5Dph5igyTcYCGH8Nl3NS6SeOrKetGy1SGl6kz3gc84wohMovubO0TI92d0reVUoppd9KTK+H1Uq7NbrqG19xg0jbzb2RpFzsoFlelUSwY7cz8JD0A3Qq37Pjeurjrqdi3OS9C1tLz1JkVJ6tqwaEF8ecqylxdaE7u7TYmN8yy01GxGE0SzqhbmiRw7TcXYs/RatNxGSPp1GW3jgpb5uvPkrFtvcbAkJwbohX/8YQ2ZHRC8LR/flSLZvqZdJmTleb/1Pv5jU/aA9MDAeGD2v5d3awxpW+y33ZcfGW+KM0MgPjA90B4wNYpIDPH25ExqFMn/SEiFNYlPeDO/1kKKosIkIbzPokMcVfLmOzKqGdXzWap5VUxLP5KgQ0L9yWuK83B6/f8EEqTs5ZEDiddXhvgA7caQfzxS4kkCKYjTEiWgE2iF6A/WIWNM2CocOX9a6+Oju6Rs26S2n965S96lgjs2K+2jR/NyNm0MSe++23imFXzZCigLOWEZB4radHv6mPvXiNq3aAYdxcIsBZWel3uUKe7Y9lHxL+X8nMl+8zq/seXSKaViagNHWuvMXQN3P8AVFxX4/bjS/NG2iuNkvAT+vFyVeQuIBa4V6YGfl8IlOB1dsTNSiP9a+vvpV7mOq+lXroXjSMw1yjWoH0L2iyGk2iLFfjz6ajSWRvCsNX78Ni43yvFHzDPz5Bs0nECjBB9UHhs9vmdaeTCYQiPgAj8NVaKE8cQ88DP+4VLy1ED+Y0loRHumEgJQLhXRtnrGBiBnhT5902EI5Ypm5A67JHBKKoVICCMv25WLmLqK21cuGKyLt4GNvasWE6HhjRChnFx7lpHvb+AXm9TQrKJMQ0ZXm7haDTcf1PRW+B+SmwpcCZwDEfupQidPP2xqJ2aSt06swlmu6moWvmpiK5mYaWof1vOcQur+iANIle6VI5hVTk3XVtLSkzPaM9KTV9KuNRW76OYkie7/CTN63uRGR0E779GQpXjuFehPiHZvJ0Qb+DpZo9/6UW+QoLrR6cUsdEa+pOp9ioWENcxzkWIidOlSy++zDRzCxM+hBZADQyiW96uWaCdQ1uLp0ToIIY72JI93T5GgmJhVOFIAA/mHXAJOANJNxTzXRRAIkQftxtI3TTXZrQ3mxW8YeO78Tp+W0iRaDZEliKAZYjLbQg2DZCgQXHTxijdJAQEncOUfAoLXK9/LY1GI+oA+39L6ZaqzLWdVy+p9SwP6iHoKi7dX7vUif0XhUT+UZSP463n7TwH8oA/lxpBul6vn5IoPHpApU1t75UhEV2//GQ/aqZIq+aI2jhG5ueanQz++wWBeCLWtCqGDHQL1VzRFnrtvSK9efcskXD9+K7+K7TP+OQl44bXCVLkU9g9/JuDKU4VrYS8gfT7u64/Gov6+4x8jEA0zIFKFl9LGOj9ho7LZVNsE6zylzcuAmP7kLEEtP5uHfDyOpD7w1flSrn/THmRYmqOFEbpOJoVaRObIdHQE1uYsvSD007YAZBH03VxevEs+6Sv8LopAfuBioix24pyGA8G+HxXi1YuWFn7kC0MczbkZH19ZotzP54FPQja/5C25CR8/yqZjqJ8E/fuHN+1HXaBWTguterePP0ohHtApYMbQ0dgvt2mQiZFElMFl8Kd+qUxEWWd/v2bWMZgQg/VGFPfDwy+DBh7qBdm+pgacCLW+Q2O0QsdZpF402qWH7QQWGoFwDKdNl+WrIMKqJRkqZTWvCJUeCu/6W04k05lO3cMfsms5CF/uoXC5anOC5RhV9ZlDh32dtCPOJ04cOxOhDUj5nT/cGPY3j2H1070P/joHvUMifkGwkzPD35gXdY7LUvPNIWKjNkLr4Z1xb3cSSBrakr8Wvjx/wJXrLPYxXzbTd9JjNRG+yOdiuQpG6Zoqpl3omwRF2MvYmrm4vKbIUQ/t+gUBgvHGeMIVvqyzs3bUwEkUzUuwG89Wh+PqS/4N1QVmerne9P63c1/Uo3C1PCMNHHsv+E/fzHI1HeLGPtTxLvxz+WiXYiogFFSe09BS/vURyRo4lqjsUIM7f6tsRQCJQYEdaYLEHDOok7uc8qi15wV9t37RR4a8zU3/DTJUcRIwQQA89ex7FyWcZWSngdiZPLOPOSuAJwpO86lQrJn1tPrULgdrd6mUvGoOv11lD7C9YOvv++nt3d7yitRppLwpPABruZVkXf0SF2u7Rs8hkBC9f1ZFd2St57iFfozAYZFCki0DMTHDUSTfpdkNLbHukCJ9UfT/DTJlgbB4XVdD5GSE6QAufOpHV1udqAw0tDnFNpC4FPmRQsqHhyAiIFjg0vwAdSDs6dwsCQ4SuRcdHH7sL37mz9ql+Og+S0ucKvBPlrDc2hCtm4PJtet9okNZZ+duhMempSfmx5l6WuySlSTSNUSgNcZUF+wikmty2/GJeQjxktuI7vn9o6xoGunTJkgiHaAZTKMExmUysUEbT0aWfdb9TUDaUE2ihrLlIZk+Z4BIEOy/NWUhCb3jZjxLSwLpoVX14DjQvFQBHweOVZmVNEoiC9bjUeHPIPglrJgK6ysnfSPXOjOopPxiRYzMJF/c0teooK5zllDJLdFKFNa6hUOilVnJd0IkurXZ5TRSPsqG9bhb/Q0EZ9VHikIH/mlfyvfBPjOT9Zlp8mqYVyNnx+xAqfzNEYmDApb1pCZjN5fbpUhPuBjqrwPGNnE6KrTuBLuaivitrp1OVOsyYLndPQWCmyzmzQJBdw+Wq8+VY86dLtSVYIn9aycAsrX0pWy+JRrL5vZ28LIgIazUynKHcrNF2YvbnCgh2sJnL6WzvFWKFPt2UFZ+EhV0gbLy7an2SoUX6P9GS3buBGGEWAPfrYXoM5wAucuA5nQudvP4ZAgholyjzMBx8zoXozmGGn6v1g+v2LUDFABmRrOVKhWpFstL+e0C+UJlBStsT7FXIS9rSAed4EQXt4myVRxaYxIvq7cjm4tFW0ASYQJpHQTuQyCMkGxnZ4/Y9Z37+AB95IDsFkW2MLqkTZjdTaMuTp4NwVcrP84NlVW60ZK2LBRjTJHvHar9M3H4FvUNCvWTEnMXLFpQPjncceGQNTndML1ufLCewQJMxKX5cq5HChMIBJ0qX2E/4xpyaXJRjLaAlVGps4+RqEH7rDKTJzP+b5Bc9U1EPvRO5bZhTTWZ+ROTvrguglCSFUW5vKRRbP777Ik4PkwqzLn4XWZCvcUgcyEoF9mlSyvPYC2gYWiuxjXkOqOwA/0U8wWDXC37eq5bCsNEgk6dr7D1uYUMNdkJZ8iU7++jgz+IQ5vqwSmOoOKiZ2zZlJbChBjElG/oH3LU+99TyAdzEmpSiq3fPzTM59we61ld52NewIEh0ug+TNAFjOf/+jo/HRflXM5OjEG2Scf+f9dggUpdPID6SUBvo7K5bQcho7YFkCKyNL+ckQlzruYkxMF+vuhAsbROh+fge867GBHhQUa5S77B4RhvNWtRvqU+sFEQav968ywolf0seHnzbyE2QWNgvYVPYnW1ESil1ls3QjyEyJ2Rfy+NBmdnweavQ+0VdcJPyVASbGObMuRDXB2RROK9y/nuOSgAuQLDt8+1ezESiajjDslzYFRp62KROtz2Q2y/bX75EKjnC4B+rq04wCsnhob+tKSDK7DFQcjo4w3b7CBNJ+CjxU2g6X5Nqus5HK1LtvbYs0bQfNhidXUAx6I99FFHoYDE7NqYvmqNfd0rtwPVgUGmJuGJkehS8NE72P6l25upyoCb8dufgO1RnEYOv13oJ4MUuoprHWPvlkEBmPIH+6X9VYbXyhjMzLT33y75QYkFQGXvjnUcfQTJ/ITtILWR0+Kwg20bHu8RijxabkeWoktPjDQJTUGE4vZaRUMDF9/YxSQJCh2j9D2LCunnDCe0qQl8MreG49JyOOsdG+43NYImcHQXUHED5DqDk0BEczrTcZ/JYyjRgB82WXPWW7bBGSqri+ayqjLgbZYbSEA/yLTB1Dk2WUq22yE8vyiKyF35ZFKcBc0yuUL7XvKLKOMrn79SwtIvSn5Pqxju+7Ro+hU8loeRaO/JQIV8ckVQUctwobSyd0WmLf58cVrkruxUoyWocHL48ZEGXDIdSiQQeZhLNsh5BS+aLm1XTJ88mGOaNKpPmfUxOWNnQMG/WgLRwy0C5Ufftmp1uQIur4BuqNJtugxWccCqy7e0b8npBTyuIFenPW+rPNWINlaeOm+7j3RPdq/Ex/ttS/mxUvdxkyQq5rRsduXsG/vzCkO7Z1cCsJn5E5PU3nEvIDe8rjCoXJm5ZQZjKOkixUZzD5PVE7XJMeb46MXYKCRzqAtt0/aXwIIPY043ghPU9SHh1lR96shZEuXs90K5RCr8V0BN4po9+RkIO7i1jtWxbIGOYwp8yVnsKumjOXkLJ402+X5RQ4EhO8lUYSnR/9D9pLfG5F/4OzRgygN9/2Mungs4i0lCLI87AbbO35YgomPt6RNR6goD6ToG+PGcBR9+qBWCnf8xcCayS5BFxGBPedDmxSOJ+9MUSGLQM0IOBw5JxjyqJeNkuoaB7NrF9ShelYy0eHhdX++ojNYHPkjOyMhYGLHMExo0bJ1cU0GosMLq9vA1ufN9llOqgLTd2wh50FO2byxMJECQui18HYjf4TOZNOlTcqD0wDm31TweO+62nnOXHNgU9TyyoPaMsQeGvtyqBpV/j7xxdgUNCuj3bYlCwW2gK5F2x0vpaEsdZu1lwL/+9lTgr+BXmNHrX1L5x33jUCdol77Zt8RTz9o+5Ft5EHTYDd5uTyvLnZ3nZnZIeQJ/Zqc7t7RokNK/sBE08HkCY3snqOw4noa21GOWVnl/efD4671UB2ijnjTofkBDEZutY5rOCVxfj5+yz0DW4mFTgJaK8nnIK72yC84y+gBsAl/TgJxXeIPQ+ZcvD5L5czz/Yujx8+c9wa5iP95xPtLve341zyvg3FXf5VB5i4uQwr7Mx34H1HvyqpquxTXl1QvzWS/41Vf/bhxrj3E9Vm3Jy9uS+6G4XfT5NQFJN2NYMJMEQ/Lx1xQ9gGsGjVcaLkP2IhI5j0zNrdtS+xfNBJSmfs+5GMnIr6bYrYAzN1u2Mq26VEwNUpIS2oU+A2VscxlCQmLMKW47c47HdUGBgWNKNrurIP278IKEzBzpdU1GSxXXXmT0cgylhSaahly+CNHThEZnUmpigWRAIBxrYPrMgAenvCEH6hf9XJ9f4xWqJfb/7LGccrJQImK5+7wldTnh93dnl057OPsqEKHzweY48A6eWVL4ghbS4vTXu+qhzA+tGRbmV5yojOg/hr/cO4DFuwy7BPyqzHBVBFdXz3E3PVxyjmywF2M+zvqdSYB4PF5gY9waF4dEvUqB4H00JBpYskd26h3/yn4A9Mt0eDPY0Fj8wQdfTPGwTcRP7xM7BJx9M5AVM+vaiNhe8e074k0ofwqUs1mAiUBeFpM7wj5fNyKJUiflCmmbzch/sY2e89G1Qc5/uT1AHw2RIBbwGaFB0bXruJaVUZtpwtwkdZ353uPXMwLaOEFbrkg0YDAFgsTl3WEmXxva+6pb6IIgHDST2VlXtgQN8c5fIJVn6Zt99EtsEZ11pAvneWBtSZoFzM86XPjdywWC7PJahBmU3/Fki2Iet9YsckQmV4j3gxML/UnQACva39beTinB3or6/CT/ljVnniYO6eqL4MvqpZJF+WkxjRvne+xw+ERbeMIZkOelXsVKq1ZYKC+okenYN3PXn4cb3R5HD4N6kEkva1ibH+WbUep+xH/qahx1IFVDPcy1pldlcYjGyKJvd++UBkvTSlwU/dkooiCsJKjkTlgA3/hPWEEWkRFj7V9JZW8DeX9Rr6KiBUx9TYGNdA0atoUbj+huTU5fXEesy2HEZCdescE9DMppJi01ufqxKdSaE129Uxc49dXtc+a9zJjshCsEtUS/yPeXkHoEEUqDr8XFG2T1FSy05BrI8ww9ZLRdxzLHHuiqGcLw7CaP22e4uTg6IySjRB7lDL+O+RDqmcSoq5L0FSpbMllSGj1n9AmoZFofM31Zh2l0vsZ/G7HcaPIbTiyJTgteVqqoUS24InYMwrNVrD46ehlov+KzYNHI7LI2d5foUnjEpQ0cKJfNjjAZEJOo15i0q+QDzQPYLT//WwBApuq16KI5rK1bx3TStNNhI52C9jzWEsEsWlWxuh1KRYdPweHToM8xIymgtN65Rp4gxjCYUuQLSWhHU7WsusE9vkNzSOtJMKCTsKZQ8cn2UM3ldsY1yhp0SxN7k+oi51mMfnyzpX4fpYFPfWcTCeH5q0Z10Un+thIUKwbLRSw2kzES7dgJlth4dSM+R2CDZ39eJZeHDhHEpLqmXJtzdbO553CJDlflaGREJpfBI59kTvK3ireLt5nryEWgzezEfYcMuUVQ3sHkMBk95guEIAZSqicpGANiIuPGfMdBMqCDLrbG6oJ8DoJ/HUw5g1bCr883ZyQtlQRcm/skTXm4hEZHGb56iu1idYdE6G6AKnuKo+ipXANd8TmW8eqDRj2okIogJsCND169gcRBXQtpwjiSygtwm5iSIHxd78tA6U1qvBhz+314gVALVPw9ctZUG+Mrj8b7vvI0PsfACdBqwizcpiq+4WK4tITrGukuZPSfAMcNdGo++Y9yOEPVcrvUfGfxxDHwZRNj5yqfBY6QkPoW89yuzHZOx5lDpo6dAK1GXkPtRUh4jprUcKto6DvP6CcFYfkkBPMNaNVoE3zj68Yj6DhFkDTU0bNy+/n4+HSMb1OtxXGZy2kZtVl5HqEhh2ezjqZhfLsN2EcvcgVdwGa320DDON6/eBJAfOtNEiLwD9wTHZsicZWi/AI90Af2l3EEtosiI8iXyFoxsbgk/98iXwWGWLS5L1CfCgrC8hFSpVxFqQsNpAMF/CcFAr5Nk58vXxwCg6LLKDYF+AIs612DQi5KDTmjngIE4p9giXFLyEiIgWT5reJ/9J17IDxrT/3r4LnLuxn8qD2j6MGDnI00tYrG2XD48Bj7hX+dO+iAS3SdX5Egg3tpk5toS0mdfl9ySDIZiTFWn/HRbLtcjlCXbBrtZVaLEZmcBMnaOqefS6UPHZha+3JeW5SZ4iH1XangHdpCG0D6EFp/ZbKs0qzExc2ZkRvhH7c21F+/XjfR2IDcV1iKlxgKrZa1ayOvWqH/VzcYqJ4NkFsVxrJygvcdTPe29WvXiLuzIhoWZSdOdSIUHVqpUzeWF+Bo2PrTJ0+eZumTPvqoCcXaiXxFsq8fV9j23bS2NUXe8h07cmR8cvbw5OjhV8anZl+2wNH/RGkfVKfoI4IXrATl2NTqnf7sNo09B/fQNDJPqP3tt02bIimwTLSIFjaNP1sctObp+K4zqT4DHix0Khrtvr2gnk//ok3blumPYINcGMyerOKtdHU39Vohn9JrHHZogdbZkcl8By8rNTczp+tJmwNCqusb45+/ByYlBv7xW+6jfYY//1R5m3l//altO+ip/qC22jM0ZDSsYDMHHH/Lf1GYBeTAL8GTCILqBKlYUEwaXu8Jtx6VU4nkNQh9ApouheDA/JBgiEC+TCFyNgx2GZM/yeMQKZfJBAhKP6B6qWyCjqwhE0D8nn8+hKrfB1D1B/DVVXyqUZN3ISP8/s3FeRq3hoMIugUnUZIMOlh5bZFfZkTBxSoZSbAodjQJ+vAjuOoDiHG0rjAMOGINltfvXrX8daenEoonivekAQXjthDqt+AvAuC/z8+op95YfptIYHKEIglruaYz5gVekPz5sqpcvupt9gVL9S03Dt7/Xn1m7JMChuaJ+jcALVQ+aSDNh4cz+95VcAWUNzPZbMbbsbbX9y29m/zHYb+B5rveDTYClc1msr/q2PK1X63RVNvKfLU0Nu0rYCwJRJgyny/G9mg1dhm4xmYoGKTA4m2nTytdesZl9fKhraAYFPIpKuhy8kfWmF6U2RO9cy2BT8SKf3J5yyddLhCzdh/pmPA4qDkGwGOmKGkuEM2Wqufmt6EhjuiHz1yLf4avgnt7dUIekU/YuTY61Ean2DpsV5Hp17QgCSx7UotteV1pXbhaIxwTFq4D/kzmi7wNm3elvLegQUZLJJNXB3pwJ2d15xtrO5dnjNKzkwqT6M70jRvWd376UDB0JzGzgrusAT9gR5kYxTkVtPjTNXsPPBgJWco3r+Obgxc/8OvNPFwdsuTbAExxlhMoaRQdGzaUe8ioUBsUrBWiZE85bGDr5D/95IbF/UVMSfeRCC5CSUuwXMhNRXY9llgqzrH4h/wM5oK1dc6RKFuu29p7uR/0TujNvtoKts7UsOm39+wJqc7EAbmY7kxOD5wfWa0fvRS6AuN3hlwayE7dOh+YnE53iuXe09rk1CIrG3EEOu0Zr/3W+/76nd81Z+J1Xm9dQoizXC1JLTD0Z0RnrLGmBLWCEx+4EM57f8bY69cPN1YloJgqx4G5Voz9z9e4XpPeDjWsW+nlXlbmC2nCfOVl7vltvbdPLFK2BezEFHAAgBafm1m7Ndq9f13PWSt05MWCHRNLze49K4GhMyehku1LMy+syHEtLKdZiIJKZwK0BpIrVtUT5CRztdelr5kycmoUiwhkan3yKXa9clrp/jyv3mpJq1vwCy9+Ciy7+HpYckbqSZGwKCEbLxjJXQF8E7CvsMBNHFEatq6DFJ8ppyfDKjC6AYbeyWuie/wBfpMrgRkJGBECXbG9iYZjJVhfPyqIe0JiJKJvQIqvG4XHSrB9MxhEOz8FPVpSpwGTU1Cdpl4DctaQqmMFTDqBHI/yn1wM60AYCWh8kpl76uJknOhPhG7nGQwdQ5w7emlaEiGK+2fwUI4KMxo8FHo8VsZj2KOSycdOrlANU6vgCJ0ZNeLbXSo0smm6MDIFfaSZD7s9c0D59/RUOvXtj+C3r9CYHAZvKKjyUcVTTsWTOu2iHdAQmP87l6efDCjwT9tKYEYysNa3Cq8zxHkGvwbfGkAZcib1VbcDxtaHO+PFOhAEXUuIdrDRD//4Zo/EbXv2+6ROnI7KynJ+yvdAnMFmpcFPBf6I7z6Oz4rme4MXr69HSnmveTk8R3HXrjItcHKIfjle11WDjZrpuU2mU6Nn7Un0JyQAQUelLJXrh2RbE9NHvYG/mj/QIWmERFyvAJvURkbqgnWRkfK9fIGXy6uFsmohXia1QdB6gtmcII923fqsMZRMRvfKX6lelODfMyGMvSdO8ZsEitzfP+Fe8x6BIWm9RFbf7EfogqjY4M8cLpUSTpjmLuzrwEsfNFaK+B0CLntRZVoSGcKSG7B47joDZlB4qEyxa19GvSgDMKkBXulNt2IElGme9BOwYFgXejJQQucbsK3ZEwmeOl1Wmp9tlhK4nJ5WlOMwJGhDBMRUj/ryImf7PzDnP1sMN+kpwh1JQYNDSVlAyVSYUMHXPCSAlTmo6FoaCRuylA+v+rX2/UkehQPwzPeDzbItkTK2HUxTOfW1JrZ1pOrwkc+O/oxgqmGlVr8V6e33rxeRnY25WwXjYSuvQPxmS6O9Ih04XDQOBQGLVdLEnoQ1xgwWRS5U39XXbdiQJcTBzGIr0dBmTi1GxLBcC+khaUFQ4a3ljVRGW5xgqdCESqLs18Ot3C/bim3fZSwzu0NHEbSPuwn0zH7rhLx/du/apQsLB/e0dZnRdw0+NXh95LMeQhlC5ipXZGhlvw7bgWp7K5FCZo6cclHd00cuQMYq2acyxv09C5zOLBvevYprPdtU/cnJNiRxACKmVH/pIkt/7oQp0eP0Ymc0CNOfU7uef+fiepFC5eiV1VxqoIKdSVlILDea121Xzgij8Pvh3rzUgGit2bN7qNXva43el0RNWApTHE1DwLVhApapRQQa7jUo85Ajw5L3UKuIQj2ePCIayVFiZ/fKvo9CtoE8rF8BUclYGX+nF7PbavrzbiDI/H5rw7PZa9pNJMPcdKyMjkD5ffczVjFJ3lhswlPmRu915w/+wl9tf7VYhNPj6xGIQU7oCHMotrIyod6uGkVlAbTjb6CDMHSEv390o4hLqOUtek6ld+UNspyGUqXR2+ot4RI5YqFP92EWLlCqpnAFJxKgWSurknrwzKizNlmuUutZlqUM1XO1gkQnUOwm2tUQ/2rpVogRtqIMvUbMLpQalthr7coscEgqc0mUs/Iw9+VkgqUL8muJ1T4iILm1GL+NW/fjZQQxlucAvE/2jfWned1n1cwGKVUIUiQJSQWJICjoPhf5Vxl5i0rE2NNxYVJN912Y3rNv44szFXzEvAPEt1ZI83SErIQBWHUl5RnCrbpqhOfB7KHWUYf7FCpYH6jf4jz+ooyMuU7Zn1djckMjwxTxITlEP75Du6mj2a+NKEClHqYsK2+JpZqpszxPQx9SVfEW/1oU/QoQfnNjDBw4Y7mKrgSxJgQgkxj/dImWvAnRvDr7qWaD81RICfDfz/JN4Safofv9f37DfumQGPQrP4jl9hsO6KNnKQOENOzCZguxgoVUfpsEohyRKmY5KDslgzL5bIS8JY7nVdlUZe55eRthcMRyHlnGgGn6hthY6bHYFJ+xhMjtQPHSGK+M4VRVIFOmogxGbWVBTPlGBhWrW4N8hCtJvw0uiOQpeTWk2bZnqIH4v7kUl8com5f/WWpJrrhZibi8BbUyetu1SEAq+ur0JjMXrNLKgrYMqaZ7UWqsDTmk8Lur3nNP0wfaM43UEwaACOuvSQIGKJ+l+gkEcEC9ml4COiAfL3Ughm8diiO81YHF+LdDtSSftZqog2VNlP6ubUM+6TvI5ckFdCpNBAnice98Hc1qE4QvSMsPypjJQjVyGuQ6CjKJGz1FxsE+7QXNaItWNOIpPW+wQRh8TGLflks+Nr4Oz+10SM/nilxWQ1XX4IgWAyrZrIlASYk2UC/1PF+OhKaiCfwUrq8VYSnpoM6RlFqKlXVpOhHPTLcCxdvPGSWY1p0KmysTNlnPSe7FAlj5GsNNZ15o+EdYwRFYylqyWWEdnhVbpTC2v9MxWcTlk6KSkm1WgqLWE8mC2cGR8rLIEjcJXh/qUO4BhdIRQRJJyauNSFgytENdYCTLBmExsqbf0FY2m6dWZHR9hjaeSsiD/ghUwTYXkSoJfrI2CKr5FhmmypotGFSOtiRaZBwmT1PkajuIESOvcbR5sZyy6HVztdx8tqq2eke1O+V63aNTxd545aKBy/05FFQ0dAxMLGwcAIRgBMVwBpPF5nB5fIFQJJZIZXKFUqXWaHWZ9h85mswWq83ucLrcHq/Pr6CorKKqpq6hqaWto6unb2BoZGxiamZuYWllbWNrZw8HG7bBjCHjPjPqJ2NW2+OMaXcddSzEPV+aimKYpbtRNemW7bjcHq/PD4AQjKAY3vFWeli3Tqvda6+TmMlic7g8vkAoEkukMrlCqVJrtDq9wWgyW6w2u6MtEl1uj7cffX4FRSXl9rG0iVVNXUNTS7sdMnX19Dsgx9CoiRi3iamZuYWllbWNrZ09TCCSyBQqjc5gstgcLo8vEIrEEqlM7uDo5Ozi6mbAoCErDFtplRGrrbHWOuttsNHoCzLuainvoICvErseiRptXatq27B2F6dc3Q3pEhrt+P4oCXneyP1GPWrMH++atM5l03fSbyitOYPOeV2XNxK9kIMhUBiyW7eR0AXLnenwJMJ+NOqmsF7W6fBb5HdPbZlO8zKF82wNW+7U2JsOhY3bp34/VrLF3F4Hp/DH+BYwb5xvAfOGCSd2l27SGbZpHI7g1GVILt2Dpx4A7A7PcjtqkJXOkllK/8A/jhW843jJOw5M7E99jsuu4f7REs2lvHJrgHbHc7pYP+AmLRNijo0uswZZ5w3Jzl/bkDCHbtqnavGGm+eNbS9cIcFO5GcAeWMat+RNutoSg9XXAAzNZBP72BSX3rczD4dwl2oym5gD0gt0rACv+Pnd0bN1e4NGMdk1hfe3xZHYorUCbu2V91b20umnyZfBkndu/Ib3W0TKIQ6KCALdbiyuE0FgK69fEsAbeV54dc5+0Q/ekXOVBOPUReAz5TuY7XAv1LhlyL1m4RIEO6zg0Gvxnt24xhBIFLcmcnheG8lThmh8bR22hgnhu2bI2nQZrF+4JBOwnL3mKzj1VhgcgUQ5Y7V4o2b67hfPdwSH9E9weR5eIfT/OeHglh66ewXk9YkuYP3F+MmaxcaIzOstg68NUtdndYAVpBYl9KAO9PgP+4AAzKcmjZyFl5P/d+fqZa2782OA6RCY55e/Pu/7M/pBg5rqxdeVXvn2Z8PiDsB2vwfnh6nWP3E//KLWIMT6EAAAAA==) format("woff2");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Main;src:url(data:font/woff2;base64,d09GMgABAAAAAEGMAA4AAAAAgVAAAEEzAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgjwIWgmcDBEICoHLfIGeJgE2AiQDhAYLggYABCAFiQwHgw0MgTIbemgV45gpbgcqQkK+YBQ1gZGyjqKEklaJ/v+YQEXG2h2afRxVJR4RCiyI3mjbqFujaBp7YJh+7AgSfzkTpf44Ho/HWy3qvgLbS7vqlV31c4Nc/b36nNwzdjBGP0V/h1SkTEqqCJZg6QiNfZI7QNPZ3SW5XPwkueRivVySJrU0lyYVjdWoJ01daCk1WkppqWBSoNjsWVd8gsn4wcwepvDDN4ep+/Fr6Zv5sIBHexfeAw7zhlmhUCkJH1K6FS5GFmSNC8/Xj72eu/smUYD+K52JhbYOgIQGdI5BGdIV+mU/P0D/A/jDbn5wAKzwfNpMLqqEFfjKD3u0ATrYkEwJ+xySgtJ5z0Xtot6uetrD/PhNS+lXuiu+0Zt4nIyvdjKztXsOwjLIVrou5YBchuQ3+bU9odaLCS+Sl0G2dvmz9Auk4lxj/egXhoB8y1/bnOKVWWZC9iSv6R5isnvwp4empCsBUcdSYdXohP+XzjRXKekCpZV2yyldtrZf+z2lzb/O39z+zJcZ1vAWgbBFAq7gUrew2Wa/eGBS3j1Ete07mdyMYbNfz5FAjTr8n6pl+z9IJVyiLkt35xBCH0s3nSt3LoE/BIiZAbTkgNwFAVG7BPf2kaA2ELygVDDZj5JDimWMIjdKckihd1HH1q5ad4W7+lyUjUfWUkusgFjYClnnAIiEJXYAfAVG2cr2VauIh6RnLbllwqotfnrbvX2OkOo1usYLWiXsMf+7v1fzkTW5u7YunlGIjGUQMsn+65jLULXbcnbOsRtjA+YIkAARSLYvAOV/PYsH0HO6FQA2fnzwNzYQ9HNPAL5d9+C/P07xlcwWwI1e6Dj0TKyqfvcZB2w5wwEA/qqDAIB2W5nn4PIoabTITYNnTf+nhkcrS5GmWr1lxu110FFnveya2z7zG7EJVkK9Um/U/+tmz/bufrgf6739RO/vQ4ssTdG6f/8FgGaWJkOtRhwMvOyX67W6Vjd6+zPu64OLDK2itf8vev5zz1133HbLR8474Un77LbGpFELOeCP9bi9Zm3/lheeMSq0Jx53vXnNQNpVTYnlErSzhN/mt1kJGNXg3FBPz9/qdF6M/hTN+DZf1Mzr5EMM+gWch2EUeX8C//g9+vZnYHyDxnOaS3v+BHv+byYTDzPdNdaCa5DooAMhSd5BIC5zB0OtWoeANPti8cyS75OhpOQLL/Z9qbYTmF8Xgmsw+7lBXi06bnGSPMXmkq3s7Pyl5dVLknao7zKSaU1TcBT2YhcJtwiyQwQ5BjBmILIOuNBII3xM4Gr5Z9cQLxnOhuj9YNktj9NfATpNe6UcXT3xZaWYNtann6MUVc8NDW0VjLY2LIaB8HGBzKV9rinYPFVE3CRsQ5uEySDF2HsA7LicgZMAdufc3h2jtd5072k+CdMMcOpEpXv+BU2OUJDlAcTfBBHVR4eCDAXpuREMTgKGeUzzxtqRRnHocBsAkRRj4qWW+uua7tPnAC6ujhrb15+c0sZ/PyXKcLeKzDshTUyexqDRRmH5NoAwvFhduZjDABZ7HTjOYF7bMq8Cyj7Dkzn0tQcYYxdaELKdPmcnMt33mEe4XKLy02B8JRudtYBk6O/agQNO/0ByXZQqhda3Ij3JsC3XqLJgK3RF5DzxBssBCxDOcAdtvCre8SUqU4ihE/CpR9/+vjcHsT4J1qiNd60jQOHWOo+8uiOEc0SGAd+dwEwS85GwgCcylAtSPmFQrionMj205UqKSdpbJaMD9KppvP8aivwexOt4jS4qkDm9E95/WZaMdZnME2ZRkO5/c9JxC1Q9qYh9Sth9CVYYboCWVRC+ixK+NNJ9+6zt1sOx1THbdE0zsBnY5sJIwDGhNKsDojVKDA8twCkdQASLHQmtf2s5LBW8/jWQNi9DfPN4Bhcv6biwuozU0qkl7z0DkP22oVqyU21eYuNadEQoyPUcedIIChpDhyagU5PQpSno1jT0aAb0aib0adZaG8r/RHR5/zWoVND7xWIs4/21c1H253kH5mrZ309bjCXWws/TUD1ckurzD4sYYwkVy6hYQcUqKtZQsY6KDVRsomILtTEIqQcsDHUmCkX6Wop+TOksFIMpWxxG0wn35Rk7RiAyFjFjzRt6ZR8dIIz3MJpfxMXvrSfcNEbGRUluGO5HL92x8IwOaYxDnhCvTWBJvZJ9lyEUVIZXx4gOoLcMXuhGGZecr5+WSUgtY/oBSPCvyDGF6lztmD60DnHWv3EGhVN0QyobgvLF0nzbPh/alWQJu+amu9F8Ny2UO31Xd84CROTPkvQvdtjVi5tWcdjbawdNpG6nxQuYK0uFdwZtHhwKt7eUjcvXYV/qemxiktc7o7/Rtm1KW7YIdJRwT56vIt3s8g+lfSRToyjmZnXkh5tcpBvdQJtqVmFfkHWUN4wLbY4eWL5NJ280yUSo4toQKRqB8hwGo4bI3AnNuYjWjbTH1ZnomOeCS7Wisgq03nibW/Cxm52RpFZJxJXFJtabPNNG5RnOQiW1WlNYCqHlyQNK2m+73r665KM4NNktsYQN+fElIiuMl0hPOAP7bMc4WIbyiEUjZGXnGSZmGoPUsSrDku01ma4wn5qJ/6u2HrZIcAJmo0WTa2Au2nhjS7EIttOHmkKzYngCbF0cUXoKZOZlMu7K0Xe2rWWVWirdwDe/gWJ3qv4YLx7SX8U4iX2UfKLb2MfWumFsulRspAmba5jtscK3bsZWsTq1vCmEALfd3HmvOlzgzqn6/OT4RdnZvIsCyp5iKq/vgZkP7J9CNFSdk1Frs6UOMKBL8G9KOwx0RBsWTQ1g6YC2FuFAcFNzSYGnA/paOgPsEyExGGYA0XWAcSYigWmkpRq0TIOWaxCFS1zXShpDpQPWWkQDwS2tJQWdDthrkQMtXNNGtobpOsA5E7koUrhmANt1gHsm5w8UYhGUZ6GEWrIXauIOOhuh7jwvHiDwziDzzQD+E4TiqChZjprl0hTboVs7iBkgzcDzOSewZAXWrMCWFdgtBWMGmDPwJeck7qzEk5V4sxKfpeDPAMOfZ6jxgn/nxfaHR290siXWg1pjY/Q9zAaxO1ncrSe4igDRnAJ6YUoOHLjIeQCzAsDyFfr+cgDnMqggoTWXuDepvdj0BNgeuaJ6mMo3FmbDt4XPBaMwHsXyGGYopPgMPJR2PwwJaCCBP9uQD9NKNZqFQidBYmsIKkxbEk5hMgJXORa1LyhxkT6THHcQqAzVikT50lKZD3HJpAVWqvnQ2DCa4l2RPFSmoNJwFyOqV9YFA5lDM83pYWEaqUMRqWY9CpOk3CEPStPF6d0py6uV8mw8TpGekVOZXt9YVR0uFuNKyyqRU4oOJ0klLCpL76ZYucyjoTGFikFxZThB+FWIUh2bZY2OqckO1aLEULtUqqG0Wo1GxBNxy0QclzaWxfME0FOgHJNCU3iBpuRhEAScvzFzHj7PX6DVrjxLdXjCF8+a3NoI/nQioFMpryv+pqE6YpEX2QXHx+EdsKEFkw3Nj+8x91UMq6YxOD+xhRz3d7CuNZkdyh2suNQsqXuycNGOxv3Td0WCTwDLJvjquKxQUE7ZdiwZclR8iDGU5B/kybl263/+M30j/+2sL0mivqvb07TgiD0TNRSYhNSuSDtwqUxIK/2BkdNkL8wQg34xxoziu2pS9BOb+w3O/jT1iU/dwtomJcJWM5n+i4LjdoQlTb+aahTXYrlaEe0pgQsOeiEIDalESz4w4DyXoII/XZ0uAGlIiCXrHNUFxRSWl+gU9O0w95vicfD9kBaAdZV51+IcBEyH7N/6ygeeZtKnGRDWJEfkvUILRjM1IMziuyP8CaPuhcrQR0sNxvaklZZIqSxwzFtDAn86GQSeRkZnlKOQ1hlZAx4b3rw9JbQfUzNLnT9PjVtHc5ZgGqKQ53FXpp+nWsRIs8at/ZYiFmKp0BcukBWuQXJKhjiO6Bc2qzK6NZLTA/EUiMkpcRjYRCIYAPGdrOBJQtg17YeYm+UMTaMLGSafInQOoh6yVKQU7uLaRbIfnj4E+g/q9pBG/n/IA5IFA8s+Rvhnt2lxnqNx55VzDYUDdZp5V7tb0maRePoURAtgd7zVZFKz8Z9gAhmZ+xmAhWYp9BBygL0upzjz5zT0oEcB/A4SFX9P9u/6wZPYMuToZfNjgjscQ02vFOTrL62/2SqBwpRjzQI2sWr6duW655qMScSm9tfCZJ+BZyXHUBifFGeOh4lEW3/cWrNvXzE3omcItawMijfepnY1k3VLj2s0hSuSPONCjMhjTdY2Du7LVZ3CXN1bUmgBReRuxQcn3Gp736VsERznKQiNPM9xkYDuQKymqNehbukEkzFKouL0NLYzZt7j0z+DbZ/KJ4qL66qxOfugrq5x8v53Zk0CwcWY9wiNjpJ1akBWaPUKx9PEuRgR1jTHrszJla9vE1tIXBwKbeHA+pOjymz1SJtyYLtlpEZeXHVb0bamlrL/I+mgYVjQibYUuMnx1td+j8JWN52D/pTqHEWgUs7dinyvfzU5xaS/JhNNLHJ/JM5olHO+lRXmDWsZasZQVx1ph9c41qqqSUt5PcXovwuEbfsr5/DiNSDAdep+YvTxtGQpJitf0UMx45c2kt8cL/35zjppa6s9htWywKzc/QS1v+MzLGHnAxF8gq2+ZW7z5xL6Wlm1o51yeUu9HZrsqGCNyd6bFFTHdF0LLfI2swGh3eQN2ccwx+RNO5GWEFlj1ahqKHZ15R4GHMn36E+MgX8XMsbIcig3U0HoIW+3qXPQ0WkWPr+domNnXq8el3PoRkuojmXgHbjR+gREkFkczyK/lyP4oqCLpIbdkjQeG8wcfdMzTG5M7QAOu79eaoLfQGUrNtvX7b6V3YjgqJI8zkMqrdtOl2sg6lMyxcTUOUJ399nl3uDKC3LH2V2OqTFk2AqUx55y6Tm3m9Y5rOMdVfN2HE8K+Ns4HnrMe+UVtXd3NMYVpLGho6ly8Pd/OgmqvCILwmieCI7ITGzJ6E3/7ZhfvBgavsTsjobWkKjm16aBVVS3sEGRsHiAvCKDyJv1nZzWzJN2kDt0qkqhH1pLdwdMIw4HZv9K7jmTytfqfhNb0kQ62vAnS9xMwaVEScodxfdX4ekT5dwwRCiS5RtjR0DTiIgA/5gEe1k7Ct2Z9g78PY/e4R3FxWAimJigEBopeIML5JHPvd2oLvuD2IuY0JQ54IWlqLGWn7cUoBlEWtunWuUw8yZ1WN/aio7Sp+Cg43CbdOP+ans4Bzq0xsenpk64fRgIGfk9L1NIQugJsJsp4BfFnooSDUHgMPZvydgtfpCloxmxgw6wz3z8RofL7PcICpVWfQKsQz7mgcPRxw3S9WaDo/d0jvCZJ+8bkvdDYv0SRzOiyArVKV78b+JaHNUJw2eQHwarblsowMPQ8eLBAba2LZ31yuS+rYBEsFkKctDuSkGLYjyfLR6ZgwCtdMCzJy6/IOd+cVT0feJJisma1gT1tvXOUHjy/x5QpkpypaL7lIzEs3yLpNbhdOwNTVNrK06MBOT2Qb/msXbDLhuvvNT8V40ZMrCkwfeaQCORA80+zKpRl1PPHjxConNwC/DYhi8t4APv8H+UGWtnuVyFxqzgoN4Y6ieSvP9J8ob+Ldvz8os5r93b9h9QetLsAZv2Hrbutw7yiyGmV4cgxWcvROjU0CBeyvCOpTgVKu5ABWyY3lQP7bchhHFpd6RCVJ+793ZtXjmb2alBl4h3HGYeDybpRckucM/gSCLUKFkJ/iBeWcRi5gc40a/YlTOl1xddCBaYrDTOyXRIMDaYtyZnObq8Eypvftp2oq3DCdFTDKuGY8MkgZuqY6Km/zyTpzDmDbaFEgfDWoU81eslKqB8Caxkbqmmakk2Z59UtE6hU5PHq6F1MrbwENyDhe1eyTVuqQrfR/Po1YpYyjHiGuuKFP+GLkAji0QBeJTQNVvUoVK5QESw2pDfeLMm98wMeLJQELEpTkwoR2y/mlrkUjjgOggfrhp12LsYS2dmFkbDzma6zhs8futvdOkRbTfrFG4zu62mww8EviJRzc52EBSRzcjpo2yyFdXTFPQfrCTrJNzokDwFq39Tg9PyrZgE+osSTyzc1jsPeW/htaGzi8Lm8FOZJJ6RcwzqVqEyOL3vwLGC5zxvcR1hH6e9MT5MjTsVPzQlJg0jx3Ku+Ukloz3G8FdhVmNQUp0BevpUsXV4TqH/R5bvWdz/wzwMR2mauehbMlQLchDQFYqFTo6HVVaxs3NRQVFap9gsPVH9jrIlSklHPQ0rHEhrFwPCwJ1A5x4+9J856J/tyBef/8Ko0HHgvG/UKG0Uet/zhsIqSU2WrSL8Wq1yuMBYtoMk0rA36RFHemmblTzVr2UZIf4F/gJF33nOFEsAV+jmZI9QHmPJbnpvGG4XS2kBL14go690fh/PvpQ0I07neCYkb7GPaXvbvVFFon5aaijEuAMDgzy1WLYUbzGSccDwVpGMFi2souvjUkdxUGTMN9EaiIQlqUvHxqBd8WM46Q2uZ6aKcei3Dh2K1jnZWBFWzTKxY1QcXz1GMpAVPl9GTQPjYIdmgMl2moGAJm07SdTY8w+ctlPiPO8aFK3pmgQW75Wv3rt9XDJNXHwuulqVe/v1icRZP48/6h12FHHz66bXvOW+QboINblXCbl+9OAaDaCbMA8qiu1vjV2RPt64c3CTyb6RT6QtdI3ionEcxphwDqVP76/07WA+rh3bnqdJCMZQkJFBErGJrZX1S0Lhyvt9hrSNgltPXjBrdljJuXdkFy/9Dfyr8n0LdrnsTohZbiTM9SXTzID0xzDO5NY24lLT/ymFNC2YjJnISadFgLsvwprs2mw1nkfPBJdKTVf3IrsHr9R6BnflJql71RMuK3T9KwlJng8U0z7LQvA4DAK8onMMni+wBUmjkFIWxi3DlCSAehiOgsK5M3lhwyrHHgYZpwkVvTI1q18t08cdtmzKccbVJn4xkZJzug0Pv6PsiJf17cdX25C42OxpMKWgmWxPt64BtghXsovI5znGjat1l23XEqMXEyco1M2wUmRHoQWRGuZRFm0dJew1uh0qp9NQSQiKMtPm15Ic29/0TqmN+bBB5fMBbnr5vFpiuq65QQJ43yaZu2+wqz32qG+BQoL2rvJts6DBmZZBlOhJ4nT684enYgi2fneI8JqjLe070wparRFQLq1pKiU4ruiM6v6R1Zp5w3fttkwGZCdpxkQ0XINUHL84rqpmb3GCsqzBfDwH0QPP4qYb5knknqT0rDjau1BiamkRRMyxyrAv6ci8Hq+Fxl+yM/+pZonJiEv4EyZznslzdjv5P7kunkdQsZkWsW5C7Cl2N06WqyZpCGc+QZogrcESRdWAVBMPiXJdrQKXy0kHYPdc6kPTTXQf4pZLtTfMZSy11qX7gyK1UzqwTqy7r6oW+G7FdfdeVw/ShczRdFk+BgoNXZKElWmXTan5nZz0W+HzqsPOsCC8V6V6DX64Euc+z/d8FHa2aOYpCXHjThxsBNvd2sdkbylOOfYxXiIiFduOctYomE3mInV0W1YXOuWZYOqaMrTc2Z44P3GCL+DrRHv+vp1NsbbIHfWJfdKZN3LqkeRpmgoG2TAeJgjhtQNkp7OB0MafkGTlHKZGaIw+UU9K5ebNGtHjxWOPTjJ0RzQpraD3XWEcpju5skiINehbYzzZnnOGS7t3m1l39oVx1RSpOXugcdFJJhtHgoEfNGg/lbsQYIEgzfTttBody7V+mCN95iDxt17390gb3jvLTjuVJeyuXnmqzpn9VSAdlxnnATs21W58lwYyx2zzRXhY5BMlzfvAu/imx4gBb3Qsc+wTX6eN/dh4unOGyW7KusbqAo2rH0vZTa5anB2Qg+5+V1NQUHifDBeY3FfBFvdzPNAx74tR0tYlwm7Li2xt5TG4Tolyq3S4l236Bt7Hqr/pmMAb4OtkDufM+O1b85Z798j1ODJyzcujbaF7oOpf0I4UExBOma48qdkcu173bqkrQz8wtz+OiFQWhkFo7Qd+/GMXmsYRZ58hv8U61fHBEpZaBXfUrWY9ZZmqpajH7m70hzbLymCV+3gcQmk7WufY1tCFKdEeP69Xz/CA0L+/TkzFEH15P78XcQQk0gJZqmd6bKxKFVh47JbgYUKMeZMZSqrQhpnivhwNlvIzMMFPJcm/wzaxFUfyPqQoNKmvHmVrGC9UlaMrehl0tYRwcpT02f0dzESI2YjNfPAic6L/MTDZ3bJBW8q/Gy/xIP54LNutrPzCiNHST4odbobtYauGr2LqBkKDxUYac83O9ZYiG1kZmeskUkhZxX8TteMZuZrir70MW5j4m/IU81qjRNv3BHx66CCrEdljK5lKT9+5vmrxeKqtWYWR2J1/mrt+gq6d1WAaUnsFQ6x4J5xhqZS/KSM2MasrJ6vKOeZ7cntAYEuNMU38wXEqn/0+vlxY6dXIb+gd74lV2Jc7nVzF7jn59gcV5D9nZfCkj21Z6WMoMIJ+Pfc5zc58V93MB2vOqA8nd9nMz+aH1ptPa0/xC2S+752+egss9UcH4JzyKSChKwLkrN2+l0IRWxU+OeR+y2eFnhWFNBUYZ1l4MMMvHxbrkLdExFlxj+9Ocv1gyVdJl6/iKO+yu2DlK21D7o/IxRj9gk5eA1nccnJYOa2uaGr1Roz63aAe6vPfOsGp0rIot+rVXlfnVRLjpOgXPm5PvegWoLfO/jANp7d+c7TTymgcs+mmGmbJhHXJ3anmZdoAVFZrJjda2e5LNDYtc2xaVPU7Flv3QwgoNvZK9Xmd0AtEjmT4UOa31kpuATOTzGM8fRn4689S42P8Tk1/V5FdF+7A5wK0jFST/y+U+wkUaYEVmAWyKUxAww1fWt1VQXqeOp30s+fJwDxKwyjhu9dOqVpsHHHWOyvKDZS5bAXGeIM7j9E4A/S9+TDbHoyS8UcdutLjXq5Ju39TNqCYe7x6qZIa3sFmqOH3bZYG+2grbcBBf8aJUUgXkfE4XGbSNgvsKeV0KkBW33aL6jHn7NhPSloneapUKnAm/rIt3ZI0qe0IPNMy9fcd1WJUqSnXC58+FfLe4hDrlU6M0CgEyrrUMkypRHlwu5XeIzUi3h7lWk+2xmgMAlx8WCulrOmWWLM72enII8IbXIlmkdctv23KrdHHS6P0HxTcfxCNMwwWi/eGP63EOkW5i1uXVnO+g4dixzBMIScGH9uKWBnImO8kq19IDkhDOPYHdwogKxDuYpIJb1mFFGrKjXOmESqKCsKnVCVtuWevEbyHiJzM52wHpcQLtBA7wqfe5KJMIdPVYPsFMk/2BJx0s2A78thZT74OTpa/ULQ2/57rtYAduEPv/iUswH4OqORf3vBfGq/uHYqdimbWccwBLHzZ0KiBKXLTFE5MkhqslM+Lm+JktqwG7TQNoitMYWUay6smzZSGx755FFETelYXdSbSkGHJy6goXfoFD36uksvDoOvVGdrKis/eHEsk3n4oHyOzJ4CJvC1pg973Ycn3EiScWfknuP83VRcVBki5ggzUN0QURxaDixedxmF8IqLw1aSu6peO9ZdwxWFSgbnatyK1F7ycGQDyNqcNeJv6eWJQjPTiLulXqX1FQPGKCg1AoxC9usfBYPB79q+/60hxVWJ6ZnK5NcvV1IC6xbqbjqysruHCwM0dQsl3YoHc9ebX78NiXIyYzBan0QYNPx6ec3MWFLL5kb6SmfKIkFEN09bk3oeLCD+D7Fv21idYrrz8k4Wg3Zu4gM6yLSxVzOHy4lp5ly3aMlhnvrYXvNOTJn1XRAT0it5aymvURP9CdcgDEufUadWfSub5MznGC+DC8QKx4XzYkkvDu44UZPcVKFfIA9qlkZRarFgsL+3uK0FYLNYTu0qFJZVL1KoHSupMThPvtfsq05RKVbeKQpl+A6xbvyM67CsaBTCyQpciZfc8vfhyZjcjyuYrU+U5PtZRfsQ3TFMPVDTKhE+tl8ukkV/k2DSbbcOh2+tBA3vEQH+/TgLRkGqwFISQ9XvVsryc0xzATIIAHJaOm1w6svvvMWRng1dXVQH7vpJqJOjA0WDXIc+s9uCTzGhZ1GoZahgUS9+Pcg/M2X8naoLrk6rLYfyeiJIOPNTRd645+SNXbc0TmxuvXcHfTZMfrC9bfs/8iGF11+r48jH4pzUGf/hNYEUMuH73MmZYSl4JJ0/Te8pAjaGadMMKrEkGQ46xlsFPXjno9ogmk9XIPeFEniPFJXBupQQVw8bNF58pRP73Zg+wh8NbYMa3YKJYUbYR2jYDdCgIZWD3bsC8wzQTMQ73Z1jXWXPKlP4bhf1rz/J5ZvSM32HK+pJ/Wqhn4R6RqX983DMt4OF5CQPLgXH6BTF8Wu/Ti6zLv3z3uPG+S/kBvOZrCS0RmHJNAwewYYm8t7tLbpo+ZFwPM+iZE1q+eMS2pPCtczKsqS5Un6LutDyeU1hc+dKE6brR7GXvuCP26Zb6Fig0nyy5igmXxqywnY8+gfy6Q4HC2UyWBoDaPNNC+aS/aWamK7wRxJU4bzkeh3ri47ueAT/9zw+4P4imZKy5M3elQO9yX4S/qTScNyQnLYj35Km79JbeWdXGBMV3/yTrcl4GbxzqU8Q1waRxg/V/sREIqtJkOQv+bmw96JZIr3aEzQNY+5vnU6ep4kk5wd+dUFOq95me68l33pzFqxXZuVjxL+6o5KIxhUSOso2vvinifwELtno5UqNEoajOjIPDHmGG6LjbGzplbkRaMzuXQcQoFzWxO4AlBba8b1blVDP+kcapFCLqjEX1gFR/2V4C4kRfci2TxAxjC/7UKSCzOxxtViD7vKwpVrH742cOPkc63OWJ/towTChbIxU93GkxruSJazDFxkNwyWXlYYVA5pZBwzU8Y2bMTvH/nuMjuudK399XUT726OqtsOK6AiljpvdxO6v0xZeecIHMmn6r7Q256RH9sJ3HYfEK/DKP/1PYFfErUeNucKAThmW+ghyP7lqkWkJpC9b2gfA3IYOFJz4mVJSRlcpImyb+209GpjCcXcWHS0tx/8SLXy3IyaMUXCjY4kkzH+5tX2VmoA8/B0ua5mMLa4sXaBfipWN9Feh7BPz5A/uXOR7eTx6mb60v0WKSLwCXvBLneKP4bCz9LOrTdjA7t/hUCemVvqhBCpP0MKHI5kc3dApkI82Q+wOlTOVZtsRmuGBSeB4l21HyOMmPfmptwg15pbImFYFhrFAuFrnbXaM5UyRlaBJwne0J7SADAR06V9bs6WVOpXT3W2dLlzo+j/cwDxkonTPLDF196l5pUePrhqgXuBp0znHq8P2jdq4d/nbxj9acKHyRvHy2t3lBXeIZjVYjcucF3fTSUKo6hOcOt5Sn3P/tIldUcjLo1x5MOgTd4TSApD+Dh+QlxD5q5DaPfpU8GKhKLE5+hCPEEgu8nCHor2R7QPi/46o/VTFrArgh8DPGZFpLBvRdS87E+xs0eRVR2XZvigdONjeMKR/SC4Rdxorw1nUrQ/iOsCS/nfXCyoR+9dtKvXjfG1S7sl4R6VD9viSmGw89jPxJaUPa6M3FAXCGow3oLOe7qUh1Z0a/PXPdus7iLVFvJ0vSs29fczeuWlYh1qsvPcrHBHwNhLyR3xGZbV+QiyUh3rz94wsKIr2g/FMpW0t6RpuzEM53cMbmLelRRAN3OPsk7h+TgRDI5ckj6ol4BpoQiFRsM7pooEzhlhQsiNnzWZRhYzmw+K/FpPprJsLFL/ylA6AN31BUVv61iZu83NTf3mwYzpa8Eb3W56Mbe6Tv3Z6cjv3ZaDI0y5prA6pJy2Tflma8IgdM+JAIsHmJwSNNHXw5u3de7pz611mb//R38ZHHmR1FSUWVgTxmu3aoPuV0UYuhjCMn0a1COP0PvTh7olWdG77oqWa/0/gN4Bh3hx/TJWt2mPcgdykceXSHdQa0KTM/+vgTfzyFQSuy++nivNzvGjxNEdwMxy4idkcAG+hhjtCiMD0npRfkRkSwsyLecpwZKG5oNNaB+g7xmCrCv2DsaMVR5HQaL1Ppx6CKxw9oqIm9dg3Yu5XsFbuOLsh1PJBw6eLGx8tIW6FMrF2rLs616XOEd+8Cd59Inj2/2F9jS0JB7bB+GMrNBSaDuLZqTpUS35n+38Cz9Ep6JQBVVABzMZ5Wod1zJy81lLK9bGGGflIRjCuqKy4P5WRBUZAVMgNxUDGP65XpRPirdaVz43UinBrY3qgoH4+Jf04RtOc6C+eamyQDxuRsjc05Ns4aRAoJNwPATVtVUnGJmdAhsC6K0THsEcibV3rb+UMjXfZTuumjZybJlZeOAb3tJgAsD6pu4m5sQxbgn4HLUnY+xG6SJ45xFeURq6IrNXJAxKxWeZAzHnCtEYCiYwzzFlze4e8JYeqGqUMmItmVImGlwLL21ev1qemuDyEQTX7+K/cOEpHNRnA9AoYYIKlQma9LTj4LQBxIdzjyyGHIlw30Vohe+slaR0TiLrpPiJDsSqGg43cTMR1vUykW3jY3uz8owCazSlQHHhIAKMbmNyVsu6SFEzgc/bBuWFlsvYn5PTuUJAV2w82VV4hQIwpHdClUr5tm9EsXSt0Z6VByMhDO3++uDEa2gYQCRawZiSUGloWnI3KSercV5vkfGyulGeKhjsUJD+VX8huEaERDoXjS4t0OU7jtpb8WK6neMSyzXBc2pSiLK2woDFku/z/h8rHEJJsd8jtXOpvRo5+K0DOlxjBO3Bugnw9/DwPPMoEt1jWCtlJqn2W1g9ol4MTkV45JpadZVooU7aAlvAkklC/4/f4TitGNcGZmYXizJFZoS1McNwhNTEZ35iDh6ZLwM6oI1MksAnk2S+ygrh1UChF3OldRirWzcjAiu0CrpRWUc8zvqRN++Hl9iU71XCRqAACov03B6YXeA18hRz6GwNQ0sRYUfcPll/b+vGjbBHpTyo9fho2hXlDlm86rq/79gtl2CI5rejL5exE8nOX17cLY01u76nKHa8Ft9dgkbdiBKB+DZlF7Vc2M/VMRP8K3Cze+6xp3rgDAlqK/kvZgMecATXMDWfswpmgD843BHSFu25xNOlB1sPRqwzQXOrTqyCpePypLKAt6yyWEqywN6XpBjeoyiYwM87QkPRCw2KYf62cVQrWcU/1XwvQfkN4zXIqmczN8+8NYuZ/wYxwVujE2Ts9FQmH3mL9M4PIX5/41YcFBdGQUfV6qlGsP5xgvkzeDZlPtcURXKcGXXWvev7kXaJtSkGyLglPgAGA3NwOaTSFDLi4YZ2+XYAFQrysAJUEymLi1qudw/aW4G8+CdUu5UD+oOm4qC5aVGJAxs2H6fFCqwD3WQiHpAf3grhoc8rKUzolHjnwq9uOwkqPdJRs8Aw+gI5tXDKUqFlg2vH5uu4iInmkTD4x3OV+kukf3l0dXRl/mbl+tetEr+wzRt1DVg60m27tXT4VTBxvCEoamVHWqZlJW2y7kpMVot156dSaLW5V+hqdQq6SB1b0N4qulQKm6p+KrtDSaSNnVPzOz0NKU1vfU9dgGL+COPKDpTfBP8zdZsewvSeVNAPkWQw7CHHbm66jqLGwSZ0eSrQrk+GmmYnnmU00Zsr80qAfWPFVvnQZBDri/jyw+VUfcyvEX+FUvFhNJJTu0QmZ1HSHPN5VZpryx1vjH3xNw3niCySRiDnuJ//2nOUa5UUmG008bhJrdsudeA7xo72KC9n4UFnff5q7Wf7qjOV2AT3NdVqFn+e3UIEuq40J8xY4vLm7VXOgVf/uvG4Ofcrs4UNovgO4UbeZGUP7dvBrrdgOpYWOLZBl2yFH4imX1iQ3rbRLlxTikLTq+JJSSeAxdx6BvJATizV+aGspiU1hJ1W/D4CUDopRyXR8S2UKC4A/DPBqeGHb6UzZrEHYGzcSy0M/LIheav2e3rDF+RkqaN6yGwH1feCX8ZtClXmw/WF6eRxsoncuZ7pDnZ6ql8GtqjJj0B7KzgalpZr3M48dMQLvrc2fdmqMl5hBF/69K+bkf4VklVis7K+IY/89V9BtIBTstgJhhTaw6NdyPPjDO9E1Bq98X8SOgaCJzkq+ZBh3schB+E+1e3VCjtGkdb9ovR3ZPnB8kfmbQyMq7qYn1RMwGT8MKAQReFV1lysphjqPLA2WiZQbYDlDbLKmtf3wUTvnhaTmOTcb3SR1Z3DhooslvOrlXR2+3ApYkS4K14WUBOmnZhl5tpupAG0ZMruWDxaIICHY9AWf3LbmQN2JyHKOyctxxHXQBqFF7QLiBG98PGU0sBICjVxtUtSCpRME4T9ARMYO08Vv5bUhbZE5cee3eZDU2mYN4HbUI8CrQyNRlAGXnhHv2oOcsm1eHMtQYNy0ju99dnJ91yW3YhyZ716Bpe5gnLSedo1+gvRQ6mcgzPSTg/fn0L4rwp8rEbqhAfLQ4bpXKx3ReLg/WcMA5Dw9pOC4NLXMNvWVBdAayC8q/hkz5AG5xLJkcnIxb61ofGRVtmBcSk6ES9FibuhVUyjF+pH8e4ImQBggCk3YDYM4PnhwOWDKnzM7yQqmczD6YqALpUmAmJ1ZGJn826UAf2TLmih/Lj45apTGOdSheDZpNDSAclLeDlvZedG4HXCyaZdzk2Jr5enSkd6WAFwWlYfHFM8jd9o0BoPLJYURvjBp/mPTVF4Hv/A5CLFfYAB6X0mZHpVgxqM290mCYF4EDO/Hkcm7IsOnAhnmqg+oAoCoDz+syDwvr9vkD332HlTz+o9DnjjhPQjawL1eSW68tL11NKdhZETcowInpX/7OAABXsh5/kNSrlh2FiniVQSpfng8NisSUPyjgeO/Arb+/KOCNfL70HuAPTIC3QP/JmSjT1m25xq3h4YJEurGXeOBlX8+C22uEzzEhG+Z/WpeD0Koij8hl+IcjDMUd6qObp5nBJZDLav6aQbgo3Bipetnz0/ti8lXPH38U52E+P6+qLL+UDeQNTotYg1MbRFE0xnaI5NOrTVs0XBksl6jIilA7JqTYZvThF7RnqxoJT9eqoe6ml1OLCfobbBPqlwcYnHvSmri/bJflcUTEzysPLcCNCa4PY5/jgr2XhOJe676T4lDDDr4Ut0G6Uf3IJ5GFFaG8sB5659LkqpralARdYvA8QUXssitCyyhV/ZN/K7Xhr3OJIqIQub008oStkeNOvsCDn/Vz+ReyvLsL2tPecOMyukdVu2VpOyLN+uOXpumqUfWAtNbwGd3b2/s+wrJRt4771rS70yvFx4hIYzOobFA2yEbJ6b2XzZEkMX9rLhffc0p3lxWVNGelybcwthZoCmKbkjuY/E21LckFrF3m1S5Qf9KtVx/+7DL5J8Xc6tQ2kuE7ez9B7lD3VfTaNpBrp7a36/bwtsjKaqkZAEpM7KDUJw51pOx1Kvq/iaqo9/wb0jHvMAPVGh+wMNEYQFtjAiol5HFP/dj3ev3KCfrkfbL6zws9W4nY+xbjVbhFPhvbG14idWhWf/U11pH2IipLyG+5gpKvKpGkr5I+Bsqm08oeK3DxXsZVfyr12dx7+ojzVxVHRqc1NyntiyddCZ/A2Je8rULTv7e0A/Igcrye+oX0iieU3Iy/cibiCePhXIE44dOykEmBIvQkPQkaDGa/ryAhWZSwK3o4WyZBcGzPPU+rnN/ONJxr/bW0LDHWzVpln6f8B7awqrdJbe7qrfBAsH3pp7ZsjYg5NalEpFYoZtn4eIsUYRCuui5tpYoabpwsIaLIh84R7J0oCOGBYMxo7Cg4x8JPmtr0ldQKgAkfom7Xf0tTDyjdHYPyb/SadIFYP/I9Jwlysn1CgaB7QhiybnFYUr2HTFI8D8u8Zn8p8e9Sb9dOOr7nHmW8baRuqsOP4UaQNswmW1s2JSBL+YrX5DvnCvNx48Vesl+GxBmZjo+zm3IC7MZpjuq+yrD7Zx6fbxjVnmXuc4/3EDYlJl7DFyGtCCnbtss3JIdVGVjxAab6s+OcY3xndnwsXMRnbh7FaXkAy157OAS/5qPEyFLo36YIrp0R8pUHca6VXpqFz0mNT372ggpTd8pDqNcNSsYW5PrwW8Mw8QJsmE9lx+5Ew0+r3PgC6Eq8AXUZPrxwjMysuS69Gi9O9jpuF5iGAsVCqli5/wzBF/vBchBMCIt+AlN+TOkG3Vb5dTkM0WsN60AbSinIooSqCt1oN+rZDrXmU4q/ZrJ5j/khSKpK5mwdJCdeNTUoEPDEddq0LjrcOx2oiGiYwskejZrpUVatWtIo+V51UD1d1g9NWbY0pyBv4xvUaJ0qsceuFIQ1/2aLrEey+FFrAOMMpNGyWHvh+lyQ8l3pZVWFV4gwVcp3K/GCr55eCKKHq32YDP76AuOGkmQrvB5eUmCsqu6fSvHVkg5FXPhtHBmeF8M1Ez+HkCbxJ5FF5aFCuQlrn17fJmQNbPeilQtF8CEessG2Oltjqm7fhk4w8ob69qut5cqGss6r8bpfXoMtj5qJ8EvmMCJlb3nFkLcNG0OtrDPWCf4jKdeyVZjUP7zkk9QYn+lWn8L8rkl1X8X+Gseo0vKbjPRq07bC5hGF3HAb7HTijYiaDVZS3vsQWoGz6ifCo27FZi0qzMZ19MM0uZ7QvtmpTUlcIRTvaY+3LMx7N4M6EjvyHzr8up4xXzVRN9WJ8H2+Mys+UsJsYNZBEeIGkL82y+txlrIxWA62wOitVqrOkWJmLRRgx8bTgrK2mCjjFnolR4PIqsTfv3zqv/I8fFAspthmYdjOmEyPfBccx98z7YqfcUoliGqcPLvLGyHcUfhidH6mADrKidj+tFJKfB4WvPCUOs1OTRx4isfJ0ihqMLdVeV4F5MaAGgGlvXF2t4VOL5ETwp5VpzFrG8cegT99kTZaTf82PErl5rbOrdcfWGkmMplqAybiEwQ2vvLszppo278Riqt0uTyXyUxBX3oo8oBdHG2Z0eoJeKxfy9MbvRFs7BNJ4XlJowbfruQN3yQeXWcgMg0VGmAy2+dbUQg+pWcoyXVYVW+A4qq5+QmnIttjOUCJVWrXh2RijY/iVTkfTvyc1JKmLWHYr0e+2V9DVlSKYv95C96TnCFR08/oRtWtRiUOrj6sJpNGo9MGceShwVCaoj5/l7TyQmubM+YLW/jLZtV9lf3D2Uv2sHxeUU5PoWQx5Rq6t/Rk+vuyBV3HVCWGapztC3v4e6ZSY6/BTn5usdsbH79FeW7zq9M5vlUndg3kDNUHntiN1owwm3uJggNxyaOS/7LArdut+mBtvN/oazq9CDdeMqoeKOm2YS6WassqusFRgBBtuAW/vO9iBD6XmVDBwiPKzdlTpM6VnT37jNPTWZ6/s4GDrRAgd6+sxUOOrSpksLwxr1H180/q2HvTElHTa4MJk6TOlbX50tq1blf+ziLIztkLu7moO9MlRnmiXnAOwTy/wOYP+HEI/9y5R359FzzKm+ImSXVnX+XxD1+sktuEX/XJwiLfl2lefh2WVBvbTVSDxjQUrmbeophhk9qhZsrD1Q5k5JEOn6GX97dOYn0hJyIu11KF0ie5HJ6RKXH3wnu51ke6IxFpthqJPnoKaQY5PpDT9LSd2Baeg3Z1Rrwn1hlp3eKNb9dM9FMY9yXMj7KxNnYWzkqjUPmkv4l252u8oFiOgnGeHTOXd6GHiAO4kvSuFKCT5oBBq3lRwNXcgizb5OoyIyIpgs2eh88WOcIm6UkQIpNqjz3wNLMKkl3J96HDErFYPJzl7ZOQv8B2jXZQOwhArNsr5s65D2izVmEhatz2TfjufREckblfFwVph7R94MasgcyB2Xo7SIJgYnX+mHDzUNgk4nhnZUn2aAbhYY+srerNXVfs03HfyuVCLBe7FG9VPM4FGTDOh3ndfTQiGsrscpY81lov8ety8nTuguC++18IeMa5joCv0u36wdgV1oDWB1O3rJnHcsN76C2ty64BGG0bDeWrlH3qxOEBZZO6S7g8GBEheeHS9NexPOU0wElIajDWlT8wZJocU+Q355ZzUQiGAZXTHHlEI1B2z6SWp1dkyBWF2dCVv71UuPp6T1mO/QUznRxG7MKZn6WYuJWW+PiiFZYfgCTdo6PPQbX3UbcDUxVoZGlxMok/3fiqHblIBHZF/v8wZanL4ZrfLpjPL25NyuD43f7snFnXnvopbgOs0N/waj02v+HtOlx9bmqZuRV0CIsTBVG3oopu/i0EmIcc8vsmPI0ujRnt0/5zpNWRkXp4+OI7PFCzqpzU/sqkWH0rvow+wZndVaJf2ifMiwnBvFdeFsGvnHroQoCAxd1bH+oSf49HdJ8AqhazXGG6kAeWdgHrhjm5YYl4+8ZN7U24mOjr/VD3xOMzWubik9og6RPl8PUIBGJLtm1u/MbMgZSwSvP16cgSPF9mxoSbH2dZRwEnXw5T3jBpvqMnFqFeux3yZAOzPvHk+5aabu5IIi0/VuEt/wOeAa7w/IhufPuKZbgyD+1MrU6ueKaji28KK/ts7zxw2dusDOuDdyozdNpPfYjHyk9W1Jo2RwOBpHv33fuj3zyzIutvpZrPxsLfQUFxelZ2iWE16s/of/M3Z7xffcd2KeqZ3AykiN+ayrDDvuTGvFBlHkFIm/tmy+SrG8w/+CT38hK7m7TuOlxzhskdF8ehtrN6bnFBiecG+OcGp9wKYPvlijK80Cjnvh5hvbuM8FrXK95Q/alWyIsU+sbUBknO2IFMoWCodIXc9xbPfIwJ4Qe//nvP7sh1RXN4XMTK+lZMvrTQ/lKiqS3r8wZJ1C5z2DuM6k9S2835r8of3rwlRtPY9Xfuam57PMiZjOcJs/DtHH7ogw8GTzfPnh4IDAdxJ8V53sByYcjwgUC0N+A5dqythOj9wizqgvKG0vSxb1P+B4PT3heWwxwFPrWsNQaOGqBkGvk3I2b3V4AiHPrHsaYUmCrx9JfHXYSD68N2hnt/X/JU6iophfLzyYaSCw2KWib7NQOuYtai0jVCDqBTFWFuvflKMi2gm/XMsWt9MEWRUWB2UjLINuytY0idUsUMt1XbGxs3jvgRyDt0Ev6jO7cqmP5RKIdIpGTj94d+vBTPmSg4yPes46pBMCqybRjOav4sLHyJx7vC1xoayokD+3j8WXT5KL2qw/TzY5kHk9JVHXn2zJrg4j1vvgG8hbw376NKq8a9N+dzMghPxLbPLs53risnC7fZcWWeYnr+jZlduZ7SX4rF6ScL7bYeAT1Wh+hazow48rzs5Obcav3F0iQBQ8DW7RyQhFIcfjUeWCnkWObkVQoBHnilmPeX8ZELE9EiUJ15ZWIPDMaxO3rvEBOO9sHQFKvV7CHINOEjgkc4Rr1gOMsLZRgHEaIaNDG9QbbBDKWTEzOgen0BvS8mNCc0zToodDgMGL77qXAdD+E+f/NVoJ9tNJ+Mbmaj2WkRz3GYMA9QFKhUsJA0B/uBJRXvr/vouFQQAa5eE20PeuXUCxKOdd4YEqDyn4QcJfVnRp5VKtIwqOTezXjWRJ1RiXPiz+HEtF7Pzos4xmNk9oBEQJWF/I0yIez98HkAcudO/weKgsJpBzLBF/pS+P6tIXbnefh2B9u/2d64O8+Vk2O67j2dWecFgwlQbiq+g9MTyl2XuxbmEcwjY7uXgYa+pcCJXP7Bnbq8Zm+JQiwZJiBh2QMjMR1uYedFPGKPF2QqDxTvmAcHo+5Z+OE7KSOxWSeSt7PqiRa++I2akPsDOyzUFTdh0tWggZy011353uf0Z8QbnszcqpxwGEWS0M3YjH/OUa2cI3jeFmZjYDoYBm0xgyCJazcMGel5sW/CbWlUO9g3U4A0pbzhlqpvfbQrvwY5ynvhIpSc1Mt3pGgcp3tBSnWPCGh6xomohSRpb3DG1OgxH2kl9/gzT/gMTUL+iStccDvOG1Waw0N7e009khktj4K6pboRALqbir+wQqV7G8v5+Lsm2M7h6pZ+eQ0sFb/zcpdSXn1WKFDvHONwLl++2oNZcokYelW3XHUZlxJr/XdsKXR5omD2tG5BYj8E3K2FBllJ2W+kjIz9RbKK6gRZ9ym2KDpsqa1YVfF7SXKSZ1qiC+xdE/d+wpVPNDNSsxupr5aAFT0g7F8f6KqP3NZEQM3yqmtss6c+v9fnF8GCJ7jISlZBhfLJJWEcY4BwiH8iMHRx1xbzwlCof+G5vo3FsvwMckFc/lv5xZy7Vg5IXxrkJIwWTHtZUvGehGOpTk2V2xc8DHyIxX25G6z5TVr/wzZ1N9wo7LvxTYAUIXnwEKfFUT/qWT1z4os+ug/05SWX7hk+x+eF3uF9H5MnvsvJR6U1Tcyfl1ERGhISfqdbIKT13vltdP4BuuBTBq0QYEfUqQhaysvkL/V2uYXGsrm9vig73aVBuI9L29aF4/UTUh646TIwI9WztToO6CIoI75BAJjTy4wcAXQZoMcgUq10LSCjQcvu+Gh6waXYdCYzKc6q4nPUUpozUtc4RaGCjpZ1eHaLTMRdLsm3C5drQ1bNUo4/Cth0Jj87JT5KwtlUqhl/2Raplaom6VYvk+hqUOaZeqRUTzbqWki3S3QlIEmKkZlEXC55M2Kk6TO1FVkJeuE26mh0oetZKt0E6ASgY4DeJtE9gK4H9DAIEfuzLuWAgNhwXY6i1CiKO6WWVt5S5GeWo8JJiV5sijKcOte+WeynL+NDlhxGBLLoSyct3U+oFAK2zKhkUBzMSZBmcbqTEcH1OEJncZ0CXK24zwPopSaZLv11USDjZ1kuRaDYqBGBWJIhtLRpNQOnz+T6M1w2VBDVo5X4iQpzvMkSIH0my5PqoMAGRYMWy6M9TuuTFGanx2Hw68SoGJJyIq8DA2nm49BnTbDABwoEdBFQ1ssL18VJY7WUAzm9i7VqREoB0GlXl6ZYKXq+RcqZBihvWNOTDPU21Rbq9ASgwoqlKnzWUT67QIJT0cZb71kVAyCAj/0Xlxww1MtSf0ZknC8Af2a5+dFL2ZHdMp+Cx2f9DgCCwcK4G9W6m/FYE5ZSRb8uTjq00QVwH/7YF7xvuhZ5to8aC/s/2UM2pcVHuW5OtLRV5H8S97TK8pgq4gOSh2nsxuVe0MREHMKVuA57xDicbOs9ZEzya7TffDfJaZa7U/JHdEuvn7+j+pCnV3iiJ7hzjbOaJd1z7jovBpRPhO5ye5vgyaD6O6r1Klvrme7z/27ywVjrfeIe9YxX6iX1aVHxBPOvKgp+naZFuU6v1Wy1ZWZ+q7jrzrP5mMU/lU+YnQilfbRU64MsGiFWbc4vnM2fC2VSqBa1HLlcaICzARwq97FURNya1JKKXBo4rfb+17baOFd75s+dIiCVHHf1scSp+3pTJuenNBei4z8TDC0kmtO85HdxqgBcMwglJ3EfVYK3rS1yGkAFP9UU9TX+sSIZ+XUSg35uGY+ZTIvnZe2qRb71bFo8aspDuCx5ciqb1gH9qhi6KfCEcywMC+fy5mNJ1txjWeT0Y4Udbz5WaoV8rLIa97iufqxXj5n6SX3j/RmfxXqN6NepXYdBNKtmEVR1sF9RkpgtZ7Gb5tdqAMp7LARNha28OfLoiswdvXs2QuQ7WE5M5Hkc2YiKnmqjFmwtMiIvx9JHVqhXwDt1y2uxbkvu+ODOu6uLzbJ4z52ydr92rY6kjfY7T0YjrcTM+9QrCsjLWLKfkcziKssWeErGBzVvQ75EhYt1YFgcyCEQTwzvyTgRArymoueEE6UafmvZLNKoqh0WUm0pG0f/JekipBrk0OsC7Wqc9Tvm0Rj90EkrogX8Ij75UCRxbUGflFao0aLh0lC6RbYzlncP2PFghm18eMd+jwYw8Rhr3oArvkTKFueSpiNbrau58lVYpBfaj7w7HwGiR0kF10ZsuNs2rdGQD7w7QhNV9TIiGx2GHiWmqaNkQnEM5L2ax17RgGbReK81tLQ5P9bN8Wd/rCJZ8m18iH6J/07nsDL1x6Xs/zLtL8lksTlcHl8ghMER5BRISioUNQ0tHT0aw8jELJyFVYRIUaLFsIlNs/+tDnGcXOIlSJQkWYpUadK5eXj5ZcqSLUeuBfLkK1CoSLESAUGlQsqUq1CpSrUatRoD4d20W2Zstc5ej/vQUcfCwW93wyVFGv/ccNN1t8MnkyyyySGXPPIpoDCY40447YyTTi0vudNpH/bYs1tH4xJu8CXNeLq9vOzzixY1Fn6CsSQnr/Ra62AjnH9+UVNLI1RxHSq+zgteb+/4+qF7A53di3s4xdc6OcVn/ogjPUnIe49Xj/0Yge/Hj9JvP5907xj4u68agLSM+77pMmWS7fldVa2oWLD7yXjYBBDnmIfoLri5D/wADvhfVGjt0Yqjy2uv5vCoNcKzJjClA+Ljml/1+QXnzQng4B1/KK0hffVTPSY2IL/1nv59tLHpRa3pV6plCVjbAw==) format("woff2");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:KaTeX_Main;src:url(data:font/woff2;base64,d09GMgABAAAAAEJcAA4AAAAAg7QAAEIBAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgkQIWgmcDBEICoHQZIGgdAE2AiQDhAwLgggABCAFiHIHgxcMgTIbxmlFB2LYOADg423SKEoWa2UUJZS0W/H/7YCDMQRzoOb7BEQo9UW0o+Nvq6XQ9C69R8s62L8g/NwIr+M4XlUdd07swxd2sLCFh4CH1W1dz7uGbB5epsGsW1R9zn9YC0+ijGJMO0Jjn+QOz6/N/37dv/59lRxHX1BxTRxxcHfQkp6gYhRGgeIQE124xqilMafTBYt2m7EKXQULFw38/3PU7rtvxldb9gyzOKoRDiQg6oRpn+fT83vjlQrMbKaPx3dJl6y4n2rqO3Od98sDK69sOQatbOlHBmqsxA7yrMatPrHKIF2llhdMCRu4BIYwjHadKiU+XMhUWdoPBZqILFlOwbdsp0xlSr7/2ttlbP6PC/yfunKvlbzdgJxDlVPpUqycw+uvnWk17Z/5AxLBh0AC5EMbWZu4KfOOgXGunfzg/Ujp1tumwWAcxi18PDiMQ1uCwf/Ulb5AUQEp8JR/QHaIHNLSIegHpVvfFvUWZUZd9eTjn9/fe8/AUm4b1L7gB2hkbfP51pr4zF3TkMgkUlrB5XXyr/8fbWYX85BWEuKhnJXA/2/T3va90Qd5QtoNeRXAjxX3IajSJl1SNCln3h3Be09jW28WpJHtrGb8QaMFaeT9sUdLggUt6iOUAQCt7IUjL39CroIlAZYpynR1fhmqUjR9inLLhNvAf3Oi/e/fHYVESJcQaBMmpmbk6LZmTboFKycRAuvvtjGrwW2NH4fnNLIxIoSA5XvZH1O+G3pz2uUAGQZJICnBvn8MIBgczm4wCILHfRwI2m68bnANZ2BI73oj0I8r9P0vdN5EnnUqHoxXOWKcfFqd5u8LBO16LwSB894PBBlZXfwIRNnEQTUKBQ5a8cXVCYMIyEIRJbTRyWrWM8kxTnCOF3iXT/iSP+NM1Dxf9FXf96Pe3H29s/d0sgd7pMcvrFFl1JnkM0P6rkmihDI66MbDDS/+BV/2XT/s3p0e7rELY1QatX873D513TWf+NgHzjvtAYftc5Nha8zlGvo/67/9n975+37nb38yFrSZWw1cS1zr+2QpBCAdU+7ynAKCOTOfnm+NOBRDlDTA++d3H835ZEwpCD0K1tG/jfv3jMKkdBCK+54Cq5eQ7Fwlfv/TM3uP9tcwQoq/EI54RQihdyhHxlpCLYT80m0hwB9cSQAa26gkDLFiSyJAc4Ks3ylchwwRgsvwesflpKGfMPfGoMQJsxMbojfjFh4MGBxNs0e2Kb+VbUz4HqGQJ65llAkoI8VQxB9ryyvcL0LzkCRHz8og4kPtcg0acOqGV1V+tnaVsjfsEa/ejmRCd355zjep2Ri5eaEeFMw3J+W/KrJKx4Z2CtmUkORgDjiaysEIaTwWkIgGnxkBTGRKuSg3EVQ7WhAOSjgk1OAJhQ/UulFDkt6tP4+XpAxhDS8x6VFtohJkCoWB9MwgT3FaEgN6IBqxAQXc8hS4I+HOWNtpt5J41BVG6WTBxKENGXXMjILUE4TbnCZ2ZltOPJGM/ycmMjvGSUTLtg9bJu6oF7UKeu49M8NOaEDDlRSAQi60EJxsROQK3QkIpR1FwpMRwU+CgrPZFAI+e2QcXqLSAxyLnqYtjdCtViZCK1wTf8/N2/xB4tJ8ikmwkiCl6iUaAb1k6amFmAtIk5apNO7RE7cEkYjFuj0tivQpcVpHMVRxi2RkXKs6ka4IUlveGrE6b2WAHBkeVPaF0yVJzFGAKefKc9S/jjslacMNnBQNUQbJ2KwKl6j0JksnxYDUZVGqDckqaazu+YxOuzpJ6UzGe5Tx+7b96u4pbuzsY7bNIkN0Zz9K5x6C7kiljsyBw2X5GZMDCDYFRCKxHEU30XBpHL2nyTMr3WFLzIAQrGZwzVXKOSAJaq1MyqpJ5IgZgm5Jl4CESlugejnLOBQZXHuetDv0KHNHqRNuDuFCuT0BUcWtwjnHA2IbE/TMLqRx28LeM6UcHhniFh5IIQGklGCkkhCkllCkkTCklXCkkwRILxHIIAl70yAiNCXeVve8oCL4nDMHLZneZkt+s98nzdjSttnfm8yIgmsG20fQz05ElQSJTdiIzdiwBRu2YsNJ2LANG07Ghu3YcAo2nIrNzgTqvEVZ+YHKho4UWSexZCqyzMId4ACzklln+jgngEFlSS2JH2R5rx7GDAfIpR2tLJurZTcUnWcZ042ef6GhcneU5gBoZwNv/e/JQaEWUolNgvSocqMF8aeQ9nS/yoecrVzAb5JcoMYgiAQhv92LSuahuleXzO+QJuCwa2ABMiz8FCo1CVnmzJ7LaXzglxPhj8zaO9Bdm69g4/Y85ReCEE/FHkfjBq0TWSLFhmIuHKdMB+qUD0+haCwq1N2Ju3Mxwa6VZaDn1p+gdtNocqfcVKtbb7MiIlncEtIPtkBOWhbWPO1tUwOUoRFijI2ppXg0zMJ6V9YxGQUjOUX68YOZTRH7b7cMEan2NWDLRFGps5CSJBYxK9vWJFqGIgVF8tB6Ohvh7lqymBGK2jisqITUHxq2LDEoAkX7QPomUnaUAmBMGt+Kv4OYr1CLNZETg3c62i6Oh1ez/B6MlsqKJR+SjHnmd5Q9QILQlYV3c8qOPJxoxwNBxaWSrVpBv2V21KPWKjuUXYg8ufd5d8zWwn0IVbu9yn6wMPvNDYBFmYwrKbT9mPI7KKE0KzrGUNCA+CKNFf4TkZJFiwC5TSuoUckHEncIWTQK13FuZ/ZvxaCUSWBkNXvZWj4YWzTjrHqLKJd7UeHODa14yjrOyo6EVBIJXI1xk1+00DyP3qr6Q6lPS21wfTEjsDEMO+nGIqN/UHMi4ksogH4KcyZai3kdZ02h8movtggKKR0DdRtAz9l9IOUeDKVhAxg57/HiCYIgvzAJoGkHmEX2HGzgheOlgVcGe01M0JuxEdEASGdTQCpMDyWmAbDO4bwjYH5eJHQAMXIkNRRyACkdQI38tcWMitN4dNuXmSkNstuM/azI3db7B4CyC8IpkPtDJdh4WYKfJSdQ887tuuuuQPcFz8N+lfKYpTxlKc9ZystSei3QW8HzDlcZH1nGZ5bxlWV8L6WfAv0WuCT7D6eO37897ifw/akdkWCzxRqr6kvjwecJ5BEZv8luUrKGAJSZGeSQbtsEBQAODXMBgsxPQJC9BdK7YCEImQ3BEId3L3wBCWVBWg5eSBVrYyUFEG1f3S1S18ySTTXunexxeevIit6XgnFQKvjx7+BRlJPo9QuIQgXFrJPr9cZomoGSUJzKNX9WZU0OH0hm2QJaIpEYpJJySbeiWpzHM8F0zbx5rTtLS8bK+vt4TZnaaRB3azrqmoND431FWq2eyVMl8bleZYY8WqKolhRKCgYylzRSiiouV1kUDNWVdHTVNtnEUkqSvFvmYPhFAYrKlNKFg8oyhirSKyie1kooiY3jvCzBs7kNKWlZiUDHXIlkQydLqvQajV5vs/vJHrdjkT1qjvgMiqspEBarIrDQ9yF9LlgDzSDLhLN5fxZjDbSAQqmWSQK4xBBGBdhRAEixYsKODTZ8ac0INvYQ5FIqlZ6nt782jlgDt2D7ArUCjSQ+wQoJOE/mhJofPoVDfSQ4bxxTQbgk7mrMelYkX8VYozL5GDQRmYOEUShoeuEvf3FpgH//O64dE+7LU1JqqSbfCoY+MLRZXNIolYAXhTIhuO8jrfp1XkH0gYQwW8IIB2ZhP+Fjl6Oqvoaaj1VPmU/TZVKs4puBzuH+47TDSHxY7f7okApiaE0YbLyJETPbnZOkJAqowue7bNSchWCHz1dLy0YqYZiSnojjm3ShCz+nbfJlDamA9htVx6iTs4SZQVTBBWjmFf5jDMJEgiJcdBL3FNKAPQriylxKzO+6KKFARiGV9lKahL43gJLk0BBBR54Jh4N9qeySTH7O5rqPLfjNr1dj9TGBgvvwFKE6evdTnfsxP9pNz210PUf3njCBaprQC0hQG6ZAkiBCwXtjnAqc2u81W0+5zD8pG81qSkHyK9xTo+uS1SuvhFJG8bCaq+XSaFHEyXEnYrYnQXss7r8qkPHygY49ZiCyFAq64/PlEP0PK6xoz//zCkwdOkuyrNEoc/hq9yd0BWT10l1lMBbjkvCOkUpdr3L+UJQ6s6RTTRSeZoqx036yEk0HhDrGxiKRa6H4mNHtMbGIJbePj62+2F6jdmQgt5sGg+GynXnaHl+OYVPrXaoPDAh/tul3Wi+FKKAiJskU02zfk2PDLhHSDd0WIi78KcTgUuCOTgykNd31PRvDKbAya0lGTNekB1UBNAeGrf2AcLEURjSgSm0RiYa6j1wgEyEQ1EmStd7pplx5BTTQzbaT1SN7/POEthEsfkrYFHE5ijE1J0yuyu1IDvqklo+D9jYAykSBTVwEpWwwN709dKMrD9qYm7YqkJ2U90uyqkR3RYRxSWowbrhXq1nZIAZGemfBGRYjYYZu3eJoIDkNCSU45Ijt555HOyTMTGWG5sywf51uwx2YEm4ZYZims9jz2eYKkkgWJjGAT6FRwhsm+2q9sZqH0mRNW0zdBoOlGMyw81l5NgItFP3dCJqpLTMBUqiNMojfQg+FNCGsY6bJBflEt5AJJUM2RJtqvWcjuqw0mItEOXzUwMx6uBtrfY1ExGYxw3JCnG3vYqy+Rh+CwkbEqJGzm97wE1oqFf72ppsIZY2Rt+8p9IUDdLADCONbQXlNNopPwQRVaoGNEs+49iYjzCQ/kEEedaaC3FyYf8hSsZGw2ErCMgUuBRPjzi5OPotsJ/2/QG5rZ2Phu6r/RbF8kq/GM5WFikQ97O/3IoP6oCwD8pwmiO0kmhiulKHupOBHcADnfm1dzYkuBr9B+JPEQBLWiNDlobpT9HFwQaKv/HKSgqwk3KM1UtnbAFlGOSCXCUq0DHIsS2/F46RR3AfZp83QqZAUFAkcep5M0VCsu7W5R5y0pPtRG8WHfJDSyAcFyOpvTy3zXbyWgTEvl/1/6ZHYvwUKLDPxoT8ZA39eJwK1nsXQBBXgD2XfIUbDijU7QUW7R44uBScng4BQuhTsGgo7zFVska/2DsIOQrW+WkY/kRY5w4kIhMPLUE4J/L0ui19LiEm8l9kuqU6JOAo55Y6d62EjSpRg1CtdNu/yn4XmpU+z7di0npnIVjgxZZnNhKERzuGLIFuBIvhKfffMtwqI0UVEqwgyZoovTEXSAHXo5xLsux9uuJ+nYHW9P7+GqGIEu/zSZOm8tcZTSBPy0kTPVIts9vh8IQIFVhAazDyUF2Cs9jT/ceIeQkK3izWx283cMFqjBMWpGY16LMzA3axltncVwUC5oKjfeGYLeckTYVMja6uLkp5FLKd9H98g2xVnUTpvb5d0wRbxUuxMc3/UniH3F8clMYEusE2kerUMeNkPgtiJY4FCWuGiNMaqGLxpBbFffdOtJDJIuUd3u0YHrTTI4EDc7h6d4qlmMCzVaUoo2H6SVH60Kzsv6aeIe5rlMqSirqpTXZO1FaoSB+Hh51R26c+BcNzsHGQVZ/IIyyIGVa/Mc5oxMccJ9YtnocdDvmc7DqpfnXWa6R1Pa7SDIk4TAdaqhOixUVURrZx0ld1dwRBX5r5AjHjpZZUfoSQ3KtH9A0B96eYqZxK93d3Y6HgGjZa303zYPzKlNBzh/F60Ii6aW5pXNv8mqESYZjiFeh5JjA+AIqXzAMitT2lVoXkkvvqGd8OWLrgAtvj8f5/PxP8ryT+QnTvS3xUFw8Tt+IuJj0wQ0MM+YdT3x06FjQbDJtgF+nnvlA+BpE1irK9LDXe2NPqjmo/8TTQMe+mC4zgl5/O4AHTLjlGppYzNtu/YF45ipyhR7Dgh1GIAS8F6j2Rzu4WkMr0jkik4XmZRj5Anqflvo6OqJuOVl43QlWmYZggrLzSvSjMz6QHKF5FzZizIkj5a6XCIiiCqkFpGO5uLICUE2PIhLup+y2MCr51U7xFMKsWRH1hmEEMh2h0+aII0baTDtk/ucm3idbba06SRZOvbldan0Q+6bnUux6rqFybIe8Wu2Sa5bxFvB8X0esg5XFtxzhdxak0mFksedTLCINwLzYWTDUVUrUFmJLYR53RoQol/4DFFaBmqcpKX3GJZbInR+cj5oPxtslkvzsYpGBLwyWzIKQItc0p8TBgsERTdUlEk3M9Yxaq8cVnTp+mOHprHZ+qZMAjRT61Iv1Y0G0zp+Y4oL54gYZjPpGIQINc80Y/JwR9OgZC/2xrOMOD2QcuQGzD9l32jMGc0DOern4yPOor0aIq0b5r8BrdSmekLqFDLYL8rVVUQXxPkCbrX1VN1leTQ5oZ7mb15FpRFOqXISsxxVF7eCwKej1retf18yjTAmbeP0UrZzBh3hxW/1+jLF+eT7z54IMk6TnSn0vxx9BpacF/EGAF/a6Kp4BDIT0/yu1c2ds70VhZ704aYvQZ//IUYoo8djyZh9KveAoRLZECeKXV6GPNDflaSIga93qw3HfqgwHvNQFcFPsAdSmGIHw5VrQrH6lCdGcgIEn7mEgxSCK3VGjPxf0GHsLS7Rv9DKazdDcupRXIvpBdttjuMHNPp/3ZteeN9mKaydIRRzgSGApmoMGHb0U5RDwsatUwWvsknrIIGnnd4gyaGiPyfZWMJG+fQKYduGO7vg1pEBKeOVCCVSnTrz1p4odVJB2Pf2y9y5clGm4oxsPzU5MDx6XeJjxmX8YibwfM0l3lneyJ4BdubDhKp32zHfaplxs3Y3oX3PNuO5Rkw6HTgh7JCkX49sLKF+F0JRu/3/JctGIoNGJhxgBSec+ugCu0dGaxYY+MmLoaqGQPKCHwNhGluuYXfTaz9scXnN+5GVAEXifsYs40kQfom0M+z/iahAdSspYXnPSvQ9bot1SfsVYwlBr/OPjoBMvFUKIzAMCyWPw9u4pgw6XV8i63smNnPJRIAVMSteM3Ec+d2hAaY6327Rs5bcojTKfATBa0pGClJGWvK7+Z2FPuL19xYR0WJVGbEVsNSg/CQZvnnwRxpHc0r0EMkWpOpAWU82uFwYJl0iQSztxFffDuCttHxyGMiaQ9hZ5Y5HFv7YVucMzXXU0kSC+sv8j+zIV0CdB9XexHFDekSeJG0Cl5hYjmzEatIQdCXR7eFRCwuDIlkPDBL9nWhSNeoBZdNUVMymCYANZujP0NW9c0tjZmAUQyUniZtug8IH2GcKlldHncqBWoRX0w4WGCqCMJQvTLfp0OepapUw2x/e7xE2LQtYXxKUT9NyJYgmFmszDXpbsg5s3K7iOyFRbePhdNxtu/udyBhPogOsRHf3JbjNR5uqPpGiK0nO6B2wZZsLhy3kTPnGyYgMxM2vcgieZXT/tb2zA7JHqQyCbktzKeVyHfAj+BEm83WPAfQu7lkCUM2favHvMv44vWFc9DjdIAaqXFtm6ARU9ezDvNf60yRueHnEhH7phGoPLKcy/mOXLBnVrvT6Y1Bd2nGshAnG9dJEkqwcfPI2mP9TFkxUkqcrnhzonmI6MQ5YYfMd971hGCt6iWWcNtVuMVPMdJ766H5aD7KWScoXEf6B2p8fHgYJVh7fDmNUOW6jazv515lBG6Qo4J+Ent5emKs3rkuNcxCY6AzpFI6OihFhvvXY8uRArDzZi4w1sUQBP5DFq2S+3TwJlsrLxwdS9MaRGXZFXoVwiiFQvTU0N2vW+Wn52hv03uigk1NLsn7XFUPPmXGnY60Gj4IRQCKUK3rAXVozLGqrqG/eepB+bPq4W4ev4OiGA+je528GaWg/oNEnqCC+rnieZr1RYQd+QnhPVIx+ohqtWRCf9prSc8MbEix7r1XJ5cLdJGWGBivm3bodm7UyxotLSYEphVRZvv3a06MiZxmSK7RvQm6b6KvMRvZnp5symttk3UWqGUSLbIfntsi/AXASR/J+6rvFf3kzMINLNBh7CHbiaQpkV/KT6DbxwFZee3Q3/br2JKFNMvy9cU2sh3QCxuD5LjCjd2lpkTB0kYuJQdIYkAMT8SFxJCz4M/qCdBujHNdoJ7I46lImhDzY2tGIKaWPWvzgJE3Mav4mjd/RgzZNFEUnqsstZ+cEa3pJoy5Qi8DHgV0SgrP23TaR0KGYol/F72TbFOwjsZuz4Mt1JFxB4UUmoZq9LjsrSj3mPBQPvNazieLkMjvYlhHRx9aU60JlTdZ18gM+63c3+V36qTHC/X7dYnYrKq/cekmOOJPG1CvhtRyQIEVn22NnEAJoiibAzRvOtcE6GRO/yj/8N3EWEqiP2YajFXCRBQNn0qdSZrkgvVqDTlmyBcQJAHVp+1teRo6YIxh7c6dLdUwUU832TzoLDNawtHdl81sa+mJFJeuX18zvzkZuWcKwxCjqopQI69FezqpJWcg9XuPi8yl1WvCVkkfTxKPA28K3P79rEjnMq48RuBwV3996+m/UuuNmGMC5pcFQyeC3iFVyBO41Oa9R2kmXZIOs3R+0rVBGF9Ee0VpM+8WEy7UC3YKxrnUPYcxO3kNQsrbIF1/P4U/KDdbrLBf7UbrB/Id2+ygatZLDI9JqxmRcVv4ohNKPkseS+vNrebioaQgMdWpPIdZoEniPPfWLDJpiIiYJSayVw/BohsPUlRp9cMYFskZOrv3exHyFZYzKtNdE1rbo5TbLNY5SkdzIvWdz/MRxNvkTn4r+bo2vx5pfxHB6lT+q6KEpZk+Gf1iOlwwE88nqyMqyPTy0WDmeQnPUdEBLBZhjLCgQzv/i1r0In8eV5bAz9/yTbsMTS7hLLU3Jyiz4tQcq6fCrH6U6m5m/W6fYJumR3oNAKjEbxEQz7QDgP79Ln1+ZYH5l8I3uznqJNVQI6rUqksmajEp26AosDFkSwnHUUNBhQSEcBAJwzgVp6S9x4PfZhgQTvw62QyOQ2GW2Uw8F9aWStgMDorNlQW/RqkN8jNc+DFFP2fdC+2EKCkCf49JSIdCvfqcyPiYfVm4zL2LnzKfXAGSweSesRd54TiXzdZdY+Kbl4h1MLpdI6QU6teZAnSrM9bUcl2YqjoW413Vhpp0Ig+nq9dV11jVumr0WfH9X/wgzuDnJSedyE9y+cGQokfKzA4KPLR6ybECS40rG1/3M5VEsL+/px+rOcRz8pKuCjvOM7PE89IkdBHJSDfB6KYznj9MIrWfEDa5SjP+QNg3mxbYm2eT7lfog0q6uHluFxEjzEAMpsrMVEus1AJeOEZAGD+8IosLI65YVbKS0zQr6r3b/TW71+Ovsyuf6LrDqn2n/ZTsMsb6wCn7osLdj1Ng5Q730oSq14NakmhokquKE/Icx0no/zNzWrBG+zAdYgsl2O2KyAzDCIKaCsYlsF4pj5PUoE6lRT6OaS0RAcQ4I20uCNJ0P6OVoA18eYOWknWw1Mmwlxzpj/1z+F0mUB8z+V+SkSseJ5EJh05lyrgQPtVf9ne++XTUncsMiwh3zLMv+WAviwPdvIZWm+BNAwq7siV5gzxcVmy9eF/14844kuYcDrRLI4qFVENUKAfGKaHvWhA0r8xQu6DHjTnw/WyBhjoRdeQk+/rpjtWOpb1n7IjbPQ2Er1deN3MsR1c8Ydv3oHFJPbz43X3pK3WKV3j1RzruPCEoVhzj9RcMimfUQl7NtnjKty+69YG5AHs5kKetehx3mM6ceexZB+CzjViyT/TXw0nVSWEwO2F6RCo5Y1q8qOaeyP64kHiSQLybZkzBQTB8ZCJACN5fEUCqbqm8uQaqfY99/ljVb/TH6bj/RMvC2nuG2R++P7zByj4TWabm8B2RxXZ2S2019OWHjx2Gv/8Dnmj5ZFClXP9rTnCWsqtH6q143VEPC14RIoCr3VS1lvLjxOMEzFnVIc4L9kIO931f0XXJNZmzAly3nKxXJfuzSQyvqt28oyHw+qFnXl5RxkSogJ6wfjQ2JfpixZi3lFpjkOKpKaHcKs82/k9ToSa0zeRxL0uYG9c2p+LG7LapJ9+dMWW2nfltlsWfXCNdnKZ0akC/pThnbPSJRG4rgCWYTEEqLCZxqranJuDKDAU1FLft3MHbqhblTn+Yr3+P853Z1qNQqqWNC8f8ogmhM9/jss0YqD6KfZCtR2BBKp37338wGUhtJZR642NKzW8a2z/ESTy5EOUapowVbaFaX8Oq9LRd1zLSb1RpYcGNT7s57CUT1WCWKycNLKv/KI4BwMA/E2lgaErV5of+uHLL9mYEe+yrtseEn2H4T3995NrXWks1OX8ZPVbR6M+QEF0WDI0uGwgdrb1ATSnMtZq5P2djBIub//p2e3UXyKcVJnce7vOgmGSpP3xqqGbnjdEj/liFA5+eI7+PBA7g2Xc80n9XMDH0LFgE1zOYsvr0I1evfm1swEUzYt5qkMv1cGaGOyCVHZER0boaRFJ5RzBxgYLFH4pA1l5mbX2DQK1VMxXtW4OG9VNl7hD+mwVFGx6RwKX/2+HNo87DysPO8a0I7BchLWLivBA3DhtHRkdNZ6TiM6bxcdOY6Sb89MpsP61hOkpD16KiT4lj2nt2pRUB2PS5RHGU1+aNgt14zd8JBH2KZic7FrvcCNbUnMDv4s4rdI/puVd43St44Is8MUS9sPnZp3Ka6NeV//w/z/jd+25+2KOZZz/oj7k9FfRy1Rh6KO+8ejS5MaVlbeFXb+cm3W2QYQ9Nv+q+Yj+UbnhvhYfVuX9/1/WaYd0yG/HHt6xYtgE1wuMBbU7FKuBEZeSeMCLoOgiZm2FyMCCmW4DZFAdmMdwPOHUB29W//BJY9hj+Tp3qZzWhmFQ3jEE/NCQHG2dVKVuP507PKz1W8pN3FcBNbSGpgfGcvTxZFBArAnC6IpZ1zqnoRB/sOyWUDn2/vwjmOHKoky3vW1ue2pD1z1Fx9SylfcQqPnWuLj7rb7V8rrhBNwcRygcrGFiPic/QcsWXJbVXcaYMmQeQk7ouRzuv2KXgKis1530K+QfZDH0nLV0795VjmPALmTlkUd/Qk5zY48v2ZIVyQlnvDfGK3e97Kg+/9XVD2/b1TUSXLNeX+xDGNpZYfOoflyC+92w57/3E1D6jdu6oh3ASluH/HjLdEYBXHrEX1Gb1mH5DCMNk4PK5lnnvW2W0FKBgtjocv3H8+BxZ2rs8grG1pH/l0EeMNEtCcK1cMwQLdWMjvlV3YoJf15OU3P/21jkfsTr82aw+DIlF4fw/Cjb/9QgKx2Hm9ovtGY86JZpD3Wha6p1+Lt5fmOf13aJTJrbv7yARL1YQLC/t8jNxSmVVIALXq0n4ZZHmba6FClgNRzXlOYE5Xgl+SZ9KAkuA+l7lePu6dQGMDeWVViYFw6nKdqkvv1Uw5StMerBbywgrDBn3Lp4VKqgQiLUeBWq1myklHbQ/o7+sE5xMKg4VnmQHVEaB3v6Shg/rH1tKTIufM876TM0UzGl6cR5EUTTACDRv2dljJEXGkc9Nrl15EbFGE/UfMYkyvR10romK4AIyjqB3H77R2rn4IqVMZkRe18tH8En83ttLwmX5s+b495yGulY2+YW8zNPW94XIml/tfL9PaX08qX0w74VX/lSry/+Z0/mN5yV3rCJL2l399k31sYAxmoEU6JLXGP9Oi6cUtoZPYaRiUSvV+Sc6UelUVY2Ljm2lAiS7E3ViXxFq2amaDz26BJaKwP7sSnU3ZSqQZEWd2vvZ+P0VoUoCJvF1+LG4YW76geU94cJgeMMCmdBE1N1dVeRsYddQQa5NZ4B0tul3DSdMxNc53AVW96qOe4XTfTCQk6Vl7zj7+GO8/n59ZjHfxkSLylfRzs1rViPI/zNxsxRaGbu6CMdwgv/aYnaWt7TFsvma993K4jykPuS0WIhvH6L6SLTs39CcJ/6JOn/OKQnkK5v0L47FPZ8keK1Czse/v4vjyDgimvj/rEXzrqH4Tqh7vu6TF3ccSSI1Nwq0Wd1v6bxh7y1FapdjTYH+a2j/OWk+IXkRVTUqG0I40x5bUS7+hXI29qbd9uFIfWDhoZeTdZ+1i9pte1X8BEJs9s51DclnZ3auWinpIowmIbWza3mStzs6Vwxfw1b4YtmhThXnsw97U33F7txKFAC/a2dBWVVrYMEdD7Uk33Wy0kEwQsy0yTjqyAvohMa3L7ZZK6vqVtxKKd5gjvHtfBtG2ghE+rOieOqn/TjaCnHUZ++3QHCkhaS9JnOcovx0pRMCyzOpGF9aHJdeb2BrIJokEA2shK2OLsyjwNPRirf/1MK5hHpCkkRnZTR+iwDBHsEugET2RG8BHR3E+7cVxx89A53sp5m4gtV2XuusefjA/vxgeQ4X0/TP8slnLzoAJToxKHSmx+dBZQLj7ApmPA0FAI7n0TH+7t6qByJVtEcBJvOYol8puLoampBU1OxRrn3K0doEweYd5m0AjUH+k796KmaXpcwRTX0fLmwtm9PeDBsrU3qECQHfOkVVRdZvVjakR+Uch85RNwxvbmBHzZpIjai/m6m+ycYpyK2dS+1nEvElYtK8KCTNS4LD1b7PMMKL8WyDnIwLOEkO/t5txfGHT3c1CBKbZy8tGSya05p/NijeeBrqbN3Jsziw+8HgJCXHsVJjjoDsc2aN6jtF1W5pMFD/DuCvaa9xrm0q7sgnShIoOZitd8yuMG81jwUVEsdIxMjRWR4nNTPzJLTvAJ6TL0exzDqzw/471ZvruWSji39GgKGxWu5NS7LQVC6ALpuG73wrAJGkOerfQFOv/1GUHhBK0TDU+lmduOGqrXOfySmTOuMo0jkNqt0mHI9DTCtkMkYguYxzIWLKTF3aOJqVlrjx3ZnbJ4BRIVauzDnSAO9m5aYImLJZDRsMGx27f0vcch+sgll8kUDehyGlM8zQpwgJbNKkmf1bvsOw3rBG9gxsZvbj4j4W38rNG9u7wve65khPwuPGdnVYWOFTRtv7Ihm1aUj7A48LiBPRdN6Hpykg5joB1+AVxtGs4rg0rSPnkhVBp6nnqqrwEJdGB6Bd6AdeZ8Fi0Yut6dxHG3YougZmSkvhkZHir0ggVrj/9JcEdI6+POt4GoZYvJFJQoYZODrL6zQK2ThQdQyL1mwMfAQMRkaMW0ybCfh4fl2ijVI3nrZIkqpQxLuZi5QPt1VcmzTVCyr/STLvPl3fTI+noYL9z6TwuUi632HE2Hag7jwpttmhXbrI6K6uAPiFJaIoO4zSmQ4fST3dqQxAMnF5KszxgB+hF7UlrfrcntRV900XWxjKd9k6TOwtsMa+xGOeidvk3nP5b9na3ib+BFDUQrQUCJXD1VO4WOiH1rFyS9gBDmxd01+bqwCyBpKvXJ2sUrIcKNzOa0sEXHMSG3mnJe4EnZFZdXZzV8kxdTl4fpIJwcbiuOTpCjoMMVKOTi8LiTPVWA+JHLyKgPSHxIjv5EYO08ZlP8qdx+eVmbpUbRBHCejrKzF58vDSfHibA0Y9gT4/7W82tJT0m5phpOlfiFFPncfvA4wHkkuFygTL/ALnbqKwGY9GV5fJDFxWZD9dPx7ZCt0MnZ90aNVGuCXaH07cMbJIG4KNaQmZqZmvhmgJR1hHazxlTifUSDNcbhz2zHgIYDxIPnN1kF7HGbIcsNVe4Zi3pE/+C5y3RWe8boojxuJ4c0WEpU5OQ4ApGXiK9J7Iviw2eEkRllYcF4/kihyE6MQ1mPD5zyKko6igM6nKVm4EPE8l3LvGn6q6c8AM1v6BGPYyHJ0FeIQBJsSBa56S6C43Sfq391eoKs2Ju491G37M6pguL1+7bvOHHcW17q8v1VX0+MnYur5ZpmBWj3wDpwsXdBZGaH7xf0OhUPIyfbugRkCU+v6BAF7Pkyeg/XGZySu3JhWM9NS8PjoLatStuA6VgM0p/hn6yeqIB5JDO7C7HJi3U0EqCHuDXb8FLpKhxwU0dj9xFX89vdPKX4zFBBLd5WbJnG3zOJxYf8/12VmHsILcgFGURjWuKSSESsHdGRONYocoDDfqaiz7CuzF/nRb6oD61kZv1qimVhjJocNlPSsjkmh1bVtn0pnTud0fX0PBXQLLhEFVoTaZTTkiF7+K7z0KfUoO/1BZ6zLNVLUFTrmiS30Syc2w+m2Of/PGZnW6iMh/B33eIykL5+ax3/0vLSK7r5UaRowbg7BBTq8DZxqBsm1CnWFdNBRZJJmk7eY4fx4TpmveAru1xbnTl+g3lhDH9qSFSsro7q2hyB61omSz71IFlzah91RLdg60PPqzKLb94+2vUXGJIP9zs5kkBPUMKkDzdSOD+S3dJZq7Qlvs83/wUDJzI+lr6r9NYp09vZXa+oTbShpRWEIgBV8xlosHzSrHTz4SYDDfK3WJh9egABLg1ncgxEkZzSQjdG8tTh7icjI8Xgu1LQOFzYkgZM9VDz2xQt8PKemT9gU4ctLYdfhCgA/SAgSpz+hJazF03O7GV3H1ifkRpRvv24uux/WN1GNPq+d/AHvY7FZn6OoedRTpXCXTp/1RJ9wNE5A/yZWzVvJ1h3/5p7JoBb4hAadcR8HYl2PfWm0CxVKxxe3CkWzAbSQpxDzlSUKPqaclwbE5TM4qSGeXsRydBSsBC3tR7NPshb8Y00DiwR096/ImiW+vkSHgbAkOB0dcHTCCy7dtksxdIP25PJu8RGBnj6jwYp7bG41zVByi30e/XNN67Gvfah1IsOQyAapcDvK71DztTiOlwqWXdmP3mau49CBEKKmj5LKr3+T0ygGDaM1yuTnqL46Le/IXwMKxuky3Cb8V2FK7Ba9HryR6LQybqf7VPUuLbBk3pW8wj11Sk8TNTbynULxbJDEaYdGYNy0+OSGw83DZeXj0HstcgbhkSmyj02ElwpImFJFXwKqck8YRgTJhpfYM/G3fcGt23v7cSffWS7pcON3vNJ6AqjU1kFzK0lmlsRPI08Z3cVD7OXRqf1M/nStQUrJo9Eku4z9nyMnyzK4Ca95uVCbcD2Y/yKy6pLfBGY5s2ZX8xbCo4p5WZmLvBA7H9fBL/2SD/ThrlIoEKQo4N4JLf+GzFvPKdZ/qm1l718pbVYn+5weBcPhUCkhw2UnAz98XQCSD8B+pf6R4oC6BV65+W9+ZKBfjx3vhohHcaXqEInF+CHxGz2RD4xXVUFe5cFVcUdNncsoUIgSUvONGUepN/InLpJi6UFBgcsMiufsNv7nwARXPKIrHEFjm3wXByfjPzz/2F7M8BT+EoW6oM/319/8cXRGNkp8D3EzdsQHqCVDxoXIG71WRH68YRAGgXRSziHz5oy2lavziYUkdH1JmKnjd088+bqGrog6jEKMov1MRn07oHBsvCQH0RvXk0twOZ12B/g7S17CgZYk2afGWX1N2PfBPsuFao9ZL+uk6DZHVfYxiiqYOPt3DNSt7cSlx930ghAYxiVBsusm8BY5fSSsKtvpjjvqazdLM7EAsoDYMPCyJHpzi4ojRpylpyJd27zzp4lupimSevz9Z+PmugWbSp55H3L1+yQj3m48zNayStQiYSmM3bf2+d+OdhJuxfjyrid5sUA6v9sR9mnJZVc9Kv1KnFLVRHlauw9RUD5VkwCPndAjLui5iq36AEyCIhjAJubcOYwzPBODtM/UL1/iki4N1uz9lugWvGaTP5/n3Wp0vYVLi4scz5jqvQ84N10uzvXb+Xbk4NFu2UVWaoJqSNnzSMvvPfy+DEwiS3LvTJjWUZgXP3Vr4VYbyBxXN+XhdzXkRULXBxKxOfaMNI1/Il3rU4yDbHeNLS/yRHPW45bF3FN0/Tc/zkpa3jJrftFSMNgRhFpN9ufBWaWUm0ypI1exQboLT02N8aVoiIxNGuRwlv2bOs/MmBJbfjDpUQ8XwgVpyKamEGuElXj029sQDyNdvAQBdyY0O+sB37gYPHGvfOfP/CHwJu7GgHwJ5T0gmM9mC7wo+gUvfvq3TWTjqU/lmP12TIxnZHrgbgh3PIsK+X9IIx4tP/q6eSwWI7e35dsLjIxyxg/eqB9SD9674iJEaJXticQCI/HxAh5TwcpEn+wWn9om/tREpqUFpis66k/akBcQ4RUU9psVVisWk7YKN+yt93XIl/k0jZ1FQsymFl6fikucl/WIjtU1c5oJoMoCWKGLZNS7a+qCNRuHmX+EoyZKMccn0ExZpRigXxAhhE4usaMv1ooulg+ey4ohgxtlbLZ0gSmNdMrXj+eOaBc+CmWhItZizTBrULgXVQ5qeqcc0fd/+VNQzLsyQGhU2acGXHSQpFCT+9+5k383mUckadLfNpP3CYP5bR/aQioezNzaWN0RnbZyaOteLeCMLVXXy0gUKQsvKI/jsgZjHSGAwLMC8CEI5tJ7FX5ApyWnCfiLzTe+zHhQoetjoeDBj+MoA6BekkRqu3KEUU6oc8+tWFv1sHHlZfypSp9YZP3Cvaq5hffL7xVoiqMLUnDr8Jq9Z+7zFc+9GVf/0xV+bL9CJTZx0B8o2AMBKUZiKY6pHtS3FHpkX/bXg/qHdJ6Gx8xWyn0VziW5c+8S/ujo5A+OAIXO0g2kByRG87xX12EFT0kcWkYYbK0zfuERpywrx2hI0Q2Liqemj/2/4QQkR/wsn+vVlfRyLXkxUuJPmrH53Y3l+TaChvap9+HgHc4Mvj7RVacq5efnPpPqs+s+Xqps17a7MIbce2Q3b3k+jmW4iwq07w0rz9an+od5c/Dr52c1NhpCKXvxeC8M2sFGUIAWoKoRkpTWKyHJAB0xsYB1RB1nFrHgXzxSZOPGDQbszq4+IYznaBvwCE8a50zps2kp8JioItvlU2ZLKpvUPLNHmzYyNaEhERG5zIit9gi1zOgSyAFCrfJBUZKWzymJU1pEoF2fqtpxYupSWiEOfOZjmjLa52CEMplx4QMgrUu5L0vBqsoe0/9cDTxuEjj/tdetN46ab8mPQjyX8C5Q949UVrwoaTdjL/+pcc0co/oMhvnyrnMqwJZUva63o+GCdwvClluqjrHLS6ATY2GqXac28H1X8x9P7KjbbPI7p1xoyPkzRXFHocPViKSkm6DBTC8EZmQ36d5Buy+74w5sGPQBjjE+f/n3Fe6LCXjlFxRYee/fa2DW93WKXWveYt0NwRkYcySyB2KnkLLpO7h0f+giXCAt/yLde/LVyfrqcMxPBxtOBLdOW1PdTMImle227IujMEOM4UmmzwfmrvCoFz6R1pDjxwwtiEsQpioomlL1//8H3zHk9Bdx3FB8ZZq2Zq3U2uk63LNW/ae8XyWU+T5GJDuijs1I3O+X6hdXKbpIw70zCJLrIvlFtdRFx8s7shVxsngp78iJeu9wn0CS2UTP/ZnOFh+MdfEabFQSKfMHSUrdjdNGz0dq33kQ2eIX1386uJBEeNRZ8mfSKQa/F6Wrj8KSOl+hQlf5ekWHtrSteCeleZ2qy8u6LSidFDdV8VtPAwRuR0NlVdzrtVrVFh2vIHjK1pGHFrZS450GdPedKVqbcmS5anKnzvIGDOMXC0JLQ7rx2+EdD6eWcOdlJqb2kwgwwQ3t3auy8Lx1B72iUYd+RYU9Z0m3WvYWt4IGj6pq1iYB9xSJUqBfM/U/+KXeZEvo0tp/1HJcCl8uCv3zkgIFYHLtr2y/Dy/et6EBIXEzG0QWZV44Nzjueu2qSbCvmTdvusjfIRV1+lJG8Nv8NnWTk4Pf3uynp1yVlFxxiMo7PT6kcXr90sfB7Ea/0lXGkWa4kMPsNXPgGOi1q9JFfXbmCDK0gFen3HzuOI/GZ6kUsKqn/EnJtdgo1Rz/EkWbVHbrUsG6rjn3suiq1Wn1j+QTKHuMMzxMPv2p908gMH5yOkMUZvDxpenljzJGa9ehVozpNM76LeAvPFaqNMb6s5MEMy+i5ET2OYySAaaAqcjlNu8ceMOs/o0TwMzgiva4omYK6rXA6jKb6ZVclum2/3ibSnRiqczb8bs7Bde+BbFrUFcQRps0k/M/wdboV96CqgiTTqGksqSTfFj+mVn0sxPCyBRz/5Tsem2Gtfh2Mm035P8dFgUet7cf7ZuLDD0lqY2Mykb3GsEa3cmtRf9EAmydQT4gsAS8Pvi9LnY+7PcOwACTdRYGSE6YtxKWc4orBdaMfdpSUZ1aLF2lqW0Yhd1ltvOHoXxVVbQBkW7JD8zhcuPno54NZY57aO6PF7YigSAAYcyD+qvtMFXoCjhDBwCeWOYZucbPQmH21svmN/30NTRlff0duPiCHly/P6/oj4cpelz4gX8Mo0icBCkSReeabUY8z/PBb6k2eagSkp1NGbmYGoOZTzYX/6bN3yxA7C5GwaaS3vFE4q73Y/wz25aNKrGJuX2ly2Kp8mNcU6db6AHL7q5xw7w9cg1fOjj5lBosyktLumv7kuz5lyGxMNmTcED/3UjdGeTRd993/Urfc4DLof9dSMfzpjy/oCx7o1VKRoMzpHxDAQYDQe0WenHDxKWvJ7WapTII4gStAZHTZQosxuXL3vzUL346QwbMqqUECp90SLc74ISWDkrXSUfjCRuX3WpKt4E0N53EgTbn5DUvhDYmjVLaHTKnKMazRLgVwVcS+bB1V1yTaq95QNWvRgahJpEn+ZaR+AYgdOSPAYwtRaaZOwCsF4o6S6h3RnHz7p0uhcDhcFb2FaE5anrN/yKqsrks1bSU9NmUNvPjOsTobCoojOZVL7sTeFfGWlJCqpnO7QPThBtl0PuEF+38MMAIPRLE2ns5cQqp+J2qdpnHzDtQDtSrv+fpdU+OTS8F3di6gnGcPQeS+xwyaZXVk99aetZve6yirctYKPYSTUm/1MAeQpx+CTphtWAZctRmOpjs0coW0U2G0SqdYcCIP1q/+9zs492mw4u03MhJ/DZq1yVS2nywLDaxkT+tSuhqR0oKPtimb6+vK3EeIz5jCYIffcBdVHl+6ZvsN6nqVvh4yxi+22ZLtzPvYhAKGwhWwUf2kJaPVKjvll7gCh3xRt5njVdJFPBf53hJyB7n6tQvakp/UJNd9q57LNlqrXXRRpzauDIprDAq76h+tyNP4ZsoVHOjCoEV3nBVxh+XJPluWUuGhFv+YSjPIYaDXwN/DTGYCUo5Hz/CIR64MjP1v792ZjlH0Rqn6lY8D45y+y20CCtdiL2GAAXs6nSjZMO3AsSEC2b97ZGEZ/mOYvCdWgzGKODMFjd4d40syceSczC2Tb80NF+h2Laa2oNjKj+zUxG2ml3DjOP0dTU1WeHcBZInPFXX2bmCT8E1wdkkoL/U2s5gWYUkC2xNJjmr/d4UxESOEFf8M9OI3Gi+H9g9eR40HgDADfz+BjJ5DdMLcvDxvgR/EvvpdgKVWFhGblwLy0M2qrx0e+P33PzTrwzFTLW/f/AcbhkoW25htGajgGdisEykTVinfA9Q9E3j2Sz6KCzJbHhLjCBWpo8wMfP2UhalY5Pzf9T8Avf/DrxD6ZIPv3qkvnxvobB6orn+he+c5Z7m7XZ7ENYTDbW3Jpz7YtAdWqcHAQEZJXK4QIjJvWjw9lUUAZZbLRgTfX2yiPy6nlk7g5oDL4yFR69xasD/93lSI8fpIOtvCDSili65qeSGsAQqEhcyIA5EGgUZddSVyMtIdcWnepOBb/FsawMs/GLx4OAXjMXg3jHd1zir8lzvhxJZFKIBKaEYRygp3EaQpmtsjEaC/vPIY1LPshrdRgvYzrr7APrb4GhSEbHdxDMvTiyF48yiCTEAsQ+UCaFPNVNOQ2ZhAYFSBeEc3QX5f4uczCRTR3wpDmB0S0uQSOAcIMSCRLmT3uReuGJvD78WaRPga79L022BgNv0vius+FRQ8sFj454tcNqQJKiDYXgUE3pGLvrIGfK1jRxzA/QBFKQwrv4BBZ0mQzRnbV4+cWDgbJleYIATYdm3ZPT4fWliOvPD94wl9Y2pU7sDRpin7kpok0oRht+bBaXpcregH+sHL0q7dVVPhfWsiORCysBGfCZ8920Yv7jIXL3GoSDesUtR705X2UEFLjOKEACTThKNiVZ/II86Q9jzqksmXKlWYJqJzDU2nHK6wIMRUNFOVi6TDCt1sOgy/spDYuzH56mXH5P6Euh1wlFj7mHASGSqMAkT8R6fK5Htfz/e9aPb4BzUvETAFszF4wQeqbXtFEX4O0M0z3O97/gdj5tu9zQAg0nfSKwufr+cpTFp1cFGXaP/9d+jXAaS7q422hc8WpKf8JbqcofoLVDshPB5njcGzopGn4LnHcQBAfNLELw4HjpKgnlyUkvawclbFWZ/VIK7Q1BGq9D8u00Fr+eAG5vID9yOWbqrccRyQCOgfSF6Z/PBNrHXkJ39KPNkxujpd9/DV9A6vqgufuN9lEaiMwFZiEWq4qL7Ld79t5dTJIXGEMEo6VjaQ4Uw1iRF1FV2/fV1SsWwpBmhz2pqd1bcYKVLeh6HBO0hTLBoTlPLhqk2OxpqU1qoSX0Wx/OT4I4vantMJRkzZEt961uOP9gkk+DaI5/BeTZetADAByLSO5NBinYbcYnTDtLLUYXr2Wfsn5z9XZwfjlR0pX2zZvkqw4pq5UkMB5wuU4hyn+wj/HqgO23PekF4n+RRA9x0W+Uib34RvtbuU7hYm65PIOzNXSvyZiiInvdgnddXPN20xDIdfMUgWSmRLXgDgVyFFk8xQfO2mhyS3UmIU+eTP192dIiARCrRLYDDX1G9ABBcIySHTcusSs9xbOqJQwonD5XnenGxF5kjGOpKXrhJrJVdSo1JWln/eEfrJDunmZ3QKAtKVdibLQmHGmCULKplleUSLepvrK0pUAH0bM7wu15I+TWEgyULIx8iFtKyAZQLyCXxYUgzAF0GrQgjJWqmcJZZL0+UQK9JwaNCXZ9e0FfGDzlaWuJNpCIExgUKH3T5DSbDhjtVSRpCXi+BgXaVdHBzsKUgZE6tTQIPONtUGCzUwsopcHUmwNIOEucI/bqz7WJ9CThX5LHXd+sYJpSqLfcamlHgwrtpL5DTU+FPFvlpLE0UKCtlvrHPgPMkWSrbzshbxqXzqOilaN5QyiwAg9NH5WSrLZWMRdJGsaQrW+lKZYIHTxPgqrXBpntUmG6SpIgPBTsrMEEHL5YisRsxiCUCUJEEdIwRWYzhFYNj+PKOQjgvgksJIh6SSVHUSuC4HKdmlkh2AkywFKbEADihpIhJQ6o6b1Zy5wv4yZzIli0hohN5OV2NtyMW6zwZK87Ps0maRxbgF1ywsytheR6zSK4bqeIInrdhkEUCSiG8GDkEwrPkR8c7Qc2UYktJSK0SA4olet0UpQRChDGamyGFZAcklBLcDtrd21fJ5XpFcLR+XzwsW8QcLYJ4QAfamEUwtCwIQtWWP1vmjvdwpL/4j5MjXnLuvfTkTY7WuwdFep4EgAoIhyE1xlVoaau3/EbQY0Ep0dhN/4+qQrAFylg0BN/OEoRN1sTTLTDjDhkrmrdzObshQmeFZwNudYBLEnFTw09EXbHAV7sKZeC5eicdwL59XtbsJqi9DPHH7/Ioip8j3Ird6Q55HyHUHOcWhWwMblpsRnEqh2gIox6XkdpiiKs3+gN4ywPMM/F6+iyovcn+APpP5X6v/otixwxecTX3cVG5rfs5M0DZaHjc7F5mvz7HQeSH6zYMEQINDOEyvkeIMgqCmugibGZnZYDw5O0fcwbdTnWqaVAG9GMT7spcozJcAmov8D4aBPJ78YKa9SynE6ObBwExH48gKSNN9jwPu5L5UzzUnyiD6PJ4IYhOlw86vLcu76CpyATMpF0E2HvcIBe5LfkUu+WukbyG998EuViR4T/+3NG6eF9cShm6IXuBje4AcQFmMvgcKhRRQ2jEJ0i8SSO8ptMT21jaE+IBm2QpgHdgKJvHoVgif/61Q5qBbYXyxzY83biVtfaD/xMpk94v8NLqAScDh2TC7XmePpIvjShXIuFGnFRoFMCwHqiqKqogZSuX00ueV1eG7JsJ/uFM2zqfhICewsTdJoC2jCNQdPHjcxFqTCpSsspXKmKGUaD63jayJw5DwTJ8PvZARpebqMKcwOkJuBu/Tkk6ZGS160mWJsmHqYErDI2jh8hVQmp8dkW4pbC+h9AOgpYoNvcpcG0Rgkic+qO9qzPyOpKTIUo5WnwetIfal9Ml0ojgXvDOxhuCAVermL6FhGbeP1SIoFYWB0kqJxLiutZxp9IlZ6iVs6hgGEgJ3ukVIlwOnfeDYK85gJKsaaNbRHUrxa6tx0GU1BRHL9K8yeRbr5gZC5RyR0DAbL7yb1szqWlQyY0QSqUZ1ollXailKOqqrQvzah06Z6bf8G3VKGo7GFv0iZzYVLh2b/khX+L91uzoRhETEJKRk5EgUGoPF4SkoqahpaOnoGZlZWCWxSWaXIlWadBkyZRXbfa2LW7YcufLkK1CoSLESpTyycgqKSsoqqmrqGppa2jq6evoGhkbGJqZm5haWiMDQTpt8bLcJW03a7x0nnEyhd10PCjCAQx/40Efe80kEgABCIAJiIAFSIANyQAIKOuW0R531iDPZCJYvGHC8+PHCeMir1+8f0Pm4+Y9Ch5V3Dw52207E649vbsb6Zy/rxqu7B3v6uuHmATgygEUH5rQ1ji9aOjB/4QIk0j+ARHatG//x1GPgevmiX9R/6KXLnwTZqQS/R77ZcxISzNN2CJZq9j+jIeQoLDo8IgnnYEs4LwjexiRh4g2JHwF5ZFo+hhBQ4LWCsW1/wvO/+YD6JHv3OYKdCwrcmnxyyDlPfBVghMf37r1M9KrP6AgKhWWp52A+OPrOg8X9YR84FDgAAAA=) format("woff2");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:KaTeX_Main;src:url(data:font/woff2;base64,d09GMgABAAAAAGagAA4AAAAA0lgAAGZHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAhlQIWgmcDBEICoLXJIKILwE2AiQDiHQLhD4ABCAFiHgHjkUMgTIbracHZF4Lnrsd2PH+Ms9+JELYOIBYG7aPRNiETSqb6P//vKQiY6bZTNMNFRBQ/blSCatQNSrOgpeJiUJlHLKRhjMn7i7ko8jo8gxzFR801TSw0i0Tat37bi+vKqaOBz+5uGKeanHTsl+X8UYhIVJBUVEKJwyTI2zsIvkh6xfj98GIibTjsk28o20/ozGZ+q9xI7q5M/7Ff/5jhriYoIYFajzorm4vUYsO8bviPnAGto38SU7e4WlO/91dcrn4SRwIEQLBQgQSpEDiEAIkkODFrIZVqFIqUKpUxNdV1nWV/dZ/dZW/Ma1uaydtZ+1+p4XguZ93v3L1vGhiI98Eh2UyhsYKnv/n/ts+5743Y1N/+vzFAg00DDhrpQkmmNFYJdT/vtM+O2ke2DNseG8R0IkfAHwukHT2z95l6cqxU44dwJYDbaYdLqAlLcI30KCb/SchWCgh4IWaUVGuR3s9E3+6v+3vusx/FFvfvH2oaLpEJvR2O98orrkqHEYgDRbjgnAYhyUA/vqmVr/sX/cuNwgMiYXmtWMZQugA90zbq9tTwlXnZRjdsXTHI8mJAmw5wLChAcMC8S3a1czbwX6Y8W9+/lr2DDEJ2ZNM0w1i8vX10JR0jVgN0X8xN/JK+oiptYl4qYhXjh7Jb3D+wXkTU3+sEw6nd/d2e2drW7fQljpUVEAKjLKpHi5AhgvtPSRsszYo+c9f1F/U6qrRmfsiRG77S4aSFxQHIqJac4m17YPaHJCyO89oyy3p6bkWwB8g8cfO0LJqBRART934F3hBDEETBBjoCtxN10wShPTvT369Lqtbs/hbWhRUbU6UbZSYtXWIQepnZ68dSv8v0YyPI8bKx9IRVH6V3/+Zara70AXyInUhh9en6lx0zkXpcvbPAIuZWYDALCBhF4xL6RlckM8ElroD9xIJQMzSpZggiEqg5KcjlSLlHEKVm9qlm9JFGVPvunVXhaJxa3v+fp/OzDn3p8oWyJq9yK2mCquyCl2BxAVKYN5797Ys/GQos0RRi2OV4mEsxoRJ/rZsdnm/UWqXSHQ3kq5buZPXjT2hzwh195fVd1FlySpt0ogIxZs5XP96jLlCs/Fj97yZKeEJJxwjsl/2YxnT+mV7+9fudFZR2AkkoP8a6FU9eQW4bEkxDwDOLj9BB+DPDgGwiN86tGcIzMPh+4CfOuD55Vnjfx2/EFkp9oYo/qkVM5AzwwwsfeEAgL7bAIDCuFKGoIKFQ9lo2sz+crlJH5RPjZm22mGvg4543weu8BkPecobexbXEvy3N/pF78/KCSaaiZma2UmmdoMqCsXAJrYwWbS9/cRXdtXTWHOd9NZu7deHOq+b+gSgGlWsylSlqs+UJYYjsOPMHQcucsjHTx1NjGEacxhgCevYxV6ucJWf+EXNVk/cJxwLJ8OH4WL4KTbECen79FP6M+bvuOxt9R++fQtQqDNG3rP24VGfyv+Xi57ylV7rZ/1qVry/4qnewIpc0bexzc1m8mvnfTqjc/IduXK6e48BiyNPB2+knan0M3/0MNvlS/LLJ8fUY1cdujaOS9+ll4nv6nn7Zfr26z9tjM6cfP/okZ0rlwxOacIv8932zDTMz//+Z3/7Nz/58Y8a7NmxafU2ue5aXXq42N/Py10ficHi/OYXzx588+CUkz5wwnHvOuSgA/bZa481Vlpu2FILLdBrsm5NaoxWKiRfHr1aGPPflv8yKJC/vHJyJHnhW4opUEnF6x8Za5PiP3nQvCKl8hsATWjz/wceBk9CipCUW6Ff3/T/XbP8i/Jd/l7j18zvNJcJTsPYgC9ngJ58oXD2MzCaY+0mzpFPr4ksnUvSLflM9p33BJcEyzLqABRGHRKCuWQ+JIJ48UNyQHvIjV9f0oYmEaMWNN5oKVeXibi9ABNKxCa1xMeLDlUqjMp8edfXpnZ04sLSXcQpop0ZzBpiHx8chAPrnIB6lHAK57QZEI1IjrdFS4cW/K7hzOLPrhZUjmdjChvBsxvNNn8FTHX5YpkHx3d0QQjGpab4xlBYfWpZk94Kqnu6rCsofW+BOfKPaSwRGgss18RIyTOUhrFo1lqCyJjgjOAoEGwvqc/9Tnoy6Zm9dMZkJlDwjJfMrE1G6MFrgGRzQYeiNiQPjEFsqV3qRK4HrFOlhIbzvqchGVKwN0LJ7SJmir0wXM3pD5sYUWLryXf84+ITOff6e/DSrZeJ40aI6y5tWhDzBi6cBWSOFq8uAw0pgjL7HUBulqSWsqqAYDlYIsrmhHmMYseaMoA2lXJ2hiVrUVZzITGmx1E+I4JOHhSOtecDR1I6BpKWADGgS7mO2GLWnIspWmsLEDgEpehTuWCxGDljaKM++qMeHmZpSAY55xKFAc3sUO2X6sZ68E689TxlaCiossEXXv2QDNYPMDV+7kCJbFUjq8hHnPlL0lGCrVIIZ1jyXEypc8ifLQqoQZKZGviyHQouRvaIaimLgmSO2whfttZh5+0oc68WCjC44zdOF2Gq1N2GZCPTol3JLINwUkDOFlbsFyK+M/OPy/3Ws46XPl9Zc80SUjy+SRg1Tg0SSjGLs/Jx4aAFAFNHhCSY+4QhXI+YjaUC2tgONFQxJlWlqkSJIp560xfAiFwVVSVAsgoTpsXqbvAnn3tosoWDAmwPgXAF4QkhKQ6+MALxSElAWiIykpCVvNiA0P8lheTLdhBUhA/JEpn7zb1Nx597tpoVf/m0HJbYupnrhOnxOmEXzGOeORYSjqIQSuJQFkZFPKoSUJOIUBLqktfaQB2w6OyN9BI0ch1qXJochUPtmBUMdVH1u/V3kjulB2AKb1qSluXEnr8Ac8ZLfbKyCm1sRNzU2OsUPkyMwxMzUhvYJ3+Rhgh4ibx6Ckusjw2VyDLHkrveAs43eHCtvJXlEgXb1DtlCNSY4o8RLGtkEtOobtafSYrbooAqSnvmCAXJpKFSJkExWRKf8o9betgJYd+NupmqXRzgxLWeTB2DwHl3tzC2N24XKwm5FlTYP8htBeocw5HMRFDBhSgUfMLowh7GlMyFk3CIl6/k3GnHK77pSJskRC5KxGQSda88Xlkc7ci7UgHM2Ap5plYrl3ByyOJIl1XGSAJ2iyiTtOysSTh5x9IJlZxhxJwJo1Jh0RkGb8lnbWUSRy08RrnTO5K2U+W3LTihgqIY5SOLSb38tO6sTtLsnwD0Cl4MzjXhwRCiUeEgJ6FCLd6pawZcAdwiLFjW49NnF+LEnNHu9RbTkA/O3wP5vhsWP+BkHbLPxfYCBBWJyM/cZVh3mxZQW1W6wepXM/ZeHLzp1p9ekr22xIeXwbH3eH4FnPGcW65j7Jk5bruHAit2JVangROfI5H4hcTElA09uT0qqFHJMvzBNRRSMz3klkP6X0yjODEpGcde1rLsfLzMesOJ9UUwdlLqjSyaZ70UuTGlDbg5Yh/3Ux1I8OpquTXsDGRrexsFwMskp7Ha4dSjD3b/As6GoMIkFyV1ZE0pCOjoMY73qPgQGEVNhN4B0BCHTBGyshIGuwOgI+518SMgkugZ4XcBDIxDoZhAkSgWJTKUqiStLMmRdwAsxKFShJyqhKHuANiIwy1cpKzN1iFlXbYeW59twDbknRFeZBw4PK5MPpjxCfGhqdXTjEQ1exgFEcwD2CIAlvPIgnLllmu3QxuW3XGb32EXAPsA9WFrOh7d8eSOZ3e85AzXALgFqO/Q9Hy459M9X+75zhk+ARDrjwF6yw0/4VP5ZDtTCnMdrlQ3gnjnzXQ5tlSSW1tfnK1LDYsBEOi/BQCArjZh+CmRvlqnfmTA8Y4eDuMEkD8wDhcGgqZ7h1glzEkWQMRxRZXFLOctNKqLfATUTSVSUvO8ZVXsWVCOQjQELJdJOFeb1kYI7/iQHWNPBFfuZU5lWaVyESLDqoJcjQGESMxzUKTWxOmQ594RaBnpUJ9Lvv2mf7AhuOlX71TCmFHfPyG7GokN3do2mJ9MzTs+psxOF+LjEl5r24OqafccSmnSU1R/QK+tSC57xkIQbC1frdVXnrpbQ9+tOsM8PbSO5ia944fFjqRJNl5gdXsQsrIy2mLJU5ql5YfmDye2OU9Dc22rPNvZv1/qL5OZzJt8oCc0aujZanChdPuqdnVIDSrRjsqyN25k0LLNsG4HLb+yMprW0kQ/SIy9hN8Zb24pytMjxik/CHx/aW2GUqqX70e7sXFg/qp/CwfV4fLTaDSZnxpGSc+1XS9eGMSb+roRCLHtRqZJpU5PyjFtizKaGVg1zfSJbuYz9XAUVZokUtR+N5dTVEokkiYeCYLT00q90+5IH6QwZxCdmKYruxVxVdVNECK7esL1GdOZVrAE2hErhM5CukEv80GuMdGFJDEEU8wEk1Ytx8481SV3omNWhmF1YxK7i1OXodSQdIVXsIuhJX0SHsXHiR9FeijB5ND3YNyNBAlmDQAOx71NSSEVxg8xj0HbB6+6iNzfjBLSMKc4FvqyFIy4F/WgsaxnUKF8ilCCw4KDiDOGFEsV344soB+aTEQAau1iHOI8LKNcX9dRAQdZcSNmZmsvm+VCbwPcoZUmXU0YH90ahGhQwNwE2EwaddAthS2V92zEai3jIFjDMKZdhkW0Ob01jjGDiyeQGzGaYfoiYKLsd5NOxzQy6gLmEAFwJzLi5VyjaSEVe4DhROn/kS6zYHHp4h8xdcjyQh0zWl1t2OU1Yl45ArTLjxm90aEWbzMB4p2O0eVLYVwA5oyIsyUbqepKg2umfVG9VsUhHNSmxIUueF5FzE6ajiKMHmVrxG+VqiarLTzolpFiOoBapu4EzBOI/IQpAzgH8M20IZv4DAZvODXPec6rqjt8OrN5CIdYIW6Dkop1CQQHzST9o0YTtk+sL+cD1l+WJOvp0p2E/JMOHMdtPSKiogQHQIQxarMC20y8mzmVa5sFYzFCHd5CwwpxkB2ZfJ4UMDdyt3ylQImbFCd1mRFnmaI36ImsS/FsPurFTipnM0lO5yCOlUrCbaUWQnA/3c0RxuKtyJEORvoMRf4Ywv8TkvisWjVHZLd1FVP34fN+QT0VrVoSWUgxX1NeI17ZWKcmAQ4Mzh0zzKCm5hEmcqSr4zS1cUZFsDTLrFJiJnEvytBu2FqRhtCUqzO/lPcF87OAaiKV28OgpJK1EuBgjiKUGMSxETn/RLJaeB0NQZswyq4H44TNO5hOTZh8pbYEjV3igzugmAyN77ClP5dXRFbcAYYkmM3EpAYd7uB3REyqqX0gmGCguabXUKzKmGAxMoyO10XPruRd2KYDOFTFpRM1bUxJkhyG7QJJ5DgnTn0hFAszbCnXiN8BOqTMEYnPykPvqDd6o1I02ReJt/TsQRTF8EzNHI6DYYJYqroUxQphsNhaGzN6gBQXjxKvjdaBKtbGmXIxMTE22GdxGZwo0FSWJOpEOVKlbQVLpWqoj2qkxBMcRaiC2y0H4O9YnA+KQSYtENllukHCMxGhCYVvNkKeMayKtNBpnydT7C8M9iG7lQ3ACNDhELeMnfsDhQpBA2VYGjlWxl4ELUEAfWjk8WqHfMa1cGEXkshKEu+e4xR9L4vHrxI/vHsdoCQ8Fg+7nm2VLE2sx61LgnjSmSS1kYO4GGD5HH5IvYeRmXpXL5w2tH8dXy2J9bZ8msZzdnph3XciohVykJmn4lthUP+OlqeN1tz7tFmcpS9whf4n/nu6XTMGTX4XMY/K1lNTGSDmafyjDA/W1XYqG3lQHMNsfhVlS0j7qb30k8iyjmDWQ5Zb1QuYYcrFWBkOQjNPzrAclBWJiwFAF/oWZmt6/FTYWuxyp9h6T4kkEu1gEDlUqYri/BCli9zw6I3+E1wda6v1JpmFrT3Wsv7+gG2aMvqGtgjgkC7uAL2gXeoijB5Muriof8uoX/8obGysD7zDLrfs1hURSxo8MugUMZkMi9MlHsVOo5fal9qTwh0lKGTZZsJecdvLoqBBIs3JUTXAk6ZiWbKMGUYeElJLFX/GHo/xWeYbO8Ifj0qWWuTCmZxgyhTR5iKrTEVBoY/YGzL2XIYn1aLbkysxYEOhMsKGnhYi0/u3bQ+KllewRt9Pw7CJru/hKCrbS1XLgt7eFob1oOKqWzsZiIRqYvZQ5c5eOgKd/PrKlcs27QsneL39B/sPr9pq5aF9jVtrNBPSBY9zxFqumPh+4l253SApUALnbplUWNXWRcvAfBqlDDRywEGt87abpiO64HfXU0e5Q3dZY/2GGBrf/PKyuWjZ+JPx73REbsNu2+TAE2xF/4/3QcTxkdsQE5Nxbi+FIGH0YkJUTpdiZ6xLwulcmUyCxrAkDBfpYNeq7vd0yhKocuvfOyUAOI4Zmi0PQcuo2ixw2MtKB7uslTYfRiyjt3fQOMSs5vtIhegNcdA2MQv0fcse483xKeCkmIC0bNLb4uP+RrZdhfP5JHExQLqY+Vv0KbkqYTpQt3lMUT/cewTHfkNJit+jdBoGWse1hLrU6LdPvtVzwZh7rait5bPv6G0cWdhFt2U6ajnin/JMDVVPIksJpLBKdSKmHa5VU9kDfb35mrUJa7vrceUcCfCJHvs5h2hm2bhydjFM+GT9HA5cr6NwuYLW2nmeI20dWwKzKiovTCXoYnPEr5Uq3lLcgqwGgllRL5uBclHHt4iHenUmq5Q2SgJzajkqkwtUIzWGqLwC0k08UgH42kabCFG21KKxPyZhVbkkbTa+NaRxVY1SDFfndCJI8KCD4wuPha2CJqNEsMSEmmcczD0jAa9TvwqgOjUb1FlOo+AuNeYOHWDrabT8tSwnNEhSYsz6QFpWVNPJENU4KBCSwMgGSgoFYwRnPxBpmQt6UDI2shtmRb3R1BVMDsj60JJes7+/C3kTgK6ILHa+ZrQqA2l2Y0wiLx++5laQ0kGlINC/m6ODUPcQ1C3MyUIH/dpIT6rbQwnSS37FpDar0OsUVCg6an3rj7F3owSDPQmFybsWqm+acXiT24iovXcx1HmvWt6VMHBoa8ZE668BPJygaRH9huUC+uxA+/P0PdTfhyBxtfCfNWGgpkzR3jdjeHqK7wc4Yz5iELNziyftuLk7pMtdzbMfsJRYEv3rcMvkYfMEYE31S1VBx0I7JI5dKDz51D4202QU0g1EylkPhoKXLABN/f1AmhpMMbx4owneY5LAPjb+CyKikfg1odqeoLb30a+aHBVqwPQvfI4UqEG4ZY/QUEi/vxf+CBGlFdMVyArHAUOekslyGhzBPOZTOwBULkVJCBjZaJJKV/CJ1zDRi2gYk/aBH9UmM+G7kKyBJLFvsoqCZbdmW7cQk0h7mTbZ5OH8DxeLEsxRhsJaMUp8LPNPAkrmPwL9jNnlUowOkeoN4pFBgOVIgieq0khH1yF8gMKDtrGODq1sgxVnxU5ZVNPBiulHYQYQe1RFi2Xtm0MaVrWQ4S3i12rtBxE9IUY1fxR+hlZNtLsff8Wpn4AdKbYUOvC+8QMVUiANIh4lmpYu27PuRL+LvHcUp06zUou0fMQTSIVIqG0T02XJiHg3IxPTBwILtdOtggRVtjaiaUwOkHK6YTwPOTj42yy2ygBQySJ2H1C77ofecIm3OOgk8eN+lvTNYB7xkPbkHLb6bAuiEldjQcCxcs3PAPMQyUYBgTqptv1jxhwSDDzchDlsOBAZqxFjqYFyji7UYAcVdYBMYM8EzuOyjdo+E9IFLBiY7v7gk8fNl9NSRMk2TwiP4uYxiikEUR1T++pxI16zq+wKjsq6m82Ke4lM2bZntB3c0Vftsg9//VXJjZNriaJ4Tz3TM1wF4mr8UDaS7GhmQ+xPZflyYz1jaadPN12lztCB9qHbrm5SUzItZvFEK2KNg6lsCXRj18w3VD0nGKT1pOseXg2mrc1nw3RLyO55nlRs4iOPA5UJCw7iUf/8Lk9xMj7a9EtfuARZairBoBW6l8Xfyi5iO4QqIdUbsfm4N/Zq2EEEgxgkdBhYftPwnG0xeX4XgWM7ewm+iWkeyYOxy6Hr/rkCc4RisS/keRbJYuPlG0jLVRGGk/CVsNA/SOCaQqbNhG9tiAnVzDpkr2AjxZWV3MrwlK7TmztT7x2pHPXaslnxIAJTEMRDJBwpSXQ3LFXsy4YypTlloItlHqJCsYRUVd9WET+H0A9ODUFe3xGSStFNfPGsZxJhV2btTwnRtHrRbe7f0gtp0Q+93NGEjI7L8rv97nPC8CiJIAmJ1kg29qMhKx72wl4VV2xPV/obOwZ+buBWd7EoKbyTW+gteR64VM8odek6CYgK00SxTT7ZSQmjePqyg99YKATFJNGC1cjgSRWDZVmeC6yAcRMgNFEVf1XVqnLe7kdWKhvKRrhlhgXPICOz+Uho82CZVqWCH0dUwAIDj2RfdzCzMKyY62d5JUVUOVKRLmEPk982lz2EFSAmV6xox3xG7RTPtugqfMOjg5g5SO9l4zbxTIgtZnlIp0xpED3ALJG3aUm1UMvhvTJr4bxLEa/QHG7ilbZpoujQLQ5zSB8zalgWruzEsV+/7Eoh1QrnMThmCd4esVVgWkXEQgY4hE5qaAvBcrPTpMQkPeuF3Oe5K8dLQ1f6uY0VrxhKEmgkGPakSzxEM8SScrUovQMI+WBkkmCOmmxvESE0zYi9GUTAwdot169Wj9NIwuARMfhDkZyiPGH2zKCxsYO40xoiatYhqG2L+lCLyfVp8QGmIzEf9zuNI/hEXeHtET/3q8lD/SwEZyi0SEHNH42uEa+jvUfIXhtyW83fDAgD5psVLI7SET+pMNGqFShUHnwNn4oPmZO8xa7y012bbxYdYU+X4je+TVeBgdkYbTBNd0tOWQ+JDqVWqpbIWAm/xiTYr9tey97yJ7/MQMSoa+wxJ/KN++HArub+IZxAX8rda+5d5e2oIG0h2EGNgGRwJADXxJo99qqiGIf0Avq4XaFcDcPqIhgFg/xwajBMUzp5nnkWi8Zgk24gJemkr6Pl7KDmoRZceorP4No3WjCIJDYIxk2iRXsp88eWXe26uPcPuuW9j3SzHnG31kUtkVEoBuLCDAeaE4Rarx7mOU4QxXL6I8Ds9Ua1ZoIzLJsMb8mRItKWCSFmUxvBoxXioxt1mmgmoErXYjAIRKdNPaXrDcMOWU0tOIZcYvupP+AEdmymE9QzqYGYFkpfIDCHNQd2P5gp5uKVHHO1vGQVEXwp3CWSpddRWTJq4G0CRei5+Nf0JS4m68yMl6vfRLupPWuIYwEhtQ/sQuR9toCnhkcz5BzexwFTNpHhrvsLijJ8HvAxF6EG4hiHvbj0aXhOScMltkpdEL+iVrElRjVdlYSinMCGJKgqL1NNPtiuUpfa1ujpe1E5ygXYoPZM3ZKD+mBazKxsKIAcF48i8Uo0oN5hyGoI3Zgqp5MrCNOn1RglSczK8OevY14vKiF2eY/4yBFgnpgM3KNh/yITa8FZ7gRiaIk3+jb55FqO9EuZ49SH3KsW0nE1ekZXtwUErisaCblyMXT05ElmoCgAFN9MjN+QET2CXAM8WeFlp8yj9pJBjpPYYSP6n7CuWmI4CQt/DFCnE5FfO1JeeJk05+4MBqySWw49Aj4TOtvmE4QW8AOpyZPSiCyGJdRlid70TGKDraQ577RZJMU3Yg3S0QEQxKK9vZkP/jR18KMngtiHaUmHvAxiwnOpS9lb8cgF/AtdNpICrOXwd0pWIylNNbmj8bRc2kIHwgPzSnbjPyIsJ3QzsasWGntu6uyx5fJsdf6fJRZVbt/ilIN4buTWukK3sGB3FErOBuJhqGGxZXtvpfQ2P3L1cuVI4ZxQ7VFk9xDyWUfh0Ewm5BxUp9lp6oxxFvAaZtWBDFCmnZAPTlHJCRU+EuY0V+76I5CFPoVvo/YVE7pGh9/U2vQffJitMG7XWVCpGzTqL74Y2Zo+CQxesjTp0dImANeydpCMzfA7wlJxcRCfVQuZPjQKmcb0iFSz/smm6BR8WtpDTzBwqqiVPotvAilzxhfafadqFWLjjKMuqtd3LasRZRMAv1Qchdihs3cVTckLniZVCASk00oZNLrQAwzz/i0AgUklfRpA72NC5rriaY0D5D2Pr1oI6GEl7gxZODlsbLGM5DsEIr44z0Jdfz66Strup32o04u5pRN+JsNuQXLKo3RFVoh3YxHRuFyCnT/vNCJLZipbIgCBqFQNbFgsvJb2WMyssEyA3ngrjQyc8lVmrks0wJBzUfYEbMziTkUHTUcNIjCLpGLmeio3CLNidEOGJEDZDGxUFSWP0rNpEGOXFl9+OpP+AdyPJWJ6vWQG8oX9veM3loA/jEL6EuEE0C+i37YBuTSLOyDo19PVKuL8KcLwQB+pKXXpe7HQbwA2hrWY9UfEXT3WLDCIFGAL9vO5B0GnZBfVjLgVeNNo0JIVndhrKoVQA4aGGSgVGWjfVC6ODkQc8wPGrlYcHH0ZoGws0zRrWlBTPwo7Pr7ofcPTdp+wtrodPXzYy8L1Y3oAxIVzeM9LUfNwjE6eXDr0Gt9DDFxw28X3kunF7pa1g6GVa/4obLpHrPtCUKgB4+RGJv43vdQIpvhAeNcH5UrmRr5XRQ5KxYZs8iFQXKiTCsVLiHd8K/GRbOi9uAdCpqgnM7dZSBUtQEED4U1Xs8Wpog2pJZtoot1sgyEdiCKaAeq57dw7hoviYRUjZJFRbdsmG5HDVlkNlWCkc78NIhXMMmRyw+gOJAqZwULetbQ3bvBNcFESt6trW7200IlnlWcUsmpV3n+zpQAwo5Fu6VWzXE5IJZI4o70+SASp+5s6Um2+cUR8A6MUAcS0imQXIF+yGkwNYhWlM4eYN0uAkkI4V/0plKbT43OaQpaZ8xpi/VuMS82rCR89w+kiM3L9al3Priyb+zMkRtMPJoszVtBNOqmX5aEv5JfTLU+AsMNEgEWF474/AhynwjK6yY+obsmu1lAmxxCcfcB3Dww1bYB/VkUcxrTjjOT/DeNUBVLxuYxneUZzHOHsAylZlpLG6dYDJHO5ZC6dE0dTBWMok0H/24egp8TMqAOZDN0a61I8V0r3NTcpTg96uyREgJcURe/Z3OA9mYcgxkpe9NSTPmKYpmGmzENKHEVlILFsKtstssm9ny3voZndFIz0bKyRarBkaBC+8+0grxvMdkuYTcjvGbrsiwwUJL8v3zMWAHGuBqAezBy77nciMxhQJ9lGy7O1v9pjXI+0WIz4QDHdJYNn8eY028WKfEqvYF5RhnnImAClp71vaMm/JCQNS6SLOaG4nnwRFeIcXSjk55V/i1Riiw5tpx8FdWAKSiFMpkgdHQHbcjNiqpRP4eWKVkfRcdeNn/N3wXLSyYWpRbYhAI9jzzq+pyfKbiUm7vpgLwD0O89FYpKz5LYYnWZKya+G/xsplkDXD5UR4LXGpFm9P2lRH+LgpWiAXI11aFMBx3rMcA4Y3kOj9Gyj6TLxzTxDu4exHiWwnPzJ+pAxY0YPt4WkOLvn1IMbvHYNL9qd4F9wZ5z52rn9eaxu9qLRbXaoUWSsfiNkewdvdDLd4hIwsv/HK3ckZdenmSsAhEY+ACtkZcuD1h+C6mU8KSo89kgGzao127otwycUydWbOqHdYcZtWwqq6iNdUHi49aHYCALZ2ULOsU/NZ+bpZl8B35puZaxjxYtuH8thXDHMadVSEi9A/ziF67PMbMsEy7DGaZgbGhMLY+1cMk+JMoSDdb7Z6ag+vReiBi03V7pJK/BrYVSHYUr0mK0+A2FIispQ+bB16tOphnm9xTzdDKbY1lYHu1XGVLNIeEt3MovHUyps5Bn02tRq1cH9gXLOz65X7E2GktnxQ3yamSt3ZDn/4hTbM6S2Xj8p0xur1uqYWBhp53bH9I6Ty9HuPCwE+7iIuhN8ugj/nf96WxNkDhB6CVbwYsCSxuslIGdIEy0BrQcNaXkluoQc0VIJTKuqGfDKic+mM3jhraQ42bOxjjoaH0K+Jl9k+VxO78YZRc8ztyyZzegBNmpAhZZUKD1Z+kKrXiM8bWjkvrHLn4eHQPI9RAtZg/51dy64pXfViA9tuAqvA/tjcwO13ZtyqyOSH7ZrL/lVsTCBrp1wUmkIBGSNEEPEeqwd8qZJAGy6+xYHDa/JM8ZI5YC1EFzHIRQyEkp0G3ATfe3X79ETWd14JDAb6rizrNnKVgyj8QnIKKPfgCbrvFb5WjcK0aowelLDCmcldY6sB0qNLnRXor8Wwf1a7LAbUSYSfE26AGW1tKMCkzjUc9c0NVKPDlVZjjpf9DNMabvN4Jgz+7rreglxu79ihSsUdoJitS1d4rFnwC3jaBsteU8gT/x9rThq7K0atxyF7OWH7LQ2YUuMiC/UU9UbfiuJyEOkDm+9NDTiOSYqF1fiRB72t5K5W3fk61uML/YIBjnWdsa+ekObiwlAWH/Hsp/cNsLLyIfuP8mEYhXnfxY+Isu5bVP9AVGTPWCDsiVhf0lq4c5CDTN9qnP69NTpOzyup7AP9/cnIuJeavdqWOXu9r9jqLgL70SfbZdcMAoGd2pHLEb16FbxS0ncB7dr2g6mHBYRlGddCkM8s3lXDTWpfEwbD8hSNJOvRWOjdSSRpDEbZMuWkwrmn1Tyo8biEl4A+EUiNs5yoOWiklk6h1UbvFNP+jkTqRloCkvfC/eJ2arAE7g7jCbTWXyxu3w3pAC0QSwvexAEwyXJRMExvBaKEXoF2nWVRoAR9XDScNRq3fGjDLxuDXwADucge0PxtMNYTJJuAOcf0z1YnMn97HD689hGMDwAadxB2Zjofd5vBNF8rYKept1qqhDPEYxC62VlnEMHAZy30lnKzrlC3MlWQmCFxegYgg+nNo/pflqE7YqLGHAEUBLRAE5IR4yZ89rC1suSlXKqcAKGtei2IC6QZLImrp5rf2TKDmpP/IlvNa1l3z11Gk+sijuGd1jtM/DgGdoXloS+O0qTuI0QlNxI8tg/2DuHiBNCAf9e9bZ0/GSK77ozbP2A+4neq/tfcLb7T55dUKt4GGFDv35wbxSMaIc+CsCJAfuoVHIWt3Ct+KRTkDDSMO+hcSzreIInjUKfgEHFvNPDZ6Rr/C7FzquBAYf+6RGETduTlkLx3qd1+VGxMibMbTdAvKbOOJOXw8m+bTLGaw/0ykU+rXTRh9AYsbn6F3iju86xT3zhMBQPhwADU9Jfo4kR4iKPshoDmTTW8jtuk0z21k+AAwjyqp0cuHIorgh12/gE+Hl8Lrdoye2xYndK/1W/704t5AjxskXDJGx247xseLf5TiiP7pw4ZMVT2Ty2SZJn1TzbZpXPpfzhKwSD7xvuEjhwVd4XiAXizj0zLxVk5xaG4TQxmuOeRFwx08kn3Lm+spkXPpX8erJJK21ULmR/E+qUjgvn0JZ7D1BJdt2crcWMHpM0uz1btOHjUEF7r2yl1UwjyyWOBHyYLQDkUBQRqp59VPBwiAg58F+JCl8zdqzwnoGMNTsuk1jSSXKvZ+0Wd0FpzhQYBz+ImKsV1PlpUjm6OldgcrE4+gg65q0WdRhOHpl8fUTBGQ4jWUiqP7m8VITY/zfvbeMd9n4lguQer62dCgcceTYJX1TR8gYmeWvv23Ic7v2epPe0Lvv7wG+TSdFgHV8f3UV6giVXJKMH08nu/6LduMWcC8I1lIccpjZ4w4nGo5TpasfbeAqqCuX9CFYsqu8EGHBvztu3ZBDHOSfg/8dM/pMgRq5HYUqXMCcIvX6TQ5x0irC5Nz0G/8XUBlD4DdtZrYrgmFpTgNd+WGbGQO2khmqD3i5rZO7ZyCWX5bJJoKrhYzlxGFANyotgS/pshl2Mtt/+Cfw772O0LQxx7+qcVT64PCTcjUkbXkI+/eFT65+kP1uwzJKHLTh/b1a1XygAe7JQCG4PRoWNQA7jQSWVdB/H+qo1FCvooEXmIDozehTZLUVZGsS4HNrEsQr+ix4dwhCjYlMHuIBEVobGR9u2Cd+uY6LjNpVKtXCkE3VZlcMTVQFdCnf71AhRIXS8rJQsGtXaO/iGtlbeqmYiqmyMlGMlYJMLC1Lc0IyDNg6l1zF7mNMiUbomgQPcsjISU9GiCyAM61Wv5tq8idc+mNnSR+xtCAN8QocPOk0mnrvON2Mx/I84pK7EVOPWW20IivyEXtUce87drTzqs0wz+FcCZgD8xPcFa8dQ/ICHLEdx1YLm8RsZfItllqXFxfF2SVpKCh+A561ve9BnylYUvMYeqQmXgc4bFPqzAL4zX4BzdEO23+Ab9hPCbQom4UpPOc6V1Ih/Kd6afdjwqcyo8hw1rCYi2X8x86G2Q7oFATdAOvkvrUv5sLpfcbOruS0VhAyBnw7apbjBWG2glWt8lLYQkzvdSMn+XRr/FjXoN2maqyiT4ltkzFn95p0nTXR70QfP2+BJOsemrHV+LDmj8lQXi2/RHHbt4cdOjH5SztMj53MOFlyl1jdRV05UH3302URPjfqaPesWoehJtmVp7nLG3L7lajVfK6+0ECKQv5eLGJtBl0Wz4jhCpvsN3NYPZLT9H4Eo5Vjgc6zkQ5byX2eemFXwa3gFbpOjmB9oKfrxavT/egbswTe/Za5emUaYL3xKqcQqYsScgcUEKYZjzmQJZv8bFnXoKhXLEPLCk7CcqTQ1etpqQ8o4EIuSqmRSWBbV9DYx83jqzZfXmoaHWSq4I7/FbtSuT0nlkATq19KgD7dXtIyFXmWwC6MR6OhTLmdlUXUNlSfwQT1dRavY3Ke/iTiuMbiFUbBMh6rj6AiX/+rMTavurldf0KHD8evfNNi2U6KHYhS5cveiXqiHbLMVpVRscVp8Vmbl7xWlsE6nOxfgXD+lJWjGy5T4pVj0QKyHwx2lLP2fT4aGFybVpHhy2+buYyFJOh06mih/kUTS7Ffi7lrzJsG06IQvtDG6DYoADqf39iPQ3LmnRuXUGp2srL7z8WWtHnOkptA8vTB3QusResxLd1aI40+vreKl5hIeQq2wIswPmQoTvcfEwA5gKAl/6Wnb1LEHas102CIURXheskkopjRnJ3FsJkJAo1Qv6+pv/1aYO771CGpqbi8t70Gc4Yi5zWutDs/uwgC7+E9BfR33QkV0Y1WxaTCF34/Fek1yeJcr52Z0bfOs271W58QkjKiX0nVMsr3oAqrj59NWgOnflXumfd4KCLzpk7joHjWmZXoLvNYi2Dfqg70F2WW+tkpbwqp2f+HmTgVDXaXLE7mzphSVrIYxhKdYdOf/2RZfgvV+D/yysP0/L4bBzR7WxECRjDK59Yuk7B2ZqO9nJsltsh27LN3U8MbEja01TXIVlxNCaPvX7+hYv2M/mvFcT6dzBHadFl6fuCmTw2nAwIb1W3veL7ANAEMb1vLdfN5ebbd5bpZqDS6q+GSXoaMIcFexDFyens1dVfNiRLHrkwoRvmbAVqYd2cujaq5DqHdqZil4/KTb/69bhFqey0biV4NVG5nc8XFxzyTP4uLGycbFxaP5KiMii04yUJHcsnfv05C3atqBB/QKDmS/zJOhrKO5rFx0oUwtEb2bfPF/pm0CmRFd/XUut+M0ShceO51bzsJOYSzhxQ/RmhyLvy63bl9sVNHwhrjAyfKV8d3JrXGBDaMlU0DW7eDDEr4N8qPAJqoVIq6/Q+/Exb4T+htxCWtFwIZCfr4N2wovWQRzdLJ0uONPOlx0t4/SUcVwl/QmKWiKB/EvjUqZDh13MPw3Wc7YZl9JRxXHS/DTVSeDOVl/78kDm1bqi9PXIlok7H2kmxKQUFHV2ClP7RU+u7MsK91EmaNguvRriRRGZ34U9jgsrdy3m5/92qbgxBIZOVUNNiveea64KiM5OTTQ5bI3WeQrU+2ycFOYeDhYV+W2vAecgpq33x4sU5JcTggO//h4YkmmTZMvM1YY1qrVCr1hm0gC0I/udU+5x9RFbl3RaYGSjYhu9dO1z3CCIkM3q3RVpliucxKI0B25V/CFbyzA2j+RAKk4UsiI+unzOM+PUZUtO5ZFF8Q4zPVsQkgdkIMAOxUlYKFV6vRYw7rpGMn1106PnDd8cPEoKmjHgxMLK2fOGZ19NP7j8Znhb9GeslCX+0eddQEyfaFbpwpllHaFRZJixynqoPc3CfWkkgi+N29s3jZHQig73Z1plt7S35Amws+OJWiawbjyI5v+UJp2fdNrwfG0Xsx8DeK389thgYDGuu9F5vTGOKq+KcogTX7mQCpw8zhMpv4ZKTkXwU/jzc8fyM4uezD60DxDQ3E6DiFa9EABP9mVFv93VdBscTa4T9BJkZhny0vCGyB8IuHNKA9M6iqfllY+xyQW8/L8KcUz/ns0ftrkWlmKab4iPtW5cxWYGapgaDJCvrRYu5LFjIhXTPbqP6PN6zn+XXov62CNMA/WQ5/p21RU3V9QyxDDo3V4/RbnRYkjOV2eGzJ5UAMh7PQTicG4koWLMmpj6rPM2b70jhTxjcbXw2T0ftdNr9Pj4kVHvDvpoKqg0zcOG0oJ9l7E21n3P4+DVDIss3WGm7j+mkE0kkIO/nczXR0JqfTh2HESXcLTLFjiWOpsZLF7RhE8xhIUawKBaMXgjnzxv03oOWPRZjzlsj/NBFmvjvFfTQeNqmga9+mMEawY8BahjOGKpY4lhQWNhHIwcgAlSLomOezl/xMnJA9Yv5cko3Mg3XNxztG2SzBOp82LKXguz24bbacqPdHhYQYFG4+CEtg/pZbfJjdHcRN36FPzVAr9UKw4c/dZ743sbpUecwsdv6ldwwAB4PTYWOWN3blj8wsciTkluJ8qMxdpJFJcj3F7lvq6SP7q8vm1qtyk6vL4M5mjzvg01atbTLdERdOnhPgmZebSSLQ+Y12wNVc2JX5mvkOZp2kaZtcylcuPXJnJ7iB8NX+z1giTt2znsxRfpLQ5ipVUEvtoJqP8ZjkDe0vWlR9l6Pge2Ay3JDcbQQzO1KeAs2lit8a0Ty/XMZ90zH7C0nHdJCz2iN3fp6ejdHVVrYiuW1MRXlKTblhlXA01NWP949ap+5S6a1fB+TJqWf2pcFMgaOMvdzEa82/QSbH4el2xk3n+EzCiU/ap1027mJTsWANJa6NqZfC5aPWMGcXFYFhRFxhncEoFaRmFPzSCxgULIYoMVhvihO8Yc1krQIhPKx+zICi8EqVZNUG4dg8xDVMpmXjvur0TRK8p+DAiGc7hBG+M7DRBfoQRkoRUIRYWyJ/cFR3Z6nIVFOzp1bh+6HJ4cse0st05FCOEztZ6uPtBR7BOMHcXdxylo7jjF28dQ5y/Cq7p6sKyYDGQA5Gew5TIYMlwZ6nNS43Ktx5tip8+8Qw2qx3i5WYUjdvN7aZpaTDBHm13BmjL0hs7+2Khqb1mK/jmRKpUoJVoBdLUE99YgXn+AISogjpTxZ3V1gTuxwtTIUSLwNE0EslVGUA7XSfxUWcFPvyunR9cWaOPD6oQaPas5GXFyE5CiPMqJHYixcuS+8Csya8Ob9WE6TjLF81SsWG+dD+Hdw2yrCz2zz/DmI7HihpDtTSHENrn1eBG0l9v05orNM7joY3efI9vQpI7djjWmPxnx68ZMh06a22x4X9h1bfP0QZ6p0a8qqs2tDmqBN/18SMGwED2kUZzfsV+ZetEMduPekixiPQc3R4j0rGLDUXiHxrQssNhRrnktkNBvFMs4fVfbcuBIo1sn0qaomOrZBijXEVmhus4RctYHSKAw5gOZ8fOgH5gbJ4Q8KCzkTJP5jQaK9Kk/Q8gkcSMQxvB+uHFw0soUix6H66FaDoW3IUdZmD+wxCq43mRY84jB+Avcso2fypdJtRh8KNHAj1zqp2tw3QyVPNu/uSSfsf9tTe+qqlWT906PFXVM4zsW0lydGGarYdfTQZiCYyogm7Pqq2WfFYOXauGBQI6KQYknZBaa85Hob3N6LyjgUKPC+5FFN51Gtvaad3s1ze/frXI8721FPxdmzlFkfJ9KwlVuHMA91gOQuiYF5pbL2A6woG80KBbhaNoy7PCdLdV+P4/g9OPup1qO8zeC0Y2NF9gosFBj4IYrdLE46tCS/M8NAB39sqB3g2uufi/IVlDG752K9mREzcQaPu6xptZg/UR48o9/nu2AK+b+Fc6O1pry3W2M715af9rDmDZIr+Dm20r3ZOWJ1iLpeDH2ulztT76pHKOXSwSij+oKXoebATVUyaT93WiVL6qfZSM00dCd6LVixd78v12utmWm3QBmyMcOv+/NUqMO8EewvBKrSe4E13Fy5Zdhq55zidGi5QcJr0R8iTX7gtQsYMnv/iRP7xhdrnGpiFa7XsrT/S6gtuXJhenBMs5tVxbFVdoK910qT3USYNhODqYLTxECTcIlfv2Iqzt2awBvLK8exKoFMNXVdVJ3CIaOzVYvBy34riqyxOD2xBqGtJgoxu4dO5+Uwy7mcvpYUXFDb2WraSL2mRgWnBo/pphG7DPAf2ejM6cVTyfW+5vKNGU8/3QuWj13LnpeR7OfrBPq8DKnoQY5V2NNTHXntrjE9zxq6LAirxGx6jM0SPd2kLoe1WB+91k9RH8fH8RItkpCnxGsbYwOtluT1FJflpZTLlJ27ycVk9ReUcOb1jWbktz4snVEgjHGKGJkyEBiapPQcRDGG1AX78/aVGEQmsX0SqcqWHi7VpIKJgKG81yHdfutnN1crMRnioQQtrt4rCkZbvn/slopxBUOyoMfuNRKmaNum4lfj2V73/XfPNMoNUwL9yZPy+uyJPAbAME4YXTOkK2/0xIE07HwD20c8x+gTVCx7w3fkoRWye8s8+IwMd+hPbfZlArv39sBdeXbP/dyPCWQY9qgKYThxFCA6GG/gNka/5RVMf9NTRZE11nqIknnAQZTWz4DtTk/5Z6jDILQAq4NlldvvV/0YSOORya9Jit4+r+vxyl5f3gfZ51wXoTFuaE1t8J12H32nvtLB3XQ67+bPERAUz91c/WobwLPfVHMR1RBv+esvk3CD4iVMnNPIGO+WTC9CK2jk6sFyCTTsFQy1ao4uajJ5iOeUBGACZVrlZbs97nzWzVlOO1kWXT6iV0SRiIpzMnR0Vselr01NYAAwbvdQDToeivfTPjYiZbp0a1tjcfbHlHdV8vFIyJXzv6+mVA/qyDg0tDS/Jm5fdDJDPif0wdc1u9y8DQ8YuQg6B6S+W61jYq5t6TJJEOdZ5ism6EfRLi8gHZHSDC08pAnxVzWK5WoDlMLQbxaQj2y89AGcXlUWcSTsZAy87l0bwulscigAXoxD++W6CtW1unRS1fUBS73Cy8+CGDeRJLZHUSFV7WLmjxVx364fS9k2dPg0tabhlq8sdf39M8kbh9a50JzdL8pkGH9LqHIl7n9fyIVHttxk/5cF09yBnN446ujI/SxjBEC18ppfWtNJXAhNmSA/H/66KSmpvlDnkbnSdS1SwTahxYdYRoxbZ0CMEHMY1nh1T1j1q7tF+ECffTVrBgZM1aSKkaV0Q+cXOrp5RRkRx/1/hQfnvzMDk2B8rRC+ISEdVYiBSLzZIuhntd6S/uh88vklbX1IlHrd73CrAuQ8J9kfilE+pbITbdfjm+6OUilzR25RtxMZcXQqgBg6fSeKXeSE2iJ6PM/NYJPib0Mzpb6NDyxGi8DsutN8LqsRCpg1cy9QzLpKW57uoRbhkjrG7a7BLvsubWxcuiN/iR01C8AHdlTVj7KEn9WpGCbX7FaJbxvSnq3LL426Z340JcAYumVRfZR1Fzh8oDscc0VWNmFjD1rMrq9oANG2sV1d9J5meXMT7CCHJc/b13OynuH6Pt2zw6jx3Ypb8HHFcgQFf+oRKf1p0Wk0La7PPdrZuKgdc+QTd263bI0rlia6QOzVl7Ok36QIabcEV+hBuCIL21O7sHJkhMH7tb56zVx+8g1cvmgUfFoKcDp6rFFCm8NyO9oOij+3eE/NjnLxm7slJ0V05b4nYX5GmSTCffnWYW6xQd3iSn4ow9Ylle0nejq1tMEY7LqU1CtnbSJDelVFCe+c0Crool209fwYIQT6a3aBq7A53bB82IY+M67MKVC5gOx1JwaBDMZ0x4rkgkVEFITZfwlUwhA21FBj07jBkeDUwZYZpiYLMoIBufF+3f+El8PjwvaEtZMDI99+PDYh22fXQlSViLpavTuk3sjmPAthQqeEFfx4JoMPiSF69gYFRqokMXK76veymWdn+Mcvo3M3LCNtJN63GBWByAL9Rn4Nvjx1PKMNJO1zEvtDNqOYplEF3HddKe5mbRoJkftN5LjGTr0KN59RcwHaOTYJijRi+ATn61OjXd8Nrtl7YPan26YawdnZ84bD99OQtGMjKFBVnVUX7XW8sO0ZZ9cGqjIZDia6iFhTmCGaok5wxbl8Pm9WS0zvfHA4bjBZHALRZr0tCFsMdq0PXQz5ewTyq7+/3MX5ilb129BoH3P2VVPzVFyJu85OgpFHpAKj8wjeUndDUxf+dO3aGwuW9iwkPe+lyUMSfdyBcNu7ije0upSKbVN/rK5wpnxqRQKdTrwAwplJCYIlF500EEtP4aGx7uMVl/0no8cYLSBldm2x491qM/nZ9anrHw/0OuMbkrouW1ds78Uuj33zVyBeASQZVwMKLMwUYOw0e09nNuu6X9QIDg+518RS4+ecmyu5L+Fx2e3qARfRV3Q0RMpSDC9f9JE+mlMWg4N4JOovQEDjCTH1unnK2u9ojR+UtNdIau21Bl41ID7322IO8F4aSTnqDHN+rYpMFQcB/GCBVaaQacx3XET5SrsuoKIohf1yBPp6bZ5O8g7O5FXINB++DZ/OvzmCM7NxQeQheV8rUfDOgGloHpoHpEncB0M6LVWrXOsccWb/7Tji5eUKhh2jc+dLi8eqGOgxN0LxEVrt3A9EN8Q4IB56tOj9Gj742V8vCvD9fytmiV1aVbgYLZYCzTs8XIFovRwCFbfFRaJ13H7hJQ/QFBjoDKWdhKS3t2pEOiQ5eX1jzBdLzaRJpxjnGOvCBjC4avwGk69GKfHsfK3wq0k2J7UeKCAdMxLhQ5i+g6FNqKPP1zot9CUmaQNJA4L/hstZukLLO72l9tFenQ7YEKwJfOAB+KnxU/AzlELFQ1+ReoB3GBDl3urbrH0KHXngS921Edz00DphdfpuWn+4lBEr0brmMYHAkpAUyXzEaySifP3oaYmfj7uEFP1zEulPj60YZZ/vw0NLPtMvkqM2gtJV5mEPufcSVVJFOHsCtQyD8ejAqozRj7JxYsFqNJtrgzQt4fOwyGBi7/ky8tKpbnfe+p8YlMvo6xPVQNYzpmEtH4FkrsjO9k4l0kokNn+yzDdB27R0UUfzb6h2/HVFrxWGuMGI1FYeZ6GAuGWBzAQO2Vf/Yf/Tmra09aHloYCQkEKMQ/DdB3DwFlFJMLCFoTmW4HtHkPJqGFTC165Ck3RPrGGi+LwAKhApSlA+g/joRYdkgWYsc6Ev6TwQQTwaBoVs/pMhSuRQUhDldF8rp8WUW+gX46M3+carwG89L7B3wbHOrZPFKFrnkjG/cUfDtdOqzrqPULbgqL6W9LuacFPMYKlykBeAoxzvh3fCzQAxa8FqW4k425uewUzOCO3UIDg2CAKGoKY2G156Qx0itI3+LWGrAUdHHSaLHw/DaJemPzl19AFlQ7Qoi3HVn+N/8u+nceeUyNCwJkQX7i5OYolig1I29UmzWalDwO+BlNuXGZjofRie/BUEJCCEaWANVoqsi6Jis4odLihXpWnfpxhODr559dlu7gSzBYLBldnCnlHzo/9r6VM5tKep6HIdI5XqORDOJ6GMJlbYKgNWR+JZISuPCJbi/mVGXkl08Wa62x/1yXUaUUMZmUnzAozez+dUprnC7J0xV9yHlHnqTzNBx3J1Q6SGtJlU3z04teTetd7fJHP2S/huUkZjhWroXi7cbAD6yOJ7E2Q1luHK7AIay6QQRLJbBIDEvn/XxeKdiqhjpgsVIsUYpFSZjFLhvh1ff+cpPBWgTax7xGV8yfbo7yra4iqarVnpjQDITHb87WLJfHPrNK6OcgaUlYxL5TfVJ26fhVq6hyDnMdbdKKuKeyp3HEtHd4xsiDn4AlMX9UNW92BQMiDqsTRQufcdi7DSqVbZxsnM29GflbN2GIEf5XITmunOfSox+5DUEhLeXKJwnhUMoAoj+noSvUJWBgLRF1jcZHAVl/wWoJsNx5lvd5gVydgQaFfQvRtAwbYb9t52TmXnRxDA5ovW+TpkeGkvTWG+ydBsX2deZl5/D4YueWtIst5aRGezEh8Fyb2rsmqm0wuiBf+b2UrlszZrHYStMvTBqAYIcTmxiOnWbSI32+lpbW1rYWpQHBbmCwUNPc3OLQGdJQN9IZI6BsqyNo6/NF0pmnMZplQYsiXigWNGkR5E78taeHCaVo3pTfAsUFAUFXtTYuh+xYu7UNd4SXFxktpdAr6MyZwcZKfBlmDyaxz/Zyz1jrqe4/1I76bJ/Nvy8kHfN809+b/0GCh1MNee1QxhsI+f3KZymmKv17rH648ijie1Ut0BXkgvx0SPBRZXp6WokxdV9EstV3d+7SnCmFvrpWN2IPVvMECyhygArzKiFGGEPRmDe+PHbmPtDFDLG5rsO/mh2pxU3f8DTX61GgViOIYisKAPu/ox/kyJMjDV7Ozum+mITCijEhSGkK4yyo0v4Yrsh8X2pSyVRB//sLMtZIKrPdLStq4jJC56dHpe+91o51yyGhmlE480qdOMxP/9XvB0AF/SsWHUSEroxo4tcxYRDc0oLKxfuwuXRWBG/r13W6T9N5kWdVyZ5RrMy7kaXyZBDDU4QUhsgY+ohsZPozybPp/7/495/ssCr3Zo+DYfj376il7HHfqBpNma6qmll9oy1zHd165dx5SiVk64QdzvHxVabctp9rUsy6fkURlIJM2O6XFqjcllCjtHzjxP7DKQQ077LVHN4maZhgqRyysCIPgcbPIJo5zCOjaTBy4ybo2ybyylpC2VOryB2YnZo4MR73vWhb32VwWXWXggaJ2Airjjf5y2yJV78sFprWO8oOQY2f4azho8av9kB2aNTAIBS7rNMd8HJ/tFOzYEz4Guk/JznMtHNwkNV1bFpP7elc6RqpoaGfkas4/p6SkYM9f401h3O2TZN2krmS4jT1wvyUjhUutGaENRWS8fYya3Fjlr3IjLcxJHIp19fcWsDgFCxqOOuGTCnZBZVFZRN2xNiTtEcubXXaydxr3Hi96fa48VEmdOzH+sfkx6/xghAPbm1hpRyCxvnFhM/5zno/ND4Lbux7AyV/q7HrnfpPKlBnpK5Nh1adwk8S+H3gzXSnvbgPQUZ7ijtFgLYtIU4R/P1QzWorBCCT8794Ri1fC8B9dPb2Gf/oVCt+vi+ma9ipGaUPzWHh5ocZpalsDR1iootw/VlHcTt3FhYvDiYfix+dpj4gmBaqYiaEQ7BuIG3Ph3/wkcXrEO8/SMxGOM0FmR2BzmEJLAZCDregyUaHi06ozRKxW63L8MEP022rK5DXry0djqGpf70G2CW4NZsUf1REOwy7WY0T+UWbXbZJHF9++/y/FKbK1Lv6onl1sjxvefDN4Bat6i+V9mbJWNkXPSQC8+o0RH1Wgy0l2dhpYPtxWpgOe9I+BTNX3BwKGf4EErmeiDtFnQhVVSeh13aC6wPb0UHttGfgbDOq+xtGF6NQAvQ6PC1MTan/+OjH9VMoWFv5/5NaU7JJmw+9D0HQtQyBAE4cEx9adnTo6LJQ/JhEWCDYHWBZjZ+eQOpNN118fZkRciCvW2F03e+k+DlJi1SpIUoT9esv2Z5zUxfO2D/1HS7lUCoik24uuTVZ/iDWMKetZUlHSt6Fu2b1K/E/1pA2uZRViTB+VXuRNKqxFVzeXBIdm5ufJkjujNC8pwMRks7ml7bIjSApX8duwKkoiAbJXerkxxR7JrRjmwurVHGqy7sL8PGelYeyieNNhJ9Uu1AeGU3Wz6wcBo89jLuhJDyXTpH0EyX+u/nxHwO4PGg/9uhRN2r7mbyaXH7Xx5zq6vtRofqhL6A0erdc1ffrCSG3I9fJpJsQVsqMZNerz5wsu8fjyHDfOI/TTSzn30yXCFafV8fXaU+uYcIzQ/u+64c+/bSXZwUY+RSiV1Qk0LYz15zU1iUkmJTSiWj9nqtw3H8TZq8Qn0/kGNjekNfxik/D0Cfw1T2oD+KF+EEC1tLomWNnJisv+ROQodkjN7ObX69UyKcKvYvHVjP8TP7ict9swjZVrlj5Ort57L+0QiTBf8kQNX56Jp2mhQlekB+Cq7y1AooVMXuyvDqydnVb2OJm04q45pTgowJV8erIWnn15D45t/kU+mYyCX1Jz+bv8gkpJY12/5tIRbDzrm4KFO9fR0P+OHAT/hTICPSfBPX0O0Z1/2N/niRDbzyLkr1U7e+q/7Ossgfn2H+0ViBRLM8WDh0e2CAi50dNoiTTJXSEYc+7ZTlN3IoNhYdiP21OW27l2RkIvYY4L1ySmEyJNuz9hcbZwvJECT5E3ztXlBS++wwBQfByZ+dNkppIsWfNX0VIvZ3O5TCAOf/ZHSEqiy4TRew+XTR6JcSHMhshb95I3JOErytKijjVktaPqktVWsupw0mjqkX7616w/y/0d0/ln3dZl5NkxWK6FD34LmGatJbGGH8+9yFaP3WiELvBczoKVn69m80M7dr1BrhwNaykwdhJJvXswH5wlcW4CcqNzD8CM5gswWFhCFHYMWgJC+KwmOIKuKrqGYf1x3mEKiTzoJs+iy0lWazrT5yBi7i97HDOvbhiroCXekrv/lkrjZFr8A26KRyHTpxhIDvtXGNgrHJ+5Oy865GcCRx2Nj1yumI6rIrCvwHmP4umdAcLvKZguvfXz9mRkADr4sAQE7VqUM7YpbUJ3SsszoyDuZJw88Y0+zRUmLNEamW62Rw3yzeljO/UN+zkNrAljxRcw79WaXSrn7WvRsi6HuWu4vdljhoOxmGL5vf+ygqxCRvGqGXx/NDFmXu4ezdea13yrp/kW3oCR/d08DCXW4HHmHJN6exGFihrwX5l8YMFmWWCeTroOo2+oRRbN5+PQiwkXVSm2eTrSsr9Hq6Fk86IpbKI8N0HTk2JIuQZFE/otAqjR+bLJWEqMaqfIrfJXfGHCBcN+im1tb1fNugCbWOFlcLnorjWElHZvwpNhFKEWnlTGhPzW+DSkrwNu3P3ytJzxjD0WF59QVSL/1JqxehDpztpHIxbSTHr1/oiGmOiGTV7B83JpojSMlVHe6j8umIwQvtclBEtAW9TLDHL5mUruHmQvYQgRfFDUjCzne7saqBf4RUw/O7/Ho4sjxd5EuRGpfjnd86MZsiQYV/4SwWzR9LNiiPZL/0MVC1uzxUtEhMeVacvB2tRPbhhykmbhiEKGpfAF7FghHAO5Zhh1jUhGknX/jbpZxWCzlQJKCjkUwKe+XX1lUg6jiK0Bno9Y1w6CM7DqxBCG//0O8jQuW8KDaPTaCYalnkBVr68fIkD5cYH/OBVqYaBjOoa+fTIi5i1oPg4i6vPmMqMNMXI3wes+cqXv4myF9p76AnTPOWDqq8cSeseCMiUhKc2houFbN0Go1hY2F6cgrC3iz+7Gp6ETkExrj5DNWHq/OUbnMi18ThS8vUTMR5xlGa1xD2iIC5bReLElxRZN0E1TS0Y/WFS8Tbo7f9/H0/jRWStBBkQKnn2t6q5IHJqCGELOY1SkZTIaex0h30bxaXcYY2dRA4chsQYO1EhGwlFTGotUv0NZJtYFI2OkLANrsN91IQpHD+r6IoOootgPH9Ml5fE62AbTCJ0moCF9ndHWmvbHoyTjXvQlujK14jA/5tG5h93crR36UwYgdgCTqNE3SO0N7U6RP14v0PU1Cq0NxqljZw+71U+fUzhP+Cz0PzjwkuO6cLzYREd0l3xczj+CVN81MwxYQJVwT28PnmB5nfA+jm2mGOCvbm9MHK6wROnehI2W+eydCD7UbcBxndz85UmFY0ptcfjGNudS2j/oupbbNTbUcqkqUwqnm9cN5GBf0lc46Y8xIQuTiqodu1Ng+mT9G9zAXawuq7SEBPCYDnjilgGPKoRXrT4n38WDtEg2rfM54xhaMjn+/rJVze9crzFUrYVuD5ATOhn3U7mE2Xm56tQTIKk73VVJxUsRk0IY6u5pE0mMbPRABr6TA0NGQIwdgajQYKhoX//XbgIatTghiKWM44Far5Ee521phFauPjff4YWUhCCvYOhytdCEMPLCgqKix0QkDPlbeaSrQztZ5eOSDB01eeZyidOZjcI7znTUtYioOQAcoygMTQ6nhhYUN/7NJCFC//5Z9FiuDFqFmIganDa1S4HC1bYFhhWQPpJdDjNhHdlIHVvHI6tQzLzvom2T0G/yctE1pHr6EMHgP3x4sZie9oRMr/vbXksUu1ZPkwKZGnArG0M2tOkAnJ4dyeG/mpKA5nfhhhYyuoBf8ZyCM7Q99Fxodqf1N9SqOI+kzwD5reMUEO05rnOH5rz8tW1frUQ5xTnZ62YW7g6BRz9jS3gBH0ZiybmZYCeKLy5YUQ2wtMEOsf50rBoQzODt2MomDHsC3JgE+MDHRre0NFbcaanLetvhDPAOu7ThnUalTOPhgnY9am5w0tcK79cHmQFlzdJN/YnVlbYuDgTyVM5Nesa/k5V3ANy1qCOCGOgxbJm2X+qXv7A10dBispoQ7CDwGA4FXj5XxRu5nJSdpXG9W+V1UNChML1MGaV1fdvLY3blcLhNsPof9/KKaA3LuLwrIsW+iNslGBt4ULgAZYK7og+s86lsYWMetJduHmn85/3aTgNDzsnsSK1iCPAaPDn3crFN9Nf/AosO85ZZAT6U/q3OmSWxfdtDGuy4tYvFKGLr/eXu5eBUwZgUDc3vIpW5wD3ImuElRKs9S9cPB7E/e0r5hIchiXMmmyDXr+C1KZPw+x5NJaoNpCS6lg11wWn7MB3pMBDeZlLU1MCtSIWLU/0Mb56XbECX1FwQV5C/IBFdXHVqkJ5MAbkhfSCAspfyRjSjmC1EYG58wKK9wkuWWdFP7emgFUJYNXXf6HWOpJLvH913NzH4WPr8Lqx4RuvLTnRLkPkjEhoLGtMWDTR1dM7saQqNMnq/kNNfQtP2T0l/2UHtmFnMJZbFd8T362P61rffhvK4REkDdmncgvcanj3RgjCoYH6qVZw7S9qLska9W1OTsJcBkfpL+LVD7VkCAOm98oDfm99iitqb029JExRKmr2OhyZNo5aLDfbRLgjjioydxeo9odH/xY/XxnmvH6tzc+3svU5SSkGYQnhUdY0cvw+js6nSJAAy0rZyLY10WsFe2+DuyPWmB85ZVtzUyLnA++JUTOzphfhNOwavm336QVoTMmuzZpQ3H2/K0p+DBpVuKvYiDbFJp/KKD/vNy+LKJK6l0ms8b9MQ5YfJY2Fndy+DiGXgczvL4pIil+7fWb2unit/IywAq5ncIX6waj4dhguDgeJO2j2L+y079jCrZu/Yg3lQ28gwZt/oT/eBoo/Jm/d1MWGfk6WNDzlsq62gPFgpZdsqyWcpVz4zDPJszMwt5RwtDfk8HeNB61X2dyndeO6K3lDM4gSNyhibHu4S+Rxu8mqdbMbGLXNdU+57Kut48HK///jneBMEQY623RENrKNs60+d6Yt4Coofi4bcT2TPHMBy71EnqHHEROsA66YRHOGME4FtWpV/DRr3+Cvwn2CH+hXL/gmgjMPp6ZAHfC5JA7BmYk6Tm3fUYRyPbJ1xKxRgU/K4wd5fAEfMyi7i5khri6L6Lg3G+zYflJgdSpv2eSfTMtmBU6/CXR3FAQXlvoDHRMCoUC7vi0lsdyWVOj3oV49InsG/kKh11OQrFZg61H0uyc/fGvmM1Xnd1l1dBylWU1OIyAQRu7BXujWvo/ejRoHLJ+WNwwWNRU3PJk4Ji5njCcDi4qhdeLkcBE3s34Nk55e+vD4ojAhgZhWkR6bKTbeDgDkGRNaNlPFY2R1RrlzHWMzhJ0hfkat8Nf0jOCNuzy2/vP0WlDonFNqzSwpGFWdda/NWR9QvBuj/GJ13kRfQWHPN3sjS3x71kja5QfW/Eabt7DNbuHvMpc9e9ObX3M9x5bXYB+VVn+rVJSsX7X6anEVnzwC1lHcp87fubCwzTJUhNOZ1zE0GbgKBzdZc7nJTMC+Cn4FWQow92E+zqqgrlMVHCwEDGDahMeXGOUcprPc8DSFMDl/FV4HmQXNTKwE9Kv6tShBoj1RlvTSC11QhCNrcf1XMeUHOy1RPShJoM8Pbr8KmB02Pmf2Mu4WuLv6TgGlAtm425EGMC8TguZ/XT7FkFM0JwPem0q/dW08l7XIBVGuzY8et0Wnz3LnCkbTblwFBSH2EokV8U7XuwvmjSJW5aM3wdVFLPai2+CWlGuf7wvNvnrHA3OH6JT2tIAshwPwAsW1Z5+seYwf4szDO8TbBNVhc3N4VmbC2JsRrZ73byT7Z/NXi//W/0KUi/YbY06Di+N5StLUmVxgexCOhZc+zLNXz1gbk2g3vR5MknN4SjbKyM2v2zvMpo6uGv3HF3sXO0GyXeWM4vQBs4Ufbs+pz5XoN8f5tL7BNG5gncm/bagu293sLu5rU1y+1rtg8axHwMXbPIXVVmU1UyzV82pn8s8RP8pp5oIcTURHIqe43oGt2y26XWn5dCbfk8LunreG/2rq71zOsxkj4KJP09s3v5Y7MuMZ58/LBHTun/Ai0zL9SXvDlPk/uBKjPr86pZYytvLU4QbBrFMWLj1oIeDDtHgxPt33waD/6YPwqxCri/F9uALPPlGSa5Xa4OTAzIDt8fF/eusH8CNS8d35eDIXJ/EDGEJTE814uWe03CPKyvZoQWmxvYK+WxanMD3HJVx/FJ4zsQP4yd76+fhdsfTIEDGp7sB+gj9mnzZ/3eWCOLCcJqGJ+/vUV+dOhueawX2H3mOv7Q0gzIP4n769/9tOaOgkgYZSykGikcM63h2PZr9gf+c4RHK9PYpa0UUMLGowYhD88fta4n+bwSei34zMjMFPYfQ5cwWrocWUmqeOUsfZ9ArkYx4WUgEJLANmegtEzzCVgERXjuCKZA0dTabw1QM583MaMIrCQpAtarb7LoAABACEv64N8tmp3t4f/PI4IIKb9Axw/yr1szGQy57D4DguEeAe/tzVGVP1j5EYw2rRakOMHfjQn8TB5vHT5Qs5pJBR8Mxb+Z/oKnGg2T85I3JsC9jGxU6x2LuZb9FKuIZ6YxLu9+ACyWol1sonpyvGdfJFJK1oJTl9fLD5Z7EXdQCW/9ybRj2KMUo2LJdoM9gDYFDrp8aN5RQywmSMzXm1Y3iXk/ULwJabw67bVNvIXDuLrCLb0kyVbdKxcR3f0g1aC4zx1m2KJKnITV5YT3ecbT7nnkLlat+hqZOyEcMzyTMDKGrRoB6CINira7VQl3ltV7QDZ166Bx4p7+yT8VzuT33DZv65PVBEeXlYKJlmC2x/I3qTS4E6Li+dCkXB6DEZx/KfSZ6lvEpOiCIFtiFAMm/xX5VUSpSPgOwK2UhBfW9cb33BJ/ETmV6lcK+xvyttLNXIG7eVsyUChLU20NZEp26lyO+A/GMZd3DOeyWLvBM5XjY+VbAXALD6m+a6/sWNdTXNc0UR7JYZK0eH/2sMeNSeqNr5rDI0HeV1a+fg9NlH8iLq5zL8WA6D1bZ0ST3nLoTguMWCE1i1Dk5nYDqGQHdTJCa620jtNMkv7r/Iwxsryf4hViOWq8dyMVb78JImTq0srLaJMww0Aj8WeVPHhjcGcXDuXE1tbY1yrWGgpobQtKZM8PhPOatrHFwk1zzA7gKal+MLHcbZs7Ktx9U1a5bbreJR11GD6yeU63MTaaOrOjs/uqVc+x572v690wy6kTuuMkh3xsGJ+gVmz7lFYC/KLmjNHjg7odzFfS9rZ7YUUXPI3DJHzleUvHIFdJiGLFCqDqiMvnGg2rUlVm/hbB2X+uFT2dMPgdsdTOKMZRdbu9dvAU83jNkivukq0QjuRUpW+43oTVxju9M0xX8ACnacEeohCNro1fvCHeCXb+c0GO7fp2JiqLWAoWGO7csvNRaL4DSuf3fG1VXV1FTR+YChD88dq+WuFI44D9FouzMiLkJnI+kQk0N/abDP6TaUJVQeQVfXAbdL/GB3g7rVKFLxTg+jPIECEIcJgWTcuAwuvQKXXMYHZnLgAL6j+mr3OXB63J3JGAwIKOB94A1ABICxO5M3VT55fKlzVw0egDkzb/7EfrepZdQbaBmEl1wGQxGITke8bvuISwF/p0yjnxecP10907vj81LgnfsZx8aONeyS7DLU1h5xhQk4P7z6D4uSyuNc9nHl+HFrosGHfxzLuOoY/5F73LpuLPjzRVbgumDvWFC2dR3G5aGH38mHt4C8KdhNlLkxzuYxz63fSddPpXVnt47KrtnIRG9izCPzznC4884cAeYmbAOTs3lU4d1y1p3yUYVntxIkHUpf1NAUWhwea7VJl4Q3hRoWpUPg5Yy2cIg9oSdHY0vM82mYbILNUQJFeSbeGQGWxnDkELNnDo3mK+7+rV6gYnK7SzPI7gjw8m/AhUG+VhIvo7MxGszvq8rq5jJVgtKEhLJZSnpTDOiEGdMlcftfjLOqsusxBIZgFg2CaTAzX5Pg1bidPcB0TsAd+foNm6aJbl1PCqlGwwehE0Ef5G2AchsgIP3O2zO4MamZYGDGNVe6Q+G0s1/6fCQyHjO/+3qEi54InQwpjTyj4R3b+8Hpluvc1VBuA5zbAD5jhlRx6PrEa93GuaK59qVP7aEzJuZEyP1vIBjznk2YGTw+LXbXHXyJMCxPnKvp2r11QtiPqfHvlfDW1hu9tlredFZ0gcitalu5rm/tntsv1pJ9sUlDPRG7Tgim2WPTDovrZq2r0LgjCkS/7CTa5/pqeP0UuHejxdrrTHZp68Q0mhHLE+XZ6MzdBrthN4tuFeXlYUaafL7NzsKF3LByeIw6l+MIjfPaAnmG2aN7Wew9htmBvFJfWYINddDB/Rtpwcw+MiqmwPKtnpOa57UsQWGY2TFuaq/HZSrLrG8oorH3ZZaZPK7ecVOZHTCMFujHXHkkbSZ3+mKdhR3jVjOGEbXg5TjG6kLfKldV5YezzHsnD1r47KHEPmve534pU08DnddoV1F6Q1vKTLjr4cGtX5Ffvbe397dUWerE5zs3nro5XzD/GjV3Ue2p/4ZvWrW8+1O1YNyt1StwvPyjNsjKMrsTk8yfaPnFkYQ7o+mBSGwgCBMOvJWrwDTSJpN8WFBy1Y/HPQrEkE0yvYyTO965ajfATQSRLJ8xR19jTa7M81lMent8DoO2Xwog7wV7onne1FST07aNLpFhwnU3l/zJ5YZA7zTIfPhAjVn6us/DnLPD69VWbAC5NUgoniB3vJ4S1hLbrEWgeV/+zaO7b8C3isLGHnEDaM9uaHQ0nAkc1XBjUEm++tbpTNlxud4ATNbiyM1DSmjHJasNT86GbIFvJzNUYfb6/ksjHSp6c8vdaKygfk6toPkmH4dt4sJ6CImmQSJQLnVPC66He8SZKVjzR/mLiucMA8ksj37/PmvKjI5qUCAQSTCKpw9+3GuVswjD6jSNP6dbP7oStdWSudoVAVp6nj+wfJGALTSMcCSyo1PPQtP/fYzpKYzTXTYK74oCg3MSuC3YyQ3i4Jnk2dl5F3nx1MrFFlSAyVyl/eYDO7k1yw5C0JmaVRMHfznfTY5LE7HBS++Wp8JjL8beC7Cs5b/yHwYXRN8VAAgaBbJe8bkjj6dUb8/jEUAcDNzpopuzj4sh5eTljibD5YG0m/C/2IJ+sFTa290uzp0VKKdHIIwfgqUyeCheKBGSPLIYLy7CiyN0VSqbG4VikfBFIoTbaqSlQMC18OQ2COUKtULe4g8EPRwUYwY5eBDYgwDnBJngeKFYwO6N/KpySz+JfagdfBOKtdRENd9fyAu3jf9K9G9L6VO9NWm8lshetkBcRHm/QHxv+QUh1TCfRY9A5hmMDIrAzNfCjlWDB2EFnShARlGzkXr7feYL+MDbR+FV8C1gecuBmuDveQn4+fHjIpwFw8b447EyPuC1FSEjY8+JutEVBdkyRD5kZbVs+puzvaVRmeL7dh/vj3cm/PhfGk6kMg0jG3UBlQAhTCyVXfdPyVEhyoxX52X4zAuEhrpyyQLepJDXxZ1isjSF9/23NZlqBCK31E76YWbhH5uKgKPHlDqqHVAlVGHqxGiQlEUmXm+O13nteJqCTf9tLEaNjAnGUlzXyFi8WUZjpjdYT5laGS3gxyXm8CxkGY8BiMFKoNtxIgpTvIoNN+eH680E4sGb4z44buYxj7NRlpRXLLnBgLOQNGKMY8xAdfVbi1XRb1gGYzNbN6hraLod5m2SyWdtNyc7XThoIEhZoZDk/l9VX5nEDUsZW6wu52h4cHk+B1o3bKVMU7/FGd93IR0O8ikATFVlnLiYwVhCyFOYds1Z+OfT2zoBnzg7aHA8cHUfMnEhMAhCahwxZgpKbvDhmqL3AmRi3ObSzCCNvbJdXf/19eoopFwSl/UsJqO25cl44Ph/EejaD7ce2f7f4db8VNevT9Js1A1CmIQMoZb3CqBLGhI4Wixinh/UNSHa4oZT9UBHng2RLVZLSY8gNbr/0cHeQG6Kuz2tpDOmRQE+Mua26ZAr2SYGpXx0E9E8dpVaB5Q/14KeC08RYqWFIj0CD5e/JZ9pO+qKaeGemZn+uOnLv/qb/vvzVgm3AMDAgITMZXFMxdZRLXn7H6o58LABuuBPjKwUejZc/nNK5xTklWpsUoPH0jAs4uqNeao9tQC1lkalVudjy4A4jQFa7GWjHNc9vCxbPPGQQ2YNi2IY4FY+YylPoS8pekl476VT/zus+0i7mHSIplRp2ggL55RVljs3WSUCy8b3CePSI1cTsPSeqCbFN1ILDVJQMbjZnbNExCTMipBFtANkQFVjcUHOZLKqMTxGZIJG5FQKKN2n8X+tOAJrbKT1YCbIKSKmzGAoz5AxD1mSpQbVe+kmOGyAVPi2LSImc6ALaK9HQllNdsVruoFKvsIUwJp6xvQZoMhxnSKaBb1HU+bhWIzf3TmLwOc1R+4COHpD0HagVbzmwr4M7iM+lb64jU6N832KbhBHl3GPGSAPpHKaIM4FkJ84iYI9z1IxbpJ/q8+xxoLcB/QxSx5eVpamTCEH/p3C4eh7T6Zuw+iSI2VaE/X5Lj4oEdZOXdvCInLyTFhkaWbt63kqIzlQ1j2Se1QHaQIAPiGOxCmYXd8Ngh5iUAtSqWayNWCJfzkHQ2PcxG907lgPy7PItvhVgkfUMZP1a6d6ilWsRG2vxRzgvGXZyjKfQT4rA9qAqap4A7YAywc2MiuyMtDfZoWZl6FDPijiPvrKshEJJTV6ZYxRWfCMApzZTGHh6a/4gI3L40He8054kyuSzYJbR1lOjadu7dy29KVwkyzFFo1C+4Cu2I+Ox6oKicVNQL7j8JBg6oKs5Usubyfl3SEC23eH8by/O8Lp0u40UcF2p7MnoTtavzu3i4xfXJ7kucfhKqmab/AsZ0GQDAUjnTzipdgtTWkndGlTlCpK3iAh05Q8abTAR9lFiyPAW6aycpFOOBwHlVsGTumE7E/S8u3OR3RGeUnX+c6sLTUafbXELU6NMqcV8DheWvY5AXqJLSdehO6BG8aPUo1U3NNKQq2FMhxqC1TjnDQxlztCtOgvzkyI7MkVXQJMvOo+NsZlXBicEKq9OC0/J/WQX7IpDIhCPfBFR8VGFGFyHhcHYrlJJ3XOWgq8uE+Y43Jur0BsQToByT1NObpJZIa73gJ5IkClwEnSAqYqagOnlHPAw2lpYzQV5kIT7QjccwogR/OIBS2OLLdaG3DHBBxNowmpOxDCcYXx1qpsW2XEO4qkmqCJI26SXqOaQpLHlWvLSxTf/UQ4KuTmk/Fh255dvb0ZRdAV12MC8PGvg2FiYePg4uHDEUgUASERMQkpmTDhIshFUlBSUYuiES2GVqw48RIk0kmabP87jUySpTCzSJUmXYZRMmXJZmVj5+Ti5pEjl1cen3wFCvkFFCkWFFKiVJlyFSpVGa1ajVp1gZlnviV2mmOFQQ9Y5meGLbDVB7b5lMOOJMtnPJZmbMKXfMV9PuehDDNzC0sraxtbOxKSUgoUKlKshKOOed8J7zmu3wUO5FZlhhluhHIjVahUpdooNUYbo9ZY44yPHqJi4hKSUtIysnLyCopKeRAVVTX1/HlNOAKJyleQkxCLwxOIpHxEFCotPxmDmUt+JZvD5fEFQpFYIpXJFUqVWqOlraOrp29gaGRsYmpmbmFpZW1ja2fv4OjkrNZodXqD0WS2WG12h9Pl9nh9o7ptEYpUnAhRCdw8KFvr6hy/gezLdqfHMalWHx3yGmlNzS4N99nvbnPfsLabl7GOYZge0Vu6AoAOBg4ZcKWH1HZ/hvqsyr3x63Ljea/bPYrDnS1d91Ocvm9h+D5K85OOKvN/7T8Ao+GWwfdQe8XFqDViY9QaoTVaGS6IW+ZhukDAxVPQE07OcJTKpygBDcoU7vlZuZyyyT1nr+qRjESPpI0eOpvRaTvLZF5vTkjP01IjoCYX7/SI1nKhum8t54nMCDBJwphUKUiyELB+b/hOiJbEg+m66kZ306EGXblE81vm8Ehnv5tJwhQWtKh8DBuZD9mR46xogIs9maaTPC0D4lInC5P1EpmY6y2QmVhm7ZF1audS9OwZVtmGQkOzTeV2YbEZe0l7m7q28yDHs9FXrnnO+n3aKUFaT6g6eZDqEpFmACOYwmTW6jsQraXrVmbmJRaJZXvdbarG04TNCKYjk7kA+O7ZTXSBI5nROKGnJ0KHWXiqcLm4O+Y2VJr0qZAGNm4XRiM3CbueGSpT7CZI407r8N7qctO7O+oaB2HYbDZonpEGvOnarFMFF3NXWlypkAYu7hbuFDCDBVIhDWzMUWEzucGm6/QNLr1RD/I+AFeLyo5A0JLywxAY2mMdRwDDfkwLYBBn2Xo8DOPTYNahXoMK4fVM+2kGoIGmNJtS7KweWIH105MAAcB5JAoaDJQdtg6WHQoaHe3ABxjYUYiJ8rAjMYc1p7A+ANF4UUPQh57vH4/ACBrMi/sAejtvB23xEXjaeIzeiAKnEw==) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Math;src:url(data:font/woff2;base64,d09GMgABAAAAAEAQAA4AAAAAekQAAD+0AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgUwIagmcDBEICoG+WIGVWAE2AiQDgzgLgV4ABCAFiQwHg30MgTIb7mMF45glsHEAsMl719mBGDYOGC7D0lEIbByAiMxfEPx/Tq5kDDgFfs7Mgk2GEaMNZkJGYKygcBdfmBr7/iSDZ1PQyUX5xjA/Omw2mxeK6n1MThPrWAytiLXxqvdXC9vaFjl+0e2b9r9jbvOKeixG9oDqM7Bt5E9y8g5Pzvn37uA49h0HBzvsEAIJBwlkkAR2yIJAxjYJWe4MTXQnrhlrnF2uLlv9xjF/rf7WjqkdW233H3b9Tu3v93/LWUlz/Hpz+1UqU9UNz0QDjhGHjkFV6m0m5A0hmStcMbij/dbYuUPOouRdZjbF056G6uGezX9rCXImRSV0/6ur3GntCxuCVN5xedWlAvKsg1DU6aTWSqr70rdHHsgb08AizhIfyVagDlhw221PmmoYMGSq2JyntGbJcr74lolTJnpLnn/tsGwQ/MiQ21IKQAKiCI7swBU31ubo39NtVRqni0QPUoVqbG3bp3QVvL6Z4BqlR+xfW8pFlbACo/zwPW2ADBvSkRH0g5JvfUXtolZXjdbM87abT5dwAPoE6u5D6tl/S5d7Qf1FJt1HSLAY0bpGtnpjZ+yxSy82RRiKwu3lNAi4MT5MQwn8n86yHSnkIFfX3bsq2B+VwaJO08h/xpbmj+R9Hq335NGhbC/Ii/ahDn12kMD2geM9DgCUKTrgll7PVZu2BirqFF0X+E8ns//9u0uTzhqs7jKxTqGIH2gyIXFIgdJMHEt9/MZI/Pvz0id8fqAoqlxkWqXAcLabdzW9L4pG0Y4JDLOi+fBrrp6ke6gknTZ6m9jb/KOfj040saWjiSVCsdQvohYqKRJC4rHMqgKSy2woEkG2n+dsY1bD616pW85XLECAQCix7VIeJRxfC5bDZOLWZq70r/5dHyQ4RwghVldUxroQDHdvTIjAm/RuELTltsFnWge7Ovg40A+4O995exJfGYkP7e9Ju9Lie1a1oO1vEIHF9yQI0sIvMQTiYiXov50Z0MWsFS1zqC0LaWEJB4LCZK3KE+uW1eu4V/n9v18/5euZhfsc+OnKjH93TFrRzHjVX9Ldu97wkkPTE4NekaVJU9z9/X/3jGKNGwLQFV9NJG8+L++Pe+m5qurMrQQEP7cfbO2ubjfltePibL8oFdpZ1uju3xhdSzYQqg99BVavIMHNKtG7X4F5B7S8xDFy/TNhT9eYYJIeyZGxllAzoaD0WghIMHpHAGrr2BGGWLGOCNCcIpu3JnyXJBGjL/Bm1xfTBAlz7wTkGWF2U0PG9UkLdzqMnrrxA9s7shVsTZ4+wGiE+JZMG5FmQigRjrWlUkcxYZQgQQlDWyDF7sDhBg14xcJW+VdrSUvsj/pES7CpPted3wFHmtykTFy/cV+VLOjoL3hRFDErNbRAotOI6Q50TCBXhmGMvCmNCIfHCWplkNOhu4nbi6orbQg7eRwRSgZCla/c2pYBXVOqOUtXuIwk13LFlG7VJilBqDpCdANJUbw6MoE+yPDUgCy66pFlnph5Y+1qrjqifjeQRFhYQ48G7LaNHfDgEa77LDIH1vXciaz9PzEZxTHlZOTtELdM2tEgahX03QVEg0/CpBU5skA2Oy0Eh5tgj882LyBk8InwcEzwfUXIGjiyAdAjBRxdMaTbG+/KV1W4sdesjoOWvSzBvn9tCUS4lYSyeYtlQcg8SoZH9LOhBZd6XULKwAxRe0Cf5zwiHrR7qk4Kf540jWkNqtoSAVjW6pS/KEjZCtaI1deW5hOiwJ3CnvgsRxx7CUAhV2aKD0LzSrxTSwo8boRwiXunFa4Yks6GRoIRuZMtwklkQ0RY3QuFMerpU/LHcuJITvLbYXX3PW3svhk5thgFEnX3LZGKEDRPItS2EHZfhB8aPh/BtoCIX1j8WEqG+7wJ6mfhAyvryS7byBE4LulXr1LI4WbU+HQ5QasllKMWCLohPQISKm1BSp+vmwQTBVz2AkXm0afAPPlGuHrES9nupBATNya890gQ8QYTtCKeDW7uHDxRRwoFknQcpVoHRKbDRK4jRKEziFJnEpWOErXOIhodIxk6e3o2JA4NidbVvSCoCD6KxtgE37ZBjcqfW3sz5+/PtJjgh7tPgnb+PsSHm+jQokcxoBhRTChmlEwUC0oWihU9c4CauMq9RsoqujIOjd3QQjZiTurO5wBzg7mDNoYGMKwe1UDSnFT42iXRoECc7C0ogumSeM1IDwozbfXDW3XWcfmpZtlcHvDJgWn5mBAnUnT7BAGpan8AUWfQVaT3TeZKXtpy+S5xAzWGbniEgvwpcvSgulM7FoyZRcDR2vyFKLBQz1A1RchQNL3LedPQRJgQjgz7zm++LUhp6+ZrGFkEQhSld5rhTzq8deFJgFx2jnOOAXUu+EykuBPVst1EzU9SYCe3zO+7CacMnVWjwjy7r55xixwiGyZ6Moh8gsxbjKzHNqc6DMZGyGRqDmOYTgYxMt5yp2aTINUoyyDNGSGHg43L5VDbmUa0KIJLAGNQbpjpiczFFRnZGN05ohKMuoxOS++UFxOOaYaZhSf1nGerEpccOWtQQDlEM1UqQ61iiBuT/dSFCrVYY74j4DmMgWnUzeMtH2FYMKsmfSJqaNQ/bhmgFMOGcaezXNuToQ59EFRoGrK1lGHL7GhArVVxpM1OaEL/kXfM1okHlqh54k0OgkWhOBoCiyNrtU61s5gLxowgyooOEGHbIU3tHAEvkXcwH8D3nIIalczpKY+gcCbdjz2Gqf2rGCYzuAZ8dt1a5oxNm4xVuCQ6HSrqoMPLTePMWLkknDJ9ocVsSf7LFip068Y85h5MTkVvJQoEhml60KqK8sJvrEZzyb6gwiAbGmqyBsROs3oEc4mjxQxBkUbCQLUdQCQNZkqWqOuGUH0HEA0G10bbKQiCgkRTADUvAKIlwGyVN3CbgdsN3GEwZ+gm7M7RqKsDiG6DmZal3D1DqLcDiD6Dox8eoRggFDMJxSxCMZtQzCEUcwnFPELv+bZpyBvIY7DzfsK35RD+Oez99R+B14htGshqQYFYWECjD6hkccayhEVZciwW6w9Lth8tLaBlBfbldytlRZayMksZz1ImNqFVBbS6wL6mtDLWZhnrsoz1WcaGTWhjAW0qcG62neQecP8/gSpPMmAk3GTQKXXNzYHsE1jvCcSYWLRq92eeHQIivI8QareZB8U+hVbwCARpuyHI9Ad0ZeEcg68nOn0YAh8O/MoR1mDaVGuY1InD/eaD2WHKVF9UQAJ06oj5qMPm5PERCsC8pa/mRFPXvxwGA1e6w8kiZlU2WWzCSbsiJsoTEJWZkpndbUtdRZPewTaJxCuyawRpSbquvWLRmtZYHmmT5JSSJmFTsaRB4OUVDDgXNFBkVJwnKglFmgNd6aZmH8WWSUyVdqu1Ldw6gyDGet0ii10YdJERbgW/XC7ALa15UXo+xqfIaIakWCe0V3uJunSsnywSCvMNXkmhN5/LNKi5kWmzbP95n0LLnDkZZZXY3wcm4LBDDhN1TaNZCGJQUhylN0ezNFfOlQtlbjKJ91ROqnldSBHo5xWwRBNwZC4BZB1BsQLmS7X8dQp7V80TGtwgVhLJpnmEh5E3NTfRljOOMIhCwM0yc7DQJkp9hY8ovAxIrsGJ7DFxtdkP72qmamP0+qaHmyy7HJkghocK6HuC4gbTNSIBxSKCYa8wtUuKZCMmNJTSy3J8iS/9b+g60BVGw6A4K5T/9bcQsKSV/eMIYPbSth4w4pejqP/GiCebUOK1JGaMMX5qHtkOFXDPJiArx3Exjlg2n9CaywKTwGFwlpmgQrT0qffNDMRLpUoMheUOnjDtfkCoTcvAHRWF1NJUtPTDCxH9rqCC68Sa6BpTWNLh0SxZz84xuaa+SAThKRGHCIYXgZcDghZySo7AIkIoRHonk2pqbZ3sqk/RLFNrG8dN55mqhLCIcVy1R3ZVUu/R3MfUh5gGooFvriMf7WOaJugTnrhsOkFinai6KVNmoGWNOOxIgHv6P2i3d9R/ymSwaPlWKo6AbngjSiJLNG/SAjTaJizOMvfKBxIpAg1GChug1f2mWK1mLFwW+coXN0xOJgyDVCAdx/gPmonCN2uXJrbGO1EILMCbiD7Rj1v+0aMHD5ZKpRxNKLw6k1ir5b524pLL/ByyUUuJoIhGYFCU9GRahTVlg1tt0C3jxqQaZwXXsr3PRHGxkEpn3EMdlj9N7OzI7VGiVxPEajd+QV6IeHEU/gYBFOtiqBwgGqPoOXPqP9VhLIcrqpSYB/qjO4E+IQ0SMtJxpc+bnBWGeb4nODb7d5/ieufaXh7uSvonTqnFEU3zJ/K2ijfahOcbFr1MESr5jecngghZN6BkER/lMbHBuFLO3MHekcQrRvu5VMtlwMeNOKlOoURaskZZtJIKzxzwJVncSAT9YGJJGJs8U2hZZtD097qAmuQB64XMYxosn2ws8DDHtZb4nPFu2/MAi9UMVDkQJapMGQy/oR8SJsbvnKB8zb/figViEtXOOekR5mZ8OeoJXj072AWwp+Bp9wnc/PTqC3Aessps0oQuihYUpKx2mQSelo9cH4w7bWBwKzSynsKOWjcPjFVtvtidbhSfehFyDpbsHwSxRgGmxf8le7CAgKv15ovASFCB7M9Yzw3OhtCSYnoNpFdQ/8r4rFck3k/1mqyu3Z+eIv+Rf7HMRXJcYZnfSPGv5l83rtMGau95j0LqCWk3UP3Gv3J1mW/uMk2+IHtKy/84csjVAgauVnwUL/9E038XwOKmCFT7yeoqmbKtFS5Hr9kCevL/AhBVY2wWtL8hUTLxXCPwrCSfP8LnDf3BG/+b+BI/5MGAa6nXsZjbLBFKqCytbLmB+0IlL9/p65Jt5GiEgLPcKF+hreE+97wwJsNpDFOH1SanbMq68IwozCJ+mBrILoXZ/27OZJ0w7b5zXmNtzeqCQVE7inKmIO6HJYVqw+22K19QLjAWWu1xX6nET4KLhMHZaxzLZotZZ3aW2zeIYHa5A3hU+49QxCITz0/YyCtDI+wMJGdhSBHubiQ3dW6DUUlJ17tBL9+HRzgZnsRn2dg77F9j94dB5gNgWmWL63nV2K/qdEsu3yKS70IFw22Q8mdQvQj97OkwHlqytzIrr1Gm2npvdRkxyDl7w4gxm23bEeEef6UdXOwr4ysynyhE/kCAPN1+jeRjf4InCot9o3vepTgey8BmO8p50TJXZbPghEqDu8xGrXNQFMGksiB9FpYvyBmt9cxUht9oCRgLyAetXEX78af9Gs8ZBMPcnw3h3wiocsj3vS8NHiK9XbpvcQlcw+es+1pT36UpUUcgM+yvpQRcer6EUH/mxf4vazNvY+OylQ1+5/49+dJ/+eWhwAam2A04x5EtCAw/9/3VQO36mHQylt5u5M15hjPFUbpONyhRHHCV1E8d/1B5NOolS3Xmtuj6YT5DyzzVAbgedrl10lUcKm5LluPvoP8lBteJWAiPD08Eq8oVFrLysIAR8GFgP2t/vml2kx50nR+uXK8AL/1h1oSN3MXlEzdSI53yLeJ8hxIU24cjR5xIolJyPvn5DosfFOiVLLh04kF7LUtMg5y7OdMioQikTgSRx5jxu1hKPMmAys4CI0ctsVDj15j6cTkn60kppV8s0/L50jrizktki8IjfO1QKKxqZWBhACZDupbIDIIyrD8M9qjtjYVndRzjq8AlihSCP9CqLRFOCfai0eOGJPibwNRgM+X215ac/UN2i36xMCXJMwAwFUahj8BOzxnY9yuS9DKwZ1kAElZ0n7qkxzbzoJRSa1oWdCWHoxhutKlwjbj5Mj+lGWBigfMoxDjW6fQYJRDKUbvWO8BPnhfvMC0yTIU2Y55ezsQxOlHlvDi9SQGHzijQp5Kwkaxn49QUJS575NL4ebltHXQmgYllAdOT01+lS8CB5TQoDC9COvPsV9GKrRJyT0Rtd0UcpdhrKnF4hpMSKnNl7CQG+M0F/RtxBCifCo9BZtBwTZnnkxcat6YV8Hmg3FDv3wyzrIKFA8UNrpiz5/Q3bWIeS/3MG3D6MmBtfK0daxwpSvA1HFqjh9HQvCtzzLmc1K7meYnkq1RSUwAjiSh6OOtFFxp6xDTBZnPkYXmMpTYlQHnf3ZLtia5iAbzsGwPXNdip+9eYbhHC4NI3CbZnSgb3RjWwfMNrBU1W5kMXr0BLHxFwRcjxrZNQpkVmwFSts5GPunPDG+EGuhuXrAtZHTGtrONNy/wph/oRkOH2l+gJ7DZDkFpjZUb7ZA11G6e18Thlco25Im15i7NczeWsrqxG5/SBXgHhnMqv4qDZBw4Phfow6AM1zo+b3W2GzLmZtp6Z4i5EuTJZJRP1T2mJIB1dMQyEp+vGPbAwLrwZJn7aLlEV/gSic4PYvXR8P/7nKiEV2LYoynvxBricnQSKoVDuzvYkhZoCp201n4GJgLJrs94I5XCcVznsxFMM0/5oL1Om1BrF0vmYmCtB//V42PwLjZxgr6xLYyTTsM8J1pcN52fCAnC0keL47CkkMz5FAAD7mk/Rf0jAYbSO8usEsEwpBGKCDTKD5pIsy8DWpuSH1cEVHjEviA/CjBc+DjjWcuZ6XoNSaLeltC3vebrpAPaFKd2NMcXQYiVjmKvxKVYU+pATmI2+bAS+KQQIvLtteautZdbES9aJPyYvldttEHNmIzmXNI4vKE72cxUXgaOr5l3OFJHlaGgSTtK+M+3QVLa30DLfogrDr1KgSr/QsYSTNW/EHd1drVEAe0/EXTqHCuedGgjLqf61YKVeNt25c3V6Ij7wLORZfJbwhk4h16bqDvdMcS3955Mi+UX+SxcbtorTatP8itaW4DSNR5d0s6QZJllDVNq7wvAiFdj1EuliYF2oAcvMdfzwwuk8V8YqBAnMrG+1rgYSYAGue0VTmZHUGdfYE3t7cVF5Wytr0TbwEkxdHJd0TaUmy+wwz+opRl8Q+P2o5/glx3ep79MovLrxSLJd+MMVbbP31cKmo2F1m5b3qCAoNyy7S2cE8VCRtHQ9AfoWfHsiHdi2ZYM4cvzfW8WEMjsB/e1c75lQdJ6u/Ki67DSu4VZwDb+kMzSxF4gYIFiaNZUXQhUSG17CDwSWIswtXxUmDEEa39RBTjeq0t1yRD48gnzP67I4siAryVYyjEqGEzqUBPEUh46fdOtrtfzw/qP1ajygrSaBlu8JsKnScOfCOuvWGZ+FTvQ4MKdmnN3Q/b73/dxUMWxupEvvJzCavd5y9Zi23JFIWYwOnZpTQ7MBjCgx7YDCSzNWMbU9XDYNWvM2vQhUwLMghZ23BHNaapOLFRFKZAaFgVjH2xoNSiQ6JLpfra75vodquE0J69UOmX3ABRAeW7UMiUvRUerSrGZePD3JAj9EK7zOLel0QXoBueWJW504a64CZmIuUBmeFxYMhKU91Z1VA4sVLISa07JbMbGb1kwrmoe+6XZHUzaOQKOtWou0OCZLG7sl0RImhuJ+ohjv9A5dNXYatpy5odevz+gg6s80kZ4SCt+UPzRFZwK2aWOM8QsYu1BrRArbZZDXUEgtsZ4r15j5BKlqsB5ixDxoc6wzlRUFfnEylNUyieb48JtcLVS7eN1EA4tE48pYFQnLl/snrgcis2w9s6WmrJeqQms1yKKwyOBMuGvTQGD9I+cvUyzH8xDAqXcC04z5FaAgZ6VhsQdFi74Zl5P1QudKWVNaPCu9jhVeYx+kCGv5QtDWMHco37cAlh3qzD0pttrN5DQljdS3bpsUl80MaIER7ebXjI2Q+YlPq55ljzxjSg00hSeAFxNFi/qYjUOG8UHGdRqIHs1opu1pHbkKrTjnoYeEwQoaBS/tIlAmbvEmhkVVpgtPuu8FJJcWhxV9yMrUm2JuS2X6HmWPdtYebRk2BYetsS4SUKaxQjRNWmeqZZpwedVw70FbaGZknrNo+r7IY5UE+45KQXKFKw4gLzKZIuXnXaHifidYu6HFEhfIRihjUk9slxLwPj0NfJketsBJ0voTcmrHUMpxYXaKjl3RJjB4N7Nbx9XjsnuoOuaZpSuvXEKjlJfneZ7R/c8k+M8owEQyAAsVNNkEy3l4HCcx0Kek50Q2avg+rfiwkf/HiF4NG1S39mKK037bfXX1asVmUizyNxa8ypyMSex5P74P7HKCTXH/ZE+QCQRmLadwJOXaFC3eykBGQGBRLM8X5jlWucKLqYT8JFq59J1QDCGFKfz4FPLku87mLoKuSIX/bB5A5q0YIQgKLkYSqA0sWtJ65TbnFglglyiBZVYRPGUNHmUoRTd+eStFLvHfsRbeD5AbjGJfABWixZnmKcS4vP67PkuQW/+0FavDhzkAapbdwTjm9hLWm2W3Gcd7DReuREAYvV/mRsTTr0pcOMjh2/g6fSKPUIzK1h/ChRouWiKRmNErlVNS0zXcr8CrzNWexn7Z0KAhJRaAsSxm63m6Zeqi1fcq4Hlzo3XnMKYPOILz93huZrIHju+0uvifCPDNnU8dfPOlzr4fF98aVMBKc4S16ktY24LT8OwTfpWNbhNdsdIM1u18Hi1JvdMkilu7WSKLqHRF58ogP6PlEsNYZgoXqVy/vmVTe5mbXBf74U249gzbdzbMqyTW6YvoMPydJB2jvkqfhxu7rIfiULdLN5jnk6E1f9CsRneSfeACQjFiiBPPvUYm3JmQpctvUoDqnB7QBeVI2RC3suIbjuHVCAD/z8Le815MFEVJR/FpXjrYkpnT8ppGMLO5KauHP8XSwmYig4N+LUcLzVP059smxXQRZGxSVFLkirdIV/UxESSa4oaQloH3G9z4ylICtnfUKSJnKP16msRgaxGEG9USEvCW/S6Y5q8UFr95aBiEoEjOac1jh0bAmECKSg2sX2v1J4Hjps1Vrr0mGqDdJTohb+M09WY1dEERlG9cejwmIvPpwuf95a5cU8Pdb94sPjBteS7fXva9ZfCMw5OTNkNJ33CHWIm2c/3LqUOHyvs+J2ygU6PSKCb7GwxwKVTnm2WPmDvgBIxx03aU9espAg7f201uUki3PLn8mw74y05XYbUe085B8xSFWXt80QXiVeHagR+LFH1JptcYcpZHU+h2wqn65VKJ+wLsUEHmSR3kRBNzgWqPkJ+69digk6J7w+nJw5KcVO802JqHRxAuRpx9ahxnk7tasgu6sxC5vocUAY15r4pAniQb/SzxVVqC7kCR7rqey4yWzg58yXHyfs+xUDTIAT/oP6tOyW5JmnZOO6EH8Xsj85cN1AzXCRfKxfR4mt8yOLTsoO6JYsfYxXEuQ0CUy4nq24/cribk5YSAwR3H4hMoi4m4QBqXrSw3nWHhheTVK14vvYtEidkCahA0zAdSwWwClRzWeYv37AYPBJAfBzHTTgs6lZkHFKq3BzZ4T/Rz/0p7MgLjK1N2LS2dNetR6Dp3+YB2N0nQa1gszX6xJEm/9rquu5Cggq7BUNr7w/eQ0RuX/GG1sQCxlVSgJxbBDkN/qF9PlL7bH6ionuVoO6+m73741Kkv68RLh3JDJ3+ea/HXj1dw/Eyu8WGz8e966wtQIACl6TPd+eHsUU/lvCubfsk10z1isPYn4vR21qgll2W1ox9e3ekh2YK1fge9Zt1aOmkSSSlPYjOtRxiM66hClzSS114wZ9JTjik607zGnKk7IhPN4YuagbFrPPR/eMfTsbq5EPbK6wKFkBAvjsXm8H8iTSQyBnrUgdLu3Cci4d6p4aHWV297df0GP6uUkJ740C/Sr3c2OcpX3KnvPCfOrR9YskYorRA901bvh0DAFFHUxauV76BTiUKGi2sLZglb4X4BMddm7Ty+r686mI69FykfGay4tc3XGO3dwCWKfwhmJDQub54yk3Uj4Jc1vX6pL5Ca96shcH1gBIr1YwdfYekxggmmwFr8qkpEkIm2RLungj3h4TmlQa9U5g2jUsYDjZue9obFjNlbocDIhqgzJCboNSyG4Vsy8wFcEg6gh8opR9xecHt6zfHRGwwYRzvmpqLJeO5CeNhb3J7ftX7OnKxXInhVk98CDhd+QAdcBa1AVcVVf3XvuUjmn/XJ4YdLym25LPOGPVHzH+umdrH2XSrxVno5xzfPNhelFpExuAYHkQfmmJQdl+4rI542lPkV6eB3atcesxHfHajdFKpoKvVr8rx5atOmX/qs5sCdjTnsikq25OH9SvHGo/fZQbatrMiK+cUiYsI9JFSSRBi8mPdygb7/HQlbvAm2ee3eA9mXmGWuRYSoHZiMXYCUEuTEBhbo5Kq4gCmYyYChcjPjC3xoNUc8EeqGHBUKP7j1cwjzz22wODksBIEBSE3UreqDBrCDJcywNETATf7uLEZZfTf99TXox98a+Szjd7aGJRpkSAujQ0gizo+3WU1whn91TTNz/M43h4toRv1/TFd/W3CiC+pWj2nG4LoUdLAFNzQdcCnDh32zoVnaNdo1ENzTA017AxV7tBzes2JbZ6vg8I0r2loEewlllEEi44TENyQmMUIQ8jYsHVfsa+3Yp/AzlYOFqCh08N22nja27eBoS+s3NQusujTGsFCJbcs7ZZfye/aGaix1jdktnpFPt6H2PO2Pbo3PZC0f4HViWgkqfPjlD3bKvvrsMnTTgr+ObQ+FKoIhzmAKSoSlESmc11cbY3ffcqVE4ZuP78QO+cEGAwTb7LojXOYykX4k8S6XSX1qbKKk0XyxRVJwubGzHWouzf8ABiYtOrB7V9lukpgqZPjZ+iglusZhZbXg6tHDeNZR69NH4VjTl7UYNGbtMlaJeiY5VKMJsArWXL5Mru4y7IxpVPcEvvdXrScqovyediiJIJox9Zjh+q/P4lHHbjFBr2WhPobYPYRLo57cWSKl+7QzoVk0S+ArK4WLinRHOCQdlri+wNoPxESN2u9/Jy2WiogJg5M2GBDXayDEYgf1G7R1Ac+qTUfHeIMsLyY9/v9PzvConPE4Vxe8Er0XL2EwzYzFSdODWXP2t2fWZsbxeSGqYX5tV/28499Ol5b6iXgn8B/nW1pAqJ4oqRtSd4EcEXOZyIX7aVq1QLUQTE3ds8GrL8lcw5XMBJnmNCCl7xiKW95mp6fQuu7k5OzMtIUliA/AU1MPtclm0H2QnnAHvQvjPFpLi3ULNDOBTIyLJ0I4nZenyulw4wNz4sDH476vOdyHUn4XKn46ox2Q6FgkEHpcZS/+ufQu9FMcfvY1t/WPGhGHIbI8kFkryDAoVT80I7/xs+wbvqEWfwUDb8n7bIVRSS3qWfWM8ipnoecDW2ET7kQ7Ufp9BguGWBehhumGv+Gr7Fye1HptZLgLFTUC44xJ39dcVta4T645+UPXy+MvhKgOaQeEyNHB/eur32bYCtd7d/RHnYsOnUtqhM35ybLocOdkyErGNENAIbtYcHHLyjz1NI0RYjNVcmzBOjE+HBEzkY6/RORqLbHbojWaGkZZ8KyGFofIEIEYfDN/3kqvXLEL1ncyGENdyUU5wZOIPvTBoiX4PwRaonBGmtaMS3pARQcQ9Vj9GhIBj7ToL0mI95WgRn8hNBcO8nwIEw1R9fkM4HL08/E4KAIC1RmFbjV2WZP2GvwC2r4Cg8ENzk+yk8aGVEOtDsMTQFODH8jE5vVxKD8IgT1toqiQw+P1eR5TxzclNq/4k4GGRNhfj5AjrkYb8Y371o6TTN7G1LyS1OX02OgDPWRLjzoojeQfnayfFTh5tzKRKnd0ZJGXtcPaRf7q6qbyyMepwuxxRRW3ciYbd+1ODlJSVlCr++RLCMY7Q+y6yoD/or9hjZTRC3Uq5jX9u6QEtjlCKTYxkT8ceAsJjlmmXn7o33M7E1C19QnlYHU9tEA5O4oHXpTK/q/HniOwfRhr+iFHUUuiRlDn5ul37MndsB/6rTjw9uu1zb8XnCSTJzvkb8XjDRU9VRWxmOVxUVV+U1Zv1vw2T4Kgaj89O7cn5szssXRzB1mKBtmfEv5LI/rP7q5CFH/nUOkW8OqbkLGVmxFyUNl4LOGQvIHX4nDqRhlKTLA0VQo+zXynNyulE1HhfsvBGzNaDJeR2cS//8OnE2fxyQACl/xGeeKAuRuQr33JnYy/meyGUs3yucIyBxypgDrNTIoIPYXNfIW7jotKmYHKYMRd4/mbRJg3379Fu0NY2lCkmCOuWzLUyL+qbXj62qG7vapgEOey0iBfMV895HaE80o9HH9PYaKkOnCaIbC8svv8dxHh4UqpPLZHI+8XReBwqJ8tsk6GOek8LfgZ1DIkAkb+B2SULUTLFQQ5EUpGo9Cq1fpNQn+IyB3f9eojx9R14hqy5wCHaiQR1Dxidkdqg6FWTzjjHRn7BT29mg3Uwyp9Ym9/1BrC7xgmh1bB695jgQbYyPAES7kWOOnlAI0KRx/onCEk2M7X6WsFJix1H6o0oKSinLoIXNfdNw25eOfKq57H/PR7oggRI6IfrUNgAOOdCPeGvqGxAGQNOqwYo38vqWmaHOzhjaMbj+ExoIhc90W1aYH1ImeE6dI/nNa73lcotAukgF+lOcr157stlhLqVPHVvroE9DUXP1dnNQPE/Bk5j5xbMa9y3u5bAHpb1hgJpJw9aCj5jPIgl1XbTUY/HlqeDkFru0mxP2kovIJsurXpZohYuAqXaA+jlDnPnMcwmujqnEl9Lb4jLZ8BpLKNrCqZMgLmufYzcisLWweebG2Hjcb1z9WR6DDM2CvpEtyseHs8BJDV7/hnBWZNFSoIRklZdFibQN8n4J4+koS/YGKdJwVF5qlzsCEJjdsyVFSrrfbH3/6qyLItxavtdnonB82GSwh3YhL7qV/RB2REKaMs+HgRzjAljUkA4olFi4a7hAcxT4nB+hQ0uakUO8blFtQfSumuvwPgyiOVjyd2o9xCcgYwm7qBWCYCtPPIZz9CHTfQD552/8RjbTmp+KE/2fW79j4mHxCWEGy3MUbGkWRAIO4FVd2AFJUSoSAnjUcMW2vOBY/Y7c4Rts88XJ2lnAlkbFGZ8G4lpoXnMsGP0LL/jk28o5bhrPlGoE9bife5SB1HRK7mkyTIC5bB/f0P/vdY+OGXP2xYvTVSBXVem5HINM7z7hKJQyk2HLhF5vt0TBQa4WTDUjEgMRWm+iz5fD27pVPTghQjbm03G73Jqu+uq9XtxMu754Vktx1+Rx6RqpFLX6XYmiWGzXlMoVokWb6TCYdGCaZkp9efWwyzQ7xpltGn+MqfO7+vtojHwAc/JyvJlBdS52bv7kU1i7FPWLXt9dUSIjf/A8fzDDB4hcMbBCe3kZWVl/TB5YhAlIOol2iWgtXP2+u6GuNSFz7DF6qrszaVBXNfuth5Xz6bZJFhnw0K/fG398kqDGb1jDY0DaSaa+MTbNycGA3NLNE4ntbL7lBZXy+EzVlmv764RdgzRxnvmPjr++FrPNal8qidm4OasWd8VsG3KSDtlnXD2gYnKxGhmsB3PNJss8+jy1PtKwIlqsfHkfahanYlk2jLL48PPMKlh7w1TgcPOfv9i4+aEevO+6/J92fQm5ZJAiUQsDRBHd9gL6VMqkEu/KWP6O/Qnlc+CLzeUuWt6O1XCliiDr4vnjjLVSdGP9HqP9fJ/yPTbugDzATHX7Gkho3UpiBk83vF0OGVURiSLNOcuKxZsU7/4ASZ+6dF/7ledgf9sr67IS7W4z1b1w9gtL+gPQQDAofifV/BlKZ163VrLz+rVUWyFi5Cbin0tw3ym4rMrHGvyxVYAL/1DACnr3bMUdnVxcfHnrQc2Zs/02X8BpOWS+6vHMZOtCs8cveRHNpY8ptk7UzbPTEvooqqvV1vNMgDyPolVSZDt7hZlPGUfeE9HYPF5SecN7+P9+Ko/4eGIMyhwvA023Qr5iS/LH4IBbTsTUoVW7cDld+RaUvTc52RXBsmB11/giBHyGM/V/+f27OkhT8VqI3kWb96xCJ0MtX5P8jPEyxUZ00E8/VrftDK78jVn+mkfwl2KrLXmzLe1sv+pFRUGMZ+fyxq7pzIzeHjS/nwqp/Pze8RomI6zVGte9Qv368YFVdIcKHjBfol8dezIwGOCHvSFagSoEkdR/nmG8Hi9dUJbJ34r9Z8PX8VW00g7GEtWVX2lHS4sy/rUk+gOOapzs9F4yzrpEcAyFqqYdl8s4SDX3k7VzK00zn+YtHaTIMjsyfBQmT/QUVn6EvDFKhEZMaRtQdlIcvDwixnMGuHhBCOIwuXE93GktyVYMZ9onKiXEqoCaO0g14LtNNhWIJQiSMfGLMC2o89C0Nn/lNvmMeLMTbsFXL0q6k6BaWc+aKp2yUSsJXij/wLQ3d6GJvougpXMb1OJ/rK0H5ntdSZnbu15Vmy+OfCuFNyV8LOWK1bj8hFqoSJkziU5DXqbanTLWaI4yZMqd9enalZplkqiaN/sdIjzY1zG+t8ZWnRGnKQjXYuaqzXjItTq0daCObY2mTL7KzBOdwqJi4fu7jbWXlsjSiBBzA7K38pZJyClardbgAhXgEU8hvc5/9imriErOj7NaKqfx23l8DsAe8TkcwK8KfZBsAvuUTqu+tr+SXEzIe2O1vUH4i9slD1En+R8Ct86Aeyikxin7C4UB9EXyiQig+7f3p98UUW+hQT25xjiKcqoKrAJzf6dgk+rrAQ5UQMrH5+9chUbkQbBUQVWaUvK9O8ieR5f2YzsK1+Lo6jW2/alcvkaQm0+2FRDOrHJmQaml/zcY0hxbvrZCW5F2yZZ82y/8gMe15rYLx3mk8VbbpmnDLtEs1D93oeKnR/ds1KvCh7YTB1COynzNk3bdH5ls5KbtZKImOTWnJeogyNwWsT8mp+AYe/7z+yAPcfyaLcj91125c2H6KMN4zym4oC9Dm0qILOFeo26jeCnFx6J4c4V+d2EeVEeawlR/oxxSYipatlMtD2dFclnHa5xLrNunWwTChaLkgGFovmlWM5yu0fjvej1CXJXQnLsIuIEhEaxcf/O/kvBm8mW/evn/Wj1ed3yNfK6xIaLrlyjWX2UQMD5fJ3/Poy70wWxsNlUd+6aYyO5lrx9+jlrdxQvvNAPxqRS+Pod0PRkNkf0SevejHUNA6WzW3l6106w2iWer24I/7AuDHnxEYJaxa9annEPz48PZ1Yz5Slok5XMM8k+trQvGYf+v+haEi7L+P72eK6UoFpx4/L5rYItEYDv7Y3ql7v+HIg/w1Tr/7oB8Y5PwoKOUTMueaoIcNVP/COJEz6BgpIa0M1Ps0rc/Vl4O9tO5hprqi2fqkFnGJ53tvSnCsXRzmoGMhwoZrZRpctWICVBGnxHK0GF8sSDVkH9YOiffvo+LMTisy3jbL/yOR/1tPIUpxXK/jI7HpT5RSmCZnSzX9Vhf/RUDrgS91bdKi4SVKVzc+8Zmo9SZ7iUMbRdt1RKVrVVBqQ5Qw4JtB4/dBvZ9tTFdxptjPstAi/pVeUwxgccOu/KXsOxMwg7pT8IeanJwube+r/+xd639ku1l8xyO5Idd+fVFC1+/wVwqXAH7iP/vEPB488Wb/ogowztr46lsKEGTzudCH8abomWZYc42lX8BKJ5xYCl5NQ5PWU3qqovP+kISfq3I0jDkx26F/vvOIQyMIGBD0+cvu7dHVtaWAUK+oAg6lcElx93gvlhZmYh16bAVnCdt88NRj0Iq8WLejOBESyhSA7vvk0FlwD2AlUM+aSJK/tgFm7HoEe2RAxqA7px6q8oPTN0uugsr11+PG3voawXnzroTUrNRinIfXIHwsHnuZKXSeuSHImP3X0tV0IFbRWjUpnK/9d19Se8h37+8W8kHYNHspPtbYk66K5T4bGZN2iyscehXOuW8vWiXDt81zr3wplWgLxgoF+KOulolHLY2RkWKDliPAYkAevOIAkd7mO9Ln0y+fiGw5RwgO7pbDbFAblotdTKzB2T/pYdpWyZTiccwjsK+7MCq58C0AgsENuE8rvoD/HBhGMqb93G3obcW97FNiAB+lms7hoACTvOBmpdTpNVJvonkE8O3GCXvORLINgZYEDB610WmdOtZIpcdJQbw274LzXqx9hraZ1pEi3QMrMfJR0Dx37miakUbdqmwDAkPPf0L2zg3WYCMTTtIig13CY7gsG47DHQx/hskWNgup6Ti4lshiPm8AQx1Pct7F6qN7e/qiLuIpymPaLN/yKGPzjnO7khsR6Caeu78joE0sGoce+Ked88qo8MH+tiKDPKJGWHwLDqeunj3CxenClIzznxLix/6n0EU4nEUqufoHNkN2CK2Tk4+iNZxN8KdJMKmY+ns2fo/N/0dAxMyE8l6E/Gt5B+pwGDpvsKtMYq6n8ucN7Jfrt+vUALiwNHAJC1387MfkeF826G/ayUqZhq3En2JIraBTHKnI+ri/aSVO+NIYWS7pr0B9LZDPYALuRwuYU3pshzp1T3XiaJBgwjEOyHhgUFXoDDpKulbrBcIkXTDWztEwYngBEuFEZLuhlcBU3K5P1Bes5168+D+Ciom0j++z6mG0IUKLxUHZoJwTzR6Oiqbk5GsG/3oO1wPvzY1+gmqVHP4qAhO/3YOCylNIPcoquGUhsP0v1ha7Y699QpJ55Rm0PzHG8SL80MUH4EkgyNK6dD+SC1dtFalc4rgV75KmQ2lB9/rftZ1fGhrzF/tV8Trt7x8V6kV/Z/tDwfM6VU9cZYL8YPrv+/YnxRad4dy9AtLDpgZ36TSJeBD04GsxLsI7tmzJVD/dJhZHtedXP1o3vSZYEnI35kz+sPB0MPrh4GZxR+NVwZipAE9ImE2BmtbdVuXB/T2I8GGLBtKQisjQz/IFlrp3JLY4XBlaOP7VNhj0oLzpNp/91ohDhKEkkUb6awFeXZ6qZ6D3WjAWNDT69Lys6WdebmBNedlzC2BBYc4g//j9jHVDVe2LHSUbFSfRkjZLkqfgovPhRK5n47v38c8kuXceqemPZzdmBD/CAMtUyIx15AuHuZkew1/9e2xGKyuLCylO7nn+tZGjv1hEeQZXmPLHhuYxleBD0cXhiXZJiPLIkLiufucAnLVHkQZkcxt6nxLUKVY6GlwiyemfKwpl+VC4j8v0lnsoL+u6r/xJq1sPJh73aEZOEnM38WHrYIEqE4CGAo0wHTHAM93mszjCKFdlH24IswOEyJDtiwpyaz4X+MpgsTCceSQdELMFpNnN73ZR31z4+I6oYuP/VP8SC3wjxh1STNJQWpFr9b63ua55xtCuLQP9gdYy01Jf5x/4b9QtbWrMbCz1fqlnTANmj9e/VKNbaPnRqDFWU6gPTvFf7xnrrp8wVxRFZBHhrw4u3bLR6c+SeTFVnbiwnAcOMEeK+WdmNHViKfcrlPF/csO2wdD6DF7i/cXlCTsh2wdXlq8PB7TBFkIJ78/6VsZqYSYhCAPF/UZJ1VY1vef/lTkM+qLFw3buD/BLbF/SJpXtHbEwkS+w4CHQOLLxb9BrOvzS2aEdUnF7h2JGBUY+vW0ecVljW7qQ4f7KZQzUoAh08qWjLkXzWH4S1n0B7mHVjXhHdVpWR3JY9FFRHSPRYmT9X2yBZksfi5E6y3JuOvvSFZhrW4jBgyqQ/szxLJVtNGvUgmagmKyjkubpr/6S5dQXful73FNHS1yj2grdYsnxJvctKtgy3D1iXmmcFymtqWznIdUbJe373UgnJ6a24OLc81SH86Y3CzKtK/X6Th1fMg69mLBfOtj6u1n7/aXaHtGkmDDq7UNVCzgGWK5pr52foOzJWrF42nCn9F8VpMu+1DNySCtjuxqKPinlGQN65SEXBp7PQrmUNO9t2RtIgaRiplFN/UPwP3kHA4+yequlAXvpMpuI1ecYPRtnfpRiA/9E+ef4wzwXDncg1bIA/wc4ghU+dFIW01rzSJzegBLug0u1gJRkG8EoYGUeA5TAURw/sY1/+Wbq0K4/T5n5MH2VgaV2+6+SeitjCvCX7DD39b+7XpF8UUn/JZfku/deAKNngGW9130CGwBn0GfvX5bbykwCPShraimjpqxRvjSQ9aYO7FPtoRM+oi4xGbFOBFiIih+flSu5KhBVqWY6EDHU+Yka/8gW0A8l6xn4O0Rsl0YaUw6VfBfAfr0QRoVjIzD5lP/11i7E80tKoHXbM7rZSn1DsbGVfKrVr1282H1+WXouW7xbj7DW610KysI5bY/FJmuKlHy+KuC0ee8uYhWBKYFjDsDI8rlDKMYRUINDRr4VPWvBpCiXsTeu0A9CiTYakJZP1lFsTelfsG8u/jTsAmPrp0j+tPMn9m4vx29X4L4UcxkJLwQQV279alsFlmZfPfkN2OH09F0V6BUysE03s+EqC/QIQjub67nuZpcp4xlxwiRfOhx00AmZ/0PgU1bhX0rNcSnEl3ALqw/J1Mt+XjNgBw9GjCUrbgzEfTs5PYtDHx3wjbQrqcIMjCkWUmG6Wo+IArilCwZ6gtdoyHmLXpqKp+g0/+42JooIUgAiyXtrqKXJIP6awzrW1pn6rQFGjCm9Ssizmh2D05r6cCn3AKUoSYT0mz3tCwNub15njyyAMORGruyz9SczZgYni7ylwQZMQzS6NdhHeOR75ECmaOKnQ/63B/6CLrkrlkX+uS1P3eeih96To56yGgUSNapl0xoaJXgyQP2blyVeNj7QprLXvl+bD+RYmNRqP19Zmqg0P0PmL7iuqnLHaOnN8SjUXe/EidPFC7Q0znl17ZLo2DUPiTZJJU/02hfRVCRthtPIKYBdF3wttTePRS/M0UgPp9RTJHxFGY+6hRltPbttAHs8HCxh4RoQW6cG7LmbG/xc6y1+IrNmLMkTxGZjtZiBAzZAz+K9tnLNsbgt6bn/+I35HQNhRfUFGqWepR+bfduASWf6sJ/cpYjJfhnj7m3P4V59T1e5oeHyYh5NBJNRQyZtJ1u5b1S3a1SlHICzMjYHYpFp6gcKuHTZXZJsr7POqL65kAX7HVvdjr2CFVxUa7s27PyeprJmSdshMIYLL76npSGplO7iCbxqrFx98Xh4v5sIAfJe6uWBQ2yuYvM3B3J6VS8aXa9bV5FQcSqPqa5VOnUS+tGjLvW93ZEwsdqtmBxI19fUff/8KOrrDFLlE8CMEeRmpqtrHNlKcwfL7JbtRHHp4ERnFhLKQifnwGASz13RXmXKr+SbBpV35urfyrVtqpKSysdgnDxU2952Imsswqk3aAYVkYl0aA+J6qgmBEdW9NXr0kbsaYyVSeFNvi7l/+UTEglv3X9HojJGGrEzVyJtKX7Lp/pgqsb5RrwgUuEPeE40mYcYb0paC6p+mRtg6LfG9N24ZE1s7bNnrR1SmfbtnWW+h+09+JG1MDnblXERQBPZ1/ndfEFAwCXQIDIirMCQly+MbP5iIaejKpswTVplcyaA6pJ1gYAgdI/R9Kx2a8riQapelUYXYcOd7yPT90+a4OCptBcOHQ9Sh1vKME5fXbp+X4WWupqfuzsvmMjZEDTu58K3nsDdO6SRiOo3llP67RTXI7kBfDeY2ChmcGalwR80eFkPaZlvjTBVq1ehLKmmmmtiXBep1MplAGJSlL4wtZzrUI/TRpsYqtr65E2a9E89cvlLYmCO3bri5qwYg8M5OMitgjzRZN3y/Tg047q5quQqX9pGJgfFfXlGH6rADcAMEwi1N4l6F/Y+zlTOCXVGJ/Y4eMsbHrIFall69Sxcfzrtst0G/els80myERTjDIn+2QDuhMzi+itW/nX1EQgQWhGlsTx5zIUfx+7ep6VAv9FK9R8af71iw4P7lIbAOZzowRPH8F5ZgUvZOu75IOoea85+yY+cpwjIe5iTqykcbGurqVrYQR5OlhoWGomSmec0IKgn7IefpqPRK6wB2bHPXKDIJMzuyFwTP5RmPSNpd7YvDeDCIC5K0P7G4uJwBBoWuhWMCT9OP2h01PGV0NQraOnCzSLnHdwXegF583g1NHLIswJfyu+MVbX4gkeDFnOnTLzuuFWQurqyOb51DuKRG//SOVDmHwZ86RAUkXWuxHGh95ngmg2BBsDP7lIIHFKyolcEtnSkuUhBEWL456bZnUJZbtuecP5/OVPIR8kCOXrbrTHM9AcF1pjJS7MlaO+Vj8ycdNjVfdAgAqWQCixiVfJh5EMFmJpx8SCGDap7RSdkQatJfahO01VYW5iowFWp+XwEEzZkwQUskJBOXBy2EGhY5mHB3Wb4qsMutggWpWFnG4WRuJsVFTUYxUqJlb8LAU1YBi9p08zAYNmYUQQZlFEmIPqSXcorJWKFgKJbkazAeVBA8YlMiIqoaKhHUJEJSlGpQAkSuQLqooASIDz5FLpOCA0XM7jk31lRm15CIk4YARWbhAhS/0aHZnQkdWvTCidfK52GF5tfRUErLIdg4qjSfGIqxCIWmKlVZEj5c6pYzy6jkslIcA2BD0CIgOcJG0n1WjI3M7zFF3AgFEfamadNRAB4MXFkNXEpKbBQCuBgtdRuOUK4SdZZEGElCceFsA1DeVl/hLcoAiJbfY2PDXOSILA1ehAAELT/ltWZ+N0Po/RUTlrEfAkHLnoe30nv9i+WevyoCYdBbEGEG7MB0h5YbDWmO0MH+WXMe97SVFqjW7u3AZXL+6QndpTt0baZwS/cZjhvqZa9bdjRPR/W0VbbTU2MKer+++zQWae21ufZL4UYjPCudw/J9R7pe+Q0U+xllLkel1S97XOmFlXSK2cMsMY252JrP1iiQsPvlVlYL+NSB4IfYt4tsH+yXa/sEwFd5GMtX7DGZNu+ftVkStp1UuEdJfAoaHrLK9PRO2daobHoPXrNDdpcVlObOzFZMqaVfa6Gwj9J6n9pXmc3X7l1xp6iswYRf4hKM+58Wm8h0suwhZp3BvD3LF9TrZ46luD4e1c499HuSzuMMsm2OVaf/6PRNIX9j1QHL062XtfcW767KfSm9TWQ7t1/QEAcnQcKx98ueHlsrkOp4EUu24ZAE26t+KLLlAsQOuWCUsy5Ehb+LwRrKxRQIdRY9dvH7j89PBfLmG3Rw9HK2srB0BVik9bR0cghVyD6Q5k6tkJkLh/umpwJVn7FVHE5SsepqYxzAGC1PL2BlNFWL635Z67i+86JaFm86UtJ5jXcyDrY6bABYA1edwpR7O5S2zhZmwFSO/ouLaAWzo35feVIMBuHU2RnzIGk5ksUGFwDnzFuVB8tgZu9FapTMAnmdLllBnJetD8kpr7HFxthcO1xrPu2IV/+EkBXZQeC1ndnk49VdpQJuY3/MSp8PJO2Br/yuIORksOMCNWq76hHBs/M56tw+/oXPU4Y2549LOzuASEOk7jkXJF9YRKdCAGkxE8nKtOrHHTkVgONXCWnDGp6Ek6OwKr4P6HIv2ZWt0ho4WsYZ0QX2afaWAT6CE5LB/Ag8V/gj2vD4sRkgxio6tl7f8yfiBBrXhcyO8v6XU8e8dxHfSJKYBEVKRk5BScXIxCyTRRarbDZ2OXIf0u+vk0uefG4eBQoVKeZVIoQnEElkCpVGZzBZbA6XxxcIRWKJVCYPJEqyomq6YVq243oIIiQxCYqUjJyCkio8SE0jg5aOnoGRiVkmiyxW2Wx14VTO/imiHIObj3UW5jHrev0YtVn966ZFMktw1ZyP7e9Xz5pudbk1Yhd9P4wvPNKhSUssBAW+V+lMs2vp8Hagn8LrDdmwWqPyDfdm3KKYXJMAa/vfnkqHr1KMHp77ihe8W7C2fN36VxK/oh15K+NjC4u52jgd9JY0zXC4NHpg0/KpSKrn7xumXfSanS4PVHkeejnZNA3AtuYT4GXjRoPTECtwyqGCIesw+xkDJsRgTr+vHZWjih249EeaBcEQtxPuvpAP8rW9ACEQFJo2gg21TSd8G5p60qNb1HkMauFk0KyczuyHXcTGIcCId6XrTsCs9RkTRmCwwHoe3B8ZW6fho/QUsweFQiEAAAA=) format("woff2");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:KaTeX_Math;src:url(data:font/woff2;base64,d09GMgABAAAAAEA4AA4AAAAAerAAAD/dAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgUwIagmcDBEICoG/XIGVegE2AiQDgzgLgV4ABCAFiHIHg30MgTIb9mNFIyq3AwUpUJ88KurlXvUeUZRP0nDF/8cEKkPWAk834KoT4EERhlesUQmhTTi6p5OuXKtq26/63Qj/jOM4DlYqZS2xr1/PqGf26IrF5zGXEWL69Z/jf+8IhBgzwFh3hMY+yR2epvPv3V0uFz+N6EWbNm0aqUnEmlq0CtQEK6U6GL9IoYiOMZgLg21MFGafYVNjZkwFomrI6pklKRCKQqEwjsJGmSVYjOaTsiEL80YnYf8dVfe/qqZ12cikU4Tv5NQy7MmwZDr6mFKXMRuwArkpHwBlUKbOYpO6u2Tapq/KVzooXHl7bk0hsNsrQulrW0EhFyexf1WVdpJhKg0ph/x0PjKluTANpKSky0rDTwUsWsOsYcY2Hege/AbcrOMQ0iG45voH0/o/oBDnnzWtf+8q7dykluN22JTYAXKYF9XW7HirspytyvETJVfnH93t4QzFA7RE2WGSWwkfP51/ram+P5vSqiXj/JJbJk6Z6C358LTDMtI8PT4/eP7f2xOIcVBml+Ot/iDciSjA4Mv2qpbu2SwNgwZgJejRGZnl36azyIBU8RiwX/5PZ/+2987KHxg6TA9cpqjTNOM70lozI+2zJO8+e+QHtnzeWWv3geR9ZAdMDwKAFQCuvR8Y2xQVcZ2iS9WmKNPVSZXpj736fy8KC2RWQOPhhAac0RRpu4FEY2Pn26gysYIi0jFtNhwYrnU3+A+n021VXluW6yksCCHHPPcZyyUujjiE8GiWQ8sIodvn0Ai/1/5+2qFdg+viMGLAEAJyY//29THcf5GXvRezZ4ACyv17AMF5PHvwQPBzHwdBO66+OfjFHRjSLzsH+p7w7Xeem8RDuB/y4f5Qw63p6FnvcKDd9wgEgR+9CwRxPlwOQ0hm0aA5HvVwLQ+HUmiernIdLnH97J+Dc9VcO9fPTXPr3DEvzMNZzD/z62/3H2rBbbv49Qy8/GXn3zK3z9GXq/6Vvv7Snrjn1Mtk2O/maRK3xF9//HMMlfoSCNCyzYFljx5f/++JjGlmxcuCqvhfq+gH413HP5hHZvrwK9f4KGv5L2MVUz4IZf1IgQ9HkPTmA7G7X55F+7S/hAVS9plwxGNccOmby7axllA7oaB0AwQkGFxFAHJ1URGGWLEVEaDfRTbOFq4lTYTgMrzRumwdJ2F+W4JiJ8w29kSvlwM8NsbgaOwuW1t2kG6unF5GISNuoHVdME0IJfyODnId8wtoBslk6YEPgtzp9mANevD4lGj6Ndh1kaP5iFjxlkjo7LfvyZrUZkxcn0jfHLLsernsRZFVI/a0W8fERcylXHA4vgMWSNtiAYQy1BUHUMJrVgIl5aDHTRnCQTHnhFKeUH0faauusUyf15/FI0LmsFs54kmvah+VIKvyAH0yKKc4rcgDRiAasQf5nHry3RF3Z6ztTGpFLOkcIKeZP3LoQlF7Jgo635twHc3JG1r74InE/R9Zydk1GUTTlg9TE2fqRa2CvjsPyojjjGitinxQwHKA4GwDvqPAnYDQcqVIeLQg+K6SP4xGAFDOSjk/QqW3sbgaX1UVha69PiEGwZIER+6enT4gGpxOnhirBrKw3UQjYJTMLbci5SGkyct2cvv0pa1KJGRe5+ldkQwS0DKK0MgZSCmuO74rWRCkTL01YvWerShDhscK+8WNigRiDqCM74cpXqbulIQJU5ooGpARidTcEI5Q6UvmRpIBqRtdsg3kBil8+OYz+tPpDUo6WW4uXW9t+Q9f14GxcYa+LIMMUe13l6JdBM2RzBpZCofLsg0SexBsCYjEonIS80TDpW3w3iCGVrpnDZ4BAVwkYreolHESuClyQ3I2TiZvNkPQaekISKhmAKrbp4xFkcHlmyflDiNK3VHihKtDOFTurAhZnC6cczIAc4cJWmZmMreX+9e1ohwZYsuKiowBUDIYVAwBNUNBw3igZRjoGB/0DAcDE2x0QIowkVj98M0LaoKPtwwPB+d3OVRu/b58waE26++7xqHgXmbbImj7a1IDLNGIHJrQ0IyGFjS0oqENDXPQ0I6GuWiYh5Y4gWbaQmE2UFnRSlG1maXXonJW7h4usDCzcOjPdwOYjC5pU+KavL+PD1NGAvDYq2aWTpW6m0b3MPN0c+QfKFftTdI+AJMi4Cn9DcUo1DspgQ1BJjTa2oTke5Du6l7KWi7STcbflRKgwYRFlVAQefgZlaI+31Qs69Eg4Lxrz3JkWOQ3UXtDyPyWWXyXtk08pRF+23z07uluKFPdPHPPZitASE7FFqBxRXS+4SyWAEUsd5LTgSaVqVdSWUGNuoWYOxcDdn+w7Om78buonTJD03RqT93H7ZKQSGa3qowDfiIS5kAfefZX0yooQy/kMfYTLwXRgAofd0Mda1EwskOScVwz0Qg5/tqKhAz1QQNmSpQUXoWcfHleRPKwDdE0FhYSoc7HaV/ALVqxShAJbp6XVFWatYZDqyMKQe5Yk28q5VwNQMRky83rV8j4Go1YU1orkPPRbgEWtbd79wPGzuXImndKpnziz9UeRQmcnQrfc4ZGPpvp1AdBLSUnN6ygn5qZejRaZ5dulJJX9L/xzEzfeQBhbLevOghWZL/dIbAyJ86aSvsQU1mPDDHWdFkdjpyq1EvyVyPFk50A2u8saFDLWpB8BFk4Ea7n/p7Y/xaTWiZm9GH2xY2sGVs181bJQnQjVFFKI2M1Ps9bmTucSonAOo999YcD9DZ3T7OHlQxfnfhiPTIESgFLodEAll9A43VB8pGgxjiZm2RhE6Z1wMZCphkDBI09JhiA5BFAMMVUpYE4YRlSkD0CCLYwzbZiF4KK1mHbDID2I1UBcjNRPJgBJrCYyMIklpIDY5gp1IJ6BKDGonQgxphBCswjAC0WbZPD0IyDJ+jaFvAsaF+R0oEiBaEFiCxsj5EJ8qgTU0A6WCkyKku9aJB183MfQCgKmCkLgGo9ITbWlthY6laJA3bOAfoCYChAjtuh4WSFsxUuVrg6CrYCYC9AHvrQ8bTGyxpva3wcBW8B8Csg+WMgf97edxBi+wM6Nl68WGNVXUm8I3IyXX5mT6hiIQAsZPQRKxz2HrTGIRD3DoKsL5B2CTwM/umYYhh49uGlRBBh0Y5qbcg7h62l89J1CTAaU0OKAhaQt0MQBy0l1X9WAjrEnOX/LRvobkJ9QShbwYsWU8V2iilmg4IKlo651CtGBm4MF+3IrGlVqoKqYq14TJHu62jc+L9uX5HCoS4P0g4y7mXqxGXiiqHSiQRDp5XldE1TOO3vG+xvqWNxpa4gnJPnGIkuWiQTziwr15ptNaVkoMWvkUkK0jlh9yhDBziyQkfmx8rJxq5kivFKiGJTOeUtKxHxRGiLCPFwZ/nEUBcB0Tw5furCj0Qe0f1AEAIILnYm1D9dPL2C8aMUtnlDUvMlzDlnb8QFOSI/q4k8BKfFpJAYsbTcH4eWlbI7x4Jz574/E4YzOQZ60X6wpS3zN7DINcMMG99aBOHJEFLdF/cRnygOPAHnshcctgYuhR18ns+oY5Jc2SglSPbakRnBRGaQQzyTnG+K3F2KzHhGPXsXJCfS4dzllTOSG25rCUTpEfKTgyhbzieaPRqBahYtWAKj4RsjJG31MzbnS8CsSMn0kB1ygyhsuf5LWnqr+FzYqlfUr8oVcqq2R+ThMEukPkKrQ3Zacg7R3A4U0o8V9cs5l0HjYLFrkSZXfdf5zPgZdecsTfngQPvNw5Gh5MIHRvGJgy+RuJ52KRCJpkTh08aJXF2Q3NGgtPmEOtE/jSjqWcQIZEvaOGjbHfc/y9NMyxCwkKhM4KLG6ipWlowMKgIGGepNDmY4n63VDcdSNC+pXyWQ/nIaWT3rkaIa1HDnW/SsQSHWuv8eM0i9SIsfLZfG71QEoOiw84AB0bRI1VUMJ/7FG0OPkFH1KgWL+WWXTuLLtICeufOQfORiJiWK5xrwSyVD6kSJ1K9R+WKHwuPeaZsG+T8h2f3ax1POqTlnkCPAiXNxwfrmhAFoY2NZPZd5Zn0VSG+VLRDvKGez6BI30RJCCUk3vOo9iv3N9YhTLAKpyyftZ5sqIGDtF0/h3gfkl6hI069JAgNpM7FvGsb7yc2UIGJYSw+vOkwY85sJG07ooUiKLKfuvm3Ux5vo3Fmt5Q6Rn15DlDHqNjW/3svdVpP4Gq3UOiOK5u0UXWdmpm8+JqlCPgJH7uWaMIfmXd+Xs99Glm1sg9VojCppZU4jV1J7bza94vKwaGOPytccxbJ4BNxrIeahwupqZqCB1Wr3YnOjVH6ZcxB9/GvyPS8hpKfGnBevcaBZBKGixd4XKH00vFkev5Cu9O7o9pSePRf7ol8NuLRpmTaHeU9s2p5erPNz6fZ9jdbeB9SX0sOScIDguLrKyZsGaZDCuNq2FPZuXdNKEfqvS5Iy0AwsccUiOTbVVUOOYvIdFrA4R/6lPYzhJiIGncQiQMIbutgS2bEc5enQZnM3wMYQ6fb98mLSmS2EtQtuRPe3x+oUotsvlAVyhwnWu6Ii+zl27EKQg5wwEPaLR69L2Uo/bl16HuYXSI++GJ23CUmyzia6QVe7RV2Kfw7DIu82fly53ArQ4MPhwH664nfsX0IiUaqPBIU6gnKDfhwZZxR7+uZnm8XSinObZtuZTtuOHPC8cNDpVPFDC21ksuAM9+a/O5s3lG03dUJqHVrBq6PsXndhWv6Vaw4iD9/hP+te7wOWemwJD6KlIaOl0L4Sh16vcr4DrprPod3oHxTBBByEKFDCxzff3drMKL+rv/JuVYf/GLwA6ripTtWyAZvmxJh7dPWeDV73DTJ2TrttKMZ2Eug2TP6EZJt+aa9feicrXbAZhznQx6UX2G1UP2E+IP4Ylv3lr83kyRMNipMJ9RtGmeByvTTx68XKDirfdFo25rhuEniyFMsqXS1/xiJMf19FH5DTGM6ONb6yksPEjwC7Lm+dp35m04t7hgNaxkQ3D7AbpcgYJZH0QX0DuG+J/5pBjMO63fUrJOnPoChyE68Gj+By5Skp5EFFCA6huao2mYZAvhWImkUwpj8PR0QH6RKFsVo87oOer894GqwDQCynDPIHEpbp4HKEF+kQuQsaB0z6thvPc2eLlExREsBfHCvd1RKZEr611/fD7vt/1ckGz2dAb4oFWSlNv7Vmp7FYJiStFWXKYaOXhnfiuQxyhH0VubwSr1S8jvFUHBJfb8WziN1BDnvfFqL0TJ6aUea2vf35p59V+AW1Uc+zjA6URxpoIGJbmpwcHycTHYA/wEDF5jvSn4M4uJS9YM5HhGl737UEwaPZDVVmxSlheIMzshhJgV6U/8s5T2OcBzqJegbrmnXvnk28GciJvv6rMtmN7+NFL+t9hwvO2Y8Iw87P1TvHLZGCskMizsNpHG/AWvkjV6/eajD5Gj9irvisPwIKoAQAP9q8I431zBJjeGq/7d4xp3LOX02METGyaAeCxBPm0J09CA0uFo/kE4BATXWJLJbhPdXEphVhLn2z8BHexWbcNlxdx/GskMpfpEXBsYGABhR8B5JHLl5LfLCiM7SSuc6bsQeg1/tNR3UsSfNLvwqLMlLtFQ8Nf17pq6+OYAm22RH4nzHb1GnOVnn6iGuiWaKvTLFpUBjPGy0HFwN22HR3fWiEiI7pv089qKhXP8aXqbvlNdGtg+Bo6ghpiXNzt3TRvCja5TK/DhY3QxRdIDZRviwQETeQ0buk8GCg7WDNgn+sxMSgn5h5/DOHVhehVFo66slZcTTJCZMnh18r/kDGk0HUYH5Xj9xcsOHD38455apRyHrqOJYRxCrBLbbav3BIgZ+pQivG6a66fKe0sScl/KLXL69JyjBrgxvUdh2nMxs31HHaGADq2PxRQjoJ7NIQZYyoOS8GJiFsWtL9E/CXw+RulBKFAulh6tXcUjlq0R3Sb06zvyDXHNEdbL0ZBzoUQfuabfD0ZMg+twXcApJeKdQ5bDoQ1Ivh5vza4QuRNrvkACPJp6z5gD5FbE+DUjGWWtUsiJsKS3OBOIgepH4sL1PWlhMgb/oVEPNqGup4PGdddB4SpiSyNeODCowZk7IkhTBv9KmfOBRJLyapKJTMQ0HxIZIhVDxRLVyoUMLhNBY/Tx61mMv1F+0sT2UgzUXLoW6NSVBEPMgoXY5qpcKL34v9smV+DfKocS2GRJga9xzGd/mstAlOWAR9Rqu6I3fw8kZWEGsttUdyJdQMGCh4WyW7LvusnH9viF+l98dFjyVSZRdewDCWOXdWdgsJxyeYbgWHFpa2MOjrcxmnNlK+ncC0rglotHdx6qKczqL+igPRW8PaXim+o+r0/cigS5QyK7Xfip1nhEkGIapDH8+1zbjsu55GFsd/X5m327neqHU/cQWo/eXfihm1nVHbBw6lzvi2vQmV7fLE1SZionoXNHAPd9nR7DBiJjT7Qpo+GK7be/A0TD6kftYwVgaB46Df+Rdfy0LCFxSETdGq2hcFhovbM6ZP2cEHTeeanI5pnKe0plvCXZ/6syscT8e4ScLRCClVkivOMSBvudXKDi0KSYmkCqXSZR0g/VeptQx7MaBiyAY9/Zi07LXLZ5W8BCe9aq5cpbIU5r4tR08LdHyaPg0KDE9n5QJ3shWvU9FhFcjgKHPwwKQpMf2ANgOb1yeUiSURqW3Ea9LXzxuP7C/qSV0RjrC/H0uzgjIoUTuMLm/LVbV8SSdgnl1mpdhID0mk3j0SN+t0sPG7GA7pClzSWvxI1az7EIkQKqcDAGrUBrWdZ6rr921ql+5RJ3lX4gfz7680jvWeymW99oEDrN3YMEIliDFCZQR+NfxU04NRorTISZuZJhZ7jncaYTzb8sj2MJjMNOohYrlQv4a4NGeqi0k27wal1OkjUypcCHSIXeORrS6uB9q64xRrKVdmNx7GI4IlmpYIxek+J0JX0OwP9Z8u2v6QhFCujFsSWYOkM9BUlidPpI47ddZ2nXQXndDHcMQUant+qoF6v0tLQvWXyiQkUWqP6HsGjEZ1/auP+EpJyA7K/3NtKV4xnh2tJCAtiSRHOPG1+y/AXv7TQ36tXs1++zs6dtJi08++WLwoYXZNUy+bI6PygqOBmK+pUpKIHBfTLy3GisZ2kvLblpmJy3GjgZqqTXUWe/N7cQqx7tXGWyEDkFmpLWp/qH1hww+eo+t6U36OiFcYX/KaQYp1GvuphkGIO9lIEJl3CfmCb+jTimVMW0P9zGGzi3bj5eUgqP2bnL9eLZdjIXBXl2mz20VNlkcbOa57TTyOl4z2Rc4DeEA7WsC+ryPUVhjfP9x+Z35DVhY4N59K0xbfgACcZ27f1881SaHphfyx2Bo7shJL4m9kc7S19q05dzT15qjnca2YuqbKQ4GaDfY7+e6NRQfCHhHt3t6j5RNQgGYNFumyV8zVhjJHt4iQ4BbRY7ZT0jUcBaSkBHTkQnCQORkVBiZ89qs+wyjT11hW1e5etEu5HVce/zTedbKFScN64AR0dtt+1BKZ4cfIU9VReM84+7/5Uekxsd//WEEOd3bHqsfziuXgh57TnnYYnJHqhZixpQhVDoJDIczsQbdM3MkLve4uTxicuau01UhwPb0oE0FiR6b78bosdGaVBINmMocliuS212/ZPtdUt86oZaxMi1mh2bUVOtWOOQZnyCOTDJ/jNEuXtM3rkE5JxTmti6LLcJ8mTbuPld8h/T2cv6GV3LhLjuPv8VPHr3xLJAeN2mns2RNmeBwrx3d5M6A76g+BSi9dmr6yNnSfGYTWxsKieC6qj6TpkqqRvh1xZtRvOI73yIBpqcPwh0ZHNezuqHl9THMjnpu2MeOBjIvOJWZ/vFFj84rPtV++9iAqiALOq6OgEd3IJe068Kt47lIxLQ5ba/FJt9ol/Svy5DN8Q30HY04dr99fz18sPSCamYoQ7Y7ACasuCMfZlHOnWqJhqZzQKwBh3/FivCuB3B6SGFu3U2eyQI4cCWgOuHBTKViRsbPt2Fk+QgsWVrWcxPMd7swqw8Ck5xwWvQV5l4sNrYsd0UwtosXz1Ruj0GFeMkjjQlingnDh7TO0rXOB5em57vLBG607ghPWPtqjpozTfIs9D+QEPvoglZEN4ugJjAeVYTQ6tIqlflZ/p2/rCpSyZDIxJYOSIpxEQl401WEiXRr8JPpvlBx89uFmhRPPwIxDWaRy+GIg0HLoPd1+zKZ7buNRWihPNxzMkZhd1fEd3uKcWWnQm1sty0tMDTelfLJpjYg8h3aFFVoGk/9ze5ZEDNAtLoYRQ3LYzGg52FpiDzKzQyi9xJEg1tF0EQU0F1Ze1J2p9cgUCwvksHfnS3ZGXZLm5lQDrujNk99Z574mirrBnMZbnbzIZ6DnkNyUqUtT2xKRIVHhW4tmyPqHMTzuRi71POsYMQp5pFt9VMKxZ43G7ASF6eDcQfYkIA1uQWA0jGoQeiYcx6Fb2fL53icgDCSXNXCaDg2SLdEZNorld6YYpEl/rPWinPvX0jGRfl1mjdYadX+pVtlF+/17xoUqa4UU5EintoLOkN9pvQueF7v/7YOQ0pmWbTOdxdCxRdWpZfOBjDOFqQ6Fvr5xtcXIoRi0aewGQRI14MdKTyiTKGLPRLvDLBROBc4R1Eo7aT9ZN5p2OSzVW7sVBNLECnNXrxXWsy42jSiCzdCCc1FecLG0xKt7sW3UvXvC5wOYbzozSkmXWswbpROrpgzlSi01y2qZga/r2qbu5SWbTpOa0uwI0jtbdCqg5hLLN/NzGD6aUfodfup0k5zyz/npLYBbZnEIMmQ9BAuFytbWGfV2ub/dbScUDcZxIR0A7XvU5nDMuzzHhRQkP+B6Oy3YyUhGMpAqR9S/jg+X8AbtjCtQLSqPYi6ZMAn6DU1oRCcIyOasOWZiot+wrXz3Ye09pJMSjKegAnK9M8cTzg+yOon1zBTpPyWlDOTt/AJKz69f+Z9jWjncxTFbYYFV8bPDvojfzF4ajkKzVaQ5Wjf8qrXMm3ybWhDzGX4xavs+UmZz/RF5mRJjUzws9mNGKYdi5DdBhIanybo5et8mFsxoza5e+JrVEuZJ8OVMqBxBd9ElTFNR3oTa4KkF0gcy1W2mIOBVcgFahXwi+Ya6Zklos1E6qnm91X4LjboxpD8QdiZzgd+9dJreMSVK3fKR4dKMG6DKXhoEFCE25whbPy5nuKXSorUsslvls7lE+FQa+raPhu3uLMbydP8C+jpra6KHQdFcF5zv8T6356gHsr021rduaNXwzNQ3r7wa4lsdR4fnDOgeWC/aONYkqHMF5IE5m8F4/+gjWocYz+7zUsoBeNXlKG/yxHGyJIn6lJMkUSKiu0G8C9CiEoKcVPrQ1VZwzdUjdUA9iJU0VoxWxTNjVe/xKJZ1VRkHO65K2Y8Rq0eq4eFxIBi9tDYrEftt6vUkyB7bfh6BAEnISPi2sb++aSh0NZX4i98n/aN6esF+CBvCVLCS3cP4kBv3X1aoW+fvL//xujeTubasiEyiPozDLv/AUufpa6/QTN2uUlx0/auSORZC5XmwLO1502cF30X0+wmim5i0sd0KVq44uyQTEv3ITFY2Jqw6GXb8UFaHSrqFvm6XnwTmzesGjzMkTR+J9ER6dj/vNdJ09upWr9Fk9Lb6g0B5PW2lPGZuULQ30gtE2YGvXO5gZXr5Ffi1DsUpPz9mDyY8p5Y3OisvFB00J2yBYRnJ0rfpoGZRCebvCWrqGl54PWQSSxo6NhT+DrItmxQuW3tJ5K9M1S939VVUlX8fKuS16I6rlR9gu/oGtji8M6VFyVUaA6UIPkrfHf9ZSX/cSWYemF9Wf0MwP1P2P3yp+ohScVaueP/QJz5EUKElN9934RZk9EWfLJMRPu/pj7bcvytuzH0k9H5dCI//KvbbUOOzwMvz8cSDqDTYe/ASr9EYWRzrsXhSgh3mmIU+kJN3AFUil6f3vViV/BaG7KkroMDqw0UeEgt9Hx7qj4d7wm/xKMfkxgceemvWSGI5YsJ3cXm6uWlZ8kOF3Hcp5tj01fVnvPc/66z3OLjZmVD+6gMu8ZiGUlzuczkWVaUirpyPHos537JOTPB6Fv4Oy8qzTcIpl+Icq3j/jBCbvzcv6PCNzvHb8oINxMvfvK1prVr0bcs9GSt4SfgSXC9onRMubvUOx67/a2N5VVNFser9s0/UmHMfmRX5ojmivD/vKMq568JgH3k7/jdZB+ioG8+ihVWURxqG/8suaaFiGyiyDWgCmgAVr2JtSL4zIqJSQLXkhPjvv2uZ5LWiyy+oKtFSvupVWsizF7T+hzD20J1/OZvbrxiEhnDDakC53GOYsFuMKvcylNPvhtYjL4cEA5NeM9fa7Yvv8+OJutKYv6ahbgTvPnPS2OcHcHOCE2Ia+JWYeat5OGQq/H9PBmKOSCQvFVM1fyeTRzfHPN5wsTz/q6JE4xQEm3YSYTKMjoWg9m4f1j8g3HY+HVsSKn5raUHVspJuyQY+297em8a7Jbbjt3UtJ31VQQmLwwpF2+6d7YzdPLR9gupcZpmJj+WHNo40q25wWxKPbCGf2g6Q2YULmJSP+3lyJiUjQrCBxvSelZbJBhcE3MRzt0JjRU3k4vU9nqc0Y22d/UNzzMsnoJXtKKAKa/sZh7rydbvjjdkwBis5PacEx6P0zlIE7fYn9yyR+nzegq6ca/BHTgg78fyzMWwmA7l6bXDV93C3SuCf+7ljN4zDtK8b4yXckAXiNnKbjCa1KRUaoXWlikRRpuY/GO0OQkuefUHma7Z2XJ5WGNP84X9DRs1bUQixBmuC3oAw23JQPjp+wpBFC9ypvEGUp3oDyCnxAPYw0LZBjNiygYqmUFEYFfCqdLFXYqtbmiHXOAtx6w1zpUcSvAv+12EFwnB+jCfu5yE1F+khkIy8eimj38wGSg3rDGvEyWNRVR6NAVlyPeZnpw7tvzT+HMrUnhH7cqeeJhdItrzc2bEGw0raC5AcxRIeftNL1izCVWXJVf3qKCST4ogGVsIW1xgmyKmGvGdNofSmj+uAxyNdasW0+VmPrgAhW9+lzEC0hKWcvgCPd57vm3RbLBXfQvDevTBS8ZkENie7xXMynkXItlmkVBb4UoCQblp0lH98mqQs2/IRPjr+siECc1VZmb9HlYEYEgcqpLin1OLnIWDvXm6zcZ6Hcb0/vofkWawFNew+oOr4cyHycgFSkHgJq/4cQP5H8g4/3h5WwDS4vJrJyKucXqM0CuKlvvXCheZS4owBfrrFHFUZtxu34d37jnN7RUT4sSfHxItVGXlNIvSOaBohQoQW6xolE+QvZmY+tTasaW2ubqhymzeYCup1/P2rkMGr3bZY4GLl1LuYtgqE/J7wqZA4zx5s4NUmlmpKVIMVBu/7Atl6QgQPA4uUiANlifv8OF85aCHi6FkiTZDEC9dA8/PW9t/jR8Kk8W0fa2WaROOl05QwixY6vCahR8WfoINFSUG+SN4ZsNTaYGJ5SES2ACOXgghJ1tJ9tOJwIw64OHGqTuoSy67vRtBrDa8O2ULQQ30vVV6Q+cz7Nm5ECaL+q+yUq+F/faUBsaQNta8qWJdrJYz/AVLFYCJpCGhi0JgxyYeHActEEaR4g1iMIgDs26PaxyCqdLqvec6MRPNgMGH3FaXKFyWgorTdd/99UBBKdncbPRgvgxQbI+XTss2B8P2iPQ04QwKSVSkd1YYVoHXbyB3Pli3obZaIO7lZw0sEhBlFda3bhR0ATAgiZDiciyB5IIMLgrA3Nq8h/LqjKOJWIdHV2M1YX/zWihS/VvSKVP0LK6fyYQVKkySKSGOwRh0AEqlAOcgwEZjZ3yinpcaL7X+tegHfia5ITg3JR9ipp0jbnh7J5O4VW1pmypIJz3BwdGkkWF+31iwgF3rGn/p7RWfeWw2hntOvkOzP7yzr+eWd2oc7YmV93BWK6lumGkuOapfg0MkYrtXkqSegE+ebau7jMSrFw55QcBnZ3QN16aZ0q6XJZobT8AYqbPdt6Y5BpEvulxdr2mmch+BkGhoLCIrvJMMH8V3NIhMf/eQd26i5QjNCl84jm2/5cszL5wEGgzc/YbB9sHsxX6DEBu0zYdM2lbPCa7R80nyyoWjJY9JpgXEy6F5e5FK2O6Zfkq4X6oczEzy8IFKLLTgfEFB7tDztlNok1Pe8E4G4+y7o5QPi81G30CtvW1NyBOsPWGPiYLPB/J5S6l7yc2NWzIipqXcvWcUOX9jNF4kNilnVl4Tnts/dx8OG9dxGmA8SJO4uZZaaXPThiAjDQXGteA8NjkdhPwqDcCN0uU9Y+Bsb1xtwOz8UqvOX9rfXGL7ZYtxkAp+sfDRbfqz6ko2ao/K+wSuffDLNl+BI+RcsJQnB+pga8bXU1gtf/jreuE+h8JUkNpqMjxfFizxlo2sdUaGLLxq+7t6smF/2aVbCCDCEx2HXadYC83qjDNzvGNqqADQBgcA+0zYieGeYwng6QzB8e/s9hs6BVhEiycKYrp0NfZkafG0TQCAYYKY3IcRNSrBuogjim+dViie+Hzr6g3NDGNqej/JPvHrcdIKBC2AMZiCSQ7ErtpeeKUutHVHGezYLcxtTVocIYlroVT0n/0jhUzW6tmu29iSXdwrreKSCVHrOuJ7D+evhvzpA8bmS87QOK7iTjAMqTPKzaCGsgGleAkv9Q26FrN6VmVSAoIxuxBKbpjsKRGTb6BPtq50KCOEmLDaJP5sLl/8ExSaSwb3f0XU8xbNkqZqwovE7qThEBox8UzqYHxbU6q+6x737X6KFkhWZuM/5RzMjj3we31gDtTO0HHHMQMpfzitjHI14X4XwiEjic8HX6hbHLZ8xfO517Cq6aSuT25t2aeVUftDNHSGrdU2AIPloB8Qq3VebELHhWTFF7XojeE1BcO7jSoTolkuFiArmI7Q7gaEQ3QwxTUmBKR2sTv+QhaFDr34JLWND2xLa/YtPSrbK0xAjTGHKQUaWfpfIX25Ixz8+fF5ETvFWCaY9VVlxqrf1Pty6nBMNMH+BoIze7JKWLlBzrf8m70HOjIv6LRJZPWTQJ2u7GGoyR4gSPrz4a/DoOTAtpJ8De4BYyM/Nz2C2MlGI3MAfuJppyJeEPMqZuXu+zqIaVA7aJ5JfLJg5zgYXuAOE+KfqS0zCSBVFmYTXp4VM3p+uXrRmdO3IDgHxEymENc6ISBqGld690A3Y5V4R6Ch6ZmHDobkDqiH1KLZExYrQJC9gvPAd6XHCGA2TGfIGYW07NFYvyCYVdTDLIABYCDLXsHSWvxNYCeMXX4QQuFWWAqb2JdBYDM8ENbGVO2dGBNjxrZK4jcrTzt0WpOvTLgJHaRx1sOmLg8bauQYAGUnyn68SdODWd0MEb2Vo4uerfZ6xf/WS2rjD8o1ex39oeyntOYuLb+nItVcF/9Y2iTKIDG+7E+wSArEADzMAyWoOHVUfraxO+8auvm+R7upG0ypdJ3Cf9pzWYQwfZU2ZQLXR9OdAohqeAxXvkWYzMO1QLVG5pi8qjYbN+gARIaP4nb2GFh2docna3yYQ9NY8U+mZQ4aoLHBYG/t4FSn7cbGkMrQVQRces1QceHOJJEkuzW21FDgLtfENw3X8hMT8zjS23Lggx/n7mlRCzxdrcbCjur6eCjOlL4RhpOgVVJy+6TibRbgAr59tKn6oK9Tyjb64PHrJRvMe/Iywob2v2TbBNG5Y3imAZEjezbsRKSVnIq2sOANZAdBcbyg8kDcWy9jdLZLRsqXpGnNQfOk9CGCMR2++wrECn7zhFlghOFIV0ByAkMJCY5+/BmJeynEBmOzKZZbsH3O4+UZdqSY/z8ptYsW6+UvJfrEfLi0gMVE/c95ZJp+1PLnFeGC+Ofa7UV/2z/0Vq4tQk5TGMwjf6LZ1jq6d1vaT1Y8elfjjHeHaFwq6snmv53qaSeoNraRWLFv1nMU6FYmvro/J1KXJXbPf/KaA58Chrx5Q9hBBrrmmvCg8a96OXyPI0VuJq5wz4qBTUemmVgUknuQy42bD+vpTBvEK5b764HHi+fESqDMh8OAt0VJ/cZHCuaHgUkIumRVpxa/kpSWMtOxRV+QHO/ZQqyKrorZQ8mklNS08qSRhZcsP3wIGInkoJp1uUmXJmw326hyJD+TP5M+EhSpSessDyrQjqCXTPnsk7bJJbSQLOn6Cm3F7Wt2iJvsJTYmGmhC8oFOL7r89VwCXgiSPL51epIv+qraAl3hxhArwSML1vOf/OX81BL6dV+b8aNROqugB2vKTT2Da+iriPVX8joSPL+RUgxX07UHvTRofW3eJRZ9jtGgN9Dylonp7HhObXnYOvpf469effljPSu7C7RrqwgLdpKCkZNqn7rhuvdI56BRkcUnnyWqhBH7ibmVfTsM+mXiFWBhzWPYkwzqMQWAUrhNQbEFYkCoQo/8DMIt6jAnXHE+IKEvmu4xxu4SIGBft9etgMaJ70/2D+yk2m995YRD+bys1vkf2YkuF0hp1g4vvFFtUwgPjis5o5iOLSF4rn5rW1e64UQCDO19M9NBJeLYe+ZpLEa5BgRmUJqVaFLQqVbbb1hjo1xwTjx/7dA9LXeml3Dy3oe6UXrnaLjJu/B8RuhP+GwZrslPv0KJUjlJhuflQGrCkNIugPt3k+6sElVe/CHzYaAHBwfzJYFWTJlf0nIJ6aCaY/mEpN/Z1tD1a+bUlutC2I9ss8PEIdaG0ffeueInjYxvFxhTmbFaS4Kl6UrV/8pl6OoZr2SyCP597aFpX33zwhb8wq/RSvkKb0t/TuzerLn4rBOXeBWDYyPl4Y5gQVUWQQkeLkIgBKmJcSgyMIeLWiZd1qCBXJZ4KsszjDvVoSgUb6mjL4RbRJNVIRk1wJ43znuLHU1E7QBTemmZb6AQE+hyzwJtouXmhTyEWEtvdCE7wURXd8pjkIzEPieiDzdNc7R2rRTZxSb39DsnZkOhhiaHYnwnG+raFy9PR85R73SIpmyv78Lq92tXG7bFT2OR19ABFFv7+LOAIyPLFucKG81+ynGx+iy/U/UzvpvSO4rIdr6Z66CAj1b6iItyE8YPVACmaLMjpNFPfHVx4+41Pf2ARE+oa2LL0iRWMoQ7bHMzT8H1Ke+S6CTYlZnC4/F6Xb0N9nsWyU0FTpu2mHRDs9WYRZzXEnHcUU81MwvqY6XihREzFXLfnqmCPN4sWOgaXmvdY9vNR7JggsCWT1RUVBwp3YC7tqG2oQyGNC3iK0EUZWhQxHbqi0JqntzJ6+/IJvsw2zeXR3nrafJlu+uFpKS11SuurUVGetvenW79SUAOhnHST46uwax9VX8WZ6Waq4WTNXJcv7qulDLutvReThIrmbzCquvc55zYrmuQ3m3M0FtLO/7RgrUXjO+XRNL9lv2wNld97WiYvxo4fltZIJRWfEWqlZ59GEc2dXboKFXqq/6HlQQXsgq+szbfuLXSvScoSkoKg/t1FZy3BRG2tRtlqG3bsmbxmvSV+bZLM/c/C6B2TLol9kcUhjim0KNBMGtaWnMLK2Syv4g5nJCJ8mW++6dRxc50r12ky5OroScpJgFsupyXJLjLHe07rlCkfU+QFI4/mpiQ0DlSSxk+LIjVnzq0nK2b2KPTlWkeelSNSbsAhnz0gtVx9g2Zly5vL4bhYeZWiwB86owxIsbOHpTXqnq29P0RSX7QXNtx7jdpkCijyt8+SVvmvBE6u7wg2K67HgMcTL/D6C69OGyETPmAwr8ulAPapfcXq576q2BL5GVj25xyynsI+fegoT3bVqfe/kwv8/LtHEU4kyWK7a488293SHHnxsfNyez5t/3xnWVrMCIHik6ZEPCEin9gc2j8hzXdESUmW1/FvxXX9nQ3hu57iibc9SuvGm970sTjP/vxDWApiuiCLuQUiZCxcMMdYVJvoVBzui7eRZXhQXOH64rab2iMrMfPb82EseSyiIkX4ppnB3D4cZJcv88IIeCToMo3xMdLtR8AtD61rgKqgyovwGgD/gU+xVVTwcTY2EhLAx/HjcJS/cTgvU9gtmRBwqVDfN6sUyvVvj7XmBKqGZQvk+tthdS7YuLGgxmjS6FX5hI8IFpxihH8kLSOCQRLFzfwgDQJF9RGIzwJahb6LVFsvGGTJLET76TBiAROcJkaHPfrSbBpiCKYLQJZ/JP2xApvVG8DFk4zG1Z/Ih+J2RrD3r4IH75hFAYQINFsQOSUexOSDKMK/77mvs1s+gAtAFueL+3lwzmZ8x1Rlis4ySaNJImEiCHjAoSsjoRYR8XdFfx3MkhJTsDXozRit7EO8QRTRHUBKCPEgBhQipJtETEaT6fKh/nELWH70xrTk7LHkH2CBycgIjwK9ynrpFEyldRQHx//GBusxNWtUG5Kv3XzOzasR/rv4sI+fF1bgTQ+29z+zHdpQJ7mxYQCwnn8ui+blmNpLQceDyU6ssszakWwRIqwIZD+DaQ30mT2Ih8qFJHp1nEE0fo9RqzUV89VvgSKZeALLl+MJE4+5uqJrsfe2J2esNEJb59fWrkxzIjO9Fz+YGo0QrAAWodonDWVnIkHrvrhJiC0xi3W1bghSiFIY24asZ0PsqqF16+QdiiVUs244t/j24RrbF9fmbhJhfSsl7UqJ6LusEbRWR/eqUYvasEEV4rFHm/HZjE//3aaNmTThO9E3hyJMs3g/GlZp+1vBtSd/PPb3qF3SpBEINRuXtK5x/w6YttGjoN4FADXVRFvbAt6y15474tXOFj66t1N0TNjsOiv86Ini14te52Mf95rtItsMMjWxvaKNdf+5vLuKXgX3fzewTT04ulrboPblceKYIzeMKetGv1R0zlzaxuYIEZLNIpidvxvkWeQ2xZU517dQha9CwdysPc+1pVqkuvxeO5xZcw3W6jGLUFCv0vk51hVw8BjkBDh/XOiGxaUZfUJbP4vruLod5a2Lf66T31g2FM7b5ky6YqWZvoZWX91D+QjHiDlgvCl2eL6cMyqMaczSbG7ijO3tGX7NbftYZ0NOYK+nqynQ3BCsD3uWhKl9IrsTC/GTFrY4WsckYpj+YeQ8GmiJyXyLeDpXnaqzOiRh+aBWuyLWfQ8fTnxnxF4eb5CnxIwA67zlWjU/JI/aAqm63PpoCwfKwiu56t8vjfaf8npxAUzyBMuO+KXysDe2ScaE/styIgsj185Wq9N/713y3DR8Hq1tile5SxddPFOVGNq5s1u6V9NuDRXX/sNSJWO2ykxE2q1UUugrNewn1a0rVKlmPw9HibIKn6djYBc6hFWYrnE0G/i2d3Hl4SwC2MS1RQcTWn6IjCqHylIooRXydjp2poCAzeg/DFV6XYmiP5UwKWVw1Mf6etqvEGsSf1Vn2dZ3VSiIr7Qs8QxEIEKKPX05fZgVuV/zi4pcuP7TS0T5vTMOQ7S0Ny9ti197VsPPI1POeqCNUf0d8XXPInM2S2MGFeV+XrdKBg2w9ytSOYW/52tCh6zDxaZTv9GXdRpMa+kgfteCbFIiOFnhyUKIgYYWkhu+81DcwNUieR2+RHvgr/K6+XGRVfSyjF/a2eXxpc64PY6/j286MDNsMNXt6yqckIU/WIHlbJCRqYcFJMmDYyxPh0AwQXQTyTE+ndx/TqTbQowZBh6bn+zfw9YrixbXGTetzf3pBweh/n7Pf6soTWs3g5/Geal1X6tf3sGY/YGbfCy+pGCt5w35oq2P1Tk2JTB6x8DlmWn0sGgmX7Oe4qSEmD/zGWfu2jVPgZd4mXdHBzUG8abS1cZIx8ix7xT8/HPRNa79lv+vWlcVuHRusNiYpzdN1IggVzcUEsckscI3fM9g+jXVodm7KLvD5wwJn3hE5pZiG3JvtPQelhNxIVYJb78mB8nwcEkSZyZ+HO21YpWLLieJq4ytebfvY+rmsJQ34ounykhe1xFwGwEMHXidf9OLJy0FdlWJht5MoYr95xoGRk/yYPcGCRPMVQcXM/IbZcS/C1TUkZbQuIZpCt1pcRY7BS04+eR9/fwfCEi+RD1gO4Xdcr2ET7fD68DZKnDx8emDoZ1zi/+DK0NfirAq/Bhl4aRrIjsWQv6gH/SxFVUG/kHsV2HR5rueZZKXTP9LSV1i4b4oA4U4M1f9s16tTAZJ9iU2Yt5l3ll2Si+tYY7WUBIM1qGHsljd4Smx+LCCRwufQAiul+uzXfe4btmLNolPigdzNn7y8gHzZiHyE0hjcN5hx72aCJ1UNlPgNmGi6ZgulyKMsCIExW6kwjdb+CV0rUPf8k+qbLHLsL9kFhpRkT3zT4igE9V65xVPh2za+BZKqjixkXuqgdvkcsBQviGroWiGnzL3eTbVqRkl+XAU8uslDoUEnT/4/D3zJuAdILPF1e2DYeUDjhnqb8LDFvIsK7ut0xG0iLCQoicI9yKgZpnDDz3/k0Exx4hEp+PXGMenOftnXetU0ZSYsKE3hIb9gp53rneVsIa/krU+ThQtbNdHe7DyN406Yf9l1t/6wtk2CXwEld9XX5v1t8/e3iovkorMrR3qlcru2el/O3+J64zmcEXjB4peIjj+MGfzppgo/mGEbKHkOmJrI3GDKIRIVfmy+KVDCUlQ6YI6pKIPxN23/maMjbccQIRF95BXZNyPDRvthfYekv1Ogp/mY+Ot2EPCcLo9VLxwRTbtnX0F2r6tkjJ8laysqmMLxzKZ6Zis/1ou0Vq5bZjpmlDmXZ9Tcm4b23YYf0RsNArdN9ykbu3LAKfbN5SNpkTim3M2eHyuvFeTN17vL5JLcp9OPgBD+hsMtzFNN2BvPqq6irNS8a/j1evadDxKeplsFSJRONaau8gxJWXae5Mx91/7/e9c58z/3sFGr69fysQuoRzvvltaIpAXYb8+UlbZWEMbiP76xrpoG/0cp4YNt3LHmJchqaTkDojjXAG6tSvG1Gv/5/NJWByd/V25aDtP1YQFNC6KSA2os4PO0c7X193kuGh3Z5s1kZcl8R0vY2vS6QsPy/HgEkaIrnrU16A6fG5evbgdIB/8mkoiFMmnmNlNMxt3c2tsTcaAXHpFMncVy63OC7I5v8tEqQtn7Qtzxe//EFiN8K/ioxZkS7Uts241R+aEExi/t/0ohl3/sF1mZvT5s7b6MKWQgEQsFTcZJQxfeONmBGAs89OKKTowQuS5vJFSpljV1ZxiWuLrUTf5fG0tXUL5IsViwFKSLMwreADu5l/LrJNifZb+kL5vwXIf9TSLSEG9prn0ULtWrkjoGkDLG/VFxIoD+YeZXm/j6/v7+MIzAiEW7hY28mTeq+zixO+V0zR26Kq7ewUGi9BxVT2cA2DevfPuHKeGbRpkCyUXcZgnL8Lu74kFdY8Prn1AmZa33X/yrXvDweaRbS4ReeN/juWNFSc1aoAQe11FwLvGJwzdSC9acf/EJXk7J8SVhDyj7Mf5ojHk9xfIPU+pz9gzngfn9UEjXyMKD+YmN4BctXxxDYMfvNdKxgG48jtw6vEGK93oV7bvPzjCHiNRxRJFFxnWUwnNfxDg8Cu+U6nIMz61e+6m/uRrPgMPQaou6JUlH4b4zscKHodXDcqKk1Wa7Owiz84vXgZIwaOFj8Gu/fesdKt2xIVnBYtmnK8xUXewjbWPchvqG3NEdAZTLbpFSYEurX6dcUtrVHBoFVtSEqnEuZLgih5q/adubvnJSFUD1bBUlaq1hd+NLZX5bEapNAvDAMGQUznLmgKlsfIm/Mw9kWBuWYHjjR+hoVSXzN/bJU2wSVtdGVCp6rFWuWbr42+Wz5jvZMUaR1oqyfLwCaGQiqLPn4KMCK4QynwWew9nTXOfjvO2vrUnN/btSqPs6V9HDiB4TZOpvXufw1Ztqm6rbftGNFzxGmG3fS4jGcJsc3UJua7KoyeFdOmD2N1r/pPcWyHRZk2/mpqkTK/69eMt62/I6d1awCPsakat1scrjTJpFiEe/eT2XePgJd5Rb76sdwvzR8NiaVOlWTPDQjrcYwcUH4Y9R/ezGKBIbHBoLM7HKis8GruqrCarLdFSwSD4eihc4bIrYWQZ/CVO08exeJiBYLOwOB2tzaHS/eUcAIkjndUXw9eg5hw5RDdFwIwOp5UkQMFBIazNx/K0IiiQpWNOsmhJNvjdNIX3peOl1BRlXbzQUXnMORoImtdoyMHlwNoYKMlncd/V+YwEKsq1WXNIA1tRvgC61Gp44NDKypje5RwOtEITDnuVbK4KeddChnSMkwuJD73tLv7hmFVJjhNqiIiZAtqtFMEhWZTnlPKpF+AEbkKOGqUYFqGI1Tp0IkhoUVBJ5q1JV454RanmLpX5WCvA0vKlXYvKcOISz8F7N1U6uVhFgQQ6OZp8LFjuVplU7YCfS1CilfrwUHhbtLIw6CEwyOUCQOBo4L4WrLFxK8xhEkEqpEzk6HdinIVQ8FklAXn+njLCBfbYlSmgeBd1ofISJSh7qimVQ6LOKp3iYKC3d5b6Dzq6b3qsS1b1H5chX4IgaO3hNcevftoQ3dD0LAjCwSC3FV7lXEPHnJLAOJkHdbrCXzzqcHAKfzXAPzk7tmA+5qHW9xiwlDkeRC8w93dcT/NMFWM/ZuhGhqGqq9cy5GHqOpRPkt37Dro5xTxms/ffPN3AOIoMfr8THVDUGLZ3qWqUd46QbBVlw/TMr3J5Scbcw56jTMUhY16Rk6+V5n3C+rjSjs7V66sAciWPbVZg24bNZ0z5fW10zJhnsHldcUbQrULnM3TPtMeZ83UzLzML0AM/Moyfi2j+QZZ+rpjR0zxiqKJR2l5F2X7UoFCic0wtoSgGifI4S16hyYPy82PAvc3p5aqPe3jvwnZS5IICkSCXaQWqPObpW8rQSoYcQ1SL7i6ejlN1O7oryNqMbYZjqpxuLpgD7AmgM7c+oIQn3Ag5HIJrSjtNS7srhnRNYFzSBhsCCBL7kOFigHHjxTCxBy9GBDx9McoU9GKeQGwHY9aLJe1vww9WqmjOCFppzKxxI4YMm8Cx65Ob1TxcKS5XsJdu7OSEDFjtIFd4THODA7KPyvy6rms+PSch/qluRVgm64W6Bxv9tR792F5uVn0FM+e36dIoJ8SyjrZ7LDOy1iJWjuqJq9q4IU1BtJPyJ6/AobxdwXJfYbLF6HH2Mytrbk4iK3M5schBsZw0XCCHZf4KvnoK+v1ZxskrV+z3VP6S0EyV6edizV/OQo5mcqZqC/MfUiO3LMPC+kuhb9ezGAwv8zGeNkIu5qTYkahyim7qx5Xx8pwmPZaPLp2orVgoI/Xbr3aW6RwH5fSC4x4Hc0pI0vmrA8pJrfspaA6Z2nZanQZjmo05DOK/fQMO5I9TEZ6T3ujgbU6PKS1HWE6hlyz9suiesMYvaSjauIKwRBzlmJWFKV6tr3RyzHOrnRTWLRP6+79Qs4gGxwim3+TFjTzWrbg74tNJY7DkFJRU1DS0LKxsctjlyuOQr4BTYR397/XwKlKsRKky5SpUqlItJCwiKqZOXL0GjZo0S0hKScvIatGqTbsOnRZZHBggAAU8gAE+wIEACIEIiIEESIEMECFDhQ4TNvIooowq6miidVV00ccQLsaYYo4l1tiSE3tykxdH8rcnx4jL5XfxorF8eY/pQXjLi3iZHJjowRpieW9/D9xWcKJ46Rpq++XZtXpk2coVSCJHkMRm94v95bwHeQRo72jIG8LTvIesVPgDvQL0knOFdJET18/Fh4/MzqUxNtaDLQtko00JBOEVG54p/soHpvA1Hc+V2OrgkZt3sRmZiMkOZyQ4JvtIsejy+pKBoR7MR+BGzyM3Zvbc6HORK1Z8Ztjtdd+yx1sK1X+HTqb8UQB2XR0B9zee9HQU4h9flxaG8vYrnxmX4bBweWYBptoyguP/pdOAYKIVRGdCPr6b/AEhoNAHC1i4bDviW2hbQj+z1x/GoXkOCl1pjuYsd3gUnwM2xAt9mZdJ3/AxK07uwNK87+Di32/s/NAp/4nX36HQCQAA) format("woff2");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:KaTeX_SansSerif;src:url(data:font/woff2;base64,d09GMgABAAAAAC+4AA4AAAAAYCgAAC9fAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAggwIWgmcDBEICoGKTOdTATYCJAODaguBeAAEIAWJDgeCbwyBMhu/TGWGGGwcAN/A3htFWSLdc0T1aGDZ/39Z4GSI0H4PdVMbUGFYYvGxKBW+KFKPeDWxiX9atmyEb9I4xWyNjr61bGtQtlBiB0RxEB7HcbCjUX5LWreaDuX8uXfDdSw4CBxKHjAFon15zhEa+yR3eNrmvwuOo+JASo5WQeQAbZSjxAYxezqjp4sqF+WP2i83dVF/+5nbfuT2o4rn///e9+fa544Ratg6lcahjGC6dYwmwjErFaQKPZCPny/Pk7fvcQgJjLrdSN8tTBsMONN2+Z+6cjdQVEAKPOWHd+wAHTgk0yFIQens26K+olZXPfk4/v9Pl6ZJWGN3Wm2SA4bKz0W14Ls94r2mmB93/8fdzHytxkDSUghAcAj/V1P9X7n9H99mdkwgZ00BkgMEszuGg5qqrDLILUstC0JoDDB3oeVzX69AyQ/eb6qp1Mt20qfWCBCUC2/ZDj+lN8mJsSfLGChoWzutXwlAKGL+oldLMzozkny6u48BHTP8yCMgBuxDBmjUuyttkm535KBbJ2nluOcgyb6QlezS+fw5ohCiVhd1DjGhgx8jfBr5U9PnT6mfhgQIesLfhP19a682cxecEK8LoIt3++fjZEK02RDeJawA8PkYR7W/tVWAss/HVgnWsttytZBA6isMlxqiffzv/7Hlc9NFtAEn0vKJb3G3t1KT/RpjySFixYw+3m1eAOdiXcIA4Ac+BoBt8dAAFRh8DsGdeRXw/Vi++WfHRG6DHcCLnNcgZD+jrr7z1zyw8wYBAPqrMwAgYYobIUkXBXo9EvVHVRaS9qZSNo96zZZYYdr9Zsw5F6rSC/hCPVfv1PttX46yy7N5Pi/lNPdVSipIzf/M6bMLz9Mo4PPnf6vea3tPmeSeSsg4Uv1vuv8/vn3row/fu3hwV3/P8P+aXr976i1KnvvuuuOWm2702aANqjHcqXFVXO0RsCTjZv/Vqw4OSHQBlqQwQ7rM/7lt+FzitbzT/+b6/gujZMkGgkpbO2D5AvCjy8Tuflm6D5nw4qeIlc+EPVzigoP2Tg6U1gS1BH6pBgABvzcZIZCs04wwRIvOiAD9MbJ1a2RKSgjvTYK3SpNM2U+YO0cg1wizDD3R66MB7jp6Q93iga6JH/jbY98DnHFiBkmSpAsJQcQeukGW4MEQGocECVqk7UgmNK6uQg9e3SBafg0Jice6q4n1VhNxt/XbVsarWKOMXPuSd2bMeJ+S8eKQikjomQDCN1oiDtlBhK7GYIq4JZyILflAJutl9jtJQ2mad59iirCTy46g3BIUdZS0Kyog8YnxZ+FCKF1r+IIhba0xfXCEggXpkVtEyijGZWQANYh66EEmM/nINEPcjNK6PlozYqamiMJKzLnBMaiqKtHhuSHhWndkzDSsPhHJ/5lxJMfQRLRsWr+hwpaz4rQDvXcWZWUTQYzOMjJBFicDgMcY4bEsMwKC5VSB8HxK6JvWaLNMMUDSeD67C1Ta8p7V8FZXBH113BMbA2tT/LV5rUGDOKkgUrkMqqCQVFdE3aOOhobe0AyoRmM6yUN6jRUi4kW16n9ueLQ6jQ8wyFgiPigTc8xbFySY6V0r0e61zihAgrueHS2RjEKMCQAFXKL27JYZR+E3XK4IXYVE9OAM0isuUGmPhkYRPWKLMs0i6VWM5R2b0J/KPSVvIUcBkozbtMvb57rSo0MyuBQJiMtdUWwbEWqGonDqWLCbJLjAwnqEdgREfJGT6TSivhG3YMiIcKalx/upqjYEewx3FesoYEuh8CTSjFQ249dvAuCGVIRIkDtAKV1uMQKjBA7uWIrNoCbfDHlGuBr487i9MRCNboyMMdoj6SITakm6bOXWyeETl1GGBIhJRjkTCMURGCkIgpQERSrCQGqCIQ1honiCIy1hjbFCbG9LrC7vWEFO6CNS6JBrayiROX/Pmlxidv49YyRGHA0dxxFqp+dQpOiGdZjEeqzYgBUbsWITVmzGii1YcQJWnIgVJ2GN2oECrCgl3jOuopS7Uo4nZUa7v9ZzgCnBlJmuoAC0mR1pSpiRpJ59q6w0R07+zEz8Ue9thUjNEiNt1/at01B1mSb79qgb+CT16FSMig56fgahkCNznQlkJ+CuUfVNZpI7EXo+I2lAgVb2EIGfPkEZ05HfKTJmdIsQYldbPxMJFtkz5NogMESK7WLc0lorAfZAIe5imBkyErR983XGLBDIKB901H9cl94TV3zkcHIY7QYUMeN1DtlB5KfTQMwMoQG24El97409RvU6qaxVriudQdlqNhENxCFpPM2RoSp7pONnpDwofS9kMPQTvelBoexRLi15VRA02hVpwowSstnMVkE2OdygRylLIUlS8hwhw4NJ28EgWgQgLiFWQNEkPqLbAjl2kJAYxihFSIqZeIknSHab2AgYEBwYyK3nFOGtTINTVNgchWjlO5chkx9t1DF32i2uW/gRzOjpgqNkg3sg7xYs772S/eImrbre8bW8EOQWpKZ3Oe2G2nIWhcuTI0knhbPTQ26pjY59u2VN/Ij9YFYMFhsAsyOSM/jXjYwZ3eKIMaejGQWDQOabarF6KJA78WrDdU1BgVxmWCeGkNgDN91nN5x/Fq0Hgz6AYQ8sZEZpXxmmnYwofwzImlhECjt0HqalEjTxqY8LVCLk2QCiW7yRcqfNzkthwyIkAElvMP2KFIOZf6gkDGS1wBFootdSrBRg1klfcsa5ZpCQxh4J8ssQDghy2I7zSQQFissQTgjxqTkW4Fc4cwTl5QgXDuSShECkIiE1CWlI5JYfDpIOjlFfhvBAkMd2HCYTFGguQ3ghKKtMOODY4BLt5QgfDpSzgAJfjqBbOcJ3B9MfJml39JTnN53W4HxhW34bnDvCjviJ+mlHXxeOnwv0H6E4HoZ4wunBk06PuvgD+9ASP9SIlrogtMwFoeUjQC4rvMKZi1c6c/EqZy5eLRRojQtCa12QtE6U5OH1zjy8wZmHNzrz8CahQJtdENrigqJbbac5q9qYGUz1hMLHgmsMOpWuttZnncE7ZxDjyeREbZMMIFD/P4G7sqXcv+nkEYB4AkAxDu7OIASQbTAFrq48ggEB5cKvGL4tAi5UpC5T4YIxlFWb8Cww8J1mu1PHoNYnmyCNCzlHZHd16PliqULRw8nnMjhiqYifL+Yp1OoSg0IskirVxuwsiplpkdi0QrFdwhfxFTy+ReqQmvaDugQpBD832Zki0Weog26pPI5vTKC4wWSrsSjkSo3XKMSUQM1LMQj07MwcjtipkkiNGZJwKleq41n4psxMV3IOnWoxyGQSjlQqMStIkVol4RikUq2eh4vkydq4eF0mnc1nR8vFArlCLlcoOAwOWsVBrAP+x0b+IHQ2nbesWyAo5g84I5MSkxJRVNOraem9oFycmVka6U07KzShZRGGPwcUhs0/Q3XsX09p3AFVBWrsD9tV2fxUis+volSOqQ/oyBOB4h9aJRGXH635OhPetSNiyR1tkaQgFNpLcbPZKgKElcPWLksxxwSR/uJEqvL7pQofj2Fea94OaNiYAx1AKhobCP2lwi9ca0GomElecwzLlUAoeqDRMLUfQZjQVoQIhgpM2lMb+pjUAYSYJexdD1UY2in9PYLocUL/IXSiEvWsxvgctETRg4Sds+nyCJTMZKocQpKieYt36odTk49NrpTmrr79cGP35aQqz7RmU58wTWTpZcVZQqtwQ5FpDEbFCCt5IhcKKiwQQsMOngUjDQx1YvgQYbdl24oZPbBLGqa5VXd19akSfli4i1115djlASLT89Ad02EvK7mzkKrOdDAG89VALisHTboxQhxOMB2DpDx4m0/0KDoFouiJegJOku2e8q7yIakxmrDJKgix13B0u8DTCDaFqpEinGGzY/I7oV1rLRpoHRXg7qklBlLk3DJQRqlFkMydAZwb7CDtINf19llPTcNkIWrYjRyNWnfIsf8r1+AfESXJv+cPe3YzfDojdAsXtiKEM3eEzoCwJdIR8GH5jX2m5mFoIESoLBIqOmLzKJwtBdAyXBLBZrtcyWXDEhNZIZNHIRBGpiOtG1vbLatKprF8Gk7r6aMig408iCgVKtTIs0mwKYfvSUJ/X6Ozk3R62HbkM/BMqSJBvEAKynq5QxcQ9sc+8wgFM1/h7oVnVC/5rEB9MJjw+gMB9bNiJamQyTBJI80GCFOfK9xMb3BaaelKZ/NnokAfjNmeeZffAoTucYTRO/qMGZ+HtCmNCUdE4lMMgmt3V5WG66nRywq0BoSe9qoXmCYf80H5dMNRr8MSimUPVCxwVw0RKmcdP92NoMrQDFUzLyJF2Q0X8I3SOCuyNtVLH4OZwACdLAstjTzUeAxibw25YO0PEtAfQ7G8HuxiKmOcoD11UBofp+AS58cmtyN+h6l9Abh3ygQ7xCrrrcMhpuFDc19anCSMHQ4qZxHWFbBcNaCw7L0zltQVBGtxY6cWftgAwXneHCdgla4pK4Dqrf2qomjU5NbEfb8fYUDdOX/l3M2mRYRioFT76Ou0KNO6XGWzhHlLLJWVZtiWhPt5xkCEp5cJA5xMgMLYVrMQu2AeeabZWGWASqGI8i+2sDoS827oVeuUzMcbfuwKwgKbZHnkz4C7siofHFHeEEK0i7+uS9BeuBbDYFpHegOTSUtXO0rJAc28Wa7RJp0kCmHr+kDF7QPfItxuk5kjVwb2lMH9OX/5P5WvmT8/kar6/gCBzZTQk4uFU9NYZ1XOSePDE73osTck9XhsqP7PyDuoNevYiCzt0swpFiRC6La5DJ+2Xw1kEUUi4eUgTY/KlOrf1992f/KvHY330GX4XsjkGKmy64vF9gelrU0o/FfDe0Fxz7iLKzSYXolDmTtTktZU28by++yF4MwZ4ZbUNfD+T3/7xIxsFlnkI6vVLaleSnYxnSjjQZPKPaOiKWRN/yk96W0PFP7V/TSXBoo5EZ5Rfgkp74Pe9byGx780CcpJa3m53GrFY6UQNu05yCCYsoo6neBNB60MsrZMaPG1RewWtSFCHz5ZE/N7uZHETNFcpsihVCcIrE0YIY9pTSaoh8nedzqgPBuMgbuYMPCyVE+Dmnz8Iaaw+YyBTQhx4HGIkKvHbFw7Jd/30AF1d29dTEWU7jUEdQOGag35tdazAR6k3ovonaAi92cblgXatUiIMqxZJndnySfM8D3cfDA0cmeGpxYN6kfu6pMmNbbT+GIptyFG9P+u07FAKFaqAwlCsGYn2DnnDzfF0EhYeScEfJ7k8GcG840vc5xnseI0XNhU9tBIsc4tZ1+ci7yxJuFhwiG+3dC4/v7K/yFQB2x6L7zLxce/4JILt5iMM6D4D2zMCfEAOt6N8eOqhZNXVFxnqXaqAj+9JV/b/ILwRiLVd98VX3PMTfenWjtjquIX3yFg9zL9R1C2VOlGQnWFF3YuldZbLQiChOKdjPQM07h6OZMhShKKI1Pfy9Eq1rB5N97dvzZvhYE+Www2ye8U403Fzsmk0TinYC8gD98RKobnAq2oP+O8KDrmYSNRNHi1SP5BPq7FuyRSc92Qp/zNn7eqoJ2SF248h2HcDoAM6poPr7aRj5SLE1cGPjQCd8bk2o+CSfRI06tWcaiuRR9mEC+jVYCV1Ets5ItV40dhN+EyTXoVxwpdSRCQxidMYnf3WhQ9L8G/EXzbWhqpHQqBg43QYLy5o1W4JOw1deegJfeD/U6GO4TS7YTjmovQdZ1/SFZU+XRWaGtwnfBg7/r1wK9PWJJhxehbPCNM3CSccRvBHGFaXLGGoGvJ+5MaNFUMsFCDLo4gqXMGzEzNGQvY5fZLLKJBYvH09BP1uOXWT+Gy0tAUzTGNxSMKsl1C3KtYV3tmT8K1/huCsBOY5ldvsJGmYmbNUTSdsw0sukq4QIOxhiNIr+gQzIqQw9hfsMMYYXh43M/sQUsn7gRt6tSlVZ2GkE6cY10Uy53Tbk6ND8D8/nIKK+4mvFuusRWVBFvuzkjlUlcs6hO3uc8pST08QZCEiMmzt3e943710PQy3oYQKgBKITSNBRYXe8mRzMpKU6oM8mhN+f5bQoBp8hF9xuheIWSG+QQSLICqfUVHsKhnqSBs6RVn/Xv0SraVrjzfWQZAdhcvNfaNxj7FTQoPjiIubNzYf5iwOgJb5PJa422l3CUWFpiz6o21JZt+Cm+tDhznSTCjHXIAZLUAykp7lkwe/JQiuEo4oejM3ufQbUxTRZzvJplNNXCnlZrLqtp5MrqbNDlmA+v89GRTTzD5402syNv9K+icm3mok5Qpvq9jfif2oxtgKR6CRyqEqVswxweaWZqKTiqbjYaE87UxitGsMya4SeeDSie3mbghb4uqC3XVy1RfGt6CGXmmeu7U50KsLZUEoA/U0rJ276xkwQvJO0eUFyhqRTDt/IHiqPfmwgxsWDv0J3+djs0MjnPJS9E+Flo7o3HQT6vV4qTQYgyRMmCl9SBzeg2eawQqUFueJ3Z620AuvfGujlbd1SiG1PZJ1VnHyQHcasnMnQQyLB32mcTpkd/Bn7nx8sIQM5SVjxqpiOQJi3ZV56d62VwVq082bUYVq/y1cSJVDqwWYyUlT98oB9aZjmcL83fCq3ZtfA+nIa3+ECLdBIccRvC7usfb3MGUXEJRbXpCE4sT14WKSAgnH4GOiqeFPx7mO8O+41ZcW1WuoMgQQvRnN1/cO0khD0xRDEZDSZo9YfE7VLYzklI/IPfRahPovUuIIIJkoSETrmGzAsUJC06TSgWm3lnRfVYNPQZCXGoaOhOC35A1v3Pii2swO6xlcCxl2RvaIY1iv8kV26j0xfTdtr+cJj9F/h2doz1PKCa0bjGqNVk0Fdk8eEuCQoTAtYSLei07gd+BtqlbYrCxXs0A28FbHmFwuLRxf3K9eZ0V66yBvbc1XsEg7dGySrpP5xZlBVTd9gFm9v7LJPfbRj7nJu7Bnyn3ojzoHvgiXfmW0zkj2l//53/T8QFWjla9i9onQ2Q7fVa/uujVH9s8wtQ7ZiMYw6qcOjwxs+XHttOmn5bGU/Wtjmq9TIUI9HQYxRyb91472kYtM5fjvM8H65sas5Mwupe2+2kl24+hgpLiPvfde4TRvcm237FGNgs3jBw4U8Vdr8hM+qOdTM/v0Wo/phfPVD+uLUqtlaKbIC//QDUdJy/JxydM2FzNiDecRqYsK1s5iXsTQjNObigLe0+E2bPRIZbb3eOlxariyyoix8/luRtgleOhius2ztazh1vAtZrryPqUDQeg1TeRFRn8UveeaPwdOK1eBvmfCPORNtuqDP/G7ZPuU8uGdC44f83mg6n7oZzEFNFOOU85wR/zIYLzYsj4aumrRgP2BeNZsdSno1NMVBVlpIkKolxC26bzy9lWwoebHjGhgKYNzrVd1aRIrTWJEFhjgwUfVX6z9nad8Y+uiReLmLrxSU1pLlxWCtjxmgfK6+uBJCjNR4YGv+f5y7jKuNo4pRRvrut3bIHY6ymFCwq0w4l7Qrelu8IfUslcP+J7QKP+px40yGpJPkBufR23DCwnybx8pFxQw78PrBSEhAsAbN4KF+QDSRD/TFvIbxopbTd+sO1tAcIOGlIsuNePzylRxs7hCQQ7f/0POAILD/154/vxgK/j8iH1T6z4A16BVCdhM+sEPutfCCrqgkw442CTX3AKgo/lQswXARmvfx+Fqmpj6SkN7HsMz82eef7cUQH8A2P+1nMSkiomWO3a5iZtO4sooUh7v3hSxKmRxL9SdVEs2iAWHE3VvBi4r/7Z+oPXICHquxS0raz576mdl7xnbnEe87V4vbS3xfcYTTkEdS8U9LQVKj78frJUzbB5XtzYWW3bHyVw6J+e6wx8JmV7e9eDEHjHqM2avftcb+Wdj7rjfsxnhcz071WJDXBZb4hbrsynv0vt+HM91RBfVlLZNhzGf2RWaUYtabJmCO78KGIn1SWflyt/zPMV3ciOL/1lmGVIPs2OOH6HYv3fol0FG46s1X07tGdI9/2R1RsgYDR0I4yHm8aIx5e1ZC879DDm+1pnNGzsIH6774YNpOYOgwRmXF1yICtjyeGrCBO7eVmilsX1ShmQYhRyjtPcaXVQrV0GDRvAqHGZ9mZOc+lzDa88pm0Y5ll4DXFES4nJ+2zPYTl/KgXGXbuJ5dr4h4ndu4z+UrUb7PFPfFgTf+yZ27MbcLDIFuW2COdT/RQ11vhqO0ep4rRfbRyjp7B3dhuc65x6L3ADo5gGXsrCWOef4h4RBhPE6F4JlP9HAwMuI2I7Xacw5vO51cZidTurMywEDGRS70/r2bwprUfvRyYZQNgr3wC1V1tHh7MNiZ57kZC2Sw78OFTJ87r0iji9i+eFKnHgl3eK0Ar8rSTtyfBv22XiFkv9Tz/BF3JlIkK3kI60IcJvVzmYthrCaq14FCt/LyPVb2VHvOy4Si+bUT/p/k2Stjx36Q7Hh15FyVhR4J8d3vS9roF2dJ2aBpg2aqSJeC1RLqEfuwRMY1wy/chd/vwrpzCPMmGnkYg8qHiIe88+DH2guHioq6+2rr01Z27UsnR4+dhYXyy9CUH4FUgaA/0y6KqG0zpyc5ZU39pVWZCKgv3Q02UY45rBZ1SmpRO0kbIkUEaaSE8bH6eNNGEyS9++52TVbhSZEUrY/rHy7jTBva8ojb43xfeBE9lHina+XQjwPkW1q2MUc2TRRlqqUktpI93RHgzAsfKIojlwaPyXf9t83g4+8msUYzX9Qifbs9SlFZ2P6FK/WPUbJiMCTWnUAslEWahG+9fHQor2nGzodDDW3TJk+guwbk63vLDkvVRlTVnR17uX4aV6811egnv3UUUp5Rv9MOuHD9O6vXkN+A02N+FRnYiNbez8o6ZdArbE+wGTjBppIpegjZSD3QqSnqYl5VKVInnzle+YdgttwnIYLV0d7cnT90tnanxmxRNCWkjObPcU3v7k09sreyxRHfjAna8sTDzeqrqeet2etdmeeqLRFTxJLY8PdziDqsyDHWG2cuU3D7BH9p3pfFaGpObcHqjyOxsD/3ylrsrX0yf1KKMrz+b5xsMIWqC0zfnJKUJX+MhoEQvjo6wqmA3kmVf6yvufflZPzGdNyjjEJfxWrs61rhJ4UwU+HU0bnJijTN/hxu1KT/GL1ujn5LxFl5Tcc2Cao/7nyKccjYB43FWK4+xHEKfsxjRd9JNrOMMl0lYj+MNhc2xBfyhWnB7xiMJKVF/7qiXhVGUC1CMtD0fFfSNTz+/GAwu7UcZEiG4VP209dXZ+JhKUyp3T3fwkeuTUFwNZnLizV976vKXaWbqajOy2qoZlt/jr+zYvKXjues+K3Vjc6IJ2VikLD7Y+I/5dNDEi24/rZ6kdVMdew/URllSqc6fSFXem/f8DC9a1iXYT0avmWxUbeOw3hl13nX86/La42IPJVROaxk7L0kfb2vBFwNW1MppOHjgGpGXs5upiT1HhpdcPatcVn3iqmffzI4MlLfkgcNkVWPO032o2LLrFSNq96XRMmVazuKUEFL3Fvpc9Nz93KlYiInyFbPIgxnzoMYMPYWz8851Fif1Ni39oXTKQ45Ne1cWcQhF1NwLjnSiqWFEkxrjuHYzZojaJL1Mapf/Y1vu28384vqJkqBCEvsmPgvkJmWhtun20cBiXLmb8DIvxaQZERAkysks/fN9aFk0nHwqjkCZeGi0GebksbLoYFCp2Me9at75kirjwslm/bh77P3uY8WicemvoxdasYTLUTZZnO7prsZz7O87Nzg03J7+JQik0+ZjByUD/84e0mf2tS79rW9rvuA92u0zeSl6K2Liqus/gFOrE9ELHolms/vC7Suh2qjCxbJn2BwEld3lB5eT7tC2btZu38L0WVtG5cvIPyzRLUU6yLYxzMDzYXhxtK7bcQPH9h/UnT/3mj59yoUwGQWOXZEJZZkZ0+P43TPB3/zbU7+q27dpbK6PpQmsSLW2WbwCbdu0QFYUXgftuO3Ky3mdBBFRZXFhYcOEke9SIfblI+uXOeC3hM9LXrgAqQY5qsWjVWkiTDSHzi5/CWna2s8PXZAiMSEJXm/79YeXvT5WEaJVI6RtgmFKUv75KXQQyxW6U3sBa5qu+Cp7fA0H/Y5fuhBaeVc/emmj5G9s++rB4FIYxWujlc9FFucNrP1vaveifwZ+gURih2nueylarBB7CsL13T/G35Kbmb6d+k66bHlb0ff7no8LLR/yxwiuHG9o+loYubklNDOrU3UgfA+W6cW4LnDoKpKe1F86eU69tBBWDgzZeYIPx+0xrzm/ZVQcyr1OOFJzDOpVPPlhUl3G6o7DTgAllAT/dcj+0eLa63cFsxQfcyl//bRxa0WqtendNfoCT7y17/rYAzqiBDJgAW8XS8MxM1hpywnDF2BDNyx/vlWDLYkyvUi96OHqXwLzwumV0gb2acCQW0mOPaAsMTO54BbAP7ekylO0q2dm4abN0bhfYuVtOtGR/FikC4efzi0DLTTyls7tKhDy7e99LyivXKjLZTSi/a+2FlVlRSQKGwXT93pcENKndRa7rjlEVHSJqF4cHl46MJ5iquMXWJG/u2ocfPFcoTsB8j5AJFuB3M6lHponi19R8gXUWDARC9WvFxDRC3D+uJOJ5UXADsA5YX4IfkMWP5o6IatLA91/Im6W0zTXuC1ZJ0JKl4HMW+cZ/v5kvNvRh1lkqNY3qmDeWvFPx49FsWYu89B1oroO2J+ukUuatcdGdG/cfuFN0a5wpxXL1ZxIFzEJVlbf/TnfU479nfnk6dS3EbUMgbj79d8rlutkAmZ0Vdd9J3DuGStNJl54MzKannC1O1LP1Kwq1lqmcrl8n2Xn3zO1Idz4V4jRjspGayH/FezscZmzw6wjUu6N/j5iABZ+hjFdFBFug50w/0bXyVKB963H9/S1Rb56Sw3Sbuna1bYH/LJVAKJcdCoLrEyVjn7YqZ5aKRDu2L/uzYKTLf9eGrzgIZp4j815t7YQfHLi/iAEBGD0c7TlWeeX+Vm8a+bMES122ZHbFBbB8+VoGmQxNdCVIly5bdXnVJYmYKcQO58MwwVd+oWdH08lvv6GHvpPDEpKAH/q5cknVYjESh/MQh7uc0MRLaSP92++NxaQGQvLwrw/+iHV/TdU2rVvKJY6ZtVla89iHsa6pJiLRyZqY/Jphijr9jdpr1TaSDUgdNYWJ26DKMASM5KGQacFqoSgtVQg6VlTXHCKNIOrHfPop6pcnhto5KiWnveWJX+gpzOu232up+PYkstuCl7MRFNYLaWGpqe2KeD1+YCqI94FNQS2IiUUrK6xWT1kdbb1w2Ud0M/jsE3dp5LprA3iSnO2gynmpuJeVV9djpFOuphuWbIXSe2MCLF7/TOz+b3/MHfvO4gn/Vx59xZxDnseNn3/0sghuYRYY7gyYsMWdSeX0P1/prQq7+X5LfK6Qfp8pYRd57WfBKQXMrEZReaGu7hus3fJ4qPazrGXHo+kPeoJrpybH5c1SqiYNvxmT7dSUKmqxVf56MyFl4vtQZUBJJ+Oazz65yRdZh+6VXTHvp7dsQYxxXs2stTzkjvlOKWCsHEF/KzPWLV8z6ZujG+yakf1H0NO4elr6I8WxZdWo+7fi0BD2EZqUcDpAOcVBXHfgxaTkRwieJ96wz/bWPp3m5MnIKk2eeZOefIiVgOmtD7xa0zyfmd2id8UimGw1sqfnrXlv7V/O5lBIhSY2ROs7wVAhs8j+SlRO9/rKMRE15tMU6AotSe/WPacxOBZsvSeuamFa5oYUc4MrLckVP9OdUPNWRMmtPz/RUgXK6UXsZ9bnlraFQmml+LHDqi+JPZmSNsuPgONotE+R6EpFV6+QKMkZAJqN3ozNnRFOCTshC0PJxTUJ2Zn9mdlSA3T3bRyf5hUyOwW2aTMSb56b4KZLc6W08b0Qsx3dp7Lclc965neIrAk17gtClUGpbg34BRevX1/w4U0mIvJCRjwXWY40Gaktex84+QDtOft4a2Z6+T4e03DsMFS6sHpiiRgT/TLEUnB0yneEeVWeWEVnZU42b7dROBZLPSzQoMkVwp5cnRUd6I8rtGTFusPBtGbs+GFF7cAxcBzdYXWcKkhWP/sa61BZXZJtXTxRgbnnPj+B8mXvsHwp9b5vMsy6YzER+6dvJnoWDzBFyauekn/0zdTPRtmRQIkq76NjRdln/gvYrIH/zuA+dlDV1kaxlyrL6mzJdLBx/T1FCKUrWHBo7TMHNHM5a0wbf604b6QOdJQETcW48es3TwvhadTPP8hVccYo9Ycm22AOwqxxx4JF9QH7ms6Ur3JjnI35aRkp9rpXr33/IoGnzpXVJVoVWTmNusf+TwU0g2BTXet3lRdlhNH+XhMu89tR2qauJ2NCmu8rdPsrN1Vnezl3jcjicR3e+bLDGv+ITMVqL+L2F8TSVw4TFUkNpQm/o3salhBLhb0GjB5RuhUykULsRqLpwqQECaNOJ5WBXHtkLIPqXrWs7KKg/K0px/C6HZhRt1ZXZKx1/d6Ru2oYO6ikccFkffutYOJx18PgWDRdaE9GjSL3gEcyliYRrZ4/FWDr5hhnyfaKbPvHwYYpTjMvRSiThQrMykJEiMiX5d+ZuF67oGhfB50oFD5ZS8CsnOfjW+Jb7+6gcvOojrufOWcYMY7HVWEXnksUYD2bTHsDUY9v/smBenmLqieDzU3WTMobU8c6oolJ0cBeU89GhiSdJG1/Lwmyhj1fZZx0Us+nF0og0zbzZsm+MYcJO/scm8tI23UOGhqOdoq3v7ifZ04ZWfNx2OoXi7edeHJh45KuPcBJ3hYzICSyoKQdQAW1hY0SMSa4QTq0queFj6w/EW6H2/enY089lyhGi7+J/Qs7S0J//awMl7IaGKxPOq+bLSVb79za8EbDTZyHk0m76ND070lDxhYLBkEcd+rJp017xxxmjDNxJ8STV7I06gfIYrql67yCqII+NkGnIJ7KqTRO0Y8+Qh8wEWHR7YIW7Fp1NSMtt8TJf/3zolm+PJNVebjDJt3VkOVLjqvunv/9HwFejY3M0U6qIRcSMOR3/gYaf+xYnyFxSJpesMru+dThSImizXKJzJS+qANK/OGXWfziUkUNchV1Pjxiy43wh/Tub0eSOWf1jpdI7QfyuCs6A545BwL+ZRLo6EYS6NXTxrRTkQkRpMe2zGINOwI6vUEXYyLx4Zap2zE36TRgqY8kojuD9T+DM7YzW+oijNg1rWFvPhuPZmkmHCoKNYUN20LVsZ/QgDA1TShasNq08CkYYa5is9mrmDCMvbbX4Kxy6i+D/ipIIk5imVDwGHZy3mrKj8gWFpUURmRBi0X27CYG8qOhuMjwI8LYdA57+YywQxQTuRGCiTPECc1En7mJkBHSpl/pVOxXE92Ia/NjM0RjFv0N0G/g8pbCSDkI+KtRzEwnBIQi0qjznWHU1cTrD0TTyRVLwu5KlFLk1bjYbrNQWA1obNksHc6K3v3ZNEr0qAkpl5MYCYRjpbFwIJLI4UoJpWwA/rxuXWPxo3UvFEFzsxDIXFtx6TjuiU32Dk309g/01402rVu7pWz3QvaQsNrzNaenb0v9ZqSJ+sZ9RpKV2KDJiz7d1qSBxcbmprn6eH0EWrfPfK6Pw99QAVlTybF9abbDERmrilXrOh/85x7p+/Q9DuNrFRv4nHN95n3YSALxCuR9GZLxhOc2MQkzI5pOqlU92htNRJSAGDOfrSZv3vjBDEZuS3njpLDDF+xORqNSuewpyEDehGSsq1nnUjSa3mjQgfxy1Ez4jMNsA4F5mMjOyuxqpBKtRLqOXhqAFZwfMGokdf/A5QD3qlkm6aJto5vgD5dvqu8Udxs50XSyLft8YQxwB+GLL08KOFnBcqya+dnDktQupIbNV/wY4OvDotMiu6hwcfBxY+eVrlTJw5+1HkPhNwgF0CNjvCfOD/zO4AUw2AoxcASfWEayXWb0GFY7J6RShP0GsxmBHC3wa3GqR7VEc6b3lUke3OKAELN5x1TqBw9LQIW7Gr0Zprpte/miu4RoAjOKfW6DUNlOPe3J01d8PQz+fZwbKxK32i590IiH2E8Myw1XNLqDQ8lVoIAfVd1/OHFvFWaxMPx+zMRbT+pVj+fiIFyVPHTIAF/5jMqa1x0YBDFQWMQrvsJjQp+Dz6LpMv640mb5x+Cz8ov8xjAoBLFBjv8rB7Z1rDZWXGFccyipwRR76UOrbj+9ZAKYxvgk4TNGJeiQKJLq8pddz6iKSPXa67Zd0RRPZo/f801BejgtDCKiIVSyj5DofgbGckLsbno0Pujq71ToKssLMfW6l37G+FxLb5iimdgrsaoLleuqump34cGjhxUYdtbpXNjh5cvsJL9Ez18n8E/FeeDu9fMzEgzAO6vzJjUXeS0dWqgHS85WxyJhh68xvpdb6M9LNWvkAhxiROu01pflJ4LRWS4CqRb5MPIgTIBRwQwdCM9GDDisZfOJKi6AV1TBmCLuUAo2lYvSszu02ERRCWyQpgBrzqalJOqlMLKUZqSwIG9eymfBTYZSpCQ8FChnglqgcigec8yRxIE+xneaNSqMszA45CvkOMYJO7VyJg7cpJbkIC7XVaCI5epAoxdFEnxUaRQSxDpMoulYRlo8AxcpMcZB6SbEgZAFMJmLRggt7FtSSK9eLjp4855UswRTmTQ80GFDN5TFIIFUkjEeTnNwVp6tLKRzbJBETOLaxHi+Jp12UgPiHhWGIixVySMNkQGUWReHj9kscSgUSSEm8ZDiitBA9NwEF4E8gGyAalYnCqJ0JbddRTBJdqBbApS8VwDJDFeIAZcBgohhBG/MqBRiE1Qi1qIX3mw9k1KAMyC9AlSrMN1GCkGEAg2CjmTmtl9SnJOtg0nujaOZ7/KAHaEXLvpdjfzrGAMQUHzSW19rV7Mg5z8uQL4AAFi2cuxq89ZD/2NdEfwdAHAwANauToyq64oLCW/QYm/qLfEXp50GHSb89dXQHRgoO1Pbz1NmVMcAnpYnJU6RPKTM0FaOv9UEl/2DgNsEBLlslVAMNrCDVkzD7oKgZJN5ezGF+z4k9TXUY1d7UzKvEdwumt6fjqYIVLYZe/0TxoKyvb1uXCXntkcasoGSBIjmMlUnAHFsMg3japon1aCsLK7MeuIDeBhoi5KWL5nEWlP+B/GJAE2aRW781ABgT3x/CUvkXV5aawepW4ESkJIGj41xe+59YvaRyrXu/EJZX4hjKqwm72lQVucvoKy+esB572a+tBWPsMNcmhdoR9rMhut9PwuokwG58fbLaTUgt6Ylppvt0hs9S7IDDJ5GStIG9AAAaEf0Xny7LUz3XrHUGEZdGABxtk+QI1yQrmUZgYA61lV4J1AFiXdnFQx3tQoR9mwVKiHCKgZfMk5jW1W8GoCWfC2fu33Bb9CQxUb0WKDbGFKCdolsnBxfmyk5YopWkwI6jcJ4QENMS+jkdsu2QAqc+9mxUYspbsjgorK0IgJtWnXQbL/Fii6o8Gs0ix3yKEunu7yLz6C+Ng5x/oAxf8QCnQRi53ufLCRCS3J4PBCpWpIK7qCh2A1nHzy2cNcjHmczqHtpHpAtiwBPM4OdS6Lq12ULCcPmmMhm7fq1StNtIfOkG9LmP8mVeD/7kTX3As60BntJjQ27SXo4WVK5JNKSF9nhDuRN1iaVatV/tNuj12bZKrQ+O2rMsQO6eGKBkWbykPuYVCOMECGPa+lAE5KVdBqaAsXcX2YIthf1bLEx2A7xIprsrA6mnCW1WiRMjz4LbbTcpYu0klladNBgs7DvSBMPAad87ah2+drlMRA7Ma7sU/q5n6JMSDE8CEsv8v+1wCmw9N913p/Y/cqCY2Hj4OLhExASEZOQIsjIxVFQUlHTiEfSMzAyMbNIkCiJlU0yuxQOFCcXt1Rp0mXIlCVbDo9cXjSfgKCQfGEFChUpVqJUmYiocjEVKlWpVqNWnXoNGrUGBjustd0H3gwC3nIrKHjXe973tg/DgDCICeEQC2JDHIgL8SA+JACnzTrjrDnzQ+MDPQ4H7WiOcbrSm/gzGfmt/f2tkzdyZboZFd2dY61YcZi/raMVrumBIz2MWM+C7BtXDo329A0OIJHuHiRy8qfnSWeCog/w7Jk9BUE7zmeg3y3Y3Z8CzL3ZBABL6maeV+ECFGaHJ5swovKx9i4yAQrAOIQ4JwMvb9FPgACBRyO06bRmxrupJkQdJME4hwMfds1z1SlLGHMBXwXqWoa3V6xC2vu8Bhd1MD/pA/p//Qy6/RGeEp8ZHRgI7AMA) format("woff2");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_SansSerif;src:url(data:font/woff2;base64,d09GMgABAAAAAC78AA4AAAAAV9AAAC6kAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAggQIWgmcDBEICvlU3gABNgIkA4NuC4F6AAQgBYkaB4MBDIEyGwZIFeOYJR4HYCYtFUWNWKPkERWc9YP/vyRwY6j4JlZPQ7kpGzkUd7TjjOhkhBNx6cyk6Q5i/nzj2qlj54ty4fxhRaBZ5OmTqZCQfG818VqyDgXzED4ter0jNPZJ7hC/zb+793iEVKgIkiohLUYRLSCgoig60Z7O6XRza9fxc1H9I3P+yBzQ00KRdRWa741z435hUaV+ubdtcqUVMpPJF8kz6pbSyq/jQShkV56uEBKpOSYgG7Pi+ts3tfd0fzPN3+zOJnbCDpFap+yU3HKi3uyOq/0ISj5pj2H9673el2MHlRQQD2nssc494l8g+9eWmosmYQVG+anspw2QYUM6MoJ+UPKtr6hd1Oqq0Roo+cH7838c9n9zWs5VSuZkKHgJ6E5O3J0scS+X/6/S7E3Sd+u0HCgNJSkP4yrWwLsvzf/UlP4vd5yVMQfajzeAFdAWkMLvL9vx/19Oz193jWRlWc6ynGU5ee9s3xp2xxhsD3SWM5yxfNc9BioKLIEFsAwXrgEIKAPd8F8/9qt77tv3tVWma0uE9EWkId4YQjMNhdIJSSUxnQ8ra07J3AZFbJ97Hatx/5tQybtYcp3Nap55Zc/ohhBKpuY/aQVA8A64DZAAQBvQfQCATc+nDj8AZojAzcRTAHzPBt98C26cWJ+3BziATCbBZP+XgVb0PfhLBsDWDgwAeB+6BgCQAXwpwgDhHwwuOuHgB60MyOC2ywaVoBq0gRlgIVgKDoAT4AK4Ac2oFD2JnkXvoGlsF3Ynthvbhx3ADmPHsJMyvixHJvn//37QD3aoFrSDzE4/gZ5Gb6Fb2M4xj2InFLtq4TGe/XHMPvKhD7zvlntdcdYxhv+WZ777LW/2lte96mUvecHznmvsg++DCyDdyP11jPwkIDsQ/PPVc4CuMohgY6ISJ34JzOfp4A+SkVv+lXzDvNErgqbQU2DtGjD31kgc/Aq0jVh0FkfITadEJt1QKE/RUI6NtQQpArd0WwCJo3eEoMwfOSKIFeuIAc0Z1n4w5jvkMWL0BbU7vqhTTMT7pyBdE3EnNcR3T1skJUdPefLMfo1tmZ3x2TNwMeJbnmh5cglBLJxoKxSyY4DHYI4CDhVFgdDT8JIaNOBD/gLu/WqLRIV7wx6JpWCJGd39HZZiTW5RjO1+I46ds+zNgrIzRSGh1LCoeN4in2CiJgbw0BIYIW8IOEAjUaEyGkp7I9iBXY2qK2sgMqTzkCARCOq2xMo+UwSpVbqRrtk0pGz2mkShapOU0FGPIkAvJoUsXh1JQA/ETWpAMm8HkrUnBWvG2tWw70joHVXgzEIOPRrhcctmHPhJJfJniCRrTZeckWVPF4Qrpowh7u2EuG3SrgZRq6DjIFRi/h/vkJbnSAapPNcCZG9AWZKqvYDgGCsRhSPCCNmLrWsckDqWycNrnEKr6ww6fCVK7C5XRUNLrRL3/Kz1IJBV06NkujANOtFnETdRXJiVARqtcyC2zGLKRnRoTiVmnHK3q93D4BOgKgxBnSvAxCPb9DNGmVJL28EasTprHVkoSC6xxx9yZGNaALJ4lZOLMbVXst/CBGO7DXCQIGknL65xirIyIIcjcqeiyAgkLxdr+6HgcVdfk5HIqQJ4s3fC2t4+YOx08EbmowAuH/i4JIkw8OQ4HZuJjC+sA2SXIewKiJmDFj1aiRufN6juQ2xrZd37TjZ0ALmwdJqvZPFgoOxSa7Fa7CS2/LAA0NJdQiao+YBCHP9NgLECLe0HcrVHj0ztydBEvke8yu6PU4PukffeEMb/NWFQ+HnHjW70Sh2FKEDgHEVU0LKFLEeY5Qo3sUiWJ8IkIptUFMsXdVkHccO9JPy1/SCoCK+iJjcu6hslhX47uzhZ4Hd3JsMYP6fuJmFwsS+QQ2oiR4YChRKFCoUaRQGKQhRFKDQotCi2sAGoPRcYYyOzfXSEx9AgiXIaoFvGBBodjbYPMgMY1O1UQ9K8JPj6U1JjBGBx74zCzC4BLxfNtpBEpxfeqrKyVU/1pw3bgE8KTC/BGNmNpb51QidTnd8NIPwCN0mL32S+2ERH5TPFDtQYqKESuOEF5FiK6lHtWNYGUeRwra2hHAVR16DCgEAZNbYrecOKHkhCODbouxnat2VCdO7POlaAQPgmGgHcPKXm+QudZsziuZNs0ECdyz6TqCxBJXYuCe2ZgmAntpR17IUzXE0rQ0xveqgecaM0RlYyqtKPsKsctjSinrs4NYNzbIQkTg242EAylUbEq5VVS4KQnSf9NG+ENO4XLoXGve1nxIoKIeIgkYZIMgnX2jhI3BuMYAhGPIharc+56lhlEgK1lOQRVep5y7bVCml0vn7CnWNnTqmhkUblNjhSxmgMFWqxZvKeQj4/3jBAGDFjpYZxW7NO0HucRrXvp9dKNIXtRuNEp9axe21tOiCojIlwfhGHbbOrAbVWxSTac67tOre/a7Z32yWi3own2g1WuI6X9ICVLst2DLX9mcvaIF+IK5qCwKsAIUxlzwELEuna6wB76rKCGpXM92P1odDSxrdtbN/+SgzAjFXDeHbsWuaNhU2pVXmBfwaocMYhARHtpVbWawWlDumCYEsQ/oMWRHrtnp6y28WEdutQAGT7LK1rYbD8bZHngHBJUKGflYHRBlF4dp8Rbl89WgCWOzFBi2cgkZBoNNCyosYCsaYMJJIS+5txBgBxoyXEB1oqCwGtATba6AWVFlS7oDoEGzP6xqvOwtIyGQjoEmx00xJQT4FYbwYC+gSb/fLhCQN4wiCeMBNPGMIThvGEWXjCCJ692fqLoMqSzdG3/QuO4WM4G3O0X1zgqo0b2pDWJiIMcyO0eVNQLZxJr2a+VzcXkOKFheWLLYrQFkdYX3Ila1jqNSzzGqa8huVlYisitJUR1lelZC2rvZY1Xstar2Vdmdj6CG1DhBsb9ZeyKty/XyDEl3CEeVuUcrE8lXLpLlB6L2Cq2PysfU8xgAD+/z8M3GQWg9Qf4JHzAHDXAiDqBzcz2ABgpQCBJlovHQMkgAF4ET2DbmMAkRb2/TgS0WIgqPJUFHZge1IBNwMUZUnLskXMeCaJ/TnKLNI7GOD5f2aInkXjLIedhQKeE14qNghQMmO2NzFlSSktQHCfhAEYxwAH6FAW1mg6pdlAqS1U86jSFVgZN0yVHFhfbWxJEWgCLXAbzTXWAuo/piCEQVgy0IeeixuYiVpT6TKzWYo6iBIwDEoEjgAQBxOwDkHEEeF4WIUghrXLhkC+AiiT4RmG56E9tDOaOPw+4qY8ACsSlkaXcBwDSIC5+blqJAxT1ffxAHw1yeJMWSwtv5d5QQMwJqyCpFPLIpVCSLZ5ZMocg8i5zE/xyMGFSQYSTVM33iFDM1VkfqecSlMkVWlwXqnaL5hIakopn3K5tClpjcY8W0DUsk1lkMvxUR5Ag4FxZlUgWZaj0RYJk0QuG8xr0yrhD6kM84EIpHlEUuykczy4Yn8b+b3bACciGsnGk40Jz2txR3s7VEauAAgrFBGtRxGrnY1ENHdqGgBTVPIVPUa0KSf9Q9ECTcwiSnf/34lrVHasAYTt4O7iBkWtQjTkbKCtkbRko2GLyiMoJA/QbsXD+owxaHEyx1f6dL/mT3WkSeVGopkVWyKchx9sJyswtBBbGXgrNMg3qLfSsEJs8brVPrcMmIAAmq61rcwnCmfk8c3jYQWwQdONvg0eYtaia/YiHvjMFoUFsANmFmPJKU8l0Qm5oSeMgSYK6qzcbfYZd67z5BGAmudToi+uA6bE61UNcJywdLbVHDXDLHy/nxFxFFFuvrOfqa3BSb4FgDVco9LQV65QqZGOyX3PCub0GojKCYAiVCZ8Vi62BtkFJUSSwvGC+P3vs5nql1jaLZVBHLN0SlOEgT1DkGH/MOMu1f+5N1CjeUfEWlZYsbselNVHR4h2c5kIcVzpkedaloKPu1wZRO+8wFTuEeL38aBcS31ugAeg7vmUC+bQPOfyV/yMiHeuH7dE5yRil6Myr769ZQd3RYcp5VOpw+hSMa88E7ovdW07bU6ShzeJUO3KNBUjkTOdtqxpTDUDNqw3+wE8sYvvLaHUqI21PJW6nhC3mKhAh1LzDV1N0pUkD/wi8zgkPmEiYfPVaZnTDP9xxvWt6EDdRcoBnJvKRDbLfOI7IFP6j4M4stMcRYy19LlgQCU/p+tnEFsNYemGXj+zhfVRuzyXqIzoCxDHYK4TsdSKDByVE7R5o9Kk5qpavOhCr+dpVZNVXaaplAfkzJBv0cfN7vM76qA+5dRAIjCimX5suroD7T4yjVnoMSA3wFFbuPAhiAwA1Eo7hESoGgVwg0otLuEMOa1eR9d1PR74ZIIlYvVKLFiyJrYdk5TDSDEt2LpcCFRZbjtudtvgmYgcKD/lbtTMivWpmCe4Oi7VwWZDZX8a2mdq0T6kog+lopbtyab4OF4lQihy73Tq0CF+icooWWqzeVfVDKk+Vw8ce6Cn+WNyK2cW7IWlWwpDgw3cVnK9fzqBWSPzcUMEM6A1A8gn8e5IXPVauxPEHCW3zncN8pX3eKzCFLDc3+l//OXx0mnxdJVjNotF8gyYWtRQS88LJQTeN6NlnecjA3sCY2xqxmEiW2C+B+9LHltBNA+PK8WAOn5Od+WIrdtx4wjPUWkH2hCfNa8S0WClonbM8q2kMcvD5xUR5ohStVxx6zxvDLYYZlL385OGsATPw3EXISedbNbOQtLXHKNKnbWG+lwfRAKZaCLAsvihn6ykFvLuFUZ8As3MLLCy8H3jkQWJhp4Vuo+DhzMFBlYwpE8Dkc1qNyExtwt79yqFykeohJQOG69+EkEVocJRptcy95jH3PoLqaGQRCKbVSz/lnUczU9xMrRxiEqJ2mYDebvK4rWaUbLs7AmnQQpDjJCelxLjcA8c5Q1Vzxb5NJBmIm3ftj2XfGmzMFcqcWLAVscTFh0xzh0ch2piig1YjNYGEeqTxEpMN68aNwBdYg9oYWjJR+GWbRcW4i3C3lD99qiyQVM54OSC9aR4XlYwAKWgN3MMP4sbkzHPigebGekJzZTdFeDrqRPlVeZgwUTKO57RtxDOh7wbzN6Oz4NT8ksWLxw7YCmWU6t9ZsXuphQB6lBxTU7mLvoiUKowb2aqcGbhhjNGMzIA2sNLQCToJSuurfPGL5rbhaEuYlmFxTFLDBsgDHNfY0nUrY1kWwVgN6nUXQfqyf1xtyy7crXZjzhO541kdy8PYKryth1O0Xydc5+bDsEx673ThTGwJL5goUw3pdG7VD8xxjDlFA6v2DTLhE0kSvJXZsjLbyfNFyZCa4WUP3NMx/igbVb2Wr58OGBObaKFsqblt0Zb43Y58TwZ8Q3wQ9XDPxa10nJq6f9oiFBElOwNgjU0NsY1BeGVcZ+sx9HAl1niFhgcZiFErkMPikWLpepLVH8tWZT2cR54X3B7AKx38qRpV7IYfW7fxwMfkjhBL0hSROaLktVjWH2ena9Z4N0l8o/7nOTvMOJyk/qSjObtpp0E4AILVVFxPdWw6NbLUwLkuKPS6GeZJeqjGcgYwNBFVuqBYO0XLZGoJQ/eXBbEDQhN1tyOtvJKkVDa5iZtGyI/HPsqw84LUXCMF7JhnMFNOVkxlVyj01Ru16lh+JRKvhGLinmJucyTZ2M4h5b09YukwOEMjM2ZFPbLswB3lmQH+9r0TSIaNvu5xBKvj1x1DX0Rad7VG4nKSNPQV5LZiopuVXN/zlBnJ6HhRFKox+Q0YmhGr9igskWjMUO81LRRho1ZGArVMn2TNde0IqUU33LWaojyI9WBTyettERE1wsVytgsDJCJ5iTiWNYraVhc5dYJQ8R+thjOjIm82bGKgSTCcXvdmUgQyJKZXVDCrXVLFc219tKQ1LREQSjiMZUK/M96buihzCfcT0R35WBDLR6m2ULsei6znte1EH1dVhMr306dqPaM6PO287FBieSQXf14myCplKLcUg+LD8RXtAm1cjD2Y/JjG9vypaEitb7erbS43fMhD5auK0rWuSyKiyBXLtR8DZU3ABbHki7ZAN8EAmwaOz2lMGJF9QsliYFtiNhGLIh3n1D3QmMJx0tp1smocXPdg3p29Yp2rndbiI8mBRErbTeti0XOXdF9Mkc5U7OTIFS3UmlfGo0jHHAX+sXb/AgoAlnzIhFsEyCil+gDE0b/DsDgdTJHbg1J8+AK76K5QXF0fQFXmUtJuUKDB+PFiCHSnjrrvpnQ6JXpeyYVSMfFTTziWhfc4C2AxBeqphLybhCstRrZppJ7SxTuGYAXdZMdRp5EJs0XGHLQem6wgEk+I7vyOQ6vrRjl+pzmrQSbhHud6ToMRbg3svCZnCwUku3qsVjKmVDziBzxWkHw8PXmhIGH1tFO11NGVZKTeVEunXyO+79Y0yPeKGIIV8AralJ+qMthrSi4qY//lCYs6BU6OupkIjAfEzUM92nabNmKaE70VpWBxu2GRfRqSevyUFqiEDcIpCVqXqJsWjzmx8wTHyG2HbvqRvMGgNV5xxGXAag8RDcQbZo5FUp5ZvK4ldyNmQw3Tooa15FXGdXnXeeptXVDvGfihOFi/Lr4lEVrxRDNz2ONaUmEl/JM4tfyoXDdagBhTpH0YyMU8UymwxarGnGY7bdDDy1Eb/2Hvkc8cwS8VOGr7Y5Ik69qTrNwGF+4ZJ1/CeXR8UkMs/HHK6bZW3FnZEYAnNUY2IcAaiYYxUPbsLbFdrBjWYCOQ3kqt7oqL324lk6m9DvnoL+EYPNPF0gQwcYan375W5RYVgEVjsvjCyF5mlEMXk2QRh48nIeCFFrxZ2eZt2fApKzhweKcnisqJ8aYp/OGharRnvvhuDyaOh7VCvIzRO4LYWkWPEOIJ/GAC8tFn3ddJsNRaNawGd7Fyzhv1A2svF+Pm+zHbGGycrDjWP8QS2ezZrHDRTkWtLwkJVL9Q1O78hDICTrI107UI8pexHcDoHytcOGZx1o/iwszFEXDyQNjpJFmO3iuZZluDBd4yZ0KwEzb0IbGKaOUntbCg6ZLWrou4jkn+pMXWWzu1FiLolgU6E9goSZ3djfsB+CB5TGUSKulvw7haaeomk0AkiJteSITu+2roKm89FN63iw3z7slmbvlH4liZbe4aJ/uJfD1+cXvOyB5xFez7PlA/jeou9WeZgvaPfL7LdMbGOPHvq3MlosW8NIN4z9mM8wZk20s/6ewEArG/FpeGqAuxG9HXZRVb968/yfIYiLs7Bb7cyckBXL3XbE0PJaT/TA4d7Q2XGmOYt526o8s6l+/hfagp6fw0Sj3UURT9Kdge/uHWwL37fLvSibBUzTGZw+pIqOhYBCNjsmvMrJuiy9YBOp2h/ZwSFbLY1LhRgVA7Wng29HUTgb1L65woWebf2cTaIzfRqd6rOwE6CyoV9ffuR+qI+oIam8X+v8KacrH3rzchcJhKDPl1UYrvOmlgdybZAhxTa5drYKTGLx44uPj8EzkVcWiySyHaFg4i8t36tPiXEbd0Hw/e7sd12MIqlUIrIOI1EHvS/siJ/O9tEUSwU7DP5qc44VOxGl/XfJA0jANd12T42o3TfhKSibfSsQylrCt3km7SMhv3h6WzBHNPlfpk2fX5L63L1v6LJ95a748vedBF8HhktTc1j+5SSorCjmQfPnjSCbfNHX8/lqz8dk7yqR38RrXKhaNsUVv/KMKmrLbuR01+0vlWNb0pKzNXF6x6tIf+sWsG884qLZyX6kGUwTWpvXIN0ubnl7UUn9gO6ooh6QNjrmtTaPqhWcUlge6MIt3vo9pCwdLyzoN6QFlSyxX7Pli2rLqfklukVCcZkQT8xK/2dbWaPDtq7csO1HGo2BUDOH09Xt8v8x6tLo+N975aOD3OTjHEe7k/rRpiAeginY/WJyEQHzM/E1G7Pr4plqNvulPrcvJPUePBM/HZ6rCu1PjFwekU9ZX5m75gtC9cDoyuCC8nruHGx46OanaYL7aPbWEx46dCFufPeuOCwaJO75jxBmUv+nDzi4K08rifdcUVq1sL+9j8H7k4eS/nlrjcLsrHRvLvpGx2Cxu/lBTLdUso7ExFu+/Pp/s8XTZao7AwCXtNM/QI8idRJVPEos+9dWLZ0BAvC5/h1bKJj9NoVaJkfrz7M8N5fnpOiblFFSpkmBwB5GCgfHOjETMz370PItFOAGioYnM6tWI4Wi4mV1E+ddxjHovRaTY+bDCTqM8SyFxkfTrJYfQbP7dgOl9GiwdEmvp8+QdhYvqa38afJnjPvVdfxV/hmSbvVHnelCTkLq0Lm3eatFwRdEJ0FRx1KTxqK7QvVoPpc54MIQgyib0+DiBtmFCQTTrXBYd4UsbUHU1M3D6FBA/KF5i+Yl49Gtrs0lWsMz9P2T/h5GORWbODzSHqE6cl82huQqEadevN65vn0BSoh6o90BWnRBtNZescZaMpjsrjvYlmQkJcb9EOqrQNuoeGwDg+/fWhaM9lE5mzUbJC0uLEBmR44HqiR/lu5JFrQwxq3H7VM+s2tgAFPuhwtaV0plt0dg+EjP60NgHRsTyI5KTxD7u9W2UEJGvSr3T2Xav3Y6a9yLUhlgBaChmR9n1HeMb2VGE49ZslqrLH+PxYk//txRSVnFji+DpUxjUWkXd/3NnyV5drtl1yuaOZYIucdZI1EH7kZOcPKXD4cCHyW3q/IYMfyy3Nnamj2v79AabLCzcKogTvwqiwVltnXkZcdv4zoBqkV3c81EWmjMHHp5hKL7brdN0PYAl3G2kH+Au7ss0fY6dPWx3PBqvmNy5p7YjxjFRgz3tZdK6Z97g1ha7x5mR9ZQzvQteehEO+7vC3LtXr00cqF0qXmiwmCH1ZeenJx/4deQYOAZJAg/xq6CuvS2oL3juc121LAGcIXXAeG9xXXNepbomUXvJwCr4T+ltUa6EaJG3OFLl6/vRqb1DFU3bnBUXSdzCP7QVoXD1D5r/tNg22O9P+/TP63xbfqLNO8Lc84SL26TYN9CXSnZEvyNV9v9jVvr17bpsLxIg6HKHq1s0TYnciKHoFLfN6aoL7js1HFL/dn4wJ1Re8NE1+BLJa4q0U85u3G82Q2/oaW/REa+uH4U3Huwpm2fLa6rNl/Mum6trUJzPeDC8tsTFb+S+QblZnd+srQsY5kJvI6Lu3nmjtGhqMXNwRth+3utR+55oLyyEjFfY3sS89T/Tsc6/4+90ND0db1QMWyench24T9K0qn1RcJYhsLYnzFuoTyZ62lI5aWFq3aLQjMLOC5quufvDoiax/NuHmHERb7SXXd/si3G7O2QdA/Ny63RpZc6OoKm3TBfxKdxOSp79ydRjjQPWZloo757BVmyYIxTeTs6uMdKyHlocFpRs/W/vGJiDISqu/Jbyy8ynWiN2ge5coP73HAd16i5wO9yzUX2OnQim1m8BV4aF+eFVooLVBs+QVPXPaBiEhLP8zxYXI1eqzMG6630Zo2OqLI9j+RWgZAqMTiZt2ApB4df5Xz0cBfW0vs0py4zGUN6nQNnBgW7LA8n81XHByrt5XR2qrd1GmbE8JJxxG+SqgxvLvexy1cUe5vwdo4O9N+oqrxMH24Kp224Dox3s4c3Dy0PDxYG7BprJo3PODfRWbOqJJaLlXIZDsqlrDmxqBBcX8IMjBi+zl5PrWlwUpTRBztbTAH3yMeKMW5UXzgGEBIPC/kMHYX0BReMHwCFo+gyia+IkYMZYYQF6jWhLbtSnntJ64jjARKPCIQR37tIfEhfl3yG7C9lsRFbDUU4DrKiExLKJVzCS7Q9QnhQ52FU9q4cETbcXN3n3zx7bGPDiSEY0+vK/w9SZk1KP2CbY3svecYU5S8TqmDEnnkfgELiqEKiYeVhxQH7QZjN+wf0YqJJDP4ZLt0q39GNw+xmEBogDbRTSS1ekaNPuhwIx/3g5owcjTcixf1NxB+1lgfeOKD4+TudCFYA/umbzWzBWULqJeOkwan3OONMwWNoZORs9B3YshWzdO2xksfR9HZktEAVTKB0d7XzuXHkpZO9fW19FxC/B5RnoBY13MzxF6IUX9tJQV01UdKpOOu05iwEyGoStcy0G6A2u21GIK3ZzX/lk3bA/8XYEajQ1xVycC3lZ8GZph/6AhZnldGz1E/ZO9tL0pVU7EBT3zbt8VI9DVp1iP8Ndq0vzu1ft1Otk88f2DRFfPYOxSXmFCX73tiF5GaNn9EpDaVtVR8Jhecw617e7d01JYHPLL+SIu/cMh08XdNS4wsNbY+5Zex5h174wUF+w+1EKwIq2bL3AHlpriydY6nm0zf5XYzdox5BknXgKIqd8Mg/9bv60qTMcFK+VrEf1UfBwP7sw/iPlYfISY8LZ676EKEP7spi4GTF3l+wK7FAFFyRvosopAEtKhobhu/fXtbNWiAvrvTPvjfH4sR7Gvltb6j0z/4kJhLExyg+OSYfNFHxe1btTdpfsbqubftfbuAlMuWhtzssiLcEKBEofkrU+Hu7nPpwACdGEn+GsNqC6lu5uliJ4nHJguu3QjtltAe1tQNkJ4HO9Tc501Kzd8+b5qoRKHzKnOfIs78C4X7RYNzdVswaoZsB1/uC4fTPnWZzuuCtR9eMbh00h4sgMBgeaTGhy/J9aQ60BIJsNoWVJiC8BxPWnLN/0Y6jnFsznZKIie7YuWdz5+ZN881emT9PYjAfbBY7qV3Y0e/uTI520MIIkkURPvNtWkSq1w4Yhiy4rQ2+SZmFxaWTri22NRgNM7x594PmU3Q6HFkkuEKrrgQqIyL/rR45GyuZkSGT6Nc6/jRWG8vyWh1dXzG2GZ1JnWvtwyHqVFCEfyreUiXDIH1TUVa9ZTlj7Mxgy72FhfZLsGDFjZNkxK0BV1UVxU+fTgZZdhwNjgo9+Wwc7rwxa2q89CRf4tvt3VDh9seXb5zT1nbwRbiBuv4yqq0ZWSJZy4OeYakOJDPbu6uPnrZWsZ1sRyFuft67jecJV8rEJjeZS0qDoAlrd8/PPCPP6f8r5MftmD2jMYrvRn+gSsfPvgR+TybRz99qmTR1NHSIhrRb9T0smEUZ0foN63hj8OXiG9j9qkmyetEk2aQ/kHdQlk4RtpTxkTpgSMPzBq3fC+mBvmHPnLaIi1PPXn4jpA+j9GIZ83EqUPOuMV4d8VTgDK3w8ewi1onGNs6FSmHnTWpDj3nBOG8gdxPmBANvcmeE1O4pdEFAjcJP9p+F4zh5ZobPwef4dOMq6kGHPfJCyqy2Y0hejylwId+6qK2gQZIK6pnIWmbY8nnR76/x/9cF2ATIaksGD0E41iYxV63qZfsnmQJs5nFlICR2efdvpHjq7bK+/8bfPIBu42B2KVwWsi5XBNM2dzwwGs/m0aKDgKvL7na7XZX/7UX1HguLHideKJJtSmPGjfQOT55quEjjquNy+fDGfRO1afLYpvr6JYP5iJIwcx1ul/cIBwQAkvlujpjmu1ccZ3lbKqWFI9gBs4sznXEF9pjfRVpVwpYYEJjJt2x3KSalRBg3Ply0XRuKGnJvCBwpzNn+qe5vSDmFkGCCFHE1kFEBDcBsxXV/TsRhbYr3CgawQBlc8C4IHQ/e9V1IC5WMmzGpDIDIMUSux5L6nhJK9b9Z6lhsV7v8UEAIO+tf9hZKC4zwOuPirlt35EPQCnowhpjh7uxz0Tr7eBtgcOG1L+kAcKOay2kpWRepWavxfOS2zMSYDu2/tXADLHSy77JqUky9q3a10FEnNUmNFqJ416jTLV71w0Nm60yvSmFpkR8uyuPfyaPsdFTHa9m/+fU6ySbzcQfh8PemLITJsfEo0h+GIV4ZGMtkBvKYIR+1oWTmfuM8Jed0QDaDHBP5q1IrSl/CaFadMTxyy2qC/bYftc5Py9sJWiIb/47/o8z4dE5h3LsARD+9PKnPfHCXNJigTXS+j8RVMD9Or1SasK5bE2s7Dd5/ZPj6UtjtAV2Om8T5FqHYNIHa2BVPWVoqL230hEAEIOu5Det0wlkMiIFRY1kRl6vKRF5dBhABsfGfLDZkK6TS1a/+CDVEP3jOqnrWROlm/JfxGi3b31Ncw5a7JlJPMobDGvw101o2cOl0vN5cZ89bH80WZ7XJrqzFgdBgcFHTPXGh2JYrbGNv9ulh1WuUzdNSr5eowBwPGj5DRgB086G8uuh+2jvhe5hjb+EOiAXXU5hqcF9WmKTlPCNZOIYMRGm5lY2jikeacAjr3CYkmXlavDC2vCx34k687fSuvtk2+hxapMVyI13SV1Ovs0/cy3ZTv5083aw+jA4iiR6Np3DFUL1KLxoUjHFRcjNR/7Om047ieyEZEf2i61x2tUp6GkgiELlfUq/ido+Drrx3PND7CTr+pcSg8HZpGwdi4IC+ArbkrUhtqZebcv2pts1NReFRAJ35x65+3uvDX5vEsgsqkKJxj/AShwgI0kSkaHR0Lt2u16IVptzs80LsgFNC8amRaiKNUjayISRKrLymPw3L9gTSFfY/S5CvejtVqEDQaPO5fGOPQjM/MIS6QPJdRO4oX/OXOERUe5HuLiyFYdmvqXZON2Ikj9RkMa0OcHNb5hKwWUWDOCuvIdO0SbhNZ8E19vhIDgnPa9mO+Ta12vR5aumvmj92SWUmjpCU15CotGQbEDtPspoNtHcSHP/9R3W0IwF5dSB/izA+GutfBl59DG99XWtmGZHEzhM0LfPHm7unpf9fNHSOGbyKjEcet2fLDRLOAI69GFUPKgCaeWP9AK7TBS86BP0x0AZf0UywGqRFoMv8tZw/uskTJgmHhUPG7xNQd3ZcvQ+T11dYuBcsQ042je+9FLfahma+/PgkmoYyo+Ct/fRh/1B2xTB0zOC+t/nJ3QQECGFyx9+y5bIrJe/0v4iM/vx11oX37IOp6BIPcFEBdCOoDOXuAmTKbqd4ll06masWOx7vyhJ9k/40vlrbmSs04By1UyymdD8LXbz5qi4e5b04+bogSx2/G+iGJR+8J79eL5u/9BOY5sI0rL1LnrNmag6a+tfn1xZgXjbILHOa4KUHcLAIT8+DVK9BsW30ZXC1b2KjLk+5LxhOR8PSPxLcnFrfr49o4BxYU6H3FfqL375r6eA1TRgvj9PIjXwgL/RWrCuvwf3/2uomXnAe3J6cDQnyg6AGraDHkKyLPLAoZDHBiuiQRDqBX6t+mUpIQbj3NRnt+ER5zd98Fls3goAGCnfymY+jMZTRvLvihRoUJZ5oern9Ep3/UF1BQlgkWbD2woF3bpoouXVYnc0tq1bG13Mr5/8XK/8ztXLmvRRdVb14p16nEDkHj6d9Cw8vK8hqby0pLWsOFA3sZfZycbcdu7b9yGXpDTw9gWp5q5LSqH8fCpxC0l2Iuzk3OMfKCfIkyh4DVb9YsLp2zlbb/AnGuBXIaoVSKwIYF0ty8oyPwPpjN9GPwvrWlgB1HOM4SvKQoNlfmK+H69QD5aD8zs+hZiO2hGO0lAstaMYHfaXFYBwhHn/3uf33f/sJGRupsYHk3+r8QFhPYeOftR8B9TRubNkESbsueZzFDc8m874ivtDlUySPi3FaHRLXymPVH9RWABtC5UA+zWdZw5A0OWfDEtUfbN6d3djsrF5+Td6rSjJv+osqAr1SgJy4Muo+0A2Q2I3ToEA6dUyYfQ+ssa8hu+rK11yU746PhCB7eYTZDTNCNsVEMBel98XccYvWD4vDuORlW3ha4zc/qaqG5cI7y+pKxZipUHJQfmF5i+z4XyRzQ4wGLhOZOPq0BAn4vBM7OPZLL2mOTYsnXyrEXNMhmy5yyqVhhZqhgOCSVmU1ANCbZWPJPBoPscNFDps8hsfuMc4zTxmsrXKL+9fGr5TbECkDiUEf1e/Jt4bDb18Pq5EB+L0BdxB0/ujtCAcEVZ1ZPQnPDbM0dzu6vYOal0D+Ik4DxOMAgIqGgpFHknViQv/S5Uytoo7yOlXGhZ6O0KTL6iMWpf+d5fIpFjtHjkFUnRP+glQVlV7jcQIqo4D7g4ZE2v/yM3lKo2OyXhfdRISmVs+9Oc0NOZ2HpB+33fsAiPk/unnW+++NhON0EH8R3DSzZX+WxyBBZdFeLFQKa26szXUEtc7011VBXzscgu4OeTvgrDWqpIAuSDKP0phs8hTB0WUCDRGRAkYeJKiDmZolUTCRBhYxNQGi5WiThQEQWOKKGxdUsQm+JmINxCWp7VxipwMmCCdedZRYtH2C5V4mGAiZvARO4eNhB6a0vEjN7O8v5lF5iEQas172lRXIeXb+ihKKdBQyoFOLaBVyUctpwqAJkNGdvInxaZJBK6LglzkRSulom0NClxpavaxRsCVGGRAYmSxgF6MgRs3GZP5GWNbR3Dg5Q0qxXWjkyuqFAwM912GSXYjmzt1bNoTgtPOv1oUy6sYZvV+TSDC6DhpN7CxlkWMoEMUbgkDI2FsrHji0oIhJ7ZyUGZvJJ0JAooYpUIPKQqMMdHIdYZEJOoKa3kElBuoBDcIokkE4AdptVsoBT3b5MhAIgNN3L5RUo4dJNMRaFMKx4X49mN6mzqcCJgSrXNVI+k4phEmIekyuY8Wj1YaddRhLD6qmFXDweR8xCTADz6DJRFjpdDAABWL1QP34Yf3UGq+pXCgv7AgAAFqv3PuSu8/+FOYHb0PcAAApAAHgiGanFoDXkcgEPnqi5ZC4CfwFL6IQR8FdWWAtG4C9gNeYEzRSWZT+KfgN+KAQPwNVgABOkR/ZgNDCskdo4sVLSmgmR/S2r0ALL/DVDsANupZEQ+2GOAEZLsW+Bs2g3mF9AHtJHQsvAYvTKWKgJJFE5SEaWoMdAMpPmiGZA1zyxUtCMDYF0QZL2AZgXdbtwTTY9sKOT4Ci6AFb+ovggluBBwsRj3oG6QSmUA03c/x/2C3hAY7YPQTUigTp4H6jLMKj7oUU3pQ/bgu9BCGb9f0B8CcJDYSwXBOnIB71EkbUATHpjlwElHAQZObEVPg+G0WkwTBlc1S6DvBh7EjMqVT9GAHLgfSAj4dZE3s7gHie0g89swFtQCF5GH8EVHC7MXref6gRajAYmUTc2qkXkSqRUI2cpXAxPU73FMPYFsOw/vBr9BXLB6uNgyGIwF5BGRQCAbLB59hPKBh0sJVLNgYELVep2CBgGSR0ahtA9NAwT9twwnL7sYSSuPOnE9DDGNNKaS8pkm3/BZhu1wByD+g2YIFOkm4ZqFiaklytuiRniZTx6jfuQkQ4bUIa9pJsQvcKC0REzoAn0MLPBMlLnZRl26NQyeiAyywJ1EmyMtpihgUjGKeuNO/UJRjKGDYLmM9vFJmKU9H69gsyg/4hUkDFmFOeN58OS0xiOY7ZmZsBaJZmXTIQ6ZcztNNuAfwQHm0cmZfjItNLsjT1Ln2M+vcrkSsRglkzWBsykZL7sxvU1qaHZb7UJ+4fIGZmspgKiB33SoD5dJmEPYyXzyMwesr07skxUxqyG7VF8FOo0jdgzx5lIgwD7yOQB58gyomd/0l4+jziZ21kPM5MpZL0sWlCY6vVGfWoIZIaZoL4eR4dsUFi3fEQmY14igzoisAtPVUPEMsK6U3wIFb0CbX8hIKOFGJE+rhsFkslEIYaEOb3Qz/5G9XzCvgqytKP/r2QxZfHPn7x/gfrOhYKKJgsdAxMLGwcXD5+AkEi2HLnE8khIySgoqagVKFREQ0tHr5iBkYkSMwsrmxJ2pcqUq1CpSrUaDhCCERTDCZKiGZbjBVGSFVXTDdOyHX/Ia1Z6z5thij4Mb21Tcsu0t70fuaOzq7unt9HXH+GSy6657oqrBZPnjgyaTE6T29ViLW3nLt/aGe8i+TOzZmUGm7OW20iNA70TGSKsZe/qyaCWQRQbJDUM9hubaxodHxyePYLFBgYx4twbrtNZDupugKcSLRch3JK6AL9kthu9CMguzLMimiA7sPSFOF9Ly2LeR53tTGSjzu7IlCaSVAKQ1Qc4xhxrvAEY0WJRiYe9UzoeWnIQC0XBawqleKahphTmS9xS7gmm/bt0H87AS/kvJPnGlKzaazhfXfr1XerWM1I8Y7ELAA==) format("woff2");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:KaTeX_SansSerif;src:url(data:font/woff2;base64,d09GMgABAAAAAChoAA4AAAAATGAAACgQAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAggQIWgmcDBEICuJgyx4BNgIkA4NuC4F6AAQgBYkgB4MBDIEyG6o+ZYeMdTuQiBT6EiIqOJNm//9tuSEy0D9Q3apYdiQSbLYVmGRUN42nt6fpYI1BGXWvUHwSJrFYooNGxfXM91KzeKLOTDSfbnuipS04dZWtzGSLSj9S8Ce9rzoQ9LbDMppGSDLbDs9v8//cC1wuKYiEjYWiqIDYU9KgL5GKSlg1dS7TReZ/q6cr96K2vYpFuld7f52Ha9lMdpKlLMEx7xWYXfvg1NWZf7a1pkQfY6977wXRAwoXyZYdq0x0jI5zKYKvEe34Ctn+5Afv73+Acdhm+fvlENPMhNyXbFOxiMm9L9NDU9JV2v8BRDj/L6f/3rGTwty4ONLYYXzAIHCe2+P+kxLt3lZq2XNOV7LkMP+XBwiRNIHCEhcbsn9V1WnDVBpSDvmZrAemNBemgaSUdFpp+KmARWuYNczYpgPdLVjXTg4nRPthJGDFAkjtvNdi7DJtul0tLen0rPRhP2U9Chk58hCpATYzMhy1tDrN7N7XrnTnX0kOCv+2tJ9uV+ekc9LdfUgROYQg7X3UJ50cQkLGRmY2YTaALiOXATGAZtgoBwCQCfRrWQ6KQXfd0ybksopK8/j12k/7dHOtkuYliIsiIizNPvf+yqMAcFZnCQIAP9cwABaQW4Z+kwQGr8eeCjyYc/cveH2wx7IQUOCvxOL4g/HWfa8VWHyPAwD6UkMA4OtTOA54xKxCpB/ew1gBPr1zPMVKVKk13mRb7HHI8Ugqv87Ud3W5rvWKXtPre1Nv6e29q/euhPxIfuwHom9bCTkff6Gz/qbO1cW62suPuLP3rAR8Hj/mv2PuTzeNuOGqU66YNab1v/Df+te96IUuCiz66IN33npTcKSMvAHIq8bb2uooAC+T9osYoMYQIyLIbF6GgQ+lLPPn4DY48v3guZz0V4xVJZESHKFT4MMJ0C8/UFz/ClxYZfcxLpEfH8g8nWqiybeF7BprCR6CWtoRINmP3hHBalk6MogV66gAw74yd3nNNwyIGH1hc40vrV6S8dsKlEbGJg2ki9XIenoYPWvdm5ZiH+35M9s3sdvEj0GalTsSAhb2dIxTT2WEbEowYkCmJ7GSWbXBAH70pPxr7KZxdouOYjdYZc51/jug3eQX5c3Fb75jIlw5Tl95VJRlKg3sWiXFejQTGYh8NMESeVbtxOCxEFW6MI50iSyZUXWsAplTckGwBoI+4TYPG0vLzvJxOnFlwSx5wuWr6pCUGKwoT7QKxhSvjhzoQPI0xKTKPmDSPDWMGWvHM8VRmJohCauoLY8MbKpm6o5fJlkJKfKmbTx1Ile/fqQoWb+T8k6IvUlzDaJWwZ3rgMJgotRjZ44qqHMyAmxjojXVzQsI8UiJrLUktk2qzRDXAUULbC5OSL6icJo7RbOjsV3tycCoT8h+59et1xCz2Is0KSCGIVKS5DGbkRsVBkNHINoas1hd5Y6xTCre1dryF8XiNdi8ANDmhtjYmOr3rTFRdvtgjVhdt44OCuvZ5XdNytFFcAB0+J7bv1rmlW4KrKrrKuKxLWCQveCE5FtuVPQYkb+MWZPIXn18+BYKdVq9R6srq4IEU3bCh693hrFBCsYPUSCc38P+XECsPL3Q5ljMfXHuwXUjLgioeB+K6Zwk93mmVabcppW/hM6aYRHmT4HHrNLhzDPjF1qxVHvst98C4KK1RBJKfzGlh5ctwloB734L9M2jo22elpEVj3icLp0RTy6K9157ElZNrEo4FHyP1bvqGKMAOxwTpkhSykiOKiRPiRQoJ0UqSImqpEw1UqH6eQMI9q4U5cO3IKiIry2F+XmHGV1jz8dxR13bns87rIo1zoaOU4jV4R0ui3SDGvChDgoNUGiCQgsU2qDQAYUuKPRAoQ+aGQO1t5KJPTItaOSsNvZkzFoYrnqGWzjCA9N0nAKYwZFpSRvSqbefKYzmZC64Txd7YDfYOuK0WXia78ID1VCdN81ssDMLwFOlz13E2nIhu/ISxFCjTVoaOP/wWtC+lI2ykOb1vEOWgBoz1U2CmpjPLqO6Wi+LtZKPMRP9oxVWUZjEjgozQlJLyb7Ls337WAlh1/S4nTA/rqQ0f2ndcQ0EznfiDfJvII9ZpJxLmpzs5bEBdV6BE1hvQCVKpyhCQHYSb/1JxZ3LsE96Qc0+5Qsr6nvZaQaRG2BTppEWyFgVsacLjkgliHEQcqaB/CcjGRSxl2sVHksCZZMs07Rhgs3glMyXgISVRmyELLmIPHKK3FNqNUeclGtAnSuz0oteTc4F6riBA4fQyPPSlHqj3nUzSoMVngJWiA6ctEUPNCSIMiuOYA8VarGm7k5ApXrKNIRn872btwQt2GagK44S5u+Ttl8Q+dAjixusluU2ZF9zB6JBBFnae8LQm7kG1FqVLM1NOsffPf3c9AvfK9Zu8A3eB9eisqYH4Hrk6h3DaxXzSj4bBStmanIYBU5oahl1M1Hegs3Gp7CMT0UlG6KTRyiGjnszx/35CzELYNQH+7Br1rJhbKg0WlWRHJ8HRYEIP8nYvdHKFjUpaj6cauyYj4zQusMXpW5LzZNylj1HAehkcBlTF+DqQi53B5xdQYVpblRIRa7gzQYvd9s1RlICdQKDIjFlAItG2GzQqINL4soAHo3dxz4BSQ4CCUnYAyCSImIIBU1oNKXRjCZyeaDQAteklAEqGlGzQacNLkkrA3Ro1K5KIEs9uNQHWRrApSFcGsGlMVyawGdNUWjDeuosZZD3njkIYmHwwArE8LIKAF5brUFQ12wvCGIzmRiBsPUwsPMw2n4FIjkAgPccQfCcQCTnycSKgouHhauHhZuHhbuSSR5ekKcX/AVdOXh7OPh4OPh6OPgpS/L3ggydeTHzjl9zVtuEYnWknu3QQayxqn5CrUtlq18N1C4uDkCgwYccr/JE/KUhB5vTHwAI3wHLYzAA3C6YCm/PPA4BDjQvTADmOFu00nC0tpYeGJftYylfioC6pL2FFg1QFeUUdby4E8S9tPcgkiTlKzrVdALfCw48V0q5q0oi14/CzrYtp8M0bJrWKKZBxi95k9YDzy04ft/3bLMnKY61dlAKPaddL9hbRjM3rZVTTQtp6OTdLLqWq+4aF1N6CZIcDYq+E9ux4y5U8n6vPHSLRKHqUhyGZNvR0bRomqphFZEnal1LkdX0tX1rWtL6fkSl6xzzMc/AKDXtFYIAawlkNIKQJggzGq0a5jbF8+FTNkdBVrmHIqtYS8xKOgeWr2kWYtZiDqXxXHm5LhQhx2gGlvx9zLjElqZpX3K6luBY1F1VRQ33M26QRZw81aqFIKDYONqQBc1S3x2iEARVJMEgoe4pE1N5qytEfRZWdumEvQAPdTUDwMcfExbSAp/mmTs0YywQ+/x93aWZeA6sSyj4eFU3sQuHOhQ+lzn/qUmae/9uhxv+lnxTwnV9T5352ROq+uyU6txgPrX2WtjapbK87dsLQ7BAfibuRau+pAfiPpemxz1SpnBbDn1s2E0U24X1Y3uBZppzMLhW4febpou8ZGhkJibYBFgPa7IoTOSzwW/NJryW/Y2u0MajM4aKDcFvtHrK0/Y0CkU3vGXEpKKZXiFYzDlyZLTmpdHJxDTVSHQOvuSmVFNzDOroevz4WO0r1ZU2jxGepBKJZcksiDja5aIFlk6bJAbp7E88zGZjCCXb/9OL2Fanax9AN0LsVybNbms+T669tDUbXs2615KwbiEtz3PMQyggSGzqsCsHGPmBHVI/rGGtrVyaKE4mTmfHDe0NM/O9reb984tti+ZsgElCuGkTJTZ6ddfrrj8m3KOZLRPNjVPEvc/fm8JDFMHaTrD2TOy4qQR6+NVINdSyn3CMIFCgpICYsj3qiG/qMGahKcC0DddVrr7S7IBFaTQGFCzkt5tj13vB8o9cCa5TxJvnXJkNfiKO5un4Fs34msUcLjhfNFjk6l7t9Tu+M07dcwxS1zGZecXYFd91n92Y5NfXzztS+hhJDJifHACgRJZJ0/O4lrJlzS8X9zWGL4OSbfUhgffL456qvgoDsUj4RP0A9KkFfNcsCmKn76PYOtkgGzcOl4i2trdVPSJZ5XVzwj5Q1Wuh0UVs2TZdyCp3LKU3rPj4AKvZS8MUQUgmhRS1bfHViE1/p8CFE3vji+tX3LQdqvb215gSf+ETznCAtOGGuE4T+x31xLcJwme1j66Xbi0xmgh0K+77BxxrqWFoS8xSNVnSNRip9vkrWIGeRXmcI5uo9y845J16AxK9d1HUvScULmDaQ2xfVixKjQJm+ayjLwzDUhUGNCfHmCUwH4OaQJ9FUBcbN9L5TJpn/AMjV7S0a1BAWSfXdxPbGGu/9YyuH6/CdVnmEXvX1MVbIZX5mg/2BvpNFHI7T3T2WlteBDQxnWIchT4KEqJKUDJCDc2BQkrzUPDnsi1AP9CxW5gfA2qABQWAJqQKIx3CJJRgpKdo2BSWySXmHbV85qrS/cjQfRTzMRKLYh6NFkR6ZN6Rh3/VQG8uV1vUXVRkKw8xU6wF9B+gNuPX18+2J6hhqP4OgLK72EwqKdnO2cRyhSJT3fPdnItKXrAG/HehtoYaK5VqJiI419KpL+t/MGmrXXFfp+alJVYTBHsDsJakHca41xoSqqT8nh0aY7XEkGalYo5Q3giNmJpEsLdjkGy894tsw1LoI4NFUqiU+U5LqKhN1DuGHZJpmUXudXMMMSon+81VYHTjQ+Lp1pd9/k5ZojNo0Q9kVNswpBGAukJbDfebH/VRjIBKi4RT7tihZ7WvQkKRNLRUg642/WIHnUrv0ezBpzUlYv/tHhpumnwVqJFH87VoqD1QBnfeRSGruvtNgmCBH3dgwD9yY1DQu0qVNduIa5f1LNplMmWiAOfPjFHV/evNy2eDILEMeyQjrGt0hU/p7n7Ox9a3IZmkh4wVQ2V+UqMXVvBJ0zTmwjkV9UBRTGSO5vv4dZ0ahu1rWvrwzU5Z3Obd+6XJ0cnNPPCbtQiNXhCNnUpBcgkSzyV2nPHUKkEvn94vItAvjODOL1CCX0ybAp55lmUoDVudPXvoNeIBiUFKYsrToCILQAl702Vg35M8Lk1kh9p3j2ZO9Jk1FXb1kXbrLfa6yCOEPjlwZSLlRn5zsooH/A0jPVBHrqoCzUdon7zZKph3bHJpZgcDRZ5uHb5Zt/HWq87RDDaOYqHJE52JBHOcyCCqMIZgQ/7gH6Aowor0gi2PR2BWd8euUYi/ic90gGjj9dp4R4FAx9Ji70MdJFgJ3zFNHuzmhb5H1s2hT9bk4CdiI6glVKh3mJMDQKARGqUDkzsfloc9c8pu4+oc6ZTVneKyOCUlmXHkzlSrymyglN3mMgesGj2oCVoKgw2QEVaOZts8aT86HA+sh1hy3IqrU5taTLeRmazSGaQWqaLeqYNBQnWIZuonyh0wFQ7zmW9FMUJIfqf8gXjPB+q2a7bkdlaZRNGGtUckTfQ1JRsoCjW6Hk2pqnOHxfz1/0C8beFiiy8cUYTF1OJw2Wa+qVH8u2VI0sUm7OKFPko7dtwB6+Rka1f8xABPdLRGd+qlIUclsAZm8k15ulMh9nNomdpnYYcPRapvWNzC9vOUn+bRJ365o9XJJSV0q7g4pMYxbZ49eLXm5drOQTw1RkxFj121s9bd9Kz2VatiycMedoz3rX5BTfWWUQhiP4G2LIBA6a3J4vX2ux+9cxTFeq+fEIxQMk97KrcqXVxRbRSQXbtc0b9q2gKSKVSWdfDxMlwbBYLPZPT1aNPaAapG6aO3NL+Y0U2GaaCuz7eZeNDRmvXJh7N2YJid2aNR2akxVG3EkkBXiEwVoQDNX2L+lgmY6Y6psURIzigK7hV5wSAxq9XPddilAs0cltjWm7M+XoZiIMDMW7WujRcD9QnUzJnufo+9TQzEH+3cG+q7QpfYuk0zYAndRAHMmYlrGzKEe/MYxYg2ieJ2kReNetNKSVkX8DamXS4Q9z5U5k28Co6mUSNMkxj8xERmTdyJa3QT9+6nVdQ77yrKBmp03Zv6m1gsIzhNhhux1jlyWo3etIKLnG5g2uuXZV3ouj7DU2AATeSlUqP/gf9EvJ+4rsoGknEd7XUrqamEODkk40hizNTflb7gYj9waWbLmyGko81SEozwuyQGYiyLHlLd/henTnqSkbB7fsziv+SSmP/VPJpfkIfeKr+gGmNCBaVh8mODrvlxE+FiVyA7Xmg9AHQSZRkZNlE8DVJlxCRmdW9SmxdUAO0I54QRLrCJ4NU5im41o6BcjHD+w7C7pbSoSblUjVyvGzdr23WvI4qR23X3q/pNu81DMYoI3U/Lkc/LlzQGlOj3CEN1qDbjUkpQKKMlvXqQGAw2pkc6nE+He1yBH++BLIrrvC2INPuLZFl/lAZmXf5xq7Mk0IE7/ypyu7TLiPzKhMSAkK9DulsWYfkAsx6LfosU31wkEzAvnh/JOsVVOtauu7QOLt6q/fJsLfEUD0DfSRPpROBtonzb7f34SfE26d27AA47elErmu+jnR8/HrLmJhVQiScQvFkEoJrau2fvJiNniWjqWlYFqxJye27xVlh9te6GW//2gB7rSgr1Fk9xnuKXAWtYlbWdp4U9PeUe//u/vT3g90M7F05mm6WnS3lRfADNe6txd2ooEm02jrvx7d+rYJoBWpV6lnBFTfeMNpg8XeyXP7+7SRrJLphuXv2pjjLtxdYOA7ZLvLH0qxWn5fxQ9+IZUGdn8AdeStJL8hf3CrBeR8PEMlFlurNb6S/WjzJ24zhXrqs0Jzi47rV7VIIU1Z7ZpgIq6RTKjf4NVqkRdBiF2dDxV+GzCs19tsrClp+fMdM0pbivJXWjeD/Lw04hWXLOo3PqM4GVo9XR5VG4Pep84g9JWtW19MkYW1HZbmjNk5uC6nBumGGcnzat2JCvxid+UmZP6Mex8QDSR0AQzIazd3W07/tBXHkYtjqzUj+LSY+blSxCC69M5+WPx9MOYfZsDxScwbgiSRQcnx4hV8WRPVYsiWjlvTv3AMO69Ttnf5utMwDkauXB3LlzPPirVSCljaw1TGR5lYIwKTPACBsdy+w4aIDEXM1i7JPpi9t+1Mv2MbLvNyU6HcfqYzKSKpD8u1HnM1aBlRtItI709Fu8Wz+33h7Vnp6BeOtjkU9oydrrfwcEkFV/aWldpxAC++gprYeMnkTJ7C9PI71tc7XFP7aVv/zDgPWbGvLdOc5tigTqoktCC1Nxeu3CeSXC5S/YEURhzMwxC9fWob7gRMLKeq5vgtapnfT0SeDL00s+0yI1Z0aVW4uyvwuTL5lmEE0YQ6ObxD755LBYqrJSM3d5baUme996sMG52KxRDyt3bCUjeQuf+8WFOcUVRbkS9d6RbIEAGoG6ubQDwrTX6VLtrwfMNTATd06rIcI/43HygAJn5RSpiI9mSCvEZD1Cd07ud3eazfNCCH0h1LazylC1uWYzbBj7U//PnC29eALqWPA4b3JEEmRHr+cWyI2QYoqK66fzePFpFThIKJzqML+v8kIr8yW5NxSZLGeAq7V0HTOK6ssqHHgg2bxYZjOJEdGOPFVKMgT9lVPqDFDtMC4GQHZgqUQxOuOX3SkSXVMoT0PSJEvkkeclm0JTGo67EqhcSgy8BR+2dI7MVuAdyanqplEO753G0lU87kaFhc7N5g3bzvDxzZmUIBdXOTn1/qYjZQeYOwGS90Tb2WSTN5anjeNSc8O19qQgFK6oXBjJ9k7osVkn9HjZkQsVleEMJT+i0LCkJLRSIhsry1kjkxzfel+ak1dZ1GzlTGN1zFKQF057nF/yv6WR8upDJxobFSpbuWsmDDH4eFH4kX2jLD/g8mPwa+7amYdfl/cQFazYQm7Z+arTwtmxkgJVAK1Dy/LnPeN1naenmmT8AFmNejyBQMC/qju12mO9qZNuUSkXSkDp0xNhTyeCUKIAT7016TxqlUNRWoAPDI9K21KGYqayyilOHbmWkBBnSiWu4dVVyplrGC+nCM7RbbSUl15yBnn+Z78ul3P5wfVToXoGppnyosAM7yuQUcqcgX11EWxMQ/NN/ujLlrcDYwtaldC9YDzrDx2rYRLVTYrvnrShmryFp4Alf2PXNVu12WnvluLZJXNC4h9/Ox/FjdUmPw8sRmPefAxksknuiW4mnJenHOJBuOKdevn7LcKxnLJoz3SEMNP+WL9ewIH/Rr1D85aCYGeERDtbwNudVN6RSGhpFUTb1YwkSOcuGbAzpoGWtjoj0I1orWCXnvHnxxFSZfyPgmIGT5xR8dbpBaFX6pzuSKKQySRnFe2viJIx6hxokbHY2G2nC0xl/BnSAg372lk4PA0dvG/f5x/Q1I3f1N5qNneRcWKi2cTbi0PcQytXgM87wgd20/tY3Mh4+jS7o0zto3++Eoxr22oxpZmsdXZ30acpKm91+ewHFtR59Ax28CC4oDao7w4NAifiPHoc27Mb/J1qSJUhc9RiZdj8MYbfCDtqMkKZdxviBk5N6i2tEVca05T8Mq+Kh+DDfECq1pYEwupcpL71XcHqpZXcS4hzqCm1IrVpzqor1IjLvK1DSNzU3HpuNELQ+Ix6rZHPS8nLy4UapusdTDXiHgodBAfNNd3T5z5UaiCo/17oj47mzT0HN5lt824WfXc0NoN1Dy1I9dBcI3yA1rNm7XGUaVixqId2ADbOG/JJgIj2S3Jzglv/dVRFuSu6cseJ/VGQWIK4h5bDo3PbVkhL5wd8x/9NqGTKsf6JhUHkz+1KgSZSoiB1mjoLa8YlFIT1LdvXznjEinhUSy8vT5wvcXfmXQgvt/SsjGzwrcWYv5LIYgepYXNLd81uG7Obw+7GGP7dqHto0SLwuYPa0acPL6cp26t16FKvK3xHW50FmCPMFlDXymR5CJzsKTEoNxGIywpM88bxM9RHSYKuKlcVC5qmytdOeocCS/3/6hk82D0NannzNrtjRFZintLZtNtBwWgSe95qmbmvM7gRC1vK5ihgMYS6h+YvAlObejyj7OJia42CO7j9qNQu9W0SywDkWutcsyL3cOvnVmC9b60Cs2wspootYIdr0cPM2n014V/FUpnPqqhpcuul46L7rakq7yj+Orai12h2GQSFEKMOJErNZdG5MlXmLnY4Hf8p8uLHD7Wo6ks8UyaHYma4KGZxCEmqxeqwyZOAv8k/CSDOz582PQOf6OacDapia+UxMQ389Mz3NLkIbBTD0DWbf+bnEvMEy/V741GEdhTOy5t45DeaDoYI3yeNnt8RrcvOhpnvN1cI24QVC+u+fR9D0hweWxcTdNS6c/EAIU3i9Qer2UZ/TOOYzaiJHIVaxu6y3yjKgN0QHHQHPDl8tnbKZ0Q99b3cvyU65A94gm6ErqhSeJVViqpxW86XWF9B443tzrHQhn3PuqHE7i052lIXBM0dmjs4rn5pw1Io15Sp9i9FcB8fKhFXbnlsJORB0I7Wth0ixcJm8O8ukKHE5v3ArucM/HhP20FCNE3Gf3MGeUM8WETucoO4hZZXuZePrC6KWA3SEd+r/w4YHJjDgLC3Gg6cf25FlgaVFr3SIjcnAj4+XiDX/uP46iuBAkpERhueGBDvXkVCRSLm1RvmoOvWeFN3XXJwugckFTkM3FltRUIfnhUZg1fsj9W/TAgxGBAzFZ+VGM1ITK7da4iNoNwsLjiC7lxhklRFFg4W9BsLjtyUaxe6IssGGFLAEPiGvEvgg5Hj+ExMl2+aKrW8OkzP0cxBQwMlCmth6+pdMM0AJSSwJVlR065KLaNyhcbayhitMuVCBB7HYjJmJJTxDdGYlupvpZgIUdFEigWpWR3nHfKJVl03sadpwpNN59YU9xEPxJhUaQTDtVhqBCl5xTtW/vQAB2OFd7dsd6Or47VCa3SdlhpqoxriI1jxFGOwsxKto9nensM1srLwUQfiMT1VTLUrRFZCGQHRgKuPM3FT4fHfbieghM+EJ63bKbFoxpiBCC1LJm/RNvZ4e9RatVhGaMEcaxSIJaXaJHV75mZp/bUVhUvLAPSXgqNGGhpwfEEG/jMcXw3dzdWGatSiBhXTzUy+WAFsoMdKu4slczmPJ5aasAklT7iMZHX42/9XbxUKVjhXCIRkjdSZGBfxAX7OrMzvxtVxqBG7TVHkbQOn7J2sUB7YtcO3EWzEX9In5dz3IjOn+Ya8iEre9HbWyYe9w6jr/lOzZ2W4FwUjkOXMX5lpD2PQMGUElJB0MVkKoYYh12CgwWhrt9gwlztpx+OkCcHSqn+YpvAFp37aPx/RDXmHkOxvJMuSGw+6K2vtxeULV9F9ZPOcBjUyVVpJZwQY2X/+IucLhifNro3uVlED1TRlS7xn9ICbRI3HLDTa+QqVrVSi6sdCJ46kcZ+64tGdyyukQfZ0uXy22WmfpqJjrMp5fdB/vsneCFjypJCpuC23jSotq8rLsc1B+Vd81TM0KCUWW7d8daF3nu/OystGOJog10wr2fD3nNTICaoMQ7ay0iMrVLrQfTOVShvRSu6xqVfwQH+/9wuHFjn9nbUyDmps0CerpeeqqLE/riC9bG1L6uNqnBUmQ2UCF0c3r9SkVcj/SUNjN517WVRIKD4bU6jWfKNAkUJ/eDn8bkUxlT7UTFTnDow1arEp9imztbPHgDFRE5qUtG1IJeWQ7xA4aL+TaN6jJ05Y6xv2pgbVog4+z1pDRI5sOw7grGyYyaqFFoEqUpwe9sLbTyC0U1VCG5PoIJHwGv37q464ikdNkThA7aFXFH4Z6Y4NJo9TXeXnCB3R+EoSIkieJ1w8lJ49orqKnPz74/P1xbpi3daXhToJSJm/57mjvvKPz6H19QrXr+JxA2f4pa7QyZvIGVB1tfoKgLLFn7V+4GYSiehsQHoyMyHJNOm0Jkp+lKoIE0QuwWAMgxAjdPROEs16605VHIYIu3UNkvZF9bMKPx0PJhjH5PSsnbqzByDW75Lyy0VRRbwkMTFSRDVQkvLKM6J1l3GkoWwGRwKfAKh1zLrtKalH9nOpNM6GL1LSlq/n0KjbqcJRYmFaG/pRc5JFIIB1ReRAPLYkHdbpMhDdsHcYSay5L+BpFGwiMbxXFT/Y2UVN869Ypjv+EXDF+kq+LKJJNTfPVeKDJRYfE4qoHtFgAsX48RTEfpTpK/XPKYeuEMDTHKmOQH4y2RsEJANBJrM1zMrItxQaUgUEA0mAOONt1ZERTVbDKkTkw4Townds1Z3sLEigXs3xXuwNdR3dgK1bC0LIt1WbPG3fXz03ewB0FwLdZWwzLvLWVzt3jYCbuGsbHGi+a/WRn6ZQupjaESy1YS0lwBaz6N1K26+YJt9FPRwbd7iXufEQfQKptfwRL3vPn9oFNd1d692M7siM2vJY2+Jgi9hY6M1RBBoD5AVVXZ7GTk+XB87HCvGc8vkfoVgUnhflF65tVnIzRTCS5XKPcr+JdQ27QKG73E12HuUebWqsaETyPTdKE+Ge+b0LzEHs/j0wgMOXLqwf75lq6T10GVxxIL3S2Ilx3NRTpKnSu982ffumijnXieN/2JmM+sjmKqea8YuamqT10HQgPmFwEkJQ1jjNZB+S19JAXzO1rnrx1DrGTSgvN9CKSzk7NjWrTufVFoz/KBbXGsjLfbgdDh92JTAcXBGX4ahKejrYo5xOEJefTNUm0w1cjmJ8P9l28k3gTRe97v0eYFow8i4Ct4UiM+AgDD6TGUmk/pDS1RZo+8UR1jyBUhuD9EZ9dgvGIJxBlssf2j0IgkBpmFNguo5oeDGGDfVNy6tq1GUeGjIqwZ1hzDCt+ZXAoMCfsS3Ot3ScIsn9ZHdWw/4TGVhnwGNvcxPLCPSME/uzGnY/SXLjFPS3Tgv7M/gzwq9rMkyqfrJCFyFA7o7M7EFu5XvyZ/JtvZJfOTsKCwSQX/zh/7WGxNtmXvh5XW8CcHb+0LMg8Or+l0Yl42FpxiCTRoDIsGBtAdrZYwW5WZnReJw0Q0E1lhfLMpK4DAQQqhP4XabyuKdh6jcPxtPoLQ902RNBxjJo2V2P+bcUEGeZqoLlsoystqkDnBk10vRWvtVxFQIFWvxfznrNiCk01axlmg8hkJ76sC+yNOZrNQPhO9zQoH8lYQX/s2GlhNCiaa5/HGCxct1Dvfiqp5q2vzJ/BzVHjZ5R4NtdjgmlQMEyM7KIVJRCqSHr5ATntR5lJadRM2BxbGdaxcRCh2KinqoUX7vpYCQAlCa4Pz/ZX9a3/R2ruAPZqq6a+QVD0/8WQ4thpXoCfdVUGlEzClKQPeoRICXnQfWv5JRkI8u5TK4vF0l2GiOyMzaPClRoDJUvhHqHQsXrhPZzJilEH+ZbAi/5f27aKYUUlvH/+pj0edqRVCRnrCcaj3ql1NBK2lFWjAxtmWfb1DWVGElD4ONx/aOr+69O/Yk6rRLuPwCAiZsbf5AD+hrSt+o+AFAwAGY5E3Repb9DLuBV8as1wWuRLrtDJ+R1WWhPR57itxIUMBWVrefSw+HJLLrE86W+8iYHrmNGQGHuBYTyVAO2+vQPiJk3IQ0ZIn2NxQLF7Rfl13oFCWL25a0poLh+5S4HcFZh4uvz2FecWu7SxTJqSLbHcXUrqJbYYY7I1ysEZpcTEdVeyXWI65pObwY6fhwZX0GQnwQ1Izh5ylweQH8IigD0GZbIkGDFRCpabX9eXusBdSgfvu7/DIel6yhamsJS9fCw0xiZciXRDMLp9h/Qaz86C3CO5igGqg1bxrxRZ1kybEAUilXU4KYEZXAGbAltOOrX30ir9TrHlSAds2gFsRLpuPiB55fz5hMh0gvDI4SzP098hO/6URO1IEwIA4BnYT/+DJWAMoBkNBxoiASwLXgeA4mzbQyM7rMxOCY/jsHLSswYAlV08yK0MbTqgBY8VTpZv6bWqcs4ozVr1KQXX5ogIbeUEhMrlJlwic3n06jXA+MdGbdFZqGeB2cuKlTtavOykIUOkZBBAdf3Vb9AUMb8QpRrN47+APs0t1o2Ju9htX4da2Dd7I36tPEXsXKdPbWX8NGSWi9HzVJ6c4rwxSwgM5mTQNVJRVykzphEVuLFG++NvKHP+zjWqSnWdyChjgHwgrQlcwjdsKRECYpIjNL/lsvSzm9iTVqYj82DOH1JSgkd1pq0+lbAfP5dsVQuokS/ZpVUPqpqD5Z8zHx+CN+p4/OZ+LXPniMx/BJkdqzn7ynMbRs0iH6XoRCFydsYUUMRQYm874AQjEalcJWz0TJwwqwLViR0fkNhELUjILQspdqWmePzGwNqc0j1C2ibl4+L6peWULKcWZkoQnYRI95lefYn0SOoP8t5r+VZgGJCSN/1s5mVM8CjsNcz/DAjqUkT/ylB6L8TfOeCIiGjoKKhC8PAFI4lAhsHF0+kKNFixIrDlyhJshQCqdIIpcsgkilLNjEJqRwyufLkK1CoSLFRSpRSUFLRKFOuQiUtHT0DIxMzjIWVjZ2Dk4ubh1eVaj7+wGCRGa67EBy46GbwEAFCwBVXXXPJjRAhFCJBZIgCUSEaRIfCIEaYjjhqyDEfGxzt62gWi5UZGSjNye+lXvXu5u8RKvzt7f5UqZxCGcHeVN/rRwxl+UDID7ubYayZYGtubJZydPU0t3V24LCm5sT2YO4DKleB/gM4e+k+DEGLrg5Bf2Hj9nQYEA+PpgEs/dh8MFoLw8PkZHiKYFcp0uEpIsADMAp1QxkOFBQVP8IBmpdknHvhPqSY605IiKbFj6Ngi5npq+jD20mTk+hU0JDm7KD9Jr7ufTBWYw7B9PQP+TBrtPCFSc7XhBACNMcA) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Script;src:url(data:font/woff2;base64,d09GMgABAAAAACWsAA4AAAAAQSQAACVZAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAARAgwCZwMEQgK1QDDVQE2AiQDfAtAAAQgBYkIB2gMgScbSTdFR2iPA8nAVVD8f0jgZAyeDdR6ACNKVO1drxHs6KTonuZm+4c2Arsg/MxxHMePqq7FcR7xoFNewc3CMoY12D9/0T+gwFCKd/0ISWaHaM7aWYvYbhKS4DGChSgkQQIRJ5CQECRQILi2TsWgInZWhfbu/2onVru7r3x7Zj3VnpeH5+/V8+7NGqCbIjJ1FQNSLlhpU0nXAIpYRcrf/7SZ60BRASnwlB/27AboYEMyHYJ+UDrvuahd1Oqqp3WOuiL3prOXrtJ17PHGbAfsxN5PSocNvNTGEP1S+rZ+havBW2+tNmUV08xmE1K0ZHk/eJqK0VbktPeAemhK4J//U080XzPAAqDVPL1X261j6QJZYGn+ExceTs0vTagc/aBdA9AF6AKwBEyLWvSky+pOYuWlZqwfy/25fJ8rYCVYXp4GCB94uy3C/TW1l763llNav4pSeQUkAIeQ9dPJo93VFctXpFWa5Js/tuyZk+XffHcpV1ILLLgWVO/8i3+tKL0AnOGZUBIAw2gm7E/QBzwA8cDg2FhadkypxCCO3v6uncs05ToUuWq93pgQzDnAAANYeXV3JyA448omGAh+jEsgaN3jlcEfbYGh4YqTEPQ9wb75lu1H8NLZClmIHULElUmi8UEpGBXQxgaEJYTPoJQnF3oi+FyB0/EojaBeCmatRh16aMysqYefeNFijvnuUHVeoQTyprhX/QDHgQr2/UemhkkJQhE/UGD1HGJfrxK//eGZu8+M5zBBijwRjnihxl62jOXIWEuolpBd+i0ExB5cSQCK28R2gyFWbFsEaGbIxo3C9cgjAnjxDG/0XE4bZz33piDTl+3pxYbo1bSFx8YYHCU/9+yz+pa92Tm5h61OXMvTdaCVEAr6Y20FOrYsoHVIMo4+8EEQWPOSBg343FZoV360GbrIwXhAvHo7Ugnd+elDvUk1xuBVRVicS9O4ZnpW5E0YG2Z4a4pDTCM17PBcAhOkqfgCdBFkKWaQ9DEzgMELqh3rIRxkckwo5AmVnoQVbeNZSjrlNJ4TMmbbxDkmzapNVIJUtQP0w6CA4rQkBgxANGIDUrjlSXFHqjtjbWeplcSdzgNknCkjhzlktGOMoO8eQZtCYkPbsu9EEv/PdDJrJoNo2fZhy8Qd9aJWQcutD9KAYym0qpIUkMZuC8HeBmqS5k5AaL1EJDyaEHx5pAwnTQN0TrI5PkeleRJQ0JamM4uhv1sbHS1tSewD99LGDzBmxpPDFOWDFHV1RCNgkGQdGpe7UKJfJijep8VtHpHAnP5CD4T1lgLlowjNuQc2mZWYsRYEqS3trRGrL21JDjI8VtkKhyUJTDas5nDlPbln7E5JTGFIEUEDskjCNe1wjkpLknUkGZCayCbbQNpysbrnM/rd18dk/ch0t3ny+LZf3b0UjJ0yvO58ZIjb27e5fBJB50imGhbD4TLnisRKBFsCIrHK7MQ00XBpCouHxNBKd37CMUwA55h5Tyo5HJGwOW0Wn83HkxvMEHRN+gQkVNwC1dtHFocig+ueJ9cdBmS7I8sJmkM4E+10hCyuFc45GIC/PwRd5s8kp7v7j7SkABmK65YUIoMRiBgM8QyBBIZCIsMgieGQzCiQwqiQymg3ZUOCsCjxtrrnBRXBe87wfE/lnEMFxu+Vcw5VGH9vmBgFh2ntOEF3cqHNDCtRgmKUoqEMDeVomIaGCjRMR8MMNMxEwyy0kgqo4xbUqUBRQ08R2fMspaJUIXdIA8TO6e0ZltQCGCGkkcQ5Ke/zZ5MGAtD1naPMnqq4a0XtMGO6OfCv1VZH76T5M5ZygQ/635iHYnM/VbImSI3mfhpBgn/QMKn/ReZyrm5a/IYYgBojKzxCdvoFlTSiulWXNL0QEnDctXI+MiyCJ6iSJiTLmfJymhr5FUf4I0O9K7trTaqb11/6+gIQElC4F9C4mbPbZ6bYyGD3OKkcqJPJXE3hMCqhS4i749FgE7GsbLn2M9SumuFxubqnjm6rdCLJ+DwZBrpPJq0MlNfXmhZAGRohxtjMNvoQRpCB7mbl9KNgJFFkGOfMpOkctq0inbIeN2AvZSNEl8EnPhaRzTpXEy2qsBAIt+j0DhJt3QeKABHQRrCy8aSeazjUXCSdyR5aWppCOVDMYJrUBzeXL1bpK9RiDV0saAcxj/jEQ7rX8gqmz5dzYt4KmfTIv2eJPgP0mgx9zqyG5z3tWSAwQclZeyH9ltlRj1qrrNGNLnJV63V3zNb92wTMm+8F28GCXDbpAAsziRdC2hNMphc4FLKiZgycRUiAUqfAX4tkunMAxemyghqVzElJu5DpE+FevKsj+3cxwjJZRmT2zFrmjEXNiFVtwX0TVNCFRngkvoxYOZBNMxyBXicu+d0WynP7mnqYYXhtfOVSZAi8FWgMoR/Mf0DZmiDBQFBhmGQdZG454rrAspe6AFoIGiYMMgAVRwDBEFMZZsQRq6QNRI4AglVM66sxg6CiF7EmA6D2SCAYzaisY2YdVs+UzWGANTCVjZJxwJqwshg6WTNWCW1hRA9rRQ9rQw9rR4/q0A4dmU50ZLrQkelGR6YHHZledGT60JHpR8fEADJU+1ENThXyoiUbQ2iVw643t2izR+oOYDyMowY4kmNZAONjkFk0ThhmnGuY1byN+cD51gMWZAEszAKxaD+0GBcbxbjEKMZJoxiXWhtYlgWwPAvECntoCa40SnCVUYKrjRJcY21gbRbAVBaUppVnGevbxAye+ILC5eZrZBJjtdaWPUNtm0Hkx7k1e5EcCAAViGM4ItVhxVZhArHPIPIJGg5jOuseBJtAIeDLADxBAq1JRO8Jvg5eICC0VnMuS8TbxSNGiVY+Yw3T0kZdwTlFhAXtPP4Z2giHvTwqjmxgDcTt5HLxBu68ya6ps+vOkiQDY6BVDMQ8FmqlCmPbNpzzKJbORMhKIiJKpVVmYcERJ3lE7QhxSbNRFIEAUddiREH7dLQEJGiwPG7XS6XHmKsC+4MsjxMJ628pUvzt5lwC4GfLgKmvpAwiepeVLKme+1QIvoiOSk3ZZjzWvkh48LvJs0LZV6SlCNeklgEhog3GIRLXGCAiwW0eE+RKMwAREJUZqWKedEkcCtKFUOdI94MgfcyT99JjO6+KIWKeSfFAbSlWrOSu9mNBK+lppx1gpFP+XV8i4hEpC/CjEDrpB90m/QO3xtNQuiRiV65WW0EZClEExSOY8uUf8VEQiXh3Tio+xHFFipJ+BjqWh2uMUw+JdvsThxqJuSX11vp4KfIcF8AolzGWATgosC1Ppms6ULrKsFDIjIk+8p2rNk/Ns4s8xki/E9rDIV3SrIyR1c4XyXueR/MUqyVpqSIDQVQTHGTHeXT6OEZLMBLY0zqLXWkq8kGuWOVj8qMgSeQcIivSuGQyrDAm6ERe4P4javyAvIK7RAWiONWUZlnxv0aWmgAKZXhf5UFWw9QgXdedDcF1jwXe03tOR7pQe3gHVmU7IfEypETZGg2sN5GU7raCzmXNPmT1qSPrjYt2wyoAi45usHUozi+2Uug1XFLlcdvxhlpNNJZJab7aohnfgVFub41O29WYYaKgiGdaumnSXsQTiFbb50GORCQekee9MTUuHaWaG4FpG0uzJ2pLSXGxlXzIUNtv9GYI+S3gB0GexaplGH+9kJGQRzwpd7LQLTrghgHgJMDFixJSrhfz1ttw5v5WQmfR02ZvdE3qogDcFxoV1jLDVGjh8hjKPhENp58Jni6iES/2xEUaRxN1JzRSmDngsDo7cgbj3cNOOrvtZKzKfALTwD9QQDepYLkVNvd6iRJ7Qc8mT4YVR4tOHhIWvf4a5bZv2vlBO+ix8mtiaTYNuOgzctpOIkt7RYTJzJMPniiJIlGHOiRG/hTGMUqUpQrBv+wHMfG431tqynOSBYiItLTubwia7WXwjtqTmIGmNJap05i0EkEEXuFSnCLeQdEWkEkege/8NkPE2VSWSqYF5X8UlitkSTzS7+c/TKHwtzHquyMjLh75RBn1HFnt8tjVdPeriyof6NHT/QIyC9CBD0dtI4Z4M6mX90H3F1km0mjVZWLEPjb5rS2LLMAkiQLB7t2+HMkVLumU6U7dctYeaCrou8wLE0ggU2X/lBrgb8p3sxRub3ChDtQ9l/nSntznWcrFLaN4WoPzxpd1ouzXNzFpszEGDl8uCvUOg7N6TXJ4QlFePEoh0FQET/CWihGeOIGEcNNh27o2Ca5QFqOQG1TQNR5uHJ8cXQwCIT4wisE0Itao/6QXGYQ0MEPaEQvtieykJtAhnLSNwwLquSyB3xvwRBntO5/+jURZk1pqfSjmedSgXViMt+hXTIHokG6XN+kn1FLzUo/7uHXQwwUs3p+7C4dpJG0f71x3KJW2mUOHpHcQT+w7EZ/BZ6VSugeiVoD9j8RddzrN1LcHjCzxmQfIxTy7VlKH0wksfyowo1fiRvjW5INlpN7BLlVpGDJ/0r5ySKStp4UWQmoMls7niqvcg2k4BDGRU2oLifhLuC9k8GxRkaXK3PVpuHBtQLF61RwtAP3rBPGc3CiiXE5SwRHl3NWXSair/R/OU2bmGUdgRdFomRYTFyTQwPp2URmgbFuXebVrrrprJTg0XWDmzDCqfsjqf4LaO/HahqKr26V6UTGjkfQ4EYgJWJLYwCUl6Fws0sy7ulDIXqhE3NqmV5ETI8r2UCuIbGX/KuaBLpBm6iJJSvdtcg1L8lWZ3gCmD1xcEx8Vc7H3YaDG1yj/xTyQ16htdNopM9ckvuJWH7fU3HbshFW9//X7G4taNxNR3CfEETiAk0vrjMvUzt1x0q4QHBzWAeDyuSnve3S9zmKtvh5VKhNZxSemb7hU/dJHqJ2cBVvy0DIHbmsjQXO1YErVckRT1U0QSY1HFfbbpZJ9kxVsHqtzd58mieanqRNp23jkThCHeVptIy2DT5OjrJKuuQOvHOFJHw+2xFKVHVLY7og58pSsAXmIFLTPVNqH+a0zd+dKta1R8Ik2DCWvoFSWlOhKM4dy68lN3q5V6ecAZeACwMe6p1vXbYtYOoPKruVU7d3lVlNGexbrSss1yi6JS02zKX0omoKdTxfyqxA0vjioMDUkK5DAO7Sht77MTiCVmObOl1ie/I7f5GINwMENlwW68zQBzMiRLMGZPmipT2qpc0TCdxQg5Ky6r0+w3HKLqpWhcfNkSDRLyeNmgzrROwzrzgZuHXFvdCzbf4tjuhTFPjWGRpw+MGiZzh8T1qM4kxeRL23bPh20YfN0od50RMpQ/SjXahvUbRUgouBAteUhFaz18coaICRdLktSB5BIqsGJmu/FarAAlFhleXkMqMSZYoXPjibMuU6vlkbF1MUj96Jcayyw4hYcBTu9FlQ0JTP8Q5WTy7lccsqtkDpH027Tw6GXBlix6kzqkigRwrpEFTEo5lPknat7p9PrVLibu8c+gCioDLnLS0tTvfjyBPjF7I7JDrQiD1kx4C69jk7JDUBV00TQzQWBJdnnwICVf57YD3AQDkn3wrCMM93Sp+601Ax2jfsosl0xrzkSnaFEjb/6YGCsGslfev/i0iGg5VJlpyOAshlCeTg95uaAOB6nFw76bpzo+QisnBgo15FDZIOSRsLVWvq8mFuvRfh13M8IediYlu6p8lzw0mrFbdWeYbV9H+yoZ1rJE0V01XjGZZ7XAl2gxJr5uPREEKiYkxYeILT1f5GXOjdDJdfeE/X+3U4T6YdOeEqcQRP4O9lmNVSNYmk5d0lIxUOrS3QB7sUC6+gqrBZEdLnMZcjSqNgd8uBRZQU04XnFKzExObzHWv9r5xOE1OG6O1MHWdptK7/MHEpJzl8MoYL6qOaXw4f9AEnYsyGwNCd9+kk40Idd8kZqAoyHDu+lAtKNsSeTdzFKqbWpYEs6cAdz9SpiqLmNsEm6DzIL+w2rkOxq7SSLWt6B8c5ShQo7tFv/7sgpwyXBGtWePD3pB7ZumdZxksG1LQGnziKS1j9KNEfW2jGgRaub1UGlhf25Rq/+sQi0ZeeM22asVNqa2j5ZfX7v1JurrqzfDxEEDDOtFOSU8DnjSzXLXl2jZYULJt71cM5xq9NIQKhVlYL1+2FenpUKH32rrTSgbv9XSC4Fl9M5XAfJ6xLR7uhfSIOQvzY397aStQCuwqZfnn550S/tHYy4L36P2/1Sdpwk+9ySp3VQVeSIs9Hv/jdvfzVzrcO99g3Z2mU7yjESsQz7jXbWQ6yxlotv9PUfWT/6KHkL20SnjLjFL18RYHi5OvzlY8fbdIJxoSNku/F9UVyCoKHWHXWXyZ4XJ8idFb+WAQJH1i2w3qxGMkrfIdMMtuJAoK1QcVD3+UKdUIY2eVodlpLNgbtNRNrjP+cp9RNibpv0eNxTUlbSX1m0W6c83tdLauqWucIN/XX28zBDXJnJ97M2liou5wQXCUmjPZ/ZqnLq/DK2lexAqQQpSD5RHZxTWRydID+7aP/+2MPUFEwndddZwogG02AWBs5oopCLIDYIvgM0dONRhCIJ4qh07329pwGmIrUn8RkqgE8Xh0O+R7cPscGH2EfqZMHuz+8EYq8U5FDRO7m+N+UenXxVWvKeX225zj0IlbddSCwrxI8mE1//x0XuRWgXvxOmDO0oL4ouE5Q09JGUHBM8VnrlR67N6bFzunleY+QM4K3Y/V5WXrRpQa6BvCmSpLPuz9RUXfO13adpbn+oCc7jUv/k5N7XFqm8aGbE1hl/Q3vcNLwTdDIIHFl/ioI8jmRLE2iMtoK+/N4qb0tojqL62DmfJvmQCz7scRt7VK9t/crpL+urnuewX+yXZC44wOfGOJXeK3cKvCwnRhRaGeI4X/5hg43rRFDBrEa8DKNQ4AhZtmSjI/mbWzM4n33ho+hie+Ov3nCZGl5jEMoOLzcGTuh7y8o2yxJ/FmBNVExMF65fmsgXcvxL5pWLTrCZuztY6LQnMOsmk3ISkrKsS+9+wmav7bQtfe6CAwzRhRJRw9uM5hhH8O+F0rhgJ+PPgrCRKw/RDLoJGv+zJF1aK8xIx0pb2Zfj6ebynoJvXzC69gnYTL6yiF9xUWmbpyTAbpRCFWD532tFMa7BpRhGGER2nPtUe8jdrP27JSG5PWfLE+Y9HBA8hH5ILN0EQyTVzJ1mUbDCeD1ES1zz+Xlf6srNcrO2N62k8V+JssQczP1veiKcBpNDYs3Y5gw29v6XVe7xujI2NlWSX3qpP0JpIpPtj9mSzj/43cA1mSmpS8oNmbtLrL5+lb0Lb4t38LqreawIgn+3a6my6keQ0GiqbJ2qfW80nJmBYsiSifbsGJ+xOTxbs+fzu8zUVOaB8pb/Q8aUEkvMgELFfqMiljZI3Xj9iZb4V6SW2owcjWPF4ey0uLki4gRCP8uD0TUU+mvm1Fk4Y3Hlh10L7nbX2xizdG8hW9i9oXpsKmzNuCseJsTkApoiR/OHZN5iWAtTWqhA31B367mZFXVC2xZi2uIoDKe83cflD7yab38XGL8CEqOgjLStbqGGP7T90XsXs3wRngvs3OC6RVOfVFCRsKThIaRJr5M53MYqq41FRefvpxL79pQ0HNBwe4fzI/zUFOnFvidHD09qonvLhx4rp1IeMJK19/KR8vCNCwjFnEHVWg69Ce39kD/dvurEdIA1JPKZiexjb88ZvUMgg0GAbbXUiXWVGnU+39HAjchIQJJk7dQX51fRl5IDaEd896oHL+vdIpDwYf58bmHY3TK1aHn04GOyVn8Gk22ded2kv2Tmb5ggQ7kjAdkEB1njhwtC3iZ2fFe80Z7bSZICHOkKDVwQcYG+38F1ArInPZLNPltMsglOpDPhdCWVIsApe/J8d0UsanI0Ie7PI0cWpinoqDtx0WG9hZycPNK0RVgcVFM/+7AmuZqV+kT1ojWegZRJ2eSTCB7I5h0drCxtCaXXhd8ccgvVlk1ZggSjVLIWwdIlZWTyO0MDgf0vznfObbanVGcGtN6UJQgtwydX/98Z1kgMUAT7X89jEr+Ux4Uj1zNnTLv/QYLx8zNPXM5rahQQ6pGj4vV53pI2U1lVhOq0XdsKKMUZKJK0vTe4dDzVkbZ9kJeWzgMVsYcr31mHMHgGLiD34qinkcuPQRMxK/vjhW6D4wYFHvKlC5wsLgWN3I5VdYnlUt7C9avmhEyXDvMCTr5gSOl88t3hVFWXoPWTRSdwicZ/LStlNiH45WiPtiFhoVRCgoCoXbJOaYmdr+Slf5Ik9ZROmMPhsP4TjyofaYIfcZr6G/1tEIxG42aV8AfntAi9PYNiR+Dian9/vzdmKc9zpYt45aH7X4CoMKVXyRecJl9zNJb1eqo6p1HZ1lJZ4vGHl5iMB9l0Zhz1StOu52FA6hCs9/+WvEoxNbU3XpSwEGcl5Ve0dFRxq96P7CYghNJMRfLc+28jEIEQGo7iH2RsZTS/Y8NfA24M3oSIftNEDJvgGUQWVb/gvNLx17yO09uzYpz9/+6LN+UxKlzW6v2kEEfn4xcCgT+3MPSLDfqt1z/Ig8/2qACDEd/MnKQWcl/LpClyFpU0rTDtcHF4YF1gEHvbrb4GvPzq1Gs+4bVOUohjHX82eaAeadLgaCR5zbavHXStIvlQFSKlpdX902YwRpqOhgG8+bsbHTf7p6673kqYWnQgjaYnAmc3hJNduQdq9DBsQSTBDM57MldKaue3f0ymyaRfhDo9dZHvPrcXVwg5bTTdtReY8mVr5f6yBd+imhdUaBDPaTnPr7UqVpcw6QHVzXRB7LLDxbUEXdUdTseReX0hW/5fuBfk7uMOLJdwPw425ZYe3sDFRNHtM9bSaH3AE9o3//guhDpPgRR6ivx3suzaWNFYyZzCahVdTpNZC689JTUAK04lIjA2qbOaq2r49rAv164vN7UGbly/+b278j7zXjPNqoyaIsc+NVfmAqiXWe38aG75HFv5xDsNz392WGBu6GKn8CRkM8mfEuB/QQnOksTMsmSXe9eDrl6ns1T6pKRCgcajsB5+MD0QMkYX73+v9952KSkl8yYVvgqhAnMro6dOzx74IHv5wX75LgGjpRwcUAtT9mbxN3vI2vopf6/ypI0kiAh6SBPEG15gD7x3XI4nVhY4tz2Jiw3xjubpgc7aKGuSXwpXVfgJnN5RuXj81IkqS+rtLv+u5NAChk9b1hmdX7G/SD2u5ZztPrOnqKpyQli6hgZvuvnH86tJFDn+LnI3vsNNhVFE+KGZtYxeVbrN4DT2MUpzCZCMwBGY3sdvL64Pz+/xKH5fylFd35GFwNroznkI9fwzCB0mKVIBWSMz8Cko+/h5bN7hgvnNx9t31tTIe7LdoVNZ3h4rMyEphTHrWvThTqNL1IJzCfI4TEsgRfFLv1M5N/e98yM1R5md0JbaM1Y93XOIJTB+2E+/0vLEtwjFnIWHXyOBfkGRVeNmTdgeDIl4zzkDNRV3YvWdZQ78L3tSwEy2cuLWxkvkvIT8tIKNXret5X/C8S5zSY+rRM54MKqAm5Z1bILoh4J+5nJcRPUuM3nqLKHRk8WcxJvtfKT6M80rbz+dkjimGNum/T4ntHJpUpbXNLzaHcwKUgbJ0g695TVF6qPJ7f97b63fZtMB8LuPdaujXH+uk4QRppX5cdCe+7KLy/LWyAR6npNnMYbkkhyHBNdldh1f8P72ydLBHY2LuRE1P8+fa5HsGE8KDxq9W+Iv6FhyNv/uf8SprsOZjwP4y60/DWG3qEvmxc2Lp4s1JBVbm5WoDigmjk3+pzHW5cj9hjfXEHW4BCuUocb/ZfnrMZbJJpiz5NK6jNqdJI2EVDCNRBNrnLG3xXari2ah5xRl84XsioqKSGSBukFeOeaUv3IdD8QD7Isrc/lKQfZJeqlTfszk5sn74mj/LFHbq7qSRZwJB2ApImWNReX8XH9JtIVKgQhYdI7zuXHO4mWVWSsvfMZjBklSwPdfnJCQrWePyx7K/h7y1an9d8VUKQI2hxL1ZZB/2XMkKXFOvVLpSIyjIxJIsqDMvySmBRAgWLaCpNMZnJEuQf+Q++9WbyfgzMXsytAulKVMe2FcUZtcAfMceHeNngAYYpmUX9d8U8BUP/ygk7nxc/uuO3PJWTxbTVadtNQP1Xm75HewOKNvmePTB9MDW3iDyXMOHIxjWXLr2zbdLqR38O8792odCqfRcwfc7VNbgtGsCmpWGXwWYaX6eFn6MmGFoTXqJzBe9P65hewgmcKluFJ3XjGlrMR++5znV3yCoKiv+o7teGY0aKt6an6A8bEwP7RCOdjIXfNTU8qJCmnbqiR3r635KuvWV3ComSh2pAg3pWTe9bCWNHJ+5Mb3vJyU7LATWc5T6XASBZc1yn/OYAZDlCcGDaEVBwUEh38lM/0+f4MpvEMrhohLOJVKGeEP2vKtBUH2bJxFKiRIIVHxzEyf/IjS6ispZCbT7Rq34RK9WuXOYFPhW3k1hSKycPSRtWes4Rk1tQnlUgAAcPa+lyYeKar88xMWwHbeSL1TbeWQufi8+7HyYg8D06iJx45+4czS2Kv0P8qbJys61TbutzicztK8v0LFzSOlYgyl8Kho7vZG+66l/AolkbuOhRFbMy681earL+35W08IKMi8QO5HgsbbtMqN4IkbXrvZZwhVLFxLBFeiWLgQx0bunDngaFU5j+1yeKxNVR98sPqEOAKj79dY9wgHWLav+cK4b9Obs4R7L+OfP2CmZguOzZQ0uD0XCT2CzhVmBCQOzTzNcH13sGFjTcxV2koSnCCOvqjxaoaV7VnBHEflgk4e9OYXnvbwMVFeQ6b7Kb3TmX6TCkdg1Aqk09osZ1V26QvB73a/N1Y/ECG+IwQ4Np84fyz4pJenC/1GgRduvvJpY8tlAC38a3SYHW3/KhqfPfpOWk0my9DFJfnbA2ZzRDtESvYJE06ewBsaFGukyTeXtHdaUl7NmRQ3tTkGiqS20sMbagbjm4YWs/gPksgIB8/H7HdeVPs95a2jII2iQThMGCUJpXLfWVsz5qGHqlH+Z46kQP+0PoihAOYzvHOeqfAUfm4hQjeMykcIcrW0vKxcdfDtoMhL/iBKuJldKFCk0XmcHPowlXN8wkQK7EnhlnOGsmVJJJeG4BJCKjVWvGxqKVENaPSd5pUayxmUqdKxhwxPDxjLmRZEAMPkM4C2nOSo2M7BfjtzCN8jzPFn84Tc+qHW+9O2e5zWNdD7ibihbUfn9+9P22B4R5CcwjU0dzatO/YzvvjNE9YMjGJGEb7Udr0u3jNtHl9h9B1Z4I8nVLawIgh9JvyU6bxePY/ajFBoHmEO0zKHMb7+JqKBb1F9PG82M/6qMc/vaNxyW1xUT/wYZB7syS0/k5kwR8Ld+JLGoXVdEtBEADwLY18GMgVslG4zeXxflpXg+obMe4pPoJ/cCmeHv5VKcNCcFdL4okMM8tSK+UXeTYsXHOarvu8jeFveGWtemv4jgSiuJMIyLuiDeBAM+HLuXogwF3WuW1r31n0nV5ddk11H5soAF5t/wqfNPc6sWaHo+TcO+R6E0tzVVwGd5+huzlnIO3+nZtAKEjetmOU6SSmKJojvnBx67tXJeUJCeJVJyJLHGgRlwYdZThNCURayluddazihZkHgeRh931jP5x6oe+n+Q3KwhrZKE3SyRbeV+wAg7101yzH/ufy3S3JB/j8E9+y6lyHxDYhB9BYEQZCs+h35PV5fiunr0Y7mWkcCqlucPXny6J4wE9EtThaNNSbBcq+F84Y6ZPQzNk0vovZ6/JEd7UZlZf1KIxMuznjqdBUtaqrUM9h6LZ8/0uEBwVNn53D2mFqxYFwJhbM5HMAP17PikxzJ9YI72rqx2zs6fWwgmLbQN/ql33PHj+xZ60Zrp3c1lRr0LI//utur+X5EZcYRPlomdHghPXV2/ev3WiOiAoDuCz/R3zfQyCn6p3KQL5xLFs73Pzea4t9/92tvxQf/dkBHk4+LXAtFayYELmh65hCn+lN0m8PBDv78EJEpWa6TGnskJA5ZQ0eVS6D0aIaYeU1yZiqsJanPLcLFuyF2zSQlV21DfKwpfxXNEciQoYf/Iq2b+BreXjFj9EOmTKPKGR3xivzME5ZYhIAeJ/wfQk3NfZH1/PiUAZOGZpphCFCjOThiTXQAIkc6YGwXOhAeVztQGYXowNiK6Z740w5WdIL5+8qWmx+zGzBonmFdOnQaJZahRWbh62iuIF/OWGipUcyhzQiH6E8Y5g7bRAsXSll5t09NhS7+VK1cNIlSUMVEo9WPaSW/zzyVJ1EpBDUapZJQMZhESOnZYUyvmO8y8AE1OhLDqmqTpVSaP7kCYlH3kXO6a5hFlaSG4cgM+FoqJgpLMbqKdlCMOX9A59rfD4AaZxUm9nTqZcL/UClPJCwoMvHFJb9PzPudugsxV+wD6Q9SLDNQs8nt72G9V+w4U75QUjChSzslhleNgCrGuWhd8yHtLlYupm++YSTEBXSVcN97RIAIl9guJlYc7heziV6rWuDDEWzFMdWqhxJrptpE+F5+pwMGOWaKv7dfDCrngQpHpd/c0itiMeNWdeHq+Ga99xRDo2JyA6uKieqoAvQwcS8GnVBf9xyBQowQ6TDYC/ZbXy3Axc9ZhA3X+3B5oTOQ+h+m208ujUK6DJmyZFPKoaKGm09aRy9XHgMjk3wFChUxF5gy1t+l0XzXQKVf0NXQp7MAbDjNgN8/R1ezEOU3rK6sn7VzbBTQD0fy4Wbq+gLyHIBBQDsSsqz3G0JAjmc5WHNRM2NZUzMJrSxDP02FDjQvOiXOpp8SF6iTQA0eban8Ow3tzhEoYGd9gYcRXf8M7+lXrBWHHFs=) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size1;src:url(data:font/woff2;base64,d09GMgABAAAAABVcAA4AAAAAL/QAABUEAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAggQIDgmcDBEICq5EozMBNgIkA4E+C2IABCAFiQAHgn4MgRwbCikjEbaDtIJHUQvTJhT81QFPRVb+DBkS4qprpGp4IPxh3+c4DjZNzbv51xP3IySZ/YG2+e/dHQeHcISCUQcYCIiA9hySVk1nrKiFGxZiLcNFx8ftt/uRsf3IkAfiXn1/aMaalGB44cJQLBzCxCPSbuAK13o9X/1/j1P4Z7beHrtR2D1FYn5iUpmNxKU6c8jv4MoBoibMzMqJFn0Enk9dyUWVsAJf+eEdO0AHDmnpEKSgdOvbor6idlc9+dhS0dlpbWrtpdc7gb9lO2WiNzsQ7bCM+B+HqvkXoDE5GydSRH6y372s9dPFGVbqldYGasFLCwu+hkhZalj/+7Xe7D2vXwdZJi4yEQ7ZudtvZtIY6gn0n1D3TCo1n7s71IEFJoeSKAQkl4XalajYbfkIu7UqtdZthFGrQ6bDunouphEo2/6+WY8au06FQgpBBoK0w8qX6N0TgCBO4g7gARBjxE0A2LJ/M34I5oAAIXclwA9S+PY7+Enj2R0AG25Kk9zkdEbNOJsD2D6bBGHEGS9FFWKAyF0U/GhFuOkvjMPJkmOWJZY5QTxJvE+SnFK1U7Vb9YrqNbVMnaDWqNPVRvVjmijNy5lf6QgdpaMnAeBo5ZiB8N8BCV3SR69+WCPo9qUOrt5PfuJ9b7kyuX1y22Twv4r/LP+JP/jn9qrbK287bztu829N3urW77d+uuW5lfR++9v2N/Vv6t7MAgThOlNdYRCg1feDyOoVsIdV6LtfnrwF2pc4lqb1GcLStSAI+Ed6ZKwFOgCn9lpAzugKEHB5XEBArdoCElKfksNbE65LNCVGl4lh1+X0qhOCeyeCSCHYTTXU9UlLVAhndKiOD6wy2bKjSccDaSXUtdExOrI+BRr9cWiVkXBMVIJ0FPQjZ0lZ0DxaI7Xw8DVU+tVqo9jZH/Wh995CWtj57buSpmkXGq/fbNvmUyRpKHoJklmUarSlIOWYMDkmA3o4JmNpxlKLhHY0HA7iCCWigAqCGELPNiAMEUdAswdquG25ZYpISaecpStpGAHDK17w5WJ1CqBjIREK5xEl1YUCHqQvUJZqgc8tD18dAnXG2gDmAjrvPJLXZf7BiZaatmemofYCwLNE8E6t6+gpDfcfmfRsqqdDpW0ft0zaCV6DDYLtzo+OoacQ0oYK+IBhpwWi3CQ4JkadCqBxCeIwBr/BDP+0gIFEvRLL0RUVfIJUxpaDbjH2FpsTomUG4Oy717aBKOqWDeWJ0GrQ1Q6hLNLGRlOkzroPiYVphltgy1wAaUGv5+r+iO1MJy0NuM0VsWpisVNxD8i1a8vWqA2vbYEEmai4CcSjAimWlAgSrlgyGoG6YCopmiGNCmQguexsUa6o4G80BRmjNB5BdpJuUY7VPZ+pn154ivioJwZFL9z2q7vX041dtOi+Y5BB3t235JAGi0Pm514KwlyW3ECaBccqkLblV3lMQ5lrxsR9JD212j9J5hkYEYbOKeIBCYdIxTBvpWi3p5TbzQA3tAcSsLYY8facKTCREes9j1yd9GHVIVbA4yRexk0nQTZxY8I5RwTFrBksOaalZ3Nn8SSUmBIZFB2kWIEUJwiKFyQlCIoSBY+SBE3Jgk8pQkCpgpmvh9ZhndB5dc+rlODHRcPz3Q1aLZXyd8Dslhny7y3jMEHK010IlvNrxW6RJlTgoIZAA0EaBOkQZECQCYEWgiwIdJCKEVI1LuUkI3FZutp2u6Vl9DH2btUEcvz+0ZwWmCEylKqWNc3pDH/7gY4hgSz5q3JmG+7OWx/m08yLir5/G5L1cvN0+6GVPMinBOblY4Ldx973c4Mek1KXQXkGwkq9bzqX86Ii5bekAFLJMI0AcE7foYJClHeqgqJTGDlg9GWLkYmgfCZlLQGai6a63IwNVR11En9kbADVtUURFTdfF5QAUBKrDsq+Of0tZ1FwEMXOcWNUkaop+gxiSlFK3iTQ6oxKgme0ZG03/pSSWc5AXZpNCG7g1gspjcYw0EGc7pXnrROHXv7ZaS0UY63wmOo1opgMc+LDrZrWJJXUVpIO0pxRhBxA2DPn7TGjrBxltgbsiBE8S/pWtUtQKRhhNgmFgXozn4tCQSkltpgzeYkFWs15Wk4tIoRZA1HOVTWnWCG5SeUJZ6OfFl9KpdaY1wsEXklqoI3eY/k1TL6Yt9n1hao52vp3L4toCsv2uhEuj6c+qdR1NqiUZLLeciz9ltkJXqpQZlOM6YQGtk+8Y7bu24Fxuw3ftBOUuOO4C0zxhttUrz3OpugUjkUsMSXJXQRln3qpAkFCtOZzoO6XVqmk1Dk/YTmyMGO73ju9ta+JYTer1NQ4e3Wlc8b2zUwb4qWK+VDSIceupLzNtLp+FJ3LBao8xfnvU70OF7oVbbcq0A1JdbXGMA7YnB4pHKNaQ6T4SXWbAuVawxm58jGNlzS/3tDY7DJaiQbDdYDyikaB1NQGAc0CnWlQVIgWxai1DQKmC0y2GW4AgPOLdg2poy0COjWkGV0AEDM1pFltETBbQ2eOb7iFB27hhVv44Hb8S1SKgFrS3DYImCfQnR8fXNoCJaGutghYqKG7iCmGoIbU3RYBPRo29xrGobSQbp90esQ2y37YnVD2cws4rAGHh9BWkbCO2qCONDQbpqJjWE7FiJzqjR6CgxYDYZNLYJdL4aBls8GKi+XSihXSipXSilXSitXSijXSirUty7BOlmG9LMMGWYaNBU3apCON6VjZbLge9Qo3FqETr1ME2XW7RpWo6uhw6COCuREyrXHkSXsd2YCAkyAFQhuTVh4bKAP8hQDMchDaCKAdAfeC65srQNwqcwlukzJ47EwCzwivkaKiYyUCqaCmWpElTLMKhU6XnlGSmrFqrv7ms9IkXY6BNlznRpXAqqIYhq9ixVLWoE2K4p0Z0ikhVVx2tFNiQdJQmR3vnwdcTJKNCGuHvCirHYnjyhNy8JH8B08MZDdodrO22yMYArgbgc/kS8DdrbsR+0wze/MHJN0wIt2nUKyfLV6d1y9RqOB80weruHNIeeHvu/yYn5+m83sfT1cTYrwhhIGkO0KPDCRdcP+BiLL8lbU9LUg2N3/Gwg/CEPPM26pz+8YScmbhOm/Ye04ULeix9h3aISX8fecfWt/bk7XMf+hwKnjx6rpedsi3Je5m42FLs/RfuNc8cd/q8qXU/s1+8xebcffPuPWHS2Is2fn22WcsMalg1jK2Z0jAetiqF88967COKHeOz1wNk6/L9c6kE/lbmCVYHjPgRcIruDpxKI5EOalKKlBKBciVjo3cnLAtpPYOZeD2qTYYAa7yQ29mdMPL1Mb0bM9UXP0SPwp28A0vNr8mqgRiUaZ+vwC64vkQUTf/5PuGcWT3sjz+bmlMoIZI2V90rVVGSNfHFyUY3Q14x54e2ne/67hWf8bwSv3w+R3n6/V47ta5DA/bVrxzLllV02D/Z5ZOzokxJSnfLVPfnywIfcb/ysvE/BylKkm4mmTynN0WnpieMD00As0wTwq8Yk2WUfpgOq6jGkDKhVIoL5AAzTYNKWmzTFnLpwcBgYc+TeVmLcghUfSSltmYWN1/c1oqq/d0VKvvM57svApyjV6H1H3eC6H4KqwfnxMisQbIu30F1k/OQwprWP77b+XiuQb/pbZucdqfu9Y2fN/a3mXq/WohfLlcoJ/EhiiSQ/N4LsgeIcqyFZRmYcGSBT22vOVubeMU3RFA5i8gfyZjVQzjkGXSc8CI3WVsd13C3xbzielpm/F8ufIarHt9f4PO+SbQkEah0VLDMOTzRhY31fTOehM7H2KsbJfl4n/48ZwBWu3lqh2CZ1NP/FDzTB6rkq3MXmZ6qRbixScF2fZbZ0JEh48zKy2rjGB5Hg8X6/pUUm0UiDJTZKV26GeLIrHrzZ+TczOw1Z0xtCHgYzR41PBevKccPnxEEyLdbqul2u0f5hPLbLMpG43gFlOjRo1szZrPDMmtqyCjEO69sU6KIo5UWpafKRI5rJ+2S5lk4HAlMc/J9y6dP1Edvs+vZCsPgjygD1msxArrVLK0PsphXqlzT/httcZS1tWlOk3UKiJ6x6y5E0Linc9qmfJiemXHZBrgKl9wdeDKy1E+H1rKVTs5uRJF9jtspbmvTAXB1hShlXUAhK3sx/OCMUiarcF6HXcIYc1XIXWfIEgZ19EDaey5hH0bYvdftugTEhRuncuLir2ERbFP4Tdbxi2wP39ssanPk9RKUofueGLx8B1PHaLI1qS+OWD6fRKwBrF4gB9z6OpjI6M6PBQjCPF9XD1+7gVIyZUvFimURELLyqIZYuZ5oWRv4JmZdzysPTDngBYYt/B5RjyjyEwRzISQ7WSLAfp12od1v+jw/vRWMVvtTZr6UR+ciMuErgUaX/5u9418kTj/xu7vXjZOEcMYnFz2iac7WYEEYaIJtpWV90/UZF+uO3GY1/Z9a03cjc86U5MTaniHT9Rdrsme6JcD/UmTjccTO6APtZNrAnywqvBmSCYP3UT3wZvwRN9HU8sJlCS1smLUuB/7Lredd+gwryYhuTP1sxszUsqwv1nmWSkmbzN6ZRJQ3ml6EFetkmbFV2biljqVYt+0VTPzwKEf9P+frODU5MNEPn3RaWOmOHIPPKCZjiiut1tKZS3r+y/m2oTKxwsxNoehrhY79Z3X9Z5BxbZyYc3guhy74YY3rbbquT/1fz63cOt9bxjsq/VQeJI/smHJSVcAlm5WFBQ1nDrWueHrx/Xcyj1ulS1vP9x1t37vRFe7u+K+hRN79cH9jnwXt2clp3/86w3zKwC+CeqFd8Nd+7tnu1X3j9JwCvvnc3GOfDC3D1+vIVmtVcu6yb8zvbvH4Y4jkT7jb/dM9gX9Gxca3dOuJa2vjIzv9i3/g0q/VBcvaLsPdR9RxJg6PNM/8c2lX5FsRLXzJrbnL7q2AIKzniqgusiPelOLOo4/rP268OJX5+GCqolPavCed2YEZwTxvv/v/V8oBfpPnPvdvO8g9VMV3yGScbSyvHjksNOxGealI8F/g/9g1J5n1kvhYE0J7PRbZZJ6IaMSFpY4rc6SQqGKERrlMuPUVk+3ovV3CvwxbzGrUcnkFxeab7qbMSlLIDRT4UXzP7HRTy+7S8K+KH5Asir+2by47RXG7W8QH/I+fi9HOXH9f1vHxPsiSmnIvSkKMOvEE5LV0Zd3Jx1vyTqSUnnrzkSl7ZlDicti23wzdvK3W8053v6xg1WLW9wo9ver0Z/8v+xjWrvlcXB0lJXDatVwfHMzZ/+ENDEUU72Mcre4ntnBn0ssQBhBpb5hsnB684Nf736B7/+z+mseEZoorc0z5jgdNJnI97Ejdy7VG8onB2gygVch2ZLGo3+flVcFnh/5qIwmYmPIPfIz8cpHok8+3/B5w2fxlGxEpvhY9phO5tdM/xhufyfbIKfiHexi59ajX1aw5wPFE3supy1o/kEbxlR2gSz2VSw60fTlcd2YGlGWXl1oLjyRNfqP/GMYe/vtx32C5KuKUhs/avXdV5eLbIx5Z/az3nh3RWs7M8K3lSq2pKbcsQivBpPETaMtLcPO25trA0JbEjjM+RYJRzudYK+z7StGZ4l+Ugy3tIyKm5OCeHXRS4ncVkWpjWZGW9urq32xo4GuYPz+C0yItpUqup/dKn9oX9rwLFb+4w7thiMMyZe08GneBq3Hh6K5eI3KZXmnSMbxl6esSFVc1sQHeaJTuUq9PFkw8/YeQL1mk0VHqhXNympWDqedIRj4aFfXkz9S2cpw9EPb8rrS66NmCTMDqmnpnp07Peltao+vRY3hrp3pHisM+FStwuwqwd2XLrz5ySHZSr0yvF750BOyHYyLkW7s8M1csCX2t6zC+weTL0Vilsz5Rpva9rjJblpHJ6svui76PNrvnrwfSel8psO2J6i4iwoHe68LbOEwJdnw0AuSAQ35JSAeqews297QzDzXTYXDtt3Sp1+88V2ixDIBaf2Ud1avWXOn1XXvdDg+2ndAHclscbWLwoyLefAQ3//rGKq/lwVusQrFA1Gzaen+igoLMWdIZDaZHy9Zh/OdfrjCJdlvxK/eVWUtHp22JDGuc6+tsLiEMAxIWF82UVJcaNvbGZe4xD9SbAXT9Z1Lrp3DAcUJhaGRTbmquPde3f2miqvJkiaD4hUQPLw+pK5y9rtzJKW/CSTklwAASwdHH97fxX/P/X+KF0c2A4AACGPmbIbQGW8LtZocUopbCnU5/gYLa4119HeEz8IBvaImdEBhcBKeRRTUKcMK6GIKGhKGyUQrCRDgv/PpOSlEJA5Dn7I+FDN3BAofjTkoir6E3qAOdmZtJ75tS+7KNihcnrQviyo8Ky3lfig8jEXwSqwuboOioolOpbTCJs8Dr5y8Y+sSgBWBsJWBEBKQYkROlWVRBKVTUQJYuDdKQrknoxRkBKIoDxyB5TitjoqJeRh+Lwt50bvg1KvPqJAu8y0QxtHyy0KzMKmVYtkSmKfNHJe5BkzQQzFt1yJz4YeFAaeKXc9I6CFglidFqInSiy528wpMs26japi0pLabY5oui82sGbTYoGBoFlKu9w8M7yNkc64vGiO/SgkO65RsfhhgTKcMUeHs1SCMBVMIwsrm8SYQjmBBsNmTPIfAt7OIUa4s6i/LwIt4K6WGt5RaN2+xBRYiRniZon9ilVWl3Tw3F4FPeDc7I4Bh0gS74iNHMAdoxRBsBHAVTebU8+reVxWLvaYTW+g+OYCAaUTmYXiXUJMDIoj00ycDEpBBBuIgFxnnoliVWpw26DPZ6eFkLZIY9tEVDWOEe/ufcbyGhF195fIJHueoodfzil2TbBFWQlgnLegbkKNWBvjrpxzhQmMU7SDZtz9Hg3K1pn0ChLyTHWDRMn0w9tdDFIhAzqqMzWyegIC34R0kkUIe0shHATJwCIVwEM5iFIrgCIqRRQlKUYZyjMYYVKASYzEO4zEBEzEJkzEFU/mDPV0mk920/3CuycKEu4KBuf/BZ1FR/NDqdr43FOodHuxjWPHX+su84wu+tkS3RXXJcNViNu1X7S25er7u1F3S3d5p0s26Rcvtnmsq0ot1u3S0dZm6F7qLtOLudpNJN+sWPW9HBVDzDk83t48jbuuI4NvFq1/Gge8YB9CxgYWvvg8AojjDNkgA10Mabmxqj9g2tsspILRz7xXAOgWuY+J4Jo/dL1gJSMVn+Vs0lLDmcWB19+LkI9TWccJKP/ECNLhWAAA=) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size2;src:url(data:font/woff2;base64,d09GMgABAAAAABRYAA4AAAAALRQAABQBAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgUQIDgmcDBEICqowoRYBNgIkA4EeC1IABCAFiQAHgiQMgRwbMycjEXZztMJT/OUBT8ZvqgIwIbZlhOVRe5/Y4TgOVm/26guMVEV+hCSzx9O2ft7ukikmSyhLL+AhNmAmWIHeF87oyyi4/NktATDObmBpQqkO0XGZSf5Woc5WoP4HGIc9v1xv0DrMVJGay0kidb3pvFxg18l2T0BGVkUSqOrh9sU0W9oBQkuW72GnqAI0AYKjV580ZSBCW8pFlbACq2yAdAEyoJ6MIAUl/9lF7aK+rhqdIUkCYlX6/79Wad/9VbUMdjlEHkgnwsaYP6+65tT/v5sDVcMNgz0nW9W7YeSeDhAqVnt8TjQeDyRJmMhNLDsdFyFcpM5yOPrRK2x+f6/1Zlt1xUpMECYMsfVK+7xHARg+gbYBAwDbgN0LAJukS0YfgiOAgVjjMoAfxPDtd/B8aodFfeBFlpk4OePRGqnFO0mArZ04iM1INxduUXJo0HIiAdGQQtbvIhtIRnYdFlrsGPY49i6OayXaBK1N+4iOZ/jKhJkIE3NmJgASxa4NPxHTilZv1j6oYxu+NME39+4i7w1bbTH4X8l/zv8E72Pv/f3e1++1vKd4M/N13eva1zWAQPzD1PAoQICn0Isi6/9g7G4d5sP3QPoy1Fs6kybwChb5P1sGpBrqibEWeAOo3RZUmLwDATI/c2BQq9aBQ+oLfObWiO8go6TkCzbT8SW1m2A8OBf4DsZOriFuz1usq4vJo+k8sG3xVjg7evBAQkx9K9Npxe0pcBtOY6vUrn6JiOEJBUOSk6T09J6qkVp48BYi+95SOsresAfzKFjwiHs/giVummaj9rahvHsejzzoeYtSoJhrqOippErQmsbTgxE5k2ZDwRBXJVmTCM2VhZvcQYrR0AAs4HMI3AfgYqms6JsoUmpTLvI/sQxx9/GPIWWMdY6gFGMcFF8KlFQfHQxITyAi1wKLOwGWe9jujbXGcu5gJl0mSgOFVXrR4UEnzSD4ZQDkaxFG2448dUpD/kc1Fbo3ILLdkHZM3otBo42C9yEkbdjxArojBwtw+KaFrmwTe2iOexXAfQYrz0DVsR1YbQcHQnk7Qg7/EVKKmxLePGoWUndyd1y0nDFhz7+244d4ux5PSb6r+0ZJAUJEkl6jK6ROeR6W87IQchlv2gLw0CW7PR0QgZUc+lnA7s5IyMOKXAhGpPtopL41auNr6xChYF1H9KmLDjHWGhFEXLPThAP3sccq3ENcdEhA3dTUlX+EVI2uQMIkTbcROUZaV4r1g1CIuhufIujouUyyym5Y31/njF0t2YJyFJjqHPpS2BhUeCQpAgQLX0QziLcJmlMBj51hTmItRPhmg/VeFLetmpsVSYPijjK66mhExAFi0NTbjZztkUzeYwGRaRdEYKdFqtuXTYGRAl1HBwGpe+khdI/AgdxL+qtaGJXJkRsj3nseSP6gQUWRDyQ2puUn0aFEgdk3jjgiEKkERvECpwRBUKJgUJJgUrJgUYpgk1pwOszQItwmzHz9IKhUoK9L5pgOi85wpf27ZuvwNPvvCiMxgihFWwEVV2uGXUUJDQxaGHQw6GFIhSENBgMMFAxGGEywsg0yN27JHk+ocukoazqZlSSPrXL7aGBPnxum7XBAZCAlLWme0uv7HsdpwwE5E6tSEfYd1d3t4WgXhs72wvsYa9KVpD2OLKdDvtBvn4UR2J8jz8cPSoS4tQRzlyC2U7igUyVdZyO+QtyQORlEEQCsHyBHBqo7cw5PhyKIQ1ODTBRM5p5JJQPAL5m+1WbDib9POUs4MTaC3Lce1dmbrx1ZAOaIcw8R2dWuX/hyAI9vThubi8w1Hrc22QWpllsITPcmLUL3jWWb3rtwQdikGTiQTS5Ff7utcimNzizQfqrHRbAY+JaXeDTdAsFUKwzmujZxuWySTre73TQMs8rMEJn285RRuOyDBXJ9HW6SmVZQ2leJFGFEBrup2wKRhSJC4dC7ne7CY0905DCyAhGBkQU6NzUwPLcAF+X3PffNpUznIdwhJfiW8ioeQyVzak3zulNgZCSEGdK+Vt/BJHK5uzXvlUz7yN9nPp00s6bT25zdHHhzpgMvVM1cSlA/jmHH7MUgc7EqtM680azVt+E9s7P/fgd72OwCF4Cs1G+0EGSnhty50o5g4+kgVUVW0HNUVIC5Kk1m/A9m+O4TwOPUV2O3VDrlJV6Mwu0J7/fykb1UDGqZI+Ob2TnndMrYqtnURrJU0gEbb7hRpZLcN7U655h2lQiUJWfP/nwLl7l/ozvC3V435X0VKKBcjoxUrASZiKruCuZ6KpX0G13BWb4a4zpHFROrQQtSXFArlOpGIUG9UN2ARIloZKDAKCQICo034QIECjKaLaWW0UjQaqluQwsk2oWKDqGiU6ju8owi0Y0j0YMj0YsjHUKiVPThFEz9rppmW8jcQQ6F1gDLFB6NABELmTnAgEEL0dBoBBi20MIRSwxy8mhGVbmol7HH4NPjqXcn8PsT7SRCjohOOsiachBNbw65rjHXzsU8O9fMB/eABd6BFjqIFjlILb6G52GJnYeldh6W2XlY7gGtcBCtdJBa5YfnY7WdjzV2Ptba+VjnAa13EG1wUHmj5Rrv/W0kyky8RmD0/pt1mkRNS4vfHGX3R3F97bx79m1YAQGamUkEYhRlRK07mAWYVwA4GSBGsWEMBvuF5hsNgCZigK8TmogDox4GiCDiE4VsEbu2Qka7ahqVlZwPq2hRyFOS7Q7mNhNUKWphCl8svJdsqVgidbhuzAzcHreLcFt0QhDkXOSgjC/E2ABB3hh3ts0D+0wiM4yLIiyA4GyAlIUZv9P+/s1vjbHbXoKylWf4RSCaiN6WYIAqGJwQSDHbwmyGU2qaE8UVBHFygiDFXFR/KopYHde3Vmbcx1lfHkvoeQbXl+bztRnGFNDkg1F5QAIBcqJBHvxCCC1CQU0oQFgGXp1uDCDXldJfZ1eqydaEdV+uZgt4oUsD0Qu2fLJKBy3V8nkq/Hc/NLvAn/dzP5/LmYte61N/KnLsObfGPj8JjqirSD0FU39j5jUqnkDKuSM4LT6cXkw3OI1/n5tlnBtKZ+U5UiteWuNmWKSCX2ZpTYhlbK5f6w9bWj9PxisFxqAEZ87JO5fabVNtu/7aiI8Qgj2B0cXuu0erKB97a7uycklJsq5dw1rxJEXMRS76aXeJ3qOGHBf4zEwf+/j1iVgHwdHHmYWSL/zax3eYdC7az2SS4bS3aJqkEbJ93PbqqHF2zNjvF264FF5ovbBNLDP0VWz4/7GPr+zwT/2xn+O0GCzeQOo1KFcya2sMKfJCkKfcxa3ww3LRN0i5AfJtnL5q5Vf7GIWlZdcQBhq+r1tywfrvCyEeeEE+gd+vzBzWVJ+pkmLxZey/w4Wo39nGLuw/6aThPUdq1if5oKroXYTDU97we2SkiX4mJ9UcSO+PHLynOKuIV5DqYy9fZk2k2lvAs9YJqdleb9NMTSJfl03vhuqrQBCtrftcEZAERVh8umrFpvt6/it/yP3u297PnEMqyPNAt1nc8gXuY59kr+P01d7G+3RSUh1TkKaAN15vEc2fJZE9+BypEc6td1Hdbb5/W1IGqJLAcgUlQglXMHj5kpVgDLdciBs4NQSU55MmbdoE1kj1cZu3Kcvhli3y/Hlmx3LUDCzWWaKTlwN2b3rsrfqBmuGu3xx9/1Z3WaSGUcgDg9IvJoiD/EzwUJ6P3EH5P/7wX+AfpL7qYy0+7G3t0QfT8rNBFYjykZcQa1c+A6G18FocPd2+9BgAJuvCyiKnZKnUjvd24t6PG2HKTKTxJ6AIwziWc9xBt18temdS2JHa+DexT3RyedhBsS9d+v5UD2X01mkXqZvAn7QIX4zpqM3+zoK/z8azPADpvONXgRimkfoJISCqdRDUIUT+D+sdspegfJ1nGEOZdKy2a9e9/YPug97AM6oQfh5vCYDqMF3a/VIfKP0oJ33v3yI4hVpqQ0MOZ8wJ9AYPJPUH9/5N7Xbd/eEHrnsbnC/fSArgxHMv/vGaesYro54DLH2cPSEQYMd89P6TEQhDbLhPlub/7zXNnx/cB1VXdUoe9fobWqNkIy69+ZThg3XAYn3hugHM4zdc8NOoKk5s1FGvv01wv+fxW7QzWwNEVLi+mPx/DLT7gEBw/VpeygTNgefhp4SSYU3jgHOHW5WxY8CpaRwuTYAf9ZlwIBdD8so2z7nTYzxhQCjQj3d+XuwQFsfDj6Z82GwFpGyK+Kj6HTcP5CZPIbDanG+CHxKExcWOzzvH9QJgTUZEhSLBo6+9X+uWlhb9+BWTWVB8oWSlni/Qr/x/Z9DLbWF+9WORtLTW/f5rjwqEASHH47zucNfU7uDDm4kxq/fK5o9PrhyjLcXmrTQHnoOfmDtqat2O604P/HIX+mIVjp3AsVeKIZj85awXP4GhR2f9VQD2DwlVyJ1zfxv5Wyytuibp0T/IerHYULrUETStsVTZ+bf8HeRnGhe4xnDdK3e9Ad3+SPypDGnjGq77Rzd3cXwFdfu3dmg9HQld3LyhM6PQ5s6VioZO+7EZY/94Gm293+5U/+vAH7mhaW3NXPO8uuIjPTVE1TW7Rgqe4WM20M+fn6dAuKgFvXJeso5ZJtmhq+8pz6FSs09mHmiG1lQdC5Olxa3e5y3l2BDyNW973FPFGRQqIHc2mcmXagjN5zeUsyV8eUH6PcfMH8l/XyvZPJqZfdpn3NrAFH2Sdux/OPOpuUrq1CU8+K42/a/E5aY/WiSrVYoGZZ11lbP2M5balesjk15KjJtRVap02r2ar6QM8Z9kK9lieDp5u+pAl34pUi9R+PUjdz3vteYVqJNenPgZuv4NJ4oL+BfwDwu3UCEIuipTy63+hvVTtejHwXw/g7sxsNS41rLL6QtRJLu3hxU3rnk6Y38FUZHaYi2qa7D6PxzyWplZF7Yc2GeB95dUfLg0HL9U2ipn6G++5q2JBb1BWbDK2Y6SSdVKq2nNkhIFM/leQaV1KH659t1F8Kf8ovZ+fokafL/bZZcVKW9Lnyp6ugzFN27XPZ0if1bOwqmkWUrZneqkN6RJgUQlBvjEKtkVhfqpDNWr8/viJ3ehr5IVl2UsTDkUkT6RlPyV1PZ9ozBiQB5uKtOj20QjjWXu7sOC5kqot/QdJ29pT9P4vQ9wONs+efVUWVH8kGHDddYI54F7cfq09haJPwFPcOMe3jq9dADwlVvVZ6SSmzMqX+vgKDvxKLktaRXlW3aURpxzLZ8GeIfqj3SF5Wv8Jh4JE9Sub82rV3+otesUN7ty/7cu+CdQjEv/wcPIvzB25eBEQuFKkeD7eNa1qKGn85NA4NoTvcrivs8TnexLTRRGrrgzHFZDrg8GxS5eu67kvMgTD8KtO2/cEN64iV4/GGR8jr5qyz62QhB2vDN78K2ynacnU0fy79q54NCKJ+LTR/XX4pTPV+zevtm7FhxZFSw65rI3RJWrxxZGsk4mt3Ufrd5UsvCXE0cEkuQkxxCn29JvO3zaGDYPT5w9JV5cMV2sKqf8lENjoD5ntebzRQrPn5sfBg3Y9eaY4R9Wyv1VfCTbppMQtQaZDGGIhfMXLXyzt3xZp2TX/oZthspXhS6KN+tRXsxQG+G0m4M7O7bwiqtibyDjj57hr+raSASbIpGHxFAPExuXt6UUL1uOYcyFv/ivoY9Ub9qxc5xYvszx8OKNqKkpPL4bWv8JbGC+ojlw8Msv0YqVCJv117zKPQKHx7FbsKDyr9Saetkf6bKf0d6kscFweJD8OSJRX3pczSIV4UiQV/pVUvJbpbxgJKwgWerHL6klkZ9JNPt3TWvw6Sn91LS/+qdpubykE6ZX29dsXwzTgxL2Og5/7n3mKXh7QXMGRBKtb7O9de7eLlHOb2wR/uWkZ1Hu8IPS/fwr+/cE615GLQCwATOVoux1QWvUoxnx/yJW71oMGPwNThiJqujvIhaAG/e2dSEzeAJvwocE7gFx8CDMBUZW8C9nWknk/pWFWSrif/AUI6cgoxsdCVogI5zjR0Q9rmI/mmBmUAwfZsRSGIJRPy8Q+QI8jJbVJT2Lch8wvNho8yCAkA9i2xwYhwMiOJ5OeIq5CJROzMVACHfOxaHY43MJSAvw5zLAH3Duk9k6V4DNRpOvpBDSQ29DgRGj5hsXdocBk0iUECOSE42WySorR1iUVKjfhIEaLmiQAf0qBKsWpDI4cTZc99Md0uFRFUrT4xq+sEdf7R8yX4WAxlU269IgbEG/U73+cE9TBvUYV2zEsElJjXdNvydjo31CspCO9sO63CuwKiiZcSaskdDBBlQ2VZOHmq1UUyEcMXCkhmM309irpoeNi5H5g8qyZGetOeY+9dsM6QnhgAhpn8fG0N8kj7FEu+U3NQe7r57Frv2HFly9CZMzJL9mglU1DTv7kOVcJqlaj6E9VEKutFYuNLK97wlz1UAxW809MJ4icWqQmBB7mEAfpkwfCUPSMv0uwjKVobXGqMGu3O+70g0se6AmkjZ6u++9n9Rj2ptwVU3sNbhPkhnT47fVp05RnZSFW6Rw0qhX9rd1Qqh4UlST0dgoZAa5vurb1ShWaVjAQGzszMqc0tRfM993wAM+SOXJ59WpO4DBm/AWwhEBBxAD9sNpOISYiIXYiIO4iIf4SICESITESIKkSIbkSIGUKI41NRymaR8tXbuLdnImw4N9/f8Zk9UVp9NBw1hngVNoF40toB2H47RcU120x8l0fJZ/akaRx8qc6qNpx+E4nfR7c0PFEzxZ3xxDaEtLFP0sucNRDFj+GIAJ1so9510AwFtK2AAHKLzWo3V1zVHvumYl9Qmq5U42zFmv1E6MGZaRu9nLABHqzUKNzSxuOQZC051oZvWIzTGsU3vL6GNCYRUA) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size3;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size4;src:url(data:font/woff2;base64,d09GMgABAAAAABNAAA4AAAAAKKwAABLqAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgTQIDgmcDBEICqAQl3UBNgIkA4FMC2gABCAFiQAHgyoMgRwbNiOzkDZrVocSRbBxBObjPcV/lcCT+auhHTaLDBIyQ+TpEasEZ2B1aVN5+W/nWjgup64RE78VroyQZNZ/wDl7P0nT1NOWFikSCGFAM1ZMNiQw1sGsMmxCMZ+Yc2IOZ667nc68/wHGC1d3v/9pS/cCWAIp8JSf6i7aABk2pD1I2GYpKPnWV9QuahVtijozT2uuunDVen66N2gdmg04U5vaKVLX+V6aBe6cv0ZOxCcxi9R8u/2Ly6ZBiwMrf672/+ZKeZPclRQKc7KEz5clOPfzZ2eDvZ1JCtNcaVKiTMqHrNqqFbpAzxORMGjP1YiqPl8h5Pn975faufPeBP6G0AK5RDhULsb88zY0OwHEogJgjXKPL1pCV6FqZIUwFTLLcCPS77mSD3RdmvKtyekU0WCIIY4xo92vqs/eBxg2vTMKHcDsZp4FsHdwbPoR2cTATL0R+E/s73/wMrMng6aoKKSf1MPSwVTNxz7nfpbCgQUszGIJHy444kZhn/ZDOdy8NBVSdbnwN2dgEuYXa4p1xc3M68y3LJtyWU7LP+QnJvw5QD+FDhQkpGMSWrAGM/SE/L384AB+mv1v1vWI3HHAfgNr51SchL5d83fxzyrcuvYfEEwfMwZVIsJu4IE3e7DOeUM++NExz8P0pjBBCjeSUeK+AAHtY1lTWhNNhCb9FgQtWENSKbVODBlVtGhDVkWzyUadK6pqOjWEYDMTVdussBoZbWkDNMtktDo25GZvtAzDaMEyufOKHtNbq6tTdQWCJrZ1ktNwLiFmu3XfuomJSziN9dKluQSLxM3cbluhAV+cI5f2sU0nizYYD8jXOL2yUfELn1zSVWqUOHv2F7cihCwabilq8sigYsP0yGxgMn2eD09eTGGCtDsKxOgG3ZMQnnFoFpACHvx1NUVGoVkbEwFH1Pm4WnVUNBOziXVxT0Q77rR7OrR530RP8gKTQfw7pFsT6w11KgYgp8QG1GtzjnrZUpCt0tqTWg35rEMi3k1Z32bhgosO1CLwWRKtXVGXqd88uYYk7R7reLNPp5BLm3dhTsUF78RrD1YEXeJKh/yMzmeoV2nQei2YYhMhbZCtgICJIpm2CaldUp/ZY4MKzlWs2niPQxtoEla0esco9FeXMqqtwQptYLu6fYipcTsFZqobk1cIjZwSMEhyBE3OQ3jKsp2ShxV5k2QVW9CP1BPLJIKpqwaa3RArLuv2Ny1msDVzTivRvqsNbWpmmBp2mJWhqPYMQJv2ehqLbpKtp2gzAoaoDO0qp7m5LPY4tCc5QrsWkFolgHdELutQ3yy5zHX0/U1aOmVDJ8418+7N4lEo3UudI0apGQ5t2XHgKqSIpd3rF7aJUWy2nQxxL5JbQFYBL2cxS06xaTeiKzFTy3TeEigUYSxEL2lPmzai6K1REyVrSSGvmQGn3CdpxJSHiej81lxqMQ6mZsnRIVsMaJUtLTLRahF2Y2I6sMOJKmt1IFG3TYrkKMHLPT3PDW/oVjNcXsNoNsNEMcxQLLMUxxx5WEfxzFMC6ymRBUpiw6JXlSq8l3zrmyUnKEnz3zJxu1l1yXT7RS0nZqb5xS9NUosxm1fsOimyfQxwiUgkQ0IKJMiQkAoJCiSkQcIESEiHhAxIyIS0lqWialuapKgHxrSiFtGvCwssZFbncp9qcbzdyeSnJFsFRqhpInFK3t9bjvOUBiQnd0iyla/pu3MxOzPryDVwd7zUIDdLLUeuzlPxkP/yfLWAbmoSxyQvo+ZHE7gfhalS/VSmch65BJ+SAhUVRiIkodVeZFiolhcqwyIPRdLGU1cpVjMDt4ISI0J+y7zDV2n3SB5JhFtT2pNk2xYRuc52DUtUwj0WLVtyCjnFWWYzxNOatN56ypKBKhX56ZRGKPfbQF62ITHY+sFy7xVz3CYnHZXUJpd2NM5bK6BRQ5LDpAxDLaaRkYAfebmvpjNwWmiEOi02nyqcFhV1Wjg0GXhHUQByaTKMU0po1IZkFEJTHTBg4wm4MnYDU9QpETXpGpNLm4upuCxmH6cNEq7zhmWKjAWAujQp1dSLAZMjGlHO0GNsrGXFFARdUk5v0CcIuRKVaGUfPbBbwLkJXtE6vfoBkytlsz3PaubJjV9Rfqc1YBeAolLrZJsv9KYKVVBqCejy0ZqbUwveofJl9lFUzzJt5fwLaq77KoIWhx2yprLEGzddrbLUm6QNO+0gU5EHmJRW0rdGaiK4uzRI039LpFm2GcA23VVQoZSpJPpUNRs5xU72XPfG/i9GvRyEhQ+z9EqmlO6aCe3ZUu0iSrza6DQt3ia0bB8jU5mAv9/16h9t8TbvOzPMKsjsyPTtOjWDpBEWppV6lcWEZnwO7hpBiWGSI5qNzlTbeoQzhONmqS0wtWA2E82JCAgwpYJI1HIoAIUjAuYyHd+gbgLQMhodUVOCgGZH1FIEEOY5ovkJAhY4Si1MjBpuDSuKRAS0MVF7ITANHUzUGRHQxWTd7FDNPck19SYI6HNk/RAAA45oMEHAkKOjw2pGWRltxDbCiuYXoTK1OPfJFao2lqiZkLRUyC0TouVTSIwazhu8NwuQvCF23ygJKAu0HJlE9UTzRPfE6AaaAloC3T5TOF64Xnhe+LqBfukQ7RZa26M+bPp5e8wY73mYY/jvG+VkT3JTU5V3TOgcY1Nnr/zMfs9EEOiibDBRLn7SBcAHcM8A/AhMJCKHwe1oe0gAevhxWo6LT3IJbmFm0FV2iwQ+ror3xCfWoTzH89Qy4adLLlM8nlijWYpPTOIWhTNxho7TUYITJJm7dSz7aMPtRR7GDh/vF3ZkHCrq1CyBcYw6W0YTtc8JspFEEopFUUl35uHiLv2W5cVuAm4DO05sJG9B4UEvZVoKQCYGljhNkE1Q7gB+I9JtJJlwLaiYeRBbJkFzQ/3W3fRidmpiSK3rTgUU3rgoMk5PmlRycNzlaZHxbNM8TONpyWP/zgPVTjtAfDWmf2y4uSTQHM2hOPUm33GAtezgS855skHlJycMVWcwITBZkXBpS3sWkjzhu18MPDE+81udjaSbjn/blrmXXqBUub3t16avBS8XsooOst2bSck4kqfgOC+FnQSlxAY2klbsOo4Fr4I1AY7ti2q8K43HxagDbNNp1AHVR3JtqIcnMLXbr7QjzfDJQm+cZwwnp51T7avMlNUfYbnSobwKkM42savdJwsNw+n9V4swz9ScI4sk2FTAJs6DVpmzgJOOnkJfXc8mPcMpGBmpBq9KXgnQQXbgHcOD42JAhi5BGp/Gilot0Tp7NRJc78rGysNicbpVdqajZUERP0Hbm1wo9K4+/dFSt+24y0ngq/FaPulx91dF/SXRP/wmEZuVTJzRtPNz5TArXlzaaHkd3gCBhHs6EdQaUIyLjF/GuCRQI8B7BziAFXTALyBE5BUgH5116S5kwgs4bh0y9yDhJrHQLmUzx8kyAQ2mBNqw0EAfniGEBbTF2B1wPHzjbHCZC8NoTEVcA26Cdp6C8isGhC+os82QXSAUXD5d1MjySTv74944QJzTzYUl9kx7wxFak8mJ6h+qMMPoLCrLrNgoA1b0Tzkx5SzOTQD8uNpbRt6gl5/olpvyFoRRygiTOhS3F64ywSkrA6U95MT/xNJLpuAZ+9s5FYeTvAxbMpVBhtjFARWCdcSrvDHe5momFHh2kxZoFMz2KuxRQah/RJIxIYrHqcof5hs6f5hC6k/nGgVrmNviq1fW+z5QPVgFrKuzqoB/zQgqYCV1qSlsz84Zz8Gkjs/4sOhAYPDhv5975uF/9qWIdnuY//iJ31qLFi+bkI6AgVINjPs9g1OwOEvoV+bbGQzwrTpioowsd9eH89xbdkz3I2CgPCCHab+/fV2cZCaW+BrvOuce0Ww3be8c4qc/wfREnv8vmJS//GC3P2k6YnH2Ow0ub9xispvFPas9GWDuPn9eyOtBRuibcHLMmrKabp/f3OLZj9GkiWsc9c0bKjLsHVB4vVW5CkCEL693zUQRo/s8racyBvtmCgebk8N2O7vlTKBpy/e6WmHrFsG4oalv+qyZabetW/ITBw1HvhfDCn/z1x9tYe0w8C+IaQaTWPzYvI0LpZ3BDM8+BOGvt8yNXF6r2jvg0ok6F4WSa9XI5Za59fAjsN+TEYzpawx1TleKbY6w3ZIWVPub24xbhS1bBWH13B5/ZPrv+syIP0DAqP+vfFvvjTOz2l0ozQVfcvMLJKwxKimls3/gfKXi92Jj/GQmWiBk5Baxo4K/O/b7xoneWndj4fZX3IUR322LIoyod7UkuA59GYyxBR5wzTAU5H1RbZyuoAeLzCE39qDkl9Pcr/+l5LUmXPaK+dNyc7W71zdhukV/D69P+ebylHSXmaHCwmJj7lNlK5Vr6q6uvxLdLTdrkSEDftkf6gFjwPVLOM4umuyHY+vVxfd7/JbI4TbB4Qiz3A1vSy//Zz3NXJcseXyiVxMrKZf5N+pzHRuz7cseXC+Q6LGYPYaNPtaz8oEsJlesNrleJN3O5p1wbN0rVntFn0c6Jn6UeNUry+47egPHhu1OrOjpf2r+B0nH2MJcAh1bYbKbrC+Vv590gi2orBQ1/z/4qPiJZ8mdtaOHfjmTiqqYA+N/3U9R4SxfywrY3S5n/5lfRg/dOc2zRPzweCambIVe3xLSg38E5c2hZtnY4oaK9YyzQi0XRJh6wU8CP+SXQN2yZQF9XLi9Pq/jTlsHMaU4oDMWK0eIPZyZJ0pM/Pf/CKanLz+QqCmvIya0Q6zIECXG882fgvH6hevLg13lwaWbZlVvzm/nh4U/x4wcjRhiY2INIxLj+fqQycY/sfNJhmEFQWAZ5snGqu73+PWmQ78wUH9ZF5bvuC5Yd01mWDfP8GQC5Up5mYdZOoxjJn3FRZ+7NtwehhNb8xJf1Wewbluu99GIIc5kjjWMWO/9GoLx6GbRbr9j27SZG8qG+W7hn0dMHIlk8x7B0cUOp4SWz6/zQ/fmpeqGx2IIW4Ufsix9Z/xQWfeMjdun3SE6w047wu0z8jrusrYTlWEfbypRDjuR1d6NsD0Q4c2e4GTPFYUdoXtC3e/WX1t/XVvmit6vLj+Cw9cbzOux57Dj+Hcnvnes/YRGmA9zRMPsI1HBt+YcPtJx/DNBTBGjxhwWBeH2HxV6IW+Hsw876kcMYo7VffO54fh3juPfn2dxjOF7S9xgDrLpT9+G5+pLH2n4Pe738vzB0T3B/mlYXle3dcO0zslrBVbk7C699G+jd4mOjUv5pwJFta7b8iM2XJcYr8s2bVteu2Fa3dZ1cthui+T/sTpUvSb62xLRpTfEIXrqafDBVYxuB1vDAvnY+uDl+KQ+KV9/LIoGGwyPc8c9yOgTxqXzVx3MZ+wOGFfevhIczMdIPpvIZPKfgwAQUPfJiwULbWXHBRt7EADWKje8OOCnLlkYpB/aGRDAAGGgwmgVmvURy8CLB4uAYDbn4gxyPNwZkZxRbAz+QTWTuQsoYmrJMshAx6ZhFBC5Sh+5eMT3NwKAU5c0vYk9iGFmA1kmoVu/wPaTDCNI8ngrLZG5jsphBPCsX2ZX0UY/hnuh29IDp3AShtk07I1V3ZzEPF9JL188OHQC+kb9WCSrP6hB9zPvi6zmPwBgwGKwIM4A4FbAUktw49ZaBlY8WctiKl6v5ZBG5lodqijnZn601sJ00dK/aUUe+zU0DGMEq7AYvehGD5ZCQjrakQEJOfDBh2JMvGh2OFlCNTqxJECHCoJxQKe24z0VEvzwdFkw0pdnIw9FWme0CDUqZyLoqDuDWIU6BaHmjViIIHqxeicPAXSGHy3DACJYjKkYxhCWDnTx0DoTWRbvJymBRHSbifvrgdW5mi1Wwg3PZCMLaSnXpaBdRl0WZobRAwND0m059vUsQhZykaH8/VL3gWyuDCseO1kYRCTM9KCPLaxElkKHZAoyanS5tAP92Fsiu0vTq1pju/WyM0lfW6KqLsdLHZDq2VjCTEQweFU1DJ0WVwupfeuScA1ydOkKwOIBCacDzNrVwxJ0YJl1sDCJl3VSzPhRH2ZnYSTgUvpb62mgXkVP9Gfxu3LyHQkRLPfW21WFbRi4WVLGImnnKjHHsrcUJTBWKY46EnTSPbcE7dXTkRJHy+IwNKD16z8JszAV9YFjDEynF7cUORjM/VvUPwITzHBgCspRgQVoJQZf4itiicMdpCOe9CSQgYxkIjNZyEo2EslODnJSFLnITdEUQ7EURx6KpwRKpCSSKJlSSKZUUvTLhnp9vkrf4N25vhzD0t6Bjs5/cRjslDNQBFIslb4qo1g0qZYaPzW30ifZkiO5kif5UiCFUiTFUilVovnq/qrgqLAmQBKGa3xX98pll2bn+yRbciT3Z3moexJvBhrHifY3jdEvFWePjENfNQ5kQmtj+lMATHsMcBUWqB5PpZ1zGscqdjZaSYeZHj8pYItuSZNnfMI+9bSwEcSZF7eHXkZz+nFYM5+kiyO3b5wZZB/RdfCorgY=) format("woff2");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Typewriter;src:url(data:font/woff2;base64,d09GMgABAAAAADUAAA4AAAAAbBwAADSmAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgVwIWgmcDBEICoGjdP04ATYCJAOCDAuCBgAEIAWJKAeDJAyBMhvlVgXs2AtuB6Saw35rFDVrkeqJItg4AJHwLyj+vyRwIkOKN1DnvUAUhJKMODqjGMxi1tBigiseflYsmAft5jnKWZ2ajGAY6FVmGFBFbedR5zFHax71T77ZDiY+hLu89hMO4eA2R2jsk9zhaTr/3eVyufhdzuKNVyxJxdNo0za1pGappVgVWIsXLzZ8jhc2p9hgjuiKyYf5HxNj4th4/vsbnfvma00eFJRh0HhhhMGaLOqCLPD3q7Xe9/qAaFJTs2Knjfp9GwA8tCGhIgGVDKtIEWGi/8LawiSTfxFTa/xORGr83++1pXuhogFSYJRJdX7aABk2pCMjaILSUZ3SRa2uyZ/dgKFqQ1XneXPmJ810SZreBEmGCoEBKiAb2ua/TWEJDlfr7c3eoy0l8dBv4wyVAAyfIfnB+61c6tyYSdQ9rQCWIJbOyC/dpfpTWnPlTmCQ/YBEz/Pp+UVKUvKZPx5fk16yKa37P51VaZWWACLOIYgwyDbFUPolWa4qyWvL7R653KCWu2fH7gVbDTstD9ntmWcvMbphyL3IHFEKmOGFG14QXhYTBUF+UXpBdn7fWmbrV/e8ZCpAKuODOsIAKR2hlnqpZwO9AWIXGR4ZaUkesIvKuTujckKzsSeModdhF9Hs+RWl7X7M8Q9naxEp0sk8Diz+HItspQymyhWreir7SwHgavArLgB/6i8AVnPHDv3YIjiteAT4efLj3+1T8fg6gZNuM3LcaaaGetNXK7D2DgMAfWsPAJ3iMiUHpVYOcTMhzsaT6OiWllhgu5eMU3AEssEZ8Bl4Ar4Df8LZxHmG8zxnK2c7ZxdnD+dlnUJnNxn/+w86T2n9T8Pn4P/BH3M2Lrqb85JO/t8Wvf/Gi09d+NjmYvDxjy33fOVzn/rYR2KRMOZ/2e+WAsLJGLe9yr6AZFAU8vzsLy6C24BKyODS961vBXRqdORw9ufmaR2d3X9b+EfmGxIcQHXoCdHKEZDcWAF6631A6gwxD+KUcvV9wCEdYyhjP+KhsRagHsDD3RpAsOgdIIVuM3WAlS1bB47SuOH0rxa+A9IoRq9wv+PVnDPAtntIEHnA1kljINcPa1jEoof+eNsOZdeSQevkNjFZ7GuSPUNfDFARJlIzlHkRksWJoC2g7ESMNu5CGxoTjl6BJO/rGDasN+oBzYL1pIJsfwiYbXKdQ8X1BnUGC5n8RpkPhJQ1pTFioiaSTZKVWeXR0QyaUl65ZZCARpnpJJiAl9JRuh1FBqoADhDZCCAUAAI9tWLQREnr1V5KRzhGcs4RFztXxjgJoFhpfiC5EGCMvThwlXoEJKTx6vBsM6DjPTCMG2sHkxsHNOgyophW3s7TGHDaME7AtQ14U5rATa3mqhtl3ftxRrUWApBkK8RNk7YlsFghOG8FZAYdzaD+HHgKvs3UAI42wjL53jMBrMtKgHdTQHsbvLQIvpLN2RIbHSHYKZVNODfCorFbj0+gNb8J6/m2TR8kzE8nQwQVhyJ3HSAhSiIbt7ElIbeAKi6bQjeDM2w2OMFmdGfaMuKnRGDyYtBtgyTg1oVvxHXkss1gDVtpWwepKiwZOs1NDrgWDxGktvwc5Z32XoCLcIjjpCEiCjw0E6QjBPts3IKwSDnsKlmHeIIyXdkNihy68gDiIx/KiGzeCis764ixZRJyyZQqkNleUPb0Adp6EFEcS8PBq3SD8aEADZnACSvTIIaBNERe6WZvwlPLwwGBYaQQrDzILlMgtQFwUHoFYlZMJAdUAHq+C8gAHD8gcnuz0Voo4Gw3QOY99SDxHmIPeOMp/pKPW+jgMrz3OCDqQgPaKlWOWBVn98WBUQV0dGArCUJyCUYKiYOUEoJUEhepJRRpJB7SShiKkvgN8cok9Ap0s7IbmEpAT14ZeSpNGDMFM+mrlSZOYZn09Ymm0wKt6G0zoO2PNbA8L7Ee67ABO2zEDpuww2bssAU7HI0djsEOx2KH47BLJilVaYuSsyPkG+owyzqRhaXIkjL3XWNVJEckpw42JRoQpS6nWX6/Fy/HDAbIrq5clRSzvOsLtlS5HPTCI/HVSAlS8ZLJVKXn9tenacG2INMsAEWLuh90AfMLnHzr1zyrqRx4fKKkK1U08MIG8NBryCFDy+uVQ+aEMKC+MlQlSxXGMFBJAwDjK9PrUl55zg84URia0nsRvK8zycGVtkO2AjDf2CmChBsZbasIbEWhzUxykieqciasQk4NlaCDgXqvIgjhwlLVeSM0iLvoTIMkF6fiy22rwCgb1WzuR9pcW7Qsljz1Y1MFxOKYwbU0JoWLJIMslruCivHE5Okt4X6aNQyB9T9uyS+iawcjNYwZ5T6LMTl8bkjgQgsgiSlSoJynVk5H0ThYHHIRodSLcRNmczWrmCIvCoFUsA8wN1AZckgQl1S8/QBVoaSK7UfdwCNG1pnIuAgapLKlz2DUWHab8xplzCd+KP9IKNB2LH6aU9DxQKRtp7IZsLwwfbAWNs22BKqkVCv7M5aVu1a7bTa32A1QtNqR9iiy47yZXkVOzLoFMm1H5swJWUCthNWHfFHAZKmR4G8niGY1ALDvyFRRybNanAJVgYP5iWM6sX8vBrkMnkExO3TFs8ZmTcyKtcjfALIjNrRQkpeY5VbzSQ9EOYpCevG7Grzm2cvd0vS0K8XHA6oA6l9GhrBYosh6UekCYDKO1dTPacxcmaZ1TBNnDpVrDcDZjAqGKCgQEGLmKyVxjqsSjKoFAmqYC7XagAWWq1sURPVlENCgmG88MrmJyc1MbmHmWzUj4zAybkPG7cjyHZI4z504j66kmCIKst3WYc2TkjxNLoOAKYp2KkswTFMQ9ZRBQK/ifp8qyI2j7RcNwznpAbjyg6FPVnBnp7cLkCTN8CA104PoiXGQB40hnYdhnWdnseQBs82B5ngQzfWg3Ly9xIH52oEF2oER7cBCw2iRB9FiD8otgZJ8LNX5AF6m87Fc52PUMFrhQbTSg5ZXJewXfn774eOoaj8Cc3x1Rr1KX1/vjh/HusY5porhD9m3JIYBIFBP6uQvUg013HMAUM0AaC+nNhTAOcEs3Pafg4sDisIc4AJHKSnKACTZmXtz7ipkII0Ohk4BOT9ACNj57c9zOlO14/xJtLxNpCKS7JWUigSkhJJJA7hEpY/q0ykxEUXLYnJDdrQ0lUpIEEgTGZFIJFfyRYp4YbrMIU0SE2kaUag40BybEkypKSXlyWJjdFBam+331DUEnDqK1WPabEm8xBotixXkeoSUT6QRJlUZGvJZSaIknkgN5WSmt7fX+JyCQpOYEBMSYYImSa+QUqQGkwhNhTaFlFSYvPE6ldfhqJBKWpq0KiZZyBUiO0UYuBF9Ka7jyYSlaW7Nlsy4EW4GxhEnIa6XxJRDX1YLy8RFZLJqxOaDnDofxDFUCQQ6r0MUFI5+e8J9J02tEKhmsCbaO0QDIDsfgTSm4NXxjnNR+0QhKSNOMmGKuwbm2qx+tCLKMK/5V4MvTjM7tZEBfUT6SWD3DY0Ay0o7k4G+dP5ZLLDpbursBipMXYshzP1qjxWg4D6eUA8EF70SCvR9I+UCWwJ8Ie4ttPdmKTwviWSRo/Ck8yYQZl3ErlumRE7KAPW4D/GBGQmufnUTtAd/MlBzVMaVKSwY2Uy5wa5g0dUsigQrF0TA6vHlqSFdzUt4s2A2kxCK40RCcve1hAOE3sTyIbAq4Gx20SUjbxBftQ1D9PurullsijyzEVtcYCa/3a7235trjxvpy3mFsf4vxRSkOAs8w/FJiJaTtENbEDxs0Wh1xUHx3l81xRWWE/FsqH3h1SPdK0mpPU29zigivqpWQ5wUiiemD2HEX5LqSVmWa4GAWdefwxAcckKypQ48XOeTw+SzaxAG0SNPNCjaEOtNCCWgCcQrTyJGkMxN+FavS+TQ9Ezv6VUsaHokmx5hPjpuZwzboqyeZzY0fdWgToDYkqbbtyBus7cOA+yUrNqVX+5WzZ+KwnSj1WSOQjfDN9DAFunUdSldx6IPV0TYu+ba7NHKGCLRH4SYKHCdHicQ8UaJ7mzJoFAFhRvT5yqgXnpaZptNBnoESuRKcSYn2XYZo4jmVOiuebM9fT1iyqGepztJmqT03+l+3z81pWLEHjLAxgH8X8kmhTMuegZ7w+3kKn05c2q7MESMZ4UKRoibWHER8UKJEEAuqBY9LjwPd51K6Q6XuGBtmPMxbqSDDMmkmbbUp5tVgKNHG4LJAP6MLsnhjc6dcLVuOokGsdollEKiMt7KZ3CM8hfx2LQAxK9jLXgaWRszql1/xLU8erWUYEW5kXkJQkHUY272QjgwSAB/HQP7rV6h1JmOG+trRh7vh7LDFqv37AaPZrzefbvKqa7JS7oN0Z6Y9zmCD9gGhAo6PXChL5eMd4SaZblgL7ipaNRPON8lxKNXo9ZgyogNh48k2/5QisOu3TsafHYIRE6y33k3MxwjoT8d/fUN4rOud0re890J1p6IGK4Z27ByErqq7L5liXnwFmJ28pus3MwFWEmzahbsWDEHSxsEeYPiwCPYs7vvMvBtWKH49X4F/ehyot/IjVx9+7K1HDrsFTM8Vtffv5CMcZOTofbokeUU/LoonsRXxEVkoB03geVuNhxwU8B1UU47zYmpJkuwvIHFm7AnD3x0IHdkr2JxsXKRcZCBaBjeYskqm0RBa6d7WKvUi5AkbzQ3gv5vRZyXiKQmN0zOc/jYUSco9GqqnluBQ5HJoFQZFBaepJ6ayBd7DAvm5FOuCsqhAfU+jqh1UDC7FJ0KsRzoRrwoq0ONaQCiKoUKevFl+iQQLiYPo+UZDOeTP3p+99Xwy/chbh0YvrdQSEXDKD52+7AdQ0/DO2igfsXTryi4oyzpvnOIy0sBussTE1sDcMJFvhAboGOFxorWvC+TdzRSLBf+0IA3PU5KorBkpMs8oENNXBlbDIEYqVEHtQY81PdWU32v6dz667Bkocp8OYJjR0md0jhmzU5KjqMV1DEUQGGmzHCGkXtHwyVHWwKseacFOpUOCjZX52aRKxXSi2aVhDRhBtgbRV9520YD1YTFvFRVAh5K5uYXMOjQgSQxQDe+lJA0pu9Jg2qUnEidU7RNSS56+9UINLRRn4UwgDOT0xtb3LyqU6Bf2lbT7up6Lkj7hG6vKqy9nBv2LIDISx6hMVdInx4t2JckU6HuQBDYZglXFQXU0yOAOhBmch4uBFUrwAMmgFXA/DHEULBBLSRlOyONuM0FQduiRs1AUJ04aU//uJU26kSFd8dez1TnfjKLacgq/eUzqGwWXD4e2rEP4nD10kL7RtUgWisTEc/7vH0Eom1YrfmkGTaL8od8+It+FyCjofZOK53tini3UG4M0qrvD1sESSbnzkVx/lFfNROEVpHvGmtgcPGcs4ZoEfV8vr2T6bTDVXIcInPsXL5ud7jhKJD+8GwuwHZ58ZS7GLVWgJ7xDgI8j06kKzM/BGYx3zeWlbaK18YSHrLhVKGrIeIL2Yv7y8duNyuId2aE1X1dLJVMxuwRlGLP/QiNwEKkStJDOhMjvgCXcsuf8/SIPo3AUYKXOyWosutDiYyEagOCLNGL1YjwBsrbnjvyedBv0ODfg+Q/3ZRIOrG5hspcmXmOjtYG/JQO3U3OG99vVyPm3pRSvFSFCt6HUTpqpVBBRSc/Oc6R7S7qqkBs/0eczsnkwYPKS8cV+6ftcMRT4vvDUfskyGqLa6RmQBu0OqXRfMw4iJgkp2htzSl6pANz3Owkgh4358w0TBpMuMm+IEC2bRj8qeswtnU2nfab58U67VbwW2wFAhMOjpfLuK+v50QIFp7EmUD8EafiuTTr98PiAYtGQGi6zQJNFQKrplLzTAIooxfuuR95sy5DnjR38x1JpQnYWBrRPdP4v4INkjEturBSJBNp7+dDAIwXlb8wqZf+5kXQaeV01Frr3tXg/mCZspncutUNUWVkqk8zqiLEX60rFwTPpYg5RWpBzqiFLcBRyG/CWdZdWrwPo5keyEVXVCMOvQQuIy9QGU3fT5JFl6tcdqtqHICgMinrEIXba8DLaqjlsL2zrJSk0UF5djXlERBorXj5ti0Z7TkRmiJ0BAFDuZfkaWauCtU+7GxUBxuz6xlKyaZyI5EKTZCy6y0UEhqcbsAByGBGt7vwWWwe9prK5/Dc1k+5F8Iid3CJdGMmtUCHLp+WK5JJmFEDJbdd14d5TS8fbyk+tcCdRPNIglfs+RhED1pcEKYKFKnypnxGQJm1hAJn86pO0yihlIUw1REXMheYwJk6ToBLrqYhnditYNyC2MfZJEQ/O3VUvEK8A7x0XmsSsUbGgU6pnw6IzGS7KGCJQ8fGkqWdXtEtENWMGgKOYNXJtPHycopoKHX1kqATXam5tj9KGYbdkRZaFzBa/yc6WSb2gTMBQrHDL89Wx6GNlcIMTZxoyakwRJtnmf0RU3+1/XmE+Wg87Iio/k/w3aCfOq/1U4wtX6xckOQoMtXEAF6PkwL921ciajaEM4FTGifczJsmei9XJICIzfT+HKuX38bqnJjp6fk1ICvIvpFhFtkdIxe3zYu3HW0BGPi1vE1oMla0DmKNRk+58MaGFDw57Buqzde/bj5NCDwo5kRv0yFiXjbdBe8tPxxUYVPcuFP1ElBU79Fpag0sAgo7UGaJDVmJP57nQ2uLUXiA3Ps+rOWBJFi9ntt3yLAL2SvhO6Bgsia28Y8JHBXE0roR52OI7tvgjuF1Dm6Ourj1TDXfE/ZZA2iwIMpFczxQw8+IuJSnaqcewtdzMjrqeIHSsPLWrDJHgnHQbJVWCvWnM1Y0grad/zcVuDJDnhT72DBMFbr7sA78kL+p32lN/sqdlUWV18ubJbaN+vWMNAyUL7Cb6vp50yyposjqLt1t/aDTEYjiPkUaCUV2YRMFV4xAXBDIoVll1LXCMGnATAFE6JbPo4ZO68xoY+hF3RTfCuWNHC0E98le/QyX7u4jObDNsJ4ez4ZVvzgOM4HLPqOh0kvr4Zgijtv4JZRVOgbUq9CoFfDjSi1zFqCklcT9iMQu8x787i2o63q4maeSTeTVEeJuppLufr5sL2Nqa9A9k+RGSL6U4MU83FmO9ycfG8wwVjXko0lFr+oxT5o5NBOTOycJmWoprSKDiwm92uqBq0ujJDbNxSqUMl7lHr5sHbJuQneCKp+I6qvV0H/LoNXCDZ8PdQgbVjMfIPS/jEt2rU1CY1VEBFqkaG+lLQbC2aA6wvl2nyqx3EU7E7n7fSa36MX3cgqanMWd8kYnGaPR2oNeQ75BL1q7JnVnbJYypGYFujwDMyB0uf5aXv5dlZubpvRpyBKtbOmrVL716RF89IAGNEXuli3bntPCK0NCy44ldmi/KGXGg0SRp07VmI7A7crE1cKSCljBMaETiEbM6v90wLP4CgoQfJQExBhdaRo4BcVvANQUJ6utWjLRb8IdUKmbql2PB1tU7wVj2Ak9GdjnhNn/rwt+maj+g0ysOwOhOHfbkI3aAeVcxbp8eqTdb43qNDWmOcNhucGjYLph2J4no1Zdw+hF+pRQA1/qPwYrqmPEeAIJ4xjVxHAiw8p4NUBo/DM3tFgW0P5sy5o8G67QP7HrSy0mVzkKEOxiqrIAW5MhLeiVT5+VahdtsersRnOiUNb4cEeWnmYow8w5G1GPaFEpeUMYcOdlQMSyKJJFrdFM5fORJjGoKzPV6sCrRRvUgEubCGxkwRi2S6XBnlF2zeaXHbGeYOXQHsSe4+H1aNI3GK63XYLQXfoKz8MgJCXaxG1jS3eTo/BWr3ndkP2EuACdGJO6pkQEeVWeT0GwyaJztdWqgLclLlG2C0XysN9fGDvfLnz4dl0iRIPR1Cjw2PzAD8z2+jNOzaoyVpfwSf0nA0eyr1k7kxqcb2Os64SYrl1yuj9pHxmgM8IECK0NTw5Frai8bX4LaegsgGirzo1nyaak2Fc2tA5Je50q4dpytQ6X3QgZkHVkbAkQ7HEqFsj0IWgQn9KhV7LVApNKygdZh82+zw4uqOxSZfieHdnI3dvMS/qr5fWFIY0a+Emh/E+puKdQSbFZDuqjuO9pMdrGbYh5Yogih56I4Tag4XHx8ZbDjKdQRcRwGBRwYHwUghPGVzHKSDA52ZHK91GLEhblSCXTuHBqirB1Ay22q9phVergkILaojNMrhyfADqIKn0axUUUQ38MSYIB6iRuVpLT/nZDKaninMxgRHseTkmtNe5Jg105qXpPybzLUpfTgSDYDBo31FNxhdUJ/tARp0inMqwYorVdQvUOIro9r3owhfmUwe9GLLorO5a8+1daaWJlVZruNP7orkZlXqjWDa3QqzizZLrGWb9Oewma/sXANDyxvlGw65RevDLhMMTLfl1gSE62lGRC2zk7fAX+ZJP/9qBIu/TSPD0DImRXDYnfrapppdslXgkX4tDHqQ2UdP/3GUIfMy98eYnNUpSpw9TemcVJRv+DNpE6ZWakKOYTAKGT5THyyTwIHJW2XvDlNGTI6i/oi+xpeLnhlwPWwmldmnLLFghAaRRBzrmZmR5iMpmQQnnftnz71OFMg/AdPMpEfUEhpQ1/05NSJl4x5UZ/8NE6jbVgof2deKZgQ3n2ah0HVp+XK5MOjH42naMorxuBJxlPxeZt3Wj8d7/gPG7/Tym6+8qj+PzcLtG3gnUTQlnJfzlXnAQKwyx6MFVjkdpOLg7lNb0/7fn64Yrfd43ZpBYNQmcJVjYz75KKSrU/bqAj/zt02uwzKwXaaKl+10EPavyx+mSg3+r3W+NxmmBWnlnYoNrZGt8RVxdbhf7B07VrNCKMEAk5HAiCj4htG1H8CRn9vS2cCviH1nwL/UDJIjh/+iGRmQNBHI5QRGAijbZdildOXxuZ73StqfoLoUFjpigI+hwIhioqgpHUSPDVJQSC52hCMcbPNGQfetCgfH2nPqpAG5ud6PTVuxahwreV+G1wUpDh/RjNZFPPhm/bb4fRoz5trUq3WRfVFaXzos0hPFWCsFTRvp5NjMQr4bAIc5Hnj6GvVKxKVFasfL+xeees3n1BaUVcxZRP6V+nNt/Ty7Ep7qUVncbC2GA237nK+Ux9qWNx4hUxNvqi7HaThP7MdgX51Fw2dsJG2Db189PTQoxa2ZA4KZMJpaUfOwrp7avRSU/JLyjSvcX63GhOyWCg7AV9XlqiZ97sVi7UFRHKCOtoRKMzUU03hk6ukeFU2sXX2g41SIxZ9V5PxifUdpn8VXTue+wlZUpVxjcVGC6fiSQX5+tEhNC96sWnq3iHuTI5K/IMN1TVTXcvV6HsBYZ+yAoWp1Q3GAsWyZM9OXedsUaXRUON+q5CnqwtuQwYd2QcAzgOBfn0T+j3QPv/+9QtCVlimhYvAn+WUAr+lE/DqR+K4ApBzNe9XQlxITadDcUlNMVYQkvqLBJ13VO/pXMWXYDbAPaHM7PanZVsdRbux0v6Jx+UyVx7sjhbt3Ca73IRnB7XmojnQSfhkZkRHqJsmAfmvQZtGsuO1np8nW4Jl188p6tpWVLzu9ZPGPoHRjabhP8zE3rI7YwrzAlkpcvfkYusuRZuC4qc4ktT7wRK6cUI8uI/pbJfJw8ZhC6CSXrv3vmezVFEuF3csmdRS9HqzVdSyjIT4+YdEi0kDcGIKS0KrfaWYxP8OHtCk+KD6c8PDH0tlI0OKSjbWIBKSCQ7jcq9pcJoRigtevxf9PNvc39BRTyoD82acM4Ml5n6/YLW+pwEh/t9XGfTB79wOJdzZSwr8sysf2lmvcjDsjLus26XAQdWfODNRZ96dCZfSrvfZokJ2OoCtqHWrBJXksg55ktOzir1JDGLDAWC5fC69vjhtwmhG1XY5p53+jtDs0pK36RpfF5Z4McFR/QVk96JZ8+z8vcYQcsrZruqMJXosQEQY9lSbC6PWrJ4NLpQFee2/DQPkco/wI5OSvdt+5DULzD8IE0vnJIdVaCJnppctiyiEn7yqfLZmwD0cKzYtXpppRgdDFXdTHlF+4o9dNM9HZNUSiXvENHvxL73Dmqepzy77Lb9mTXPqHecVSqGradPbaUUt7GGdLHHRcZ6X5HiBgnW/iTnHfU7Ka97LNSO5v2Y25MfHGwasVnDT8eVxcXLJdr5f7PMzTVao4dpmuX4ZjWFU1URX6RHTF9MurDgWYVU+dHvIZn6GRZvm7N8b0RQIWZ9ywz/PfHOkC2lqPT6upjy6ln5asW1zoXqyslPNlfVL/FLBuh011sqxmahxBMphcL/sxJnRLDy9Z5QjcH3sksgmf6C1hMbLzwIbHLb29ipgELKqFhbeVmNVko27NF9DsF9vet6+2CIAwt1expIqcZfXm5jVYxUQcIg/UEmJ7qMCWa60h3RKB+XG8irb/MAxFMrV7Czs+B+OIudrRzFwsvpPyKanWDp0KYiEpetOQlWrQb7QZt87k/AEGvzrR+LLazO0Dz7vTv77A452eZ1H3BcbpPv12ubs1vZfxFnke+8ny+tOAl055IFcsG0JcdnzZl7oFH4K+Ywby4oXH9bwgxSDY1Uzl+UYniZUGX+MSPtfGHB3IFc3z/5idmuJFkuI9cynMD0KWhFjVZ+v52kJijZ4H25tgYsmAcWuiX3fI0rVxRUP3CK10+Lrw8sXVGRYp1Idb5XOAuT5WprUJRWV8RY2UsiCzVMBcZslGIooo4yfHZwJs4SclloLECtHuwyyuIzJ/5sxwcrZNpeqlGq6cbhWg3etDvEyifkbIiP0sBIs3o2+bU1/PKDWf3NOlqwubJFLFtz8gLgQnLlhFL+SU5VRVwFMwaZpv3ZWfvpqs6+f37Fsu5WQvO3nUPnRh56gtB98pINc75dsrq6PHsEy2LiNzTrIc3Rk6stq06/0qSg/tOL9vbcotkP0XDn4pAEWbhkkKQnaHKQp4hKd1VVGhGVmvddDhw/QFPtSwqt8g+lLz/mE10Hs1S25uTLzzqWdoo+f/z89pNFW8CpLYSKDeXlT+TnhViVtsD64h5iqd7HVaDVPS5bdRo9p82tQTgi3MmoxNOXdrUI5YJBRn7pJW6JuDnLUVCX9DKNK95l6Y9Zfp44xnGkULrnoh1HRyJauSDW15psF8g13aAkEFDK7w/KqMFSE6jrr+lDPqFUbKjAD3wLtFO0t85XlxRbUroK17kEcnXdyMnVJH3RoMrpGU/z7ZiRMzkaPxofdk3u/gjgGM0TH8Xl0oGDLpPrYIC+KJdAX/b2oCcSrYuOLNMpJhS6ZcJNS01FbUzwMa1Jd6Xn5TSmm+fHrKIQACGqjCO0P1C0Z7cjLcSq6MdB6YTU3E7F2twe2/3K/7+KTtb1mkbqDucernvJzP5ORq/+f2zjBLo94CQOhLSBhl2VT8uVxbPb34g7QZODhM065+YLZELVx/2bQkqtdcZoR+us8HjcSVktUt/GroCzS+IvEGz++Kd7H88oEC4qEM74+N5Pds3+5xeWvMsNkh2zX+t59dR0eapq+WuzpzsD2EiaBxX56mKY6pdYmcYF4qEAand1OAnN3ppqF1bhcz8nZ9uRvqNe3xU3dUXF0dyvco9WrJiKnZopPOtsixBvnbM7wYy3i86JmqAC708fF1N0I8u3Ft0J37nzzjhkKeVJv8R1Wjvwb9gFmz4QFmtyS1R5silvz4h8Ig5EOcoUDm4PP0rE3PkbMnV48w++vDsd6qSQeOcTEPBCw1tCIr48G+daMap4Y8gU+otMsjqjm/FuNg2NvvWdMzHuqB0/91NkA+PxH8SPDxwcX9JLmvTY8hfRrjVxg2s6590/YRvRWNcEqvOqAiktyZW/7PniVBBVdFB7KNozbB9eJhC3s+VN0V1bWaH8zzVx35URBfhgu6fBBRc0NruwMNGxOQWGBtJWHMCYQSoUY0mqHlXIh5ejIzLLqtO+iV5DlDpSrF++PHH/NRRlNBWxNvn1WFLbO5EyNv3sJPpvuwed96t70ZaCtsofdEUDPWgI3fuqyepBY71HXFJWPq6MAwMOeODymaAueObyQD4AT43v/qMjLu3ahP4vl73HSqnTeJE78484PgJzYjN/txHFZykpc48l59x8rsMzScWXko2nSZkDOGCq57rL4breQzngPECSpxtJqbYGlJZsrmxB5zJKCatiQ/NDrMp4FTPAquszar7Fadp1cK5lhXmvGYMAZjG/vsIy96CLpvFva2aorhtg7KpRW2B1RourzEqUNCLyyg6LpiDFIihJ1iQpLjlYcLBEUixrSoJELTpF0+xFUNxSz4Vhs2an9k2DU7vTulnaMqKlpYxfDONxDB67ffvFj5fyfzMSq2+VluCpolWxtm5rN+KYlT8nzMSAT8ZWVlajNV4dAeYyi4VhDGWQFSU+o4g1p9B9ICBzXm6tOxpm6PZiY5WVyvniGX7nQ1kN/m00B+YwvmffgvjEJUq6FV54cwshF7TTTNi57daXPfLlKwA3VpM4hcS+59v3qQucF5dLKnBjPH2E2COrFWB7G39OSChAEV9BGj/6Y/D3jqnTyLITrr4++Hml1UyoIjgQrAix6fVo1gaJCafHeor2USwiTpOwm+YznREWzQ9Oytx9/zBqTbqrr0+ef8vFRR+G9VjYb/y7MxZsxgVrRzbd3A3mzwe9edDum5tG1grwzfoVBWhmdfvx4eZvUSbJpWOvPI5v9njeec6Gjd+7IOjYHrE6dJ6N+ZTReO5VZ/W/XOObjvT1LEEvd68gVazNlDD02NANNp8o99TX5BrHCrUlxIENUi5XccYyYjBa0TTLnXcXmbAReEkpoa21JLoMq2jMxPXkmKVW5VAp+E/U5xGtphs4cpTzO6O1dWl7YcoXc+iSKRY1Z9t3b4YSfR/neGuyDJvupM95cDcutSyEGbgNy+aFK1KdGa4agZWHyzIf2L0a5lOG/onmroO289krcfml2fltQWcK2fItTdoslHBjYiOqvVXft7jWEbV0FPfDZlP/4/wmhbrOkW9jWf6yele0tM41tdKf7a1J8Rr95kF4GDq2nxA6/3aWY3+/uU6AVkHhbrQGFRFb3nwWPBt7rz43NyejWL/3OEsKxooarJmBWRUK95VYh2vaHN2rL60sLayQ2yLP7sDiVoKVZ3q10cHvmzMcx2thlp6gZaeiEIH3Nker8bia8Y1cHjYnu9j+D+i6sVqmYkPZOWxGeohFcwhvR3NRYuj00tvxxp811GuU6jsLDJBwRnuSu601EFu+JAsjlNKwC5J+TvnBxgdlnlxHd6BAsFi/wOv2JbsWeTJEZnlsQxcSG5McY/7VEi0tk4Kf+/sNT92LaNhrFYH0VtMqmsv+6hekqaY4JnR0CdpaYYnLfGWhupOpc4OghpytvtD7NeWAFNM/A4k/HJVRcqxbAZpb9txaVyLouSRWI2eSaEbLKiQLfyfWnF7Fup2gJrcGtLWKLNTu3Xm5fDc31GDIkXsxLopRaLfPYC8yaL9e2XbvRBl37HxxIajVaGs4HKFER8lF3SIL9fXvXcLVWlRKbL7fK1Z8gMna41e0e3L6OA+NH+hxnxvklL+QX5WzMfBrNVrqc93449cX1tbqovL1ui8i0m0DEUKnn/j7h6qSUnN3WbPSQ7uyjeNg76u3UXsueVee/3hT8kir6+bUapKFtXGCxlsUXRJoe8Ro/KsjWvrxAMESuEsgV02JjQmdcibpM9dUjeaZ6yJtHLBoAYEO/fS7zbifN71L3vQkoZ+UwW2u334nUM6oaoojN8TSCPRW/jRDrCmyaBPV+u8zNurzCDp92O0os83otMtmRsmy11jDk2W/SnJs5Sl4V5QpShhwdWb5gxlp/sqMPF9zpqbi5gSGvR+G4i5tH22uJ5we+mJzqjpUt12f8qHGJlz4z+3dtDFsL5v+ZuO04TIMvoz4CmcKZYSc/q4lSfnmneXh2doCz3zOWz5tmqiUF1I4ykNp0oF3Px7RsFJtuIZfU1SKXXwD78K9MjMPQ2UeT1v+7GYR/R5NbrbDY8XtNn8J1+Vw5odYlcafGdEqp7azNvDHzYJyfHNzWDDVL/AJ/U1RRfH3umt48Dh/5yuLoMizODNI2W2A/GHJqmAkOs6Wdu95Snx2wdet0v8FNRKWwASen1rshf7vZ0Am88GEQSovjYiMKuiZlX2MG33qkOIh7Wqv82R7Dc3cgWm25BCrASvPtNnhaf9QuPfs2mYbHy5cglpQN6UHQZ3ZOYIyaNkQyjMnoPGeci7hu6cx/jJmyojvgQ329jx4dp4jMFKsrp/6EDQCV3t3785vQj95Q/4TXqdMGUvbTS5MXSeQCNalLiQ5mR9eORLRaNNdlZWVhkPSCSsvu5QtKbU0VTn0l9bO/EJrC6xVwZAhbiUoq1z7Fs0FgmS6fJYso4eUtR+Yk17FVpowCIa5nHjVy90cSH9WaA9E/jb9wnwOqcbUL5INhwZJJlhQMUq3yXkojIjYrrk9flW/vEFSJalWjUFh9HKb3ZPsgXhXjSo2FKwse+eh0yc7rU4YurU+3Y/rBjh33Cu1GuqSXgjFu65N/vlnJ0//Ka3xv3JyjUzcUrnZnVaYWgj17LK5DLo2tqYyBBr63s9DfwCQfal7733VOpkOqqqE2ROV4RBNL8vyHgly415yn4PyYe7L1fUvMXW/yJVQ+YqXqehOv9zPGH+zsOcZ+g7NkVEWgpe6KlMeQPuvz6N5PIRDmIjIwx+rL9Pqac2tYJX2X0O5pBKYEuh3iSUGHy3gCfhwjQw8+umVL1X6FaOtpJWaBgQeZq+jKi2rsbh0/SemSEmvAnRGTPeKMWsI31BEyQiqaAMeshZj98xdoItseBbdLsJ0w6Mxo8Pq3nugs4N+fWjGzKHX2HbQcQn98vkR5DPqRtqihCOo94BNHz7xzMfLoeXQwXKMc2w9TmtwS9EGfP0xTil2DVoOKUjvFOmBfvWxyChNLR9WT/ve1NnOvjY002Yfep3u6DJ+P009vJyiR6vRy/B6rvHIcUR6/z9xXvDJBYkg4nTujHvm37OI8sIvYx+i3anMYZZyFhuocwwv48NEYtJvsBMCov5bTFImj/kQQ+t6MFGN66KHgOw1dMwkUCHAF0hEtx/q+DblNmzftU2dLWJqeeSK9fLXfgJ3r1+384lGvRFO+sNFSgf/5Qp2DRQvUBAs7e0VHshC/eaMs7eiHQ1ZZkxUWZkD6c/yebfePH8n88Td9gsC5u7iRQmyZYnuuwz/PbT194NbgD7NtWf3sqo+oboe/fKu1IiTXy8djYFGOEQtLjy0yFBE+xl0eqaUvgb1czbHeb8mcaNU4GeKaEMR+nS7xUDpXY2kJP+7JTKFLJHa2WI8Rj5HHjMGNoRqvKJlupMvh836G7ImaNa378rlxij50YTZmFQOIFKzo7NT/+LzTQ+X+zlPgz9V2cUx7rFLBX/jO/G/BdI9duOTqYOcJAgBsNS21/tL5j9Q9Kr8m1invB051on6b6RGTyyeE68o61E/vIN7SmIo6/JlPBiGecuG5PTpeZ09t2j50L+bvykVWJuVq0XIYJABMhHTfIrL/YWnLU0ns5AMCIJk+GALfbW3T1KTK7pHSBg6QAStqfejUQCh5tRHViJ4AILJEfh8+evRy+36mXovYhYKBWp1ZMg+NIpjSgyPJEP0OnPP8fSxo1VOSzJbUEpOsfByqCYqh2eZQnJXcv/ZdvrOsJgWGub0oFYFXsEt1xvNBhOn6W9Bv73TPvt0QLTqieMTvU8X7VD6uSil1kUnMaeN+Ly/f//dPZVsCsy79bNBq4nEuNxs/Fxr62iMIjY/4CLP/EWj5p9sOb4z/LQkzwscD5fpKErxBVLlmItU/MhEPab4ocdYgx28sSsdXOkPHpa2C3oD4Q1ZQzJXQIc+tD9EV2pza7go1a+XdoK6V7qsbYFx2AkPteSekUtx9mxz7nJ2AofhZLTlXnGiRkusOZ3TAsO4FV7eknOOxaXys1VMXW2F8dfSHs3+KhsmR1esFAkm82dtQOCOgf1wdg4se4YUN95EUHLHJA7CSoGaWMBHoCefVK0rFzMg3GLy0HZV+NUgjmIBrhEo4aDYFB4apWSX7jo4iWlRnjJyERcOO/foYZi7qIyM8qQlymEU+YCi7qHRG+vnjzQqxgolnYNBefr0uLbXt6xDYYoUmkzED2AS2H+soqLrjSQRJS0Qq1TepxZrM/KLsX3iNL9jWwKhXfyUyqu+L/XgxISv65+tiIVarDCahBQJo+u2vG7tL0G/8rvIT/F+M6/mMOeZqIcZYhG3ldsQXRAZ0A1ECqK5DdxK9LOZ/SdWfN0MXq6VKWihgEtCejAqFo6mQAad6Wvn1zI5JcBMEEGMykcJj5DQg9OdhyipAIbt8Ye0tJCrf6KvSvm6h1uaykrdao493ikKFruz4vRqRsLltlt0NdeUZcKLB0SZPuEqOCQEIhlAZJCIC4KKwnw+Dh1S0SLKIkqJmHii4Qcpdga4HLUoyE2Nh3wWHDmcl56SpNA9dCir8sUSUJKylLH41AGpqE5LKsVahJhOSZRJLnn7VqRe8k9TURePuCf2ZAZ4YnnS0yY9rt96bLI51yKmkEARouQJDkQNSRzqMsiqqGe82zqUnkoBLsg1UvBS9SOL3BUdCoWIEkgSVYq8xoBrpSUsg3RRChYhrizeOuQe6FFNQVoiCUKB77Wxesl0YqwWR0nkH6m7BHwp2E7MwhELu6uzmniu6K8WmidKrmMF0kGUQszljGSDgJtKlHOVxCLsm4Nbvt0M8cckli+utNUPqmjhUUyQI6F9oKD4kuZ8UpKAZyBK4TWzAouQQIQR8vHiArgGqQxQlNSpVEtGDc7JhlbOchQlopOBulXTIS1RjBT5Yue5aKFEq87/pqAVFV8moiPDUOVLZAlAwNUHnVneuT9p7v+yNPcPAGDuvuUo98x/dFWdkT8AwMCAWkyM9RY1lNhCPybEJ09biPvsrBQ6fHj4P7hoNpNsRmp77VHLy+I1WY7JFqdDqgQaqRIlSJTkmL2yWGRxSKBGiIEjMSxwhbLIKIhQMpEy4VIp+yMkETWK1U3ZYoVlGWeFcItiZaSBKGQlltL/gEiFMJArpICQw2koGdjdZVNrEgAmOeR51U8d1q7IcTOUy3JILRsFo0xaergYFrHMdMbtdU0CCACLzMUFAEDyHrk1ANCNddQbfIM4m98qtNMIGiA6OxtgEscbOCpcbkBY4xq43KmIooMN4nqZDY8pkdoEj1hQaXwGHotjAVmkHFBXVdVT2qHTWmgLlmimAlUyeigB05R80qLMd9VeK0vBz1HTxF16MHKExrM4oigl8x0E/Ex9/TxFqgF3oam1ypneczbLJkEptaZS+lBTY+W0Tl72YK/1AeTmlPoxq8TfQ4DTJGq8pvywByAqRBkjtau4iltNBRnuyNLuY+9syNGydRV7AEsMuedUmQxDnCNU9Z4yan8gYzkCC+k1Rdky7PL10yJxF+EEBzpuokqdZyMFKF4yOEPy6NIKGZlIeeJebgLRR40Z5tIHgJoclSpO4mia2qkNnILkYCHUqYedY8UvessV+PIjDCoWkx1G2b7utacAcoDz+TUTQSoFjDjqTczcBGlLX4ouJVIt0MqVMJFoUI2oCcwE1FE/+VdcrB0Vo4TDTmv532J2oUX/tjjw/4sfMzB8AkIiYhJSOIIMiUJjsOQUlFTUNLSi6OgZGJmYWUSLEStO/McFnpx/frsUqdKkf931Z0yWbDly5XHI5+Ti5uHlU8CvUJFiASVKlSlXISikUpVqNWrVqdegUZNmLVqFtQVmDk9a7FO3ksf/fJECiyzhIx/7xG2fpcwKq6yxzgabbLHNDrt40+H02C8hsRW+Wu2suWlm1Vnrjc50i95ks7bz6AZlGUWVGr1m9MnRFsaOnZ4JCkNfPnTlow+e1VV+aSYvqUr4yvHhK6NOq5v1Yv+0F+5einqz3gi0buUInA0FhfhZvkH/zqu3rwp4J00MziHl2/9QlVt5qfbzmIuDcx7+ySkP+Y9RtLYh4TzAWTirHgMOsFYT327dh/NtXY8OUow4wtDCOFeMRvcZJ9ibAsqbaztuP4bThH9oyp0L0kyPoNOlyH9S6Xob7uFSse4CAAA=) format("woff2");font-weight:400;font-style:normal;font-display:block}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:""}.katex .katex-mathml{position:absolute;clip-path:inset(50%);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;display:inline-block;white-space:nowrap;width:min-content}.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathsfit,.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{display:inline-flex;flex-direction:column;align-items:baseline}.katex .hbox{display:inline-flex;flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline,.katex .hdashline,.katex .rule{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .llap,.katex .rlap,.katex .clap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner,.katex .clap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix,.katex .clap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner,.katex .clap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:solid 0;position:relative}.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .sizing.reset-size1.size1,.katex .fontsize-ensurer.reset-size1.size1{font-size:1em}.katex .sizing.reset-size1.size2,.katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em}.katex .sizing.reset-size1.size3,.katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em}.katex .sizing.reset-size1.size4,.katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em}.katex .sizing.reset-size1.size5,.katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em}.katex .sizing.reset-size1.size6,.katex .fontsize-ensurer.reset-size1.size6{font-size:2em}.katex .sizing.reset-size1.size7,.katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em}.katex .sizing.reset-size1.size8,.katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em}.katex .sizing.reset-size1.size9,.katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em}.katex .sizing.reset-size1.size10,.katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em}.katex .sizing.reset-size1.size11,.katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em}.katex .sizing.reset-size2.size1,.katex .fontsize-ensurer.reset-size2.size1{font-size:.8333333333em}.katex .sizing.reset-size2.size2,.katex .fontsize-ensurer.reset-size2.size2{font-size:1em}.katex .sizing.reset-size2.size3,.katex .fontsize-ensurer.reset-size2.size3{font-size:1.1666666667em}.katex .sizing.reset-size2.size4,.katex .fontsize-ensurer.reset-size2.size4{font-size:1.3333333333em}.katex .sizing.reset-size2.size5,.katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em}.katex .sizing.reset-size2.size6,.katex .fontsize-ensurer.reset-size2.size6{font-size:1.6666666667em}.katex .sizing.reset-size2.size7,.katex .fontsize-ensurer.reset-size2.size7{font-size:2em}.katex .sizing.reset-size2.size8,.katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em}.katex .sizing.reset-size2.size9,.katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em}.katex .sizing.reset-size2.size10,.katex .fontsize-ensurer.reset-size2.size10{font-size:3.4566666667em}.katex .sizing.reset-size2.size11,.katex .fontsize-ensurer.reset-size2.size11{font-size:4.1466666667em}.katex .sizing.reset-size3.size1,.katex .fontsize-ensurer.reset-size3.size1{font-size:.7142857143em}.katex .sizing.reset-size3.size2,.katex .fontsize-ensurer.reset-size3.size2{font-size:.8571428571em}.katex .sizing.reset-size3.size3,.katex .fontsize-ensurer.reset-size3.size3{font-size:1em}.katex .sizing.reset-size3.size4,.katex .fontsize-ensurer.reset-size3.size4{font-size:1.1428571429em}.katex .sizing.reset-size3.size5,.katex .fontsize-ensurer.reset-size3.size5{font-size:1.2857142857em}.katex .sizing.reset-size3.size6,.katex .fontsize-ensurer.reset-size3.size6{font-size:1.4285714286em}.katex .sizing.reset-size3.size7,.katex .fontsize-ensurer.reset-size3.size7{font-size:1.7142857143em}.katex .sizing.reset-size3.size8,.katex .fontsize-ensurer.reset-size3.size8{font-size:2.0571428571em}.katex .sizing.reset-size3.size9,.katex .fontsize-ensurer.reset-size3.size9{font-size:2.4685714286em}.katex .sizing.reset-size3.size10,.katex .fontsize-ensurer.reset-size3.size10{font-size:2.9628571429em}.katex .sizing.reset-size3.size11,.katex .fontsize-ensurer.reset-size3.size11{font-size:3.5542857143em}.katex .sizing.reset-size4.size1,.katex .fontsize-ensurer.reset-size4.size1{font-size:.625em}.katex .sizing.reset-size4.size2,.katex .fontsize-ensurer.reset-size4.size2{font-size:.75em}.katex .sizing.reset-size4.size3,.katex .fontsize-ensurer.reset-size4.size3{font-size:.875em}.katex .sizing.reset-size4.size4,.katex .fontsize-ensurer.reset-size4.size4{font-size:1em}.katex .sizing.reset-size4.size5,.katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em}.katex .sizing.reset-size4.size6,.katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em}.katex .sizing.reset-size4.size7,.katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em}.katex .sizing.reset-size4.size8,.katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em}.katex .sizing.reset-size4.size9,.katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em}.katex .sizing.reset-size4.size10,.katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em}.katex .sizing.reset-size4.size11,.katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em}.katex .sizing.reset-size5.size1,.katex .fontsize-ensurer.reset-size5.size1{font-size:.5555555556em}.katex .sizing.reset-size5.size2,.katex .fontsize-ensurer.reset-size5.size2{font-size:.6666666667em}.katex .sizing.reset-size5.size3,.katex .fontsize-ensurer.reset-size5.size3{font-size:.7777777778em}.katex .sizing.reset-size5.size4,.katex .fontsize-ensurer.reset-size5.size4{font-size:.8888888889em}.katex .sizing.reset-size5.size5,.katex .fontsize-ensurer.reset-size5.size5{font-size:1em}.katex .sizing.reset-size5.size6,.katex .fontsize-ensurer.reset-size5.size6{font-size:1.1111111111em}.katex .sizing.reset-size5.size7,.katex .fontsize-ensurer.reset-size5.size7{font-size:1.3333333333em}.katex .sizing.reset-size5.size8,.katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em}.katex .sizing.reset-size5.size9,.katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em}.katex .sizing.reset-size5.size10,.katex .fontsize-ensurer.reset-size5.size10{font-size:2.3044444444em}.katex .sizing.reset-size5.size11,.katex .fontsize-ensurer.reset-size5.size11{font-size:2.7644444444em}.katex .sizing.reset-size6.size1,.katex .fontsize-ensurer.reset-size6.size1{font-size:.5em}.katex .sizing.reset-size6.size2,.katex .fontsize-ensurer.reset-size6.size2{font-size:.6em}.katex .sizing.reset-size6.size3,.katex .fontsize-ensurer.reset-size6.size3{font-size:.7em}.katex .sizing.reset-size6.size4,.katex .fontsize-ensurer.reset-size6.size4{font-size:.8em}.katex .sizing.reset-size6.size5,.katex .fontsize-ensurer.reset-size6.size5{font-size:.9em}.katex .sizing.reset-size6.size6,.katex .fontsize-ensurer.reset-size6.size6{font-size:1em}.katex .sizing.reset-size6.size7,.katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em}.katex .sizing.reset-size6.size8,.katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em}.katex .sizing.reset-size6.size9,.katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em}.katex .sizing.reset-size6.size10,.katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em}.katex .sizing.reset-size6.size11,.katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em}.katex .sizing.reset-size7.size1,.katex .fontsize-ensurer.reset-size7.size1{font-size:.4166666667em}.katex .sizing.reset-size7.size2,.katex .fontsize-ensurer.reset-size7.size2{font-size:.5em}.katex .sizing.reset-size7.size3,.katex .fontsize-ensurer.reset-size7.size3{font-size:.5833333333em}.katex .sizing.reset-size7.size4,.katex .fontsize-ensurer.reset-size7.size4{font-size:.6666666667em}.katex .sizing.reset-size7.size5,.katex .fontsize-ensurer.reset-size7.size5{font-size:.75em}.katex .sizing.reset-size7.size6,.katex .fontsize-ensurer.reset-size7.size6{font-size:.8333333333em}.katex .sizing.reset-size7.size7,.katex .fontsize-ensurer.reset-size7.size7{font-size:1em}.katex .sizing.reset-size7.size8,.katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em}.katex .sizing.reset-size7.size9,.katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em}.katex .sizing.reset-size7.size10,.katex .fontsize-ensurer.reset-size7.size10{font-size:1.7283333333em}.katex .sizing.reset-size7.size11,.katex .fontsize-ensurer.reset-size7.size11{font-size:2.0733333333em}.katex .sizing.reset-size8.size1,.katex .fontsize-ensurer.reset-size8.size1{font-size:.3472222222em}.katex .sizing.reset-size8.size2,.katex .fontsize-ensurer.reset-size8.size2{font-size:.4166666667em}.katex .sizing.reset-size8.size3,.katex .fontsize-ensurer.reset-size8.size3{font-size:.4861111111em}.katex .sizing.reset-size8.size4,.katex .fontsize-ensurer.reset-size8.size4{font-size:.5555555556em}.katex .sizing.reset-size8.size5,.katex .fontsize-ensurer.reset-size8.size5{font-size:.625em}.katex .sizing.reset-size8.size6,.katex .fontsize-ensurer.reset-size8.size6{font-size:.6944444444em}.katex .sizing.reset-size8.size7,.katex .fontsize-ensurer.reset-size8.size7{font-size:.8333333333em}.katex .sizing.reset-size8.size8,.katex .fontsize-ensurer.reset-size8.size8{font-size:1em}.katex .sizing.reset-size8.size9,.katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em}.katex .sizing.reset-size8.size10,.katex .fontsize-ensurer.reset-size8.size10{font-size:1.4402777778em}.katex .sizing.reset-size8.size11,.katex .fontsize-ensurer.reset-size8.size11{font-size:1.7277777778em}.katex .sizing.reset-size9.size1,.katex .fontsize-ensurer.reset-size9.size1{font-size:.2893518519em}.katex .sizing.reset-size9.size2,.katex .fontsize-ensurer.reset-size9.size2{font-size:.3472222222em}.katex .sizing.reset-size9.size3,.katex .fontsize-ensurer.reset-size9.size3{font-size:.4050925926em}.katex .sizing.reset-size9.size4,.katex .fontsize-ensurer.reset-size9.size4{font-size:.462962963em}.katex .sizing.reset-size9.size5,.katex .fontsize-ensurer.reset-size9.size5{font-size:.5208333333em}.katex .sizing.reset-size9.size6,.katex .fontsize-ensurer.reset-size9.size6{font-size:.5787037037em}.katex .sizing.reset-size9.size7,.katex .fontsize-ensurer.reset-size9.size7{font-size:.6944444444em}.katex .sizing.reset-size9.size8,.katex .fontsize-ensurer.reset-size9.size8{font-size:.8333333333em}.katex .sizing.reset-size9.size9,.katex .fontsize-ensurer.reset-size9.size9{font-size:1em}.katex .sizing.reset-size9.size10,.katex .fontsize-ensurer.reset-size9.size10{font-size:1.2002314815em}.katex .sizing.reset-size9.size11,.katex .fontsize-ensurer.reset-size9.size11{font-size:1.4398148148em}.katex .sizing.reset-size10.size1,.katex .fontsize-ensurer.reset-size10.size1{font-size:.2410800386em}.katex .sizing.reset-size10.size2,.katex .fontsize-ensurer.reset-size10.size2{font-size:.2892960463em}.katex .sizing.reset-size10.size3,.katex .fontsize-ensurer.reset-size10.size3{font-size:.337512054em}.katex .sizing.reset-size10.size4,.katex .fontsize-ensurer.reset-size10.size4{font-size:.3857280617em}.katex .sizing.reset-size10.size5,.katex .fontsize-ensurer.reset-size10.size5{font-size:.4339440694em}.katex .sizing.reset-size10.size6,.katex .fontsize-ensurer.reset-size10.size6{font-size:.4821600771em}.katex .sizing.reset-size10.size7,.katex .fontsize-ensurer.reset-size10.size7{font-size:.5785920926em}.katex .sizing.reset-size10.size8,.katex .fontsize-ensurer.reset-size10.size8{font-size:.6943105111em}.katex .sizing.reset-size10.size9,.katex .fontsize-ensurer.reset-size10.size9{font-size:.8331726133em}.katex .sizing.reset-size10.size10,.katex .fontsize-ensurer.reset-size10.size10{font-size:1em}.katex .sizing.reset-size10.size11,.katex .fontsize-ensurer.reset-size10.size11{font-size:1.1996142719em}.katex .sizing.reset-size11.size1,.katex .fontsize-ensurer.reset-size11.size1{font-size:.2009646302em}.katex .sizing.reset-size11.size2,.katex .fontsize-ensurer.reset-size11.size2{font-size:.2411575563em}.katex .sizing.reset-size11.size3,.katex .fontsize-ensurer.reset-size11.size3{font-size:.2813504823em}.katex .sizing.reset-size11.size4,.katex .fontsize-ensurer.reset-size11.size4{font-size:.3215434084em}.katex .sizing.reset-size11.size5,.katex .fontsize-ensurer.reset-size11.size5{font-size:.3617363344em}.katex .sizing.reset-size11.size6,.katex .fontsize-ensurer.reset-size11.size6{font-size:.4019292605em}.katex .sizing.reset-size11.size7,.katex .fontsize-ensurer.reset-size11.size7{font-size:.4823151125em}.katex .sizing.reset-size11.size8,.katex .fontsize-ensurer.reset-size11.size8{font-size:.578778135em}.katex .sizing.reset-size11.size9,.katex .fontsize-ensurer.reset-size11.size9{font-size:.6945337621em}.katex .sizing.reset-size11.size10,.katex .fontsize-ensurer.reset-size11.size10{font-size:.8336012862em}.katex .sizing.reset-size11.size11,.katex .fontsize-ensurer.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:before,.katex .stretchy:after{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .x-arrow,.katex .mover,.katex .munder{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{counter-increment:katexEqnNo;content:"(" counter(katexEqnNo) ")"}.katex .mml-eqn-num:before{counter-increment:mmlEqnNo;content:"(" counter(mmlEqnNo) ")"}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + .3em);text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}.markdown-block--unstable.svelte-wjdxdt{display:contents}.streaming-code-block.svelte-wjdxdt .streaming-code-pre:where(.svelte-wjdxdt){background:transparent;padding:.5rem;margin:0;overflow-x:visible;border-radius:0;border:none;font-size:.875rem}.markdown-content.svelte-wjdxdt p{margin-block:1rem;line-height:1.75}.markdown-content.svelte-wjdxdt :is(h1,h2,h3,h4,h5,h6):first-child{margin-top:0}.markdown-content.svelte-wjdxdt h1{font-size:1.875rem;font-weight:700;line-height:1.2;margin:1.5rem 0 .75rem}.markdown-content.svelte-wjdxdt h2{font-size:1.5rem;font-weight:600;line-height:1.3;margin:1.25rem 0 .5rem}.markdown-content.svelte-wjdxdt h3{font-size:1.25rem;font-weight:600;margin:1.5rem 0 .5rem;line-height:1.4}.markdown-content.svelte-wjdxdt h4{font-size:1.125rem;font-weight:600;margin:.75rem 0 .25rem}.markdown-content.svelte-wjdxdt h5{font-size:1rem;font-weight:600;margin:.5rem 0 .25rem}.markdown-content.svelte-wjdxdt h6{font-size:.875rem;font-weight:600;margin:.5rem 0 .25rem}.markdown-content.svelte-wjdxdt strong{font-weight:600}.markdown-content.svelte-wjdxdt em{font-style:italic}.markdown-content.svelte-wjdxdt del{text-decoration:line-through;opacity:.7}.markdown-content.svelte-wjdxdt code:not(pre code){background:var(--muted);color:var(--muted-foreground);padding:.125rem .375rem;border-radius:.375rem;font-size:.875rem}.markdown-content.svelte-wjdxdt pre{display:inline;margin:0!important;overflow:hidden!important;background:var(--muted);overflow-x:auto;border-radius:1rem;border:none;line-height:1!important}.markdown-content.svelte-wjdxdt pre code{padding:0!important;display:inline!important}.markdown-content.svelte-wjdxdt code{background:transparent;color:var(--code-foreground)}.markdown-content.svelte-wjdxdt a{color:var(--primary);text-decoration:underline;text-underline-offset:2px;transition:color .2s ease;overflow-wrap:anywhere;word-break:break-all}.markdown-content.svelte-wjdxdt a:hover{color:var(--primary)}.markdown-content.svelte-wjdxdt ul{list-style-type:disc;margin-inline-start:1.5rem;margin-bottom:1rem}.markdown-content.svelte-wjdxdt ol{list-style-type:decimal;margin-inline-start:1.5rem;margin-bottom:1rem}.markdown-content.svelte-wjdxdt li{margin-bottom:.25rem;padding-inline-start:.5rem}.markdown-content.svelte-wjdxdt li::marker{color:var(--muted-foreground)}.markdown-content.svelte-wjdxdt ul ul{list-style-type:circle;margin-top:.25rem;margin-bottom:.25rem}.markdown-content.svelte-wjdxdt ol ol{list-style-type:lower-alpha;margin-top:.25rem;margin-bottom:.25rem}.markdown-content.svelte-wjdxdt .task-list-item{list-style:none;margin-inline-start:0;padding-inline-start:0}.markdown-content.svelte-wjdxdt .task-list-item-checkbox{margin-right:.5rem;margin-top:.125rem}.markdown-content.svelte-wjdxdt blockquote{border-left:4px solid var(--border);padding:.5rem 1rem;margin:1.5rem 0;font-style:italic;color:var(--muted-foreground);background:var(--muted);border-radius:0 .375rem .375rem 0}.markdown-content.svelte-wjdxdt table{width:100%;margin:1.5rem 0;border-collapse:collapse;border:1px solid var(--border);border-radius:.375rem;overflow:hidden}.markdown-content.svelte-wjdxdt th{background:hsl(var(--muted) / .3);border:1px solid var(--border);padding:.5rem .75rem;text-align:left;font-weight:600}.markdown-content.svelte-wjdxdt td{border:1px solid var(--border);padding:.5rem .75rem}.markdown-content.svelte-wjdxdt tr:nth-child(2n){background:hsl(var(--muted) / .1)}div.markdown-user-content.svelte-wjdxdt table,div.markdown-user-content.svelte-wjdxdt th,div.markdown-user-content.svelte-wjdxdt td,div.markdown-user-content.svelte-wjdxdt .table-wrapper{border-color:currentColor}.markdown-content.svelte-wjdxdt hr{border:none;border-top:1px solid var(--border);margin:1.5rem 0}.markdown-content.svelte-wjdxdt img{border-radius:.5rem;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;margin:1.5rem 0;max-width:100%;height:auto}.markdown-content.svelte-wjdxdt .code-block-wrapper{margin:1.5rem 0;border-radius:.75rem;overflow:hidden;border:1px solid color-mix(in oklch,var(--border) 30%,transparent);background:var(--code-background);box-shadow:0 1px 2px #0000000d;min-height:var(--min-message-height);max-height:var(--max-message-height)}.markdown-content.svelte-wjdxdt.dark .code-block-wrapper{border-color:color-mix(in oklch,var(--border) 20%,transparent)}.markdown-content.svelte-wjdxdt .code-block-scroll-container,.streaming-code-scroll-container.svelte-wjdxdt{min-height:var(--min-message-height);max-height:var(--max-message-height);overflow-y:auto;overflow-x:auto;padding:3rem 1rem 1rem;line-height:1.3}.full-height-code-blocks.svelte-wjdxdt .code-block-wrapper{max-height:none}.full-height-code-blocks.svelte-wjdxdt .code-block-scroll-container,.full-height-code-blocks.svelte-wjdxdt .streaming-code-scroll-container:where(.svelte-wjdxdt){max-height:none;overflow-y:visible}.markdown-content.svelte-wjdxdt .code-block-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem 0;font-size:.875rem;position:absolute;top:0;left:0;right:0}.markdown-content.svelte-wjdxdt .code-language{color:var(--color-foreground);font-weight:500;font-family:ui-monospace,SFMono-Regular,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Liberation Mono,Menlo,monospace;text-transform:uppercase;font-size:.75rem;letter-spacing:.05em}.markdown-content.svelte-wjdxdt .code-block-actions{display:flex;align-items:center;gap:.5rem}.markdown-content.svelte-wjdxdt .copy-code-btn,.markdown-content.svelte-wjdxdt .preview-code-btn{display:flex;align-items:center;justify-content:center;padding:0;background:transparent;color:var(--code-foreground);cursor:pointer;transition:all .2s ease}.markdown-content.svelte-wjdxdt .copy-code-btn:hover,.markdown-content.svelte-wjdxdt .preview-code-btn:hover{transform:scale(1.05)}.markdown-content.svelte-wjdxdt .copy-code-btn:active,.markdown-content.svelte-wjdxdt .preview-code-btn:active{transform:scale(.95)}.markdown-content.svelte-wjdxdt .code-block-wrapper pre{background:transparent;margin:0;border-radius:0;border:none;font-size:.875rem}.markdown-content.svelte-wjdxdt .mention{color:hsl(var(--primary));font-weight:500;text-decoration:none}.markdown-content.svelte-wjdxdt .mention:hover{text-decoration:underline}.markdown-content.svelte-wjdxdt .hashtag{color:hsl(var(--primary));font-weight:500;text-decoration:none}.markdown-content.svelte-wjdxdt .hashtag:hover{text-decoration:underline}.markdown-content.svelte-wjdxdt table{transition:all .2s ease}.markdown-content.svelte-wjdxdt table:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.markdown-content.svelte-wjdxdt th:hover,.markdown-content.svelte-wjdxdt td:hover{background:var(--muted)}.markdown-user-content.svelte-wjdxdt a,.markdown-user-content.svelte-wjdxdt a:hover{color:inherit}.markdown-user-content.svelte-wjdxdt table:hover{box-shadow:none}.markdown-user-content.svelte-wjdxdt th:hover,.markdown-user-content.svelte-wjdxdt td:hover{background:inherit}.markdown-content.svelte-wjdxdt blockquote{transition:all .2s ease;position:relative}.markdown-content.svelte-wjdxdt blockquote:hover{border-left-width:6px;background:var(--muted);transform:translate(2px)}.markdown-content.svelte-wjdxdt blockquote:before{content:'"';position:absolute;top:-.5rem;left:.5rem;font-size:3rem;color:var(--muted-foreground);font-family:serif;line-height:1}.markdown-content.svelte-wjdxdt img{transition:all .3s ease;cursor:pointer}.markdown-content.svelte-wjdxdt img:hover{transform:scale(1.02);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.markdown-content.svelte-wjdxdt .image-zoom-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;cursor:pointer}.markdown-content.svelte-wjdxdt .image-zoom-overlay img{max-width:90vw;max-height:90vh;border-radius:.5rem;box-shadow:0 25px 50px -12px #00000040}.markdown-content.svelte-wjdxdt hr{border:none;height:2px;background:linear-gradient(to right,transparent,var(--border),transparent);margin:2rem 0;position:relative}.markdown-content.svelte-wjdxdt hr:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1rem;height:1rem;background:var(--border);border-radius:50%}.markdown-content.svelte-wjdxdt .table-wrapper{overflow-x:auto;margin:1.5rem 0;border-radius:.5rem;border:1px solid var(--border)}.markdown-content.svelte-wjdxdt .table-wrapper table{margin:0;border:none}@media(max-width:640px){.markdown-content.svelte-wjdxdt h1{font-size:1.5rem}.markdown-content.svelte-wjdxdt h2{font-size:1.25rem}.markdown-content.svelte-wjdxdt h3{font-size:1.125rem}.markdown-content.svelte-wjdxdt table{font-size:.875rem}.markdown-content.svelte-wjdxdt th,.markdown-content.svelte-wjdxdt td{padding:.375rem .5rem}.markdown-content.svelte-wjdxdt .table-wrapper{margin:.5rem -1rem;border-radius:0;border-left:none;border-right:none}}@media(prefers-color-scheme:dark){.markdown-content.svelte-wjdxdt blockquote:hover{background:var(--muted)}}.markdown-content.svelte-wjdxdt .image-load-error{display:flex;align-items:center;justify-content:center;margin:1.5rem 0;padding:1.5rem;border-radius:.5rem;background:var(--muted);border:1px dashed var(--border)}.markdown-content.svelte-wjdxdt .image-error-content{display:flex;flex-direction:column;align-items:center;gap:.75rem;color:var(--muted-foreground);text-align:center}.markdown-content.svelte-wjdxdt .image-error-content svg{opacity:.5}.markdown-content.svelte-wjdxdt .image-error-text{font-size:.875rem}.markdown-content.svelte-wjdxdt .image-error-link{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;color:var(--primary);background:var(--background);border:1px solid var(--border);border-radius:.375rem;text-decoration:none;transition:all .2s ease}.markdown-content.svelte-wjdxdt .image-error-link:hover{background:var(--muted);border-color:var(--primary)}.markdown-content.svelte-wjdxdt pre.mermaid{background:transparent;border:none;padding:0;text-align:center;font-family:inherit;cursor:pointer;transition:opacity .15s ease;position:relative}.markdown-content.svelte-wjdxdt pre.mermaid:not([data-mermaid-rendered]),.markdown-content.svelte-wjdxdt pre.mermaid[data-mermaid-rendered]:not(:has(svg)){display:none}.markdown-content.svelte-wjdxdt pre.mermaid:hover{opacity:.85}.markdown-content.svelte-wjdxdt pre.mermaid svg{max-width:90%;margin:0 auto;height:auto;display:block;padding:3rem 1rem}.markdown-content.svelte-wjdxdt .mermaid-block-wrapper{margin:1.5rem 0;border-radius:.75rem;overflow:hidden;border:1px solid color-mix(in oklch,var(--border) 30%,transparent);background:var(--code-background);box-shadow:0 1px 2px #0000000d;position:relative;min-height:var(--min-message-height);max-height:var(--max-message-height)}.markdown-content.svelte-wjdxdt.dark .mermaid-block-wrapper{border-color:color-mix(in oklch,var(--border) 20%,transparent)}.markdown-content.svelte-wjdxdt .mermaid-scroll-container{min-height:350px;max-height:var(--max-message-height);overflow-y:auto;overflow-x:auto;display:flex;align-items:center;justify-content:center;padding:3rem 1rem 1rem}.full-height-code-blocks.svelte-wjdxdt .mermaid-block-wrapper{max-height:none}.full-height-code-blocks.svelte-wjdxdt .mermaid-scroll-container{max-height:none;overflow-y:visible}.markdown-content.svelte-wjdxdt .mermaid-block-wrapper .code-block-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem 0;font-size:.875rem;position:absolute;top:0;left:0;right:0}.markdown-content.svelte-wjdxdt .mermaid-block-wrapper .code-block-actions{display:flex;align-items:center;gap:.5rem}.markdown-content.svelte-wjdxdt .mermaid-block-wrapper pre.mermaid{background:transparent;border:none;padding:0;margin:0;text-align:center}.markdown-content.svelte-wjdxdt .mermaid-block-wrapper pre.mermaid svg{width:unset!important;height:auto;display:block;padding:3rem 1rem}.mermaid-streaming-block.svelte-wjdxdt{min-height:300px;display:flex;align-items:center;justify-content:center}.mermaid-loading-placeholder.svelte-wjdxdt{display:flex;align-items:center;justify-content:center;padding:3rem;color:var(--muted-foreground)}.mermaid-loading-text.svelte-wjdxdt{font-size:.875rem;font-style:italic}.code-preview-wrapper.svelte-hp0zxr pre:where(.svelte-hp0zxr){background:transparent}.code-preview-wrapper.svelte-hp0zxr code:where(.svelte-hp0zxr){background:transparent}.mermaid-preview-diagram.svelte-7kd1m9 svg{min-height:min(50vh,12rem);min-width:min(80vw,20rem);max-width:none!important;max-height:none!important;height:auto!important;width:auto!important;display:block}.code-preview-overlay{position:fixed;inset:0;background-color:transparent;z-index:100000}.code-preview-content{position:fixed;inset:0;top:0!important;left:0!important;width:100dvw;height:100dvh;margin:0;padding:0;border:none;border-radius:0;background-color:transparent;box-shadow:none;display:block;overflow:hidden;transform:none!important;z-index:100001}.code-preview-iframe{display:block;width:100dvw;height:100dvh;border:0}.code-preview-close{position:absolute;z-index:100002}button.svelte-19ekn76 [data-slot=dropdown-menu-trigger]:not([data-state=open]){opacity:0}button.svelte-19ekn76:is(:where(.svelte-19ekn76):hover) [data-slot=dropdown-menu-trigger],button.svelte-19ekn76:focus-within [data-slot=dropdown-menu-trigger]{opacity:1}@media(max-width:768px){button.svelte-19ekn76 [data-slot=dropdown-menu-trigger]{opacity:1!important}}button.svelte-19ekn76 .stop-button:where(.svelte-19ekn76) .stop-icon{display:none}button.svelte-19ekn76 .stop-button:where(.svelte-19ekn76) .loading-icon{display:block}button.svelte-19ekn76:is(:where(.svelte-19ekn76):hover) .stop-button:where(.svelte-19ekn76) .stop-icon{display:block}button.svelte-19ekn76:is(:where(.svelte-19ekn76):hover) .stop-button:where(.svelte-19ekn76) .loading-icon{display:none}
 GCC: (Debian 13.3.0-16) 13.3.0           zR x            {    Ay                                                                                                                                              }          '      }            9           T}     K                  ]     `             o     0                                                                                                                                                                             {                              ui.cpp _ZL8g_assets _ZL12asset_0_data _ZL12asset_0_etag _ZL12asset_1_data _ZL12asset_1_etag _ZL12asset_2_data _ZL12asset_2_etag _ZL12asset_3_data _ZL12asset_3_etag .LC0 .LC1 .LC2 .LC3 _Z19llama_ui_find_assetPKc strcmp      
                                       &             +             4                    B             G             P             <       ^             c             q             \                                           }                   }                          (                   8                   @                    H             `      X             0      `                     h                     x                                            .symtab .strtab .shstrtab .rela.text .data .bss .rodata.str1.1 .rela.data.rel.ro.local .rodata .comment .note.GNU-stack .rela.eh_frame                                                                                       @       {                                    @               P                                &                                                           ,                                                           1      2                      -                             E                                                           @      @               p                                X                     h                                   `      0                                                  i                      =                                    ~                     @     8                              y      @                                                                     x                               	                      p                                                                                            